[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-06-10 01:07:29 +00:00
1 parent 9e2c1cc01d
commit 5e2ebd065d
8 files changed
+566 -566

No files matched your search

+165 -165
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var WOe=Object.create;var eM=Object.defineProperty;var JOe=Object.getOwnPropertyDescriptor;var zOe=Object.getOwnPropertyNames;var jOe=Object.getPrototypeOf,KOe=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ia=(t,e)=>{for(var r in e)eM(t,r,{get:e[r],enumerable:!0})},$Oe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zOe(e))!KOe.call(t,n)&&n!==r&&eM(t,n,{get:()=>e[n],enumerable:!(s=JOe(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?WOe(jOe(t)):{},$Oe(e||!t||!t.__esModule?eM(r,"default",{value:t,enumerable:!0}):r,t));var GX=E(Ip=>{"use strict";var tYt=b("net"),s3e=b("tls"),sM=b("http"),PX=b("https"),n3e=b("events"),rYt=b("assert"),i3e=b("util");Ip.httpOverHttp=o3e;Ip.httpsOverHttp=a3e;Ip.httpOverHttps=A3e;Ip.httpsOverHttps=c3e;function o3e(t){var e=new Kc(t);return e.request=sM.request,e}function a3e(t){var e=new Kc(t);return e.request=sM.request,e.createSocket=OX,e.defaultPort=443,e}function A3e(t){var e=new Kc(t);return e.request=PX.request,e}function c3e(t){var e=new Kc(t);return e.request=PX.request,e.createSocket=OX,e.defaultPort=443,e}function Kc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||sM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=HX(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}i3e.inherits(Kc,n3e.EventEmitter);Kc.prototype.addRequest=function(e,r,s,n){var i=this,o=nM({request:e},i.options,HX(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Kc.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=nM({},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")),El("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){El("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){El("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return El("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),El(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};Kc.prototype.removeSocket=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)})}};function OX(t,e){var r=this;Kc.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=nM({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=s3e.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function HX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function nM(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,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var El;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?El=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)}:El=function(){};Ip.debug=El});var iM=E((nYt,qX)=>{qX.exports=GX()});var Ir=E((iYt,YX)=>{YX.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 Lt=E((oYt,gZ)=>{"use strict";var VX=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[VX]===!0}[VX]=!0},WX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),oM=class extends yr{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[WX]===!0}[WX]=!0},JX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),aM=class extends yr{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[JX]===!0}[JX]=!0},zX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),AM=class extends yr{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[zX]===!0}[zX]=!0},jX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),cM=class extends yr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jX]===!0}[jX]=!0},KX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),uM=class extends yr{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function w4e(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 o=s[i-1].trim();if(c4e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function S4e(){return"allowed"}function N4e(){return"success"}function T4e(){return"success"}function x4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function R4e(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&&tL(t.origin)&&!tL(iI(t))&&(e=null);break;case"same-origin":G1(t,iI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Rp(t,e){return t}function D4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Rp(t.domainLookupStartTime,r),domainLookupEndTime:Rp(t.domainLookupEndTime,r),connectionStartTime:Rp(t.connectionStartTime,r),connectionEndTime:Rp(t.connectionEndTime,r),secureConnectionStartTime:Rp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function k4e(t){return Rp(f4e.now(),t)}function v4e(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}}function xee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function _4e(t){return{referrerPolicy:t.referrerPolicy}}function F4e(t){let e=t.referrerPolicy;Rh(e);let r=null;if(t.referrer==="client"){let a=bee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=eL(r),n=eL(r,!0);s.toString().length>4096&&(s=n);let i=G1(t,s),o=nI(s)&&!nI(t.url);switch(e){case"origin":return n??eL(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 a=iI(t);return G1(s,a)?s:nI(s)&&!nI(a)?"no-referrer":n}default:return o?"no-referrer":n}}function eL(t,e){return Rh(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)}function nI(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"))}}function M4e(t,e){if(H1===void 0)return!0;let r=Ree(e);if(r==="no metadata"||r.length===0)return!0;let s=U4e(r),n=P4e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=H1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),O4e(A,a))return!0}return!1}var L4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ree(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=L4e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();wee.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function U4e(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}function P4e(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}function O4e(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}function H4e(t){}function G1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function G4e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function q4e(t){return t.controller.state==="aborted"}function Y4e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function V4e(t){return m4e[t.toLowerCase()]??t}function W4e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Rh(typeof e=="string"),e}var J4e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Dee(t,e,r=0,s=1){class n{ Line truncated
`);function b6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Q6e(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}function w6e(t,e){Y1(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 o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&V1(t,y6e,i)||i.position===t.length-4&&V1(t,B6e,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=S6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",b6e(u)||(u=""),h=new C6e([d],c,{type:u})):h=f6e(Buffer.from(d)),Y1(qee(A)),Y1(typeof h=="string"&&qee(h)||p6e(h)),n.push(m6e(A,h,c))}}function S6e(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 o=kp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=AL(o,!0,!0,a=>a===9||a===32),!g6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,kp(a=>a===32||a===9,t,e),h6e(o)){case"content-disposition":{if(r=s=null,!V1(t,I6e,e)||(e.position+=17,r=Wee(t,e),r===null))return"failure";if(V1(t,Vee,e)){let a=e.position+Vee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=Wee(t,e),s===null))return"failure"}break}case"content-type":{let a=kp(A=>A!==10&&A!==13,t,e);a=AL(a,!1,!0,A=>A===9||A===32),n=Yee(a);break}case"content-transfer-encoding":{let a=kp(A=>A!==10&&A!==13,t,e);a=AL(a,!1,!0,A=>A===9||A===32),i=Yee(a);break}default:kp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Wee(t,e){Y1(t[e.position-1]===34);let r=kp(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)}function kp(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function AL(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)}function V1(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}Jee.exports={multipartFormDataParser:w6e,validateBoundary:Q6e}});var Fp=E((DYt,nte)=>{"use strict";var AI=lt(),{ReadableStreamFrom:N6e,isBlobLike:jee,isReadableStreamLike:T6e,readableStreamClose:x6e,createDeferredPromise:R6e,fullyReadBody:D6e,extractMimeType:k6e,utf8DecodeBytes:Xee}=Qi(),{FormData:Kee}=aI(),{kState:_p}=Cl(),{webidl:v6e}=Ws(),{Blob:_6e}=b("node:buffer"),cL=b("node:assert"),{isErrored:Zee,isDisturbed:F6e}=b("node:stream"),{isArrayBuffer:M6e}=b("node:util/types"),{serializeAMimeType:L6e}=Jn(),{multipartFormDataParser:U6e}=zee(),uL;try{let t=b("node:crypto");uL=e=>t.randomInt(0,e)}catch{uL=t=>Math.floor(Math.random(t))}var W1=new TextEncoder;function P6e(){}var ete=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,tte;ete&&(tte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!F6e(e)&&!Zee(e)&&e.cancel("Response object has been garbage collected").catch(P6e)}));function rte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?W1.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>x6e(A))},start(){},type:"bytes"}),cL(T6e(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(M6e(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(AI.isFormDataLike(t)){let A=`----formdata-undici-0${`${uL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var M3e=Object.create;var gM=Object.defineProperty;var L3e=Object.getOwnPropertyDescriptor;var U3e=Object.getOwnPropertyNames;var P3e=Object.getPrototypeOf,O3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)gM(t,r,{get:e[r],enumerable:!0})},H3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of U3e(e))!O3e.call(t,s)&&s!==r&&gM(t,s,{get:()=>e[s],enumerable:!(n=L3e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?M3e(P3e(t)):{},H3e(e||!t||!t.__esModule?gM(r,"default",{value:t,enumerable:!0}):r,t));var lZ=E(bp=>{"use strict";var oVt=b("net"),J3e=b("tls"),EM=b("http"),cZ=b("https"),z3e=b("events"),aVt=b("assert"),j3e=b("util");bp.httpOverHttp=K3e;bp.httpsOverHttp=$3e;bp.httpOverHttps=X3e;bp.httpsOverHttps=Z3e;function K3e(t){var e=new $A(t);return e.request=EM.request,e}function $3e(t){var e=new $A(t);return e.request=EM.request,e.createSocket=AZ,e.defaultPort=443,e}function X3e(t){var e=new $A(t);return e.request=cZ.request,e}function Z3e(t){var e=new $A(t);return e.request=cZ.request,e.createSocket=AZ,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=uZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}j3e.inherits($A,z3e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=CM({request:e},i.options,uZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=CM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Cl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Cl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Cl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Cl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Cl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};$A.prototype.removeSocket=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(s){n.request.onSocket(s)})}};function AZ(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=CM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=J3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function uZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function CM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Cl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Cl=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)}:Cl=function(){};bp.debug=Cl});var IM=E((AVt,dZ)=>{dZ.exports=lZ()});var Ir=E((uVt,hZ)=>{hZ.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 Lt=E((lVt,UZ)=>{"use strict";var fZ=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[fZ]===!0}[fZ]=!0},gZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),yM=class extends yr{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[gZ]===!0}[gZ]=!0},pZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),BM=class extends yr{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[pZ]===!0}[pZ]=!0},mZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),bM=class extends yr{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[mZ]===!0}[mZ]=!0},EZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),QM=class extends yr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[EZ]===!0}[EZ]=!0},CZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),wM=class extends yr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function g6e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(Z4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function p6e(){return"allowed"}function m6e(){return"success"}function E6e(){return"success"}function C6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function I6e(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&&pL(t.origin)&&!pL(lI(t))&&(e=null);break;case"same-origin":j1(t,lI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function vp(t,e){return t}function y6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:vp(t.domainLookupStartTime,r),domainLookupEndTime:vp(t.domainLookupEndTime,r),connectionStartTime:vp(t.connectionStartTime,r),connectionEndTime:vp(t.connectionEndTime,r),secureConnectionStartTime:vp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function B6e(t){return vp(s6e.now(),t)}function b6e(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}}function Xee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Q6e(t){return{referrerPolicy:t.referrerPolicy}}function w6e(t){let e=t.referrerPolicy;kh(e);let r=null;if(t.referrer==="client"){let a=Wee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=gL(r),s=gL(r,!0);n.toString().length>4096&&(n=s);let i=j1(t,n),o=uI(n)&&!uI(t.url);switch(e){case"origin":return s??gL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=lI(t);return j1(n,a)?n:uI(n)&&!uI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function gL(t,e){return kh(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)}function uI(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"))}}function S6e(t,e){if(z1===void 0)return!0;let r=Zee(e);if(r==="no metadata"||r.length===0)return!0;let n=T6e(r),s=x6e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=z1.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),R6e(c,a))return!0}return!1}var N6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Zee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=N6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();zee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function T6e(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}function x6e(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}function R6e(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}function D6e(t){}function j1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function k6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function v6e(t){return t.controller.state==="aborted"}function _6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function F6e(t){return a6e[t.toLowerCase()]??t}function M6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return kh(typeof e=="string"),e}var L6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ete(t,e,r=0,n=1){class s{ Line truncated
`);function h5e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function f5e(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}function g5e(t,e){$1(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"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&X1(t,l5e,i)||i.position===t.length-4&&X1(t,d5e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=p5e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",h5e(u)||(u=""),h=new A5e([d],A,{type:u})):h=s5e(Buffer.from(d)),$1(dte(c)),$1(typeof h=="string"&&dte(h)||o5e(h)),s.push(a5e(c,h,A))}}function p5e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Fp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bL(o,!0,!0,a=>a===9||a===32),!i5e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Fp(a=>a===32||a===9,t,e),n5e(o)){case"content-disposition":{if(r=n=null,!X1(t,u5e,e)||(e.position+=17,r=gte(t,e),r===null))return"failure";if(X1(t,fte,e)){let a=e.position+fte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=gte(t,e),n===null))return"failure"}break}case"content-type":{let a=Fp(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),s=hte(a);break}case"content-transfer-encoding":{let a=Fp(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),i=hte(a);break}default:Fp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function gte(t,e){$1(t[e.position-1]===34);let r=Fp(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)}function Fp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function bL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function X1(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}pte.exports={multipartFormDataParser:g5e,validateBoundary:f5e}});var Up=E((MVt,Nte)=>{"use strict";var fI=lt(),{ReadableStreamFrom:m5e,isBlobLike:Ete,isReadableStreamLike:E5e,readableStreamClose:C5e,createDeferredPromise:I5e,fullyReadBody:y5e,extractMimeType:B5e,utf8DecodeBytes:yte}=wi(),{FormData:Cte}=hI(),{kState:Lp}=Il(),{webidl:b5e}=Jn(),{Blob:Q5e}=b("node:buffer"),QL=b("node:assert"),{isErrored:Bte,isDisturbed:w5e}=b("node:stream"),{isArrayBuffer:S5e}=b("node:util/types"),{serializeAMimeType:N5e}=Js(),{multipartFormDataParser:T5e}=mte(),wL;try{let t=b("node:crypto");wL=e=>t.randomInt(0,e)}catch{wL=t=>Math.floor(Math.random(t))}var Z1=new TextEncoder;function x5e(){}var bte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Qte;bte&&(Qte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!w5e(e)&&!Bte(e)&&e.cancel("Response object has been garbage collected").catch(x5e)}));function wte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ete(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?Z1.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>C5e(c))},start(){},type:"bytes"}),QL(E5e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(S5e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(fI.isFormDataLike(t)){let c=`----formdata-undici-0${`${wL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=W1.encode(c+`; name="${u(l(I))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=Z1.encode(A+`; name="${u(l(I))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=W1.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=Z1.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=W1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(jee(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(AI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:N6e(t)}if((typeof n=="string"||AI.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Zee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function O6e(t,e=!1){return t instanceof ReadableStream&&(cL(!AI.isDisturbed(t),"The body has already been consumed."),cL(!t.locked,"The stream is locked.")),rte(t,e)}function H6e(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function G6e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function q6e(t){return{blob(){return vp(this,r=>{let s=$ee(this);return s===null?s="":s&&(s=L6e(s)),new _6e([r],{type:s})},t)},arrayBuffer(){return vp(this,r=>new Uint8Array(r).buffer,t)},text(){return vp(this,Xee,t)},json(){return vp(this,V6e,t)},formData(){return vp(this,r=>{let s=$ee(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=U6e(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Kee;return i[_p]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Kee;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return vp(this,r=>new Uint8Array(r),t)}}}function Y6e(t){Object.assign(t.prototype,q6e(t))}async function vp(t,e,r){if(v6e.brandCheck(t,r),ste(t))throw new TypeError("Body is unusable: Body has already been read");G6e(t[_p]);let s=R6e(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[_p].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await D6e(t[_p].body,i,n),s.promise)}function ste(t){let e=t[_p].body;return e!=null&&(e.stream.locked||AI.isDisturbed(e.stream))}function V6e(t){return JSON.parse(Xee(t))}function $ee(t){let e=t[_p].headersList,r=k6e(e);return r==="failure"?null:r}nte.exports={extractBody:rte,safelyExtractBody:O6e,cloneBody:H6e,mixinBody:Y6e,streamRegistry:tte,hasFinalizationRegistry:ete,bodyUnusable:ste}});var gte=E((kYt,fte)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:ite}=Bp(),lL=WM(),{RequestContentLengthMismatchError:Dh,ResponseContentLengthMismatchError:W6e,RequestAbortedError:lte,HeadersTimeoutError:J6e,HeadersOverflowError:z6e,SocketError:X1,InformationalError:Mp,BodyTimeoutError:j6e,HTTPParserError:K6e,ResponseExceededMaxSizeError:$6e}=Lt(),{kUrl:dte,kReset:zn,kClient:gL,kParser:Fr,kBlocking:lI,kRunning:on,kPending:X6e,kSize:ote,kWriting:yl,kQueue:ya,kNoRef:cI,kKeepAliveDefaultTimeout:Z6e,kHostHeader:e5e,kPendingIdx:t5e,kRunningIdx:go,kError:po,kPipelining:K1,kSocket:Lp,kKeepAliveTimeoutValue:Z1,kMaxHeadersSize:dL,kKeepAliveMaxTimeout:r5e,kKeepAliveTimeoutThreshold:s5e,kHeadersTimeout:n5e,kBodyTimeout:i5e,kStrictContentLength:pL,kMaxRequests:ate,kCounter:o5e,kMaxResponseSize:a5e,kOnError:A5e,kResume:Il,kHTTPContext:hte}=Ir(),fA=tee(),c5e=Buffer.alloc(0),J1=Buffer[Symbol.species],z1=$e.addListener,u5e=$e.removeAllListeners,hL;async function l5e(){let t=process.env.JEST_WORKER_ID?jM():void 0,e;try{e=await WebAssembly.compile(nee())}catch{e=await WebAssembly.compile(t||jM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onStatus(new J1(gA.buffer,i,n))||0},wasm_on_message_begin:r=>(Ge(hs.ptr===r),hs.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onHeaderField(new J1(gA.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onHeaderValue(new J1(gA.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(Ge(hs.ptr===r),hs.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onBody(new J1(gA.buffer,i,n))||0},wasm_on_message_complete:r=>(Ge(hs.ptr===r),hs.onMessageComplete()||0)}})}var fL=null,mL=l5e();mL.catch();var hs=null,gA=null,j1=0,pA=null,d5e=0,uI=1,Up=2|uI,$1=4|uI,EL=8|d5e,CL=class{constructor(e,r,{exports:s}){Ge(Number.isFinite(e[dL])&&e[dL]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(fA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[e5e],i?p+=`connection: upgrade\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=Z1.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(Ete(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(fI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:m5e(t)}if((typeof s=="string"||fI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Bte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function R5e(t,e=!1){return t instanceof ReadableStream&&(QL(!fI.isDisturbed(t),"The body has already been consumed."),QL(!t.locked,"The stream is locked.")),wte(t,e)}function D5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function k5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function v5e(t){return{blob(){return Mp(this,r=>{let n=Ite(this);return n===null?n="":n&&(n=N5e(n)),new Q5e([r],{type:n})},t)},arrayBuffer(){return Mp(this,r=>new Uint8Array(r).buffer,t)},text(){return Mp(this,yte,t)},json(){return Mp(this,F5e,t)},formData(){return Mp(this,r=>{let n=Ite(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=T5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Cte;return i[Lp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Cte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Mp(this,r=>new Uint8Array(r),t)}}}function _5e(t){Object.assign(t.prototype,v5e(t))}async function Mp(t,e,r){if(b5e.brandCheck(t,r),Ste(t))throw new TypeError("Body is unusable: Body has already been read");k5e(t[Lp]);let n=I5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Lp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await y5e(t[Lp].body,i,s),n.promise)}function Ste(t){let e=t[Lp].body;return e!=null&&(e.stream.locked||fI.isDisturbed(e.stream))}function F5e(t){return JSON.parse(yte(t))}function Ite(t){let e=t[Lp].headersList,r=B5e(e);return r==="failure"?null:r}Nte.exports={extractBody:wte,safelyExtractBody:R5e,cloneBody:D5e,mixinBody:_5e,streamRegistry:Qte,hasFinalizationRegistry:bte,bodyUnusable:Ste}});var Ute=E((LVt,Lte)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:Tte}=wp(),SL=aL(),{RequestContentLengthMismatchError:vh,ResponseContentLengthMismatchError:M5e,RequestAbortedError:_te,HeadersTimeoutError:L5e,HeadersOverflowError:U5e,SocketError:iS,InformationalError:Pp,BodyTimeoutError:P5e,HTTPParserError:O5e,ResponseExceededMaxSizeError:H5e}=Lt(),{kUrl:Fte,kReset:zs,kClient:RL,kParser:Fr,kBlocking:mI,kRunning:os,kPending:G5e,kSize:xte,kWriting:Bl,kQueue:Ba,kNoRef:gI,kKeepAliveDefaultTimeout:q5e,kHostHeader:Y5e,kPendingIdx:V5e,kRunningIdx:po,kError:mo,kPipelining:nS,kSocket:Op,kKeepAliveTimeoutValue:oS,kMaxHeadersSize:NL,kKeepAliveMaxTimeout:W5e,kKeepAliveTimeoutThreshold:J5e,kHeadersTimeout:z5e,kBodyTimeout:j5e,kStrictContentLength:DL,kMaxRequests:Rte,kCounter:K5e,kMaxResponseSize:$5e,kOnError:X5e,kResume:yl,kHTTPContext:Mte}=Ir(),gc=Qee(),Z5e=Buffer.alloc(0),eS=Buffer[Symbol.species],tS=$e.addListener,eHe=$e.removeAllListeners,TL;async function tHe(){let t=process.env.JEST_WORKER_ID?uL():void 0,e;try{e=await WebAssembly.compile(Nee())}catch{e=await WebAssembly.compile(t||uL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-mc+pc.byteOffset;return fn.onStatus(new eS(pc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-mc+pc.byteOffset;return fn.onHeaderField(new eS(pc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-mc+pc.byteOffset;return fn.onHeaderValue(new eS(pc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-mc+pc.byteOffset;return fn.onBody(new eS(pc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var xL=null,kL=tHe();kL.catch();var fn=null,pc=null,rS=0,mc=null,rHe=0,pI=1,Hp=2|pI,sS=4|pI,vL=8|rHe,_L=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[NL])&&e[NL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(gc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Y5e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[K1]&&!h[zn]?p+=`connection: keep-alive\r
`:t[nS]&&!h[zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return ite.sendHeaders.hasSubscribers&&ite.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?cte(f,null,t,e,h,u,p,l):$e.isBuffer(A)?cte(f,A,t,e,h,u,p,l):$e.isBlobLike(A)?typeof A.stream=="function"?ute(f,A.stream(),t,e,h,u,p,l):E5e(f,A,t,e,h,u,p,l):$e.isStream(A)?m5e(f,A,t,e,h,u,p,l):$e.isIterable(A)?ute(f,A,t,e,h,u,p,l):Ge(!1),!0}function m5e(t,e,r,s,n,i,o,a){Ge(i!==0||r[on]===0,"stream body cannot be pipelined");let A=!1,c=new eS({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){$e.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new lte;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(n.destroyed||n[yl]&&r[on]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function cte(t,e,r,s,n,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return Tte.sendHeaders.hasSubscribers&&Tte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?kte(f,null,t,e,h,u,p,l):$e.isBuffer(c)?kte(f,c,t,e,h,u,p,l):$e.isBlobLike(c)?typeof c.stream=="function"?vte(f,c.stream(),t,e,h,u,p,l):cHe(f,c,t,e,h,u,p,l):$e.isStream(c)?aHe(f,c,t,e,h,u,p,l):$e.isIterable(c)?vte(f,c,t,e,h,u,p,l):Ge(!1),!0}function aHe(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"stream body cannot be pipelined");let c=!1,A=new aS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){$e.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new _te;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[Bl]&&r[os]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function kte(t,e,r,n,s,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[zn]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[zs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Il]()}catch(A){t(A)}}async function E5e(t,e,r,s,n,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Dh;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[yl]()}catch(c){t(c)}}async function cHe(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new vh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[zn]=!0),r[Il]()}catch(A){t(A)}}async function ute(t,e,r,s,n,i,o,a){Ge(i!==0||r[on]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),n[po]?h(n[po]):A=d});n.on("close",c).on("drain",c);let l=new eS({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[po])throw n[po];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var eS=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[yl]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[po])throw r[po];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[pL])throw new Dh;process.emitWarning(new Dh)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[zn]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[zs]=!0),r[yl]()}catch(c){t(c)}}async function vte(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[mo]?h(s[mo]):c=d});s.on("close",A).on("drain",A);let l=new aS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[mo])throw s[mo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var aS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Bl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[mo])throw r[mo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[DL])throw new vh;process.emitWarning(new vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zs]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Up&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yl]=!1,e[po])throw e[po];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Hp&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Bl]=!1,e[mo])throw e[mo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[pL])throw new Dh;process.emitWarning(new Dh)}e[Fr].timeout&&e[Fr].timeoutType===Up&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),s[Il]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[yl]=!1,e&&(Ge(s[on]<=1,"pipeline should only contain this request"),n(e))}};fte.exports=h5e});var bte=E((vYt,Bte)=>{"use strict";var mo=b("node:assert"),{pipeline:C5e}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:IL,RequestAbortedError:pte,SocketError:dI,InformationalError:yL}=Lt(),{kUrl:tS,kReset:sS,kClient:Pp,kRunning:nS,kPending:I5e,kQueue:Bl,kPendingIdx:BL,kRunningIdx:Ba,kError:Qa,kSocket:Ns,kStrictContentLength:y5e,kOnError:bL,kMaxConcurrentStreams:yte,kHTTP2Session:ba,kResume:bl,kSize:B5e,kHTTPContext:b5e}=Ir(),ru=Symbol("open streams"),mte,Ete=!1,rS;try{rS=b("node:http2")}catch{rS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Q5e,HTTP2_HEADER_METHOD:w5e,HTTP2_HEADER_PATH:S5e,HTTP2_HEADER_SCHEME:N5e,HTTP2_HEADER_CONTENT_LENGTH:T5e,HTTP2_HEADER_EXPECT:x5e,HTTP2_HEADER_STATUS:R5e}}=rS;function D5e(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function k5e(t,e){t[Ns]=e,Ete||(Ete=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rS.connect(t[tS],{createConnection:()=>e,peerMaxConcurrentStreams:t[yte]});r[ru]=0,r[Pp]=t,r[Ns]=e,mt.addListener(r,"error",_5e),mt.addListener(r,"frameError",F5e),mt.addListener(r,"end",M5e),mt.addListener(r,"goaway",L5e),mt.addListener(r,"close",function(){let{[Pp]:n}=this,{[Ns]:i}=n,o=this[Ns][Qa]||this[Qa]||new dI("closed",mt.getSocketInfo(i));if(n[ba]=null,n.destroyed){mo(n[I5e]===0);let a=n[Bl].splice(n[Ba]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(n,c,o)}}}),r.unref(),t[ba]=r,e[ba]=r,mt.addListener(e,"error",function(n){mo(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qa]=n,this[Pp][bL](n)}),mt.addListener(e,"end",function(){mt.destroy(this,new dI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let n=this[Qa]||new dI("closed",mt.getSocketInfo(this));t[Ns]=null,this[ba]!=null&&this[ba].destroy(n),t[BL]=t[Ba],mo(t[nS]===0),t.emit("disconnect",t[tS],[t],n),t[bl]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return P5e(t,...n)},resume(){v5e(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function v5e(t){let e=t[Ns];e?.destroyed===!1&&(t[B5e]===0&&t[yte]===0?(e.unref(),t[ba].unref()):(e.ref(),t[ba].ref()))}function _5e(t){mo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ns][Qa]=t,this[Pp][bL](t)}function F5e(t,e,r){if(r===0){let s=new yL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ns][Qa]=s,this[Pp][bL](s)}}function M5e(){let t=new dI("other side closed",mt.getSocketInfo(this[Ns]));this.destroy(t),mt.destroy(this[Ns],t)}function L5e(t){let e=this[Qa]||new dI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Pp];if(r[Ns]=null,r[b5e]=null,this[ba]!=null&&(this[ba].destroy(e),this[ba]=null),mt.destroy(this[Ns],e),r[Ba]<r[Bl].length){let s=r[Bl][r[Ba]];r[Bl][r[Ba]++]=null,mt.errorRequest(r,s,e),r[BL]=r[Ba]}mo(r[nS]===0),r.emit("disconnect",r[tS],[r],e),r[bl]()}function U5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function P5e(t,e){let r=t[ba],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<c.length;N+=2){let M=c[N+0],q=c[N+1];if(Array.isArray(q))for(let k=0;k<q.length;k++)l[M]?l[M]+=`,${q[k]}`:l[M]=q[k];else l[M]=q}let d,{hostname:h,port:f}=t[tS];l[Q5e]=i||`${h}${f?`:${f}`:""}`,l[w5e]=s;let p=N=>{e.aborted||e.completed||(N=N||new pte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[Bl][t[Ba]++]=null,t[bl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ru],t[Bl][t[Ba]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ru],t[Bl][t[Ba]++]=null}),d.once("close",()=>{r[ru]-=1,r[ru]===0&&r.unref()}),!0;l[S5e]=n,l[N5e]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){mte??=Fp().extractBody;let[N,M]=mte(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),U5e(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[y5e])return mt.errorRequest(t,e,new IL),!1;process.emitWarning(new IL)}m!=null&&(mo(u,"no body must not have content length"),l[T5e]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[x5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[lHe]=A??3e5,this[uHe]=n??3e5,this[dHe]=C??!0,this[hHe]=N,this[NL]=q,this[wl]=null,this[EHe]=P>-1?P:-1,this[IHe]=Z??100,this[zr]=null,this[wa]=[],this[nu]=0,this[Sa]=0,this[pI]=Ae=>xL(this,Ae),this[CHe]=Ae=>Fte(this,Ae)}get pipelining(){return this[AS]}set pipelining(e){this[AS]=e,this[pI](!0)}get[CI](){return this[wa].length-this[Sa]}get[EI](){return this[Sa]-this[nu]}get[mI](){return this[wa].length-this[nu]}get[sHe](){return!!this[zr]&&!this[Hp]&&!this[zr].destroyed}get[SL](){return!!(this[zr]?.busy(null)||this[mI]>=(_te(this)||1)||this[CI]>0)}[rHe](e){Mte(this),this.once("connect",e)}[mHe](e,r){let s=e.origin||this[EA].origin,n=new K5e(s,e,r);return this[wa].push(n),this[vh]||(kh.bodyLength(n.body)==null&&kh.isIterable(n.body)?(this[vh]=1,queueMicrotask(()=>xL(this))):this[pI](!0)),this[vh]&&this[Sl]!==2&&this[SL]&&(this[Sl]=2),this[Sl]<2}async[gHe](){return new Promise(e=>{this[mI]?this[wl]=e:e(null)})}async[pHe](e){return new Promise(r=>{let s=this[wa].splice(this[Sa]);for(let i=0;i<s.length;i++){let o=s[i];kh.errorRequest(this,o,e)}let n=()=>{this[wl]&&(this[wl](),this[wl]=null),r(null)};this[zr]?(this[zr].destroy(e,n),this[zr]=null):queueMicrotask(n),this[pI]()})}},bHe=aS();function Fte(t,e){if(t[EI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[Sa]===t[nu]);let r=t[wa].splice(t[nu]);for(let s=0;s<r.length;s++){let n=r[s];kh.errorRequest(t,n,e)}su(t[mI]===0)}}async function Mte(t){su(!t[Hp]),su(!t[zr]);let{host:e,hostname:r,protocol:s,port:n}=t[EA];if(r[0]==="["){let i=r.indexOf("]");su(i!==-1);let o=r.substring(1,i);su(vte.isIP(o)),r=o}t[Hp]=!0,Op.beforeConnect.hasSubscribers&&Op.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[zr]?.version,servername:t[Ql],localAddress:t[gI]},connector:t[fI]});try{let i=await new Promise((o,a)=>{t[fI]({host:e,hostname:r,protocol:s,port:n,servername:t[Ql],localAddress:t[gI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){kh.destroy(i.on("error",Dte),new Z5e);return}su(i);try{t[zr]=i.alpnProtocol==="h2"?await BHe(t,i):await yHe(t,i)}catch(o){throw i.destroy().on("error",Dte),o}t[Hp]=!1,i[fHe]=0,i[NL]=t[NL],i[tHe]=t,i[iHe]=null,Op.connected.hasSubscribers&&Op.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[zr]?.version,servername:t[Ql],localAddress:t[gI]},connector:t[fI],socket:i}),t.emit("connect",t[EA],[t])}catch(i){if(t.destroyed)return;if(t[Hp]=!1,Op.connectError.hasSubscribers&&Op.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[zr]?.version,servername:t[Ql],localAddress:t[gI]},connector:t[fI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[EI]===0);t[CI]>0&&t[wa][t[Sa]].servername===t[Ql];){let o=t[wa][t[Sa]++];kh.errorRequest(t,o,i)}else Fte(t,i);t.emit("connectionError",t[EA],[t],i)}t[pI]()}function kte(t){t[Sl]=0,t.emit("drain",t[EA],[t])}function xL(t,e){t[vh]!==2&&(t[vh]=2,QHe(t,e),t[vh]=0,t[nu]>256&&(t[wa].splice(0,t[nu]),t[Sa]-=t[nu],t[nu]=0))}function QHe(t,e){for(;;){if(t.destroyed){su(t[CI]===0);return}if(t[wl]&&!t[mI]){t[wl](),t[wl]=null;return}if(t[zr]&&t[zr].resume(),t[SL])t[Sl]=2;else if(t[Sl]===2){e?(t[Sl]=1,queueMicrotask(()=>kte(t))):kte(t);continue}if(t[CI]===0||t[EI]>=(_te(t)||1))return;let r=t[wa][t[Sa]];if(t[EA].protocol==="https:"&&t[Ql]!==r.servername){if(t[EI]>0)return;t[Ql]=r.servername,t[zr]?.destroy(new X5e("servername changed"),()=>{t[zr]=null,xL(t)})}if(t[Hp])return;if(!t[zr]){Mte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Sa]++:t[wa].splice(t[Sa],1)}}Lte.exports=TL});var RL=E((UYt,Ute)=>{"use strict";var cS=class{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)}};Ute.exports=class{constructor(){this.head=this.tail=new cS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ote=E((PYt,Pte)=>{var{kFree:wHe,kConnected:SHe,kPending:NHe,kQueued:THe,kRunning:xHe,kSize:RHe}=Ir(),_h=Symbol("pool"),DL=class{constructor(e){this[_h]=e}get connected(){return this[_h][SHe]}get free(){return this[_h][wHe]}get pending(){return this[_h][NHe]}get queued(){return this[_h][THe]}get running(){return this[_h][xHe]}get size(){return this[_h][RHe]}};Pte.exports=DL});var LL=E((OYt,Kte)=>{"use strict";var DHe=Sp(),kHe=RL(),{kConnected:kL,kSize:Hte,kRunning:Gte,kPending:qte,kQueued:II,kBusy:vHe,kFree:_He,kUrl:FHe,kClose:MHe,kDestroy:LHe,kDispatch:UHe}=Ir(),PHe=Ote(),jn=Symbol("clients"),bn=Symbol("needDrain"),yI=Symbol("queue"),vL=Symbol("closed resolve"),_L=Symbol("onDrain"),Yte=Symbol("onConnect"),Vte=Symbol("onDisconnect"),Wte=Symbol("onCo Line truncated
${s.count} ${s.noun} ${s.is} pending:
`,"latin1"),r!==null&&s!==r){if(n[DL])throw new vh;process.emitWarning(new vh)}e[Fr].timeout&&e[Fr].timeoutType===Hp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[yl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Bl]=!1,e&&(Ge(n[os]<=1,"pipeline should only contain this request"),s(e))}};Lte.exports=nHe});var Wte=E((UVt,Vte)=>{"use strict";var Eo=b("node:assert"),{pipeline:AHe}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:FL,RequestAbortedError:Pte,SocketError:EI,InformationalError:ML}=Lt(),{kUrl:cS,kReset:uS,kClient:Gp,kRunning:lS,kPending:uHe,kQueue:bl,kPendingIdx:LL,kRunningIdx:ba,kError:wa,kSocket:Tn,kStrictContentLength:lHe,kOnError:UL,kMaxConcurrentStreams:Yte,kHTTP2Session:Qa,kResume:Ql,kSize:dHe,kHTTPContext:hHe}=Ir(),nu=Symbol("open streams"),Ote,Hte=!1,AS;try{AS=b("node:http2")}catch{AS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fHe,HTTP2_HEADER_METHOD:gHe,HTTP2_HEADER_PATH:pHe,HTTP2_HEADER_SCHEME:mHe,HTTP2_HEADER_CONTENT_LENGTH:EHe,HTTP2_HEADER_EXPECT:CHe,HTTP2_HEADER_STATUS:IHe}}=AS;function yHe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function BHe(t,e){t[Tn]=e,Hte||(Hte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=AS.connect(t[cS],{createConnection:()=>e,peerMaxConcurrentStreams:t[Yte]});r[nu]=0,r[Gp]=t,r[Tn]=e,mt.addListener(r,"error",QHe),mt.addListener(r,"frameError",wHe),mt.addListener(r,"end",SHe),mt.addListener(r,"goaway",NHe),mt.addListener(r,"close",function(){let{[Gp]:s}=this,{[Tn]:i}=s,o=this[Tn][wa]||this[wa]||new EI("closed",mt.getSocketInfo(i));if(s[Qa]=null,s.destroyed){Eo(s[uHe]===0);let a=s[bl].splice(s[ba]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Qa]=r,e[Qa]=r,mt.addListener(e,"error",function(s){Eo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wa]=s,this[Gp][UL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new EI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[wa]||new EI("closed",mt.getSocketInfo(this));t[Tn]=null,this[Qa]!=null&&this[Qa].destroy(s),t[LL]=t[ba],Eo(t[lS]===0),t.emit("disconnect",t[cS],[t],s),t[Ql]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return xHe(t,...s)},resume(){bHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function bHe(t){let e=t[Tn];e?.destroyed===!1&&(t[dHe]===0&&t[Yte]===0?(e.unref(),t[Qa].unref()):(e.ref(),t[Qa].ref()))}function QHe(t){Eo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn][wa]=t,this[Gp][UL](t)}function wHe(t,e,r){if(r===0){let n=new ML(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tn][wa]=n,this[Gp][UL](n)}}function SHe(){let t=new EI("other side closed",mt.getSocketInfo(this[Tn]));this.destroy(t),mt.destroy(this[Tn],t)}function NHe(t){let e=this[wa]||new EI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Gp];if(r[Tn]=null,r[hHe]=null,this[Qa]!=null&&(this[Qa].destroy(e),this[Qa]=null),mt.destroy(this[Tn],e),r[ba]<r[bl].length){let n=r[bl][r[ba]];r[bl][r[ba]++]=null,mt.errorRequest(r,n,e),r[LL]=r[ba]}Eo(r[lS]===0),r.emit("disconnect",r[cS],[r],e),r[Ql]()}function THe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function xHe(t,e){let r=t[Qa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[cS];l[fHe]=i||`${h}${f?`:${f}`:""}`,l[gHe]=n;let p=N=>{e.aborted||e.completed||(N=N||new Pte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[bl][t[ba]++]=null,t[Ql]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[nu],t[bl][t[ba]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[nu],t[bl][t[ba]++]=null}),d.once("close",()=>{r[nu]-=1,r[nu]===0&&r.unref()}),!0;l[pHe]=s,l[mHe]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){Ote??=Up().extractBody;let[N,M]=Ote(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),THe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[lHe])return mt.errorRequest(t,e,new FL),!1;process.emitWarning(new FL)}m!=null&&(Eo(u,"no body must not have content length"),l[EHe]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[CHe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[t9e]=c??3e5,this[e9e]=s??3e5,this[r9e]=C??!0,this[n9e]=N,this[GL]=O,this[Sl]=null,this[c9e]=P>-1?P:-1,this[u9e]=Z??100,this[zr]=null,this[Sa]=[],this[iu]=0,this[Na]=0,this[BI]=ce=>YL(this,ce),this[A9e]=ce=>sre(this,ce)}get pipelining(){return this[gS]}set pipelining(e){this[gS]=e,this[BI](!0)}get[wI](){return this[Sa].length-this[Na]}get[QI](){return this[Na]-this[iu]}get[bI](){return this[Sa].length-this[iu]}get[JHe](){return!!this[zr]&&!this[Yp]&&!this[zr].destroyed}get[HL](){return!!(this[zr]?.busy(null)||this[bI]>=(nre(this)||1)||this[wI]>0)}[WHe](e){ire(this),this.once("connect",e)}[a9e](e,r){let n=e.origin||this[Cc].origin,s=new OHe(n,e,r);return this[Sa].push(s),this[Fh]||(_h.bodyLength(s.body)==null&&_h.isIterable(s.body)?(this[Fh]=1,queueMicrotask(()=>YL(this))):this[BI](!0)),this[Fh]&&this[Nl]!==2&&this[HL]&&(this[Nl]=2),this[Nl]<2}async[i9e](){return new Promise(e=>{this[bI]?this[Sl]=e:e(null)})}async[o9e](e){return new Promise(r=>{let n=this[Sa].splice(this[Na]);for(let i=0;i<n.length;i++){let o=n[i];_h.errorRequest(this,o,e)}let s=()=>{this[Sl]&&(this[Sl](),this[Sl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[BI]()})}},h9e=fS();function sre(t,e){if(t[QI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[Na]===t[iu]);let r=t[Sa].splice(t[iu]);for(let n=0;n<r.length;n++){let s=r[n];_h.errorRequest(t,s,e)}su(t[bI]===0)}}async function ire(t){su(!t[Yp]),su(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[Cc];if(r[0]==="["){let i=r.indexOf("]");su(i!==-1);let o=r.substring(1,i);su(rre.isIP(o)),r=o}t[Yp]=!0,qp.beforeConnect.hasSubscribers&&qp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[wl],localAddress:t[yI]},connector:t[II]});try{let i=await new Promise((o,a)=>{t[II]({host:e,hostname:r,protocol:n,port:s,servername:t[wl],localAddress:t[yI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){_h.destroy(i.on("error",ere),new qHe);return}su(i);try{t[zr]=i.alpnProtocol==="h2"?await d9e(t,i):await l9e(t,i)}catch(o){throw i.destroy().on("error",ere),o}t[Yp]=!1,i[s9e]=0,i[GL]=t[GL],i[VHe]=t,i[jHe]=null,qp.connected.hasSubscribers&&qp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[wl],localAddress:t[yI]},connector:t[II],socket:i}),t.emit("connect",t[Cc],[t])}catch(i){if(t.destroyed)return;if(t[Yp]=!1,qp.connectError.hasSubscribers&&qp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[wl],localAddress:t[yI]},connector:t[II],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[QI]===0);t[wI]>0&&t[Sa][t[Na]].servername===t[wl];){let o=t[Sa][t[Na]++];_h.errorRequest(t,o,i)}else sre(t,i);t.emit("connectionError",t[Cc],[t],i)}t[BI]()}function tre(t){t[Nl]=0,t.emit("drain",t[Cc],[t])}function YL(t,e){t[Fh]!==2&&(t[Fh]=2,f9e(t,e),t[Fh]=0,t[iu]>256&&(t[Sa].splice(0,t[iu]),t[Na]-=t[iu],t[iu]=0))}function f9e(t,e){for(;;){if(t.destroyed){su(t[wI]===0);return}if(t[Sl]&&!t[bI]){t[Sl](),t[Sl]=null;return}if(t[zr]&&t[zr].resume(),t[HL])t[Nl]=2;else if(t[Nl]===2){e?(t[Nl]=1,queueMicrotask(()=>tre(t))):tre(t);continue}if(t[wI]===0||t[QI]>=(nre(t)||1))return;let r=t[Sa][t[Na]];if(t[Cc].protocol==="https:"&&t[wl]!==r.servername){if(t[QI]>0)return;t[wl]=r.servername,t[zr]?.destroy(new GHe("servername changed"),()=>{t[zr]=null,YL(t)})}if(t[Yp])return;if(!t[zr]){ire(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Na]++:t[Sa].splice(t[Na],1)}}ore.exports=qL});var VL=E((qVt,are)=>{"use strict";var pS=class{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)}};are.exports=class{constructor(){this.head=this.tail=new pS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new pS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Are=E((YVt,cre)=>{var{kFree:g9e,kConnected:p9e,kPending:m9e,kQueued:E9e,kRunning:C9e,kSize:I9e}=Ir(),Mh=Symbol("pool"),WL=class{constructor(e){this[Mh]=e}get connected(){return this[Mh][p9e]}get free(){return this[Mh][g9e]}get pending(){return this[Mh][m9e]}get queued(){return this[Mh][E9e]}get running(){return this[Mh][C9e]}get size(){return this[Mh][I9e]}};cre.exports=WL});var XL=E((VVt,Cre)=>{"use strict";var y9e=xp(),B9e=VL(),{kConnected:JL,kSize:ure,kRunning:lre,kPending:dre,kQueued:SI,kBusy:b9e,kFree:Q9e,kUrl:w9e,kClose:S9e,kDestroy:N9e,kDispatch:T9e}=Ir(),x9e=Are(),js=Symbol("clients"),bs=Symbol("needDrain"),NI=Symbol("queue"),zL=Symbol("closed resolve"),jL=Symbol("onDrain"),hre=Symbol("onConnect"),fre=Symbol("onDisconnect"),gre=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};rne.exports=LU});var NS=E((fVt,ane)=>{"use strict";var nne=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lqe}=Lt(),dqe=Yp();one()===void 0&&ine(new dqe);function ine(t){if(!t||typeof t.dispatch!="function")throw new lqe("Argument agent must implement Agent");Object.defineProperty(globalThis,nne,{value:t,writable:!0,enumerable:!1,configurable:!1})}function one(){return globalThis[nne]}ane.exports={setGlobalDispatcher:ine,getGlobalDispatcher:one}});var TS=E((pVt,Ane)=>{"use strict";Ane.exports=class{#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 une=E((mVt,cne)=>{"use strict";var hqe=oS();cne.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new hqe(r,o,n,i);return r(a,A)}}});var dne=E((EVt,lne)=>{"use strict";var fqe=mS();lne.exports=t=>e=>function(s,n){return e(s,new fqe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var fne=E((CVt,hne)=>{"use strict";var gqe=lt(),{InvalidArgumentError:pqe,RequestAbortedError:mqe}=Lt(),Eqe=TS(),UU=class extends Eqe{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new pqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=gqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new mqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Cqe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new UU({maxSize:i},n);return e(s,o)}}hne.exports=Cqe});var mne=E((IVt,pne)=>{"use strict";var{isIP:Iqe}=b("node:net"),{lookup:yqe}=b("node:dns"),Bqe=TS(),{InvalidArgumentError:em,InformationalError:bqe}=Lt(),gne=Math.pow(2,31)-1,PU=class{#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,(o,a)=>{if(o||a==null||a.length===0){s(o??new bqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){yqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===gne?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===gne?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,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 o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new OU(this,e,r)}},OU=class extends Bqe{#e=null;#t=null;#s=null;#r=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r) Line truncated
${i}`;break;case"retry":Koe(i)&&(r[n]=i);break;case"id":$oe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Koe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&$oe(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,event:void 0,id:void 0,retry:void 0}}};Xoe.exports={EventSourceStream:wP}});var aae=E(($Vt,oae)=>{"use strict";var{pipeline:vWe}=b("node:stream"),{fetching:_We}=_I(),{makeRequest:FWe}=sm(),{webidl:cu}=Ws(),{EventSourceStream:MWe}=Zoe(),{parseMIMEType:LWe}=Jn(),{createFastMessageEvent:UWe}=cm(),{isNetworkError:eae}=kI(),{delay:PWe}=bP(),{kEnumerableProperty:jh}=lt(),{environmentSettingsObject:tae}=Qi(),rae=!1,sae=3e3,JI=0,nae=1,zI=2,OWe="anonymous",HWe="use-credentials",fm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=JI;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),cu.util.markAsUncloneable(this);let s="EventSource constructor";cu.argumentLengthCheck(arguments,1,s),rae||(rae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=cu.converters.USVString(e,s,"url"),r=cu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:sae};let n=tae,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=OWe;r.withCredentials&&(o=HWe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=tae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=FWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===zI)return;this.#r=JI;let e={request:this.#n,dispatcher:this.#a},r=s=>{eae(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(eae(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?LWe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=nae,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new MWe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(UWe(A.type,A.options))}});vWe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=_We(e)}async#c(){this.#r!==zI&&(this.#r=JI,this.dispatchEvent(new Event("error")),await PWe(this.#o.reconnectionTime),this.#r===JI&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){cu.brandCheck(this,t),this.#r!==zI&&(this.#r=zI,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},iae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:JI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:nae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zI,writable:!1}};Object.defineProperties(fm,iae);Object.defineProperties(fm.prototype,iae);Object.defineProperties(fm.prototype,{close:jh,onerror:jh,onmessage:jh,onopen:jh,readyState:jh,url:jh,withCredentials:jh});cu.converters.EventSourceInitDict=cu.dictionaryConverter([{key:"withCredentials",converter:cu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:cu.converters.any}]);oae.exports={EventSource:fm,defaultReconnectionTime:sae}});var pN=E((XVt,Ye)=>{"use strict";var GWe=Gp(),Aae=XC(),qWe=qp(),YWe=ire(),VWe=Yp(),WWe=KL(),JWe=xre(),zWe=Fre(),cae=Lt(),gN=lt(),{InvalidArgumentError:fN}=cae,gm=yse(),jWe=eI(),KWe=DU(),$We=sne(),XWe=_U(),ZWe=EU(),eJe=mS(),{getGlobalDispatcher:uae,setGlobalDispatcher:tJe}=NS(),rJe=TS(),sJe=oS(),nJe=aS();Object.assign(Aae.prototype,gm);Ye.exports.Dispatcher=Aae;Ye.exports.Client=GWe;Ye.exports.Pool=qWe;Ye.exports.BalancedPool=YWe;Ye.exports.Agent=VWe;Ye.exports.ProxyAgent=WWe;Ye.exports.EnvHttpProxyAgent=JWe;Ye.exports Line truncated
%s`,M,M,C,s);var q=C.type==="*"?yO:C.type==="?"?IO:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+q+"\\("+M}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=s.slice(0,D.reStart),Z=s.slice(D.reStart,D.reEnd-8),ee=s.slice(D.reEnd-8,D.reEnd),Ae=s.slice(D.reEnd);ee+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==UN&&(Ke="$");var nt=z+Z+Ae+Ke+ee;s=nt}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=d+s),e===UN)return[s,n];if(!n)return Zje(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+s+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=s,vt}vi.makeRe=function(t,e){return new os(t,e||{}).makeRe()};os.prototype.makeRe=Xje;function Xje(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?yO:e.dot?Yje:Vje,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===tf?r:typeof o=="string"?eKe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}vi.match=function(t,e,r){r=r||{};var s=new os(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};os.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;iy.sep!=="/"&&(e=e.split(iy.sep).join("/")),e=e.split(KAe),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};os.prototype.matchOne=function(t,e,r){return e.indexOf(tf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};os.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===tf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===tf){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<c.length;N++){var M=c[N];M===tf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var q=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[q--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};os.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};os.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===tf)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function Zje(t){return t.replace(/\\(.)/g,"$1")}function eKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var bm=E((JWt,sce)=>{"use strict";var AKe="2.0.0",cKe=Number.MAX_SAFE_INTEGER||9007199254740991,uKe=16,lKe=250,dKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:uKe,MAX_SAFE_BUILD_LENGTH:lKe,MAX_SAFE_INTEGER:cKe,RELEASE_TYPES:dKe,SEMVER_SPEC_VERSION:AKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var cy=E((zWt,nce)=>{"use strict";var hKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};nce.exports=hKe});var Qm=E((SA,ice)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:bO,MAX_SAFE_BUILD_LENGTH:fKe,MAX_LENGTH:gKe}=bm(),pKe=cy();SA=ice.exports={};var mKe=SA.re=[],EKe=SA.safeRe=[],me=SA.src=[],CKe=SA.safeSrc=[],Ee=SA.t={},IKe=0,QO="[a-zA-Z0-9-]",yKe=[["\\s",1],["\\d",gKe],[QO,fKe]],BKe=t=>{for(let[e,r]of yKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};wse.exports=XU});var _S=E((C7t,Rse)=>{"use strict";var Nse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:tYe}=Lt(),rYe=Jp();xse()===void 0&&Tse(new rYe);function Tse(t){if(!t||typeof t.dispatch!="function")throw new tYe("Argument agent must implement Agent");Object.defineProperty(globalThis,Nse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function xse(){return globalThis[Nse]}Rse.exports={setGlobalDispatcher:Tse,getGlobalDispatcher:xse}});var FS=E((y7t,Dse)=>{"use strict";Dse.exports=class{#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 vse=E((B7t,kse)=>{"use strict";var nYe=hS();kse.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new nYe(r,o,s,i);return r(a,c)}}});var Fse=E((b7t,_se)=>{"use strict";var sYe=QS();_se.exports=t=>e=>function(n,s){return e(n,new sYe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Lse=E((Q7t,Mse)=>{"use strict";var iYe=lt(),{InvalidArgumentError:oYe,RequestAbortedError:aYe}=Lt(),cYe=FS(),ZU=class extends cYe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new oYe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=iYe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new aYe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function AYe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new ZU({maxSize:i},s);return e(n,o)}}Mse.exports=AYe});var Ose=E((w7t,Pse)=>{"use strict";var{isIP:uYe}=b("node:net"),{lookup:lYe}=b("node:dns"),dYe=FS(),{InvalidArgumentError:nm,InformationalError:hYe}=Lt(),Use=Math.pow(2,31)-1,eP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(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(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new hYe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){lYe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Use?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Use?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new tP(this,e,r)}},tP=class extends dYe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Cae(i)&&(r[s]=i);break;case"id":Iae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Cae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Iae(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,event:void 0,id:void 0,retry:void 0}}};yae.exports={EventSourceStream:OP}});var Rae=E((rWt,xae)=>{"use strict";var{pipeline:bJe}=b("node:stream"),{fetching:QJe}=OI(),{makeRequest:wJe}=om(),{webidl:uu}=Jn(),{EventSourceStream:SJe}=Bae(),{parseMIMEType:NJe}=Js(),{createFastMessageEvent:TJe}=dm(),{isNetworkError:bae}=UI(),{delay:xJe}=UP(),{kEnumerableProperty:$h}=lt(),{environmentSettingsObject:Qae}=wi(),wae=!1,Sae=3e3,ZI=0,Nae=1,ey=2,RJe="anonymous",DJe="use-credentials",mm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=ZI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),uu.util.markAsUncloneable(this);let n="EventSource constructor";uu.argumentLengthCheck(arguments,1,n),wae||(wae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=uu.converters.USVString(e,n,"url"),r=uu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Sae};let s=Qae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=RJe;r.withCredentials&&(o=DJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Qae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=wJe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===ey)return;this.#r=ZI;let e={request:this.#s,dispatcher:this.#a},r=n=>{bae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(bae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?NJe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Nae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new SJe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(TJe(c.type,c.options))}});bJe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=QJe(e)}async#A(){this.#r!==ey&&(this.#r=ZI,this.dispatchEvent(new Event("error")),await xJe(this.#o.reconnectionTime),this.#r===ZI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){uu.brandCheck(this,t),this.#r!==ey&&(this.#r=ey,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Tae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ZI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Nae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ey,writable:!1}};Object.defineProperties(mm,Tae);Object.defineProperties(mm.prototype,Tae);Object.defineProperties(mm.prototype,{close:$h,onerror:$h,onmessage:$h,onopen:$h,readyState:$h,url:$h,withCredentials:$h});uu.converters.EventSourceInitDict=uu.dictionaryConverter([{key:"withCredentials",converter:uu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:uu.converters.any}]);xae.exports={EventSource:mm,defaultReconnectionTime:Sae}});var bN=E((nWt,Ye)=>{"use strict";var kJe=Vp(),Dae=sI(),vJe=Wp(),_Je=Tre(),FJe=Jp(),MJe=lU(),LJe=Xre(),UJe=sne(),kae=Lt(),BN=lt(),{InvalidArgumentError:yN}=kae,Em=Yne(),PJe=oI(),OJe=WU(),HJe=Sse(),GJe=jU(),qJe=vU(),YJe=QS(),{getGlobalDispatcher:vae,setGlobalDispatcher:VJe}=_S(),WJe=FS(),JJe=hS(),zJe=fS();Object.assign(Dae.prototype,Em);Ye.exports.Dispatcher=Dae;Ye.exports.Client=kJe;Ye.exports.Pool=vJe;Ye.exports.BalancedPool=_Je;Ye.exports.Agent=FJe;Ye.exports.ProxyAgent=MJe;Ye.exports.EnvHttpProxyAgent=LJe;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?MO:C.type==="?"?FO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),ee=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);ee+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var Ke="";ce===""&&e!==VN&&(Ke="$");var st=z+Z+ce+Ke+ee;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===VN)return[n,s];if(!s)return qKe(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}_i.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=GKe;function GKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?MO:e.dot?_Ke:FKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===nf?r:typeof o=="string"?YKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}_i.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;ly.sep!=="/"&&(e=e.split(ly.sep).join("/")),e=e.split(CAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(nf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===nf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===nf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===nf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===nf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function qKe(t){return t.replace(/\\(.)/g,"$1")}function YKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Sm=E((XJt,SAe)=>{"use strict";var XKe="2.0.0",ZKe=Number.MAX_SAFE_INTEGER||9007199254740991,e$e=16,t$e=250,r$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];SAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:e$e,MAX_SAFE_BUILD_LENGTH:t$e,MAX_SAFE_INTEGER:ZKe,RELEASE_TYPES:r$e,SEMVER_SPEC_VERSION:XKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gy=E((ZJt,NAe)=>{"use strict";var n$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};NAe.exports=n$e});var Nm=E((Nc,TAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:UO,MAX_SAFE_BUILD_LENGTH:s$e,MAX_LENGTH:i$e}=Sm(),o$e=gy();Nc=TAe.exports={};var a$e=Nc.re=[],c$e=Nc.safeRe=[],me=Nc.src=[],A$e=Nc.safeSrc=[],Ee=Nc.t={},u$e=0,PO="[a-zA-Z0-9-]",l$e=[["\\s",1],["\\d",i$e],[PO,s$e]],d$e=t=>{for(let[e,r]of l$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(n+"m+"+BT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=cet()+e+" "+t[0]}function cet(){return xs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function uet(...t){return process.stderr.write(yT.formatWithOptions(xs.inspectOpts,...t)+`
`)}function det(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function het(){return process.env.DEBUG}function fet(t){t.inspectOpts={};let e=Object.keys(xs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xs.inspectOpts[e[r]]}BT.exports=h3()(xs);var{formatters:_le}=BT.exports;_le.o=function(t){return this.inspectOpts.colors=this.useColors,yT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};_le.O=function(t){return this.inspectOpts.colors=this.useColors,yT.inspect(t,this.inspectOpts)}});var bT=E((Qjt,p3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?p3.exports=Tle():p3.exports=Fle()});var Ule=E(ri=>{"use strict";var get=ri&&ri.__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:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pet=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Mle=ri&&ri.__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)&&get(e,t,r);return pet(e,t),e};Object.defineProperty(ri,"__esModule",{value:!0});ri.req=ri.json=ri.toBuffer=void 0;var met=Mle(b("http")),Eet=Mle(b("https"));async function Lle(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}ri.toBuffer=Lle;async function Cet(t){let r=(await Lle(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}ri.json=Cet;function Iet(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Eet:met).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}ri.req=Iet});var E3=E(Mi=>{"use strict";var Ole=Mi&&Mi.__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:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),yet=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hle=Mi&&Mi.__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)&&Ole(e,t,r);return yet(e,t),e},Bet=Mi&&Mi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ole(e,t,r)};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Agent=void 0;var bet=Hle(b("net")),Ple=Hle(b("http")),Qet=b("https");Bet(Ule(),Mi);var xA=Symbol("AgentBaseInternalState"),m3=class extends Ple.Agent{constructor(e){super(e),this[xA]={}}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 bet.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)?Qet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof Ple.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[xA].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[xA].currentSocket;if(this[xA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[xA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[xA]&&(this[xA].defaultPort=e)}get protocol(){return this[xA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[xA]&&(this[xA].protocol=e)}};Mi.Agent=m3});var Gle=E(vm=>{"use strict";var wet=vm&&vm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vm,"__esModule",{value:!0});vm.parseProxyResponse=void 0;var Net=wet(bT()),QT=(0,Net.default)("https-proxy-agent:parse-proxy-response");function Tet(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),QT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),QT("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
`+i),t.push(s+"m+"+xT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ttt()+e+" "+t[0]}function ttt(){return Rn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function rtt(...t){return process.stderr.write(TT.formatWithOptions(Rn.inspectOpts,...t)+`
`)}function ntt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function stt(){return process.env.DEBUG}function itt(t){t.inspectOpts={};let e=Object.keys(Rn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Rn.inspectOpts[e[r]]}xT.exports=T3()(Rn);var{formatters:nde}=xT.exports;nde.o=function(t){return this.inspectOpts.colors=this.useColors,TT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};nde.O=function(t){return this.inspectOpts.colors=this.useColors,TT.inspect(t,this.inspectOpts)}});var RT=E((xKt,D3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?D3.exports=$le():D3.exports=sde()});var ade=E(ri=>{"use strict";var ott=ri&&ri.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),att=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ide=ri&&ri.__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)&&ott(e,t,r);return att(e,t),e};Object.defineProperty(ri,"__esModule",{value:!0});ri.req=ri.json=ri.toBuffer=void 0;var ctt=ide(b("http")),Att=ide(b("https"));async function ode(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ri.toBuffer=ode;async function utt(t){let r=(await ode(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ri.json=utt;function ltt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Att:ctt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ri.req=ltt});var v3=E(Li=>{"use strict";var Ade=Li&&Li.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dtt=Li&&Li.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ude=Li&&Li.__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 dtt(e,t),e},htt=Li&&Li.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ade(e,t,r)};Object.defineProperty(Li,"__esModule",{value:!0});Li.Agent=void 0;var ftt=ude(b("net")),cde=ude(b("http")),gtt=b("https");htt(ade(),Li);var Rc=Symbol("AgentBaseInternalState"),k3=class extends cde.Agent{constructor(e){super(e),this[Rc]={}}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 ftt.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],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?gtt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof cde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Rc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Rc].currentSocket;if(this[Rc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Rc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Rc]&&(this[Rc].defaultPort=e)}get protocol(){return this[Rc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Rc]&&(this[Rc].protocol=e)}};Li.Agent=k3});var lde=E(Mm=>{"use strict";var ptt=Mm&&Mm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.parseProxyResponse=void 0;var mtt=ptt(RT()),DT=(0,mtt.default)("https-proxy-agent:parse-proxy-response");function Ett(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),DT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),DT("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){QT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),q=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,q]:Array.isArray(k)?k.push(q):C[M]=q}QT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}vm.parseProxyResponse=Tet});var zle=E(No=>{"use strict";var xet=No&&No.__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:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Ret=No&&No.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wle=No&&No.__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)&&xet(e,t,r);return Ret(e,t),e},Jle=No&&No.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(No,"__esModule",{value:!0});No.HttpsProxyAgent=void 0;var wT=Wle(b("net")),qle=Wle(b("tls")),Det=Jle(b("assert")),ket=Jle(bT()),vet=E3(),_et=b("url"),Fet=Gle(),by=(0,ket.default)("https-proxy-agent"),Yle=t=>t.servername===void 0&&t.host&&!wT.isIP(t.host)?{...t,servername:t.host}:t,ST=class extends vet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new _et.URL(e):e,this.proxyHeaders=r?.headers??{},by("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?Vle(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:"?(by("Creating `tls.Socket`: %o",this.connectOpts),n=qle.connect(Yle(this.connectOpts))):(by("Creating `net.Socket`: %o",this.connectOpts),n=wT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=wT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,Fet.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Met),r.secureEndpoint?(by("Upgrading socket connection to TLS"),qle.connect({...Vle(Yle(r),"host","path","port"),socket:n})):n;n.destroy();let l=new wT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{by("Replaying proxy buffer for failed request"),(0,Det.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};ST.protocols=["http","https"];No.HttpsProxyAgent=ST;function Met(t){t.resume()}function Vle(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var $le=E(To=>{"use strict";var Let=To&&To.__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:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Uet=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kle=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)&&Let(e,t,r);return Uet(e,t),e},Pet=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpProxyAgent=void 0;var Oet=Kle(b("net")),Het=Kle(b("tls")),Get=Pet(bT()),qet=b("events"),Yet=E3(),jle=b("url"),_m=(0,Get.default)("http-proxy-agent"),NT=class extends Yet.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new jle.URL(e):e,this.proxyHeaders=r?.headers??{},_m("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?Vet(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",o=`${n}//${i}`,a=new jle.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;_m("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(_m("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`);if(d===-1){DT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}DT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Mm.parseProxyResponse=Ett});var mde=E(To=>{"use strict";var Ctt=To&&To.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Itt=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gde=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)&&Ctt(e,t,r);return Itt(e,t),e},pde=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpsProxyAgent=void 0;var kT=gde(b("net")),dde=gde(b("tls")),ytt=pde(b("assert")),Btt=pde(RT()),btt=v3(),Qtt=b("url"),wtt=lde(),xy=(0,Btt.default)("https-proxy-agent"),hde=t=>t.servername===void 0&&t.host&&!kT.isIP(t.host)?{...t,servername:t.host}:t,vT=class extends btt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Qtt.URL(e):e,this.proxyHeaders=r?.headers??{},xy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?fde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(xy("Creating `tls.Socket`: %o",this.connectOpts),s=dde.connect(hde(this.connectOpts))):(xy("Creating `net.Socket`: %o",this.connectOpts),s=kT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=kT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,wtt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Stt),r.secureEndpoint?(xy("Upgrading socket connection to TLS"),dde.connect({...fde(hde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new kT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{xy("Replaying proxy buffer for failed request"),(0,ytt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};vT.protocols=["http","https"];To.HttpsProxyAgent=vT;function Stt(t){t.resume()}function fde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ide=E(xo=>{"use strict";var Ntt=xo&&xo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ttt=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cde=xo&&xo.__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)&&Ntt(e,t,r);return Ttt(e,t),e},xtt=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpProxyAgent=void 0;var Rtt=Cde(b("net")),Dtt=Cde(b("tls")),ktt=xtt(RT()),vtt=b("events"),_tt=v3(),Ede=b("url"),Lm=(0,ktt.default)("http-proxy-agent"),_T=class extends _tt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ede.URL(e):e,this.proxyHeaders=r?.headers??{},Lm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Ftt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Ede.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Lm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Lm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),_m("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(_m("Creating `tls.Socket`: %o",this.connectOpts),i=Het.connect(this.connectOpts)):(_m("Creating `net.Socket`: %o",this.connectOpts),i=Oet.connect(this.connectOpts)),await(0,qet.once)(i,"connect"),i}};NT.protocols=["http","https"];To.HttpProxyAgent=NT;function Vet(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dde=E(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.state=void 0;GT.state={instrumenterImplementation:void 0}});var zde=E(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.state=void 0;JT.state={operationRequestMap:new WeakMap}});var age=E((adr,Yot)=>{Yot.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var cge=E((Adr,Age)=>{var Vot=age();Age.exports={version:Vot.version}});var mR=E(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.isJsonObject=r0.typeofJsonValue=void 0;function eat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}r0.typeofJsonValue=eat;function tat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}r0.isJsonObject=tat});var CR=E(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.base64encode=s0.base64decode=void 0;var xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ER=[];for(let t=0;t<xu.length;t++)ER[xu[t].charCodeAt(0)]=t;ER[45]=xu.indexOf("+");ER[95]=xu.indexOf("/");function rat(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=ER[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}s0.base64decode=rat;function sat(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=xu[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=xu[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=xu[n|s>>6],e+=xu[s&63],r=0;break}return r&&(e+=xu[n],e+="=",r==1&&(e+="=")),e}s0.base64encode=sat});var fge=E(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.utf8read=void 0;var AH=t=>String.fromCharCode.apply(String,t);function nat(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)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(AH(s)),n=0);return r.length?(n&&r.push(AH(s.slice(0,n))),r.join("")):AH(s.slice(0,n))}IR.utf8read=nat});var EB=E(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.WireType=ec.mergeBinaryOptions=ec.UnknownFieldHandler=void 0;var iat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(iat=ec.UnknownFieldHandler||(ec.UnknownFieldHandler={}));function oat(t,e){return Object.assign(Object.assign({},t),e)}ec.mergeBinaryOptions=oat;var aat;(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"})(aat=ec.WireType||(ec.WireType={}))});var BR=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.varint32read=Ai.varint32write=Ai.int64toString=Ai.int64fromString=Ai.varint64write=Ai.varint64read=void 0;function Aat(){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")}Ai.varint64read=Aat;function cat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)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 o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ai.varint64write=cat;var yR=65536*65536;function uat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=yR&&(n=n+(s/yR|0),s=s%yR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ai.int64fromString=uat;function lat(t,e){if(e>>>0<=2097151)return""+(yR*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ai.int64toString=lat;function dat(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)}}Ai.varint32write=dat;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}Ai.varint32read=hat});var od=E(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.PbLong=id.PbULong=id.detectBi=void 0;var CB=BR(),ir;function gge(){let t=new DataView(new ArrayBuffer(8));ir=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"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}id.detectBi=gge;gge();function pge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var mge=/^-?[0-9]+$/,QR=4294967296,bR=2147483648,wR=c Line truncated
`)}};jR.RpcError=FH});var LH=E($R=>{"use strict";Object.defineProperty($R,"__esModule",{value:!0});$R.mergeRpcOptions=void 0;var Jge=At();function FAt(t,e){if(!e)return t;let r={};KR(t,r),KR(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Jge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Jge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},KR(t.meta,r.meta),KR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}$R.mergeRpcOptions=FAt;function KR(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}});var PH=E(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.Deferred=vf.DeferredState=void 0;var sc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sc=vf.DeferredState||(vf.DeferredState={}));var UH=class{constructor(e=!0){this._state=sc.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!==sc.PENDING)throw new Error(`cannot resolve ${sc[this.state].toLowerCase()}`);this._resolve(e),this._state=sc.RESOLVED}reject(e){if(this.state!==sc.PENDING)throw new Error(`cannot reject ${sc[this.state].toLowerCase()}`);this._reject(e),this._state=sc.REJECTED}resolvePending(e){this._state===sc.PENDING&&this.resolve(e)}rejectPending(e){this._state===sc.PENDING&&this.reject(e)}};vf.Deferred=UH});var HH=E(XR=>{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});XR.RpcOutputStreamController=void 0;var zge=PH(),_f=At(),OH=class{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){_f.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){_f.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){_f.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(){_f.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:()=>{let e=this._itState;_f.assert(e,"bad state"),_f.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 zge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;_f.assert(s.state==zge.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};XR.RpcOutputStreamController=OH});var qH=E(u0=>{"use strict";var MAt=u0&&u0.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(u0,"__esModule",{value:!0});u0.UnaryCall=void 0;var GH=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}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 MAt(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}})}};u0.UnaryCall=GH});var VH=E(l0=>{"use strict";var LAt=l0&&l0.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(l0,"__esModule",{value:!0});l0.ServerStreamingCall=void 0;var YH=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Lm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Lm("Creating `tls.Socket`: %o",this.connectOpts),i=Dtt.connect(this.connectOpts)):(Lm("Creating `net.Socket`: %o",this.connectOpts),i=Rtt.connect(this.connectOpts)),await(0,vtt.once)(i,"connect"),i}};_T.protocols=["http","https"];xo.HttpProxyAgent=_T;function Ftt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ehe=E(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.state=void 0;jT.state={instrumenterImplementation:void 0}});var mhe=E(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});ex.state=void 0;ex.state={operationRequestMap:new WeakMap}});var $ge=E((khr,jat)=>{jat.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Zge=E((vhr,Xge)=>{var Kat=$ge();Xge.exports={version:Kat.version}});var kR=E(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.isJsonObject=c0.typeofJsonValue=void 0;function ict(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}c0.typeofJsonValue=ict;function oct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}c0.isJsonObject=oct});var _R=E(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.base64encode=A0.base64decode=void 0;var Ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),vR=[];for(let t=0;t<Ru.length;t++)vR[Ru[t].charCodeAt(0)]=t;vR[45]=Ru.indexOf("+");vR[95]=Ru.indexOf("/");function act(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=vR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}A0.base64decode=act;function cct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ru[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ru[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ru[s|n>>6],e+=Ru[n&63],r=0;break}return r&&(e+=Ru[s],e+="=",r==1&&(e+="=")),e}A0.base64encode=cct});var spe=E(FR=>{"use strict";Object.defineProperty(FR,"__esModule",{value:!0});FR.utf8read=void 0;var DH=t=>String.fromCharCode.apply(String,t);function Act(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(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,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(DH(n)),s=0);return r.length?(s&&r.push(DH(n.slice(0,s))),r.join("")):DH(n.slice(0,s))}FR.utf8read=Act});var wB=E(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.WireType=tA.mergeBinaryOptions=tA.UnknownFieldHandler=void 0;var uct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(uct=tA.UnknownFieldHandler||(tA.UnknownFieldHandler={}));function lct(t,e){return Object.assign(Object.assign({},t),e)}tA.mergeBinaryOptions=lct;var dct;(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"})(dct=tA.WireType||(tA.WireType={}))});var LR=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.varint32read=Ai.varint32write=Ai.int64toString=Ai.int64fromString=Ai.varint64write=Ai.varint64read=void 0;function hct(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&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 s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ai.varint64read=hct;function fct(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Ai.varint64write=fct;var MR=65536*65536;function gct(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=MR&&(s=s+(n/MR|0),n=n%MR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Ai.int64fromString=gct;function pct(t,e){if(e>>>0<=2097151)return""+(MR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}Ai.int64toString=pct;function mct(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)}}Ai.varint32write=mct;function Ect(){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}Ai.varint32read=Ect});var cd=E(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.PbLong=ad.PbULong=ad.detectBi=void 0;var SB=LR(),ir;function ipe(){let t=new DataView(new ArrayBuffer(8));ir=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"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}ad.detectBi=ipe;ipe();function ope(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ape=/^-?[0-9]+$/,PR=4294967296,UR=2147483648,OR=c Line truncated
`)}};uD.RpcError=s9});var o9=E(dD=>{"use strict";Object.defineProperty(dD,"__esModule",{value:!0});dD.mergeRpcOptions=void 0;var Lpe=ct();function OAt(t,e){if(!e)return t;let r={};lD(t,r),lD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Lpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Lpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},lD(t.meta,r.meta),lD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}dD.mergeRpcOptions=OAt;function lD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var c9=E(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.Deferred=Mf.DeferredState=void 0;var sA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sA=Mf.DeferredState||(Mf.DeferredState={}));var a9=class{constructor(e=!0){this._state=sA.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!==sA.PENDING)throw new Error(`cannot resolve ${sA[this.state].toLowerCase()}`);this._resolve(e),this._state=sA.RESOLVED}reject(e){if(this.state!==sA.PENDING)throw new Error(`cannot reject ${sA[this.state].toLowerCase()}`);this._reject(e),this._state=sA.REJECTED}resolvePending(e){this._state===sA.PENDING&&this.resolve(e)}rejectPending(e){this._state===sA.PENDING&&this.reject(e)}};Mf.Deferred=a9});var u9=E(hD=>{"use strict";Object.defineProperty(hD,"__esModule",{value:!0});hD.RpcOutputStreamController=void 0;var Upe=c9(),Lf=ct(),A9=class{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){Lf.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){Lf.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){Lf.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(){Lf.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:()=>{let e=this._itState;Lf.assert(e,"bad state"),Lf.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 Upe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Lf.assert(n.state==Upe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};hD.RpcOutputStreamController=A9});var d9=E(p0=>{"use strict";var HAt=p0&&p0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(p0,"__esModule",{value:!0});p0.UnaryCall=void 0;var l9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 HAt(this,void 0,void 0,function*(){let[e,r,n,s]=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:s}})}};p0.UnaryCall=l9});var f9=E(m0=>{"use strict";var GAt=m0&&m0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(m0,"__esModule",{value:!0});m0.ServerStreamingCall=void 0;var h9=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var oCe=E(iCe=>{"use strict";var Pq=Hu().Buffer;iCe._dbcs=Gu;var Ks=-1,nCe=-2,$o=-10,Mn=-1e3,Y0=new Array(256),Cb=-1;for(N2=0;N2<256;N2++)Y0[N2]=Ks;var N2;function Gu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Y0.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(Y0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Y0.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Mn-o[s]],A=48;A<=57;A++){if(a[A]===Ks)a[A]=Mn-n;else if(a[A]>Mn)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Mn-a[A]],u=129;u<=254;u++){if(c[u]===Ks)c[u]=Mn-i;else{if(c[u]===Mn-i)continue;if(c[u]>Mn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Mn-c[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=nCe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function KEt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(FEt.has(n)){r=n;break}}return r}function $Et(t,e){let r=KEt(e);r!==""&&(t.referrerPolicy=r)}function XEt(){return"allowed"}function ZEt(){return"success"}function eCt(){return"success"}function tCt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function rCt(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&&sV(t.origin)&&!sV(cg(t))&&(e=null);break;case"same-origin":Tb(t,cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function j0(t,e){return t}function sCt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:j0(t.domainLookupStartTime,r),domainLookupEndTime:j0(t.domainLookupEndTime,r),connectionStartTime:j0(t.connectionStartTime,r),connectionEndTime:j0(t.connectionEndTime,r),secureConnectionStartTime:j0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function nCt(t){return j0(PEt.now(),t)}function iCt(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}}function Mye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function oCt(t){return{referrerPolicy:t.referrerPolicy}}function aCt(t){let e=t.referrerPolicy;xb(e);let r=null;if(t.referrer==="client"){let i=Dye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else xd.is.URL(t.referrer)&&(r=t.referrer);let s=rV(r),n=rV(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??rV(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=cg(t);return Ag(s)&&!Ag(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=cg(t);return Tb(s,i)?s:Ag(s)&&!Ag(i)?"no-referrer":n}case"same-origin":return Tb(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Tb(t,s)?s:n;case"no-referrer-when-downgrade":{let i=cg(t);return Ag(s)&&!Ag(i)?"no-referrer":s}}}function rV(t,e=!1){return xb(xd.is.URL(t)),t=new URL(t),Oye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var ACt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),cCt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Lye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),cCt(t)):ACt(t)}function uCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Lye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ag(t){return xd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:uCt(t.origin):!1}function lCt(t){}function Tb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function dCt(t){return t.controller.state==="aborted"}function hCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function fCt(t){return HEt[t.toLowerCase()]??t}var gCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Uye(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,gCt),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function pCt(t,e,r,s=0,n=1){let i=Uye(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return xd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return xd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ea(a=>dV(a)&&a!==59,t,e);i=uV.decode(o)}return{name:s,value:i}}function OCt(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw pi("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=ea(a=>a!==10&&a!==13&&a!==58,t,e);if(o=lV(o,!0,!0,a=>a===9||a===32),!kCt.test(o.toString()))throw pi("header name does not match the field-name token production");if(t[e.position]!==58)throw pi("expected :");switch(e.position++,ea(a=>a===32||a===9,t,e),DCt(o)){case"content-disposition":{if(r=s=null,ea(A=>dV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw pi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=PCt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw pi("name attribute is required in content-disposition header");break}case"content-type":{let a=ea(A=>A!==10&&A!==13,t,e);a=lV(a,!1,!0,A=>A===9||A===32),n=Wye(a);break}case"content-transfer-encoding":{let a=ea(A=>A!==10&&A!==13,t,e);a=lV(a,!1,!0,A=>A===9||A===32),i=Wye(a);break}default:ea(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw pi("expected CRLF");e.position+=2}}function ea(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function lV(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)}function HCt(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}function pi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function GCt(t){return t<=31||t===127}function qCt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function dV(t){return t<=127&&t!==32&&t!==9&&!GCt(t)&&!qCt(t)}Jye.exports={multipartFormDataParser:UCt,validateBoundary:LCt}});var Rb=E((lCr,jye)=>{"use strict";function YCt(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}jye.exports={createDeferredPromise:YCt}});var X0=E((dCr,eBe)=>{"use strict";var gV=Xe(),{ReadableStreamFrom:VCt,readableStreamClose:WCt,fullyReadBody:JCt,extractMimeType:zCt}=zi(),{FormData:Kye,setFormDataState:jCt}=X2(),{webidl:$a}=$s(),hV=b("node:assert"),{isErrored:fV,isDisturbed:KCt}=b("node:stream"),{isUint8Array:$Ct}=b("node:util/types"),{serializeAMimeType:XCt}=Zo(),{multipartFormDataParser:ZCt}=zye(),{createDeferredPromise:eIt}=Rb(),{parseJSONFromBytes:tIt}=Vu(),{utf8DecodeBytes:rIt}=W2(),{runtimeFeatures:sIt}=Wu(),nIt=sIt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Z2=new TextEncoder;function iIt(){}var oIt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!KCt(e)&&!fV(e)&&e.cancel("Response object has been garbage collected").catch(iIt)});function Xye(t,e=!1){let r=null,s=null;$a.is.ReadableStream(t)?r=t:$a.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),hV($a.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if($a.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if($a.is.BufferSource(t))i=$a.util.getCopyOfBytesHeldByBufferSource(t);else if($a.is.FormData(t)){let c=`----formdata-undici-0${`${nIt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var KCe=E(jCe=>{"use strict";var cY=Gu().Buffer;jCe._dbcs=qu;var $n=-1,zCe=-2,Xo=-10,Ms=-1e3,K0=new Array(256),Sb=-1;for(G2=0;G2<256;G2++)K0[G2]=$n;var G2;function qu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=K0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(K0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(K0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ms-o[n]],c=48;c<=57;c++){if(a[c]===$n)a[c]=Ms-s;else if(a[c]>Ms)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ms-a[c]],u=129;u<=254;u++){if(A[u]===$n)A[u]=Ms-i;else{if(A[u]===Ms-i)continue;if(A[u]>Ms)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ms-A[u]],d=48;d<=57;d++)l[d]===$n&&(l[d]=zCe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function tIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(OCt.has(s)){r=s;break}}return r}function rIt(t,e){let r=tIt(e);r!==""&&(t.referrerPolicy=r)}function nIt(){return"allowed"}function sIt(){return"success"}function iIt(){return"success"}function oIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function aIt(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&&SV(t.origin)&&!SV(dg(t))&&(e=null);break;case"same-origin":Fb(t,dg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function tE(t,e){return t}function cIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:tE(t.domainLookupStartTime,r),domainLookupEndTime:tE(t.domainLookupEndTime,r),connectionStartTime:tE(t.connectionStartTime,r),connectionEndTime:tE(t.connectionEndTime,r),secureConnectionStartTime:tE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function AIt(t){return tE(YCt.now(),t)}function uIt(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}}function SBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function lIt(t){return{referrerPolicy:t.referrerPolicy}}function dIt(t){let e=t.referrerPolicy;Mb(e);let r=null;if(t.referrer==="client"){let i=yBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Dd.is.URL(t.referrer)&&(r=t.referrer);let n=wV(r),s=wV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??wV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=dg(t);return lg(n)&&!lg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=dg(t);return Fb(n,i)?n:lg(n)&&!lg(i)?"no-referrer":s}case"same-origin":return Fb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Fb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=dg(t);return lg(n)&&!lg(i)?"no-referrer":n}}}function wV(t,e=!1){return Mb(Dd.is.URL(t)),t=new URL(t),RBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var hIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),fIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function NBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),fIt(t)):hIt(t)}function gIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||NBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function lg(t){return Dd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:gIt(t.origin):!1}function pIt(t){}function Fb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function mIt(t){return t.controller.state==="aborted"}function EIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function CIt(t){return WCt[t.toLowerCase()]??t}var IIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,IIt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function yIt(t,e,r,n=0,s=1){let i=TBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Dd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Dd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ta(a=>FV(a)&&a!==59,t,e);i=vV.decode(o)}return{name:n,value:i}}function VIt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw mi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ta(a=>a!==10&&a!==13&&a!==58,t,e);if(o=_V(o,!0,!0,a=>a===9||a===32),!LIt.test(o.toString()))throw mi("header name does not match the field-name token production");if(t[e.position]!==58)throw mi("expected :");switch(e.position++,ta(a=>a===32||a===9,t,e),MIt(o)){case"content-disposition":{if(r=n=null,ta(c=>FV(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw mi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=YIt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw mi("name attribute is required in content-disposition header");break}case"content-type":{let a=ta(c=>c!==10&&c!==13,t,e);a=_V(a,!1,!0,c=>c===9||c===32),s=MBe(a);break}case"content-transfer-encoding":{let a=ta(c=>c!==10&&c!==13,t,e);a=_V(a,!1,!0,c=>c===9||c===32),i=MBe(a);break}default:ta(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw mi("expected CRLF");e.position+=2}}function ta(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function _V(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function WIt(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}function mi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function JIt(t){return t<=31||t===127}function zIt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function FV(t){return t<=127&&t!==32&&t!==9&&!JIt(t)&&!zIt(t)}LBe.exports={multipartFormDataParser:qIt,validateBoundary:GIt}});var Lb=E((MIr,PBe)=>{"use strict";function jIt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}PBe.exports={createDeferredPromise:jIt}});var sE=E((LIr,YBe)=>{"use strict";var UV=Xe(),{ReadableStreamFrom:KIt,readableStreamClose:$It,fullyReadBody:XIt,extractMimeType:ZIt}=ji(),{FormData:OBe,setFormDataState:eyt}=hk(),{webidl:Xa}=Xn(),MV=b("node:assert"),{isErrored:LV,isDisturbed:tyt}=b("node:stream"),{isUint8Array:ryt}=b("node:util/types"),{serializeAMimeType:nyt}=ea(),{multipartFormDataParser:syt}=UBe(),{createDeferredPromise:iyt}=Lb(),{parseJSONFromBytes:oyt}=Wu(),{utf8DecodeBytes:ayt}=ak(),{runtimeFeatures:cyt}=Ju(),Ayt=cyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),fk=new TextEncoder;function uyt(){}var lyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!tyt(e)&&!LV(e)&&e.cancel("Response object has been garbage collected").catch(uyt)});function GBe(t,e=!1){let r=null,n=null;Xa.is.ReadableStream(t)?r=t:Xa.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),MV(Xa.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Xa.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Xa.is.BufferSource(t))i=Xa.util.getCopyOfBytesHeldByBufferSource(t);else if(Xa.is.FormData(t)){let A=`----formdata-undici-0${`${Ayt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Z2.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=fk.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=Z2.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=fk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Z2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if($a.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=$a.is.ReadableStream(t)?t:VCt(t)}return(typeof i=="string"||$Ct(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(fV(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!fV(r)&&s.enqueue(typeof c=="string"?Z2.encode(c):new Uint8Array(c));queueMicrotask(()=>WCt(s))})(),[{stream:r,source:i,length:o},a]}function aIt(t,e=!1){return $a.is.ReadableStream(t)&&(hV(!gV.isDisturbed(t),"The body has already been consumed."),hV(!t.locked,"The stream is locked.")),Xye(t,e)}function AIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function cIt(t,e){return{blob(){return $0(this,s=>{let n=$ye(e(this));return n===null?n="":n&&(n=XCt(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return $0(this,s=>new Uint8Array(s).buffer,t,e)},text(){return $0(this,rIt,t,e)},json(){return $0(this,tIt,t,e)},formData(){return $0(this,s=>{let n=$ye(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=ZCt(s,n),o=new Kye;return jCt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Kye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return $0(this,s=>new Uint8Array(s),t,e)}}}function uIt(t,e){Object.assign(t.prototype,cIt(t,e))}function $0(t,e,r,s){try{$a.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Zye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=eIt(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(JCt(t.body,o,i),n.promise)}function Zye(t){let e=t.body;return e!=null&&(e.stream.locked||gV.isDisturbed(e.stream))}function $ye(t){let e=t.headersList,r=zCt(e);return r==="failure"?null:r}eBe.exports={extractBody:Xye,safelyExtractBody:aIt,cloneBody:AIt,mixinBody:uIt,streamRegistry:oIt,bodyUnusable:Zye}});var lBe=E((hCr,uBe)=>{"use strict";var Ve=b("node:assert"),We=Xe(),{channels:tBe}=Nd(),pV=$q(),{RequestContentLengthMismatchError:ug,ResponseContentLengthMismatchError:lIt,RequestAbortedError:aBe,HeadersTimeoutError:dIt,HeadersOverflowError:hIt,SocketError:vb,InformationalError:Z0,BodyTimeoutError:fIt,HTTPParserError:gIt,ResponseExceededMaxSizeError:pIt}=je(),{kUrl:ABe,kReset:mi,kClient:bV,kParser:Yr,kBlocking:_b,kRunning:gn,kPending:mIt,kSize:rBe,kWriting:Dd,kQueue:Xa,kNoRef:Db,kKeepAliveDefaultTimeout:EIt,kHostHeader:CIt,kPendingIdx:IIt,kRunningIdx:ta,kError:ra,kPipelining:rk,kSocket:eE,kKeepAliveTimeoutValue:nk,kMaxHeadersSize:yIt,kKeepAliveMaxTimeout:BIt,kKeepAliveTimeoutThreshold:bIt,kHeadersTimeout:QIt,kBodyTimeout:wIt,kStrictContentLength:CV,kMaxRequests:sBe,kCounter:SIt,kMaxResponseSize:NIt,kOnError:TIt,kResume:Rd,kHTTPContext:cBe,kClosed:IV}=Kt(),dc=eye(),xIt=Buffer.alloc(0),ek=Buffer[Symbol.species],RIt=We.removeAllListeners,mV;function DIt(){let t=process.env.JEST_WORKER_ID?qY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(sye())}catch{}return e||(e=new WebAssembly.Module(t||qY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onStatus(new ek(hc.buffer,o,i))},wasm_on_message_begin:s=>(Ve(Is.ptr===s),Is.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onHeaderField(new ek(hc.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onHeaderValue(new ek(hc.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(Ve(Is.ptr===s),Is.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onBody(new ek(hc.buffer,o,i))},wasm_on_message_complete:s=>(Ve(Is.ptr===s),Is.onMessageComplete())}})}var EV=null,Is=null,hc=null,tk=0,fc=null,kIt=0,kb=1,tE=2|kb,sk=4|kb,yV=8|kIt,BV=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(dc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[yIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[NIt]}setTi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[CIt],i?p+=`connection: upgrade\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=fk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(Xa.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(UV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Xa.is.ReadableStream(t)?t:KIt(t)}return(typeof i=="string"||ryt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(LV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!LV(r)&&n.enqueue(typeof A=="string"?fk.encode(A):new Uint8Array(A));queueMicrotask(()=>$It(n))})(),[{stream:r,source:i,length:o},a]}function dyt(t,e=!1){return Xa.is.ReadableStream(t)&&(MV(!UV.isDisturbed(t),"The body has already been consumed."),MV(!t.locked,"The stream is locked.")),GBe(t,e)}function hyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function fyt(t,e){return{blob(){return nE(this,n=>{let s=HBe(e(this));return s===null?s="":s&&(s=nyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return nE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return nE(this,ayt,t,e)},json(){return nE(this,oyt,t,e)},formData(){return nE(this,n=>{let s=HBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=syt(n,s),o=new OBe;return eyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new OBe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return nE(this,n=>new Uint8Array(n),t,e)}}}function gyt(t,e){Object.assign(t.prototype,fyt(t,e))}function nE(t,e,r,n){try{Xa.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),qBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=iyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(XIt(t.body,o,i),s.promise)}function qBe(t){let e=t.body;return e!=null&&(e.stream.locked||UV.isDisturbed(e.stream))}function HBe(t){let e=t.headersList,r=ZIt(e);return r==="failure"?null:r}YBe.exports={extractBody:GBe,safelyExtractBody:dyt,cloneBody:hyt,mixinBody:gyt,streamRegistry:lyt,bodyUnusable:qBe}});var tbe=E((UIr,ebe)=>{"use strict";var Ve=b("node:assert"),We=Xe(),{channels:VBe}=xd(),PV=IY(),{RequestContentLengthMismatchError:hg,ResponseContentLengthMismatchError:pyt,RequestAbortedError:$Be,HeadersTimeoutError:myt,HeadersOverflowError:Eyt,SocketError:Ob,InformationalError:iE,BodyTimeoutError:Cyt,HTTPParserError:Iyt,ResponseExceededMaxSizeError:yyt}=je(),{kUrl:XBe,kReset:Ei,kClient:WV,kParser:Yr,kBlocking:Hb,kRunning:gs,kPending:Byt,kSize:WBe,kWriting:vd,kQueue:Za,kNoRef:Ub,kKeepAliveDefaultTimeout:byt,kHostHeader:Qyt,kPendingIdx:wyt,kRunningIdx:ra,kError:na,kPipelining:mk,kSocket:oE,kKeepAliveTimeoutValue:Ck,kMaxHeadersSize:Syt,kKeepAliveMaxTimeout:Nyt,kKeepAliveTimeoutThreshold:Tyt,kHeadersTimeout:xyt,kBodyTimeout:Ryt,kStrictContentLength:GV,kMaxRequests:JBe,kCounter:Dyt,kMaxResponseSize:kyt,kOnError:vyt,kResume:kd,kHTTPContext:ZBe,kClosed:qV}=Kt(),hA=Yye(),_yt=Buffer.alloc(0),gk=Buffer[Symbol.species],Fyt=We.removeAllListeners,OV;function Myt(){let t=process.env.JEST_WORKER_ID?dV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Jye())}catch{}return e||(e=new WebAssembly.Module(t||dV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onStatus(new gk(fA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onHeaderField(new gk(fA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onHeaderValue(new gk(fA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onBody(new gk(fA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var HV=null,yn=null,fA=null,pk=0,gA=null,Lyt=0,Pb=1,aE=2|Pb,Ek=4|Pb,YV=8|Lyt,VV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(hA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Syt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Qyt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[rk]&&!h[mi]?p+=`connection: keep-alive\r
`:t[mk]&&!h[Ei]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return tBe.sendHeaders.hasSubscribers&&tBe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?iBe(f,null,t,e,h,u,p,l):We.isBuffer(A)?iBe(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?oBe(f,A.stream(),t,e,h,u,p,l):qIt(f,A,t,e,h,u,p,l):We.isStream(A)?GIt(f,A,t,e,h,u,p,l):We.isIterable(A)?oBe(f,A,t,e,h,u,p,l):Ve(!1),!0}function GIt(t,e,r,s,n,i,o,a){Ve(i!==0||r[gn]===0,"stream body cannot be pipelined");let A=!1,c=new ik({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new aBe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(n.destroyed||n[Dd]&&r[gn]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function iBe(t,e,r,s,n,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return VBe.sendHeaders.hasSubscribers&&VBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?jBe(f,null,t,e,h,u,p,l):We.isBuffer(c)?jBe(f,c,t,e,h,u,p,l):We.isBlobLike(c)?typeof c.stream=="function"?KBe(f,c.stream(),t,e,h,u,p,l):zyt(f,c,t,e,h,u,p,l):We.isStream(c)?Jyt(f,c,t,e,h,u,p,l):We.isIterable(c)?KBe(f,c,t,e,h,u,p,l):Ve(!1),!0}function Jyt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,A=new Ik({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new $Be;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[vd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function jBe(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[mi]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Ei]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Rd]()}catch(A){t(A)}}async function qIt(t,e,r,s,n,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ug;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[kd]()}catch(c){t(c)}}async function zyt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new hg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[mi]=!0),r[Rd]()}catch(A){t(A)}}async function oBe(t,e,r,s,n,i,o,a){Ve(i!==0||r[gn]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),n[ra]?h(n[ra]):A=d});n.on("close",c).on("drain",c);let l=new ik({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ra])throw n[ra];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var ik=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Dd]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ra])throw r[ra];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[CV])throw new ug;process.emitWarning(new ug)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[mi]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ei]=!0),r[kd]()}catch(c){t(c)}}async function KBe(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ve(c===null),s[na]?h(s[na]):c=d});s.on("close",A).on("drain",A);let l=new Ik({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[na])throw s[na];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Ik=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[na])throw r[na];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[GV])throw new hg;process.emitWarning(new hg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ei]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===tE&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Dd]=!1,e[ra])throw e[ra];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===aE&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vd]=!1,e[na])throw e[na];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[CV])throw new ug;process.emitWarning(new ug)}e[Yr].timeout&&e[Yr].timeoutType===tE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),s[Rd]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Dd]=!1,e&&(Ve(s[gn]<=1,"pipeline should only contain this request"),n(e))}};uBe.exports=vIt});var IBe=E((fCr,CBe)=>{"use strict";var na=b("node:assert"),{pipeline:YIt}=b("node:stream"),ct=Xe(),{RequestContentLengthMismatchError:NV,RequestAbortedError:VIt,SocketError:Ub,InformationalError:kd,InvalidArgumentError:WIt}=je(),{kUrl:Lb,kReset:ck,kClient:ji,kRunning:Pb,kPending:JIt,kQueue:vd,kPendingIdx:xV,kRunningIdx:Za,kError:Ki,kSocket:Rr,kStrictContentLength:zIt,kOnError:rE,kMaxConcurrentStreams:ak,kPingInterval:dBe,kHTTP2Session:zu,kHTTP2InitialWindowSize:jIt,kHTTP2ConnectionWindowSize:KIt,kResume:gc,kSize:$It,kHTTPContext:RV,kClosed:TV,kBodyTimeout:XIt,kEnableConnectProtocol:Fb,kRemoteSettings:Mb,kHTTP2Stream:ok,kHTTP2SessionState:DV}=Kt(),{channels:hBe}=Nd(),sa=Symbol("open streams"),fBe,Ak;try{Ak=b("node:http2")}catch{Ak={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ZIt,HTTP2_HEADER_METHOD:gBe,HTTP2_HEADER_PATH:pBe,HTTP2_HEADER_SCHEME:QV,HTTP2_HEADER_CONTENT_LENGTH:eyt,HTTP2_HEADER_EXPECT:tyt,HTTP2_HEADER_STATUS:wV,HTTP2_HEADER_PROTOCOL:ryt,NGHTTP2_REFUSED_STREAM:syt,NGHTTP2_CANCEL:nyt}}=Ak;function SV(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}function iyt(t,e){t[Rr]=e;let r=t[jIt],s=t[KIt],n=Ak.connect(t[Lb],{createConnection:()=>e,peerMaxConcurrentStreams:t[ak],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,n[sa]=0,n[ji]=t,n[Rr]=e,n[DV]={ping:{interval:t[dBe]===0?null:setInterval(cyt,t[dBe],n).unref()}},n[Fb]=!1,n[Mb]=!1,s&&ct.addListener(n,"connect",ayt.bind(n,s)),ct.addListener(n,"error",uyt),ct.addListener(n,"frameError",lyt),ct.addListener(n,"end",dyt),ct.addListener(n,"goaway",hyt),ct.addListener(n,"close",fyt),ct.addListener(n,"remoteSettings",Ayt),n.unref(),t[zu]=n,e[zu]=n,ct.addListener(e,"error",pyt),ct.addListener(e,"end",myt),ct.addListener(e,"close",gyt),e[TV]=!1,e.on("close",Eyt),{version:"h2",defaultPipelining:1/0,write(i){return Iyt(t,i)},resume(){oyt(t)},destroy(i,o){e[TV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Pb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mb]===!1||ct.bodyLength(i.body)!==0&&(ct.isStream(i.body)||ct.isAsyncIterable(i.body)||ct.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mb]===!1;return!1}}}function oyt(t){let e=t[Rr];e?.destroyed===!1&&(t[$It]===0||t[ak]===0?(e.unref(),t[zu].unref()):(e.ref(),t[zu].ref()))}function ayt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Ayt(t){if(this[ji][ak]=t.maxConcurrentStreams??this[ji][ak],this[Mb]===!0&&this[Fb]===!0&&t.enableConnectProtocol===!1){let e=new kd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Ki]=e,this[ji][rE](e);return}this[Fb]=t.enableConnectProtocol??this[Fb],this[Mb]=!0,this[ji][gc]()}function cyt(t){let e=t[DV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[ji],o=this[ji];if(s!=null){let a=new kd(`HTTP/2: "PING" errored - type ${s.message}`);o[Ki]=a,i[rE](a)}else i.emit("ping",n)}}function uyt(t){na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Ki]=t,this[ji][rE](t)}function lyt(t,e,r){if(r===0){let s=new kd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Ki]=s,this[ji][rE](s)}}function dyt(){let t=new Ub("other side closed",ct.getSocketInfo(this[Rr]));this.destroy(t),ct.destroy(this[Rr],t)}function hyt(t){let e=this[Ki]||new Ub(`HTTP/2: "GOAWAY" frame received with code ${t}`,ct.getSocketInfo(this[Rr])),r=this[ji];if(r[Rr]=null,r[RV]=null,this.close(),this[zu]=null,ct.destroy(this[Rr],e),r[Za]<r[vd].length){let s=r[vd][r[Za]];r[vd][r[Za]++]=null,ct.errorRequest(r,s,e),r[xV]=r[Za]}na(r[Pb]===0),r.emit("disconnect",r[Lb],[r],e),r.emit("connectionError",r[Lb],[r],e),r[gc]()}function fyt(){let{[ji]:t,[DV]:e}=this,{[Rr]:r}=t,s=this[Rr][Ki]||this[Ki]||new Ub("closed",ct.getSocketInfo(r));if(t[Rr]=null,t[RV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){na(t[JIt]===0);let n=t[vd].splice(t[Za]);for(let i=0;i<n.length;i++){let o=n[i];ct.errorRequest(t,o,s)}}}function gyt(){let t=this[Ki]||new Ub("closed",ct.getSocketInfo(this)),e=this[zu][ji];e[Rr]=null,e[RV]=null,this[zu]!==null&&this[zu].destroy(t),e[xV]=e[Za],na(e[Pb]===0),e.emit("disconnect",e[Lb],[e],t),e[gc]()}function pyt(t){na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ki]=t,this[ji][rE](t)}function myt(){ct.destroy(this,new Ub("other side closed",ct.getSocketInfo(this)))}func Line truncated
`;hBe.sendHeaders.publish({request:e,headers:k,socket:s[Rr]})}let N=n==="GET"||n==="HEAD"||d===null;A?(h[tyt]="100-continue",f=s.request(h,{endStream:N,signal:c}),f[ok]=!0,f.once("continue",q)):(f=s.request(h,{endStream:N,signal:c}),f[ok]=!0,q()),++s[sa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[wV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),SV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[vd][t[Za]++]=null,t[gc]()):(m(new kd("HTTP/2: stream half-closed (remote)")),t[vd][t[Za]++]=null,t[xV]=t[Za],t[gc]())}),f.once("close",()=>{f.removeAllListeners("data"),s[sa]-=1,s[sa]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new kd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new kd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[sa]-=1,s[sa]===0&&s.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function q(){!d||y===0?mBe(m,f,null,t,e,t[Rr],y,C):ct.isBuffer(d)?mBe(m,f,d,t,e,t[Rr],y,C):ct.isBlobLike(d)?typeof d.stream=="function"?EBe(m,f,d.stream(),t,e,t[Rr],y,C):Byt(m,f,d,t,e,t[Rr],y,C):ct.isStream(d)?yyt(m,t[Rr],C,f,d,t,e,y):ct.isIterable(d)?EBe(m,f,d,t,e,t[Rr],y,C):na(!1)}}function mBe(t,e,r,s,n,i,o,a){try{r!=null&&ct.isBuffer(r)&&(na(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[ck]=!0),n.onRequestSent(),s[gc]()}catch(A){t(A)}}function yyt(t,e,r,s,n,i,o,a){na(a!==0||i[Pb]===0,"stream body cannot be pipelined");let A=YIt(n,s,u=>{u?(ct.destroy(A,u),t(u)):(ct.removeAllListeners(A),o.onRequestSent(),r||(e[ck]=!0),i[gc]())});ct.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Byt(t,e,r,s,n,i,o,a){na(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new NV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[ck]=!0),s[gc]()}catch(A){t(A)}}async function EBe(t,e,r,s,n,i,o,a){na(o!==0||s[Pb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{na(A===null),i[Ki]?d(i[Ki]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Ki])throw i[Ki];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[ck]=!0),s[gc]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}CBe.exports=iyt});var Ud=E((gCr,xBe)=>{"use strict";var ju=b("node:assert"),wBe=b("node:net"),Ob=b("node:http"),lg=Xe(),{ClientStats:byt}=SY(),{channels:sE}=Nd(),Qyt=GIe(),wyt=ig(),{InvalidArgumentError:fr,InformationalError:Syt,ClientDestroyedError:Nyt}=je(),Tyt=og(),{kUrl:pc,kServerName:Ld,kClient:xyt,kBusy:kV,kConnect:Ryt,kResuming:dg,kRunning:Yb,kPending:Vb,kSize:Hb,kQueue:eA,kConnected:Dyt,kConnecting:nE,kNeedDrain:Fd,kKeepAliveDefaultTimeout:yBe,kHostHeader:kyt,kPendingIdx:tA,kRunningIdx:Ku,kError:vyt,kPipelining:uk,kKeepAliveTimeoutValue:_yt,kMaxHeadersSize:Fyt,kKeepAliveMaxTimeout:Myt,kKeepAliveTimeoutThreshold:Lyt,kHeadersTimeout:Uyt,kBodyTimeout:Pyt,kStrictContentLength:Oyt,kConnector:Gb,kMaxRequests:vV,kCounter:Hyt,kClose:Gyt,kDestroy:qyt,kDispatch:Yyt,kLocalAddress:qb,kMaxResponseSize:Vyt,kOnError:Wyt,kHTTPContext:rs,kMaxConcurrentStreams:Jyt,kHTTP2InitialWindowSize:zyt,kHTTP2ConnectionWindowSize:jyt,kResume:Md,kPingInterval:Kyt}=Kt(),$yt=lBe(),Xyt=IBe(),_d=Symbol("kClosedResolve"),Zyt=Ob&&Ob.maxHeaderSize&&Number.isInteger(Ob.maxHeaderSize)&&Ob.maxHeaderSize>0?()=>Ob.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},BBe=()=>{};function SBe(t){return t[uk]??t[rs]?.defaultPipelining??1}var _V=class extends wyt{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:q,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[Pyt]=a??3e5,this[Uyt]=s??3e5,this[Oyt]=m??!0,this[vV]=N,this[_d]=null,this[Vyt]=q>-1?q:-1,this[rs]=null,this[Jyt]=D??100,this[zyt]=ee??262144,this[jyt]=Ae??524288,this[Kyt]=ge??6e4,this[eA]=[],this[Ku]=0,this[tA]=0,this[Md]=De=>FV(this,De),this[Wyt]=De=>NBe(this,De)}get pipelining(){return this[uk]}set pipelining(e){this[uk]=e,this[Md](!0)}get stats(){return new byt(this)}get[Vb](){return this[eA].length-this[tA]}get[Yb](){return this[tA]-this[Ku]}get[Hb](){return this[eA].length-this[Ku]}get[Dyt](){return!!this[rs]&&!this[nE]&&!this[rs].destroyed}get[kV](){return!!(this[rs]?.busy(null)||this[Hb]>=(SBe(this)||1)||this[Vb]>0)}[Ryt](e){TBe(this),this.once("connect",e)}[Yyt](e,r){let s=new Qyt(this[pc].origin,e,r);return this[eA].push(s),this[dg]||(lg.bodyLength(s.body)==null&&lg.isIterable(s.body)?(this[dg]=1,queueMicrotask(()=>FV(this))):this[Md](!0)),this[dg]&&this[Fd]!==2&&this[kV]&&(this[Fd]=2),this[Fd]<2}[Gyt](){return new Promise(e=>{this[Hb]?this[_d]=e:e(null)})}[qyt](e){return new Promise(r=>{let s=this[eA].splice(this[tA]);for(let i=0;i<s.length;i++){let o=s[i];lg.errorRequest(this,o,e)}let n=()=>{this[_d]&&(this[_d](),this[_d]=null),r(null)};this[rs]?(this[rs].destroy(e,n),this[rs]=null):queueMicrotask(n),this[Md]()})}};function NBe(t,e){if(t[Yb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ju(t[tA]===t[Ku]);let r=t[eA].splice(t[Ku]);for(let s=0;s<r.length;s++){let n=r[s];lg.errorRequest(t,n,e)}ju(t[Hb]===0)}}function TBe(t){ju(!t[nE]),ju(!t[rs]);let{host:e,hostname:r,protocol:s,port:n}=t[pc];if(r[0]==="["){let i=r.indexOf("]");ju(i!==-1);let o=r.substring(1,i);ju(wBe.isIPv6(o)),r=o}t[nE]=!0,sE.beforeConnect.hasSubscribers&&sE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[rs]?.version,servername:t[Ld],localAddress:t[qb]},connector:t[Gb]}),t[Gb]({host:e,hostname:r,protocol:s,port:n,servername:t[Ld],localAddress:t[qb]},(i,o)=>{if(i){bBe(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Md]();return}if(t.destroyed){lg.destroy(o.on("error",BBe),new Nyt),t[Md]();return}ju(o);try{t[rs]=o.alpnProtocol==="h2"?Xyt(t,o):$yt(t,o)}catch(a){o.destroy().on("error",BBe),bBe(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Md]();return}t[nE]=!1,o[Hyt]=0,o[vV]=t[vV],o[xyt]=t,o[vyt]=null,sE.connected.hasSubscribers&&sE.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[rs]?.version,servername:t[Ld],localAddress:t[qb]},connector:t[Gb],socket:o}),t.emit("connect",t[pc],[t]),t[Md]()})}function bBe(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[nE]=!1,sE.connectError.hasSubscribers&&sE.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[rs]?.version,servername:t[Ld],localAddress:t[qb]},connector:t[Gb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ju(t[Yb]===0);t[Vb]>0&&t[eA][t[tA]].servername===t[Ld];){let o=t[eA][t[tA]++];lg.errorRequest(t,o,e)}else NBe(t,e);t.emit("connectionError",t[pc],[t],e)}}function QBe(t){t[Fd]=0,t.emit("drain",t[pc],[t])}function FV(t,e){t[dg]!==2&&(t[dg]=2,eBt(t,e),t[dg]=0,t[Ku]>256&&(t[eA].splice(0,t[Ku]),t[tA]-=t[Ku],t[Ku]=0))}function eBt(t,e){for(;;){if(t.destroyed){ju(t[Vb]===0);return}if(t[_d]&&!t[Hb]){t[_d](),t[_d]=null;return}if(t[rs]&&t[rs].resume(),t[kV])t[Fd]=2;else if(t[Fd]===2){e?(t[Fd]=1,queueMicrotask(()=>QBe(t))):QBe(t);continue}if(t[Vb]===0||t[Yb]>=(SBe(t)||1))return;let r=t[eA][t[tA]];if(r===null)return;if(t[pc].protocol==="https:"&&t[Ld]!==r.servername){if(t[Yb]>0)return;t[Ld]=r.servername,t[rs]?.destroy(new Syt("servername changed"),()=>{t[rs]=null,FV(t)})}if(t[nE])return;if(!t[rs]){TBe(t);return}if(t[rs].destroyed||t[rs].busy(r))return;!r.aborted&&t[rs].write(r)?t[tA]++:t[eA].splice(t[tA],1)}}xBe.exports=_V});var MV=E((mCr,RBe)=>{"use strict";var lk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};RBe.exports=class{constructor(){this.head=this.tail=new lk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new lk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var dk=E((ECr,PBe)=>{"use strict";var{PoolStats:tBt}=SY(),rBt=ig(),sBt=MV(),{kConnected:LV,kSize:DBe,kRunning:kBe,kPending:vBe,kQueued:Wb,kBusy:nBt,kFree:iBt,kUrl:oBt,kClose:aBt,kDestroy:ABt,kDispatch:cBt}=Kt(),Hs=Symbol("clients"),Ln=Symbol("needDrain"),Jb=Symbol("queue"),UV=Symbol("closed resolve"),PV=Symbol("onDrain"),_Be=Symbol("onConnect"),FBe=Symbol("onDisconnect"),MBe=Symbol("onConnectionError"),OV=Symbol("get dispatcher"),LBe=Symbol("add client"),UBe=Symbol("remove client"),HV=class extends rBt{[Jb]=new sBt;[Wb]=0;[Hs]=[];[Ln]=!1;[PV](e,r,s){let n=this[Jb],i=!1;for(;!i;){let o=n.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[GV])throw new hg;process.emitWarning(new hg)}e[Yr].timeout&&e[Yr].timeoutType===aE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[kd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[vd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};ebe.exports=Uyt});var ube=E((PIr,Abe)=>{"use strict";var ia=b("node:assert"),{pipeline:jyt}=b("node:stream"),At=Xe(),{RequestContentLengthMismatchError:KV,RequestAbortedError:Kyt,SocketError:Vb,InformationalError:_d,InvalidArgumentError:$yt}=je(),{kUrl:Yb,kReset:Qk,kClient:Ki,kRunning:Wb,kPending:Xyt,kQueue:Fd,kPendingIdx:XV,kRunningIdx:ec,kError:$i,kSocket:Rr,kStrictContentLength:Zyt,kOnError:cE,kMaxConcurrentStreams:Bk,kPingInterval:rbe,kHTTP2Session:ju,kHTTP2InitialWindowSize:eBt,kHTTP2ConnectionWindowSize:tBt,kResume:pA,kSize:rBt,kHTTPContext:ZV,kClosed:$V,kBodyTimeout:nBt,kEnableConnectProtocol:Gb,kRemoteSettings:qb,kHTTP2Stream:yk,kHTTP2SessionState:e7}=Kt(),{channels:nbe}=xd(),sa=Symbol("open streams"),sbe,bk;try{bk=b("node:http2")}catch{bk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:sBt,HTTP2_HEADER_METHOD:ibe,HTTP2_HEADER_PATH:obe,HTTP2_HEADER_SCHEME:JV,HTTP2_HEADER_CONTENT_LENGTH:iBt,HTTP2_HEADER_EXPECT:oBt,HTTP2_HEADER_STATUS:zV,HTTP2_HEADER_PROTOCOL:aBt,NGHTTP2_REFUSED_STREAM:cBt,NGHTTP2_CANCEL:ABt}}=bk;function jV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function uBt(t,e){t[Rr]=e;let r=t[eBt],n=t[tBt],s=bk.connect(t[Yb],{createConnection:()=>e,peerMaxConcurrentStreams:t[Bk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[sa]=0,s[Ki]=t,s[Rr]=e,s[e7]={ping:{interval:t[rbe]===0?null:setInterval(fBt,t[rbe],s).unref()}},s[Gb]=!1,s[qb]=!1,n&&At.addListener(s,"connect",dBt.bind(s,n)),At.addListener(s,"error",gBt),At.addListener(s,"frameError",pBt),At.addListener(s,"end",mBt),At.addListener(s,"goaway",EBt),At.addListener(s,"close",CBt),At.addListener(s,"remoteSettings",hBt),s.unref(),t[ju]=s,e[ju]=s,At.addListener(e,"error",yBt),At.addListener(e,"end",BBt),At.addListener(e,"close",IBt),e[$V]=!1,e.on("close",bBt),{version:"h2",defaultPipelining:1/0,write(i){return wBt(t,i)},resume(){lBt(t)},destroy(i,o){e[$V]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Wb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[qb]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[qb]===!1;return!1}}}function lBt(t){let e=t[Rr];e?.destroyed===!1&&(t[rBt]===0||t[Bk]===0?(e.unref(),t[ju].unref()):(e.ref(),t[ju].ref()))}function dBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function hBt(t){if(this[Ki][Bk]=t.maxConcurrentStreams??this[Ki][Bk],this[qb]===!0&&this[Gb]===!0&&t.enableConnectProtocol===!1){let e=new _d("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][$i]=e,this[Ki][cE](e);return}this[Gb]=t.enableConnectProtocol??this[Gb],this[qb]=!0,this[Ki][pA]()}function fBt(t){let e=t[e7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Ki],o=this[Ki];if(n!=null){let a=new _d(`HTTP/2: "PING" errored - type ${n.message}`);o[$i]=a,i[cE](a)}else i.emit("ping",s)}}function gBt(t){ia(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][$i]=t,this[Ki][cE](t)}function pBt(t,e,r){if(r===0){let n=new _d(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][$i]=n,this[Ki][cE](n)}}function mBt(){let t=new Vb("other side closed",At.getSocketInfo(this[Rr]));this.destroy(t),At.destroy(this[Rr],t)}function EBt(t){let e=this[$i]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[Rr])),r=this[Ki];if(r[Rr]=null,r[ZV]=null,this.close(),this[ju]=null,At.destroy(this[Rr],e),r[ec]<r[Fd].length){let n=r[Fd][r[ec]];r[Fd][r[ec]++]=null,At.errorRequest(r,n,e),r[XV]=r[ec]}ia(r[Wb]===0),r.emit("disconnect",r[Yb],[r],e),r.emit("connectionError",r[Yb],[r],e),r[pA]()}function CBt(){let{[Ki]:t,[e7]:e}=this,{[Rr]:r}=t,n=this[Rr][$i]||this[$i]||new Vb("closed",At.getSocketInfo(r));if(t[Rr]=null,t[ZV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ia(t[Xyt]===0);let s=t[Fd].splice(t[ec]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function IBt(){let t=this[$i]||new Vb("closed",At.getSocketInfo(this)),e=this[ju][Ki];e[Rr]=null,e[ZV]=null,this[ju]!==null&&this[ju].destroy(t),e[XV]=e[ec],ia(e[Wb]===0),e.emit("disconnect",e[Yb],[e],t),e[pA]()}function yBt(t){ia(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$i]=t,this[Ki][cE](t)}function BBt(){At.destroy(this,new Vb("other side closed",At.getSocketInfo(this)))}func Line truncated
`;nbe.sendHeaders.publish({request:e,headers:k,socket:n[Rr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[oBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[yk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[yk]=!0,O()),++n[sa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[zV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),jV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Fd][t[ec]++]=null,t[pA]()):(m(new _d("HTTP/2: stream half-closed (remote)")),t[Fd][t[ec]++]=null,t[XV]=t[ec],t[pA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[sa]-=1,n[sa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new _d(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new _d(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[sa]-=1,n[sa]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?abe(m,f,null,t,e,t[Rr],y,C):At.isBuffer(d)?abe(m,f,d,t,e,t[Rr],y,C):At.isBlobLike(d)?typeof d.stream=="function"?cbe(m,f,d.stream(),t,e,t[Rr],y,C):NBt(m,f,d,t,e,t[Rr],y,C):At.isStream(d)?SBt(m,t[Rr],C,f,d,t,e,y):At.isIterable(d)?cbe(m,f,d,t,e,t[Rr],y,C):ia(!1)}}function abe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ia(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Qk]=!0),s.onRequestSent(),n[pA]()}catch(c){t(c)}}function SBt(t,e,r,n,s,i,o,a){ia(a!==0||i[Wb]===0,"stream body cannot be pipelined");let c=jyt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[Qk]=!0),i[pA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function NBt(t,e,r,n,s,i,o,a){ia(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new KV;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Qk]=!0),n[pA]()}catch(c){t(c)}}async function cbe(t,e,r,n,s,i,o,a){ia(o!==0||n[Wb]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ia(c===null),i[$i]?d(i[$i]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[$i])throw i[$i];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Qk]=!0),n[pA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Abe.exports=uBt});var Od=E((OIr,Cbe)=>{"use strict";var Ku=b("node:assert"),gbe=b("node:net"),Jb=b("node:http"),fg=Xe(),{ClientStats:TBt}=jY(),{channels:AE}=xd(),xBt=kye(),RBt=cg(),{InvalidArgumentError:fr,InformationalError:DBt,ClientDestroyedError:kBt}=je(),vBt=Ag(),{kUrl:mA,kServerName:Pd,kClient:_Bt,kBusy:t7,kConnect:FBt,kResuming:gg,kRunning:$b,kPending:Xb,kSize:zb,kQueue:tc,kConnected:MBt,kConnecting:uE,kNeedDrain:Ld,kKeepAliveDefaultTimeout:lbe,kHostHeader:LBt,kPendingIdx:rc,kRunningIdx:$u,kError:UBt,kPipelining:wk,kKeepAliveTimeoutValue:PBt,kMaxHeadersSize:OBt,kKeepAliveMaxTimeout:HBt,kKeepAliveTimeoutThreshold:GBt,kHeadersTimeout:qBt,kBodyTimeout:YBt,kStrictContentLength:VBt,kConnector:jb,kMaxRequests:r7,kCounter:WBt,kClose:JBt,kDestroy:zBt,kDispatch:jBt,kLocalAddress:Kb,kMaxResponseSize:KBt,kOnError:$Bt,kHTTPContext:rn,kMaxConcurrentStreams:XBt,kHTTP2InitialWindowSize:ZBt,kHTTP2ConnectionWindowSize:ebt,kResume:Ud,kPingInterval:tbt}=Kt(),rbt=tbe(),nbt=ube(),Md=Symbol("kClosedResolve"),sbt=Jb&&Jb.maxHeaderSize&&Number.isInteger(Jb.maxHeaderSize)&&Jb.maxHeaderSize>0?()=>Jb.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},dbe=()=>{};function pbe(t){return t[wk]??t[rn]?.defaultPipelining??1}var n7=class extends RBt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[YBt]=a??3e5,this[qBt]=n??3e5,this[VBt]=m??!0,this[r7]=N,this[Md]=null,this[KBt]=O>-1?O:-1,this[rn]=null,this[XBt]=D??100,this[ZBt]=ee??262144,this[ebt]=ce??524288,this[tbt]=ge??6e4,this[tc]=[],this[$u]=0,this[rc]=0,this[Ud]=De=>s7(this,De),this[$Bt]=De=>mbe(this,De)}get pipelining(){return this[wk]}set pipelining(e){this[wk]=e,this[Ud](!0)}get stats(){return new TBt(this)}get[Xb](){return this[tc].length-this[rc]}get[$b](){return this[rc]-this[$u]}get[zb](){return this[tc].length-this[$u]}get[MBt](){return!!this[rn]&&!this[uE]&&!this[rn].destroyed}get[t7](){return!!(this[rn]?.busy(null)||this[zb]>=(pbe(this)||1)||this[Xb]>0)}[FBt](e){Ebe(this),this.once("connect",e)}[jBt](e,r){let n=new xBt(this[mA].origin,e,r);return this[tc].push(n),this[gg]||(fg.bodyLength(n.body)==null&&fg.isIterable(n.body)?(this[gg]=1,queueMicrotask(()=>s7(this))):this[Ud](!0)),this[gg]&&this[Ld]!==2&&this[t7]&&(this[Ld]=2),this[Ld]<2}[JBt](){return new Promise(e=>{this[zb]?this[Md]=e:e(null)})}[zBt](e){return new Promise(r=>{let n=this[tc].splice(this[rc]);for(let i=0;i<n.length;i++){let o=n[i];fg.errorRequest(this,o,e)}let s=()=>{this[Md]&&(this[Md](),this[Md]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Ud]()})}};function mbe(t,e){if(t[$b]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[rc]===t[$u]);let r=t[tc].splice(t[$u]);for(let n=0;n<r.length;n++){let s=r[n];fg.errorRequest(t,s,e)}Ku(t[zb]===0)}}function Ebe(t){Ku(!t[uE]),Ku(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku(gbe.isIPv6(o)),r=o}t[uE]=!0,AE.beforeConnect.hasSubscribers&&AE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Pd],localAddress:t[Kb]},connector:t[jb]}),t[jb]({host:e,hostname:r,protocol:n,port:s,servername:t[Pd],localAddress:t[Kb]},(i,o)=>{if(i){hbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Ud]();return}if(t.destroyed){fg.destroy(o.on("error",dbe),new kBt),t[Ud]();return}Ku(o);try{t[rn]=o.alpnProtocol==="h2"?nbt(t,o):rbt(t,o)}catch(a){o.destroy().on("error",dbe),hbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Ud]();return}t[uE]=!1,o[WBt]=0,o[r7]=t[r7],o[_Bt]=t,o[UBt]=null,AE.connected.hasSubscribers&&AE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Pd],localAddress:t[Kb]},connector:t[jb],socket:o}),t.emit("connect",t[mA],[t]),t[Ud]()})}function hbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[uE]=!1,AE.connectError.hasSubscribers&&AE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Pd],localAddress:t[Kb]},connector:t[jb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[$b]===0);t[Xb]>0&&t[tc][t[rc]].servername===t[Pd];){let o=t[tc][t[rc]++];fg.errorRequest(t,o,e)}else mbe(t,e);t.emit("connectionError",t[mA],[t],e)}}function fbe(t){t[Ld]=0,t.emit("drain",t[mA],[t])}function s7(t,e){t[gg]!==2&&(t[gg]=2,ibt(t,e),t[gg]=0,t[$u]>256&&(t[tc].splice(0,t[$u]),t[rc]-=t[$u],t[$u]=0))}function ibt(t,e){for(;;){if(t.destroyed){Ku(t[Xb]===0);return}if(t[Md]&&!t[zb]){t[Md](),t[Md]=null;return}if(t[rn]&&t[rn].resume(),t[t7])t[Ld]=2;else if(t[Ld]===2){e?(t[Ld]=1,queueMicrotask(()=>fbe(t))):fbe(t);continue}if(t[Xb]===0||t[$b]>=(pbe(t)||1))return;let r=t[tc][t[rc]];if(r===null)return;if(t[mA].protocol==="https:"&&t[Pd]!==r.servername){if(t[$b]>0)return;t[Pd]=r.servername,t[rn]?.destroy(new DBt("servername changed"),()=>{t[rn]=null,s7(t)})}if(t[uE])return;if(!t[rn]){Ebe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[rc]++:t[tc].splice(t[rc],1)}}Cbe.exports=n7});var i7=E((GIr,Ibe)=>{"use strict";var Sk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Ibe.exports=class{constructor(){this.head=this.tail=new Sk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Sk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Nk=E((qIr,xbe)=>{"use strict";var{PoolStats:obt}=jY(),abt=cg(),cbt=i7(),{kConnected:o7,kSize:ybe,kRunning:Bbe,kPending:bbe,kQueued:Zb,kBusy:Abt,kFree:ubt,kUrl:lbt,kClose:dbt,kDestroy:hbt,kDispatch:fbt}=Kt(),Gn=Symbol("clients"),Ls=Symbol("needDrain"),eQ=Symbol("queue"),a7=Symbol("closed resolve"),c7=Symbol("onDrain"),Qbe=Symbol("onConnect"),wbe=Symbol("onDisconnect"),Sbe=Symbol("onConnectionError"),A7=Symbol("get dispatcher"),Nbe=Symbol("add client"),Tbe=Symbol("remove client"),u7=class extends abt{[eQ]=new cbt;[Zb]=0;[Gn]=[];[Ls]=!1;[c7](e,r,n){let s=this[eQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};awe.exports=rW});var nW=E((jCr,lwe)=>{"use strict";var{InvalidArgumentError:owt}=je(),{runtimeFeatures:awt}=Wu();function Awt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Awe=awt.has("crypto")?b("node:crypto"):null,cwt=Awe?.hash?t=>Awe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function uwe(t){return Array.isArray(t)&&(t.length&1)===0}function uwt(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function lwt(t){let e={};if(!t)return e;if(uwe(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var cwe=["record","playback","update"];function dwt(t){if(!cwe.includes(t))throw new owt(`Invalid snapshot mode: ${t}. Must be one of: ${cwe.join(", ")}`)}lwe.exports={createHeaderFilters:Awt,hashId:cwt,isUndiciHeaders:uwe,normalizeHeaders:lwt,isUrlExcludedFactory:uwt,validateSnapshotMode:dwt}});var Iwe=E((KCr,Cwe)=>{"use strict";var{writeFile:hwt,readFile:fwt,mkdir:gwt}=b("node:fs/promises"),{dirname:pwt,resolve:dwe}=b("node:path"),{setTimeout:mwt,clearTimeout:hwe}=b("node:timers"),{InvalidArgumentError:fwe,UndiciError:Ewt}=je(),{hashId:Cwt,isUrlExcludedFactory:Iwt,normalizeHeaders:gwe,createHeaderFilters:pwe}=nW();function aQ(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||gwe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:mwe(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function mwe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Ewe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function AQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Cwt(r)}var iW=class{#e;#t;#s=new Map;#r;#n=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#n=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=pwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Iwt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=aQ(e,this.#a,this.matchOptions),n=AQ(s),i=gwe(r.headers),o={statusCode:r.statusCode,headers:Ewe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#n&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=aQ(e,this.#a,this.matchOptions),s=AQ(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new fwe("Snapshot path is required");try{let s=await fwt(dwe(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new Ewt(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new fwe("Snapshot path is required");let s=dwe(r);await gwt(pwt(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await hwt(s,JSON.s Line truncated
${e.format(r)}`.trim())}};$we.exports=wW});var NW=E((Iyr,t1e)=>{"use strict";var{InvalidArgumentError:l1t}=je(),{runtimeFeatures:d1t}=Ju();function h1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var Xwe=d1t.has("crypto")?b("node:crypto"):null,f1t=Xwe?.hash?t=>Xwe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function e1e(t){return Array.isArray(t)&&(t.length&1)===0}function g1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function p1t(t){let e={};if(!t)return e;if(e1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Zwe=["record","playback","update"];function m1t(t){if(!Zwe.includes(t))throw new l1t(`Invalid snapshot mode: ${t}. Must be one of: ${Zwe.join(", ")}`)}t1e.exports={createHeaderFilters:h1t,hashId:f1t,isUndiciHeaders:e1e,normalizeHeaders:p1t,isUrlExcludedFactory:g1t,validateSnapshotMode:m1t}});var u1e=E((yyr,A1e)=>{"use strict";var{writeFile:E1t,readFile:C1t,mkdir:I1t}=b("node:fs/promises"),{dirname:y1t,resolve:r1e}=b("node:path"),{setTimeout:B1t,clearTimeout:n1e}=b("node:timers"),{InvalidArgumentError:s1e,UndiciError:b1t}=je(),{hashId:Q1t,isUrlExcludedFactory:w1t,normalizeHeaders:i1e,createHeaderFilters:o1e}=NW();function fQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||i1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:a1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function a1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function c1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function gQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Q1t(r)}var TW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=o1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=w1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=fQ(e,this.#a,this.matchOptions),s=gQ(n),i=i1e(r.headers),o={statusCode:r.statusCode,headers:c1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=fQ(e,this.#a,this.matchOptions),n=gQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new s1e("Snapshot path is required");try{let n=await C1t(r1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new b1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new s1e("Snapshot path is required");let n=r1e(r);await I1t(y1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await E1t(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Zi} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${eo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,9 +133,9 @@ ${e.format(r)}`.trim())}};awe.exports=rW});var nW=E((jCr,lwe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Zi}_getValuesQuery ON cacheInterceptorV${Zi}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Zi}_deleteByUrlQuery ON cacheInterceptorV${Zi}(deleteAt);
`),this.#r=this.#s.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${eo}_getValuesQuery ON cacheInterceptorV${eo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${eo}_deleteByUrlQuery ON cacheInterceptorV${eo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
body,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};awe.exports=rW});var nW=E((jCr,lwe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${Zi}
FROM cacheInterceptorV${eo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#n=this.#s.prepare(`
UPDATE cacheInterceptorV${Zi} SET
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${eo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};awe.exports=rW});var nW=E((jCr,lwe)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#s.prepare(`
INSERT INTO cacheInterceptorV${Zi} (
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${eo} (
url,
method,
body,
@@ -182,88 +182,88 @@ ${e.format(r)}`.trim())}};awe.exports=rW});var nW=E((jCr,lwe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${Zi} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Zi}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${Zi} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${Zi}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${eo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${eo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${eo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${eo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Zi}
FROM cacheInterceptorV${eo}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#s.close()}get(e){NW(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){NW(e);let s=this.#d(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#n.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){NW(e),oSt(r);let s=0,n=[],i=this;return new iSt({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let s=this.#d(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!aSt(n[l],u[l])){c=!1;break}}if(c)return A}}};function aSt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var Sg=E((EIr,N1e)=>{"use strict";var{kConstruct:ASt}=Kt(),{kEnumerableProperty:CE}=Xe(),{iteratorMixin:cSt,isValidHeaderName:dQ,isValidHeaderValue:B1e}=zi(),{webidl:wt}=$s(),xW=b("node:assert"),qk=b("node:util");function y1e(t){return t===10||t===13||t===9||t===32}function b1e(t){let e=0,r=t.length;for(;r>e&&y1e(t.charCodeAt(r-1));)--r;for(;r>e&&y1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Q1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});RW(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)RW(t,r[s],e[r[s]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function RW(t,e,r){if(r=b1e(r),dQ(e)){if(!B1e(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(S1e(t)==="immutable")throw new TypeError("immutable");return Vk(t).append(e,r,!1)}function uSt(t){let e=Vk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function w1e(t,e){return t[0]<e[0]?-1:1}var Yk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":_Ne(i)&&(r[n]=i);break;case"id":FNe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&_Ne(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&FNe(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,event:void 0,id:void 0,retry:void 0}}};MNe.exports={EventSourceStream:hJ}});var VNe=E((qIr,YNe)=>{"use strict";var{pipeline:NRt}=b("node:stream"),{fetching:TRt}=mQ(),{makeRequest:xRt}=yE(),{webidl:Pn}=$s(),{EventSourceStream:RRt}=LNe(),{parseMIMEType:DRt}=Zo(),{createFastMessageEvent:kRt}=pv(),{isNetworkError:UNe}=fQ(),{kEnumerableProperty:_g}=Xe(),{environmentSettingsObject:PNe}=zi(),ONe=!1,HNe=3e3,QQ=0,GNe=1,wQ=2,vRt="anonymous",_Rt="use-credentials",DE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=QQ;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Pn.util.markAsUncloneable(this);let s="EventSource constructor";Pn.argumentLengthCheck(arguments,1,s),ONe||(ONe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Pn.converters.USVString(e),r=Pn.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=PNe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=vRt;r.withCredentials===!0&&(o=_Rt,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=PNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=xRt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===wQ)return;this.#r=QQ;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!UNe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(UNe(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?DRt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=GNe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new RRt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(kRt(A.type,A.options))}});NRt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=TRt(e)}#c(){this.#r!==wQ&&(this.#r=QQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===QQ&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Pn.brandCheck(this,t),this.#r!==wQ&&(this.#r=wQ,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Pn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Pn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Pn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},qNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:QQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:GNe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:wQ,writable:!1}};Object.defineProperties(DE,qNe);Object.defineProperties(DE.prototype,qNe);Object.defineProperties(DE.prototype,{close:_g,onerror:_g,onmessage:_g,onopen:_g,readyState:_g,url:_g,withCredentials:_g});Pn.converters.EventSourceInitDict=Pn.dictionaryConverter([{key:"withCredentials",converter:Pn.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Pn.converters.any},{key:"node",converter:Pn.dictionaryConverter([{key:"reconnectionTime",converter:Pn.converters["unsigned long"],defaultValue:()=>HNe},{key:"dispatcher",converter:Pn.converters.any}]),defaultValue:()=>({})}]);YNe.exports={EventSource:DE,defaultReconnectionTime:HNe}});var $Ne=E((YIr,pe)=>{"use strict";var FRt=Ud(),JNe=bb(),MRt=hg(),LRt=JBe(),URt=$Be(),PRt=pg(),ORt=a7(),HRt=s7(),GRt=_be(),qRt=Obe(),YRt=qbe(),zNe=je(),xv=Xe(),{InvalidArgumentError:Tv}=zNe,kE=QQe(),VRt=og(),WRt=V7(),{MockCallHistory:JR Line truncated
`)}close(){this.#n.close()}get(e){KW(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){KW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){KW(e),lNt(r);let n=0,s=[],i=this;return new uNt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!dNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function dNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var xg=E((qyr,mSe)=>{"use strict";var{kConstruct:hNt}=Kt(),{kEnumerableProperty:wE}=Xe(),{iteratorMixin:fNt,isValidHeaderName:CQ,isValidHeaderValue:dSe}=ji(),{webidl:wt}=Xn(),XW=b("node:assert"),sv=b("node:util");function lSe(t){return t===10||t===13||t===9||t===32}function hSe(t){let e=0,r=t.length;for(;r>e&&lSe(t.charCodeAt(r-1));)--r;for(;r>e&&lSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function fSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});ZW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)ZW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function ZW(t,e,r){if(r=hSe(r),CQ(e)){if(!dSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(pSe(t)==="immutable")throw new TypeError("immutable");return ov(t).append(e,r,!1)}function gNt(t){let e=ov(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function gSe(t,e){return t[0]<e[0]?-1:1}var iv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":QTe(i)&&(r[s]=i);break;case"id":wTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&QTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&wTe(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,event:void 0,id:void 0,retry:void 0}}};STe.exports={EventSourceStream:MJ}});var FTe=E((fBr,_Te)=>{"use strict";var{pipeline:kDt}=b("node:stream"),{fetching:vDt}=QQ(),{makeRequest:_Dt}=NE(),{webidl:Ps}=Xn(),{EventSourceStream:FDt}=NTe(),{parseMIMEType:MDt}=ea(),{createFastMessageEvent:LDt}=Dv(),{isNetworkError:TTe}=yQ(),{kEnumerableProperty:Lg}=Xe(),{environmentSettingsObject:xTe}=ji(),RTe=!1,DTe=3e3,DQ=0,kTe=1,kQ=2,UDt="anonymous",PDt="use-credentials",LE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=DQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),RTe||(RTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ps.converters.USVString(e),r=Ps.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=xTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=UDt;r.withCredentials===!0&&(o=PDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=_Dt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===kQ)return;this.#r=DQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!TTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(TTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?MDt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=kTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new FDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(LDt(c.type,c.options))}});kDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=vDt(e)}#A(){this.#r!==kQ&&(this.#r=DQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===DQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Ps.brandCheck(this,t),this.#r!==kQ&&(this.#r=kQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},vTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:DQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:kQ,writable:!1}};Object.defineProperties(LE,vTe);Object.defineProperties(LE.prototype,vTe);Object.defineProperties(LE.prototype,{close:Lg,onerror:Lg,onmessage:Lg,onopen:Lg,readyState:Lg,url:Lg,withCredentials:Lg});Ps.converters.EventSourceInitDict=Ps.dictionaryConverter([{key:"withCredentials",converter:Ps.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ps.converters.any},{key:"node",converter:Ps.dictionaryConverter([{key:"reconnectionTime",converter:Ps.converters["unsigned long"],defaultValue:()=>DTe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);_Te.exports={EventSource:LE,defaultReconnectionTime:DTe}});var HTe=E((gBr,pe)=>{"use strict";var ODt=Od(),LTe=Rb(),HDt=pg(),GDt=Lbe(),qDt=Hbe(),YDt=Cg(),VDt=R7(),WDt=S7(),JDt=QQe(),zDt=RQe(),jDt=vQe(),UTe=je(),Yv=Xe(),{InvalidArgumentError:qv}=UTe,UE=fwe(),KDt=Ag(),$Dt=fW(),{MockCallHistory:XD Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}pe.exports.fetch=function(e,r=void 0){return nDt(e,r).catch(s=>{throw WNe?KNe(s,WNe):s&&typeof s=="object"&&Error.captureStackTrace(s,pe.exports.fetch),s})};pe.exports.Headers=Sg().Headers;pe.exports.Response=fQ().Response;pe.exports.Request=yE().Request;pe.exports.FormData=X2().FormData;var{setGlobalOrigin:iDt,getGlobalOrigin:oDt}=WY();pe.exports.setGlobalOrigin=iDt;pe.exports.getGlobalOrigin=oDt;var{CacheStorage:aDt}=RSe(),{kConstruct:ADt}=Kt();pe.exports.caches=new aDt(ADt);var{deleteCookie:cDt,getCookies:uDt,getSetCookies:lDt,setCookie:dDt,parseCookie:hDt}=qSe();pe.exports.deleteCookie=cDt;pe.exports.getCookies=uDt;pe.exports.getSetCookies=lDt;pe.exports.setCookie=dDt;pe.exports.parseCookie=hDt;var{parseMIMEType:fDt,serializeAMimeType:gDt}=Zo();pe.exports.parseMIMEType=fDt;pe.exports.serializeAMimeType=gDt;var{CloseEvent:pDt,ErrorEvent:mDt,MessageEvent:EDt}=pv(),{WebSocket:CDt,ping:IDt}=bNe();pe.exports.WebSocket=CDt;pe.exports.CloseEvent=pDt;pe.exports.ErrorEvent=mDt;pe.exports.MessageEvent=EDt;pe.exports.ping=IDt;pe.exports.WebSocketStream=DNe().WebSocketStream;pe.exports.WebSocketError=AJ().WebSocketError;pe.exports.request=SQ(kE.request);pe.exports.stream=SQ(kE.stream);pe.exports.pipeline=SQ(kE.pipeline);pe.exports.connect=SQ(kE.connect);pe.exports.upgrade=SQ(kE.upgrade);pe.exports.MockClient=WRt;pe.exports.MockCallHistory=JRt;pe.exports.MockCallHistoryLog=zRt;pe.exports.MockPool=KRt;pe.exports.MockAgent=jRt;pe.exports.SnapshotAgent=$Rt;pe.exports.mockErrors=XRt;var{EventSource:yDt}=VNe();pe.exports.EventSource=yDt;function BDt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=BDt});var NQ=E($d=>{"use strict";$d.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");$d.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");$d.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";$d.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);$d.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);$d.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());$d.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var ZNe=E((JIr,XNe)=>{"use strict";var{asciiLowercase:Rv,solelyContainsHTTPTokenCodePoints:bDt,soleyContainsHTTPQuotedStringTokenCodePoints:QDt}=NQ();XNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Rv(String(e)),this._map.get(e)}has(e){return e=Rv(String(e)),this._map.has(e)}set(e,r){if(e=Rv(String(e)),r=String(r),!bDt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!QDt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Rv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var rTe=E((zIr,tTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:wDt,removeTrailingHTTPWhitespace:eTe,isHTTPWhitespaceChar:SDt,solelyContainsHTTPTokenCodePoints:fJ,soleyContainsHTTPQuotedStringTokenCodePoints:NDt,asciiLowercase:gJ,collectAnHTTPQuotedString:TDt}=NQ();tTe.exports=t=>{t=wDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!fJ(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=eTe(s),s.length===0||!fJ(s))return null;let n={type:gJ(r),subtype:gJ(s),parameters:new Map};for(;e<t.length;){for(++e;SDt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=gJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=TDt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=eTe(o),o==="")continue}i.length>0&&fJ(i)&&NDt(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var nTe=E((jIr,sTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:xDt}=NQ();sTe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!xDt(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var ATe=E(($Ir,aTe)=>{"use strict";var RDt=ZNe(),DDt=rTe(),kDt=nTe(),{asciiLowercase:iTe,solelyContainsHTTPTokenCodePoints:oTe}=NQ();aTe.exports=class{constructor(e){e=String(e);let r=DDt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new RDt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=iTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!oTe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=iTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!oTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return kDt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var QTe=E((uBr,JDt)=>{JDt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,n);let P=f.type==="*"?iz:f.type==="?"?Az:"\\"+f.type;i=!0,n=n.slice(0,f.reStart)+P+"\\("+k}N(),o&&(n+="\\\\");let M=A2t[n.charAt(0)];for(let k=A.length-1;k>-1;k--){let P=A[k],D=n.slice(0,P.reStart),z=n.slice(P.reStart,P.reEnd-8),Z=n.slice(P.reEnd),ee=n.slice(P.reEnd-8,P.reEnd)+Z,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=Z;for(let nt=0;nt<ge;nt++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==oz?"(?:$|\\/)":"";n=D+z+Z+Ke+ee}if(n!==""&&i&&(n="(?=.)"+n),M&&(n=C()+n),r===oz)return[n,i];if(s.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return u2t(e);let q=s.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",q),{_glob:e,_src:n})}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,s=r.noglobstar?iz:r.dot?o2t:a2t,n=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?d2t(a):a===On?On:a._src).reduce((a,A)=>(a[a.length-1]===On&&A===On||a.push(A),a),[]),o.forEach((a,A)=>{a!==On||o[A-1]===On||(A===0?o.length>1?o[A+1]="(?:\\/|"+s+"\\/)?"+o[A+1]:o[A]=s:A===o.length-1?o[A-1]+="(?:\\/|"+s+")?":(o[A-1]+="(?:\\/|\\/"+s+"\\/)"+o[A+1],o[A+1]=On))}),o.filter(a=>a!==On).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}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 s=this.options;az.sep!=="/"&&(e=e.split(az.sep).join("/")),e=e.split($Te),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<n.length;o++){let a=n[o],A=e;if(s.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return io.defaults(e).Minimatch}};io.Minimatch=PE});var ixe=E((OBr,nxe)=>{nxe.exports=sxe;var lz=b("fs"),{EventEmitter:f2t}=b("events"),{Minimatch:uz}=exe(),{resolve:g2t}=b("path");function p2t(t,e){return new Promise((r,s)=>{lz.readdir(t,{withFileTypes:!0},(n,i)=>{if(n)switch(n.code){case"ENOTDIR":e?s(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:s(n);break}else r(i)})})}function txe(t,e){return new Promise((r,s)=>{(e?lz.stat:lz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?txe(t,!1):null):r(null):r(o)})})}async function*rxe(t,e,r,s,n,i){let o=await p2t(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,s=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(s||r)&&(d=await txe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?n(u)||(yield{relative:u,absolute:l,stats:d},yield*rxe(c,e,r,s,n,!1)):yield{relative:u,absolute:l,stats:d}}}async function*m2t(t,e,r,s){yield*rxe("",t,e,r,s,!0)}function E2t(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}}var Mv=class extends f2t{constructor(e,r,s){if(super(),typeof r=="function"&&(s=r,r=null),this.options=E2t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(i=>new uz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(i=>new uz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(i=>new uz(i,{dot:!0}))}this.iterator=m2t(g2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,s&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>s(n)),this.on("end",()=>s(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let s=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(s)))&&!this.ignoreMatchers.some(n=>n.match(s))&&(!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 s=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(s+="/",n+="/"),this.options.stat?this.emit("match",{relative:s,absolute:n,stat:e.value.stats}):this.emit("match",{relative:s,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function OC(Q){let B=PC(Q.toString()),w=B.match(VF);if(w||(w=B.match(WF)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return A2t(e,r).catch(n=>{throw MTe?OTe(n,MTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=xg().Headers;pe.exports.Response=yQ().Response;pe.exports.Request=NE().Request;pe.exports.FormData=hk().FormData;var{setGlobalOrigin:u2t,getGlobalOrigin:l2t}=gV();pe.exports.setGlobalOrigin=u2t;pe.exports.getGlobalOrigin=l2t;var{CacheStorage:d2t}=INe(),{kConstruct:h2t}=Kt();pe.exports.caches=new d2t(h2t);var{deleteCookie:f2t,getCookies:g2t,getSetCookies:p2t,setCookie:m2t,parseCookie:E2t}=vNe();pe.exports.deleteCookie=f2t;pe.exports.getCookies=g2t;pe.exports.getSetCookies=p2t;pe.exports.setCookie=m2t;pe.exports.parseCookie=E2t;var{parseMIMEType:C2t,serializeAMimeType:I2t}=ea();pe.exports.parseMIMEType=C2t;pe.exports.serializeAMimeType=I2t;var{CloseEvent:y2t,ErrorEvent:B2t,MessageEvent:b2t}=Dv(),{WebSocket:Q2t,ping:w2t}=hTe();pe.exports.WebSocket=Q2t;pe.exports.CloseEvent=y2t;pe.exports.ErrorEvent=B2t;pe.exports.MessageEvent=b2t;pe.exports.ping=w2t;pe.exports.WebSocketStream=yTe().WebSocketStream;pe.exports.WebSocketError=DJ().WebSocketError;pe.exports.request=vQ(UE.request);pe.exports.stream=vQ(UE.stream);pe.exports.pipeline=vQ(UE.pipeline);pe.exports.connect=vQ(UE.connect);pe.exports.upgrade=vQ(UE.upgrade);pe.exports.MockClient=$Dt;pe.exports.MockCallHistory=XDt;pe.exports.MockCallHistoryLog=ZDt;pe.exports.MockPool=t2t;pe.exports.MockAgent=e2t;pe.exports.SnapshotAgent=r2t;pe.exports.mockErrors=n2t;var{EventSource:S2t}=FTe();pe.exports.EventSource=S2t;function N2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=N2t});var _Q=E(Zd=>{"use strict";Zd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Zd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Zd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Zd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Zd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Zd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Zd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var qTe=E((EBr,GTe)=>{"use strict";var{asciiLowercase:Vv,solelyContainsHTTPTokenCodePoints:T2t,soleyContainsHTTPQuotedStringTokenCodePoints:x2t}=_Q();GTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Vv(String(e)),this._map.get(e)}has(e){return e=Vv(String(e)),this._map.has(e)}set(e,r){if(e=Vv(String(e)),r=String(r),!T2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!x2t(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Vv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var WTe=E((CBr,VTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:R2t,removeTrailingHTTPWhitespace:YTe,isHTTPWhitespaceChar:D2t,solelyContainsHTTPTokenCodePoints:LJ,soleyContainsHTTPQuotedStringTokenCodePoints:k2t,asciiLowercase:UJ,collectAnHTTPQuotedString:v2t}=_Q();VTe.exports=t=>{t=R2t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!LJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=YTe(n),n.length===0||!LJ(n))return null;let s={type:UJ(r),subtype:UJ(n),parameters:new Map};for(;e<t.length;){for(++e;D2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=UJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=v2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=YTe(o),o==="")continue}i.length>0&&LJ(i)&&k2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var zTe=E((IBr,JTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:_2t}=_Q();JTe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!_2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var XTe=E((BBr,$Te)=>{"use strict";var F2t=qTe(),M2t=WTe(),L2t=zTe(),{asciiLowercase:jTe,solelyContainsHTTPTokenCodePoints:KTe}=_Q();$Te.exports=class{constructor(e){e=String(e);let r=M2t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new F2t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=jTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!KTe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=jTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!KTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return L2t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var fxe=E((Fbr,X2t)=>{X2t.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Tz:f.type==="?"?Dz:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=hkt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+Z,ce=D.split(")").length,ge=D.split("(").length-ce,De=Z;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==xz?"(?:$|\\/)":"";s=D+z+Z+Ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===xz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return gkt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}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?Tz:r.dot?lkt:dkt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?mkt(a):a===Os?Os:a._src).reduce((a,c)=>(a[a.length-1]===Os&&c===Os||a.push(c),a),[]),o.forEach((a,c)=>{a!==Os||o[c-1]===Os||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Os))}),o.filter(a=>a!==Os).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}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;Rz.sep!=="/"&&(e=e.split(Rz.sep).join("/")),e=e.split(Hxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return oo.defaults(e).Minimatch}};oo.Minimatch=VE});var jxe=E((lQr,zxe)=>{zxe.exports=Jxe;var _z=b("fs"),{EventEmitter:Ckt}=b("events"),{Minimatch:vz}=Yxe(),{resolve:Ikt}=b("path");function ykt(t,e){return new Promise((r,n)=>{_z.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Vxe(t,e){return new Promise((r,n)=>{(e?_z.stat:_z.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Vxe(t,!1):null):r(null):r(o)})})}async function*Wxe(t,e,r,n,s,i){let o=await ykt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Vxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Wxe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Bkt(t,e,r,n){yield*Wxe("",t,e,r,n,!0)}function bkt(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}}var $v=class extends Ckt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=bkt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new vz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new vz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new vz(i,{dot:!0}))}this.iterator=Bkt(Ikt(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",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),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(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.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,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,w);w=G===-1?Q.length:G}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let G=Q.indexOf("*/",w);G!==-1?(w=G+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function WC(Q){let B=VC(Q.toString()),w=B.match(oM);if(w||(w=B.match(aM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Kw).map(H=>H.replace($w,"").trim())}function HC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),w[F]=Y.concat(Y.length>0?te:H);else if(j)w[F]=H;else{if(Y=OC(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(H)(...Ft)}}),UC(w,B)}class GC{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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):qC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):qC(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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function qC(Q,B){Q.length=1,Q.head=Q.tail=B}function gp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,ws;function ho(wh,...KC){if(wh)return Pe?ws(wh):Cr();if(KC.length<=1)return Cr(KC[0]);Cr(KC)}var Cp=Mt._createTaskItem(Ue,Pe?ho:Nt||ho);if(be?Mt._tasks.unshift(Cp):Mt._tasks.push(Cp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((wh,KC)=>{Cr=wh,ws=KC})}function lo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var ws=Ue[Nt],ho=Y.indexOf(ws);ho===0?Y.shift():ho>0&&Y.splice(ho,1),ws.callback(be,...Pe),be!=null&&yt("error",be,ws.data)}H<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function Ep(Ue){return Ue.length===0&&Mt.idle()?(c(()=>yt("drain")),!0):!1}let Qh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,ws)=>{if(Cr)return Nt(Cr);Pe(ws)})});Se(Ue),j(Ue,be)};var jC=!1,Mt={_tasks:new GC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!jC){for(jC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}H+=1,Mt._tasks.length===0&&yt("empty"),H===Mt.concurrency&&yt("saturated");var ws=ee(lo(Ue));F(be,ws)}jC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return Y},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Qh("saturated")},unsaturated:{writable:!1,value:Qh("unsaturated")},empty:{writable:!1,value:Qh("empty")},drain:{writable:!1,value:Qh("drain")},error:{writable:!1,value:Qh("error")}}),Mt}function YC(Q,B){return gp(Q,1,B)}function pp(Q,B,w){return gp(Q,B,w)}function uo(Q,B,w,F){F=q(F);var H=I(w);return Wn(Q,(Y,J,j)=>{H(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var Ca=m(uo,4);function mp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=jc(),Ca(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[zc]}}function Xw(...Q){return mp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=m(we,4);function T(Q,B,w,F){var H=I(w);return O(Q,B,(Y,J)=>{H(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var G=m(T,4);function K(Q,B,w){return G(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[Zs]||(gxe=global[Zs]||[],mxe(kr,gxe),kr.close=(function(t){function e(r,s){return t.call(kr,r,function(n){n||pxe(),typeof s=="function"&&s.apply(this,arguments)})}return Object.defineProperty(e,Hv,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),pxe()}return Object.defineProperty(e,Hv,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ug(kr[Zs]),b("assert").equal(kr[Zs].length,0)}));var gxe;global[Zs]||mxe(global,kr[Zs]);gz.exports=hz(N2t(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(gz.exports=hz(kr),kr.__patched=!0);function hz(t){w2t(t),t.gracefulify=hz,t.createReadStream=M,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(Ae,ge,De,Ke){return e(Ae,ge,function(nt){nt&&(nt.code==="EMFILE"||nt.code==="ENFILE")?OE([ee,[Ae,ge,De],nt,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var s=t.writeFile;t.writeFile=n;function n(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return s(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,nt,Yt){return c(De,Ae(De,Ke,nt,Yt))}:function(De,Ke,nt,Yt){return c(De,Ke,Ae(De,Ke,nt,Yt))};return ee(D,z,Z);function Ae(ge,De,Ke,nt){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?OE([ee,[ge,De,Ke],Yt,nt||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=S2t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function q(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return k(ge,De,Ke,function(vt,ds){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}return t}function OE(t){Ug("ENQUEUE",t[0].name,t[1]),kr[Zs].push(t),fz()}var Ov;function pxe(){for(var t=Date.now(),e=0;e<kr[Zs].length;++e)kr[Zs][e].length>2&&(kr[Zs][e][3]=t,kr[Zs][e][4]=t);fz()}function fz(){if(clearTimeout(Ov),Ov=void 0,kr[Zs].length!==0){var t=kr[Zs].shift(),e=t[0],r=t[1],s=t[2],n=t[3],i=t[4];if(n===void 0)Ug("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Ug("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,s)}else{var a=Date.now()-i,A=Math.max(i-n,1),c=Math.min(A*1.2,100);a>=c?(Ug("RETRY",e.name,r),e.apply(null,r.concat([n]))):kr[Zs].push(t)}Ov===void 0&&(Ov=setTimeout(fz,0))}}});var Gv=E((VBr,Exe)=>{"use strict";var _c=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";_c.writable=t=>_c(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";_c.readable=t=>_c(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};KDe.exports={AggregateError:$z,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Xz=E((tQr,$De)=>{"use strict";$De.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,s]){let n=e.shift();return s==="f"?n.toFixed(6):s==="j"?JSON.stringify(n):s==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.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"{}"}}}});var En=E((rQr,e2e)=>{"use strict";var{format:KFt,inspect:a_}=Xz(),{AggregateError:$Ft}=Nr(),XFt=globalThis.AggregateError||$Ft,ZFt=Symbol("kIsNodeError"),eMt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],tMt=/^([A-Z][a-z0-9]*)+$/,rMt="__node_internal_",A_={};function Hg(t,e){if(!t)throw new A_.ERR_INTERNAL_ASSERTION(e)}function XDe(t){let e="",r=t.length,s=t[0]==="-"?1:0;for(;r>=s+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function sMt(t,e,r){if(typeof e=="function")return Hg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let s=(e.match(/%[dfijoOs]/g)||[]).length;return Hg(s===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${s}).`),r.length===0?e:KFt(e,...r)}function tn(t,e,r){r||(r=Error);class s extends r{constructor(...i){super(sMt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(s.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}}),s.prototype.code=t,s.prototype[ZFt]=!0,A_[t]=s}function ZDe(t){let e=rMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function nMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new XFt([e,t],e.message);return r.code=e.code,r}return t||e}var Zz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new A_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};tn("ERR_ASSERTION","%s",Error);tn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Hg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";t.endsWith(" argument")?s+=`${t} `:s+=`"${t}" ${t.includes(".")?"property":"argument"} `,s+="must be ";let n=[],i=[],o=[];for(let A of e)Hg(typeof A=="string","All expected entries have to be of type string"),eMt.includes(A)?n.push(A.toLowerCase()):tMt.test(A)?i.push(A):(Hg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=n.indexOf("object");A!==-1&&(n.splice(n,A,1),i.push("Object"))}if(n.length>0){switch(n.length){case 1:s+=`of type ${n[0]}`;break;case 2:s+=`one of type ${n[0]} or ${n[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=D$(" linkpath="+e.linkname+`
`));let s=e.pax;if(s)for(let n in s)r+=D$(" "+n+"="+s[n]+`
`);return kt.from(r)};NC.decodePax=function(e){let r={};for(;e.length;){let s=0;for(;s<e.length&&e[s]!==32;)s++;let n=parseInt(kt.toString(e.subarray(0,s)),10);if(!n)return r;let i=kt.toString(e.subarray(s+1,n-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(n)}return r};NC.encode=function(e){let r=kt.alloc(512),s=e.name,n="";if(e.typeflag===5&&s[s.length-1]!=="/"&&(s+="/"),kt.byteLength(s)!==s.length)return null;for(;kt.byteLength(s)>100;){let i=s.indexOf("/");if(i===-1)return null;n+=n?"/"+s.slice(0,i):s.slice(0,i),s=s.slice(i+1)}return kt.byteLength(s)>100||kt.byteLength(n)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,s),kt.write(r,ph(e.mode&gGt,6),100),kt.write(r,ph(e.uid,6),108),kt.write(r,ph(e.gid,6),116),BGt(e.size,r,124),kt.write(r,ph(e.mtime.getTime()/1e3|0,11),136),r[156]=MF+IGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(BUe,r,Hw),kt.copy(dGt,r,k$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,ph(e.devmajor||0,6),329),kt.write(r,ph(e.devminor||0,6),337),n&&kt.write(r,n,345),kt.write(r,ph(QUe(r),6),148),r)};NC.decode=function(e,r,s){let n=e[156]===0?0:e[156]-MF,i=SC(e,0,100,r),o=gh(e,100,8),a=gh(e,108,8),A=gh(e,116,8),c=gh(e,124,12),u=gh(e,136,12),l=CGt(n),d=e[157]===0?null:SC(e,157,100,r),h=SC(e,265,32),f=SC(e,297,32),p=gh(e,329,8),I=gh(e,337,8),m=QUe(e);if(m===256)return null;if(m!==gh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(pGt(e))e[345]&&(i=SC(e,345,155,r)+"/"+i);else if(!mGt(e)){if(!s)throw new Error("Invalid tar header: unknown format.")}return n===0&&i&&i[i.length-1]==="/"&&(n=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function pGt(t){return kt.equals(BUe,t.subarray(Hw,Hw+6))}function mGt(t){return kt.equals(hGt,t.subarray(Hw,Hw+6))&&kt.equals(fGt,t.subarray(k$,k$+2))}function EGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function CGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function IGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function bUe(t,e,r,s){for(;r<s;r++)if(t[r]===e)return r;return s}function QUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function ph(t,e){return t=t.toString(8),t.length>e?lGt.slice(0,e)+" ":uGt.slice(0,e-t.length)+t+" "}function yGt(t,e,r){e[r]=128;for(let s=11;s>0;s--)e[r+s]=t&255,t=Math.floor(t/256)}function BGt(t,e,r){t.toString(8).length>11?yGt(t,e,r):kt.write(e,ph(t,11),r)}function bGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],s;for(s=t.length-1;s>0;s--){let o=t[s];e?r.push(o):r.push(255-o)}let n=0,i=r.length;for(s=0;s<i;s++)n+=r[s]*Math.pow(256,s);return e?n:-1*n}function gh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return bGt(t);{for(;e<t.length&&t[e]===32;)e++;let s=EGt(bUe(t,32,e,t.length),t.length,t.length);for(;e<s&&t[e]===0;)e++;return s===e?0:parseInt(kt.toString(t.subarray(e,s)),8)}}function SC(t,e,r,s){return kt.toString(t.subarray(e,bUe(t,0,e,e+r)),s)}function D$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var xUe=E((T1r,TUe)=>{var{Writable:QGt,Readable:wGt,getStreamError:wUe}=R$(),SGt=g$(),SUe=yC(),TC=v$(),NGt=SUe.alloc(0),F$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new SGt,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 NGt;let r=this._next(e);if(e===r.byteLength)return r;let s=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),s.push(r);return SUe.concat(s)}_next(e){let r=this.queue.peek(),s=r.byteLength-this._offset;if(e>=s){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=s,this.shifted+=s,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},M$=class extends wGt{constructor(e,r,s){super(),this.header=r,this.offset=s,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(wUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=NUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},L$=class extends QGt{constru Line truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function OP(t){process.exitCode=UP.Failure,yo(t)}function Pl(){return process.env.RUNNER_DEBUG==="1"}function V(t){Sh("debug",{},t)}function yo(t,e={}){Sh("error",E1(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Sh("warning",E1(e),t instanceof Error?t.toString():t)}function wae(t,e={}){Sh("notice",E1(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+Qae.EOL)}function ZI(t,e){if(process.env.GITHUB_STATE||"")return LX("STATE",UX(t,e));Sh("save-state",{name:t},ml(e))}function wA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as JJe,existsSync as zJe}from"fs";import{EOL as jJe}from"os";var pm=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zJe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(JJe(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${jJe}`)}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 YP=fe(Rae(),1),Dae=fe(pN(),1),Aze=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function kae(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}`}function vae(t){return new YP.HttpClient().getAgent(t)}function cze(t){return new YP.HttpClient().getAgentDispatcher(t)}function _ae(t){let e=cze(t);return(s,n)=>Aze(this,void 0,void 0,function*(){return(0,Dae.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function Fae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function VP(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}function RN(){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>"}function DN(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)=>DN.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))}function Mae(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function Lae(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)}var Uae=Function.bind,Pae=Uae.bind(Uae);function Oae(t,e,r){let s=Pae(Lae,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]=Pae(Mae,null).apply(null,i)})}function lze(){let t=Symbol("Singular"),e={registry:{}},r=DN.bind(null,e,t);return Oae(r,e,t),r}function dze(){let t={registry:{}},e=DN.bind(null,t);return Oae(e,t),e}var Hae={Singular:lze,Collection:dze};var AO=fe(nO(),1);var hAe=fe(nO(),1);var ije="0.0.0-development";function oje(t){return`Request failed due to following response errors:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(n1).map(G=>G.replace(s1,"").trim())}function JC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var G=Q[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),w[F]=Y.concat(Y.length>0?te:G);else if(j)w[F]=G;else{if(Y=WC(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(G)(...Ft)}}),YC(w,B)}class zC{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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):jC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):jC(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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function jC(Q,B){Q.length=1,Q.head=Q.tail=B}function Ep(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,Sn;function fo(Nh,...rI){if(Nh)return Pe?Sn(Nh):Cr();if(rI.length<=1)return Cr(rI[0]);Cr(rI)}var Bp=Mt._createTaskItem(Ue,Pe?fo:Nt||fo);if(be?Mt._tasks.unshift(Bp):Mt._tasks.push(Bp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Nh,rI)=>{Cr=Nh,Sn=rI})}function ho(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var Sn=Ue[Nt],fo=Y.indexOf(Sn);fo===0?Y.shift():fo>0&&Y.splice(fo,1),Sn.callback(be,...Pe),be!=null&&yt("error",be,Sn.data)}G<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function yp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>yt("drain")),!0):!1}let Sh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,Sn)=>{if(Cr)return Nt(Cr);Pe(Sn)})});Se(Ue),j(Ue,be)};var tI=!1,Mt={_tasks:new zC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!tI){for(tI=!0;!Mt.paused&&G<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}G+=1,Mt._tasks.length===0&&yt("empty"),G===Mt.concurrency&&yt("saturated");var Sn=ee(ho(Ue));F(be,Sn)}tI=!1}},length(){return Mt._tasks.length},running(){return G},workersList(){return Y},idle(){return Mt._tasks.length+G===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Sh("saturated")},unsaturated:{writable:!1,value:Sh("unsaturated")},empty:{writable:!1,value:Sh("empty")},drain:{writable:!1,value:Sh("drain")},error:{writable:!1,value:Sh("error")}}),Mt}function KC(Q,B){return Ep(Q,1,B)}function Cp(Q,B,w){return Ep(Q,B,w)}function lo(Q,B,w,F){F=O(F);var G=I(w);return Ws(Q,(Y,J,j)=>{G(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var Ia=m(lo,4);function Ip(...Q){var B=Q.map(I);return function(...w){var F=this,G=w[w.length-1];return typeof G=="function"?w.pop():G=KA(),Ia(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>G(Y,...J)),G[jA]}}function i1(...Q){return Ip(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var H=m(we,4);function T(Q,B,w,F){var G=I(w);return H(Q,B,(Y,J)=>{G(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[es]||(iRe=global[es]||[],aRe(kr,iRe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||oRe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,r_,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),oRe()}return Object.defineProperty(e,r_,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Hg(kr[es]),b("assert").equal(kr[es].length,0)}));var iRe;global[es]||aRe(global,kr[es]);Uz.exports=Mz(kkt(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(Uz.exports=Mz(kr),kr.__patched=!0);function Mz(t){Rkt(t),t.gracefulify=Mz,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(ce,ge,De,Ke){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?WE([ee,[ce,ge,De],st,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(ge,De,Ke,st,Yt){return n(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(ge,De,Ke,st,Yt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),ce(D,z,Z,ee);function ce(ge,De,Ke,st,Yt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,st,Yt){return A(De,ce(De,Ke,st,Yt))}:function(De,Ke,st,Yt){return A(De,Ke,ce(De,Ke,st,Yt))};return ee(D,z,Z);function ce(ge,De,Ke,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?WE([ee,[ge,De,Ke],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Dkt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(ge,De,Ke,st,Yt){return k(ge,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function WE(t){Hg("ENQUEUE",t[0].name,t[1]),kr[es].push(t),Lz()}var t_;function oRe(){for(var t=Date.now(),e=0;e<kr[es].length;++e)kr[es][e].length>2&&(kr[es][e][3]=t,kr[es][e][4]=t);Lz()}function Lz(){if(clearTimeout(t_),t_=void 0,kr[es].length!==0){var t=kr[es].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Hg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Hg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(Hg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[es].push(t)}t_===void 0&&(t_=setTimeout(Lz,0))}}});var n_=E((pQr,cRe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};O2e.exports={AggregateError:Ij,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var yj=E((Swr,H2e)=>{"use strict";H2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.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"{}"}}}});var Es=E((Nwr,Y2e)=>{"use strict";var{format:tLt,inspect:B_}=yj(),{AggregateError:rLt}=Nr(),nLt=globalThis.AggregateError||rLt,sLt=Symbol("kIsNodeError"),iLt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],oLt=/^([A-Z][a-z0-9]*)+$/,aLt="__node_internal_",b_={};function Yg(t,e){if(!t)throw new b_.ERR_INTERNAL_ASSERTION(e)}function G2e(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}`}function cLt(t,e,r){if(typeof e=="function")return Yg(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 Yg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:tLt(e,...r)}function rs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(cLt(t,e,i))}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[sLt]=!0,b_[t]=n}function q2e(t){let e=aLt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function ALt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new nLt([e,t],e.message);return r.code=e.code,r}return t||e}var Bj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new b_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};rs("ERR_ASSERTION","%s",Error);rs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Yg(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 s=[],i=[],o=[];for(let c of e)Yg(typeof c=="string","All expected entries have to be of type string"),iLt.includes(c)?s.push(c.toLowerCase()):oLt.test(c)?i.push(c):(Yg(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=eX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=eX(" "+s+"="+n[s]+`
`);return kt.from(r)};vC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};vC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Eh(e.mode&Iqt,6),100),kt.write(r,Eh(e.uid,6),108),kt.write(r,Eh(e.gid,6),116),Nqt(e.size,r,124),kt.write(r,Eh(e.mtime.getTime()/1e3|0,11),136),r[156]=$F+wqt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(dPe,r,zw),kt.copy(mqt,r,tX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Eh(e.devmajor||0,6),329),kt.write(r,Eh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Eh(fPe(r),6),148),r)};vC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-$F,i=kC(e,0,100,r),o=mh(e,100,8),a=mh(e,108,8),c=mh(e,116,8),A=mh(e,124,12),u=mh(e,136,12),l=Qqt(s),d=e[157]===0?null:kC(e,157,100,r),h=kC(e,265,32),f=kC(e,297,32),p=mh(e,329,8),I=mh(e,337,8),m=fPe(e);if(m===256)return null;if(m!==mh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(yqt(e))e[345]&&(i=kC(e,345,155,r)+"/"+i);else if(!Bqt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function yqt(t){return kt.equals(dPe,t.subarray(zw,zw+6))}function Bqt(t){return kt.equals(Eqt,t.subarray(zw,zw+6))&&kt.equals(Cqt,t.subarray(tX,tX+2))}function bqt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Qqt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function wqt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function hPe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function fPe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Eh(t,e){return t=t.toString(8),t.length>e?pqt.slice(0,e)+" ":gqt.slice(0,e-t.length)+t+" "}function Sqt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function Nqt(t,e,r){t.toString(8).length>11?Sqt(t,e,r):kt.write(e,Eh(t,11),r)}function Tqt(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 o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function mh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Tqt(t);{for(;e<t.length&&t[e]===32;)e++;let n=bqt(hPe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function kC(t,e,r,n){return kt.toString(t.subarray(e,hPe(t,0,e,e+r)),n)}function eX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var CPe=E((ZSr,EPe)=>{var{Writable:xqt,Readable:Rqt,getStreamError:gPe}=Z$(),Dqt=U$(),pPe=NC(),_C=rX(),kqt=pPe.alloc(0),sX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Dqt,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 kqt;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 pPe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},iX=class extends Rqt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(gPe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=mPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},oX=class extends xqt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function tO(t){process.exitCode=ZP.Failure,Bo(t)}function Ol(){return process.env.RUNNER_DEBUG==="1"}function V(t){Th("debug",{},t)}function Bo(t,e={}){Th("error",w1(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Th("warning",w1(e),t instanceof Error?t.toString():t)}function zae(t,e={}){Th("notice",w1(e),t instanceof Error?t.toString():t)}function ne(t){process.stdout.write(t+Jae.EOL)}function iy(t,e){if(process.env.GITHUB_STATE||"")return oZ("STATE",aZ(t,e));Th("save-state",{name:t},El(e))}function Sc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Lze,existsSync as Uze}from"fs";import{EOL as Pze}from"os";var Cm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Uze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Lze(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Pze}`)}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 iO=fe(Zae(),1),ece=fe(bN(),1),Xze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function tce(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}`}function rce(t){return new iO.HttpClient().getAgent(t)}function Zze(t){return new iO.HttpClient().getAgentDispatcher(t)}function nce(t){let e=Zze(t);return(n,s)=>Xze(this,void 0,void 0,function*(){return(0,ece.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function sce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function oO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function LN(){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>"}function UN(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((s,i)=>UN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function ice(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function oce(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var ace=Function.bind,cce=ace.bind(ace);function Ace(t,e,r){let n=cce(oce,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=cce(ice,null).apply(null,i)})}function tje(){let t=Symbol("Singular"),e={registry:{}},r=UN.bind(null,e,t);return Ace(r,e,t),r}function rje(){let t={registry:{}},e=UN.bind(null,t);return Ace(e,t),e}var uce={Singular:tje,Collection:rje};var bO=fe(CO(),1);var Mce=fe(CO(),1);var jje="0.0.0-development";function Kje(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var aje=class extends Error{constructor(t,e,r){super(oje(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},Aje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],cje=["query","method","url"],dAe=/\/api\/v3\/?$/;function uje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(cje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>Aje.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return dAe.test(i)&&(n.url=i.replace(dAe,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new aje(n,a,o.data)}return o.data.data})}function iO(t,e){let r=t.defaults(e);return Object.assign((n,i)=>uje(r,n,i),{defaults:iO.bind(null,r),endpoint:r.endpoint})}var X7t=iO(hAe.request,{headers:{"user-agent":`octokit-graphql.js/${ije} ${RN()}`},method:"POST",url:"/graphql"});function fAe(t){return iO(t,{method:"POST",url:"/graphql"})}var oO="(?:[a-zA-Z0-9_-]+)",gAe="\\.",pAe=new RegExp(`^${oO}${gAe}${oO}${gAe}${oO}$`),lje=pAe.test.bind(pAe);async function dje(t){let e=lje(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"}}function hje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function fje(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=hje(t),e(n)}var mAe=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(dje.bind(null,e),{hook:fje.bind(null,e)})};var aO="7.0.6";var EAe=()=>{},gje=console.warn.bind(console),pje=console.error.bind(console);function mje(t={}){return typeof t.debug!="function"&&(t.debug=EAe),typeof t.info!="function"&&(t.info=EAe),typeof t.warn!="function"&&(t.warn=gje),typeof t.error!="function"&&(t.error=pje),t}var CAe=`octokit-core.js/${aO} ${RN()}`,_N=class{static VERSION=aO;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Hae.Collection,s={baseUrl:AO.request.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} ${CAe}`:CAe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=AO.request.defaults(s),this.graphql=fAe(this.request).defaults(s),this.log=mje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=mAe(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 cO="17.0.0";var Eje={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`)}var $je=class extends Error{constructor(t,e,r){super(Kje(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},Xje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Zje=["query","method","url"],Fce=/\/api\/v3\/?$/;function eKe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Zje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Xje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Fce.test(i)&&(s.url=i.replace(Fce,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new $je(s,a,o.data)}return o.data.data})}function IO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>eKe(r,s,i),{defaults:IO.bind(null,r),endpoint:r.endpoint})}var nJt=IO(Mce.request,{headers:{"user-agent":`octokit-graphql.js/${jje} ${LN()}`},method:"POST",url:"/graphql"});function Lce(t){return IO(t,{method:"POST",url:"/graphql"})}var yO="(?:[a-zA-Z0-9_-]+)",Uce="\\.",Pce=new RegExp(`^${yO}${Uce}${yO}${Uce}${yO}$`),tKe=Pce.test.bind(Pce);async function rKe(t){let e=tKe(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"}}function nKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function sKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=nKe(t),e(s)}var Oce=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(rKe.bind(null,e),{hook:sKe.bind(null,e)})};var BO="7.0.6";var Hce=()=>{},iKe=console.warn.bind(console),oKe=console.error.bind(console);function aKe(t={}){return typeof t.debug!="function"&&(t.debug=Hce),typeof t.info!="function"&&(t.info=Hce),typeof t.warn!="function"&&(t.warn=iKe),typeof t.error!="function"&&(t.error=oKe),t}var Gce=`octokit-core.js/${BO} ${LN()}`,HN=class{static VERSION=BO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new uce.Collection,n={baseUrl:bO.request.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} ${Gce}`:Gce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=bO.request.defaults(n),this.graphql=Lce(this.request).defaults(n),this.log=aKe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Oce(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var QO="17.0.0";var cKe={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr 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 ay(i));return s.searchPaths.push(...mO(s.patterns)),s})}static stat(e,r,s){return BO(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Bm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 Bm.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Bm.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var oKe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function rce(t,e){return oKe(this,void 0,void 0,function*(){return yield ON.create(t,e)})}var jue=fe(Jue(),1);import*as rT from"crypto";import*as Sm from"fs";import*as of from"path";import*as Kue from"util";var fy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(fy||(fy={}));var Tn;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Tn||(Tn={}));var _i;(function(t){t.GNU="gnu",t.BSD="bsd"})(_i||(_i={}));var eT=2,tT=5e3,qO=5e3,YO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,zue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,gy="cache.tar",VO="manifest.txt",UJt=10*Math.pow(1024,3);var wm=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},fZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},gZe="1.0";function py(){return wm(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=of.join(s,"actions","temp")}let r=of.join(e,rT.randomUUID());return yield IN(r),r})}function NA(t){return Sm.statSync(t).size}function WO(t){return wm(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield rce(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=fZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=of.relative(a,n).replace(new RegExp(`\\${of.sep}`,"g"),"/");V(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function my(t){return wm(this,void 0,void 0,function*(){return Kue.promisify(Sm.unlink)(t)})}function $ue(t){return wm(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield bN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){V(n.message)}return s=s.trim(),V(s),s})}function Ey(){return wm(this,void 0,void 0,function*(){let t=yield $ue("zstd",["--quiet"]),e=jue.clean(t);return V(`zstd version: ${e}`),t===""?Tn.Gzip:Tn.ZstdWithoutLong})}function Vl(t){return t===Tn.Gzip?fy.Gzip:fy.Zstd}function Xue(){return wm(this,void 0,void 0,function*(){return Sm.existsSync(YO)?YO:(yield $ue("tar")).toLowerCase().includes("gnu tar")?du("tar"):""})}function JO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Nm(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(gZe),rT.createHash("sha256").update(s.join("|")).digest("hex")}function Zue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as t0 from"fs";import{URL as Wot}from"url";var TA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as pZe}from"node:os";import mZe from"node:util";import EZe from"node:process";function ele(t,...e){EZe.stderr.write(`${mZe.format(t,...e)}${pZe}`)}import Cy from"node:process";function nT(t){return Cy.env[t]}var tle=typeof Cy.versions.deno=="string"&&Cy.versions.deno.length>0,rle=typeof Cy.versions.bun=="string"&&Cy.versions.bun.length>0,iT=!0;var sle=nT("DEBUG"),ile,zO=[],jO=[],oT=[];sle&&KO(sle);var ole=Object.assign(t=>ale(t),{enable:KO,enabled:$O,disable:CZe,log:ele});function KO(t){ile=t,zO=[],jO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?jO.push(r.substring(1)):zO.push(r);for(let r of oT)r.enabled=$O(r.namespace)}function $O(t){if(t.endsWith("*"))return!0;for(let e of jO)if(nle(t,e))return!1;for(let e of zO)if(nle(t,e))return!0;return!1}function nle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function CZe(){let t=ile||"";return KO(""),t}function ale(t){let e=Object.assign(r,{enabled:$O(t),destroy:IZe,log:ole.log,namespace:t,extend:yZe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return oT.push(e),e}function IZe(){let t=oT.indexOf(this);return t>=0?(oT.splice(t,1),!0):!1}function yZe(t){let e=ale(`${this.namespace}:${t}`);return e.log=this.log,e}var Tm=ole;var XO=["verbose","info","warning","error"],Ale={verbose:400,info:300,warning:200,error:100};function cle(t,e){e.log=(...r)=>{t.log(...r)}}function ule(t){return XO.includes(t)}function BZe(t){let e=new Set,r=nT(t.logLevelEnvVarName),s,n=Tm(t.namespace);n.log=(...u)=>{Tm.log(...u)};function i(u){if(u&&!ule(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${XO.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Tm.enable(l.join(","))}r&&(ule(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${XO.join(", ")}.`));function o(u){return!!(s&&Ale[u.level]<=Ale[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(cle(u,d),o(d)){let h=Tm.disable();Tm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return cle(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var lle=BZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),bZe=lle.logger;function Iy(t){return lle.createClientLogger(t)}function aT(t){return t.toLowerCase()}function QZe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*wZe(t){for(let e of t.values())yield[e.name,e.value]}var ZO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(aT(e),{name:e,value:QZe(r)})}get(e){return this._headersMap.get(aT(e))?.value}has(e){return this Line truncated
${xZe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xm(t){return t instanceof xn?!0:Af(t)&&t.name==="RestError"}function Zn(t,e){return Buffer.from(t,e)}import s3 from"node:http";import n3 from"node:https";import fle from"node:zlib";import{Transform as RZe}from"node:stream";var ei=Iy("ts-http-runtime");var DZe={};function yy(t){return t&&typeof t.pipe=="function"}function gle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function ple(t){return t&&typeof t.byteLength=="number"}var uT=class extends RZe{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}},i3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new TA("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new va;ei.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=FZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new uT(f);p.on("error",I=>{ei.error("Error in upload progress",I)}),yy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=kZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?vZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new uT(h);f.on("error",p=>{ei.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await _Ze(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();yy(a)&&(c=gle(a));let u=Promise.resolve();yy(A)&&(u=gle(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ei.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((A,c)=>{let u=i?s3.request(a,A):n3.request(a,A);u.once("error",l=>{c(new xn(l.message,{code:l.code??xn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new TA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&yy(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):ple(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ei.error("Unrecognized body type",s),c(new xn("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?s3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new s3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return n3.globalAgent;let n=e.tlsSettings??DZe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ei.info("No cached TLS Agent exist, creating a new Agent"),i=new n3.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function kZe(t){let e=Fi();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}function vZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=fle.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=fle.createInflate();return t.pipe(s),s}return t}function _Ze(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 xn(`Error reading response as text: ${n.message}`,{code:xn.PARSE_ERROR}))})})}function FZe(t){return t?Buffer.isBuffer(t)?t.length:yy(t)?null:ple(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function mle(){return new i3}function lT(){return mle()}var o3="logPolicy";function dT(t={}){let e=t.logger??ei.info,r=new va({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:o3,asy Line truncated
`;return e}function ntt(t){return t instanceof Uint8Array?t.byteLength:Qy(t)?t.size===-1?void 0:t.size:void 0}function itt(t){let e=0;for(let r of t){let s=ntt(r);if(s===void 0)return;e+=s}return e}async function ott(t,e,r){let s=[Zn(`--${r}`,"utf-8"),...e.flatMap(i=>[Zn(`\r
`,"utf-8"),Zn(stt(i.headers),"utf-8"),Zn(`\r
`,"utf-8"),i.body,Zn(`\r
--${r}`,"utf-8")]),Zn(`--\r
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new hy(i));return n.searchPaths.push(...kO(n.patterns)),n})}static stat(e,r,n){return LO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield wm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 s=yield wm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield wm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var KKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function wAe(t,e){return KKe(this,void 0,void 0,function*(){return yield JN.create(t,e)})}var Ele=fe(ple(),1);import*as AT from"crypto";import*as xm from"fs";import*as cf from"path";import*as Cle from"util";var Iy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Iy||(Iy={}));var Ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ts||(Ts={}));var Fi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fi||(Fi={}));var aT=2,cT=5e3,s3=5e3,i3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,mle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,yy="cache.tar",o3="manifest.txt",qzt=10*Math.pow(1024,3);var Tm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},set=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},iet="1.0";function By(){return Tm(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=cf.join(n,"actions","temp")}let r=cf.join(e,AT.randomUUID());return yield NN(r),r})}function Tc(t){return xm.statSync(t).size}function a3(t){return Tm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield wAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=set(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=cf.relative(a,s).replace(new RegExp(`\\${cf.sep}`,"g"),"/");V(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function by(t){return Tm(this,void 0,void 0,function*(){return Cle.promisify(xm.unlink)(t)})}function Ile(t){return Tm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield RN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){V(s.message)}return n=n.trim(),V(n),n})}function Qy(){return Tm(this,void 0,void 0,function*(){let t=yield Ile("zstd",["--quiet"]),e=Ele.clean(t);return V(`zstd version: ${e}`),t===""?Ts.Gzip:Ts.ZstdWithoutLong})}function Wl(t){return t===Ts.Gzip?Iy.Gzip:Iy.Zstd}function yle(){return Tm(this,void 0,void 0,function*(){return xm.existsSync(i3)?i3:(yield Ile("tar")).toLowerCase().includes("gnu tar")?hu("tar"):""})}function c3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Rm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(iet),AT.createHash("sha256").update(n.join("|")).digest("hex")}function Ble(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as a0 from"fs";import{URL as $at}from"url";var xc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as oet}from"node:os";import aet from"node:util";import cet from"node:process";function ble(t,...e){cet.stderr.write(`${aet.format(t,...e)}${oet}`)}import wy from"node:process";function lT(t){return wy.env[t]}var Qle=typeof wy.versions.deno=="string"&&wy.versions.deno.length>0,wle=typeof wy.versions.bun=="string"&&wy.versions.bun.length>0,dT=!0;var Sle=lT("DEBUG"),Tle,A3=[],u3=[],hT=[];Sle&&l3(Sle);var xle=Object.assign(t=>Rle(t),{enable:l3,enabled:d3,disable:Aet,log:ble});function l3(t){Tle=t,A3=[],u3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?u3.push(r.substring(1)):A3.push(r);for(let r of hT)r.enabled=d3(r.namespace)}function d3(t){if(t.endsWith("*"))return!0;for(let e of u3)if(Nle(t,e))return!1;for(let e of A3)if(Nle(t,e))return!0;return!1}function Nle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function Aet(){let t=Tle||"";return l3(""),t}function Rle(t){let e=Object.assign(r,{enabled:d3(t),destroy:uet,log:xle.log,namespace:t,extend:det});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return hT.push(e),e}function uet(){let t=hT.indexOf(this);return t>=0?(hT.splice(t,1),!0):!1}function det(t){let e=Rle(`${this.namespace}:${t}`);return e.log=this.log,e}var Dm=xle;var h3=["verbose","info","warning","error"],Dle={verbose:400,info:300,warning:200,error:100};function kle(t,e){e.log=(...r)=>{t.log(...r)}}function vle(t){return h3.includes(t)}function het(t){let e=new Set,r=lT(t.logLevelEnvVarName),n,s=Dm(t.namespace);s.log=(...u)=>{Dm.log(...u)};function i(u){if(u&&!vle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${h3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Dm.enable(l.join(","))}r&&(vle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${h3.join(", ")}.`));function o(u){return!!(n&&Dle[u.level]<=Dle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(kle(u,d),o(d)){let h=Dm.disable();Dm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return kle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var _le=het({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),fet=_le.logger;function Sy(t){return _le.createClientLogger(t)}function fT(t){return t.toLowerCase()}function get(t){return String(t).trim().replace(/[\r\n]/g,"")}function*pet(t){for(let e of t.values())yield[e.name,e.value]}var f3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(fT(e),{name:e,value:get(r)})}get(e){return this._headersMap.get(fT(e))?.value}has(e){return this Line truncated
${Iet.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function km(t){return t instanceof xs?!0:uf(t)&&t.name==="RestError"}function Zs(t,e){return Buffer.from(t,e)}import E3 from"node:http";import C3 from"node:https";import Lle from"node:zlib";import{Transform as yet}from"node:stream";var ei=Sy("ts-http-runtime");var Bet={};function Ny(t){return t&&typeof t.pipe=="function"}function Ule(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Ple(t){return t&&typeof t.byteLength=="number"}var mT=class extends yet{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},I3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new xc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new _a;ei.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Net(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new mT(f);p.on("error",I=>{ei.error("Error in upload progress",I)}),Ny(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=bet(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Qet(A,u):A;let h=e.onDownloadProgress;if(h){let f=new mT(h);f.on("error",p=>{ei.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await wet(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ny(a)&&(A=Ule(a));let u=Promise.resolve();Ny(c)&&(u=Ule(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ei.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?E3.request(a,c):C3.request(a,c);u.once("error",l=>{A(new xs(l.message,{code:l.code??xs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new xc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Ny(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ple(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ei.error("Unrecognized body type",n),A(new xs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?E3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new E3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return C3.globalAgent;let s=e.tlsSettings??Bet,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ei.info("No cached TLS Agent exist, creating a new Agent"),i=new C3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function bet(t){let e=Mi();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}function Qet(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Lle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Lle.createInflate();return t.pipe(n),n}return t}function wet(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new xs(`Error reading response as text: ${s.message}`,{code:xs.PARSE_ERROR}))})})}function Net(t){return t?Buffer.isBuffer(t)?t.length:Ny(t)?null:Ple(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Ole(){return new I3}function ET(){return Ole()}var y3="logPolicy";function CT(t={}){let e=t.logger??ei.info,r=new _a({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:y3,asy Line truncated
`;return e}function ztt(t){return t instanceof Uint8Array?t.byteLength:Ry(t)?t.size===-1?void 0:t.size:void 0}function jtt(t){let e=0;for(let r of t){let n=ztt(r);if(n===void 0)return;e+=n}return e}async function Ktt(t,e,r){let n=[Zs(`--${r}`,"utf-8"),...e.flatMap(i=>[Zs(`\r
`,"utf-8"),Zs(Jtt(i.headers),"utf-8"),Zs(`\r
`,"utf-8"),i.body,Zs(`\r
--${r}`,"utf-8")]),Zs(`--\r
\r
`,"utf-8")],n=itt(s);n&&t.headers.set("Content-Length",n),t.body=await cde(s)}var wy="multipartPolicy",att=70,Att=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ctt(t){if(t.length>att)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Att.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function _T(){return{name:wy,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,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ctt(r):r=rtt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ott(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function FT(){return cT()}import{EOL as ltt}from"node:os";import dtt from"node:util";import*as ude from"node:process";function lde(t,...e){ude.stderr.write(`${dtt.format(t,...e)}${ltt}`)}var dde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,hde,Q3=[],w3=[],MT=[];dde&&S3(dde);var fde=Object.assign(t=>gde(t),{enable:S3,enabled:N3,disable:htt,log:lde});function S3(t){hde=t,Q3=[],w3=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?w3.push(new RegExp(`^${s.substr(1)}$`)):Q3.push(new RegExp(`^${s}$`));for(let s of MT)s.enabled=N3(s.namespace)}function N3(t){if(t.endsWith("*"))return!0;for(let e of w3)if(e.test(t))return!1;for(let e of Q3)if(e.test(t))return!0;return!1}function htt(){let t=hde||"";return S3(""),t}function gde(t){let e=Object.assign(r,{enabled:N3(t),destroy:ftt,log:fde.log,namespace:t,extend:gtt});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return MT.push(e),e}function ftt(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function gtt(t){let e=gde(`${this.namespace}:${t}`);return e.log=this.log,e}var Fm=fde;var mde=new Set,LT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,T3,x3=Fm("azure");x3.log=(...t)=>{Fm.log(...t)};var R3=["verbose","info","warning","error"];LT&&(Ide(LT)?ptt(LT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${LT}'; logging is not enabled. Acceptable values: ${R3.join(", ")}.`));function ptt(t){if(t&&!Ide(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${R3.join(",")}`);T3=t;let e=[];for(let r of mde)Cde(r)&&e.push(r.namespace);Fm.enable(e.join(","))}var pde={verbose:400,info:300,warning:200,error:100};function xo(t){let e=x3.extend(t);return Ede(x3,e),{error:UT(e,"error"),warning:UT(e,"warning"),info:UT(e,"info"),verbose:UT(e,"verbose")}}function Ede(t,e){e.log=(...r)=>{t.log(...r)}}function UT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Ede(t,r),Cde(r)){let s=Fm.disable();Fm.enable(s+","+r.namespace)}return mde.add(r),r}function Cde(t){return!!(T3&&pde[t.level]<=pde[T3])}function Ide(t){return R3.includes(t)}var RA=xo("core-rest-pipeline");function D3(t={}){return dT({logger:RA.info,...t})}var k3=kT;function v3(t={}){return vT(t)}import _3 from"node:os";import zl from"node:process";function yde(){return"User-Agent"}async function Bde(t){if(zl&&zl.versions){let e=`${_3.type()} ${_3.release()}; ${_3.arch()}`;zl.versions.bun?t.set("Bun",`${zl.versions.bun} (${e})`):zl.versions.deno?t.set("Deno",`${zl.versions.deno} (${e})`):zl.versions.node&&t.set("Node",`${zl.versions.node} (${e})`)}}var PT="1.24.0";function btt(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function bde(){return yde()}async function OT(t){let e=new Map;e.set("core-rest-pipeline",PT),await Bde(e);let r=btt(e);return t?`${t} ${r}`:r}var Qde=bde(),wde="userAgentPolicy";function F3(t={}){let e=OT(t.userAgentPrefix);return{name:wde,async sendRequest(r,s){return r.headers.has(Qde)||r.headers.set(Qde,await e),s(r)}}}var Sde=Symbol("rawContent");function M3(t){return typeof t[Sde]=="function"}function Nde(t){return M3(t)?t[Sde]():t}var HT=wy;function L3(){let t=_T();return{name:HT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)M3(s.body)&&(s.body=Nde(s.body));return t.sendRequest(e,r)}}}var U3=RT;function P3(){return DT()}function O3(t={}){return gT(t)}function H3(){return pT()}var Sy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function G3(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Sy(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!rst(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Xr("InvalidTag",l,Rn(t,i))}let c=$rt(t,i);if(c===!1)return Xr("InvalidAttr","Attributes for '"+A+"' have open quote.",Rn(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=hhe(u,e);if(d===!0)s=!0;else return Xr(d.err.code,d.err.msg,Rn(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Rn(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+A+"' has not been opened.",Rn(t,o));{let l=r.pop();if(A!==l.tagName){let d=Rn(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Rn(t,o))}r.length==0&&(n=!0)}}else return Xr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Rn(t,i));else{let l=hhe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rn(t,i-u.length+l.err.line));if(n===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rn(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=dhe(t,i);continue}else if(t[i+1]==="?"){if(i=lhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=est(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rn(t,i));i=l}else if(n===!0&&!uhe(t[i]))return Xr("InvalidXml","Extra text at the end",Rn(t,i));t[i]==="<"&&i--}}else{if(uhe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rn(t,i))}if(s){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rn(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function uhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function lhe(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 Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var jrt='"',Krt="'";function $rt(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===jrt||t[e]===Krt)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}}var Xrt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hhe(t,e){let r=XT(t,Xrt),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Xr("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Uy(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Uy(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Uy(r[n]));let i=r[n][2];if(!tst(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Uy(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Uy(r[n]))}return!0}function Zrt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Zrt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function tst(t){return Hm(t)}function rst(t){return Hm(t)}function Rn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Uy(t){return t.startIndex+t[1].length}var fhe=t=>Ly.includes(t)?"__"+t:t,sst={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:fhe};function nst(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ly.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(ZT.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ghe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:ghe(!0)}var phe=function(t){let e=Object.assign({},sst,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:s,name:n}of r)s&&nst(s,n);return e.onDangerousProperty===null&&(e.onDangerousProperty=fhe),e.processEntities=ghe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(s=>typeof s=="string"&&s.startsWith("*.")?".."+s.substring(2):s)),e};var tx;typeof Symbol!="function"?tx="@@xmlMetadata":tx=Symbol("XML Node Metadata");var si=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new si("!xml"),r=e,s="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=new Oy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=gf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=f8(this.options.transformTagName,A,"",this.options).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",i=a}else if(t[i+1]==="?"){let a=g8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new si(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=gf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=n.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=gf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=g8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=f8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},m;m=gst(c),A!==e.tagname&&this.matcher.push(A,{},m),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=fst(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let N=new si(A);p&&(N[":@"]=p),N.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=f8(this.options.transformTagName,A,u,this.options));let y=new si(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new si(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new si(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}s="",i=d}}else s+=t[i];return e.child};function Bst(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))}function bst(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}for(let n of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[n],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,s.maxTotalExpansions&&this.entityExpansionCount>s.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function I8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=kst);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?s.push(new Pi(o)):o instanceof Pi&&s.push(o)}let n=new vA;return yhe(t,e,r,n,s)}function yhe(t,e,r,s,n){let i="",o=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=C8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=bhe(A);if(c===void 0)continue;let u=vst(A[":@"],e);s.push(c,u);let l=Fst(s,n);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=C8(I,e)),o&&(i+=r),i+=I,o=!1,s.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,s.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,s.pop();continue}else if(c[0]==="?"){let I=Ihe(A[":@"],e,l),m=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=m+`<${c}${C}${I}?>`,o=!0,s.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=Ihe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=Bhe(A[c],e):p=yhe(A[c],e,d,s,n),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,s.pop()}return i}function vst(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]=t[n],s=!0}return s?r:null}function Bhe(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=bhe(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 o=_st(n[":@"],e),a=Bhe(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function _st(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)}="${n}"`}return r}function bhe(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}}function Ihe(t,e,r){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i;r?i=t[n]:(i=e.attributeValueProcessor(n,t[n]),i=C8(i,e)),i===!0&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function Fst(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}function C8(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}function y8(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}var Mst={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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};function ii(t){if(this.options=Object.assign({},Mst,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.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Pi(r)):r instanceof Pi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=y8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Pst),this.processTextOrObjNode=Lst,this.options.format?(this.indentate=Ust,this.tagEndChar=`>
`,"utf-8")],s=jtt(n);s&&t.headers.set("Content-Length",s),t.body=await kde(n)}var Dy="multipartPolicy",$tt=70,Xtt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ztt(t){if(t.length>$tt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Xtt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function HT(){return{name:Dy,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Ztt(r):r=Wtt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ktt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function GT(){return pT()}import{EOL as trt}from"node:os";import rrt from"node:util";import*as vde from"node:process";function _de(t,...e){vde.stderr.write(`${rrt.format(t,...e)}${trt}`)}var Fde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Mde,P3=[],O3=[],qT=[];Fde&&H3(Fde);var Lde=Object.assign(t=>Ude(t),{enable:H3,enabled:G3,disable:nrt,log:_de});function H3(t){Mde=t,P3=[],O3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?O3.push(new RegExp(`^${n.substr(1)}$`)):P3.push(new RegExp(`^${n}$`));for(let n of qT)n.enabled=G3(n.namespace)}function G3(t){if(t.endsWith("*"))return!0;for(let e of O3)if(e.test(t))return!1;for(let e of P3)if(e.test(t))return!0;return!1}function nrt(){let t=Mde||"";return H3(""),t}function Ude(t){let e=Object.assign(r,{enabled:G3(t),destroy:srt,log:Lde.log,namespace:t,extend:irt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return qT.push(e),e}function srt(){let t=qT.indexOf(this);return t>=0?(qT.splice(t,1),!0):!1}function irt(t){let e=Ude(`${this.namespace}:${t}`);return e.log=this.log,e}var Um=Lde;var Ode=new Set,YT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,q3,Y3=Um("azure");Y3.log=(...t)=>{Um.log(...t)};var V3=["verbose","info","warning","error"];YT&&(qde(YT)?ort(YT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${YT}'; logging is not enabled. Acceptable values: ${V3.join(", ")}.`));function ort(t){if(t&&!qde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${V3.join(",")}`);q3=t;let e=[];for(let r of Ode)Gde(r)&&e.push(r.namespace);Um.enable(e.join(","))}var Pde={verbose:400,info:300,warning:200,error:100};function Ro(t){let e=Y3.extend(t);return Hde(Y3,e),{error:VT(e,"error"),warning:VT(e,"warning"),info:VT(e,"info"),verbose:VT(e,"verbose")}}function Hde(t,e){e.log=(...r)=>{t.log(...r)}}function VT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Hde(t,r),Gde(r)){let n=Um.disable();Um.enable(n+","+r.namespace)}return Ode.add(r),r}function Gde(t){return!!(q3&&Pde[t.level]<=Pde[q3])}function qde(t){return V3.includes(t)}var Dc=Ro("core-rest-pipeline");function W3(t={}){return CT({logger:Dc.info,...t})}var J3=PT;function z3(t={}){return OT(t)}import j3 from"node:os";import jl from"node:process";function Yde(){return"User-Agent"}async function Vde(t){if(jl&&jl.versions){let e=`${j3.type()} ${j3.release()}; ${j3.arch()}`;jl.versions.bun?t.set("Bun",`${jl.versions.bun} (${e})`):jl.versions.deno?t.set("Deno",`${jl.versions.deno} (${e})`):jl.versions.node&&t.set("Node",`${jl.versions.node} (${e})`)}}var WT="1.24.0";function hrt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Wde(){return Yde()}async function JT(t){let e=new Map;e.set("core-rest-pipeline",WT),await Vde(e);let r=hrt(e);return t?`${t} ${r}`:r}var Jde=Wde(),zde="userAgentPolicy";function K3(t={}){let e=JT(t.userAgentPrefix);return{name:zde,async sendRequest(r,n){return r.headers.has(Jde)||r.headers.set(Jde,await e),n(r)}}}var jde=Symbol("rawContent");function $3(t){return typeof t[jde]=="function"}function Kde(t){return $3(t)?t[jde]():t}var zT=Dy;function X3(){let t=HT();return{name:zT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)$3(n.body)&&(n.body=Kde(n.body));return t.sendRequest(e,r)}}}var Z3=LT;function e8(){return UT()}function t8(t={}){return BT(t)}function r8(){return bT()}var ky=class extends Error{constructor(e){super(e),this.name="AbortError"}};function n8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new ky(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Wnt(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Xr("InvalidTag",l,Rs(t,i))}let A=Hnt(t,i);if(A===!1)return Xr("InvalidAttr","Attributes for '"+c+"' have open quote.",Rs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Mhe(u,e);if(d===!0)n=!0;else return Xr(d.err.code,d.err.msg,Rs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Rs(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+c+"' has not been opened.",Rs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Rs(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Rs(t,o))}r.length==0&&(s=!0)}}else return Xr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Rs(t,i));else{let l=Mhe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rs(t,i-u.length+l.err.line));if(s===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Fhe(t,i);continue}else if(t[i+1]==="?"){if(i=_he(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Ynt(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rs(t,i));i=l}else if(s===!0&&!vhe(t[i]))return Xr("InvalidXml","Extra text at the end",Rs(t,i));t[i]==="<"&&i--}}else{if(vhe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rs(t,i))}if(n){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rs(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function vhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function _he(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 Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Fhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Pnt='"',Ont="'";function Hnt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Pnt||t[e]===Ont)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Gnt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Mhe(t,e){let r=ix(t,Gnt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Yy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Yy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Yy(r[s]));let i=r[s][2];if(!Vnt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Yy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Yy(r[s]))}return!0}function qnt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Ynt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,qnt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Vnt(t){return N8(t)}function Wnt(t){return N8(t)}function Rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Yy(t){return t.startIndex+t[1].length}var Lhe={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:"%",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"},Uhe={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"},Phe={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",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new si("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Jy(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=Jm(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=F8(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=M8(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new si(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Jm(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=Jm(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=M8(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=F8(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=Est(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=mst(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new si(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=F8(s.transformTagName,l,h,s));let O=new si(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new si(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new si(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Qst(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function wst(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function Sst(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}function Nst(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Tst(t,e,r=">"){Line truncated
`;function Mst(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(G8(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function lfe(t,e,r,n,s){return!r.sanitizeName||mf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function H8(t,e){let r="";e.format&&(r=Fst);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Oi(a)):a instanceof Oi&&n.push(a)}let s=Mst(t,e),i=new _c;return dfe(t,e,r,i,n,s)}function dfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=O8(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=G8(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:lfe(u,!1,e,n,i),h=Lst(A[":@"],e);n.push(d,h);let f=Pst(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=O8(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=px(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=gx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=ufe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=ufe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=hfe(A[u],e):C=dfe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Lst(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=ed(t[s]),n=!0}return n?r:null}function hfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=G8(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Ust(s[":@"],e),a=hfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Ust(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${ed(s)}"`}return r}function G8(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}}function ufe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:lfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=O8(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ed(A)}"`}return i}function Pst(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}function O8(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}function q8(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}var Ost={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 oi(t){if(this.options=Object.assign({},Ost,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.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Oi(r)):r instanceof Oi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ii.prototype.build=function(t){if(this.options.preserveOrder)return I8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new vA;return this.j2x(t,0,e).val}};ii.prototype.j2x=function(t,e,r){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(n+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?n+="":a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))s+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?n+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:n+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),n+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)s+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else n+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:s,val:n}};ii.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+'="'+e+'"'};function Lst(t,e,r,s){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,s);return s.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,s):this.buildObjectNode(o.val,e,o.attrStr,r)}ii.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]=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]=t[s],r=!0)}return r?e:null};ii.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.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let n of s)if(typeof n=="string"||typeof n=="number")e+=`<${r}>${n}</${r}>`;else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),i=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${n}</${r}>`}else e+=`<${r}>${s}</${r}>`}return e};ii.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Hst(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function Y8(t,e,r,n,s){return!r.sanitizeName||mf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}oi.prototype.build=function(t){if(this.options.preserveOrder)return H8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new _c,r=Hst(t,this.options);return this.j2x(t,0,e,r).val}};oi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:Y8(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=Y8(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=Y8(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};oi.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+'="'+ed(e)+'"'};function Gst(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}oi.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 s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=ed(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=ed(t[n]),r=!0)}return r?e:null};oi.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===ze.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((n,i)=>dx(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=cx(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ux(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Mr=class extends mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Vy(e,r,this)}computeHMACSHA256(e){return jst("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ef=class extends Error{constructor(e){super(e),this.name="AbortError"}};var gs=xo("storage-common");var Ro;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ro||(Ro={}));var ed={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ro.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kst=new Ef("The operation was aborted."),Wy=class extends _A{retryOptions;constructor(e,r,s=ed){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:ed.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):ed.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:ed.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:ed.maxRetryDelayInMs):ed.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:ed.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:ed.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=Ax(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Zl(n.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gs.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(gs.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return gs.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 o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return gs.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return gs.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gs.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(gs.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 Ro.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ro.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return gs.info(`RetryPolicy: Delay for ${n}ms`),lx(n,s,Kst)}};var Jy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Wy(e,r,this.retryOptions)}};var $st="storageBrowserPolicy";function The(){return{name:$st,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Zl(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Xst="StorageCorrectContentLengthPolicy";function xhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Xst,async sendRequest(e,r){return t(e),r(e)}}}var Zst="storageRetryPolicy",qm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ro.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ent=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],tnt=new Ef("The operation was aborted.");function Rhe(t={}){let e=t.retryPolicyType??qm.retryPolicyType,r=t.maxTries??qm.maxTries,s=t.retryDelayInMs??qm.retryDelayInMs,n=t.maxRetryDelayInMs??qm.maxRetryDelayInMs,i=t.secondaryHost??qm.secondaryHost,o=t.tryTimeoutInMs??qm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return gs.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of ent)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>Nx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Qx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=wx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Mr=class extends If{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Xy(e,r,this)}computeHMACSHA256(e){return eit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var yf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=Ro("storage-common");var Do;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Do||(Do={}));var rd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},tit=new yf("The operation was aborted."),Zy=class extends Fc{retryOptions;constructor(e,r,n=rd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:rd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):rd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:rd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:rd.maxRetryDelayInMs):rd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:rd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:rd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=bx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=td(s.url,yu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(pn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return pn.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(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return pn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Do.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Do.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),Sx(s,n,tit)}};var eB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Zy(e,r,this.retryOptions)}};var rit="storageBrowserPolicy";function Efe(){return{name:rit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=td(t.url,yu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var nit="StorageCorrectContentLengthPolicy";function Cfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:nit,async sendRequest(e,r){return t(e),r(e)}}}var sit="storageRetryPolicy",jm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],oit=new yf("The operation was aborted.");function Ife(t={}){let e=t.retryPolicyType??jm.retryPolicyType,r=t.maxTries??jm.maxTries,n=t.retryDelayInMs??jm.retryDelayInMs,s=t.maxRetryDelayInMs??jm.maxRetryDelayInMs,i=t.secondaryHost??jm.secondaryHost,o=t.tryTimeoutInMs??jm.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of iit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+s(i)+n(i),a=rnt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>dx(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=cx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ux(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:snt,async sendRequest(i,o){return e(i),o(i)}}}var nnt="storageRequestFailureDetailsParserPolicy";function Dhe(){return{name:nnt,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}}}}import{createHmac as int}from"node:crypto";var hx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return int("sha256",this.key).update(e,"utf8").digest("base64")}};var fx="12.31.0",gx="2026-02-06";var px="https://storage.azure.com/.default",yu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var _a="",N8="*",ont=1*1024*1024;var ant=4*ont;var khe="AES256",vhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",_he=["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"],Fhe=["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"],Mhe="BlobUsesCustomerSpecifiedEncryption",Lhe="BlobDoesNotUseCustomerSpecifiedEncryption",Uhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var zy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new zy([],e);return r._credential=t,r}function Ant(t){let e=[cnt,Phe,unt,lnt,dnt,hnt,gnt];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>fnt(n));return{wrappedPolicies:u8(r),afterRetry:s}}}}function T8(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?l8(e):w8(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${fx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Dy({...r,loggingOptions:{additionalAllowedHeaderNames:_he,additionalAllowedQueryParameters:Fhe,logger:sx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:rx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:b8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:U3}),n.addPolicy(xhe()),n.addPolicy(Rhe(r.retryOptions),{phase:"Retry"}),n.addPolicy(Dhe()),n.addPolicy(The());let a=Ant(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=x8(t);Li(A)?n.addPolicy(Pm({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Pa(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}}function cot(t,e){if(t=Nf(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=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,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}}function uot(t,e){if(t=Nf(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=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,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}}function lot(t,e){if(t=Nf(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=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,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}}function dot(t,e){if(t=Nf(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=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,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}}function hot(t,e){if(t=Nf(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=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,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}}function fot(t,e){if(t=Nf(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=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,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}}function Sf(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Nf(t){let e=t.version?t.version:gx;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}var oB=class{_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=Lm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async s=>ve(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!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ve(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!==_a||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==_a||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};Zm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Rf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var fB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Lot=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},rH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);se(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Xfe(t,e,r){return Lot(this,void 0,void 0,function*(){var s;let n=new Oa(t),i=n.getBlockBlobClient(),o=new rH((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),V(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new uR(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as ege from"buffer";import*as ZA from"fs";import*as tge from"stream";import*as rge from"util";var lR=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function dR(t){return t?t>=200&&t<300:!1}function Uot(t){return t?t>=500:!0}function Pot(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Oot(t){return lR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Zfe(t,e,r){return lR(this,arguments,void 0,function*(s,n,i,o=eT,a=tT,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Uot(d)))return l;if(d&&(h=Pot(d),c=`Cache service responded with ${d}`),V(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){V(`${s} - Error is not retryable`);break}yield Oot(a),u++}throw Error(`${s} failed: ${c}`)})}function gB(t,e){return lR(this,arguments,void 0,function*(r,s,n=eT,i=tT){return yield Zfe(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof BA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function e0(t,e){return lR(this,arguments,void 0,function*(r,s,n=eT,i=tT){return yield Zfe(r,s,o=>o.message.statusCode,n,i)})}var Fo=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Hot(t,e){return Fo(this,void 0,void 0,function*(){yield rge.promisify(tge.pipeline)(t.message,e)})}var hR=class{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){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);se(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function oH(t,e,r){return ai(this,void 0,void 0,function*(){let s=new Wot(t),n=oge(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield nge(t,e,n):n.concurrentBlobDownloads?yield sge(t,e,n):yield fR(t,e):yield fR(t,e)})}function hge(t,e,r){return ai(this,void 0,void 0,function*(){let s=iH(),n=Nm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield gB("reserveCache",()=>ai(this,void 0,void 0,function*(){return s.postJson(mB("caches"),i)}))})}function lge(t,e){return`bytes ${t}-${e}/*`}function Kot(t,e,r,s,n){return ai(this,void 0,void 0,function*(){V(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${lge(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":lge(s,n)},o=yield e0(`uploadChunk (start: ${s}, end: ${n})`,()=>ai(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!dR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function $ot(t,e,r,s){return ai(this,void 0,void 0,function*(){let n=NA(r),i=mB(`caches/${e.toString()}`),o=t0.openSync(r,"r"),a=sH(s),A=JO("uploadConcurrency",a.uploadConcurrency),c=JO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ai(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield Kot(t,i,()=>t0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{t0.closeSync(o)}})}function Xot(t,e,r){return ai(this,void 0,void 0,function*(){let s={size:r};return yield gB("commitCache",()=>ai(this,void 0,void 0,function*(){return t.postJson(mB(`caches/${e.toString()}`),s)}))})}function aH(t,e,r,s){return ai(this,void 0,void 0,function*(){if(sH(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Xfe(r,e,s)}else{let i=iH();V("Upload cache"),yield $ot(i,t,e,s),V("Commiting cache");let o=NA(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Xot(i,t,o);if(!dR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var ope=fe(XH(),1),ts=fe(At(),1),Gi=fe(At(),1),Ff=fe(At(),1),Mf=fe(At(),1),Lf=fe(At(),1);var r9=fe(At(),1),s9=fe(At(),1),spe=fe(At(),1),npe=fe(At(),1),ipe=fe(At(),1);var ZH=fe(At(),1),e9=fe(At(),1),epe=fe(At(),1),tpe=fe(At(),1),rpe=fe(At(),1),t9=class extends rpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,tpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,epe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?e9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,ZH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,ZH.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?e9.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},tD=new t9;var n9=class extends ipe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>tD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,npe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,spe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(tD.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?s9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,r9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)tD.internalBinaryWrite(e.scope[i],r.tag(2,r9.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?s9.UnknownFieldHandler.onWrite Line truncated
`));let s=yield C9(r,"create");yield I9(s,t)})}var E0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},qa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},m0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},nD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function upe(t){if(!t||t.length===0)throw new qa("Path Validation Error: At least one directory or file path is required")}function b9(t){if(t.length>512)throw new qa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qa(`Key Validation Error: ${t} cannot contain commas.`)}function lpe(){return pB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function dpe(t,e,r,s){return E0(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=pB();return V(`Cache service version: ${c}`),upe(n),c==="v2"?yield gct(n,i,o,a,A):yield fct(n,i,o,a,A)})}function fct(t,e,r,s){return E0(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(c)),c.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)b9(d);let u=yield Ey(),l="";try{let d=yield dge(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),d.cacheKey;l=vB.join(yield py(),Vl(u)),V(`Archive Path: ${l}`),yield oH(d.archiveLocation,l,a),Pl()&&(yield kB(l,u));let h=NA(l);return se(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield y9(l,u),se("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===qa.name)throw d;h instanceof BA&&typeof h.statusCode=="number"&&h.statusCode>=500?yo(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{yield my(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function gct(t,e,r,s){return E0(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(c)),c.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)b9(l);let u="";try{let l=E9(),d=yield Ey(),h={key:i,restoreKeys:o,version:Nm(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?se(`Cache hit for restore-key: ${f.matchedKey}`):se(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return se("Lookup only - skipping download"),f.matchedKey;u=vB.join(yield py(),Vl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield oH(f.signedDownloadUrl,u,a);let I=NA(u);return se(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pl()&&(yield kB(u,d)),yield y9(u,d),se("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===qa.name)throw l;d instanceof BA&&typeof d.statusCode=="number"&&d.statusCode>=500?yo(`Failed to restore: ${l.message}`):Ze(`Failed to restore: ${l.message}`)}finally{try{u&&(yield my(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function hpe(t,e,r){return E0(this,arguments,void 0,function*(s,n,i,o=!1){let a=pB();return V(`Cache service version: ${a}`),upe(s),b9(n),a==="v2"?yield mct(s,n,i,o):yield pct(s,n,i,o)})}function pct(t,e,r){return E0(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield Ey(),h=-1,f=yield WO(s);if(V("Cache Paths:"),V(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield py(),I=vB.join(p,Vl(d));V(`Archive Path: ${I}`);try{yield B9(p,f,d),Pl()&&(yield kB(I,d));let m=10*1024*1024*1024,C=NA(I);if(V(`File Size: ${C}`),C>m&&!nH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield hge(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new m0(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield aH(h,I,"",i)}catch(m){let C=m;if(C.name===qa.name)throw m;C.name Line truncated
`+n(i)+s(i),a=ait("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Nx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Qx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=wx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:cit,async sendRequest(i,o){return e(i),o(i)}}}var Ait="storageRequestFailureDetailsParserPolicy";function yfe(){return{name:Ait,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}}}}import{createHmac as uit}from"node:crypto";var Tx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return uit("sha256",this.key).update(e,"utf8").digest("base64")}};var xx="12.31.0",Rx="2026-02-06";var Dx="https://storage.azure.com/.default",Bu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fa="",K8="*",lit=1*1024*1024;var dit=4*lit;var Bfe="AES256",bfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Qfe=["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"],wfe=["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"],Sfe="BlobUsesCustomerSpecifiedEncryption",Nfe="BlobDoesNotUseCustomerSpecifiedEncryption",Tfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function bu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var tB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new tB([],e);return r._credential=t,r}function hit(t){let e=[fit,xfe,git,pit,mit,Eit,Iit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Cit(s));return{wrappedPolicies:w8(r),afterRetry:n}}}}function $8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?S8(e):z8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${xx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Ly({...r,loggingOptions:{additionalAllowedHeaderNames:Qfe,additionalAllowedQueryParameters:wfe,logger:Ex.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:mx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:W8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Z3}),s.addPolicy(Cfe()),s.addPolicy(Ife(r.retryOptions),{phase:"Retry"}),s.addPolicy(yfe()),s.addPolicy(Efe());let a=hit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=X8(t);Ui(c)?s.addPolicy(Gm({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Oa(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function fat(t,e){if(t=Rf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",xf(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function gat(t,e){if(t=Rf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",xf(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function pat(t,e){if(t=Rf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",xf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function mat(t,e){if(t=Rf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",xf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Eat(t,e){if(t=Rf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",xf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Cat(t,e){if(t=Rf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",xf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Oa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function xf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Rf(t){let e=t.version?t.version:Rx;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}var hB=class{_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=Om()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fa||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==Fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fa||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fa||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==Fa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fa||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};i0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var vf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};vf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var yB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Gat=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},wH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ne(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Gge(t,e,r){return Gat(this,void 0,void 0,function*(){var n;let s=new Ha(t),i=s.getBlockBlobClient(),o=new wH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),V(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new wR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Yge from"buffer";import*as eA from"fs";import*as Vge from"stream";import*as Wge from"util";var SR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function NR(t){return t?t>=200&&t<300:!1}function qat(t){return t?t>=500:!0}function Yat(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Vat(t){return SR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function qge(t,e,r){return SR(this,arguments,void 0,function*(n,s,i,o=aT,a=cT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!qat(d)))return l;if(d&&(h=Yat(d),A=`Cache service responded with ${d}`),V(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){V(`${n} - Error is not retryable`);break}yield Vat(a),u++}throw Error(`${n} failed: ${A}`)})}function BB(t,e){return SR(this,arguments,void 0,function*(r,n,s=aT,i=cT){return yield qge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof bc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function o0(t,e){return SR(this,arguments,void 0,function*(r,n,s=aT,i=cT){return yield qge(r,n,o=>o.message.statusCode,s,i)})}var Mo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Wat(t,e){return Mo(this,void 0,void 0,function*(){yield Wge.promisify(Vge.pipeline)(t.message,e)})}var TR=class{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){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ne(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function xH(t,e,r){return ci(this,void 0,void 0,function*(){let n=new $at(t),s=Kge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield zge(t,e,s):s.concurrentBlobDownloads?yield Jge(t,e,s):yield xR(t,e):yield xR(t,e)})}function npe(t,e,r){return ci(this,void 0,void 0,function*(){let n=TH(),s=Rm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield BB("reserveCache",()=>ci(this,void 0,void 0,function*(){return n.postJson(QB("caches"),i)}))})}function tpe(t,e){return`bytes ${t}-${e}/*`}function tct(t,e,r,n,s){return ci(this,void 0,void 0,function*(){V(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${tpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":tpe(n,s)},o=yield o0(`uploadChunk (start: ${n}, end: ${s})`,()=>ci(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!NR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function rct(t,e,r,n){return ci(this,void 0,void 0,function*(){let s=Tc(r),i=QB(`caches/${e.toString()}`),o=a0.openSync(r,"r"),a=SH(n),c=c3("uploadConcurrency",a.uploadConcurrency),A=c3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ci(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield tct(t,i,()=>a0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{a0.closeSync(o)}})}function nct(t,e,r){return ci(this,void 0,void 0,function*(){let n={size:r};return yield BB("commitCache",()=>ci(this,void 0,void 0,function*(){return t.postJson(QB(`caches/${e.toString()}`),n)}))})}function RH(t,e,r,n){return ci(this,void 0,void 0,function*(){if(SH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Gge(r,e,n)}else{let i=TH();V("Upload cache"),yield rct(i,t,e,n),V("Commiting cache");let o=Tc(e);ne(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield nct(i,t,o);if(!NR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ne("Cache saved successfully")}})}var Kpe=fe(y9(),1),tn=fe(ct(),1),qi=fe(ct(),1),Uf=fe(ct(),1),Pf=fe(ct(),1),Of=fe(ct(),1);var w9=fe(ct(),1),S9=fe(ct(),1),Jpe=fe(ct(),1),zpe=fe(ct(),1),jpe=fe(ct(),1);var B9=fe(ct(),1),b9=fe(ct(),1),Ype=fe(ct(),1),Vpe=fe(ct(),1),Wpe=fe(ct(),1),Q9=class extends Wpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Vpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ype.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?b9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,B9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,B9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?b9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},pD=new Q9;var N9=class extends jpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>pD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Jpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(pD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?S9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,w9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)pD.internalBinaryWrite(e.scope[i],r.tag(2,w9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?S9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield G9(r,"create");yield q9(n,t)})}var Q0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ya=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},b0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},CD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function eme(t){if(!t||t.length===0)throw new Ya("Path Validation Error: At least one directory or file path is required")}function W9(t){if(t.length>512)throw new Ya(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ya(`Key Validation Error: ${t} cannot contain commas.`)}function tme(){return bB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function rme(t,e,r,n){return Q0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=bB();return V(`Cache service version: ${A}`),eme(s),A==="v2"?yield Iut(s,i,o,a,c):yield Cut(s,i,o,a,c)})}function Cut(t,e,r,n){return Q0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)W9(d);let u=yield Qy(),l="";try{let d=yield rpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ne("Lookup only - skipping download"),d.cacheKey;l=OB.join(yield By(),Wl(u)),V(`Archive Path: ${l}`),yield xH(d.archiveLocation,l,a),Ol()&&(yield PB(l,u));let h=Tc(l);return ne(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Y9(l,u),ne("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Ya.name)throw d;h instanceof bc&&typeof h.statusCode=="number"&&h.statusCode>=500?Bo(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{yield by(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function Iut(t,e,r,n){return Q0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)W9(l);let u="";try{let l=H9(),d=yield Qy(),h={key:i,restoreKeys:o,version:Rm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?ne(`Cache hit for restore-key: ${f.matchedKey}`):ne(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ne("Lookup only - skipping download"),f.matchedKey;u=OB.join(yield By(),Wl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield xH(f.signedDownloadUrl,u,a);let I=Tc(u);return ne(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Ol()&&(yield PB(u,d)),yield Y9(u,d),ne("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Ya.name)throw l;d instanceof bc&&typeof d.statusCode=="number"&&d.statusCode>=500?Bo(`Failed to restore: ${l.message}`):Ze(`Failed to restore: ${l.message}`)}finally{try{u&&(yield by(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function nme(t,e,r){return Q0(this,arguments,void 0,function*(n,s,i,o=!1){let a=bB();return V(`Cache service version: ${a}`),eme(n),W9(s),a==="v2"?yield But(n,s,i,o):yield yut(n,s,i,o)})}function yut(t,e,r){return Q0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Qy(),h=-1,f=yield a3(n);if(V("Cache Paths:"),V(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield By(),I=OB.join(p,Wl(d));V(`Archive Path: ${I}`);try{yield V9(p,f,d),Ol()&&(yield PB(I,d));let m=10*1024*1024*1024,C=Tc(I);if(V(`File Size: ${C}`),C>m&&!NH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield npe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new b0(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield RH(h,I,"",i)}catch(m){let C=m;if(C.name===Ya.name)throw m;C.name Line truncated
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,n=dD(),i=bo(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")Ze(wct(o));else throw o}}function wct(t){let e=`Failed to generate PR comment.
${t}`,s=ND(),i=Qo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Ze(Rut(o));else throw o}}function Rut(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function Sct(t){return`${Tct()}
${Rct(t)}`}function Nct(){let t=mpe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function Tct(){let t=ppe();return t.length===0?"":`
`:e}function Dut(t){return`${vut()}
${Fut(t)}`}function kut(){let t=ame();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function vut(){let t=ome();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${oD()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${yD()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${xct(e)}</li>`).join("")}
${t.map(e=>`<li>${_ut(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function xct(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Rct(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function _ut(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Fut(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -271,83 +271,83 @@ This job uses deprecated functionality from the <code>${oD()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>kct(e)).join("")}
</tr>${t.map(e=>Lut(e)).join("")}
</table>
`}function Dct(t){return t.some(e=>e.buildFailed)}function kct(t){return`
`}function Mut(t){return t.some(e=>e.buildFailed)}function Lut(t){return`
<tr>
<td>${ype(t.rootProjectName,30)}</td>
<td>${ype(t.requestedTasks,60)}</td>
<td>${lme(t.rootProjectName,30)}</td>
<td>${lme(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${vct(t)}</td>
<td>${_ct(t)}</td>
</tr>`}function vct(t){return t.buildFailed?":x:":":white_check_mark:"}function _ct(t){return t.buildScanFailed?w9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?w9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):w9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function w9({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function ype(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var bpe=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Po from"fs";import*as Du from"path";function Qpe(){return Spe().map(e=>{let r=Po.readFileSync(e,"utf8"),s=JSON.parse(r);return Lct(e,s),s})}function wpe(){Spe().forEach(Pct)}function Spe(){let t=Du.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Po.existsSync(t)?Po.readdirSync(t).map(e=>Du.resolve(t,e)).filter(e=>Du.extname(e)===".json"&&!Uct(e)):[]}function Lct(t,e){let r=Du.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Po.existsSync(r))return;let s=Du.resolve(r,Du.basename(t));if(Po.existsSync(s)){let n=Po.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function Uct(t){let e=`${t}.processed`;return Po.existsSync(e)}function Pct(t){let e=`${t}.processed`;Po.writeFileSync(e,"")}import*as ome from"fs";import*as ame from"path";import{pathToFileURL as elt}from"url";import*as B0 from"fs";function S9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as pD from"path";import*as I0 from"path";import Pf from"assert";var ud=process.platform==="win32";function vu(t){if(t=ku(t),ud&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=I0.dirname(t);return ud&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ku(e)),e}function hD(t,e){if(Pf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Pf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),LB(e))return e;if(ud){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Pf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ya(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Pf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Pf(LB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||ud&&t.endsWith("\\")||(t+=I0.sep),t+e}function LB(t){return Pf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ya(t),ud?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function UB(t){return Pf(t,"isRooted parameter 'itemPath' must not be empty"),t=Ya(t),ud?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ya(t){return t=t||"",ud?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ku(t){return t?(t=Ya(t),!t.endsWith(I0.sep)||t===I0.sep||ud&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Va;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Va||(Va={}));var Npe=process.platform==="win32";function T9(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Npe?s.sea Line truncated
<td align='center'>${Uut(t)}</td>
<td>${Put(t)}</td>
</tr>`}function Uut(t){return t.buildFailed?":x:":":white_check_mark:"}function Put(t){return t.buildScanFailed?z9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?z9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):z9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function z9({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function lme(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var hme=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Oo from"fs";import*as ku from"path";function fme(){return pme().map(e=>{let r=Oo.readFileSync(e,"utf8"),n=JSON.parse(r);return Gut(e,n),n})}function gme(){pme().forEach(Yut)}function pme(){let t=ku.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Oo.existsSync(t)?Oo.readdirSync(t).map(e=>ku.resolve(t,e)).filter(e=>ku.extname(e)===".json"&&!qut(e)):[]}function Gut(t,e){let r=ku.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Oo.existsSync(r))return;let n=ku.resolve(r,ku.basename(t));if(Oo.existsSync(n)){let s=Oo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function qut(t){let e=`${t}.processed`;return Oo.existsSync(e)}function Yut(t){let e=`${t}.processed`;Oo.writeFileSync(e,"")}import*as Kme from"fs";import*as $me from"path";import{pathToFileURL as idt}from"url";import*as T0 from"fs";function j9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as DD from"path";import*as S0 from"path";import Gf from"assert";var dd=process.platform==="win32";function _u(t){if(t=vu(t),dd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=S0.dirname(t);return dd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=vu(e)),e}function TD(t,e){if(Gf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Gf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),YB(e))return e;if(dd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Gf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Va(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Gf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Gf(YB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||dd&&t.endsWith("\\")||(t+=S0.sep),t+e}function YB(t){return Gf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Va(t),dd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function VB(t){return Gf(t,"isRooted parameter 'itemPath' must not be empty"),t=Va(t),dd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Va(t){return t=t||"",dd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function vu(t){return t?(t=Va(t),!t.endsWith(S0.sep)||t===S0.sep||dd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Wa;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Wa||(Wa={}));var mme=process.platform==="win32";function $9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=mme?n.sea 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 qB(i));return s.searchPaths.push(...T9(s.patterns)),s})}static stat(e,r,s){return F9(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield B0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 B0.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield B0.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as M9 from"crypto";import*as mD from"fs";import*as Kpe from"stream";import*as $pe from"util";import*as Xpe from"path";var Kut=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},$ut=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Zpe(t,e){return Kut(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?se:V,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=M9.createHash("sha256"),f=0;try{for(var p=!0,I=$ut(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${Xpe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(mD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=M9.createHash("sha256");yield $pe.promisify(Kpe.pipeline)(mD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var eme=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function L9(t,e){return eme(this,void 0,void 0,function*(){return yield gD.create(t,e)})}function tme(t){return eme(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield L9(e,{followSymbolicLinks:i});return Zpe(o,r,n)})}import*as P9 from"path";var sme="BASIC_CACHE_PRIMARY_KEY",U9="BASIC_CACHE_RESTORED_KEY",Xut="setup-java",nme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],ED=class{async restore(e,r){let s=ime(e),n=await Zut();ZI(sme,n);try{let i=await dpe(s,n);i?(ZI(U9,i),se(`Basic caching restored from cache key: ${i}`)):se("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){if(s.readOnly){let a=wA(U9);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let n=wA(sme);if(wA(U9)===n)return se(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),`Basic caching restored entry with key \`${n}\`. Save was skipped.`;let o=ime(e);try{return await hpe(o,n),se(`Basic caching saved entry with key: ${n}`),`Basic caching saved entry with key \`${n}\`.`}catch(a){return Ze(`Basic caching failed to save entry with key \`${n}\`: ${a}`),`Basic caching save failed: ${a}`}}};function ime(t){return[P9.join(t,"caches"),P9.join(t,"wrapper")]}async function Zut(){let t=await tme(nme.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${nme}], make sure you have checked out the target repository`);return`${Xut}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var tlt=`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new KB(i));return n.searchPaths.push(...$9(n.patterns)),n})}static stat(e,r,n){return sG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield T0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 s=yield T0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield T0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as iG from"crypto";import*as kD from"fs";import*as Ome from"stream";import*as Hme from"util";import*as Gme from"path";var tdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},rdt=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function qme(t,e){return tdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ne:V,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=iG.createHash("sha256"),f=0;try{for(var p=!0,I=rdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Gme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(kD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=iG.createHash("sha256");yield Hme.promisify(Ome.pipeline)(kD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Yme=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function oG(t,e){return Yme(this,void 0,void 0,function*(){return yield RD.create(t,e)})}function Vme(t){return Yme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield oG(e,{followSymbolicLinks:i});return qme(o,r,s)})}import*as cG from"path";var Jme="BASIC_CACHE_PRIMARY_KEY",aG="BASIC_CACHE_RESTORED_KEY",ndt="setup-java",zme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],vD=class{async restore(e,r){let n=jme(e),s=await sdt();iy(Jme,s);try{let i=await rme(n,s);i?(iy(aG,i),ne(`Basic caching restored from cache key: ${i}`)):ne("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=Sc(aG);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=Sc(Jme);if(Sc(aG)===s)return ne(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=jme(e);try{return await nme(o,s),ne(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return Ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function jme(t){return[cG.join(t,"caches"),cG.join(t,"wrapper")]}async function sdt(){let t=await Vme(zme.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${zme}], make sure you have checked out the target repository`);return`${ndt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var odt=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,rlt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",slt=`
`,adt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",cdt=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,nlt="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",ilt=`
`,Adt="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",udt=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,H9=class{async restore(e,r){}async save(e,r,s){return tlt}},CD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,s){return`${await this.delegate.save(e,r,s)}
${this.summary}`}};async function Ame(t){if(t.isCacheDisabled())return O9("Cache is disabled: will not restore state from previous builds."),new H9;if(t.getCacheProvider()==="basic")return O9(nlt),new CD(new ED,ilt);O9(rlt);let e=await olt();return t.isCacheLicenseAccepted()?e:new CD(e,slt)}async function olt(){let t=alt();return await import(elt(t).href)}function alt(){let t=import.meta.dirname,e=ame.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(ome.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function O9(t){console.info(t)}import*as hme from"util";var flt=fe(dme(),1);import*as G9 from"fs";var Gfr=hme.promisify(G9.readdir);var plt={_useHtmlParser2:!1};function b0(t,e){if(!t)return e??plt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var dG={};Ia(dG,{contains:()=>_D,extract:()=>udt,html:()=>odt,merge:()=>Mme,parseHTML:()=>Adt,root:()=>cdt,text:()=>jf,xml:()=>adt});var md={};Ia(md,{DocumentPosition:()=>qo,append:()=>Glt,appendChild:()=>Hlt,compareDocumentPosition:()=>kme,existsOne:()=>Rme,filter:()=>T0,find:()=>RD,findAll:()=>Wlt,findOne:()=>DD,findOneChild:()=>Vlt,getAttributeValue:()=>Llt,getChildren:()=>N0,getElementById:()=>Klt,getElements:()=>jlt,getElementsByClassName:()=>$lt,getElementsByTagName:()=>zf,getElementsByTagType:()=>Xlt,getFeed:()=>lG,getInnerHTML:()=>Mlt,getName:()=>Plt,getOuterHTML:()=>Tme,getParent:()=>xme,getSiblings:()=>cG,getText:()=>ND,hasAttrib:()=>Ult,hasChildren:()=>tr,innerText:()=>jB,isCDATA:()=>Q0,isComment:()=>Jf,isDocument:()=>Go,isTag:()=>Qe,isText:()=>li,nextElementSibling:()=>TD,prepend:()=>Ylt,prependChild:()=>qlt,prevElementSibling:()=>xD,removeElement:()=>Lu,removeSubsets:()=>Zlt,replaceElement:()=>Olt,testElement:()=>zlt,textContent:()=>Mu,uniqueSort:()=>gd});var Ho={};Ia(Ho,{CDATA:()=>$9,Comment:()=>J9,Directive:()=>W9,Doctype:()=>X9,ElementType:()=>bt,Root:()=>Y9,Script:()=>z9,Style:()=>j9,Tag:()=>K9,Text:()=>V9,isTag:()=>q9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function q9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var Y9=bt.Root,V9=bt.Text,W9=bt.Directive,J9=bt.Comment,z9=bt.Script,j9=bt.Style,K9=bt.Tag,$9=bt.CDATA,X9=bt.Doctype;var ID=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return w0(this,e)}},VB=class extends ID{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},ic=class extends VB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Yf=class extends VB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Vf=class extends VB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},WB=class extends ID{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},JB=class extends WB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Yi=class extends WB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Wf=class extends WB{constructor(e,r,s=[],n=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}})}};function Qe(t){return q9(t)}function Q0(t){return t.type===bt.CDATA}function li(t){return t.type===bt.Text}function Jf(t){return t.type===bt.Comment}function yD(t){return t.type===bt.Directive}function Go(t){return t.type===bt.Root}function tr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function w0(t,e=!1){let r;if(li(t))r=new ic(t.data);else if(Jf(t))r=new Yf(t.data);else if(Qe(t)){let s=e?Z9(t.children):[],n=new Wf(t.name,{...t.attribs},s);s.forEach(i=>i.parent=n),t.namespace!=null&&(n.namespace=t.namespace),t["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=n}else if(Q0(t)){let s=e?Z9(t.children):[],n=new JB(s);s.forEach(i=>i.parent=n),r=n}else i Line truncated
`:ND(t.children):Q0(t)?ND(t.children):li(t)?t.data:""}function Mu(t){return Array.isArray(t)?t.map(Mu).join(""):tr(t)&&!Jf(t)?Mu(t.children):li(t)?t.data:""}function jB(t){return Array.isArray(t)?t.map(jB).join(""):tr(t)&&(t.type===bt.Tag||Q0(t))?jB(t.children):li(t)?t.data:""}function N0(t){return tr(t)?t.children:[]}function xme(t){return t.parent||null}function cG(t){let e=xme(t);if(e!=null)return N0(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function Llt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Ult(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Plt(t){return t.name}function TD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function xD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Lu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Olt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Hlt(t,e){if(Lu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Glt(t,e){Lu(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function qlt(t,e){if(Lu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Ylt(t,e){Lu(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function T0(t,e,r=!0,s=1/0){return RD(t,Array.isArray(e)?e:[e],r,s)}function RD(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Vlt(t,e){return e.find(t)}function DD(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=DD(t,i.children,!0);if(o)return o}}return null}function Rme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&Rme(t,r.children))}function Wlt(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var kD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>li(e)&&t(e.data):e=>li(e)&&e.data===t}};function uG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Jlt(t,e){return r=>t(r)||e(r)}function Dme(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(kD,r)?kD[r](s):uG(r,s)});return e.length===0?null:e.reduce(Jlt)}function zlt(t,e){let r=Dme(t);return r?r(e):!0}function jlt(t,e,r,s=1/0){let n=Dme(t);return n?T0(n,e,r,s):[]}function Klt(t,e,r=!0){return Array.isArray(e)||(e=[e]),DD(uG("id",t),e,r)}function zf(t,e,r=!0,s=1/0){return T0(kD.tag_name(t),e,r,s)}function $lt(t,e,r=!0,s=1/0){return T0(uG("class",t),e,r,s)}function Xlt(t,e,r=!0,s=1/0){return T0(kD.tag_type(t),e,r,s)}function Zlt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var qo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(qo||(qo={}));function kme(t,e){let r=[],s=[];if(t===e)return 0;let n=tr(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=tr(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return qo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?qo.FOLLOWING|qo.CONTAINED_BY:qo.FOLLOWING:a===t?qo.PRECEDING|qo.CONTAINS:qo.PRECEDING}function gd(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=kme(e,r);return s&qo.PRECEDING?-1:s&qo.FOLLOWING?1:0}),t}function lG(t){let e=vD(ndt,t);return e?e.name==="feed"?edt(e):tdt(e):null}function edt(t){var e;let r=t.children,s={type:"atom",items:zf("entry",r).map(o=>{var a;let{children:A}=o,c={media:vme(A)};di(c,"id","id",A),di(c,"title","title",A);let u=(a=vD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=pd("summary",A)||pd("conten Line truncated
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,uG=class{async restore(e,r){}async save(e,r,n){return odt}},_D=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function Xme(t){if(t.isCacheDisabled())return AG("Cache is disabled: will not restore state from previous builds."),new uG;if(t.getCacheProvider()==="basic")return AG(Adt),new _D(new vD,udt);AG(adt);let e=await ldt();return t.isCacheLicenseAccepted()?e:new _D(e,cdt)}async function ldt(){let t=ddt();return await import(idt(t).href)}function ddt(){let t=import.meta.dirname,e=$me.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Kme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function AG(t){console.info(t)}import*as n0e from"util";var Cdt=fe(r0e(),1);import*as lG from"fs";var hpr=n0e.promisify(lG.readdir);var ydt={_useHtmlParser2:!1};function x0(t,e){if(!t)return e??ydt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var FG={};ya(FG,{contains:()=>jD,extract:()=>ght,html:()=>lht,merge:()=>S0e,parseHTML:()=>hht,root:()=>fht,text:()=>Xf,xml:()=>dht});var Cd={};ya(Cd,{DocumentPosition:()=>Yo,append:()=>Jdt,appendChild:()=>Wdt,compareDocumentPosition:()=>B0e,existsOne:()=>I0e,filter:()=>_0,find:()=>VD,findAll:()=>$dt,findOne:()=>WD,findOneChild:()=>Kdt,getAttributeValue:()=>Gdt,getChildren:()=>v0,getElementById:()=>tht,getElements:()=>eht,getElementsByClassName:()=>rht,getElementsByTagName:()=>$f,getElementsByTagType:()=>nht,getFeed:()=>_G,getInnerHTML:()=>Hdt,getName:()=>Ydt,getOuterHTML:()=>E0e,getParent:()=>C0e,getSiblings:()=>kG,getText:()=>GD,hasAttrib:()=>qdt,hasChildren:()=>tr,innerText:()=>rb,isCDATA:()=>R0,isComment:()=>Kf,isDocument:()=>qo,isTag:()=>Qe,isText:()=>di,nextElementSibling:()=>qD,prepend:()=>jdt,prependChild:()=>zdt,prevElementSibling:()=>YD,removeElement:()=>Uu,removeSubsets:()=>sht,replaceElement:()=>Vdt,testElement:()=>Zdt,textContent:()=>Lu,uniqueSort:()=>md});var Go={};ya(Go,{CDATA:()=>IG,Comment:()=>pG,Directive:()=>gG,Doctype:()=>yG,ElementType:()=>bt,Root:()=>hG,Script:()=>mG,Style:()=>EG,Tag:()=>CG,Text:()=>fG,isTag:()=>dG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function dG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var hG=bt.Root,fG=bt.Text,gG=bt.Directive,pG=bt.Comment,mG=bt.Script,EG=bt.Style,CG=bt.Tag,IG=bt.CDATA,yG=bt.Doctype;var FD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return D0(this,e)}},XB=class extends FD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},oA=class extends XB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Jf=class extends XB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},zf=class extends XB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},ZB=class extends FD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},eb=class extends ZB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Vi=class extends ZB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},jf=class extends ZB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}})}};function Qe(t){return dG(t)}function R0(t){return t.type===bt.CDATA}function di(t){return t.type===bt.Text}function Kf(t){return t.type===bt.Comment}function MD(t){return t.type===bt.Directive}function qo(t){return t.type===bt.Root}function tr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function D0(t,e=!1){let r;if(di(t))r=new oA(t.data);else if(Kf(t))r=new Jf(t.data);else if(Qe(t)){let n=e?BG(t.children):[],s=new jf(t.name,{...t.attribs},n);n.forEach(i=>i.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=s}else if(R0(t)){let n=e?BG(t.children):[],s=new eb(n);n.forEach(i=>i.parent=s),r=s}else i Line truncated
`:GD(t.children):R0(t)?GD(t.children):di(t)?t.data:""}function Lu(t){return Array.isArray(t)?t.map(Lu).join(""):tr(t)&&!Kf(t)?Lu(t.children):di(t)?t.data:""}function rb(t){return Array.isArray(t)?t.map(rb).join(""):tr(t)&&(t.type===bt.Tag||R0(t))?rb(t.children):di(t)?t.data:""}function v0(t){return tr(t)?t.children:[]}function C0e(t){return t.parent||null}function kG(t){let e=C0e(t);if(e!=null)return v0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Gdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function qdt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ydt(t){return t.name}function qD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function YD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Uu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Vdt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Wdt(t,e){if(Uu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Jdt(t,e){Uu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function zdt(t,e){if(Uu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function jdt(t,e){Uu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function _0(t,e,r=!0,n=1/0){return VD(t,Array.isArray(e)?e:[e],r,n)}function VD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Kdt(t,e){return e.find(t)}function WD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=WD(t,i.children,!0);if(o)return o}}return null}function I0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&I0e(t,r.children))}function $dt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var JD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>di(e)&&t(e.data):e=>di(e)&&e.data===t}};function vG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Xdt(t,e){return r=>t(r)||e(r)}function y0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(JD,r)?JD[r](n):vG(r,n)});return e.length===0?null:e.reduce(Xdt)}function Zdt(t,e){let r=y0e(t);return r?r(e):!0}function eht(t,e,r,n=1/0){let s=y0e(t);return s?_0(s,e,r,n):[]}function tht(t,e,r=!0){return Array.isArray(e)||(e=[e]),WD(vG("id",t),e,r)}function $f(t,e,r=!0,n=1/0){return _0(JD.tag_name(t),e,r,n)}function rht(t,e,r=!0,n=1/0){return _0(vG("class",t),e,r,n)}function nht(t,e,r=!0,n=1/0){return _0(JD.tag_type(t),e,r,n)}function sht(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Yo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Yo||(Yo={}));function B0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Yo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Yo.FOLLOWING|Yo.CONTAINED_BY:Yo.FOLLOWING:a===t?Yo.PRECEDING|Yo.CONTAINS:Yo.PRECEDING}function md(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=B0e(e,r);return n&Yo.PRECEDING?-1:n&Yo.FOLLOWING?1:0}),t}function _G(t){let e=zD(Aht,t);return e?e.name==="feed"?iht(e):oht(e):null}function iht(t){var e;let r=t.children,n={type:"atom",items:$f("entry",r).map(o=>{var a;let{children:c}=o,A={media:b0e(c)};hi(A,"id","id",c),hi(A,"title","title",c);let u=(a=zD("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Ed("summary",c)||Ed("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Wo=fe(Ed(),1);var TG={};function xG(t,e){return t===Wo.default.falseFunc?Wo.default.falseFunc:r=>e.isTag(r)&&t(r)}function RG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function NG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var SG=(t,e,r,s,n)=>{let i=n(e,NG(r),s);return i===Wo.default.trueFunc?t:i===Wo.default.falseFunc?Wo.default.falseFunc:o=>i(o)&&t(o)},WD={is:SG,matches:SG,where:SG,not(t,e,r,s,n){let i=n(e,NG(r),s);return i===Wo.default.falseFunc?t:i===Wo.default.trueFunc?Wo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=NG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(rb))?[TG]:void 0,A=n(e,o,a);if(A===Wo.default.falseFunc)return Wo.default.falseFunc;let c=xG(A,i);if(a&&A!==Wo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...RG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function y0e(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in WD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return WD[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:VD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,I0e.parse)(c);return WD.is(t,u,r,s,n)}if(typeof A=="function")return wG(A,o,a,1),u=>A(u,a)&&t(u);if(o in L0)return L0[o](t,a,r,s);if(o in nb){let u=nb[o];return wG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Jo=fe(F0(),1);function DG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function B0e(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Jo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),p0e[e.action](t,e,r)}case Jo.SelectorType.Pseudo:return y0e(t,e,r,s,n);case Jo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=DG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=DG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=DG(c,i));return!1};case Jo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Jo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Jo.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Jo.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function b0e(t,e,r){let s=JD(t,e,r);return xG(s,e.adapter)}function JD(t,e,r){let s=typeof t=="string"?(0,Ja.parse)(t):t;return zD(s,e,r)}function Q0e(t){return t.type===Ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Q0e)))}var jdt={type:Ja.SelectorType.Descendant},Kdt={type:"_flexibleDescendant"},$dt={type:Ja.SelectorType.Pseudo,name:"scope",data:null};function Xdt(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===TG||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(O0e,`\r
`)}}).toArray()}var JG={};Ia(JG,{extract:()=>hft});function dft(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function hft(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=dft(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var yd=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};yd.prototype.cheerio="[cheerio object]";yd.prototype.splice=Array.prototype.splice;yd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(yd.prototype,IG,qG,YG,VG,WG,JG);function H0e(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=b0(n),a=t(s,o,i,null);class A extends yd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Yo(u))return u;let f=b0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Yo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&KB(u)?t(u,f,!1,null).children:fft(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?KB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Yo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(c,dG,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function fft(t){return!!t.name||t.type===Ho.Root||t.type===Ho.Text||t.type===Ho.Comment}var gft=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Fn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function e2(t){return t>=55296&&t<=57343}function G0e(t){return t>=56320&&t<=57343}function q0e(t,e){return(t-55296)*1024+9216+e}function t2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function r2(t){return t>=64976&&t<=65007||gft.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),BTe=new Map([...ez,["\\"," Backslash \\"],["/"," Forward slash /"]]);function bTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of BTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Jo=fe(Id(),1);var $G={};function XG(t,e){return t===Jo.default.falseFunc?Jo.default.falseFunc:r=>e.isTag(r)&&t(r)}function ZG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function KG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var jG=(t,e,r,n,s)=>{let i=s(e,KG(r),n);return i===Jo.default.trueFunc?t:i===Jo.default.falseFunc?Jo.default.falseFunc:o=>i(o)&&t(o)},a2={is:jG,matches:jG,where:jG,not(t,e,r,n,s){let i=s(e,KG(r),n);return i===Jo.default.falseFunc?t:i===Jo.default.trueFunc?Jo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=KG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Ab))?[$G]:void 0,c=s(e,o,a);if(c===Jo.default.falseFunc)return Jo.default.falseFunc;let A=XG(c,i);if(a&&c!==Jo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...ZG(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function lEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in a2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return a2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:o2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,uEe.parse)(A);return a2.is(t,u,r,n,s)}if(typeof c=="function")return zG(c,o,a,1),u=>c(u,a)&&t(u);if(o in q0)return q0[o](t,a,r,n);if(o in lb){let u=lb[o];return zG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var zo=fe(H0(),1);function eq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function dEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case zo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case zo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case zo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),oEe[e.action](t,e,r)}case zo.SelectorType.Pseudo:return lEe(t,e,r,n,s);case zo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case zo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=eq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=eq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=eq(A,i));return!1};case zo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case zo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case zo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case zo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case zo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function hEe(t,e,r){let n=c2(t,e,r);return XG(n,e.adapter)}function c2(t,e,r){let n=typeof t=="string"?(0,za.parse)(t):t;return A2(n,e,r)}function fEe(t){return t.type===za.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(fEe)))}var eft={type:za.SelectorType.Descendant},tft={type:"_flexibleDescendant"},rft={type:za.SelectorType.Pseudo,name:"scope",data:null};function nft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===$G||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(REe,`\r
`)}}).toArray()}var pq={};ya(pq,{extract:()=>Egt});function mgt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Egt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=mgt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var bd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};bd.prototype.cheerio="[cheerio object]";bd.prototype.splice=Array.prototype.splice;bd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(bd.prototype,qG,dq,hq,fq,gq,pq);function DEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=x0(s),a=t(n,o,i,null);class c extends bd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&Vo(u))return u;let f=x0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Vo(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&nb(u)?t(u,f,!1,null).children:Cgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?nb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Vo(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,FG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Cgt(t){return!!t.name||t.type===Go.Root||t.type===Go.Text||t.type===Go.Comment}var Igt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Fs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function g2(t){return t>=55296&&t<=57343}function kEe(t){return t>=56320&&t<=57343}function vEe(t,e){return(t-55296)*1024+9216+e}function p2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function m2(t){return t>=64976&&t<=65007||Igt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),dxe=new Map([...bz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function hxe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of dxe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(BTe.values()).toString()}
Invalid characters include: ${Array.from(dxe.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.`);se("Artifact name is valid!")}function tz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of ez)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.`);ne("Artifact name is valid!")}function Qz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of bz)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(ez.values()).toString()}
Invalid characters include: ${Array.from(bz.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.
`)}var NTe=fe(STe(),1);function Dc(){return`@actions/artifact-${NTe.version}`}var LE=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},nl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Xd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Mg=class extends Error{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"}};Mg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Lg=class extends Error{};Lg.prototype.name="InvalidTokenError";function jDt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function KDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return jDt(e)}catch{return atob(e)}}function TTe(t,e){if(typeof t!="string")throw new Lg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,s=t.split(".")[r];if(typeof s!="string")throw new Lg(`Invalid token specified: missing part #${r+1}`);let n;try{n=KDt(s)}catch(i){throw new Lg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new Lg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var vv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function kc(){let t=Dv(),e=TTe(t);if(!e.scp)throw vv;let r=e.scp.split(" ");if(r.length===0)throw vv;for(let s of r){let n=s.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw vv;let i={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw vv}function xTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(bA(r),bA(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function RTe(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"&&xTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&xTe(t.signed_url)}var _v=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},rz=class{constructor(e,r,s,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Dv();this.baseUrl=lTe(),r&&(this.maxAttempts=r),s&&(this.baseRetryIntervalMilliseconds=s),n&&(this.retryMultiplier=n),this.httpClient=new Js(e,[new lu(i)])}request(e,r,s,n){return _v(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":s};try{let{body:a}=yield this.retryableRequest(()=>_v(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return _v(this,void 0,void 0,function*(){let r=0,s="",n="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;n=yield a.readBody(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(n);if(RTe(c),V(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),s=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Mg.isUsageErrorMessage(c.msg))throw new Mg;s=`${s}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${n}`),a instanceof Mg)throw a;if(il.isNetworkErrorCode(a?.code))throw new il(a?.code);i=!0,s=a.message}if(!i)throw new Error(`Received non-retryable error: ${s}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${s}`);let o=this.getExponentialRetryTimeMilliseconds(r);se(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${s}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return _v(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),s=r*this.retryMultiplier;return Math.trunc(Math.random()*(s-r)+r)}};function vc(t){let e=new rz(Dc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new kv(e)}import*as UE from"fs";import{normalize as DTe,resolve as kTe}from"path";function vTe(t){if(!UE.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Ze("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield s.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${YPe(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield VPe(u,r,e?.skipDecompress);se("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(n=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:n}})}function zPe(){return kC(this,arguments,void 0,function*(t=dTe()){return(yield Nqt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield PPe.mkdir(t,{recursive:!0})),t})}var xqt=5,Rqt=[400,401,403,404,422];function vC(t,e=xqt,r=Rqt){var s;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return V(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(s=n.doNotRetry)!==null&&s!==void 0?s:"octokit default: [400, 401, 403, 404, 422]"})`),[n,i]}var jPe="6.0.0";function dp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let s=Date.now(),n=t.request.endpoint.parse(r),i=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${i} - ${o.status} with id ${a} in ${Date.now()-s}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${i} - ${o.status} with id ${a} in ${Date.now()-s}ms`),o})})}dp.VERSION=jPe;var XPe=fe(KPe(),1),ZPe=fe(eO(),1),Dqt="0.0.0-development";async function $Pe(t,e,r,s){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=s.request.retries!=null?s.request.retries:t.retries,i=Math.pow((s.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,i)}throw r}async function kqt(t,e,r,s){let n=new XPe.default;return n.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(s.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),n.schedule(vqt.bind(null,t,e,r),s)}async function vqt(t,e,r,s){let n=await r(r,s);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let i=new ZPe.RequestError(n.data.errors[0].message,500,{request:s,response:n});return $Pe(t,e,i,s)}return n}function hp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",$Pe.bind(null,r,t)),t.hook.wrap("request",kqt.bind(null,r,t))),{retry:{retryRequest:(s,n,i)=>(s.request.request=Object.assign({},s.request.request,{retries:n,retryAfter:i}),s)}}}hp.VERSION=Dqt;var eOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function HF(t,e,r,s,n){return eOe(this,void 0,void 0,function*(){var i;let[o,a]=vC(Zh),A={log:void 0,userAgent:Dc(),previews:void 0,retry:o,request:a},u=yield bo(n,A,hp,dp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:s,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new nl(`Artifact not found for name: ${t}
`)}var mxe=fe(pxe(),1);function kA(){return`@actions/artifact-${mxe.version}`}var qE=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},eh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ol=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ol.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pg=class extends Error{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"}};Pg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Og=class extends Error{};Og.prototype.name="InvalidTokenError";function ekt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function tkt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ekt(e)}catch{return atob(e)}}function Exe(t,e){if(typeof t!="string")throw new Og("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Og(`Invalid token specified: missing part #${r+1}`);let s;try{s=tkt(n)}catch(i){throw new Og(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Og(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var zv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=Wv(),e=Exe(t);if(!e.scp)throw zv;let r=e.scp.split(" ");if(r.length===0)throw zv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw zv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw zv}function Cxe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Qc(r),Qc(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function Ixe(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"&&Cxe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&Cxe(t.signed_url)}var jv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},wz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Wv();this.baseUrl=txe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new zn(e,[new du(i)])}request(e,r,n,s){return jv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>jv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return jv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(Ixe(A),V(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Pg.isUsageErrorMessage(A.msg))throw new Pg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof Pg)throw a;if(ol.isNetworkErrorCode(a?.code))throw new ol(a?.code);i=!0,n=a.message}if(!i)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 o=this.getExponentialRetryTimeMilliseconds(r);ne(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return jv(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 _A(t){let e=new wz(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Jv(e)}import*as YE from"fs";import{normalize as yxe,resolve as Bxe}from"path";function bxe(t){if(!YE.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);ne(`Redirecting to blob download url: ${_Oe(u)}`);try{ne(`Starting download of artifact to: ${r}`);let l=yield FOe(u,r,e?.skipDecompress);ne("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function UOe(){return UC(this,arguments,void 0,function*(t=rxe()){return(yield kYt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield xOe.mkdir(t,{recursive:!0})),t})}var _Yt=5,FYt=[400,401,403,404,422];function PC(t,e=_Yt,r=FYt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return V(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var POe="6.0.0";function gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}gp.VERSION=POe;var GOe=fe(OOe(),1),qOe=fe(gO(),1),MYt="0.0.0-development";async function HOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function LYt(t,e,r,n){let s=new GOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(UYt.bind(null,t,e,r),n)}async function UYt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new qOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return HOe(t,e,i,n)}return s}function pp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",HOe.bind(null,r,t)),t.hook.wrap("request",LYt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}pp.VERSION=MYt;var YOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function rM(t,e,r,n,s){return YOe(this,void 0,void 0,function*(){var i;let[o,a]=PC(tf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Qo(s,c,pp,gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new il(`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 l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],V(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function tOe(t){return eOe(this,void 0,void 0,function*(){var e;let r=vc(),{workflowRunBackendId:s,workflowJobRunBackendId:n}=kc(),i={workflowRunBackendId:s,workflowJobRunBackendId:n,nameFilter:us.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new nl(`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 l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],V(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function VOe(t){return YOe(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ln.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new il(`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 a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?no.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var rOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function sOe(t,e,r,s,n){return rOe(this,void 0,void 0,function*(){var i;let[o,a]=vC(Zh),A={log:void 0,userAgent:Dc(),previews:void 0,retry:o,request:a},c=bo(n,A,hp,dp),u=yield HF(t,e,r,s,n),l=yield c.rest.actions.deleteArtifact({owner:r,repo:s,artifact_id:u.artifact.id});if(l.status!==204)throw new sl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function nOe(t){return rOe(this,void 0,void 0,function*(){let e=vc(),{workflowRunBackendId:r,workflowJobRunBackendId:s}=kc(),n={workflowRunBackendId:r,workflowJobRunBackendId:s,nameFilter:us.create({value:t})},i=yield e.ListArtifacts(n);if(i.artifacts.length===0)throw new nl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return se(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var iOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},GF=gTe(),qF=100,_qt=Math.ceil(GF/qF);function oOe(t,e,r,s){return iOe(this,arguments,void 0,function*(n,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${n} in repository ${i}/${o}`);let c=[],[u,l]=vC(Zh),d={log:void 0,userAgent:Dc(),previews:void 0,retry:u,request:l},h=bo(a,d,hp,dp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:n,per_page:qF,page:f}),I=Math.ceil(p.total_count/qF),m=p.total_count;m>GF&&(Ze(`Workflow run ${n} has ${m} artifacts, exceeding the limit of ${GF}. Results will be incomplete as only the first ${GF} artifacts will be returned`),I=_qt);for(let C of p.artifacts)c.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(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:n,per_page:qF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=AOe(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function aOe(){return iOe(this,arguments,void 0,function*(t=!1){let e=vc(),{workflowRunBackendId:r,workflowJobRunBackendId:s}=kc(),n={workflowRunBackendId:r,workflowJobRunBackendId:s},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?no.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=AOe(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function AOe(t){t.sort((s,n)=>n.id-s.id);let e=[],r=new Set;for(let s of t)r.has(s.name)||(e.push(s),r.add(s.name));return e}var zw=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Fqt=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(r[s[n]]=t[s[n]]);return r},_C=class{uploadArtifact(e,r,s,n){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;return nPe(e,r,s,n)}catch(i){throw Ze(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?io.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var WOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function JOe(t,e,r,n,s){return WOe(this,void 0,void 0,function*(){var i;let[o,a]=PC(tf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Qo(s,c,pp,gp),u=yield rM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new sl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function zOe(t){return WOe(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ln.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return ne(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var jOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nM=ixe(),sM=100,PYt=Math.ceil(nM/sM);function KOe(t,e,r,n){return jOe(this,arguments,void 0,function*(s,i,o,a,c=!1){ne(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=PC(tf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Qo(a,d,pp,gp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:sM,page:f}),I=Math.ceil(p.total_count/sM),m=p.total_count;m>nM&&(Ze(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${nM}. Results will be incomplete as only the first ${nM} artifacts will be returned`),I=PYt);for(let C of p.artifacts)A.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(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:sM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=XOe(A)),ne(`Found ${A.length} artifact(s)`),{artifacts:A}})}function $Oe(){return jOe(this,arguments,void 0,function*(t=!1){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?io.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=XOe(o)),ne(`Found ${o.length} artifact(s)`),{artifacts:o}})}function XOe(t){t.sort((n,s)=>s.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}var t1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},OYt=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 s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},OC=class{uploadArtifact(e,r,n,s){return t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;return zPe(e,r,n,s)}catch(i){throw Ze(`Artifact upload failed with error: ${i}.
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).`),i}})}downloadArtifact(e,r){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(r?.findBy){let{findBy:{repositoryOwner:s,repositoryName:n,token:i}}=r,o=Fqt(r,["findBy"]);return WPe(e,s,n,i,o)}return JPe(e,r)}catch(s){throw Ze(`Download Artifact failed with error: ${s}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=OYt(r,["findBy"]);return MOe(e,n,s,i,o)}return LOe(e,r)}catch(n){throw Ze(`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).`),s}})}listArtifacts(e){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:s,repositoryName:n,token:i}}=e;return oOe(r,s,n,i,e?.latest)}return aOe(e?.latest)}catch(r){throw Ze(`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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return KOe(r,n,s,i,e?.latest)}return $Oe(e?.latest)}catch(r){throw Ze(`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 zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(r?.findBy){let{findBy:{workflowRunId:s,repositoryOwner:n,repositoryName:i,token:o}}=r;return HF(e,s,n,i,o)}return tOe(e)}catch(s){throw Ze(`Get Artifact failed with error: ${s}.
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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return rM(e,n,s,i,o)}return VOe(e)}catch(n){throw Ze(`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).`),s}})}deleteArtifact(e,r){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(r?.findBy){let{findBy:{repositoryOwner:s,repositoryName:n,workflowRunId:i,token:o}}=r;return sOe(e,i,s,n,o)}return nOe(e)}catch(s){throw Ze(`Delete Artifact failed with error: ${s}.
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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return JOe(e,i,n,s,o)}return zOe(e)}catch(n){throw Ze(`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).`),s}})}};var SNr=new _C;import*as YF from"path";import X$ from"fs";var Mqt="dependency-graph_";async function uOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await cOe(t,!1);return;case"generate-submit-and-upload":await cOe(t,!0);return;case"generate-and-upload":await Lqt(t)}}catch(r){Yqt(t,e,r)}}async function cOe(t,e){if(dOe()){se("Dependency graph not supported in the ACT environment.");return}let r=await lOe();try{await Uqt(r)}catch(s){try{await $$(r,t)}catch(n){se(String(n))}throw s}e&&await $$(r,t)}async function Lqt(t){if(dOe()){se("Dependency graph not supported in the ACT environment.");return}await $$(await lOe(),t)}async function lOe(){let r=(await(await L9(`${Hqt()}/**/*.json`)).glob()).filter(s=>!Gqt(s));return r.forEach(qqt),se(`Found dependency graph files: ${r.join(", ")}`),r}async function $$(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=MB(),s=new _C;for(let n of t){let i=Z$(n);se(`Uploading dependency graph file: ${i}`);let o=`${Mqt}${YF.basename(n)}`;await s.uploadArtifact(o,[n],r,{retentionDays:e.getArtifactRetentionDays()})}}async function Uqt(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await Oqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Pqt(e,r)),r}}function Pqt(t,e){let s=`Dependency submission failed for ${Z$(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${s}
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var $Tr=new OC;import*as iM from"path";import yX from"fs";var HYt="dependency-graph_";async function e3e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await ZOe(t,!1);return;case"generate-submit-and-upload":await ZOe(t,!0);return;case"generate-and-upload":await GYt(t)}}catch(r){jYt(t,e,r)}}async function ZOe(t,e){if(r3e()){ne("Dependency graph not supported in the ACT environment.");return}let r=await t3e();try{await qYt(r)}catch(n){try{await IX(r,t)}catch(s){ne(String(s))}throw n}e&&await IX(r,t)}async function GYt(t){if(r3e()){ne("Dependency graph not supported in the ACT environment.");return}await IX(await t3e(),t)}async function t3e(){let r=(await(await oG(`${WYt()}/**/*.json`)).glob()).filter(n=>!JYt(n));return r.forEach(zYt),ne(`Found dependency graph files: ${r.join(", ")}`),r}async function IX(t,e){if(t.length===0){ne("No dependency graph files found to upload.");return}let r=qB(),n=new OC;for(let s of t){let i=BX(s);ne(`Uploading dependency graph file: ${i}`);let o=`${HYt}${iM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function qYt(t){if(t.length===0){ne("No dependency graph files found to submit.");return}for(let e of t)try{await VYt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=YYt(e,r)),r}}function YYt(t,e){let n=`Dependency submission failed for ${BX(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:s}async function Oqt(t){let e=Vqt(),r=X$.readFileSync(t,"utf8"),s=JSON.parse(r);s.owner=Ol.repo.owner,s.repo=Ol.repo.repo;let n=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",s),i=Z$(t);wae(`Submitted ${i}: ${n.data.message}`)}function Hqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function Gqt(t){let e=`${t}.processed`;return X$.existsSync(e)}function qqt(t){let e=`${t}.processed`;X$.writeFileSync(e,"")}function Yqt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new vE(r);Ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Vqt(){return bo(dD())}function Z$(t){let e=MB();return YF.relative(e,t)}function dOe(){return process.env.ACT!==void 0}function Jqt(t=process.platform){return t==="win32"?50:0}async function hOe(t=process.platform){let e=Jqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>EJ(t));async function zqt(){try{Cpe(),Epe(),await uTe(new AD,new cD)&&await uOe(new aD)}catch(t){EJ(t)}await hOe()}zqt();export{zqt as run};
`:n}async function VYt(t){let e=KYt(),r=yX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Hl.repo.owner,n.repo=Hl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=BX(t);zae(`Submitted ${i}: ${s.data.message}`)}function WYt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function JYt(t){let e=`${t}.processed`;return yX.existsSync(e)}function zYt(t){let e=`${t}.processed`;yX.writeFileSync(e,"")}function jYt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new PE(r);Ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function KYt(){return Qo(ND())}function BX(t){let e=qB();return iM.relative(e,t)}function r3e(){return process.env.ACT!==void 0}function XYt(t=process.platform){return t==="win32"?50:0}async function n3e(t=process.platform){let e=XYt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>HJ(t));async function ZYt(){try{Ame(),cme(),await exe(new bD,new QD)&&await e3e(new BD)}catch(t){HJ(t)}await n3e()}ZYt();export{ZYt as run};
/*! 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": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line 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": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}