[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-11-12 02:07:41 +00:00
1 parent 9eee2b3281
commit 463a19cbdb
5 files changed
+249 -243

No files matched your search

Generated Vendored
+149 -147
View File
@@ -1,80 +1,80 @@
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
var VLe=Object.create;var mB=Object.defineProperty;var $Le=Object.getOwnPropertyDescriptor;var jLe=Object.getOwnPropertyNames;var WLe=Object.getPrototypeOf,JLe=Object.prototype.hasOwnProperty;var o=(t,e)=>mB(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),YLe=(t,e)=>{for(var r in e)mB(t,r,{get:e[r],enumerable:!0})},KLe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of jLe(e))!JLe.call(t,i)&&i!==r&&mB(t,i,{get:()=>e[i],enumerable:!(n=$Le(e,i))||n.enumerable});return t};var T=(t,e,r)=>(r=t!=null?VLe(WLe(t)):{},KLe(e||!t||!t.__esModule?mB(r,"default",{value:t,enumerable:!0}):r,t));var h7=g(kA=>{"use strict";var oGt=require("net"),nFe=require("tls"),DP=require("http"),u7=require("https"),iFe=require("events"),aGt=require("assert"),sFe=require("util");kA.httpOverHttp=oFe;kA.httpsOverHttp=aFe;kA.httpOverHttps=cFe;kA.httpsOverHttps=lFe;function oFe(t){var e=new zl(t);return e.request=DP.request,e}o(oFe,"httpOverHttp");function aFe(t){var e=new zl(t);return e.request=DP.request,e.createSocket=d7,e.defaultPort=443,e}o(aFe,"httpsOverHttp");function cFe(t){var e=new zl(t);return e.request=u7.request,e}o(cFe,"httpOverHttps");function lFe(t){var e=new zl(t);return e.request=u7.request,e.createSocket=d7,e.defaultPort=443,e}o(lFe,"httpsOverHttps");function zl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||DP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=f7(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(zl,"TunnelingAgent");sFe.inherits(zl,iFe.EventEmitter);zl.prototype.addRequest=o(function(e,r,n,i){var s=this,a=QP({request:e},s.options,f7(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");zl.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=QP({},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")),id("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){id("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){id("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 id("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),id(`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");zl.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 d7(t,e){var r=this;zl.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=QP({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=nFe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(d7,"createSecureSocket");function f7(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(f7,"toOptions");function QP(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(QP,"mergeOptions");var id;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?id=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"):id=o(function(){},"debug");kA.debug=id});var PA=g((uGt,p7)=>{p7.exports=h7()});var cr=g((dGt,A7)=>{A7.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((fGt,U7)=>{"use strict";var m7=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[m7]===!0}[m7]=!0},g7=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),kP=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[g7]===!0}[g7]=!0},y7=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),PP=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[y7]===!0}[y7]=!0},E7=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),OP=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[E7]===!0}[E7]=!0},C7=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),LP=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(ZX,"isValidHeaderValue");function BUe(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(lUe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(BUe,"setRequestReferrerPolicyOnRedirect");function xUe(){return"allowed"}o(xUe,"crossOriginResourcePolicyCheck");function vUe(){return"success"}o(vUe,"corsCheck");function NUe(){return"success"}o(NUe,"TAOCheck");function RUe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(RUe,"appendFetchMetadata");function _Ue(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&&RO(t.origin)&&!RO(IC(t))&&(e=null);break;case"same-origin":qB(t,IC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(_Ue,"appendRequestOriginHeader");function VA(t,e){return t}o(VA,"coarsenTime");function TUe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:VA(t.domainLookupStartTime,r),domainLookupEndTime:VA(t.domainLookupEndTime,r),connectionStartTime:VA(t.connectionStartTime,r),connectionEndTime:VA(t.connectionEndTime,r),secureConnectionStartTime:VA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(TUe,"clampAndCoarsenConnectionTimingInfo");function DUe(t){return VA(pUe.now(),t)}o(DUe,"coarsenedSharedCurrentTime");function QUe(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(QUe,"createOpaqueTimingInfo");function eZ(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(eZ,"makePolicyContainer");function kUe(t){return{referrerPolicy:t.referrerPolicy}}o(kUe,"clonePolicyContainer");function PUe(t){let e=t.referrerPolicy;Kf(e);let r=null;if(t.referrer==="client"){let c=WX();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=NO(r),i=NO(r,!0);n.toString().length>4096&&(n=i);let s=qB(t,n),a=wC(n)&&!wC(t.url);switch(e){case"origin":return i??NO(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=IC(t);return qB(n,c)?n:wC(n)&&!wC(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(PUe,"determineRequestsReferrer");function NO(t,e){return Kf(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(NO,"stripURLForReferrer");function wC(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(wC,"isURLPotentiallyTrustworthy");function OUe(t,e){if(UB===void 0)return!0;let r=tZ(e);if(r==="no metadata"||r.length===0)return!0;let n=FUe(r),i=MUe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=UB.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)),UUe(l,c))return!0}return!1}o(OUe,"bytesMatch");var LUe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function tZ(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=LUe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();YX.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(tZ,"parseMetadata");function FUe(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(FUe,"getStrongestMetadata");function MUe(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(MUe,"filterMetadataListByAlgorithm");function UUe(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(UUe,"compareBase64Mixed");function qUe(t){}o(qUe,"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 Bqe(t,e){HB(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&&zB(t,bqe,s)||s.position===t.length-4&&zB(t,wqe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=xqe(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=pqe(Buffer.from(h)),HB(pZ(l)),HB(typeof p=="string"&&pZ(p)||mqe(p)),i.push(gqe(l,p,u))}}o(Bqe,"multipartFormDataParser");function xqe(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=jA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=OO(a,!0,!0,c=>c===9||c===32),!Aqe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,jA(c=>c===32||c===9,t,e),hqe(a)){case"content-disposition":{if(r=n=null,!zB(t,Cqe,e)||(e.position+=17,r=gZ(t,e),r===null))return"failure";if(zB(t,mZ,e)){let c=e.position+mZ.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=gZ(t,e),n===null))return"failure"}break}case"content-type":{let c=jA(l=>l!==10&&l!==13,t,e);c=OO(c,!1,!0,l=>l===9||l===32),i=AZ(c);break}case"content-transfer-encoding":{let c=jA(l=>l!==10&&l!==13,t,e);c=OO(c,!1,!0,l=>l===9||l===32),s=AZ(c);break}default:jA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(xqe,"parseMultipartFormDataHeaders");function gZ(t,e){HB(t[e.position-1]===34);let r=jA(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(gZ,"parseMultipartFormDataName");function jA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(jA,"collectASequenceOfBytes");function OO(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(OO,"removeChars");function zB(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(zB,"bufferStartsWith");yZ.exports={multipartFormDataParser:Bqe,validateBoundary:Sqe}});var YA=g((XGt,RZ)=>{"use strict";var xC=st(),{ReadableStreamFrom:vqe,isBlobLike:CZ,isReadableStreamLike:Nqe,readableStreamClose:Rqe,createDeferredPromise:_qe,fullyReadBody:Tqe,extractMimeType:Dqe,utf8DecodeBytes:IZ}=vs(),{FormData:bZ}=BC(),{kState:JA}=sd(),{webidl:Qqe}=qn(),{Blob:kqe}=require("node:buffer"),LO=require("node:assert"),{isErrored:SZ,isDisturbed:Pqe}=require("node:stream"),{isArrayBuffer:Oqe}=require("node:util/types"),{serializeAMimeType:Lqe}=Ki(),{multipartFormDataParser:Fqe}=EZ(),FO;try{let t=require("node:crypto");FO=o(e=>t.randomInt(0,e),"random")}catch{FO=o(t=>Math.floor(Math.random(t)),"random")}var VB=new TextEncoder;function Mqe(){}o(Mqe,"noop");var BZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,xZ;BZ&&(xZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Pqe(e)&&!SZ(e)&&e.cancel("Response object has been garbage collected").catch(Mqe)}));function vZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:CZ(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?VB.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Rqe(l))},start(){},type:"bytes"}),LO(Nqe(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(Oqe(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(xC.isFormDataLike(t)){let l=`----formdata-undici-0${`${FO(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 m=!1;for(let[E,y]of t)if(typeof y=="string"){let C=kB.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=VB.encode(u+`; name="${d(f(E))}"\r
\r
${f(y)}\r
`);h.push(C),s+=C.byteLength}else{let C=kB.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
`);h.push(C),s+=C.byteLength}else{let C=VB.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: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
`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:m=!0}let A=VB.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(CZ(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(xC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vqe(t)}if((typeof i=="string"||xC.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(!SZ(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(vZ,"extractBody");function Uqe(t,e=!1){return t instanceof ReadableStream&&(LO(!xC.isDisturbed(t),"The body has already been consumed."),LO(!t.locked,"The stream is locked.")),vZ(t,e)}o(Uqe,"safelyExtractBody");function qqe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(qqe,"cloneBody");function Gqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Gqe,"throwIfAborted");function Hqe(t){return{blob(){return WA(this,r=>{let n=wZ(this);return n===null?n="":n&&(n=Lqe(n)),new kqe([r],{type:n})},t)},arrayBuffer(){return WA(this,r=>new Uint8Array(r).buffer,t)},text(){return WA(this,IZ,t)},json(){return WA(this,Vqe,t)},formData(){return WA(this,r=>{let n=wZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Fqe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new bZ;return s[JA]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new bZ;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 WA(this,r=>new Uint8Array(r),t)}}}o(Hqe,"bodyMixinMethods");function zqe(t){Object.assign(t.prototype,Hqe(t))}o(zqe,"mixinBody");async function WA(t,e,r){if(Qqe.brandCheck(t,r),NZ(t))throw new TypeError("Body is unusable: Body has already been read");Gqe(t[JA]);let n=_qe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[JA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await Tqe(t[JA].body,s,i),n.promise)}o(WA,"consumeBody");function NZ(t){let e=t[JA].body;return e!=null&&(e.stream.locked||xC.isDisturbed(e.stream))}o(NZ,"bodyUnusable");function Vqe(t){return JSON.parse(IZ(t))}o(Vqe,"parseJSONFromBytes");function wZ(t){let e=t[JA].headersList,r=Dqe(e);return r==="failure"?null:r}o(wZ,"bodyMimeType");RZ.exports={extractBody:vZ,safelyExtractBody:Uqe,cloneBody:qqe,mixinBody:zqe,streamRegistry:xZ,hasFinalizationRegistry:BZ,bodyUnusable:NZ}});var VZ=g((eHt,zZ)=>{"use strict";var ve=require("node:assert"),_e=st(),{channels:_Z}=LA(),MO=CO(),{RequestContentLengthMismatchError:Xf,ResponseContentLengthMismatchError:TZ,RequestAbortedError:MZ,InvalidArgumentError:$qe,HeadersTimeoutError:jqe,HeadersOverflowError:Wqe,SocketError:KA,InformationalError:XA,BodyTimeoutError:Jqe,HTTPParserError:Yqe,ResponseExceededMaxSizeError:Kqe}=xt(),{kUrl:UZ,kReset:Xi,kClient:JB,kParser:Jt,kBlocking:RC,kRunning:Xr,kPending:qZ,kSize:DZ,kWriting:od,kQueue:ma,kNoRef:vC,kKeepAliveDefaultTimeout:Xqe,kHostHeader:Zqe,kPendingIdx:e3e,kRunningIdx:Ao,kError:Si,kPipelining:YB,kSocket:Zf,kKeepAliveTimeoutValue:XB,kMaxHeadersSize:UO,kKeepAliveMaxTimeout:t3e,kKeepAliveTimeoutThreshold:r3e,kHeadersTimeout:n3e,kBodyTimeout:i3e,kStrictContentLength:HO,kMaxRequests:QZ,kCounter:s3e,kMaxResponseSize:o3e,kOnError:kZ,kResume:Yl,kHTTPContext:GZ}=cr(),Ns=xX(),PZ=Buffer.alloc(0),$B=Buffer[Symbol.species],jB=_e.addListener,a3e=_e.removeAllListeners,eh=Symbol("kIdleSocketValidation"),ZA=Symbol("kIdleSocketValidationTimeout"),jO=Symbol("kSocketUsed"),qO;async function c3e(){let t=process.env.JEST_WORKER_ID?IO():void 0,e;try{e=await WebAssembly.compile(RX())}catch{e=await WebAssembly.compile(t||IO())}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-cc+ac.byteOffset;return Ir.onStatus(new $B(ac.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-cc+ac.byteOffset;return Ir.onHeaderField(new $B(ac.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{ve(Ir.ptr===r);let s=n-cc+ac.byteOffset;return Ir.onHeaderValue(new $B(ac.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-cc+ac.byteOffset;retu Line truncated
`;if(typeof i=="string"?A+=`host: ${i}\r
`:A+=t[kqe],s?A+=`connection: upgrade\r
`:A+=t[Zqe],s?A+=`connection: upgrade\r
upgrade: ${s}\r
`:t[MB]&&!p[Ki]?A+=`connection: keep-alive\r
`:t[YB]&&!p[Xi]?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
`}return _Z.sendHeaders.hasSubscribers&&_Z.sendHeaders.publish({request:e,headers:A,socket:p}),!l||h===0?LZ(m,null,t,e,p,d,A,f):_e.isBuffer(l)?LZ(m,l,t,e,p,d,A,f):_e.isBlobLike(l)?typeof l.stream=="function"?FZ(m,l.stream(),t,e,p,d,A,f):m3e(m,l,t,e,p,d,A,f):_e.isStream(l)?A3e(m,l,t,e,p,d,A,f):_e.isIterable(l)?FZ(m,l,t,e,p,d,A,f):ve(!1),!0}o(p3e,"writeH1");function A3e(t,e,r,n,i,s,a,c){ve(s!==0||r[Xr]===0,"stream body cannot be pipelined");let l=!1,u=new ZB({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 MZ;queueMicrotask(()=>p(m))}},"onClose"),p=o(function(m){if(!l){if(l=!0,ve(i.destroyed||i[od]&&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(A3e,"writeStream");function LZ(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[Ki]=!0)):s===0?i.write(`${a}content-length: 0\r
`,"latin1"),i.write(e),i.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(i[Xi]=!0)):s===0?i.write(`${a}content-length: 0\r
\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
`,"latin1")),n.onRequestSent(),r[Yl]()}catch(l){t(l)}}o(LZ,"writeBuffer");async function m3e(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 Xf;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[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"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[Xi]=!0),r[Yl]()}catch(l){t(l)}}o(m3e,"writeBlob");async function FZ(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[Si]?p(i[Si]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new ZB({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Si])throw i[Si];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(FZ,"writeIterable");var ZB=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[od]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Si])throw r[Si];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[HO])throw new Xf;process.emitWarning(new Xf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Xi]=!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[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
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[Jt].timeout&&r[Jt].timeoutType===em&&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[od]=!1,e[Si])throw e[Si];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[_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
`,"latin1"),r!==null&&i!==r){if(n[HO])throw new Xf;process.emitWarning(new Xf)}e[Jt].timeout&&e[Jt].timeoutType===em&&e[Jt].timeout.refresh&&e[Jt].timeout.refresh(),n[Yl]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[od]=!1,e&&(ve(n[Xr]<=1,"pipeline should only contain this request"),i(e))}};zZ.exports=u3e});var ZZ=g((rHt,XZ)=>{"use strict";var mo=require("node:assert"),{pipeline:g3e}=require("node:stream"),dt=st(),{RequestContentLengthMismatchError:WO,RequestAbortedError:$Z,SocketError:_C,InformationalError:JO}=xt(),{kUrl:ex,kReset:rx,kClient:tm,kRunning:nx,kPending:y3e,kQueue:ad,kPendingIdx:YO,kRunningIdx:ga,kError:Ea,kSocket:Bn,kStrictContentLength:E3e,kOnError:KO,kMaxConcurrentStreams:KZ,kHTTP2Session:ya,kResume:cd,kSize:C3e,kHTTPContext:b3e}=cr(),Kl=Symbol("open streams"),jZ,WZ=!1,tx;try{tx=require("node:http2")}catch{tx={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:w3e,HTTP2_HEADER_METHOD:I3e,HTTP2_HEADER_PATH:S3e,HTTP2_HEADER_SCHEME:B3e,HTTP2_HEADER_CONTENT_LENGTH:x3e,HTTP2_HEADER_EXPECT:v3e,HTTP2_HEADER_STATUS:N3e}}=tx;function R3e(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(R3e,"parseH2Headers");async function _3e(t,e){t[Bn]=e,WZ||(WZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=tx.connect(t[ex],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[KZ]});r[Kl]=0,r[tm]=t,r[Bn]=e,dt.addListener(r,"error",D3e),dt.addListener(r,"frameError",Q3e),dt.addListener(r,"end",k3e),dt.addListener(r,"goaway",P3e),dt.addListener(r,"close",function(){let{[tm]:i}=this,{[Bn]:s}=i,a=this[Bn][Ea]||this[Ea]||new _C("closed",dt.getSocketInfo(s));if(i[ya]=null,i.destroyed){mo(i[y3e]===0);let c=i[ad].splice(i[ga]);for(let l=0;l<c.length;l++){let u=c[l];dt.errorRequest(i,u,a)}}}),r.unref(),t[ya]=r,e[ya]=r,dt.addListener(e,"error",function(i){mo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ea]=i,this[tm][KO](i)}),dt.addListener(e,"end",function(){dt.destroy(this,new _C("other side closed",dt.getSocketInfo(this)))}),dt.addListener(e,"close",function(){let i=this[Ea]||new _C("closed",dt.getSocketInfo(this));t[Bn]=null,this[ya]!=null&&this[ya].destroy(i),t[YO]=t[ga],mo(t[nx]===0),t.emit("disconnect",t[ex],[t],i),t[cd]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return L3e(t,...i)},resume(){T3e(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(_3e,"connectH2");function T3e(t){let e=t[Bn];e?.destroyed===!1&&(t[C3e]===0&&t[KZ]===0?(e.unref(),t[ya].unref()):(e.ref(),t[ya].ref()))}o(T3e,"resumeH2");function D3e(t){mo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bn][Ea]=t,this[tm][KO](t)}o(D3e,"onHttp2SessionError");function Q3e(t,e,r){if(r===0){let n=new JO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bn][Ea]=n,this[tm][KO](n)}}o(Q3e,"onHttp2FrameError");function k3e(){let t=new _C("other side closed",dt.getSocketInfo(this[Bn]));this.destroy(t),dt.destroy(this[Bn],t)}o(k3e,"onHttp2SessionEnd");function P3e(t){let e=this[Ea]||new _C(`HTTP/2: "GOAWAY" frame received with code ${t}`,dt.getSocketInfo(this)),r=this[tm];if(r[Bn]=null,r[b3e]=null,this[ya]!=null&&(this[ya].destroy(e),this[ya]=null),dt.destroy(this[Bn],e),r[ga]<r[ad].length){let n=r[ad][r[ga]];r[ad][r[ga]++]=null,dt.errorRequest(r,n,e),r[YO]=r[ga]}mo(r[nx]===0),r.emit("disconnect",r[ex],[r],e),r[cd]()}o(P3e,"onHTTP2GoAway");function O3e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(O3e,"shouldSendContentLength");function L3e(t,e){let r=t[ya],{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],G=u[B+1];if(Array.isArray(G))for(let N=0;N<G.length;N++)f[P]?f[P]+=`,${G[N]}`:f[P]=G[N];else f[P]=G}let h,{hostname:p,port:m}=t[ex];f[w3e]=s||`${p}${m?`:${m}`:""}`,f[I3e]=n;let A=o(B=>{e.aborted||e.completed||(B=B||new $Z,dt.errorRequest(t,e,B),h!=null&&dt.destroy(h,B),dt.destroy(d,B),t[ad][t[ga]++]=null,t[cd]())},"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[Kl],t[ad][t[ga]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[Kl],t[ad][t[ga]++]=null}),h.once("close",()=>{r[Kl]-=1,r[Kl]===0&&r.unref()}),!0;f[S3e]=i,f[B3e]="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)){jZ??=YA().extractBody;let[B,P]=jZ(d);f["content-type"]=P,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),O3e(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[E3e])return dt.errorRequest(t,e, Line truncated
`,this[lGe]=l??3e5,this[cGe]=i??3e5,this[uGe]=C??!0,this[dGe]=B,this[tL]=G,this[ud]=null,this[mGe]=$>-1?$:-1,this[yGe]=V??100,this[Fr]=null,this[Ca]=[],this[Zl]=0,this[ba]=0,this[kC]=de=>nL(this,de),this[gGe]=de=>dee(this,de)}get pipelining(){return this[ax]}set pipelining(e){this[ax]=e,this[kC](!0)}get[LC](){return this[Ca].length-this[ba]}get[OC](){return this[ba]-this[Zl]}get[PC](){return this[Ca].length-this[Zl]}get[tGe](){return!!this[Fr]&&!this[nm]&&!this[Fr].destroyed}get[eL](){return!!(this[Fr]?.busy(null)||this[PC]>=(uee(this)||1)||this[LC]>0)}[eGe](e){fee(this),this.once("connect",e)}[AGe](e,r){let n=e.origin||this[uc].origin,i=new W3e(n,e,r);return this[Ca].push(i),this[rh]||(th.bodyLength(i.body)==null&&th.isIterable(i.body)?(this[rh]=1,queueMicrotask(()=>nL(this))):this[kC](!0)),this[rh]&&this[dd]!==2&&this[eL]&&(this[dd]=2),this[dd]<2}async[hGe](){return new Promise(e=>{this[PC]?this[ud]=e:e(null)})}async[pGe](e){return new Promise(r=>{let n=this[Ca].splice(this[ba]);for(let s=0;s<n.length;s++){let a=n[s];th.errorRequest(this,a,e)}let i=o(()=>{this[ud]&&(this[ud](),this[ud]=null),r(null)},"callback");this[Fr]?(this[Fr].destroy(e,i),this[Fr]=null):queueMicrotask(i),this[kC]()})}},bGe=ox();function dee(t,e){if(t[OC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Xl(t[ba]===t[Zl]);let r=t[Ca].splice(t[Zl]);for(let n=0;n<r.length;n++){let i=r[n];th.errorRequest(t,i,e)}Xl(t[PC]===0)}}o(dee,"onError");async function fee(t){Xl(!t[nm]),Xl(!t[Fr]);let{host:e,hostname:r,protocol:n,port:i}=t[uc];if(r[0]==="["){let s=r.indexOf("]");Xl(s!==-1);let a=r.substring(1,s);Xl(lee.isIP(a)),r=a}t[nm]=!0,rm.beforeConnect.hasSubscribers&&rm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[ld],localAddress:t[QC]},connector:t[DC]});try{let s=await new Promise((a,c)=>{t[DC]({host:e,hostname:r,protocol:n,port:i,servername:t[ld],localAddress:t[QC]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){th.destroy(s.on("error",aee),new K3e);return}Xl(s);try{t[Fr]=s.alpnProtocol==="h2"?await CGe(t,s):await EGe(t,s)}catch(a){throw s.destroy().on("error",aee),a}t[nm]=!1,s[fGe]=0,s[tL]=t[tL],s[Z3e]=t,s[nGe]=null,rm.connected.hasSubscribers&&rm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[ld],localAddress:t[QC]},connector:t[DC],socket:s}),t.emit("connect",t[uc],[t])}catch(s){if(t.destroyed)return;if(t[nm]=!1,rm.connectError.hasSubscribers&&rm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Fr]?.version,servername:t[ld],localAddress:t[QC]},connector:t[DC],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Xl(t[OC]===0);t[LC]>0&&t[Ca][t[ba]].servername===t[ld];){let a=t[Ca][t[ba]++];th.errorRequest(t,a,s)}else dee(t,s);t.emit("connectionError",t[uc],[t],s)}t[kC]()}o(fee,"connect");function cee(t){t[dd]=0,t.emit("drain",t[uc],[t])}o(cee,"emitDrain");function nL(t,e){t[rh]!==2&&(t[rh]=2,wGe(t,e),t[rh]=0,t[Zl]>256&&(t[Ca].splice(0,t[Zl]),t[ba]-=t[Zl],t[Zl]=0))}o(nL,"resume");function wGe(t,e){for(;;){if(t.destroyed){Xl(t[LC]===0);return}if(t[ud]&&!t[PC]){t[ud](),t[ud]=null;return}if(t[Fr]&&t[Fr].resume(),t[eL])t[dd]=2;else if(t[dd]===2){e?(t[dd]=1,queueMicrotask(()=>cee(t))):cee(t);continue}if(t[LC]===0||t[OC]>=(uee(t)||1))return;let r=t[Ca][t[ba]];if(t[uc].protocol==="https:"&&t[ld]!==r.servername){if(t[OC]>0)return;t[ld]=r.servername,t[Fr]?.destroy(new Y3e("servername changed"),()=>{t[Fr]=null,nL(t)})}if(t[nm])return;if(!t[Fr]){fee(t);return}if(t[Fr].destroyed||t[Fr].busy(r))return;!r.aborted&&t[Fr].write(r)?t[ba]++:t[Ca].splice(t[ba],1)}}o(wGe,"_resume");hee.exports=rL});var iL=g((dHt,pee)=>{"use strict";var cx=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)}};pee.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new cx}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cx),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var mee=g((hHt,Aee)=>{var{kFree:IGe,kConnected:SGe,kPending:BGe,kQueued:xGe,kRunning:vGe,kSize:NGe}=cr(),nh=Symbol("pool"),sL=class{static{o(this,"PoolStats")}constructor(e){this[nh]=e}get connected(){return this[nh][SGe]}get free(){return this[nh][IGe]}get pending(){return this[nh][BGe]}get queued(){return this[nh][xGe]}get running(){return this[nh][vGe]}get size(){return this[nh][NGe]}};Aee.exports=sL});var dL=g((AHt,xee)=>{"use strict";var RGe=qA(),_Ge=iL(),{kConnected:oL,kSize:gee,kRunning:yee,kPending:Eee,kQueued:FC,kBusy:TGe,kFree:DGe,kUrl:QGe,kClose:kGe,kDestroy:PGe,kDispatch:OGe}=cr( Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.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
`.trim())}};Qre.exports=dF});var xx=g((h5t,Fre)=>{"use strict";var Pre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lze}=xt(),uze=om();Lre()===void 0&&Ore(new uze);function Ore(t){if(!t||typeof t.dispatch!="function")throw new lze("Argument agent must implement Agent");Object.defineProperty(globalThis,Pre,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(Ore,"setGlobalDispatcher");function Lre(){return globalThis[Pre]}o(Lre,"getGlobalDispatcher");Fre.exports={setGlobalDispatcher:Ore,getGlobalDispatcher:Lre}});var vx=g((m5t,Mre)=>{"use strict";Mre.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 qre=g((y5t,Ure)=>{"use strict";var dze=sx();Ure.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 dze(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var Hre=g((C5t,Gre)=>{"use strict";var fze=mx();Gre.exports=t=>e=>o(function(n,i){return e(n,new fze({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Vre=g((w5t,zre)=>{"use strict";var hze=st(),{InvalidArgumentError:pze,RequestAbortedError:Aze}=xt(),mze=vx(),fF=class extends mze{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 pze("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=hze.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Aze(`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 gze({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new fF({maxSize:s},i);return e(n,a)},"Intercept")}o(gze,"createDumpInterceptor");zre.exports=gze});var Wre=g((S5t,jre)=>{"use strict";var{isIP:yze}=require("node:net"),{lookup:Eze}=require("node:dns"),Cze=vx(),{InvalidArgumentError:Am,InformationalError:bze}=xt(),$re=Math.pow(2,31)-1,hF=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 bze("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===$re?(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===$re?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 pF(this,e,r)}},pF=class extends Cze{static{o(this,"DNSDispatchHan Line truncated
${a}`;return}if(hv(e,i,k8e)){P8e(e,s)&&(r.retry=e.toString("utf8",s));return}if(hv(e,i,Q8e)){O8e(e,s)&&(r.id=e.toString("utf8",s));return}if(hv(e,i,D8e)){let a=e.toString("utf8",s);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&v8e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&N8e(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===Rm[0]||(this.checkBOM=!1),!0):n===void 0?e===Rm[0]&&r===Rm[1]?!0:(this.checkBOM=!1,!1):(e===Rm[0]&&r===Rm[1]&&n===Rm[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};xse.exports={EventSourceStream:nM}});var Pse=g((vzt,kse)=>{"use strict";var{pipeline:L8e}=require("node:stream"),{fetching:F8e}=XC(),{makeRequest:M8e}=ym(),{webidl:nu}=qn(),{EventSourceStream:U8e}=vse(),{parseMIMEType:q8e}=Ki(),{createFastMessageEvent:G8e}=Sm(),{isNetworkError:Nse}=YC(),{delay:H8e}=tM(),{kEnumerableProperty:Eh}=st(),{environmentSettingsObject:Rse}=vs(),_se=!1,Tse=3e3,fb=0,Dse=1,hb=2,z8e="anonymous",V8e="use-credentials",_m=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#n=!1;#t=fb;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),nu.util.markAsUncloneable(this);let n="EventSource constructor";nu.argumentLengthCheck(arguments,1,n),_se||(_se=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=nu.converters.USVString(e,n,"url"),r=nu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Tse};let i=Rse,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=z8e;r.withCredentials&&(a=V8e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Rse.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=M8e(c),this.#c()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#n}#c(){if(this.#t===hb)return;this.#t=fb;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{Nse(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Nse(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?q8e(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 U8e({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(G8e(l.type,l.options))},"push")});L8e(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error" Line truncated
`).join(`
`+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
`+s),t.push(i+"m+"+vN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=NZe()+e+" "+t[0]}o(vZe,"formatArgs");function NZe(){return Vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(NZe,"getDate");function RZe(...t){return process.stderr.write(xN.format(...t)+`
`)}o(RZe,"log");function _Ze(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(_Ze,"save");function TZe(){return process.env.DEBUG}o(TZe,"load");function DZe(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(DZe,"init");vN.exports=nq()(Vn);var{formatters:_de}=vN.exports;_de.o=function(t){return this.inspectOpts.colors=this.useColors,xN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};_de.O=function(t){return this.inspectOpts.colors=this.useColors,xN.inspect(t,this.inspectOpts)}});var NN=g((yJt,aq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?aq.exports=Bde():aq.exports=Tde()});var kde=g(ss=>{"use strict";var QZe=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]})),kZe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dde=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)&&QZe(e,t,r);return kZe(e,t),e};Object.defineProperty(ss,"__esModule",{value:!0});ss.req=ss.json=ss.toBuffer=void 0;var PZe=Dde(require("http")),OZe=Dde(require("https"));async function Qde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(Qde,"toBuffer");ss.toBuffer=Qde;async function LZe(t){let r=(await Qde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(LZe,"json");ss.json=LZe;function FZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?OZe:PZe).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(FZe,"req");ss.req=FZe});var Fde=g(zs=>{"use strict";var Ode=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]})),MZe=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=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)&&Ode(e,t,r);return MZe(e,t),e},UZe=zs&&zs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ode(e,t,r)};Object.defineProperty(zs,"__esModule",{value:!0});zs.Agent=void 0;var qZe=Lde(require("net")),Pde=Lde(require("http")),GZe=require("https");UZe(kde(),zs);var wc=Symbol("AgentBaseInternalState"),cq=class extends Pde.Agent{static{o(this,"Agent")}constructor(e){super(e),this[wc]={}}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 qZe.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)?GZe.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[wc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[wc].currentSocket;if(this[wc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[wc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[wc]&&(this[wc].defaultPort=e)}get protocol(){return this[wc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[wc]&&(this[wc].protocol=e)}};zs.Agent=cq});var Mde=g(Xm=>{"use strict";var HZe=Xm&&Xm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.parseProxyResponse=void 0;var zZe=HZe(NN()),RN=(0,zZe.default)("https-proxy-agent:parse-proxy-response");function VZe(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(),RN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),RN("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){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(h===-1){RN("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(),G=w.slice(B+1).trimStart(),N=C[P];typeof N=="string"?C[P]=[N,G]:Array.isArray(N)?N.push(G):C[P]=G}RN("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(VZe,"parseProxyResponse");Xm.parseProxyResponse=VZe});var Vde=g(Do=>{"use strict";var $Ze=Do&&Do.__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]})),jZe=Do&&Do.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hde=Do&&Do.__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)&&$Ze(e,t,r);return jZe(e,t),e},zde=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.HttpsProxyAgent=void 0;var _N=Hde(require("net")),Ude=Hde(require("tls")),WZe=zde(require("assert")),JZe=zde(NN()),YZe=Fde(),KZe=require("url"),XZe=Mde(),e0=(0,JZe.default)("https-proxy-agent"),qde=o(t=>t.servername===void 0&&t.host&&!_N.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),TN=class extends YZe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new KZe.URL(e):e,this.proxyHeaders=r?.headers??{},e0("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?Gde(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:"?(e0("Creating `tls.Socket`: %o",this.connectOpts),i=Ude.connect(qde(this.connectOpts))):(e0("Creating `net.Socket`: %o",this.connectOpts),i=_N.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=_N.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,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
`;let l=(0,XZe.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",ZZe),r.secureEndpoint?(e0("Upgrading socket connection to TLS"),Ude.connect({...Gde(qde(r),"host","path","port"),socket:i})):i;i.destroy();let f=new _N.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{e0("Replaying proxy buffer for failed request"),(0,WZe.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};TN.protocols=["http","https"];Do.HttpsProxyAgent=TN;function ZZe(t){t.resume()}o(ZZe,"resume");function Gde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Gde,"omit")});var Wde=g(os=>{"use strict";var eet=os&&os.__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]})),tet=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$de=os&&os.__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)&&eet(e,t,r);return tet(e,t),e};Object.defineProperty(os,"__esModule",{value:!0});os.req=os.json=os.toBuffer=void 0;var ret=$de(require("http")),net=$de(require("https"));async function jde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(jde,"toBuffer");os.toBuffer=jde;async function iet(t){let r=(await jde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(iet,"json");os.json=iet;function set(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?net:ret).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(set,"req");os.req=set});var Xde=g(Vs=>{"use strict";var Yde=Vs&&Vs.__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]})),oet=Vs&&Vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kde=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)&&Yde(e,t,r);return oet(e,t),e},aet=Vs&&Vs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Yde(e,t,r)};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.Agent=void 0;var cet=Kde(require("net")),Jde=Kde(require("http")),uet=require("https");aet(Wde(),Vs);var Ic=Symbol("AgentBaseInternalState"),lq=class extends Jde.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Ic]={}}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 cet.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))?uet.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 Jde.Agent)return c.addRequest(e,i);this[Ic].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Ic].currentSocket;if(this[Ic].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ic].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ic]&&(this[Ic].defaultPort=e)}get protocol(){return this[Ic].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ic]&&(this[Ic].protocol=e)}};Vs.Agent=lq});var tfe=g(Qo=>{"use strict";var det=Qo&&Qo.__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]})),fet=Qo&&Qo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),efe=Qo&&Qo.__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)&&det(e,t,r);return fet(e,t),e},het=Qo&&Qo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.HttpProxyAgent=void 0;var pet=efe(require("net")),Aet=efe(require("tls")),met=het(NN()),get=require("events"),yet=Xde(),Zde=require("url"),Zm=(0,met.default)("http-proxy-agent"),DN=class extends yet.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Zde.URL(e):e,this.proxyHeaders=r?.headers??{},Zm("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?Eet(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 Zde.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;Zm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Zm("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),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
`)+4,e.outputData[0].data=e._header+n.substring(i),Zm("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Zm("Creating `tls.Socket`: %o",this.connectOpts),s=Aet.connect(this.connectOpts)):(Zm("Creating `net.Socket`: %o",this.connectOpts),s=pet.connect(this.connectOpts)),await(0,get.once)(s,"connect"),s}};DN.protocols=["http","https"];Qo.HttpProxyAgent=DN;function Eet(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Eet,"omit")});var Ife=g($N=>{"use strict";Object.defineProperty($N,"__esModule",{value:!0});$N.state=void 0;$N.state={instrumenterImplementation:void 0}});var Ufe=g(KN=>{"use strict";Object.defineProperty(KN,"__esModule",{value:!0});KN.state=void 0;KN.state={operationRequestMap:new WeakMap}});var mAe=g(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});var sot=require("os"),oot=require("util");function aot(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(aot,"_interopDefaultLegacy");var cot=aot(oot);function lot(t,...e){process.stderr.write(`${cot.default.format(t,...e)}${sot.EOL}`)}o(lot,"log");var oAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,cAe,J5=[],Y5=[],y_=[];oAe&&K5(oAe);var lAe=Object.assign(t=>uAe(t),{enable:K5,enabled:X5,disable:uot,log:lot});function K5(t){cAe=t,J5=[],Y5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?Y5.push(new RegExp(`^${n.substr(1)}$`)):J5.push(new RegExp(`^${n}$`));for(let n of y_)n.enabled=X5(n.namespace)}o(K5,"enable");function X5(t){if(t.endsWith("*"))return!0;for(let e of Y5)if(e.test(t))return!1;for(let e of J5)if(e.test(t))return!0;return!1}o(X5,"enabled");function uot(){let t=cAe||"";return K5(""),t}o(uot,"disable");function uAe(t){let e=Object.assign(r,{enabled:X5(t),destroy:dot,log:lAe.log,namespace:t,extend:fot});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),y_.push(e),e}o(uAe,"createDebugger");function dot(){let t=y_.indexOf(this);return t>=0?(y_.splice(t,1),!0):!1}o(dot,"destroy");function fot(t){let e=uAe(`${this.namespace}:${t}`);return e.log=this.log,e}o(fot,"extend");var z0=lAe,dAe=new Set,m_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,E_,C_=z0("azure");C_.log=(...t)=>{z0.log(...t)};var Z5=["verbose","info","warning","error"];m_&&(AAe(m_)?fAe(m_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${m_}'; logging is not enabled. Acceptable values: ${Z5.join(", ")}.`));function fAe(t){if(t&&!AAe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Z5.join(",")}`);E_=t;let e=[];for(let r of dAe)pAe(r)&&e.push(r.namespace);z0.enable(e.join(","))}o(fAe,"setLogLevel");function hot(){return E_}o(hot,"getLogLevel");var aAe={verbose:400,info:300,warning:200,error:100};function pot(t){let e=C_.extend(t);return hAe(C_,e),{error:g_(e,"error"),warning:g_(e,"warning"),info:g_(e,"info"),verbose:g_(e,"verbose")}}o(pot,"createClientLogger");function hAe(t,e){e.log=(...r)=>{t.log(...r)}}o(hAe,"patchLogMethod");function g_(t,e){let r=Object.assign(t.extend(e),{level:e});if(hAe(t,r),pAe(r)){let n=z0.disable();z0.enable(n+","+r.namespace)}return dAe.add(r),r}o(g_,"createLogger");function pAe(t){return!!(E_&&aAe[t.level]<=aAe[E_])}o(pAe,"shouldEnable");function AAe(t){return Z5.includes(t)}o(AAe,"isAzureLogLevel");Cg.AzureLogger=C_;Cg.createClientLogger=pot;Cg.getLogLevel=hot;Cg.setLogLevel=fAe});var rz=g($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});var bg=new WeakMap,b_=new WeakMap,V0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,bg.set(this,[]),b_.set(this,!1)}get aborted(){if(!b_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return b_.get(this)}static get none(){return new t}addEventListener(e,r){if(!bg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");bg.get(this).push(r)}removeEventListener(e,r){if(!bg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=bg.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 gAe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=bg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),b_.set(t,!0)}o(gAe,"abortSignal");var ez=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},tz=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new V0,!!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(){gAe(this._signal)}static timeout(e){let r=new V0,n=setTimeout(gAe,e,r);return typeof n.unref=="function"&&n.unref(),r}};$0.AbortController=tz;$0.AbortError=ez;$0.AbortSignal=V0});var wAe=g(_r=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
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
Polling status: ${xAe.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(zot,"pollOperationHelper");async function _Ae(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 zot({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(NAe({status:w,response:C,state:r,stateProxy:n,isDone:A,processResult:f,getError:h,setErrorAsResult:E}),!xAe.includes(w)){let B=d?.(C);B&&m(B);let P=c?.(C,r);if(P!==void 0){let G=y!==P;r.config.operationLocation=P,u?.(P,G)}else u?.(y,!1)}p?.(r,C)}}o(_Ae,"pollOperation");function TAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(TAe,"getOperationLocationPollingUrl");function DAe(t){return t.headers.location}o(DAe,"getLocationHeader");function QAe(t){return t.headers["operation-location"]}o(QAe,"getOperationLocationHeader");function kAe(t){return t.headers["azure-asyncoperation"]}o(kAe,"getAzureAsyncOperationHeader");function Vot(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(Vot,"findResourceLocation");function PAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=QAe(e),a=kAe(e),c=TAe({operationLocation:s,azureAsyncOperation:a}),l=DAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Vot({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(PAe,"inferLroMode");function OAe(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 hz(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 ip.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(OAe,"transformStatus");function $ot(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return OAe({status:r,statusCode:t.statusCode})}o($ot,"getStatus");function jot(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 OAe({status:s,statusCode:t.statusCode})}o(jot,"getProvisioningState");function hz(t){return t===202?"running":t<300?"succeeded":"failed"}o(hz,"toOperationStatus");function LAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Wot(new Date(e)):r*1e3}}o(LAe,"parseRetryAfter");function FAe(t){let e=t.flatResponse.error;if(!e){ip.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){ip.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(FAe,"getErrorFromResponse");function Wot(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Wot,"calculatePollingIntervalFromDate");function MAe(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 hz(e.rawResponse.statusCode);case"Body":return pz(e,r);default:return"running"}}o(i,"helper");let s=i();return s==="running"&&n===void 0?"succeeded":s}o(MAe,"getStatusFromInitialResponse");async function Jot(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:i,setErrorAsResult:s}=t;return RAe({init:o(async()=>{let a=await i.sendInitialRequest(),c=PAe({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:MAe,setErrorAsResult:s})}o(Jot,"initHttpOperation");function UAe({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(Dat,"base64decode");vg.base64decode=Dat;function Qat(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=Iu[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=Iu[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=Iu[i|n>>6],e+=Iu[n&63],r=0;break}return r&&(e+=Iu[i],e+="=",r==1&&(e+="=")),e}o(Qat,"base64encode");vg.base64encode=Qat});var Eme=g(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0});U_.utf8read=void 0;var Bz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function kat(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(Bz(n)),i=0);return r.length?(i&&r.push(Bz(n.slice(0,i))),r.join("")):Bz(n.slice(0,i))}o(kat,"utf8read");U_.utf8read=kat});var ew=g(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.WireType=Yc.mergeBinaryOptions=Yc.UnknownFieldHandler=void 0;var Pat;(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")})(Pat=Yc.UnknownFieldHandler||(Yc.UnknownFieldHandler={}));function Oat(t,e){return Object.assign(Object.assign({},t),e)}o(Oat,"mergeBinaryOptions");Yc.mergeBinaryOptions=Oat;var Lat;(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"})(Lat=Yc.WireType||(Yc.WireType={}))});var G_=g(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.varint32read=hs.varint32write=hs.int64toString=hs.int64fromString=hs.varint64write=hs.varint64read=void 0;function Fat(){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(Fat,"varint64read");hs.varint64read=Fat;function Mat(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(Mat,"varint64write");hs.varint64write=Mat;var q_=65536*65536;function Uat(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>=q_&&(i=i+(n/q_|0),n=n%q_)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(Uat,"int64fromString");hs.int64fromString=Uat;function qat(t,e){if(e>>>0<=2097151)return""+(q_*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(qat,"int64toString");hs.int64toString=qat;function Gat(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(Gat,"varint32write");hs.varint32write=Gat;function Hat(){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(Hat,"varint32read");hs.varint32read=Hat});var Vd=g(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.PbLong=zd.PbULong=zd.detectBi=void 0;var tw=G_(),Ht;function Cme(){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
`)}};AT.RpcError=Xz});var e4=g(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.mergeRpcOptions=void 0;var Xme=nt();function dlt(t,e){if(!e)return t;let r={};mT(t,r),mT(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=Xme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Xme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mT(t.meta,r.meta),mT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(dlt,"mergeRpcOptions");gT.mergeRpcOptions=dlt;function mT(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(mT,"copy")});var r4=g(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.Deferred=lp.DeferredState=void 0;var Zc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Zc=lp.DeferredState||(lp.DeferredState={}));var t4=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Zc.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!==Zc.PENDING)throw new Error(`cannot resolve ${Zc[this.state].toLowerCase()}`);this._resolve(e),this._state=Zc.RESOLVED}reject(e){if(this.state!==Zc.PENDING)throw new Error(`cannot reject ${Zc[this.state].toLowerCase()}`);this._reject(e),this._state=Zc.REJECTED}resolvePending(e){this._state===Zc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Zc.PENDING&&this.reject(e)}};lp.Deferred=t4});var i4=g(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.RpcOutputStreamController=void 0;var Zme=r4(),up=nt(),n4=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){up.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){up.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){up.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(){up.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;up.assert(e,"bad state"),up.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 Zme.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;up.assert(n.state==Zme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};yT.RpcOutputStreamController=n4});var o4=g(kg=>{"use strict";var flt=kg&&kg.__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(kg,"__esModule",{value:!0});kg.UnaryCall=void 0;var s4=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 flt(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}})}};kg.UnaryCall=s4});var c4=g(Pg=>{"use strict";var hlt=Pg&&Pg.__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(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(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Cpt,"logUnexpecedPropertyAccessOnce");function bpt(){Object.keys(e2).forEach(function(t){delete e2[t]})}o(bpt,"resetLoggedProperties")});var r2=g(il=>{"use strict";il.__esModule=!0;il.HandlebarsEnvironment=NV;function hCe(t){return t&&t.__esModule?t:{default:t}}o(hCe,"_interopRequireDefault");var gp=ui(),wpt=$o(),xV=hCe(wpt),Ipt=wV(),Spt=lCe(),Bpt=SV(),t2=hCe(Bpt),xpt=BV(),vpt="4.7.10";il.VERSION=vpt;var Npt=8;il.COMPILER_REVISION=Npt;var Rpt=7;il.LAST_COMPATIBLE_COMPILER_REVISION=Rpt;var _pt={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"};il.REVISION_CHANGES=_pt;var vV="[object Object]";function NV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Ipt.registerDefaultHelpers(this),Spt.registerDefaultDecorators(this)}o(NV,"HandlebarsEnvironment");NV.prototype={constructor:NV,logger:t2.default,log:t2.default.log,registerHelper:o(function(e,r){if(gp.toString.call(e)===vV){if(r)throw new xV.default("Arg not supported with multiple helpers");gp.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(gp.toString.call(e)===vV)gp.extend(this.partials,e);else{if(typeof r>"u")throw new xV.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(gp.toString.call(e)===vV){if(r)throw new xV.default("Arg not supported with multiple decorators");gp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){xpt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Tpt=t2.default.log;il.log=Tpt;il.createFrame=gp.createFrame;il.logger=t2.default});var ACe=g((n2,pCe)=>{"use strict";n2.__esModule=!0;function RV(t){this.string=t}o(RV,"SafeString");RV.prototype.toString=RV.prototype.toHTML=function(){return""+this.string};n2.default=RV;pCe.exports=n2.default});var mCe=g(_V=>{"use strict";_V.__esModule=!0;_V.wrapHelper=Dpt;function Dpt(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(Dpt,"wrapHelper")});var bCe=g(Jd=>{"use strict";Jd.__esModule=!0;Jd.checkRevision=Fpt;Jd.template=Mpt;Jd.wrapProgram=i2;Jd.resolvePartial=Upt;Jd.invokePartial=qpt;Jd.noop=ECe;function Qpt(t){return t&&t.__esModule?t:{default:t}}o(Qpt,"_interopRequireDefault");function kpt(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(kpt,"_interopRequireWildcard");var Ppt=ui(),yp=kpt(Ppt),Opt=$o(),Ga=Qpt(Opt),Bu=r2(),gCe=wV(),Lpt=mCe(),TV=BV();function Fpt(t){var e=t&&t[0]||1,r=Bu.COMPILER_REVISION;if(!(e>=Bu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Bu.COMPILER_REVISION))if(e<Bu.LAST_COMPATIBLE_COMPILER_REVISION){var n=Bu.REVISION_CHANGES[r],i=Bu.REVISION_CHANGES[e];throw new Ga.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 Ga.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(Fpt,"checkRevision");function Mpt(t,e){if(!e)throw new Ga.default("No environment passed to template");if(!t||!t.main)throw new Ga.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=yp.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&&yp.isFunction(a))throw new Ga.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Ga.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 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
`)}return u}else throw new Ga.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 Ga.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)&&!TV.isPrototypeConstructor(c,l,u)||TV.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:yp.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=i2(this,c,p,l,u,d,f):h||(h=this.programs[c]=i2(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=yp.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=Gpt(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=CCe(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={};yCe(c,e.helpers,i),yCe(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=yp.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=TV.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;gCe.moveHelperToHooks(i,"helperMissing",l),gCe.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ga.default("must pass block params");if(t.useDepths&&!u)throw new Ga.default("must pass parent depths");return i2(i,a,t[a],c,0,l,u)},s}o(Mpt,"template");function i2(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=CCe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(i2,"wrapProgram");function Upt(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=s2(r.partials,t)):r.name==="@partial-block"?t=s2(r.data,"partial-block"):t=s2(r.partials,r.name),t}o(Upt,"resolvePartial");function qpt(t,e,r){var n=s2(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=Bu.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=Bu.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=yp.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Ga.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(qpt,"invokePartial");function ECe(){return""}o(ECe,"noop");function s2(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(s2,"lookupOwnProperty");function Gpt(t,e){return(!e||!("root"in e))&&(e=e?Bu.createFrame(e):{},e.root=t),e}o(Gpt,"initData");function CCe(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),yp.extend(e,a)}return e}o(CCe,"executeDecorators");function yCe(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=Hpt(i,r)})}o(yCe,"addHelpers");function Hpt(t,e){var r=e.lookupProperty;return Lpt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(Hpt,"passLookupPropertyOption")});var DV=g((o2,wCe)=>{"use strict";o2.__esModule=!0;o2.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}};wCe.exports=o2.default});var vCe=g((a2,xCe)=>{"use strict";a2.__esModule=!0;function kV(t){return t&&t.__esModule?t:{default:t}}o(kV,"_interopRequireDefault");function PV(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(PV,"_interopRequireWildcard");var zpt=r2(),ICe=PV(zpt),Vpt=ACe(),$pt=kV(Vpt),jp Line truncated
`+this.lexer.showPosition()+`
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()+`
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: "+G+", 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})();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.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})();l2.default=Zpt;_Ce.exports=l2.default});var FV=g(LV=>{"use strict";LV.__esModule=!0;var eAt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];LV.NODE_TYPES=eAt});var h2=g((f2,PCe)=>{"use strict";f2.__esModule=!0;function tAt(t){return t&&t.__esModule?t:{default:t}}o(tAt,"_interopRequireDefault");var rAt=$o(),MV=tAt(rAt),nAt=ui(),iAt=FV();function d2(){this.parents=[]}o(d2,"Visitor");function DCe(t,e){return nAt.indexOf(iAt.NODE_TYPES,e)!==-1||!(e in d2.prototype)&&typeof t[e]=="function"}o(DCe,"isDispatchable");d2.prototype={constructor:d2,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!DCe(this,n.type))throw new MV.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 MV.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(!DCe(this,e.type)||!this[e.type])throw new MV.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 wp(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 wp?e:(e=a$(e,this,r),new wp(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+"",emt.test(e)?ybe(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=a$(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(a$(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};w2.default=Ebe});var vbe=g((I2,xbe)=>{"use strict";I2.__esModule=!0;function Ibe(t){return t&&t.__esModule?t:{default:t}}o(Ibe,"_interopRequireDefault");var bbe=r2(),imt=$o(),l$=Ibe(imt),smt=ui(),Sbe=Cbe(),wbe=Ibe(Sbe);function ty(t){this.value=t}o(ty,"Literal");function ry(){}o(ry,"JavaScriptCompiler");ry.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=bbe.COMPILER_REVISION,r=bbe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return smt.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 l$.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,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(","),`) {
`),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 wbe.default(this.options.srcName),this.decorators=new wbe.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) {
@@ -83,169 +83,171 @@ Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Se="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(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
`.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(omt(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 f$=g((WEr,kbe)=>{var x2=_be().default,Qbe=Tbe();x2.PrintVisitor=Qbe.PrintVisitor;x2.print=Qbe.print;kbe.exports=x2;function Dbe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=x2.compile(n)}o(Dbe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Dbe,require.extensions[".hbs"]=Dbe)});var jbe=g(T2=>{"use strict";Object.defineProperty(T2,"__esModule",{value:!0});T2.getProxyUrl=Bmt;T2.checkBypass=$be;function Bmt(t){let e=t.protocol==="https:";if($be(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 _2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new _2(`http://${r}`)}else return}o(Bmt,"getProxyUrl");function $be(t){if(!t.hostname)return!1;let e=t.hostname;if(xmt(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($be,"checkBypass");function xmt(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(xmt,"isLoopbackAddress");var _2=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 Jbe=g(pr=>{"use strict";var vmt=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]})),Nmt=pr&&pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P2=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"&&vmt(r,e,n[i]);return Nmt(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 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
>>> 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 Owe(this.pattern,this.options)}parse(e,r){Z2(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return Va;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+=Q8,s=!0;break;case"?":i+=O8,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;Qwe[$]&&(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:Dwe[u].open,close:Dwe[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("["+Cyt(yyt(p))+"]"),i+=$}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,d=!1;continue;default:B(),Qwe[$]&&!($==="^"&&d)&&(i+="\\"),i+=$;break}}for(d&&(p=e.slice(h+1),A=this.parse(p,k8),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==="*"?Q8:m.type==="?"?O8:"\\"+m.type;s=!0,i=i.slice(0,m.reStart)+$+"\\("+N}B(),a&&(i+="\\\\");let P=Ayt[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!==k8?"(?:$|\\/)":"";i=Q+H+V+K+W}if(i!==""&&s&&(i="(?=.)"+i),P&&(i=C()+i),r===k8)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return gyt(e);let G=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",G),{_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?Q8:r.dot?hyt:pyt,i=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?Eyt(c):c===Va?Va:c._src).reduce((c,l)=>(c[c.length-1]===Va&&l===Va||c.push(l),c),[]),a.forEach((c,l)=>{c!==Va||a[l-1]===Va||(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]=Va))}),a.filter(c=>c!==Va).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(kwe),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 io.defaults(e).Minimatch}};io.Minimatch=my});var Gwe=g((Ywr,qwe)=>{qwe.exports=Uwe;var M8=require("fs"),{EventEmitter:byt}=require("events"),{Minimatch:F8}=Lwe(),{resolve:wyt}=require("path");function Iyt(t,e){return new Promise((r,n)=>{M8.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(Iyt,"readdir");function Fwe(t,e){return new Promise((r,n)=>{(e?M8.stat:M8.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?Fwe(t,!1):null):r(null):r(a)})})}o(Fwe,"stat");async function*Mwe(t,e,r,n,i,s){let a=await Iyt(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 Fwe(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*Mwe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(Mwe,"exploreWalkAsync");async function*Syt(t,e,r,n){yield*Mwe("",t,e,r,n,!0)}o(Syt,"explore");function Byt(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(Byt,"readOptions");var eD=class extends byt{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Byt(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 F8(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 F8(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 F8(s,{dot:!0}))}this.iterator=Syt(wyt(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(sC,"stripComments");function $S(I){let b=sC(I.toString()),S=b.match(CP);if(S||(S=b.match(zS)),!S)throw new Error(`could not parse args in autoInject
Source:
`+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
`+b);let[,R]=S;return R.replace(/\s/g,"").split(VS).map(k=>k.replace(iC,"").trim())}o($S,"parseParams");function NA(I,b){var S={};return Object.keys(I).forEach(R=>{var k=I[R],L,M=p(k),q=!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(q)S[R]=k;else{if(L=$S(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")}),nC(S,b)}o(NA,"autoInject");class jS{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):oC(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):oC(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 oC(I,b){I.length=1,I.head=I.tail=b}o(oC,"setInitial");function RA(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 q(Te,Ce){M[Te].push(Ce)}o(q,"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 ho(jf,...hC){if(jf)return De?In(jf):ar();if(hC.length<=1)return ar(hC[0]);ar(hC)}o(ho,"promiseCallback");var QA=Nt._createTaskItem(Te,De?ho:bt||ho);if(Ce?Nt._tasks.unshift(QA):Nt._tasks.push(QA),vt||(vt=!0,u(()=>{vt=!1,Nt.process()})),De||!bt)return new Promise((jf,hC)=>{ar=jf,In=hC})}o(Ct,"_insert");function fo(Te){return function(Ce,...De){k-=1;for(var bt=0,ar=Te.length;bt<ar;bt++){var In=Te[bt],ho=L.indexOf(In);ho===0?L.shift():ho>0&&L.splice(ho,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(fo,"_createCB");function DA(Te){return Te.length===0&&Nt.idle()?(u(()=>gt("drain")),!0):!1}o(DA,"_maybeDrain");let $f=o(Te=>Ce=>{if(!Ce)return new Promise((De,bt)=>{j(Te,(ar,In)=>{if(ar)return bt(ar);De(In)})});be(Te),q(Te,Ce)},"eventMethod");var fC=!1,Nt={_tasks:new jS,_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)?DA(Te)?void 0:Te.map(De=>Ct(De,!1,!1,Ce)):Ct(Te,!1,!1,Ce)},pushAsync(Te,Ce){return Array.isArray(Te)?DA(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)?DA(Te)?void 0:Te.map(De=>Ct(De,!0,!1,Ce)):Ct(Te,!0,!1,Ce)},unshiftAsync(Te,Ce){return Array.isArray(Te)?DA(Te)?void 0:Te.map(De=>Ct(De,!0,!0,Ce)):Ct(Te,!0,!0,Ce)},remove(Te){Nt._tasks.remove(Te)},process(){if(!fC){for(fC=!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(fo(Te));R(Ce,In)}fC=!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:$f("saturated")},unsaturated:{writable:!1,value:$f("unsaturated")},empty:{writable:!1,value:$f("empty")},drain:{writable:!1,value:$f("drain")},error:{writable:!1,value:$f("error")}}),Nt}o(RA,"queue$1");function _A(I,b){return RA(I,1,b)}o(_A,"cargo$1");function xs(I,b,S){return RA(I,b,S)}o(xs,"cargo");function WS(I,b,S,R){R=N(R);var k=E(S);return ri(I,(L,M,q)=>{k(b,L,(j,be)=>{b=be,q(j)})},L=>R(L,b))}o(WS,"reduce");var Aa=y(WS,4);function aC(...I){var b=I.map(E);return function(...S){var R=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=nd(),Aa(b,S,(L,M,q)=>{M.apply(R,L.concat((j,...be)=>{q(j,be)}))},(L,M)=>k(L,...M)),k[ql]}}o(aC,"seq");function Ee(...I){return aC(...I.revers Line truncated
GFS4: `),console.error(t)},"debug"));Er[Yn]||(Xwe=global[Yn]||[],eIe(Er,Xwe),Er.close=(function(t){function e(r,n){return t.call(Er,r,function(i){i||Zwe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,sD,{value:t}),e})(Er.close),Er.closeSync=(function(t){function e(r){t.apply(Er,arguments),Zwe()}return o(e,"closeSync"),Object.defineProperty(e,sD,{value:t}),e})(Er.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){_p(Er[Yn]),require("assert").equal(Er[Yn].length,0)}));var Xwe;global[Yn]||eIe(global,Er[Yn]);H8.exports=q8(kyt(Er));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Er.__patched&&(H8.exports=q8(Er),Er.__patched=!0);function q8(t){Dyt(t),t.gracefulify=q8,t.createReadStream=P,t.createWriteStream=G;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")?gy([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")?gy([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")?gy([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")?gy([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")?gy([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=Qyt(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 G(Q,H){return new t.WriteStream(Q,H)}o(G,"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")?gy([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(q8,"patch");function gy(t){_p("ENQUEUE",t[0].name,t[1]),Er[Yn].push(t),G8()}o(gy,"enqueue");var iD;function Zwe(){for(var t=Date.now(),e=0;e<Er[Yn].length;++e)Er[Yn][e].length>2&&(Er[Yn][e][3]=t,Er[Yn][e][4]=t);G8()}o(Zwe,"resetQueue");function G8(){if(clearTimeout(iD),iD=void 0,Er[Yn].length!==0){var t=Er[Yn].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)_p("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){_p("TIMEOUT",e.n Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Rj.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 gwt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:ywt,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);jBe(e,"signal"),Ewt(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[hwt]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[pwt](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:Awt.any||o(function(e){if(e.length===1)return e[0];let r=new mwt,n=o(()=>r.abort(),"abort");return e.forEach(i=>{jBe(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};Rj.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Gi=g((hBr,YBe)=>{"use strict";var{format:Cwt,inspect:ND,AggregateError:bwt}=hi(),wwt=globalThis.AggregateError||bwt,Iwt=Symbol("kIsNodeError"),Swt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Bwt=/^([A-Z][a-z0-9]*)+$/,xwt="__node_internal_",RD={};function Qp(t,e){if(!t)throw new RD.ERR_INTERNAL_ASSERTION(e)}o(Qp,"assert");function WBe(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(WBe,"addNumericalSeparator");function vwt(t,e,r){if(typeof e=="function")return Qp(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 Qp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:Cwt(e,...r)}o(vwt,"getMessage");function Xn(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(vwt(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[Iwt]=!0,RD[t]=n}o(Xn,"E");function JBe(t){let e=xwt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(JBe,"hideStackFrames");function Nwt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new wwt([e,t],e.message);return r.code=e.code,r}return t||e}o(Nwt,"aggregateTwoErrors");var _j=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 RD.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Xn("ERR_ASSERTION","%s",Error);Xn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Qp(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)Qp(typeof l=="string","All expected entries have to be of type string"),Swt.includes(l)?i.push(l.toLowerCase()):Bwt.test(l)?s.push(l):(Qp(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+=o9(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let i in n)r+=o9(" "+i+"="+n[i]+`
`);return Bt.from(r)},"encodePax");oE.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");oE.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,Cf(e.mode&zDt,6),100),Bt.write(r,Cf(e.uid,6),108),Bt.write(r,Cf(e.gid,6),116),KDt(e.size,r,124),Bt.write(r,Cf(e.mtime.getTime()/1e3|0,11),136),r[156]=s1+JDt(e.type),e.linkname&&Bt.write(r,e.linkname,157),Bt.copy(J2e,r,iS),Bt.copy(qDt,r,a9),e.uname&&Bt.write(r,e.uname,265),e.gname&&Bt.write(r,e.gname,297),Bt.write(r,Cf(e.devmajor||0,6),329),Bt.write(r,Cf(e.devminor||0,6),337),i&&Bt.write(r,i,345),Bt.write(r,Cf(K2e(r),6),148),r)},"encode");oE.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-s1,s=sE(e,0,100,r),a=Ef(e,100,8),c=Ef(e,108,8),l=Ef(e,116,8),u=Ef(e,124,12),d=Ef(e,136,12),f=WDt(i),h=e[157]===0?null:sE(e,157,100,r),p=sE(e,265,32),m=sE(e,297,32),A=Ef(e,329,8),E=Ef(e,337,8),y=K2e(e);if(y===256)return null;if(y!==Ef(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(VDt(e))e[345]&&(s=sE(e,345,155,r)+"/"+s);else if(!$Dt(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 VDt(t){return Bt.equals(J2e,t.subarray(iS,iS+6))}o(VDt,"isUSTAR");function $Dt(t){return Bt.equals(GDt,t.subarray(iS,iS+6))&&Bt.equals(HDt,t.subarray(a9,a9+2))}o($Dt,"isGNU");function jDt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(jDt,"clamp");function WDt(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(WDt,"toType");function JDt(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(JDt,"toTypeflag");function Y2e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}o(Y2e,"indexOf");function K2e(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(K2e,"cksum");function Cf(t,e){return t=t.toString(8),t.length>e?UDt.slice(0,e)+" ":MDt.slice(0,e-t.length)+t+" "}o(Cf,"encodeOct");function YDt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(YDt,"encodeSizeBin");function KDt(t,e,r){t.toString(8).length>11?YDt(t,e,r):Bt.write(e,Cf(t,11),r)}o(KDt,"encodeSize");function XDt(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(XDt,"parse256");function Ef(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return XDt(t);{for(;e<t.length&&t[e]===32;)e++;let n=jDt(Y2e(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(Ef,"decodeOct");function sE(t,e,r,n){return Bt.toString(t.subarray(e,Y2e(t,0,e,e+r)),n)}o(sE,"decodeStr");function o9(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(o9,"addLength")});var rDe=g((CRr,tDe)=>{var{Writable:ZDt,Readable:eQt,getStreamError:X2e}=s9(),tQt=H6(),Z2e=i1(),aE=c9(),rQt=Z2e.alloc(0),u9=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new tQt,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 rQt;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 Z2e.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)}},d9=class extends eQt{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+"+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(`
`+s),t.push(i+"m+"+uk.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sMt()+e+" "+t[0]}o(iMt,"formatArgs");function sMt(){return Un.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(sMt,"getDate");function oMt(...t){return process.stderr.write(lk.formatWithOptions(Un.inspectOpts,...t)+`
`)}o(oMt,"log");function aMt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(aMt,"save");function cMt(){return process.env.DEBUG}o(cMt,"load");function lMt(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(lMt,"init");uk.exports=$J()(Un);var{formatters:nPe}=uk.exports;nPe.o=function(t){return this.inspectOpts.colors=this.useColors,lk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};nPe.O=function(t){return this.inspectOpts.colors=this.useColors,lk.inspect(t,this.inspectOpts)}});var WJ=g((MQr,jJ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jJ.exports=rPe():jJ.exports=iPe()});var fk=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 JJ=class extends Error{static{o(this,"ValueError")}};Or.ValueError=JJ;var YJ=class extends Error{static{o(this,"RuntimeError")}};Or.RuntimeError=YJ;var KJ=class extends Error{static{o(this,"PersistError")}};Or.PersistError=KJ;var vS=class extends Error{static{o(this,"RepositoryError")}};Or.RepositoryError=vS;var dk=class extends vS{static{o(this,"BadVersionError")}};Or.BadVersionError=dk;var XJ=class extends dk{static{o(this,"EqualVersionError")}};Or.EqualVersionError=XJ;var ZJ=class extends vS{static{o(this,"ExpiredMetadataError")}};Or.ExpiredMetadataError=ZJ;var NS=class extends Error{static{o(this,"DownloadError")}};Or.DownloadError=NS;var eY=class extends NS{static{o(this,"DownloadLengthMismatchError")}};Or.DownloadLengthMismatchError=eY;var tY=class extends NS{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};Or.DownloadHTTPError=tY});var oPe=g(kE=>{"use strict";var nY=kE&&kE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kE,"__esModule",{value:!0});kE.withTempFile=void 0;var rY=nY(require("fs/promises")),uMt=nY(require("os")),sPe=nY(require("path")),dMt=o(async t=>fMt(async e=>t(sPe.default.join(e,"tempfile"))),"withTempFile");kE.withTempFile=dMt;var fMt=o(async t=>{let e=await rY.default.realpath(uMt.default.tmpdir()),r=await rY.default.mkdtemp(e+sPe.default.sep);try{return await t(r)}finally{await rY.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var cPe=g((zQr,aPe)=>{var iY=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)}};aPe.exports={RetryOperation:iY}});var dPe=g(($Qr,uPe)=>{var{RetryOperation:hMt}=cPe(),lPe=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"),pMt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),AMt=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(lPe(s,i));r.sort((s,a)=>s-a)}else e.forever&&r.push(lPe(0,i))}let n=new hMt(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(!pMt(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");uPe.exports={promiseRetry:AMt}});var aY=g(kf=>{"use strict";var oY=kf&&kf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kf,"__esModule",{value:!0});kf.DefaultFetcher=kf.BaseFetcher=void 0;var mMt=oY(WJ()),fPe=oY(require("fs")),gMt=oY(require("util")),hPe=fk(),yMt=oPe(),EMt=dPe(),CMt=(0,mMt.default)("tuf:fetch"),bMt="User-Agent",hk=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,yMt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=fPe.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 hPe.DownloadLengthMismatchError("Max length reached");await wMt(c,Buffer.from(d))}}finally{l.releaseLock(),await gMt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=fPe.defau Line truncated
`).forEach(r=>{r.match(vUt)||r.match(NUt)||(e+=r)}),Buffer.from(e,"base64")}o(RUt,"toDER");function _Ut(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}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
`)}o(_Ut,"fromDER")});var Rk=g(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.SHA2_HASH_ALGOS=Mf.RSA_SIGNATURE_ALGOS=Mf.ECDSA_SIGNATURE_ALGOS=void 0;Mf.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"};Mf.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"};Mf.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 TY=g(_k=>{"use strict";Object.defineProperty(_k,"__esModule",{value:!0});_k.RFC3161TimestampVerificationError=void 0;var _Y=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};_k.RFC3161TimestampVerificationError=_Y});var HPe=g(Dl=>{"use strict";var TUt=Dl&&Dl.__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]})),DUt=Dl&&Dl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QUt=Dl&&Dl.__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"&&TUt(r,e,n[i]);return DUt(r,e),r}})();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.TSTInfo=void 0;var GPe=QUt(UE()),kUt=Rk(),PUt=TY(),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 kUt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=GPe.digest(this.messageImprintHashAlgorithm,e);if(!GPe.bufferEqual(r,this.messageImprintHashedMessage))throw new PUt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Dl.TSTInfo=DY});var VPe=g(Ql=>{"use strict";var OUt=Ql&&Ql.__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]})),LUt=Ql&&Ql.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FUt=Ql&&Ql.__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"&&OUt(r,e,n[i]);return LUt(r,e),r}})();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.RFC3161Timestamp=void 0;var MUt=xk(),QY=FUt(UE()),zPe=Rk(),kS=TY(),UUt=HPe(),qUt="1.2.840.113549.1.7.2",GUt="1.2.840.113549.1.9.16.1.4",HUt="1.2.840.113549.1.9.4",kY=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=MUt.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 zPe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return zPe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new UUt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new kS.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==qUt)throw new kS.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==GUt)throw new kS.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=QY.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line 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
`,l3t=/\u2014 (\S+) (\S+)\n/g;function u3t(t,e){let r=t.inclusionProof,n=uK.fromString(r.checkpoint.envelope),i=Yk.fromString(n.note);if(!d3t(n,e))throw new jE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(u3t,"verifyCheckpoint");function d3t(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>BOe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?BOe.crypto.verify(r,i.publicKey,n.signature):!1})}o(d3t,"verifySignedNote");var uK=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(lK))throw new jE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(lK),n=e.slice(0,r+1),s=e.slice(r+lK.length).matchAll(l3t),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new jE.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 jE.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},Yk=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 jE.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 jE.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)}};MS.LogCheckpoint=Yk});var vOe=g(hK=>{"use strict";Object.defineProperty(hK,"__esModule",{value:!0});hK.verifyMerkleInclusion=p3t;var fK=ec(),Kk=bi(),f3t=Buffer.from([0]),h3t=Buffer.from([1]);function p3t(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new Kk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new Kk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=A3t(n,i);if(r.hashes.length!==s+a)throw new Kk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=b3t(t.canonicalizedBody),d=g3t(m3t(u,c,n),l);if(!fK.crypto.bufferEqual(d,e.logHash))throw new Kk.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(p3t,"verifyMerkleInclusion");function A3t(t,e){let r=y3t(t,e),n=E3t(t>>BigInt(r));return{inner:r,border:n}}o(A3t,"decompInclProof");function m3t(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?dK(i,n):dK(n,i),t)}o(m3t,"chainInner");function g3t(t,e){return e.reduce((r,n)=>dK(n,r),t)}o(g3t,"chainBorderRight");function y3t(t,e){return C3t(t^e-BigInt(1))}o(y3t,"innerProofSize");function E3t(t){return t.toString(2).split("1").length-1}o(E3t,"onesCount");function C3t(t){return t===0n?0:t.toString(2).length}o(C3t,"bitLength");function dK(t,e){return fK.crypto.digest("sha256",h3t,t,e)}o(dK,"hashChildren");function b3t(t){return fK.crypto.digest("sha256",f3t,t)}o(b3t,"hashLeaf")});var ROe=g(pK=>{"use strict";Object.defineProperty(pK,"__esModule",{value:!0});pK.verifyTLogSET=S3t;var NOe=ec(),w3t=bi(),I3t=HE();function S3t(t,e){if(!(0,I3t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=B3t(t),a=Buffer.from(NOe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return NOe.crypto.verify(a,i.publicKey,c)}))throw new w3t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(S3t,"verifyTLogSET");function B3t(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(B3t,"toVerificationPayload")});var TOe=g(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0});Zk.verifyTLogBody=_3t;Zk.verifyTLogInclusion=T3t;var _Oe=bOe(),Xk=bi(),AK=wOe(),mK=IOe(),x3t=SOe(),v3t=xOe(),N3t=vOe(),R3t=ROe();function _3t(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new Xk.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new Xk.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==AK.DSSE_API_VERSION_V1)return(0,AK.verifyDSSETLogBody)(i,e);{let s=_Oe.Entry.fromJSON(i);return(0,AK.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,x3t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==mK.HASHEDREKORD_API_VERSION_V1)return(0,mK.verifyHashedRekordTLogBody)(i,e);{let s=_Oe.Entry.fromJSON(i);return(0,mK.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new Xk.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(_3t,"verifyTLogBody");function T3t(t,e){let r=!1;if(D3t(t)&&((0,R3t.verifyTLogSET)(t,e),r=!0),Q3t(t)){let n=(0,v3t.verifyCheckpoint)(t,e);(0,N3t.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new Xk.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(T3t,"verifyTLogInclusion");function D3t(t){return t.inclusionPromise!==void 0}o(D3t,"isTLogEntryWithInclusionPromise");function Q3t(t){return t.inclusionProof!==void 0}o(Q3t,"isTLogEntryWithInclusionProof")});var POe=g(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.Verifier=void 0;var k3t=require("util"),xA=bi(),DOe=lOe(),gK=uOe(),QOe=hOe(),kOe=TOe(),EK=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(Sh,"getBooleanInput");function aoe(t,e){if(process.env.GITHUB_OUTPUT||"")return EB("OUTPUT",_P(t,e));process.stdout.write(CM.EOL),Hl("set-output",{name:t},Gl(e))}o(aoe,"setOutput");function Cv(t){process.exitCode=EM.Failure,xa(t)}o(Cv,"setFailed");function Bh(){return process.env.RUNNER_DEBUG==="1"}o(Bh,"isDebug");function v(t){Hl("debug",{},t)}o(v,"debug");function xa(t,e={}){Hl("error",vP(e),t instanceof Error?t.toString():t)}o(xa,"error");function Ge(t,e={}){Hl("warning",vP(e),t instanceof Error?t.toString():t)}o(Ge,"warning");function D(t){process.stdout.write(t+CM.EOL)}o(D,"info");function qje(t){RP("group",t)}o(qje,"startGroup");function Gje(){RP("endgroup")}o(Gje,"endGroup");function Sr(t,e){return Uje(this,void 0,void 0,function*(){qje(t);let r;try{r=yield e()}finally{Gje()}return r})}o(Sr,"group");function bo(t,e){if(process.env.GITHUB_STATE||"")return EB("STATE",_P(t,e));Hl("save-state",{name:t},Gl(e))}o(bo,"saveState");function coe(t){return process.env[`STATE_${t}`]||""}o(coe,"getState");var mw=T(require("fs"),1),H4=T(require("os"),1),z4=T(require("path"),1);var uoe=T(require("os"),1);function wb(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(wb,"toCommandValue");function doe(t,e,r){let n=new bM(t,e,r);process.stdout.write(n.toString()+uoe.EOL)}o(doe,"issueCommand");var loe="::",bM=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=loe+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}=${zje(i)}`)}}return e+=`${loe}${Hje(this.message)}`,e}};function Hje(t){return wb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Hje,"escapeData");function zje(t){return wb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(zje,"escapeProperty");var Aoe=T(require("os"),1);var hoe=require("os"),Ib=require("fs");var wM=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:Vje,appendFile:$je,writeFile:jje}=Ib.promises,foe="GITHUB_STEP_SUMMARY";var IM=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return wM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[foe];if(!e)throw new Error(`Unable to find environment variable for $${foe}. Check if your runtime environment supports job summaries.`);try{yield Vje(e,Ib.constants.R_OK|Ib.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 wM(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?jje:$je)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return wM(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(hoe.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 _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
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new Fb(s));return n.searchPaths.push(...nU(n.patterns)),n})}static stat(e,r,n){return fU(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Um.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){xo(`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 Um.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Um.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){xo(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var bYe=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 zce(t,e){return bYe(this,void 0,void 0,function*(){return yield Mv.create(t,e)})}o(zce,"create");var rN=T(require("crypto"),1),zm=T(require("fs"),1),_h=T(require("path"),1),Lue=T(Pue(),1),Fue=T(require("util"),1);var Vb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Vb||(Vb={}));var Ti;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ti||(Ti={}));var qs;(function(t){t.GNU="gnu",t.BSD="bsd"})(qs||(qs={}));var Zv=2,eN=5e3,QU=5e3,kU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Oue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,$b="cache.tar",PU="manifest.txt",s6t=10*Math.pow(1024,3),tN="cache read denied:";var Hm=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())})},_Xe=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)}},TXe="1.0";function Th(){return Hm(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=_h.join(n,"actions","temp")}let r=_h.join(e,rN.randomUUID());return yield su(r),r})}o(Th,"createTempDirectory");function Ec(t){return zm.statSync(t).size}o(Ec,"getArchiveFileSizeInBytes");function OU(t){return Hm(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 zce(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=_Xe(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=_h.relative(c,i).replace(new RegExp(`\\${_h.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(OU,"resolvePaths");function jb(t){return Hm(this,void 0,void 0,function*(){return Fue.promisify(zm.unlink)(t)})}o(jb,"unlinkFile");function Mue(t){return Hm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),v(`Checking ${e} ${r.join(" ")}`);try{yield Ms(`${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(Mue,"getVersion");function Wb(){return Hm(this,void 0,void 0,function*(){let t=yield Mue("zstd",["--quiet"]),e=Lue.clean(t);return v(`zstd version: ${e}`),t===""?Ti.Gzip:Ti.ZstdWithoutLong})}o(Wb,"getCompressionMethod");function Td(t){return t===Ti.Gzip?Vb.Gzip:Vb.Zstd}o(Td,"getCacheFileName");function Uue(){return Hm(this,void 0,void 0,function*(){return zm.existsSync(kU)?kU:(yield Mue("tar")).toLowerCase().includes("gnu tar")?Gn("tar"):""})}o(Uue,"getGnuTarPathOnWindows");function LU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(LU,"assertDefined");function Vm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(TXe),rN.createHash("sha256").update(n.join("|")).digest("hex")}o(Vm,"getCacheVersion");function que(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(que,"getRuntimeToken");var Yb=T(require("http"),1),UU=T(require("https"),1);function FU(t){let e=t.protocol==="https:";if(DXe(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 iN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new iN(`http://${r}`)}else return}o(FU,"getProxyUrl");function DXe(t){if(!t.hostname)return!1;let e=t.hostname;if(QXe(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(DXe,"checkBypass");function QXe(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(QXe,"isLoopbackAddress");var iN=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 Dd=T(PA(),1),Gue=T(Ch(),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 Di;(function(t){t.Accept="accept",t.ContentType="content-type"})(Di||(Di={}));var lu;(function(t){t.ApplicationJson="application/json"})(lu||(lu={}));var PXe=[Br.MovedPermanently,Br.ResourceMoved,Br.SeeOther,Br.TemporaryRedirect,Br.PermanentRedirect],OXe=[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout],LXe=["OPTIONS","GET","DELETE","HEAD"],FXe=10,MXe=5,Cc=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${WXe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function uN(t){return t instanceof Qi?!0:Qh(t)&&t.name==="RestError"}o(uN,"isRestError");function is(t,e){return Buffer.from(t,e)}o(is,"stringToUint8Array");var dN=T(require("node:http"),1),fN=T(require("node:https"),1),YU=T(require("node:zlib"),1),ode=require("node:stream");var _o=Kb("ts-http-runtime");var JXe={};function Xb(t){return t&&typeof t.pipe=="function"}o(Xb,"isReadableStream");function sde(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(sde,"isStreamComplete");function ade(t){return t&&typeof t.byteLength=="number"}o(ade,"isArrayBuffer");var hN=class extends ode.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}},KU=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 bc("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 _a;_o.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=ZXe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,A=new hN(m);A.on("error",E=>{_o.error("Error in upload progress",E)}),Xb(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=YXe(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?KXe(u,d):u;let p=e.onDownloadProgress;if(p){let m=new hN(p);m.on("error",A=>{_o.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 XXe(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();Xb(c)&&(u=sde(c));let d=Promise.resolve();Xb(l)&&(d=sde(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{_o.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?dN.default.request(c,l):fN.default.request(c,l);d.once("error",f=>{u(new Qi(f.message,{code:f.code??Qi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new bc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&Xb(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):ade(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(_o.error("Unrecognized body type",n),u(new Qi("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?dN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new dN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return fN.default.globalAgent;let i=e.tlsSettings??JXe,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(_o.info("No cached TLS Agent exist, creating a new Agent"),s=new fN.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function YXe(t){let e=Gs();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(YXe,"getResponseHeaders");function KXe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=YU.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=YU.default.createInflate();return t.pipe(n),n}return t}o(KXe,"getDecodedResponseStream");function XXe(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 Qi(`Error reading response as text: ${i.message}`,{code:Qi.PARSE_ERROR}))})})}o(XXe,"streamToText");function ZXe(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(Det,"encodeHeaders");function Qet(t){return t instanceof Uint8Array?t.byteLength:LN(t)?t.size===-1?void 0:t.size:void 0}o(Qet,"getLength");function ket(t){let e=0;for(let r of t){let n=Qet(r);if(n===void 0)return;e+=n}return e}o(ket,"getTotalLength");async function Pet(t,e,r){let n=[is(`--${r}`,"utf-8"),...e.flatMap(s=>[is(`\r
`,"utf-8"),is(Det(s.headers),"utf-8"),is(`\r
`,"utf-8"),s.body,is(`\r
--${r}`,"utf-8")]),is(`--\r
\r
`,"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
`,"utf-8")],i=ket(n);i&&t.headers.set("Content-Length",i),t.body=await dfe(n)}o(Pet,"buildRequestBody");var t0="multipartPolicy",Oet=70,Let=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Fet(t){if(t.length>Oet)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Let.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(Fet,"assertValidBoundary");function MN(){return{name:t0,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?Fet(r):r=Tet(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await Pet(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(MN,"multipartPolicy");function UN(){return lN()}o(UN,"createEmptyPipeline");var ffe=oN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),n7t=ffe.logger;function Sc(t){return ffe.createClientLogger(t)}o(Sc,"createClientLogger");var Bc=Sc("core-rest-pipeline");function mq(t={}){return AN({logger:Bc.info,...t})}o(mq,"logPolicy");var gq=mN;function yq(t={}){return gN(t)}o(yq,"redirectPolicy");var qN=T(require("node:os"),1),GN=T(require("node:process"),1);function hfe(){return"User-Agent"}o(hfe,"getHeaderName");async function pfe(t){if(GN.default&&GN.default.versions){let e=`${qN.default.type()} ${qN.default.release()}; ${qN.default.arch()}`,r=GN.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(pfe,"setPlatformSpecificData");var HN="1.22.2";function $et(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o($et,"getUserAgentString");function Afe(){return hfe()}o(Afe,"getUserAgentHeaderName");async function zN(t){let e=new Map;e.set("core-rest-pipeline",HN),await pfe(e);let r=$et(e);return t?`${t} ${r}`:r}o(zN,"getUserAgentValue");var mfe=Afe(),gfe="userAgentPolicy";function Eq(t={}){let e=zN(t.userAgentPrefix);return{name:gfe,async sendRequest(r,n){return r.headers.has(mfe)||r.headers.set(mfe,await e),n(r)}}}o(Eq,"userAgentPolicy");var $s=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Cq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new $s(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(Cq,"createAbortablePromise");var Ket="The delay was aborted.";function r0(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return Cq(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Ket})}o(r0,"delay");function kd(t){if(Qh(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(kd,"getErrorMessage");function yfe(t){return Qh(t)}o(yfe,"isError");function eg(){return Dh()}o(eg,"randomUUID");var Qt=Oh;var Efe=Symbol("rawContent");function wq(t){return typeof t[Efe]=="function"}o(wq,"hasRawContent");function Cfe(t){return wq(t)?t[Efe]():t}o(Cfe,"getRawContent");var VN=t0;function Iq(){let t=MN();return{name:VN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)wq(n.body)&&(n.body=Cfe(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(Iq,"multipartPolicy");var Sq=yN;function Bq(){return EN()}o(Bq,"decompressResponsePolicy");function xq(t={}){return wN(t)}o(xq,"defaultRetryPolicy");function vq(){return IN()}o(vq,"formDataPolicy");function Pd(t){return dq(t)}o(Pd,"getDefaultProxySettings");function Nq(t,e){return kN(t,e)}o(Nq,"proxyPolicy");var bfe="setClientRequestIdPolicy";function Rq(t="x-ms-client-request-id"){return{name:bfe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(Rq,"setClientRequestIdPolicy");function _q(t){return PN(t)}o(_q,"agentPolicy");function Tq(t){return ON(t)}o(Tq,"tlsPolicy");var tg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function wfe(t={}){let e=new Dq(t.parentContext);return t.span&&(e=e.setValue(tg.span,t.span)),t.namespace&&(e=e.setValue(tg.namespace,t.namespace)),e}o(wfe,"createTracingContext");var Dq=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--),!brt(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",qr("InvalidTag",f,ki(t,s))}let u=mrt(t,s);if(u===!1)return qr("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=she(d,e);if(h===!0)n=!0;else return qr(h.err.code,h.err.msg,ki(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.",ki(t,a));if(r.length===0)return qr("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 qr("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 qr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ki(t,s));else{let f=she(d,e);if(f!==!0)return qr(f.err.code,f.err.msg,ki(t,s-d.length+f.err.line));if(i===!0)return qr("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=ihe(t,s);continue}else if(t[s+1]==="?"){if(s=nhe(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.",ki(t,s));s=f}else if(i===!0&&!ig(t[s]))return qr("InvalidXml","Extra text at the end",ki(t,s));t[s]==="<"&&s--}}else{if(ig(t[s]))continue;return qr("InvalidChar","char '"+t[s]+"' is not expected.",ki(t,s))}if(n){if(r.length==1)return qr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ki(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(nR,"validate");function ig(t){return t===" "||t===" "||t===`
`||t==="\r"}o(ig,"isWhiteSpace");function nhe(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.",ki(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(nhe,"readPI");function ihe(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(ihe,"readCommentAndCDATA");var prt='"',Art="'";function mrt(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===prt||t[e]===Art)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(mrt,"readAttributeStr");function grt(t){let e=[],r=t.length,n=0;for(;n<r;){let i=n;for(;n<r&&ig(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=i+1;continue}let s=t.slice(i,n),a=n;for(;n<r&&!ig(t[n])&&t[n]!=="=";)n++;let c=t.slice(a,n),l,u=n;for(;u<r&&ig(t[u]);)u++;u<r&&t[u]==="="&&(l=t.slice(n,u+1),n=u+1);let d,f,h=n;for(;h<r&&ig(t[h]);)h++;if(h<r&&(t[h]==='"'||t[h]==="'")){let m=h+1,A=t.indexOf(t[h],m);A!==-1&&(d=t[h],f=t.slice(m,A),n=A+1)}let p={startIndex:i};p[1]=s,p[2]=c,p[3]=l,p[4]=d!==void 0?!0:void 0,p[5]=d,p[6]=f,e.push(p)}return e}o(grt,"scanAttributeTokens");function she(t,e){let r=grt(t),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.",p0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return qr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",p0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return qr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",p0(r[i]));let s=r[i][2];if(!Crt(s))return qr("InvalidAttr","Attribute '"+s+"' is an invalid name.",p0(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return qr("InvalidAttr","Attribute '"+s+"' is repeated.",p0(r[i]))}return!0}o(she,"validateAttributeString");function yrt(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(yrt,"validateNumberAmpersand");function Ert(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,yrt(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 Crt(t){return Yq(t)}o(Crt,"validateAttrName");function brt(t){return Yq(t)}o(brt,"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 p0(t){return t.startIndex+t[1].length}o(p0,"getPositionFromMatch");var Kq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var A0={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Xq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var sg=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),wrt=new Set("!?\\\\/[]$%{}^&*()<>|+");function ohe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(wrt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}o(ohe,"validateEntityName");function m0(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let i=r[n];if(typeof i=="string")e[n]=i;else if(i&&typeof i=="object"&&i.val!==void 0){let s=i.val;typeof s=="string"&&(e[n]=s)}}return e}o(m0,"mergeEntityMaps");var Uh="external",iR="base",Zq="all";function Irt(t){return!t||t===Uh?new Set([Uh]):t===Zq?new Set([Zq]):t===iR?new Set([iR]):Array.isArray(t)?new Set(t):new Set([Uh])}o(Irt,"parseLimitTiers");var as=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Srt=new Set([9,10,13]);function Brt(t){if(!t)return{xmlVersion:1,onLevel:as.allow,nullLevel:as.remove};let e=t.xmlVersion===1.1?1.1:1,r=as[t.onNCR]??as.allow,n=as[t.nullNCR]??as.remove,i=Math.max(n,as.remove);return{xmlVersion:e,onLevel:r,nullLevel:i}}o(Brt,"parseNCRConfig");var og=class{static{o(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansio Line truncated
`}),rnt=/&(?:#[xX]0*([0-9a-fA-F]{1,6});?|#0*([0-9]{1,7});?|([a-zA-Z][a-zA-Z0-9]{1,15});)/g;function d3(t){return t.indexOf("&")===-1?t:t.replace(rnt,(e,r,n,i)=>{if(i!==void 0)return Object.prototype.hasOwnProperty.call(bhe,i)?bhe[i]:e;let s=r!==void 0?parseInt(r,16):parseInt(n,10);return!Number.isFinite(s)||s>1114111?e:String.fromCodePoint(s)})}o(d3,"decodeEntities");Hh.label="HTML";zh.label="XML";uR.label="SVG";Hh.decodeEntities=!0;zh.decodeEntities=!0;uR.decodeEntities=!0;E0.label="SQL";u3.label="SQL-STRICT";o3.label="SHELL";a3.label="REDOS";c3.label="NOSQL";l3.label="LOG";var bsr=Object.freeze({HTML:Hh,XML:zh,SVG:uR,SQL:E0,"SQL-STRICT":u3,SHELL:o3,REDOS:a3,NOSQL:c3,LOG:l3});function nnt(t){if(typeof t!="string")throw new TypeError(`is-unsafe: first argument must be a string, got ${typeof t}`)}o(nnt,"assertString");function int(t){if(!(t instanceof RegExp)){if(Array.isArray(t)){if(t.length===0)throw new TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(t[0])){for(let e of t)if(!Array.isArray(e)||e.length===0)throw new TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}return}throw new TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof t}`)}}o(int,"assertContext");function snt(t){return t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null}}o(snt,"normalise");function ont(t,e){if(!e.decodeEntities)return null;let r=d3(t);return r===t?null:r}o(ont,"decodedCopy");function ant(t,e){let r=e.label??"CUSTOM",n=ont(t,e);for(let i of e)if(i.pattern.test(t)||n!==null&&i.pattern.test(n))return{context:r,id:i.id,description:i.description,pattern:i.pattern};return null}o(ant,"matchList");function whe(t,e){nnt(t),int(e);let{lists:r,regex:n}=snt(e);if(n)return n.test(t);for(let i of r)if(ant(t,i)!==null)return!0;return!1}o(whe,"isUnsafe");function cnt(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let i in r)if(i.startsWith(e.attributeNamePrefix)){let s=i.substring(e.attributeNamePrefix.length);n[s]=r[i]}else n[i]=r[i];return n}o(cnt,"extractRawAttributes");function lnt(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}o(lnt,"extractNamespace");var C0=class{static{o(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=pnt,this.parseTextData=unt,this.resolveNameSpace=dnt,this.buildAttributesMap=hnt,this.isItStopNode=ynt,this.replaceEntitiesValue=mnt,this.readStopNodeData=bnt,this.saveTextToParentTag=gnt,this.addChild=Ant,this.ignoreAttributesFn=i3(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n={...A0};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Xq,...Kq}),this.entityDecoder=new og({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:o((s,a)=>whe(a,[Hh,zh])?sg.BLOCK:sg.ALLOW,"onInputEntity")})),this.matcher=new Nc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new cg;let i=this.options.stopNodes;if(i&&i.length>0){for(let s=0;s<i.length;s++){let a=i[s];typeof a=="string"?this.stopNodeExpressionsSet.add(new Js(a)):a instanceof Js&&this.stopNodeExpressionsSet.add(a)}this.stopNodeExpressionsSet.seal()}}};function unt(t,e,r,n,i,s,a){let c=this.options;if(t!==void 0&&(c.trimValues&&!n&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,i,s);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?p3(t,c.parseTagValue,c.numberParseOptions):t}}o(unt,"parseTextData");function dnt(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}o(dnt,"resolveNameSpace");var fnt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function hnt(t,e,r,n=!1){let i=this.options;if(n===!0||i.ignoreAttributes!==!0&&typeof t=="string"){let s=the(t,fnt),a=s.length,c={},l=new Array(a),u=!1,d={};for(let p=0;p<a;p++){let m=this.resolveNameSpace(s[p][1]),A=s[p][4];if(m.length&&A!==void 0){let E=A;i.trimValues&&(E=E.trim()),E=this.replaceEntitiesValue(E,r,this.readonlyMatcher),l[p]=E,d[m]=E,u=!0}}u&&typeof e=="object"&&e.updateCurrent&&e.updateCurrent(d);let f=i.jPath?e.toString():this.readonlyMatcher,h=!1;for(let p=0;p<a;p++){let m=this.resolveNameSpace(s[p][1]);if(this.ignoreAttributesFn(m,f))contLine truncated
`):`
`);let n=new cs("!xml"),i=n,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let a=new y0(e.processEntities),c=t.length;for(let l=0;l<c;l++)if(t[l]==="<"){let d=t.charCodeAt(l+1);if(d===47){let f=lg(t,">",l,"Closing Tag is not closed."),h=t.substring(l+2,f).trim();if(e.removeNSPrefix){let m=h.indexOf(":");m!==-1&&(h=h.substr(m+1))}h=f3(e.transformTagName,h,"",e).tagName,i&&(s=this.saveTextToParentTag(s,i,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(h&&e.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);p&&e.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=this.tagsNodeStack.pop()||n,e.captureMetaData&&i&&i.addEndIndex(Vh(f+1,r)),s="",l=f}else if(d===63){let f=h3(t,l,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,i,this.readonlyMatcher);let h=this.buildAttributesMap(f.tagExp,this.matcher,f.tagName,!0);if(h){let p=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),a.setXmlVersion(Number(p)||1)}if(!(e.ignoreDeclaration&&f.tagName==="?xml"||e.ignorePiTags)){let p=new cs(f.tagName);p.add(e.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&e.ignoreAttributes!==!0&&(p[":@"]=h);let m=e.captureMetaData?Vh(l,r):l;this.addChild(i,p,this.readonlyMatcher,m),e.captureMetaData&&i.addEndIndex(Vh(f.closeIndex+2,r))}l=f.closeIndex+1}else if(d===33&&t.charCodeAt(l+2)===45&&t.charCodeAt(l+3)===45){let f=lg(t,"-->",l+4,"Comment is not closed.");if(e.commentPropName){let h=t.substring(l+4,f-2);s=this.saveTextToParentTag(s,i,this.readonlyMatcher),i.add(e.commentPropName,[{[e.textNodeName]:h}])}l=f}else if(d===33&&t.charCodeAt(l+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let f=a.readDocType(t,l);this.entityDecoder.addInputEntities(f.entities),l=f.i}else if(d===33&&t.charCodeAt(l+2)===91){let f=lg(t,"]]>",l,"CDATA is not closed.")-2,h=t.substring(l+9,f);s=this.saveTextToParentTag(s,i,this.readonlyMatcher);let p=this.parseTextData(h,i.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),e.cdataPropName?i.add(e.cdataPropName,[{[e.textNodeName]:h}]):i.add(e.textNodeName,p),l=f+2}else{let f=h3(t,l,e.removeNSPrefix);if(!f){let N=t.substring(Math.max(0,l-50),Math.min(c,l+50));throw new Error(`readTagExp returned undefined at position ${l}. Context: "${N}"`)}let h=f.tagName,p=f.rawTagName,m=f.tagExp,A=f.attrExpPresent,E=f.closeIndex;if({tagName:h,tagExp:m}=f3(e.transformTagName,h,m,e),e.strictReservedNames&&(h===e.commentPropName||h===e.cdataPropName||h===e.textNodeName||h===e.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);i&&s&&i.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,i,this.readonlyMatcher,!1));let y=i;y&&e.unpairedTagsSet.has(y.tagname)&&(i=this.tagsNodeStack.pop(),this.matcher.pop());let C=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(C=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),m=h):m=m.substr(0,m.length-1),A=h!==m);let w=null,B={},P;P=lnt(p),h!==n.tagname&&this.matcher.push(h,{},P),h!==m&&A&&(w=this.buildAttributesMap(m,this.matcher,h),w&&(B=cnt(w,e))),h!==n.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let G=e.captureMetaData?Vh(l,r):l;if(this.isCurrentNodeStopNode){let N="";if(C)l=f.closeIndex;else if(e.unpairedTagsSet.has(h))l=f.closeIndex;else{let Q=this.readStopNodeData(t,p,E+1);if(!Q)throw new Error(`Unexpected end of ${p}`);l=Q.i,N=Q.tagContent}let $=new cs(h);w&&($[":@"]=w),$.add(e.textNodeName,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(i,$,this.readonlyMatcher,G),e.captureMetaData&&i.addEndIndex(Vh(l+1,r))}else{if(C){({tagName:h,tagExp:m}=f3(e.transformTagName,h,m,e));let N=new cs(h);w&&(N[":@"]=w),this.addChild(i,N,this.readonlyMatcher,G),e.captureMetaData&&i.addEndIndex(Vh(E+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(e.unpairedTagsSet.has(h)){let N=new cs(h);w&&(N[":@"]=w),this.addChild(i,N,this.readonlyMatcher,G),e.captureMetaData&&i.addEndIndex(Vh(f.closeIndex+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1,l=f.closeIndex;continue}else{let N=new cs(h);if(this.tagsNodeStack.length>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(i),w&&(N[":@"]=w),this.addChild(i,N,this.readonlyMatcher,G),i=N}s="",l=E}}}else s+=t[l];return n.child},"parseXml");function Vh(t,e){let r=0,n=e.length;for(;r<n;){let i=Math.floor((r+n)/2);e[i]<t?r=i+1:n=i}return t+r}o(Vh,"getOriginalIndex");function Ant(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(Ant,"addChild");function mnt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString()Line truncated
`;function vnt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(E3(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o(vnt,"detectXmlVersionFromArray");function xhe(t,e,r,n,i){return!r.sanitizeName||i(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(xhe,"resolveTagName");function y3(t,e){let r="";e.format&&(r=xnt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let c=0;c<e.stopNodes.length;c++){let l=e.stopNodes[c];typeof l=="string"?n.push(new Js(l)):l instanceof Js&&n.push(l)}let i=vnt(t,e),s=sR("qName",{xmlVersion:i}),a=new Nc;return vhe(t,e,r,a,n,s)}o(y3,"toXml");function vhe(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=$n(t);return l=g3(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=E3(u);if(d===void 0)continue;let h=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:xhe(d,!1,e,n,s),p=Nnt(u[":@"],e);n.push(h,p);let m=_nt(n,i);if(h===e.textNodeName){let w=u[d];m||(w=e.tagValueProcessor(h,w),w=g3(w,e)),w=$n(w),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=dR(w);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(h===e.commentPropName){let w=u[d][0][e.textNodeName],B=b0(w);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(h[0]==="?"){let w=Bhe(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=Bhe(u[":@"],e,m,n,s),y=r+`<${h}${E}`,C;m?C=Nhe(u[d],e):C=vhe(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(vhe,"arrToStr");function Nnt(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]=Rc(t[i]),n=!0}return n?r:null}o(Nnt,"extractAttributeValues");function Nhe(t,e){if(!Array.isArray(t))return t!=null?$n(t):"";let r="";for(let n=0;n<t.length;n++){let i=t[n],s=E3(i);if(s===e.textNodeName)r+=$n(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=Rnt(i[":@"],e),c=Nhe(i[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(Nhe,"getRawContent");function Rnt(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)}="${Rc(i)}"`}return r}o(Rnt,"attr_to_str_raw");function E3(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(E3,"propName");function Bhe(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:xhe(c,!0,e,n,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=g3(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${l}`:s+=` ${l}="${Rc(u)}"`}return s}o(Bhe,"attr_to_str");function _nt(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(_nt,"checkStopNode");function g3(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(g3,"replaceEntitiesValue");function C3(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(C3,"getIgnoreAttributesFn");var Tnt={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 us(t){if(this.options=Object.assign({},Tnt,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.stopLine truncated
`,this.newLine=`
`):(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.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(us,"Builder");function Dnt(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(Dnt,"detectXmlVersionFromObj");function b3(t,e,r,n,i){return!r.sanitizeName||i(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(b3,"resolveTagName");us.prototype.build=function(t){if(this.options.preserveOrder)return y3(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Nc,r=Dnt(t,this.options),n=sR("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};us.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:b3(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=b3(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,$n(t[l]),c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,$n(t[l]));s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=$n(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),E=$n(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=$n(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=b3(f[p],!0,this.options,r,n);i+=this.buildAttrPairStr(m,$n(t[l][f[p]]),c)}}else s+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:i,val:s}};us.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,$n(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Rc(e)+'"'};function Qnt(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(Qnt,"processTextOrObjNode");us.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]=Rc(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]=Rc(t[n]),r=!0)}return r?e:null};us.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.attr 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
`+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)=>wR(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=ER(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=CR(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 jh{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new B0(e,r,this)}computeHMACSHA256(e){return(0,Ohe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var fn=Sc("storage-common");var ko;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ko||(ko={}));var Md={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Gnt=new $s("The operation was aborted."),x0=class extends _c{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Md){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Md.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Md.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Md.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Md.maxRetryDelayInMs):Md.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Md.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Md.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=yR(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Fd(i.url,pu.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 ko.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ko.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return fn.info(`RetryPolicy: Delay for ${i}ms`),bR(i,n,Gnt)}};var v0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new x0(e,r,this.retryOptions)}};var Hnt="storageBrowserPolicy";function Lhe(){return{name:Hnt,async sendRequest(t,e){return Qt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Fd(t.url,pu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(Lhe,"storageBrowserPolicy");var znt="StorageCorrectContentLengthPolicy";function Fhe(){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:znt,async sendRequest(e,r){return t(e),r(e)}}}o(Fhe,"storageCorrectContentLengthPolicy");var Vnt="storageRetryPolicy",dg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$nt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jnt=new $s("The operation was aborted.");function Mhe(t={}){let e=t.retryPolicyType??dg.retryPolicyType,r=t.maxTries??dg.maxTries,n=t.retryDelayInMs??dg.retryDelayInMs,i=t.maxRetryDelayInMs??dg.maxRetryDelayInMs,s=t.secondaryHost??dg.secondaryHost,a=t.tryTimeoutInMs??dg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return 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
`+n(s)+i(s),c=(0,Uhe.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)=>wR(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=ER(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=CR(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:Wnt,async sendRequest(s,a){return e(s),a(s)}}}o(x3,"storageSharedKeyCredentialPolicy");var Jnt="storageRequestFailureDetailsParserPolicy";function qhe(){return{name:Jnt,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(qhe,"storageRequestFailureDetailsParserPolicy");var Ghe=require("node:crypto");var IR=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,Ghe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var SR="12.31.0",BR="2026-02-06";var xR="https://storage.azure.com/.default",Au={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ta="",v3="*",Ynt=1*1024*1024;var Knt=4*Ynt;var Hhe="AES256",zhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Vhe=["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"],$he=["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"],jhe="BlobUsesCustomerSpecifiedEncryption",Whe="BlobDoesNotUseCustomerSpecifiedEncryption",Jhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function mu(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(mu,"isPipelineLike");var N0=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 N0([],e);return r._credential=t,r}o(Gr,"newPipeline");function Xnt(t){let e=[Znt,Yhe,eit,tit,rit,nit,sit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>iit(i));return{wrappedPolicies:Wq(r),afterRetry:n}}}}o(Xnt,"processDownlevelPipeline");function N3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Jq(e):B3(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${SR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=a0({...r,loggingOptions:{additionalAllowedHeaderNames:Vhe,additionalAllowedQueryParameters:$he,logger:hR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:fR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:I3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:Sq}),i.addPolicy(Fhe()),i.addPolicy(Mhe(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(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(Xst,"generateBlobSASQueryParameters20150405");function Zst(t,e){if(t=rp(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=jc.parse(t.permissions.toString()).toString():i=Wc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",tp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pa(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 Oa(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(Zst,"generateBlobSASQueryParameters20181109");function eot(t,e){if(t=rp(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=jc.parse(t.permissions.toString()).toString():i=Wc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",tp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pa(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 Oa(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(eot,"generateBlobSASQueryParameters20201206");function tot(t,e){if(t=rp(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=jc.parse(t.permissions.toString()).toString():i=Wc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",tp(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?Pa(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 Oa(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(tot,"generateBlobSASQueryParametersUDK20181109");function rot(t,e){if(t=rp(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=jc.parse(t.permissions.toString()).toString():i=Wc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",tp(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?Pa(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 Oa(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(rot,"generateBlobSASQueryParametersUDK20200210");function not(t,e){if(t=rp(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=jc.parse(t.permissions.toString()).toString():i=Wc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",tp(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?Pa(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 Oa(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(not,"generateBlobSASQueryParametersUDK20201206");function iot(t,e){if(t=rp(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=jc.parse(t.permissions.toString()).toString():i=Wc.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",tp(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?Pa(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 Oa(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(iot,"generateBlobSASQueryParametersUDK20250705");function tp(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(tp,"getCanonicalName");function rp(t){let e=t.version?t.version:BR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(rp,"SASSignatureValuesSanityCheckAndAutofill");var U0=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=eg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ta||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ta||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!==Ta||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ta||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!==Ta||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ta||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!==Ta||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ta||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"}};Ig.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var op=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"}};op.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Y0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var pat=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())})},yz=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 ZAe(t,e,r){return pat(this,void 0,void 0,function*(){var n;let i=new La(t),s=i.getBlockBlobClient(),a=new yz((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 __(`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(ZAe,"uploadCacheArchiveSDK");var tme=T(require("buffer"),1),Jc=T(require("fs"),1),rme=T(require("stream"),1),nme=T(require("util"),1);var T_=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 D_(t){return t?t>=200&&t<300:!1}o(D_,"isSuccessStatusCode");function Aat(t){return t?t>=500:!0}o(Aat,"isServerErrorStatusCode");function mat(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}o(mat,"isRetryableStatusCode");function gat(t){return T_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(gat,"sleep");function eme(t,e,r){return T_(this,arguments,void 0,function*(n,i,s,a=Zv,c=eN,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),!Aat(h)))return f;if(h&&(p=mat(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 gat(c),d++}throw Error(`${n} failed: ${u}`)})}o(eme,"retry");function K0(t,e){return T_(this,arguments,void 0,function*(r,n,i=Zv,s=eN){return yield eme(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof Cc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(K0,"retryTypedResponse");function Sg(t,e){return T_(this,arguments,void 0,function*(r,n,i=Zv,s=eN){return yield eme(r,n,a=>a.message.statusCode,i,s)})}o(Sg,"retryHttpClientResponse");var Mo=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 yat(t,e){return Mo(this,void 0,void 0,function*(){yield nme.promisify(rme.pipeline)(t.message,e)})}o(yat,"pipeResponseToStream");var Q_=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(Bat,"printCachesListForDiagnostics");function Iz(t,e,r){return fs(this,void 0,void 0,function*(){let n=new mme.URL(t),i=ame(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield sme(t,e,i):i.concurrentBlobDownloads?yield ime(t,e,i):yield k_(t,e):yield k_(t,e)})}o(Iz,"downloadCache");function yme(t,e,r){return fs(this,void 0,void 0,function*(){let n=wz(),i=Vm(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield K0("reserveCache",()=>fs(this,void 0,void 0,function*(){return n.postJson(Z0("caches"),s)}))})}o(yme,"reserveCache");function Ame(t,e){return`bytes ${t}-${e}/*`}o(Ame,"getContentRange");function xat(t,e,r,n,i){return fs(this,void 0,void 0,function*(){v(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${Ame(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":Ame(n,i)},a=yield Sg(`uploadChunk (start: ${n}, end: ${i})`,()=>fs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!D_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(xat,"uploadChunk");function vat(t,e,r,n){return fs(this,void 0,void 0,function*(){let i=Ec(r),s=Z0(`caches/${e.toString()}`),a=Bg.openSync(r,"r"),c=Ez(n),l=LU("uploadConcurrency",c.uploadConcurrency),u=LU("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];v("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>fs(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 xat(t,s,()=>Bg.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{Bg.closeSync(a)}})}o(vat,"uploadFile");function Nat(t,e,r){return fs(this,void 0,void 0,function*(){let n={size:r};return yield K0("commitCache",()=>fs(this,void 0,void 0,function*(){return t.postJson(Z0(`caches/${e.toString()}`),n)}))})}o(Nat,"commitCache");function Sz(t,e,r,n){return fs(this,void 0,void 0,function*(){if(Ez(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ZAe(r,e,n)}else{let s=wz();v("Upload cache"),yield vat(s,t,e,n),v("Commiting cache");let a=Ec(e);D(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Nat(s,t,a);if(!D_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);D("Cache saved successfully")}})}o(Sz,"saveCache");var dge=T(A4(),1),zr=T(nt(),1),Zs=T(nt(),1),dp=T(nt(),1),fp=T(nt(),1),hp=T(nt(),1);var E4=T(nt(),1),C4=T(nt(),1),cge=T(nt(),1),lge=T(nt(),1),uge=T(nt(),1);var m4=T(nt(),1),g4=T(nt(),1),sge=T(nt(),1),oge=T(nt(),1),age=T(nt(),1);var y4=class extends age.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,oge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,sge.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?g4.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,m4.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,m4.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?g4.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},bT=new y4;var b4=class extends uge.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(()=>bT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,lge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,cge.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(bT.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?C4.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!==" Line truncated
`));let{commands:n}=yield pge(r,"create");yield mge(n,t)})}o(F4,"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())})},Ua=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},pp=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},M4="cache write denied:",BT=class t extends pp{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},yge=tN,xT=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},vT=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 Ua("Path Validation Error: At least one directory or file path is required")}o(Ege,"checkPaths");function U4(t){if(t.length>512)throw new Ua(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ua(`Key Validation Error: ${t} cannot contain commas.`)}o(U4,"checkKey");function q4(){return X0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(q4,"isFeatureAvailable");function Cge(t,e,r,n){return qg(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=X0();v(`Cache service version: ${u}`),Ege(i);let d=bz();if(!lme(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 Hlt(i,s,a,c,l):yield Glt(i,s,a,c,l)})}o(Cge,"restoreCache");function Glt(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 Ua("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)U4(p);let f=yield Wb(),h="";try{let p;try{p=yield gme(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(A){let E=(u=A?.message)!==null&&u!==void 0?u:"";throw E.includes(yge)?new xT(E):A}if(!p?.archiveLocation)return;if(c?.lookupOnly)return D("Lookup only - skipping download"),p.cacheKey;h=Aw.join(yield Th(),Td(f)),v(`Archive Path: ${h}`),yield Iz(p.archiveLocation,h,c),Bh()&&(yield pw(h,f));let m=Ec(h);return D(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield L4(h,f),D("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===Ua.name)throw p;m instanceof Cc&&typeof m.statusCode=="number"&&m.statusCode>=500?xa(`Failed to restore: ${p.message}`):Ge(`Failed to restore: ${p.message}`)}finally{try{yield jb(h)}catch(p){v(`Failed to delete archive: ${p}`)}}})}o(Glt,"restoreCacheV1");function Hlt(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 Ua("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)U4(h);let f="";try{let h=P4(),p=yield Wb(),m={key:s,restoreKeys:a,version:Vm(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(yge)?new xT(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=Aw.join(yield Th(),Td(p)),v(`Archive path: ${f}`),v(`Starting download of archive to: ${f}`),yield Iz(A.signedDownloadUrl,f,c);let y=Ec(f);return D(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Bh()&&(yield pw(f,p)),yield L4(f,p),D("Cache restored successfully"),A.matchedKey}catch(h){let p=h;if(p.name===Ua.name)throw h;p instanceof Cc&&typeof p.statusCode=="number"&&p.statusCode>=500?xa(`Failed to restore: ${h.message}`):Ge(`Failed to restore: ${h.message}`)}finally{try{f&&(yield jb(f))}catch(h){v(`Failed to delete archive: ${h}`)}}})}o(Hlt,"restoreCacheV2");function G4(t,e,r){return qg(this,arguments,void 0,function*(n,i,s,a=!1){let c=X0();v(`Cache service version: ${c}`),Ege(n),U4(i);let l=bz();return ume(l)?c==="v2"?yield Vlt(n,i,s,a):yield zlt(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(G4,"saveCache");function zlt(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:G,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(Lbe(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 sy)if(sy[fe].compare(de,0,sy[fe].length)===0){let Tt=sy[fe].length;this.state.bufBytesStart+=Tt,de=de.slice(Tt);let yt=iy({...this.original_options,encoding:fe});for(let sr in yt)this.options[sr]=yt[sr];({comment:B,escape:P,quote:G}=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===Imt||fe===Smt)&&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+G.length],or=E&&this.__isCharTrimable(de,K+G.length),Yi=B!==null&&this.__compareBytes(B,de,K+G.length,sr),wi=this.__isDelimiter(de,K+G.length,sr),nc=N.length===0?this.__autoDiscoverRecordDelimiter(de,K+G.length):this.__isRecordDelimiter(sr,de,K+G.length);if(P!==null&&this.__isEscape(de,K,fe)&&this.__isQuote(de,K+P.length))K+=P.length-1;else if(!sr||wi||nc||Yi||or){this.state.quoting=!1,this.state.wasQuoting=!0,K+=G.length-1;continue}else if(A===!1){let zf=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(zf!==void 0)return zf}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(G),K+=G.length-1}else if(this.state.field.length!==0){if(A===!1){let sr=this.__infoField(),or=Object.keys(sy).map(wi=>sy[wi].equals(this.state.field.toString())?wi:!1).filter(Boolean)[0],Yi=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(Yi!==void 0)return Yi}}else{this.state.quoting=!0,K+=G.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 wi=this.__onField();if(wi!==void 0)return wi;this.info.bytes=this.state.bufBytesStart+K+sr;let nc=this.__onRecord(s);if(nc!==void 0)return nc;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 Yi=this.__onField();if(Yi!==void 0)return Yi;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 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
`,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 ro=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=N2(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(Us(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=ro(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=Us(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 Mbe.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 A$.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 A$.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Ube.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=Dw.default.resolve(e);return Dw.default.resolve(r).startsWith(n.endsWith(Dw.default.sep)?n:`${n}${Dw.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||Qw.default.join(qbe.default.homedir(),".docker")}static configFile(){let e=Qw.default.join(t.configDir,"config.json");if(m$.default.existsSync(e))return JSON.parse(m$.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 q0e=T(require("crypto"),1);var R2=require("fs"),zbe=require("os");var oy=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,R2.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,R2.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${zbe.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 C$=T(Jbe(),1),Ybe=T(Ch(),1);var Lmt=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 Kbe(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(Kbe,"getAuthString");function Xbe(t){return new C$.HttpClient().getAgent(t)}o(Xbe,"getProxyAgent");function Fmt(t){return new C$.HttpClient().getAgentDispatcher(t)}o(Fmt,"getProxyAgentDispatcher");function Zbe(t){let e=Fmt(t);return o((n,i)=>Lmt(this,void 0,void 0,function*(){return(0,Ybe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(Zbe,"getProxyFetch");function e0e(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(e0e,"getApiBaseUrl");function b$(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(b$,"getUserAgentWithOrchestrationId");function Xd(){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(Xd,"getUserAgent");function O2(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)=>O2.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(O2,"register");function t0e(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(t0e,"addHook");function r0e(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(r0e,"removeHook");var n0e=Function.bind,i0e=n0e.bind(n0e);function s0e(t,e,r){let n=i0e(r0e,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]=i0e(t0e,null).apply(null,s)})}o(s0e,"bindApi");function Umt(){let t=Symbol("Singular"),e={registry:{}},r=O2.bind(null,e,t);return s0e(r,e,t),r}o(Umt,"Singular");function qmt(){let t={registry:{}},e=O2.bind(null, Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}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}
`)}o(mgt,"_buildMessageForResponseErrors");var ggt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(mgt(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},ygt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Egt=["query","method","url"],v0e=/\/api\/v3\/?$/;function Cgt(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(Egt.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)=>ygt.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 v0e.test(s)&&(i.url=s.replace(v0e,"/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 ggt(i,c,a.data)}return a.data.data})}o(Cgt,"graphql");function v$(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>Cgt(r,i,s),"newApi"),{defaults:v$.bind(null,r),endpoint:r.endpoint})}o(v$,"withDefaults");var Ibr=v$(Lw,{headers:{"user-agent":`octokit-graphql.js/${Agt} ${Xd()}`},method:"POST",url:"/graphql"});function N0e(t){return v$(t,{method:"POST",url:"/graphql"})}o(N0e,"withCustomRequest");var N$="(?:[a-zA-Z0-9_-]+)",R0e="\\.",_0e=new RegExp(`^${N$}${R0e}${N$}${R0e}${N$}$`),bgt=_0e.test.bind(_0e);async function wgt(t){let e=bgt(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(wgt,"auth");function Igt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Igt,"withAuthorizationPrefix");async function Sgt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=Igt(t),e(i)}o(Sgt,"hook");var T0e=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(wgt.bind(null,e),{hook:Sgt.bind(null,e)})},"createTokenAuth2");var R$="7.0.6";var D0e=o(()=>{},"noop"),Bgt=console.warn.bind(console),xgt=console.error.bind(console);function vgt(t={}){return typeof t.debug!="function"&&(t.debug=D0e),typeof t.info!="function"&&(t.info=D0e),typeof t.warn!="function"&&(t.warn=Bgt),typeof t.error!="function"&&(t.error=xgt),t}o(vgt,"createLogger");var Q0e=`octokit-core.js/${R$} ${Xd()}`,U2=class{static{o(this,"Octokit")}static VERSION=R$;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 o0e.Collection,n={baseUrl:Lw.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} ${Q0e}`:Q0e,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Lw.defaults(n),this.graphql=N0e(this.request).defaults(n),this.log=vgt(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=T0e(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 _$="17.0.0";var Ngt={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 U$=T(require("fs"),1),q$=T(require("path"),1);var $2=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=q$.default.join(ht.tmpDir(),"export");D(`exporting build record to ${s}`),U$.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=q$.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=U$.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 OQe=T(require("fs"),1),v9=T(require("path"),1);var V0e=T(require("os"),1);function Np(){return 8*1024*1024}o(Np,"getUploadChunkSize");function j2(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(j2,"getRuntimeToken");function $0e(){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($0e,"getResultsServiceUrl");function ly(){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(ly,"isGhes");function j0e(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}o(j0e,"getGitHubWorkspaceDir");function W0e(){let t=V0e.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(W0e,"getConcurrency");function J0e(){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(J0e,"getUploadChunkTimeout");function Y0e(){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(Y0e,"getMaxArtifactListCount");var TDe=T(require("fs"),1),DDe=T(require("path"),1);var G$=T(nt(),1),H$=T(nt(),1),K0e=T(nt(),1),X0e=T(nt(),1),Z0e=T(nt(),1),uy=T(nt(),1),ewe=T(nt(),1);var z$=class extends ewe.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=uy.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(uy.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=uy.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=uy.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,Z0e.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=uy.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,X0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,K0e.reflectio Line truncated
`," Line feed \\n"]]),nwe=new Map([...I8,["\\"," Backslash \\"],["/"," Forward slash /"]]);function iwe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of nwe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(F0e.values()).toString()}
Invalid characters include: ${Array.from(nwe.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.`);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}
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(iwe,"validateArtifactName");function S8(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of I8)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(r8.values()).toString()}
Invalid characters include: ${Array.from(I8.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(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}
`)}o(S8,"validateFilePath");var Gw=T(require("http"),1),N8=T(require("https"),1);function B8(t){let e=t.protocol==="https:";if($gt(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 J2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new J2(`http://${r}`)}else return}o(B8,"getProxyUrl");function $gt(t){if(!t.hostname)return!1;let e=t.hostname;if(jgt(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($gt,"checkBypass");function jgt(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(jgt,"isLoopbackAddress");var J2=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=T(PA(),1),swe=T(Ch(),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 qi;(function(t){t.Accept="accept",t.ContentType="content-type"})(qi||(qi={}));var _u;(function(t){t.ApplicationJson="application/json"})(_u||(_u={}));var Jgt=[Cn.MovedPermanently,Cn.ResourceMoved,Cn.SeeOther,Cn.TemporaryRedirect,Cn.PermanentRedirect],Ygt=[Cn.BadGateway,Cn.ServiceUnavailable,Cn.GatewayTimeout],Kgt=["OPTIONS","GET","DELETE","HEAD"],Xgt=10,Zgt=5,x8=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},v8=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 fy=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"}};Du.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rp=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"}};Rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var K2=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function dl(){let t=j2(),e=z2(t);if(!e.scp)throw K2;let r=e.scp.split(" ");if(r.length===0)throw K2;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw K2;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 K2}o(dl,"getBackendIdsFromToken");function uwe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ls(r),Ls(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(uwe,"maskSigUrl");function dwe(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"&&uwe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&uwe(t.signed_url)}o(dwe,"maskSecretUrls");var X2=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())})},R8=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=j2();this.baseUrl=$0e(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new fy(e,[new Y2(s)])}request(e,r,n,i){return X2(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(()=>X2(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 X2(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(dwe(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(Rp.isUsageErrorMessage(f.msg))throw new Rp;n=`${n}: ${f.msg}`}}catch(u){if(u instanceof SyntaxError&&v(`Raw Body: ${i}`),u instanceof Rp)throw u;if(Du.isNetworkErrorCode(u?.code))throw new Du(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 X2(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 fl(t){let e=new R8(ul(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new W2(e)}o(fl,"internalArtifactTwirpClient");var Ay=T(require("fs"),1);var py=require("path");function fwe(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(fwe,"validateRootDirectory");function hwe(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: ${yQe(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(bQe,"downloadArtifactInternal");function wQe(){return dE(this,arguments,void 0,function*(t=j0e()){return(yield e1t(t))?v(`Artifact destination folder already exists: ${t}`):(v(`Artifact destination folder does not exist, creating: ${t}`),yield S9.default.mkdir(t,{recursive:!0})),t})}o(wQe,"resolveOrCreateDirectory");var r1t=5,n1t=[400,401,403,404,422];function fE(t,e=r1t,r=n1t){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(fE,"getRetryOptions");var IQe="6.0.0";function sA(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(sA,"requestLog");sA.VERSION=IQe;var xQe=T(SQe(),1);var u1=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 i1t="0.0.0-development";function s1t(t){return t.request!==void 0}o(s1t,"isRequestError");async function BQe(t,e,r,n){if(!s1t(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(BQe,"errorRequest");async function o1t(t,e,r,n){let i=new xQe.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(a1t.bind(null,t,e,r),n)}o(o1t,"wrapRequest");async function a1t(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 u1(i.data.errors[0].message,500,{request:n,response:i});return BQe(t,e,s,n)}return i}o(a1t,"requestWithGraphqlErrorHandling");function oA(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",BQe.bind(null,r,n)),t.hook.wrap("request",o1t.bind(null,r,n))),n}o(oA,"retry");oA.VERSION=i1t;var vQe=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 d1(t,e,r,n,i){return vQe(this,void 0,void 0,function*(){var s;let[a,c]=fE(xp),l={log:void 0,userAgent:ul(),previews:void 0,retry:a,request:c},d=yield Yo(i,l,oA,sA).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 za(`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 Tu(`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],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}
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(d1,"getArtifactPublic");function NQe(t){return vQe(this,void 0,void 0,function*(){var e;let r=fl(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=dl(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:nn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new Tu(`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],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
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?no.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(NQe,"getArtifactInternal");var RQe=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 _Qe(t,e,r,n,i){return RQe(this,void 0,void 0,function*(){var s;let[a,c]=fE(xp),l={log:void 0,userAgent:ul(),previews:void 0,retry:a,request:c},u=Yo(i,l,oA,sA),d=yield d1(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 za(`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(_Qe,"deleteArtifactPublic");function TQe(t){return RQe(this,void 0,void 0,function*(){let e=fl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=dl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:nn.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new Tu(`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(TQe,"deleteArtifactInternal");var DQe=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())})},f1=Y0e(),h1=100,c1t=Math.ceil(f1/h1);function QQe(t,e,r,n){return DQe(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]=fE(xp),h={log:void 0,userAgent:ul(),previews:void 0,retry:d,request:f},p=Yo(c,h,oA,sA),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:h1,page:m}),E=Math.ceil(A.total_count/h1),y=A.total_count;y>f1&&(Ge(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${f1}. Results will be incomplete as only the first ${f1} artifacts will be returned`),E=c1t);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:h1,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=PQe(u)),D(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(QQe,"listArtifactsPublic");function kQe(){return DQe(this,arguments,void 0,function*(t=!1){let e=fl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=dl(),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?no.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=PQe(a)),D(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(kQe,"listArtifactsInternal");function PQe(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(PQe,"filterLatest");var dS=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())})},l1t=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 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}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return dS(this,void 0,void 0,function*(){try{if(ly())throw new tf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=l1t(r,["findBy"]);return CQe(e,n,i,s,a)}return bQe(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 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}.
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 dS(this,void 0,void 0,function*(){try{if(ly())throw new tf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:i,token:s}}=e;return QQe(r,n,i,s,e?.latest)}return kQe(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 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}.
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 dS(this,void 0,void 0,function*(){try{if(ly())throw new tf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:i,repositoryName:s,token:a}}=r;return d1(e,n,i,s,a)}return NQe(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 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}.
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 dS(this,void 0,void 0,function*(){try{if(ly())throw new tf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,workflowRunId:s,token:a}}=r;return _Qe(e,s,n,i,a)}return TQe(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 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}
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var WTr=new hE;var p1=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=v9.default.basename(e.filename),n=new hE;D(`Uploading ${r} as an artifact`);let i=v9.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new za("Cannot upload artifact");let a=s.size??OQe.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 LQe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FQe=/[\x01-\x7F]/g,MQe=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,N9=/<\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,pE=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=_9(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${T9((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=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+=`
`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=_9(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${T9((t.line+h+1).toString(),u)} | ${p.str}
`}return l.replace(/\n$/,"")}o(Ikt,"makeSnippet");function KQe(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(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(`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(KQe,"formatError");var Skt=class o1e extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=KQe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${KQe(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=Ikt(c),new o1e(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},xf={BLOCK:1,FLOW:2},H9={CLIP:1,STRIP:2,KEEP:3};function XQe(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(XQe,"simpleEscapeSequence");var Bkt=new Array(256),xkt=new Array(256);for(let t=0;t<256;t++)Bkt[t]=XQe(t)?1:0,xkt[t]=XQe(t);var l2r=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function D9(t){return encodeURI(t).replace(/!/g,"%21")}o(D9,"tagPercentEncode");function a1e(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${D9(e)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${D9(e.slice(18))}`:`!<${D9(e)}>`}o(a1e,"tagNameShort");var vkt={filename:"",schema:Ekt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var P9=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,c1e=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,u2r=new RegExp(`^(?:${P9})*$`),d2r=new RegExp(`^(?:${c1e})+$`),f2r=new RegExp(`^(?:!(?:${P9})*|${c1e}(?:${P9})*)$`),Nkt={filename:"",maxDepth:100};var h2r={...Nkt,...vkt};var aA=Symbol("INVALID");function Rkt(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(Rkt,"buildRepresentTypes");function _kt(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(_kt,"matchTag");function pS(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=_kt(t,e);if(!r){if(e===void 0||t.skipInvalid)return aA;throw new Skt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}let{tag:n,tagName:i,implicitTag:s}=r,a=s?i:a1e(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:xf.BLOCK,items:[]};t.noRefs||t.refs.set(e,d);for(let f=0,h=u.length;f<h;f+=1){let p=pS(t,u[f]);p===aA&&u[f]===void 0&&(p=pS(t,null)),p!==aA&&d.items.push(p)}return d}let c=n.represent(e),l={kind:"mapping",tag:a,tagged:!s,style:xf.BLOCK,items:[]};t.noRefs||t.refs.set(e,l);for(let[u,d]of c){let f=pS(t,u);if(f===aA)continue;let h=pS(t,d);h!==aA&&l.items.push({key:f,value:h})}return l}o(pS,"build");function Tkt(t,e,r={}){let n=pS({representTypes:Rkt(e),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:n===aA?null:n,directives:[]}]}o(Tkt,"jsToAst");var Dkt=Symbol("visit:break"),l1e=Symbol("visit:skip");function A1(t,e,r){let n=e(t,r);if(n===Dkt)return!0;if(n===l1e)return!1;let i=r.depth+1;switch(t.kind){case"sequence":for(let s of t.items)if(A1(s,e,{depth:i,parent:t,isKey:!1}))return!0;break;case"mapping":for(let{key:s,value:a}of t.items)if(A1(s,e,{depth:i,parent:t,isKey:!0})||A1(a,e,{depth:i,parent:t,isKey:!1}))return!0;break}return!1}o(A1,"visitNode");function ZQe(t,e){for(let r of t)if(r.contents&&A1(r.contents,e,{depth:0,parent:null,isKey:!1}))return}o(ZQe,"visit");function C1(t,e){return(t&1<<e)!==0}o(C1,"hasBit");var e1e={applyQuoteFlowKeysOption:Qkt,doubleQuoteForInvisibles:kkt,doubleQuoteWhitespaceOnly:Pkt,applyForceQuotesOption:Okt,tryLongOrMultilineAsBlock:Lkt,quoteInvalidPlain:Fkt,fallbackToDoubleQuoted:Mkt};function u1e(t){return t.presenterOptions.quoteStyle==="single"&&C1(t.allowedStylesMask,rt.SINGLE_QUOTED)?rt.SINGLE_QUOTED:rt.DOUBLE_QUOTED}o(u1e,"_preferredQuotedStyle");function Qkt(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==rt.PLAIN||(t.style=rt.DOUBLE_QUOTED))}o(Qkt,"applyQuoteFlowKeysOption");function kkt(t){t.style===rt.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=rt.DOUBLE_QUOTED)}o(kkt,"doubleQuoteForInvisibles");function Pkt(t){t.style===rt.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=rt.DOUBLE_QUOTED)}o(Pkt,"doubleQuoteWhitespaceOnly");function Okt(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:u1e(t)))}o(Okt,"applyForceQuotesOption");function Lkt(t){if(t.style!==rt.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!C1(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(Lkt,"tryLongOrMultilineAsBlock");function Fkt(t){t.style===rt.PLAIN&&!C1(t.allowedStylesMask,rt.PLAIN)&&(t.style=u1e(t))}o(Fkt,"quoteInvalidPlain");function Mkt(t){C1(t.allowedStylesMask,t.style)||(t.style=rt.DOUBLE_QUOTED)}o(Mkt,"fallbackToDoubleQuoted");function hS(t,e){return t|1<<e}o(hS,"setBit");var Ukt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",qkt="[\\n\\r]",Gkt="\\uFEFF",z9="[ \\t]",d1e=`(?:(?!(?:${qkt}|${Gkt}))${Ukt})`,b1=`(?:(?!${z9})${d1e})`,f1e="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",h1e="[-?:,\\[\\]{}#&*!|>'\"%@`]",Hkt="[,\\[\\]{}]",O9=b1,L9=`(?:(?!${Hkt})${b1})`,zkt=`(?:(?:(?!${h1e})${b1})|[?:-](?=${O9}))`,Vkt=`(?:(?:(?!${h1e})${b1})|[?:-](?=${L9}))`,p1e=`(?:(?:(?![:#])${O9})|:(?=${O9}))#*`,A1e=`(?:(?:(?![:#])${L9})|:(?=${L9}))#*`,m1e=`(?:${z9}*${p1e})*`,g1e=`(?:${z9}*${A1e})*`,y1e=`${zkt}#*${m1e}`,E1e=`${Vkt}#*${g1e}`,$kt=y1e,jkt=E1e,Wkt=`\\n+${p1e}${m1e}`,Jkt=`\\n+${A1e}${g1e}`,Ykt=`${y1e}(?:${Wkt})*`,Kkt=`${E1e}(?:${Jkt})*`,Xkt=new RegExp(`^(?:${Ykt})$`,"u"),Zkt=new RegExp(`^(?:${Kkt})$`,"u"),ePt=new RegExp(`^(?:${$kt})$`,"u"),tPt=new RegExp(`^(?:${jkt})$`,"u"),rPt=new RegExp(`^(?:${f1e})*$`,"u"),nPt=new RegExp(`^(?:${f1e}|\\n)*$`,"u"),iPt=new RegExp(`^(?:${d1e}|\\n)*$`,"u"),sPt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,V9=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function oPt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?tPt:ePt:t.flowOnly?Zkt:Xkt).test(e)||t.shiftOfFirstLine===0&&sPt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(`
`);if(n!==-1){let i=e.slice(n+1);if(V9.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(oPt,"canUsePlain");function aPt(t){let e=t.node.value;if(!(t.isKey?rPt:nPt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(`
`);if(r!==-1&&V9.test(e.slice(r+1)))return!1}return!0}o(aPt,"canUseSingleQuoted");function cPt(t){if(t.flowOnly||!iPt.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&&V9.test(t.node.value))}o(cPt,"canUseBlock");function lPt(t){let e=hS(0,rt.DOUBLE_QUOTED);oPt(t)&&(e=hS(e,rt.PLAIN)),aPt(t)&&(e=hS(e,rt.SINGLE_QUOTED)),cPt(t)&&(e=hS(hS(e,rt.LITERAL_BLOCK),rt.FOLDED_BLOCK)),t.allowedStylesMask=e}o(lPt,"detectAllowedStyles");function uPt(t){switch(t.style){case rt.PLAIN:return dPt(t);case rt.SINGLE_QUOTED:return fPt(t);case rt.LITERAL_BLOCK:return hPt(t);case rt.FOLDED_BLOCK:return pPt(t);case rt.DOUBLE_QUOTED:return APt(t)}}o(uPt,"renderScalar");function dPt(t){return C1e(t.node.value,t.shiftOfContent)}o(dPt,"renderPlain");function fPt(t){return`'${C1e(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(fPt,"renderSingleQuoted");function hPt(t){let e=t.node.value;return"|"+w1e(e,t.shiftOfParent,t.shiftOfContent)+I1e(b1e(e,t.shiftOfContent))}o(hPt,"renderLiteralBlock");function pPt(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)),">"+w1e(e,t.shiftOfParent,t.shiftOfContent)+I1e(b1e(gPt(e,n),t.shiftOfContent))}o(pPt,"renderFoldedBlock");function APt(t){return`"${CPt(t.node.value)}"`}o(APt,"renderDoubleQuoted");function C1e(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(t1e,"encodeFlowBreaks");function r1e(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(C1e,"encodeFlowBreaks");function b1e(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(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]===`
`&&(i+=r),i+=a}return i}o(b1e,"indentString");function mPt(t){return/^\n* /.test(t)}o(mPt,"needIndentIndicator");function w1e(t,e,r){let n=mPt(t)?String(r-e):"",i=t[t.length-1]===`
`;return`${n}${i&&(t[t.length-2]===`
`||t===`
`)?"+":i?"":"-"}
`}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+=`
`}o(w1e,"blockHeader");function I1e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}o(I1e,"dropEndingNewline");function F9(t){return t===" "||t===" "}o(F9,"isMoreIndented");function t1e(t,e){if(t===""||F9(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(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===`
${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(t1e,"foldLine");function gPt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(`
`);n===-1&&(n=t.length),r.lastIndex=n;let i=t1e(t.slice(0,n),e),s=t[0]===`
`||F9(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&F9(u[0]),i+=l+(!s&&!a&&u!==""?`
`:"")+t1e(u,e),s=a}return i}o(gPt,"foldBlockScalar");var yPt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function EPt(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(EPt,"escapeCharacter");function CPt(t){return t.replace(yPt,EPt)}o(CPt,"escapeString");var m1=10,$9={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(e1e).map(t=>Reflect.get(e1e,t)),tagBeforeAnchor:!1};function bPt(t){return t.tagged?t.tag:a1e(t.tag)}o(bPt,"nodeTagShort");function wPt(t){let e={...$9,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(wPt,"createPresenterState");function M9(t,e){return`
${" ".repeat(t.indent*e)}`}o(M9,"generateNextLine");function IPt(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(IPt,"scalarLayout");function SPt(t,e,r){let n="";for(let s=0,a=r.items.length;s<a;s+=1){let c=$u(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(SPt,"writeFlowSequence");function r1e(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c=$u(t,e+1,r.items[s],r,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;(!n||i!=="")&&(i+=M9(t,e)),c===""||m1===c.charCodeAt(0)?i+="-":i+="- ",i+=c}return i}o(r1e,"writeBlockSequence");function BPt(t,e,r){let n="";for(let{key:s,value:a}of r.items){let c="";n!==""&&(c+=`,${t.flowSkipCommaSpace?"":" "}`);let l=$u(t,e,s,r,{iskey:!0}),u=l.text,d=$u(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(BPt,"writeFlowMapping");function xPt(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c="";(!n||i!=="")&&(c+=M9(t,e));let{key:l,value:u}=r.items[s],d=(l.kind==="mapping"||l.kind==="sequence")&&l.style===xf.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===rt.LITERAL_BLOCK||l.style===rt.FOLDED_BLOCK),f=d?$u(t,e+1,l,r,{block:!0,compact:!0,isblockseq:!U9(t,l,e+1)}):$u(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&&m1===h.charCodeAt(0)?c+="?":c+="? "),c+=h,A&&(c+=M9(t,e));let E=$u(t,e+1,u,r,{block:!0,compact:A,isblockseq:A&&!U9(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!A&&(l.kind==="alias"||y)?" ":"";E===""||m1===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(xPt,"writeBlockMapping");function U9(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(U9,"cannotBeCompact");function $u(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;U9(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===xf.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=xPt(t,e,r,l):d=BPt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=r1e(t,e-1,r,l):d=r1e(t,e,r,l):d=SPt(t,e,r);else{let A=IPt(t,r,n,e,a,!s);lPt(A);for(let E of t.scalarStyleRules)E(A);d=uPt(A),t.openEnded=(A.style===rt.LITERAL_BLOCK||A.style===rt.FOLDED_BLOCK)&&(r.value===`
`||r.value.endsWith(`
`)),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}
`)),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?bPt(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)===m1?"":" ";m=`${A.join(" ")}${C}${d}`}return{text:m,noBody:p}}o($u,"writeNode");function vPt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===xf.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(vPt,"rootStartsOwnLine");function NPt(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(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)?`
`}return e}o(NPt,"writeDocumentDirectives");function RPt(t,e){let r=wPt(e),n="",i=!1;for(let s=0;s<t.length;s+=1){let a=t[s];r.openEnded=!1;let c=NPt(a),l=c!=="",u=a.explicitStart||l||s>0&&!i;if(n+=c,a.contents===null)u&&(n+=`---
`);else if(u){let d=$u(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||vPt(a.contents)?`
`:" ";n+=`---${f}${d}
`}else n+=Hu(r,0,a.contents,null,{block:!0,compact:!0}).text+`
`}else n+=$u(r,0,a.contents,null,{block:!0,compact:!0}).text+`
`;i=a.explicitEnd||r.openEnded,i&&(n+=`...
`)}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
`)}return n}o(RPt,"present");var _Pt={...$9,schema:bkt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function TPt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o(TPt,"defaultCompareFn");function S1e(t,e={}){let r={..._Pt,...e},n=Tkt(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&ZQe(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=xf.FLOW),l1e}),r.sortKeys){let i=r.sortKeys===!0?TPt:r.sortKeys;ZQe(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),RPt(n,{...dkt(r,Object.keys($9)),schema:r.schema})}o(S1e,"dump");var p2r=AE.DOCUMENT,A2r=AE.SEQUENCE,m2r=AE.MAPPING,g2r=AE.SCALAR,y2r=AE.ALIAS,E2r=AE.POP,C2r=rt.PLAIN,b2r=rt.SINGLE_QUOTED,w2r=rt.DOUBLE_QUOTED,I2r=rt.LITERAL_BLOCK,S2r=rt.FOLDED_BLOCK,B2r=xf.BLOCK,x2r=xf.FLOW,v2r=H9.CLIP,N2r=H9.STRIP,R2r=H9.KEEP;var B1e=T(require("os"),1);var w1=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?B1e.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=lM.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(fS(u),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(fS(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=ro(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=ro(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&&Ls(s),[i,s]}};var W9=T(require("fs"),1),x1e=T(require("path"),1);var mE=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 x1e.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(!W9.default.existsSync(e))return;let r=W9.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=ro(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=ro(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=ro(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 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(`
`).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 GOe=require("crypto"),Ll=T(require("fs"),1),Fl=T(require("path"),1);var JE=T(rJ(),1),HOe=T(gY(),1),YE=T(LOe(),1);var MOe=require("util");var CK=T(rJ(),1);var UOe=T(qa(),1);var FOe="application/vnd.oci.empty.v1+json";var Bs=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,MOe.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=UOe.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===CK.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===FOe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===CK.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var bK=T(require("fs"),1);var tP=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(!bK.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 WE="https://search.sigstore.dev";var qOe="slsaprovenance1",Gf=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Bs,this.imageTools=e?.imageTools||new tP}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=Bs.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: ${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(`
${p}`)}else throw new Error(`Cosign sign command failed with: ${Bs.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,JE.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: ${Bs.getErrorMessage(a.stderr)}`);let c=Bs.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=Bs.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"))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(`
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Bs.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=Fl.default.join(Fl.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=Fl.default.join(Fl.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",qOe,"--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=Bs.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:
${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
${A}`)}else throw new Error(`Cosign attest-blob command failed with: ${Bs.getErrorMessage(h.stderr)}`);let m=t.parseBundle((0,JE.bundleFromJSON)(JSON.parse(Ll.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=Fl.default.dirname(i);await Sr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=Fl.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??qOe];(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(Ll.default.readFileSync(r,"utf-8")),s=(0,JE.bundleFromJSON)(i);D("Fetching Sigstore TUF trusted root metadata");let a=await HOe.getTrustedRoot({retry:{retries:5}}),c=(0,YE.toTrustMaterial)(a);try{D("Verifying artifact signature");let l=(0,YE.toSignedEntity)(s,Ll.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new YE.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(Ll.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: ${WE}?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=Fl.default.join(e.localExportDir,"provenance.json");if(Ll.default.existsSync(r))return{[r]:Ll.default.readFileSync(r)};let n=Ll.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>Ll.default.existsSync(Fl.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=Fl.default.join(e.localExportDir,a.name,"provenance.json");s[c]=Ll.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,JE.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 GOe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var rP=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
`),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 zOe=T(qa(),1);var nP=T(require("fs"),1);var iP=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(!nP.default.existsSync(e))throw new Error(`config file ${e} not found`);e=nP.default.readFileSync(e,{encoding:"utf-8"})}let n=ht.tmpName({tmpdir:ht.tmpDir()});return nP.default.writeFileSync(n,e),n}};var sP=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new iP,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 XE({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")||!zOe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var oP=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 td=T(require("fs"),1),Ul=T(require("os"),1),ZE=T(require("path"),1);var cP=T(qa(),1),IK=T(require("util"),1);var aP=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=cP.clean(s)||"";if(!cP.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:ZE.default.join(Ul.default.homedir(),".bin","docker-compose"),cacheFile:Ul.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=IK.format(n.downloadURL,s,this.filename());D(`Downloading ${u}`);let d=await Bo(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=ZE.default.join(r,"compose-bin-standalone");td.default.existsSync(n)||td.default.mkdirSync(n,{recursive:!0});let i=Ul.default.platform()=="win32"?"compose.exe":"compose",s=ZE.default.join(n,i);return td.default.copyFileSync(e,s),D("Fixing perms"),td.default.chmodSync(s,"0755"),Ac(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=ZE.default.join(r,"cli-plugins");td.default.existsSync(n)||td.default.mkdirSync(n,{recursive:!0});let i=Ul.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -289,8 +291,8 @@ EOT
FROM scratch
COPY --from=builder /out /
`;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");
`;var lP=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 Gf}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=tC.clean(i)||"";if(!tC.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Dn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:eC.default.join(tc.default.homedir(),".bin"),cacheFile:tc.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=SK.format(r.downloadURL,i,this.filename());D(`Downloading ${l}`);let u=await Bo(l,void 0,this.githubToken);v(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&tC.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:eC.default.join(tc.default.homedir(),".bin"),cacheFile:tc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return D(`Cosign binary found in ${a}`),a;let c=eC.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(VOe)}).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=eC.default.join(r,"cosign-bin");US.default.existsSync(n)||US.default.mkdirSync(n,{recursive:!0});let i=tc.default.platform()=="win32"?"cosign.exe":"cosign",s=eC.default.join(n,i);return US.default.copyFileSync(e,s),D("Fixing perms"),US.default.chmodSync(s,"0755"),Ac(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 Bo(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?`${WE}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(tc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=tc.default.arch();break}}let r=tc.default.platform()=="win32"?"windows":tc.default.platform(),n=tc.default.platform()=="win32"?".exe":"";return SK.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 gE.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 $Oe=T(qa(),1);var uP=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),aoe("metadata",h)});let f=[];if(await Sr("Build references",async()=>{if(f=await V3t(r,t,e.builder),f.length>0){for(let h of f)D(h);cLe(f)}else D("No build references found")}),$3t()){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()=>{j3t()?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!"),lLe()):D("Build summary requires Buildx >= 0.23.0"):D("Build summary disabled")}),u)throw u},async()=>{nLe&&await Sr("Generating build summary",async()=>{try{let t=W3t(),e;t&&(e=J3t());let n=await new $2().export({refs:rLe});D(`Build records written to ${n.dockerbuildFilename} (${Oe.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await p1.upload({filename:n.dockerbuildFilename,retentionDays:e})),await w1.writeBuildSummary({exportRes:n,uploadRes:i,inputs:eLe,bakeDefinition:tLe,driver:XOe,endpoint:ZOe})}catch(t){Ge(t.message)}}),yP.length>0&&await Sr(`Removing temp folder ${yP}`,async()=>{dLe.rmSync(yP,{recursive:!0})})});async function V3t(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(V3t,"buildRefs");function $3t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Oe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o($3t,"buildChecksAnnotationsEnabled");function j3t(){return process.env.DOCKER_BUILD_SUMMARY?Oe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(j3t,"buildSummaryEnabled");function W3t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Oe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(W3t,"buildRecordUploadEnabled");function J3t(){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(J3t,"buildRecordRetentionDays");
/*! Bundled license information:
undici/lib/web/fetch/body.js:
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,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
"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
+10 -8
View File
@@ -3208,13 +3208,12 @@ terms above.
The following npm packages may be included in this product:
- @nodable/entities@2.1.0
- @nodable/entities@3.1.0
- binary@0.3.0
- browserify-zlib@0.1.4
- eastasianwidth@0.2.0
- is-gzip@1.0.0
- isarray@1.0.0
- xml-naming@0.1.0
These packages each contain the following license:
@@ -3346,7 +3345,7 @@ SOFTWARE.
The following npm package may be included in this product:
- fast-xml-parser@5.8.0
- fast-xml-parser@5.12.0
This package contains the following license:
@@ -3436,7 +3435,7 @@ SOFTWARE.
The following npm package may be included in this product:
- strnum@2.3.0
- strnum@2.5.1
This package contains the following license:
@@ -3562,7 +3561,7 @@ SOFTWARE.
The following npm package may be included in this product:
- path-expression-matcher@1.5.0
- path-expression-matcher@1.6.2
This package contains the following license:
@@ -3590,11 +3589,14 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- fast-xml-builder@1.2.0
- anynum@1.0.1
- fast-xml-builder@1.3.1
- is-unsafe@2.0.3
- xml-naming@0.3.0
This package contains the following license:
These packages each contain the following license:
MIT License
+82 -80
View File
@@ -1,80 +1,80 @@
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=Eh.encode(u+`; name="${A(d(C))}"\r
var gZ=Object.create;var rh=Object.defineProperty;var EZ=Object.getOwnPropertyDescriptor;var yZ=Object.getOwnPropertyNames;var CZ=Object.getPrototypeOf,IZ=Object.prototype.hasOwnProperty;var o=(t,e)=>rh(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),BZ=(t,e)=>{for(var r in e)rh(t,r,{get:e[r],enumerable:!0})},wZ=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yZ(e))!IZ.call(t,n)&&n!==r&&rh(t,n,{get:()=>e[n],enumerable:!(s=EZ(e,n))||s.enumerable});return t};var b=(t,e,r)=>(r=t!=null?gZ(CZ(t)):{},wZ(e||!t||!t.__esModule?rh(r,"default",{value:t,enumerable:!0}):r,t));var F_=g(Jc=>{"use strict";var EOe=require("net"),NZ=require("tls"),_B=require("http"),L_=require("https"),SZ=require("events"),yOe=require("assert"),RZ=require("util");Jc.httpOverHttp=TZ;Jc.httpsOverHttp=PZ;Jc.httpOverHttps=vZ;Jc.httpsOverHttps=kZ;function TZ(t){var e=new Ni(t);return e.request=_B.request,e}o(TZ,"httpOverHttp");function PZ(t){var e=new Ni(t);return e.request=_B.request,e.createSocket=M_,e.defaultPort=443,e}o(PZ,"httpsOverHttp");function vZ(t){var e=new Ni(t);return e.request=L_.request,e}o(vZ,"httpOverHttps");function kZ(t){var e=new Ni(t);return e.request=L_.request,e.createSocket=M_,e.defaultPort=443,e}o(kZ,"httpsOverHttps");function Ni(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||_B.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=O_(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(Ni,"TunnelingAgent");RZ.inherits(Ni,SZ.EventEmitter);Ni.prototype.addRequest=o(function(e,r,s,n){var i=this,a=LB({request:e},i.options,O_(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");Ni.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=LB({},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")),go("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){go("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){go("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 go("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),go(`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");Ni.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 M_(t,e){var r=this;Ni.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=LB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=NZ.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(M_,"createSecureSocket");function O_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(O_,"toOptions");function LB(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(LB,"mergeOptions");var go;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?go=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"):go=o(function(){},"debug");Jc.debug=go});var SA=g((BOe,U_)=>{U_.exports=F_()});var He=g((wOe,q_)=>{q_.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((bOe,dL)=>{"use strict";var G_=Symbol.for("undici.error.UND_ERR"),ze=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[G_]===!0}[G_]=!0},H_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),MB=class extends ze{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[H_]===!0}[H_]=!0},z_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),OB=class extends ze{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[z_]===!0}[z_]=!0},V_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FB=class extends ze{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[V_]===!0}[V_]=!0},$_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),UB=class extends ze{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(xM,"isValidHeaderValue");function Wee(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(kee.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Wee,"setRequestReferrerPolicyOnRedirect");function jee(){return"allowed"}o(jee,"crossOriginResourcePolicyCheck");function Kee(){return"success"}o(Kee,"corsCheck");function Xee(){return"success"}o(Xee,"TAOCheck");function Zee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Zee,"appendFetchMetadata");function ete(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&&vw(t.origin)&&!vw(OA(t))&&(e=null);break;case"same-origin":xh(t,OA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(ete,"appendRequestOriginHeader");function nl(t,e){return t}o(nl,"coarsenTime");function tte(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:nl(t.domainLookupStartTime,r),domainLookupEndTime:nl(t.domainLookupEndTime,r),connectionStartTime:nl(t.connectionStartTime,r),connectionEndTime:nl(t.connectionEndTime,r),secureConnectionStartTime:nl(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(tte,"clampAndCoarsenConnectionTimingInfo");function rte(t){return nl(Oee.now(),t)}o(rte,"coarsenedSharedCurrentTime");function ste(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(ste,"createOpaqueTimingInfo");function QM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(QM,"makePolicyContainer");function nte(t){return{referrerPolicy:t.referrerPolicy}}o(nte,"clonePolicyContainer");function ite(t){let e=t.referrerPolicy;ya(e);let r=null;if(t.referrer==="client"){let c=CM();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Pw(r),n=Pw(r,!0);s.toString().length>4096&&(s=n);let i=xh(t,s),a=MA(s)&&!MA(t.url);switch(e){case"origin":return n??Pw(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=OA(t);return xh(s,c)?s:MA(s)&&!MA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(ite,"determineRequestsReferrer");function Pw(t,e){return ya(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(Pw,"stripURLForReferrer");function MA(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(MA,"isURLPotentiallyTrustworthy");function ote(t,e){if(bh===void 0)return!0;let r=NM(e);if(r==="no metadata"||r.length===0)return!0;let s=cte(r),n=lte(r,s);for(let i of n){let a=i.algo,c=i.hash,l=bh.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)),ute(l,c))return!0}return!1}o(ote,"bytesMatch");var ate=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function NM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=ate.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();BM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(NM,"parseMetadata");function cte(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(cte,"getStrongestMetadata");function lte(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(lte,"filterMetadataListByAlgorithm");function ute(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(ute,"compareBase64Mixed");function Ate(t){}o(Ate,"tryUpgradeReque Line truncated
`);function Yte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Yte,"isAsciiString");function Jte(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(Jte,"validateBoundary");function Wte(t,e){Nh(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&&Sh(t,Vte,i)||i.position===t.length-4&&Sh(t,$te,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=jte(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",Yte(A)||(A=""),m=new Hte([p],u,{type:A})):m=Ote(Buffer.from(p)),Nh(UM(l)),Nh(typeof m=="string"&&UM(m)||Ute(m)),n.push(qte(l,m,u))}}o(Wte,"multipartFormDataParser");function jte(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=ol(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Fw(a,!0,!0,c=>c===9||c===32),!Fte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,ol(c=>c===32||c===9,t,e),Mte(a)){case"content-disposition":{if(r=s=null,!Sh(t,zte,e)||(e.position+=17,r=HM(t,e),r===null))return"failure";if(Sh(t,GM,e)){let c=e.position+GM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=HM(t,e),s===null))return"failure"}break}case"content-type":{let c=ol(l=>l!==10&&l!==13,t,e);c=Fw(c,!1,!0,l=>l===9||l===32),n=qM(c);break}case"content-transfer-encoding":{let c=ol(l=>l!==10&&l!==13,t,e);c=Fw(c,!1,!0,l=>l===9||l===32),i=qM(c);break}default:ol(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(jte,"parseMultipartFormDataHeaders");function HM(t,e){Nh(t[e.position-1]===34);let r=ol(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(HM,"parseMultipartFormDataName");function ol(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(ol,"collectASequenceOfBytes");function Fw(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(Fw,"removeChars");function Sh(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(Sh,"bufferStartsWith");zM.exports={multipartFormDataParser:Wte,validateBoundary:Jte}});var ll=g((uFe,tO)=>{"use strict";var qA=Ae(),{ReadableStreamFrom:Kte,isBlobLike:$M,isReadableStreamLike:Xte,readableStreamClose:Zte,createDeferredPromise:ere,fullyReadBody:tre,extractMimeType:rre,utf8DecodeBytes:WM}=Vr(),{FormData:YM}=UA(),{kState:cl}=Eo(),{webidl:sre}=Gt(),{Blob:nre}=require("node:buffer"),Uw=require("node:assert"),{isErrored:jM,isDisturbed:ire}=require("node:stream"),{isArrayBuffer:ore}=require("node:util/types"),{serializeAMimeType:are}=Br(),{multipartFormDataParser:cre}=VM(),qw;try{let t=require("node:crypto");qw=o(e=>t.randomInt(0,e),"random")}catch{qw=o(t=>Math.floor(Math.random(t)),"random")}var Rh=new TextEncoder;function lre(){}o(lre,"noop");var KM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,XM;KM&&(XM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ire(e)&&!jM(e)&&e.cancel("Response object has been garbage collected").catch(lre)}));function ZM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:$M(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?Rh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Zte(l))},start(){},type:"bytes"}),Uw(Xte(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(ore(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(qA.isFormDataLike(t)){let l=`----formdata-undici-0${`${qw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let A=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=Rh.encode(u+`; name="${A(d(y))}"\r
\r
${d(E)}\r
`);p.push(y),i+=y.byteLength}else{let y=Eh.encode(`${u}; name="${A(d(C))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
`);p.push(C),i+=C.byteLength}else{let C=Rh.encode(`${u}; name="${A(d(y))}"`+(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 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
`);p.push(C,E,m),typeof E.size=="number"?i+=C.byteLength+E.size+m.byteLength:h=!0}let f=Rh.encode(`--${l}--\r
`);p.push(f),i+=f.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if($M(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(qA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Kte(t)}if((typeof n=="string"||qA.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(!jM(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(ZM,"extractBody");function ure(t,e=!1){return t instanceof ReadableStream&&(Uw(!qA.isDisturbed(t),"The body has already been consumed."),Uw(!t.locked,"The stream is locked.")),ZM(t,e)}o(ure,"safelyExtractBody");function Are(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(Are,"cloneBody");function dre(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(dre,"throwIfAborted");function pre(t){return{blob(){return al(this,r=>{let s=JM(this);return s===null?s="":s&&(s=are(s)),new nre([r],{type:s})},t)},arrayBuffer(){return al(this,r=>new Uint8Array(r).buffer,t)},text(){return al(this,WM,t)},json(){return al(this,hre,t)},formData(){return al(this,r=>{let s=JM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=cre(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new YM;return i[cl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new YM;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 al(this,r=>new Uint8Array(r),t)}}}o(pre,"bodyMixinMethods");function mre(t){Object.assign(t.prototype,pre(t))}o(mre,"mixinBody");async function al(t,e,r){if(sre.brandCheck(t,r),eO(t))throw new TypeError("Body is unusable: Body has already been read");dre(t[cl]);let s=ere(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[cl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await tre(t[cl].body,i,n),s.promise)}o(al,"consumeBody");function eO(t){let e=t[cl].body;return e!=null&&(e.stream.locked||qA.isDisturbed(e.stream))}o(eO,"bodyUnusable");function hre(t){return JSON.parse(WM(t))}o(hre,"parseJSONFromBytes");function JM(t){let e=t[cl].headersList,r=rre(e);return r==="failure"?null:r}o(JM,"bodyMimeType");tO.exports={extractBody:ZM,safelyExtractBody:ure,cloneBody:Are,mixinBody:mre,streamRegistry:XM,hasFinalizationRegistry:KM,bodyUnusable:eO}});var gO=g((dFe,fO)=>{"use strict";var J=require("node:assert"),K=Ae(),{channels:rO}=jc(),Gw=ww(),{RequestContentLengthMismatchError:Ca,ResponseContentLengthMismatchError:sO,RequestAbortedError:AO,InvalidArgumentError:fre,HeadersTimeoutError:gre,HeadersOverflowError:Ere,SocketError:ul,InformationalError:Al,BodyTimeoutError:yre,HTTPParserError:Cre,ResponseExceededMaxSizeError:Ire}=Ce(),{kUrl:dO,kReset:wr,kClient:kh,kParser:Me,kBlocking:zA,kRunning:Et,kPending:pO,kSize:nO,kWriting:yo,kQueue:Zs,kNoRef:GA,kKeepAliveDefaultTimeout:Bre,kHostHeader:wre,kPendingIdx:bre,kRunningIdx:Es,kError:or,kPipelining:Dh,kSocket:Ia,kKeepAliveTimeoutValue:Lh,kMaxHeadersSize:Hw,kKeepAliveMaxTimeout:xre,kKeepAliveTimeoutThreshold:Qre,kHeadersTimeout:Nre,kBodyTimeout:Sre,kStrictContentLength:$w,kMaxRequests:iO,kCounter:Rre,kMaxResponseSize:Tre,kOnError:oO,kResume:ki,kHTTPContext:mO}=He(),$r=XL(),aO=Buffer.alloc(0),Th=Buffer[Symbol.species],Ph=K.addListener,Pre=K.removeAllListeners,Ba=Symbol("kIdleSocketValidation"),dl=Symbol("kIdleSocketValidationTimeout"),jw=Symbol("kSocketUsed"),zw;async function vre(){let t=process.env.JEST_WORKER_ID?Qw():void 0,e;try{e=await WebAssembly.compile(tM())}catch{e=await WebAssembly.compile(t||Qw())}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-Sn+Nn.byteOffset;return Ke.onStatus(new Th(Nn.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-Sn+Nn.byteOffset;return Ke.onHeaderField(new Th(Nn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{J(Ke.ptr===r);let i=s-Sn+Nn.byteOffset;return Ke.onHeaderValue(new Th(Nn.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-Sn+Nn.byteOffset;return Ke.onBo Line truncated
`;if(typeof n=="string"?f+=`host: ${n}\r
`:f+=t[nre],i?f+=`connection: upgrade\r
`:f+=t[wre],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[wh]&&!m[Br]?f+=`connection: keep-alive\r
`:t[Dh]&&!m[wr]?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
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)f+=`${E}: ${C[I]}\r
`;else f+=`${E}: ${C}\r
`}return rO.sendHeaders.hasSubscribers&&rO.sendHeaders.publish({request:e,headers:f,socket:m}),!l||p===0?lO(h,null,t,e,m,A,f,d):K.isBuffer(l)?lO(h,l,t,e,m,A,f,d):K.isBlobLike(l)?typeof l.stream=="function"?uO(h,l.stream(),t,e,m,A,f,d):Ure(h,l,t,e,m,A,f,d):K.isStream(l)?Fre(h,l,t,e,m,A,f,d):K.isIterable(l)?uO(h,l,t,e,m,A,f,d):J(!1),!0}o(Ore,"writeH1");function Fre(t,e,r,s,n,i,a,c){J(i!==0||r[Et]===0,"stream body cannot be pipelined");let l=!1,u=new Mh({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 AO;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,J(n.destroyed||n[yo]&&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(Fre,"writeStream");function lO(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
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[wr]=!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[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
`,"latin1")),s.onRequestSent(),r[ki]()}catch(l){t(l)}}o(lO,"writeBuffer");async function Ure(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 Ca;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[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"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[wr]=!0),r[ki]()}catch(l){t(l)}}o(Ure,"writeBlob");async function uO(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[or]?m(n[or]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new Mh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[or])throw n[or];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(uO,"writeIterable");var Mh=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[yo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[or])throw r[or];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[$w])throw new Ca;process.emitWarning(new Ca)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[wr]=!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[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
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Me].timeout&&r[Me].timeoutType===pl&&r[Me].timeout.refresh&&r[Me].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[yo]=!1,e[or])throw e[or];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[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
`,"latin1"),r!==null&&n!==r){if(s[$w])throw new Ca;process.emitWarning(new Ca)}e[Me].timeout&&e[Me].timeoutType===pl&&e[Me].timeout.refresh&&e[Me].timeout.refresh(),s[ki]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[yo]=!1,e&&(J(s[Et]<=1,"pipeline should only contain this request"),n(e))}};fO.exports=Dre});var xO=g((mFe,bO)=>{"use strict";var ys=require("node:assert"),{pipeline:qre}=require("node:stream"),he=Ae(),{RequestContentLengthMismatchError:Kw,RequestAbortedError:EO,SocketError:VA,InformationalError:Xw}=Ce(),{kUrl:Oh,kReset:Uh,kClient:ml,kRunning:qh,kPending:Gre,kQueue:Co,kPendingIdx:Zw,kRunningIdx:en,kError:rn,kSocket:_t,kStrictContentLength:Hre,kOnError:eb,kMaxConcurrentStreams:wO,kHTTP2Session:tn,kResume:Io,kSize:zre,kHTTPContext:Vre}=He(),Di=Symbol("open streams"),yO,CO=!1,Fh;try{Fh=require("node:http2")}catch{Fh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$re,HTTP2_HEADER_METHOD:Yre,HTTP2_HEADER_PATH:Jre,HTTP2_HEADER_SCHEME:Wre,HTTP2_HEADER_CONTENT_LENGTH:jre,HTTP2_HEADER_EXPECT:Kre,HTTP2_HEADER_STATUS:Xre}}=Fh;function Zre(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(Zre,"parseH2Headers");async function ese(t,e){t[_t]=e,CO||(CO=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Fh.connect(t[Oh],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[wO]});r[Di]=0,r[ml]=t,r[_t]=e,he.addListener(r,"error",rse),he.addListener(r,"frameError",sse),he.addListener(r,"end",nse),he.addListener(r,"goaway",ise),he.addListener(r,"close",function(){let{[ml]:n}=this,{[_t]:i}=n,a=this[_t][rn]||this[rn]||new VA("closed",he.getSocketInfo(i));if(n[tn]=null,n.destroyed){ys(n[Gre]===0);let c=n[Co].splice(n[en]);for(let l=0;l<c.length;l++){let u=c[l];he.errorRequest(n,u,a)}}}),r.unref(),t[tn]=r,e[tn]=r,he.addListener(e,"error",function(n){ys(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[rn]=n,this[ml][eb](n)}),he.addListener(e,"end",function(){he.destroy(this,new VA("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[rn]||new VA("closed",he.getSocketInfo(this));t[_t]=null,this[tn]!=null&&this[tn].destroy(n),t[Zw]=t[en],ys(t[qh]===0),t.emit("disconnect",t[Oh],[t],n),t[Io]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ase(t,...n)},resume(){tse(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(ese,"connectH2");function tse(t){let e=t[_t];e?.destroyed===!1&&(t[zre]===0&&t[wO]===0?(e.unref(),t[tn].unref()):(e.ref(),t[tn].ref()))}o(tse,"resumeH2");function rse(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_t][rn]=t,this[ml][eb](t)}o(rse,"onHttp2SessionError");function sse(t,e,r){if(r===0){let s=new Xw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_t][rn]=s,this[ml][eb](s)}}o(sse,"onHttp2FrameError");function nse(){let t=new VA("other side closed",he.getSocketInfo(this[_t]));this.destroy(t),he.destroy(this[_t],t)}o(nse,"onHttp2SessionEnd");function ise(t){let e=this[rn]||new VA(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[ml];if(r[_t]=null,r[Vre]=null,this[tn]!=null&&(this[tn].destroy(e),this[tn]=null),he.destroy(this[_t],e),r[en]<r[Co].length){let s=r[Co][r[en]];r[Co][r[en]++]=null,he.errorRequest(r,s,e),r[Zw]=r[en]}ys(r[qh]===0),r.emit("disconnect",r[Oh],[r],e),r[Io]()}o(ise,"onHTTP2GoAway");function ose(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(ose,"shouldSendContentLength");function ase(t,e){let r=t[tn],{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],U=u[B+1];if(Array.isArray(U))for(let k=0;k<U.length;k++)d[N]?d[N]+=`,${U[k]}`:d[N]=U[k];else d[N]=U}let p,{hostname:m,port:h}=t[Oh];d[$re]=i||`${m}${h?`:${h}`:""}`,d[Yre]=s;let f=o(B=>{e.aborted||e.completed||(B=B||new EO,he.errorRequest(t,e,B),p!=null&&he.destroy(p,B),he.destroy(A,B),t[Co][t[en]++]=null,t[Io]())},"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[Di],t[Co][t[en]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Di],t[Co][t[en]++]=null}),p.once("close",()=>{r[Di]-=1,r[Di]===0&&r.unref()}),!0;d[Jre]=n,d[Wre]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=he.bodyLength(A);if(he.isFormDataLike(A)){yO??=ll().extractBody;let[B,N]=yO(A);d["content-type"]=N,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),ose(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Hre])return he.errorRequest(t,e,n Line truncated
`,this[kse]=l??3e5,this[vse]=n??3e5,this[Dse]=C??!0,this[_se]=B,this[nb]=U,this[wo]=null,this[Use]=Ie>-1?Ie:-1,this[Gse]=De??100,this[ct]=null,this[sn]=[],this[Li]=0,this[nn]=0,this[WA]=ce=>ob(this,ce),this[qse]=ce=>MO(this,ce)}get pipelining(){return this[Vh]}set pipelining(e){this[Vh]=e,this[WA](!0)}get[XA](){return this[sn].length-this[nn]}get[KA](){return this[nn]-this[Li]}get[jA](){return this[sn].length-this[Li]}get[xse](){return!!this[ct]&&!this[fl]&&!this[ct].destroyed}get[sb](){return!!(this[ct]?.busy(null)||this[jA]>=(LO(this)||1)||this[XA]>0)}[bse](e){OO(this),this.once("connect",e)}[Fse](e,r){let s=e.origin||this[Tn].origin,n=new Ese(s,e,r);return this[sn].push(n),this[ba]||(wa.bodyLength(n.body)==null&&wa.isIterable(n.body)?(this[ba]=1,queueMicrotask(()=>ob(this))):this[WA](!0)),this[ba]&&this[bo]!==2&&this[sb]&&(this[bo]=2),this[bo]<2}async[Mse](){return new Promise(e=>{this[jA]?this[wo]=e:e(null)})}async[Ose](e){return new Promise(r=>{let s=this[sn].splice(this[nn]);for(let i=0;i<s.length;i++){let a=s[i];wa.errorRequest(this,a,e)}let n=o(()=>{this[wo]&&(this[wo](),this[wo]=null),r(null)},"callback");this[ct]?(this[ct].destroy(e,n),this[ct]=null):queueMicrotask(n),this[WA]()})}},Vse=zh();function MO(t,e){if(t[KA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){_i(t[nn]===t[Li]);let r=t[sn].splice(t[Li]);for(let s=0;s<r.length;s++){let n=r[s];wa.errorRequest(t,n,e)}_i(t[jA]===0)}}o(MO,"onError");async function OO(t){_i(!t[fl]),_i(!t[ct]);let{host:e,hostname:r,protocol:s,port:n}=t[Tn];if(r[0]==="["){let i=r.indexOf("]");_i(i!==-1);let a=r.substring(1,i);_i(_O.isIP(a)),r=a}t[fl]=!0,hl.beforeConnect.hasSubscribers&&hl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ct]?.version,servername:t[Bo],localAddress:t[JA]},connector:t[YA]});try{let i=await new Promise((a,c)=>{t[YA]({host:e,hostname:r,protocol:s,port:n,servername:t[Bo],localAddress:t[JA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){wa.destroy(i.on("error",kO),new Ise);return}_i(i);try{t[ct]=i.alpnProtocol==="h2"?await zse(t,i):await Hse(t,i)}catch(a){throw i.destroy().on("error",kO),a}t[fl]=!1,i[Lse]=0,i[nb]=t[nb],i[wse]=t,i[Nse]=null,hl.connected.hasSubscribers&&hl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ct]?.version,servername:t[Bo],localAddress:t[JA]},connector:t[YA],socket:i}),t.emit("connect",t[Tn],[t])}catch(i){if(t.destroyed)return;if(t[fl]=!1,hl.connectError.hasSubscribers&&hl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ct]?.version,servername:t[Bo],localAddress:t[JA]},connector:t[YA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(_i(t[KA]===0);t[XA]>0&&t[sn][t[nn]].servername===t[Bo];){let a=t[sn][t[nn]++];wa.errorRequest(t,a,i)}else MO(t,i);t.emit("connectionError",t[Tn],[t],i)}t[WA]()}o(OO,"connect");function DO(t){t[bo]=0,t.emit("drain",t[Tn],[t])}o(DO,"emitDrain");function ob(t,e){t[ba]!==2&&(t[ba]=2,$se(t,e),t[ba]=0,t[Li]>256&&(t[sn].splice(0,t[Li]),t[nn]-=t[Li],t[Li]=0))}o(ob,"resume");function $se(t,e){for(;;){if(t.destroyed){_i(t[XA]===0);return}if(t[wo]&&!t[jA]){t[wo](),t[wo]=null;return}if(t[ct]&&t[ct].resume(),t[sb])t[bo]=2;else if(t[bo]===2){e?(t[bo]=1,queueMicrotask(()=>DO(t))):DO(t);continue}if(t[XA]===0||t[KA]>=(LO(t)||1))return;let r=t[sn][t[nn]];if(t[Tn].protocol==="https:"&&t[Bo]!==r.servername){if(t[KA]>0)return;t[Bo]=r.servername,t[ct]?.destroy(new Cse("servername changed"),()=>{t[ct]=null,ob(t)})}if(t[fl])return;if(!t[ct]){OO(t);return}if(t[ct].destroyed||t[ct].busy(r))return;!r.aborted&&t[ct].write(r)?t[nn]++:t[sn].splice(t[nn],1)}}o($se,"_resume");FO.exports=ib});var ab=g((wFe,UO)=>{"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)}};UO.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 GO=g((xFe,qO)=>{var{kFree:Yse,kConnected:Jse,kPending:Wse,kQueued:jse,kRunning:Kse,kSize:Xse}=He(),xa=Symbol("pool"),cb=class{static{o(this,"PoolStats")}constructor(e){this[xa]=e}get connected(){return this[xa][Jse]}get free(){return this[xa][Yse]}get pending(){return this[xa][Wse]}get queued(){return this[xa][jse]}get running(){return this[xa][Kse]}get size(){return this[xa][Xse]}};qO.exports=cb});var mb=g((NFe,XO)=>{"use strict";var Zse=el(),ene=ab(),{kConnected:lb,kSize:HO,kRunning:zO,kPending:VO,kQueued:ZA,kBusy:tne,kFree:rne,kUrl:sne,kClose:nne,kDestroy:ine,kDispatch:one}=He(),ane=GO(),br=Symbol("cl Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.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
`.trim())}};i1.exports=mx});var Af=g((xUe,u1)=>{"use strict";var a1=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:koe}=Ce(),Doe=yl();l1()===void 0&&c1(new Doe);function c1(t){if(!t||typeof t.dispatch!="function")throw new koe("Argument agent must implement Agent");Object.defineProperty(globalThis,a1,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(c1,"setGlobalDispatcher");function l1(){return globalThis[a1]}o(l1,"getGlobalDispatcher");u1.exports={setGlobalDispatcher:c1,getGlobalDispatcher:l1}});var df=g((SUe,A1)=>{"use strict";A1.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 p1=g((TUe,d1)=>{"use strict";var _oe=Hh();d1.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 _oe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var h1=g((vUe,m1)=>{"use strict";var Loe=ef();m1.exports=t=>e=>o(function(s,n){return e(s,new Loe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var g1=g((DUe,f1)=>{"use strict";var Moe=Ae(),{InvalidArgumentError:Ooe,RequestAbortedError:Foe}=Ce(),Uoe=df(),hx=class extends Uoe{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 Ooe("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=Moe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Foe(`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 qoe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new hx({maxSize:i},n);return e(s,a)},"Intercept")}o(qoe,"createDumpInterceptor");f1.exports=qoe});var C1=g((LUe,y1)=>{"use strict";var{isIP:Goe}=require("node:net"),{lookup:Hoe}=require("node:dns"),zoe=df(),{InvalidArgumentError:Sl,InformationalError:Voe}=Ce(),E1=Math.pow(2,31)-1,fx=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 Voe("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){Hoe(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===E1?(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===E1?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 gx(this,e,r)}},gx=class extends zoe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null Line truncated
${a}`;return}if(Xf(e,n,nAe)){iAe(e,i)&&(r.retry=e.toString("utf8",i));return}if(Xf(e,n,sAe)){oAe(e,i)&&(r.id=e.toString("utf8",i));return}if(Xf(e,n,rAe)){let a=e.toString("utf8",i);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&Kue(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Xue(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===Gl[0]||(this.checkBOM=!1),!0):s===void 0?e===Gl[0]&&r===Gl[1]?!0:(this.checkBOM=!1,!1):(e===Gl[0]&&r===Gl[1]&&s===Gl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Xq.exports={EventSourceStream:o0}});var aG=g((F1e,oG)=>{"use strict";var{pipeline:aAe}=require("node:stream"),{fetching:cAe}=pd(),{makeRequest:lAe}=Pl(),{webidl:Ui}=Gt(),{EventSourceStream:uAe}=Zq(),{parseMIMEType:AAe}=Br(),{createFastMessageEvent:dAe}=Ml(),{isNetworkError:eG}=Ad(),{delay:pAe}=n0(),{kEnumerableProperty:qa}=Ae(),{environmentSettingsObject:tG}=Vr(),rG=!1,sG=3e3,Nd=0,nG=1,Sd=2,mAe="anonymous",hAe="use-credentials",Hl=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Nd;#n=null;#i=null;#o;#a;constructor(e,r={}){super(),Ui.util.markAsUncloneable(this);let s="EventSource constructor";Ui.argumentLengthCheck(arguments,1,s),rG||(rG=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ui.converters.USVString(e,s,"url"),r=Ui.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:sG};let n=tG,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=mAe;r.withCredentials&&(a=hAe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=tG.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=lAe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Sd)return;this.#r=Nd;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{eG(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(eG(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?AAe(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=nG,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new uAe({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(dAe(l.type,l.options))},"push")});aAe(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=cA Line truncated
`).join(`
`+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
`+i),t.push(n+"m+"+AE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=zCe()+e+" "+t[0]}o(HCe,"formatArgs");function zCe(){return Vt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(zCe,"getDate");function VCe(...t){return process.stderr.write(uE.format(...t)+`
`)}o(VCe,"log");function $Ce(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o($Ce,"save");function YCe(){return process.env.DEBUG}o(YCe,"load");function JCe(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(JCe,"init");AE.exports=XQ()(Vt);var{formatters:KY}=AE.exports;KY.o=function(t){return this.inspectOpts.colors=this.useColors,uE.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};KY.O=function(t){return this.inspectOpts.colors=this.useColors,uE.inspect(t,this.inspectOpts)}});var dE=g((FJe,tN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?tN.exports=VY():tN.exports=XY()});var tJ=g(vr=>{"use strict";var WCe=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]})),jCe=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZY=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)&&WCe(e,t,r);return jCe(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var KCe=ZY(require("http")),XCe=ZY(require("https"));async function eJ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(eJ,"toBuffer");vr.toBuffer=eJ;async function ZCe(t){let r=(await eJ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(ZCe,"json");vr.json=ZCe;function eIe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?XCe:KCe).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(eIe,"req");vr.req=eIe});var iJ=g(is=>{"use strict";var sJ=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]})),tIe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nJ=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)&&sJ(e,t,r);return tIe(e,t),e},rIe=is&&is.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&sJ(e,t,r)};Object.defineProperty(is,"__esModule",{value:!0});is.Agent=void 0;var sIe=nJ(require("net")),rJ=nJ(require("http")),nIe=require("https");rIe(tJ(),is);var qn=Symbol("AgentBaseInternalState"),rN=class extends rJ.Agent{static{o(this,"Agent")}constructor(e){super(e),this[qn]={}}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 sIe.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)?nIe.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 rJ.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[qn].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[qn].currentSocket;if(this[qn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[qn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[qn]&&(this[qn].defaultPort=e)}get protocol(){return this[qn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qn]&&(this[qn].protocol=e)}};is.Agent=rN});var oJ=g(mu=>{"use strict";var iIe=mu&&mu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mu,"__esModule",{value:!0});mu.parseProxyResponse=void 0;var oIe=iIe(dE()),pE=(0,oIe.default)("https-proxy-agent:parse-proxy-response");function aIe(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(),pE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),pE("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){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(p===-1){pE("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(" "),y=+f[1],E=f.slice(2).join(" "),C={};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(),U=I.slice(B+1).trimStart(),k=C[N];typeof k=="string"?C[N]=[k,U]:Array.isArray(k)?k.push(U):C[N]=U}pE("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(aIe,"parseProxyResponse");mu.parseProxyResponse=aIe});var dJ=g(vs=>{"use strict";var cIe=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]})),lIe=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uJ=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)&&cIe(e,t,r);return lIe(e,t),e},AJ=vs&&vs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vs,"__esModule",{value:!0});vs.HttpsProxyAgent=void 0;var mE=uJ(require("net")),aJ=uJ(require("tls")),uIe=AJ(require("assert")),AIe=AJ(dE()),dIe=iJ(),pIe=require("url"),mIe=oJ(),pp=(0,AIe.default)("https-proxy-agent"),cJ=o(t=>t.servername===void 0&&t.host&&!mE.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),hE=class extends dIe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new pIe.URL(e):e,this.proxyHeaders=r?.headers??{},pp("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?lJ(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:"?(pp("Creating `tls.Socket`: %o",this.connectOpts),n=aJ.connect(cJ(this.connectOpts))):(pp("Creating `net.Socket`: %o",this.connectOpts),n=mE.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=mE.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,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
`;let l=(0,mIe.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",hIe),r.secureEndpoint?(pp("Upgrading socket connection to TLS"),aJ.connect({...lJ(cJ(r),"host","path","port"),socket:n})):n;n.destroy();let d=new mE.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{pp("Replaying proxy buffer for failed request"),(0,uIe.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};hE.protocols=["http","https"];vs.HttpsProxyAgent=hE;function hIe(t){t.resume()}o(hIe,"resume");function lJ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(lJ,"omit")});var hJ=g(kr=>{"use strict";var fIe=kr&&kr.__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]})),gIe=kr&&kr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pJ=kr&&kr.__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)&&fIe(e,t,r);return gIe(e,t),e};Object.defineProperty(kr,"__esModule",{value:!0});kr.req=kr.json=kr.toBuffer=void 0;var EIe=pJ(require("http")),yIe=pJ(require("https"));async function mJ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(mJ,"toBuffer");kr.toBuffer=mJ;async function CIe(t){let r=(await mJ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(CIe,"json");kr.json=CIe;function IIe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?yIe:EIe).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(IIe,"req");kr.req=IIe});var yJ=g(os=>{"use strict";var gJ=os&&os.__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]})),BIe=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),EJ=os&&os.__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)&&gJ(e,t,r);return BIe(e,t),e},wIe=os&&os.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gJ(e,t,r)};Object.defineProperty(os,"__esModule",{value:!0});os.Agent=void 0;var bIe=EJ(require("net")),fJ=EJ(require("http")),xIe=require("https");wIe(hJ(),os);var Gn=Symbol("AgentBaseInternalState"),sN=class extends fJ.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Gn]={}}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 bIe.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))?xIe.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 fJ.Agent)return c.addRequest(e,n);this[Gn].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Gn].currentSocket;if(this[Gn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gn]&&(this[Gn].defaultPort=e)}get protocol(){return this[Gn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gn]&&(this[Gn].protocol=e)}};os.Agent=sN});var BJ=g(ks=>{"use strict";var QIe=ks&&ks.__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]})),NIe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),IJ=ks&&ks.__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)&&QIe(e,t,r);return NIe(e,t),e},SIe=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var RIe=IJ(require("net")),TIe=IJ(require("tls")),PIe=SIe(dE()),vIe=require("events"),kIe=yJ(),CJ=require("url"),hu=(0,PIe.default)("http-proxy-agent"),fE=class extends kIe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new CJ.URL(e):e,this.proxyHeaders=r?.headers??{},hu("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?DIe(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 CJ.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;hu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hu("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),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
`)+4,e.outputData[0].data=e._header+s.substring(n),hu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hu("Creating `tls.Socket`: %o",this.connectOpts),i=TIe.connect(this.connectOpts)):(hu("Creating `net.Socket`: %o",this.connectOpts),i=RIe.connect(this.connectOpts)),await(0,vIe.once)(i,"connect"),i}};fE.protocols=["http","https"];ks.HttpProxyAgent=fE;function DIe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(DIe,"omit")});var zJ=g(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.state=void 0;TE.state={instrumenterImplementation:void 0}});var a3=g(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.state=void 0;_E.state={operationRequestMap:new WeakMap}});var M4=g(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var yQe=require("os"),CQe=require("util");function IQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(IQe,"_interopDefaultLegacy");var BQe=IQe(CQe);function wQe(t,...e){process.stderr.write(`${BQe.default.format(t,...e)}${yQe.EOL}`)}o(wQe,"log");var N4=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,R4,HP=[],zP=[],rC=[];N4&&VP(N4);var T4=Object.assign(t=>P4(t),{enable:VP,enabled:$P,disable:bQe,log:wQe});function VP(t){R4=t,HP=[],zP=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?zP.push(new RegExp(`^${s.substr(1)}$`)):HP.push(new RegExp(`^${s}$`));for(let s of rC)s.enabled=$P(s.namespace)}o(VP,"enable");function $P(t){if(t.endsWith("*"))return!0;for(let e of zP)if(e.test(t))return!1;for(let e of HP)if(e.test(t))return!0;return!1}o($P,"enabled");function bQe(){let t=R4||"";return VP(""),t}o(bQe,"disable");function P4(t){let e=Object.assign(r,{enabled:$P(t),destroy:xQe,log:T4.log,namespace:t,extend:QQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),rC.push(e),e}o(P4,"createDebugger");function xQe(){let t=rC.indexOf(this);return t>=0?(rC.splice(t,1),!0):!1}o(xQe,"destroy");function QQe(t){let e=P4(`${this.namespace}:${t}`);return e.log=this.log,e}o(QQe,"extend");var sm=T4,v4=new Set,eC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,sC,nC=sm("azure");nC.log=(...t)=>{sm.log(...t)};var YP=["verbose","info","warning","error"];eC&&(L4(eC)?k4(eC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${eC}'; logging is not enabled. Acceptable values: ${YP.join(", ")}.`));function k4(t){if(t&&!L4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${YP.join(",")}`);sC=t;let e=[];for(let r of v4)_4(r)&&e.push(r.namespace);sm.enable(e.join(","))}o(k4,"setLogLevel");function NQe(){return sC}o(NQe,"getLogLevel");var S4={verbose:400,info:300,warning:200,error:100};function SQe(t){let e=nC.extend(t);return D4(nC,e),{error:tC(e,"error"),warning:tC(e,"warning"),info:tC(e,"info"),verbose:tC(e,"verbose")}}o(SQe,"createClientLogger");function D4(t,e){e.log=(...r)=>{t.log(...r)}}o(D4,"patchLogMethod");function tC(t,e){let r=Object.assign(t.extend(e),{level:e});if(D4(t,r),_4(r)){let s=sm.disable();sm.enable(s+","+r.namespace)}return v4.add(r),r}o(tC,"createLogger");function _4(t){return!!(sC&&S4[t.level]<=S4[sC])}o(_4,"shouldEnable");function L4(t){return YP.includes(t)}o(L4,"isAzureLogLevel");Lu.AzureLogger=nC;Lu.createClientLogger=SQe;Lu.getLogLevel=NQe;Lu.setLogLevel=k4});var jP=g(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var Mu=new WeakMap,iC=new WeakMap,nm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Mu.set(this,[]),iC.set(this,!1)}get aborted(){if(!iC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return iC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Mu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Mu.get(this).push(r)}removeEventListener(e,r){if(!Mu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Mu.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 O4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Mu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),iC.set(t,!0)}o(O4,"abortSignal");var JP=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},WP=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new nm,!!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(){O4(this._signal)}static timeout(e){let r=new nm,s=setTimeout(O4,e,r);return typeof s.unref=="function"&&s.unref(),r}};im.AbortController=WP;im.AbortError=JP;im.AbortSignal=nm});var H4=g(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});var RQe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
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
Polling status: ${Y4.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(V4({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(nNe,"pollOperationHelper");async function K4(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:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await nNe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(W4({status:I,response:C,state:r,stateProxy:s,isDone:f,processResult:d,getError:p,setErrorAsResult:y}),!Y4.includes(I)){let B=A?.(C);B&&h(B);let N=c?.(C,r);if(N!==void 0){let U=E!==N;r.config.operationLocation=N,u?.(N,U)}else u?.(E,!1)}m?.(r,C)}}o(K4,"pollOperation");function X4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(X4,"getOperationLocationPollingUrl");function Z4(t){return t.headers.location}o(Z4,"getLocationHeader");function e8(t){return t.headers["operation-location"]}o(e8,"getOperationLocationHeader");function t8(t){return t.headers["azure-asyncoperation"]}o(t8,"getAzureAsyncOperationHeader");function iNe(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(iNe,"findResourceLocation");function r8(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=e8(e),a=t8(e),c=X4({operationLocation:i,azureAsyncOperation:a}),l=Z4(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:iNe({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(r8,"inferLroMode");function s8(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 av(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 xc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(s8,"transformStatus");function oNe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return s8({status:r,statusCode:t.statusCode})}o(oNe,"getStatus");function aNe(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 s8({status:i,statusCode:t.statusCode})}o(aNe,"getProvisioningState");function av(t){return t===202?"running":t<300?"succeeded":"failed"}o(av,"toOperationStatus");function n8({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?cNe(new Date(e)):r*1e3}}o(n8,"parseRetryAfter");function i8(t){let e=t.flatResponse.error;if(!e){xc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xc.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(i8,"getErrorFromResponse");function cNe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(cNe,"calculatePollingIntervalFromDate");function o8(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 av(e.rawResponse.statusCode);case"Body":return cv(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(o8,"getStatusFromInitialResponse");async function lNe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return j4({init:o(async()=>{let a=await n.sendInitialRequest(),c=r8({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:o8,setErrorAsResult:i})}o(lNe,"initHttpOperation");function a8({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($Ne,"base64decode");Hu.base64decode=$Ne;function YNe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=io[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=io[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=io[n|s>>6],e+=io[s&63],r=0;break}return r&&(e+=io[n],e+="=",r==1&&(e+="=")),e}o(YNe,"base64encode");Hu.base64encode=YNe});var U8=g(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});bC.utf8read=void 0;var yv=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function JNe(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(yv(s)),n=0);return r.length?(n&&r.push(yv(s.slice(0,n))),r.join("")):yv(s.slice(0,n))}o(JNe,"utf8read");bC.utf8read=JNe});var pm=g(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.WireType=hi.mergeBinaryOptions=hi.UnknownFieldHandler=void 0;var WNe;(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")})(WNe=hi.UnknownFieldHandler||(hi.UnknownFieldHandler={}));function jNe(t,e){return Object.assign(Object.assign({},t),e)}o(jNe,"mergeBinaryOptions");hi.mergeBinaryOptions=jNe;var KNe;(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"})(KNe=hi.WireType||(hi.WireType={}))});var QC=g(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.varint32read=Ur.varint32write=Ur.int64toString=Ur.int64fromString=Ur.varint64write=Ur.varint64read=void 0;function XNe(){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(XNe,"varint64read");Ur.varint64read=XNe;function ZNe(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(ZNe,"varint64write");Ur.varint64write=ZNe;var xC=65536*65536;function eSe(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>=xC&&(n=n+(s/xC|0),s=s%xC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(eSe,"int64fromString");Ur.int64fromString=eSe;function tSe(t,e){if(e>>>0<=2097151)return""+(xC*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(tSe,"int64toString");Ur.int64toString=tSe;function rSe(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(rSe,"varint32write");Ur.varint32write=rSe;function sSe(){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(sSe,"varint32read");Ur.varint32read=sSe});var ia=g(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PbLong=na.PbULong=na.detectBi=void 0;var mm=QC(),ve;function q8(){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
`)}};ZC.RpcError=$v});var Jv=g(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.mergeRpcOptions=void 0;var y5=pt();function xRe(t,e){if(!e)return t;let r={};eI(t,r),eI(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=y5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=y5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},eI(t.meta,r.meta),eI(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(xRe,"mergeRpcOptions");tI.mergeRpcOptions=xRe;function eI(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(eI,"copy")});var jv=g(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.Deferred=Tc.DeferredState=void 0;var Ei;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ei=Tc.DeferredState||(Tc.DeferredState={}));var Wv=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ei.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!==Ei.PENDING)throw new Error(`cannot resolve ${Ei[this.state].toLowerCase()}`);this._resolve(e),this._state=Ei.RESOLVED}reject(e){if(this.state!==Ei.PENDING)throw new Error(`cannot reject ${Ei[this.state].toLowerCase()}`);this._reject(e),this._state=Ei.REJECTED}resolvePending(e){this._state===Ei.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ei.PENDING&&this.reject(e)}};Tc.Deferred=Wv});var Xv=g(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.RpcOutputStreamController=void 0;var C5=jv(),Pc=pt(),Kv=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){Pc.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){Pc.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){Pc.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(){Pc.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;Pc.assert(e,"bad state"),Pc.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 C5.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Pc.assert(s.state==C5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};rI.RpcOutputStreamController=Kv});var ek=g(ju=>{"use strict";var QRe=ju&&ju.__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(ju,"__esModule",{value:!0});ju.UnaryCall=void 0;var Zv=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 QRe(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}})}};ju.UnaryCall=Zv});var rk=g(Ku=>{"use strict";var NRe=Ku&&Ku.__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(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(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(DDe,"logUnexpecedPropertyAccessOnce");function _De(){Object.keys(FI).forEach(function(t){delete FI[t]})}o(_De,"resetLoggedProperties")});var qI=g(wi=>{"use strict";wi.__esModule=!0;wi.HandlebarsEnvironment=ID;function L6(t){return t&&t.__esModule?t:{default:t}}o(L6,"_interopRequireDefault");var Oc=sr(),LDe=$s(),yD=L6(LDe),MDe=hD(),ODe=v6(),FDe=gD(),UI=L6(FDe),UDe=ED(),qDe="4.7.10";wi.VERSION=qDe;var GDe=8;wi.COMPILER_REVISION=GDe;var HDe=7;wi.LAST_COMPATIBLE_COMPILER_REVISION=HDe;var zDe={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"};wi.REVISION_CHANGES=zDe;var CD="[object Object]";function ID(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},MDe.registerDefaultHelpers(this),ODe.registerDefaultDecorators(this)}o(ID,"HandlebarsEnvironment");ID.prototype={constructor:ID,logger:UI.default,log:UI.default.log,registerHelper:o(function(e,r){if(Oc.toString.call(e)===CD){if(r)throw new yD.default("Arg not supported with multiple helpers");Oc.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(Oc.toString.call(e)===CD)Oc.extend(this.partials,e);else{if(typeof r>"u")throw new yD.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(Oc.toString.call(e)===CD){if(r)throw new yD.default("Arg not supported with multiple decorators");Oc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){UDe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var VDe=UI.default.log;wi.log=VDe;wi.createFrame=Oc.createFrame;wi.logger=UI.default});var O6=g((GI,M6)=>{"use strict";GI.__esModule=!0;function BD(t){this.string=t}o(BD,"SafeString");BD.prototype.toString=BD.prototype.toHTML=function(){return""+this.string};GI.default=BD;M6.exports=GI.default});var F6=g(wD=>{"use strict";wD.__esModule=!0;wD.wrapHelper=$De;function $De(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($De,"wrapHelper")});var z6=g(la=>{"use strict";la.__esModule=!0;la.checkRevision=XDe;la.template=ZDe;la.wrapProgram=HI;la.resolvePartial=e_e;la.invokePartial=t_e;la.noop=G6;function YDe(t){return t&&t.__esModule?t:{default:t}}o(YDe,"_interopRequireDefault");function JDe(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(JDe,"_interopRequireWildcard");var WDe=sr(),Fc=JDe(WDe),jDe=$s(),Bn=YDe(jDe),co=qI(),U6=hD(),KDe=F6(),bD=ED();function XDe(t){var e=t&&t[0]||1,r=co.COMPILER_REVISION;if(!(e>=co.LAST_COMPATIBLE_COMPILER_REVISION&&e<=co.COMPILER_REVISION))if(e<co.LAST_COMPATIBLE_COMPILER_REVISION){var s=co.REVISION_CHANGES[r],n=co.REVISION_CHANGES[e];throw new Bn.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 Bn.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(XDe,"checkRevision");function ZDe(t,e){if(!e)throw new Bn.default("No environment passed to template");if(!t||!t.main)throw new Bn.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=Fc.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&&Fc.isFunction(a))throw new Bn.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Bn.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 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
`)}return u}else throw new Bn.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 Bn.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)&&!bD.isPrototypeConstructor(c,l,u)||bD.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:Fc.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=HI(this,c,m,l,u,A,d):p||(p=this.programs[c]=HI(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=Fc.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=r_e(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=H6(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={};q6(c,e.helpers,n),q6(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Fc.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=bD.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;U6.moveHelperToHooks(n,"helperMissing",l),U6.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Bn.default("must pass block params");if(t.useDepths&&!u)throw new Bn.default("must pass parent depths");return HI(n,a,t[a],c,0,l,u)},i}o(ZDe,"template");function HI(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=H6(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(HI,"wrapProgram");function e_e(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=zI(r.partials,t)):r.name==="@partial-block"?t=zI(r.data,"partial-block"):t=zI(r.partials,r.name),t}o(e_e,"resolvePartial");function t_e(t,e,r){var s=zI(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!==G6&&(function(){r.data=co.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=co.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Fc.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Bn.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(t_e,"invokePartial");function G6(){return""}o(G6,"noop");function zI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(zI,"lookupOwnProperty");function r_e(t,e){return(!e||!("root"in e))&&(e=e?co.createFrame(e):{},e.root=t),e}o(r_e,"initData");function H6(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Fc.extend(e,a)}return e}o(H6,"executeDecorators");function q6(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=s_e(n,r)})}o(q6,"addHelpers");function s_e(t,e){var r=e.lookupProperty;return KDe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(s_e,"passLookupPropertyOption")});var xD=g((VI,V6)=>{"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}};V6.exports=VI.default});var j6=g(($I,W6)=>{"use strict";$I.__esModule=!0;function ND(t){return t&&t.__esModule?t:{default:t}}o(ND,"_interopRequireDefault");function SD(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(SD,"_interopRequireWildcard");var n_e=qI(),$6=SD(n_e),i_e=O6(),o_e=ND(i_e),a_e=$s(),c_e=ND(a_e), Line truncated
`+this.lexer.showPosition()+`
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()+`
Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Xs="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Xs,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:ce})}}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+B);switch(k[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(k[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case 2:if(de=this.productions_[k[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]]),ke=this.performAction.call(Pe,A,p,d,this.yy,k[1],c,l),typeof ke<"u")return ke;de&&(a=a.slice(0,-1*de*2),c=c.slice(0,-1*de),l=l.slice(0,-1*de)),a.push(this.productions_[k[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})();_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.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})();JI.default=p_e;Z6.exports=JI.default});var PD=g(TD=>{"use strict";TD.__esModule=!0;var m_e=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];TD.NODE_TYPES=m_e});var XI=g((KI,nK)=>{"use strict";KI.__esModule=!0;function h_e(t){return t&&t.__esModule?t:{default:t}}o(h_e,"_interopRequireDefault");var f_e=$s(),vD=h_e(f_e),g_e=sr(),E_e=PD();function jI(){this.parents=[]}o(jI,"Visitor");function tK(t,e){return g_e.indexOf(E_e.NODE_TYPES,e)!==-1||!(e in jI.prototype)&&typeof t[e]=="function"}o(tK,"isDispatchable");jI.prototype={constructor:jI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!tK(this,s.type))throw new vD.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 vD.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(!tK(this,e.type)||!this[e.type])throw new vD.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 Hc(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 Hc?e:(e=e_(e,this,r),new Hc(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+"",mLe.test(e)?qK(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=e_(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(e_(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};aB.default=GK});var jK=g((cB,WK)=>{"use strict";cB.__esModule=!0;function $K(t){return t&&t.__esModule?t:{default:t}}o($K,"_interopRequireDefault");var zK=qI(),ELe=$s(),r_=$K(ELe),yLe=sr(),YK=HK(),VK=$K(YK);function EA(t){this.value=t}o(EA,"Literal");function yA(){}o(yA,"JavaScriptCompiler");yA.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=zK.COMPILER_REVISION,r=zK.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return yLe.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 r_.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 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(","),`) {
`),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 VK.default(this.options.srcName),this.decorators=new VK.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) {
@@ -83,52 +83,54 @@ Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":js="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(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
`.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(CLe(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 nX=g((hpt,sX)=>{var AB=ZK().default,rX=eX();AB.PrintVisitor=rX.PrintVisitor;AB.print=rX.print;sX.exports=AB;function tX(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=AB.compile(s)}o(tX,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=tX,require.extensions[".hbs"]=tX)});var EX=g(fB=>{"use strict";Object.defineProperty(fB,"__esModule",{value:!0});fB.getProxyUrl=FLe;fB.checkBypass=gX;function FLe(t){let e=t.protocol==="https:";if(gX(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 hB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new hB(`http://${r}`)}else return}o(FLe,"getProxyUrl");function gX(t){if(!t.hostname)return!1;let e=t.hostname;if(ULe(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(gX,"checkBypass");function ULe(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(ULe,"isLoopbackAddress");var hB=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 CX=g(We=>{"use strict";var qLe=We&&We.__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]})),GLe=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CB=We&&We.__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"&&qLe(r,e,s[n]);return GLe(r,e),r}})(),ht=We&&We._ 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 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
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Kd(i));return s.searchPaths.push(...X0(s.patterns)),s})}static stat(e,r,s){return aQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield ru.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Qs(`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 ru.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield ru.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){Qs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Mfe=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 uV(t,e){return Mfe(this,void 0,void 0,function*(){return yield wg.create(t,e)})}o(uV,"create");var Ug=b(require("crypto"),1),ou=b(require("fs"),1),Ka=b(require("path"),1),sY=b(tY(),1),nY=b(require("util"),1);var np;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(np||(np={}));var pr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(pr||(pr={}));var rs;(function(t){t.GNU="gnu",t.BSD="bsd"})(rs||(rs={}));var Mg=2,Og=5e3,SQ=5e3,RQ=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,rY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,ip="cache.tar",TQ="manifest.txt",Q$e=10*Math.pow(1024,3),Fg="cache read denied:";var iu=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())})},$ye=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)}},Yye="1.0";function Xa(){return iu(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=Ka.join(s,"actions","temp")}let r=Ka.join(e,Ug.randomUUID());return yield za(r),r})}o(Xa,"createTempDirectory");function On(t){return ou.statSync(t).size}o(On,"getArchiveFileSizeInBytes");function PQ(t){return iu(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 uV(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=$ye(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=Ka.relative(c,n).replace(new RegExp(`\\${Ka.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(PQ,"resolvePaths");function op(t){return iu(this,void 0,void 0,function*(){return nY.promisify(ou.unlink)(t)})}o(op,"unlinkFile");function iY(t){return iu(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),w(`Checking ${e} ${r.join(" ")}`);try{yield Lo(`${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(iY,"getVersion");function ap(){return iu(this,void 0,void 0,function*(){let t=yield iY("zstd",["--quiet"]),e=sY.clean(t);return w(`zstd version: ${e}`),t===""?pr.Gzip:pr.ZstdWithoutLong})}o(ap,"getCompressionMethod");function Vo(t){return t===pr.Gzip?np.Gzip:np.Zstd}o(Vo,"getCacheFileName");function oY(){return iu(this,void 0,void 0,function*(){return ou.existsSync(RQ)?RQ:(yield iY("tar")).toLowerCase().includes("gnu tar")?Sr("tar"):""})}o(oY,"getGnuTarPathOnWindows");function vQ(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(vQ,"assertDefined");function au(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Yye),Ug.createHash("sha256").update(s.join("|")).digest("hex")}o(au,"getCacheVersion");function aY(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(aY,"getRuntimeToken");var lp=b(require("http"),1),_Q=b(require("https"),1);function kQ(t){let e=t.protocol==="https:";if(Jye(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 Gg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Gg(`http://${r}`)}else return}o(kQ,"getProxyUrl");function Jye(t){if(!t.hostname)return!1;let e=t.hostname;if(Wye(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(Jye,"checkBypass");function Wye(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(Wye,"isLoopbackAddress");var Gg=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 $o=b(SA(),1),cY=b(Vl(),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 mr;(function(t){t.Accept="accept",t.ContentType="content-type"})(mr||(mr={}));var zi;(function(t){t.ApplicationJson="application/json"})(zi||(zi={}));var Kye=[Xe.MovedPermanently,Xe.ResourceMoved,Xe.SeeOther,Xe.TemporaryRedirect,Xe.PermanentRedirect],Xye=[Xe.BadGateway,Xe.ServiceUnavailable,Xe.GatewayTimeout],Zye=["OPTIONS","GET","DELETE","HEAD"],eCe=10,tCe=5,Fn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${uCe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Jg(t){return t instanceof hr?!0:ec(t)&&t.name==="RestError"}o(Jg,"isRestError");function Pr(t,e){return Buffer.from(t,e)}o(Pr,"stringToUint8Array");var Wg=b(require("node:http"),1),jg=b(require("node:https"),1),VQ=b(require("node:zlib"),1),QY=require("node:stream");var Ts=up("ts-http-runtime");var ACe={};function Ap(t){return t&&typeof t.pipe=="function"}o(Ap,"isReadableStream");function xY(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(xY,"isStreamComplete");function NY(t){return t&&typeof t.byteLength=="number"}o(NY,"isArrayBuffer");var Kg=class extends QY.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}},$Q=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 Un("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 dn;Ts.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=hCe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new Kg(h);f.on("error",y=>{Ts.error("Error in upload progress",y)}),Ap(c)?c.pipe(f):f.end(c),c=f}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=dCe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?pCe(u,A):u;let m=e.onDownloadProgress;if(m){let h=new Kg(m);h.on("error",f=>{Ts.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 mCe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();Ap(c)&&(u=xY(c));let A=Promise.resolve();Ap(l)&&(A=xY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Ts.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?Wg.default.request(c,l):jg.default.request(c,l);A.once("error",d=>{u(new hr(d.message,{code:d.code??hr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Un("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&Ap(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):NY(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ts.error("Unrecognized body type",s),u(new hr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Wg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Wg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return jg.default.globalAgent;let n=e.tlsSettings??ACe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ts.info("No cached TLS Agent exist, creating a new Agent"),i=new jg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function dCe(t){let e=ss();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(dCe,"getResponseHeaders");function pCe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=VQ.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=VQ.default.createInflate();return t.pipe(s),s}return t}o(pCe,"getDecodedResponseStream");function mCe(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 hr(`Error reading response as text: ${n.message}`,{code:hr.PARSE_ERROR}))})})}o(mCe,"streamToText");function hCe(t){return t?Buffer.isBuffer(t)?t.length:Ap(t)?nul Line truncated
`;return e}o($Ie,"encodeHeaders");function YIe(t){return t instanceof Uint8Array?t.byteLength:IE(t)?t.size===-1?void 0:t.size:void 0}o(YIe,"getLength");function JIe(t){let e=0;for(let r of t){let s=YIe(r);if(s===void 0)return;e+=s}return e}o(JIe,"getTotalLength");async function WIe(t,e,r){let s=[Pr(`--${r}`,"utf-8"),...e.flatMap(i=>[Pr(`\r
`,"utf-8"),Pr($Ie(i.headers),"utf-8"),Pr(`\r
`,"utf-8"),i.body,Pr(`\r
--${r}`,"utf-8")]),Pr(`--\r
\r
`,"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
`,"utf-8")],n=JIe(s);n&&t.headers.set("Content-Length",n),t.body=await vJ(s)}o(WIe,"buildRequestBody");var mp="multipartPolicy",jIe=70,KIe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function XIe(t){if(t.length>jIe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!KIe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(XIe,"assertValidBoundary");function wE(){return{name:mp,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?XIe(r):r=VIe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await WIe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(wE,"multipartPolicy");function bE(){return Yg()}o(bE,"createEmptyPipeline");var kJ=zg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),b4e=kJ.logger;function Hn(t){return kJ.createClientLogger(t)}o(Hn,"createClientLogger");var zn=Hn("core-rest-pipeline");function uN(t={}){return Zg({logger:zn.info,...t})}o(uN,"logPolicy");var AN=eE;function dN(t={}){return tE(t)}o(dN,"redirectPolicy");var xE=b(require("node:os"),1),QE=b(require("node:process"),1);function DJ(){return"User-Agent"}o(DJ,"getHeaderName");async function _J(t){if(QE.default&&QE.default.versions){let e=`${xE.default.type()} ${xE.default.release()}; ${xE.default.arch()}`,r=QE.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(_J,"setPlatformSpecificData");var NE="1.22.2";function oBe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(oBe,"getUserAgentString");function LJ(){return DJ()}o(LJ,"getUserAgentHeaderName");async function SE(t){let e=new Map;e.set("core-rest-pipeline",NE),await _J(e);let r=oBe(e);return t?`${t} ${r}`:r}o(SE,"getUserAgentValue");var MJ=LJ(),OJ="userAgentPolicy";function pN(t={}){let e=SE(t.userAgentPrefix);return{name:OJ,async sendRequest(r,s){return r.headers.has(MJ)||r.headers.set(MJ,await e),s(r)}}}o(pN,"userAgentPolicy");var as=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function mN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new as(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(mN,"createAbortablePromise");var ABe="The delay was aborted.";function hp(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return mN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??ABe})}o(hp,"delay");function Jo(t){if(ec(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(Jo,"getErrorMessage");function FJ(t){return ec(t)}o(FJ,"isError");function fu(){return Za()}o(fu,"randomUUID");var we=sc;var UJ=Symbol("rawContent");function fN(t){return typeof t[UJ]=="function"}o(fN,"hasRawContent");function qJ(t){return fN(t)?t[UJ]():t}o(qJ,"getRawContent");var RE=mp;function gN(){let t=wE();return{name:RE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)fN(s.body)&&(s.body=qJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(gN,"multipartPolicy");var EN=rE;function yN(){return sE()}o(yN,"decompressResponsePolicy");function CN(t={}){return oE(t)}o(CN,"defaultRetryPolicy");function IN(){return aE()}o(IN,"formDataPolicy");function Wo(t){return iN(t)}o(Wo,"getDefaultProxySettings");function BN(t,e){return EE(t,e)}o(BN,"proxyPolicy");var GJ="setClientRequestIdPolicy";function wN(t="x-ms-client-request-id"){return{name:GJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(wN,"setClientRequestIdPolicy");function bN(t){return yE(t)}o(bN,"agentPolicy");function xN(t){return CE(t)}o(xN,"tlsPolicy");var gu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function HJ(t={}){let e=new QN(t.parentContext);return t.span&&(e=e.setValue(gu.span,t.span)),t.namespace&&(e=e.setValue(gu.namespace,t.namespace)),e}o(HJ,"createTracingContext");var QN=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--),!_we(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",ut("InvalidTag",d,fr(t,i))}let u=Twe(t,i);if(u===!1)return ut("InvalidAttr","Attributes for '"+l+"' have open quote.",fr(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=Q3(A,e);if(p===!0)s=!0;else return ut(p.err.code,p.err.msg,fr(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.",fr(t,a));if(r.length===0)return ut("InvalidTag","Closing tag '"+l+"' has not been opened.",fr(t,a));{let d=r.pop();if(l!==d.tagName){let p=fr(t,d.tagStartPos);return ut("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",fr(t,a))}r.length==0&&(n=!0)}}else return ut("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",fr(t,i));else{let d=Q3(A,e);if(d!==!0)return ut(d.err.code,d.err.msg,fr(t,i-A.length+d.err.line));if(n===!0)return ut("InvalidXml","Multiple possible root nodes found.",fr(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=x3(t,i);continue}else if(t[i+1]==="?"){if(i=b3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=kwe(t,i);if(d==-1)return ut("InvalidChar","char '&' is not expected.",fr(t,i));i=d}else if(n===!0&&!Cu(t[i]))return ut("InvalidXml","Extra text at the end",fr(t,i));t[i]==="<"&&i--}}else{if(Cu(t[i]))continue;return ut("InvalidChar","char '"+t[i]+"' is not expected.",fr(t,i))}if(s){if(r.length==1)return ut("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",fr(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(qE,"validate");function Cu(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Cu,"isWhiteSpace");function b3(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.",fr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(b3,"readPI");function x3(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(x3,"readCommentAndCDATA");var Swe='"',Rwe="'";function Twe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===Swe||t[e]===Rwe)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(Twe,"readAttributeStr");function Pwe(t){let e=[],r=t.length,s=0;for(;s<r;){let n=s;for(;s<r&&Cu(t[s]);)s++;if(s>=r)break;if(t[s]==="="){s=n+1;continue}let i=t.slice(n,s),a=s;for(;s<r&&!Cu(t[s])&&t[s]!=="=";)s++;let c=t.slice(a,s),l,u=s;for(;u<r&&Cu(t[u]);)u++;u<r&&t[u]==="="&&(l=t.slice(s,u+1),s=u+1);let A,d,p=s;for(;p<r&&Cu(t[p]);)p++;if(p<r&&(t[p]==='"'||t[p]==="'")){let h=p+1,f=t.indexOf(t[p],h);f!==-1&&(A=t[p],d=t.slice(h,f),s=f+1)}let m={startIndex:n};m[1]=i,m[2]=c,m[3]=l,m[4]=A!==void 0?!0:void 0,m[5]=A,m[6]=d,e.push(m)}return e}o(Pwe,"scanAttributeTokens");function Q3(t,e){let r=Pwe(t),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.",Np(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return ut("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Np(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return ut("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Np(r[n]));let i=r[n][2];if(!Dwe(i))return ut("InvalidAttr","Attribute '"+i+"' is an invalid name.",Np(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return ut("InvalidAttr","Attribute '"+i+"' is repeated.",Np(r[n]))}return!0}o(Q3,"validateAttributeString");function vwe(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(vwe,"validateNumberAmpersand");function kwe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vwe(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(kwe,"validateAmpersand");function ut(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(ut,"getErrorObject");function Dwe(t){return zN(t)}o(Dwe,"validateAttrName");function _we(t){return zN(t)}o(_we,"validateTagName");function fr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(fr,"getLineNumberForPosition");function Np(t){return t.startIndex+t[1].length}o(Np,"getPositionFromMatch");var VN={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Sp={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},$N={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Iu=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Lwe=new Set("!?\\\\/[]$%{}^&*()<>|+");function N3(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Lwe.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}o(N3,"validateEntityName");function Rp(...t){let e=Object.create(null);for(let r of t)if(r)for(let s of Object.keys(r)){let n=r[s];if(typeof n=="string")e[s]=n;else if(n&&typeof n=="object"&&n.val!==void 0){let i=n.val;typeof i=="string"&&(e[s]=i)}}return e}o(Rp,"mergeEntityMaps");var ac="external",GE="base",YN="all";function Mwe(t){return!t||t===ac?new Set([ac]):t===YN?new Set([YN]):t===GE?new Set([GE]):Array.isArray(t)?new Set(t):new Set([ac])}o(Mwe,"parseLimitTiers");var Dr=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Owe=new Set([9,10,13]);function Fwe(t){if(!t)return{xmlVersion:1,onLevel:Dr.allow,nullLevel:Dr.remove};let e=t.xmlVersion===1.1?1.1:1,r=Dr[t.onNCR]??Dr.allow,s=Dr[t.nullNCR]??Dr.remove,n=Math.max(s,Dr.remove);return{xmlVersion:e,onLevel:r,nullLevel:n}}o(Fwe,"parseNCRConfig");var Bu=class{static{o(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,th Line truncated
`}),fbe=/&(?:#[xX]0*([0-9a-fA-F]{1,6});?|#0*([0-9]{1,7});?|([a-zA-Z][a-zA-Z0-9]{1,15});)/g;function iS(t){return t.indexOf("&")===-1?t:t.replace(fbe,(e,r,s,n)=>{if(n!==void 0)return Object.prototype.hasOwnProperty.call(G3,n)?G3[n]:e;let i=r!==void 0?parseInt(r,16):parseInt(s,10);return!Number.isFinite(i)||i>1114111?e:String.fromCodePoint(i)})}o(iS,"decodeEntities");uc.label="HTML";Ac.label="XML";JE.label="SVG";uc.decodeEntities=!0;Ac.decodeEntities=!0;JE.decodeEntities=!0;vp.label="SQL";nS.label="SQL-STRICT";eS.label="SHELL";tS.label="REDOS";rS.label="NOSQL";sS.label="LOG";var GZe=Object.freeze({HTML:uc,XML:Ac,SVG:JE,SQL:vp,"SQL-STRICT":nS,SHELL:eS,REDOS:tS,NOSQL:rS,LOG:sS});function gbe(t){if(typeof t!="string")throw new TypeError(`is-unsafe: first argument must be a string, got ${typeof t}`)}o(gbe,"assertString");function Ebe(t){if(!(t instanceof RegExp)){if(Array.isArray(t)){if(t.length===0)throw new TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(t[0])){for(let e of t)if(!Array.isArray(e)||e.length===0)throw new TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}return}throw new TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof t}`)}}o(Ebe,"assertContext");function ybe(t){return t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null}}o(ybe,"normalise");function Cbe(t,e){if(!e.decodeEntities)return null;let r=iS(t);return r===t?null:r}o(Cbe,"decodedCopy");function Ibe(t,e){let r=e.label??"CUSTOM",s=Cbe(t,e);for(let n of e)if(n.pattern.test(t)||s!==null&&n.pattern.test(s))return{context:r,id:n.id,description:n.description,pattern:n.pattern};return null}o(Ibe,"matchList");function H3(t,e){gbe(t),Ebe(e);let{lists:r,regex:s}=ybe(e);if(s)return s.test(t);for(let n of r)if(Ibe(t,n)!==null)return!0;return!1}o(H3,"isUnsafe");function Bbe(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let s={};for(let n in r)if(n.startsWith(e.attributeNamePrefix)){let i=n.substring(e.attributeNamePrefix.length);s[i]=r[n]}else s[n]=r[n];return s}o(Bbe,"extractRawAttributes");function wbe(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}o(wbe,"extractNamespace");var kp=class{static{o(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Sbe,this.parseTextData=bbe,this.resolveNameSpace=xbe,this.buildAttributesMap=Nbe,this.isItStopNode=vbe,this.replaceEntitiesValue=Tbe,this.readStopNodeData=_be,this.saveTextToParentTag=Pbe,this.addChild=Rbe,this.ignoreAttributesFn=XN(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s={...Sp};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?s=this.options.htmlEntities:this.options.htmlEntities===!0&&(s={...$N,...VN}),this.entityDecoder=new Bu({namedEntities:{...s,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:o((i,a)=>H3(a,[uc,Ac])?Iu.BLOCK:Iu.ALLOW,"onInputEntity")})),this.matcher=new Yn,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new bu;let n=this.options.stopNodes;if(n&&n.length>0){for(let i=0;i<n.length;i++){let a=n[i];typeof a=="string"?this.stopNodeExpressionsSet.add(new us(a)):a instanceof us&&this.stopNodeExpressionsSet.add(a)}this.stopNodeExpressionsSet.seal()}}};function bbe(t,e,r,s,n,i,a){let c=this.options;if(t!==void 0&&(c.trimValues&&!s&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,n,i);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?cS(t,c.parseTagValue,c.numberParseOptions):t}}o(bbe,"parseTextData");function xbe(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}o(xbe,"resolveNameSpace");var Qbe=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Nbe(t,e,r,s=!1){let n=this.options;if(s===!0||n.ignoreAttributes!==!0&&typeof t=="string"){let i=B3(t,Qbe),a=i.length,c={},l=new Array(a),u=!1,A={};for(let m=0;m<a;m++){let h=this.resolveNameSpace(i[m][1]),f=i[m][4];if(h.length&&f!==void 0){let y=f;n.trimValues&&(y=y.trim()),y=this.replaceEntitiesValue(y,r,this.readonlyMatcher),l[m]=y,A[h]=y,u=!0}}u&&typeof e=="object"&&e.updateCurrent&&e.updateCurrent(A);let d=n.jPath?e.toString():this.readonlyMatcher,p=!1;for(let m=0;m<a;m++){let h=this.resolveNameSpace(i[m][1]);if(this.ignoreAttributesFn(h,d))continue;lLine truncated
`):`
`);let s=new _r("!xml"),n=s,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let a=new Pp(e.processEntities),c=t.length;for(let l=0;l<c;l++)if(t[l]==="<"){let A=t.charCodeAt(l+1);if(A===47){let d=xu(t,">",l,"Closing Tag is not closed."),p=t.substring(l+2,d).trim();if(e.removeNSPrefix){let h=p.indexOf(":");h!==-1&&(p=p.substr(h+1))}p=oS(e.transformTagName,p,"",e).tagName,n&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&e.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);m&&e.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop()||s,e.captureMetaData&&n&&n.addEndIndex(dc(d+1,r)),i="",l=d}else if(A===63){let d=aS(t,l,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),a.setXmlVersion(Number(m)||1)}if(!(e.ignoreDeclaration&&d.tagName==="?xml"||e.ignorePiTags)){let m=new _r(d.tagName);m.add(e.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&e.ignoreAttributes!==!0&&(m[":@"]=p);let h=e.captureMetaData?dc(l,r):l;this.addChild(n,m,this.readonlyMatcher,h),e.captureMetaData&&n.addEndIndex(dc(d.closeIndex+2,r))}l=d.closeIndex+1}else if(A===33&&t.charCodeAt(l+2)===45&&t.charCodeAt(l+3)===45){let d=xu(t,"-->",l+4,"Comment is not closed.");if(e.commentPropName){let p=t.substring(l+4,d-2);i=this.saveTextToParentTag(i,n,this.readonlyMatcher),n.add(e.commentPropName,[{[e.textNodeName]:p}])}l=d}else if(A===33&&t.charCodeAt(l+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let d=a.readDocType(t,l);this.entityDecoder.addInputEntities(d.entities),l=d.i}else if(A===33&&t.charCodeAt(l+2)===91){let d=xu(t,"]]>",l,"CDATA is not closed.")-2,p=t.substring(l+9,d);i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let m=this.parseTextData(p,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),e.cdataPropName?n.add(e.cdataPropName,[{[e.textNodeName]:p}]):n.add(e.textNodeName,m),l=d+2}else{let d=aS(t,l,e.removeNSPrefix);if(!d){let k=t.substring(Math.max(0,l-50),Math.min(c,l+50));throw new Error(`readTagExp returned undefined at position ${l}. Context: "${k}"`)}let p=d.tagName,m=d.rawTagName,h=d.tagExp,f=d.attrExpPresent,y=d.closeIndex;if({tagName:p,tagExp:h}=oS(e.transformTagName,p,h,e),e.strictReservedNames&&(p===e.commentPropName||p===e.cdataPropName||p===e.textNodeName||p===e.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);n&&i&&n.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher,!1));let E=n;E&&e.unpairedTagsSet.has(E.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let C=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(C=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),h=p):h=h.substr(0,h.length-1),f=p!==h);let I=null,B={},N;N=wbe(m),p!==s.tagname&&this.matcher.push(p,{},N),p!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,p),I&&(B=Bbe(I,e))),p!==s.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let U=e.captureMetaData?dc(l,r):l;if(this.isCurrentNodeStopNode){let k="";if(C)l=d.closeIndex;else if(e.unpairedTagsSet.has(p))l=d.closeIndex;else{let ke=this.readStopNodeData(t,m,y+1);if(!ke)throw new Error(`Unexpected end of ${m}`);l=ke.i,k=ke.tagContent}let Ie=new _r(p);I&&(Ie[":@"]=I),Ie.add(e.textNodeName,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,Ie,this.readonlyMatcher,U),e.captureMetaData&&n.addEndIndex(dc(l+1,r))}else{if(C){({tagName:p,tagExp:h}=oS(e.transformTagName,p,h,e));let k=new _r(p);I&&(k[":@"]=I),this.addChild(n,k,this.readonlyMatcher,U),e.captureMetaData&&n.addEndIndex(dc(y+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(e.unpairedTagsSet.has(p)){let k=new _r(p);I&&(k[":@"]=I),this.addChild(n,k,this.readonlyMatcher,U),e.captureMetaData&&n.addEndIndex(dc(d.closeIndex+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1,l=d.closeIndex;continue}else{let k=new _r(p);if(this.tagsNodeStack.length>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),I&&(k[":@"]=I),this.addChild(n,k,this.readonlyMatcher,U),n=k}i="",l=y}}}else i+=t[l];return s.child},"parseXml");function dc(t,e){let r=0,s=e.length;for(;r<s;){let n=Math.floor((r+s)/2);e[n]<t?r=n+1:s=n}return t+r}o(dc,"getOriginalIndex");function Rbe(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(Rbe,"addChild");function Tbe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toLine truncated
`;function qbe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(pS(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(qbe,"detectXmlVersionFromArray");function Y3(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(Y3,"resolveTagName");function dS(t,e){let r="";e.format&&(r=Ube);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let c=0;c<e.stopNodes.length;c++){let l=e.stopNodes[c];typeof l=="string"?s.push(new us(l)):l instanceof us&&s.push(l)}let n=qbe(t,e),i=HE("qName",{xmlVersion:n}),a=new Yn;return J3(t,e,r,a,s,i)}o(dS,"toXml");function J3(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(t);return l=AS(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=pS(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:Y3(A,!1,e,s,i),m=Gbe(u[":@"],e);s.push(p,m);let h=zbe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=AS(I,e)),I=$t(I),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=WE(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=Dp(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=$3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let y=$3(u[":@"],e,h,s,i),E=r+`<${p}${y}`,C;h?C=W3(u[A],e):C=J3(u[A],e,f,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,s.pop()}return a}o(J3,"arrToStr");function Gbe(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]=Jn(t[n]),s=!0}return s?r:null}o(Gbe,"extractAttributeValues");function W3(t,e){if(!Array.isArray(t))return t!=null?$t(t):"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=pS(n);if(i===e.textNodeName)r+=$t(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=Hbe(n[":@"],e),c=W3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(W3,"getRawContent");function Hbe(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)}="${Jn(n)}"`}return r}o(Hbe,"attr_to_str_raw");function pS(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(pS,"propName");function $3(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:Y3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=AS(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Jn(u)}"`}return i}o($3,"attr_to_str");function zbe(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(zbe,"checkStopNode");function AS(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(AS,"replaceEntitiesValue");function mS(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(mS,"getIgnoreAttributesFn");var Vbe={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 Mr(t){if(this.options=Object.assign({},Vbe,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.isALine truncated
`,this.newLine=`
`):(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.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Mr,"Builder");function $be(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($be,"detectXmlVersionFromObj");function hS(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(hS,"resolveTagName");Mr.prototype.build=function(t){if(this.options.preserveOrder)return dS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yn,r=$be(t,this.options),s=HE("qName",{xmlVersion:r});return this.j2x(t,0,e,s).val}};Mr.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:hS(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=hS(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,$t(t[l]),c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,$t(t[l]));i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=$t(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 y=this.j2x(f,e+1,r,s);r.pop(),p+=y.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else p+=this.processTextOrObjNode(f,A,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,f);y=this.replaceEntitiesValue(y),y=$t(y),p+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=$t(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=hS(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,$t(t[l][d[m]]),c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};Mr.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,$t(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Jn(e)+'"'};function Ybe(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(Ybe,"processTextOrObjNode");Mr.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]=Jn(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]=Jn(t[s]),r=!0)}return r?e:null};Mr.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.attr 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
`+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)=>oy(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=sy(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ny(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 mc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Op(e,r,this)}computeHMACSHA256(e){return(0,sW.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nt=Hn("storage-common");var Ds;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ds||(Ds={}));var Zo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rxe=new as("The operation was aborted."),Fp=class extends Wn{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Zo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Zo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Zo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Zo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Zo.maxRetryDelayInMs):Zo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Zo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Zo.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=ry(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Xo(n.url,Wi.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 Ds.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ds.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Nt.info(`RetryPolicy: Delay for ${n}ms`),iy(n,s,rxe)}};var Up=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Fp(e,r,this.retryOptions)}};var sxe="storageBrowserPolicy";function nW(){return{name:sxe,async sendRequest(t,e){return we||((t.method==="GET"||t.method==="HEAD")&&(t.url=Xo(t.url,Wi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}o(nW,"storageBrowserPolicy");var nxe="StorageCorrectContentLengthPolicy";function iW(){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:nxe,async sendRequest(e,r){return t(e),r(e)}}}o(iW,"storageCorrectContentLengthPolicy");var ixe="storageRetryPolicy",Nu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},oxe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],axe=new as("The operation was aborted.");function oW(t={}){let e=t.retryPolicyType??Nu.retryPolicyType,r=t.maxTries??Nu.maxTries,s=t.retryDelayInMs??Nu.retryDelayInMs,n=t.maxRetryDelayInMs??Nu.maxRetryDelayInMs,i=t.secondaryHost??Nu.secondaryHost,a=t.tryTimeoutInMs??Nu.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,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
`+s(i)+n(i),c=(0,aW.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)=>oy(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=sy(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=ny(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:cxe,async sendRequest(i,a){return e(i),a(i)}}}o(CS,"storageSharedKeyCredentialPolicy");var lxe="storageRequestFailureDetailsParserPolicy";function cW(){return{name:lxe,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(cW,"storageRequestFailureDetailsParserPolicy");var lW=require("node:crypto");var ay=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,lW.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var cy="12.31.0",ly="2026-02-06";var uy="https://storage.azure.com/.default",ji={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var pn="",IS="*",uxe=1*1024*1024;var Axe=4*uxe;var uW="AES256",AW="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",dW=["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"],pW=["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"],mW="BlobUsesCustomerSpecifiedEncryption",hW="BlobDoesNotUseCustomerSpecifiedEncryption",fW=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ki(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(Ki,"isPipelineLike");var qp=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 $e);let r=new qp([],e);return r._credential=t,r}o(At,"newPipeline");function dxe(t){let e=[pxe,gW,mxe,hxe,fxe,gxe,yxe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Exe(n));return{wrappedPolicies:GN(r),afterRetry:s}}}}o(dxe,"processDownlevelPipeline");function BS(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?HN(e):yS(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${cy}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Cp({...r,loggingOptions:{additionalAllowedHeaderNames:dW,additionalAllowedQueryParameters:pW,logger:KE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:jE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:gS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:EN}),n.addPolicy(iW()),n.addPolicy(oW(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new En(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(dQe,"generateBlobSASQueryParameters20150405");function pQe(t,e){if(t=wc(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=di.parse(t.permissions.toString()).toString():n=pi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?gn(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 En(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(pQe,"generateBlobSASQueryParameters20181109");function mQe(t,e){if(t=wc(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=di.parse(t.permissions.toString()).toString():n=pi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?gn(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 En(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(mQe,"generateBlobSASQueryParameters20201206");function hQe(t,e){if(t=wc(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=di.parse(t.permissions.toString()).toString():n=pi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Bc(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?gn(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 En(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(hQe,"generateBlobSASQueryParametersUDK20181109");function fQe(t,e){if(t=wc(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=di.parse(t.permissions.toString()).toString():n=pi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Bc(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?gn(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 En(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(fQe,"generateBlobSASQueryParametersUDK20200210");function gQe(t,e){if(t=wc(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=di.parse(t.permissions.toString()).toString():n=pi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Bc(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?gn(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 En(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(gQe,"generateBlobSASQueryParametersUDK20201206");function EQe(t,e){if(t=wc(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=di.parse(t.permissions.toString()).toString():n=pi.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Bc(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?gn(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 En(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(EQe,"generateBlobSASQueryParametersUDK20250705");function Bc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Bc,"getCanonicalName");function wc(t){let e=t.version?t.version:ly;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(wc,"SASSignatureValuesSanityCheckAndAutofill");var Zp=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=fu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==pn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==pn||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!==pn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==pn||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!==pn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==pn||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!==pn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==pn||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"}};Fu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Nc=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"}};Nc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var lm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var SNe=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())})},dv=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 C8(t,e,r){return SNe(this,void 0,void 0,function*(){var s;let n=new no(t),i=n.getBlockBlobClient(),a=new dv((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 mC(`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(C8,"uploadCacheArchiveSDK");var B8=b(require("buffer"),1),mi=b(require("fs"),1),w8=b(require("stream"),1),b8=b(require("util"),1);var hC=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 fC(t){return t?t>=200&&t<300:!1}o(fC,"isSuccessStatusCode");function RNe(t){return t?t>=500:!0}o(RNe,"isServerErrorStatusCode");function TNe(t){return t?[Xe.BadGateway,Xe.ServiceUnavailable,Xe.GatewayTimeout].includes(t):!1}o(TNe,"isRetryableStatusCode");function PNe(t){return hC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(PNe,"sleep");function I8(t,e,r){return hC(this,arguments,void 0,function*(s,n,i,a=Mg,c=Og,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),!RNe(p)))return d;if(p&&(m=TNe(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 PNe(c),A++}throw Error(`${s} failed: ${u}`)})}o(I8,"retry");function um(t,e){return hC(this,arguments,void 0,function*(r,s,n=Mg,i=Og){return yield I8(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Fn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(um,"retryTypedResponse");function Uu(t,e){return hC(this,arguments,void 0,function*(r,s,n=Mg,i=Og){return yield I8(r,s,a=>a.message.statusCode,n,i)})}o(Uu,"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 vNe(t,e){return Fs(this,void 0,void 0,function*(){yield b8.promisify(w8.pipeline)(t.message,e)})}o(vNe,"pipeResponseToStream");var gC=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(FNe,"printCachesListForDiagnostics");function gv(t,e,r){return Fr(this,void 0,void 0,function*(){let s=new M8.URL(t),n=S8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Q8(t,e,n):n.concurrentBlobDownloads?yield x8(t,e,n):yield EC(t,e):yield EC(t,e)})}o(gv,"downloadCache");function F8(t,e,r){return Fr(this,void 0,void 0,function*(){let s=fv(),n=au(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield um("reserveCache",()=>Fr(this,void 0,void 0,function*(){return s.postJson(dm("caches"),i)}))})}o(F8,"reserveCache");function L8(t,e){return`bytes ${t}-${e}/*`}o(L8,"getContentRange");function UNe(t,e,r,s,n){return Fr(this,void 0,void 0,function*(){w(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${L8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":L8(s,n)},a=yield Uu(`uploadChunk (start: ${s}, end: ${n})`,()=>Fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!fC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(UNe,"uploadChunk");function qNe(t,e,r,s){return Fr(this,void 0,void 0,function*(){let n=On(r),i=dm(`caches/${e.toString()}`),a=qu.openSync(r,"r"),c=pv(s),l=vQ("uploadConcurrency",c.uploadConcurrency),u=vQ("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];w("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Fr(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 UNe(t,i,()=>qu.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{qu.closeSync(a)}})}o(qNe,"uploadFile");function GNe(t,e,r){return Fr(this,void 0,void 0,function*(){let s={size:r};return yield um("commitCache",()=>Fr(this,void 0,void 0,function*(){return t.postJson(dm(`caches/${e.toString()}`),s)}))})}o(GNe,"commitCache");function Ev(t,e,r,s){return Fr(this,void 0,void 0,function*(){if(pv(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield C8(r,e,s)}else{let i=fv();w("Upload cache"),yield qNe(i,t,e,s),w("Commiting cache");let a=On(e);re(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield GNe(i,t,a);if(!fC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);re("Cache saved successfully")}})}o(Ev,"saveCache");var k5=b(Q5(),1),mt=b(pt(),1),ms=b(pt(),1),vc=b(pt(),1),kc=b(pt(),1),Dc=b(pt(),1);var dk=b(pt(),1),pk=b(pt(),1),T5=b(pt(),1),P5=b(pt(),1),v5=b(pt(),1);var lk=b(pt(),1),uk=b(pt(),1),N5=b(pt(),1),S5=b(pt(),1),R5=b(pt(),1);var Ak=class extends R5.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,S5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,N5.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?uk.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,lk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,lk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?uk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},iI=new Ak;var mk=class extends v5.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(()=>iI,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,P5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,T5.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(iI.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?pk.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,dk.WireTyp Line truncated
`));let{commands:s}=yield L5(r,"create");yield O5(s,t)})}o(Pk,"createTar");var sA=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())})},In=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},_c=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},vk="cache write denied:",lI=class t extends _c{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},U5=Fg,uI=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},AI=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function q5(t){if(!t||t.length===0)throw new In("Path Validation Error: At least one directory or file path is required")}o(q5,"checkPaths");function kk(t){if(t.length>512)throw new In(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new In(`Key Validation Error: ${t} cannot contain commas.`)}o(kk,"checkKey");function Dk(){return Am()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Dk,"isFeatureAvailable");function G5(t,e,r,s){return sA(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Am();w(`Cache service version: ${u}`),q5(n);let A=hv();if(!T8(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 sTe(n,i,a,c,l):yield rTe(n,i,a,c,l)})}o(G5,"restoreCache");function rTe(t,e,r,s){return sA(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 In("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)kk(m);let d=yield ap(),p="";try{let m;try{m=yield O8(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let y=(u=f?.message)!==null&&u!==void 0?u:"";throw y.includes(U5)?new uI(y):f}if(!m?.archiveLocation)return;if(c?.lookupOnly)return re("Lookup only - skipping download"),m.cacheKey;p=Sm.join(yield Xa(),Vo(d)),w(`Archive Path: ${p}`),yield gv(m.archiveLocation,p,c),$a()&&(yield Nm(p,d));let h=On(p);return re(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Tk(p,d),re("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===In.name)throw m;h instanceof Fn&&typeof h.statusCode=="number"&&h.statusCode>=500?Kl(`Failed to restore: ${m.message}`):It(`Failed to restore: ${m.message}`)}finally{try{yield op(p)}catch(m){w(`Failed to delete archive: ${m}`)}}})}o(rTe,"restoreCacheV1");function sTe(t,e,r,s){return sA(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 In("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)kk(p);let d="";try{let p=Sk(),m=yield ap(),h={key:i,restoreKeys:a,version:au(n,m,l)},f;try{f=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(U5)?new uI(I):C}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=Sm.join(yield Xa(),Vo(m)),w(`Archive path: ${d}`),w(`Starting download of archive to: ${d}`),yield gv(f.signedDownloadUrl,d,c);let E=On(d);return re(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),$a()&&(yield Nm(d,m)),yield Tk(d,m),re("Cache restored successfully"),f.matchedKey}catch(p){let m=p;if(m.name===In.name)throw p;m instanceof Fn&&typeof m.statusCode=="number"&&m.statusCode>=500?Kl(`Failed to restore: ${p.message}`):It(`Failed to restore: ${p.message}`)}finally{try{d&&(yield op(d))}catch(p){w(`Failed to delete archive: ${p}`)}}})}o(sTe,"restoreCacheV2");function _k(t,e,r){return sA(this,arguments,void 0,function*(s,n,i,a=!1){let c=Am();w(`Cache service version: ${c}`),q5(s),kk(n);let l=hv();return P8(l)?c==="v2"?yield iTe(s,n,i,a):yield nTe(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(_k,"saveCache");function nTe(t,e,r){return sA(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:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:B,escape:N,quote:U,record_delimiter:k}=this.options,{bomSkipped:Ie,delimiterDiscovered:ke,delimiterBufPrevious:Pe,rawBuffer:De,escapeIsQuote:de}=this.state;if(!ke&&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(aX(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 BA)if(BA[Ne].compare(ce,0,BA[Ne].length)===0){let ho=BA[Ne].length;this.state.bufBytesStart+=ho,ce=ce.slice(ho);let eh=IA({...this.original_options,encoding:Ne});for(let bt in eh)this.options[bt]=eh[bt];({comment:B,escape:N,quote:U}=this.options);break}this.state.bomSkipped=!0}let Xs=ce.length,z;for(z=0;z<Xs&&!this.__needMoreData(z,Xs,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&&k.length===0&&this.__autoDiscoverRecordDelimiter(ce,z)&&(k=this.options.record_delimiter);let Ne=ce[z];if(h===!0&&De.append(Ne),(Ne===MLe||Ne===OLe)&&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<Xs)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+U.length],ma=y&&this.__isCharTrimable(ce,z+U.length),xi=B!==null&&this.__compareBytes(B,ce,z+U.length,bt),ha=this.__isDelimiter(ce,z+U.length,bt),th=k.length===0?this.__autoDiscoverRecordDelimiter(ce,z+U.length):this.__isRecordDelimiter(bt,ce,z+U.length);if(N!==null&&this.__isEscape(ce,z,Ne)&&this.__isQuote(ce,z+N.length))z+=N.length-1;else if(!bt||ha||th||xi||ma){this.state.quoting=!1,this.state.wasQuoting=!0,z+=U.length-1;continue}else if(f===!1){let v_=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(v_!==void 0)return v_}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(U),z+=U.length-1}else if(this.state.field.length!==0){if(f===!1){let bt=this.__infoField(),ma=Object.keys(BA).map(ha=>BA[ha].equals(this.state.field.toString())?ha:!1).filter(Boolean)[0],xi=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))}`,ma?`(${ma} bom)`:void 0],this.options,bt,{field:this.state.field}));if(xi!==void 0)return xi}}else{this.state.quoting=!0,z+=U.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 ha=this.__onField();if(ha!==void 0)return ha;this.info.bytes=this.state.bufBytesStart+z+bt;let th=this.__onRecord(i);if(th!==void 0)return th;if(C!==-1&&this.info.records>=C){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 ma=this.__isDelimiter(ce,z,Ne);if(ma!==0){this.info.bytes=this.state.bufBytesStart+z;let xi=this.__onField();if(xi!==void 0)return xi;z+=ma-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 ho=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 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
`,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 lX=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=pB(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(jl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=lX(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=jl(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 Sr("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 uX.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 a_.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 a_.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return AX.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=Vm.default.resolve(e);return Vm.default.resolve(r).startsWith(s.endsWith(Vm.default.sep)?s:`${s}${Vm.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 Ym=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||$m.default.join(dX.default.homedir(),".docker")}static configFile(){let e=$m.default.join(t.configDir,"config.json");if(c_.default.existsSync(e))return JSON.parse(c_.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Sr("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 pZ=b(require("crypto"),1);var mB=require("fs"),hX=require("os");var wA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,mB.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,mB.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${hX.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 d_=b(CX(),1),IX=b(Vl(),1);var KLe=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 BX(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(BX,"getAuthString");function wX(t){return new d_.HttpClient().getAgent(t)}o(wX,"getProxyAgent");function XLe(t){return new d_.HttpClient().getAgentDispatcher(t)}o(XLe,"getProxyAgentDispatcher");function bX(t){let e=XLe(t);return o((s,n)=>KLe(this,void 0,void 0,function*(){return(0,IX.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o(bX,"getProxyFetch");function xX(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(xX,"getApiBaseUrl");function p_(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(p_,"getUserAgentWithOrchestrationId");function da(){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(da,"getUserAgent");function IB(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)=>IB.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(IB,"register");function QX(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(QX,"addHook");function NX(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(NX,"removeHook");var SX=Function.bind,RX=SX.bind(SX);function TX(t,e,r){let s=RX(NX,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]=RX(QX,null).apply(null,i)})}o(TX,"bindApi");function eMe(){let t=Symbol("Singular"),e={registry:{}},r=IB.bind(null,e,t);return TX(r,e,t),r}o(eMe,"Singular");function tMe(){let t={registry:{}},e=IB.bind(null,t);return TX(e,t),e}o(tMe,"Co Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}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))})});
`)}o(TMe,"_buildMessageForResponseErrors");var PMe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(TMe(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},vMe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],kMe=["query","method","url"],XX=/\/api\/v3\/?$/;function DMe(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(kMe.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)=>vMe.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 XX.test(i)&&(n.url=i.replace(XX,"/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 PMe(n,c,a.data)}return a.data.data})}o(DMe,"graphql");function y_(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>DMe(r,n,i),"newApi"),{defaults:y_.bind(null,r),endpoint:r.endpoint})}o(y_,"withDefaults");var zmt=y_(Km,{headers:{"user-agent":`octokit-graphql.js/${RMe} ${da()}`},method:"POST",url:"/graphql"});function ZX(t){return y_(t,{method:"POST",url:"/graphql"})}o(ZX,"withCustomRequest");var C_="(?:[a-zA-Z0-9_-]+)",eZ="\\.",tZ=new RegExp(`^${C_}${eZ}${C_}${eZ}${C_}$`),_Me=tZ.test.bind(tZ);async function LMe(t){let e=_Me(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(LMe,"auth");function MMe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(MMe,"withAuthorizationPrefix");async function OMe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=MMe(t),e(n)}o(OMe,"hook");var rZ=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(LMe.bind(null,e),{hook:OMe.bind(null,e)})},"createTokenAuth2");var I_="7.0.6";var sZ=o(()=>{},"noop"),FMe=console.warn.bind(console),UMe=console.error.bind(console);function qMe(t={}){return typeof t.debug!="function"&&(t.debug=sZ),typeof t.info!="function"&&(t.info=sZ),typeof t.warn!="function"&&(t.warn=FMe),typeof t.error!="function"&&(t.error=UMe),t}o(qMe,"createLogger");var nZ=`octokit-core.js/${I_} ${da()}`,xB=class{static{o(this,"Octokit")}static VERSION=I_;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 PX.Collection,s={baseUrl:Km.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} ${nZ}`:nZ,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Km.defaults(s),this.graphql=ZX(this.request).defaults(s),this.log=qMe(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=rZ(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 B_="17.0.0";var GMe={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}};V5(async()=>{let t=jl("workdir"),e=Ao.getInputList("files"),r=jl("target"),s=Ao.getInputList("fields"),n=await Dd("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 Va("docker",i,{ignoreReturnCode:!0,silent:!0,cwd:t});if(a.exitCode!==0)throw new Error(`buildx bake failed with: ${RB.getErrorMessage(a.stderr)}`);let c=JSON.parse(a.stdout.trim());return re(JSON.stringify(c,null,2)),c});await Dd("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)),kG("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
}