[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-10-14 10:50:47 +00:00
1 parent 477529a413
commit b01514a853
5 files changed
+311 -371

No files matched your search

Generated Vendored
+160 -185
View File
@@ -1,83 +1,80 @@
var g4e=Object.create;var Wv=Object.defineProperty;var y4e=Object.getOwnPropertyDescriptor;var E4e=Object.getOwnPropertyNames;var C4e=Object.getPrototypeOf,b4e=Object.prototype.hasOwnProperty;var o=(t,e)=>Wv(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),I4e=(t,e)=>{for(var r in e)Wv(t,r,{get:e[r],enumerable:!0})},w4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of E4e(e))!b4e.call(t,i)&&i!==r&&Wv(t,i,{get:()=>e[i],enumerable:!(n=y4e(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?g4e(C4e(t)):{},w4e(e||!t||!t.__esModule?Wv(r,"default",{value:t,enumerable:!0}):r,t));var _te=m(BA=>{"use strict";var h$t=require("net"),N4e=require("tls"),NF=require("http"),Bte=require("https"),R4e=require("events"),p$t=require("assert"),T4e=require("util");BA.httpOverHttp=D4e;BA.httpsOverHttp=Q4e;BA.httpOverHttps=k4e;BA.httpsOverHttps=P4e;function D4e(t){var e=new Iu(t);return e.request=NF.request,e}o(D4e,"httpOverHttp");function Q4e(t){var e=new Iu(t);return e.request=NF.request,e.createSocket=vte,e.defaultPort=443,e}o(Q4e,"httpsOverHttp");function k4e(t){var e=new Iu(t);return e.request=Bte.request,e}o(k4e,"httpOverHttps");function P4e(t){var e=new Iu(t);return e.request=Bte.request,e.createSocket=vte,e.defaultPort=443,e}o(P4e,"httpsOverHttps");function Iu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||NF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=xte(i,s,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(Iu,"TunnelingAgent");T4e.inherits(Iu,R4e.EventEmitter);Iu.prototype.addRequest=o(function(e,r,n,i){var s=this,a=RF({request:e},s.options,xte(r,n,i));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Iu.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=RF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Hd("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){Hd("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var A=new Error("tunneling socket could not be established, statusCode="+f.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(i);return}if(p.length>0){Hd("got illegal response body from proxy"),h.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(i);return}return Hd("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),Hd(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");Iu.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}},"removeSocket");function vte(t,e){var r=this;Iu.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=RF({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=N4e.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(vte,"createSecureSocket");function xte(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(xte,"toOptions");function RF(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var i=Object.keys(n),s=0,a=i.length;s<a;++s){var c=i[s];n[c]!==void 0&&(t[c]=n[c])}}return t}o(RF,"mergeOptions");var Hd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Hd=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Hd=o(function(){},"debug");BA.debug=Hd});var vA=m((g$t,Nte)=>{Nte.exports=_te()});var mr=m((y$t,Rte)=>{Rte.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Rt=m((E$t,tre)=>{"use strict";var Tte=Symbol.for("undici.error.UND_ERR"),Ar=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Tte]===!0}[Tte]=!0},Dte=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TF=class extends Ar{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Dte]===!0}[Dte]=!0},Qte=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),DF=class extends Ar{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Qte]===!0}[Qte]=!0},kte=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),QF=class extends Ar{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[kte]===!0}[kte]=!0},Pte=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),kF=class extends Ar{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(pne,"isValidHeaderValue");function KHe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(PHe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(KHe,"setRequestReferrerPolicyOnRedirect");function XHe(){return"allowed"}o(XHe,"crossOriginResourcePolicyCheck");function ZHe(){return"success"}o(ZHe,"corsCheck");function e8e(){return"success"}o(e8e,"TAOCheck");function t8e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(t8e,"appendFetchMetadata");function r8e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&vM(t.origin)&&!vM(Tb(t))&&(e=null);break;case"same-origin":Ex(t,Tb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(r8e,"appendRequestOriginHeader");function OA(t,e){return t}o(OA,"coarsenTime");function n8e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:OA(t.domainLookupStartTime,r),domainLookupEndTime:OA(t.domainLookupEndTime,r),connectionStartTime:OA(t.connectionStartTime,r),connectionEndTime:OA(t.connectionEndTime,r),secureConnectionStartTime:OA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(n8e,"clampAndCoarsenConnectionTimingInfo");function i8e(t){return OA(UHe.now(),t)}o(i8e,"coarsenedSharedCurrentTime");function s8e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(s8e,"createOpaqueTimingInfo");function mne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(mne,"makePolicyContainer");function o8e(t){return{referrerPolicy:t.referrerPolicy}}o(o8e,"clonePolicyContainer");function a8e(t){let e=t.referrerPolicy;Hh(e);let r=null;if(t.referrer==="client"){let c=lne();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=BM(r),i=BM(r,!0);n.toString().length>4096&&(n=i);let s=Ex(t,n),a=Rb(n)&&!Rb(t.url);switch(e){case"origin":return i??BM(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=Tb(t);return Ex(n,c)?n:Rb(n)&&!Rb(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(a8e,"determineRequestsReferrer");function BM(t,e){return Hh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(BM,"stripURLForReferrer");function Rb(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Rb,"isURLPotentiallyTrustworthy");function c8e(t,e){if(yx===void 0)return!0;let r=Ane(e);if(r==="no metadata"||r.length===0)return!0;let n=u8e(r),i=d8e(r,n);for(let s of i){let a=s.algo,c=s.hash,l=yx.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),f8e(l,c))return!0}return!1}o(c8e,"bytesMatch");var l8e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ane(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=l8e.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();dne.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(Ane,"parseMetadata");function u8e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(u8e,"getStrongestMetadata");function d8e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(d8e,"filterMetadataListByAlgorithm");function f8e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(f8e,"compareBase64Mixed");function h8e(t){}o(h8e,"tryUpgr Line truncated
`);function J8e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(J8e,"isAsciiString");function Y8e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(Y8e,"validateBoundary");function K8e(t,e){bx(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&Ix(t,$8e,s)||s.position===t.length-4&&Ix(t,W8e,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=X8e(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let A=t.indexOf(n.subarray(2),s.position);if(A===-1)return"failure";h=t.subarray(s.position,A-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",J8e(d)||(d=""),p=new z8e([h],u,{type:d})):p=U8e(Buffer.from(h)),bx(Nne(l)),bx(typeof p=="string"&&Nne(p)||G8e(p)),i.push(H8e(l,p,u))}}o(K8e,"multipartFormDataParser");function X8e(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=FA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=QM(a,!0,!0,c=>c===9||c===32),!q8e.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,FA(c=>c===32||c===9,t,e),M8e(a)){case"content-disposition":{if(r=n=null,!Ix(t,j8e,e)||(e.position+=17,r=Dne(t,e),r===null))return"failure";if(Ix(t,Tne,e)){let c=e.position+Tne.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=Dne(t,e),n===null))return"failure"}break}case"content-type":{let c=FA(l=>l!==10&&l!==13,t,e);c=QM(c,!1,!0,l=>l===9||l===32),i=Rne(c);break}case"content-transfer-encoding":{let c=FA(l=>l!==10&&l!==13,t,e);c=QM(c,!1,!0,l=>l===9||l===32),s=Rne(c);break}default:FA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(X8e,"parseMultipartFormDataHeaders");function Dne(t,e){bx(t[e.position-1]===34);let r=FA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(Dne,"parseMultipartFormDataName");function FA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(FA,"collectASequenceOfBytes");function QM(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i<t.length&&n(t[i]);)i++;if(r)for(;s>0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(QM,"removeChars");function Ix(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Ix,"bufferStartsWith");Qne.exports={multipartFormDataParser:K8e,validateBoundary:Y8e}});var qA=m((sWt,Vne)=>{"use strict";var kb=at(),{ReadableStreamFrom:Z8e,isBlobLike:Pne,isReadableStreamLike:eVe,readableStreamClose:tVe,createDeferredPromise:rVe,fullyReadBody:nVe,extractMimeType:iVe,utf8DecodeBytes:Fne}=js(),{FormData:One}=Qb(),{kState:UA}=Vd(),{webidl:sVe}=oi(),{Blob:oVe}=require("node:buffer"),kM=require("node:assert"),{isErrored:Mne,isDisturbed:aVe}=require("node:stream"),{isArrayBuffer:cVe}=require("node:util/types"),{serializeAMimeType:lVe}=As(),{multipartFormDataParser:uVe}=kne(),PM;try{let t=require("node:crypto");PM=o(e=>t.randomInt(0,e),"random")}catch{PM=o(t=>Math.floor(Math.random(t)),"random")}var wx=new TextEncoder;function dVe(){}o(dVe,"noop");var Une=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,qne;Une&&(qne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!aVe(e)&&!Mne(e)&&e.cancel("Response object has been garbage collected").catch(dVe)}));function Gne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Pne(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?wx.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>tVe(l))},start(){},type:"bytes"}),kM(eVe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cVe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(kb.isFormDataLike(t)){let l=`----formdata-undici-0${`${PM(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
var xLe=Object.create;var sB=Object.defineProperty;var vLe=Object.getOwnPropertyDescriptor;var NLe=Object.getOwnPropertyNames;var RLe=Object.getPrototypeOf,_Le=Object.prototype.hasOwnProperty;var o=(t,e)=>sB(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TLe=(t,e)=>{for(var r in e)sB(t,r,{get:e[r],enumerable:!0})},DLe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of NLe(e))!_Le.call(t,i)&&i!==r&&sB(t,i,{get:()=>e[i],enumerable:!(n=vLe(e,i))||n.enumerable});return t};var T=(t,e,r)=>(r=t!=null?xLe(RLe(t)):{},DLe(e||!t||!t.__esModule?sB(r,"default",{value:t,enumerable:!0}):r,t));var $K=g(RA=>{"use strict";var w3t=require("net"),FLe=require("tls"),EP=require("http"),HK=require("https"),MLe=require("events"),I3t=require("assert"),ULe=require("util");RA.httpOverHttp=qLe;RA.httpsOverHttp=GLe;RA.httpOverHttps=HLe;RA.httpsOverHttps=zLe;function qLe(t){var e=new ql(t);return e.request=EP.request,e}o(qLe,"httpOverHttp");function GLe(t){var e=new ql(t);return e.request=EP.request,e.createSocket=zK,e.defaultPort=443,e}o(GLe,"httpsOverHttp");function HLe(t){var e=new ql(t);return e.request=HK.request,e}o(HLe,"httpOverHttps");function zLe(t){var e=new ql(t);return e.request=HK.request,e.createSocket=zK,e.defaultPort=443,e}o(zLe,"httpsOverHttps");function ql(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=VK(i,s,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(ql,"TunnelingAgent");ULe.inherits(ql,MLe.EventEmitter);ql.prototype.addRequest=o(function(e,r,n,i){var s=this,a=CP({request:e},s.options,VK(r,n,i));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");ql.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=CP({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),td("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){td("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}if(p.length>0){td("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}return td("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),td(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");ql.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(i){n.request.onSocket(i)})}},"removeSocket");function zK(t,e){var r=this;ql.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=CP({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=FLe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(zK,"createSecureSocket");function VK(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(VK,"toOptions");function CP(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var i=Object.keys(n),s=0,a=i.length;s<a;++s){var c=i[s];n[c]!==void 0&&(t[c]=n[c])}}return t}o(CP,"mergeOptions");var td;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?td=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):td=o(function(){},"debug");RA.debug=td});var _A=g((x3t,jK)=>{jK.exports=$K()});var cr=g((v3t,WK)=>{WK.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var xt=g((N3t,E7)=>{"use strict";var JK=Symbol.for("undici.error.UND_ERR"),lr=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[JK]===!0}[JK]=!0},YK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bP=class extends lr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[YK]===!0}[YK]=!0},KK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),wP=class extends lr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KK]===!0}[KK]=!0},XK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),IP=class extends lr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[XK]===!0}[XK]=!0},ZK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SP=class extends lr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(DX,"isValidHeaderValue");function oUe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(zMe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(oUe,"setRequestReferrerPolicyOnRedirect");function aUe(){return"allowed"}o(aUe,"crossOriginResourcePolicyCheck");function cUe(){return"success"}o(cUe,"corsCheck");function lUe(){return"success"}o(lUe,"TAOCheck");function uUe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(uUe,"appendFetchMetadata");function dUe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&mO(t.origin)&&!mO(AC(t))&&(e=null);break;case"same-origin":_B(t,AC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(dUe,"appendRequestOriginHeader");function UA(t,e){return t}o(UA,"coarsenTime");function fUe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:UA(t.domainLookupStartTime,r),domainLookupEndTime:UA(t.domainLookupEndTime,r),connectionStartTime:UA(t.connectionStartTime,r),connectionEndTime:UA(t.connectionEndTime,r),secureConnectionStartTime:UA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(fUe,"clampAndCoarsenConnectionTimingInfo");function hUe(t){return UA(JMe.now(),t)}o(hUe,"coarsenedSharedCurrentTime");function pUe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(pUe,"createOpaqueTimingInfo");function QX(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(QX,"makePolicyContainer");function AUe(t){return{referrerPolicy:t.referrerPolicy}}o(AUe,"clonePolicyContainer");function mUe(t){let e=t.referrerPolicy;Jf(e);let r=null;if(t.referrer==="client"){let c=vX();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=AO(r),i=AO(r,!0);n.toString().length>4096&&(n=i);let s=_B(t,n),a=pC(n)&&!pC(t.url);switch(e){case"origin":return i??AO(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=AC(t);return _B(n,c)?n:pC(n)&&!pC(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(mUe,"determineRequestsReferrer");function AO(t,e){return Jf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(AO,"stripURLForReferrer");function pC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(pC,"isURLPotentiallyTrustworthy");function gUe(t,e){if(RB===void 0)return!0;let r=kX(e);if(r==="no metadata"||r.length===0)return!0;let n=EUe(r),i=CUe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=RB.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),bUe(l,c))return!0}return!1}o(gUe,"bytesMatch");var yUe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kX(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=yUe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();RX.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(kX,"parseMetadata");function EUe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(EUe,"getStrongestMetadata");function CUe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(CUe,"filterMetadataListByAlgorithm");function bUe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(bUe,"compareBase64Mixed");function wUe(t){}o(wUe,"tryUpgradeReque Line truncated
`);function iqe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(iqe,"isAsciiString");function sqe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(sqe,"validateBoundary");function oqe(t,e){DB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&QB(t,rqe,s)||s.position===t.length-4&&QB(t,nqe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=aqe(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let m=t.indexOf(n.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",iqe(d)||(d=""),p=new eqe([h],u,{type:d})):p=JUe(Buffer.from(h)),DB(jX(l)),DB(typeof p=="string"&&jX(p)||KUe(p)),i.push(XUe(l,p,u))}}o(oqe,"multipartFormDataParser");function aqe(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=GA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=IO(a,!0,!0,c=>c===9||c===32),!YUe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,GA(c=>c===32||c===9,t,e),WUe(a)){case"content-disposition":{if(r=n=null,!QB(t,tqe,e)||(e.position+=17,r=YX(t,e),r===null))return"failure";if(QB(t,JX,e)){let c=e.position+JX.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=YX(t,e),n===null))return"failure"}break}case"content-type":{let c=GA(l=>l!==10&&l!==13,t,e);c=IO(c,!1,!0,l=>l===9||l===32),i=WX(c);break}case"content-transfer-encoding":{let c=GA(l=>l!==10&&l!==13,t,e);c=IO(c,!1,!0,l=>l===9||l===32),s=WX(c);break}default:GA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(aqe,"parseMultipartFormDataHeaders");function YX(t,e){DB(t[e.position-1]===34);let r=GA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(YX,"parseMultipartFormDataName");function GA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(GA,"collectASequenceOfBytes");function IO(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i<t.length&&n(t[i]);)i++;if(r)for(;s>0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(IO,"removeChars");function QB(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(QB,"bufferStartsWith");KX.exports={multipartFormDataParser:oqe,validateBoundary:sqe}});var VA=g((pGt,cZ)=>{"use strict";var yC=st(),{ReadableStreamFrom:cqe,isBlobLike:ZX,isReadableStreamLike:lqe,readableStreamClose:uqe,createDeferredPromise:dqe,fullyReadBody:fqe,extractMimeType:hqe,utf8DecodeBytes:rZ}=xs(),{FormData:eZ}=gC(),{kState:zA}=rd(),{webidl:pqe}=qn(),{Blob:Aqe}=require("node:buffer"),SO=require("node:assert"),{isErrored:nZ,isDisturbed:mqe}=require("node:stream"),{isArrayBuffer:gqe}=require("node:util/types"),{serializeAMimeType:yqe}=Yi(),{multipartFormDataParser:Eqe}=XX(),BO;try{let t=require("node:crypto");BO=o(e=>t.randomInt(0,e),"random")}catch{BO=o(t=>Math.floor(Math.random(t)),"random")}var kB=new TextEncoder;function Cqe(){}o(Cqe,"noop");var iZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sZ;iZ&&(sZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!mqe(e)&&!nZ(e)&&e.cancel("Response object has been garbage collected").catch(Cqe)}));function oZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ZX(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?kB.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>uqe(l))},start(){},type:"bytes"}),SO(lqe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(gqe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(yC.isFormDataLike(t)){let l=`----formdata-undici-0${`${BO(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),f=o(E=>E.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let A=!1;for(let[E,y]of t)if(typeof y=="string"){let C=wx.encode(u+`; name="${d(f(E))}"\r
`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let m=!1;for(let[E,y]of t)if(typeof y=="string"){let C=kB.encode(u+`; name="${d(f(E))}"\r
\r
${f(y)}\r
`);h.push(C),s+=C.byteLength}else{let C=wx.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
`);h.push(C),s+=C.byteLength}else{let C=kB.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:A=!0}let g=wx.encode(`--${l}--\r
`);h.push(g),s+=g.byteLength,A&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(Pne(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(kb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Z8e(t)}if((typeof i=="string"||kb.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Mne(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(Gne,"extractBody");function fVe(t,e=!1){return t instanceof ReadableStream&&(kM(!kb.isDisturbed(t),"The body has already been consumed."),kM(!t.locked,"The stream is locked.")),Gne(t,e)}o(fVe,"safelyExtractBody");function hVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(hVe,"cloneBody");function pVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(pVe,"throwIfAborted");function mVe(t){return{blob(){return MA(this,r=>{let n=Lne(this);return n===null?n="":n&&(n=lVe(n)),new oVe([r],{type:n})},t)},arrayBuffer(){return MA(this,r=>new Uint8Array(r).buffer,t)},text(){return MA(this,Fne,t)},json(){return MA(this,gVe,t)},formData(){return MA(this,r=>{let n=Lne(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=uVe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new One;return s[UA]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new One;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return MA(this,r=>new Uint8Array(r),t)}}}o(mVe,"bodyMixinMethods");function AVe(t){Object.assign(t.prototype,mVe(t))}o(AVe,"mixinBody");async function MA(t,e,r){if(sVe.brandCheck(t,r),Hne(t))throw new TypeError("Body is unusable: Body has already been read");pVe(t[UA]);let n=rVe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[UA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await nVe(t[UA].body,s,i),n.promise)}o(MA,"consumeBody");function Hne(t){let e=t[UA].body;return e!=null&&(e.stream.locked||kb.isDisturbed(e.stream))}o(Hne,"bodyUnusable");function gVe(t){return JSON.parse(Fne(t))}o(gVe,"parseJSONFromBytes");function Lne(t){let e=t[UA].headersList,r=iVe(e);return r==="failure"?null:r}o(Lne,"bodyMimeType");Vne.exports={extractBody:Gne,safelyExtractBody:fVe,cloneBody:hVe,mixinBody:AVe,streamRegistry:qne,hasFinalizationRegistry:Une,bodyUnusable:Hne}});var oie=m((aWt,sie)=>{"use strict";var Ne=require("node:assert"),Qe=at(),{channels:zne}=_A(),OM=gM(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:jne,RequestAbortedError:eie,InvalidArgumentError:yVe,HeadersTimeoutError:EVe,HeadersOverflowError:CVe,SocketError:GA,InformationalError:HA,BodyTimeoutError:bVe,HTTPParserError:IVe,ResponseExceededMaxSizeError:wVe}=Rt(),{kUrl:tie,kReset:gs,kClient:xx,kParser:tr,kBlocking:Lb,kRunning:mn,kPending:rie,kSize:$ne,kWriting:zd,kQueue:Ga,kNoRef:Pb,kKeepAliveDefaultTimeout:SVe,kHostHeader:BVe,kPendingIdx:vVe,kRunningIdx:Lo,kError:qi,kPipelining:_x,kSocket:zh,kKeepAliveTimeoutValue:Rx,kMaxHeadersSize:LM,kKeepAliveMaxTimeout:xVe,kKeepAliveTimeoutThreshold:_Ve,kHeadersTimeout:NVe,kBodyTimeout:RVe,kStrictContentLength:UM,kMaxRequests:Wne,kCounter:TVe,kMaxResponseSize:DVe,kOnError:Jne,kResume:_u,kHTTPContext:nie}=mr(),$s=qre(),Yne=Buffer.alloc(0),Sx=Buffer[Symbol.species],Bx=Qe.addListener,QVe=Qe.removeAllListeners,jh=Symbol("kIdleSocketValidation"),VA=Symbol("kIdleSocketValidationTimeout"),VM=Symbol("kSocketUsed"),FM;async function kVe(){let t=process.env.JEST_WORKER_ID?CM():void 0,e;try{e=await WebAssembly.compile(Vre())}catch{e=await WebAssembly.compile(t||CM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{Ne(Dr.ptr===r);let s=n-Pc+kc.byteOffset;return Dr.onStatus(new Sx(kc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(Ne(Dr.ptr===r),Dr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{Ne(Dr.ptr===r);let s=n-Pc+kc.byteOffset;return Dr.onHeaderField(new Sx(kc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{Ne(Dr.ptr===r);let s=n-Pc+kc.byteOffset;return Dr.onHeaderValue(new Sx(kc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(Ne(Dr.ptr===r),Dr.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{Ne(Dr.ptr= Line truncated
`;if(typeof i=="string"?g+=`host: ${i}\r
`:g+=t[BVe],s?g+=`connection: upgrade\r
`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:m=!0}let A=kB.encode(`--${l}--\r
`);h.push(A),s+=A.byteLength,m&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(ZX(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(yC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:cqe(t)}if((typeof i=="string"||yC.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!nZ(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(oZ,"extractBody");function bqe(t,e=!1){return t instanceof ReadableStream&&(SO(!yC.isDisturbed(t),"The body has already been consumed."),SO(!t.locked,"The stream is locked.")),oZ(t,e)}o(bqe,"safelyExtractBody");function wqe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(wqe,"cloneBody");function Iqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Iqe,"throwIfAborted");function Sqe(t){return{blob(){return HA(this,r=>{let n=tZ(this);return n===null?n="":n&&(n=yqe(n)),new Aqe([r],{type:n})},t)},arrayBuffer(){return HA(this,r=>new Uint8Array(r).buffer,t)},text(){return HA(this,rZ,t)},json(){return HA(this,xqe,t)},formData(){return HA(this,r=>{let n=tZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Eqe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new eZ;return s[zA]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new eZ;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return HA(this,r=>new Uint8Array(r),t)}}}o(Sqe,"bodyMixinMethods");function Bqe(t){Object.assign(t.prototype,Sqe(t))}o(Bqe,"mixinBody");async function HA(t,e,r){if(pqe.brandCheck(t,r),aZ(t))throw new TypeError("Body is unusable: Body has already been read");Iqe(t[zA]);let n=dqe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[zA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await fqe(t[zA].body,s,i),n.promise)}o(HA,"consumeBody");function aZ(t){let e=t[zA].body;return e!=null&&(e.stream.locked||yC.isDisturbed(e.stream))}o(aZ,"bodyUnusable");function xqe(t){return JSON.parse(rZ(t))}o(xqe,"parseJSONFromBytes");function tZ(t){let e=t[zA].headersList,r=hqe(e);return r==="failure"?null:r}o(tZ,"bodyMimeType");cZ.exports={extractBody:oZ,safelyExtractBody:bqe,cloneBody:wqe,mixinBody:Bqe,streamRegistry:sZ,hasFinalizationRegistry:iZ,bodyUnusable:aZ}});var SZ=g((mGt,IZ)=>{"use strict";var ve=require("node:assert"),_e=st(),{channels:lZ}=DA(),xO=aO(),{RequestContentLengthMismatchError:Yf,ResponseContentLengthMismatchError:uZ,RequestAbortedError:yZ,InvalidArgumentError:vqe,HeadersTimeoutError:Nqe,HeadersOverflowError:Rqe,SocketError:$A,InformationalError:jA,BodyTimeoutError:_qe,HTTPParserError:Tqe,ResponseExceededMaxSizeError:Dqe}=xt(),{kUrl:EZ,kReset:Ki,kClient:FB,kParser:Jt,kBlocking:bC,kRunning:Xr,kPending:CZ,kSize:dZ,kWriting:nd,kQueue:pa,kNoRef:EC,kKeepAliveDefaultTimeout:Qqe,kHostHeader:kqe,kPendingIdx:Pqe,kRunningIdx:ho,kError:Ii,kPipelining:MB,kSocket:Kf,kKeepAliveTimeoutValue:qB,kMaxHeadersSize:vO,kKeepAliveMaxTimeout:Oqe,kKeepAliveTimeoutThreshold:Lqe,kHeadersTimeout:Fqe,kBodyTimeout:Mqe,kStrictContentLength:_O,kMaxRequests:fZ,kCounter:Uqe,kMaxResponseSize:qqe,kOnError:hZ,kResume:jl,kHTTPContext:bZ}=cr(),vs=sX(),pZ=Buffer.alloc(0),PB=Buffer[Symbol.species],OB=_e.addListener,Gqe=_e.removeAllListeners,Xf=Symbol("kIdleSocketValidation"),WA=Symbol("kIdleSocketValidationTimeout"),kO=Symbol("kSocketUsed"),NO;async function Hqe(){let t=process.env.JEST_WORKER_ID?uO():void 0,e;try{e=await WebAssembly.compile(cX())}catch{e=await WebAssembly.compile(t||uO())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onStatus(new PB(sc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(ve(Ir.ptr===r),Ir.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onHeaderField(new PB(sc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;return Ir.onHeaderValue(new PB(sc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(ve(Ir.ptr===r),Ir.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-oc+sc.byteOffset;retu Line truncated
`;if(typeof i=="string"?A+=`host: ${i}\r
`:A+=t[kqe],s?A+=`connection: upgrade\r
upgrade: ${s}\r
`:t[_x]&&!p[gs]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let E=0;E<u.length;E+=2){let y=u[E+0],C=u[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${y}: ${C[I]}\r
`;else g+=`${y}: ${C}\r
`}return zne.sendHeaders.hasSubscribers&&zne.sendHeaders.publish({request:e,headers:g,socket:p}),!l||h===0?Xne(A,null,t,e,p,d,g,f):Qe.isBuffer(l)?Xne(A,l,t,e,p,d,g,f):Qe.isBlobLike(l)?typeof l.stream=="function"?Zne(A,l.stream(),t,e,p,d,g,f):GVe(A,l,t,e,p,d,g,f):Qe.isStream(l)?qVe(A,l,t,e,p,d,g,f):Qe.isIterable(l)?Zne(A,l,t,e,p,d,g,f):Ne(!1),!0}o(UVe,"writeH1");function qVe(t,e,r,n,i,s,a,c){Ne(s!==0||r[mn]===0,"stream body cannot be pipelined");let l=!1,u=new Tx({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(g){Qe.destroy(this,g)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let A=new eie;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!l){if(l=!0,Ne(i.destroyed||i[zd]&&r[mn]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!A)try{u.end()}catch(g){A=g}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Qe.destroy(e,A):Qe.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(qVe,"writeStream");function Xne(t,e,r,n,i,s,a,c){try{e?Qe.isBuffer(e)&&(Ne(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r
`:t[MB]&&!p[Ki]?A+=`connection: keep-alive\r
`:A+=`connection: close\r
`,Array.isArray(u))for(let E=0;E<u.length;E+=2){let y=u[E+0],C=u[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)A+=`${y}: ${C[w]}\r
`;else A+=`${y}: ${C}\r
`}return lZ.sendHeaders.hasSubscribers&&lZ.sendHeaders.publish({request:e,headers:A,socket:p}),!l||h===0?mZ(m,null,t,e,p,d,A,f):_e.isBuffer(l)?mZ(m,l,t,e,p,d,A,f):_e.isBlobLike(l)?typeof l.stream=="function"?gZ(m,l.stream(),t,e,p,d,A,f):Kqe(m,l,t,e,p,d,A,f):_e.isStream(l)?Yqe(m,l,t,e,p,d,A,f):_e.isIterable(l)?gZ(m,l,t,e,p,d,A,f):ve(!1),!0}o(Jqe,"writeH1");function Yqe(t,e,r,n,i,s,a,c){ve(s!==0||r[Xr]===0,"stream body cannot be pipelined");let l=!1,u=new GB({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(A){_e.destroy(this,A)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let m=new yZ;queueMicrotask(()=>p(m))}},"onClose"),p=o(function(m){if(!l){if(l=!0,ve(i.destroyed||i[nd]&&r[Xr]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?_e.destroy(e,m):_e.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(Yqe,"writeStream");function mZ(t,e,r,n,i,s,a,c){try{e?_e.isBuffer(e)&&(ve(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r
\r
`,"latin1"),i.write(e),i.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(i[gs]=!0)):s===0?i.write(`${a}content-length: 0\r
`,"latin1"),i.write(e),i.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(i[Ki]=!0)):s===0?i.write(`${a}content-length: 0\r
\r
`,"latin1"):(Ne(s===null,"no body must not have content length"),i.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[_u]()}catch(l){t(l)}}o(Xne,"writeBuffer");async function GVe(t,e,r,n,i,s,a,c){Ne(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Vh;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r
`,"latin1"):(ve(s===null,"no body must not have content length"),i.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[jl]()}catch(l){t(l)}}o(mZ,"writeBuffer");async function Kqe(t,e,r,n,i,s,a,c){ve(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Yf;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r
\r
`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[gs]=!0),r[_u]()}catch(l){t(l)}}o(GVe,"writeBlob");async function Zne(t,e,r,n,i,s,a,c){Ne(s!==0||r[mn]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{Ne(l===null),i[qi]?p(i[qi]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new Tx({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[qi])throw i[qi];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(Zne,"writeIterable");var Tx=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[zd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[qi])throw r[qi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[UM])throw new Vh;process.emitWarning(new Vh)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[gs]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[Ki]=!0),r[jl]()}catch(l){t(l)}}o(Kqe,"writeBlob");async function gZ(t,e,r,n,i,s,a,c){ve(s!==0||r[Xr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{ve(l===null),i[Ii]?p(i[Ii]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new GB({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Ii])throw i[Ii];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(gZ,"writeIterable");var GB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[nd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Ii])throw r[Ii];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[_O])throw new Yf;process.emitWarning(new Yf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Ki]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${i}\r
\r
`,"latin1")),i===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[tr].timeout&&r[tr].timeoutType===zA&&r[tr].timeout.refresh&&r[tr].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:i,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[zd]=!1,e[qi])throw e[qi];if(!e.destroyed){if(i===0?s?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[Jt].timeout&&r[Jt].timeoutType===JA&&r[Jt].timeout.refresh&&r[Jt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:i,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[nd]=!1,e[Ii])throw e[Ii];if(!e.destroyed){if(i===0?s?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&i!==r){if(n[UM])throw new Vh;process.emitWarning(new Vh)}e[tr].timeout&&e[tr].timeoutType===zA&&e[tr].timeout.refresh&&e[tr].timeout.refresh(),n[_u]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[zd]=!1,e&&(Ne(n[mn]<=1,"pipeline should only contain this request"),i(e))}};sie.exports=OVe});var pie=m((lWt,hie)=>{"use strict";var Fo=require("node:assert"),{pipeline:HVe}=require("node:stream"),pt=at(),{RequestContentLengthMismatchError:zM,RequestAbortedError:aie,SocketError:Fb,InformationalError:jM}=Rt(),{kUrl:Dx,kReset:kx,kClient:jA,kRunning:Px,kPending:VVe,kQueue:jd,kPendingIdx:$M,kRunningIdx:Ha,kError:za,kSocket:qn,kStrictContentLength:zVe,kOnError:WM,kMaxConcurrentStreams:fie,kHTTP2Session:Va,kResume:$d,kSize:jVe,kHTTPContext:$Ve}=mr(),Nu=Symbol("open streams"),cie,lie=!1,Qx;try{Qx=require("node:http2")}catch{Qx={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:WVe,HTTP2_HEADER_METHOD:JVe,HTTP2_HEADER_PATH:YVe,HTTP2_HEADER_SCHEME:KVe,HTTP2_HEADER_CONTENT_LENGTH:XVe,HTTP2_HEADER_EXPECT:ZVe,HTTP2_HEADER_STATUS:eze}}=Qx;function tze(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(tze,"parseH2Headers");async function rze(t,e){t[qn]=e,lie||(lie=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Qx.connect(t[Dx],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[fie]});r[Nu]=0,r[jA]=t,r[qn]=e,pt.addListener(r,"error",ize),pt.addListener(r,"frameError",sze),pt.addListener(r,"end",oze),pt.addListener(r,"goaway",aze),pt.addListener(r,"close",function(){let{[jA]:i}=this,{[qn]:s}=i,a=this[qn][za]||this[za]||new Fb("closed",pt.getSocketInfo(s));if(i[Va]=null,i.destroyed){Fo(i[VVe]===0);let c=i[jd].splice(i[Ha]);for(let l=0;l<c.length;l++){let u=c[l];pt.errorRequest(i,u,a)}}}),r.unref(),t[Va]=r,e[Va]=r,pt.addListener(e,"error",function(i){Fo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[za]=i,this[jA][WM](i)}),pt.addListener(e,"end",function(){pt.destroy(this,new Fb("other side closed",pt.getSocketInfo(this)))}),pt.addListener(e,"close",function(){let i=this[za]||new Fb("closed",pt.getSocketInfo(this));t[qn]=null,this[Va]!=null&&this[Va].destroy(i),t[$M]=t[Ha],Fo(t[Px]===0),t.emit("disconnect",t[Dx],[t],i),t[$d]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return lze(t,...i)},resume(){nze(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(rze,"connectH2");function nze(t){let e=t[qn];e?.destroyed===!1&&(t[jVe]===0&&t[fie]===0?(e.unref(),t[Va].unref()):(e.ref(),t[Va].ref()))}o(nze,"resumeH2");function ize(t){Fo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qn][za]=t,this[jA][WM](t)}o(ize,"onHttp2SessionError");function sze(t,e,r){if(r===0){let n=new jM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[qn][za]=n,this[jA][WM](n)}}o(sze,"onHttp2FrameError");function oze(){let t=new Fb("other side closed",pt.getSocketInfo(this[qn]));this.destroy(t),pt.destroy(this[qn],t)}o(oze,"onHttp2SessionEnd");function aze(t){let e=this[za]||new Fb(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this)),r=this[jA];if(r[qn]=null,r[$Ve]=null,this[Va]!=null&&(this[Va].destroy(e),this[Va]=null),pt.destroy(this[qn],e),r[Ha]<r[jd].length){let n=r[jd][r[Ha]];r[jd][r[Ha]++]=null,pt.errorRequest(r,n,e),r[$M]=r[Ha]}Fo(r[Px]===0),r.emit("disconnect",r[Dx],[r],e),r[$d]()}o(aze,"onHTTP2GoAway");function cze(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(cze,"shouldSendContentLength");function lze(t,e){let r=t[Va],{method:n,path:i,host:s,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return pt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let B=0;B<u.length;B+=2){let Q=u[B+0],M=u[B+1];if(Array.isArray(M))for(let x=0;x<M.length;x++)f[Q]?f[Q]+=`,${M[x]}`:f[Q]=M[x];else f[Q]=M}let h,{hostname:p,port:A}=t[Dx];f[WVe]=s||`${p}${A?`:${A}`:""}`,f[JVe]=n;let g=o(B=>{e.aborted||e.completed||(B=B||new aie,pt.errorRequest(t,e,B),h!=null&&pt.destroy(h,B),pt.destroy(d,B),t[jd][t[Ha]++]=null,t[$d]())},"abort");try{e.onConnect(g)}catch(B){pt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[Nu],t[jd][t[Ha]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[Nu],t[jd][t[Ha]++]=null}),h.once("close",()=>{r[Nu]-=1,r[Nu]===0&&r.unref()}),!0;f[YVe]=i,f[KVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=pt.bodyLength(d);if(pt.isFormDataLike(d)){cie??=qA().extractBody;let[B,Q]=cie(d);f["content-type"]=Q,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),cze(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[zVe])return pt.err Line truncated
`,this[Pze]=l??3e5,this[kze]=i??3e5,this[Oze]=C??!0,this[Lze]=B,this[XM]=M,this[Jd]=null,this[Gze]=j>-1?j:-1,this[Vze]=H??100,this[Kr]=null,this[ja]=[],this[Tu]=0,this[$a]=0,this[Gb]=te=>eU(this,te),this[Hze]=te=>vie(this,te)}get pipelining(){return this[Mx]}set pipelining(e){this[Mx]=e,this[Gb](!0)}get[zb](){return this[ja].length-this[$a]}get[Vb](){return this[$a]-this[Tu]}get[Hb](){return this[ja].length-this[Tu]}get[xze](){return!!this[Kr]&&!this[WA]&&!this[Kr].destroyed}get[KM](){return!!(this[Kr]?.busy(null)||this[Hb]>=(Bie(this)||1)||this[zb]>0)}[vze](e){xie(this),this.once("connect",e)}[qze](e,r){let n=e.origin||this[Lc].origin,i=new Cze(n,e,r);return this[ja].push(i),this[Wh]||($h.bodyLength(i.body)==null&&$h.isIterable(i.body)?(this[Wh]=1,queueMicrotask(()=>eU(this))):this[Gb](!0)),this[Wh]&&this[Yd]!==2&&this[KM]&&(this[Yd]=2),this[Yd]<2}async[Mze](){return new Promise(e=>{this[Hb]?this[Jd]=e:e(null)})}async[Uze](e){return new Promise(r=>{let n=this[ja].splice(this[$a]);for(let s=0;s<n.length;s++){let a=n[s];$h.errorRequest(this,a,e)}let i=o(()=>{this[Jd]&&(this[Jd](),this[Jd]=null),r(null)},"callback");this[Kr]?(this[Kr].destroy(e,i),this[Kr]=null):queueMicrotask(i),this[Gb]()})}},$ze=Fx();function vie(t,e){if(t[Vb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ru(t[$a]===t[Tu]);let r=t[ja].splice(t[Tu]);for(let n=0;n<r.length;n++){let i=r[n];$h.errorRequest(t,i,e)}Ru(t[Hb]===0)}}o(vie,"onError");async function xie(t){Ru(!t[WA]),Ru(!t[Kr]);let{host:e,hostname:r,protocol:n,port:i}=t[Lc];if(r[0]==="["){let s=r.indexOf("]");Ru(s!==-1);let a=r.substring(1,s);Ru(Sie.isIP(a)),r=a}t[WA]=!0,$A.beforeConnect.hasSubscribers&&$A.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Kr]?.version,servername:t[Wd],localAddress:t[qb]},connector:t[Ub]});try{let s=await new Promise((a,c)=>{t[Ub]({host:e,hostname:r,protocol:n,port:i,servername:t[Wd],localAddress:t[qb]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){$h.destroy(s.on("error",Iie),new wze);return}Ru(s);try{t[Kr]=s.alpnProtocol==="h2"?await jze(t,s):await zze(t,s)}catch(a){throw s.destroy().on("error",Iie),a}t[WA]=!1,s[Fze]=0,s[XM]=t[XM],s[Bze]=t,s[Nze]=null,$A.connected.hasSubscribers&&$A.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Kr]?.version,servername:t[Wd],localAddress:t[qb]},connector:t[Ub],socket:s}),t.emit("connect",t[Lc],[t])}catch(s){if(t.destroyed)return;if(t[WA]=!1,$A.connectError.hasSubscribers&&$A.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Kr]?.version,servername:t[Wd],localAddress:t[qb]},connector:t[Ub],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ru(t[Vb]===0);t[zb]>0&&t[ja][t[$a]].servername===t[Wd];){let a=t[ja][t[$a]++];$h.errorRequest(t,a,s)}else vie(t,s);t.emit("connectionError",t[Lc],[t],s)}t[Gb]()}o(xie,"connect");function wie(t){t[Yd]=0,t.emit("drain",t[Lc],[t])}o(wie,"emitDrain");function eU(t,e){t[Wh]!==2&&(t[Wh]=2,Wze(t,e),t[Wh]=0,t[Tu]>256&&(t[ja].splice(0,t[Tu]),t[$a]-=t[Tu],t[Tu]=0))}o(eU,"resume");function Wze(t,e){for(;;){if(t.destroyed){Ru(t[zb]===0);return}if(t[Jd]&&!t[Hb]){t[Jd](),t[Jd]=null;return}if(t[Kr]&&t[Kr].resume(),t[KM])t[Yd]=2;else if(t[Yd]===2){e?(t[Yd]=1,queueMicrotask(()=>wie(t))):wie(t);continue}if(t[zb]===0||t[Vb]>=(Bie(t)||1))return;let r=t[ja][t[$a]];if(t[Lc].protocol==="https:"&&t[Wd]!==r.servername){if(t[Vb]>0)return;t[Wd]=r.servername,t[Kr]?.destroy(new Ize("servername changed"),()=>{t[Kr]=null,eU(t)})}if(t[WA])return;if(!t[Kr]){xie(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[$a]++:t[ja].splice(t[$a],1)}}o(Wze,"_resume");_ie.exports=ZM});var tU=m((yWt,Nie)=>{"use strict";var Ux=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Nie.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Ux}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Ux),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Tie=m((CWt,Rie)=>{var{kFree:Jze,kConnected:Yze,kPending:Kze,kQueued:Xze,kRunning:Zze,kSize:e6e}=mr(),Jh=Symbol("pool"),rU=class{static{o(this,"PoolStats")}constructor(e){this[Jh]=e}get connected(){return this[Jh][Yze]}get free(){return this[Jh][Jze]}get pending(){return this[Jh][Kze]}get queued(){return this[Jh][Xze]}get running(){return this[Jh][Zze]}get size(){return this[Jh][e6e]}};Rie.exports=rU});var cU=m((IWt,qie)=>{"use strict";var t6e=DA(),r6e=tU(),{kConnected:nU,kSize:Die,kRunning:Qie,kPending:kie,kQueued:jb,kBusy:n6e,kFree:i6e,kUrl:s6e,kClose:o6e,kDestroy:a6e,kDispatch:c6e}=mr( Line truncated
`,"latin1"),r!==null&&i!==r){if(n[_O])throw new Yf;process.emitWarning(new Yf)}e[Jt].timeout&&e[Jt].timeoutType===JA&&e[Jt].timeout.refresh&&e[Jt].timeout.refresh(),n[jl]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[nd]=!1,e&&(ve(n[Xr]<=1,"pipeline should only contain this request"),i(e))}};IZ.exports=Vqe});var DZ=g((yGt,TZ)=>{"use strict";var po=require("node:assert"),{pipeline:Xqe}=require("node:stream"),dt=st(),{RequestContentLengthMismatchError:PO,RequestAbortedError:BZ,SocketError:wC,InformationalError:OO}=xt(),{kUrl:HB,kReset:VB,kClient:YA,kRunning:$B,kPending:Zqe,kQueue:id,kPendingIdx:LO,kRunningIdx:Aa,kError:ga,kSocket:Bn,kStrictContentLength:e3e,kOnError:FO,kMaxConcurrentStreams:_Z,kHTTP2Session:ma,kResume:sd,kSize:t3e,kHTTPContext:r3e}=cr(),Wl=Symbol("open streams"),xZ,vZ=!1,zB;try{zB=require("node:http2")}catch{zB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n3e,HTTP2_HEADER_METHOD:i3e,HTTP2_HEADER_PATH:s3e,HTTP2_HEADER_SCHEME:o3e,HTTP2_HEADER_CONTENT_LENGTH:a3e,HTTP2_HEADER_EXPECT:c3e,HTTP2_HEADER_STATUS:l3e}}=zB;function u3e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(u3e,"parseH2Headers");async function d3e(t,e){t[Bn]=e,vZ||(vZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zB.connect(t[HB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[_Z]});r[Wl]=0,r[YA]=t,r[Bn]=e,dt.addListener(r,"error",h3e),dt.addListener(r,"frameError",p3e),dt.addListener(r,"end",A3e),dt.addListener(r,"goaway",m3e),dt.addListener(r,"close",function(){let{[YA]:i}=this,{[Bn]:s}=i,a=this[Bn][ga]||this[ga]||new wC("closed",dt.getSocketInfo(s));if(i[ma]=null,i.destroyed){po(i[Zqe]===0);let c=i[id].splice(i[Aa]);for(let l=0;l<c.length;l++){let u=c[l];dt.errorRequest(i,u,a)}}}),r.unref(),t[ma]=r,e[ma]=r,dt.addListener(e,"error",function(i){po(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ga]=i,this[YA][FO](i)}),dt.addListener(e,"end",function(){dt.destroy(this,new wC("other side closed",dt.getSocketInfo(this)))}),dt.addListener(e,"close",function(){let i=this[ga]||new wC("closed",dt.getSocketInfo(this));t[Bn]=null,this[ma]!=null&&this[ma].destroy(i),t[LO]=t[Aa],po(t[$B]===0),t.emit("disconnect",t[HB],[t],i),t[sd]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return y3e(t,...i)},resume(){f3e(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(d3e,"connectH2");function f3e(t){let e=t[Bn];e?.destroyed===!1&&(t[t3e]===0&&t[_Z]===0?(e.unref(),t[ma].unref()):(e.ref(),t[ma].ref()))}o(f3e,"resumeH2");function h3e(t){po(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bn][ga]=t,this[YA][FO](t)}o(h3e,"onHttp2SessionError");function p3e(t,e,r){if(r===0){let n=new OO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bn][ga]=n,this[YA][FO](n)}}o(p3e,"onHttp2FrameError");function A3e(){let t=new wC("other side closed",dt.getSocketInfo(this[Bn]));this.destroy(t),dt.destroy(this[Bn],t)}o(A3e,"onHttp2SessionEnd");function m3e(t){let e=this[ga]||new wC(`HTTP/2: "GOAWAY" frame received with code ${t}`,dt.getSocketInfo(this)),r=this[YA];if(r[Bn]=null,r[r3e]=null,this[ma]!=null&&(this[ma].destroy(e),this[ma]=null),dt.destroy(this[Bn],e),r[Aa]<r[id].length){let n=r[id][r[Aa]];r[id][r[Aa]++]=null,dt.errorRequest(r,n,e),r[LO]=r[Aa]}po(r[$B]===0),r.emit("disconnect",r[HB],[r],e),r[sd]()}o(m3e,"onHTTP2GoAway");function g3e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(g3e,"shouldSendContentLength");function y3e(t,e){let r=t[ma],{method:n,path:i,host:s,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return dt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let B=0;B<u.length;B+=2){let P=u[B+0],U=u[B+1];if(Array.isArray(U))for(let N=0;N<U.length;N++)f[P]?f[P]+=`,${U[N]}`:f[P]=U[N];else f[P]=U}let h,{hostname:p,port:m}=t[HB];f[n3e]=s||`${p}${m?`:${m}`:""}`,f[i3e]=n;let A=o(B=>{e.aborted||e.completed||(B=B||new BZ,dt.errorRequest(t,e,B),h!=null&&dt.destroy(h,B),dt.destroy(d,B),t[id][t[Aa]++]=null,t[sd]())},"abort");try{e.onConnect(A)}catch(B){dt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[Wl],t[id][t[Aa]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[Wl],t[id][t[Aa]++]=null}),h.once("close",()=>{r[Wl]-=1,r[Wl]===0&&r.unref()}),!0;f[s3e]=i,f[o3e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=dt.bodyLength(d);if(dt.isFormDataLike(d)){xZ??=VA().extractBody;let[B,P]=xZ(d);f["content-type"]=P,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),g3e(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[e3e])return dt.errorRequest(t,e, Line truncated
`,this[z3e]=l??3e5,this[H3e]=i??3e5,this[V3e]=C??!0,this[$3e]=B,this[GO]=U,this[ad]=null,this[K3e]=$>-1?$:-1,this[Z3e]=V??100,this[Fr]=null,this[ya]=[],this[Yl]=0,this[Ea]=0,this[xC]=de=>zO(this,de),this[X3e]=de=>zZ(this,de)}get pipelining(){return this[YB]}set pipelining(e){this[YB]=e,this[xC](!0)}get[RC](){return this[ya].length-this[Ea]}get[NC](){return this[Ea]-this[Yl]}get[vC](){return this[ya].length-this[Yl]}get[O3e](){return!!this[Fr]&&!this[XA]&&!this[Fr].destroyed}get[qO](){return!!(this[Fr]?.busy(null)||this[vC]>=(HZ(this)||1)||this[RC]>0)}[P3e](e){VZ(this),this.once("connect",e)}[Y3e](e,r){let n=e.origin||this[cc].origin,i=new R3e(n,e,r);return this[ya].push(i),this[eh]||(Zf.bodyLength(i.body)==null&&Zf.isIterable(i.body)?(this[eh]=1,queueMicrotask(()=>zO(this))):this[xC](!0)),this[eh]&&this[cd]!==2&&this[qO]&&(this[cd]=2),this[cd]<2}async[W3e](){return new Promise(e=>{this[vC]?this[ad]=e:e(null)})}async[J3e](e){return new Promise(r=>{let n=this[ya].splice(this[Ea]);for(let s=0;s<n.length;s++){let a=n[s];Zf.errorRequest(this,a,e)}let i=o(()=>{this[ad]&&(this[ad](),this[ad]=null),r(null)},"callback");this[Fr]?(this[Fr].destroy(e,i),this[Fr]=null):queueMicrotask(i),this[xC]()})}},rGe=JB();function zZ(t,e){if(t[NC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jl(t[Ea]===t[Yl]);let r=t[ya].splice(t[Yl]);for(let n=0;n<r.length;n++){let i=r[n];Zf.errorRequest(t,i,e)}Jl(t[vC]===0)}}o(zZ,"onError");async function VZ(t){Jl(!t[XA]),Jl(!t[Fr]);let{host:e,hostname:r,protocol:n,port:i}=t[cc];if(r[0]==="["){let s=r.indexOf("]");Jl(s!==-1);let a=r.substring(1,s);Jl(GZ.isIP(a)),r=a}t[XA]=!0,KA.beforeConnect.hasSubscribers&&KA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[od],localAddress:t[BC]},connector:t[SC]});try{let s=await new Promise((a,c)=>{t[SC]({host:e,hostname:r,protocol:n,port:i,servername:t[od],localAddress:t[BC]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Zf.destroy(s.on("error",UZ),new D3e);return}Jl(s);try{t[Fr]=s.alpnProtocol==="h2"?await tGe(t,s):await eGe(t,s)}catch(a){throw s.destroy().on("error",UZ),a}t[XA]=!1,s[j3e]=0,s[GO]=t[GO],s[k3e]=t,s[F3e]=null,KA.connected.hasSubscribers&&KA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[od],localAddress:t[BC]},connector:t[SC],socket:s}),t.emit("connect",t[cc],[t])}catch(s){if(t.destroyed)return;if(t[XA]=!1,KA.connectError.hasSubscribers&&KA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[od],localAddress:t[BC]},connector:t[SC],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jl(t[NC]===0);t[RC]>0&&t[ya][t[Ea]].servername===t[od];){let a=t[ya][t[Ea]++];Zf.errorRequest(t,a,s)}else zZ(t,s);t.emit("connectionError",t[cc],[t],s)}t[xC]()}o(VZ,"connect");function qZ(t){t[cd]=0,t.emit("drain",t[cc],[t])}o(qZ,"emitDrain");function zO(t,e){t[eh]!==2&&(t[eh]=2,nGe(t,e),t[eh]=0,t[Yl]>256&&(t[ya].splice(0,t[Yl]),t[Ea]-=t[Yl],t[Yl]=0))}o(zO,"resume");function nGe(t,e){for(;;){if(t.destroyed){Jl(t[RC]===0);return}if(t[ad]&&!t[vC]){t[ad](),t[ad]=null;return}if(t[Fr]&&t[Fr].resume(),t[qO])t[cd]=2;else if(t[cd]===2){e?(t[cd]=1,queueMicrotask(()=>qZ(t))):qZ(t);continue}if(t[RC]===0||t[NC]>=(HZ(t)||1))return;let r=t[ya][t[Ea]];if(t[cc].protocol==="https:"&&t[od]!==r.servername){if(t[NC]>0)return;t[od]=r.servername,t[Fr]?.destroy(new T3e("servername changed"),()=>{t[Fr]=null,zO(t)})}if(t[XA])return;if(!t[Fr]){VZ(t);return}if(t[Fr].destroyed||t[Fr].busy(r))return;!r.aborted&&t[Fr].write(r)?t[Ea]++:t[ya].splice(t[Ea],1)}}o(nGe,"_resume");$Z.exports=HO});var VO=g((vGt,jZ)=>{"use strict";var KB=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};jZ.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new KB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new KB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var JZ=g((RGt,WZ)=>{var{kFree:iGe,kConnected:sGe,kPending:oGe,kQueued:aGe,kRunning:cGe,kSize:lGe}=cr(),th=Symbol("pool"),$O=class{static{o(this,"PoolStats")}constructor(e){this[th]=e}get connected(){return this[th][sGe]}get free(){return this[th][iGe]}get pending(){return this[th][oGe]}get queued(){return this[th][aGe]}get running(){return this[th][cGe]}get size(){return this[th][lGe]}};WZ.exports=$O});var XO=g((TGt,see)=>{"use strict";var uGe=OA(),dGe=VO(),{kConnected:jO,kSize:YZ,kRunning:KZ,kPending:XZ,kQueued:_C,kBusy:fGe,kFree:hGe,kUrl:pGe,kClose:AGe,kDestroy:mGe,kDispatch:gGe}=cr(),yGe=JZ(),Xi=Symbol("clie Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Woe.exports=cq});var i2=m((CJt,Zoe)=>{"use strict";var Yoe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Pje}=Rt(),Oje=KA();Xoe()===void 0&&Koe(new Oje);function Koe(t){if(!t||typeof t.dispatch!="function")throw new Pje("Argument agent must implement Agent");Object.defineProperty(globalThis,Yoe,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(Koe,"setGlobalDispatcher");function Xoe(){return globalThis[Yoe]}o(Xoe,"getGlobalDispatcher");Zoe.exports={setGlobalDispatcher:Koe,getGlobalDispatcher:Xoe}});var s2=m((wJt,eae)=>{"use strict";eae.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var rae=m((BJt,tae)=>{"use strict";var Lje=Lx();tae.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new Lje(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var iae=m((xJt,nae)=>{"use strict";var Fje=Wx();nae.exports=t=>e=>o(function(n,i){return e(n,new Fje({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var oae=m((NJt,sae)=>{"use strict";var Mje=at(),{InvalidArgumentError:Uje,RequestAbortedError:qje}=Rt(),Gje=s2(),lq=class extends Gje{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Uje("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,i){let a=Mje.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new qje(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function Hje({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new lq({maxSize:s},i);return e(n,a)},"Intercept")}o(Hje,"createDumpInterceptor");sae.exports=Hje});var lae=m((TJt,cae)=>{"use strict";var{isIP:Vje}=require("node:net"),{lookup:zje}=require("node:dns"),jje=s2(),{InvalidArgumentError:og,InformationalError:$je}=Rt(),aae=Math.pow(2,31)-1,uq=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new $je("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){zje(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===aae?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===aae?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new dq(this,e,r)}},dq=class extends jje{static{o(this,"DNSDispatchHan Line truncated
${a}`;return}if(z2(e,i,o7e)){a7e(e,s)&&(r.retry=e.toString("utf8",s));return}if(z2(e,i,s7e)){c7e(e,s)&&(r.id=e.toString("utf8",s));return}if(z2(e,i,i7e)){let a=e.toString("utf8",s);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&ZYe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&e7e(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let i=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:i.length,c=i.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let i=this.chunks[r],s=i.length-n;if(e<s)return i[n+e];e-=s,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Cg[0]||(this.checkBOM=!1),!0):n===void 0?e===Cg[0]&&r===Cg[1]?!0:(this.checkBOM=!1,!1):(e===Cg[0]&&r===Cg[1]&&n===Cg[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};qle.exports={EventSourceStream:e3}});var Yle=m((kYt,Jle)=>{"use strict";var{pipeline:l7e}=require("node:stream"),{fetching:u7e}=o0(),{makeRequest:d7e}=lg(),{webidl:Pu}=oi(),{EventSourceStream:f7e}=Gle(),{parseMIMEType:h7e}=As(),{createFastMessageEvent:p7e}=mg(),{isNetworkError:Hle}=i0(),{delay:m7e}=Xq(),{kEnumerableProperty:dp}=at(),{environmentSettingsObject:Vle}=js(),zle=!1,jle=3e3,C0=0,$le=1,b0=2,A7e="anonymous",g7e="use-credentials",bg=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=C0;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),Pu.util.markAsUncloneable(this);let n="EventSource constructor";Pu.argumentLengthCheck(arguments,1,n),zle||(zle=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Pu.converters.USVString(e,n,"url"),r=Pu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:jle};let i=Vle,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=s.href;let a=A7e;r.withCredentials&&(a=g7e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Vle.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#i=d7e(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===b0)return;this.#r=C0;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{Hle(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Hle(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?h7e(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=$le,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new f7e({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(p7e(l.type,l.options))},"push")});l7e(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error" Line truncated
%s`,Q,Q,C,n);var M=C.type==="*"?oG:C.type==="?"?sG:"\\"+C.type;i=!0,n=n.slice(0,C.reStart)+M+"\\("+Q}A(),s&&(n+="\\\\");var x=!1;switch(n.charAt(0)){case"[":case".":case"(":x=!0}for(var j=c.length-1;j>-1;j--){var T=c[j],q=n.slice(0,T.reStart),H=n.slice(T.reStart,T.reEnd-8),W=n.slice(T.reEnd-8,T.reEnd),ee=n.slice(T.reEnd);W+=ee;var te=q.split("(").length-1,ae=ee;for(g=0;g<te;g++)ae=ae.replace(/\)[+*?]?/,"");ee=ae;var J="";ee===""&&e!==g_&&(J="$");var z=q+H+ee+J+W;n=z}if(n!==""&&i&&(n="(?=.)"+n),x&&(n=h+n),e===g_)return[n,i];if(!i)return ntt(t);var Ie=r.nocase?"i":"";try{var Se=new RegExp("^"+n+"$",Ie)}catch{return new RegExp("$.")}return Se._glob=t,Se._src=n,Se}o(ttt,"parse");so.makeRe=function(t,e){return new ci(t,e||{}).makeRe()};ci.prototype.makeRe=rtt;function rtt(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?oG:e.dot?Wet:Jet,n=e.nocase?"i":"",i=t.map(function(s){return s.map(function(a){return a===aG?r:typeof a=="string"?itt(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}o(rtt,"makeRe");so.match=function(t,e,r){r=r||{};var n=new ci(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};ci.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;G0.sep!=="/"&&(e=e.split(G0.sep).join("/")),e=e.split(rhe),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<i.length;a++){var c=i[a],l=e;n.matchBase&&c.length===1&&(l=[s]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ci.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,s=0,a=t.length,c=e.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var l=e[s],u=t[i];if(this.debug(e,l,u),l===!1)return!1;if(l===aG){this.debug("GLOBSTAR",[e,l,u]);var d=i,f=s+1;if(f===c){for(this.debug("** at the end");i<a;i++)if(t[i]==="."||t[i]===".."||!n.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<a;){var h=t[d];if(this.debug(`
globstar while`,t,d,e,f,h),this.matchOne(t.slice(d),e.slice(f),r))return this.debug("globstar found match!",d,a,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,d,e,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,d,e,f),d===a))}var p;if(typeof l=="string"?(p=u===l,this.debug("string match",l,u,p)):(p=u.match(l),this.debug("pattern match",l,u,p)),!p)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function ntt(t){return t.replace(/\\(.)/g,"$1")}o(ntt,"globUnescape");function itt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(itt,"regExpEscape")});var kg=m((der,lhe)=>{"use strict";var ftt="2.0.0",htt=Number.MAX_SAFE_INTEGER||9007199254740991,ptt=16,mtt=250,Att=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lhe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ptt,MAX_SAFE_BUILD_LENGTH:mtt,MAX_SAFE_INTEGER:htt,RELEASE_TYPES:Att,SEMVER_SPEC_VERSION:ftt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var z0=m((fer,uhe)=>{"use strict";var gtt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};uhe.exports=gtt});var Pg=m((jc,dhe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:lG,MAX_SAFE_BUILD_LENGTH:ytt,MAX_LENGTH:Ett}=kg(),Ctt=z0();jc=dhe.exports={};var btt=jc.re=[],Itt=jc.safeRe=[],ue=jc.src=[],wtt=jc.safeSrc=[],de=jc.t={},Stt=0,uG="[a-zA-Z0-9-]",Btt=[["\\s",1],["\\d",Ett],[uG,ytt]],vtt=o(t=>{for(let[e,r]of Btt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),We=o((t,e,r)=>{let n=vtt(e),i=Stt++;Ctt(t,i,e),de[t]=i,ue[i]=e,wtt[i]=n,btt[i]=new RegExp(e,r?"g":void 0),Itt[i]=new RegExp(n,r?"g":void 0)},"createToken");We("NUMERICIDENTIFIER","0|[1-9]\\d*");We("NUMERICIDENTIFIERLOOSE","\\d+");We("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${uG}*`);We("MAINVERSION",`(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})\\.(${ue[de.NUMERICIDENTIFIER]})`);We("MAINVERSIONLOOSE",`(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})\\.(${ue[de.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASEIDENTIFIER",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIER]})`);We("PRERELEASEIDENTIFIERLOOSE",`(?:${ue[de.NONNUMERICIDENTIFIER]}|${ue[de.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASE",`(?:-(${ue[de.PRERELEASEIDENTIFIER]}(?:\\.${ue[de.PRERELEASEIDENTIFIER]})*))`);We("PRERELEASELOOSE",`(?:-?(${ue[de.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ue[de.PRERELEASEIDENTIFIERLOOSE]})*))`);We("BUILDIDENTIFIER",`${uG}+`);We("BUILD",`(?:\\+(${ue[de.BUILDIDENTIFIER]}(?:\\.${ue[de.BUILDIDENTIFIER]})*))`);We("FULLPLAIN",`v?${ue[de.MAINVERSION]}${ue[de.PRERELEASE]}?${ue[de.BUILD]}?`);We("FULL",`^${ue[de.FULLPLAIN]}$`);We("LOOSEPLAIN",`[v=\\s]*${ue[de.MAINVERSIONLOOSE]}${ue[de.PRERELEASELOOSE]}?${ue[de.BUILD]}?`);We("LOOSE",`^${ue[de.LOOSEPLAIN]}$`);We("GTLT","((?:<|>)?=?)");We("XRANGEIDENTIFIERLOOSE",`${ue[de.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);We("XRANGEIDENTIFIER",`${ue[de.NUMERICIDENTIFIER]}|x|X|\\*`);We("XRANGEPLAIN",`[v=\\s]*(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:\\.(${ue[de.XRANGEIDENTIFIER]})(?:${ue[de.PRERELEASE]})?${ue[de.BUILD]}?)?)?`);We("XRANGEPLAINLOOSE",`[v=\\s]*(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ue[de.XRANGEIDENTIFIERLOOSE]})(?:${ue[de.PRERELEASELOOSE]})?${ue[de.BUILD]}?)?)?`);We("XRANGE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAIN]}$`);We("XRANGELOOSE",`^${ue[de.GTLT]}\\s*${ue[de.XRANGEPLAINLOOSE]}$`);We("COERCEPLAIN",`(^|[^\\d])(\\d{1,${lG}})(?:\\.(\\d{1,${lG}}))?(?:\\.(\\d{1,${lG}}))?`);We("COERCE",`${ue[de.COERCEPLAIN]}(?:$|[^\\d])`);We("COERCEFULL",ue[de.COERCEPLAIN]+`(?:${ue[de.PRERELEASE]})?(?:${ue[de.BUILD]})?(?:$|[^\\d])`);We("COERCERTL",ue[de.COERCE],!0);We("COERCERTLFULL",ue[de.COERCEFULL],!0);We("LONETILDE","(?:~>?)");We("TILDETRIM",`(\\s*)${ue[de.LONETILDE]}\\s+`,!0);jc.tildeTrimReplace="$1~";We("TILDE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAIN]}$`);We("TILDELOOSE",`^${ue[de.LONETILDE]}${ue[de.XRANGEPLAINLOOSE]}$`);We("LONECARET","(?:\\^)");We("CARETTRIM",`(\\s*)${ue[de.LONECARET]}\\s+`,!0);jc.caretTrimReplace="$1^";We("CARET",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAIN]}$`);We("CARETLOOSE",`^${ue[de.LONECARET]}${ue[de.XRANGEPLAINLOOSE]}$`);We("COMPARATORLOOSE",`^${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]})$|^$`);We("COMPARATOR",`^${ue[de.GTLT]}\\s*(${ue[de.FULLPLAIN]})$|^$`);We("COMPARATORTRIM",`(\\s*)${ue[de.GTLT]}\\s*(${ue[de.LOOSEPLAIN]}|${ue[de.XRANGEPLAIN]})`,!0);jc.comparatorTrimReplace="$1$2$3";We("HYPHENRANGE",`^\\s*(${ue[de.XRANGEPLAIN]})\\s+-\\s+(${ue[de.XRANGEPLAIN]})\\s*$`);We("HYPHENRANGELOOSE",`^\\s*(${ue[de.XRANGEPLAINLOOSE]})\\s+-\\s+(${ue[de.XRANGEPLAINLOOSE]})\\s*$`);We("STAR","(<|>)?=?\\s*\\*");We("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");We("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b_=m((per,fhe)=>{"use strict";var xtt=Object.freeze({loose:!0}),_tt=Object.freeze({}),Ntt=o(t=>t?typeof t!="object"?xtt:t:_tt,"parseOptions");fhe.exports=Ntt});var dG=m((Aer,mhe)=>{"use strict";var hhe=/^[0-9]+$/,phe=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=hhe Line truncated
`.trim())}};fre.exports=XL});var Ax=g((RHt,gre)=>{"use strict";var pre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:z5e}=xt(),V5e=tm();mre()===void 0&&Are(new V5e);function Are(t){if(!t||typeof t.dispatch!="function")throw new z5e("Argument agent must implement Agent");Object.defineProperty(globalThis,pre,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(Are,"setGlobalDispatcher");function mre(){return globalThis[pre]}o(mre,"getGlobalDispatcher");gre.exports={setGlobalDispatcher:Are,getGlobalDispatcher:mre}});var mx=g((DHt,yre)=>{"use strict";yre.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Cre=g((kHt,Ere)=>{"use strict";var $5e=WB();Ere.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new $5e(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var wre=g((OHt,bre)=>{"use strict";var j5e=sx();bre.exports=t=>e=>o(function(n,i){return e(n,new j5e({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Sre=g((FHt,Ire)=>{"use strict";var W5e=st(),{InvalidArgumentError:J5e,RequestAbortedError:Y5e}=xt(),K5e=mx(),ZL=class extends K5e{static{o(this,"DumpHandler")}#e=1024*1024;#r=null;#n=!1;#t=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new J5e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#r=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#t=!0,this.#s=e}onHeaders(e,r,n,i){let a=W5e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Y5e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#t?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#t?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#t){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function X5e({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new ZL({maxSize:s},i);return e(n,a)},"Intercept")}o(X5e,"createDumpInterceptor");Ire.exports=X5e});var vre=g((UHt,xre)=>{"use strict";var{isIP:Z5e}=require("node:net"),{lookup:eze}=require("node:dns"),tze=mx(),{InvalidArgumentError:um,InformationalError:rze}=xt(),Bre=Math.pow(2,31)-1,eF=class{static{o(this,"DNSInstance")}#e=0;#r=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#r=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#t,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#r}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#r};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new rze("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#t(e,r,n){eze(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Bre?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===Bre?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new tF(this,e,r)}},tF=class extends tze{static{o(this,"DNSDispatchHan Line truncated
${a}`;return}if(rv(e,i,A8e)){m8e(e,s)&&(r.retry=e.toString("utf8",s));return}if(rv(e,i,p8e)){g8e(e,s)&&(r.id=e.toString("utf8",s));return}if(rv(e,i,h8e)){let a=e.toString("utf8",s);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&c8e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&l8e(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let i=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:i.length,c=i.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let i=this.chunks[r],s=i.length-n;if(e<s)return i[n+e];e-=s,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Sm[0]||(this.checkBOM=!1),!0):n===void 0?e===Sm[0]&&r===Sm[1]?!0:(this.checkBOM=!1,!1):(e===Sm[0]&&r===Sm[1]&&n===Sm[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};sse.exports={EventSourceStream:zF}});var pse=g((H5t,hse)=>{"use strict";var{pipeline:y8e}=require("node:stream"),{fetching:E8e}=zC(),{makeRequest:C8e}=hm(),{webidl:eu}=qn(),{EventSourceStream:b8e}=ose(),{parseMIMEType:w8e}=Yi(),{createFastMessageEvent:I8e}=Em(),{isNetworkError:ase}=GC(),{delay:S8e}=GF(),{kEnumerableProperty:gh}=st(),{environmentSettingsObject:cse}=xs(),lse=!1,use=3e3,ib=0,dse=1,sb=2,B8e="anonymous",x8e="use-credentials",Bm=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#n=!1;#t=ib;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),eu.util.markAsUncloneable(this);let n="EventSource constructor";eu.argumentLengthCheck(arguments,1,n),lse||(lse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=eu.converters.USVString(e,n,"url"),r=eu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:use};let i=cse,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#r=s.href;let a=B8e;r.withCredentials&&(a=x8e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=cse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#r)],this.#i=C8e(c),this.#c()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#n}#c(){if(this.#t===sb)return;this.#t=ib;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{ase(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(ase(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?w8e(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#t=dse,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new b8e({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(I8e(l.type,l.options))},"push")});y8e(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error" Line truncated
`).join(`
`+s),t.push(i+"m+"+aN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=mst()+e+" "+t[0]}o(pst,"formatArgs");function mst(){return di.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(mst,"getDate");function Ast(...t){return process.stderr.write(oN.format(...t)+`
`)}o(Ast,"log");function gst(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(gst,"save");function yst(){return process.env.DEBUG}o(yst,"load");function Est(t){t.inspectOpts={};let e=Object.keys(di.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=di.inspectOpts[e[r]]}o(Est,"init");aN.exports=ZG()(di);var{formatters:Wme}=aN.exports;Wme.o=function(t){return this.inspectOpts.colors=this.useColors,oN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Wme.O=function(t){return this.inspectOpts.colors=this.useColors,oN.inspect(t,this.inspectOpts)}});var cN=m((nir,n4)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?n4.exports=Hme():n4.exports=Jme()});var Xme=m(ws=>{"use strict";var Cst=ws&&ws.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bst=ws&&ws.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yme=ws&&ws.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Cst(e,t,r);return bst(e,t),e};Object.defineProperty(ws,"__esModule",{value:!0});ws.req=ws.json=ws.toBuffer=void 0;var Ist=Yme(require("http")),wst=Yme(require("https"));async function Kme(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(Kme,"toBuffer");ws.toBuffer=Kme;async function Sst(t){let r=(await Kme(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(Sst,"json");ws.json=Sst;function Bst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?wst:Ist).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(Bst,"req");ws.req=Bst});var rAe=m(lo=>{"use strict";var eAe=lo&&lo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vst=lo&&lo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tAe=lo&&lo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&eAe(e,t,r);return vst(e,t),e},xst=lo&&lo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&eAe(e,t,r)};Object.defineProperty(lo,"__esModule",{value:!0});lo.Agent=void 0;var _st=tAe(require("net")),Zme=tAe(require("http")),Nst=require("https");xst(Xme(),lo);var Yc=Symbol("AgentBaseInternalState"),i4=class extends Zme.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Yc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new _st.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Nst.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof Zme.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[Yc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Yc].currentSocket;if(this[Yc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Yc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Yc]&&(this[Yc].defaultPort=e)}get protocol(){return this[Yc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Yc]&&(this[Yc].protocol=e)}};lo.Agent=i4});var nAe=m(zg=>{"use strict";var Rst=zg&&zg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zg,"__esModule",{value:!0});zg.parseProxyResponse=void 0;var Tst=Rst(cN()),lN=(0,Tst.default)("https-proxy-agent:parse-proxy-response");function Dst(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),lN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),lN("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r
`+s),t.push(i+"m+"+mN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=lZe()+e+" "+t[0]}o(cZe,"formatArgs");function lZe(){return Vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(lZe,"getDate");function uZe(...t){return process.stderr.write(AN.format(...t)+`
`)}o(uZe,"log");function dZe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(dZe,"save");function fZe(){return process.env.DEBUG}o(fZe,"load");function hZe(t){t.inspectOpts={};let e=Object.keys(Vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Vn.inspectOpts[e[r]]}o(hZe,"init");mN.exports=zU()(Vn);var{formatters:lde}=mN.exports;lde.o=function(t){return this.inspectOpts.colors=this.useColors,AN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};lde.O=function(t){return this.inspectOpts.colors=this.useColors,AN.inspect(t,this.inspectOpts)}});var gN=g((kJt,WU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?WU.exports=ide():WU.exports=ude()});var hde=g(is=>{"use strict";var pZe=is&&is.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),AZe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dde=is&&is.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pZe(e,t,r);return AZe(e,t),e};Object.defineProperty(is,"__esModule",{value:!0});is.req=is.json=is.toBuffer=void 0;var mZe=dde(require("http")),gZe=dde(require("https"));async function fde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(fde,"toBuffer");is.toBuffer=fde;async function yZe(t){let r=(await fde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(yZe,"json");is.json=yZe;function EZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?gZe:mZe).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(EZe,"req");is.req=EZe});var gde=g(Hs=>{"use strict";var Ade=Hs&&Hs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),CZe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mde=Hs&&Hs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ade(e,t,r);return CZe(e,t),e},bZe=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ade(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var wZe=mde(require("net")),pde=mde(require("http")),IZe=require("https");bZe(hde(),Hs);var Cc=Symbol("AgentBaseInternalState"),JU=class extends pde.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Cc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new wZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?IZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof pde.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[Cc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Cc].currentSocket;if(this[Cc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Cc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Cc]&&(this[Cc].defaultPort=e)}get protocol(){return this[Cc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Cc]&&(this[Cc].protocol=e)}};Hs.Agent=JU});var yde=g(jm=>{"use strict";var SZe=jm&&jm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jm,"__esModule",{value:!0});jm.parseProxyResponse=void 0;var BZe=SZe(gN()),yN=(0,BZe.default)("https-proxy-agent:parse-proxy-response");function xZe(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),yN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),yN("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r
\r
`);if(h===-1){lN("have not received end of HTTP headers yet..."),s();return}let p=f.slice(0,h).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),E=+g[1],y=g.slice(2).join(" "),C={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let Q=I.slice(0,B).toLowerCase(),M=I.slice(B+1).trimStart(),x=C[Q];typeof x=="string"?C[Q]=[x,M]:Array.isArray(x)?x.push(M):C[Q]=M}lN("got proxy server response: %o %o",A,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(Dst,"parseProxyResponse");zg.parseProxyResponse=Dst});var lAe=m(Zo=>{"use strict";var Qst=Zo&&Zo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kst=Zo&&Zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aAe=Zo&&Zo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Qst(e,t,r);return kst(e,t),e},cAe=Zo&&Zo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.HttpsProxyAgent=void 0;var uN=aAe(require("net")),iAe=aAe(require("tls")),Pst=cAe(require("assert")),Ost=cAe(cN()),Lst=rAe(),Fst=require("url"),Mst=nAe(),oI=(0,Ost.default)("https-proxy-agent"),sAe=o(t=>t.servername===void 0&&t.host&&!uN.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),dN=class extends Lst.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fst.URL(e):e,this.proxyHeaders=r?.headers??{},oI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?oAe(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?(oI("Creating `tls.Socket`: %o",this.connectOpts),i=iAe.connect(sAe(this.connectOpts))):(oI("Creating `net.Socket`: %o",this.connectOpts),i=uN.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=uN.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(h===-1){yN("have not received end of HTTP headers yet..."),s();return}let p=f.slice(0,h).toString("ascii").split(`\r
`),m=p.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),E=+A[1],y=A.slice(2).join(" "),C={};for(let w of p){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let P=w.slice(0,B).toLowerCase(),U=w.slice(B+1).trimStart(),N=C[P];typeof N=="string"?C[P]=[N,U]:Array.isArray(N)?N.push(U):C[P]=U}yN("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(xZe,"parseProxyResponse");jm.parseProxyResponse=xZe});var Sde=g(_o=>{"use strict";var vZe=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),NZe=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wde=_o&&_o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vZe(e,t,r);return NZe(e,t),e},Ide=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var EN=wde(require("net")),Ede=wde(require("tls")),RZe=Ide(require("assert")),_Ze=Ide(gN()),TZe=gde(),DZe=require("url"),QZe=yde(),$b=(0,_Ze.default)("https-proxy-agent"),Cde=o(t=>t.servername===void 0&&t.host&&!EN.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),CN=class extends TZe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new DZe.URL(e):e,this.proxyHeaders=r?.headers??{},$b("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?bde(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?($b("Creating `tls.Socket`: %o",this.connectOpts),i=Ede.connect(Cde(this.connectOpts))):($b("Creating `net.Socket`: %o",this.connectOpts),i=EN.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=EN.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))c+=`${h}: ${s[h]}\r
`;let l=(0,Mst.parseProxyResponse)(i);i.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Ust),r.secureEndpoint?(oI("Upgrading socket connection to TLS"),iAe.connect({...oAe(sAe(r),"host","path","port"),socket:i})):i;i.destroy();let f=new uN.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{oI("Replaying proxy buffer for failed request"),(0,Pst.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};dN.protocols=["http","https"];Zo.HttpsProxyAgent=dN;function Ust(t){t.resume()}o(Ust,"resume");function oAe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(oAe,"omit")});var fAe=m(Ss=>{"use strict";var qst=Ss&&Ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Gst=Ss&&Ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uAe=Ss&&Ss.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qst(e,t,r);return Gst(e,t),e};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.req=Ss.json=Ss.toBuffer=void 0;var Hst=uAe(require("http")),Vst=uAe(require("https"));async function dAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(dAe,"toBuffer");Ss.toBuffer=dAe;async function zst(t){let r=(await dAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(zst,"json");Ss.json=zst;function jst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Vst:Hst).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(jst,"req");Ss.req=jst});var AAe=m(uo=>{"use strict";var pAe=uo&&uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$st=uo&&uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mAe=uo&&uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pAe(e,t,r);return $st(e,t),e},Wst=uo&&uo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pAe(e,t,r)};Object.defineProperty(uo,"__esModule",{value:!0});uo.Agent=void 0;var Jst=mAe(require("net")),hAe=mAe(require("http")),Yst=require("https");Wst(fAe(),uo);var Kc=Symbol("AgentBaseInternalState"),s4=class extends hAe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Kc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Jst.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Yst.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof hAe.Agent)return c.addRequest(e,i);this[Kc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Kc].currentSocket;if(this[Kc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Kc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Kc]&&(this[Kc].defaultPort=e)}get protocol(){return this[Kc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Kc]&&(this[Kc].protocol=e)}};uo.Agent=s4});var EAe=m(ea=>{"use strict";var Kst=ea&&ea.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xst=ea&&ea.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yAe=ea&&ea.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Kst(e,t,r);return Xst(e,t),e},Zst=ea&&ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ea,"__esModule",{value:!0});ea.HttpProxyAgent=void 0;var eot=yAe(require("net")),tot=yAe(require("tls")),rot=Zst(cN()),not=require("events"),iot=AAe(),gAe=require("url"),jg=(0,rot.default)("http-proxy-agent"),fN=class extends iot.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new gAe.URL(e):e,this.proxyHeaders=r?.headers??{},jg("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?sot(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new gAe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;jg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(jg("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r
`;let l=(0,QZe.parseProxyResponse)(i);i.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",kZe),r.secureEndpoint?($b("Upgrading socket connection to TLS"),Ede.connect({...bde(Cde(r),"host","path","port"),socket:i})):i;i.destroy();let f=new EN.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{$b("Replaying proxy buffer for failed request"),(0,RZe.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};CN.protocols=["http","https"];_o.HttpsProxyAgent=CN;function kZe(t){t.resume()}o(kZe,"resume");function bde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(bde,"omit")});var vde=g(ss=>{"use strict";var PZe=ss&&ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),OZe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Bde=ss&&ss.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&PZe(e,t,r);return OZe(e,t),e};Object.defineProperty(ss,"__esModule",{value:!0});ss.req=ss.json=ss.toBuffer=void 0;var LZe=Bde(require("http")),FZe=Bde(require("https"));async function xde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(xde,"toBuffer");ss.toBuffer=xde;async function MZe(t){let r=(await xde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(MZe,"json");ss.json=MZe;function UZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?FZe:LZe).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(UZe,"req");ss.req=UZe});var Tde=g(zs=>{"use strict";var Rde=zs&&zs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qZe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_de=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rde(e,t,r);return qZe(e,t),e},GZe=zs&&zs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rde(e,t,r)};Object.defineProperty(zs,"__esModule",{value:!0});zs.Agent=void 0;var HZe=_de(require("net")),Nde=_de(require("http")),zZe=require("https");GZe(vde(),zs);var bc=Symbol("AgentBaseInternalState"),YU=class extends Nde.Agent{static{o(this,"Agent")}constructor(e){super(e),this[bc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new HZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?zZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof Nde.Agent)return c.addRequest(e,i);this[bc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[bc].currentSocket;if(this[bc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[bc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[bc]&&(this[bc].defaultPort=e)}get protocol(){return this[bc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[bc]&&(this[bc].protocol=e)}};zs.Agent=YU});var kde=g(To=>{"use strict";var VZe=To&&To.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$Ze=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qde=To&&To.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&VZe(e,t,r);return $Ze(e,t),e},jZe=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpProxyAgent=void 0;var WZe=Qde(require("net")),JZe=Qde(require("tls")),YZe=jZe(gN()),KZe=require("events"),XZe=Tde(),Dde=require("url"),Wm=(0,YZe.default)("http-proxy-agent"),bN=class extends XZe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Dde.URL(e):e,this.proxyHeaders=r?.headers??{},Wm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ZZe(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new Dde.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;Wm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(i),jg("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(jg("Creating `tls.Socket`: %o",this.connectOpts),s=tot.connect(this.connectOpts)):(jg("Creating `net.Socket`: %o",this.connectOpts),s=eot.connect(this.connectOpts)),await(0,not.once)(s,"connect"),s}};fN.protocols=["http","https"];ea.HttpProxyAgent=fN;function sot(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(sot,"omit")});var qAe=m(vN=>{"use strict";Object.defineProperty(vN,"__esModule",{value:!0});vN.state=void 0;vN.state={instrumenterImplementation:void 0}});var ige=m(TN=>{"use strict";Object.defineProperty(TN,"__esModule",{value:!0});TN.state=void 0;TN.state={operationRequestMap:new WeakMap}});var OEe=m(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var Bdt=require("os"),vdt=require("util");function xdt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(xdt,"_interopDefaultLegacy");var _dt=xdt(vdt);function Ndt(t,...e){process.stderr.write(`${_dt.default.format(t,...e)}${Bdt.EOL}`)}o(Ndt,"log");var vEe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,_Ee,LV=[],FV=[],YR=[];vEe&&MV(vEe);var NEe=Object.assign(t=>REe(t),{enable:MV,enabled:UV,disable:Rdt,log:Ndt});function MV(t){_Ee=t,LV=[],FV=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?FV.push(new RegExp(`^${n.substr(1)}$`)):LV.push(new RegExp(`^${n}$`));for(let n of YR)n.enabled=UV(n.namespace)}o(MV,"enable");function UV(t){if(t.endsWith("*"))return!0;for(let e of FV)if(e.test(t))return!1;for(let e of LV)if(e.test(t))return!0;return!1}o(UV,"enabled");function Rdt(){let t=_Ee||"";return MV(""),t}o(Rdt,"disable");function REe(t){let e=Object.assign(r,{enabled:UV(t),destroy:Tdt,log:NEe.log,namespace:t,extend:Ddt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),YR.push(e),e}o(REe,"createDebugger");function Tdt(){let t=YR.indexOf(this);return t>=0?(YR.splice(t,1),!0):!1}o(Tdt,"destroy");function Ddt(t){let e=REe(`${this.namespace}:${t}`);return e.log=this.log,e}o(Ddt,"extend");var $I=NEe,TEe=new Set,WR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,KR,XR=$I("azure");XR.log=(...t)=>{$I.log(...t)};var qV=["verbose","info","warning","error"];WR&&(PEe(WR)?DEe(WR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${WR}'; logging is not enabled. Acceptable values: ${qV.join(", ")}.`));function DEe(t){if(t&&!PEe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${qV.join(",")}`);KR=t;let e=[];for(let r of TEe)kEe(r)&&e.push(r.namespace);$I.enable(e.join(","))}o(DEe,"setLogLevel");function Qdt(){return KR}o(Qdt,"getLogLevel");var xEe={verbose:400,info:300,warning:200,error:100};function kdt(t){let e=XR.extend(t);return QEe(XR,e),{error:JR(e,"error"),warning:JR(e,"warning"),info:JR(e,"info"),verbose:JR(e,"verbose")}}o(kdt,"createClientLogger");function QEe(t,e){e.log=(...r)=>{t.log(...r)}}o(QEe,"patchLogMethod");function JR(t,e){let r=Object.assign(t.extend(e),{level:e});if(QEe(t,r),kEe(r)){let n=$I.disable();$I.enable(n+","+r.namespace)}return TEe.add(r),r}o(JR,"createLogger");function kEe(t){return!!(KR&&xEe[t.level]<=xEe[KR])}o(kEe,"shouldEnable");function PEe(t){return qV.includes(t)}o(PEe,"isAzureLogLevel");uy.AzureLogger=XR;uy.createClientLogger=kdt;uy.getLogLevel=Qdt;uy.setLogLevel=DEe});var VV=m(JI=>{"use strict";Object.defineProperty(JI,"__esModule",{value:!0});var dy=new WeakMap,ZR=new WeakMap,WI=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,dy.set(this,[]),ZR.set(this,!1)}get aborted(){if(!ZR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return ZR.get(this)}static get none(){return new t}addEventListener(e,r){if(!dy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");dy.get(this).push(r)}removeEventListener(e,r){if(!dy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=dy.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function LEe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=dy.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),ZR.set(t,!0)}o(LEe,"abortSignal");var GV=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},HV=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new WI,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){LEe(this._signal)}static timeout(e){let r=new WI,n=setTimeout(LEe,e,r);return typeof n.unref=="function"&&n.unref(),r}};JI.AbortController=HV;JI.AbortError=GV;JI.AbortSignal=WI});var GEe=m(Mr=>{"use strict";Object.defineP Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(i),Wm("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Wm("Creating `tls.Socket`: %o",this.connectOpts),s=JZe.connect(this.connectOpts)):(Wm("Creating `net.Socket`: %o",this.connectOpts),s=WZe.connect(this.connectOpts)),await(0,KZe.once)(s,"connect"),s}};bN.protocols=["http","https"];To.HttpProxyAgent=bN;function ZZe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ZZe,"omit")});var rfe=g(PN=>{"use strict";Object.defineProperty(PN,"__esModule",{value:!0});PN.state=void 0;PN.state={instrumenterImplementation:void 0}});var Efe=g(UN=>{"use strict";Object.defineProperty(UN,"__esModule",{value:!0});UN.state=void 0;UN.state={operationRequestMap:new WeakMap}});var Kpe=g(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var bst=require("os"),wst=require("util");function Ist(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Ist,"_interopDefaultLegacy");var Sst=Ist(wst);function Bst(t,...e){process.stderr.write(`${Sst.default.format(t,...e)}${bst.EOL}`)}o(Bst,"log");var qpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Hpe,N5=[],R5=[],s_=[];qpe&&_5(qpe);var zpe=Object.assign(t=>Vpe(t),{enable:_5,enabled:T5,disable:xst,log:Bst});function _5(t){Hpe=t,N5=[],R5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?R5.push(new RegExp(`^${n.substr(1)}$`)):N5.push(new RegExp(`^${n}$`));for(let n of s_)n.enabled=T5(n.namespace)}o(_5,"enable");function T5(t){if(t.endsWith("*"))return!0;for(let e of R5)if(e.test(t))return!1;for(let e of N5)if(e.test(t))return!0;return!1}o(T5,"enabled");function xst(){let t=Hpe||"";return _5(""),t}o(xst,"disable");function Vpe(t){let e=Object.assign(r,{enabled:T5(t),destroy:vst,log:zpe.log,namespace:t,extend:Nst});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),s_.push(e),e}o(Vpe,"createDebugger");function vst(){let t=s_.indexOf(this);return t>=0?(s_.splice(t,1),!0):!1}o(vst,"destroy");function Nst(t){let e=Vpe(`${this.namespace}:${t}`);return e.log=this.log,e}o(Nst,"extend");var Q0=zpe,$pe=new Set,n_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,o_,a_=Q0("azure");a_.log=(...t)=>{Q0.log(...t)};var D5=["verbose","info","warning","error"];n_&&(Ype(n_)?jpe(n_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${n_}'; logging is not enabled. Acceptable values: ${D5.join(", ")}.`));function jpe(t){if(t&&!Ype(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${D5.join(",")}`);o_=t;let e=[];for(let r of $pe)Jpe(r)&&e.push(r.namespace);Q0.enable(e.join(","))}o(jpe,"setLogLevel");function Rst(){return o_}o(Rst,"getLogLevel");var Gpe={verbose:400,info:300,warning:200,error:100};function _st(t){let e=a_.extend(t);return Wpe(a_,e),{error:i_(e,"error"),warning:i_(e,"warning"),info:i_(e,"info"),verbose:i_(e,"verbose")}}o(_st,"createClientLogger");function Wpe(t,e){e.log=(...r)=>{t.log(...r)}}o(Wpe,"patchLogMethod");function i_(t,e){let r=Object.assign(t.extend(e),{level:e});if(Wpe(t,r),Jpe(r)){let n=Q0.disable();Q0.enable(n+","+r.namespace)}return $pe.add(r),r}o(i_,"createLogger");function Jpe(t){return!!(o_&&Gpe[t.level]<=Gpe[o_])}o(Jpe,"shouldEnable");function Ype(t){return D5.includes(t)}o(Ype,"isAzureLogLevel");fg.AzureLogger=a_;fg.createClientLogger=_st;fg.getLogLevel=Rst;fg.setLogLevel=jpe});var P5=g(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var hg=new WeakMap,c_=new WeakMap,k0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,hg.set(this,[]),c_.set(this,!1)}get aborted(){if(!c_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return c_.get(this)}static get none(){return new t}addEventListener(e,r){if(!hg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");hg.get(this).push(r)}removeEventListener(e,r){if(!hg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=hg.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Xpe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=hg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),c_.set(t,!0)}o(Xpe,"abortSignal");var Q5=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},k5=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new k0,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Xpe(this._signal)}static timeout(e){let r=new k0,n=setTimeout(Xpe,e,r);return typeof n.unref=="function"&&n.unref(),r}};P0.AbortController=k5;P0.AbortError=Q5;P0.AbortSignal=k0});var nAe=g(_r=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${jEe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(VEe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(uft,"pollOperationHelper");async function YEe(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:A,isDone:g,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:I}=await uft({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(WEe({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:f,getError:h,setErrorAsResult:E}),!jEe.includes(I)){let B=d?.(C);B&&A(B);let Q=c?.(C,r);if(Q!==void 0){let M=y!==Q;r.config.operationLocation=Q,u?.(Q,M)}else u?.(y,!1)}p?.(r,C)}}o(YEe,"pollOperation");function KEe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(KEe,"getOperationLocationPollingUrl");function XEe(t){return t.headers.location}o(XEe,"getLocationHeader");function ZEe(t){return t.headers["operation-location"]}o(ZEe,"getOperationLocationHeader");function eCe(t){return t.headers["azure-asyncoperation"]}o(eCe,"getAzureAsyncOperationHeader");function dft(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(dft,"findResourceLocation");function tCe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=ZEe(e),a=eCe(e),c=KEe({operationLocation:s,azureAsyncOperation:a}),l=XEe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:dft({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(tCe,"inferLroMode");function rCe(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't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return tz(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 Hp.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(rCe,"transformStatus");function fft(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return rCe({status:r,statusCode:t.statusCode})}o(fft,"getStatus");function hft(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return rCe({status:s,statusCode:t.statusCode})}o(hft,"getProvisioningState");function tz(t){return t===202?"running":t<300?"succeeded":"failed"}o(tz,"toOperationStatus");function nCe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?pft(new Date(e)):r*1e3}}o(nCe,"parseRetryAfter");function iCe(t){let e=t.flatResponse.error;if(!e){Hp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Hp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(iCe,"getErrorFromResponse");function pft(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(pft,"calculatePollingIntervalFromDate");function sCe(t){let{response:e,state:r,operationLocation:n}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return tz(e.rawResponse.statusCode);case"Body":return rz(e,r);default:return"running"}}o(i,"helper");let s=i();return s==="running"&&n===void 0?"succeeded":s}o(sCe,"getStatusFromInitialResponse");async function mft(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:i,setErrorAsResult:s}=t;return JEe({init:o(async()=>{let a=await i.sendInitialRequest(),c=tCe({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:sCe,setErrorAsResult:s})}o(mft,"initHttpOperation");function oCe({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Xft,"base64decode");gy.base64decode=Xft;function Zft(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=td[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=td[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=td[i|n>>6],e+=td[n&63],r=0;break}return r&&(e+=td[i],e+="=",r==1&&(e+="=")),e}o(Zft,"base64encode");gy.base64encode=Zft});var MCe=m(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.utf8read=void 0;var hz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function eht(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(hz(n)),i=0);return r.length?(i&&r.push(hz(n.slice(0,i))),r.join("")):hz(n.slice(0,i))}o(eht,"utf8read");yT.utf8read=eht});var nw=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.WireType=wl.mergeBinaryOptions=wl.UnknownFieldHandler=void 0;var tht;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(tht=wl.UnknownFieldHandler||(wl.UnknownFieldHandler={}));function rht(t,e){return Object.assign(Object.assign({},t),e)}o(rht,"mergeBinaryOptions");wl.mergeBinaryOptions=rht;var nht;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(nht=wl.WireType||(wl.WireType={}))});var CT=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.varint32read=Ts.varint32write=Ts.int64toString=Ts.int64fromString=Ts.varint64write=Ts.varint64read=void 0;function iht(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(iht,"varint64read");Ts.varint64read=iht;function sht(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(sht,"varint64write");Ts.varint64write=sht;var ET=65536*65536;function oht(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=ET&&(i=i+(n/ET|0),n=n%ET)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(oht,"int64fromString");Ts.int64fromString=oht;function aht(t,e){if(e>>>0<=2097151)return""+(ET*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(aht,"int64toString");Ts.int64toString=aht;function cht(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(cht,"varint32write");Ts.varint32write=cht;function lht(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(lht,"varint32read");Ts.varint32read=lht});var Qf=m(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.PbLong=Df.PbULong=Df.detectBi=void 0;var iw=CT(),$t;function UCe(){let t=new DataView(new ArrayBuffer(8));$t=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};$T.RpcError=Uz});var Gz=m(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeRpcOptions=void 0;var ybe=nn();function Tpt(t,e){if(!e)return t;let r={};WT(t,r),WT(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=ybe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ybe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},WT(t.meta,r.meta),WT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(Tpt,"mergeRpcOptions");JT.mergeRpcOptions=Tpt;function WT(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(WT,"copy")});var Vz=m(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.Deferred=Wp.DeferredState=void 0;var vl;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(vl=Wp.DeferredState||(Wp.DeferredState={}));var Hz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=vl.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==vl.PENDING)throw new Error(`cannot resolve ${vl[this.state].toLowerCase()}`);this._resolve(e),this._state=vl.RESOLVED}reject(e){if(this.state!==vl.PENDING)throw new Error(`cannot reject ${vl[this.state].toLowerCase()}`);this._reject(e),this._state=vl.REJECTED}resolvePending(e){this._state===vl.PENDING&&this.resolve(e)}rejectPending(e){this._state===vl.PENDING&&this.reject(e)}};Wp.Deferred=Hz});var jz=m(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.RpcOutputStreamController=void 0;var Ebe=Vz(),Jp=nn(),zz=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Jp.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Jp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Jp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Jp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Jp.assert(e,"bad state"),Jp.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Ebe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Jp.assert(n.state==Ebe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};YT.RpcOutputStreamController=zz});var Wz=m(Sy=>{"use strict";var Dpt=Sy&&Sy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Sy,"__esModule",{value:!0});Sy.UnaryCall=void 0;var $z=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Dpt(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};Sy.UnaryCall=$z});var Yz=m(By=>{"use strict";var Qpt=By&&By.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function Line truncated
Polling status: ${aAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(sAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(oot,"pollOperationHelper");async function dAe(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:m,isDone:A,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await oot({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(lAe({status:w,response:C,state:r,stateProxy:n,isDone:A,processResult:f,getError:h,setErrorAsResult:E}),!aAe.includes(w)){let B=d?.(C);B&&m(B);let P=c?.(C,r);if(P!==void 0){let U=y!==P;r.config.operationLocation=P,u?.(P,U)}else u?.(y,!1)}p?.(r,C)}}o(dAe,"pollOperation");function fAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(fAe,"getOperationLocationPollingUrl");function hAe(t){return t.headers.location}o(hAe,"getLocationHeader");function pAe(t){return t.headers["operation-location"]}o(pAe,"getOperationLocationHeader");function AAe(t){return t.headers["azure-asyncoperation"]}o(AAe,"getAzureAsyncOperationHeader");function aot(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(aot,"findResourceLocation");function mAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=pAe(e),a=AAe(e),c=fAe({operationLocation:s,azureAsyncOperation:a}),l=hAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:aot({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(mAe,"inferLroMode");function gAe(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't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return $5(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 Zh.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(gAe,"transformStatus");function cot(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return gAe({status:r,statusCode:t.statusCode})}o(cot,"getStatus");function lot(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return gAe({status:s,statusCode:t.statusCode})}o(lot,"getProvisioningState");function $5(t){return t===202?"running":t<300?"succeeded":"failed"}o($5,"toOperationStatus");function yAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?uot(new Date(e)):r*1e3}}o(yAe,"parseRetryAfter");function EAe(t){let e=t.flatResponse.error;if(!e){Zh.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Zh.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(EAe,"getErrorFromResponse");function uot(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(uot,"calculatePollingIntervalFromDate");function CAe(t){let{response:e,state:r,operationLocation:n}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return $5(e.rawResponse.statusCode);case"Body":return j5(e,r);default:return"running"}}o(i,"helper");let s=i();return s==="running"&&n===void 0?"succeeded":s}o(CAe,"getStatusFromInitialResponse");async function dot(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:i,setErrorAsResult:s}=t;return uAe({init:o(async()=>{let a=await i.sendInitialRequest(),c=mAe({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:CAe,setErrorAsResult:s})}o(dot,"initHttpOperation");function bAe({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Wot,"base64decode");Eg.base64decode=Wot;function Jot(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=Cu[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=Cu[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=Cu[i|n>>6],e+=Cu[n&63],r=0;break}return r&&(e+=Cu[i],e+="=",r==1&&(e+="=")),e}o(Jot,"base64encode");Eg.base64encode=Jot});var eme=g(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.utf8read=void 0;var iz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Yot(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(iz(n)),i=0);return r.length?(i&&r.push(iz(n.slice(0,i))),r.join("")):iz(n.slice(0,i))}o(Yot,"utf8read");v_.utf8read=Yot});var H0=g(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.WireType=jc.mergeBinaryOptions=jc.UnknownFieldHandler=void 0;var Kot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(Kot=jc.UnknownFieldHandler||(jc.UnknownFieldHandler={}));function Xot(t,e){return Object.assign(Object.assign({},t),e)}o(Xot,"mergeBinaryOptions");jc.mergeBinaryOptions=Xot;var Zot;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Zot=jc.WireType||(jc.WireType={}))});var R_=g(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.varint32read=fs.varint32write=fs.int64toString=fs.int64fromString=fs.varint64write=fs.varint64read=void 0;function eat(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(eat,"varint64read");fs.varint64read=eat;function tat(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(tat,"varint64write");fs.varint64write=tat;var N_=65536*65536;function rat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=N_&&(i=i+(n/N_|0),n=n%N_)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(rat,"int64fromString");fs.int64fromString=rat;function nat(t,e){if(e>>>0<=2097151)return""+(N_*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(nat,"int64toString");fs.int64toString=nat;function iat(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(iat,"varint32write");fs.varint32write=iat;function sat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(sat,"varint32read");fs.varint32read=sat});var Hd=g(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.PbLong=Gd.PbULong=Gd.detectBi=void 0;var z0=R_(),Ht;function tme(){let t=new DataView(new ArrayBuffer(8));Ht=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};rT.RpcError=Tz});var Qz=g(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.mergeRpcOptions=void 0;var Qme=nt();function vct(t,e){if(!e)return t;let r={};nT(t,r),nT(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=Qme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Qme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},nT(t.meta,r.meta),nT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(vct,"mergeRpcOptions");iT.mergeRpcOptions=vct;function nT(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(nT,"copy")});var Pz=g(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.Deferred=ip.DeferredState=void 0;var Yc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yc=ip.DeferredState||(ip.DeferredState={}));var kz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Yc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Yc.PENDING)throw new Error(`cannot resolve ${Yc[this.state].toLowerCase()}`);this._resolve(e),this._state=Yc.RESOLVED}reject(e){if(this.state!==Yc.PENDING)throw new Error(`cannot reject ${Yc[this.state].toLowerCase()}`);this._reject(e),this._state=Yc.REJECTED}resolvePending(e){this._state===Yc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yc.PENDING&&this.reject(e)}};ip.Deferred=kz});var Lz=g(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.RpcOutputStreamController=void 0;var kme=Pz(),sp=nt(),Oz=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){sp.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){sp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){sp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){sp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;sp.assert(e,"bad state"),sp.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new kme.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;sp.assert(n.state==kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};sT.RpcOutputStreamController=Oz});var Mz=g(xg=>{"use strict";var Nct=xg&&xg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(xg,"__esModule",{value:!0});xg.UnaryCall=void 0;var Fz=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Nct(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};xg.UnaryCall=Fz});var qz=g(vg=>{"use strict";var Rct=vg&&vg.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(FEt,"logUnexpecedPropertyAccessOnce");function MEt(){Object.keys(DD).forEach(function(t){delete DD[t]})}o(MEt,"resetLoggedProperties")});var kD=m(Rl=>{"use strict";Rl.__esModule=!0;Rl.HandlebarsEnvironment=A9;function Twe(t){return t&&t.__esModule?t:{default:t}}o(Twe,"_interopRequireDefault");var rm=ts(),UEt=bo(),p9=Twe(UEt),qEt=u9(),GEt=xwe(),HEt=f9(),QD=Twe(HEt),VEt=h9(),zEt="4.7.9";Rl.VERSION=zEt;var jEt=8;Rl.COMPILER_REVISION=jEt;var $Et=7;Rl.LAST_COMPATIBLE_COMPILER_REVISION=$Et;var WEt={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"};Rl.REVISION_CHANGES=WEt;var m9="[object Object]";function A9(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},qEt.registerDefaultHelpers(this),GEt.registerDefaultDecorators(this)}o(A9,"HandlebarsEnvironment");A9.prototype={constructor:A9,logger:QD.default,log:QD.default.log,registerHelper:o(function(e,r){if(rm.toString.call(e)===m9){if(r)throw new p9.default("Arg not supported with multiple helpers");rm.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(rm.toString.call(e)===m9)rm.extend(this.partials,e);else{if(typeof r>"u")throw new p9.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(rm.toString.call(e)===m9){if(r)throw new p9.default("Arg not supported with multiple decorators");rm.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){VEt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var JEt=QD.default.log;Rl.log=JEt;Rl.createFrame=rm.createFrame;Rl.logger=QD.default});var Qwe=m((PD,Dwe)=>{"use strict";PD.__esModule=!0;function g9(t){this.string=t}o(g9,"SafeString");g9.prototype.toString=g9.prototype.toHTML=function(){return""+this.string};PD.default=g9;Dwe.exports=PD.default});var kwe=m(y9=>{"use strict";y9.__esModule=!0;y9.wrapHelper=YEt;function YEt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(YEt,"wrapHelper")});var Uwe=m(Lf=>{"use strict";Lf.__esModule=!0;Lf.checkRevision=rCt;Lf.template=nCt;Lf.wrapProgram=OD;Lf.resolvePartial=iCt;Lf.invokePartial=sCt;Lf.noop=Fwe;function KEt(t){return t&&t.__esModule?t:{default:t}}o(KEt,"_interopRequireDefault");function XEt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(XEt,"_interopRequireWildcard");var ZEt=ts(),Ly=XEt(ZEt),eCt=bo(),id=KEt(eCt),sd=kD(),Pwe=u9(),tCt=kwe(),Owe=h9();function rCt(t){var e=t&&t[0]||1,r=sd.COMPILER_REVISION;if(!(e>=sd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=sd.COMPILER_REVISION))if(e<sd.LAST_COMPATIBLE_COMPILER_REVISION){var n=sd.REVISION_CHANGES[r],i=sd.REVISION_CHANGES[e];throw new id.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new id.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(rCt,"checkRevision");function nCt(t,e){if(!e)throw new id.default("No environment passed to template");if(!t||!t.main)throw new id.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Ly.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Oht,"logUnexpecedPropertyAccessOnce");function Lht(){Object.keys(qT).forEach(function(t){delete qT[t]})}o(Lht,"resetLoggedProperties")});var HT=g(tl=>{"use strict";tl.__esModule=!0;tl.HandlebarsEnvironment=a4;function WEe(t){return t&&t.__esModule?t:{default:t}}o(WEe,"_interopRequireDefault");var fp=li(),Fht=zo(),s4=WEe(Fht),Mht=t4(),Uht=zEe(),qht=n4(),GT=WEe(qht),Ght=i4(),Hht="4.7.10";tl.VERSION=Hht;var zht=8;tl.COMPILER_REVISION=zht;var Vht=7;tl.LAST_COMPATIBLE_COMPILER_REVISION=Vht;var $ht={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"};tl.REVISION_CHANGES=$ht;var o4="[object Object]";function a4(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Mht.registerDefaultHelpers(this),Uht.registerDefaultDecorators(this)}o(a4,"HandlebarsEnvironment");a4.prototype={constructor:a4,logger:GT.default,log:GT.default.log,registerHelper:o(function(e,r){if(fp.toString.call(e)===o4){if(r)throw new s4.default("Arg not supported with multiple helpers");fp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(fp.toString.call(e)===o4)fp.extend(this.partials,e);else{if(typeof r>"u")throw new s4.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(fp.toString.call(e)===o4){if(r)throw new s4.default("Arg not supported with multiple decorators");fp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Ght.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var jht=GT.default.log;tl.log=jht;tl.createFrame=fp.createFrame;tl.logger=GT.default});var YEe=g((zT,JEe)=>{"use strict";zT.__esModule=!0;function c4(t){this.string=t}o(c4,"SafeString");c4.prototype.toString=c4.prototype.toHTML=function(){return""+this.string};zT.default=c4;JEe.exports=zT.default});var KEe=g(l4=>{"use strict";l4.__esModule=!0;l4.wrapHelper=Wht;function Wht(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(Wht,"wrapHelper")});var rCe=g(jd=>{"use strict";jd.__esModule=!0;jd.checkRevision=ept;jd.template=tpt;jd.wrapProgram=VT;jd.resolvePartial=rpt;jd.invokePartial=npt;jd.noop=eCe;function Jht(t){return t&&t.__esModule?t:{default:t}}o(Jht,"_interopRequireDefault");function Yht(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Yht,"_interopRequireWildcard");var Kht=li(),hp=Yht(Kht),Xht=zo(),Ua=Jht(Xht),wu=HT(),XEe=t4(),Zht=KEe(),u4=i4();function ept(t){var e=t&&t[0]||1,r=wu.COMPILER_REVISION;if(!(e>=wu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=wu.COMPILER_REVISION))if(e<wu.LAST_COMPATIBLE_COMPILER_REVISION){var n=wu.REVISION_CHANGES[r],i=wu.REVISION_CHANGES[e];throw new Ua.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Ua.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(ept,"checkRevision");function tpt(t,e){if(!e)throw new Ua.default("No environment passed to template");if(!t||!t.main)throw new Ua.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=hp.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&hp.isFunction(a))throw new Ua.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Ua.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var d=u.split(`
`),f=0,h=d.length;f<h&&!(!d[f]&&f+1===h);f++)d[f]=l.indent+d[f];u=d.join(`
`)}return u}else throw new id.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new id.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Owe.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Ly.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=OD(this,c,p,l,u,d,f):h||(h=this.programs[c]=OD(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Ly.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=oCt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=Mwe(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};Lwe(c,e.helpers,i),Lwe(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=Ly.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=Owe.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;Pwe.moveHelperToHooks(i,"helperMissing",l),Pwe.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new id.default("must pass block params");if(t.useDepths&&!u)throw new id.default("must pass parent depths");return OD(i,a,t[a],c,0,l,u)},s}o(nCt,"template");function OD(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=Mwe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(OD,"wrapProgram");function iCt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=LD(r.partials,t)):r.name==="@partial-block"?t=LD(r.data,"partial-block"):t=LD(r.partials,r.name),t}o(iCt,"resolvePartial");function sCt(t,e,r){var n=LD(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==Fwe&&(function(){r.data=sd.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=sd.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=Ly.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new id.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(sCt,"invokePartial");function Fwe(){return""}o(Fwe,"noop");function LD(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(LD,"lookupOwnProperty");function oCt(t,e){return(!e||!("root"in e))&&(e=e?sd.createFrame(e):{},e.root=t),e}o(oCt,"initData");function Mwe(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),Ly.extend(e,a)}return e}o(Mwe,"executeDecorators");function Lwe(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=aCt(i,r)})}o(Lwe,"addHelpers");function aCt(t,e){var r=e.lookupProperty;return tCt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(aCt,"passLookupPropertyOption")});var E9=m((FD,qwe)=>{"use strict";FD.__esModule=!0;FD.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};qwe.exports=FD.default});var jwe=m((MD,zwe)=>{"use strict";MD.__esModule=!0;function b9(t){return t&&t.__esModule?t:{default:t}}o(b9,"_interopRequireDefault");function I9(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(I9,"_interopRequireWildcard");var cCt=kD(),Gwe=I9(cCt),lCt=Qwe(),uCt=b9(lCt),dCt=bo(),fCt=b9(dCt),hCt=ts(),C9=I9(hCt),pCt=Uwe Line truncated
`)}return u}else throw new Ua.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ua.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!u4.isPrototypeConstructor(c,l,u)||u4.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:hp.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=VT(this,c,p,l,u,d,f):h||(h=this.programs[c]=VT(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=hp.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=ipt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=tCe(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};ZEe(c,e.helpers,i),ZEe(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=hp.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=u4.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;XEe.moveHelperToHooks(i,"helperMissing",l),XEe.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ua.default("must pass block params");if(t.useDepths&&!u)throw new Ua.default("must pass parent depths");return VT(i,a,t[a],c,0,l,u)},s}o(tpt,"template");function VT(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=tCe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(VT,"wrapProgram");function rpt(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=$T(r.partials,t)):r.name==="@partial-block"?t=$T(r.data,"partial-block"):t=$T(r.partials,r.name),t}o(rpt,"resolvePartial");function npt(t,e,r){var n=$T(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==eCe&&(function(){r.data=wu.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=wu.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=hp.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Ua.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(npt,"invokePartial");function eCe(){return""}o(eCe,"noop");function $T(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o($T,"lookupOwnProperty");function ipt(t,e){return(!e||!("root"in e))&&(e=e?wu.createFrame(e):{},e.root=t),e}o(ipt,"initData");function tCe(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),hp.extend(e,a)}return e}o(tCe,"executeDecorators");function ZEe(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=spt(i,r)})}o(ZEe,"addHelpers");function spt(t,e){var r=e.lookupProperty;return Zht.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(spt,"passLookupPropertyOption")});var d4=g((jT,nCe)=>{"use strict";jT.__esModule=!0;jT.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};nCe.exports=jT.default});var cCe=g((WT,aCe)=>{"use strict";WT.__esModule=!0;function h4(t){return t&&t.__esModule?t:{default:t}}o(h4,"_interopRequireDefault");function p4(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(p4,"_interopRequireWildcard");var opt=HT(),iCe=p4(opt),apt=YEe(),cpt=h4(apt),lp Line truncated
`+this.lexer.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ae="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ae,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:te})}}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(x[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(x[1]),B=null,Q?(B=Q,Q=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(W=this.productions_[x[1]][1],q.$=c[c.length-W],q._$={first_line:l[l.length-(W||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(W||1)].first_column,last_column:l[l.length-1].last_column},y&&(q._$.range=[l[l.length-(W||1)].range[0],l[l.length-1].range[1]]),T=this.performAction.call(q,d,h,f,this.yy,x[1],c,l),typeof T<"u")return T;W&&(a=a.slice(0,-1*W*2),c=c.slice(0,-1*W),l=l.slice(0,-1*W)),a.push(this.productions_[x[1]][0]),c.push(q.$),l.push(q._$),ee=u[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Se="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Se,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:de})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+B);switch(N[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(N[1]),B=null,P?(B=P,P=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(W=this.productions_[N[1]][1],H.$=c[c.length-W],H._$={first_line:l[l.length-(W||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(W||1)].first_column,last_column:l[l.length-1].last_column},y&&(H._$.range=[l[l.length-(W||1)].range[0],l[l.length-1].range[1]]),Q=this.performAction.call(H,d,h,f,this.yy,N[1],c,l),typeof Q<"u")return Q;W&&(a=a.slice(0,-1*W*2),c=c.slice(0,-1*W),l=l.slice(0,-1*W)),a.push(this.productions_[N[1]][0]),c.push(H.$),l.push(H._$),ue=u[a[a.length-2]][a[a.length-1]],a.push(ue);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(c=this._input.match(this.rules[f[h]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=h,!this.options.flex)));h++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();qD.default=gCt;Jwe.exports=qD.default});var zD=m((VD,Zwe)=>{"use strict";VD.__esModule=!0;function yCt(t){return t&&t.__esModule?t:{default:t}}o(yCt,"_interopRequireDefault");var ECt=bo(),S9=yCt(ECt);function GD(){this.parents=[]}o(GD,"Visitor");GD.prototype={constructor:GD,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!GD.prototype[n.type])throw new S9.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new S9.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new S9.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:HD,Decorator:HD,BlockStatement:Kwe,DecoratorBlock:Kwe,PartialStatement:Xwe,PartialBlockStatement:o(function(e){Xwe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:HD,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new om(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof om?e:(e=$9(e,this,r),new om(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=$9(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add($9(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};ZD.default=QSe;kSe.exports=ZD.default});var USe=m((e1,MSe)=>{"use strict";e1.__esModule=!0;function FSe(t){return t&&t.__esModule?t:{default:t}}o(FSe,"_interopRequireDefault");var OSe=kD(),Abt=bo(),J9=FSe(Abt),gbt=ts(),ybt=PSe(),LSe=FSe(ybt);function Hy(t){this.value=t}o(Hy,"Literal");function Vy(){}o(Vy,"JavaScriptCompiler");Vy.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=OSe.COMPILER_REVISION,r=OSe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return gbt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new J9.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();YT.default=Apt;dCe.exports=YT.default});var g4=g(m4=>{"use strict";m4.__esModule=!0;var mpt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];m4.NODE_TYPES=mpt});var e2=g((ZT,mCe)=>{"use strict";ZT.__esModule=!0;function gpt(t){return t&&t.__esModule?t:{default:t}}o(gpt,"_interopRequireDefault");var ypt=zo(),y4=gpt(ypt),Ept=li(),Cpt=g4();function XT(){this.parents=[]}o(XT,"Visitor");function hCe(t,e){return Ept.indexOf(Cpt.NODE_TYPES,e)!==-1||!(e in XT.prototype)&&typeof t[e]=="function"}o(hCe,"isDispatchable");XT.prototype={constructor:XT,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!hCe(this,n.type))throw new y4.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new y4.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!hCe(this,e.type)||!this[e.type])throw new y4.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.tLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new gp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof gp?e:(e=U4(e,this,r),new gp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return e=e+"",mAt.test(e)?ZCe(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=U4(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(U4(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};l2.default=ebe});var cbe=g((u2,abe)=>{"use strict";u2.__esModule=!0;function ibe(t){return t&&t.__esModule?t:{default:t}}o(ibe,"_interopRequireDefault");var rbe=HT(),CAt=zo(),G4=ibe(CAt),bAt=li(),sbe=tbe(),nbe=ibe(sbe);function jg(t){this.value=t}o(jg,"Literal");function Wg(){}o(Wg,"JavaScriptCompiler");Wg.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=rbe.COMPILER_REVISION,r=rbe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return bAt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new G4.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,A=h.decorators;for(l=0,u=p.length;l<u;l++)f[l]=p[l],A[l]&&(f[l+"_d"]=A[l],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new LSe.default(this.options.srcName),this.decorators=new LSe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,m=h.decorators;for(l=0,u=p.length;l<u;l++)f[l]=p[l],m[l]&&(f[l+"_d"]=m[l],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new nbe.default(this.options.srcName),this.decorators=new nbe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,192 +83,169 @@ Expecting `+te.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ae="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Ebt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var i=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",s.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var i=1;i<e.length;i++)n.push(r,e[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Gr.prototype.Program=function(t){var e="",r=t.body,n=void 0,i=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=t.blockParams.length;n<i;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,i=r.length;n<i;n++)e+=this.accept(r[n]);return this.padding--,e};Gr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Gr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Gr.prototype.BlockStatement=Gr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Gr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Gr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Gr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Gr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Gr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Gr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Gr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Gr.prototype.NullLiteral=function(){return"NULL"};Gr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Gr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var WSe=m((Uxr,$Se)=>{var n1=HSe().default,jSe=VSe();n1.PrintVisitor=jSe.PrintVisitor;n1.print=jSe.print;$Se.exports=n1;function zSe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=n1.compile(n)}o(zSe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=zSe,require.extensions[".hbs"]=zSe)});var aBe=m(c1=>{"use strict";Object.defineProperty(c1,"__esModule",{value:!0});c1.getProxyUrl=Fbt;c1.checkBypass=oBe;function Fbt(t){let e=t.protocol==="https:";if(oBe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new a1(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new a1(`http://${r}`)}else return}o(Fbt,"getProxyUrl");function oBe(t){if(!t.hostname)return!1;let e=t.hostname;if(Mbt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(oBe,"checkBypass");function Mbt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Mbt,"isLoopbackAddress");var a1=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var lBe=m(br=>{"use strict";var Ubt=br&&br.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qbt=br&&br.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),f1=br&&br.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&Ubt(r,e,n[i]);return qbt(r,e), Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(hIt,"base64decode");eE.base64decode=hIt;function pIt(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=dd[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=dd[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=dd[i|n>>6],e+=dd[n&63],r=0;break}return r&&(e+=dd[i],e+="=",r==1&&(e+="=")),e}o(pIt,"base64encode");eE.base64encode=pIt});var gve=m(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.utf8read=void 0;var Tj=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function mIt(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(Tj(n)),i=0);return r.length?(i&&r.push(Tj(n.slice(0,i))),r.join("")):Tj(n.slice(0,i))}o(mIt,"utf8read");_1.utf8read=mIt});var eS=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.WireType=Dl.mergeBinaryOptions=Dl.UnknownFieldHandler=void 0;var AIt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(AIt=Dl.UnknownFieldHandler||(Dl.UnknownFieldHandler={}));function gIt(t,e){return Object.assign(Object.assign({},t),e)}o(gIt,"mergeBinaryOptions");Dl.mergeBinaryOptions=gIt;var yIt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(yIt=Dl.WireType||(Dl.WireType={}))});var R1=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.varint32read=Os.varint32write=Os.int64toString=Os.int64fromString=Os.varint64write=Os.varint64read=void 0;function EIt(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(EIt,"varint64read");Os.varint64read=EIt;function CIt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(CIt,"varint64write");Os.varint64write=CIt;var N1=65536*65536;function bIt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=N1&&(i=i+(n/N1|0),n=n%N1)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(bIt,"int64fromString");Os.int64fromString=bIt;function IIt(t,e){if(e>>>0<=2097151)return""+(N1*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(IIt,"int64toString");Os.int64toString=IIt;function wIt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(wIt,"varint32write");Os.varint32write=wIt;function SIt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(SIt,"varint32read");Os.varint32read=SIt});var Gf=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.PbLong=qf.PbULong=qf.detectBi=void 0;var tS=R1(),Wt;function yve(){let t=new DataView(new ArrayBuffer(8));Wt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};nQ.RpcError=g$});var E$=m(sQ=>{"use strict";Object.defineProperty(sQ,"__esModule",{value:!0});sQ.mergeRpcOptions=void 0;var Zve=ar();function jwt(t,e){if(!e)return t;let r={};iQ(t,r),iQ(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=Zve.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Zve.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},iQ(t.meta,r.meta),iQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(jwt,"mergeRpcOptions");sQ.mergeRpcOptions=jwt;function iQ(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(iQ,"copy")});var b$=m(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.Deferred=hm.DeferredState=void 0;var Ml;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ml=hm.DeferredState||(hm.DeferredState={}));var C$=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ml.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ml.PENDING)throw new Error(`cannot resolve ${Ml[this.state].toLowerCase()}`);this._resolve(e),this._state=Ml.RESOLVED}reject(e){if(this.state!==Ml.PENDING)throw new Error(`cannot reject ${Ml[this.state].toLowerCase()}`);this._reject(e),this._state=Ml.REJECTED}resolvePending(e){this._state===Ml.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ml.PENDING&&this.reject(e)}};hm.Deferred=C$});var w$=m(oQ=>{"use strict";Object.defineProperty(oQ,"__esModule",{value:!0});oQ.RpcOutputStreamController=void 0;var exe=b$(),pm=ar(),I$=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){pm.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){pm.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){pm.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){pm.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;pm.assert(e,"bad state"),pm.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new exe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let n=r.p;pm.assert(n.state==exe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};oQ.RpcOutputStreamController=I$});var B$=m(lE=>{"use strict";var $wt=lE&&lE.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(lE,"__esModule",{value:!0});lE.UnaryCall=void 0;var S$=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return $wt(this,void 0,void 0,function*(){let[e,r,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:i}})}};lE.UnaryCall=S$});var x$=m(uE=>{"use strict";var Wwt=uE&&uE.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c, Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(wAt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var i=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",s.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var i=1;i<e.length;i++)n.push(r,e[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Qr.prototype.Program=function(t){var e="",r=t.body,n=void 0,i=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=t.blockParams.length;n<i;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,i=r.length;n<i;n++)e+=this.accept(r[n]);return this.padding--,e};Qr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Qr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Qr.prototype.BlockStatement=Qr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Qr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Qr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Qr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Qr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Qr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Qr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Qr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Qr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Qr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Qr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Qr.prototype.NullLiteral=function(){return"NULL"};Qr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Qr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var V4=g((Eyr,Abe)=>{var h2=dbe().default,pbe=fbe();h2.PrintVisitor=pbe.PrintVisitor;h2.print=pbe.print;Abe.exports=h2;function hbe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=h2.compile(n)}o(hbe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=hbe,require.extensions[".hbs"]=hbe)});var Nbe=g(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.getProxyUrl=qAt;y2.checkBypass=vbe;function qAt(t){let e=t.protocol==="https:";if(vbe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new g2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new g2(`http://${r}`)}else return}o(qAt,"getProxyUrl");function vbe(t){if(!t.hostname)return!1;let e=t.hostname;if(GAt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(vbe,"checkBypass");function GAt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(GAt,"isLoopbackAddress");var g2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var _be=g(pr=>{"use strict";var HAt=pr&&pr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zAt=pr&&pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),w2=pr&&pr.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&HAt(r,e,n[i]);return zAt(r,e),r Line truncated
globstar while`,e,f,r,h,p),this.matchOne(e.slice(f),r.slice(h),n))return this.debug("globstar found match!",f,c,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,f,r,h),f===c))}var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return Oxe(this.pattern,this.options)}parse(e,r){fQ(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return gc;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,A,g,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),I=o(x=>x.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=cW,s=!0;break;case"?":i+=dW,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let x=0,j;x<e.length&&(j=e.charAt(x));x++){if(this.debug("%s %s %s %j",e,x,i,j),a){if(j==="/")return!1;Qxe[j]&&(i+="\\"),i+=j,a=!1;continue}switch(j){case"/":return!1;case"\\":if(d&&e.charAt(x+1)==="-"){i+=j;continue}B(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,x,i,j),d){this.debug(" in class"),j==="!"&&x===h+1&&(j="^"),i+=j;continue}this.debug("call clearStateChar %j",u),B(),u=j,n.noext&&B();continue;case"(":{if(d){i+="(";continue}if(!u){i+="\\(";continue}let T={type:u,start:x-1,reStart:i.length,open:Dxe[u].open,close:Dxe[u].close};this.debug(this.pattern," ",T),c.push(T),i+=T.open,T.start===0&&T.type!=="!"&&(E=!0,i+=I(e.slice(x+1))),this.debug("plType %j %j",u,i),u=!1;continue}case")":{let T=c[c.length-1];if(d||!T){i+="\\)";continue}c.pop(),B(),s=!0,A=T,i+=A.close,A.type==="!"&&l.push(Object.assign(A,{reEnd:i.length}));continue}case"|":{let T=c[c.length-1];if(d||!T){i+="\\|";continue}B(),i+="|",T.start===0&&T.type!=="!"&&(E=!0,i+=I(e.slice(x+1)));continue}case"[":if(B(),d){i+="\\"+j;continue}d=!0,h=x,f=i.length,i+=j;continue;case"]":if(x===h+1||!d){i+="\\"+j;continue}p=e.substring(h+1,x);try{RegExp("["+LSt(PSt(p))+"]"),i+=j}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,d=!1;continue;default:B(),Qxe[j]&&!(j==="^"&&d)&&(i+="\\"),i+=j;break}}for(d&&(p=e.slice(h+1),g=this.parse(p,lW),i=i.substring(0,f)+"\\["+g[0],s=s||g[1]),A=c.pop();A;A=c.pop()){let x;x=i.slice(A.reStart+A.open.length),this.debug("setting tail",i,A),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(T,q,H)=>(H||(H="\\"),q+q+H+"|")),this.debug(`tail=%j
%s`,x,x,A,i);let j=A.type==="*"?cW:A.type==="?"?dW:"\\"+A.type;s=!0,i=i.slice(0,A.reStart)+j+"\\("+x}B(),a&&(i+="\\\\");let Q=DSt[i.charAt(0)];for(let x=l.length-1;x>-1;x--){let j=l[x],T=i.slice(0,j.reStart),q=i.slice(j.reStart,j.reEnd-8),H=i.slice(j.reEnd),W=i.slice(j.reEnd-8,j.reEnd)+H,ee=T.split(")").length,te=T.split("(").length-ee,ae=H;for(let z=0;z<te;z++)ae=ae.replace(/\)[+*?]?/,"");H=ae;let J=H===""&&r!==lW?"(?:$|\\/)":"";i=T+q+H+J+W}if(i!==""&&s&&(i="(?=.)"+i),Q&&(i=C()+i),r===lW)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return kSt(e);let M=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",M),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?cW:r.dot?RSt:TSt,i=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?OSt(c):c===gc?gc:c._src).reduce((c,l)=>(c[c.length-1]===gc&&l===gc||c.push(l),c),[]),a.forEach((c,l)=>{c!==gc||a[l-1]===gc||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=gc))}),a.filter(c=>c!==gc).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;uW.sep!=="/"&&(e=e.split(uW.sep).join("/")),e=e.split(kxe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<i.length;a++){let c=i[a],l=e;if(n.matchBase&&c.length===1&&(l=[s]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return vo.defaults(e).Minimatch}};vo.Minimatch=EE});var Gxe=m((JDr,qxe)=>{qxe.exports=Uxe;var pW=require("fs"),{EventEmitter:FSt}=require("events"),{Minimatch:hW}=Lxe(),{resolve:MSt}=require("path");function USt(t,e){return new Promise((r,n)=>{pW.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(USt,"readdir");function Fxe(t,e){return new Promise((r,n)=>{(e?pW.stat:pW.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?Fxe(t,!1):null):r(null):r(a)})})}o(Fxe,"stat");async function*Mxe(t,e,r,n,i,s){let a=await USt(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await Fxe(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*Mxe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(Mxe,"exploreWalkAsync");async function*qSt(t,e,r,n){yield*Mxe("",t,e,r,n,!0)}o(qSt,"explore");function GSt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(GSt,"readOptions");var hQ=class extends FSt{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=GSt(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new hW(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new hW(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new hW(s,{dot:!0}))}this.iterator=qSt(MSt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n,abs Line truncated
`,S);S=k===-1?w.length:k}else if(R!==-1&&w[S]==="/"&&w[S+1]==="*"){let k=w.indexOf("*/",S);k!==-1?(S=k+2,R=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}o(hb,"stripComments");function Sv(w){let b=hb(w.toString()),S=b.match(Gd);if(S||(S=b.match(Eu)),!S)throw new Error(`could not parse args in autoInject
>>> no match, partial?`,e,f,r,h),f===c))}var m;if(typeof u=="string"?(m=d===u,this.debug("string match",u,d,m)):(m=d.match(u),this.debug("pattern match",u,d,m)),!m)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return gwe(this.pattern,this.options)}parse(e,r){U2(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return Ha;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,m,A,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),w=o(N=>N.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=f8,s=!0;break;case"?":i+=A8,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let N=0,$;N<e.length&&($=e.charAt(N));N++){if(this.debug("%s %s %s %j",e,N,i,$),a){if($==="/")return!1;pwe[$]&&(i+="\\"),i+=$,a=!1;continue}switch($){case"/":return!1;case"\\":if(d&&e.charAt(N+1)==="-"){i+=$;continue}B(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,N,i,$),d){this.debug(" in class"),$==="!"&&N===h+1&&($="^"),i+=$;continue}this.debug("call clearStateChar %j",u),B(),u=$,n.noext&&B();continue;case"(":{if(d){i+="(";continue}if(!u){i+="\\(";continue}let Q={type:u,start:N-1,reStart:i.length,open:hwe[u].open,close:hwe[u].close};this.debug(this.pattern," ",Q),c.push(Q),i+=Q.open,Q.start===0&&Q.type!=="!"&&(E=!0,i+=w(e.slice(N+1))),this.debug("plType %j %j",u,i),u=!1;continue}case")":{let Q=c[c.length-1];if(d||!Q){i+="\\)";continue}c.pop(),B(),s=!0,m=Q,i+=m.close,m.type==="!"&&l.push(Object.assign(m,{reEnd:i.length}));continue}case"|":{let Q=c[c.length-1];if(d||!Q){i+="\\|";continue}B(),i+="|",Q.start===0&&Q.type!=="!"&&(E=!0,i+=w(e.slice(N+1)));continue}case"[":if(B(),d){i+="\\"+$;continue}d=!0,h=N,f=i.length,i+=$;continue;case"]":if(N===h+1||!d){i+="\\"+$;continue}p=e.substring(h+1,N);try{RegExp("["+Ogt(kgt(p))+"]"),i+=$}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,d=!1;continue;default:B(),pwe[$]&&!($==="^"&&d)&&(i+="\\"),i+=$;break}}for(d&&(p=e.slice(h+1),A=this.parse(p,h8),i=i.substring(0,f)+"\\["+A[0],s=s||A[1]),m=c.pop();m;m=c.pop()){let N;N=i.slice(m.reStart+m.open.length),this.debug("setting tail",i,m),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(Q,H,V)=>(V||(V="\\"),H+H+V+"|")),this.debug(`tail=%j
%s`,N,N,m,i);let $=m.type==="*"?f8:m.type==="?"?A8:"\\"+m.type;s=!0,i=i.slice(0,m.reStart)+$+"\\("+N}B(),a&&(i+="\\\\");let P=Tgt[i.charAt(0)];for(let N=l.length-1;N>-1;N--){let $=l[N],Q=i.slice(0,$.reStart),H=i.slice($.reStart,$.reEnd-8),V=i.slice($.reEnd),W=i.slice($.reEnd-8,$.reEnd)+V,ue=Q.split(")").length,de=Q.split("(").length-ue,Se=V;for(let fe=0;fe<de;fe++)Se=Se.replace(/\)[+*?]?/,"");V=Se;let K=V===""&&r!==h8?"(?:$|\\/)":"";i=Q+H+V+K+W}if(i!==""&&s&&(i="(?=.)"+i),P&&(i=C()+i),r===h8)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return Qgt(e);let U=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",U),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?f8:r.dot?Rgt:_gt,i=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?Pgt(c):c===Ha?Ha:c._src).reduce((c,l)=>(c[c.length-1]===Ha&&l===Ha||c.push(l),c),[]),a.forEach((c,l)=>{c!==Ha||a[l-1]===Ha||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=Ha))}),a.filter(c=>c!==Ha).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;p8.sep!=="/"&&(e=e.split(p8.sep).join("/")),e=e.split(Awe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<i.length;a++){let c=i[a],l=e;if(n.matchBase&&c.length===1&&(l=[s]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ro.defaults(e).Minimatch}};ro.Minimatch=cy});var Iwe=g((b0r,wwe)=>{wwe.exports=bwe;var y8=require("fs"),{EventEmitter:Lgt}=require("events"),{Minimatch:g8}=ywe(),{resolve:Fgt}=require("path");function Mgt(t,e){return new Promise((r,n)=>{y8.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(Mgt,"readdir");function Ewe(t,e){return new Promise((r,n)=>{(e?y8.stat:y8.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?Ewe(t,!1):null):r(null):r(a)})})}o(Ewe,"stat");async function*Cwe(t,e,r,n,i,s){let a=await Mgt(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await Ewe(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*Cwe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(Cwe,"exploreWalkAsync");async function*Ugt(t,e,r,n){yield*Cwe("",t,e,r,n,!0)}o(Ugt,"explore");function qgt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(qgt,"readOptions");var q2=class extends Lgt{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=qgt(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new g8(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new g8(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new g8(s,{dot:!0}))}this.iterator=Ugt(Fgt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n, Line truncated
`,S);S=k===-1?I.length:k}else if(R!==-1&&I[S]==="/"&&I[S+1]==="*"){let k=I.indexOf("*/",S);k!==-1?(S=k+2,R=I.indexOf("*/",S)):(b+=I[S],S++)}else b+=I[S],S++;return b}o(KE,"stripComments");function PS(I){let b=KE(I.toString()),S=b.match(aP);if(S||(S=b.match(QS)),!S)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,R]=S;return R.replace(/\s/g,"").split(wv).map(k=>k.replace(fb,"").trim())}o(Sv,"parseParams");function EA(w,b){var S={};return Object.keys(w).forEach(R=>{var k=w[R],L,U=p(k),V=!U&&k.length===1||U&&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),S[R]=L.concat(L.length>0?Y:k);else if(V)S[R]=k;else{if(L=Sv(k),k.length===0&&!U&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");U||L.pop(),S[R]=L.concat(Y)}function Y(we,bt){var Tt=L.map(St=>we[St]);Tt.push(bt),E(k)(...Tt)}o(Y,"newTask")}),qd(S,b)}o(EA,"autoInject");class Bv{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):pb(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):pb(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:R}=S;b(S)&&this.removeLink(S),S=R}return this}}function pb(w,b){w.length=1,w.head=w.tail=b}o(pb,"setInitial");function CA(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var R=E(w),k=0,L=[];let U={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function V(ke,be){U[ke].push(be)}o(V,"on");function Y(ke,be){let Pe=o((...Bt)=>{we(ke,Pe),be(...Bt)},"handleAndRemove");U[ke].push(Pe)}o(Y,"once");function we(ke,be){if(!ke)return Object.keys(U).forEach(Pe=>U[Pe]=[]);if(!be)return U[ke]=[];U[ke]=U[ke].filter(Pe=>Pe!==be)}o(we,"off");function bt(ke,...be){U[ke].forEach(Pe=>Pe(...be))}o(bt,"trigger");var Tt=!1;function St(ke,be,Pe,Bt){if(Bt!=null&&typeof Bt!="function")throw new Error("task callback must be a function");Dt.started=!0;var pr,Mn;function Po(Mh,...bb){if(Mh)return Pe?Mn(Mh):pr();if(bb.length<=1)return pr(bb[0]);pr(bb)}o(Po,"promiseCallback");var SA=Dt._createTaskItem(ke,Pe?Po:Bt||Po);if(be?Dt._tasks.unshift(SA):Dt._tasks.push(SA),Tt||(Tt=!0,u(()=>{Tt=!1,Dt.process()})),Pe||!Bt)return new Promise((Mh,bb)=>{pr=Mh,Mn=bb})}o(St,"_insert");function ko(ke){return function(be,...Pe){k-=1;for(var Bt=0,pr=ke.length;Bt<pr;Bt++){var Mn=ke[Bt],Po=L.indexOf(Mn);Po===0?L.shift():Po>0&&L.splice(Po,1),Mn.callback(be,...Pe),be!=null&&bt("error",be,Mn.data)}k<=Dt.concurrency-Dt.buffer&&bt("unsaturated"),Dt.idle()&&bt("drain"),Dt.process()}}o(ko,"_createCB");function wA(ke){return ke.length===0&&Dt.idle()?(u(()=>bt("drain")),!0):!1}o(wA,"_maybeDrain");let Fh=o(ke=>be=>{if(!be)return new Promise((Pe,Bt)=>{Y(ke,(pr,Mn)=>{if(pr)return Bt(pr);Pe(Mn)})});we(ke),V(ke,be)},"eventMethod");var Cb=!1,Dt={_tasks:new Bv,_createTaskItem(ke,be){return{data:ke,callback:be}},*[Symbol.iterator](){yield*Dt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(ke,be){return Array.isArray(ke)?wA(ke)?void 0:ke.map(Pe=>St(Pe,!1,!1,be)):St(ke,!1,!1,be)},pushAsync(ke,be){return Array.isArray(ke)?wA(ke)?void 0:ke.map(Pe=>St(Pe,!1,!0,be)):St(ke,!1,!0,be)},kill(){we(),Dt._tasks.empty()},unshift(ke,be){return Array.isArray(ke)?wA(ke)?void 0:ke.map(Pe=>St(Pe,!0,!1,be)):St(ke,!0,!1,be)},unshiftAsync(ke,be){return Array.isArray(ke)?wA(ke)?void 0:ke.map(Pe=>St(Pe,!0,!0,be)):St(ke,!0,!0,be)},remove(ke){Dt._tasks.remove(ke)},process(){if(!Cb){for(Cb=!0;!Dt.paused&&k<Dt.concurrency&&Dt._tasks.length;){var ke=[],be=[],Pe=Dt._tasks.length;Dt.payload&&(Pe=Math.min(Pe,Dt.payload));for(var Bt=0;Bt<Pe;Bt++){var pr=Dt._tasks.shift();ke.push(pr),L.push(pr),be.push(pr.data)}k+=1,Dt._tasks.length===0&&bt("empty"),k===Dt.concurrency&&bt("saturated");var Mn=ee(ko(ke));R(be,Mn)}Cb=!1}},length(){return Dt._tasks.length},running(){return k},workersList(){return L},idle(){return Dt._tasks.length+k===0},pause(){Dt.paused=!0},resume(){Dt.paused!==!1&&(Dt.paused=!1,u(Dt.process))}};return Object.defineProperties(Dt,{saturated:{writable:!1,value:Fh("saturated")},unsaturated:{writable:!1,value:Fh("unsaturated")},empty:{writable:!1,value:Fh("empty")},drain:{writable:!1,value:Fh("drain")},error:{writable:!1,value:Fh("error")}}),Dt}o(CA,"queue$1");function bA(w,b){return CA(w,1,b)}o(bA,"cargo$1");function zs(w,b,S){return CA(w,b,S)}o(zs,"cargo");function vv(w,b,S,R){R=x(R);var k=E(S);return Jr(w,(L,U,V)=>{k(b,L,(Y,we)=>{b=we,V(Y)})},L=>R(L,b))}o(vv,"reduce");var qa=y(vv,4);function mb(...w){var b=w.map(E);return function(...S){var R=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=Ua(),qa(b,S,(L,U,V)=>{U.apply(R,L.concat((Y,...we)=>{V(Y,we)}))},(L,U)=>k(L,...U)),k[ms]}}o(mb,"seq");function Ce(...w){return mb(...w.revers Line truncated
GFS4: `),console.error(t)},"debug"));_r[Ai]||(Xxe=global[Ai]||[],e2e(_r,Xxe),_r.close=(function(t){function e(r,n){return t.call(_r,r,function(i){i||Zxe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,yQ,{value:t}),e})(_r.close),_r.closeSync=(function(t){function e(r){t.apply(_r,arguments),Zxe()}return o(e,"closeSync"),Object.defineProperty(e,yQ,{value:t}),e})(_r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Am(_r[Ai]),require("assert").equal(_r[Ai].length,0)}));var Xxe;global[Ai]||e2e(global,_r[Ai]);yW.exports=AW(KSt(_r));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_r.__patched&&(yW.exports=AW(_r),_r.__patched=!0);function AW(t){JSt(t),t.gracefulify=AW,t.createReadStream=Q,t.createWriteStream=M;var e=t.readFile;t.readFile=r;function r(T,q,H){return typeof q=="function"&&(H=q,q=null),W(T,q,H);function W(ee,te,ae,J){return e(ee,te,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?CE([W,[ee,te,ae],z,J||Date.now(),Date.now()]):typeof ae=="function"&&ae.apply(this,arguments)})}o(W,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(T,q,H,W){return typeof H=="function"&&(W=H,H=null),ee(T,q,H,W);function ee(te,ae,J,z,Ie){return n(te,ae,J,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?CE([ee,[te,ae,J,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(T,q,H,W){return typeof H=="function"&&(W=H,H=null),ee(T,q,H,W);function ee(te,ae,J,z,Ie){return s(te,ae,J,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?CE([ee,[te,ae,J,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(T,q,H,W){return typeof H=="function"&&(W=H,H=0),ee(T,q,H,W);function ee(te,ae,J,z,Ie){return c(te,ae,J,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?CE([ee,[te,ae,J,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(T,q,H){typeof q=="function"&&(H=q,q=null);var W=d.test(process.version)?o(function(ae,J,z,Ie){return u(ae,ee(ae,J,z,Ie))},"go$readdir"):o(function(ae,J,z,Ie){return u(ae,J,ee(ae,J,z,Ie))},"go$readdir");return W(T,q,H);function ee(te,ae,J,z){return function(Ie,Se){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?CE([W,[te,ae,J],Ie,z||Date.now(),Date.now()]):(Se&&Se.sort&&Se.sort(),typeof J=="function"&&J.call(this,Ie,Se))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=YSt(t);y=h.ReadStream,I=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var A=t.WriteStream;A&&(I.prototype=Object.create(A.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(T){y=T},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return I},"get"),set:o(function(T){I=T},"set"),enumerable:!0,configurable:!0});var g=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return g},"get"),set:o(function(T){g=T},"set"),enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(T){E=T},"set"),enumerable:!0,configurable:!0});function y(T,q){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var T=this;j(T.path,T.flags,T.mode,function(q,H){q?(T.autoClose&&T.destroy(),T.emit("error",q)):(T.fd=H,T.emit("open",H),T.read())})}o(C,"ReadStream$open");function I(T,q){return this instanceof I?(A.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}o(I,"WriteStream");function B(){var T=this;j(T.path,T.flags,T.mode,function(q,H){q?(T.destroy(),T.emit("error",q)):(T.fd=H,T.emit("open",H))})}o(B,"WriteStream$open");function Q(T,q){return new t.ReadStream(T,q)}o(Q,"createReadStream");function M(T,q){return new t.WriteStream(T,q)}o(M,"createWriteStream");var x=t.open;t.open=j;function j(T,q,H,W){return typeof H=="function"&&(W=H,H=null),ee(T,q,H,W);function ee(te,ae,J,z,Ie){return x(te,ae,J,function(Se,st){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?CE([ee,[te,ae,J,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$open")}return o(j,"open"),t}o(AW,"patch");function CE(t){Am("ENQUEUE",t[0].name,t[1]),_r[Ai].push(t),gW()}o(CE,"enqueue");var gQ;function Zxe(){for(var t=Date.now(),e=0;e<_r[Ai].length;++e)_r[Ai][e].length>2&&(_r[Ai][e][3]=t,_r[Ai][e][4]=t);gW()}o(Zxe,"resetQueue");function gW(){if(clearTimeout(gQ),gQ=void 0,_r[Ai].length!==0){var t=_r[Ai].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Am("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Am("TIMEOUT",e.name,r);var a=r.pop();typeof Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};iJ.exports={AggregateError:nJ,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof k_t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:P_t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);$Ne(e,"signal"),O_t(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[R_t]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[T_t](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:D_t.any||o(function(e){if(e.length===1)return e[0];let r=new Q_t,n=o(()=>r.abort(),"abort");return e.forEach(i=>{$Ne(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};iJ.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var os=m((fkr,YNe)=>{"use strict";var{format:L_t,inspect:qQ,AggregateError:F_t}=Ri(),M_t=globalThis.AggregateError||F_t,U_t=Symbol("kIsNodeError"),q_t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G_t=/^([A-Z][a-z0-9]*)+$/,H_t="__node_internal_",GQ={};function Em(t,e){if(!t)throw new GQ.ERR_INTERNAL_ASSERTION(e)}o(Em,"assert");function WNe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(WNe,"addNumericalSeparator");function V_t(t,e,r){if(typeof e=="function")return Em(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Em(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:L_t(e,...r)}o(V_t,"getMessage");function yi(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(V_t(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[U_t]=!0,GQ[t]=n}o(yi,"E");function JNe(t){let e=H_t+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(JNe,"hideStackFrames");function z_t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new M_t([e,t],e.message);return r.code=e.code,r}return t||e}o(z_t,"aggregateTwoErrors");var sJ=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new GQ.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};yi("ERR_ASSERTION","%s",Error);yi("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Em(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)Em(typeof l=="string","All expected entries have to be of type string"),q_t.includes(l)?i.push(l.toLowerCase()):G_t.test(l)?s.push(l):(Em(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+Line truncated
`)),e.linkname&&(r+=P7(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let i in n)r+=P7(" "+i+"="+n[i]+`
`);return Nt.from(r)},"encodePax");lC.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(Nt.toString(e.subarray(0,n)),10);if(!i)return r;let s=Nt.toString(e.subarray(n+1,i-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(i)}return r},"decodePax");lC.encode=o(function(e){let r=Nt.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Nt.byteLength(n)!==n.length)return null;for(;Nt.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Nt.byteLength(n)>100||Nt.byteLength(i)>155||e.linkname&&Nt.byteLength(e.linkname)>100?null:(Nt.write(r,n),Nt.write(r,ch(e.mode&aMt,6),100),Nt.write(r,ch(e.uid,6),108),Nt.write(r,ch(e.gid,6),116),pMt(e.size,r,124),Nt.write(r,ch(e.mtime.getTime()/1e3|0,11),136),r[156]=yP+fMt(e.type),e.linkname&&Nt.write(r,e.linkname,157),Nt.copy(JPe,r,RB),Nt.copy(iMt,r,O7),e.uname&&Nt.write(r,e.uname,265),e.gname&&Nt.write(r,e.gname,297),Nt.write(r,ch(e.devmajor||0,6),329),Nt.write(r,ch(e.devminor||0,6),337),i&&Nt.write(r,i,345),Nt.write(r,ch(KPe(r),6),148),r)},"encode");lC.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-yP,s=cC(e,0,100,r),a=ah(e,100,8),c=ah(e,108,8),l=ah(e,116,8),u=ah(e,124,12),d=ah(e,136,12),f=dMt(i),h=e[157]===0?null:cC(e,157,100,r),p=cC(e,265,32),A=cC(e,297,32),g=ah(e,329,8),E=ah(e,337,8),y=KPe(e);if(y===256)return null;if(y!==ah(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(cMt(e))e[345]&&(s=cC(e,345,155,r)+"/"+s);else if(!lMt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:A,devmajor:g,devminor:E,pax:null}},"decode");function cMt(t){return Nt.equals(JPe,t.subarray(RB,RB+6))}o(cMt,"isUSTAR");function lMt(t){return Nt.equals(sMt,t.subarray(RB,RB+6))&&Nt.equals(oMt,t.subarray(O7,O7+2))}o(lMt,"isGNU");function uMt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(uMt,"clamp");function dMt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(dMt,"toType");function fMt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(fMt,"toTypeflag");function YPe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}o(YPe,"indexOf");function KPe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(KPe,"cksum");function ch(t,e){return t=t.toString(8),t.length>e?nMt.slice(0,e)+" ":rMt.slice(0,e-t.length)+t+" "}o(ch,"encodeOct");function hMt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(hMt,"encodeSizeBin");function pMt(t,e,r){t.toString(8).length>11?hMt(t,e,r):Nt.write(e,ch(t,11),r)}o(pMt,"encodeSize");function mMt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}o(mMt,"parse256");function ah(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return mMt(t);{for(;e<t.length&&t[e]===32;)e++;let n=uMt(YPe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Nt.toString(t.subarray(e,n)),8)}}o(ah,"decodeOct");function cC(t,e,r,n){return Nt.toString(t.subarray(e,YPe(t,0,e,e+r)),n)}o(cC,"decodeStr");function P7(t){let e=Nt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(P7,"addLength")});var rOe=m((EFr,tOe)=>{var{Writable:AMt,Readable:gMt,getStreamError:XPe}=k7(),yMt=y7(),ZPe=gP(),uC=L7(),EMt=ZPe.alloc(0),M7=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new yMt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return EMt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return ZPe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},U7=class extends gMt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_ Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`+b);let[,R]=S;return R.replace(/\s/g,"").split(kS).map(k=>k.replace(YE,"").trim())}o(PS,"parseParams");function IA(I,b){var S={};return Object.keys(I).forEach(R=>{var k=I[R],L,M=p(k),G=!M&&k.length===1||M&&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),S[R]=L.concat(L.length>0?j:k);else if(G)S[R]=k;else{if(L=PS(k),k.length===0&&!M&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");M||L.pop(),S[R]=L.concat(j)}function j(be,gt){var vt=L.map(Ct=>be[Ct]);vt.push(gt),E(k)(...vt)}o(j,"newTask")}),JE(S,b)}o(IA,"autoInject");class OS{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):XE(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):XE(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:R}=S;b(S)&&this.removeLink(S),S=R}return this}}function XE(I,b){I.length=1,I.head=I.tail=b}o(XE,"setInitial");function SA(I,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var R=E(I),k=0,L=[];let M={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G(Te,Ce){M[Te].push(Ce)}o(G,"on");function j(Te,Ce){let De=o((...bt)=>{be(Te,De),Ce(...bt)},"handleAndRemove");M[Te].push(De)}o(j,"once");function be(Te,Ce){if(!Te)return Object.keys(M).forEach(De=>M[De]=[]);if(!Ce)return M[Te]=[];M[Te]=M[Te].filter(De=>De!==Ce)}o(be,"off");function gt(Te,...Ce){M[Te].forEach(De=>De(...Ce))}o(gt,"trigger");var vt=!1;function Ct(Te,Ce,De,bt){if(bt!=null&&typeof bt!="function")throw new Error("task callback must be a function");Nt.started=!0;var ar,In;function uo(Vf,...sC){if(Vf)return De?In(Vf):ar();if(sC.length<=1)return ar(sC[0]);ar(sC)}o(uo,"promiseCallback");var NA=Nt._createTaskItem(Te,De?uo:bt||uo);if(Ce?Nt._tasks.unshift(NA):Nt._tasks.push(NA),vt||(vt=!0,u(()=>{vt=!1,Nt.process()})),De||!bt)return new Promise((Vf,sC)=>{ar=Vf,In=sC})}o(Ct,"_insert");function lo(Te){return function(Ce,...De){k-=1;for(var bt=0,ar=Te.length;bt<ar;bt++){var In=Te[bt],uo=L.indexOf(In);uo===0?L.shift():uo>0&&L.splice(uo,1),In.callback(Ce,...De),Ce!=null&&gt("error",Ce,In.data)}k<=Nt.concurrency-Nt.buffer&&gt("unsaturated"),Nt.idle()&&gt("drain"),Nt.process()}}o(lo,"_createCB");function vA(Te){return Te.length===0&&Nt.idle()?(u(()=>gt("drain")),!0):!1}o(vA,"_maybeDrain");let zf=o(Te=>Ce=>{if(!Ce)return new Promise((De,bt)=>{j(Te,(ar,In)=>{if(ar)return bt(ar);De(In)})});be(Te),G(Te,Ce)},"eventMethod");var iC=!1,Nt={_tasks:new OS,_createTaskItem(Te,Ce){return{data:Te,callback:Ce}},*[Symbol.iterator](){yield*Nt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!1,!1,Ce)):Ct(Te,!1,!1,Ce)},pushAsync(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!1,!0,Ce)):Ct(Te,!1,!0,Ce)},kill(){be(),Nt._tasks.empty()},unshift(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!0,!1,Ce)):Ct(Te,!0,!1,Ce)},unshiftAsync(Te,Ce){return Array.isArray(Te)?vA(Te)?void 0:Te.map(De=>Ct(De,!0,!0,Ce)):Ct(Te,!0,!0,Ce)},remove(Te){Nt._tasks.remove(Te)},process(){if(!iC){for(iC=!0;!Nt.paused&&k<Nt.concurrency&&Nt._tasks.length;){var Te=[],Ce=[],De=Nt._tasks.length;Nt.payload&&(De=Math.min(De,Nt.payload));for(var bt=0;bt<De;bt++){var ar=Nt._tasks.shift();Te.push(ar),L.push(ar),Ce.push(ar.data)}k+=1,Nt._tasks.length===0&&gt("empty"),k===Nt.concurrency&&gt("saturated");var In=ue(lo(Te));R(Ce,In)}iC=!1}},length(){return Nt._tasks.length},running(){return k},workersList(){return L},idle(){return Nt._tasks.length+k===0},pause(){Nt.paused=!0},resume(){Nt.paused!==!1&&(Nt.paused=!1,u(Nt.process))}};return Object.defineProperties(Nt,{saturated:{writable:!1,value:zf("saturated")},unsaturated:{writable:!1,value:zf("unsaturated")},empty:{writable:!1,value:zf("empty")},drain:{writable:!1,value:zf("drain")},error:{writable:!1,value:zf("error")}}),Nt}o(SA,"queue$1");function BA(I,b){return SA(I,1,b)}o(BA,"cargo$1");function Bs(I,b,S){return SA(I,b,S)}o(Bs,"cargo");function LS(I,b,S,R){R=N(R);var k=E(S);return ti(I,(L,M,G)=>{k(b,L,(j,be)=>{b=be,G(j)})},L=>R(L,b))}o(LS,"reduce");var ha=y(LS,4);function ZE(...I){var b=I.map(E);return function(...S){var R=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=ed(),ha(b,S,(L,M,G)=>{M.apply(R,L.concat((j,...be)=>{G(j,be)}))},(L,M)=>k(L,...M)),k[Fl]}}o(ZE,"seq");function Ee(...I){return ZE(...I.revers Line truncated
GFS4: `),console.error(t)},"debug"));Er[Jn]||(Qwe=global[Jn]||[],Pwe(Er,Qwe),Er.close=(function(t){function e(r,n){return t.call(Er,r,function(i){i||kwe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,$2,{value:t}),e})(Er.close),Er.closeSync=(function(t){function e(r){t.apply(Er,arguments),kwe()}return o(e,"closeSync"),Object.defineProperty(e,$2,{value:t}),e})(Er.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Bp(Er[Jn]),require("assert").equal(Er[Jn].length,0)}));var Qwe;global[Jn]||Pwe(global,Er[Jn]);w8.exports=C8(Ygt(Er));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Er.__patched&&(w8.exports=C8(Er),Er.__patched=!0);function C8(t){Wgt(t),t.gracefulify=C8,t.createReadStream=P,t.createWriteStream=U;var e=t.readFile;t.readFile=r;function r(Q,H,V){return typeof H=="function"&&(V=H,H=null),W(Q,H,V);function W(ue,de,Se,K){return e(ue,de,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?ly([W,[ue,de,Se],fe,K||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}o(W,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return n(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return s(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(Q,H,V,W){return typeof V=="function"&&(W=V,V=0),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return c(de,Se,K,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(Q,H,V){typeof H=="function"&&(V=H,H=null);var W=d.test(process.version)?o(function(Se,K,fe,Tt){return u(Se,ue(Se,K,fe,Tt))},"go$readdir"):o(function(Se,K,fe,Tt){return u(Se,K,ue(Se,K,fe,Tt))},"go$readdir");return W(Q,H,V);function ue(de,Se,K,fe){return function(Tt,yt){Tt&&(Tt.code==="EMFILE"||Tt.code==="ENFILE")?ly([W,[de,Se,K],Tt,fe||Date.now(),Date.now()]):(yt&&yt.sort&&yt.sort(),typeof K=="function"&&K.call(this,Tt,yt))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=Jgt(t);y=h.ReadStream,w=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var m=t.WriteStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(Q){y=Q},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return w},"get"),set:o(function(Q){w=Q},"set"),enumerable:!0,configurable:!0});var A=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return A},"get"),set:o(function(Q){A=Q},"set"),enumerable:!0,configurable:!0});var E=w;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(Q){E=Q},"set"),enumerable:!0,configurable:!0});function y(Q,H){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var Q=this;$(Q.path,Q.flags,Q.mode,function(H,V){H?(Q.autoClose&&Q.destroy(),Q.emit("error",H)):(Q.fd=V,Q.emit("open",V),Q.read())})}o(C,"ReadStream$open");function w(Q,H){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}o(w,"WriteStream");function B(){var Q=this;$(Q.path,Q.flags,Q.mode,function(H,V){H?(Q.destroy(),Q.emit("error",H)):(Q.fd=V,Q.emit("open",V))})}o(B,"WriteStream$open");function P(Q,H){return new t.ReadStream(Q,H)}o(P,"createReadStream");function U(Q,H){return new t.WriteStream(Q,H)}o(U,"createWriteStream");var N=t.open;t.open=$;function $(Q,H,V,W){return typeof V=="function"&&(W=V,V=null),ue(Q,H,V,W);function ue(de,Se,K,fe,Tt){return N(de,Se,K,function(yt,sr){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?ly([ue,[de,Se,K,fe],yt,Tt||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}o(ue,"go$open")}return o($,"open"),t}o(C8,"patch");function ly(t){Bp("ENQUEUE",t[0].name,t[1]),Er[Jn].push(t),b8()}o(ly,"enqueue");var V2;function kwe(){for(var t=Date.now(),e=0;e<Er[Jn].length;++e)Er[Jn][e].length>2&&(Er[Jn][e][3]=t,Er[Jn][e][4]=t);b8()}o(kwe,"resetQueue");function b8(){if(clearTimeout(V2),V2=void 0,Er[Jn].length!==0){var t=Er[Jn].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Bp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Bp("TIMEOUT",e.n Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};cj.exports={AggregateError:aj,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Q0t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:k0t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);NBe(e,"signal"),P0t(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[R0t]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[_0t](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:T0t.any||o(function(e){if(e.length===1)return e[0];let r=new D0t,n=o(()=>r.abort(),"abort");return e.forEach(i=>{NBe(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};cj.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var qi=g((FIr,TBe)=>{"use strict";var{format:O0t,inspect:AD,AggregateError:L0t}=fi(),F0t=globalThis.AggregateError||L0t,M0t=Symbol("kIsNodeError"),U0t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],q0t=/^([A-Z][a-z0-9]*)+$/,G0t="__node_internal_",mD={};function Np(t,e){if(!t)throw new mD.ERR_INTERNAL_ASSERTION(e)}o(Np,"assert");function RBe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(RBe,"addNumericalSeparator");function H0t(t,e,r){if(typeof e=="function")return Np(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Np(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:O0t(e,...r)}o(H0t,"getMessage");function Kn(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(H0t(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[M0t]=!0,mD[t]=n}o(Kn,"E");function _Be(t){let e=G0t+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(_Be,"hideStackFrames");function z0t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new F0t([e,t],e.message);return r.code=e.code,r}return t||e}o(z0t,"aggregateTwoErrors");var lj=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new mD.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Kn("ERR_ASSERTION","%s",Error);Kn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Np(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)Np(typeof l=="string","All expected entries have to be of type string"),U0t.includes(l)?i.push(l.toLowerCase()):q0t.test(l)?s.push(l):(Np(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+Line truncated
`)),e.linkname&&(r+=M9(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let i in n)r+=M9(" "+i+"="+n[i]+`
`);return Bt.from(r)},"encodePax");Xy.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(Bt.toString(e.subarray(0,n)),10);if(!i)return r;let s=Bt.toString(e.subarray(n+1,i-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(i)}return r},"decodePax");Xy.encode=o(function(e){let r=Bt.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Bt.byteLength(n)!==n.length)return null;for(;Bt.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return Bt.byteLength(n)>100||Bt.byteLength(i)>155||e.linkname&&Bt.byteLength(e.linkname)>100?null:(Bt.write(r,n),Bt.write(r,yf(e.mode&oDt,6),100),Bt.write(r,yf(e.uid,6),108),Bt.write(r,yf(e.gid,6),116),hDt(e.size,r,124),Bt.write(r,yf(e.mtime.getTime()/1e3|0,11),136),r[156]=$Q+dDt(e.type),e.linkname&&Bt.write(r,e.linkname,157),Bt.copy(_2e,r,jI),Bt.copy(nDt,r,U9),e.uname&&Bt.write(r,e.uname,265),e.gname&&Bt.write(r,e.gname,297),Bt.write(r,yf(e.devmajor||0,6),329),Bt.write(r,yf(e.devminor||0,6),337),i&&Bt.write(r,i,345),Bt.write(r,yf(D2e(r),6),148),r)},"encode");Xy.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-$Q,s=Ky(e,0,100,r),a=gf(e,100,8),c=gf(e,108,8),l=gf(e,116,8),u=gf(e,124,12),d=gf(e,136,12),f=uDt(i),h=e[157]===0?null:Ky(e,157,100,r),p=Ky(e,265,32),m=Ky(e,297,32),A=gf(e,329,8),E=gf(e,337,8),y=D2e(e);if(y===256)return null;if(y!==gf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(aDt(e))e[345]&&(s=Ky(e,345,155,r)+"/"+s);else if(!cDt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:m,devmajor:A,devminor:E,pax:null}},"decode");function aDt(t){return Bt.equals(_2e,t.subarray(jI,jI+6))}o(aDt,"isUSTAR");function cDt(t){return Bt.equals(iDt,t.subarray(jI,jI+6))&&Bt.equals(sDt,t.subarray(U9,U9+2))}o(cDt,"isGNU");function lDt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(lDt,"clamp");function uDt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(uDt,"toType");function dDt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(dDt,"toTypeflag");function T2e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}o(T2e,"indexOf");function D2e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(D2e,"cksum");function yf(t,e){return t=t.toString(8),t.length>e?rDt.slice(0,e)+" ":tDt.slice(0,e-t.length)+t+" "}o(yf,"encodeOct");function fDt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(fDt,"encodeSizeBin");function hDt(t,e,r){t.toString(8).length>11?fDt(t,e,r):Bt.write(e,yf(t,11),r)}o(hDt,"encodeSize");function pDt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}o(pDt,"parse256");function gf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return pDt(t);{for(;e<t.length&&t[e]===32;)e++;let n=lDt(T2e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Bt.toString(t.subarray(e,n)),8)}}o(gf,"decodeOct");function Ky(t,e,r,n){return Bt.toString(t.subarray(e,T2e(t,0,e,e+r)),n)}o(Ky,"decodeStr");function M9(t){let e=Bt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(M9,"addLength")});var L2e=g((Vvr,O2e)=>{var{Writable:ADt,Readable:mDt,getStreamError:Q2e}=F9(),gDt=w9(),k2e=VQ(),Zy=q9(),yDt=k2e.alloc(0),H9=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new gDt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return yDt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return k2e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},z9=class extends mDt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_ Line truncated
`).join(`
`+s),t.push(i+"m+"+RO.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=QHt()+e+" "+t[0]}o(DHt,"formatArgs");function QHt(){return ii.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(QHt,"getDate");function kHt(...t){return process.stderr.write(NO.formatWithOptions(ii.inspectOpts,...t)+`
`)}o(kHt,"log");function PHt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(PHt,"save");function OHt(){return process.env.DEBUG}o(OHt,"load");function LHt(t){t.inspectOpts={};let e=Object.keys(ii.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ii.inspectOpts[e[r]]}o(LHt,"init");RO.exports=BX()(ii);var{formatters:sUe}=RO.exports;sUe.o=function(t){return this.inspectOpts.colors=this.useColors,NO.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};sUe.O=function(t){return this.inspectOpts.colors=this.useColors,NO.inspect(t,this.inspectOpts)}});var xX=m((JGr,vX)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?vX.exports=iUe():vX.exports=oUe()});var DO=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.DownloadHTTPError=$r.DownloadLengthMismatchError=$r.DownloadError=$r.ExpiredMetadataError=$r.EqualVersionError=$r.BadVersionError=$r.RepositoryError=$r.PersistError=$r.RuntimeError=$r.ValueError=void 0;var _X=class extends Error{static{o(this,"ValueError")}};$r.ValueError=_X;var NX=class extends Error{static{o(this,"RuntimeError")}};$r.RuntimeError=NX;var RX=class extends Error{static{o(this,"PersistError")}};$r.PersistError=RX;var ev=class extends Error{static{o(this,"RepositoryError")}};$r.RepositoryError=ev;var TO=class extends ev{static{o(this,"BadVersionError")}};$r.BadVersionError=TO;var TX=class extends TO{static{o(this,"EqualVersionError")}};$r.EqualVersionError=TX;var DX=class extends ev{static{o(this,"ExpiredMetadataError")}};$r.ExpiredMetadataError=DX;var tv=class extends Error{static{o(this,"DownloadError")}};$r.DownloadError=tv;var QX=class extends tv{static{o(this,"DownloadLengthMismatchError")}};$r.DownloadLengthMismatchError=QX;var kX=class extends tv{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};$r.DownloadHTTPError=kX});var cUe=m(LC=>{"use strict";var OX=LC&&LC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(LC,"__esModule",{value:!0});LC.withTempFile=void 0;var PX=OX(require("fs/promises")),FHt=OX(require("os")),aUe=OX(require("path")),MHt=o(async t=>UHt(async e=>t(aUe.default.join(e,"tempfile"))),"withTempFile");LC.withTempFile=MHt;var UHt=o(async t=>{let e=await PX.default.realpath(FHt.default.tmpdir()),r=await PX.default.mkdtemp(e+aUe.default.sep);try{return await t(r)}finally{await PX.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var uUe=m((e4r,lUe)=>{var LX=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i<this.#n.length;i++){let s=this.#n[i],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};lUe.exports={RetryOperation:LX}});var hUe=m((r4r,fUe)=>{var{RetryOperation:qHt}=uUe(),dUe=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),GHt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),HHt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;s<i.retries;s++)r.push(dUe(s,i));r.sort((s,a)=>s-a)}else e.forever&&r.push(dUe(0,i))}let n=new qHt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!GHt(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");fUe.exports={promiseRetry:HHt}});var UX=m(wh=>{"use strict";var MX=wh&&wh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wh,"__esModule",{value:!0});wh.DefaultFetcher=wh.BaseFetcher=void 0;var VHt=MX(xX()),pUe=MX(require("fs")),zHt=MX(require("util")),mUe=DO(),jHt=cUe(),$Ht=hUe(),WHt=(0,VHt.default)("tuf:fetch"),JHt="User-Agent",QO=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,jHt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=pUe.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new mUe.DownloadLengthMismatchError("Max length reached");await YHt(c,Buffer.from(d))}}finally{l.releaseLock(),await zHt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=pUe.defau Line truncated
`).forEach(r=>{r.match(tVt)||r.match(rVt)||(e+=r)}),Buffer.from(e,"base64")}o(nVt,"toDER");function iVt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`+s),t.push(i+"m+"+K1.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bFt()+e+" "+t[0]}o(CFt,"formatArgs");function bFt(){return Un.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(bFt,"getDate");function wFt(...t){return process.stderr.write(Y1.formatWithOptions(Un.inspectOpts,...t)+`
`)}o(wFt,"log");function IFt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(IFt,"save");function SFt(){return process.env.DEBUG}o(SFt,"load");function BFt(t){t.inspectOpts={};let e=Object.keys(Un.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Un.inspectOpts[e[r]]}o(BFt,"init");K1.exports=B6()(Un);var{formatters:Fke}=K1.exports;Fke.o=function(t){return this.inspectOpts.colors=this.useColors,Y1.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Fke.O=function(t){return this.inspectOpts.colors=this.useColors,Y1.inspect(t,this.inspectOpts)}});var v6=g((uDr,x6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?x6.exports=Lke():x6.exports=Mke()});var Z1=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.DownloadHTTPError=Or.DownloadLengthMismatchError=Or.DownloadError=Or.ExpiredMetadataError=Or.EqualVersionError=Or.BadVersionError=Or.RepositoryError=Or.PersistError=Or.RuntimeError=Or.ValueError=void 0;var N6=class extends Error{static{o(this,"ValueError")}};Or.ValueError=N6;var R6=class extends Error{static{o(this,"RuntimeError")}};Or.RuntimeError=R6;var _6=class extends Error{static{o(this,"PersistError")}};Or.PersistError=_6;var mS=class extends Error{static{o(this,"RepositoryError")}};Or.RepositoryError=mS;var X1=class extends mS{static{o(this,"BadVersionError")}};Or.BadVersionError=X1;var T6=class extends X1{static{o(this,"EqualVersionError")}};Or.EqualVersionError=T6;var D6=class extends mS{static{o(this,"ExpiredMetadataError")}};Or.ExpiredMetadataError=D6;var gS=class extends Error{static{o(this,"DownloadError")}};Or.DownloadError=gS;var Q6=class extends gS{static{o(this,"DownloadLengthMismatchError")}};Or.DownloadLengthMismatchError=Q6;var k6=class extends gS{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};Or.DownloadHTTPError=k6});var qke=g(xE=>{"use strict";var O6=xE&&xE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xE,"__esModule",{value:!0});xE.withTempFile=void 0;var P6=O6(require("fs/promises")),xFt=O6(require("os")),Uke=O6(require("path")),vFt=o(async t=>NFt(async e=>t(Uke.default.join(e,"tempfile"))),"withTempFile");xE.withTempFile=vFt;var NFt=o(async t=>{let e=await P6.default.realpath(xFt.default.tmpdir()),r=await P6.default.mkdtemp(e+Uke.default.sep);try{return await t(r)}finally{await P6.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var Hke=g((ADr,Gke)=>{var L6=class{static{o(this,"RetryOperation")}#e=1;#r=null;#n=[];#t=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#r=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i<this.#n.length;i++){let s=this.#n[i],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#r=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#r)this.#n.pop(),r=this.#r.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#t(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#t=e,this.#s=new Date().getTime(),this.#t(this.#e)}};Gke.exports={RetryOperation:L6}});var $ke=g((gDr,Vke)=>{var{RetryOperation:RFt}=Hke(),zke=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),_Ft=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),TFt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;s<i.retries;s++)r.push(zke(s,i));r.sort((s,a)=>s-a)}else e.forever&&r.push(zke(0,i))}let n=new RFt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!_Ft(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");Vke.exports={promiseRetry:TFt}});var U6=g(Df=>{"use strict";var M6=Df&&Df.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Df,"__esModule",{value:!0});Df.DefaultFetcher=Df.BaseFetcher=void 0;var DFt=M6(v6()),jke=M6(require("fs")),QFt=M6(require("util")),Wke=Z1(),kFt=qke(),PFt=$ke(),OFt=(0,DFt.default)("tuf:fetch"),LFt="User-Agent",ek=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,kFt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=jke.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new Wke.DownloadLengthMismatchError("Max length reached");await FFt(c,Buffer.from(d))}}finally{l.releaseLock(),await QFt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=jke.defau Line truncated
`).forEach(r=>{r.match(HMt)||r.match(zMt)||(e+=r)}),Buffer.from(e,"base64")}o(VMt,"toDER");function $Mt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}o(iVt,"fromDER")});var JO=m(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.SHA2_HASH_ALGOS=_h.RSA_SIGNATURE_ALGOS=_h.ECDSA_SIGNATURE_ALGOS=void 0;_h.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};_h.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};_h.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var uZ=m(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});YO.RFC3161TimestampVerificationError=void 0;var lZ=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};YO.RFC3161TimestampVerificationError=lZ});var zUe=m(au=>{"use strict";var sVt=au&&au.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oVt=au&&au.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aVt=au&&au.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&sVt(r,e,n[i]);return oVt(r,e),r}})();Object.defineProperty(au,"__esModule",{value:!0});au.TSTInfo=void 0;var VUe=aVt(HC()),cVt=JO(),lVt=uZ(),dZ=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return cVt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=VUe.digest(this.messageImprintHashAlgorithm,e);if(!VUe.bufferEqual(r,this.messageImprintHashedMessage))throw new lVt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};au.TSTInfo=dZ});var $Ue=m(cu=>{"use strict";var uVt=cu&&cu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dVt=cu&&cu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fVt=cu&&cu.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&uVt(r,e,n[i]);return dVt(r,e),r}})();Object.defineProperty(cu,"__esModule",{value:!0});cu.RFC3161Timestamp=void 0;var hVt=jO(),fZ=fVt(HC()),jUe=JO(),av=uZ(),pVt=zUe(),mVt="1.2.840.113549.1.7.2",AVt="1.2.840.113549.1.9.16.1.4",gVt="1.2.840.113549.1.9.4",hZ=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=hVt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return jUe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return jUe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new pVt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new av.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==mVt)throw new av.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==AVt)throw new av.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=fZ.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`)}o($Mt,"fromDER")});var mk=g(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.SHA2_HASH_ALGOS=Lf.RSA_SIGNATURE_ALGOS=Lf.ECDSA_SIGNATURE_ALGOS=void 0;Lf.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Lf.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Lf.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var uY=g(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.RFC3161TimestampVerificationError=void 0;var lY=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};gk.RFC3161TimestampVerificationError=lY});var SPe=g(Rl=>{"use strict";var jMt=Rl&&Rl.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WMt=Rl&&Rl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JMt=Rl&&Rl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&jMt(r,e,n[i]);return WMt(r,e),r}})();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.TSTInfo=void 0;var IPe=JMt(DE()),YMt=mk(),KMt=uY(),dY=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return YMt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=IPe.digest(this.messageImprintHashAlgorithm,e);if(!IPe.bufferEqual(r,this.messageImprintHashedMessage))throw new KMt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Rl.TSTInfo=dY});var xPe=g(_l=>{"use strict";var XMt=_l&&_l.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZMt=_l&&_l.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eUt=_l&&_l.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&XMt(r,e,n[i]);return ZMt(r,e),r}})();Object.defineProperty(_l,"__esModule",{value:!0});_l.RFC3161Timestamp=void 0;var tUt=hk(),fY=eUt(DE()),BPe=mk(),IS=uY(),rUt=SPe(),nUt="1.2.840.113549.1.7.2",iUt="1.2.840.113549.1.9.16.1.4",sUt="1.2.840.113549.1.9.4",hY=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=tUt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return BPe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return BPe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new rUt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new IS.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==nUt)throw new IS.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==iUt)throw new IS.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=fY.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,Lzt=/\u2014 (\S+) (\S+)\n/g;function Fzt(t,e){let r=t.inclusionProof,n=HZ.fromString(r.checkpoint.envelope),i=AL.fromString(n.note);if(!Mzt(n,e))throw new YC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(Fzt,"verifyCheckpoint");function Mzt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>xqe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?xqe.crypto.verify(r,i.publicKey,n.signature):!1})}o(Mzt,"verifySignedNote");var HZ=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(GZ))throw new YC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(GZ),n=e.slice(0,r+1),s=e.slice(r+GZ.length).matchAll(Lzt),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new YC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new YC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},AL=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new YC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new YC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};fv.LogCheckpoint=AL});var Nqe=m(jZ=>{"use strict";Object.defineProperty(jZ,"__esModule",{value:!0});jZ.verifyMerkleInclusion=Gzt;var zZ=vc(),gL=Fi(),Uzt=Buffer.from([0]),qzt=Buffer.from([1]);function Gzt(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new gL.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new gL.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=Hzt(n,i);if(r.hashes.length!==s+a)throw new gL.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=Jzt(t.canonicalizedBody),d=zzt(Vzt(u,c,n),l);if(!zZ.crypto.bufferEqual(d,e.logHash))throw new gL.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(Gzt,"verifyMerkleInclusion");function Hzt(t,e){let r=jzt(t,e),n=$zt(t>>BigInt(r));return{inner:r,border:n}}o(Hzt,"decompInclProof");function Vzt(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?VZ(i,n):VZ(n,i),t)}o(Vzt,"chainInner");function zzt(t,e){return e.reduce((r,n)=>VZ(n,r),t)}o(zzt,"chainBorderRight");function jzt(t,e){return Wzt(t^e-BigInt(1))}o(jzt,"innerProofSize");function $zt(t){return t.toString(2).split("1").length-1}o($zt,"onesCount");function Wzt(t){return t===0n?0:t.toString(2).length}o(Wzt,"bitLength");function VZ(t,e){return zZ.crypto.digest("sha256",qzt,t,e)}o(VZ,"hashChildren");function Jzt(t){return zZ.crypto.digest("sha256",Uzt,t)}o(Jzt,"hashLeaf")});var Tqe=m($Z=>{"use strict";Object.defineProperty($Z,"__esModule",{value:!0});$Z.verifyTLogSET=Xzt;var Rqe=vc(),Yzt=Fi(),Kzt=jC();function Xzt(t,e){if(!(0,Kzt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=Zzt(t),a=Buffer.from(Rqe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Rqe.crypto.verify(a,i.publicKey,c)}))throw new Yzt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(Xzt,"verifyTLogSET");function Zzt(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(Zzt,"toVerificationPayload")});var Qqe=m(EL=>{"use strict";Object.defineProperty(EL,"__esModule",{value:!0});EL.verifyTLogBody=i6t;EL.verifyTLogInclusion=s6t;var Dqe=wqe(),yL=Fi(),WZ=Sqe(),JZ=Bqe(),e6t=vqe(),t6t=_qe(),r6t=Nqe(),n6t=Tqe();function i6t(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new yL.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new yL.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==WZ.DSSE_API_VERSION_V1)return(0,WZ.verifyDSSETLogBody)(i,e);{let s=Dqe.Entry.fromJSON(i);return(0,WZ.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,e6t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==JZ.HASHEDREKORD_API_VERSION_V1)return(0,JZ.verifyHashedRekordTLogBody)(i,e);{let s=Dqe.Entry.fromJSON(i);return(0,JZ.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new yL.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(i6t,"verifyTLogBody");function s6t(t,e){let r=!1;if(o6t(t)&&((0,n6t.verifyTLogSET)(t,e),r=!0),a6t(t)){let n=(0,t6t.verifyCheckpoint)(t,e);(0,r6t.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new yL.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(s6t,"verifyTLogInclusion");function o6t(t){return t.inclusionPromise!==void 0}o(o6t,"isTLogEntryWithInclusionPromise");function a6t(t){return t.inclusionProof!==void 0}o(a6t,"isTLogEntryWithInclusionProof")});var Lqe=m(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0});CL.Verifier=void 0;var c6t=require("util"),hA=Fi(),kqe=dqe(),YZ=fqe(),Pqe=mqe(),Oqe=Qqe(),XZ=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(c9t,"logUnexpecedPropertyAccessOnce");function l9t(){Object.keys(JL).forEach(function(t){delete JL[t]})}o(l9t,"resetLoggedProperties")});var KL=m(Au=>{"use strict";Au.__esModule=!0;Au.HandlebarsEnvironment=gee;function b3e(t){return t&&t.__esModule?t:{default:t}}o(b3e,"_interopRequireDefault");var mA=Mi(),u9t=Fa(),mee=b3e(u9t),d9t=dee(),f9t=g3e(),h9t=hee(),YL=b3e(h9t),p9t=pee(),m9t="4.7.10";Au.VERSION=m9t;var A9t=8;Au.COMPILER_REVISION=A9t;var g9t=7;Au.LAST_COMPATIBLE_COMPILER_REVISION=g9t;var y9t={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"};Au.REVISION_CHANGES=y9t;var Aee="[object Object]";function gee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},d9t.registerDefaultHelpers(this),f9t.registerDefaultDecorators(this)}o(gee,"HandlebarsEnvironment");gee.prototype={constructor:gee,logger:YL.default,log:YL.default.log,registerHelper:o(function(e,r){if(mA.toString.call(e)===Aee){if(r)throw new mee.default("Arg not supported with multiple helpers");mA.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(mA.toString.call(e)===Aee)mA.extend(this.partials,e);else{if(typeof r>"u")throw new mee.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(mA.toString.call(e)===Aee){if(r)throw new mee.default("Arg not supported with multiple decorators");mA.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){p9t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var E9t=YL.default.log;Au.log=E9t;Au.createFrame=mA.createFrame;Au.logger=YL.default});var w3e=m((XL,I3e)=>{"use strict";XL.__esModule=!0;function yee(t){this.string=t}o(yee,"SafeString");yee.prototype.toString=yee.prototype.toHTML=function(){return""+this.string};XL.default=yee;I3e.exports=XL.default});var S3e=m(Eee=>{"use strict";Eee.__esModule=!0;Eee.wrapHelper=C9t;function C9t(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(C9t,"wrapHelper")});var N3e=m(Qh=>{"use strict";Qh.__esModule=!0;Qh.checkRevision=v9t;Qh.template=x9t;Qh.wrapProgram=ZL;Qh.resolvePartial=_9t;Qh.invokePartial=N9t;Qh.noop=x3e;function b9t(t){return t&&t.__esModule?t:{default:t}}o(b9t,"_interopRequireDefault");function I9t(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(I9t,"_interopRequireWildcard");var w9t=Mi(),AA=I9t(w9t),S9t=Fa(),Nc=b9t(S9t),Md=KL(),B3e=dee(),B9t=S3e(),Cee=pee();function v9t(t){var e=t&&t[0]||1,r=Md.COMPILER_REVISION;if(!(e>=Md.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Md.COMPILER_REVISION))if(e<Md.LAST_COMPATIBLE_COMPILER_REVISION){var n=Md.REVISION_CHANGES[r],i=Md.REVISION_CHANGES[e];throw new Nc.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Nc.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(v9t,"checkRevision");function x9t(t,e){if(!e)throw new Nc.default("No environment passed to template");if(!t||!t.main)throw new Nc.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=AA.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&AA.isFunction(a))throw new Nc.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Nc.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var d=u.split(`
`),f=0,h=d.length;f<h&&!(!d[f]&&f+1===h);f++)d[f]=l.indent+d[f];u=d.join(`
`)}return u}else throw new Nc.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Nc.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!Cee.isPrototypeConstructor(c,l,u)||Cee.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:AA.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=ZL(this,c,p,l,u,d,f):h||(h=this.programs[c]=ZL(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=AA.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=R9t(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=_3e(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};v3e(c,e.helpers,i),v3e(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=AA.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=Cee.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;B3e.moveHelperToHooks(i,"helperMissing",l),B3e.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Nc.default("must pass block params");if(t.useDepths&&!u)throw new Nc.default("must pass parent depths");return ZL(i,a,t[a],c,0,l,u)},s}o(x9t,"template");function ZL(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=_3e(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(ZL,"wrapProgram");function _9t(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=eF(r.partials,t)):r.name==="@partial-block"?t=eF(r.data,"partial-block"):t=eF(r.partials,r.name),t}o(_9t,"resolvePartial");function N9t(t,e,r){var n=eF(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==x3e&&(function(){r.data=Md.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Md.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=AA.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Nc.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(N9t,"invokePartial");function x3e(){return""}o(x3e,"noop");function eF(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(eF,"lookupOwnProperty");function R9t(t,e){return(!e||!("root"in e))&&(e=e?Md.createFrame(e):{},e.root=t),e}o(R9t,"initData");function _3e(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),AA.extend(e,a)}return e}o(_3e,"executeDecorators");function v3e(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=T9t(i,r)})}o(v3e,"addHelpers");function T9t(t,e){var r=e.lookupProperty;return B9t.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(T9t,"passLookupPropertyOption")});var bee=m((tF,R3e)=>{"use strict";tF.__esModule=!0;tF.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};R3e.exports=tF.default});var P3e=m((rF,k3e)=>{"use strict";rF.__esModule=!0;function wee(t){return t&&t.__esModule?t:{default:t}}o(wee,"_interopRequireDefault");function See(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(See,"_interopRequireWildcard");var D9t=KL(),T3e=See(D9t),Q9t=w3e(),k9t=w Line truncated
`+this.lexer.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ae="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ae,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:te})}}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(x[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(x[1]),B=null,Q?(B=Q,Q=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(W=this.productions_[x[1]][1],q.$=c[c.length-W],q._$={first_line:l[l.length-(W||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(W||1)].first_column,last_column:l[l.length-1].last_column},y&&(q._$.range=[l[l.length-(W||1)].range[0],l[l.length-1].range[1]]),T=this.performAction.call(q,d,h,f,this.yy,x[1],c,l),typeof T<"u")return T;W&&(a=a.slice(0,-1*W*2),c=c.slice(0,-1*W),l=l.slice(0,-1*W)),a.push(this.productions_[x[1]][0]),c.push(q.$),l.push(q._$),ee=u[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(c=this._input.match(this.rules[f[h]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=h,!this.options.flex)));h++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();iF.default=q9t;F3e.exports=iF.default});var xee=m(vee=>{"use strict";vee.__esModule=!0;var G9t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];vee.NODE_TYPES=G9t});var cF=m((aF,H3e)=>{"use strict";aF.__esModule=!0;function H9t(t){return t&&t.__esModule?t:{default:t}}o(H9t,"_interopRequireDefault");var V9t=Fa(),_ee=H9t(V9t),z9t=Mi(),j9t=xee();function oF(){this.parents=[]}o(oF,"Visitor");function U3e(t,e){return z9t.indexOf(j9t.NODE_TYPES,e)!==-1||!(e in oF.prototype)&&typeof t[e]=="function"}o(U3e,"isDispatchable");oF.prototype={constructor:oF,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!U3e(this,n.type))throw new _ee.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new _ee.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!U3e(this,e.type)||!this[e.type])throw new _ee.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var rLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new yA(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof yA?e:(e=Lee(e,this,r),new yA(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return e=e+"",wjt.test(e)?rGe(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=Lee(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(Lee(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};fF.default=nGe});var dGe=m((hF,uGe)=>{"use strict";hF.__esModule=!0;function aGe(t){return t&&t.__esModule?t:{default:t}}o(aGe,"_interopRequireDefault");var sGe=KL(),xjt=Fa(),Mee=aGe(xjt),_jt=Mi(),cGe=iGe(),oGe=aGe(cGe);function lb(t){this.value=t}o(lb,"Literal");function ub(){}o(ub,"JavaScriptCompiler");ub.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=sGe.COMPILER_REVISION,r=sGe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return _jt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Mee.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,A=h.decorators;for(l=0,u=p.length;l<u;l++)f[l]=p[l],A[l]&&(f[l+"_d"]=A[l],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new oGe.default(this.options.srcName),this.decorators=new oGe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Njt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var i=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",s.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var i=1;i<e.length;i++)n.push(r,e[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Wr.prototype.Program=function(t){var e="",r=t.body,n=void 0,i=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=t.blockParams.length;n<i;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,i=r.length;n<i;n++)e+=this.accept(r[n]);return this.padding--,e};Wr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Wr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Wr.prototype.BlockStatement=Wr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Wr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Wr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Wr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Wr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Wr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Wr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Wr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Wr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Wr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Wr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Wr.prototype.NullLiteral=function(){return"NULL"};Wr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Wr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var EGe=m((jVr,yGe)=>{var AF=pGe().default,gGe=mGe();AF.PrintVisitor=gGe.PrintVisitor;AF.print=gGe.print;yGe.exports=AF;function AGe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=AF.compile(n)}o(AGe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=AGe,require.extensions[".hbs"]=AGe)});var LGe=N(require("fs"),1),FGe=N(require("path"),1);var wte=N(require("os"),1);function Cu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Cu,"toCommandValue");function SF(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(SF,"toCommandProperties");function bu(t,e,r){let n=new BF(t,e,r);process.stdout.write(n.toString()+wte.EOL)}o(bu,"issueCommand");function vF(t,e=""){bu(t,{},e)}o(vF,"issue");var Ite="::",BF=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Ite+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${B4e(i)}`)}}return e+=`${Ite}${S4e(this.message)}`,e}};function S4e(t){return Cu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(S4e,"escapeData");function B4e(t){return Cu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(B4e,"escapeProperty");var Ste=N(require("crypto"),1),Yv=N(require("fs"),1),Jv=N(require("os"),1);function Kv(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Yv.existsSync(r))throw new Error(`Missing file at path: ${r}`);Yv.appendFileSync(r,`${Cu(e)}${Jv.EOL}`,{encoding:"utf8"})}o(Kv,"issueFileCommand");function xF(t,e){let r=`ghadelimiter_${Ste.randomUUID()}`,n=Cu(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Jv.EOL}${n}${Jv.EOL}${r}`}o(xF,"prepareKeyValueMessage");var g3=N(require("os"),1),bue=N(require("path"),1);var S0=N(require("http"),1),n3=N(require("https"),1);function _F(t){let e=t.protocol==="https:";if(v4e(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Xv(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("htt Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(pp,"getBooleanInput");function Iue(t,e){if(process.env.GITHUB_OUTPUT||"")return Kv("OUTPUT",xF(t,e));process.stdout.write(g3.EOL),bu("set-output",{name:t},Cu(e))}o(Iue,"setOutput");function Z2(t){process.exitCode=A3.Failure,xg(t)}o(Z2,"setFailed");function mp(){return process.env.RUNNER_DEBUG==="1"}o(mp,"isDebug");function D(t){bu("debug",{},t)}o(D,"debug");function xg(t,e={}){bu("error",SF(e),t instanceof Error?t.toString():t)}o(xg,"error");function Ht(t,e={}){bu("warning",SF(e),t instanceof Error?t.toString():t)}o(Ht,"warning");function O(t){process.stdout.write(t+g3.EOL)}o(O,"info");function hKe(t){vF("group",t)}o(hKe,"startGroup");function pKe(){vF("endgroup")}o(pKe,"endGroup");function Qr(t,e){return fKe(this,void 0,void 0,function*(){hKe(t);let r;try{r=yield e()}finally{pKe()}return r})}o(Qr,"group");function Ho(t,e){if(process.env.GITHUB_STATE||"")return Kv("STATE",xF(t,e));bu("save-state",{name:t},Cu(e))}o(Ho,"saveState");function wue(t){return process.env[`STATE_${t}`]||""}o(wue,"getState");var Ew=N(require("fs"),1),T6=N(require("os"),1),D6=N(require("path"),1);var Bue=N(require("os"),1);function _0(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(_0,"toCommandValue");function vue(t,e,r){let n=new y3(t,e,r);process.stdout.write(n.toString()+Bue.EOL)}o(vue,"issueCommand");var Sue="::",y3=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Sue+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${AKe(i)}`)}}return e+=`${Sue}${mKe(this.message)}`,e}};function mKe(t){return _0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(mKe,"escapeData");function AKe(t){return _0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(AKe,"escapeProperty");var Rue=N(require("os"),1);var _ue=require("os"),N0=require("fs");var E3=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:gKe,appendFile:yKe,writeFile:EKe}=N0.promises,xue="GITHUB_STEP_SUMMARY";var C3=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return E3(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[xue];if(!e)throw new Error(`Unable to find environment variable for $${xue}. Check if your runtime environment supports job summaries.`);try{yield gKe(e,N0.constants.R_OK|N0.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return E3(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?EKe:yKe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return E3(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(_ue.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.adLine truncated
`,Bqt=/\u2014 (\S+) (\S+)\n/g;function xqt(t,e){let r=t.inclusionProof,n=HY.fromString(r.checkpoint.envelope),i=Lk.fromString(n.note);if(!vqt(n,e))throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(xqt,"verifyCheckpoint");function vqt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>oOe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?oOe.crypto.verify(r,i.publicKey,n.signature):!1})}o(vqt,"verifySignedNote");var HY=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(GY))throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(GY),n=e.slice(0,r+1),s=e.slice(r+GY.length).matchAll(Bqt),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},Lk=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new ME.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};NS.LogCheckpoint=Lk});var cOe=g($Y=>{"use strict";Object.defineProperty($Y,"__esModule",{value:!0});$Y.verifyMerkleInclusion=_qt;var VY=Xa(),Fk=Ci(),Nqt=Buffer.from([0]),Rqt=Buffer.from([1]);function _qt(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=Tqt(n,i);if(r.hashes.length!==s+a)throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=Lqt(t.canonicalizedBody),d=Qqt(Dqt(u,c,n),l);if(!VY.crypto.bufferEqual(d,e.logHash))throw new Fk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(_qt,"verifyMerkleInclusion");function Tqt(t,e){let r=kqt(t,e),n=Pqt(t>>BigInt(r));return{inner:r,border:n}}o(Tqt,"decompInclProof");function Dqt(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?zY(i,n):zY(n,i),t)}o(Dqt,"chainInner");function Qqt(t,e){return e.reduce((r,n)=>zY(n,r),t)}o(Qqt,"chainBorderRight");function kqt(t,e){return Oqt(t^e-BigInt(1))}o(kqt,"innerProofSize");function Pqt(t){return t.toString(2).split("1").length-1}o(Pqt,"onesCount");function Oqt(t){return t===0n?0:t.toString(2).length}o(Oqt,"bitLength");function zY(t,e){return VY.crypto.digest("sha256",Rqt,t,e)}o(zY,"hashChildren");function Lqt(t){return VY.crypto.digest("sha256",Nqt,t)}o(Lqt,"hashLeaf")});var uOe=g(jY=>{"use strict";Object.defineProperty(jY,"__esModule",{value:!0});jY.verifyTLogSET=Uqt;var lOe=Xa(),Fqt=Ci(),Mqt=PE();function Uqt(t,e){if(!(0,Mqt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=qqt(t),a=Buffer.from(lOe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return lOe.crypto.verify(a,i.publicKey,c)}))throw new Fqt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(Uqt,"verifyTLogSET");function qqt(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(qqt,"toVerificationPayload")});var fOe=g(Uk=>{"use strict";Object.defineProperty(Uk,"__esModule",{value:!0});Uk.verifyTLogBody=$qt;Uk.verifyTLogInclusion=jqt;var dOe=rOe(),Mk=Ci(),WY=nOe(),JY=iOe(),Gqt=sOe(),Hqt=aOe(),zqt=cOe(),Vqt=uOe();function $qt(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new Mk.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new Mk.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==WY.DSSE_API_VERSION_V1)return(0,WY.verifyDSSETLogBody)(i,e);{let s=dOe.Entry.fromJSON(i);return(0,WY.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Gqt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==JY.HASHEDREKORD_API_VERSION_V1)return(0,JY.verifyHashedRekordTLogBody)(i,e);{let s=dOe.Entry.fromJSON(i);return(0,JY.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new Mk.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o($qt,"verifyTLogBody");function jqt(t,e){let r=!1;if(Wqt(t)&&((0,Vqt.verifyTLogSET)(t,e),r=!0),Jqt(t)){let n=(0,Hqt.verifyCheckpoint)(t,e);(0,zqt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new Mk.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(jqt,"verifyTLogInclusion");function Wqt(t){return t.inclusionPromise!==void 0}o(Wqt,"isTLogEntryWithInclusionPromise");function Jqt(t){return t.inclusionProof!==void 0}o(Jqt,"isTLogEntryWithInclusionProof")});var mOe=g(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.Verifier=void 0;var Yqt=require("util"),bA=Ci(),hOe=zPe(),YY=VPe(),pOe=WPe(),AOe=fOe(),XY=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(wh,"getBooleanInput");function Use(t,e){if(process.env.GITHUB_OUTPUT||"")return cB("OUTPUT",gP(t,e));process.stdout.write(aM.EOL),Ul("set-output",{name:t},Ml(e))}o(Use,"setOutput");function lv(t){process.exitCode=oM.Failure,Sa(t)}o(lv,"setFailed");function Ih(){return process.env.RUNNER_DEBUG==="1"}o(Ih,"isDebug");function v(t){Ul("debug",{},t)}o(v,"debug");function Sa(t,e={}){Ul("error",pP(e),t instanceof Error?t.toString():t)}o(Sa,"error");function Ge(t,e={}){Ul("warning",pP(e),t instanceof Error?t.toString():t)}o(Ge,"warning");function D(t){process.stdout.write(t+aM.EOL)}o(D,"info");function wje(t){mP("group",t)}o(wje,"startGroup");function Ije(){mP("endgroup")}o(Ije,"endGroup");function Sr(t,e){return bje(this,void 0,void 0,function*(){wje(t);let r;try{r=yield e()}finally{Ije()}return r})}o(Sr,"group");function Eo(t,e){if(process.env.GITHUB_STATE||"")return cB("STATE",gP(t,e));Ul("save-state",{name:t},Ml(e))}o(Eo,"saveState");function qse(t){return process.env[`STATE_${t}`]||""}o(qse,"getState");var sw=T(require("fs"),1),wV=T(require("os"),1),IV=T(require("path"),1);var Hse=T(require("os"),1);function pb(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(pb,"toCommandValue");function zse(t,e,r){let n=new cM(t,e,r);process.stdout.write(n.toString()+Hse.EOL)}o(zse,"issueCommand");var Gse="::",cM=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Gse+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${Bje(i)}`)}}return e+=`${Gse}${Sje(this.message)}`,e}};function Sje(t){return pb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Sje,"escapeData");function Bje(t){return pb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Bje,"escapeProperty");var Wse=T(require("os"),1);var $se=require("os"),Ab=require("fs");var lM=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:xje,appendFile:vje,writeFile:Nje}=Ab.promises,Vse="GITHUB_STEP_SUMMARY";var uM=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return lM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Vse];if(!e)throw new Error(`Unable to find environment variable for $${Vse}. Check if your runtime environment supports job summaries.`);try{yield xje(e,Ab.constants.R_OK|Ab.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return lM(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Nje:vje)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return lM(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw($se.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.adLine truncated
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new H0(s));return n.searchPaths.push(...eG(n.patterns)),n})}static stat(e,r,n){return cG(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Qg.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Wo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield Qg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Qg.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){Wo(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var utt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function che(t,e){return utt(this,void 0,void 0,function*(){return yield E_.create(t,e)})}o(che,"create");var O_=N(require("crypto"),1),Lg=N(require("fs"),1),Ep=N(require("path"),1),tme=N(Zpe(),1),rme=N(require("util"),1);var Y0;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Y0||(Y0={}));var Wi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Wi||(Wi={}));var oo;(function(t){t.GNU="gnu",t.BSD="bsd"})(oo||(oo={}));var Q_=2,k_=5e3,NG=5e3,RG=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,eme=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,K0="cache.tar",TG="manifest.txt",Vtr=10*Math.pow(1024,3),P_="cache read denied:";var Og=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},git=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={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},yit="1.0";function X0(){return Og(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Ep.join(n,"actions","temp")}let r=Ep.join(e,O_.randomUUID());return yield Lu(r),r})}o(X0,"createTempDirectory");function $c(t){return Lg.statSync(t).size}o($c,"getArchiveFileSizeInBytes");function DG(t){return Og(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield che(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=git(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=Ep.relative(c,i).replace(new RegExp(`\\${Ep.sep}`,"g"),"/");D(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(DG,"resolvePaths");function Z0(t){return Og(this,void 0,void 0,function*(){return rme.promisify(Lg.unlink)(t)})}o(Z0,"unlinkFile");function nme(t){return Og(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),D(`Checking ${e} ${r.join(" ")}`);try{yield no(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){D(i.message)}return n=n.trim(),D(n),n})}o(nme,"getVersion");function eI(){return Og(this,void 0,void 0,function*(){let t=yield nme("zstd",["--quiet"]),e=tme.clean(t);return D(`zstd version: ${e}`),t===""?Wi.Gzip:Wi.ZstdWithoutLong})}o(eI,"getCompressionMethod");function yf(t){return t===Wi.Gzip?Y0.Gzip:Y0.Zstd}o(yf,"getCacheFileName");function ime(){return Og(this,void 0,void 0,function*(){return Lg.existsSync(RG)?RG:(yield nme("tar")).toLowerCase().includes("gnu tar")?ai("tar"):""})}o(ime,"getGnuTarPathOnWindows");function QG(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(QG,"assertDefined");function Fg(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(yit),O_.createHash("sha256").update(n.join("|")).digest("hex")}o(Fg,"getCacheVersion");function sme(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(sme,"getRuntimeToken");var rI=N(require("http"),1),OG=N(require("https"),1);function kG(t){let e=t.protocol==="https:";if(Eit(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new F_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new F_(`http://${r}`)}else return}o(kG,"getProxyUrl");function Eit(t){if(!t.hostname)return!1;let e=t.hostname;if(Cit(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(Eit,"checkBypass");function Cit(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Cit,"isLoopbackAddress");var F_=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Ef=N(vA(),1),ome=N(cf(),1);var Zr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},kr;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(kr||(kr={}));var Ji;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ji||(Ji={}));var qu;(function(t){t.ApplicationJson="application/json"})(qu||(qu={}));var Iit=[kr.MovedPermanently,kr.ResourceMoved,kr.SeeOther,kr.TemporaryRedirect,kr.PermanentRedirect],wit=[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout],Sit=["OPTIONS","GET","DELETE","HEAD"],Bit=10,vit=5,Wc=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${Pit.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function V_(t){return t instanceof Yi?!0:bp(t)&&t.name==="RestError"}o(V_,"isRestError");function Is(t,e){return Buffer.from(t,e)}o(Is,"stringToUint8Array");var z_=N(require("node:http"),1),j_=N(require("node:https"),1),jG=N(require("node:zlib"),1),Sme=require("node:stream");var Ko=nI("ts-http-runtime");var Oit={};function iI(t){return t&&typeof t.pipe=="function"}o(iI,"isReadableStream");function wme(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(wme,"isStreamComplete");function Bme(t){return t&&typeof t.byteLength=="number"}o(Bme,"isArrayBuffer");var $_=class extends Sme.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(i){n(i)}}constructor(e){super(),this.progressCallback=e}},$G=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Jc("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new tc;Ko.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=Uit(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,g=new $_(A);g.on("error",E=>{Ko.error("Error in upload progress",E)}),iI(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=Lit(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?Fit(u,d):u;let p=e.onDownloadProgress;if(p){let A=new $_(p);A.on("error",g=>{Ko.error("Error in download progress",g)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await Mit(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();iI(c)&&(u=wme(c));let d=Promise.resolve();iI(l)&&(d=wme(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{Ko.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?z_.default.request(c,l):j_.default.request(c,l);d.once("error",f=>{u(new Yi(f.message,{code:f.code??Yi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new Jc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&iI(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Bme(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ko.error("Unrecognized body type",n),u(new Yi("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?z_.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new z_.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j_.default.globalAgent;let i=e.tlsSettings??Oit,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(Ko.info("No cached TLS Agent exist, creating a new Agent"),s=new j_.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function Lit(t){let e=ao();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(Lit,"getResponseHeaders");function Fit(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=jG.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=jG.default.createInflate();return t.pipe(n),n}return t}o(Fit,"getDecodedResponseStream");function Mit(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Yi(`Error reading response as text: ${i.message}`,{code:Yi.PARSE_ERROR}))})})}o(Mit,"streamToText");function Uit(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(got,"encodeHeaders");function yot(t){return t instanceof Uint8Array?t.byteLength:gN(t)?t.size===-1?void 0:t.size:void 0}o(yot,"getLength");function Eot(t){let e=0;for(let r of t){let n=yot(r);if(n===void 0)return;e+=n}return e}o(Eot,"getTotalLength");async function Cot(t,e,r){let n=[Is(`--${r}`,"utf-8"),...e.flatMap(s=>[Is(`\r
`,"utf-8"),Is(got(s.headers),"utf-8"),Is(`\r
`,"utf-8"),s.body,Is(`\r
--${r}`,"utf-8")]),Is(`--\r
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new _b(s));return n.searchPaths.push(...zM(n.patterns)),n})}static stat(e,r,n){return ZM(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Pm.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){So(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield Pm.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){So(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var rYe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ice(t,e){return rYe(this,void 0,void 0,function*(){return yield Nv.create(t,e)})}o(Ice,"create");var Vv=T(require("crypto"),1),Mm=T(require("fs"),1),Nh=T(require("path"),1),mue=T(pue(),1),gue=T(require("util"),1);var Lb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Lb||(Lb={}));var _i;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(_i||(_i={}));var Us;(function(t){t.GNU="gnu",t.BSD="bsd"})(Us||(Us={}));var Gv=2,Hv=5e3,CU=5e3,bU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Aue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Fb="cache.tar",wU="manifest.txt",bWt=10*Math.pow(1024,3),zv="cache read denied:";var Fm=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},dXe=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={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},fXe="1.0";function Rh(){return Fm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Nh.join(n,"actions","temp")}let r=Nh.join(e,Vv.randomUUID());return yield ru(r),r})}o(Rh,"createTempDirectory");function gc(t){return Mm.statSync(t).size}o(gc,"getArchiveFileSizeInBytes");function IU(t){return Fm(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield Ice(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=dXe(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=Nh.relative(c,i).replace(new RegExp(`\\${Nh.sep}`,"g"),"/");v(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(IU,"resolvePaths");function Mb(t){return Fm(this,void 0,void 0,function*(){return gue.promisify(Mm.unlink)(t)})}o(Mb,"unlinkFile");function yue(t){return Fm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),v(`Checking ${e} ${r.join(" ")}`);try{yield Fs(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){v(i.message)}return n=n.trim(),v(n),n})}o(yue,"getVersion");function Ub(){return Fm(this,void 0,void 0,function*(){let t=yield yue("zstd",["--quiet"]),e=mue.clean(t);return v(`zstd version: ${e}`),t===""?_i.Gzip:_i.ZstdWithoutLong})}o(Ub,"getCompressionMethod");function Nd(t){return t===_i.Gzip?Lb.Gzip:Lb.Zstd}o(Nd,"getCacheFileName");function Eue(){return Fm(this,void 0,void 0,function*(){return Mm.existsSync(bU)?bU:(yield yue("tar")).toLowerCase().includes("gnu tar")?Gn("tar"):""})}o(Eue,"getGnuTarPathOnWindows");function SU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(SU,"assertDefined");function Um(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(fXe),Vv.createHash("sha256").update(n.join("|")).digest("hex")}o(Um,"getCacheVersion");function Cue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Cue,"getRuntimeToken");var Gb=T(require("http"),1),vU=T(require("https"),1);function BU(t){let e=t.protocol==="https:";if(hXe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new jv(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jv(`http://${r}`)}else return}o(BU,"getProxyUrl");function hXe(t){if(!t.hostname)return!1;let e=t.hostname;if(pXe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(hXe,"checkBypass");function pXe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(pXe,"isLoopbackAddress");var jv=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Rd=T(_A(),1),bue=T(yh(),1);var Ur=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Br;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Br||(Br={}));var Ti;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ti||(Ti={}));var ou;(function(t){t.ApplicationJson="application/json"})(ou||(ou={}));var mXe=[Br.MovedPermanently,Br.ResourceMoved,Br.SeeOther,Br.TemporaryRedirect,Br.PermanentRedirect],gXe=[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout],yXe=["OPTIONS","GET","DELETE","HEAD"],EXe=10,CXe=5,yc=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${RXe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Zv(t){return t instanceof Di?!0:Th(t)&&t.name==="RestError"}o(Zv,"isRestError");function ns(t,e){return Buffer.from(t,e)}o(ns,"stringToUint8Array");var eN=T(require("node:http"),1),tN=T(require("node:https"),1),LU=T(require("node:zlib"),1),Mue=require("node:stream");var No=Hb("ts-http-runtime");var _Xe={};function zb(t){return t&&typeof t.pipe=="function"}o(zb,"isReadableStream");function Fue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(Fue,"isStreamComplete");function Uue(t){return t&&typeof t.byteLength=="number"}o(Uue,"isArrayBuffer");var rN=class extends Mue.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(i){n(i)}}constructor(e){super(),this.progressCallback=e}},FU=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ec("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Na;No.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=kXe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,A=new rN(m);A.on("error",E=>{No.error("Error in upload progress",E)}),zb(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=TXe(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?DXe(u,d):u;let p=e.onDownloadProgress;if(p){let m=new rN(p);m.on("error",A=>{No.error("Error in download progress",A)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await QXe(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();zb(c)&&(u=Fue(c));let d=Promise.resolve();zb(l)&&(d=Fue(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{No.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?eN.default.request(c,l):tN.default.request(c,l);d.once("error",f=>{u(new Di(f.message,{code:f.code??Di.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new Ec("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&zb(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Uue(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(No.error("Unrecognized body type",n),u(new Di("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?eN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new eN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return tN.default.globalAgent;let i=e.tlsSettings??_Xe,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(No.info("No cached TLS Agent exist, creating a new Agent"),s=new tN.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function TXe(t){let e=qs();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(TXe,"getResponseHeaders");function DXe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=LU.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=LU.default.createInflate();return t.pipe(n),n}return t}o(DXe,"getDecodedResponseStream");function QXe(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Di(`Error reading response as text: ${i.message}`,{code:Di.PARSE_ERROR}))})})}o(QXe,"streamToText");function kXe(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(fet,"encodeHeaders");function het(t){return t instanceof Uint8Array?t.byteLength:xN(t)?t.size===-1?void 0:t.size:void 0}o(het,"getLength");function pet(t){let e=0;for(let r of t){let n=het(r);if(n===void 0)return;e+=n}return e}o(pet,"getTotalLength");async function Aet(t,e,r){let n=[ns(`--${r}`,"utf-8"),...e.flatMap(s=>[ns(`\r
`,"utf-8"),ns(fet(s.headers),"utf-8"),ns(`\r
`,"utf-8"),s.body,ns(`\r
--${r}`,"utf-8")]),ns(`--\r
\r
`,"utf-8")],i=Eot(n);i&&t.headers.set("Content-Length",i),t.body=await NAe(n)}o(Cot,"buildRequestBody");var aI="multipartPolicy",bot=70,Iot=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function wot(t){if(t.length>bot)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Iot.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(wot,"assertValidBoundary");function EN(){return{name:aI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?wot(r):r=Aot(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await Cot(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(EN,"multipartPolicy");function CN(){return H_()}o(CN,"createEmptyPipeline");var RAe=U_({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Hor=RAe.logger;function Xc(t){return RAe.createClientLogger(t)}o(Xc,"createClientLogger");var Zc=Xc("core-rest-pipeline");function f4(t={}){return J_({logger:Zc.info,...t})}o(f4,"logPolicy");var h4=Y_;function p4(t={}){return K_(t)}o(p4,"redirectPolicy");var bN=N(require("node:os"),1),IN=N(require("node:process"),1);function TAe(){return"User-Agent"}o(TAe,"getHeaderName");async function DAe(t){if(IN.default&&IN.default.versions){let e=`${bN.default.type()} ${bN.default.release()}; ${bN.default.arch()}`,r=IN.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(DAe,"setPlatformSpecificData");var wN="1.22.2";function Tot(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(Tot,"getUserAgentString");function QAe(){return TAe()}o(QAe,"getUserAgentHeaderName");async function SN(t){let e=new Map;e.set("core-rest-pipeline",wN),await DAe(e);let r=Tot(e);return t?`${t} ${r}`:r}o(SN,"getUserAgentValue");var kAe=QAe(),PAe="userAgentPolicy";function m4(t={}){let e=SN(t.userAgentPrefix);return{name:PAe,async sendRequest(r,n){return r.headers.has(kAe)||r.headers.set(kAe,await e),n(r)}}}o(m4,"userAgentPolicy");var fo=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function A4(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new fo(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(A4,"createAbortablePromise");var Oot="The delay was aborted.";function cI(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return A4(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Oot})}o(cI,"delay");function bf(t){if(bp(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(bf,"getErrorMessage");function OAe(t){return bp(t)}o(OAe,"isError");function $g(){return Cp()}o($g,"randomUUID");var Ot=Sp;var LAe=Symbol("rawContent");function y4(t){return typeof t[LAe]=="function"}o(y4,"hasRawContent");function FAe(t){return y4(t)?t[LAe]():t}o(FAe,"getRawContent");var BN=aI;function E4(){let t=EN();return{name:BN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)y4(n.body)&&(n.body=FAe(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(E4,"multipartPolicy");var C4=X_;function b4(){return Z_()}o(b4,"decompressResponsePolicy");function I4(t={}){return rN(t)}o(I4,"defaultRetryPolicy");function w4(){return nN()}o(w4,"formDataPolicy");function If(t){return a4(t)}o(If,"getDefaultProxySettings");function S4(t,e){return pN(t,e)}o(S4,"proxyPolicy");var MAe="setClientRequestIdPolicy";function B4(t="x-ms-client-request-id"){return{name:MAe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(B4,"setClientRequestIdPolicy");function v4(t){return mN(t)}o(v4,"agentPolicy");function x4(t){return AN(t)}o(x4,"tlsPolicy");var Wg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function UAe(t={}){let e=new _4(t.parentContext);return t.span&&(e=e.setValue(Wg.span,t.span)),t.namespace&&(e=e.setValue(Wg.namespace,t.namespace)),e}o(UAe,"createTracingContext");var _4=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!oct(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",en("InvalidTag",f,Ki(t,s))}let u=tct(t,s);if(u===!1)return en("InvalidAttr","Attributes for '"+l+"' have open quote.",Ki(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=wge(d,e);if(h===!0)n=!0;else return en(h.err.code,h.err.msg,Ki(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return en("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Ki(t,a));if(r.length===0)return en("InvalidTag","Closing tag '"+l+"' has not been opened.",Ki(t,a));{let f=r.pop();if(l!==f.tagName){let h=Ki(t,f.tagStartPos);return en("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Ki(t,a))}r.length==0&&(i=!0)}}else return en("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Ki(t,s));else{let f=wge(d,e);if(f!==!0)return en(f.err.code,f.err.msg,Ki(t,s-d.length+f.err.line));if(i===!0)return en("InvalidXml","Multiple possible root nodes found.",Ki(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Ige(t,s);continue}else if(t[s+1]==="?"){if(s=bge(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=ict(t,s);if(f==-1)return en("InvalidChar","char '&' is not expected.",Ki(t,s));s=f}else if(i===!0&&!Cge(t[s]))return en("InvalidXml","Extra text at the end",Ki(t,s));t[s]==="<"&&s--}}else{if(Cge(t[s]))continue;return en("InvalidChar","char '"+t[s]+"' is not expected.",Ki(t,s))}if(n){if(r.length==1)return en("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ki(t,r[0].tagStartPos));if(r.length>0)return en("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return en("InvalidXml","Start tag expected.",1);return!0}o(FN,"validate");function Cge(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Cge,"isWhiteSpace");function bge(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return en("InvalidXml","XML declaration allowed only at the start of the document.",Ki(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(bge,"readPI");function Ige(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(Ige,"readCommentAndCDATA");var Zat='"',ect="'";function tct(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===Zat||t[e]===ect)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(tct,"readAttributeStr");var rct=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function wge(t,e){let r=ON(t,rct),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return en("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",CI(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return en("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",CI(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return en("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",CI(r[i]));let s=r[i][2];if(!sct(s))return en("InvalidAttr","Attribute '"+s+"' is an invalid name.",CI(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return en("InvalidAttr","Attribute '"+s+"' is repeated.",CI(r[i]))}return!0}o(wge,"validateAttributeString");function nct(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(nct,"validateNumberAmpersand");function ict(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,nct(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(ict,"validateAmpersand");function en(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(en,"getErrorObject");function sct(t){return j4(t)}o(sct,"validateAttrName");function oct(t){return j4(t)}o(oct,"validateTagName");function Ki(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Ki,"getLineNumberForPosition");function CI(t){return t.startIndex+t[1].length}o(CI,"getPositionFromMatch");var Sge={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"},Bge={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",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},vge={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new vs("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,s=new wI(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=Zg(t,">",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=e5(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=t5(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new vs(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Zg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Zg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=t5(t,c,i.removeNSPrefix);if(!d){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,A=d.attrExpPresent,g=d.closeIndex;if({tagName:f,tagExp:p}=e5(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),A=f!==p);let C=null,I={},B;B=Nct(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&A&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(I=_ct(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Q=c;if(this.isCurrentNodeStopNode){let M="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let j=this.readStopNodeData(t,h,g+1);if(!j)throw new Error(`Unexpected end of ${h}`);c=j.i,M=j.tagContent}let x=new vs(f);C&&(x[":@"]=C),x.add(i.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,x,this.readonlyMatcher,Q)}else{if(y){({tagName:f,tagExp:p}=e5(i.transformTagName,f,p,i));let M=new vs(f);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let M=new vs(f);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let M=new vs(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),r=M}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function Pct(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(Pct,"addChild");function Oct(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(Oct,"replaceEntitiesValue");function Lct(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Lct,"saveTextToParentTag");function Fct(){return this.stopNodeExpressionsSet.Line truncated
`;function $ct(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(a5(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o($ct,"detectXmlVersionFromArray");function jge(t,e,r,n,i){return!r.sanitizeName||Np(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(jge,"resolveTagName");function o5(t,e){let r="";e.format&&(r=jct);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new mo(c)):c instanceof mo&&n.push(c)}let i=$ct(t,e),s=new rl;return $ge(t,e,r,s,n,i)}o(o5,"toXml");function $ge(t,e,r,n,i,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=s5(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=a5(u);if(d===void 0)continue;let h=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:jge(d,!1,e,n,s),p=Wct(u[":@"],e);n.push(h,p);let A=Yct(n,i);if(h===e.textNodeName){let I=u[d];A||(I=e.tagValueProcessor(h,I),I=s5(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(h===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],B=HN(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(h===e.commentPropName){let I=u[d][0][e.textNodeName],B=GN(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(h[0]==="?"){let I=zge(u[":@"],e,A,n,s);a+=(h==="?xml"?"":r)+`<${h}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=zge(u[":@"],e,A,n,s),y=r+`<${h}${E}`,C;A?C=Wge(u[d],e):C=$ge(u[d],e,g,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}</${h}>`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${h}>`),c=!0,n.pop()}return a}o($ge,"arrToStr");function Wct(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Bf(t[i]),n=!0}return n?r:null}o(Wct,"extractAttributeValues");function Wge(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let i=t[n],s=a5(i);if(s===e.textNodeName)r+=i[s];else if(s===e.cdataPropName)r+=i[s][0][e.textNodeName];else if(s===e.commentPropName)r+=i[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=Jct(i[":@"],e),c=Wge(i[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(Wge,"getRawContent");function Jct(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Bf(i)}"`}return r}o(Jct,"attr_to_str_raw");function a5(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(a5,"propName");function zge(t,e,r,n,i){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:jge(c,!0,e,n,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=s5(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${l}`:s+=` ${l}="${Bf(u)}"`}return s}o(zge,"attr_to_str");function Yct(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(Yct,"checkStopNode");function s5(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(s5,"replaceEntitiesValue");function c5(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(c5,"getIgnoreAttributesFn");var Kct={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function _s(t){if(this.options=Object.assign({},Kct,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,"utf-8")],i=pet(n);i&&t.headers.set("Content-Length",i),t.body=await zde(n)}o(Aet,"buildRequestBody");var jb="multipartPolicy",met=70,get=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function yet(t){if(t.length>met)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!get.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(yet,"assertValidBoundary");function NN(){return{name:jb,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?yet(r):r=det(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await Aet(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(NN,"multipartPolicy");function RN(){return Xv()}o(RN,"createEmptyPipeline");var Vde=Jv({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),EKt=Vde.logger;function wc(t){return Vde.createClientLogger(t)}o(wc,"createClientLogger");var Ic=wc("core-rest-pipeline");function nq(t={}){return iN({logger:Ic.info,...t})}o(nq,"logPolicy");var iq=sN;function sq(t={}){return oN(t)}o(sq,"redirectPolicy");var _N=T(require("node:os"),1),TN=T(require("node:process"),1);function $de(){return"User-Agent"}o($de,"getHeaderName");async function jde(t){if(TN.default&&TN.default.versions){let e=`${_N.default.type()} ${_N.default.release()}; ${_N.default.arch()}`,r=TN.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(jde,"setPlatformSpecificData");var DN="1.22.2";function vet(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(vet,"getUserAgentString");function Wde(){return $de()}o(Wde,"getUserAgentHeaderName");async function QN(t){let e=new Map;e.set("core-rest-pipeline",DN),await jde(e);let r=vet(e);return t?`${t} ${r}`:r}o(QN,"getUserAgentValue");var Jde=Wde(),Yde="userAgentPolicy";function oq(t={}){let e=QN(t.userAgentPrefix);return{name:Yde,async sendRequest(r,n){return r.headers.has(Jde)||r.headers.set(Jde,await e),n(r)}}}o(oq,"userAgentPolicy");var Vs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new Vs(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(aq,"createAbortablePromise");var Det="The delay was aborted.";function Wb(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return aq(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Det})}o(Wb,"delay");function Td(t){if(Th(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Td,"getErrorMessage");function Kde(t){return Th(t)}o(Kde,"isError");function Jm(){return _h()}o(Jm,"randomUUID");var Qt=kh;var Xde=Symbol("rawContent");function lq(t){return typeof t[Xde]=="function"}o(lq,"hasRawContent");function Zde(t){return lq(t)?t[Xde]():t}o(Zde,"getRawContent");var kN=jb;function uq(){let t=NN();return{name:kN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)lq(n.body)&&(n.body=Zde(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(uq,"multipartPolicy");var dq=aN;function fq(){return cN()}o(fq,"decompressResponsePolicy");function hq(t={}){return dN(t)}o(hq,"defaultRetryPolicy");function pq(){return fN()}o(pq,"formDataPolicy");function Dd(t){return XU(t)}o(Dd,"getDefaultProxySettings");function Aq(t,e){return IN(t,e)}o(Aq,"proxyPolicy");var efe="setClientRequestIdPolicy";function mq(t="x-ms-client-request-id"){return{name:efe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(mq,"setClientRequestIdPolicy");function gq(t){return SN(t)}o(gq,"agentPolicy");function yq(t){return BN(t)}o(yq,"tlsPolicy");var Ym={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function tfe(t={}){let e=new Eq(t.parentContext);return t.span&&(e=e.setValue(Ym.span,t.span)),t.namespace&&(e=e.setValue(Ym.namespace,t.namespace)),e}o(tfe,"createTracingContext");var Eq=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!rrt(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",qr("InvalidTag",f,Qi(t,s))}let u=Ktt(t,s);if(u===!1)return qr("InvalidAttr","Attributes for '"+l+"' have open quote.",Qi(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=Ffe(d,e);if(h===!0)n=!0;else return qr(h.err.code,h.err.msg,Qi(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return qr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Qi(t,a));if(r.length===0)return qr("InvalidTag","Closing tag '"+l+"' has not been opened.",Qi(t,a));{let f=r.pop();if(l!==f.tagName){let h=Qi(t,f.tagStartPos);return qr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Qi(t,a))}r.length==0&&(i=!0)}}else return qr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Qi(t,s));else{let f=Ffe(d,e);if(f!==!0)return qr(f.err.code,f.err.msg,Qi(t,s-d.length+f.err.line));if(i===!0)return qr("InvalidXml","Multiple possible root nodes found.",Qi(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Lfe(t,s);continue}else if(t[s+1]==="?"){if(s=Ofe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=ert(t,s);if(f==-1)return qr("InvalidChar","char '&' is not expected.",Qi(t,s));s=f}else if(i===!0&&!Pfe(t[s]))return qr("InvalidXml","Extra text at the end",Qi(t,s));t[s]==="<"&&s--}}else{if(Pfe(t[s]))continue;return qr("InvalidChar","char '"+t[s]+"' is not expected.",Qi(t,s))}if(n){if(r.length==1)return qr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Qi(t,r[0].tagStartPos));if(r.length>0)return qr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return qr("InvalidXml","Start tag expected.",1);return!0}o(jN,"validate");function Pfe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Pfe,"isWhiteSpace");function Ofe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return qr("InvalidXml","XML declaration allowed only at the start of the document.",Qi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Ofe,"readPI");function Lfe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(Lfe,"readCommentAndCDATA");var Jtt='"',Ytt="'";function Ktt(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===Jtt||t[e]===Ytt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(Ktt,"readAttributeStr");var Xtt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ffe(t,e){let r=VN(t,Xtt),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return qr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",o0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return qr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",o0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return qr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",o0(r[i]));let s=r[i][2];if(!trt(s))return qr("InvalidAttr","Attribute '"+s+"' is an invalid name.",o0(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return qr("InvalidAttr","Attribute '"+s+"' is repeated.",o0(r[i]))}return!0}o(Ffe,"validateAttributeString");function Ztt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(Ztt,"validateNumberAmpersand");function ert(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ztt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(ert,"validateAmpersand");function qr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(qr,"getErrorObject");function trt(t){return Lq(t)}o(trt,"validateAttrName");function rrt(t){return Lq(t)}o(rrt,"validateTagName");function Qi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Qi,"getLineNumberForPosition");function o0(t){return t.startIndex+t[1].length}o(o0,"getPositionFromMatch");var Mfe={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"},Ufe={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",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},qfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new as("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,s=new l0(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=tg(t,">",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=Vq(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=$q(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new as(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=tg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=tg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=$q(t,c,i.removeNSPrefix);if(!d){let U=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${U}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,m=d.attrExpPresent,A=d.closeIndex;if({tagName:f,tagExp:p}=Vq(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),m=f!==p);let C=null,w={},B;B=Brt(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&m&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(w=Srt(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let P=c;if(this.isCurrentNodeStopNode){let U="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let $=this.readStopNodeData(t,h,A+1);if(!$)throw new Error(`Unexpected end of ${h}`);c=$.i,U=$.tagContent}let N=new as(f);C&&(N[":@"]=C),N.add(i.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,P)}else{if(y){({tagName:f,tagExp:p}=Vq(i.transformTagName,f,p,i));let U=new as(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let U=new as(f);C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let U=new as(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(U[":@"]=C),this.addChild(r,U,this.readonlyMatcher,P),r=U}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function Trt(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(Trt,"addChild");function Drt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(Drt,"replaceEntitiesValue");function Qrt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Qrt,"saveTextToParentTag");function krt(){return this.stopNodeExpressionsSet.Line truncated
`;function Hrt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Xq(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o(Hrt,"detectXmlVersionFromArray");function ahe(t,e,r,n,i){return!r.sanitizeName||Mh(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(ahe,"resolveTagName");function Kq(t,e){let r="";e.format&&(r=Grt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Ws(c)):c instanceof Ws&&n.push(c)}let i=Hrt(t,e),s=new xc;return che(t,e,r,s,n,i)}o(Kq,"toXml");function che(t,e,r,n,i,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=Yq(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=Xq(u);if(d===void 0)continue;let h=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:ahe(d,!1,e,n,s),p=zrt(u[":@"],e);n.push(h,p);let m=$rt(n,i);if(h===e.textNodeName){let w=u[d];m||(w=e.tagValueProcessor(h,w),w=Yq(w,e)),c&&(a+=r),a+=w,c=!1,n.pop();continue}else if(h===e.cdataPropName){c&&(a+=r);let w=u[d][0][e.textNodeName],B=XN(w);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(h===e.commentPropName){let w=u[d][0][e.textNodeName],B=KN(w);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(h[0]==="?"){let w=ohe(u[":@"],e,m,n,s);a+=(h==="?xml"?"":r)+`<${h}${w}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let E=ohe(u[":@"],e,m,n,s),y=r+`<${h}${E}`,C;m?C=lhe(u[d],e):C=che(u[d],e,A,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}</${h}>`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${h}>`),c=!0,n.pop()}return a}o(che,"arrToStr");function zrt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Pd(t[i]),n=!0}return n?r:null}o(zrt,"extractAttributeValues");function lhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let i=t[n],s=Xq(i);if(s===e.textNodeName)r+=i[s];else if(s===e.cdataPropName)r+=i[s][0][e.textNodeName];else if(s===e.commentPropName)r+=i[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=Vrt(i[":@"],e),c=lhe(i[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(lhe,"getRawContent");function Vrt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Pd(i)}"`}return r}o(Vrt,"attr_to_str_raw");function Xq(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(Xq,"propName");function ohe(t,e,r,n,i){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:ahe(c,!0,e,n,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=Yq(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${l}`:s+=` ${l}="${Pd(u)}"`}return s}o(ohe,"attr_to_str");function $rt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o($rt,"checkStopNode");function Yq(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(Yq,"replaceEntitiesValue");function Zq(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(Zq,"getIgnoreAttributesFn");var jrt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ls(t){if(this.options=Object.assign({},jrt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(_s,"Builder");function Xct(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Xct,"detectXmlVersionFromObj");function l5(t,e,r,n,i){return!r.sanitizeName||Np(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(l5,"resolveTagName");_s.prototype.build=function(t){if(this.options.preserveOrder)return o5(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new rl,r=Xct(t,this.options);return this.j2x(t,0,e,r).val}};_s.prototype.j2x=function(t,e,r,n){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:l5(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=l5(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+"</"+d+this.tagEndChar}else s+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let f=t[l].length,h="",p="";for(let A=0;A<f;A++){let g=t[l][A];if(!(typeof g>"u"))if(g===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(g,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,g);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+g;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"</"+d+this.tagEndChar}else h+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,d,p,e)),s+=h}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let f=Object.keys(t[l]),h=f.length;for(let p=0;p<h;p++){let A=l5(f[p],!0,this.options,r,n);i+=this.buildAttrPairStr(A,""+t[l][f[p]],c)}}else s+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:i,val:s}};_s.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Bf(e)+'"'};function Zct(t,e,r,n,i){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,i);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(Zct,"processTextOrObjNode");_s.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[s]=Bf(n[i]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=this.isAttribute(n);i&&(e[i]=Bf(t[n]),r=!0)}return r?e:null};_s.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(ls,"Builder");function Wrt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Wrt,"detectXmlVersionFromObj");function e3(t,e,r,n,i){return!r.sanitizeName||Mh(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(e3,"resolveTagName");ls.prototype.build=function(t){if(this.options.preserveOrder)return Kq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xc,r=Wrt(t,this.options);return this.j2x(t,0,e,r).val}};ls.prototype.j2x=function(t,e,r,n){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:e3(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=e3(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+"</"+d+this.tagEndChar}else s+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let f=t[l].length,h="",p="";for(let m=0;m<f;m++){let A=t[l][m];if(!(typeof A>"u"))if(A===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(A,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,A);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+A;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"</"+d+this.tagEndChar}else h+=this.buildTextValNode(A,d,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,d,p,e)),s+=h}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let f=Object.keys(t[l]),h=f.length;for(let p=0;p<h;p++){let m=e3(f[p],!0,this.options,r,n);i+=this.buildAttrPairStr(m,""+t[l][f[p]],c)}}else s+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:i,val:s}};ls.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Pd(e)+'"'};function Jrt(t,e,r,n,i){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,i);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(Jrt,"processTextOrObjNode");ls.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[s]=Pd(n[i]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=this.isAttribute(n);i&&(e[i]=Pd(t[n]),r=!0)}return r?e:null};ls.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ve.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ve.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE));r.sort((i,s)=>eR(i.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((i,s,a)=>!(s>0&&i.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(i=>{n+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=KN(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=XN(e.url),s={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();s[l]=i[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var Pr=class extends Dp{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new _I(e,r,this)}computeHMACSHA256(e){return(0,rye.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var xn=Xc("storage-common");var ta;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ta||(ta={}));var xf={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ta.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},clt=new fo("The operation was aborted."),NI=class extends nl{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=xf){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:xf.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):xf.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:xf.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:xf.maxRetryDelayInMs):xf.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:xf.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:xf.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=YN(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=vf(i.url,ju.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(xn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(xn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return xn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return xn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return xn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return xn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ve.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(xn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case ta.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ta.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return xn.info(`RetryPolicy: Delay for ${i}ms`),ZN(i,n,clt)}};var RI=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new NI(e,r,this.retryOptions)}};var llt="storageBrowserPolicy";function nye(){return{name:llt,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=vf(t.url,ju.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ve.COOKIE),t.headers.delete(Ve.CONTENT_LENGTH)),e(t)}}}o(nye,"storageBrowserPolicy");var ult="StorageCorrectContentLengthPolicy";function iye(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:ult,async sendRequest(e,r){return t(e),r(e)}}}o(iye,"storageCorrectContentLengthPolicy");var dlt="storageRetryPolicy",ty={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ta.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},flt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],hlt=new fo("The operation was aborted.");function sye(t={}){let e=t.retryPolicyType??ty.retryPolicyType,r=t.maxTries??ty.maxTries,n=t.retryDelayInMs??ty.retryDelayInMs,i=t.maxRetryDelayInMs??ty.maxRetryDelayInMs,s=t.secondaryHost??ty.secondaryHost,a=t.tryTimeoutInMs??ty.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE));r.sort((i,s)=>lR(i.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((i,s,a)=>!(s>0&&i.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(i=>{n+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=oR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=aR(e.url),s={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();s[l]=i[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var xr=class extends Gh{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new p0(e,r,this)}computeHMACSHA256(e){return(0,ghe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var fn=wc("storage-common");var Do;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Do||(Do={}));var Ld={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},int=new Vs("The operation was aborted."),A0=class extends vc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Ld){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ld.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ld.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ld.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ld.maxRetryDelayInMs):Ld.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ld.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ld.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=sR(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Od(i.url,du.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(fn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(fn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return fn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return fn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return fn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(fn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Do.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Do.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return fn.info(`RetryPolicy: Delay for ${i}ms`),cR(i,n,int)}};var m0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new A0(e,r,this.retryOptions)}};var snt="storageBrowserPolicy";function yhe(){return{name:snt,async sendRequest(t,e){return Qt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Od(t.url,du.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(yhe,"storageBrowserPolicy");var ont="StorageCorrectContentLengthPolicy";function Ehe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:ont,async sendRequest(e,r){return t(e),r(e)}}}o(Ehe,"storageCorrectContentLengthPolicy");var ant="storageRetryPolicy",ng={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},cnt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],lnt=new Vs("The operation was aborted.");function Che(t={}){let e=t.retryPolicyType??ng.retryPolicyType,r=t.maxTries??ng.maxTries,n=t.retryDelayInMs??ng.retryDelayInMs,i=t.maxRetryDelayInMs??ng.maxRetryDelayInMs,s=t.secondaryHost??ng.secondaryHost,a=t.tryTimeoutInMs??ng.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return Line truncated
`)+`
`+n(s)+i(s),c=(0,oye.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(Ve.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===Ve.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(s){let a=[];for(let[l,u]of s.headers)l.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>eR(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=KN(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=XN(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=`
${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:plt,async sendRequest(s,a){return e(s),a(s)}}}o(p5,"storageSharedKeyCredentialPolicy");var mlt="storageRequestFailureDetailsParserPolicy";function aye(){return{name:mlt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(aye,"storageRequestFailureDetailsParserPolicy");var cye=require("node:crypto");var tR=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,cye.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var rR="12.31.0",nR="2026-02-06";var iR="https://storage.azure.com/.default",$u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var rc="",m5="*",Alt=1*1024*1024;var glt=4*Alt;var lye="AES256",uye="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",dye=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],fye=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],hye="BlobUsesCustomerSpecifiedEncryption",pye="BlobDoesNotUseCustomerSpecifiedEncryption",mye=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Wu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Wu,"isPipelineLike");var TI=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function tn(t,e={}){t||(t=new yr);let r=new TI([],e);return r._credential=t,r}o(tn,"newPipeline");function ylt(t){let e=[Elt,Aye,Clt,blt,Ilt,wlt,Blt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>Slt(i));return{wrappedPolicies:V4(r),afterRetry:n}}}}o(ylt,"processDownlevelPipeline");function A5(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?z4(e):h5(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${rR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=hI({...r,loggingOptions:{additionalAllowedHeaderNames:dye,additionalAllowedQueryParameters:fye,logger:zN.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:VN,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d5,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:C4}),i.addPolicy(iye()),i.addPolicy(sye(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new ac(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(ydt,"generateBlobSASQueryParameters20150405");function Edt(t,e){if(t=qp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=Cl.parse(t.permissions.toString()).toString():i=bl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?oc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ac(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(Edt,"generateBlobSASQueryParameters20181109");function Cdt(t,e){if(t=qp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=Cl.parse(t.permissions.toString()).toString():i=bl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?oc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ac(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(Cdt,"generateBlobSASQueryParameters20201206");function bdt(t,e){if(t=qp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=Cl.parse(t.permissions.toString()).toString():i=bl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?oc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ac(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(bdt,"generateBlobSASQueryParametersUDK20181109");function Idt(t,e){if(t=qp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=Cl.parse(t.permissions.toString()).toString():i=bl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?oc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ac(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(Idt,"generateBlobSASQueryParametersUDK20200210");function wdt(t,e){if(t=qp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=Cl.parse(t.permissions.toString()).toString():i=bl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?oc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ac(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(wdt,"generateBlobSASQueryParametersUDK20201206");function Sdt(t,e){if(t=qp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=Cl.parse(t.permissions.toString()).toString():i=bl.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",Up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?oc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ac(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(Sdt,"generateBlobSASQueryParametersUDK20250705");function Up(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Up,"getCanonicalName");function qp(t){let e=t.version?t.version:nR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(qp,"SASSignatureValuesSanityCheckAndAutofill");var HI=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=$g()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==rc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==rc||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==rc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==rc||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=_e(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==rc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==rc||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==rc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==rc||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
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"}};hy.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var zp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};zp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ZI=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var kft=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},oz=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);O(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ECe(t,e,r){return kft(this,void 0,void 0,function*(){var n;let i=new cc(t),s=i.getBlockBlobClient(),a=new oz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),D(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new cT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(ECe,"uploadCacheArchiveSDK");var bCe=N(require("buffer"),1),Il=N(require("fs"),1),ICe=N(require("stream"),1),wCe=N(require("util"),1);var lT=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function uT(t){return t?t>=200&&t<300:!1}o(uT,"isSuccessStatusCode");function Pft(t){return t?t>=500:!0}o(Pft,"isServerErrorStatusCode");function Oft(t){return t?[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout].includes(t):!1}o(Oft,"isRetryableStatusCode");function Lft(t){return lT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Lft,"sleep");function CCe(t,e,r){return lT(this,arguments,void 0,function*(n,i,s,a=Q_,c=k_,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(A){l&&(f=l(A)),p=!0,u=A.message}if(f&&(h=s(f),!Pft(h)))return f;if(h&&(p=Oft(h),u=`Cache service responded with ${h}`),D(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){D(`${n} - Error is not retryable`);break}yield Lft(c),d++}throw Error(`${n} failed: ${u}`)})}o(CCe,"retry");function ew(t,e){return lT(this,arguments,void 0,function*(r,n,i=Q_,s=k_){return yield CCe(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof Wc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(ew,"retryTypedResponse");function py(t,e){return lT(this,arguments,void 0,function*(r,n,i=Q_,s=k_){return yield CCe(r,n,a=>a.message.statusCode,i,s)})}o(py,"retryHttpClientResponse");var oa=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Fft(t,e){return oa(this,void 0,void 0,function*(){yield wCe.promisify(ICe.pipeline)(t.message,e)})}o(Fft,"pipeResponseToStream");var dT=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,D(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])D(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(zft,"printCachesListForDiagnostics");function dz(t,e,r){return Rs(this,void 0,void 0,function*(){let n=new OCe.URL(t),i=xCe(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield BCe(t,e,i):i.concurrentBlobDownloads?yield SCe(t,e,i):yield fT(t,e):yield fT(t,e)})}o(dz,"downloadCache");function FCe(t,e,r){return Rs(this,void 0,void 0,function*(){let n=uz(),i=Fg(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield ew("reserveCache",()=>Rs(this,void 0,void 0,function*(){return n.postJson(rw("caches"),s)}))})}o(FCe,"reserveCache");function PCe(t,e){return`bytes ${t}-${e}/*`}o(PCe,"getContentRange");function jft(t,e,r,n,i){return Rs(this,void 0,void 0,function*(){D(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${PCe(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":PCe(n,i)},a=yield py(`uploadChunk (start: ${n}, end: ${i})`,()=>Rs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!uT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(jft,"uploadChunk");function $ft(t,e,r,n){return Rs(this,void 0,void 0,function*(){let i=$c(r),s=rw(`caches/${e.toString()}`),a=my.openSync(r,"r"),c=az(n),l=QG("uploadConcurrency",c.uploadConcurrency),u=QG("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];D("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>Rs(this,void 0,void 0,function*(){for(;f<i;){let h=Math.min(i-f,u),p=f,A=f+h-1;f+=u,yield jft(t,s,()=>my.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),p,A)}})))}finally{my.closeSync(a)}})}o($ft,"uploadFile");function Wft(t,e,r){return Rs(this,void 0,void 0,function*(){let n={size:r};return yield ew("commitCache",()=>Rs(this,void 0,void 0,function*(){return t.postJson(rw(`caches/${e.toString()}`),n)}))})}o(Wft,"commitCache");function fz(t,e,r,n){return Rs(this,void 0,void 0,function*(){if(az(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ECe(r,e,n)}else{let s=uz();D("Upload cache"),yield $ft(s,t,e,n),D("Commiting cache");let a=$c(e);O(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Wft(s,t,a);if(!uT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);O("Cache saved successfully")}})}o(fz,"saveCache");var Dbe=N(Bbe(),1),sn=N(nn(),1),yo=N(nn(),1),Yp=N(nn(),1),Kp=N(nn(),1),Xp=N(nn(),1);var o6=N(nn(),1),a6=N(nn(),1),Nbe=N(nn(),1),Rbe=N(nn(),1),Tbe=N(nn(),1);var n6=N(nn(),1),i6=N(nn(),1),vbe=N(nn(),1),xbe=N(nn(),1),_be=N(nn(),1);var s6=class extends _be.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,xbe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vbe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?i6.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,n6.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,n6.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?i6.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},ZT=new s6;var c6=class extends Tbe.MessageType{static{o(this,"CacheMetadata$Type")}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:o(()=>ZT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Rbe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nbe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(ZT.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?a6.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield w6(r,"create");yield S6(n,t)})}o(v6,"createTar");var Ty=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},dc=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Zp=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},x6="cache write denied:",nD=class t extends Zp{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Obe=P_,iD=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},sD=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Lbe(t){if(!t||t.length===0)throw new dc("Path Validation Error: At least one directory or file path is required")}o(Lbe,"checkPaths");function _6(t){if(t.length>512)throw new dc(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new dc(`Key Validation Error: ${t} cannot contain commas.`)}o(_6,"checkKey");function N6(){return tw()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(N6,"isFeatureAvailable");function Fbe(t,e,r,n){return Ty(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=tw();D(`Cache service version: ${u}`),Lbe(i);let d=lz();if(!NCe(d)){O(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),D(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield lmt(i,s,a,c,l):yield cmt(i,s,a,c,l)})}o(Fbe,"restoreCache");function cmt(t,e,r,n){return Ty(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(D("Resolved Keys:"),D(JSON.stringify(d)),d.length>10)throw new dc("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)_6(p);let f=yield eI(),h="";try{let p;try{p=yield LCe(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(g){let E=(u=g?.message)!==null&&u!==void 0?u:"";throw E.includes(Obe)?new iD(E):g}if(!p?.archiveLocation)return;if(c?.lookupOnly)return O("Lookup only - skipping download"),p.cacheKey;h=yw.join(yield X0(),yf(f)),D(`Archive Path: ${h}`),yield dz(p.archiveLocation,h,c),mp()&&(yield gw(h,f));let A=$c(h);return O(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`),yield B6(h,f),O("Cache restored successfully"),p.cacheKey}catch(p){let A=p;if(A.name===dc.name)throw p;A instanceof Wc&&typeof A.statusCode=="number"&&A.statusCode>=500?xg(`Failed to restore: ${p.message}`):Ht(`Failed to restore: ${p.message}`)}finally{try{yield Z0(h)}catch(p){D(`Failed to delete archive: ${p}`)}}})}o(cmt,"restoreCacheV1");function lmt(t,e,r,n){return Ty(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(D("Resolved Keys:"),D(JSON.stringify(d)),d.length>10)throw new dc("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)_6(h);let f="";try{let h=I6(),p=yield eI(),A={key:s,restoreKeys:a,version:Fg(i,p,l)},g;try{g=yield h.GetCacheEntryDownloadURL(A)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Obe)?new iD(I):C}if(!g.ok){D(`Cache not found for version ${A.version} of keys: ${d.join(", ")}`);return}if(A.key!==g.matchedKey?O(`Cache hit for restore-key: ${g.matchedKey}`):O(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return O("Lookup only - skipping download"),g.matchedKey;f=yw.join(yield X0(),yf(p)),D(`Archive path: ${f}`),D(`Starting download of archive to: ${f}`),yield dz(g.signedDownloadUrl,f,c);let y=$c(f);return O(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),mp()&&(yield gw(f,p)),yield B6(f,p),O("Cache restored successfully"),g.matchedKey}catch(h){let p=h;if(p.name===dc.name)throw h;p instanceof Wc&&typeof p.statusCode=="number"&&p.statusCode>=500?xg(`Failed to restore: ${h.message}`):Ht(`Failed to restore: ${h.message}`)}finally{try{f&&(yield Z0(f))}catch(h){D(`Failed to delete archive: ${h}`)}}})}o(lmt,"restoreCacheV2");function R6(t,e,r){return Ty(this,arguments,void 0,function*(n,i,s,a=!1){let c=tw();D(`Cache service version: ${c}`),Lbe(n),_6(i);let l=lz();return RCe(l)?c==="v2"?yield dmt(n,i,s,a):yield umt(n,i,s,a):(O(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),D(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(R6,"saveCache");function umt(t,e,r){return Ty(this,arguments,void Line truncated
`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return h<p},"__needMoreData"),parse:o(function(n,i,s,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:f,ltrim:h,max_record_size:p,raw:A,relax_quotes:g,rtrim:E,skip_empty_lines:y,to:C,to_line:I}=this.options,{comment:B,escape:Q,quote:M,record_delimiter:x}=this.options,{bomSkipped:j,delimiterDiscovered:T,delimiterBufPrevious:q,rawBuffer:H,escapeIsQuote:W}=this.state;if(!T&&u){let z;if(q===void 0?z=n:q!==void 0&&n===void 0?z=q:z=Buffer.concat([q,n]),n=void 0,i||z.length>u.size)this.options.delimiter=[Buffer.from(KSe(z,this.options.delimiter_auto))],this.state.previousBuf=z,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=z;return}}let{previousBuf:ee}=this.state,te;if(ee===void 0)if(n===void 0){a();return}else te=n;else ee!==void 0&&n===void 0?te=ee:te=Buffer.concat([ee,n]);if(j===!1)if(c===!1)this.state.bomSkipped=!0;else if(te.length<3){if(i===!1){this.state.previousBuf=te;return}}else{for(let z in $y)if($y[z].compare(te,0,$y[z].length)===0){let Ie=$y[z].length;this.state.bufBytesStart+=Ie,te=te.slice(Ie);let Se=jy({...this.original_options,encoding:z});for(let st in Se)this.options[st]=Se[st];({comment:B,escape:Q,quote:M}=this.options);break}this.state.bomSkipped=!0}let ae=te.length,J;for(J=0;J<ae&&!this.__needMoreData(J,ae,i);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&x.length===0&&this.__autoDiscoverRecordDelimiter(te,J)&&(x=this.options.record_delimiter);let z=te[J];if(A===!0&&H.append(z),(z===Obt||z===Lbt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(te,J,z)&&J+Q.length<ae)if(W){if(this.__isQuote(te,J+Q.length)){this.state.escaping=!0,J+=Q.length-1;continue}}else{this.state.escaping=!0,J+=Q.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(te,J))if(this.state.quoting===!0){let st=te[J+M.length],Ct=E&&this.__isCharTrimable(te,J+M.length),fr=B!==null&&this.__compareBytes(B,te,J+M.length,st),hn=this.__isDelimiter(te,J+M.length,st),si=x.length===0?this.__autoDiscoverRecordDelimiter(te,J+M.length):this.__isRecordDelimiter(st,te,J+M.length);if(Q!==null&&this.__isEscape(te,J,z)&&this.__isQuote(te,J+Q.length))J+=Q.length-1;else if(!st||hn||si||fr||Ct){this.state.quoting=!1,this.state.wasQuoting=!0,J+=M.length-1;continue}else if(g===!1){let hr=this.__error(new dt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(st)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hr!==void 0)return hr}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(M),J+=M.length-1}else if(this.state.field.length!==0){if(g===!1){let st=this.__infoField(),Ct=Object.keys($y).map(hn=>$y[hn].equals(this.state.field.toString())?hn:!1).filter(Boolean)[0],fr=this.__error(new dt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(st.column)} at line ${st.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ct?`(${Ct} bom)`:void 0],this.options,st,{field:this.state.field}));if(fr!==void 0)return fr}}else{this.state.quoting=!0,J+=M.length-1;continue}if(this.state.quoting===!1){let st=this.__isRecordDelimiter(z,te,J);if(st!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=st-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=st-1;continue}this.info.bytes=this.state.bufBytesStart+J;let hn=this.__onField();if(hn!==void 0)return hn;this.info.bytes=this.state.bufBytesStart+J+st;let si=this.__onRecord(s);if(si!==void 0)return si;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=st-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,te,J,z)!==0){this.state.commenting=!0;continue}let Ct=this.__isDelimiter(te,J,z);if(Ct!==0){this.info.bytes=this.state.bufBytesStart+J;let fr=this.__onField();if(fr!==void 0)return fr;J+=Ct-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new dt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ie=h===!1||this.state.quoting===!0||this.state.f Line truncated
`+n(s)+i(s),c=(0,bhe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(qe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===qe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(s){let a=[];for(let[l,u]of s.headers)l.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>lR(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=oR(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=aR(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=`
${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:unt,async sendRequest(s,a){return e(s),a(s)}}}o(s3,"storageSharedKeyCredentialPolicy");var dnt="storageRequestFailureDetailsParserPolicy";function whe(){return{name:dnt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(whe,"storageRequestFailureDetailsParserPolicy");var Ihe=require("node:crypto");var uR=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Ihe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var dR="12.31.0",fR="2026-02-06";var hR="https://storage.azure.com/.default",fu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ra="",o3="*",fnt=1*1024*1024;var hnt=4*fnt;var She="AES256",Bhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",xhe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],vhe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Nhe="BlobUsesCustomerSpecifiedEncryption",Rhe="BlobDoesNotUseCustomerSpecifiedEncryption",_he=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function hu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(hu,"isPipelineLike");var g0=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Gr(t,e={}){t||(t=new dr);let r=new g0([],e);return r._credential=t,r}o(Gr,"newPipeline");function pnt(t){let e=[Ant,The,mnt,gnt,ynt,Ent,bnt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>Cnt(i));return{wrappedPolicies:Pq(r),afterRetry:n}}}}o(pnt,"processDownlevelPipeline");function a3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Oq(e):i3(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${dR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=Zb({...r,loggingOptions:{additionalAllowedHeaderNames:xhe,additionalAllowedQueryParameters:vhe,logger:eR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:ZN,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:r3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:dq}),i.addPolicy(Ehe()),i.addPolicy(Che(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new ka(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(pst,"generateBlobSASQueryParameters20150405");function Ast(t,e){if(t=Kh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(Ast,"generateBlobSASQueryParameters20181109");function mst(t,e){if(t=Kh(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(mst,"generateBlobSASQueryParameters20201206");function gst(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(gst,"generateBlobSASQueryParametersUDK20181109");function yst(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(yst,"generateBlobSASQueryParametersUDK20200210");function Est(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(Est,"generateBlobSASQueryParametersUDK20201206");function Cst(t,e){if(t=Kh(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=zc.parse(t.permissions.toString()).toString():i=Vc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",Yh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new ka(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(Cst,"generateBlobSASQueryParametersUDK20250705");function Yh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Yh,"getCanonicalName");function Kh(t){let e=t.version?t.version:fR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Kh,"SASSignatureValuesSanityCheckAndAutofill");var R0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Jm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ra||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ra||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-acquireLease",r,async n=>xe(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ra||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ra||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=xe(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ra||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ra||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ye.withSpan("BlobLeaseClient-releaseLease",e,async r=>xe(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ra||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ra||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
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"}};Ag.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var tp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};tp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var M0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var _ot=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},K5=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);D(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function kAe(t,e,r){return _ot(this,void 0,void 0,function*(){var n;let i=new Pa(t),s=i.getBlockBlobClient(),a=new K5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),v(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new g_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ge(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(kAe,"uploadCacheArchiveSDK");var OAe=T(require("buffer"),1),$c=T(require("fs"),1),LAe=T(require("stream"),1),FAe=T(require("util"),1);var y_=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function E_(t){return t?t>=200&&t<300:!1}o(E_,"isSuccessStatusCode");function Tot(t){return t?t>=500:!0}o(Tot,"isServerErrorStatusCode");function Dot(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}o(Dot,"isRetryableStatusCode");function Qot(t){return y_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Qot,"sleep");function PAe(t,e,r){return y_(this,arguments,void 0,function*(n,i,s,a=Gv,c=Hv,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(m){l&&(f=l(m)),p=!0,u=m.message}if(f&&(h=s(f),!Tot(h)))return f;if(h&&(p=Dot(h),u=`Cache service responded with ${h}`),v(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){v(`${n} - Error is not retryable`);break}yield Qot(c),d++}throw Error(`${n} failed: ${u}`)})}o(PAe,"retry");function U0(t,e){return y_(this,arguments,void 0,function*(r,n,i=Gv,s=Hv){return yield PAe(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof yc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(U0,"retryTypedResponse");function mg(t,e){return y_(this,arguments,void 0,function*(r,n,i=Gv,s=Hv){return yield PAe(r,n,a=>a.message.statusCode,i,s)})}o(mg,"retryHttpClientResponse");var Lo=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function kot(t,e){return Lo(this,void 0,void 0,function*(){yield FAe.promisify(LAe.pipeline)(t.message,e)})}o(kot,"pipeResponseToStream");var C_=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,v(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])v(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(qot,"printCachesListForDiagnostics");function rz(t,e,r){return ds(this,void 0,void 0,function*(){let n=new KAe.URL(t),i=GAe(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield UAe(t,e,i):i.concurrentBlobDownloads?yield MAe(t,e,i):yield b_(t,e):yield b_(t,e)})}o(rz,"downloadCache");function ZAe(t,e,r){return ds(this,void 0,void 0,function*(){let n=tz(),i=Um(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield U0("reserveCache",()=>ds(this,void 0,void 0,function*(){return n.postJson(G0("caches"),s)}))})}o(ZAe,"reserveCache");function YAe(t,e){return`bytes ${t}-${e}/*`}o(YAe,"getContentRange");function Got(t,e,r,n,i){return ds(this,void 0,void 0,function*(){v(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${YAe(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":YAe(n,i)},a=yield mg(`uploadChunk (start: ${n}, end: ${i})`,()=>ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!E_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Got,"uploadChunk");function Hot(t,e,r,n){return ds(this,void 0,void 0,function*(){let i=gc(r),s=G0(`caches/${e.toString()}`),a=gg.openSync(r,"r"),c=X5(n),l=SU("uploadConcurrency",c.uploadConcurrency),u=SU("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];v("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>ds(this,void 0,void 0,function*(){for(;f<i;){let h=Math.min(i-f,u),p=f,m=f+h-1;f+=u,yield Got(t,s,()=>gg.createReadStream(r,{fd:a,start:p,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),p,m)}})))}finally{gg.closeSync(a)}})}o(Hot,"uploadFile");function zot(t,e,r){return ds(this,void 0,void 0,function*(){let n={size:r};return yield U0("commitCache",()=>ds(this,void 0,void 0,function*(){return t.postJson(G0(`caches/${e.toString()}`),n)}))})}o(zot,"commitCache");function nz(t,e,r,n){return ds(this,void 0,void 0,function*(){if(X5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kAe(r,e,n)}else{let s=tz();v("Upload cache"),yield Hot(s,t,e,n),v("Commiting cache");let a=gc(e);D(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield zot(s,t,a);if(!E_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);D("Cache saved successfully")}})}o(nz,"saveCache");var $me=T(Wz(),1),zr=T(nt(),1),Ks=T(nt(),1),op=T(nt(),1),ap=T(nt(),1),cp=T(nt(),1);var Xz=T(nt(),1),Zz=T(nt(),1),Hme=T(nt(),1),zme=T(nt(),1),Vme=T(nt(),1);var Jz=T(nt(),1),Yz=T(nt(),1),Ume=T(nt(),1),qme=T(nt(),1),Gme=T(nt(),1);var Kz=class extends Gme.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,qme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ume.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Yz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Jz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Jz.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Yz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},cT=new Kz;var eV=class extends Vme.MessageType{static{o(this,"CacheMetadata$Type")}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:o(()=>cT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(cT.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Zz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!==" Line truncated
`));let{commands:n}=yield Jme(r,"create");yield Kme(n,t)})}o(gV,"createTar");var Qg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Fa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},lp=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},yV="cache write denied:",fT=class t extends lp{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Zme=zv,hT=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},pT=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ege(t){if(!t||t.length===0)throw new Fa("Path Validation Error: At least one directory or file path is required")}o(ege,"checkPaths");function EV(t){if(t.length>512)throw new Fa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Fa(`Key Validation Error: ${t} cannot contain commas.`)}o(EV,"checkKey");function CV(){return q0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(CV,"isFeatureAvailable");function tge(t,e,r,n){return Qg(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=q0();v(`Cache service version: ${u}`),ege(i);let d=ez();if(!zAe(d)){D(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),v(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield slt(i,s,a,c,l):yield ilt(i,s,a,c,l)})}o(tge,"restoreCache");function ilt(t,e,r,n){return Qg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new Fa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)EV(p);let f=yield Ub(),h="";try{let p;try{p=yield XAe(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(A){let E=(u=A?.message)!==null&&u!==void 0?u:"";throw E.includes(Zme)?new hT(E):A}if(!p?.archiveLocation)return;if(c?.lookupOnly)return D("Lookup only - skipping download"),p.cacheKey;h=iw.join(yield Rh(),Nd(f)),v(`Archive Path: ${h}`),yield rz(p.archiveLocation,h,c),Ih()&&(yield nw(h,f));let m=gc(h);return D(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield mV(h,f),D("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===Fa.name)throw p;m instanceof yc&&typeof m.statusCode=="number"&&m.statusCode>=500?Sa(`Failed to restore: ${p.message}`):Ge(`Failed to restore: ${p.message}`)}finally{try{yield Mb(h)}catch(p){v(`Failed to delete archive: ${p}`)}}})}o(ilt,"restoreCacheV1");function slt(t,e,r,n){return Qg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new Fa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)EV(h);let f="";try{let h=pV(),p=yield Ub(),m={key:s,restoreKeys:a,version:Um(i,p,l)},A;try{A=yield h.GetCacheEntryDownloadURL(m)}catch(C){let w=(u=C?.message)!==null&&u!==void 0?u:"";throw w.includes(Zme)?new hT(w):C}if(!A.ok){v(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==A.matchedKey?D(`Cache hit for restore-key: ${A.matchedKey}`):D(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return D("Lookup only - skipping download"),A.matchedKey;f=iw.join(yield Rh(),Nd(p)),v(`Archive path: ${f}`),v(`Starting download of archive to: ${f}`),yield rz(A.signedDownloadUrl,f,c);let y=gc(f);return D(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ih()&&(yield nw(f,p)),yield mV(f,p),D("Cache restored successfully"),A.matchedKey}catch(h){let p=h;if(p.name===Fa.name)throw h;p instanceof yc&&typeof p.statusCode=="number"&&p.statusCode>=500?Sa(`Failed to restore: ${h.message}`):Ge(`Failed to restore: ${h.message}`)}finally{try{f&&(yield Mb(f))}catch(h){v(`Failed to delete archive: ${h}`)}}})}o(slt,"restoreCacheV2");function bV(t,e,r){return Qg(this,arguments,void 0,function*(n,i,s,a=!1){let c=q0();v(`Cache service version: ${c}`),ege(n),EV(i);let l=ez();return VAe(l)?c==="v2"?yield alt(n,i,s,a):yield olt(n,i,s,a):(D(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),v(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(bV,"saveCache");function olt(t,e,r){return Qg(this,ar Line truncated
`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return h<p},"__needMoreData"),parse:o(function(n,i,s,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:f,ltrim:h,max_record_size:p,raw:m,relax_quotes:A,rtrim:E,skip_empty_lines:y,to:C,to_line:w}=this.options,{comment:B,escape:P,quote:U,record_delimiter:N}=this.options,{bomSkipped:$,delimiterDiscovered:Q,delimiterBufPrevious:H,rawBuffer:V,escapeIsQuote:W}=this.state;if(!Q&&u){let fe;if(H===void 0?fe=n:H!==void 0&&n===void 0?fe=H:fe=Buffer.concat([H,n]),n=void 0,i||fe.length>u.size)this.options.delimiter=[Buffer.from(ybe(fe,this.options.delimiter_auto))],this.state.previousBuf=fe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=fe;return}}let{previousBuf:ue}=this.state,de;if(ue===void 0)if(n===void 0){a();return}else de=n;else ue!==void 0&&n===void 0?de=ue:de=Buffer.concat([ue,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(i===!1){this.state.previousBuf=de;return}}else{for(let fe in Kg)if(Kg[fe].compare(de,0,Kg[fe].length)===0){let Tt=Kg[fe].length;this.state.bufBytesStart+=Tt,de=de.slice(Tt);let yt=Yg({...this.original_options,encoding:fe});for(let sr in yt)this.options[sr]=yt[sr];({comment:B,escape:P,quote:U}=this.options);break}this.state.bomSkipped=!0}let Se=de.length,K;for(K=0;K<Se&&!this.__needMoreData(K,Se,i);K++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),w!==-1&&this.info.lines>w){this.state.stop=!0,a();return}this.state.quoting===!1&&N.length===0&&this.__autoDiscoverRecordDelimiter(de,K)&&(N=this.options.record_delimiter);let fe=de[K];if(m===!0&&V.append(fe),(fe===MAt||fe===UAt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(P!==null&&this.state.quoting===!0&&this.__isEscape(de,K,fe)&&K+P.length<Se)if(W){if(this.__isQuote(de,K+P.length)){this.state.escaping=!0,K+=P.length-1;continue}}else{this.state.escaping=!0,K+=P.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,K))if(this.state.quoting===!0){let sr=de[K+U.length],or=E&&this.__isCharTrimable(de,K+U.length),Ji=B!==null&&this.__compareBytes(B,de,K+U.length,sr),bi=this.__isDelimiter(de,K+U.length,sr),tc=N.length===0?this.__autoDiscoverRecordDelimiter(de,K+U.length):this.__isRecordDelimiter(sr,de,K+U.length);if(P!==null&&this.__isEscape(de,K,fe)&&this.__isQuote(de,K+P.length))K+=P.length-1;else if(!sr||bi||tc||Ji||or){this.state.quoting=!1,this.state.wasQuoting=!0,K+=U.length-1;continue}else if(A===!1){let Gf=this.__error(new ct("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(sr)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Gf!==void 0)return Gf}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(U),K+=U.length-1}else if(this.state.field.length!==0){if(A===!1){let sr=this.__infoField(),or=Object.keys(Kg).map(bi=>Kg[bi].equals(this.state.field.toString())?bi:!1).filter(Boolean)[0],Ji=this.__error(new ct("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(sr.column)} at line ${sr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,or?`(${or} bom)`:void 0],this.options,sr,{field:this.state.field}));if(Ji!==void 0)return Ji}}else{this.state.quoting=!0,K+=U.length-1;continue}if(this.state.quoting===!1){let sr=this.__isRecordDelimiter(fe,de,K);if(sr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),K+=sr-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,K+=sr-1;continue}this.info.bytes=this.state.bufBytesStart+K;let bi=this.__onField();if(bi!==void 0)return bi;this.info.bytes=this.state.bufBytesStart+K+sr;let tc=this.__onRecord(s);if(tc!==void 0)return tc;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,K+=sr-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,de,K,fe)!==0){this.state.commenting=!0;continue}let or=this.__isDelimiter(de,K,fe);if(or!==0){this.info.bytes=this.state.bufBytesStart+K;let Ji=this.__onField();if(Ji!==void 0)return Ji;K+=or-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new ct("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Tt=h===!1||this.state.quot Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[i+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:i,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(i):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:i,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,i=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:i===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var wo=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=s1(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var Me=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(io(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=wo(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=io(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await ai("powershell",!0),i=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${i}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return ZSe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return ej.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return ej.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return eBe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Uw.default.resolve(e);return Uw.default.resolve(r).startsWith(n.endsWith(Uw.default.sep)?n:`${n}${Uw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var on=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||qw.default.join(tBe.default.homedir(),".docker")}static configFile(){let e=qw.default.join(t.configDir,"config.json");if(tj.default.existsSync(e))return JSON.parse(tj.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ai("docker",!0).then(e=>(D(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(D(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var tve=N(require("crypto"),1);var o1=require("fs"),iBe=require("os");var Wy=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,o1.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,o1.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${iBe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var sj=N(lBe(),1),uBe=N(cf(),1);var Ybt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function dBe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(dBe,"getAuthString");function fBe(t){return new sj.HttpClient().getAgent(t)}o(fBe,"getProxyAgent");function Kbt(t){return new sj.HttpClient().getAgentDispatcher(t)}o(Kbt,"getProxyAgentDispatcher");function hBe(t){let e=Kbt(t);return o((n,i)=>Ybt(this,void 0,void 0,function*(){return(0,uBe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(hBe,"getProxyFetch");function pBe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(pBe,"getApiBaseUrl");function oj(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(oj,"getUserAgentWithOrchestrationId");function Mf(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(Mf,"getUserAgent");function h1(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>h1.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(h1,"register");function mBe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(mBe,"addHook");function ABe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(ABe,"removeHook");var gBe=Function.bind,yBe=gBe.bind(gBe);function EBe(t,e,r){let n=yBe(ABe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=yBe(mBe,null).apply(null,s)})}o(EBe,"bindApi");function Zbt(){let t=Symbol("Singular"),e={registry:{}},r=h1.bind(null,e,t);return EBe(r,e,t),r}o(Zbt,"Singular");function e0t(){let t={registry:{}},e=h1.bind(null, Line truncated
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[i+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:i,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(i):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:i,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,i=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:i===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var eo=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=A2(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Ms(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=eo(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Ms(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Gn("powershell",!0),i=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${i}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return Cbe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return W4.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return W4.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return bbe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=bw.default.resolve(e);return bw.default.resolve(r).startsWith(n.endsWith(bw.default.sep)?n:`${n}${bw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Vr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||ww.default.join(wbe.default.homedir(),".docker")}static configFile(){let e=ww.default.join(t.configDir,"config.json");if(J4.default.existsSync(e))return JSON.parse(J4.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Gn("docker",!0).then(e=>(v(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(v(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 Line truncated
${i}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var w0e=T(require("crypto"),1);var m2=require("fs"),Bbe=require("os");var Xg=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,m2.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,m2.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${Bbe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var Z4=T(_be(),1),Tbe=T(yh(),1);var ZAt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Dbe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Dbe,"getAuthString");function Qbe(t){return new Z4.HttpClient().getAgent(t)}o(Qbe,"getProxyAgent");function emt(t){return new Z4.HttpClient().getAgentDispatcher(t)}o(emt,"getProxyAgentDispatcher");function kbe(t){let e=emt(t);return o((n,i)=>ZAt(this,void 0,void 0,function*(){return(0,Tbe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(kbe,"getProxyFetch");function Pbe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Pbe,"getApiBaseUrl");function e$(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(e$,"getUserAgentWithOrchestrationId");function Yd(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(Yd,"getUserAgent");function I2(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>I2.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(I2,"register");function Obe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(Obe,"addHook");function Lbe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(Lbe,"removeHook");var Fbe=Function.bind,Mbe=Fbe.bind(Fbe);function Ube(t,e,r){let n=Mbe(Lbe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=Mbe(Obe,null).apply(null,s)})}o(Ube,"bindApi");function rmt(){let t=Symbol("Singular"),e={registry:{}},r=I2.bind(null,e,t);return Ube(r,e,t),r}o(rmt,"Singular");function nmt(){let t={registry:{}},e=I2.bind(null, Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(N0t,"_buildMessageForResponseErrors");var R0t=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(N0t(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},T0t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],D0t=["query","method","url"],qBe=/\/api\/v3\/?$/;function Q0t(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(D0t.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>T0t.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return qBe.test(s)&&(i.url=s.replace(qBe,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new R0t(i,c,a.data)}return a.data.data})}o(Q0t,"graphql");function fj(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>Q0t(r,i,s),"newApi"),{defaults:fj.bind(null,r),endpoint:r.endpoint})}o(fj,"withDefaults");var m_r=fj(zw,{headers:{"user-agent":`octokit-graphql.js/${_0t} ${Mf()}`},method:"POST",url:"/graphql"});function GBe(t){return fj(t,{method:"POST",url:"/graphql"})}o(GBe,"withCustomRequest");var hj="(?:[a-zA-Z0-9_-]+)",HBe="\\.",VBe=new RegExp(`^${hj}${HBe}${hj}${HBe}${hj}$`),k0t=VBe.test.bind(VBe);async function P0t(t){let e=k0t(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(P0t,"auth");function O0t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(O0t,"withAuthorizationPrefix");async function L0t(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=O0t(t),e(i)}o(L0t,"hook");var zBe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(P0t.bind(null,e),{hook:L0t.bind(null,e)})},"createTokenAuth2");var pj="7.0.6";var jBe=o(()=>{},"noop"),F0t=console.warn.bind(console),M0t=console.error.bind(console);function U0t(t={}){return typeof t.debug!="function"&&(t.debug=jBe),typeof t.info!="function"&&(t.info=jBe),typeof t.warn!="function"&&(t.warn=F0t),typeof t.error!="function"&&(t.error=M0t),t}o(U0t,"createLogger");var $Be=`octokit-core.js/${pj} ${Mf()}`,Ky=class{static{o(this,"Octokit")}static VERSION=pj;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new CBe.Collection,n={baseUrl:zw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${$Be}`:$Be,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=zw.defaults(n),this.graphql=GBe(this.request).defaults(n),this.log=U0t(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=zBe(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s<i.plugins.length;++s)Object.assign(this,i.plugins[s](this,e))}request;graphql;log;hook;auth};var mj="17.0.0";var q0t={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:f,message:h,file:g.path,startLine:p}),A=!0;break}A||D(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var Sj=N(require("fs"),1),Bj=N(require("path"),1);var I1=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new gt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await ve.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=Bj.default.join(At.tmpDir(),"export");O(`exporting build record to ${s}`),Sj.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Me.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name}
${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:Me.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=Bj.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await ve.getExecOutput(u.command,u.args);let d=Sj.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ze.context.repo.owner}~${Ze.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var JLe=N(require("fs"),1),aK=N(require("path"),1);var ove=N(require("os"),1);function Yw(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Yw,"toCommandValue");function vj(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(vj,"toCommandProperties");function Kw(t,e,r){let n=new xj(t,e,r);process.stdout.write(n.toString()+ove.EOL)}o(Kw,"issueCommand");var sve="::",xj=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=sve+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${oIt(i)}`)}}return e+=`${sve}${sIt(this.message)}`,e}};function sIt(t){return Yw(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(sIt,"escapeData");function oIt(t){return Yw(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(oIt,"escapeProperty");var uve=N(require("os"),1);var cve=require("os"),Xw=require("fs");var _j=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:aIt,appendFile:cIt,writeFile:lIt}=Xw.promises,ave="GITHUB_STEP_SUMMARY";var Nj=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return _j(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ave];if(!e)throw new Error(`Unable to find environment variable for $${ave}. Check if your runtime environment supports job summaries.`);try{yield aIt(e,Xw.constants.R_OK|Xw.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return _j(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?lIt:cIt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return _j(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(cve.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},QNr=new Nj;var Rj=N(require("os"),1);var FNr=Rj.default.platform(),MNr=Rj.Line truncated
`," Line feed \\n"]]),lxe=new Map([...rW,["\\"," Backslash \\"],["/"," Forward slash /"]]);function uxe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of lxe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`)}o(Dmt,"_buildMessageForResponseErrors");var Qmt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(Dmt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},kmt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Pmt=["query","method","url"],c0e=/\/api\/v3\/?$/;function Omt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Pmt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>kmt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return c0e.test(s)&&(i.url=s.replace(c0e,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Qmt(i,c,a.data)}return a.data.data})}o(Omt,"graphql");function o$(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>Omt(r,i,s),"newApi"),{defaults:o$.bind(null,r),endpoint:r.endpoint})}o(o$,"withDefaults");var WEr=o$(xw,{headers:{"user-agent":`octokit-graphql.js/${Tmt} ${Yd()}`},method:"POST",url:"/graphql"});function l0e(t){return o$(t,{method:"POST",url:"/graphql"})}o(l0e,"withCustomRequest");var a$="(?:[a-zA-Z0-9_-]+)",u0e="\\.",d0e=new RegExp(`^${a$}${u0e}${a$}${u0e}${a$}$`),Lmt=d0e.test.bind(d0e);async function Fmt(t){let e=Lmt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(Fmt,"auth");function Mmt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Mmt,"withAuthorizationPrefix");async function Umt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=Mmt(t),e(i)}o(Umt,"hook");var f0e=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Fmt.bind(null,e),{hook:Umt.bind(null,e)})},"createTokenAuth2");var c$="7.0.6";var h0e=o(()=>{},"noop"),qmt=console.warn.bind(console),Gmt=console.error.bind(console);function Hmt(t={}){return typeof t.debug!="function"&&(t.debug=h0e),typeof t.info!="function"&&(t.info=h0e),typeof t.warn!="function"&&(t.warn=qmt),typeof t.error!="function"&&(t.error=Gmt),t}o(Hmt,"createLogger");var p0e=`octokit-core.js/${c$} ${Yd()}`,v2=class{static{o(this,"Octokit")}static VERSION=c$;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new qbe.Collection,n={baseUrl:xw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${p0e}`:p0e,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=xw.defaults(n),this.graphql=l0e(this.request).defaults(n),this.log=Hmt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=f0e(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s<i.plugins.length;++s)Object.assign(this,i.plugins[s](this,e))}request;graphql;log;hook;auth};var l$="17.0.0";var zmt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:f,message:h,file:A.path,startLine:p}),m=!0;break}m||v(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var E$=T(require("fs"),1),C$=T(require("path"),1);var Q2=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await Ie.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=C$.default.join(ht.tmpDir(),"export");D(`exporting build record to ${s}`),E$.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Oe.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name}
${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:Oe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=C$.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await Ie.getExecOutput(u.command,u.args);let d=E$.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ke.context.repo.owner}~${Ke.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var gQe=T(require("fs"),1),oJ=T(require("path"),1);var x0e=T(require("os"),1);function Ip(){return 8*1024*1024}o(Ip,"getUploadChunkSize");function k2(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(k2,"getRuntimeToken");function v0e(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}o(v0e,"getResultsServiceUrl");function ty(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(ty,"isGhes");function N0e(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}o(N0e,"getGitHubWorkspaceDir");function R0e(){let t=x0e.default.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(D("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(D(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}o(R0e,"getConcurrency");function _0e(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}o(_0e,"getUploadChunkTimeout");function T0e(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}o(T0e,"getMaxArtifactListCount");var fDe=T(require("fs"),1),hDe=T(require("path"),1);var b$=T(nt(),1),w$=T(nt(),1),D0e=T(nt(),1),Q0e=T(nt(),1),k0e=T(nt(),1),ry=T(nt(),1),P0e=T(nt(),1);var I$=class extends P0e.MessageType{static{o(this,"Timestamp$Type")}constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=ry.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(ry.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=ry.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=ry.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let i="Z";if(e.nanos>0){let s=(e.nanos+1e9).toString().substring(1);s.substring(3)==="000000"?i="."+s.substring(0,3)+"Z":s.substring(6)==="000"?i="."+s.substring(0,6)+"Z":i="."+s+"Z"}return new Date(n).toISOString().replace(".000Z",i)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,k0e.typeofJsonValue)(e)+".");let i=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!i)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let s=Date.parse(i[1]+"-"+i[2]+"-"+i[3]+"T"+i[4]+":"+i[5]+":"+i[6]+(i[8]?i[8]:"Z"));if(Number.isNaN(s))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(s<Date.parse("0001-01-01T00:00:00Z")||s>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ry.PbLong.from(s/1e3).toString(),n.nanos=0,i[7]&&(n.nanos=parseInt("1"+i[7]+"0".repeat(9-i[7].length))-1e9),n}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,Q0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,D0e.reflectio Line truncated
`," Line feed \\n"]]),F0e=new Map([...r8,["\\"," Backslash \\"],["/"," Forward slash /"]]);function M0e(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of F0e)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(lxe.values()).toString()}
Invalid characters include: ${Array.from(F0e.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ct("Artifact name is valid!")}o(uxe,"validateArtifactName");function nW(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of rW)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);D("Artifact name is valid!")}o(M0e,"validateArtifactName");function n8(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of r8)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(rW.values()).toString()}
Invalid characters include: ${Array.from(r8.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}o(nW,"validateFilePath");var pxe=N(hxe(),1);function Ul(){return`@actions/artifact-${pxe.version}`}o(Ul,"getUserAgentString");var AE=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Ac=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},fd=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Vf=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},hd=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
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"}};hd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var mm=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};mm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var uQ=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function ql(){let t=S1(),e=C1(t);if(!e.scp)throw uQ;let r=e.scp.split(" ");if(r.length===0)throw uQ;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw uQ;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return Xe(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),Xe(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw uQ}o(ql,"getBackendIdsFromToken");function mxe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(w1(r),w1(encodeURIComponent(r)))}catch(e){Xe(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(mxe,"maskSigUrl");function Axe(t){if(typeof t!="object"||t===null){Xe("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&mxe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&mxe(t.signed_url)}o(Axe,"maskSecretUrls");var dQ=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},iW=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=S1();this.baseUrl=fve(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new Go(e,[new uf(s)])}request(e,r,n,i){return dQ(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Xe(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>dQ(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return dQ(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),l=c.message.statusCode;i=yield c.readBody(),Xe(`[Response] - ${c.message.statusCode}`),Xe(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let u=JSON.parse(i);if(Axe(u),Xe(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(l))return{response:c,body:u};if(s=this.isRetryableHttpStatusCode(l),n=`Failed request: (${l}) ${c.message.statusMessage}`,u.msg){if(mm.isUsageErrorMessage(u.msg))throw new mm;n=`${n}: ${u.msg}`}}catch(c){if(c instanceof SyntaxError&&Xe(`Raw Body: ${i}`),c instanceof mm)throw c;if(hd.isNetworkErrorCode(c?.code))throw new hd(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Gn.BadGateway,Gn.GatewayTimeout,Gn.InternalServerError,Gn.ServiceUnavailable,Gn.TooManyRequests].includes(e):!1}sleep(e){return dQ(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Gl(t){let e=new iW(Ul(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new lQ(e)}o(Gl,"internalArtifactTwirpClient");var yE=N(require("fs"),1);var gE=require("path");function gxe(t){if(!yE.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!yE.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);ct("Root directory input is valid!")}o(gxe,"validateRootDirectory");function yxe(t,e){let r=[];e=(0,gE.normalize)(e),e=(0,gE.resolve)(e);for(let n of t){let i=yE.lstatSync(n,{throwIfNoEntry:!1});if(!i)throw new Error(`File ${n} does not exist`);if(i.isDirectory()){let s=n.replace(e,"");nW(s),r.push({sourcePath:null,destinationPath:s,stats:i})}else{if(n=(0,gE.normalize)(n),n=(0,gE.resolve)(n),!n.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${n}`);let s=n.replace(e,"");nW(s),r.push({sourcePath:n,destinationPath:s,stats:i})}}return Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&mi("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);ct(`Redirecting to blob download url: ${TLe(d)}`);try{ct(`Starting download of artifact to: ${r}`);let f=yield DLe(d,r,e?.skipDecompress);ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,Xe(`Computed digest: ${f.sha256Digest}`),Xe(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(kLe,"downloadArtifactInternal");function PLe(){return mC(this,arguments,void 0,function*(t=hve()){return(yield QUt(t))?Xe(`Artifact destination folder already exists: ${t}`):(Xe(`Artifact destination folder does not exist, creating: ${t}`),yield iK.default.mkdir(t,{recursive:!0})),t})}o(PLe,"resolveOrCreateDirectory");var PUt=5,OUt=[400,401,403,404,422];function AC(t,e=PUt,r=OUt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return Xe(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(AC,"getRetryOptions");var OLe="6.0.0";function jm(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(jm,"requestLog");jm.VERSION=OLe;var MLe=N(LLe(),1);var LUt="0.0.0-development";function FUt(t){return t.request!==void 0}o(FUt,"isRequestError");async function FLe(t,e,r,n){if(!FUt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o(FLe,"errorRequest");async function MUt(t,e,r,n){let i=new MLe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(UUt.bind(null,t,e,r),n)}o(MUt,"wrapRequest");async function UUt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new cd(i.data.errors[0].message,500,{request:n,response:i});return FLe(t,e,s,n)}return i}o(UUt,"requestWithGraphqlErrorHandling");function $m(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",FLe.bind(null,r,n)),t.hook.wrap("request",MUt.bind(null,r,n))),n}o($m,"retry");$m.VERSION=LUt;var ULe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function RP(t,e,r,n,i){return ULe(this,void 0,void 0,function*(){var s;let[a,c]=AC(Hm),l={log:void 0,userAgent:Ul(),previews:void 0,retry:a,request:c},d=yield dh(i,l,$m,jm).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new Ac(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new fd(`Artifact not found for name: ${t}
`)}o(n8,"validateFilePath");var Tw=T(require("http"),1),a8=T(require("https"),1);function i8(t){let e=t.protocol==="https:";if(cgt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new O2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new O2(`http://${r}`)}else return}o(i8,"getProxyUrl");function cgt(t){if(!t.hostname)return!1;let e=t.hostname;if(lgt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(cgt,"checkBypass");function lgt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(lgt,"isLoopbackAddress");var O2=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xd=T(_A(),1),U0e=T(yh(),1);var Wr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Cn;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Cn||(Cn={}));var Ui;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ui||(Ui={}));var vu;(function(t){t.ApplicationJson="application/json"})(vu||(vu={}));var dgt=[Cn.MovedPermanently,Cn.ResourceMoved,Cn.SeeOther,Cn.TemporaryRedirect,Cn.PermanentRedirect],fgt=[Cn.BadGateway,Cn.ServiceUnavailable,Cn.GatewayTimeout],hgt=["OPTIONS","GET","DELETE","HEAD"],pgt=10,Agt=5,s8=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},o8=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Wr(this,void 0,void 0,function*(){return new Promise(e=>Wr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Wr(this,void 0,void 0,function*(){return new Promise(e=>Wr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var iy=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Wr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Wr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Wr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{} Line truncated
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"}};Ru.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};Sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var F2=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function cl(){let t=k2(),e=T2(t);if(!e.scp)throw F2;let r=e.scp.split(" ");if(r.length===0)throw F2;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw F2;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return v(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),v(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw F2}o(cl,"getBackendIdsFromToken");function V0e(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Os(r),Os(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(V0e,"maskSigUrl");function $0e(t){if(typeof t!="object"||t===null){v("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&V0e(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&V0e(t.signed_url)}o($0e,"maskSecretUrls");var M2=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},c8=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let s=k2();this.baseUrl=v0e(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new iy(e,[new L2(s)])}request(e,r,n,i){return M2(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;v(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>M2(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return M2(this,void 0,void 0,function*(){let r=0,n="",i="",s=0;for(;r<this.maxAttempts;){let a=!1,c;try{let u=yield e(),d=u.message.statusCode;d===Cn.TooManyRequests&&(c=this.getRetryAfterSeconds(u)),i=yield u.readBody(),v(`[Response] - ${u.message.statusCode}`),v(`Headers: ${JSON.stringify(u.message.headers,null,2)}`);let f=JSON.parse(i);if($0e(f),v(`Body: ${JSON.stringify(f,null,2)}`),this.isSuccessStatusCode(d))return{response:u,body:f};if(a=this.isRetryableHttpStatusCode(d),n=`Failed request: (${d}) ${u.message.statusMessage}`,f.msg){if(Sp.isUsageErrorMessage(f.msg))throw new Sp;n=`${n}: ${f.msg}`}}catch(u){if(u instanceof SyntaxError&&v(`Raw Body: ${i}`),u instanceof Sp)throw u;if(Ru.isNetworkErrorCode(u?.code))throw new Ru(u?.code);a=!0,n=u.message}if(!a)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let l=c!==void 0?c*1e3:this.getExponentialRetryTimeMilliseconds(r);if(s+l>this.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${l} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);D(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${l} ms...`),yield this.sleep(l),s+=l,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Cn.BadGateway,Cn.GatewayTimeout,Cn.InternalServerError,Cn.ServiceUnavailable,Cn.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],i=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(i===void 0||!/^\d+$/.test(i))return;let s=parseInt(i,10);return!isNaN(s)&&s>0?s:void 0}sleep(e){return M2(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function ll(t){let e=new c8(al(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new P2(e)}o(ll,"internalArtifactTwirpClient");var ay=T(require("fs"),1);var oy=require("path");function j0e(t){if(!ay.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!ay.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);D("Root directory input is valid!")}o(j0e,"validateRootDirectory");function W0e(t,e) Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&Ge("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);D(`Redirecting to blob download url: ${ZDe(d)}`);try{D(`Starting download of artifact to: ${r}`);let f=yield eQe(d,r,e?.skipDecompress);D("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,v(`Computed digest: ${f.sha256Digest}`),v(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(rQe,"downloadArtifactInternal");function nQe(){return nE(this,arguments,void 0,function*(t=N0e()){return(yield mQt(t))?v(`Artifact destination folder already exists: ${t}`):(v(`Artifact destination folder does not exist, creating: ${t}`),yield nJ.default.mkdir(t,{recursive:!0})),t})}o(nQe,"resolveOrCreateDirectory");var yQt=5,EQt=[400,401,403,404,422];function iE(t,e=yQt,r=EQt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return v(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(iE,"getRetryOptions");var iQe="6.0.0";function eA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(eA,"requestLog");eA.VERSION=iQe;var aQe=T(sQe(),1);var KQ=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=i}};var CQt="0.0.0-development";function bQt(t){return t.request!==void 0}o(bQt,"isRequestError");async function oQe(t,e,r,n){if(!bQt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o(oQe,"errorRequest");async function wQt(t,e,r,n){let i=new aQe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(IQt.bind(null,t,e,r),n)}o(wQt,"wrapRequest");async function IQt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new KQ(i.data.errors[0].message,500,{request:n,response:i});return oQe(t,e,s,n)}return i}o(IQt,"requestWithGraphqlErrorHandling");function tA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",oQe.bind(null,r,n)),t.hook.wrap("request",wQt.bind(null,r,n))),n}o(tA,"retry");tA.VERSION=CQt;var cQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function XQ(t,e,r,n,i){return cQe(this,void 0,void 0,function*(){var s;let[a,c]=iE(bp),l={log:void 0,userAgent:al(),previews:void 0,retry:a,request:c},d=yield Wo(i,l,tA,eA).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new Ga(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new Nu(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],Xe(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(RP,"getArtifactPublic");function qLe(t){return ULe(this,void 0,void 0,function*(){var e;let r=Gl(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=ql(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:Cn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new fd(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],v(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(XQ,"getArtifactPublic");function lQe(t){return cQe(this,void 0,void 0,function*(){var e;let r=ll(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=cl(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:nn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new Nu(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],Xe(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Bo.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(qLe,"getArtifactInternal");var GLe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function HLe(t,e,r,n,i){return GLe(this,void 0,void 0,function*(){var s;let[a,c]=AC(Hm),l={log:void 0,userAgent:Ul(),previews:void 0,retry:a,request:c},u=dh(i,l,$m,jm),d=yield RP(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new Ac(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(HLe,"deleteArtifactPublic");function VLe(t){return GLe(this,void 0,void 0,function*(){let e=Gl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=ql(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Cn.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new fd(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],Xe(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return ct(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(VLe,"deleteArtifactInternal");var zLe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},TP=Ave(),DP=100,qUt=Math.ceil(TP/DP);function jLe(t,e,r,n){return zLe(this,arguments,void 0,function*(i,s,a,c,l=!1){ct(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=AC(Hm),h={log:void 0,userAgent:Ul(),previews:void 0,retry:d,request:f},p=dh(c,h,$m,jm),A=1,{data:g}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:DP,page:A}),E=Math.ceil(g.total_count/DP),y=g.total_count;y>TP&&(mi(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${TP}. Results will be incomplete as only the first ${TP} artifacts will be returned`),E=qUt);for(let C of g.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(A++,A;A<=E;A++){Xe(`Fetching page ${A} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:DP,page:A});for(let I of C.artifacts)u.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return l&&(u=WLe(u)),ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(jLe,"listArtifactsPublic");function $Le(){return zLe(this,arguments,void 0,function*(t=!1){let e=Gl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=ql(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Bo.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=WLe(a)),ct(`Found ${a.length} artifact(s)`),{artifacts:a}})}o($Le,"listArtifactsInternal");function WLe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(WLe,"filterLatest");var FB=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},GUt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i Line truncated
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?to.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(lQe,"getArtifactInternal");var uQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function dQe(t,e,r,n,i){return uQe(this,void 0,void 0,function*(){var s;let[a,c]=iE(bp),l={log:void 0,userAgent:al(),previews:void 0,retry:a,request:c},u=Wo(i,l,tA,eA),d=yield XQ(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new Ga(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(dQe,"deleteArtifactPublic");function fQe(t){return uQe(this,void 0,void 0,function*(){let e=ll(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=cl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:nn.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new Nu(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return D(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(fQe,"deleteArtifactInternal");var hQe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ZQ=T0e(),e1=100,SQt=Math.ceil(ZQ/e1);function pQe(t,e,r,n){return hQe(this,arguments,void 0,function*(i,s,a,c,l=!1){D(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=iE(bp),h={log:void 0,userAgent:al(),previews:void 0,retry:d,request:f},p=Wo(c,h,tA,eA),m=1,{data:A}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:e1,page:m}),E=Math.ceil(A.total_count/e1),y=A.total_count;y>ZQ&&(Ge(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${ZQ}. Results will be incomplete as only the first ${ZQ} artifacts will be returned`),E=SQt);for(let C of A.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(m++,m;m<=E;m++){v(`Fetching page ${m} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:e1,page:m});for(let w of C.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return l&&(u=mQe(u)),D(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(pQe,"listArtifactsPublic");function AQe(){return hQe(this,arguments,void 0,function*(t=!1){let e=ll(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=cl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?to.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=mQe(a)),D(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(AQe,"listArtifactsInternal");function mQe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(mQe,"filterLatest");var eS=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},BQt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Ob Line truncated
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return FB(this,void 0,void 0,function*(){try{if(Xy())throw new Vf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=GUt(r,["findBy"]);return QLe(e,n,i,s,a)}return kLe(e,r)}catch(n){throw mi(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return eS(this,void 0,void 0,function*(){try{if(ty())throw new Zd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=BQt(r,["findBy"]);return tQe(e,n,i,s,a)}return rQe(e,r)}catch(n){throw Ge(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return FB(this,void 0,void 0,function*(){try{if(Xy())throw new Vf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:i,token:s}}=e;return jLe(r,n,i,s,e?.latest)}return $Le(e?.latest)}catch(r){throw mi(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return eS(this,void 0,void 0,function*(){try{if(ty())throw new Zd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:i,token:s}}=e;return pQe(r,n,i,s,e?.latest)}return AQe(e?.latest)}catch(r){throw Ge(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return FB(this,void 0,void 0,function*(){try{if(Xy())throw new Vf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:i,repositoryName:s,token:a}}=r;return RP(e,n,i,s,a)}return qLe(e)}catch(n){throw mi(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return eS(this,void 0,void 0,function*(){try{if(ty())throw new Zd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:i,repositoryName:s,token:a}}=r;return XQ(e,n,i,s,a)}return lQe(e)}catch(n){throw Ge(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return FB(this,void 0,void 0,function*(){try{if(Xy())throw new Vf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,workflowRunId:s,token:a}}=r;return HLe(e,s,n,i,a)}return VLe(e)}catch(n){throw mi(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return eS(this,void 0,void 0,function*(){try{if(ty())throw new Zd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,workflowRunId:s,token:a}}=r;return dQe(e,s,n,i,a)}return fQe(e)}catch(n){throw Ge(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var oqr=new gC;var QP=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Ze.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=aK.default.basename(e.filename),n=new gC;O(`Uploading ${r} as an artifact`);let i=aK.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new Ac("Cannot upload artifact");let a=s.size??JLe.default.statSync(e.filename).size,c=`${Ze.workflowRunURL()}/artifacts/${s.id}`;return O(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var BK=N(YLe(),1);var kt=Symbol("NOT_RESOLVED");function Pi(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}o(Pi,"defineScalarTag");function EK(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(EK,"defineSequenceTag");function LP(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(LP,"defineMappingTag");var HUt=Pi("tag:yaml.org,2002:str",{resolve:o(t=>t,"resolve"),identify:o(t=>typeof t=="string","identify")}),VUt=["","~","null","Null","NULL"],zUt=Pi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>VUt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),jUt=Pi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:o((t,e)=>t==="null"||e&&t===""?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),$Ut=["","~","null","Null","NULL"],WUt=Pi("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>$Ut.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),JUt=["true","True","TRUE"],YUt=["false","False","FALSE"],KUt=Pi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:o(t=>JUt.indexOf(t)!==-1?!0:YUt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),XUt=["true"],ZUt=["false"],eqt=Pi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:o(t=>XUt.indexOf(t)!==-1?!0:ZUt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),tqt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],rqt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],nqt=Pi("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:o(t=>tqt.indexOf(t)!==-1?!0:rqt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),iqt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),sqt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function oqt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(oqt,"parseYamlInteger$2");function aqt(t,e){if(e){if(!sqt.test(t))return kt}else if(!iqt.test(t))return kt;let r=oqt(t);return Number.isFinite(r)?r:kt}o(aqt,"resolveYamlInteger$2");var sFe=Pi("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:aqt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),cqt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),lqt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function uqt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(uqt,"parseYamlInteger$1");function dqt(t,e){if(e){if(!lqt.test(t))return kt}else if(!cqt.tes Line truncated
${l}`}let f=cK(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${lK((t.line+1).toString(),u)} | ${f.str}
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var E_r=new sE;var t1=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Ke.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=oJ.default.basename(e.filename),n=new sE;D(`Uploading ${r} as an artifact`);let i=oJ.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new Ga("Cannot upload artifact");let a=s.size??gQe.default.statSync(e.filename).size,c=`${Ke.workflowRunURL()}/artifacts/${s.id}`;return D(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var yQe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EQe=/[\x01-\x7F]/g,CQe=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,aJ=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,oE=new Map([[" ","Tab"],[`
`,"NewLine"],["!","excl"],['"',"quot"],["#","num"],["$","dollar"],["%","percnt"],["&","amp"],["'","apos"],["(","lpar"],[")","rpar"],["*","ast"],["+","plus"],[",","comma"],[".","period"],["/","sol"],[":","colon"],[";","semi"],["<","lt"],["<\u20D2","nvlt"],["=","equals"],["=\u20E5","bne"],[">","gt"],[">\u20D2","nvgt"],["?","quest"],["@","commat"],["[","lsqb"],["]","rsqb"],["^","Hat"],["_","lowbar"],["`","grave"],["fj","fjlig"],["{","lcub"],["|","vert"],["}","rcub"],["\xA0","nbsp"],["\xA1","iexcl"],["\xA2","cent"],["\xA3","pound"],["\xA4","curren"],["\xA5","yen"],["\xA6","brvbar"],["\xA7","sect"],["\xA8","die"],["\xA9","copy"],["\xAA","ordf"],["\xAB","laquo"],["\xAC","not"],["\xAD","shy"],["\xAE","reg"],["\xAF","macr"],["\xB0","deg"],["\xB1","pm"],["\xB2","sup2"],["\xB3","sup3"],["\xB4","acute"],["\xB5","micro"],["\xB6","para"],["\xB7","middot"],["\xB8","cedil"],["\xB9","sup1"],["\xBA","ordm"],["\xBB","raquo"],["\xBC","frac14"],["\xBD","half"],["\xBE","frac34"],["\xBF","iquest"],["\xC0","Agrave"],["\xC1","Aacute"],["\xC2","Acirc"],["\xC3","Atilde"],["\xC4","Auml"],["\xC5","angst"],["\xC6","AElig"],["\xC7","Ccedil"],["\xC8","Egrave"],["\xC9","Eacute"],["\xCA","Ecirc"],["\xCB","Euml"],["\xCC","Igrave"],["\xCD","Iacute"],["\xCE","Icirc"],["\xCF","Iuml"],["\xD0","ETH"],["\xD1","Ntilde"],["\xD2","Ograve"],["\xD3","Oacute"],["\xD4","Ocirc"],["\xD5","Otilde"],["\xD6","Ouml"],["\xD7","times"],["\xD8","Oslash"],["\xD9","Ugrave"],["\xDA","Uacute"],["\xDB","Ucirc"],["\xDC","Uuml"],["\xDD","Yacute"],["\xDE","THORN"],["\xDF","szlig"],["\xE0","agrave"],["\xE1","aacute"],["\xE2","acirc"],["\xE3","atilde"],["\xE4","auml"],["\xE5","aring"],["\xE6","aelig"],["\xE7","ccedil"],["\xE8","egrave"],["\xE9","eacute"],["\xEA","ecirc"],["\xEB","euml"],["\xEC","igrave"],["\xED","iacute"],["\xEE","icirc"],["\xEF","iuml"],["\xF0","eth"],["\xF1","ntilde"],["\xF2","ograve"],["\xF3","oacute"],["\xF4","ocirc"],["\xF5","otilde"],["\xF6","ouml"],["\xF7","div"],["\xF8","oslash"],["\xF9","ugrave"],["\xFA","uacute"],["\xFB","ucirc"],["\xFC","uuml"],["\xFD","yacute"],["\xFE","thorn"],["\xFF","yuml"],["\u0100","Amacr"],["\u0101","amacr"],["\u0102","Abreve"],["\u0103","abreve"],["\u0104","Aogon"],["\u0105","aogon"],["\u0106","Cacute"],["\u0107","cacute"],["\u0108","Ccirc"],["\u0109","ccirc"],["\u010A","Cdot"],["\u010B","cdot"],["\u010C","Ccaron"],["\u010D","ccaron"],["\u010E","Dcaron"],["\u010F","dcaron"],["\u0110","Dstrok"],["\u0111","dstrok"],["\u0112","Emacr"],["\u0113","emacr"],["\u0116","Edot"],["\u0117","edot"],["\u0118","Eogon"],["\u0119","eogon"],["\u011A","Ecaron"],["\u011B","ecaron"],["\u011C","Gcirc"],["\u011D","gcirc"],["\u011E","Gbreve"],["\u011F","gbreve"],["\u0120","Gdot"],["\u0121","gdot"],["\u0122","Gcedil"],["\u0124","Hcirc"],["\u0125","hcirc"],["\u0126","Hstrok"],["\u0127","hstrok"],["\u0128","Itilde"],["\u0129","itilde"],["\u012A","Imacr"],["\u012B","imacr"],["\u012E","Iogon"],["\u012F","iogon"],["\u0130","Idot"],["\u0131","imath"],["\u0132","IJlig"],["\u0133","ijlig"],["\u0134","Jcirc"],["\u0135","jcirc"],["\u0136","Kcedil"],["\u0137","kcedil"],["\u0138","kgreen"],["\u0139","Lacute"],["\u013A","lacute"],["\u013B","Lcedil"],["\u013C","lcedil"],["\u013D","Lcaron"],["\u013E","lcaron"],["\u013F","Lmidot"],["\u0140","lmidot"],["\u0141","Lstrok"],["\u0142","lstrok"],["\u0143","Nacute"],["\u0144","nacute"],["\u0145","Ncedil"],["\u0146","ncedil"],["\u0147","Ncaron"],["\u0148","ncaron"],["\u0149","napos"],["\u014A","ENG"],["\u014B","eng"],["\u014C","Omacr"],["\u014D","omacr"],["\u0150","Odblac"],["\u0151","odblac"],["\u0152","OElig"],["\u0153","oelig"],["\u0154","Racute"],["\u0155","racute"],["\u0156","Rcedil"],["\u0157","rcedil"],["\u0158","Rcaron"],["\u0159","rcaron"],["\u015A","Sacute"],["\u015B","sacute"],["\u015C","Scirc"],["\u015D","scirc"],["\u015E","Scedil"],["\u015F","scedil"],["\u0160","Scaron"],["\u0161","scaron"],["\u0162","Tcedil"],["\u0163","tcedil"],["\u0164","Tcaron"],["\u0165","tcaron"],["\u0166","Tstrok"],["\u0167","tstrok"],["\u0168","Utilde"],["\u0169","utilde"],["\u016A","Umacr"],["\u016B","umacr"],["\u016C","Ubreve"],["\u016D","ubreve"],["\u016E","Uring"],["\u016F","uring"],["\u0170","Udblac"],["\u0171","udblac"],["\u0172","Uogon"],["\u0173","uogon"],["\u0174","Wcirc"],["\u0175","wcirc"],["\u0176","Ycirc"],["\u0177","ycirc"],["\u0178","Yuml"],["\u0179","Zacute"],["\u017A","zacute"],["\u017B","Zdot"],["\u017C","zdot"],["\u017D","Zcaron"],["\u017E","zcaron"],["\u0192","fnof"],["\u01B5","imped"],["\u01F5","gacute"],["\u0237","jmath"],["\u02C6","circ"],["\u02C7","caron"],["\u02D8","breve"],["\u02D9","dot"],["\u02DA","ring"],["\u02DB","ogon"],["\u02DC","tilde"],["\u02DD","dblac"],["\u0311","DownBreve"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],["\u0397","Eta"],["\u0398","Theta"],["\u0399","Iota"],["\u039A","Kappa"],["\u039B","Lambda"],["\u039C","Mu"],["\u039D","Nu"],["\u039E","Xi"],["\u039F","Omicron"],["\u03A0","Pi"],["\u03A1","Rho"],["\u03A3","SigmaLine truncated
`],["Nfr","\u{1D511}"],["NoBreak","\u2060"],["NonBreakingSpace","\xA0"],["Nopf","\u2115"],["Not","\u2AEC"],["NotCongruent","\u2262"],["NotCupCap","\u226D"],["NotDoubleVerticalBar","\u2226"],["NotElement","\u2209"],["NotEqual","\u2260"],["NotEqualTilde","\u2242\u0338"],["NotExists","\u2204"],["NotGreater","\u226F"],["NotGreaterEqual","\u2271"],["NotGreaterFullEqual","\u2267\u0338"],["NotGreaterGreater","\u226B\u0338"],["NotGreaterLess","\u2279"],["NotGreaterSlantEqual","\u2A7E\u0338"],["NotGreaterTilde","\u2275"],["NotHumpDownHump","\u224E\u0338"],["NotHumpEqual","\u224F\u0338"],["NotLeftTriangle","\u22EA"],["NotLeftTriangleBar","\u29CF\u0338"],["NotLeftTriangleEqual","\u22EC"],["NotLess","\u226E"],["NotLessEqual","\u2270"],["NotLessGreater","\u2278"],["NotLessLess","\u226A\u0338"],["NotLessSlantEqual","\u2A7D\u0338"],["NotLessTilde","\u2274"],["NotNestedGreaterGreater","\u2AA2\u0338"],["NotNestedLessLess","\u2AA1\u0338"],["NotPrecedes","\u2280"],["NotPrecedesEqual","\u2AAF\u0338"],["NotPrecedesSlantEqual","\u22E0"],["NotReverseElement","\u220C"],["NotRightTriangle","\u22EB"],["NotRightTriangleBar","\u29D0\u0338"],["NotRightTriangleEqual","\u22ED"],["NotSquareSubset","\u228F\u0338"],["NotSquareSubsetEqual","\u22E2"],["NotSquareSuperset","\u2290\u0338"],["NotSquareSupersetEqual","\u22E3"],["NotSubset","\u2282\u20D2"],["NotSubsetEqual","\u2288"],["NotSucceeds","\u2281"],["NotSucceedsEqual","\u2AB0\u0338"],["NotSucceedsSlantEqual","\u22E1"],["NotSucceedsTilde","\u227F\u0338"],["NotSuperset","\u2283\u20D2"],["NotSupersetEqual","\u2289"],["NotTilde","\u2241"],["NotTildeEqual","\u2244"],["NotTildeFullEqual","\u2247"],["NotTildeTilde","\u2249"],["NotVerticalBar","\u2224"],["Nscr","\u{1D4A9}"],["Ntilde","\xD1"],["Nu","\u039D"],["OElig","\u0152"],["Oacute","\xD3"],["Ocirc","\xD4"],["Ocy","\u041E"],["Odblac","\u0150"],["Ofr","\u{1D512}"],["Ograve","\xD2"],["Omacr","\u014C"],["Omega","\u03A9"],["Omicron","\u039F"],["Oopf","\u{1D546}"],["OpenCurlyDoubleQuote","\u201C"],["OpenCurlyQuote","\u2018"],["Or","\u2A54"],["Oscr","\u{1D4AA}"],["Oslash","\xD8"],["Otilde","\xD5"],["Otimes","\u2A37"],["Ouml","\xD6"],["OverBar","\u203E"],["OverBrace","\u23DE"],["OverBracket","\u23B4"],["OverParenthesis","\u23DC"],["PartialD","\u2202"],["Pcy","\u041F"],["Pfr","\u{1D513}"],["Phi","\u03A6"],["Pi","\u03A0"],["PlusMinus","\xB1"],["Poincareplane","\u210C"],["Popf","\u2119"],["Pr","\u2ABB"],["Precedes","\u227A"],["PrecedesEqual","\u2AAF"],["PrecedesSlantEqual","\u227C"],["PrecedesTilde","\u227E"],["Prime","\u2033"],["Product","\u220F"],["Proportion","\u2237"],["Proportional","\u221D"],["Pscr","\u{1D4AB}"],["Psi","\u03A8"],["QUOT",'"'],["Qfr","\u{1D514}"],["Qopf","\u211A"],["Qscr","\u{1D4AC}"],["RBarr","\u2910"],["REG","\xAE"],["Racute","\u0154"],["Rang","\u27EB"],["Rarr","\u21A0"],["Rarrtl","\u2916"],["Rcaron","\u0158"],["Rcedil","\u0156"],["Rcy","\u0420"],["Re","\u211C"],["ReverseElement","\u220B"],["ReverseEquilibrium","\u21CB"],["ReverseUpEquilibrium","\u296F"],["Rfr","\u211C"],["Rho","\u03A1"],["RightAngleBracket","\u27E9"],["RightArrow","\u2192"],["RightArrowBar","\u21E5"],["RightArrowLeftArrow","\u21C4"],["RightCeiling","\u2309"],["RightDoubleBracket","\u27E7"],["RightDownTeeVector","\u295D"],["RightDownVector","\u21C2"],["RightDownVectorBar","\u2955"],["RightFloor","\u230B"],["RightTee","\u22A2"],["RightTeeArrow","\u21A6"],["RightTeeVector","\u295B"],["RightTriangle","\u22B3"],["RightTriangleBar","\u29D0"],["RightTriangleEqual","\u22B5"],["RightUpDownVector","\u294F"],["RightUpTeeVector","\u295C"],["RightUpVector","\u21BE"],["RightUpVectorBar","\u2954"],["RightVector","\u21C0"],["RightVectorBar","\u2953"],["Rightarrow","\u21D2"],["Ropf","\u211D"],["RoundImplies","\u2970"],["Rrightarrow","\u21DB"],["Rscr","\u211B"],["Rsh","\u21B1"],["RuleDelayed","\u29F4"],["SHCHcy","\u0429"],["SHcy","\u0428"],["SOFTcy","\u042C"],["Sacute","\u015A"],["Sc","\u2ABC"],["Scaron","\u0160"],["Scedil","\u015E"],["Scirc","\u015C"],["Scy","\u0421"],["Sfr","\u{1D516}"],["ShortDownArrow","\u2193"],["ShortLeftArrow","\u2190"],["ShortRightArrow","\u2192"],["ShortUpArrow","\u2191"],["Sigma","\u03A3"],["SmallCircle","\u2218"],["Sopf","\u{1D54A}"],["Sqrt","\u221A"],["Square","\u25A1"],["SquareIntersection","\u2293"],["SquareSubset","\u228F"],["SquareSubsetEqual","\u2291"],["SquareSuperset","\u2290"],["SquareSupersetEqual","\u2292"],["SquareUnion","\u2294"],["Sscr","\u{1D4AE}"],["Star","\u22C6"],["Sub","\u22D0"],["Subset","\u22D0"],["SubsetEqual","\u2286"],["Succeeds","\u227B"],["SucceedsEqual","\u2AB0"],["SucceedsSlantEqual","\u227D"],["SucceedsTilde","\u227F"],["SuchThat","\u220B"],["Sum","\u2211"],["Sup","\u22D1"],["Superset","\u2283"],["SupersetEqual","\u2287"],["Supset","\u22D1"],["THORN","\xDE"],["TRADE","\u2122"],["TSHcy","\u040B"],["TScy","\u0426"],["Tab"," "],["Tau","\u03A4"],["Tcaron","\u0164"],["Tcedil","\u0162"],["Tcy","\u0422"],["Tfr","\u{1D517}"],["Therefore","\u2234"],["Theta","\u0398"],["ThickSpace","\u205F\u200A"],["ThinSpace","\u2009"],["Tilde","\u2 Line truncated
${l}`}let f=lJ(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${uJ((t.line+1).toString(),u)} | ${f.str}
`,l+=`${"-".repeat(r.indent+u+3+f.pos)}^
`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=cK(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${lK((t.line+h+1).toString(),u)} | ${p.str}
`}return l.replace(/\n$/,"")}o(Kqt,"makeSnippet");function ZLe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=lJ(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${uJ((t.line+h+1).toString(),u)} | ${p.str}
`}return l.replace(/\n$/,"")}o(M1t,"makeSnippet");function DQe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(ZLe,"formatError");var Xqt=class cFe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=ZLe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${ZLe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(s++,a=l+1):u===13&&(s++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:i,buffer:e,position:r,line:s,column:r-a};throw c.snippet=Kqt(c),new cFe(n,c)}},yC={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},it={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},mh={BLOCK:1,FLOW:2},bK={CLIP:1,STRIP:2,KEEP:3};function eFe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(eFe,"simpleEscapeSequence");var Zqt=new Array(256),e3t=new Array(256);for(let t=0;t<256;t++)Zqt[t]=eFe(t)?1:0,e3t[t]=eFe(t);var Eqr=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function uK(t){return encodeURI(t).replace(/!/g,"%21")}o(uK,"tagPercentEncode");function lFe(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${uK(e)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${uK(e.slice(18))}`:`!<${uK(e)}>`}o(lFe,"tagNameShort");var t3t={filename:"",schema:$qt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var hK=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,uFe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Cqr=new RegExp(`^(?:${hK})*$`),bqr=new RegExp(`^(?:${uFe})+$`),Iqr=new RegExp(`^(?:!(?:${hK})*|${uFe}(?:${hK})*)$`),r3t={filename:"",maxDepth:100};var wqr={...r3t,...t3t};var Wm=Symbol("INVALID");function n3t(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(n3t,"buildRepresentTypes");function i3t(t,e){for(let r=0,n=t.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:s}=t.representTypes[r];if(i.identify(e)){let a;return i.matchByTagPrefix?a=i.representTagName(e):a=i.tagName,{tag:i,tagName:a,implicitTag:s}}}return null}o(i3t,"matchTag");function qB(t,e){if(!t.noRefs&&e!==null&&typeof e=="object"){let u=t.refs.get(e);if(u)return u.anchor===void 0&&(u.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:u.anchor}}let r=i3t(t,e);if(!r){if(e===void 0||t.skipInvalid)return Wm;throw new Xqt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}let{tag:n,tagName:i,implicitTag:s}=r,a=s?i:lFe(i);if(n.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!s,style:it.PLAIN,value:n.represent(e)};if(n.nodeKind==="sequence"){let u=n.represent(e),d={kind:"sequence",tag:a,tagged:!s,style:mh.BLOCK,items:[]};t.noRefs||t.refs.set(e,d);for(let f=0,h=u.length;f<h;f+=1){let p=qB(t,u[f]);p===Wm&&u[f]===void 0&&(p=qB(t,null)),p!==Wm&&d.items.push(p)}return d}let c=n.represent(e),l={kind:"mapping",tag:a,tagged:!s,style:mh.BLOCK,items:[]};t.noRefs||t.refs.set(e,l);for(let[u,d]of c){let f=qB(t,u);if(f===Wm)continue;let h=qB(t,d);h!==Wm&&l.items.push({key:f,value:h})}return l}o(qB,"build");function s3t(t,e,r={}){let n=qB({representTypes:n3t(e),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:n===Wm?null:n,directives:[]}]}o(s3t,"jsToAst");var o3t=Symbol("visit:break"),dFe=Symbol("visit:skip");function PP(t,e,r){let n=e(t,r);if(n===o3t)return!0;if(n===dFe)return!1;let i=r.depth+1;switch(t.kind){case"sequence":for(let s of t.items)if(PP(s,e,{depth:i,parent:t,isKey:!1}))return!0;break;case"mapping":for(let{key:s,value:a}of t.items)if(PP(s,e,{depth:i,parent:t,isKey:!0})||PP(a,e,{depth:i,parent:t,isKey:!1}))return!0;break}return!1}o(PP,"visitNode");function tFe(t,e){for(let r of t)if(r.contents&&PP(r.contents,e,{depth:0,parent:null,isKey:!1}))return}o(tFe,"visit");function UP(t,e){return(t&1<<e)!==0}o(UP,"hasBit");var rFe={applyQuoteFlowKeysOption:a3t,doubleQuoteForInvisibles:c3t,doubleQuoteWhitespaceOnly:l3t,applyForceQuotesOption:u3t,tryLongOrMultilineAsBlock:d3t,quoteInvalidPlain:f3t,fallbackToDoubleQuoted:h3t};function fFe(t){return t.presenterOptions.quoteStyle==="single"&&UP(t.allowedStylesMask,it.SINGLE_QUOTED)?it.SINGLE_QUOTED:it.DOUBLE_QUOTED}o(fFe,"_preferredQuotedStyle");function a3t(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==it.PLAIN||(t.style=it.DOUBLE_QUOTED))}o(a3t,"applyQuoteFlowKeysOption");function c3t(t){t.style===it.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(c3t,"doubleQuoteForInvisibles");function l3t(t){t.style===it.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(l3t,"doubleQuoteWhitespaceOnly");function u3t(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==it.PLAIN||(t.style=t.node.value.includes(`
`)?it.DOUBLE_QUOTED:fFe(t)))}o(u3t,"applyForceQuotesOption");function d3t(t){if(t.style!==it.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!UP(t.allowedStylesMask,it.LITERAL_BLOCK)){r&&(t.style=it.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=it.LITERAL_BLOCK);return}let i=Math.max(Math.min(n,40),n-t.shiftOfContent),s=0,a=!1;for(;s<=e.length;){let c=e.length,l=e.indexOf(`
`,s);l!==-1&&(c=l);let u=e.slice(s,c);if(u.length>i&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=it.FOLDED_BLOCK:r&&(t.style=it.LITERAL_BLOCK)}o(d3t,"tryLongOrMultilineAsBlock");function f3t(t){t.style===it.PLAIN&&!UP(t.allowedStylesMask,it.PLAIN)&&(t.style=fFe(t))}o(f3t,"quoteInvalidPlain");function h3t(t){UP(t.allowedStylesMask,t.style)||(t.style=it.DOUBLE_QUOTED)}o(h3t,"fallbackToDoubleQuoted");function UB(t,e){return t|1<<e}o(UB,"setBit");var p3t="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",m3t="[\\n\\r]",A3t="\\uFEFF",IK="[ \\t]",hFe=`(?:(?!(?:${m3t}|${A3t}))${p3t})`,qP=`(?:(?!${IK})${hFe})`,pFe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",mFe="[-?:,\\[\\]{}#&*!|>'\"%@`]",g3t="[,\\[\\]{}]",pK=qP,mK=`(?:(?!${g3t})${qP})`,y3t=`(?:(?:(?!${mFe})${qP})|[?:-](?=${pK}))`,E3t=`(?:(?:(?!${mFe})${qP})|[?:-](?=${mK}))`,AFe=`(?:(?:(?![:#])${pK})|:(?=${pK}))#*`,gFe=`(?:(?:(?![:#])${mK})|:(?=${mK}))#*`,yFe=`(?:${IK}*${AFe})*`,EFe=`(?:${IK}*${gFe})*`,CFe=`${y3t}#*${yFe}`,bFe=`${E3t}#*${EFe}`,C3t=CFe,b3t=bFe,I3t=`\\n+${AFe}${yFe}`,w3t=`\\n+${gFe}${EFe}`,S3t=`${CFe}(?:${I3t})*`,B3t=`${bFe}(?:${w3t})*`,v3t=new RegExp(`^(?:${S3t})$`,"u"),x3t=new RegExp(`^(?:${B3t})$`,"u"),_3t=new RegExp(`^(?:${C3t})$`,"u"),N3t=new RegExp(`^(?:${b3t})$`,"u"),R3t=new RegExp(`^(?:${pFe})*$`,"u"),T3t=new RegExp(`^(?:${pFe}|\\n)*$`,"u"),D3t=new RegExp(`^(?:${hFe}|\\n)*$`,"u"),Q3t=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,wK=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function k3t(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?N3t:_3t:t.flowOnly?x3t:v3t).test(e)||t.shiftOfFirstLine===0&&Q3t.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(`
`);if(n!==-1){let i=e.slice(n+1);if(wK.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(k3t,"canUsePlain");function P3t(t){let e=t.node.value;if(!(t.isKey?R3t:T3t).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(`
`);if(r!==-1&&wK.test(e.slice(r+1)))return!1}return!0}o(P3t,"canUseSingleQuoted");function O3t(t){if(t.flowOnly||!D3t.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&wK.test(t.node.value))}o(O3t,"canUseBlock");function L3t(t){let e=UB(0,it.DOUBLE_QUOTED);k3t(t)&&(e=UB(e,it.PLAIN)),P3t(t)&&(e=UB(e,it.SINGLE_QUOTED)),O3t(t)&&(e=UB(UB(e,it.LITERAL_BLOCK),it.FOLDED_BLOCK)),t.allowedStylesMask=e}o(L3t,"detectAllowedStyles");function F3t(t){switch(t.style){case it.PLAIN:return M3t(t);case it.SINGLE_QUOTED:return U3t(t);case it.LITERAL_BLOCK:return q3t(t);case it.FOLDED_BLOCK:return G3t(t);case it.DOUBLE_QUOTED:return H3t(t)}}o(F3t,"renderScalar");function M3t(t){return IFe(t.node.value,t.shiftOfContent)}o(M3t,"renderPlain");function U3t(t){return`'${IFe(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(U3t,"renderSingleQuoted");function q3t(t){let e=t.node.value;return"|"+SFe(e,t.shiftOfParent,t.shiftOfContent)+BFe(wFe(e,t.shiftOfContent))}o(q3t,"renderLiteralBlock");function G3t(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+SFe(e,t.shiftOfParent,t.shiftOfContent)+BFe(wFe(z3t(e,n),t.shiftOfContent))}o(G3t,"renderFoldedBlock");function H3t(t){return`"${W3t(t.node.value)}"`}o(H3t,"renderDoubleQuoted");function IFe(t,e){let r=t.indexOf(`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(DQe,"formatError");var U1t=class qQe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=DQe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${DQe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(s++,a=l+1):u===13&&(s++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:i,buffer:e,position:r,line:s,column:r-a};throw c.snippet=M1t(c),new qQe(n,c)}},aE={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},rt={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},Sf={BLOCK:1,FLOW:2},wJ={CLIP:1,STRIP:2,KEEP:3};function QQe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(QQe,"simpleEscapeSequence");var q1t=new Array(256),G1t=new Array(256);for(let t=0;t<256;t++)q1t[t]=QQe(t)?1:0,G1t[t]=QQe(t);var k_r=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function dJ(t){return encodeURI(t).replace(/!/g,"%21")}o(dJ,"tagPercentEncode");function GQe(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${dJ(e)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${dJ(e.slice(18))}`:`!<${dJ(e)}>`}o(GQe,"tagNameShort");var H1t={filename:"",schema:P1t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var pJ=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,HQe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,P_r=new RegExp(`^(?:${pJ})*$`),O_r=new RegExp(`^(?:${HQe})+$`),L_r=new RegExp(`^(?:!(?:${pJ})*|${HQe}(?:${pJ})*)$`),z1t={filename:"",maxDepth:100};var F_r={...z1t,...H1t};var rA=Symbol("INVALID");function V1t(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(V1t,"buildRepresentTypes");function $1t(t,e){for(let r=0,n=t.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:s}=t.representTypes[r];if(i.identify(e)){let a;return i.matchByTagPrefix?a=i.representTagName(e):a=i.tagName,{tag:i,tagName:a,implicitTag:s}}}return null}o($1t,"matchTag");function nS(t,e){if(!t.noRefs&&e!==null&&typeof e=="object"){let u=t.refs.get(e);if(u)return u.anchor===void 0&&(u.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:u.anchor}}let r=$1t(t,e);if(!r){if(e===void 0||t.skipInvalid)return rA;throw new U1t(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}let{tag:n,tagName:i,implicitTag:s}=r,a=s?i:GQe(i);if(n.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!s,style:rt.PLAIN,value:n.represent(e)};if(n.nodeKind==="sequence"){let u=n.represent(e),d={kind:"sequence",tag:a,tagged:!s,style:Sf.BLOCK,items:[]};t.noRefs||t.refs.set(e,d);for(let f=0,h=u.length;f<h;f+=1){let p=nS(t,u[f]);p===rA&&u[f]===void 0&&(p=nS(t,null)),p!==rA&&d.items.push(p)}return d}let c=n.represent(e),l={kind:"mapping",tag:a,tagged:!s,style:Sf.BLOCK,items:[]};t.noRefs||t.refs.set(e,l);for(let[u,d]of c){let f=nS(t,u);if(f===rA)continue;let h=nS(t,d);h!==rA&&l.items.push({key:f,value:h})}return l}o(nS,"build");function j1t(t,e,r={}){let n=nS({representTypes:V1t(e),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:n===rA?null:n,directives:[]}]}o(j1t,"jsToAst");var W1t=Symbol("visit:break"),zQe=Symbol("visit:skip");function r1(t,e,r){let n=e(t,r);if(n===W1t)return!0;if(n===zQe)return!1;let i=r.depth+1;switch(t.kind){case"sequence":for(let s of t.items)if(r1(s,e,{depth:i,parent:t,isKey:!1}))return!0;break;case"mapping":for(let{key:s,value:a}of t.items)if(r1(s,e,{depth:i,parent:t,isKey:!0})||r1(a,e,{depth:i,parent:t,isKey:!1}))return!0;break}return!1}o(r1,"visitNode");function kQe(t,e){for(let r of t)if(r.contents&&r1(r.contents,e,{depth:0,parent:null,isKey:!1}))return}o(kQe,"visit");function a1(t,e){return(t&1<<e)!==0}o(a1,"hasBit");var PQe={applyQuoteFlowKeysOption:J1t,doubleQuoteForInvisibles:Y1t,doubleQuoteWhitespaceOnly:K1t,applyForceQuotesOption:X1t,tryLongOrMultilineAsBlock:Z1t,quoteInvalidPlain:ekt,fallbackToDoubleQuoted:tkt};function VQe(t){return t.presenterOptions.quoteStyle==="single"&&a1(t.allowedStylesMask,rt.SINGLE_QUOTED)?rt.SINGLE_QUOTED:rt.DOUBLE_QUOTED}o(VQe,"_preferredQuotedStyle");function J1t(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==rt.PLAIN||(t.style=rt.DOUBLE_QUOTED))}o(J1t,"applyQuoteFlowKeysOption");function Y1t(t){t.style===rt.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=rt.DOUBLE_QUOTED)}o(Y1t,"doubleQuoteForInvisibles");function K1t(t){t.style===rt.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=rt.DOUBLE_QUOTED)}o(K1t,"doubleQuoteWhitespaceOnly");function X1t(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==rt.PLAIN||t.node.tag===t.presenterOptions.schema.defaultScalarTag.tagName&&(t.style=t.node.value.includes(`
`)?rt.DOUBLE_QUOTED:VQe(t)))}o(X1t,"applyForceQuotesOption");function Z1t(t){if(t.style!==rt.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!a1(t.allowedStylesMask,rt.LITERAL_BLOCK)){r&&(t.style=rt.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=rt.LITERAL_BLOCK);return}let i=Math.max(Math.min(n,40),n-t.shiftOfContent),s=0,a=!1;for(;s<=e.length;){let c=e.length,l=e.indexOf(`
`,s);l!==-1&&(c=l);let u=e.slice(s,c);if(u.length>i&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=rt.FOLDED_BLOCK:r&&(t.style=rt.LITERAL_BLOCK)}o(Z1t,"tryLongOrMultilineAsBlock");function ekt(t){t.style===rt.PLAIN&&!a1(t.allowedStylesMask,rt.PLAIN)&&(t.style=VQe(t))}o(ekt,"quoteInvalidPlain");function tkt(t){a1(t.allowedStylesMask,t.style)||(t.style=rt.DOUBLE_QUOTED)}o(tkt,"fallbackToDoubleQuoted");function rS(t,e){return t|1<<e}o(rS,"setBit");var rkt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",nkt="[\\n\\r]",ikt="\\uFEFF",IJ="[ \\t]",$Qe=`(?:(?!(?:${nkt}|${ikt}))${rkt})`,c1=`(?:(?!${IJ})${$Qe})`,jQe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",WQe="[-?:,\\[\\]{}#&*!|>'\"%@`]",skt="[,\\[\\]{}]",AJ=c1,mJ=`(?:(?!${skt})${c1})`,okt=`(?:(?:(?!${WQe})${c1})|[?:-](?=${AJ}))`,akt=`(?:(?:(?!${WQe})${c1})|[?:-](?=${mJ}))`,JQe=`(?:(?:(?![:#])${AJ})|:(?=${AJ}))#*`,YQe=`(?:(?:(?![:#])${mJ})|:(?=${mJ}))#*`,KQe=`(?:${IJ}*${JQe})*`,XQe=`(?:${IJ}*${YQe})*`,ZQe=`${okt}#*${KQe}`,e1e=`${akt}#*${XQe}`,ckt=ZQe,lkt=e1e,ukt=`\\n+${JQe}${KQe}`,dkt=`\\n+${YQe}${XQe}`,fkt=`${ZQe}(?:${ukt})*`,hkt=`${e1e}(?:${dkt})*`,pkt=new RegExp(`^(?:${fkt})$`,"u"),Akt=new RegExp(`^(?:${hkt})$`,"u"),mkt=new RegExp(`^(?:${ckt})$`,"u"),gkt=new RegExp(`^(?:${lkt})$`,"u"),ykt=new RegExp(`^(?:${jQe})*$`,"u"),Ekt=new RegExp(`^(?:${jQe}|\\n)*$`,"u"),Ckt=new RegExp(`^(?:${$Qe}|\\n)*$`,"u"),bkt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,SJ=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function wkt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?gkt:mkt:t.flowOnly?Akt:pkt).test(e)||t.shiftOfFirstLine===0&&bkt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(`
`);if(n!==-1){let i=e.slice(n+1);if(SJ.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(wkt,"canUsePlain");function Ikt(t){let e=t.node.value;if(!(t.isKey?ykt:Ekt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(`
`);if(r!==-1&&SJ.test(e.slice(r+1)))return!1}return!0}o(Ikt,"canUseSingleQuoted");function Skt(t){if(t.flowOnly||!Ckt.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&SJ.test(t.node.value))}o(Skt,"canUseBlock");function Bkt(t){let e=rS(0,rt.DOUBLE_QUOTED);wkt(t)&&(e=rS(e,rt.PLAIN)),Ikt(t)&&(e=rS(e,rt.SINGLE_QUOTED)),Skt(t)&&(e=rS(rS(e,rt.LITERAL_BLOCK),rt.FOLDED_BLOCK)),t.allowedStylesMask=e}o(Bkt,"detectAllowedStyles");function xkt(t){switch(t.style){case rt.PLAIN:return vkt(t);case rt.SINGLE_QUOTED:return Nkt(t);case rt.LITERAL_BLOCK:return Rkt(t);case rt.FOLDED_BLOCK:return _kt(t);case rt.DOUBLE_QUOTED:return Tkt(t)}}o(xkt,"renderScalar");function vkt(t){return t1e(t.node.value,t.shiftOfContent)}o(vkt,"renderPlain");function Nkt(t){return`'${t1e(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(Nkt,"renderSingleQuoted");function Rkt(t){let e=t.node.value;return"|"+n1e(e,t.shiftOfParent,t.shiftOfContent)+i1e(r1e(e,t.shiftOfContent))}o(Rkt,"renderLiteralBlock");function _kt(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+n1e(e,t.shiftOfParent,t.shiftOfContent)+i1e(r1e(Qkt(e,n),t.shiftOfContent))}o(_kt,"renderFoldedBlock");function Tkt(t){return`"${Okt(t.node.value)}"`}o(Tkt,"renderDoubleQuoted");function t1e(t,e){let r=t.indexOf(`
`);if(r===-1)return t;let n=" ".repeat(e),i=t.slice(0,r),s=/(\n+)([^\n]*)/g;s.lastIndex=r;let a;for(;a=s.exec(t);){let c=a[1].length,l=a[2];i+=`
`.repeat(c+1)+n+l}return i}o(IFe,"encodeFlowBreaks");function wFe(t,e){let r=" ".repeat(e),n=0,i="",s=t.length;for(;n<s;){let a,c=t.indexOf(`
`.repeat(c+1)+n+l}return i}o(t1e,"encodeFlowBreaks");function r1e(t,e){let r=" ".repeat(e),n=0,i="",s=t.length;for(;n<s;){let a,c=t.indexOf(`
`,n);c===-1?(a=t.slice(n),n=s):(a=t.slice(n,c+1),n=c+1),a.length&&a!==`
`&&(i+=r),i+=a}return i}o(wFe,"indentString");function V3t(t){return/^\n* /.test(t)}o(V3t,"needIndentIndicator");function SFe(t,e,r){let n=V3t(t)?String(r-e):"",i=t[t.length-1]===`
`&&(i+=r),i+=a}return i}o(r1e,"indentString");function Dkt(t){return/^\n* /.test(t)}o(Dkt,"needIndentIndicator");function n1e(t,e,r){let n=Dkt(t)?String(r-e):"",i=t[t.length-1]===`
`;return`${n}${i&&(t[t.length-2]===`
`||t===`
`)?"+":i?"":"-"}
`}o(SFe,"blockHeader");function BFe(t){return t[t.length-1]===`
`?t.slice(0,-1):t}o(BFe,"dropEndingNewline");function AK(t){return t===" "||t===" "}o(AK,"isMoreIndented");function nFe(t,e){if(t===""||AK(t[0]))return t;let r=/ [^ \t]/g,n,i=0,s,a=0,c=0,l="";for(;n=r.exec(t);)c=n.index,c-i>e&&(s=a>i?a:c,l+=`
`}o(n1e,"blockHeader");function i1e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}o(i1e,"dropEndingNewline");function gJ(t){return t===" "||t===" "}o(gJ,"isMoreIndented");function OQe(t,e){if(t===""||gJ(t[0]))return t;let r=/ [^ \t]/g,n,i=0,s,a=0,c=0,l="";for(;n=r.exec(t);)c=n.index,c-i>e&&(s=a>i?a:c,l+=`
${t.slice(i,s)}`,i=s+1),a=c;return l+=`
`,t.length-i>e&&a>i?l+=`${t.slice(i,a)}
${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(nFe,"foldLine");function z3t(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(`
`);n===-1&&(n=t.length),r.lastIndex=n;let i=nFe(t.slice(0,n),e),s=t[0]===`
`||AK(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&AK(u[0]),i+=l+(!s&&!a&&u!==""?`
`:"")+nFe(u,e),s=a}return i}o(z3t,"foldBlockScalar");var j3t=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function $3t(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o($3t,"escapeCharacter");function W3t(t){return t.replace(j3t,$3t)}o(W3t,"escapeString");var OP=10,SK={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(rFe).map(t=>Reflect.get(rFe,t)),tagBeforeAnchor:!1};function J3t(t){return t.tagged?t.tag:lFe(t.tag)}o(J3t,"nodeTagShort");function Y3t(t){let e={...SK,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(Y3t,"createPresenterState");function gK(t,e){return`
${" ".repeat(t.indent*e)}`}o(gK,"generateNextLine");function K3t(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(K3t,"scalarLayout");function X3t(t,e,r){let n="";for(let s=0,a=r.items.length;s<a;s+=1){let c=_d(t,e,r.items[s],r,{}).text;s>0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(X3t,"writeFlowSequence");function iFe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c=_d(t,e+1,r.items[s],r,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;(!n||i!=="")&&(i+=gK(t,e)),c===""||OP===c.charCodeAt(0)?i+="-":i+="- ",i+=c}return i}o(iFe,"writeBlockSequence");function Z3t(t,e,r){let n="";for(let{key:s,value:a}of r.items){let c="";n!==""&&(c+=`,${t.flowSkipCommaSpace?"":" "}`);let l=_d(t,e,s,r,{iskey:!0}),u=l.text,d=_d(t,e,a,r,{}).text,f=t.flowSkipColonSpace||d===""?"":" ",h=s.kind==="scalar"&&l.noBody&&(s.tagged||s.anchor!==void 0),p=s.kind==="alias"||h?" ":"";c+=`${u}${p}:${f}${d}`,n+=c}let i=t.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}o(Z3t,"writeFlowMapping");function eGt(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c="";(!n||i!=="")&&(c+=gK(t,e));let{key:l,value:u}=r.items[s],d=(l.kind==="mapping"||l.kind==="sequence")&&l.style===mh.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===it.LITERAL_BLOCK||l.style===it.FOLDED_BLOCK),f=d?_d(t,e+1,l,r,{block:!0,compact:!0,isblockseq:!yK(t,l,e+1)}):_d(t,e+1,l,r,{block:!0,compact:!0,iskey:!0}),h=f.text,p=l.kind==="scalar"&&l.value.indexOf(`
`)!==-1,A=h.length>1024&&/^[\s\S]{1025}/u.test(h),g=d||p||A;g&&(h&&OP===h.charCodeAt(0)?c+="?":c+="? "),c+=h,g&&(c+=gK(t,e));let E=_d(t,e+1,u,r,{block:!0,compact:g,isblockseq:g&&!yK(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!g&&(l.kind==="alias"||y)?" ":"";E===""||OP===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(eGt,"writeBlockMapping");function yK(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(yK,"cannotBeCompact");function _d(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;yK(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===mh.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=eGt(t,e,r,l):d=Z3t(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=iFe(t,e-1,r,l):d=iFe(t,e,r,l):d=X3t(t,e,r);else{let g=K3t(t,r,n,e,a,!s);L3t(g);for(let E of t.scalarStyleRules)E(g);d=F3t(g),t.openEnded=(g.style===it.LITERAL_BLOCK||g.style===it.FOLDED_BLOCK)&&(r.value===`
${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(OQe,"foldLine");function Qkt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(`
`);n===-1&&(n=t.length),r.lastIndex=n;let i=OQe(t.slice(0,n),e),s=t[0]===`
`||gJ(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&gJ(u[0]),i+=l+(!s&&!a&&u!==""?`
`:"")+OQe(u,e),s=a}return i}o(Qkt,"foldBlockScalar");var kkt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Pkt(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o(Pkt,"escapeCharacter");function Okt(t){return t.replace(kkt,Pkt)}o(Okt,"escapeString");var n1=10,BJ={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(PQe).map(t=>Reflect.get(PQe,t)),tagBeforeAnchor:!1};function Lkt(t){return t.tagged?t.tag:GQe(t.tag)}o(Lkt,"nodeTagShort");function Fkt(t){let e={...BJ,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(Fkt,"createPresenterState");function yJ(t,e){return`
${" ".repeat(t.indent*e)}`}o(yJ,"generateNextLine");function Mkt(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(Mkt,"scalarLayout");function Ukt(t,e,r){let n="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Hu(t,e,r.items[s],r,{}).text;s>0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(Ukt,"writeFlowSequence");function LQe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Hu(t,e+1,r.items[s],r,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;(!n||i!=="")&&(i+=yJ(t,e)),c===""||n1===c.charCodeAt(0)?i+="-":i+="- ",i+=c}return i}o(LQe,"writeBlockSequence");function qkt(t,e,r){let n="";for(let{key:s,value:a}of r.items){let c="";n!==""&&(c+=`,${t.flowSkipCommaSpace?"":" "}`);let l=Hu(t,e,s,r,{iskey:!0}),u=l.text,d=Hu(t,e,a,r,{}).text,f=t.flowSkipColonSpace||d===""?"":" ",h=s.kind==="scalar"&&l.noBody&&(s.tagged||s.anchor!==void 0),p=s.kind==="alias"||h?" ":"";c+=`${u}${p}:${f}${d}`,n+=c}let i=t.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}o(qkt,"writeFlowMapping");function Gkt(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c="";(!n||i!=="")&&(c+=yJ(t,e));let{key:l,value:u}=r.items[s],d=(l.kind==="mapping"||l.kind==="sequence")&&l.style===Sf.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===rt.LITERAL_BLOCK||l.style===rt.FOLDED_BLOCK),f=d?Hu(t,e+1,l,r,{block:!0,compact:!0,isblockseq:!EJ(t,l,e+1)}):Hu(t,e+1,l,r,{block:!0,compact:!0,iskey:!0}),h=f.text,p=l.kind==="scalar"&&l.value.indexOf(`
`)!==-1,m=h.length>1024&&/^[\s\S]{1025}/u.test(h),A=d||p||m;A&&(h&&n1===h.charCodeAt(0)?c+="?":c+="? "),c+=h,A&&(c+=yJ(t,e));let E=Hu(t,e+1,u,r,{block:!0,compact:A,isblockseq:A&&!EJ(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!A&&(l.kind==="alias"||y)?" ":"";E===""||n1===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(Gkt,"writeBlockMapping");function EJ(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(EJ,"cannotBeCompact");function Hu(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;EJ(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===Sf.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=Gkt(t,e,r,l):d=qkt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=LQe(t,e-1,r,l):d=LQe(t,e,r,l):d=Ukt(t,e,r);else{let A=Mkt(t,r,n,e,a,!s);Bkt(A);for(let E of t.scalarStyleRules)E(A);d=xkt(A),t.openEnded=(A.style===rt.LITERAL_BLOCK||A.style===rt.FOLDED_BLOCK)&&(r.value===`
`||r.value.endsWith(`
`)),f=r.tagged||d===""&&g.flowOnly&&n?.kind==="sequence"&&!u||g.style!==it.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",A=d;if(f||u){let g=[],E=f?J3t(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&g.push(E),y!==null&&g.push(y)):(y!==null&&g.push(y),E!==null&&g.push(E));let C=d===""||d.charCodeAt(0)===OP?"":" ";A=`${g.join(" ")}${C}${d}`}return{text:A,noBody:p}}o(_d,"writeNode");function tGt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===mh.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(tGt,"rootStartsOwnLine");function rGt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version}
`)),f=r.tagged||d===""&&A.flowOnly&&n?.kind==="sequence"&&!u||A.style!==rt.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",m=d;if(f||u){let A=[],E=f?Lkt(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&A.push(E),y!==null&&A.push(y)):(y!==null&&A.push(y),E!==null&&A.push(E));let C=d===""||d.charCodeAt(0)===n1?"":" ";m=`${A.join(" ")}${C}${d}`}return{text:m,noBody:p}}o(Hu,"writeNode");function Hkt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===Sf.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(Hkt,"rootStartsOwnLine");function zkt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version}
`;continue}let{handle:n,prefix:i}=r;e+=`%TAG ${n} ${i}
`}return e}o(rGt,"writeDocumentDirectives");function nGt(t,e){let r=Y3t(e),n="",i=!1;for(let s=0;s<t.length;s+=1){let a=t[s];r.openEnded=!1;let c=rGt(a),l=c!=="",u=a.explicitStart||l||s>0&&!i;if(n+=c,a.contents===null)u&&(n+=`---
`);else if(u){let d=_d(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||tGt(a.contents)?`
`}return e}o(zkt,"writeDocumentDirectives");function Vkt(t,e){let r=Fkt(e),n="",i=!1;for(let s=0;s<t.length;s+=1){let a=t[s];r.openEnded=!1;let c=zkt(a),l=c!=="",u=a.explicitStart||l||s>0&&!i;if(n+=c,a.contents===null)u&&(n+=`---
`);else if(u){let d=Hu(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||Hkt(a.contents)?`
`:" ";n+=`---${f}${d}
`}else n+=_d(r,0,a.contents,null,{block:!0,compact:!0}).text+`
`}else n+=Hu(r,0,a.contents,null,{block:!0,compact:!0}).text+`
`;i=a.explicitEnd||r.openEnded,i&&(n+=`...
`)}return n}o(nGt,"present");var iGt={...SK,schema:Jqt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function sGt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o(sGt,"defaultCompareFn");function vFe(t,e={}){let r={...iGt,...e},n=s3t(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&tFe(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=mh.FLOW),dFe}),r.sortKeys){let i=r.sortKeys===!0?sGt:r.sortKeys;tFe(n,s=>{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),nGt(n,{...Mqt(r,Object.keys(SK)),schema:r.schema})}o(vFe,"dump");var Sqr=yC.DOCUMENT,Bqr=yC.SEQUENCE,vqr=yC.MAPPING,xqr=yC.SCALAR,_qr=yC.ALIAS,Nqr=yC.POP,Rqr=it.PLAIN,Tqr=it.SINGLE_QUOTED,Dqr=it.DOUBLE_QUOTED,Qqr=it.LITERAL_BLOCK,kqr=it.FOLDED_BLOCK,Pqr=mh.BLOCK,Oqr=mh.FLOW,Lqr=bK.CLIP,Fqr=bK.STRIP,Mqr=bK.KEEP;var xFe=N(require("os"),1);var GP=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`<a href="${u}">${l}</a>`+(d?xFe.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=o3.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${l}</strong>`,l)}`).addRaw("</p>")}if(e.uploadRes){let l=`./${Ze.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Me.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,l)} (${Me.formatFileSize(e.uploadRes.size)} - includes <strong>${n} build record${n>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`<code>${d.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Me.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("</p>"),u&&(c.addRaw("<blockquote>"),Me.countLines(u)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(BK.default.encode(u),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(BK.default.encode(u),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(vFe(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&c.addRaw("<details><summary><str Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=wo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=wo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=Me.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&qc(s),[i,s]}};var xK=N(require("fs"),1),_Fe=N(require("path"),1);var EC=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new gt,this.metadataFilename=`bake-metadata-${Me.generateRandomString()}.json`}getMetadataFilePath(){return _Fe.default.join(At.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!xK.default.existsSync(e))return;let r=xK.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Me.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await ve.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${gt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=wo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Me.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=wo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=wo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=wo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,i]=e.split("=",2);return r.id=n,i&&(r.paths=i.split(",")),r} Line truncated
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);D(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let i=n.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=i[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=s.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await ve.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let i=await t.exec(["tag","--contains","HEAD"],e),[s]=i.split(`
`)}return n}o(Vkt,"present");var $kt={...BJ,schema:L1t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function jkt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o(jkt,"defaultCompareFn");function s1e(t,e={}){let r={...$kt,...e},n=j1t(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&kQe(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=Sf.FLOW),zQe}),r.sortKeys){let i=r.sortKeys===!0?jkt:r.sortKeys;kQe(n,s=>{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),Vkt(n,{...v1t(r,Object.keys(BJ)),schema:r.schema})}o(s1e,"dump");var M_r=aE.DOCUMENT,U_r=aE.SEQUENCE,q_r=aE.MAPPING,G_r=aE.SCALAR,H_r=aE.ALIAS,z_r=aE.POP,V_r=rt.PLAIN,$_r=rt.SINGLE_QUOTED,j_r=rt.DOUBLE_QUOTED,W_r=rt.LITERAL_BLOCK,J_r=rt.FOLDED_BLOCK,Y_r=Sf.BLOCK,K_r=Sf.FLOW,X_r=wJ.CLIP,Z_r=wJ.STRIP,eTr=wJ.KEEP;var o1e=T(require("os"),1);var l1=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`<a href="${u}">${l}</a>`+(d?o1e.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=YF.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${l}</strong>`,l)}`).addRaw("</p>")}if(e.uploadRes){let l=`./${Ke.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Oe.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,l)} (${Oe.formatFileSize(e.uploadRes.size)} - includes <strong>${n} build record${n>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`<code>${d.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Oe.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("</p>"),u&&(c.addRaw("<blockquote>"),Oe.countLines(u)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(tS(u),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(tS(u),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(s1e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&c.addRaw("<details><summary><strong>Bake definition</strong></ Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=eo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=eo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=Oe.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Os(s),[i,s]}};var vJ=T(require("fs"),1),a1e=T(require("path"),1);var cE=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new pt,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return a1e.default.join(ht.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let n=e.target||{},i=Object.keys(n);if(i.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`Unable to resolve ${r} target, found: ${i.join(", ")}`);let s=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(n[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||s.has(u))){if(!Object.prototype.hasOwnProperty.call(n,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);s.add(u),a.push(u)}}}return[...s]}resolveMetadata(){let e=this.getMetadataFilePath();if(!vJ.default.existsSync(e))return;let r=vJ.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ie.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${pt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=eo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toStri Line truncated
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);v(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let i=n.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=i[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=s.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await Ie.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let i=await t.exec(["tag","--contains","HEAD"],e),[s]=i.split(`
`).map(a=>a.trim()).filter(a=>a.length>0);return s?`refs/tags/${s}`:""}static async findDetachedTagRef(e,r,n){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[i]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var Vqe=require("crypto"),fu=N(require("fs"),1),hu=N(require("path"),1);var XC=N(PK(),1),zqe=N(YX(),1),ZC=N(Mqe(),1);var qqe=require("util");var ZZ=N(PK(),1);var Gqe=N(fc(),1);var Uqe="application/vnd.oci.empty.v1+json";var Vs=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ve.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(D(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(D(`Cosign.isAvailable error: ${r}`),!1));return D(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ve.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await ve.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,qqe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return D("Cosign.versionSatisfies false: undefined version"),!1;let i=Gqe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return D(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===ZZ.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Uqe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===ZZ.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var eee=N(require("fs"),1);var bL=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new gt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=At.tmpName({tmpdir:At.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){O(`[command]${a.command} ${a.args.join(" ")}`),O("Skipped create command");return}return await ve.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!eee.default.existsSync(n))return;let l=eee.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,n){let i=await this.getInspectCommand Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await ve.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var KC="https://search.sigstore.dev";var Hqe="slsaprovenance1",Th=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Vs,this.imageTools=e?.imageTools||new bL}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Qr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];O(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await ve.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Vs.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var IOe=require("crypto"),kl=T(require("fs"),1),Pl=T(require("path"),1);var qE=T(PJ(),1),SOe=T(Y6(),1),GE=T(yOe(),1);var COe=require("util");var ZY=T(PJ(),1);var bOe=T(Ma(),1);var EOe="application/vnd.oci.empty.v1+json";var Ss=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ie.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(v(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(v(`Cosign.isAvailable error: ${r}`),!1));return v(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ie.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ie.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,COe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return v("Cosign.versionSatisfies false: undefined version"),!1;let i=bOe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return v(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===ZY.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===EOe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===ZY.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var eK=T(require("fs"),1);var Gk=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}static toIndexAnnotation(e){let r=e.indexOf("="),n=r===-1?e:e.substring(0,r),i=r===-1?"":e.substring(r),s=n.indexOf(":");if(s!==-1){let a=n.substring(0,s),c=n.substring(s+1);if(a.split(",").map(u=>u.replace(/\[.*\]$/,"")).some(u=>["manifest","index","manifest-descriptor","index-descriptor"].includes(u)))return`index:${c}${i}`}return`index:${e}`}async create(e){let r=[],n=ht.tmpName({tmpdir:ht.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){D(`[command]${a.command} ${a.args.join(" ")}`),D("Skipped create command");return}return await Ie.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!eK.default.existsSync(n))return;let Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Ie.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var UE="https://search.sigstore.dev";var wOe="slsaprovenance1",Uf=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Ss,this.imageTools=e?.imageTools||new Gk}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Sr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];D(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Ss.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${p}`)}else throw new Error(`Cosign sign command failed with: ${Vs.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,XC.bundleFromJSON)(f.bundle));h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),O(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...h,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[i,s]of Object.entries(e))await Qr(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});O(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[i]=a});return n}async verifyImageAttestations(e,r){let n={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of i){let c=`${s}@${a}`,l=await this.verifyImageAttestation(c,r);O(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){O(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await ve.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Vs.getErrorMessage(a.stderr)}`);let c=Vs.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,s;O(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<i;a++){let c=await ve.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Vs.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
${p}`)}else throw new Error(`Cosign sign command failed with: ${Ss.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,qE.bundleFromJSON)(f.bundle));h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),D(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...h,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[i,s]of Object.entries(e))await Sr(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});D(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[i]=a});return n}async verifyImageAttestations(e,r){let n={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of i){let c=`${s}@${a}`,l=await this.verifyImageAttestation(c,r);D(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){D(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Ss.getErrorMessage(a.stderr)}`);let c=Ss.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,s;D(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<i;a++){let c=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Ss.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))O(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Vs.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Qr(`Signing ${a}`,async()=>{let c=s[a],l=hu.default.join(hu.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ht(`No subjects found in provenance ${a}, skip signing.`);return}let d=hu.default.join(hu.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",Hqe,"--bundle",l,...i];O(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await ve.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Vs.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let g=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(`
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))D(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Ss.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Sr(`Signing ${a}`,async()=>{let c=s[a],l=Pl.default.join(Pl.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ge(`No subjects found in provenance ${a}, skip signing.`);return}let d=Pl.default.join(Pl.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",wOe,"--bundle",l,...i];D(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await Ie.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Ss.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let A=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${Vs.getErrorMessage(h.stderr)}`);let A=t.parseBundle((0,XC.bundleFromJSON)(JSON.parse(fu.default.readFileSync(l,{encoding:"utf-8"}))));O("Provenance blob signed for:");for(let g of u){let[E,y]=Object.entries(g.digest)[0]||[];O(` - ${g.name} (${E}:${y})`)}A.tlogID&&await this.logTransparencyUpload(A.tlogID,n),O(`Sigstore bundle written to: ${l}`),r[a]={...A,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=hu.default.dirname(i);await Qr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=hu.default.join(a,c.name);O(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Hqe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await ve.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){O("Verifying keyless verification bundle signature");let i=JSON.parse(fu.default.readFileSync(r,"utf-8")),s=(0,XC.bundleFromJSON)(i);O("Fetching Sigstore TUF trusted root metadata");let a=await zqe.getTrustedRoot({retry:{retries:5}}),c=(0,ZC.toTrustMaterial)(a);try{O("Verifying artifact signature");let l=(0,ZC.toSignedEntity)(s,fu.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new ZC.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return D(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ze.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(O(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Qr("Creating Sigstore protobuf signing config",async()=>{let s=At.tmpName({template:"signing-config-XXXXXX.json",tmpdir:At.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await ve.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),O(JSON.stringify(JSON.parse(fu.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){O(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}O(`Attestation signature uploaded to Rekor transparency log: ${KC}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=hu.default.join(e.localExportDir,"provenance.json");if(fu.default.existsSync(r))return{[r]:fu.default.readFileSync(r)};let n=fu.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>fu.default.existsSync(hu.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=hu.default.join(e.localExportDir,a.name,"provenance.json");s[c]=fu.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,XC.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new Vqe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var IL=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
`)){let[u,...d]=l.split(":"),f=u.toLowerCase(),h=d.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":n=void 0,r.name==null?r.name=h:(s&&i.gcPolicy&&(i.gcPolicy.push(s),s=void 0),i.name&&r.nodes.push(i),i={name:h});break;case f=="driver":n=void 0,r.driver=h;break;case f=="last activity":n=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":n=void 0,i.endpoint=h;break;case f=="driver options":n=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":n=void 0,i.status=h;break;case f=="buildkit daemon flags":case f=="flags":n=void 0,i["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":n=void 0,i.buildkit=h;break;case f=="platforms":{if(n=void 0,!h)break;let p=[];if(h.includes("*"))for(let A of h.split(", "))A.includes("*")&&p.push(A.replace(/\*/g,""));else p=h.split(", ");i.platforms=p.join(",");break}case f=="features":n="features",i.features={};break;case f=="labels":n="label",i.labels={};break;case f=="devices":n="devices",i.devices=i.devices||[];break;case f.startsWith("gc policy rule#"):n="gcpolicy",i.gcPolicy&&s&&(i.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):n="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(n&&n!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),n||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=h;break}case"on-demand":{a&&h&&(a.onDemand=h=="true");break}case"automatically allowed":{a&&h&&(a.autoAllow=h=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var jqe=N(fc(),1);var wL=N(require("fs"),1);var SL=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!wL.default.existsSync(e))throw new Error(`config file ${e} not found`);e=wL.default.readFileSync(e,{encoding:"utf-8"})}let n=At.tmpName({tmpdir:At.tmpDir()});return wL.default.writeFileSync(n,e),n}};var BL=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new SL,this.buildx=e?.buildx||new gt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ht(r)}return e.buildkit}async getVersionWithinImage(e){return D(`BuildKit.getVersionWithinImage nodeName: ${e}`),on.getExecOutput(["inspect","--format","{{.Config.Image}}",`${gt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return D(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),on.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new tb({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(D(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return D(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(D(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!jqe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var vL=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await on.isAvailable();return D(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await ve.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(D(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(D(`Compose.isAvailable error: ${n}`),!1));return D(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await ve.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await ve.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Ld=N(require("fs"),1),mu=N(require("os"),1),rb=N(require("path"),1);var _L=N(fc(),1),ree=N(require("util"),1);var xL=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);D(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);D(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);D(`Install.download vspec: ${s}`);let a=_L.clean(s)||"";if(!_L.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Jn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:rb.default.join(mu.default.homedir(),".bin","docker-compose"),cacheFile:mu.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return O(`Compose binary found in ${l}`),l;let u=ree.format(n.downloadURL,s,this.filename());O(`Downloading ${u}`);let d=await $o(u,void 0,this.githubToken);D(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return O(`Cached to ${f}`),f}async installStandalone(e,r){O("Standalone mode"),r=r||At.tmpDir();let n=rb.default.join(r,"compose-bin-standalone");Ld.default.existsSync(n)||Ld.default.mkdirSync(n,{recursive:!0});let i=mu.default.platform()=="win32"?"compose.exe":"compose",s=rb.default.join(n,i);return Ld.default.copyFileSync(e,s),O("Fixing perms"),Ld.default.chmodSync(s,"0755"),Hc(n),O("Added Compose to PATH"),O(`Binary path: ${s}`),s}async installPlugin(e,r){O("Docker plugin mode"),r=r||on.configDir;let n=rb.default.join(r,"cli-plugins");Ld.default.existsSync(n)||Ld.default.mkdirSync(n,{recursive:!0});let i=mu.defau Line truncated
${A}`)}else throw new Error(`Cosign attest-blob command failed with: ${Ss.getErrorMessage(h.stderr)}`);let m=t.parseBundle((0,qE.bundleFromJSON)(JSON.parse(kl.default.readFileSync(l,{encoding:"utf-8"}))));D("Provenance blob signed for:");for(let A of u){let[E,y]=Object.entries(A.digest)[0]||[];D(` - ${A.name} (${E}:${y})`)}m.tlogID&&await this.logTransparencyUpload(m.tlogID,n),D(`Sigstore bundle written to: ${l}`),r[a]={...m,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=Pl.default.dirname(i);await Sr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=Pl.default.join(a,c.name);D(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??wOe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Ie.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){D("Verifying keyless verification bundle signature");let i=JSON.parse(kl.default.readFileSync(r,"utf-8")),s=(0,qE.bundleFromJSON)(i);D("Fetching Sigstore TUF trusted root metadata");let a=await SOe.getTrustedRoot({retry:{retries:5}}),c=(0,GE.toTrustMaterial)(a);try{D("Verifying artifact signature");let l=(0,GE.toSignedEntity)(s,kl.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new GE.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return v(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ke.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(D(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Sr("Creating Sigstore protobuf signing config",async()=>{let s=ht.tmpName({template:"signing-config-XXXXXX.json",tmpdir:ht.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await Ie.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),D(JSON.stringify(JSON.parse(kl.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){D(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}D(`Attestation signature uploaded to Rekor transparency log: ${UE}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Pl.default.join(e.localExportDir,"provenance.json");if(kl.default.existsSync(r))return{[r]:kl.default.readFileSync(r)};let n=kl.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>kl.default.existsSync(Pl.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=Pl.default.join(e.localExportDir,a.name,"provenance.json");s[c]=kl.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,qE.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new IOe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var Hk=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
`)){let[u,...d]=l.split(":"),f=u.toLowerCase(),h=d.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":n=void 0,r.name==null?r.name=h:(s&&i.gcPolicy&&(i.gcPolicy.push(s),s=void 0),i.name&&r.nodes.push(i),i={name:h});break;case f=="driver":n=void 0,r.driver=h;break;case f=="last activity":n=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":n=void 0,i.endpoint=h;break;case f=="driver options":n=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":n=void 0,i.status=h;break;case f=="buildkit daemon flags":case f=="flags":n=void 0,i["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":n=void 0,i.buildkit=h;break;case f=="platforms":{if(n=void 0,!h)break;let p=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&p.push(m.replace(/\*/g,""));else p=h.split(", ");i.platforms=p.join(",");break}case f=="features":n="features",i.features={};break;case f=="labels":n="label",i.labels={};break;case f=="devices":n="devices",i.devices=i.devices||[];break;case f.startsWith("gc policy rule#"):n="gcpolicy",i.gcPolicy&&s&&(i.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):n="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(n&&n!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),n||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=h;break}case"on-demand":{a&&h&&(a.onDemand=h=="true");break}case"automatically allowed":{a&&h&&(a.autoAllow=h=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var BOe=T(Ma(),1);var zk=T(require("fs"),1);var Vk=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!zk.default.existsSync(e))throw new Error(`config file ${e} not found`);e=zk.default.readFileSync(e,{encoding:"utf-8"})}let n=ht.tmpName({tmpdir:ht.tmpDir()});return zk.default.writeFileSync(n,e),n}};var $k=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new Vk,this.buildx=e?.buildx||new pt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ge(r)}return e.buildkit}async getVersionWithinImage(e){return v(`BuildKit.getVersionWithinImage nodeName: ${e}`),Vr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${pt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return v(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Vr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new zE({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(v(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return v(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(v(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!BOe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var jk=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Vr.isAvailable();return v(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(v(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(v(`Compose.isAvailable error: ${n}`),!1));return v(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ie.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ie.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Xu=T(require("fs"),1),Ll=T(require("os"),1),VE=T(require("path"),1);var Jk=T(Ma(),1),rK=T(require("util"),1);var Wk=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);v(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);v(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);v(`Install.download vspec: ${s}`);let a=Jk.clean(s)||"";if(!Jk.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Dn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:VE.default.join(Ll.default.homedir(),".bin","docker-compose"),cacheFile:Ll.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return D(`Compose binary found in ${l}`),l;let u=rK.format(n.downloadURL,s,this.filename());D(`Downloading ${u}`);let d=await Io(u,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return D(`Cached to ${f}`),f}async installStandalone(e,r){D("Standalone mode"),r=r||ht.tmpDir();let n=VE.default.join(r,"compose-bin-standalone");Xu.default.existsSync(n)||Xu.default.mkdirSync(n,{recursive:!0});let i=Ll.default.platform()=="win32"?"compose.exe":"compose",s=VE.default.join(n,i);return Xu.default.copyFileSync(e,s),D("Fixing perms"),Xu.default.chmodSync(s,"0755"),hc(n),D("Added Compose to PATH"),D(`Binary path: ${s}`),s}async installPlugin(e,r){D("Docker plugin mode"),r=r||Vr.configDir;let n=VE.default.join(r,"cli-plugins");Xu.default.existsSync(n)||Xu.default.mkdirSync(n,{recursive:!0});let i=Ll.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -315,8 +289,8 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var NL=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new gt,this.sigstore=e?.sigstore||new Th}async download(e){let r=await t.getDownloadVersion(e.version);D(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);D(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);D(`Install.download vspec: ${i}`);let s=ib.clean(i)||"";if(!ib.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Jn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:nb.default.join(xc.default.homedir(),".bin"),cacheFile:xc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return O(`Cosign binary found in ${c}`),c;let l=nee.format(r.downloadURL,i,this.filename());O(`Downloading ${l}`);let u=await $o(l,void 0,this.githubToken);D(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&ib.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return O(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);D(`Install.build vspec: ${i}`);let s=new Jn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:nb.default.join(xc.default.homedir(),".bin"),cacheFile:xc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return O(`Cosign binary found in ${a}`),a;let c=nb.default.join(At.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await ve.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from($qe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${gt.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return O(`Cached to ${d}`),d}async install(e,r){r=r||At.tmpDir();let n=nb.default.join(r,"cosign-bin");hv.default.existsSync(n)||hv.default.mkdirSync(n,{recursive:!0});let i=xc.default.platform()=="win32"?"cosign.exe":"cosign",s=nb.default.join(n,i);return hv.default.copyFileSync(e,s),O("Fixing perms"),hv.default.chmodSync(s,"0755"),Hc(n),O("Added Cosign to PATH"),O(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new gt({standalone:!0}).isAvailable(),i=await new gt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)D("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)D("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)D("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)D("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new gt({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;O(`Downloading keyless verification bundle at ${n}`);let i=await $o(n,void 0,this.githubToken);D(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});O(`Cosign binary signature verified! ${s.tlogID?`${KC}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(xc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=xc.default.arch();break}}let r=xc.default.platform()=="win32"?"windows":xc.default.platform(),n=xc.default.platform()=="win32"?".exe":"";return nee.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Me.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return O(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await CC.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Me.trimSuffix(a,".git")}/${i}`,l=Me.hash(c);return O(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Ze({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var Wqe=N(fc(),1);var RL=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await ve.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.std Line truncated
`)[0]?.trim())}else u=Error(`buildx bake failed with: ${gt.getErrorMessage(h.stderr)}`)});let d=r.buildxBake.resolveMetadata();d&&await Qr("Metadata",async()=>{let h=JSON.stringify(d,null,2);Ze.printUntrusted(h),Iue("metadata",h)});let f=[];if(await Qr("Build references",async()=>{if(f=await Xjt(r,t,e.builder),f.length>0){for(let h of f)O(h);kGe(f)}else O("No build references found")}),Zjt()){let h=r.buildxBake.resolveWarnings(d);if(f.length>0&&h&&h.length>0){let p=await gt.convertWarningsToGitHubAnnotations(h,f);D(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Qr(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let A of p)Ht(A.message,A)})}}if(await Qr("Check build summary support",async()=>{e$t()?e.call&&e.call!=="build"?O(`Build summary skipped for ${e.call} subrequest`):Ze.isGHES?O("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?O("Build summary requires at least one build reference"):(O("Build summary supported!"),PGe()):O("Build summary requires Buildx >= 0.23.0"):O("Build summary disabled")}),u)throw u},async()=>{NGe&&await Qr("Generating build summary",async()=>{try{let t=t$t(),e;t&&(e=r$t());let n=await new I1().export({refs:_Ge});O(`Build records written to ${n.dockerbuildFilename} (${Me.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await QP.upload({filename:n.dockerbuildFilename,retentionDays:e})),await GP.writeBuildSummary({exportRes:n,uploadRes:i,inputs:vGe,bakeDefinition:xGe,driver:SGe,endpoint:BGe})}catch(t){Ht(t.message)}}),gF.length>0&&await Qr(`Removing temp folder ${gF}`,async()=>{LGe.rmSync(gF,{recursive:!0})})});async function Xjt(t,e,r){let n=t.buildxBake.resolveRefs();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=gt.refs({dir:gt.refsDir,builderName:r,since:e}),s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s}o(Xjt,"buildRefs");function Zjt(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Me.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(Zjt,"buildChecksAnnotationsEnabled");function e$t(){return process.env.DOCKER_BUILD_SUMMARY?Me.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(e$t,"buildSummaryEnabled");function t$t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Me.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(t$t,"buildRecordUploadEnabled");function r$t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(r$t,"buildRecordRetentionDays");
`;var Yk=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new pt,this.sigstore=e?.sigstore||new Uf}async download(e){let r=await t.getDownloadVersion(e.version);v(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);v(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);v(`Install.download vspec: ${i}`);let s=jE.clean(i)||"";if(!jE.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Dn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:$E.default.join(Za.default.homedir(),".bin"),cacheFile:Za.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return D(`Cosign binary found in ${c}`),c;let l=nK.format(r.downloadURL,i,this.filename());D(`Downloading ${l}`);let u=await Io(l,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&jE.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return D(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);v(`Install.build vspec: ${i}`);let s=new Dn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:$E.default.join(Za.default.homedir(),".bin"),cacheFile:Za.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return D(`Cosign binary found in ${a}`),a;let c=$E.default.join(ht.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Ie.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(xOe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${pt.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return D(`Cached to ${d}`),d}async install(e,r){r=r||ht.tmpDir();let n=$E.default.join(r,"cosign-bin");RS.default.existsSync(n)||RS.default.mkdirSync(n,{recursive:!0});let i=Za.default.platform()=="win32"?"cosign.exe":"cosign",s=$E.default.join(n,i);return RS.default.copyFileSync(e,s),D("Fixing perms"),RS.default.chmodSync(s,"0755"),hc(n),D("Added Cosign to PATH"),D(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new pt({standalone:!0}).isAvailable(),i=await new pt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)v("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)v("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)v("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)v("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new pt({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;D(`Downloading keyless verification bundle at ${n}`);let i=await Io(n,void 0,this.githubToken);v(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});D(`Cosign binary signature verified! ${s.tlogID?`${UE}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Za.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Za.default.arch();break}}let r=Za.default.platform()=="win32"?"windows":Za.default.platform(),n=Za.default.platform()=="win32"?".exe":"";return nK.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return D(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await lE.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Oe.trimSuffix(a,".git")}/${i}`,l=Oe.hash(c);return D(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Ke({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var vOe=T(Ma(),1);var Kk=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ie.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
`)[0]?.trim())}else u=Error(`buildx bake failed with: ${pt.getErrorMessage(h.stderr)}`)});let d=r.buildxBake.resolveMetadata();d&&await Sr("Metadata",async()=>{let h=JSON.stringify(d,null,2);Ke.printUntrusted(h),Use("metadata",h)});let f=[];if(await Sr("Build references",async()=>{if(f=await a3t(r,t,e.builder),f.length>0){for(let h of f)D(h);HOe(f)}else D("No build references found")}),c3t()){let h=r.buildxBake.resolveWarnings(d);if(f.length>0&&h&&h.length>0){let p=await pt.convertWarningsToGitHubAnnotations(h,f);v(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Sr(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let m of p)Ge(m.message,m)})}}if(await Sr("Check build summary support",async()=>{l3t()?e.call&&e.call!=="build"?D(`Build summary skipped for ${e.call} subrequest`):Ke.isGHES?D("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?D("Build summary requires at least one build reference"):(D("Build summary supported!"),zOe()):D("Build summary requires Buildx >= 0.23.0"):D("Build summary disabled")}),u)throw u},async()=>{FOe&&await Sr("Generating build summary",async()=>{try{let t=u3t(),e;t&&(e=d3t());let n=await new Q2().export({refs:LOe});D(`Build records written to ${n.dockerbuildFilename} (${Oe.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await t1.upload({filename:n.dockerbuildFilename,retentionDays:e})),await l1.writeBuildSummary({exportRes:n,uploadRes:i,inputs:POe,bakeDefinition:OOe,driver:QOe,endpoint:kOe})}catch(t){Ge(t.message)}}),sP.length>0&&await Sr(`Removing temp folder ${sP}`,async()=>{$Oe.rmSync(sP,{recursive:!0})})});async function a3t(t,e,r){let n=t.buildxBake.resolveRefs();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=pt.refs({dir:pt.refsDir,builderName:r,since:e}),s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s}o(a3t,"buildRefs");function c3t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Oe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(c3t,"buildChecksAnnotationsEnabled");function l3t(){return process.env.DOCKER_BUILD_SUMMARY?Oe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(l3t,"buildSummaryEnabled");function u3t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Oe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(u3t,"buildRecordUploadEnabled");function d3t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(d3t,"buildRecordRetentionDays");
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -400,9 +374,7 @@ archiver/index.js:
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
he/he.js:
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
@octokit/request-error/dist-src/index.js:
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@@ -410,7 +382,10 @@ he/he.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
he/src/he.mjs:
(*! https://mths.be/he by @mathias | MIT license *)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 5.4.1 https://github.com/nodeca/js-yaml @license MIT *)
(*! js-yaml 5.4.3 https://github.com/nodeca/js-yaml @license MIT *)
*/
//# sourceMappingURL=index.cjs.map
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,IAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,IAAA,sBAiBT,SAASM,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,IAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+63 -95
View File
@@ -216,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.100.0
- @docker/actions-toolkit@0.106.0
This package contains the following license:
@@ -453,9 +453,10 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- b4a@1.9.0
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-fs@4.8.4
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
@@ -1541,13 +1542,8 @@ Apache License
The following npm packages may be included in this product:
- @protobuf-ts/plugin-framework@2.9.4
- @protobuf-ts/plugin@2.9.4
- @protobuf-ts/protoc@2.9.4
- @protobuf-ts/runtime-rpc@2.11.1
- @protobuf-ts/runtime-rpc@2.9.4
- @protobuf-ts/runtime@2.11.1
- @protobuf-ts/runtime@2.9.4
These packages each contain the following license:
@@ -1792,7 +1788,7 @@ SOFTWARE.
The following npm package may be included in this product:
- js-yaml@5.4.1
- js-yaml@5.4.3
This package contains the following license:
@@ -2007,6 +2003,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- content-type@3.1.1
This package contains the following license:
(The MIT License)
Copyright (c) 2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- universal-user-agent@7.0.3
@@ -2091,6 +2118,7 @@ The following npm packages may be included in this product:
- jackspeak@3.4.3
- minimatch@10.2.5
- minimatch@10.2.6
These packages each contain the following license:
@@ -2565,70 +2593,6 @@ software or this license, under any kind of legal claim.***
-----------
The following npm package may be included in this product:
- typescript@3.9.10
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-----------
The following npm packages may be included in this product:
- @sigstore/verify@4.1.2
@@ -2726,12 +2690,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- handlebars@4.7.10
- handlebars@4.7.9
These packages each contain the following license:
This package contains the following license:
Copyright (C) 2011-2019 by Yehuda Katz
@@ -2964,11 +2927,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- @octokit/openapi-types@27.0.0
- @octokit/openapi-types@28.0.0
- @octokit/openapi-types@29.0.1
This package contains the following license:
These packages each contain the following license:
Copyright (c) GitHub 2025 - Licensed as MIT.
@@ -3130,7 +3095,7 @@ The following npm packages may be included in this product:
- emoji-regex@8.0.0
- emoji-regex@9.2.2
- he@1.2.0
- he@2.0.0
These packages each contain the following license:
@@ -3288,12 +3253,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- brace-expansion@1.1.18
- brace-expansion@2.0.2
These packages each contain the following license:
This package contains the following license:
MIT License
@@ -3442,7 +3406,7 @@ SOFTWARE.
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
- @octokit/plugin-retry@8.1.1
This package contains the following license:
@@ -3532,11 +3496,12 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- json-with-bigint@3.5.12
- json-with-bigint@3.5.7
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3753,11 +3718,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- brace-expansion@5.0.12
- brace-expansion@5.0.5
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3790,6 +3756,8 @@ The following npm packages may be included in this product:
- @octokit/plugin-paginate-rest@14.0.0
- @octokit/plugin-rest-endpoint-methods@17.0.0
- @octokit/types@16.0.0
- @octokit/types@17.0.0
- @octokit/types@18.0.0
These packages each contain the following license:
@@ -4141,10 +4109,8 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- isexe@2.0.0
- minimatch@3.1.2
- once@1.4.0
- semver@7.7.3
- semver@7.8.1
- semver@7.8.5
- which@2.0.2
- wrappy@1.0.2
@@ -4200,7 +4166,9 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEAL
The following npm packages may be included in this product:
- @octokit/endpoint@11.0.3
- @octokit/endpoint@11.0.5
- @octokit/graphql@9.0.3
- @octokit/request@10.0.16
- @octokit/request@10.0.8
These packages each contain the following license:
@@ -4234,6 +4202,7 @@ The following npm packages may be included in this product:
- @octokit/auth-token@6.0.0
- @octokit/core@7.0.6
- @octokit/request-error@7.1.0
- @octokit/request-error@7.1.2
These packages each contain the following license:
@@ -4263,7 +4232,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@7.0.2
- csv-parse@7.0.3
This package contains the following license:
@@ -4389,7 +4358,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.1
- tar-stream@3.2.2
These packages each contain the following license:
@@ -4662,6 +4631,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.25.0
- streamx@2.28.1
These packages each contain the following license:
@@ -4907,14 +4877,13 @@ THE SOFTWARE.
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.2.0
- @actions/artifact@6.3.1
- @actions/cache@6.3.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/glob@0.7.0
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0
@@ -5010,7 +4979,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm packages may be included in this product:
- concat-map@0.0.1
- minimist@1.2.8
- wordwrap@1.0.0
+80 -83
View File
@@ -1,83 +1,80 @@
var UX=Object.create;var Om=Object.defineProperty;var qX=Object.getOwnPropertyDescriptor;var GX=Object.getOwnPropertyNames;var HX=Object.getPrototypeOf,zX=Object.prototype.hasOwnProperty;var o=(t,e)=>Om(t,"name",{value:e,configurable:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),VX=(t,e)=>{for(var r in e)Om(t,r,{get:e[r],enumerable:!0})},YX=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of GX(e))!zX.call(t,n)&&n!==r&&Om(t,n,{get:()=>e[n],enumerable:!(s=qX(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?UX(HX(t)):{},YX(e||!t||!t.__esModule?Om(r,"default",{value:t,enumerable:!0}):r,t));var l_=f(Lc=>{"use strict";var SLe=require("net"),jX=require("tls"),fB=require("http"),o_=require("https"),KX=require("events"),RLe=require("assert"),XX=require("util");Lc.httpOverHttp=ZX;Lc.httpsOverHttp=eZ;Lc.httpOverHttps=tZ;Lc.httpsOverHttps=rZ;function ZX(t){var e=new Bi(t);return e.request=fB.request,e}o(ZX,"httpOverHttp");function eZ(t){var e=new Bi(t);return e.request=fB.request,e.createSocket=a_,e.defaultPort=443,e}o(eZ,"httpsOverHttp");function tZ(t){var e=new Bi(t);return e.request=o_.request,e}o(tZ,"httpOverHttps");function rZ(t){var e=new Bi(t);return e.request=o_.request,e.createSocket=a_,e.defaultPort=443,e}o(rZ,"httpsOverHttps");function Bi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||fB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=c_(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Bi,"TunnelingAgent");XX.inherits(Bi,KX.EventEmitter);Bi.prototype.addRequest=o(function(e,r,s,n){var i=this,a=gB({request:e},i.options,c_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Bi.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=gB({},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 "+new Buffer(i.proxyAuth).toString("base64")),po("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){po("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){po("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return po("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),po(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");Bi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function a_(t,e){var r=this;Bi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=gB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=jX.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(a_,"createSecureSocket");function c_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(c_,"toOptions");function gB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(gB,"mergeOptions");var po;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?po=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):po=o(function(){},"debug");Lc.debug=po});var AA=f((PLe,u_)=>{u_.exports=l_()});var ze=f((kLe,A_)=>{A_.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Ie=f((DLe,L_)=>{"use strict";var d_=Symbol.for("undici.error.UND_ERR"),Ve=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[d_]===!0}[d_]=!0},p_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),EB=class extends Ve{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[p_]===!0}[p_]=!0},m_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),yB=class extends Ve{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[m_]===!0}[m_]=!0},h_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),CB=class extends Ve{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[h_]===!0}[h_]=!0},f_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),IB=class extends Ve{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"} Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(WL,"isValidHeaderValue");function Eee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(ree.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Eee,"setRequestReferrerPolicyOnRedirect");function yee(){return"allowed"}o(yee,"crossOriginResourcePolicyCheck");function Cee(){return"success"}o(Cee,"corsCheck");function Iee(){return"success"}o(Iee,"TAOCheck");function Bee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Bee,"appendFetchMetadata");function wee(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&pw(t.origin)&&!pw(IA(t))&&(e=null);break;case"same-origin":ch(t,IA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(wee,"appendRequestOriginHeader");function Yc(t,e){return t}o(Yc,"coarsenTime");function bee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Yc(t.domainLookupStartTime,r),domainLookupEndTime:Yc(t.domainLookupEndTime,r),connectionStartTime:Yc(t.connectionStartTime,r),connectionEndTime:Yc(t.connectionEndTime,r),secureConnectionStartTime:Yc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(bee,"clampAndCoarsenConnectionTimingInfo");function Qee(t){return Yc(aee.now(),t)}o(Qee,"coarsenedSharedCurrentTime");function xee(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(xee,"createOpaqueTimingInfo");function jL(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(jL,"makePolicyContainer");function Nee(t){return{referrerPolicy:t.referrerPolicy}}o(Nee,"clonePolicyContainer");function See(t){let e=t.referrerPolicy;pa(e);let r=null;if(t.referrer==="client"){let c=zL();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=dw(r),n=dw(r,!0);s.toString().length>4096&&(s=n);let i=ch(t,s),a=CA(s)&&!CA(t.url);switch(e){case"origin":return n??dw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=IA(t);return ch(s,c)?s:CA(s)&&!CA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(See,"determineRequestsReferrer");function dw(t,e){return pa(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(dw,"stripURLForReferrer");function CA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(CA,"isURLPotentiallyTrustworthy");function Ree(t,e){if(ah===void 0)return!0;let r=KL(e);if(r==="no metadata"||r.length===0)return!0;let s=vee(r),n=Pee(r,s);for(let i of n){let a=i.algo,c=i.hash,l=ah.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),kee(l,c))return!0}return!1}o(Ree,"bytesMatch");var Tee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Tee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();YL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(KL,"parseMetadata");function vee(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(vee,"getStrongestMetadata");function Pee(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(Pee,"filterMetadataListByAlgorithm");function kee(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(kee,"compareBase64Mixed");function Dee(t){}o(Dee,"tryUpgradeReque Line truncated
`);function fte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(fte,"isAsciiString");function gte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(gte,"validateBoundary");function Ete(t,e){uh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Ah(t,mte,i)||i.position===t.length-4&&Ah(t,hte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=yte(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",fte(A)||(A=""),m=new dte([p],u,{type:A})):m=ate(Buffer.from(p)),uh(uM(l)),uh(typeof m=="string"&&uM(m)||lte(m)),n.push(ute(l,m,u))}}o(Ete,"multipartFormDataParser");function yte(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=Jc(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Cw(a,!0,!0,c=>c===9||c===32),!cte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Jc(c=>c===32||c===9,t,e),ote(a)){case"content-disposition":{if(r=s=null,!Ah(t,pte,e)||(e.position+=17,r=pM(t,e),r===null))return"failure";if(Ah(t,dM,e)){let c=e.position+dM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=pM(t,e),s===null))return"failure"}break}case"content-type":{let c=Jc(l=>l!==10&&l!==13,t,e);c=Cw(c,!1,!0,l=>l===9||l===32),n=AM(c);break}case"content-transfer-encoding":{let c=Jc(l=>l!==10&&l!==13,t,e);c=Cw(c,!1,!0,l=>l===9||l===32),i=AM(c);break}default:Jc(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(yte,"parseMultipartFormDataHeaders");function pM(t,e){uh(t[e.position-1]===34);let r=Jc(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(pM,"parseMultipartFormDataName");function Jc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(Jc,"collectASequenceOfBytes");function Cw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(Cw,"removeChars");function Ah(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(Ah,"bufferStartsWith");mM.exports={multipartFormDataParser:Ete,validateBoundary:gte}});var Kc=f((CMe,QM)=>{"use strict";var bA=de(),{ReadableStreamFrom:Cte,isBlobLike:fM,isReadableStreamLike:Ite,readableStreamClose:Bte,createDeferredPromise:wte,fullyReadBody:bte,extractMimeType:Qte,utf8DecodeBytes:yM}=Hr(),{FormData:gM}=wA(),{kState:jc}=mo(),{webidl:xte}=qt(),{Blob:Nte}=require("node:buffer"),Iw=require("node:assert"),{isErrored:CM,isDisturbed:Ste}=require("node:stream"),{isArrayBuffer:Rte}=require("node:util/types"),{serializeAMimeType:Tte}=Ir(),{multipartFormDataParser:vte}=hM(),Bw;try{let t=require("node:crypto");Bw=o(e=>t.randomInt(0,e),"random")}catch{Bw=o(t=>Math.floor(Math.random(t)),"random")}var dh=new TextEncoder;function Pte(){}o(Pte,"noop");var IM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,BM;IM&&(BM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ste(e)&&!CM(e)&&e.cancel("Response object has been garbage collected").catch(Pte)}));function wM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fM(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?dh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Bte(l))},start(){},type:"bytes"}),Iw(Ite(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Rte(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(bA.isFormDataLike(t)){let l=`----formdata-undici-0${`${Bw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
var XX=Object.create;var Vm=Object.defineProperty;var ZX=Object.getOwnPropertyDescriptor;var eZ=Object.getOwnPropertyNames;var tZ=Object.getPrototypeOf,rZ=Object.prototype.hasOwnProperty;var o=(t,e)=>Vm(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sZ=(t,e)=>{for(var r in e)Vm(t,r,{get:e[r],enumerable:!0})},nZ=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eZ(e))!rZ.call(t,n)&&n!==r&&Vm(t,n,{get:()=>e[n],enumerable:!(s=ZX(e,n))||s.enumerable});return t};var b=(t,e,r)=>(r=t!=null?XX(tZ(t)):{},nZ(e||!t||!t.__esModule?Vm(r,"default",{value:t,enumerable:!0}):r,t));var E_=g(Hc=>{"use strict";var DMe=require("net"),cZ=require("tls"),BB=require("http"),h_=require("https"),lZ=require("events"),_Me=require("assert"),uZ=require("util");Hc.httpOverHttp=AZ;Hc.httpsOverHttp=dZ;Hc.httpOverHttps=pZ;Hc.httpsOverHttps=mZ;function AZ(t){var e=new bi(t);return e.request=BB.request,e}o(AZ,"httpOverHttp");function dZ(t){var e=new bi(t);return e.request=BB.request,e.createSocket=f_,e.defaultPort=443,e}o(dZ,"httpsOverHttp");function pZ(t){var e=new bi(t);return e.request=h_.request,e}o(pZ,"httpOverHttps");function mZ(t){var e=new bi(t);return e.request=h_.request,e.createSocket=f_,e.defaultPort=443,e}o(mZ,"httpsOverHttps");function bi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||BB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=g_(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(bi,"TunnelingAgent");uZ.inherits(bi,lZ.EventEmitter);bi.prototype.addRequest=o(function(e,r,s,n){var i=this,a=wB({request:e},i.options,g_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");bi.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=wB({},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 "+new Buffer(i.proxyAuth).toString("base64")),mo("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){mo("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){mo("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return mo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),mo(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");bi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function f_(t,e){var r=this;bi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=wB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=cZ.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(f_,"createSecureSocket");function g_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(g_,"toOptions");function wB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(wB,"mergeOptions");var mo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?mo=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):mo=o(function(){},"debug");Hc.debug=mo});var CA=g((OMe,y_)=>{y_.exports=E_()});var Ge=g((FMe,C_)=>{C_.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Ce=g((UMe,V_)=>{"use strict";var I_=Symbol.for("undici.error.UND_ERR"),He=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[I_]===!0}[I_]=!0},B_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bB=class extends He{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[B_]===!0}[B_]=!0},w_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QB=class extends He{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[w_]===!0}[w_]=!0},b_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xB=class extends He{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[b_]===!0}[b_]=!0},Q_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),NB=class extends He{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"} Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(nM,"isValidHeaderValue");function Tee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(mee.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Tee,"setRequestReferrerPolicyOnRedirect");function Pee(){return"allowed"}o(Pee,"crossOriginResourcePolicyCheck");function vee(){return"success"}o(vee,"corsCheck");function kee(){return"success"}o(kee,"TAOCheck");function Dee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Dee,"appendFetchMetadata");function _ee(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&yw(t.origin)&&!yw(TA(t))&&(e=null);break;case"same-origin":mh(t,TA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(_ee,"appendRequestOriginHeader");function Zc(t,e){return t}o(Zc,"coarsenTime");function Lee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Zc(t.domainLookupStartTime,r),domainLookupEndTime:Zc(t.domainLookupEndTime,r),connectionStartTime:Zc(t.connectionStartTime,r),connectionEndTime:Zc(t.connectionEndTime,r),secureConnectionStartTime:Zc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Lee,"clampAndCoarsenConnectionTimingInfo");function Mee(t){return Zc(yee.now(),t)}o(Mee,"coarsenedSharedCurrentTime");function Oee(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(Oee,"createOpaqueTimingInfo");function iM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(iM,"makePolicyContainer");function Fee(t){return{referrerPolicy:t.referrerPolicy}}o(Fee,"clonePolicyContainer");function Uee(t){let e=t.referrerPolicy;ga(e);let r=null;if(t.referrer==="client"){let c=ZL();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Ew(r),n=Ew(r,!0);s.toString().length>4096&&(s=n);let i=mh(t,s),a=RA(s)&&!RA(t.url);switch(e){case"origin":return n??Ew(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=TA(t);return mh(s,c)?s:RA(s)&&!RA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(Uee,"determineRequestsReferrer");function Ew(t,e){return ga(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(Ew,"stripURLForReferrer");function RA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(RA,"isURLPotentiallyTrustworthy");function qee(t,e){if(ph===void 0)return!0;let r=oM(e);if(r==="no metadata"||r.length===0)return!0;let s=Hee(r),n=zee(r,s);for(let i of n){let a=i.algo,c=i.hash,l=ph.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Vee(l,c))return!0}return!1}o(qee,"bytesMatch");var Gee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Gee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();tM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(oM,"parseMetadata");function Hee(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(Hee,"getStrongestMetadata");function zee(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(zee,"filterMetadataListByAlgorithm");function Vee(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(Vee,"compareBase64Mixed");function $ee(t){}o($ee,"tryUpgradeReque Line truncated
`);function Ste(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Ste,"isAsciiString");function Rte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(Rte,"validateBoundary");function Tte(t,e){fh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&gh(t,xte,i)||i.position===t.length-4&&gh(t,Nte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=Pte(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",Ste(A)||(A=""),m=new bte([p],u,{type:A})):m=yte(Buffer.from(p)),fh(yM(l)),fh(typeof m=="string"&&yM(m)||Ite(m)),n.push(Bte(l,m,u))}}o(Tte,"multipartFormDataParser");function Pte(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=tl(c=>c!==10&&c!==13&&c!==58,t,e);if(a=xw(a,!0,!0,c=>c===9||c===32),!Cte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,tl(c=>c===32||c===9,t,e),Ete(a)){case"content-disposition":{if(r=s=null,!gh(t,Qte,e)||(e.position+=17,r=BM(t,e),r===null))return"failure";if(gh(t,IM,e)){let c=e.position+IM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=BM(t,e),s===null))return"failure"}break}case"content-type":{let c=tl(l=>l!==10&&l!==13,t,e);c=xw(c,!1,!0,l=>l===9||l===32),n=CM(c);break}case"content-transfer-encoding":{let c=tl(l=>l!==10&&l!==13,t,e);c=xw(c,!1,!0,l=>l===9||l===32),i=CM(c);break}default:tl(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(Pte,"parseMultipartFormDataHeaders");function BM(t,e){fh(t[e.position-1]===34);let r=tl(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(BM,"parseMultipartFormDataName");function tl(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(tl,"collectASequenceOfBytes");function xw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(xw,"removeChars");function gh(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(gh,"bufferStartsWith");wM.exports={multipartFormDataParser:Tte,validateBoundary:Rte}});var nl=g((xOe,DM)=>{"use strict";var kA=Ae(),{ReadableStreamFrom:vte,isBlobLike:QM,isReadableStreamLike:kte,readableStreamClose:Dte,createDeferredPromise:_te,fullyReadBody:Lte,extractMimeType:Mte,utf8DecodeBytes:SM}=zr(),{FormData:xM}=vA(),{kState:sl}=ho(),{webidl:Ote}=Gt(),{Blob:Fte}=require("node:buffer"),Nw=require("node:assert"),{isErrored:RM,isDisturbed:Ute}=require("node:stream"),{isArrayBuffer:qte}=require("node:util/types"),{serializeAMimeType:Gte}=Ir(),{multipartFormDataParser:Hte}=bM(),Sw;try{let t=require("node:crypto");Sw=o(e=>t.randomInt(0,e),"random")}catch{Sw=o(t=>Math.floor(Math.random(t)),"random")}var Eh=new TextEncoder;function zte(){}o(zte,"noop");var TM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,PM;TM&&(PM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ute(e)&&!RM(e)&&e.cancel("Response object has been garbage collected").catch(zte)}));function vM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:QM(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?Eh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Dte(l))},start(){},type:"bytes"}),Nw(kte(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(qte(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(kA.isFormDataLike(t)){let l=`----formdata-undici-0${`${Sw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let A=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,E]of t)if(typeof E=="string"){let y=dh.encode(u+`; name="${A(d(C))}"\r
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,E]of t)if(typeof E=="string"){let y=Eh.encode(u+`; name="${A(d(C))}"\r
\r
${d(E)}\r
`);p.push(y),i+=y.byteLength}else{let y=dh.encode(`${u}; name="${A(d(C))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
`);p.push(y),i+=y.byteLength}else{let y=Eh.encode(`${u}; name="${A(d(C))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);p.push(y,E,m),typeof E.size=="number"?i+=y.byteLength+E.size+m.byteLength:h=!0}let g=dh.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(fM(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(bA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Cte(t)}if((typeof n=="string"||bA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!CM(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(wM,"extractBody");function kte(t,e=!1){return t instanceof ReadableStream&&(Iw(!bA.isDisturbed(t),"The body has already been consumed."),Iw(!t.locked,"The stream is locked.")),wM(t,e)}o(kte,"safelyExtractBody");function Dte(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(Dte,"cloneBody");function _te(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(_te,"throwIfAborted");function Lte(t){return{blob(){return Wc(this,r=>{let s=EM(this);return s===null?s="":s&&(s=Tte(s)),new Nte([r],{type:s})},t)},arrayBuffer(){return Wc(this,r=>new Uint8Array(r).buffer,t)},text(){return Wc(this,yM,t)},json(){return Wc(this,Fte,t)},formData(){return Wc(this,r=>{let s=EM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vte(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gM;return i[jc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new gM;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Wc(this,r=>new Uint8Array(r),t)}}}o(Lte,"bodyMixinMethods");function Mte(t){Object.assign(t.prototype,Lte(t))}o(Mte,"mixinBody");async function Wc(t,e,r){if(xte.brandCheck(t,r),bM(t))throw new TypeError("Body is unusable: Body has already been read");_te(t[jc]);let s=wte(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[jc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await bte(t[jc].body,i,n),s.promise)}o(Wc,"consumeBody");function bM(t){let e=t[jc].body;return e!=null&&(e.stream.locked||bA.isDisturbed(e.stream))}o(bM,"bodyUnusable");function Fte(t){return JSON.parse(yM(t))}o(Fte,"parseJSONFromBytes");function EM(t){let e=t[jc].headersList,r=Qte(e);return r==="failure"?null:r}o(EM,"bodyMimeType");QM.exports={extractBody:wM,safelyExtractBody:kte,cloneBody:Dte,mixinBody:Mte,streamRegistry:BM,hasFinalizationRegistry:IM,bodyUnusable:bM}});var qM=f((BMe,UM)=>{"use strict";var J=require("node:assert"),K=de(),{channels:xM}=Fc(),ww=nw(),{RequestContentLengthMismatchError:ma,ResponseContentLengthMismatchError:NM,RequestAbortedError:_M,InvalidArgumentError:Ote,HeadersTimeoutError:Ute,HeadersOverflowError:qte,SocketError:Xc,InformationalError:Zc,BodyTimeoutError:Gte,HTTPParserError:Hte,ResponseExceededMaxSizeError:zte}=Ie(),{kUrl:LM,kReset:Br,kClient:fh,kParser:Fe,kBlocking:NA,kRunning:yt,kPending:MM,kSize:SM,kWriting:ho,kQueue:js,kNoRef:QA,kKeepAliveDefaultTimeout:Vte,kHostHeader:Yte,kPendingIdx:$te,kRunningIdx:Es,kError:sr,kPipelining:gh,kSocket:ha,kKeepAliveTimeoutValue:yh,kMaxHeadersSize:bw,kKeepAliveMaxTimeout:Jte,kKeepAliveTimeoutThreshold:Wte,kHeadersTimeout:jte,kBodyTimeout:Kte,kStrictContentLength:Nw,kMaxRequests:RM,kCounter:Xte,kMaxResponseSize:Zte,kOnError:TM,kResume:Si,kHTTPContext:FM}=ze(),zr=BL(),vM=Buffer.alloc(0),ph=Buffer[Symbol.species],mh=K.addListener,ere=K.removeAllListeners,fa=Symbol("kIdleSocketValidation"),el=Symbol("kIdleSocketValidationTimeout"),vw=Symbol("kSocketUsed"),Qw;async function tre(){let t=process.env.JEST_WORKER_ID?aw():void 0,e;try{e=await WebAssembly.compile(QL())}catch{e=await WebAssembly.compile(t||aw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onStatus(new ph(Qn.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(J(Ze.ptr===r),Ze.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onHeaderField(new ph(Qn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onHeaderValue(new ph(Qn.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(J(Ze.ptr===r),Ze.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onBo Line truncated
`;if(typeof n=="string"?g+=`host: ${n}\r
`:g+=t[Yte],i?g+=`connection: upgrade\r
`);p.push(y,E,m),typeof E.size=="number"?i+=y.byteLength+E.size+m.byteLength:h=!0}let f=Eh.encode(`--${l}--\r
`);p.push(f),i+=f.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(QM(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(kA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vte(t)}if((typeof n=="string"||kA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!RM(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(vM,"extractBody");function Vte(t,e=!1){return t instanceof ReadableStream&&(Nw(!kA.isDisturbed(t),"The body has already been consumed."),Nw(!t.locked,"The stream is locked.")),vM(t,e)}o(Vte,"safelyExtractBody");function $te(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o($te,"cloneBody");function Yte(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Yte,"throwIfAborted");function Jte(t){return{blob(){return rl(this,r=>{let s=NM(this);return s===null?s="":s&&(s=Gte(s)),new Fte([r],{type:s})},t)},arrayBuffer(){return rl(this,r=>new Uint8Array(r).buffer,t)},text(){return rl(this,SM,t)},json(){return rl(this,jte,t)},formData(){return rl(this,r=>{let s=NM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Hte(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new xM;return i[sl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new xM;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return rl(this,r=>new Uint8Array(r),t)}}}o(Jte,"bodyMixinMethods");function Wte(t){Object.assign(t.prototype,Jte(t))}o(Wte,"mixinBody");async function rl(t,e,r){if(Ote.brandCheck(t,r),kM(t))throw new TypeError("Body is unusable: Body has already been read");Yte(t[sl]);let s=_te(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[sl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Lte(t[sl].body,i,n),s.promise)}o(rl,"consumeBody");function kM(t){let e=t[sl].body;return e!=null&&(e.stream.locked||kA.isDisturbed(e.stream))}o(kM,"bodyUnusable");function jte(t){return JSON.parse(SM(t))}o(jte,"parseJSONFromBytes");function NM(t){let e=t[sl].headersList,r=Mte(e);return r==="failure"?null:r}o(NM,"bodyMimeType");DM.exports={extractBody:vM,safelyExtractBody:Vte,cloneBody:$te,mixinBody:Wte,streamRegistry:PM,hasFinalizationRegistry:TM,bodyUnusable:kM}});var jM=g((SOe,WM)=>{"use strict";var J=require("node:assert"),K=Ae(),{channels:_M}=Vc(),Rw=uw(),{RequestContentLengthMismatchError:Ea,ResponseContentLengthMismatchError:LM,RequestAbortedError:zM,InvalidArgumentError:Kte,HeadersTimeoutError:Xte,HeadersOverflowError:Zte,SocketError:il,InformationalError:ol,BodyTimeoutError:ere,HTTPParserError:tre,ResponseExceededMaxSizeError:rre}=Ce(),{kUrl:VM,kReset:Br,kClient:Bh,kParser:Le,kBlocking:LA,kRunning:Et,kPending:$M,kSize:MM,kWriting:fo,kQueue:Ks,kNoRef:DA,kKeepAliveDefaultTimeout:sre,kHostHeader:nre,kPendingIdx:ire,kRunningIdx:fs,kError:ir,kPipelining:wh,kSocket:ya,kKeepAliveTimeoutValue:Qh,kMaxHeadersSize:Tw,kKeepAliveMaxTimeout:ore,kKeepAliveTimeoutThreshold:are,kHeadersTimeout:cre,kBodyTimeout:lre,kStrictContentLength:kw,kMaxRequests:OM,kCounter:ure,kMaxResponseSize:Are,kOnError:FM,kResume:Ti,kHTTPContext:YM}=Ge(),Vr=PL(),UM=Buffer.alloc(0),yh=Buffer[Symbol.species],Ch=K.addListener,dre=K.removeAllListeners,Ca=Symbol("kIdleSocketValidation"),al=Symbol("kIdleSocketValidationTimeout"),Mw=Symbol("kSocketUsed"),Pw;async function pre(){let t=process.env.JEST_WORKER_ID?pw():void 0,e;try{e=await WebAssembly.compile(DL())}catch{e=await WebAssembly.compile(t||pw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{J(Ke.ptr===r);let i=s-xn+Qn.byteOffset;return Ke.onStatus(new yh(Qn.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(J(Ke.ptr===r),Ke.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{J(Ke.ptr===r);let i=s-xn+Qn.byteOffset;return Ke.onHeaderField(new yh(Qn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{J(Ke.ptr===r);let i=s-xn+Qn.byteOffset;return Ke.onHeaderValue(new yh(Qn.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(J(Ke.ptr===r),Ke.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{J(Ke.ptr===r);let i=s-xn+Qn.byteOffset;return Ke.onBo Line truncated
`;if(typeof n=="string"?f+=`host: ${n}\r
`:f+=t[nre],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[gh]&&!m[Br]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],y=u[C+1];if(Array.isArray(y))for(let I=0;I<y.length;I++)g+=`${E}: ${y[I]}\r
`;else g+=`${E}: ${y}\r
`}return xM.sendHeaders.hasSubscribers&&xM.sendHeaders.publish({request:e,headers:g,socket:m}),!l||p===0?kM(h,null,t,e,m,A,g,d):K.isBuffer(l)?kM(h,l,t,e,m,A,g,d):K.isBlobLike(l)?typeof l.stream=="function"?DM(h,l.stream(),t,e,m,A,g,d):lre(h,l,t,e,m,A,g,d):K.isStream(l)?cre(h,l,t,e,m,A,g,d):K.isIterable(l)?DM(h,l,t,e,m,A,g,d):J(!1),!0}o(are,"writeH1");function cre(t,e,r,s,n,i,a,c){J(i!==0||r[yt]===0,"stream body cannot be pipelined");let l=!1,u=new Ch({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){K.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new _M;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,J(n.destroyed||n[ho]&&r[yt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?K.destroy(e,h):K.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(cre,"writeStream");function kM(t,e,r,s,n,i,a,c){try{e?K.isBuffer(e)&&(J(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
`:t[wh]&&!m[Br]?f+=`connection: keep-alive\r
`:f+=`connection: close\r
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],y=u[C+1];if(Array.isArray(y))for(let I=0;I<y.length;I++)f+=`${E}: ${y[I]}\r
`;else f+=`${E}: ${y}\r
`}return _M.sendHeaders.hasSubscribers&&_M.sendHeaders.publish({request:e,headers:f,socket:m}),!l||p===0?GM(h,null,t,e,m,A,f,d):K.isBuffer(l)?GM(h,l,t,e,m,A,f,d):K.isBlobLike(l)?typeof l.stream=="function"?HM(h,l.stream(),t,e,m,A,f,d):Ire(h,l,t,e,m,A,f,d):K.isStream(l)?Cre(h,l,t,e,m,A,f,d):K.isIterable(l)?HM(h,l,t,e,m,A,f,d):J(!1),!0}o(yre,"writeH1");function Cre(t,e,r,s,n,i,a,c){J(i!==0||r[Et]===0,"stream body cannot be pipelined");let l=!1,u=new xh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(f){K.destroy(this,f)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new zM;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,J(n.destroyed||n[fo]&&r[Et]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(f){h=f}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?K.destroy(e,h):K.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Cre,"writeStream");function GM(t,e,r,s,n,i,a,c){try{e?K.isBuffer(e)&&(J(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[Br]=!0)):i===0?n.write(`${a}content-length: 0\r
\r
`,"latin1"):(J(i===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[Si]()}catch(l){t(l)}}o(kM,"writeBuffer");async function lre(t,e,r,s,n,i,a,c){J(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ma;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Ti]()}catch(l){t(l)}}o(GM,"writeBuffer");async function Ire(t,e,r,s,n,i,a,c){J(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ea;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[Br]=!0),r[Si]()}catch(l){t(l)}}o(lre,"writeBlob");async function DM(t,e,r,s,n,i,a,c){J(i!==0||r[yt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{J(l===null),n[sr]?m(n[sr]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new Ch({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[sr])throw n[sr];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(DM,"writeIterable");var Ch=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ho]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[sr])throw r[sr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[Nw])throw new ma;process.emitWarning(new ma)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Br]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[Br]=!0),r[Ti]()}catch(l){t(l)}}o(Ire,"writeBlob");async function HM(t,e,r,s,n,i,a,c){J(i!==0||r[Et]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{J(l===null),n[ir]?m(n[ir]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new xh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[ir])throw n[ir];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(HM,"writeIterable");var xh=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[fo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[ir])throw r[ir];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[kw])throw new Ea;process.emitWarning(new Ea)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Br]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Fe].timeout&&r[Fe].timeoutType===tl&&r[Fe].timeout.refresh&&r[Fe].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[ho]=!1,e[sr])throw e[sr];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Le].timeout&&r[Le].timeoutType===cl&&r[Le].timeout.refresh&&r[Le].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[fo]=!1,e[ir])throw e[ir];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[Nw])throw new ma;process.emitWarning(new ma)}e[Fe].timeout&&e[Fe].timeoutType===tl&&e[Fe].timeout.refresh&&e[Fe].timeout.refresh(),s[Si]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ho]=!1,e&&(J(s[yt]<=1,"pipeline should only contain this request"),n(e))}};UM.exports=sre});var WM=f((bMe,JM)=>{"use strict";var ys=require("node:assert"),{pipeline:ure}=require("node:stream"),fe=de(),{RequestContentLengthMismatchError:Pw,RequestAbortedError:GM,SocketError:SA,InformationalError:kw}=Ie(),{kUrl:Ih,kReset:wh,kClient:rl,kRunning:bh,kPending:Are,kQueue:fo,kPendingIdx:Dw,kRunningIdx:Ks,kError:Zs,kSocket:Dt,kStrictContentLength:dre,kOnError:_w,kMaxConcurrentStreams:$M,kHTTP2Session:Xs,kResume:go,kSize:pre,kHTTPContext:mre}=ze(),Ri=Symbol("open streams"),HM,zM=!1,Bh;try{Bh=require("node:http2")}catch{Bh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:hre,HTTP2_HEADER_METHOD:fre,HTTP2_HEADER_PATH:gre,HTTP2_HEADER_SCHEME:Ere,HTTP2_HEADER_CONTENT_LENGTH:yre,HTTP2_HEADER_EXPECT:Cre,HTTP2_HEADER_STATUS:Ire}}=Bh;function Bre(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}o(Bre,"parseH2Headers");async function wre(t,e){t[Dt]=e,zM||(zM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Bh.connect(t[Ih],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[$M]});r[Ri]=0,r[rl]=t,r[Dt]=e,fe.addListener(r,"error",Qre),fe.addListener(r,"frameError",xre),fe.addListener(r,"end",Nre),fe.addListener(r,"goaway",Sre),fe.addListener(r,"close",function(){let{[rl]:n}=this,{[Dt]:i}=n,a=this[Dt][Zs]||this[Zs]||new SA("closed",fe.getSocketInfo(i));if(n[Xs]=null,n.destroyed){ys(n[Are]===0);let c=n[fo].splice(n[Ks]);for(let l=0;l<c.length;l++){let u=c[l];fe.errorRequest(n,u,a)}}}),r.unref(),t[Xs]=r,e[Xs]=r,fe.addListener(e,"error",function(n){ys(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zs]=n,this[rl][_w](n)}),fe.addListener(e,"end",function(){fe.destroy(this,new SA("other side closed",fe.getSocketInfo(this)))}),fe.addListener(e,"close",function(){let n=this[Zs]||new SA("closed",fe.getSocketInfo(this));t[Dt]=null,this[Xs]!=null&&this[Xs].destroy(n),t[Dw]=t[Ks],ys(t[bh]===0),t.emit("disconnect",t[Ih],[t],n),t[go]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Tre(t,...n)},resume(){bre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(wre,"connectH2");function bre(t){let e=t[Dt];e?.destroyed===!1&&(t[pre]===0&&t[$M]===0?(e.unref(),t[Xs].unref()):(e.ref(),t[Xs].ref()))}o(bre,"resumeH2");function Qre(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dt][Zs]=t,this[rl][_w](t)}o(Qre,"onHttp2SessionError");function xre(t,e,r){if(r===0){let s=new kw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dt][Zs]=s,this[rl][_w](s)}}o(xre,"onHttp2FrameError");function Nre(){let t=new SA("other side closed",fe.getSocketInfo(this[Dt]));this.destroy(t),fe.destroy(this[Dt],t)}o(Nre,"onHttp2SessionEnd");function Sre(t){let e=this[Zs]||new SA(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this)),r=this[rl];if(r[Dt]=null,r[mre]=null,this[Xs]!=null&&(this[Xs].destroy(e),this[Xs]=null),fe.destroy(this[Dt],e),r[Ks]<r[fo].length){let s=r[fo][r[Ks]];r[fo][r[Ks]++]=null,fe.errorRequest(r,s,e),r[Dw]=r[Ks]}ys(r[bh]===0),r.emit("disconnect",r[Ih],[r],e),r[go]()}o(Sre,"onHTTP2GoAway");function Rre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Rre,"shouldSendContentLength");function Tre(t,e){let r=t[Xs],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],S=u[B+1];if(Array.isArray(S))for(let U=0;U<S.length;U++)d[N]?d[N]+=`,${S[U]}`:d[N]=S[U];else d[N]=S}let p,{hostname:m,port:h}=t[Ih];d[hre]=i||`${m}${h?`:${h}`:""}`,d[fre]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new GM,fe.errorRequest(t,e,B),p!=null&&fe.destroy(p,B),fe.destroy(A,B),t[fo][t[Ks]++]=null,t[go]())},"abort");try{e.onConnect(g)}catch(B){fe.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(d,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Ri],t[fo][t[Ks]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Ri],t[fo][t[Ks]++]=null}),p.once("close",()=>{r[Ri]-=1,r[Ri]===0&&r.unref()}),!0;d[gre]=n,d[Ere]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=fe.bodyLength(A);if(fe.isFormDataLike(A)){HM??=Kc().extractBody;let[B,N]=HM(A);d["content-type"]=N,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),Rre(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[dre])return fe.errorRequest(t,e,n Line truncated
`,this[rse]=l??3e5,this[tse]=n??3e5,this[sse]=y??!0,this[nse]=B,this[Ow]=S,this[yo]=null,this[lse]=he>-1?he:-1,this[Ase]=Te??100,this[ut]=null,this[en]=[],this[vi]=0,this[tn]=0,this[PA]=se=>qw(this,se),this[use]=se=>aF(this,se)}get pipelining(){return this[Sh]}set pipelining(e){this[Sh]=e,this[PA](!0)}get[_A](){return this[en].length-this[tn]}get[DA](){return this[tn]-this[vi]}get[kA](){return this[en].length-this[vi]}get[Jre](){return!!this[ut]&&!this[nl]&&!this[ut].destroyed}get[Fw](){return!!(this[ut]?.busy(null)||this[kA]>=(oF(this)||1)||this[_A]>0)}[$re](e){cF(this),this.once("connect",e)}[cse](e,r){let s=e.origin||this[Sn].origin,n=new qre(s,e,r);return this[en].push(n),this[Ea]||(ga.bodyLength(n.body)==null&&ga.isIterable(n.body)?(this[Ea]=1,queueMicrotask(()=>qw(this))):this[PA](!0)),this[Ea]&&this[Co]!==2&&this[Fw]&&(this[Co]=2),this[Co]<2}async[ose](){return new Promise(e=>{this[kA]?this[yo]=e:e(null)})}async[ase](e){return new Promise(r=>{let s=this[en].splice(this[tn]);for(let i=0;i<s.length;i++){let a=s[i];ga.errorRequest(this,a,e)}let n=o(()=>{this[yo]&&(this[yo](),this[yo]=null),r(null)},"callback");this[ut]?(this[ut].destroy(e,n),this[ut]=null):queueMicrotask(n),this[PA]()})}},mse=Nh();function aF(t,e){if(t[DA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ti(t[tn]===t[vi]);let r=t[en].splice(t[vi]);for(let s=0;s<r.length;s++){let n=r[s];ga.errorRequest(t,n,e)}Ti(t[kA]===0)}}o(aF,"onError");async function cF(t){Ti(!t[nl]),Ti(!t[ut]);let{host:e,hostname:r,protocol:s,port:n}=t[Sn];if(r[0]==="["){let i=r.indexOf("]");Ti(i!==-1);let a=r.substring(1,i);Ti(iF.isIP(a)),r=a}t[nl]=!0,sl.beforeConnect.hasSubscribers&&sl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA]});try{let i=await new Promise((a,c)=>{t[TA]({host:e,hostname:r,protocol:s,port:n,servername:t[Eo],localAddress:t[vA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){ga.destroy(i.on("error",sF),new zre);return}Ti(i);try{t[ut]=i.alpnProtocol==="h2"?await pse(t,i):await dse(t,i)}catch(a){throw i.destroy().on("error",sF),a}t[nl]=!1,i[ise]=0,i[Ow]=t[Ow],i[Yre]=t,i[jre]=null,sl.connected.hasSubscribers&&sl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA],socket:i}),t.emit("connect",t[Sn],[t])}catch(i){if(t.destroyed)return;if(t[nl]=!1,sl.connectError.hasSubscribers&&sl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ti(t[DA]===0);t[_A]>0&&t[en][t[tn]].servername===t[Eo];){let a=t[en][t[tn]++];ga.errorRequest(t,a,i)}else aF(t,i);t.emit("connectionError",t[Sn],[t],i)}t[PA]()}o(cF,"connect");function nF(t){t[Co]=0,t.emit("drain",t[Sn],[t])}o(nF,"emitDrain");function qw(t,e){t[Ea]!==2&&(t[Ea]=2,hse(t,e),t[Ea]=0,t[vi]>256&&(t[en].splice(0,t[vi]),t[tn]-=t[vi],t[vi]=0))}o(qw,"resume");function hse(t,e){for(;;){if(t.destroyed){Ti(t[_A]===0);return}if(t[yo]&&!t[kA]){t[yo](),t[yo]=null;return}if(t[ut]&&t[ut].resume(),t[Fw])t[Co]=2;else if(t[Co]===2){e?(t[Co]=1,queueMicrotask(()=>nF(t))):nF(t);continue}if(t[_A]===0||t[DA]>=(oF(t)||1))return;let r=t[en][t[tn]];if(t[Sn].protocol==="https:"&&t[Eo]!==r.servername){if(t[DA]>0)return;t[Eo]=r.servername,t[ut]?.destroy(new Hre("servername changed"),()=>{t[ut]=null,qw(t)})}if(t[nl])return;if(!t[ut]){cF(t);return}if(t[ut].destroyed||t[ut].busy(r))return;!r.aborted&&t[ut].write(r)?t[tn]++:t[en].splice(t[tn],1)}}o(hse,"_resume");lF.exports=Uw});var Gw=f((kMe,uF)=>{"use strict";var Rh=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};uF.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Rh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Rh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var dF=f((_Me,AF)=>{var{kFree:fse,kConnected:gse,kPending:Ese,kQueued:yse,kRunning:Cse,kSize:Ise}=ze(),ya=Symbol("pool"),Hw=class{static{o(this,"PoolStats")}constructor(e){this[ya]=e}get connected(){return this[ya][gse]}get free(){return this[ya][fse]}get pending(){return this[ya][Ese]}get queued(){return this[ya][yse]}get running(){return this[ya][Cse]}get size(){return this[ya][Ise]}};AF.exports=Hw});var Ww=f((MMe,BF)=>{"use strict";var Bse=Gc(),wse=Gw(),{kConnected:zw,kSize:pF,kRunning:mF,kPending:hF,kQueued:LA,kBusy:bse,kFree:Qse,kUrl:xse,kClose:Nse,kDestroy:Sse,kDispatch:Rse}=ze(),Tse=dF(),wr=Symbol("cl Line truncated
`,"latin1"),r!==null&&n!==r){if(s[kw])throw new Ea;process.emitWarning(new Ea)}e[Le].timeout&&e[Le].timeoutType===cl&&e[Le].timeout.refresh&&e[Le].timeout.refresh(),s[Ti]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[fo]=!1,e&&(J(s[Et]<=1,"pipeline should only contain this request"),n(e))}};WM.exports=hre});var nO=g((TOe,sO)=>{"use strict";var gs=require("node:assert"),{pipeline:Bre}=require("node:stream"),he=Ae(),{RequestContentLengthMismatchError:Ow,RequestAbortedError:KM,SocketError:MA,InformationalError:Fw}=Ce(),{kUrl:Nh,kReset:Rh,kClient:ll,kRunning:Th,kPending:wre,kQueue:go,kPendingIdx:Uw,kRunningIdx:Xs,kError:en,kSocket:_t,kStrictContentLength:bre,kOnError:qw,kMaxConcurrentStreams:rO,kHTTP2Session:Zs,kResume:Eo,kSize:Qre,kHTTPContext:xre}=Ge(),Pi=Symbol("open streams"),XM,ZM=!1,Sh;try{Sh=require("node:http2")}catch{Sh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Nre,HTTP2_HEADER_METHOD:Sre,HTTP2_HEADER_PATH:Rre,HTTP2_HEADER_SCHEME:Tre,HTTP2_HEADER_CONTENT_LENGTH:Pre,HTTP2_HEADER_EXPECT:vre,HTTP2_HEADER_STATUS:kre}}=Sh;function Dre(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}o(Dre,"parseH2Headers");async function _re(t,e){t[_t]=e,ZM||(ZM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Sh.connect(t[Nh],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[rO]});r[Pi]=0,r[ll]=t,r[_t]=e,he.addListener(r,"error",Mre),he.addListener(r,"frameError",Ore),he.addListener(r,"end",Fre),he.addListener(r,"goaway",Ure),he.addListener(r,"close",function(){let{[ll]:n}=this,{[_t]:i}=n,a=this[_t][en]||this[en]||new MA("closed",he.getSocketInfo(i));if(n[Zs]=null,n.destroyed){gs(n[wre]===0);let c=n[go].splice(n[Xs]);for(let l=0;l<c.length;l++){let u=c[l];he.errorRequest(n,u,a)}}}),r.unref(),t[Zs]=r,e[Zs]=r,he.addListener(e,"error",function(n){gs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[en]=n,this[ll][qw](n)}),he.addListener(e,"end",function(){he.destroy(this,new MA("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[en]||new MA("closed",he.getSocketInfo(this));t[_t]=null,this[Zs]!=null&&this[Zs].destroy(n),t[Uw]=t[Xs],gs(t[Th]===0),t.emit("disconnect",t[Nh],[t],n),t[Eo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Gre(t,...n)},resume(){Lre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(_re,"connectH2");function Lre(t){let e=t[_t];e?.destroyed===!1&&(t[Qre]===0&&t[rO]===0?(e.unref(),t[Zs].unref()):(e.ref(),t[Zs].ref()))}o(Lre,"resumeH2");function Mre(t){gs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_t][en]=t,this[ll][qw](t)}o(Mre,"onHttp2SessionError");function Ore(t,e,r){if(r===0){let s=new Fw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_t][en]=s,this[ll][qw](s)}}o(Ore,"onHttp2FrameError");function Fre(){let t=new MA("other side closed",he.getSocketInfo(this[_t]));this.destroy(t),he.destroy(this[_t],t)}o(Fre,"onHttp2SessionEnd");function Ure(t){let e=this[en]||new MA(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[ll];if(r[_t]=null,r[xre]=null,this[Zs]!=null&&(this[Zs].destroy(e),this[Zs]=null),he.destroy(this[_t],e),r[Xs]<r[go].length){let s=r[go][r[Xs]];r[go][r[Xs]++]=null,he.errorRequest(r,s,e),r[Uw]=r[Xs]}gs(r[Th]===0),r.emit("disconnect",r[Nh],[r],e),r[Eo]()}o(Ure,"onHTTP2GoAway");function qre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(qre,"shouldSendContentLength");function Gre(t,e){let r=t[Zs],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return he.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],S=u[B+1];if(Array.isArray(S))for(let U=0;U<S.length;U++)d[N]?d[N]+=`,${S[U]}`:d[N]=S[U];else d[N]=S}let p,{hostname:m,port:h}=t[Nh];d[Nre]=i||`${m}${h?`:${h}`:""}`,d[Sre]=s;let f=o(B=>{e.aborted||e.completed||(B=B||new KM,he.errorRequest(t,e,B),p!=null&&he.destroy(p,B),he.destroy(A,B),t[go][t[Xs]++]=null,t[Eo]())},"abort");try{e.onConnect(f)}catch(B){he.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(d,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Pi],t[go][t[Xs]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Pi],t[go][t[Xs]++]=null}),p.once("close",()=>{r[Pi]-=1,r[Pi]===0&&r.unref()}),!0;d[Rre]=n,d[Tre]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=he.bodyLength(A);if(he.isFormDataLike(A)){XM??=nl().extractBody;let[B,N]=XM(A);d["content-type"]=N,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),qre(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[bre])return he.errorRequest(t,e,n Line truncated
`,this[mse]=l??3e5,this[pse]=n??3e5,this[hse]=y??!0,this[fse]=B,this[Vw]=S,this[Co]=null,this[Ise]=Ie>-1?Ie:-1,this[wse]=ke??100,this[ct]=null,this[tn]=[],this[ki]=0,this[rn]=0,this[qA]=ce=>Yw(this,ce),this[Bse]=ce=>fO(this,ce)}get pipelining(){return this[Dh]}set pipelining(e){this[Dh]=e,this[qA](!0)}get[zA](){return this[tn].length-this[rn]}get[HA](){return this[rn]-this[ki]}get[GA](){return this[tn].length-this[ki]}get[ose](){return!!this[ct]&&!this[Al]&&!this[ct].destroyed}get[zw](){return!!(this[ct]?.busy(null)||this[GA]>=(hO(this)||1)||this[zA]>0)}[ise](e){gO(this),this.once("connect",e)}[Cse](e,r){let s=e.origin||this[Sn].origin,n=new Zre(s,e,r);return this[tn].push(n),this[Ba]||(Ia.bodyLength(n.body)==null&&Ia.isIterable(n.body)?(this[Ba]=1,queueMicrotask(()=>Yw(this))):this[qA](!0)),this[Ba]&&this[Io]!==2&&this[zw]&&(this[Io]=2),this[Io]<2}async[Ese](){return new Promise(e=>{this[GA]?this[Co]=e:e(null)})}async[yse](e){return new Promise(r=>{let s=this[tn].splice(this[rn]);for(let i=0;i<s.length;i++){let a=s[i];Ia.errorRequest(this,a,e)}let n=o(()=>{this[Co]&&(this[Co](),this[Co]=null),r(null)},"callback");this[ct]?(this[ct].destroy(e,n),this[ct]=null):queueMicrotask(n),this[qA]()})}},xse=kh();function fO(t,e){if(t[HA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){vi(t[rn]===t[ki]);let r=t[tn].splice(t[ki]);for(let s=0;s<r.length;s++){let n=r[s];Ia.errorRequest(t,n,e)}vi(t[GA]===0)}}o(fO,"onError");async function gO(t){vi(!t[Al]),vi(!t[ct]);let{host:e,hostname:r,protocol:s,port:n}=t[Sn];if(r[0]==="["){let i=r.indexOf("]");vi(i!==-1);let a=r.substring(1,i);vi(mO.isIP(a)),r=a}t[Al]=!0,ul.beforeConnect.hasSubscribers&&ul.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ct]?.version,servername:t[yo],localAddress:t[UA]},connector:t[FA]});try{let i=await new Promise((a,c)=>{t[FA]({host:e,hostname:r,protocol:s,port:n,servername:t[yo],localAddress:t[UA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Ia.destroy(i.on("error",dO),new rse);return}vi(i);try{t[ct]=i.alpnProtocol==="h2"?await Qse(t,i):await bse(t,i)}catch(a){throw i.destroy().on("error",dO),a}t[Al]=!1,i[gse]=0,i[Vw]=t[Vw],i[nse]=t,i[cse]=null,ul.connected.hasSubscribers&&ul.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ct]?.version,servername:t[yo],localAddress:t[UA]},connector:t[FA],socket:i}),t.emit("connect",t[Sn],[t])}catch(i){if(t.destroyed)return;if(t[Al]=!1,ul.connectError.hasSubscribers&&ul.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ct]?.version,servername:t[yo],localAddress:t[UA]},connector:t[FA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(vi(t[HA]===0);t[zA]>0&&t[tn][t[rn]].servername===t[yo];){let a=t[tn][t[rn]++];Ia.errorRequest(t,a,i)}else fO(t,i);t.emit("connectionError",t[Sn],[t],i)}t[qA]()}o(gO,"connect");function pO(t){t[Io]=0,t.emit("drain",t[Sn],[t])}o(pO,"emitDrain");function Yw(t,e){t[Ba]!==2&&(t[Ba]=2,Nse(t,e),t[Ba]=0,t[ki]>256&&(t[tn].splice(0,t[ki]),t[rn]-=t[ki],t[ki]=0))}o(Yw,"resume");function Nse(t,e){for(;;){if(t.destroyed){vi(t[zA]===0);return}if(t[Co]&&!t[GA]){t[Co](),t[Co]=null;return}if(t[ct]&&t[ct].resume(),t[zw])t[Io]=2;else if(t[Io]===2){e?(t[Io]=1,queueMicrotask(()=>pO(t))):pO(t);continue}if(t[zA]===0||t[HA]>=(hO(t)||1))return;let r=t[tn][t[rn]];if(t[Sn].protocol==="https:"&&t[yo]!==r.servername){if(t[HA]>0)return;t[yo]=r.servername,t[ct]?.destroy(new tse("servername changed"),()=>{t[ct]=null,Yw(t)})}if(t[Al])return;if(!t[ct]){gO(t);return}if(t[ct].destroyed||t[ct].busy(r))return;!r.aborted&&t[ct].write(r)?t[rn]++:t[tn].splice(t[rn],1)}}o(Nse,"_resume");EO.exports=$w});var Jw=g((FOe,yO)=>{"use strict";var _h=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};yO.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new _h}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new _h),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var IO=g((qOe,CO)=>{var{kFree:Sse,kConnected:Rse,kPending:Tse,kQueued:Pse,kRunning:vse,kSize:kse}=Ge(),wa=Symbol("pool"),Ww=class{static{o(this,"PoolStats")}constructor(e){this[wa]=e}get connected(){return this[wa][Rse]}get free(){return this[wa][Sse]}get pending(){return this[wa][Tse]}get queued(){return this[wa][Pse]}get running(){return this[wa][vse]}get size(){return this[wa][kse]}};CO.exports=Ww});var tb=g((HOe,PO)=>{"use strict";var Dse=Wc(),_se=Jw(),{kConnected:jw,kSize:BO,kRunning:wO,kPending:bO,kQueued:VA,kBusy:Lse,kFree:Mse,kUrl:Ose,kClose:Fse,kDestroy:Use,kDispatch:qse}=Ge(),Gse=IO(),wr=Symbol("cl Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};RU.exports=Wb});var $h=f((_Fe,DU)=>{"use strict";var vU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:roe}=Ie(),soe=al();kU()===void 0&&PU(new soe);function PU(t){if(!t||typeof t.dispatch!="function")throw new roe("Argument agent must implement Agent");Object.defineProperty(globalThis,vU,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(PU,"setGlobalDispatcher");function kU(){return globalThis[vU]}o(kU,"getGlobalDispatcher");DU.exports={setGlobalDispatcher:PU,getGlobalDispatcher:kU}});var Jh=f((FFe,_U)=>{"use strict";_U.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var MU=f((UFe,LU)=>{"use strict";var noe=xh();LU.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new noe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var OU=f((GFe,FU)=>{"use strict";var ioe=Mh();FU.exports=t=>e=>o(function(s,n){return e(s,new ioe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var qU=f((zFe,UU)=>{"use strict";var ooe=de(),{InvalidArgumentError:aoe,RequestAbortedError:coe}=Ie(),loe=Jh(),jb=class extends loe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aoe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let a=ooe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new coe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function uoe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new jb({maxSize:i},n);return e(s,a)},"Intercept")}o(uoe,"createDumpInterceptor");UU.exports=uoe});var zU=f((YFe,HU)=>{"use strict";var{isIP:Aoe}=require("node:net"),{lookup:doe}=require("node:dns"),poe=Jh(),{InvalidArgumentError:fl,InformationalError:moe}=Ie(),GU=Math.pow(2,31)-1,Kb=class{static{o(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new moe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,s){doe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===GU?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===GU?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#r.set(e.hostname,n)}getHandler(e,r){return new Xb(this,e,r)}},Xb=class extends poe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null Line truncated
${a}`;return}if(_f(e,n,Nue)){Sue(e,i)&&(r.retry=e.toString("utf8",i));return}if(_f(e,n,xue)){Rue(e,i)&&(r.id=e.toString("utf8",i));return}if(_f(e,n,Que)){let a=e.toString("utf8",i);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&Cue(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Iue(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,a=s===this.chunkIndex?this.pos:n.length,c=n.subarray(i,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Tl[0]||(this.checkBOM=!1),!0):s===void 0?e===Tl[0]&&r===Tl[1]?!0:(this.checkBOM=!1,!1):(e===Tl[0]&&r===Tl[1]&&s===Tl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Bq.exports={EventSourceStream:qQ}});var vq=f((WOe,Tq)=>{"use strict";var{pipeline:Tue}=require("node:stream"),{fetching:vue}=jA(),{makeRequest:Pue}=yl(),{webidl:_i}=qt(),{EventSourceStream:kue}=wq(),{parseMIMEType:Due}=Ir(),{createFastMessageEvent:_ue}=Ql(),{isNetworkError:bq}=JA(),{delay:Lue}=OQ(),{kEnumerableProperty:_a}=de(),{environmentSettingsObject:Qq}=Hr(),xq=!1,Nq=3e3,ud=0,Sq=1,Ad=2,Mue="anonymous",Fue="use-credentials",vl=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=ud;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),_i.util.markAsUncloneable(this);let s="EventSource constructor";_i.argumentLengthCheck(arguments,1,s),xq||(xq=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=_i.converters.USVString(e,s,"url"),r=_i.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Nq};let n=Qq,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Mue;r.withCredentials&&(a=Fue,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Qq.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=Pue(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===Ad)return;this.#i=ud;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{bq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(bq(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Due(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=Sq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new kue({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(_ue(l.type,l.options))},"push")});Tue(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=vu Line truncated
%s`,N,N,y,s);var S=y.type==="*"?Ox:y.type==="?"?Fx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+S+"\\("+N}h(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var he=c.length-1;he>-1;he--){var Se=c[he],Qe=s.slice(0,Se.reStart),Te=s.slice(Se.reStart,Se.reEnd-8),Ae=s.slice(Se.reEnd-8,Se.reEnd),_e=s.slice(Se.reEnd);Ae+=_e;var se=Qe.split("(").length-1,tr=_e;for(g=0;g<se;g++)tr=tr.replace(/\)[+*?]?/,"");_e=tr;var z="";_e===""&&e!==ig&&(z="$");var xe=Qe+Te+_e+z+Ae;s=xe}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=p+s),e===ig)return[s,n];if(!n)return mhe(t);var Cn=r.nocase?"i":"";try{var uo=new RegExp("^"+s+"$",Cn)}catch{return new RegExp("$.")}return uo._glob=t,uo._src=s,uo}o(dhe,"parse");es.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=phe;function phe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Ox:e.dot?ihe:ohe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===Ux?r:typeof a=="string"?hhe(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(phe,"makeRe");es.match=function(t,e,r){r=r||{};var s=new Gt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Gt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;vd.sep!=="/"&&(e=e.split(vd.sep).join("/")),e=e.split(Pz),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Gt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,a=t.length,c=e.length;n<a&&i<c;n++,i++){this.debug("matchOne loop");var l=e[i],u=t[n];if(this.debug(e,l,u),l===!1)return!1;if(l===Ux){this.debug("GLOBSTAR",[e,l,u]);var A=n,d=i+1;if(d===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<a;){var p=t[A];if(this.debug(`
globstar while`,t,A,e,d,p),this.matchOne(t.slice(A),e.slice(d),r))return this.debug("globstar found match!",A,a,p),!0;if(p==="."||p===".."||!s.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,A,e,d);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,d),A===a))}var m;if(typeof l=="string"?(m=u===l,this.debug("string match",l,u,m)):(m=u.match(l),this.debug("pattern match",l,u,m)),!m)return!1}if(n===a&&i===c)return!0;if(n===a)return r;if(i===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function mhe(t){return t.replace(/\\(.)/g,"$1")}o(mhe,"globUnescape");function hhe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(hhe,"regExpEscape")});var Vl=f((_Ge,Oz)=>{"use strict";var whe="2.0.0",bhe=Number.MAX_SAFE_INTEGER||9007199254740991,Qhe=16,xhe=250,Nhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Qhe,MAX_SAFE_BUILD_LENGTH:xhe,MAX_SAFE_INTEGER:bhe,RELEASE_TYPES:Nhe,SEMVER_SPEC_VERSION:whe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Dd=f((LGe,Uz)=>{"use strict";var She=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Uz.exports=She});var Yl=f((_n,qz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Gx,MAX_SAFE_BUILD_LENGTH:Rhe,MAX_LENGTH:The}=Vl(),vhe=Dd();_n=qz.exports={};var Phe=_n.re=[],khe=_n.safeRe=[],L=_n.src=[],Dhe=_n.safeSrc=[],M=_n.t={},_he=0,Hx="[a-zA-Z0-9-]",Lhe=[["\\s",1],["\\d",The],[Hx,Rhe]],Mhe=o(t=>{for(let[e,r]of Lhe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),ie=o((t,e,r)=>{let s=Mhe(e),n=_he++;vhe(t,n,e),M[t]=n,L[n]=e,Dhe[n]=s,Phe[n]=new RegExp(e,r?"g":void 0),khe[n]=new RegExp(s,r?"g":void 0)},"createToken");ie("NUMERICIDENTIFIER","0|[1-9]\\d*");ie("NUMERICIDENTIFIERLOOSE","\\d+");ie("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Hx}*`);ie("MAINVERSION",`(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})`);ie("MAINVERSIONLOOSE",`(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASEIDENTIFIER",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIER]})`);ie("PRERELEASEIDENTIFIERLOOSE",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASE",`(?:-(${L[M.PRERELEASEIDENTIFIER]}(?:\\.${L[M.PRERELEASEIDENTIFIER]})*))`);ie("PRERELEASELOOSE",`(?:-?(${L[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[M.PRERELEASEIDENTIFIERLOOSE]})*))`);ie("BUILDIDENTIFIER",`${Hx}+`);ie("BUILD",`(?:\\+(${L[M.BUILDIDENTIFIER]}(?:\\.${L[M.BUILDIDENTIFIER]})*))`);ie("FULLPLAIN",`v?${L[M.MAINVERSION]}${L[M.PRERELEASE]}?${L[M.BUILD]}?`);ie("FULL",`^${L[M.FULLPLAIN]}$`);ie("LOOSEPLAIN",`[v=\\s]*${L[M.MAINVERSIONLOOSE]}${L[M.PRERELEASELOOSE]}?${L[M.BUILD]}?`);ie("LOOSE",`^${L[M.LOOSEPLAIN]}$`);ie("GTLT","((?:<|>)?=?)");ie("XRANGEIDENTIFIERLOOSE",`${L[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ie("XRANGEIDENTIFIER",`${L[M.NUMERICIDENTIFIER]}|x|X|\\*`);ie("XRANGEPLAIN",`[v=\\s]*(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:${L[M.PRERELEASE]})?${L[M.BUILD]}?)?)?`);ie("XRANGEPLAINLOOSE",`[v=\\s]*(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:${L[M.PRERELEASELOOSE]})?${L[M.BUILD]}?)?)?`);ie("XRANGE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAIN]}$`);ie("XRANGELOOSE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAINLOOSE]}$`);ie("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Gx}})(?:\\.(\\d{1,${Gx}}))?(?:\\.(\\d{1,${Gx}}))?`);ie("COERCE",`${L[M.COERCEPLAIN]}(?:$|[^\\d])`);ie("COERCEFULL",L[M.COERCEPLAIN]+`(?:${L[M.PRERELEASE]})?(?:${L[M.BUILD]})?(?:$|[^\\d])`);ie("COERCERTL",L[M.COERCE],!0);ie("COERCERTLFULL",L[M.COERCEFULL],!0);ie("LONETILDE","(?:~>?)");ie("TILDETRIM",`(\\s*)${L[M.LONETILDE]}\\s+`,!0);_n.tildeTrimReplace="$1~";ie("TILDE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAIN]}$`);ie("TILDELOOSE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAINLOOSE]}$`);ie("LONECARET","(?:\\^)");ie("CARETTRIM",`(\\s*)${L[M.LONECARET]}\\s+`,!0);_n.caretTrimReplace="$1^";ie("CARET",`^${L[M.LONECARET]}${L[M.XRANGEPLAIN]}$`);ie("CARETLOOSE",`^${L[M.LONECARET]}${L[M.XRANGEPLAINLOOSE]}$`);ie("COMPARATORLOOSE",`^${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]})$|^$`);ie("COMPARATOR",`^${L[M.GTLT]}\\s*(${L[M.FULLPLAIN]})$|^$`);ie("COMPARATORTRIM",`(\\s*)${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]}|${L[M.XRANGEPLAIN]})`,!0);_n.comparatorTrimReplace="$1$2$3";ie("HYPHENRANGE",`^\\s*(${L[M.XRANGEPLAIN]})\\s+-\\s+(${L[M.XRANGEPLAIN]})\\s*$`);ie("HYPHENRANGELOOSE",`^\\s*(${L[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[M.XRANGEPLAINLOOSE]})\\s*$`);ie("STAR","(<|>)?=?\\s*\\*");ie("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ie("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var lg=f((FGe,Gz)=>{"use strict";var Fhe=Object.freeze({loose:!0}),Ohe=Object.freeze({}),Uhe=o(t=>t?typeof t!="object"?Fhe:t:Ohe,"parseOptions");Gz.exports=Uhe});var zx=f((UGe,Vz)=>{"use strict";var Hz=/^[0-9]+$/,zz=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Hz.test(t),s=Hz.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},"compareIdentifiers"),qhe=o((t,e)=>zz(e,t),"rcompareIdentifiers");Vz Line truncated
`.trim())}};OU.exports=tQ});var Zh=g((qFe,HU)=>{"use strict";var UU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:moe}=Ce(),hoe=ml();GU()===void 0&&qU(new hoe);function qU(t){if(!t||typeof t.dispatch!="function")throw new moe("Argument agent must implement Agent");Object.defineProperty(globalThis,UU,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(qU,"setGlobalDispatcher");function GU(){return globalThis[UU]}o(GU,"getGlobalDispatcher");HU.exports={setGlobalDispatcher:qU,getGlobalDispatcher:GU}});var ef=g((zFe,zU)=>{"use strict";zU.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var $U=g(($Fe,VU)=>{"use strict";var foe=vh();VU.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new foe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var JU=g((JFe,YU)=>{"use strict";var goe=Hh();YU.exports=t=>e=>o(function(s,n){return e(s,new goe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var jU=g((jFe,WU)=>{"use strict";var Eoe=Ae(),{InvalidArgumentError:yoe,RequestAbortedError:Coe}=Ce(),Ioe=ef(),rQ=class extends Ioe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new yoe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let a=Eoe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Coe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#o.onError(this.#i):this.#o.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Boe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new rQ({maxSize:i},n);return e(s,a)},"Intercept")}o(Boe,"createDumpInterceptor");WU.exports=Boe});var ZU=g((XFe,XU)=>{"use strict";var{isIP:woe}=require("node:net"),{lookup:boe}=require("node:dns"),Qoe=ef(),{InvalidArgumentError:wl,InformationalError:xoe}=Ce(),KU=Math.pow(2,31)-1,sQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new xoe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){boe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===KU?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===KU?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#s.set(e.hostname,n)}getHandler(e,r){return new nQ(this,e,r)}},nQ=class extends Qoe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null Line truncated
${a}`;return}if(qf(e,n,Fue)){Uue(e,i)&&(r.retry=e.toString("utf8",i));return}if(qf(e,n,Oue)){que(e,i)&&(r.id=e.toString("utf8",i));return}if(qf(e,n,Mue)){let a=e.toString("utf8",i);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&vue(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&kue(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,a=s===this.chunkIndex?this.pos:n.length,c=n.subarray(i,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Ml[0]||(this.checkBOM=!1),!0):s===void 0?e===Ml[0]&&r===Ml[1]?!0:(this.checkBOM=!1,!1):(e===Ml[0]&&r===Ml[1]&&s===Ml[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Pq.exports={EventSourceStream:YQ}});var Uq=g((t1e,Fq)=>{"use strict";var{pipeline:Gue}=require("node:stream"),{fetching:Hue}=id(),{makeRequest:zue}=xl(),{webidl:Mi}=Gt(),{EventSourceStream:Vue}=vq(),{parseMIMEType:$ue}=Ir(),{createFastMessageEvent:Yue}=vl(),{isNetworkError:kq}=sd(),{delay:Jue}=VQ(),{kEnumerableProperty:Fa}=Ae(),{environmentSettingsObject:Dq}=zr(),_q=!1,Lq=3e3,yd=0,Mq=1,Cd=2,Wue="anonymous",jue="use-credentials",Ol=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=yd;#n=null;#i=null;#o;#a;constructor(e,r={}){super(),Mi.util.markAsUncloneable(this);let s="EventSource constructor";Mi.argumentLengthCheck(arguments,1,s),_q||(_q=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Mi.converters.USVString(e,s,"url"),r=Mi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Lq};let n=Dq,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Wue;r.withCredentials&&(a=jue,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Dq.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=zue(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Cd)return;this.#r=yd;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{kq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(kq(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?$ue(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Mq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new Vue({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(Yue(l.type,l.options))},"push")});Gue(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Hu Line truncated
`).join(`
`+i),t.push(n+"m+"+Wg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=xye()+e+" "+t[0]}o(Qye,"formatArgs");function xye(){return Vt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(xye,"getDate");function Nye(...t){return process.stderr.write(Jg.format(...t)+`
`)}o(Nye,"log");function Sye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Sye,"save");function Rye(){return process.env.DEBUG}o(Rye,"load");function Tye(t){t.inspectOpts={};let e=Object.keys(Vt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Vt.inspectOpts[e[r]]}o(Tye,"init");Wg.exports=P0()(Vt);var{formatters:Q$}=Wg.exports;Q$.o=function(t){return this.inspectOpts.colors=this.useColors,Jg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Q$.O=function(t){return this.inspectOpts.colors=this.useColors,Jg.inspect(t,this.inspectOpts)}});var jg=f((NYe,_0)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_0.exports=y$():_0.exports=x$()});var R$=f(Tr=>{"use strict";var vye=Tr&&Tr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Pye=Tr&&Tr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),N$=Tr&&Tr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vye(e,t,r);return Pye(e,t),e};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.req=Tr.json=Tr.toBuffer=void 0;var kye=N$(require("http")),Dye=N$(require("https"));async function S$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(S$,"toBuffer");Tr.toBuffer=S$;async function _ye(t){let r=(await S$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(_ye,"json");Tr.json=_ye;function Lye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Dye:kye).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(Lye,"req");Tr.req=Lye});var k$=f(ns=>{"use strict";var v$=ns&&ns.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Mye=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P$=ns&&ns.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&v$(e,t,r);return Mye(e,t),e},Fye=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v$(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var Oye=P$(require("net")),T$=P$(require("http")),Uye=require("https");Fye(R$(),ns);var On=Symbol("AgentBaseInternalState"),L0=class extends T$.Agent{static{o(this,"Agent")}constructor(e){super(e),this[On]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Oye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Uye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof T$.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[On].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[On].currentSocket;if(this[On].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[On].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[On]&&(this[On].defaultPort=e)}get protocol(){return this[On].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[On]&&(this[On].protocol=e)}};ns.Agent=L0});var D$=f(ru=>{"use strict";var qye=ru&&ru.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ru,"__esModule",{value:!0});ru.parseProxyResponse=void 0;var Gye=qye(jg()),Kg=(0,Gye.default)("https-proxy-agent:parse-proxy-response");function Hye(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),Kg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),Kg("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
`+i),t.push(n+"m+"+eE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=QCe()+e+" "+t[0]}o(bCe,"formatArgs");function QCe(){return Vt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(QCe,"getDate");function xCe(...t){return process.stderr.write(Zg.format(...t)+`
`)}o(xCe,"log");function NCe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(NCe,"save");function SCe(){return process.env.DEBUG}o(SCe,"load");function RCe(t){t.inspectOpts={};let e=Object.keys(Vt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Vt.inspectOpts[e[r]]}o(RCe,"init");eE.exports=F0()(Vt);var{formatters:TY}=eE.exports;TY.o=function(t){return this.inspectOpts.colors=this.useColors,Zg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};TY.O=function(t){return this.inspectOpts.colors=this.useColors,Zg.inspect(t,this.inspectOpts)}});var tE=g((tJe,G0)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?G0.exports=bY():G0.exports=PY()});var DY=g(Pr=>{"use strict";var TCe=Pr&&Pr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),PCe=Pr&&Pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vY=Pr&&Pr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&TCe(e,t,r);return PCe(e,t),e};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.req=Pr.json=Pr.toBuffer=void 0;var vCe=vY(require("http")),kCe=vY(require("https"));async function kY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(kY,"toBuffer");Pr.toBuffer=kY;async function DCe(t){let r=(await kY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(DCe,"json");Pr.json=DCe;function _Ce(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?kCe:vCe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(_Ce,"req");Pr.req=_Ce});var OY=g(ns=>{"use strict";var LY=ns&&ns.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),LCe=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MY=ns&&ns.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&LY(e,t,r);return LCe(e,t),e},MCe=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&LY(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var OCe=MY(require("net")),_Y=MY(require("http")),FCe=require("https");MCe(DY(),ns);var Fn=Symbol("AgentBaseInternalState"),H0=class extends _Y.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Fn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new OCe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?FCe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof _Y.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[Fn].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Fn].currentSocket;if(this[Fn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Fn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Fn]&&(this[Fn].defaultPort=e)}get protocol(){return this[Fn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Fn]&&(this[Fn].protocol=e)}};ns.Agent=H0});var FY=g(lu=>{"use strict";var UCe=lu&&lu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lu,"__esModule",{value:!0});lu.parseProxyResponse=void 0;var qCe=UCe(tE()),rE=(0,qCe.default)("https-proxy-agent:parse-proxy-response");function GCe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),rE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),rE("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
\r
`);if(p===-1){Kg("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),C=+g[1],E=g.slice(2).join(" "),y={};for(let I of m){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),S=I.slice(B+1).trimStart(),U=y[N];typeof U=="string"?y[N]=[U,S]:Array.isArray(U)?U.push(S):y[N]=S}Kg("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Hye,"parseProxyResponse");ru.parseProxyResponse=Hye});var U$=f(vs=>{"use strict";var zye=vs&&vs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Vye=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F$=vs&&vs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zye(e,t,r);return Vye(e,t),e},O$=vs&&vs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vs,"__esModule",{value:!0});vs.HttpsProxyAgent=void 0;var Xg=F$(require("net")),_$=F$(require("tls")),Yye=O$(require("assert")),$ye=O$(jg()),Jye=k$(),Wye=require("url"),jye=D$(),Wd=(0,$ye.default)("https-proxy-agent"),L$=o(t=>t.servername===void 0&&t.host&&!Xg.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Zg=class extends Jye.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Wye.URL(e):e,this.proxyHeaders=r?.headers??{},Wd("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?M$(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Wd("Creating `tls.Socket`: %o",this.connectOpts),n=_$.connect(L$(this.connectOpts))):(Wd("Creating `net.Socket`: %o",this.connectOpts),n=Xg.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Xg.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(p===-1){rE("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),C=+f[1],E=f.slice(2).join(" "),y={};for(let I of m){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),S=I.slice(B+1).trimStart(),U=y[N];typeof U=="string"?y[N]=[U,S]:Array.isArray(U)?U.push(S):y[N]=S}rE("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(GCe,"parseProxyResponse");lu.parseProxyResponse=GCe});var VY=g(Ts=>{"use strict";var HCe=Ts&&Ts.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),zCe=Ts&&Ts.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HY=Ts&&Ts.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&HCe(e,t,r);return zCe(e,t),e},zY=Ts&&Ts.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.HttpsProxyAgent=void 0;var sE=HY(require("net")),UY=HY(require("tls")),VCe=zY(require("assert")),$Ce=zY(tE()),YCe=OY(),JCe=require("url"),WCe=FY(),ip=(0,$Ce.default)("https-proxy-agent"),qY=o(t=>t.servername===void 0&&t.host&&!sE.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),nE=class extends YCe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new JCe.URL(e):e,this.proxyHeaders=r?.headers??{},ip("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?GY(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(ip("Creating `tls.Socket`: %o",this.connectOpts),n=UY.connect(qY(this.connectOpts))):(ip("Creating `net.Socket`: %o",this.connectOpts),n=sE.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=sE.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,jye.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Kye),r.secureEndpoint?(Wd("Upgrading socket connection to TLS"),_$.connect({...M$(L$(r),"host","path","port"),socket:n})):n;n.destroy();let d=new Xg.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{Wd("Replaying proxy buffer for failed request"),(0,Yye.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};Zg.protocols=["http","https"];vs.HttpsProxyAgent=Zg;function Kye(t){t.resume()}o(Kye,"resume");function M$(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(M$,"omit")});var H$=f(vr=>{"use strict";var Xye=vr&&vr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Zye=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),q$=vr&&vr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xye(e,t,r);return Zye(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var eCe=q$(require("http")),tCe=q$(require("https"));async function G$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(G$,"toBuffer");vr.toBuffer=G$;async function rCe(t){let r=(await G$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(rCe,"json");vr.json=rCe;function sCe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?tCe:eCe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(sCe,"req");vr.req=sCe});var $$=f(is=>{"use strict";var V$=is&&is.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),nCe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Y$=is&&is.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&V$(e,t,r);return nCe(e,t),e},iCe=is&&is.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&V$(e,t,r)};Object.defineProperty(is,"__esModule",{value:!0});is.Agent=void 0;var oCe=Y$(require("net")),z$=Y$(require("http")),aCe=require("https");iCe(H$(),is);var Un=Symbol("AgentBaseInternalState"),M0=class extends z$.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Un]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new oCe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?aCe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof z$.Agent)return c.addRequest(e,n);this[Un].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Un].currentSocket;if(this[Un].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Un].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Un]&&(this[Un].defaultPort=e)}get protocol(){return this[Un].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Un]&&(this[Un].protocol=e)}};is.Agent=M0});var j$=f(Ps=>{"use strict";var cCe=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),lCe=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W$=Ps&&Ps.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&cCe(e,t,r);return lCe(e,t),e},uCe=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpProxyAgent=void 0;var ACe=W$(require("net")),dCe=W$(require("tls")),pCe=uCe(jg()),mCe=require("events"),hCe=$$(),J$=require("url"),su=(0,pCe.default)("http-proxy-agent"),eE=class extends hCe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new J$.URL(e):e,this.proxyHeaders=r?.headers??{},su("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?fCe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new J$.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;su("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(su("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let l=(0,WCe.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",jCe),r.secureEndpoint?(ip("Upgrading socket connection to TLS"),UY.connect({...GY(qY(r),"host","path","port"),socket:n})):n;n.destroy();let d=new sE.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{ip("Replaying proxy buffer for failed request"),(0,VCe.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};nE.protocols=["http","https"];Ts.HttpsProxyAgent=nE;function jCe(t){t.resume()}o(jCe,"resume");function GY(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(GY,"omit")});var JY=g(vr=>{"use strict";var KCe=vr&&vr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),XCe=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Y=vr&&vr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&KCe(e,t,r);return XCe(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var ZCe=$Y(require("http")),eIe=$Y(require("https"));async function YY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(YY,"toBuffer");vr.toBuffer=YY;async function tIe(t){let r=(await YY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(tIe,"json");vr.json=tIe;function rIe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?eIe:ZCe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(rIe,"req");vr.req=rIe});var XY=g(is=>{"use strict";var jY=is&&is.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),sIe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KY=is&&is.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&jY(e,t,r);return sIe(e,t),e},nIe=is&&is.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jY(e,t,r)};Object.defineProperty(is,"__esModule",{value:!0});is.Agent=void 0;var iIe=KY(require("net")),WY=KY(require("http")),oIe=require("https");nIe(JY(),is);var Un=Symbol("AgentBaseInternalState"),z0=class extends WY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Un]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new iIe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?oIe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof WY.Agent)return c.addRequest(e,n);this[Un].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Un].currentSocket;if(this[Un].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Un].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Un]&&(this[Un].defaultPort=e)}get protocol(){return this[Un].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Un]&&(this[Un].protocol=e)}};is.Agent=z0});var tJ=g(Ps=>{"use strict";var aIe=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),cIe=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eJ=Ps&&Ps.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&aIe(e,t,r);return cIe(e,t),e},lIe=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpProxyAgent=void 0;var uIe=eJ(require("net")),AIe=eJ(require("tls")),dIe=lIe(tE()),pIe=require("events"),mIe=XY(),ZY=require("url"),uu=(0,dIe.default)("http-proxy-agent"),iE=class extends mIe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new ZY.URL(e):e,this.proxyHeaders=r?.headers??{},uu("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?hIe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new ZY.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;uu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(uu("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),su("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(su("Creating `tls.Socket`: %o",this.connectOpts),i=dCe.connect(this.connectOpts)):(su("Creating `net.Socket`: %o",this.connectOpts),i=ACe.connect(this.connectOpts)),await(0,mCe.once)(i,"connect"),i}};eE.protocols=["http","https"];Ps.HttpProxyAgent=eE;function fCe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(fCe,"omit")});var EJ=f(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.state=void 0;mE.state={instrumenterImplementation:void 0}});var _J=f(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.state=void 0;yE.state={operationRequestMap:new WeakMap}});var p4=f(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var LQe=require("os"),MQe=require("util");function FQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(FQe,"_interopDefaultLegacy");var OQe=FQe(MQe);function UQe(t,...e){process.stderr.write(`${OQe.default.format(t,...e)}${LQe.EOL}`)}o(UQe,"log");var s4=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,i4,hv=[],fv=[],Fy=[];s4&&gv(s4);var o4=Object.assign(t=>a4(t),{enable:gv,enabled:Ev,disable:qQe,log:UQe});function gv(t){i4=t,hv=[],fv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?fv.push(new RegExp(`^${s.substr(1)}$`)):hv.push(new RegExp(`^${s}$`));for(let s of Fy)s.enabled=Ev(s.namespace)}o(gv,"enable");function Ev(t){if(t.endsWith("*"))return!0;for(let e of fv)if(e.test(t))return!1;for(let e of hv)if(e.test(t))return!0;return!1}o(Ev,"enabled");function qQe(){let t=i4||"";return gv(""),t}o(qQe,"disable");function a4(t){let e=Object.assign(r,{enabled:Ev(t),destroy:GQe,log:o4.log,namespace:t,extend:HQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),Fy.push(e),e}o(a4,"createDebugger");function GQe(){let t=Fy.indexOf(this);return t>=0?(Fy.splice(t,1),!0):!1}o(GQe,"destroy");function HQe(t){let e=a4(`${this.namespace}:${t}`);return e.log=this.log,e}o(HQe,"extend");var Lp=o4,c4=new Set,Ly=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Oy,Uy=Lp("azure");Uy.log=(...t)=>{Lp.log(...t)};var yv=["verbose","info","warning","error"];Ly&&(d4(Ly)?l4(Ly):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Ly}'; logging is not enabled. Acceptable values: ${yv.join(", ")}.`));function l4(t){if(t&&!d4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${yv.join(",")}`);Oy=t;let e=[];for(let r of c4)A4(r)&&e.push(r.namespace);Lp.enable(e.join(","))}o(l4,"setLogLevel");function zQe(){return Oy}o(zQe,"getLogLevel");var n4={verbose:400,info:300,warning:200,error:100};function VQe(t){let e=Uy.extend(t);return u4(Uy,e),{error:My(e,"error"),warning:My(e,"warning"),info:My(e,"info"),verbose:My(e,"verbose")}}o(VQe,"createClientLogger");function u4(t,e){e.log=(...r)=>{t.log(...r)}}o(u4,"patchLogMethod");function My(t,e){let r=Object.assign(t.extend(e),{level:e});if(u4(t,r),A4(r)){let s=Lp.disable();Lp.enable(s+","+r.namespace)}return c4.add(r),r}o(My,"createLogger");function A4(t){return!!(Oy&&n4[t.level]<=n4[Oy])}o(A4,"shouldEnable");function d4(t){return yv.includes(t)}o(d4,"isAzureLogLevel");Iu.AzureLogger=Uy;Iu.createClientLogger=VQe;Iu.getLogLevel=zQe;Iu.setLogLevel=l4});var Bv=f(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var Bu=new WeakMap,qy=new WeakMap,Mp=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Bu.set(this,[]),qy.set(this,!1)}get aborted(){if(!qy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return qy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Bu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Bu.get(this).push(r)}removeEventListener(e,r){if(!Bu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Bu.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 m4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Bu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),qy.set(t,!0)}o(m4,"abortSignal");var Cv=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},Iv=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Mp,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){m4(this._signal)}static timeout(e){let r=new Mp,s=setTimeout(m4,e,r);return typeof s.unref=="function"&&s.unref(),r}};Fp.AbortController=Iv;Fp.AbortError=Cv;Fp.AbortSignal=Mp});var y4=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var YQe Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),uu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(uu("Creating `tls.Socket`: %o",this.connectOpts),i=AIe.connect(this.connectOpts)):(uu("Creating `net.Socket`: %o",this.connectOpts),i=uIe.connect(this.connectOpts)),await(0,pIe.once)(i,"connect"),i}};iE.protocols=["http","https"];Ps.HttpProxyAgent=iE;function hIe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(hIe,"omit")});var wJ=g(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.state=void 0;yE.state={instrumenterImplementation:void 0}});var UJ=g(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.state=void 0;bE.state={operationRequestMap:new WeakMap}});var E4=g(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var _xe=require("os"),Lxe=require("util");function Mxe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Mxe,"_interopDefaultLegacy");var Oxe=Mxe(Lxe);function Fxe(t,...e){process.stderr.write(`${Oxe.default.format(t,...e)}${_xe.EOL}`)}o(Fxe,"log");var c4=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,u4,BP=[],wP=[],Hy=[];c4&&bP(c4);var A4=Object.assign(t=>d4(t),{enable:bP,enabled:QP,disable:Uxe,log:Fxe});function bP(t){u4=t,BP=[],wP=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?wP.push(new RegExp(`^${s.substr(1)}$`)):BP.push(new RegExp(`^${s}$`));for(let s of Hy)s.enabled=QP(s.namespace)}o(bP,"enable");function QP(t){if(t.endsWith("*"))return!0;for(let e of wP)if(e.test(t))return!1;for(let e of BP)if(e.test(t))return!0;return!1}o(QP,"enabled");function Uxe(){let t=u4||"";return bP(""),t}o(Uxe,"disable");function d4(t){let e=Object.assign(r,{enabled:QP(t),destroy:qxe,log:A4.log,namespace:t,extend:Gxe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),Hy.push(e),e}o(d4,"createDebugger");function qxe(){let t=Hy.indexOf(this);return t>=0?(Hy.splice(t,1),!0):!1}o(qxe,"destroy");function Gxe(t){let e=d4(`${this.namespace}:${t}`);return e.log=this.log,e}o(Gxe,"extend");var $p=A4,p4=new Set,qy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,zy,Vy=$p("azure");Vy.log=(...t)=>{$p.log(...t)};var xP=["verbose","info","warning","error"];qy&&(g4(qy)?m4(qy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${qy}'; logging is not enabled. Acceptable values: ${xP.join(", ")}.`));function m4(t){if(t&&!g4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${xP.join(",")}`);zy=t;let e=[];for(let r of p4)f4(r)&&e.push(r.namespace);$p.enable(e.join(","))}o(m4,"setLogLevel");function Hxe(){return zy}o(Hxe,"getLogLevel");var l4={verbose:400,info:300,warning:200,error:100};function zxe(t){let e=Vy.extend(t);return h4(Vy,e),{error:Gy(e,"error"),warning:Gy(e,"warning"),info:Gy(e,"info"),verbose:Gy(e,"verbose")}}o(zxe,"createClientLogger");function h4(t,e){e.log=(...r)=>{t.log(...r)}}o(h4,"patchLogMethod");function Gy(t,e){let r=Object.assign(t.extend(e),{level:e});if(h4(t,r),f4(r)){let s=$p.disable();$p.enable(s+","+r.namespace)}return p4.add(r),r}o(Gy,"createLogger");function f4(t){return!!(zy&&l4[t.level]<=l4[zy])}o(f4,"shouldEnable");function g4(t){return xP.includes(t)}o(g4,"isAzureLogLevel");Su.AzureLogger=Vy;Su.createClientLogger=zxe;Su.getLogLevel=Hxe;Su.setLogLevel=m4});var RP=g(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Ru=new WeakMap,$y=new WeakMap,Yp=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Ru.set(this,[]),$y.set(this,!1)}get aborted(){if(!$y.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return $y.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ru.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ru.get(this).push(r)}removeEventListener(e,r){if(!Ru.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Ru.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 y4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Ru.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),$y.set(t,!0)}o(y4,"abortSignal");var NP=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},SP=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Yp,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){y4(this._signal)}static timeout(e){let r=new Yp,s=setTimeout(y4,e,r);return typeof s.unref=="function"&&s.unref(),r}};Jp.AbortController=SP;Jp.AbortError=NP;Jp.AbortSignal=Yp});var b4=g(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});var Vxe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${w4.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(I4({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(Ixe,"pollOperationHelper");async function N4(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await Ixe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(Q4({status:I,response:y,state:r,stateProxy:s,isDone:g,processResult:d,getError:p,setErrorAsResult:C}),!w4.includes(I)){let B=A?.(y);B&&h(B);let N=c?.(y,r);if(N!==void 0){let S=E!==N;r.config.operationLocation=N,u?.(N,S)}else u?.(E,!1)}m?.(r,y)}}o(N4,"pollOperation");function S4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(S4,"getOperationLocationPollingUrl");function R4(t){return t.headers.location}o(R4,"getLocationHeader");function T4(t){return t.headers["operation-location"]}o(T4,"getOperationLocationHeader");function v4(t){return t.headers["azure-asyncoperation"]}o(v4,"getAzureAsyncOperationHeader");function Bxe(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=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(Bxe,"findResourceLocation");function P4(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=T4(e),a=v4(e),c=S4({operationLocation:i,azureAsyncOperation:a}),l=R4(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Bxe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(P4,"inferLroMode");function k4(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't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return kv(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 mc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(k4,"transformStatus");function wxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return k4({status:r,statusCode:t.statusCode})}o(wxe,"getStatus");function bxe(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 k4({status:i,statusCode:t.statusCode})}o(bxe,"getProvisioningState");function kv(t){return t===202?"running":t<300?"succeeded":"failed"}o(kv,"toOperationStatus");function D4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Qxe(new Date(e)):r*1e3}}o(D4,"parseRetryAfter");function _4(t){let e=t.flatResponse.error;if(!e){mc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){mc.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(_4,"getErrorFromResponse");function Qxe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Qxe,"calculatePollingIntervalFromDate");function L4(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return kv(e.rawResponse.statusCode);case"Body":return Dv(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(L4,"getStatusFromInitialResponse");async function xxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return x4({init:o(async()=>{let a=await n.sendInitialRequest(),c=P4({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:L4,setErrorAsResult:i})}o(xxe,"initHttpOperation");function M4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(l0e,"base64decode");Su.base64decode=l0e;function u0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=eo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=eo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=eo[n|s>>6],e+=eo[s&63],r=0;break}return r&&(e+=eo[n],e+="=",r==1&&(e+="=")),e}o(u0e,"base64encode");Su.base64encode=u0e});var f8=f(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.utf8read=void 0;var Vv=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function A0e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Vv(s)),n=0);return r.length?(n&&r.push(Vv(s.slice(0,n))),r.join("")):Vv(s.slice(0,n))}o(A0e,"utf8read");oC.utf8read=A0e});var Yp=f(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var d0e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(d0e=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function p0e(t,e){return Object.assign(Object.assign({},t),e)}o(p0e,"mergeBinaryOptions");di.mergeBinaryOptions=p0e;var m0e;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(m0e=di.WireType||(di.WireType={}))});var cC=f(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.varint32read=Fr.varint32write=Fr.int64toString=Fr.int64fromString=Fr.varint64write=Fr.varint64read=void 0;function h0e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(h0e,"varint64read");Fr.varint64read=h0e;function f0e(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(f0e,"varint64write");Fr.varint64write=f0e;var aC=65536*65536;function g0e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=aC&&(n=n+(s/aC|0),s=s%aC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(g0e,"int64fromString");Fr.int64fromString=g0e;function E0e(t,e){if(e>>>0<=2097151)return""+(aC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(E0e,"int64toString");Fr.int64toString=E0e;function y0e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(y0e,"varint32write");Fr.varint32write=y0e;function C0e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(C0e,"varint32read");Fr.varint32read=C0e});var ta=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.PbLong=ea.PbULong=ea.detectBi=void 0;var $p=cC(),De;function g8(){let t=new DataView(new ArrayBuffer(8));De=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807" Line truncated
`)}};_C.RpcError=EP});var CP=f(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.mergeRpcOptions=void 0;var W8=ht();function GNe(t,e){if(!e)return t;let r={};LC(t,r),LC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=W8.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=W8.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LC(t.meta,r.meta),LC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(GNe,"mergeRpcOptions");MC.mergeRpcOptions=GNe;function LC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(LC,"copy")});var BP=f(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.Deferred=yc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=yc.DeferredState||(yc.DeferredState={}));var IP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=hi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};yc.Deferred=IP});var bP=f(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.RpcOutputStreamController=void 0;var j8=BP(),Cc=ht(),wP=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Cc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Cc.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Cc.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Cc.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Cc.assert(e,"bad state"),Cc.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new j8.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Cc.assert(s.state==j8.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};FC.RpcOutputStreamController=wP});var xP=f(_u=>{"use strict";var HNe=_u&&_u.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(_u,"__esModule",{value:!0});_u.UnaryCall=void 0;var QP=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return HNe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};_u.UnaryCall=QP});var SP=f(Lu=>{"use strict";var zNe=Lu&&Lu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t Line truncated
Polling status: ${S4.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(x4({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(C0e,"pollOperationHelper");async function v4(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:f,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await C0e({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(T4({status:I,response:y,state:r,stateProxy:s,isDone:f,processResult:d,getError:p,setErrorAsResult:C}),!S4.includes(I)){let B=A?.(y);B&&h(B);let N=c?.(y,r);if(N!==void 0){let S=E!==N;r.config.operationLocation=N,u?.(N,S)}else u?.(E,!1)}m?.(r,y)}}o(v4,"pollOperation");function k4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(k4,"getOperationLocationPollingUrl");function D4(t){return t.headers.location}o(D4,"getLocationHeader");function _4(t){return t.headers["operation-location"]}o(_4,"getOperationLocationHeader");function L4(t){return t.headers["azure-asyncoperation"]}o(L4,"getAzureAsyncOperationHeader");function I0e(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=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(I0e,"findResourceLocation");function M4(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=_4(e),a=L4(e),c=k4({operationLocation:i,azureAsyncOperation:a}),l=D4(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:I0e({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(M4,"inferLroMode");function O4(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't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return UP(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 Cc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(O4,"transformStatus");function B0e(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return O4({status:r,statusCode:t.statusCode})}o(B0e,"getStatus");function w0e(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 O4({status:i,statusCode:t.statusCode})}o(w0e,"getProvisioningState");function UP(t){return t===202?"running":t<300?"succeeded":"failed"}o(UP,"toOperationStatus");function F4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?b0e(new Date(e)):r*1e3}}o(F4,"parseRetryAfter");function U4(t){let e=t.flatResponse.error;if(!e){Cc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Cc.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(U4,"getErrorFromResponse");function b0e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(b0e,"calculatePollingIntervalFromDate");function q4(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return UP(e.rawResponse.statusCode);case"Body":return qP(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(q4,"getStatusFromInitialResponse");async function Q0e(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return P4({init:o(async()=>{let a=await n.sendInitialRequest(),c=M4({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:q4,setErrorAsResult:i})}o(Q0e,"initHttpOperation");function G4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(cNe,"base64decode");_u.base64decode=cNe;function lNe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ro[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ro[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ro[n|s>>6],e+=ro[s&63],r=0;break}return r&&(e+=ro[n],e+="=",r==1&&(e+="=")),e}o(lNe,"base64encode");_u.base64encode=lNe});var I8=g(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.utf8read=void 0;var XP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function uNe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(XP(s)),n=0);return r.length?(n&&r.push(XP(s.slice(0,n))),r.join("")):XP(s.slice(0,n))}o(uNe,"utf8read");AC.utf8read=uNe});var rm=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var ANe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(ANe=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function dNe(t,e){return Object.assign(Object.assign({},t),e)}o(dNe,"mergeBinaryOptions");di.mergeBinaryOptions=dNe;var pNe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(pNe=di.WireType||(di.WireType={}))});var pC=g(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.varint32read=Fr.varint32write=Fr.int64toString=Fr.int64fromString=Fr.varint64write=Fr.varint64read=void 0;function mNe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(mNe,"varint64read");Fr.varint64read=mNe;function hNe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(hNe,"varint64write");Fr.varint64write=hNe;var dC=65536*65536;function fNe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=dC&&(n=n+(s/dC|0),s=s%dC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(fNe,"int64fromString");Fr.int64fromString=fNe;function gNe(t,e){if(e>>>0<=2097151)return""+(dC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(gNe,"int64toString");Fr.int64toString=gNe;function ENe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(ENe,"varint32write");Fr.varint32write=ENe;function yNe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(yNe,"varint32read");Fr.varint32read=yNe});var sa=g(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.PbLong=ra.PbULong=ra.detectBi=void 0;var sm=pC(),ve;function B8(){let t=new DataView(new ArrayBuffer(8));ve=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807" Line truncated
`)}};UC.RpcError=Qv});var Nv=g(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});GC.mergeRpcOptions=void 0;var e5=pt();function qSe(t,e){if(!e)return t;let r={};qC(t,r),qC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=e5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=e5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},qC(t.meta,r.meta),qC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(qSe,"mergeRpcOptions");GC.mergeRpcOptions=qSe;function qC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(qC,"copy")});var Rv=g(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.Deferred=Qc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=Qc.DeferredState||(Qc.DeferredState={}));var Sv=class{static{o(this,"Deferred")}constructor(e=!0){this._state=hi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};Qc.Deferred=Sv});var Pv=g(HC=>{"use strict";Object.defineProperty(HC,"__esModule",{value:!0});HC.RpcOutputStreamController=void 0;var t5=Rv(),xc=pt(),Tv=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){xc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){xc.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){xc.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){xc.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;xc.assert(e,"bad state"),xc.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new t5.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;xc.assert(s.state==t5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};HC.RpcOutputStreamController=Tv});var kv=g(Gu=>{"use strict";var GSe=Gu&&Gu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(Gu,"__esModule",{value:!0});Gu.UnaryCall=void 0;var vv=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return GSe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Gu.UnaryCall=vv});var _v=g(Hu=>{"use strict";var HSe=Hu&&Hu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(WPe,"logUnexpecedPropertyAccessOnce");function jPe(){Object.keys(II).forEach(function(t){delete II[t]})}o(jPe,"resetLoggedProperties")});var wI=f(yi=>{"use strict";yi.__esModule=!0;yi.HandlebarsEnvironment=Jk;function l6(t){return t&&t.__esModule?t:{default:t}}o(l6,"_interopRequireDefault");var Nc=Er(),KPe=hs(),Yk=l6(KPe),XPe=Gk(),ZPe=i6(),eke=zk(),BI=l6(eke),tke=Vk(),rke="4.7.9";yi.VERSION=rke;var ske=8;yi.COMPILER_REVISION=ske;var nke=7;yi.LAST_COMPATIBLE_COMPILER_REVISION=nke;var ike={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"};yi.REVISION_CHANGES=ike;var $k="[object Object]";function Jk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},XPe.registerDefaultHelpers(this),ZPe.registerDefaultDecorators(this)}o(Jk,"HandlebarsEnvironment");Jk.prototype={constructor:Jk,logger:BI.default,log:BI.default.log,registerHelper:o(function(e,r){if(Nc.toString.call(e)===$k){if(r)throw new Yk.default("Arg not supported with multiple helpers");Nc.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Nc.toString.call(e)===$k)Nc.extend(this.partials,e);else{if(typeof r>"u")throw new Yk.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Nc.toString.call(e)===$k){if(r)throw new Yk.default("Arg not supported with multiple decorators");Nc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){tke.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var oke=BI.default.log;yi.log=oke;yi.createFrame=Nc.createFrame;yi.logger=BI.default});var A6=f((bI,u6)=>{"use strict";bI.__esModule=!0;function Wk(t){this.string=t}o(Wk,"SafeString");Wk.prototype.toString=Wk.prototype.toHTML=function(){return""+this.string};bI.default=Wk;u6.exports=bI.default});var d6=f(jk=>{"use strict";jk.__esModule=!0;jk.wrapHelper=ake;function ake(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(ake,"wrapHelper")});var E6=f(ia=>{"use strict";ia.__esModule=!0;ia.checkRevision=pke;ia.template=mke;ia.wrapProgram=QI;ia.resolvePartial=hke;ia.invokePartial=fke;ia.noop=f6;function cke(t){return t&&t.__esModule?t:{default:t}}o(cke,"_interopRequireDefault");function lke(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(lke,"_interopRequireWildcard");var uke=Er(),Wu=lke(uke),Ake=hs(),no=cke(Ake),io=wI(),p6=Gk(),dke=d6(),m6=Vk();function pke(t){var e=t&&t[0]||1,r=io.COMPILER_REVISION;if(!(e>=io.LAST_COMPATIBLE_COMPILER_REVISION&&e<=io.COMPILER_REVISION))if(e<io.LAST_COMPATIBLE_COMPILER_REVISION){var s=io.REVISION_CHANGES[r],n=io.REVISION_CHANGES[e];throw new no.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+").")}else throw new no.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(pke,"checkRevision");function mke(t,e){if(!e)throw new no.default("No environment passed to template");if(!t||!t.main)throw new no.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Wu.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var A=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(jke,"logUnexpecedPropertyAccessOnce");function Kke(){Object.keys(xI).forEach(function(t){delete xI[t]})}o(Kke,"resetLoggedProperties")});var SI=g(Ci=>{"use strict";Ci.__esModule=!0;Ci.HandlebarsEnvironment=eD;function g6(t){return t&&t.__esModule?t:{default:t}}o(g6,"_interopRequireDefault");var kc=rr(),Xke=zs(),Xk=g6(Xke),Zke=Jk(),eDe=p6(),tDe=jk(),NI=g6(tDe),rDe=Kk(),sDe="4.7.10";Ci.VERSION=sDe;var nDe=8;Ci.COMPILER_REVISION=nDe;var iDe=7;Ci.LAST_COMPATIBLE_COMPILER_REVISION=iDe;var oDe={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"};Ci.REVISION_CHANGES=oDe;var Zk="[object Object]";function eD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Zke.registerDefaultHelpers(this),eDe.registerDefaultDecorators(this)}o(eD,"HandlebarsEnvironment");eD.prototype={constructor:eD,logger:NI.default,log:NI.default.log,registerHelper:o(function(e,r){if(kc.toString.call(e)===Zk){if(r)throw new Xk.default("Arg not supported with multiple helpers");kc.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(kc.toString.call(e)===Zk)kc.extend(this.partials,e);else{if(typeof r>"u")throw new Xk.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(kc.toString.call(e)===Zk){if(r)throw new Xk.default("Arg not supported with multiple decorators");kc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){rDe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var aDe=NI.default.log;Ci.log=aDe;Ci.createFrame=kc.createFrame;Ci.logger=NI.default});var y6=g((RI,E6)=>{"use strict";RI.__esModule=!0;function tD(t){this.string=t}o(tD,"SafeString");tD.prototype.toString=tD.prototype.toHTML=function(){return""+this.string};RI.default=tD;E6.exports=RI.default});var C6=g(rD=>{"use strict";rD.__esModule=!0;rD.wrapHelper=cDe;function cDe(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(cDe,"wrapHelper")});var Q6=g(aa=>{"use strict";aa.__esModule=!0;aa.checkRevision=mDe;aa.template=hDe;aa.wrapProgram=TI;aa.resolvePartial=fDe;aa.invokePartial=gDe;aa.noop=w6;function lDe(t){return t&&t.__esModule?t:{default:t}}o(lDe,"_interopRequireDefault");function uDe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(uDe,"_interopRequireWildcard");var ADe=rr(),Dc=uDe(ADe),dDe=zs(),Cn=lDe(dDe),io=SI(),I6=Jk(),pDe=C6(),sD=Kk();function mDe(t){var e=t&&t[0]||1,r=io.COMPILER_REVISION;if(!(e>=io.LAST_COMPATIBLE_COMPILER_REVISION&&e<=io.COMPILER_REVISION))if(e<io.LAST_COMPATIBLE_COMPILER_REVISION){var s=io.REVISION_CHANGES[r],n=io.REVISION_CHANGES[e];throw new Cn.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+").")}else throw new Cn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(mDe,"checkRevision");function hDe(t,e){if(!e)throw new Cn.default("No environment passed to template");if(!t||!t.main)throw new Cn.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Dc.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&Dc.isFunction(a))throw new Cn.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Cn.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var A=u.split(`
`),d=0,p=A.length;d<p&&!(!A[d]&&d+1===p);d++)A[d]=l.indent+A[d];u=A.join(`
`)}return u}else throw new no.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new no.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||m6.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Wu.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=QI(this,c,m,l,u,A,d):p||(p=this.programs[c]=QI(this,c,m)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Wu.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=gke(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=g6(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};h6(c,e.helpers,n),h6(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Wu.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=m6.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;p6.moveHelperToHooks(n,"helperMissing",l),p6.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new no.default("must pass block params");if(t.useDepths&&!u)throw new no.default("must pass parent depths");return QI(n,a,t[a],c,0,l,u)},i}o(mke,"template");function QI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=g6(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(QI,"wrapProgram");function hke(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=xI(r.partials,t)):r.name==="@partial-block"?t=xI(r.data,"partial-block"):t=xI(r.partials,r.name),t}o(hke,"resolvePartial");function fke(t,e,r){var s=xI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==f6&&(function(){r.data=io.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=io.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Wu.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new no.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(fke,"invokePartial");function f6(){return""}o(f6,"noop");function xI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(xI,"lookupOwnProperty");function gke(t,e){return(!e||!("root"in e))&&(e=e?io.createFrame(e):{},e.root=t),e}o(gke,"initData");function g6(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Wu.extend(e,a)}return e}o(g6,"executeDecorators");function h6(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Eke(n,r)})}o(h6,"addHelpers");function Eke(t,e){var r=e.lookupProperty;return dke.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Eke,"passLookupPropertyOption")});var Kk=f((NI,y6)=>{"use strict";NI.__esModule=!0;NI.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};y6.exports=NI.default});var b6=f((SI,w6)=>{"use strict";SI.__esModule=!0;function Zk(t){return t&&t.__esModule?t:{default:t}}o(Zk,"_interopRequireDefault");function eD(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(eD,"_interopRequireWildcard");var yke=wI(),C6=eD(yke),Cke=A6(),Ike=Zk(Cke),Bke=hs(),wke=Zk(Bke),bke=Er(),Xk=eD(bke),Qke=E6(),I6=eD(Qke),xke=Kk() Line truncated
`)}return u}else throw new Cn.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new Cn.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!sD.isPrototypeConstructor(c,l,u)||sD.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Dc.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=TI(this,c,m,l,u,A,d):p||(p=this.programs[c]=TI(this,c,m)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Dc.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=EDe(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=b6(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};B6(c,e.helpers,n),B6(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Dc.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=sD.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;I6.moveHelperToHooks(n,"helperMissing",l),I6.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Cn.default("must pass block params");if(t.useDepths&&!u)throw new Cn.default("must pass parent depths");return TI(n,a,t[a],c,0,l,u)},i}o(hDe,"template");function TI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=b6(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(TI,"wrapProgram");function fDe(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=PI(r.partials,t)):r.name==="@partial-block"?t=PI(r.data,"partial-block"):t=PI(r.partials,r.name),t}o(fDe,"resolvePartial");function gDe(t,e,r){var s=PI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==w6&&(function(){r.data=io.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=io.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Dc.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Cn.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(gDe,"invokePartial");function w6(){return""}o(w6,"noop");function PI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(PI,"lookupOwnProperty");function EDe(t,e){return(!e||!("root"in e))&&(e=e?io.createFrame(e):{},e.root=t),e}o(EDe,"initData");function b6(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Dc.extend(e,a)}return e}o(b6,"executeDecorators");function B6(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=yDe(n,r)})}o(B6,"addHelpers");function yDe(t,e){var r=e.lookupProperty;return pDe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(yDe,"passLookupPropertyOption")});var nD=g((vI,x6)=>{"use strict";vI.__esModule=!0;vI.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};x6.exports=vI.default});var P6=g((kI,T6)=>{"use strict";kI.__esModule=!0;function oD(t){return t&&t.__esModule?t:{default:t}}o(oD,"_interopRequireDefault");function aD(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(aD,"_interopRequireWildcard");var CDe=SI(),N6=aD(CDe),IDe=y6(),BDe=oD(IDe),wDe=zs(),bDe=oD(wDe), Line truncated
`+this.lexer.showPosition()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":tr="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(tr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:se})}}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(U[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(U[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(Ae=this.productions_[U[1]][1],Qe.$=c[c.length-Ae],Qe._$={first_line:l[l.length-(Ae||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ae||1)].first_column,last_column:l[l.length-1].last_column},E&&(Qe._$.range=[l[l.length-(Ae||1)].range[0],l[l.length-1].range[1]]),Se=this.performAction.call(Qe,A,p,d,this.yy,U[1],c,l),typeof Se<"u")return Se;Ae&&(a=a.slice(0,-1*Ae*2),c=c.slice(0,-1*Ae),l=l.slice(0,-1*Ae)),a.push(this.productions_[U[1]][0]),c.push(Qe.$),l.push(Qe._$),_e=u[a[a.length-2]][a[a.length-1]],a.push(_e);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":js="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(js,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ce})}}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(U[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(U[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(de=this.productions_[U[1]][1],Pe.$=c[c.length-de],Pe._$={first_line:l[l.length-(de||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(de||1)].first_column,last_column:l[l.length-1].last_column},E&&(Pe._$.range=[l[l.length-(de||1)].range[0],l[l.length-1].range[1]]),je=this.performAction.call(Pe,A,p,d,this.yy,U[1],c,l),typeof je<"u")return je;de&&(a=a.slice(0,-1*de*2),c=c.slice(0,-1*de),l=l.slice(0,-1*de)),a.push(this.productions_[U[1]][0]),c.push(Pe.$),l.push(Pe._$),gt=u[a[a.length-2]][a[a.length-1]],a.push(gt);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,A;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),p=0;p<d.length&&(c=this._input.match(this.rules[d[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,d[l],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)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();TI.default=Ske;N6.exports=TI.default});var DI=f((kI,v6)=>{"use strict";kI.__esModule=!0;function Rke(t){return t&&t.__esModule?t:{default:t}}o(Rke,"_interopRequireDefault");var Tke=hs(),rD=Rke(Tke);function vI(){this.parents=[]}o(vI,"Visitor");vI.prototype={constructor:vI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!vI.prototype[s.type])throw new rD.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new rD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new rD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:PI,Decorator:PI,BlockStatement:R6,DecoratorBlock:R6,PartialStatement:T6,PartialBlockStatement:o(function(e){T6.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:PI,PathExpression:o(function(){},"PathExpression"),StrLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new vc(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof vc?e:(e=bD(e,this,r),new vc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=bD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(bD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};GI.default=dK;pK.exports=GI.default});var yK=f((HI,EK)=>{"use strict";HI.__esModule=!0;function gK(t){return t&&t.__esModule?t:{default:t}}o(gK,"_interopRequireDefault");var hK=wI(),NDe=hs(),xD=gK(NDe),SDe=Er(),RDe=mK(),fK=gK(RDe);function tA(t){this.value=t}o(tA,"Literal");function rA(){}o(rA,"JavaScriptCompiler");rA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=hK.COMPILER_REVISION,r=hK.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return SDe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new xD.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();_I.default=RDe;D6.exports=_I.default});var uD=g(lD=>{"use strict";lD.__esModule=!0;var TDe=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];lD.NODE_TYPES=TDe});var FI=g((OI,F6)=>{"use strict";OI.__esModule=!0;function PDe(t){return t&&t.__esModule?t:{default:t}}o(PDe,"_interopRequireDefault");var vDe=zs(),AD=PDe(vDe),kDe=rr(),DDe=uD();function MI(){this.parents=[]}o(MI,"Visitor");function L6(t,e){return kDe.indexOf(DDe.NODE_TYPES,e)!==-1||!(e in MI.prototype)&&typeof t[e]=="function"}o(L6,"isDispatchable");MI.prototype={constructor:MI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!L6(this,s.type))throw new AD.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new AD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!L6(this,e.type)||!this[e.type])throw new AD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](eLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Oc(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Oc?e:(e=kD(e,this,r),new Oc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return e=e+"",T_e.test(e)?BK(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=kD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(kD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};JI.default=wK});var PK=g((WI,TK)=>{"use strict";WI.__esModule=!0;function NK(t){return t&&t.__esModule?t:{default:t}}o(NK,"_interopRequireDefault");var QK=SI(),D_e=zs(),_D=NK(D_e),__e=rr(),SK=bK(),xK=NK(SK);function uA(t){this.value=t}o(uA,"Literal");function AA(){}o(AA,"JavaScriptCompiler");AA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=QK.COMPILER_REVISION,r=QK.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return __e.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new _D.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new fK.default(this.options.srcName),this.decorators=new fK.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new xK.default(this.options.srcName),this.decorators=new xK.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,52 +83,52 @@ Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":tr="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(TDe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};ct.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};ct.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var NK=f((uut,xK)=>{var YI=BK().default,QK=wK();YI.PrintVisitor=QK.PrintVisitor;YI.print=QK.print;xK.exports=YI;function bK(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=YI.compile(s)}o(bK,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=bK,require.extensions[".hbs"]=bK)});var qK=f(KI=>{"use strict";Object.defineProperty(KI,"__esModule",{value:!0});KI.getProxyUrl=WDe;KI.checkBypass=UK;function WDe(t){let e=t.protocol==="https:";if(UK(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new jI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jI(`http://${r}`)}else return}o(WDe,"getProxyUrl");function UK(t){if(!t.hostname)return!1;let e=t.hostname;if(jDe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(UK,"checkBypass");function jDe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(jDe,"isLoopbackAddress");var jI=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var HK=f(je=>{"use strict";var KDe=je&&je.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),XDe=je&&je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tB=je&&je.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&KDe(r,e,s[n]);return XDe(r,e),r}})(),gt=je&&je._ Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(L_e(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};ot.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ot.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ot.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ot.prototype.BlockStatement=ot.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};ot.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};ot.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};ot.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ot.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ot.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ot.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ot.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ot.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ot.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ot.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ot.prototype.NullLiteral=function(){return"NULL"};ot.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ot.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var FK=g((UAt,OK)=>{var XI=DK().default,MK=_K();XI.PrintVisitor=MK.PrintVisitor;XI.print=MK.print;OK.exports=XI;function LK(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=XI.compile(s)}o(LK,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=LK,require.extensions[".hbs"]=LK)});var ZK=g(sB=>{"use strict";Object.defineProperty(sB,"__esModule",{value:!0});sB.getProxyUrl=tLe;sB.checkBypass=XK;function tLe(t){let e=t.protocol==="https:";if(XK(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new rB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new rB(`http://${r}`)}else return}o(tLe,"getProxyUrl");function XK(t){if(!t.hostname)return!1;let e=t.hostname;if(rLe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(XK,"checkBypass");function rLe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(rLe,"isLoopbackAddress");var rB=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var tX=g(Je=>{"use strict";var sLe=Je&&Je.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),nLe=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aB=Je&&Je.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&sLe(r,e,s[n]);return nLe(r,e),r}})(),ht=Je&&Je._ Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Pd(i));return s.searchPaths.push(...Dx(s.patterns)),s})}static stat(e,r,s){return qx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield zl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){xs(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield zl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield zl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){xs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Ihe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Fz(t,e){return Ihe(this,void 0,void 0,function*(){return yield ag.create(t,e)})}o(Fz,"create");var bg=w(require("crypto"),1),Jl=w(require("fs"),1),za=w(require("path"),1),vY=w(RY(),1),PY=w(require("util"),1);var Od;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Od||(Od={}));var Ar;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ar||(Ar={}));var ts;(function(t){t.GNU="gnu",t.BSD="bsd"})(ts||(ts={}));var Ig=2,Bg=5e3,c0=5e3,l0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,TY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ud="cache.tar",u0="manifest.txt",mze=10*Math.pow(1024,3),wg="cache read denied:";var $l=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},SEe=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(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},REe="1.0";function qd(){return $l(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=za.join(s,"actions","temp")}let r=za.join(e,bg.randomUUID());return yield Fa(r),r})}o(qd,"createTempDirectory");function Ln(t){return Jl.statSync(t).size}o(Ln,"getArchiveFileSizeInBytes");function A0(t){return $l(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield Fz(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=SEe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=za.relative(c,n).replace(new RegExp(`\\${za.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(A0,"resolvePaths");function Gd(t){return $l(this,void 0,void 0,function*(){return PY.promisify(Jl.unlink)(t)})}o(Gd,"unlinkFile");function kY(t){return $l(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield Po(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(kY,"getVersion");function Hd(){return $l(this,void 0,void 0,function*(){let t=yield kY("zstd",["--quiet"]),e=vY.clean(t);return b(`zstd version: ${e}`),t===""?Ar.Gzip:Ar.ZstdWithoutLong})}o(Hd,"getCompressionMethod");function Uo(t){return t===Ar.Gzip?Od.Gzip:Od.Zstd}o(Uo,"getCacheFileName");function DY(){return $l(this,void 0,void 0,function*(){return Jl.existsSync(l0)?l0:(yield kY("tar")).toLowerCase().includes("gnu tar")?Nr("tar"):""})}o(DY,"getGnuTarPathOnWindows");function d0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(d0,"assertDefined");function Wl(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(REe),bg.createHash("sha256").update(s.join("|")).digest("hex")}o(Wl,"getCacheVersion");function _Y(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(_Y,"getRuntimeToken");var Vd=w(require("http"),1),h0=w(require("https"),1);function p0(t){let e=t.protocol==="https:";if(TEe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new xg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new xg(`http://${r}`)}else return}o(p0,"getProxyUrl");function TEe(t){if(!t.hostname)return!1;let e=t.hostname;if(vEe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(TEe,"checkBypass");function vEe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(vEe,"isLoopbackAddress");var xg=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var qo=w(AA(),1),LY=w(kl(),1);var At=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},et;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(et||(et={}));var dr;(function(t){t.Accept="accept",t.ContentType="content-type"})(dr||(dr={}));var Oi;(function(t){t.ApplicationJson="application/json"})(Oi||(Oi={}));var kEe=[et.MovedPermanently,et.ResourceMoved,et.SeeOther,et.TemporaryRedirect,et.PermanentRedirect],DEe=[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout],_Ee=["OPTIONS","GET","DELETE","HEAD"],LEe=10,MEe=5,Mn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${YEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Pg(t){return t instanceof pr?!0:Ya(t)&&t.name==="RestError"}o(Pg,"isRestError");function Rr(t,e){return Buffer.from(t,e)}o(Rr,"stringToUint8Array");var kg=w(require("node:http"),1),Dg=w(require("node:https"),1),Q0=w(require("node:zlib"),1),e$=require("node:stream");var Rs=Yd("ts-http-runtime");var $Ee={};function $d(t){return t&&typeof t.pipe=="function"}o($d,"isReadableStream");function ZY(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(ZY,"isStreamComplete");function t$(t){return t&&typeof t.byteLength=="number"}o(t$,"isArrayBuffer");var _g=class extends e$.Transform{static{o(this,"ReportTransform")}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}},x0=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fn("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new ln;Rs.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=KEe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new _g(h);g.on("error",C=>{Rs.error("Error in upload progress",C)}),$d(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=JEe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?WEe(u,A):u;let m=e.onDownloadProgress;if(m){let h=new _g(m);h.on("error",g=>{Rs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await jEe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();$d(c)&&(u=ZY(c));let A=Promise.resolve();$d(l)&&(A=ZY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Rs.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={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};return new Promise((l,u)=>{let A=i?kg.default.request(c,l):Dg.default.request(c,l);A.once("error",d=>{u(new pr(d.message,{code:d.code??pr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Fn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&$d(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):t$(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Rs.error("Unrecognized body type",s),u(new pr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?kg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new kg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Dg.default.globalAgent;let n=e.tlsSettings??$Ee,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Rs.info("No cached TLS Agent exist, creating a new Agent"),i=new Dg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function JEe(t){let e=rs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(JEe,"getResponseHeaders");function WEe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Q0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Q0.default.createInflate();return t.pipe(s),s}return t}o(WEe,"getDecodedResponseStream");function jEe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new pr(`Error reading response as text: ${n.message}`,{code:pr.PARSE_ERROR}))})})}o(jEe,"streamToText");function KEe(t){return t?Buffer.isBuffer(t)?t.length:$d(t)?nul Line truncated
`;return e}o(SCe,"encodeHeaders");function RCe(t){return t instanceof Uint8Array?t.byteLength:iE(t)?t.size===-1?void 0:t.size:void 0}o(RCe,"getLength");function TCe(t){let e=0;for(let r of t){let s=RCe(r);if(s===void 0)return;e+=s}return e}o(TCe,"getTotalLength");async function vCe(t,e,r){let s=[Rr(`--${r}`,"utf-8"),...e.flatMap(i=>[Rr(`\r
`,"utf-8"),Rr(SCe(i.headers),"utf-8"),Rr(`\r
`,"utf-8"),i.body,Rr(`\r
--${r}`,"utf-8")]),Rr(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Hd(i));return s.searchPaths.push(...Fx(s.patterns)),s})}static stat(e,r,s){return Jx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Kl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){bs(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Kl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Kl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){bs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Efe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Hz(t,e){return Efe(this,void 0,void 0,function*(){return yield dg.create(t,e)})}o(Hz,"create");var Rg=b(require("crypto"),1),tu=b(require("fs"),1),Wa=b(require("path"),1),L$=b(D$(),1),M$=b(require("util"),1);var jd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(jd||(jd={}));var dr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(dr||(dr={}));var ts;(function(t){t.GNU="gnu",t.BSD="bsd"})(ts||(ts={}));var xg=2,Ng=5e3,h0=5e3,f0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,_$=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Kd="cache.tar",g0="manifest.txt",GVe=10*Math.pow(1024,3),Sg="cache read denied:";var eu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Nye=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(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},Sye="1.0";function ja(){return eu(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=Wa.join(s,"actions","temp")}let r=Wa.join(e,Rg.randomUUID());return yield Ga(r),r})}o(ja,"createTempDirectory");function Ln(t){return tu.statSync(t).size}o(Ln,"getArchiveFileSizeInBytes");function E0(t){return eu(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield Hz(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=Nye(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=Wa.relative(c,n).replace(new RegExp(`\\${Wa.sep}`,"g"),"/");w(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(E0,"resolvePaths");function Xd(t){return eu(this,void 0,void 0,function*(){return M$.promisify(tu.unlink)(t)})}o(Xd,"unlinkFile");function O$(t){return eu(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),w(`Checking ${e} ${r.join(" ")}`);try{yield ko(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){w(n.message)}return s=s.trim(),w(s),s})}o(O$,"getVersion");function Zd(){return eu(this,void 0,void 0,function*(){let t=yield O$("zstd",["--quiet"]),e=L$.clean(t);return w(`zstd version: ${e}`),t===""?dr.Gzip:dr.ZstdWithoutLong})}o(Zd,"getCompressionMethod");function Go(t){return t===dr.Gzip?jd.Gzip:jd.Zstd}o(Go,"getCacheFileName");function F$(){return eu(this,void 0,void 0,function*(){return tu.existsSync(f0)?f0:(yield O$("tar")).toLowerCase().includes("gnu tar")?Nr("tar"):""})}o(F$,"getGnuTarPathOnWindows");function y0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(y0,"assertDefined");function ru(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Sye),Rg.createHash("sha256").update(s.join("|")).digest("hex")}o(ru,"getCacheVersion");function U$(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(U$,"getRuntimeToken");var tp=b(require("http"),1),B0=b(require("https"),1);function C0(t){let e=t.protocol==="https:";if(Rye(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Pg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Pg(`http://${r}`)}else return}o(C0,"getProxyUrl");function Rye(t){if(!t.hostname)return!1;let e=t.hostname;if(Tye(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Rye,"checkBypass");function Tye(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Tye,"isLoopbackAddress");var Pg=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Ho=b(CA(),1),q$=b(Ul(),1);var lt=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Xe;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Xe||(Xe={}));var pr;(function(t){t.Accept="accept",t.ContentType="content-type"})(pr||(pr={}));var qi;(function(t){t.ApplicationJson="application/json"})(qi||(qi={}));var vye=[Xe.MovedPermanently,Xe.ResourceMoved,Xe.SeeOther,Xe.TemporaryRedirect,Xe.PermanentRedirect],kye=[Xe.BadGateway,Xe.ServiceUnavailable,Xe.GatewayTimeout],Dye=["OPTIONS","GET","DELETE","HEAD"],_ye=10,Lye=5,Mn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${Vye.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Mg(t){return t instanceof mr?!0:Xa(t)&&t.name==="RestError"}o(Mg,"isRestError");function Tr(t,e){return Buffer.from(t,e)}o(Tr,"stringToUint8Array");var Og=b(require("node:http"),1),Fg=b(require("node:https"),1),v0=b(require("node:zlib"),1),iY=require("node:stream");var Ss=rp("ts-http-runtime");var $ye={};function sp(t){return t&&typeof t.pipe=="function"}o(sp,"isReadableStream");function nY(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(nY,"isStreamComplete");function oY(t){return t&&typeof t.byteLength=="number"}o(oY,"isArrayBuffer");var Ug=class extends iY.Transform{static{o(this,"ReportTransform")}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}},k0=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new On("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new un;Ss.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=jye(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new Ug(h);f.on("error",C=>{Ss.error("Error in upload progress",C)}),sp(c)?c.pipe(f):f.end(c),c=f}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=Yye(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?Jye(u,A):u;let m=e.onDownloadProgress;if(m){let h=new Ug(m);h.on("error",f=>{Ss.error("Error in download progress",f)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await Wye(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();sp(c)&&(u=nY(c));let A=Promise.resolve();sp(l)&&(A=nY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Ss.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={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};return new Promise((l,u)=>{let A=i?Og.default.request(c,l):Fg.default.request(c,l);A.once("error",d=>{u(new mr(d.message,{code:d.code??mr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new On("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&sp(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):oY(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ss.error("Unrecognized body type",s),u(new mr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Og.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Og.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Fg.default.globalAgent;let n=e.tlsSettings??$ye,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ss.info("No cached TLS Agent exist, creating a new Agent"),i=new Fg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Yye(t){let e=rs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(Yye,"getResponseHeaders");function Jye(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=v0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=v0.default.createInflate();return t.pipe(s),s}return t}o(Jye,"getDecodedResponseStream");function Wye(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new mr(`Error reading response as text: ${n.message}`,{code:mr.PARSE_ERROR}))})})}o(Wye,"streamToText");function jye(t){return t?Buffer.isBuffer(t)?t.length:sp(t)?nul Line truncated
`;return e}o(NIe,"encodeHeaders");function SIe(t){return t instanceof Uint8Array?t.byteLength:uE(t)?t.size===-1?void 0:t.size:void 0}o(SIe,"getLength");function RIe(t){let e=0;for(let r of t){let s=SIe(r);if(s===void 0)return;e+=s}return e}o(RIe,"getTotalLength");async function TIe(t,e,r){let s=[Tr(`--${r}`,"utf-8"),...e.flatMap(i=>[Tr(`\r
`,"utf-8"),Tr(NIe(i.headers),"utf-8"),Tr(`\r
`,"utf-8"),i.body,Tr(`\r
--${r}`,"utf-8")]),Tr(`--\r
\r
`,"utf-8")],n=TCe(s);n&&t.headers.set("Content-Length",n),t.body=await oJ(s)}o(vCe,"buildRequestBody");var jd="multipartPolicy",PCe=70,kCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function DCe(t){if(t.length>PCe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!kCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(DCe,"assertValidBoundary");function aE(){return{name:jd,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(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?DCe(r):r=NCe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await vCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(aE,"multipartPolicy");function cE(){return vg()}o(cE,"createEmptyPipeline");var aJ=Sg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),d3e=aJ.logger;function qn(t){return aJ.createClientLogger(t)}o(qn,"createClientLogger");var Gn=qn("core-rest-pipeline");function z0(t={}){return Mg({logger:Gn.info,...t})}o(z0,"logPolicy");var V0=Fg;function Y0(t={}){return Og(t)}o(Y0,"redirectPolicy");var lE=w(require("node:os"),1),uE=w(require("node:process"),1);function cJ(){return"User-Agent"}o(cJ,"getHeaderName");async function lJ(t){if(uE.default&&uE.default.versions){let e=`${lE.default.type()} ${lE.default.release()}; ${lE.default.arch()}`,r=uE.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(lJ,"setPlatformSpecificData");var AE="1.22.2";function GCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(GCe,"getUserAgentString");function uJ(){return cJ()}o(uJ,"getUserAgentHeaderName");async function dE(t){let e=new Map;e.set("core-rest-pipeline",AE),await lJ(e);let r=GCe(e);return t?`${t} ${r}`:r}o(dE,"getUserAgentValue");var AJ=uJ(),dJ="userAgentPolicy";function $0(t={}){let e=dE(t.userAgentPrefix);return{name:dJ,async sendRequest(r,s){return r.headers.has(AJ)||r.headers.set(AJ,await e),s(r)}}}o($0,"userAgentPolicy");var os=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function J0(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new os(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(J0,"createAbortablePromise");var $Ce="The delay was aborted.";function Kd(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return J0(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??$Ce})}o(Kd,"delay");function Ho(t){if(Ya(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Ho,"getErrorMessage");function pJ(t){return Ya(t)}o(pJ,"isError");function nu(){return Va()}o(nu,"randomUUID");var we=Wa;var mJ=Symbol("rawContent");function j0(t){return typeof t[mJ]=="function"}o(j0,"hasRawContent");function hJ(t){return j0(t)?t[mJ]():t}o(hJ,"getRawContent");var pE=jd;function K0(){let t=aE();return{name:pE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)j0(s.body)&&(s.body=hJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(K0,"multipartPolicy");var X0=Ug;function Z0(){return qg()}o(Z0,"decompressResponsePolicy");function eN(t={}){return zg(t)}o(eN,"defaultRetryPolicy");function tN(){return Vg()}o(tN,"formDataPolicy");function zo(t){return O0(t)}o(zo,"getDefaultProxySettings");function rN(t,e){return rE(t,e)}o(rN,"proxyPolicy");var fJ="setClientRequestIdPolicy";function sN(t="x-ms-client-request-id"){return{name:fJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(sN,"setClientRequestIdPolicy");function nN(t){return sE(t)}o(nN,"agentPolicy");function iN(t){return nE(t)}o(iN,"tlsPolicy");var iu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function gJ(t={}){let e=new oN(t.parentContext);return t.span&&(e=e.setValue(iu.span,t.span)),t.namespace&&(e=e.setValue(iu.namespace,t.namespace)),e}o(gJ,"createTracingContext");var oN=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!gBe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",dt("InvalidTag",d,mr(t,i))}let u=dBe(t,i);if(u===!1)return dt("InvalidAttr","Attributes for '"+l+"' have open quote.",mr(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=e3(A,e);if(p===!0)s=!0;else return dt(p.err.code,p.err.msg,mr(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return dt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",mr(t,a));if(r.length===0)return dt("InvalidTag","Closing tag '"+l+"' has not been opened.",mr(t,a));{let d=r.pop();if(l!==d.tagName){let p=mr(t,d.tagStartPos);return dt("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",mr(t,a))}r.length==0&&(n=!0)}}else return dt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",mr(t,i));else{let d=e3(A,e);if(d!==!0)return dt(d.err.code,d.err.msg,mr(t,i-A.length+d.err.line));if(n===!0)return dt("InvalidXml","Multiple possible root nodes found.",mr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=ZJ(t,i);continue}else if(t[i+1]==="?"){if(i=XJ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=hBe(t,i);if(d==-1)return dt("InvalidChar","char '&' is not expected.",mr(t,i));i=d}else if(n===!0&&!KJ(t[i]))return dt("InvalidXml","Extra text at the end",mr(t,i));t[i]==="<"&&i--}}else{if(KJ(t[i]))continue;return dt("InvalidChar","char '"+t[i]+"' is not expected.",mr(t,i))}if(s){if(r.length==1)return dt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",mr(t,r[0].tagStartPos));if(r.length>0)return dt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return dt("InvalidXml","Start tag expected.",1);return!0}o(xE,"validate");function KJ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(KJ,"isWhiteSpace");function XJ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return dt("InvalidXml","XML declaration allowed only at the start of the document.",mr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(XJ,"readPI");function ZJ(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(ZJ,"readCommentAndCDATA");var uBe='"',ABe="'";function dBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===uBe||t[e]===ABe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(dBe,"readAttributeStr");var pBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function e3(t,e){let r=bE(t,pBe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return dt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",lp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return dt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",lp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return dt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",lp(r[n]));let i=r[n][2];if(!fBe(i))return dt("InvalidAttr","Attribute '"+i+"' is an invalid name.",lp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return dt("InvalidAttr","Attribute '"+i+"' is repeated.",lp(r[n]))}return!0}o(e3,"validateAttributeString");function mBe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(mBe,"validateNumberAmpersand");function hBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,mBe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(hBe,"validateAmpersand");function dt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(dt,"getErrorObject");function fBe(t){return bN(t)}o(fBe,"validateAttrName");function gBe(t){return bN(t)}o(gBe,"validateTagName");function mr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(mr,"getLineNumberForPosition");function lp(t){return t.startIndex+t[1].length}o(lp,"getPositionFromMatch");var t3={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"},r3={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",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},s3={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
`);let e=new kr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new dp(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=uu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=PN(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=kN(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new kr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=uu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=uu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=kN(t,c,n.removeNSPrefix);if(!A){let S=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${S}"`)}let d=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,g=A.closeIndex;if({tagName:d,tagExp:m}=PN(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=UBe(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=OBe(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let S="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let he=this.readStopNodeData(t,p,g+1);if(!he)throw new Error(`Unexpected end of ${p}`);c=he.i,S=he.tagContent}let U=new kr(d);y&&(U[":@"]=y),U.add(n.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,N)}else{if(E){({tagName:d,tagExp:m}=PN(n.transformTagName,d,m,n));let S=new kr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let S=new kr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let S=new kr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),r=S}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function YBe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(YBe,"addChild");function $Be(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o($Be,"replaceEntitiesValue");function JBe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(JBe,"saveTextToParentTag");function WBe(){return this.stopNodeExpressionsLine truncated
`;function nwe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(ON(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(nwe,"detectXmlVersionFromArray");function w3(t,e,r,s,n){return!r.sanitizeName||ec(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(w3,"resolveTagName");function FN(t,e){let r="";e.format&&(r=swe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new ls(c)):c instanceof ls&&s.push(c)}let n=nwe(t,e),i=new Vn;return b3(t,e,r,i,s,n)}o(FN,"toXml");function b3(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=MN(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=ON(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:w3(A,!1,e,s,i),m=iwe(u[":@"],e);s.push(p,m);let h=awe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=MN(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=vE(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=TE(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=B3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=B3(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=Q3(u[A],e):y=b3(u[A],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(b3,"arrToStr");function iwe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=$o(t[n]),s=!0}return s?r:null}o(iwe,"extractAttributeValues");function Q3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=ON(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=owe(n[":@"],e),c=Q3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(Q3,"getRawContent");function owe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${$o(n)}"`}return r}o(owe,"attr_to_str_raw");function ON(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(ON,"propName");function B3(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:w3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=MN(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${$o(u)}"`}return i}o(B3,"attr_to_str");function awe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(awe,"checkStopNode");function MN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(MN,"replaceEntitiesValue");function UN(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(UN,"getIgnoreAttributesFn");var cwe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function _r(t){if(this.options=Object.assign({},cwe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
`,"utf-8")],n=RIe(s);n&&t.headers.set("Content-Length",n),t.body=await AJ(s)}o(TIe,"buildRequestBody");var op="multipartPolicy",PIe=70,vIe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function kIe(t){if(t.length>PIe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!vIe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(kIe,"assertValidBoundary");function dE(){return{name:op,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(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?kIe(r):r=xIe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await TIe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(dE,"multipartPolicy");function pE(){return Lg()}o(pE,"createEmptyPipeline");var dJ=kg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),UWe=dJ.logger;function qn(t){return dJ.createClientLogger(t)}o(qn,"createClientLogger");var Gn=qn("core-rest-pipeline");function K0(t={}){return Gg({logger:Gn.info,...t})}o(K0,"logPolicy");var X0=Hg;function Z0(t={}){return zg(t)}o(Z0,"redirectPolicy");var mE=b(require("node:os"),1),hE=b(require("node:process"),1);function pJ(){return"User-Agent"}o(pJ,"getHeaderName");async function mJ(t){if(hE.default&&hE.default.versions){let e=`${mE.default.type()} ${mE.default.release()}; ${mE.default.arch()}`,r=hE.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(mJ,"setPlatformSpecificData");var fE="1.22.2";function qIe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(qIe,"getUserAgentString");function hJ(){return pJ()}o(hJ,"getUserAgentHeaderName");async function gE(t){let e=new Map;e.set("core-rest-pipeline",fE),await mJ(e);let r=qIe(e);return t?`${t} ${r}`:r}o(gE,"getUserAgentValue");var fJ=hJ(),gJ="userAgentPolicy";function eN(t={}){let e=gE(t.userAgentPrefix);return{name:gJ,async sendRequest(r,s){return r.headers.has(fJ)||r.headers.set(fJ,await e),s(r)}}}o(eN,"userAgentPolicy");var os=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function tN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new os(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(tN,"createAbortablePromise");var $Ie="The delay was aborted.";function ap(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return tN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??$Ie})}o(ap,"delay");function Vo(t){if(Xa(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Vo,"getErrorMessage");function EJ(t){return Xa(t)}o(EJ,"isError");function Au(){return Ka()}o(Au,"randomUUID");var we=tc;var yJ=Symbol("rawContent");function sN(t){return typeof t[yJ]=="function"}o(sN,"hasRawContent");function CJ(t){return sN(t)?t[yJ]():t}o(CJ,"getRawContent");var EE=op;function nN(){let t=dE();return{name:EE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)sN(s.body)&&(s.body=CJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(nN,"multipartPolicy");var iN=Vg;function oN(){return $g()}o(oN,"decompressResponsePolicy");function aN(t={}){return Wg(t)}o(aN,"defaultRetryPolicy");function cN(){return jg()}o(cN,"formDataPolicy");function $o(t){return $0(t)}o($o,"getDefaultProxySettings");function lN(t,e){return aE(t,e)}o(lN,"proxyPolicy");var IJ="setClientRequestIdPolicy";function uN(t="x-ms-client-request-id"){return{name:IJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(uN,"setClientRequestIdPolicy");function AN(t){return cE(t)}o(AN,"agentPolicy");function dN(t){return lE(t)}o(dN,"tlsPolicy");var du={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function BJ(t={}){let e=new pN(t.parentContext);return t.span&&(e=e.setValue(du.span,t.span)),t.namespace&&(e=e.setValue(du.namespace,t.namespace)),e}o(BJ,"createTracingContext");var pN=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!fwe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",ut("InvalidTag",d,hr(t,i))}let u=Awe(t,i);if(u===!1)return ut("InvalidAttr","Attributes for '"+l+"' have open quote.",hr(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=i3(A,e);if(p===!0)s=!0;else return ut(p.err.code,p.err.msg,hr(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return ut("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",hr(t,a));if(r.length===0)return ut("InvalidTag","Closing tag '"+l+"' has not been opened.",hr(t,a));{let d=r.pop();if(l!==d.tagName){let p=hr(t,d.tagStartPos);return ut("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",hr(t,a))}r.length==0&&(n=!0)}}else return ut("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",hr(t,i));else{let d=i3(A,e);if(d!==!0)return ut(d.err.code,d.err.msg,hr(t,i-A.length+d.err.line));if(n===!0)return ut("InvalidXml","Multiple possible root nodes found.",hr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=n3(t,i);continue}else if(t[i+1]==="?"){if(i=s3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=mwe(t,i);if(d==-1)return ut("InvalidChar","char '&' is not expected.",hr(t,i));i=d}else if(n===!0&&!r3(t[i]))return ut("InvalidXml","Extra text at the end",hr(t,i));t[i]==="<"&&i--}}else{if(r3(t[i]))continue;return ut("InvalidChar","char '"+t[i]+"' is not expected.",hr(t,i))}if(s){if(r.length==1)return ut("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hr(t,r[0].tagStartPos));if(r.length>0)return ut("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ut("InvalidXml","Start tag expected.",1);return!0}o(PE,"validate");function r3(t){return t===" "||t===" "||t===`
`||t==="\r"}o(r3,"isWhiteSpace");function s3(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return ut("InvalidXml","XML declaration allowed only at the start of the document.",hr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(s3,"readPI");function n3(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(n3,"readCommentAndCDATA");var lwe='"',uwe="'";function Awe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===lwe||t[e]===uwe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(Awe,"readAttributeStr");var dwe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function i3(t,e){let r=RE(t,dwe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return ut("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",yp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return ut("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",yp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return ut("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",yp(r[n]));let i=r[n][2];if(!hwe(i))return ut("InvalidAttr","Attribute '"+i+"' is an invalid name.",yp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return ut("InvalidAttr","Attribute '"+i+"' is repeated.",yp(r[n]))}return!0}o(i3,"validateAttributeString");function pwe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(pwe,"validateNumberAmpersand");function mwe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,pwe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(mwe,"validateAmpersand");function ut(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(ut,"getErrorObject");function hwe(t){return PN(t)}o(hwe,"validateAttrName");function fwe(t){return PN(t)}o(fwe,"validateTagName");function hr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(hr,"getLineNumberForPosition");function yp(t){return t.startIndex+t[1].length}o(yp,"getPositionFromMatch");var o3={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"},a3={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",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},c3={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
`);let e=new Dr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Bp(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=gu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=FN(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=UN(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new Dr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=gu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=gu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=UN(t,c,n.removeNSPrefix);if(!A){let S=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${S}"`)}let d=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,f=A.closeIndex;if({tagName:d,tagExp:m}=FN(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=Fwe(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=Owe(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let S="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let Ie=this.readStopNodeData(t,p,f+1);if(!Ie)throw new Error(`Unexpected end of ${p}`);c=Ie.i,S=Ie.tagContent}let U=new Dr(d);y&&(U[":@"]=y),U.add(n.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,N)}else{if(E){({tagName:d,tagExp:m}=FN(n.transformTagName,d,m,n));let S=new Dr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let S=new Dr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let S=new Dr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),r=S}s="",c=f}}}else s+=t[c];return e.child},"parseXml");function Vwe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(Vwe,"addChild");function $we(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o($we,"replaceEntitiesValue");function Ywe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Ywe,"saveTextToParentTag");function Jwe(){return this.stopNodeExpressionsLine truncated
`;function sbe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if($N(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(sbe,"detectXmlVersionFromArray");function S3(t,e,r,s,n){return!r.sanitizeName||oc(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(S3,"resolveTagName");function VN(t,e){let r="";e.format&&(r=rbe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new ls(c)):c instanceof ls&&s.push(c)}let n=sbe(t,e),i=new Vn;return R3(t,e,r,i,s,n)}o(VN,"toXml");function R3(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=zN(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=$N(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:S3(A,!1,e,s,i),m=nbe(u[":@"],e);s.push(p,m);let h=obe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=zN(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=LE(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=_E(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=N3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let C=N3(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=T3(u[A],e):y=R3(u[A],e,f,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(R3,"arrToStr");function nbe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=Wo(t[n]),s=!0}return s?r:null}o(nbe,"extractAttributeValues");function T3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=$N(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=ibe(n[":@"],e),c=T3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(T3,"getRawContent");function ibe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Wo(n)}"`}return r}o(ibe,"attr_to_str_raw");function $N(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o($N,"propName");function N3(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:S3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=zN(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Wo(u)}"`}return i}o(N3,"attr_to_str");function obe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(obe,"checkStopNode");function zN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(zN,"replaceEntitiesValue");function YN(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(YN,"getIgnoreAttributesFn");var abe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Lr(t){if(this.options=Object.assign({},abe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(_r,"Builder");function lwe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(lwe,"detectXmlVersionFromObj");function qN(t,e,r,s,n){return!r.sanitizeName||ec(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(qN,"resolveTagName");_r.prototype.build=function(t){if(this.options.preserveOrder)return FN(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vn,r=lwe(t,this.options);return this.j2x(t,0,e,r).val}};_r.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let A=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:qN(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=qN(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(g,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(g,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,g);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=qN(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};_r.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+$o(e)+'"'};function uwe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(uwe,"processTextOrObjNode");_r.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=$o(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=$o(t[s]),r=!0)}return r?e:null};_r.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Lr,"Builder");function cbe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(cbe,"detectXmlVersionFromObj");function JN(t,e,r,s,n){return!r.sanitizeName||oc(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(JN,"resolveTagName");Lr.prototype.build=function(t){if(this.options.preserveOrder)return VN(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vn,r=cbe(t,this.options);return this.j2x(t,0,e,r).val}};Lr.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let A=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:JN(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=JN(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let f=t[l][h];if(!(typeof f>"u"))if(f===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(f,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(f,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,f);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+f;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(f,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=JN(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};Lr.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Wo(e)+'"'};function lbe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(lbe,"processTextOrObjNode");Lr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=Wo(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=Wo(t[s]),r=!0)}return r?e:null};Lr.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===te.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE));r.sort((n,i)=>GE(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=OE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=UE(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var tt=class extends sc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gp(e,r,this)}computeHMACSHA256(e){return(0,k3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var xt=qn("storage-common");var ks;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ks||(ks={}));var Wo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ks.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ywe=new os("The operation was aborted."),Ep=class extends Yn{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Wo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Wo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Wo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Wo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Wo.maxRetryDelayInMs):Wo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Wo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Wo.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=FE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Jo(n.url,zi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(xt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(xt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return xt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return xt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return xt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return xt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(te.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(xt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ks.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ks.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return xt.info(`RetryPolicy: Delay for ${n}ms`),qE(n,s,ywe)}};var yp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ep(e,r,this.retryOptions)}};var Cwe="storageBrowserPolicy";function D3(){return{name:Cwe,async sendRequest(t,e){return we||((t.method==="GET"||t.method==="HEAD")&&(t.url=Jo(t.url,zi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}o(D3,"storageBrowserPolicy");var Iwe="StorageCorrectContentLengthPolicy";function _3(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Iwe,async sendRequest(e,r){return t(e),r(e)}}}o(_3,"storageCorrectContentLengthPolicy");var Bwe="storageRetryPolicy",du={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ks.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],bwe=new os("The operation was aborted.");function L3(t={}){let e=t.retryPolicyType??du.retryPolicyType,r=t.maxTries??du.maxTries,s=t.retryDelayInMs??du.retryDelayInMs,n=t.maxRetryDelayInMs??du.maxRetryDelayInMs,i=t.secondaryHost??du.secondaryHost,a=t.tryTimeoutInMs??du.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return xt.inf Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===te.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE));r.sort((n,i)=>YE(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=zE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=VE(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var Ze=class extends lc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Np(e,r,this)}computeHMACSHA256(e){return(0,O3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nt=qn("storage-common");var vs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(vs||(vs={}));var Ko={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ebe=new os("The operation was aborted."),Sp=class extends $n{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Ko){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Ko.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Ko.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Ko.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Ko.maxRetryDelayInMs):Ko.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Ko.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Ko.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=HE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=jo(n.url,$i.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Nt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(Nt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Nt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return Nt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return Nt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Nt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(te.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Nt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case vs.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case vs.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Nt.info(`RetryPolicy: Delay for ${n}ms`),$E(n,s,Ebe)}};var Rp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Sp(e,r,this.retryOptions)}};var ybe="storageBrowserPolicy";function F3(){return{name:ybe,async sendRequest(t,e){return we||((t.method==="GET"||t.method==="HEAD")&&(t.url=jo(t.url,$i.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}o(F3,"storageBrowserPolicy");var Cbe="StorageCorrectContentLengthPolicy";function U3(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Cbe,async sendRequest(e,r){return t(e),r(e)}}}o(U3,"storageCorrectContentLengthPolicy");var Ibe="storageRetryPolicy",yu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Bbe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],wbe=new os("The operation was aborted.");function q3(t={}){let e=t.retryPolicyType??yu.retryPolicyType,r=t.maxTries??yu.maxTries,s=t.retryDelayInMs??yu.retryDelayInMs,n=t.maxRetryDelayInMs??yu.maxRetryDelayInMs,i=t.secondaryHost??yu.secondaryHost,a=t.tryTimeoutInMs??yu.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return Nt.inf Line truncated
`)+`
`+s(i)+n(i),c=(0,M3.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===te.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>GE(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=OE(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=UE(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Qwe,async sendRequest(i,a){return e(i),a(i)}}}o(YN,"storageSharedKeyCredentialPolicy");var xwe="storageRequestFailureDetailsParserPolicy";function F3(){return{name:xwe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(F3,"storageRequestFailureDetailsParserPolicy");var O3=require("node:crypto");var HE=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,O3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var zE="12.31.0",VE="2026-02-06";var YE="https://storage.azure.com/.default",Vi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var un="",$N="*",Nwe=1*1024*1024;var Swe=4*Nwe;var U3="AES256",q3="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",G3=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],H3=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],z3="BlobUsesCustomerSpecifiedEncryption",V3="BlobDoesNotUseCustomerSpecifiedEncryption",Y3=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Yi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Yi,"isPipelineLike");var Cp=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function pt(t,e={}){t||(t=new $e);let r=new Cp([],e);return r._credential=t,r}o(pt,"newPipeline");function Rwe(t){let e=[Twe,$3,vwe,Pwe,kwe,Dwe,Lwe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>_we(n));return{wrappedPolicies:BN(r),afterRetry:s}}}}o(Rwe,"processDownlevelPipeline");function JN(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?wN(e):VN(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${zE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=rp({...r,loggingOptions:{additionalAllowedHeaderNames:G3,additionalAllowedQueryParameters:H3,logger:kE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:PE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:HN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:X0}),n.addPolicy(_3()),n.addPolicy(L3(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new hn(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(RQe,"generateBlobSASQueryParameters20150405");function TQe(t,e){if(t=dc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?mn(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(TQe,"generateBlobSASQueryParameters20181109");function vQe(t,e){if(t=dc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?mn(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(vQe,"generateBlobSASQueryParameters20201206");function PQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(PQe,"generateBlobSASQueryParametersUDK20181109");function kQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(kQe,"generateBlobSASQueryParametersUDK20200210");function DQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(DQe,"generateBlobSASQueryParametersUDK20201206");function _Qe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(_Qe,"generateBlobSASQueryParametersUDK20250705");function Ac(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Ac,"getCanonicalName");function dc(t){let e=t.version?t.version:VE;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(dc,"SASSignatureValuesSanityCheckAndAutofill");var Pp=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=nu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==un||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==un||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-acquireLease",r,async s=>$(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==un||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==un||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=$(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==un||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-releaseLease",e,async r=>$(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==un||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar Line truncated
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"}};bu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var fc=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};fc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Gp=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Vxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Fv=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);re(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function j4(t,e,r){return Vxe(this,void 0,void 0,function*(){var s;let n=new Zi(t),i=n.getBlockBlobClient(),a=new Fv((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new jy(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Bt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(j4,"uploadCacheArchiveSDK");var X4=w(require("buffer"),1),Ai=w(require("fs"),1),Z4=w(require("stream"),1),e8=w(require("util"),1);var Ky=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Xy(t){return t?t>=200&&t<300:!1}o(Xy,"isSuccessStatusCode");function Yxe(t){return t?t>=500:!0}o(Yxe,"isServerErrorStatusCode");function $xe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}o($xe,"isRetryableStatusCode");function Jxe(t){return Ky(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Jxe,"sleep");function K4(t,e,r){return Ky(this,arguments,void 0,function*(s,n,i,a=Ig,c=Bg,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!Yxe(p)))return d;if(p&&(m=$xe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield Jxe(c),A++}throw Error(`${s} failed: ${u}`)})}o(K4,"retry");function Hp(t,e){return Ky(this,arguments,void 0,function*(r,s,n=Ig,i=Bg){return yield K4(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Mn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Hp,"retryTypedResponse");function Qu(t,e){return Ky(this,arguments,void 0,function*(r,s,n=Ig,i=Bg){return yield K4(r,s,a=>a.message.statusCode,n,i)})}o(Qu,"retryHttpClientResponse");var Fs=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Wxe(t,e){return Fs(this,void 0,void 0,function*(){yield e8.promisify(Z4.pipeline)(t.message,e)})}o(Wxe,"pipeResponseToStream");var Zy=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receive Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(r0e,"printCachesListForDiagnostics");function Hv(t,e,r){return Mr(this,void 0,void 0,function*(){let s=new p8.URL(t),n=n8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield r8(t,e,n):n.concurrentBlobDownloads?yield t8(t,e,n):yield eC(t,e):yield eC(t,e)})}o(Hv,"downloadCache");function h8(t,e,r){return Mr(this,void 0,void 0,function*(){let s=Gv(),n=Wl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Hp("reserveCache",()=>Mr(this,void 0,void 0,function*(){return s.postJson(Vp("caches"),i)}))})}o(h8,"reserveCache");function d8(t,e){return`bytes ${t}-${e}/*`}o(d8,"getContentRange");function s0e(t,e,r,s,n){return Mr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${d8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":d8(s,n)},a=yield Qu(`uploadChunk (start: ${s}, end: ${n})`,()=>Mr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Xy(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(s0e,"uploadChunk");function n0e(t,e,r,s){return Mr(this,void 0,void 0,function*(){let n=Ln(r),i=Vp(`caches/${e.toString()}`),a=xu.openSync(r,"r"),c=Ov(s),l=d0("uploadConcurrency",c.uploadConcurrency),u=d0("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Mr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield s0e(t,i,()=>xu.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),m,h)}})))}finally{xu.closeSync(a)}})}o(n0e,"uploadFile");function i0e(t,e,r){return Mr(this,void 0,void 0,function*(){let s={size:r};return yield Hp("commitCache",()=>Mr(this,void 0,void 0,function*(){return t.postJson(Vp(`caches/${e.toString()}`),s)}))})}o(i0e,"commitCache");function zv(t,e,r,s){return Mr(this,void 0,void 0,function*(){if(Ov(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield j4(r,e,s)}else{let i=Gv();b("Upload cache"),yield n0e(i,t,e,s),b("Commiting cache");let a=Ln(e);re(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield i0e(i,t,a);if(!Xy(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);re("Cache saved successfully")}})}o(zv,"saveCache");var l5=w(r5(),1),ft=w(ht(),1),ds=w(ht(),1),Ic=w(ht(),1),Bc=w(ht(),1),wc=w(ht(),1);var FP=w(ht(),1),OP=w(ht(),1),o5=w(ht(),1),a5=w(ht(),1),c5=w(ht(),1);var _P=w(ht(),1),LP=w(ht(),1),s5=w(ht(),1),n5=w(ht(),1),i5=w(ht(),1);var MP=class extends i5.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,n5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,s5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){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 ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?LP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,_P.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,_P.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?LP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},qC=new MP;var UP=class extends c5.MessageType{static{o(this,"CacheMetadata$Type")}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:o(()=>qC,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,a5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,o5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(qC.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?OP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,FP.WireTyp Line truncated
`));let s=yield tk(r,"create");yield rk(s,t)})}o(nk,"createTar");var Gu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},En=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bc=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ik="cache write denied:",VC=class t extends bc{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},p5=wg,YC=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},$C=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function m5(t){if(!t||t.length===0)throw new En("Path Validation Error: At least one directory or file path is required")}o(m5,"checkPaths");function ok(t){if(t.length>512)throw new En(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new En(`Key Validation Error: ${t} cannot contain commas.`)}o(ok,"checkKey");function ak(){return zp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(ak,"isFeatureAvailable");function h5(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=zp();b(`Cache service version: ${u}`),m5(n);let A=qv();if(!o8(A)){re(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),b(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield CSe(n,i,a,c,l):yield ySe(n,i,a,c,l)})}o(h5,"restoreCache");function ySe(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new En("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)ok(m);let d=yield Hd(),p="";try{let m;try{m=yield m8(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(g){let C=(u=g?.message)!==null&&u!==void 0?u:"";throw C.includes(p5)?new YC(C):g}if(!m?.archiveLocation)return;if(c?.lookupOnly)return re("Lookup only - skipping download"),m.cacheKey;p=am.join(yield qd(),Uo(d)),b(`Archive Path: ${p}`),yield Hv(m.archiveLocation,p,c),Ua()&&(yield om(p,d));let h=Ln(p);return re(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield sk(p,d),re("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===En.name)throw m;h instanceof Mn&&typeof h.statusCode=="number"&&h.statusCode>=500?Ol(`Failed to restore: ${m.message}`):Bt(`Failed to restore: ${m.message}`)}finally{try{yield Gd(p)}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(ySe,"restoreCacheV1");function CSe(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new En("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)ok(p);let d="";try{let p=ek(),m=yield Hd(),h={key:i,restoreKeys:a,version:Wl(n,m,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(y){let I=(u=y?.message)!==null&&u!==void 0?u:"";throw I.includes(p5)?new YC(I):y}if(!g.ok){b(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;d=am.join(yield qd(),Uo(m)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield Hv(g.signedDownloadUrl,d,c);let E=Ln(d);return re(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ua()&&(yield om(d,m)),yield sk(d,m),re("Cache restored successfully"),g.matchedKey}catch(p){let m=p;if(m.name===En.name)throw p;m instanceof Mn&&typeof m.statusCode=="number"&&m.statusCode>=500?Ol(`Failed to restore: ${p.message}`):Bt(`Failed to restore: ${p.message}`)}finally{try{d&&(yield Gd(d))}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(CSe,"restoreCacheV2");function ck(t,e,r){return Gu(this,arguments,void 0,function*(s,n,i,a=!1){let c=zp();b(`Cache service version: ${c}`),m5(s),ok(n);let l=qv();return a8(l)?c==="v2"?yield BSe(s,n,i,a):yield ISe(s,n,i,a):(re(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),b(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(ck,"saveCache");function ISe(t,e,r){return Gu(this,arguments,void 0 Line truncated
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:A,from_line:d,ltrim:p,max_record_size:m,raw:h,relax_quotes:g,rtrim:C,skip_empty_lines:E,to:y,to_line:I}=this.options,{comment:B,escape:N,quote:S,record_delimiter:U}=this.options,{bomSkipped:he,delimiterDiscovered:Se,delimiterBufPrevious:Qe,rawBuffer:Te,escapeIsQuote:Ae}=this.state;if(!Se&&u){let xe;if(Qe===void 0?xe=s:Qe!==void 0&&s===void 0?xe=Qe:xe=Buffer.concat([Qe,s]),s=void 0,n||xe.length>u.size)this.options.delimiter=[Buffer.from(TK(xe,this.options.delimiter_auto))],this.state.previousBuf=xe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=xe;return}}let{previousBuf:_e}=this.state,se;if(_e===void 0)if(s===void 0){a();return}else se=s;else _e!==void 0&&s===void 0?se=_e:se=Buffer.concat([_e,s]);if(he===!1)if(c===!1)this.state.bomSkipped=!0;else if(se.length<3){if(n===!1){this.state.previousBuf=se;return}}else{for(let xe in iA)if(iA[xe].compare(se,0,iA[xe].length)===0){let Cn=iA[xe].length;this.state.bufBytesStart+=Cn,se=se.slice(Cn);let uo=nA({...this.original_options,encoding:xe});for(let Xe in uo)this.options[Xe]=uo[Xe];({comment:B,escape:N,quote:S}=this.options);break}this.state.bomSkipped=!0}let tr=se.length,z;for(z=0;z<tr&&!this.__needMoreData(z,tr,n);z++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&U.length===0&&this.__autoDiscoverRecordDelimiter(se,z)&&(U=this.options.record_delimiter);let xe=se[z];if(h===!0&&Te.append(xe),(xe===$De||xe===JDe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(se,z,xe)&&z+N.length<tr)if(Ae){if(this.__isQuote(se,z+N.length)){this.state.escaping=!0,z+=N.length-1;continue}}else{this.state.escaping=!0,z+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(se,z))if(this.state.quoting===!0){let Xe=se[z+S.length],In=C&&this.__isCharTrimable(se,z+S.length),Gr=B!==null&&this.__compareBytes(B,se,z+S.length,Xe),la=this.__isDelimiter(se,z+S.length,Xe),Fm=U.length===0?this.__autoDiscoverRecordDelimiter(se,z+S.length):this.__isRecordDelimiter(Xe,se,z+S.length);if(N!==null&&this.__isEscape(se,z,xe)&&this.__isQuote(se,z+N.length))z+=N.length-1;else if(!Xe||la||Fm||Gr||In){this.state.quoting=!1,this.state.wasQuoting=!0,z+=S.length-1;continue}else if(g===!1){let r_=this.__error(new me("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Xe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(r_!==void 0)return r_}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),z+=S.length-1}else if(this.state.field.length!==0){if(g===!1){let Xe=this.__infoField(),In=Object.keys(iA).map(la=>iA[la].equals(this.state.field.toString())?la:!1).filter(Boolean)[0],Gr=this.__error(new me("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Xe.column)} at line ${Xe.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,In?`(${In} bom)`:void 0],this.options,Xe,{field:this.state.field}));if(Gr!==void 0)return Gr}}else{this.state.quoting=!0,z+=S.length-1;continue}if(this.state.quoting===!1){let Xe=this.__isRecordDelimiter(xe,se,z);if(Xe!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),z+=Xe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,z+=Xe-1;continue}this.info.bytes=this.state.bufBytesStart+z;let la=this.__onField();if(la!==void 0)return la;this.info.bytes=this.state.bufBytesStart+z+Xe;let Fm=this.__onRecord(i);if(Fm!==void 0)return Fm;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,z+=Xe-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,se,z,xe)!==0){this.state.commenting=!0;continue}let In=this.__isDelimiter(se,z,xe);if(In!==0){this.info.bytes=this.state.bufBytesStart+z;let Gr=this.__onField();if(Gr!==void 0)return Gr;z+=In-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new me("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Cn=p===!1||thi Line truncated
`+s(i)+n(i),c=(0,G3.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===te.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>YE(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=zE(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=VE(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:bbe,async sendRequest(i,a){return e(i),a(i)}}}o(ZN,"storageSharedKeyCredentialPolicy");var Qbe="storageRequestFailureDetailsParserPolicy";function H3(){return{name:Qbe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(H3,"storageRequestFailureDetailsParserPolicy");var z3=require("node:crypto");var JE=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,z3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var WE="12.31.0",jE="2026-02-06";var KE="https://storage.azure.com/.default",Yi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var An="",eS="*",xbe=1*1024*1024;var Nbe=4*xbe;var V3="AES256",$3="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Y3=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],J3=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],W3="BlobUsesCustomerSpecifiedEncryption",j3="BlobDoesNotUseCustomerSpecifiedEncryption",K3=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ji(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Ji,"isPipelineLike");var Tp=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function At(t,e={}){t||(t=new Ve);let r=new Tp([],e);return r._credential=t,r}o(At,"newPipeline");function Sbe(t){let e=[Rbe,X3,Tbe,Pbe,vbe,kbe,_be];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Dbe(n));return{wrappedPolicies:RN(r),afterRetry:s}}}}o(Sbe,"processDownlevelPipeline");function tS(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?TN(e):XN(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${WE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=dp({...r,loggingOptions:{additionalAllowedHeaderNames:Y3,additionalAllowedQueryParameters:J3,logger:OE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:ME,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:jN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:iN}),n.addPolicy(U3()),n.addPolicy(q3(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new fn(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(Sxe,"generateBlobSASQueryParameters20150405");function Rxe(t,e){if(t=Ec(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?hn(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(Rxe,"generateBlobSASQueryParameters20181109");function Txe(t,e){if(t=Ec(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?hn(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(Txe,"generateBlobSASQueryParameters20201206");function Pxe(t,e){if(t=Ec(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(Pxe,"generateBlobSASQueryParametersUDK20181109");function vxe(t,e){if(t=Ec(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(vxe,"generateBlobSASQueryParametersUDK20200210");function kxe(t,e){if(t=Ec(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(kxe,"generateBlobSASQueryParametersUDK20201206");function Dxe(t,e){if(t=Ec(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",gc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?hn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new fn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(Dxe,"generateBlobSASQueryParametersUDK20250705");function gc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(gc,"getCanonicalName");function Ec(t){let e=t.version?t.version:jE;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Ec,"SASSignatureValuesSanityCheckAndAutofill");var Gp=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Au()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==An||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==An||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-acquireLease",r,async s=>Y(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==An||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==An||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Y(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==An||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==An||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-releaseLease",e,async r=>Y(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==An||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==An||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar Line truncated
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"}};Pu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bc=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Bc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Xp=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var z0e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},VP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);re(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function t8(t,e,r){return z0e(this,void 0,void 0,function*(){var s;let n=new to(t),i=n.getBlockBlobClient(),a=new VP((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),w(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new tC(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw It(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(t8,"uploadCacheArchiveSDK");var s8=b(require("buffer"),1),Ai=b(require("fs"),1),n8=b(require("stream"),1),i8=b(require("util"),1);var rC=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function sC(t){return t?t>=200&&t<300:!1}o(sC,"isSuccessStatusCode");function V0e(t){return t?t>=500:!0}o(V0e,"isServerErrorStatusCode");function $0e(t){return t?[Xe.BadGateway,Xe.ServiceUnavailable,Xe.GatewayTimeout].includes(t):!1}o($0e,"isRetryableStatusCode");function Y0e(t){return rC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Y0e,"sleep");function r8(t,e,r){return rC(this,arguments,void 0,function*(s,n,i,a=xg,c=Ng,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!V0e(p)))return d;if(p&&(m=$0e(p),u=`Cache service responded with ${p}`),w(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){w(`${s} - Error is not retryable`);break}yield Y0e(c),A++}throw Error(`${s} failed: ${u}`)})}o(r8,"retry");function Zp(t,e){return rC(this,arguments,void 0,function*(r,s,n=xg,i=Ng){return yield r8(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Mn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Zp,"retryTypedResponse");function vu(t,e){return rC(this,arguments,void 0,function*(r,s,n=xg,i=Ng){return yield r8(r,s,a=>a.message.statusCode,n,i)})}o(vu,"retryHttpClientResponse");var Ms=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function J0e(t,e){return Ms(this,void 0,void 0,function*(){yield i8.promisify(n8.pipeline)(t.message,e)})}o(J0e,"pipeResponseToStream");var nC=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,w(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receive Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])w(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(tNe,"printCachesListForDiagnostics");function jP(t,e,r){return Or(this,void 0,void 0,function*(){let s=new E8.URL(t),n=l8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield a8(t,e,n):n.concurrentBlobDownloads?yield o8(t,e,n):yield iC(t,e):yield iC(t,e)})}o(jP,"downloadCache");function C8(t,e,r){return Or(this,void 0,void 0,function*(){let s=WP(),n=ru(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Zp("reserveCache",()=>Or(this,void 0,void 0,function*(){return s.postJson(tm("caches"),i)}))})}o(C8,"reserveCache");function g8(t,e){return`bytes ${t}-${e}/*`}o(g8,"getContentRange");function rNe(t,e,r,s,n){return Or(this,void 0,void 0,function*(){w(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${g8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":g8(s,n)},a=yield vu(`uploadChunk (start: ${s}, end: ${n})`,()=>Or(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!sC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(rNe,"uploadChunk");function sNe(t,e,r,s){return Or(this,void 0,void 0,function*(){let n=Ln(r),i=tm(`caches/${e.toString()}`),a=ku.openSync(r,"r"),c=$P(s),l=y0("uploadConcurrency",c.uploadConcurrency),u=y0("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];w("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Or(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield rNe(t,i,()=>ku.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),m,h)}})))}finally{ku.closeSync(a)}})}o(sNe,"uploadFile");function nNe(t,e,r){return Or(this,void 0,void 0,function*(){let s={size:r};return yield Zp("commitCache",()=>Or(this,void 0,void 0,function*(){return t.postJson(tm(`caches/${e.toString()}`),s)}))})}o(nNe,"commitCache");function KP(t,e,r,s){return Or(this,void 0,void 0,function*(){if($P(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield t8(r,e,s)}else{let i=WP();w("Upload cache"),yield sNe(i,t,e,s),w("Commiting cache");let a=Ln(e);re(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield nNe(i,t,a);if(!sC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);re("Cache saved successfully")}})}o(KP,"saveCache");var m5=b(a5(),1),mt=b(pt(),1),ds=b(pt(),1),Nc=b(pt(),1),Sc=b(pt(),1),Rc=b(pt(),1);var Vv=b(pt(),1),$v=b(pt(),1),A5=b(pt(),1),d5=b(pt(),1),p5=b(pt(),1);var Gv=b(pt(),1),Hv=b(pt(),1),c5=b(pt(),1),l5=b(pt(),1),u5=b(pt(),1);var zv=class extends u5.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,l5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,c5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){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 ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?Hv.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Gv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Gv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Hv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},$C=new zv;var Yv=class extends p5.MessageType{static{o(this,"CacheMetadata$Type")}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:o(()=>$C,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,d5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,A5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push($C.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?$v.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Vv.WireTyp Line truncated
`));let{commands:s}=yield g5(r,"create");yield y5(s,t)})}o(uk,"createTar");var Wu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},yn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Tc=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Ak="cache write denied:",jC=class t extends Tc{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},I5=Sg,KC=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},XC=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function B5(t){if(!t||t.length===0)throw new yn("Path Validation Error: At least one directory or file path is required")}o(B5,"checkPaths");function dk(t){if(t.length>512)throw new yn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new yn(`Key Validation Error: ${t} cannot contain commas.`)}o(dk,"checkKey");function pk(){return em()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(pk,"isFeatureAvailable");function w5(t,e,r,s){return Wu(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=em();w(`Cache service version: ${u}`),B5(n);let A=JP();if(!A8(A)){re(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),w(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield yRe(n,i,a,c,l):yield ERe(n,i,a,c,l)})}o(w5,"restoreCache");function ERe(t,e,r,s){return Wu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let A=[i,...a];if(w("Resolved Keys:"),w(JSON.stringify(A)),A.length>10)throw new yn("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)dk(m);let d=yield Zd(),p="";try{let m;try{m=yield y8(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let C=(u=f?.message)!==null&&u!==void 0?u:"";throw C.includes(I5)?new KC(C):f}if(!m?.archiveLocation)return;if(c?.lookupOnly)return re("Lookup only - skipping download"),m.cacheKey;p=gm.join(yield ja(),Go(d)),w(`Archive Path: ${p}`),yield jP(m.archiveLocation,p,c),za()&&(yield fm(p,d));let h=Ln(p);return re(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield lk(p,d),re("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===yn.name)throw m;h instanceof Mn&&typeof h.statusCode=="number"&&h.statusCode>=500?$l(`Failed to restore: ${m.message}`):It(`Failed to restore: ${m.message}`)}finally{try{yield Xd(p)}catch(m){w(`Failed to delete archive: ${m}`)}}})}o(ERe,"restoreCacheV1");function yRe(t,e,r,s){return Wu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(w("Resolved Keys:"),w(JSON.stringify(A)),A.length>10)throw new yn("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)dk(p);let d="";try{let p=ak(),m=yield Zd(),h={key:i,restoreKeys:a,version:ru(n,m,l)},f;try{f=yield p.GetCacheEntryDownloadURL(h)}catch(y){let I=(u=y?.message)!==null&&u!==void 0?u:"";throw I.includes(I5)?new KC(I):y}if(!f.ok){w(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?re(`Cache hit for restore-key: ${f.matchedKey}`):re(`Cache hit for: ${f.matchedKey}`),c?.lookupOnly)return re("Lookup only - skipping download"),f.matchedKey;d=gm.join(yield ja(),Go(m)),w(`Archive path: ${d}`),w(`Starting download of archive to: ${d}`),yield jP(f.signedDownloadUrl,d,c);let E=Ln(d);return re(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),za()&&(yield fm(d,m)),yield lk(d,m),re("Cache restored successfully"),f.matchedKey}catch(p){let m=p;if(m.name===yn.name)throw p;m instanceof Mn&&typeof m.statusCode=="number"&&m.statusCode>=500?$l(`Failed to restore: ${p.message}`):It(`Failed to restore: ${p.message}`)}finally{try{d&&(yield Xd(d))}catch(p){w(`Failed to delete archive: ${p}`)}}})}o(yRe,"restoreCacheV2");function mk(t,e,r){return Wu(this,arguments,void 0,function*(s,n,i,a=!1){let c=em();w(`Cache service version: ${c}`),B5(s),dk(n);let l=JP();return d8(l)?c==="v2"?yield IRe(s,n,i,a):yield CRe(s,n,i,a):(re(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),w(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(mk,"saveCache");function CRe(t,e,r){return Wu(this,argume Line truncated
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:A,from_line:d,ltrim:p,max_record_size:m,raw:h,relax_quotes:f,rtrim:C,skip_empty_lines:E,to:y,to_line:I}=this.options,{comment:B,escape:N,quote:S,record_delimiter:U}=this.options,{bomSkipped:Ie,delimiterDiscovered:je,delimiterBufPrevious:Pe,rawBuffer:ke,escapeIsQuote:de}=this.state;if(!je&&u){let Ne;if(Pe===void 0?Ne=s:Pe!==void 0&&s===void 0?Ne=Pe:Ne=Buffer.concat([Pe,s]),s=void 0,n||Ne.length>u.size)this.options.delimiter=[Buffer.from(GK(Ne,this.options.delimiter_auto))],this.state.previousBuf=Ne,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ne;return}}let{previousBuf:gt}=this.state,ce;if(gt===void 0)if(s===void 0){a();return}else ce=s;else gt!==void 0&&s===void 0?ce=gt:ce=Buffer.concat([gt,s]);if(Ie===!1)if(c===!1)this.state.bomSkipped=!0;else if(ce.length<3){if(n===!1){this.state.previousBuf=ce;return}}else{for(let Ne in mA)if(mA[Ne].compare(ce,0,mA[Ne].length)===0){let Ao=mA[Ne].length;this.state.bufBytesStart+=Ao,ce=ce.slice(Ao);let Hm=pA({...this.original_options,encoding:Ne});for(let bt in Hm)this.options[bt]=Hm[bt];({comment:B,escape:N,quote:S}=this.options);break}this.state.bomSkipped=!0}let js=ce.length,z;for(z=0;z<js&&!this.__needMoreData(z,js,n);z++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&U.length===0&&this.__autoDiscoverRecordDelimiter(ce,z)&&(U=this.options.record_delimiter);let Ne=ce[z];if(h===!0&&ke.append(Ne),(Ne===Z_e||Ne===eLe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(ce,z,Ne)&&z+N.length<js)if(de){if(this.__isQuote(ce,z+N.length)){this.state.escaping=!0,z+=N.length-1;continue}}else{this.state.escaping=!0,z+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ce,z))if(this.state.quoting===!0){let bt=ce[z+S.length],da=C&&this.__isCharTrimable(ce,z+S.length),Bi=B!==null&&this.__compareBytes(B,ce,z+S.length,bt),pa=this.__isDelimiter(ce,z+S.length,bt),zm=U.length===0?this.__autoDiscoverRecordDelimiter(ce,z+S.length):this.__isRecordDelimiter(bt,ce,z+S.length);if(N!==null&&this.__isEscape(ce,z,Ne)&&this.__isQuote(ce,z+N.length))z+=N.length-1;else if(!bt||pa||zm||Bi||da){this.state.quoting=!1,this.state.wasQuoting=!0,z+=S.length-1;continue}else if(f===!1){let A_=this.__error(new me("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(A_!==void 0)return A_}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),z+=S.length-1}else if(this.state.field.length!==0){if(f===!1){let bt=this.__infoField(),da=Object.keys(mA).map(pa=>mA[pa].equals(this.state.field.toString())?pa:!1).filter(Boolean)[0],Bi=this.__error(new me("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,da?`(${da} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Bi!==void 0)return Bi}}else{this.state.quoting=!0,z+=S.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ne,ce,z);if(bt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),z+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,z+=bt-1;continue}this.info.bytes=this.state.bufBytesStart+z;let pa=this.__onField();if(pa!==void 0)return pa;this.info.bytes=this.state.bufBytesStart+z+bt;let zm=this.__onRecord(i);if(zm!==void 0)return zm;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,z+=bt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,ce,z,Ne)!==0){this.state.commenting=!0;continue}let da=this.__isDelimiter(ce,z,Ne);if(da!==0){this.info.bytes=this.state.bufBytesStart+z;let Bi=this.__onField();if(Bi!==void 0)return Bi;z+=da-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new me("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ao=p===!1||thi Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var PK=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=JI(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var ao=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Fl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=PK(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Fl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await Nr("powershell",!0),n=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${n}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return kK.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return vD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return vD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return DK.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=Rm.default.resolve(e);return Rm.default.resolve(r).startsWith(s.endsWith(Rm.default.sep)?s:`${s}${Rm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var vm=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Tm.default.join(_K.default.homedir(),".docker")}static configFile(){let e=Tm.default.join(t.configDir,"config.json");if(PD.default.existsSync(e))return JSON.parse(PD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Nr("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${s}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var LX=w(require("crypto"),1);var WI=require("fs"),FK=require("os");var oA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,WI.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,WI.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${FK.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var LD=w(HK(),1),zK=w(kl(),1);var a_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function VK(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(VK,"getAuthString");function YK(t){return new LD.HttpClient().getAgent(t)}o(YK,"getProxyAgent");function c_e(t){return new LD.HttpClient().getAgentDispatcher(t)}o(c_e,"getProxyAgentDispatcher");function $K(t){let e=c_e(t);return o((s,n)=>a_e(this,void 0,void 0,function*(){return(0,zK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o($K,"getProxyFetch");function JK(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(JK,"getApiBaseUrl");function MD(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}o(MD,"getUserAgentWithOrchestrationId");function aa(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(aa,"getUserAgent");function rB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>rB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}o(rB,"register");function WK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=o((i,a)=>Promise.resolve().then(n.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(s=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,n(c,a))).then(()=>c)},"hook")),e==="error"&&(s=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>n(c,a)),"hook")),t.registry[r].push({hook:s,orig:n})}o(WK,"addHook");function jK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}o(jK,"removeHook");var KK=Function.bind,XK=KK.bind(KK);function ZK(t,e,r){let s=XK(jK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=XK(WK,null).apply(null,i)})}o(ZK,"bindApi");function u_e(){let t=Symbol("Singular"),e={registry:{}},r=rB.bind(null,e,t);return ZK(r,e,t),r}o(u_e,"Singular");function A_e(){let t={registry:{}},e=rB.bind(null,t);return ZK(e,t),e}o(A_e,"Co Line truncated
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var zK=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=eB(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var co=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Vl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=zK(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Vl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await Nr("powershell",!0),n=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${n}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return VK.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return UD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return UD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return $K.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=Dm.default.resolve(e);return Dm.default.resolve(r).startsWith(s.endsWith(Dm.default.sep)?s:`${s}${Dm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Lm=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||_m.default.join(YK.default.homedir(),".docker")}static configFile(){let e=_m.default.join(t.configDir,"config.json");if(qD.default.existsSync(e))return JSON.parse(qD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Nr("docker",!0).then(e=>(w(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(w(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var JX=b(require("crypto"),1);var tB=require("fs"),jK=require("os");var hA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,tB.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,tB.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${jK.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var VD=b(tX(),1),rX=b(Ul(),1);var pLe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function sX(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(sX,"getAuthString");function nX(t){return new VD.HttpClient().getAgent(t)}o(nX,"getProxyAgent");function mLe(t){return new VD.HttpClient().getAgentDispatcher(t)}o(mLe,"getProxyAgentDispatcher");function iX(t){let e=mLe(t);return o((s,n)=>pLe(this,void 0,void 0,function*(){return(0,rX.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o(iX,"getProxyFetch");function oX(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(oX,"getApiBaseUrl");function $D(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}o($D,"getUserAgentWithOrchestrationId");function ua(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(ua,"getUserAgent");function cB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>cB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}o(cB,"register");function aX(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=o((i,a)=>Promise.resolve().then(n.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(s=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,n(c,a))).then(()=>c)},"hook")),e==="error"&&(s=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>n(c,a)),"hook")),t.registry[r].push({hook:s,orig:n})}o(aX,"addHook");function cX(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}o(cX,"removeHook");var lX=Function.bind,uX=lX.bind(lX);function AX(t,e,r){let s=uX(cX,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=uX(aX,null).apply(null,i)})}o(AX,"bindApi");function fLe(){let t=Symbol("Singular"),e={registry:{}},r=cB.bind(null,e,t);return AX(r,e,t),r}o(fLe,"Singular");function gLe(){let t={registry:{}},e=cB.bind(null,t);return AX(e,t),e}o(gLe,"Co Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(U_e,"_buildMessageForResponseErrors");var q_e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(U_e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},G_e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],H_e=["query","method","url"],IX=/\/api\/v3\/?$/;function z_e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(H_e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>G_e.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return IX.test(i)&&(n.url=i.replace(IX,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new q_e(n,c,a.data)}return a.data.data})}o(z_e,"graphql");function HD(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>z_e(r,n,i),"newApi"),{defaults:HD.bind(null,r),endpoint:r.endpoint})}o(HD,"withDefaults");var OAt=HD(_m,{headers:{"user-agent":`octokit-graphql.js/${O_e} ${aa()}`},method:"POST",url:"/graphql"});function BX(t){return HD(t,{method:"POST",url:"/graphql"})}o(BX,"withCustomRequest");var zD="(?:[a-zA-Z0-9_-]+)",wX="\\.",bX=new RegExp(`^${zD}${wX}${zD}${wX}${zD}$`),V_e=bX.test.bind(bX);async function Y_e(t){let e=V_e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(Y_e,"auth");function $_e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o($_e,"withAuthorizationPrefix");async function J_e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=$_e(t),e(n)}o(J_e,"hook");var QX=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Y_e.bind(null,e),{hook:J_e.bind(null,e)})},"createTokenAuth2");var VD="7.0.6";var xX=o(()=>{},"noop"),W_e=console.warn.bind(console),j_e=console.error.bind(console);function K_e(t={}){return typeof t.debug!="function"&&(t.debug=xX),typeof t.info!="function"&&(t.info=xX),typeof t.warn!="function"&&(t.warn=W_e),typeof t.error!="function"&&(t.error=j_e),t}o(K_e,"createLogger");var NX=`octokit-core.js/${VD} ${aa()}`,oB=class{static{o(this,"Octokit")}static VERSION=VD;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new eX.Collection,s={baseUrl:_m.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${NX}`:NX,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=_m.defaults(s),this.graphql=BX(this.request).defaults(s),this.log=K_e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=QX(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var YD="17.0.0";var X_e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerF Line truncated
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===A){c.push({title:d,message:p,file:g.path,startLine:m}),h=!0;break}h||b(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};E5(async()=>{let t=Fl("workdir"),e=ao.getInputList("files"),r=Fl("target"),s=ao.getInputList("fields"),n=await fd("Parsing definition",async()=>{let i=["buildx","bake"];for(let l of e)i.push("--file",l);r&&i.push(r),i.push("--print");let a=await Oa("docker",i,{ignoreReturnCode:!0,silent:!0,cwd:t});if(a.exitCode!==0)throw new Error(`buildx bake failed with: ${uB.getErrorMessage(a.stderr)}`);let c=JSON.parse(a.stdout.trim());return re(JSON.stringify(c,null,2)),c});await fd("Generating matrix",async()=>{let i=[];for(let[a,c]of Object.entries(n.target)){let l={target:a};if(s.length===0){i.push(l);continue}let u=!1;Object.keys(c).forEach(A=>{if(s.includes(A)){u=!0;let d=c[A];Array.isArray(d)?d.forEach(p=>{l[A]=p,i.push({...l})}):(l[A]=d,i.push({...l}))}}),u||i.push(l)}re(JSON.stringify(i,null,2)),sG("matrix",JSON.stringify(i))})});
`)}o($Le,"_buildMessageForResponseErrors");var YLe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super($Le(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},JLe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],WLe=["query","method","url"],kX=/\/api\/v3\/?$/;function jLe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(WLe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>JLe.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return kX.test(i)&&(n.url=i.replace(kX,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new YLe(n,c,a.data)}return a.data.data})}o(jLe,"graphql");function XD(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>jLe(r,n,i),"newApi"),{defaults:XD.bind(null,r),endpoint:r.endpoint})}o(XD,"withDefaults");var hpt=XD(Um,{headers:{"user-agent":`octokit-graphql.js/${VLe} ${ua()}`},method:"POST",url:"/graphql"});function DX(t){return XD(t,{method:"POST",url:"/graphql"})}o(DX,"withCustomRequest");var ZD="(?:[a-zA-Z0-9_-]+)",_X="\\.",LX=new RegExp(`^${ZD}${_X}${ZD}${_X}${ZD}$`),KLe=LX.test.bind(LX);async function XLe(t){let e=KLe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(XLe,"auth");function ZLe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(ZLe,"withAuthorizationPrefix");async function eMe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=ZLe(t),e(n)}o(eMe,"hook");var MX=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(XLe.bind(null,e),{hook:eMe.bind(null,e)})},"createTokenAuth2");var e_="7.0.6";var OX=o(()=>{},"noop"),tMe=console.warn.bind(console),rMe=console.error.bind(console);function sMe(t={}){return typeof t.debug!="function"&&(t.debug=OX),typeof t.info!="function"&&(t.info=OX),typeof t.warn!="function"&&(t.warn=tMe),typeof t.error!="function"&&(t.error=rMe),t}o(sMe,"createLogger");var FX=`octokit-core.js/${e_} ${ua()}`,dB=class{static{o(this,"Octokit")}static VERSION=e_;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new dX.Collection,s={baseUrl:Um.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${FX}`:FX,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Um.defaults(s),this.graphql=DX(this.request).defaults(s),this.log=sMe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=MX(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var t_="17.0.0";var nMe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerF Line truncated
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let f of a)if(f.remote||f.path.endsWith(u)&&f.content===A){c.push({title:d,message:p,file:f.path,startLine:m}),h=!0;break}h||w(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};x5(async()=>{let t=Vl("workdir"),e=co.getInputList("files"),r=Vl("target"),s=co.getInputList("fields"),n=await xd("Parsing definition",async()=>{let i=["buildx","bake"];for(let l of e)i.push("--file",l);r&&i.push(r),i.push("--print");let a=await Ha("docker",i,{ignoreReturnCode:!0,silent:!0,cwd:t});if(a.exitCode!==0)throw new Error(`buildx bake failed with: ${fB.getErrorMessage(a.stderr)}`);let c=JSON.parse(a.stdout.trim());return re(JSON.stringify(c,null,2)),c});await xd("Generating matrix",async()=>{let i=[];for(let[a,c]of Object.entries(n.target)){let l={target:a};if(s.length===0){i.push(l);continue}let u=!1;Object.keys(c).forEach(A=>{if(s.includes(A)){u=!0;let d=c[A];Array.isArray(d)?d.forEach(p=>{l[A]=p,i.push({...l})}):(l[A]=d,i.push({...l}))}}),u||i.push(l)}re(JSON.stringify(i,null,2)),dG("matrix",JSON.stringify(i))})});
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}