[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-04-03 03:36:46 +00:00
1 parent ff9ae24c39
commit f5dfb43fc8
9 files changed
+595 -617

No files matched your search

+160 -172
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var lLe=Object.create;var l_=Object.defineProperty;var dLe=Object.getOwnPropertyDescriptor;var hLe=Object.getOwnPropertyNames;var fLe=Object.getPrototypeOf,gLe=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 m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ua=(t,e)=>{for(var r in e)l_(t,r,{get:e[r],enumerable:!0})},pLe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of hLe(e))!gLe.call(t,s)&&s!==r&&l_(t,s,{get:()=>e[s],enumerable:!(n=dLe(e,s))||n.enumerable});return t};var he=(t,e,r)=>(r=t!=null?lLe(fLe(t)):{},pLe(e||!t||!t.__esModule?l_(r,"default",{value:t,enumerable:!0}):r,t));var fK=m(kg=>{"use strict";var k6t=b("net"),BLe=b("tls"),f_=b("http"),lK=b("https"),bLe=b("events"),v6t=b("assert"),QLe=b("util");kg.httpOverHttp=wLe;kg.httpsOverHttp=SLe;kg.httpOverHttps=NLe;kg.httpsOverHttps=TLe;function wLe(t){var e=new Dc(t);return e.request=f_.request,e}function SLe(t){var e=new Dc(t);return e.request=f_.request,e.createSocket=dK,e.defaultPort=443,e}function NLe(t){var e=new Dc(t);return e.request=lK.request,e}function TLe(t){var e=new Dc(t);return e.request=lK.request,e.createSocket=dK,e.defaultPort=443,e}function Dc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||f_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=hK(s,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(n);return}}n.destroy(),e.removeSocket(n)})}QLe.inherits(Dc,bLe.EventEmitter);Dc.prototype.addRequest=function(e,r,n,s){var i=this,o=g_({request:e},i.options,hK(r,n,s));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)}})};Dc.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=g_({},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")),Wu("making CONNECT request");var o=n.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){Wu("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){Wu("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 Wu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Wu(`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)}};Dc.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 dK(t,e){var r=this;Dc.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=g_({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=BLe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function hK(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function g_(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 Wu;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Wu=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)}:Wu=function(){};kg.debug=Wu});var p_=m((F6t,gK)=>{gK.exports=fK()});var Ir=m((M6t,pK)=>{pK.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 Ft=m((L6t,HK)=>{"use strict";var mK=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[mK]===!0}[mK]=!0},EK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),m_=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[EK]===!0}[EK]=!0},CK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),E_=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[CK]===!0}[CK]=!0},IK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),C_=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[IK]===!0}[IK]=!0},yK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),I_=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[yK]===!0}[yK]=!0},BK=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),y_=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 YPe(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(TPe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function VPe(){return"allowed"}function WPe(){return"success"}function JPe(){return"success"}function zPe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function jPe(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&&dF(t.origin)&&!dF(iC(t))&&(e=null);break;case"same-origin":Bw(t,iC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Gg(t,e){return t}function KPe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Gg(t.domainLookupStartTime,r),domainLookupEndTime:Gg(t.domainLookupEndTime,r),connectionStartTime:Gg(t.connectionStartTime,r),connectionEndTime:Gg(t.connectionEndTime,r),secureConnectionStartTime:Gg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function XPe(t){return Gg(vPe.now(),t)}function ZPe(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 tZ(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function $Pe(t){return{referrerPolicy:t.referrerPolicy}}function eOe(t){let e=t.referrerPolicy;Wd(e);let r=null;if(t.referrer==="client"){let a=jX();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=lF(r),s=lF(r,!0);n.toString().length>4096&&(n=s);let i=Bw(t,n),o=sC(n)&&!sC(t.url);switch(e){case"origin":return s??lF(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=iC(t);return Bw(n,a)?n:sC(n)&&!sC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function lF(t,e){return Wd(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 sC(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 tOe(t,e){if(yw===void 0)return!0;let r=rZ(e);if(r==="no metadata"||r.length===0)return!0;let n=nOe(r),s=sOe(r,n);for(let i of s){let o=i.algo,a=i.hash,A=yw.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)),iOe(A,a))return!0}return!1}var rOe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function rZ(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=rOe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();XX.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function nOe(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 sOe(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 iOe(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 oOe(t){}function Bw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function aOe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function AOe(t){return t.controller.state==="aborted"}function cOe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uOe(t){return MPe[t.toLowerCase()]??t}function lOe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Wd(typeof e=="string"),e}var dOe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function nZ(t,e,r=0,n=1){class s{#e;#t; Line truncated
`);function GOe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function qOe(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 YOe(t,e){Qw(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&&ww(t,OOe,i)||i.position===t.length-4&&ww(t,HOe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=VOe(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(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;c!==null?(u??="text/plain",GOe(u)||(u=""),h=new UOe([d],c,{type:u})):h=vOe(Buffer.from(d)),Qw(gZ(A)),Qw(typeof h=="string"&&gZ(h)||FOe(h)),s.push(MOe(A,h,c))}}function VOe(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=Yg(a=>a!==10&&a!==13&&a!==58,t,e);if(o=CF(o,!0,!0,a=>a===9||a===32),!_Oe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Yg(a=>a===32||a===9,t,e),kOe(o)){case"content-disposition":{if(r=n=null,!ww(t,POe,e)||(e.position+=17,r=EZ(t,e),r===null))return"failure";if(ww(t,mZ,e)){let a=e.position+mZ.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=EZ(t,e),n===null))return"failure"}break}case"content-type":{let a=Yg(A=>A!==10&&A!==13,t,e);a=CF(a,!1,!0,A=>A===9||A===32),s=pZ(a);break}case"content-transfer-encoding":{let a=Yg(A=>A!==10&&A!==13,t,e);a=CF(a,!1,!0,A=>A===9||A===32),i=pZ(a);break}default:Yg(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function EZ(t,e){Qw(t[e.position-1]===34);let r=Yg(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 Yg(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function CF(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 ww(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}CZ.exports={multipartFormDataParser:YOe,validateBoundary:qOe}});var Jg=m((A5t,RZ)=>{"use strict";var AC=lt(),{ReadableStreamFrom:WOe,isBlobLike:yZ,isReadableStreamLike:JOe,readableStreamClose:zOe,createDeferredPromise:jOe,fullyReadBody:KOe,extractMimeType:XOe,utf8DecodeBytes:QZ}=yi(),{FormData:BZ}=aC(),{kState:Wg}=Ju(),{webidl:ZOe}=Wn(),{Blob:$Oe}=b("node:buffer"),IF=b("node:assert"),{isErrored:wZ,isDisturbed:e3e}=b("node:stream"),{isArrayBuffer:t3e}=b("node:util/types"),{serializeAMimeType:r3e}=Js(),{multipartFormDataParser:n3e}=IZ(),yF;try{let t=b("node:crypto");yF=e=>t.randomInt(0,e)}catch{yF=t=>Math.floor(Math.random(t))}var Sw=new TextEncoder;function s3e(){}var SZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,NZ;SZ&&(NZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!e3e(e)&&!wZ(e)&&e.cancel("Response object has been garbage collected").catch(s3e)}));function TZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:yZ(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?Sw.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>zOe(A))},start(){},type:"bytes"}),IF(JOe(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(t3e(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(AC.isFormDataLike(t)){let A=`----formdata-undici-0${`${yF(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[C,E]of t)if(typeof E=="string"){let I=Sw.encode(c+`; name="${u(l(C))}"\r
var TPe=Object.create;var EF=Object.defineProperty;var xPe=Object.getOwnPropertyDescriptor;var RPe=Object.getOwnPropertyNames;var DPe=Object.getPrototypeOf,kPe=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 m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ga=(t,e)=>{for(var r in e)EF(t,r,{get:e[r],enumerable:!0})},vPe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of RPe(e))!kPe.call(t,s)&&s!==r&&EF(t,s,{get:()=>e[s],enumerable:!(n=xPe(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?TPe(DPe(t)):{},vPe(e||!t||!t.__esModule?EF(r,"default",{value:t,enumerable:!0}):r,t));var eZ=m(ep=>{"use strict";var l9t=b("net"),PPe=b("tls"),yF=b("http"),XX=b("https"),OPe=b("events"),d9t=b("assert"),HPe=b("util");ep.httpOverHttp=GPe;ep.httpsOverHttp=qPe;ep.httpOverHttps=YPe;ep.httpsOverHttps=VPe;function GPe(t){var e=new qc(t);return e.request=yF.request,e}function qPe(t){var e=new qc(t);return e.request=yF.request,e.createSocket=ZX,e.defaultPort=443,e}function YPe(t){var e=new qc(t);return e.request=XX.request,e}function VPe(t){var e=new qc(t);return e.request=XX.request,e.createSocket=ZX,e.defaultPort=443,e}function qc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=$X(s,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(n);return}}n.destroy(),e.removeSocket(n)})}HPe.inherits(qc,OPe.EventEmitter);qc.prototype.addRequest=function(e,r,n,s){var i=this,o=BF({request:e},i.options,$X(r,n,s));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)}})};qc.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=BF({},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",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){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)}};qc.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 ZX(t,e){var r=this;qc.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=BF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=PPe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function $X(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function BF(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(){};ep.debug=cl});var bF=m((f9t,tZ)=>{tZ.exports=eZ()});var yr=m((g9t,rZ)=>{rZ.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 Mt=m((p9t,NZ)=>{"use strict";var nZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nZ]===!0}[nZ]=!0},sZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),QF=class extends Br{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[sZ]===!0}[sZ]=!0},iZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),wF=class extends Br{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[iZ]===!0}[iZ]=!0},oZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),SF=class extends Br{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[oZ]===!0}[oZ]=!0},aZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),NF=class extends Br{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[aZ]===!0}[aZ]=!0},AZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),TF=class extends Br{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 a8e(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(V3e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function A8e(){return"allowed"}function c8e(){return"success"}function u8e(){return"success"}function l8e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function d8e(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&&CM(t.origin)&&!CM(_C(t))&&(e=null);break;case"same-origin":u1(t,_C(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function up(t,e){return t}function h8e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:up(t.domainLookupStartTime,r),domainLookupEndTime:up(t.domainLookupEndTime,r),connectionStartTime:up(t.connectionStartTime,r),connectionEndTime:up(t.connectionEndTime,r),secureConnectionStartTime:up(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function f8e(t){return up(K3e.now(),t)}function g8e(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 H$(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function p8e(t){return{referrerPolicy:t.referrerPolicy}}function m8e(t){let e=t.referrerPolicy;fh(e);let r=null;if(t.referrer==="client"){let a=F$();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=EM(r),s=EM(r,!0);n.toString().length>4096&&(n=s);let i=u1(t,n),o=vC(n)&&!vC(t.url);switch(e){case"origin":return s??EM(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=_C(t);return u1(n,a)?n:vC(n)&&!vC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function EM(t,e){return fh(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 vC(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 E8e(t,e){if(c1===void 0)return!0;let r=G$(e);if(r==="no metadata"||r.length===0)return!0;let n=I8e(r),s=y8e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=c1.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)),B8e(A,a))return!0}return!1}var C8e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function G$(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=C8e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();L$.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function I8e(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 y8e(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 B8e(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 b8e(t){}function u1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Q8e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function w8e(t){return t.controller.state==="aborted"}function S8e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function N8e(t){return $3e[t.toLowerCase()]??t}function T8e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return fh(typeof e=="string"),e}var x8e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function q$(t,e,r=0,n=1){class s{#e;#t; Line truncated
`);function i4e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function o4e(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 a4e(t,e){d1(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&&h1(t,n4e,i)||i.position===t.length-4&&h1(t,s4e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=A4e(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(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;c!==null?(u??="text/plain",i4e(u)||(u=""),h=new t4e([d],c,{type:u})):h=K8e(Buffer.from(d)),d1(tee(A)),d1(typeof h=="string"&&tee(h)||Z8e(h)),s.push($8e(A,h,c))}}function A4e(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=dp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=SM(o,!0,!0,a=>a===9||a===32),!X8e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,dp(a=>a===32||a===9,t,e),j8e(o)){case"content-disposition":{if(r=n=null,!h1(t,r4e,e)||(e.position+=17,r=see(t,e),r===null))return"failure";if(h1(t,nee,e)){let a=e.position+nee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=see(t,e),n===null))return"failure"}break}case"content-type":{let a=dp(A=>A!==10&&A!==13,t,e);a=SM(a,!1,!0,A=>A===9||A===32),s=ree(a);break}case"content-transfer-encoding":{let a=dp(A=>A!==10&&A!==13,t,e);a=SM(a,!1,!0,A=>A===9||A===32),i=ree(a);break}default:dp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function see(t,e){d1(t[e.position-1]===34);let r=dp(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 dp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function SM(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 h1(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}iee.exports={multipartFormDataParser:a4e,validateBoundary:o4e}});var gp=m((H9t,pee)=>{"use strict";var LC=dt(),{ReadableStreamFrom:c4e,isBlobLike:aee,isReadableStreamLike:u4e,readableStreamClose:l4e,createDeferredPromise:d4e,fullyReadBody:h4e,extractMimeType:f4e,utf8DecodeBytes:uee}=Qi(),{FormData:Aee}=MC(),{kState:fp}=ul(),{webidl:g4e}=Wn(),{Blob:p4e}=b("node:buffer"),NM=b("node:assert"),{isErrored:lee,isDisturbed:m4e}=b("node:stream"),{isArrayBuffer:E4e}=b("node:util/types"),{serializeAMimeType:C4e}=js(),{multipartFormDataParser:I4e}=oee(),TM;try{let t=b("node:crypto");TM=e=>t.randomInt(0,e)}catch{TM=t=>Math.floor(Math.random(t))}var f1=new TextEncoder;function y4e(){}var dee=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,hee;dee&&(hee=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!m4e(e)&&!lee(e)&&e.cancel("Response object has been garbage collected").catch(y4e)}));function fee(t,e=!1){let r=null;t instanceof ReadableStream?r=t:aee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?f1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>l4e(A))},start(){},type:"bytes"}),NM(u4e(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(E4e(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(LC.isFormDataLike(t)){let A=`----formdata-undici-0${`${TM(1e11)}`.padStart(11,"0")}`,c=`--${A}\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,E]of t)if(typeof E=="string"){let C=f1.encode(c+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(I),i+=I.byteLength}else{let I=Sw.encode(`${c}; name="${u(l(C))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=f1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(I,E,h),typeof E.size=="number"?i+=I.byteLength+E.size+h.byteLength:f=!0}let p=Sw.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(yZ(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(AC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:WOe(t)}if((typeof s=="string"||AC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(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(!wZ(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:s,length:i},o]}function i3e(t,e=!1){return t instanceof ReadableStream&&(IF(!AC.isDisturbed(t),"The body has already been consumed."),IF(!t.locked,"The stream is locked.")),TZ(t,e)}function o3e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function a3e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function A3e(t){return{blob(){return Vg(this,r=>{let n=bZ(this);return n===null?n="":n&&(n=r3e(n)),new $Oe([r],{type:n})},t)},arrayBuffer(){return Vg(this,r=>new Uint8Array(r).buffer,t)},text(){return Vg(this,QZ,t)},json(){return Vg(this,u3e,t)},formData(){return Vg(this,r=>{let n=bZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=n3e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new BZ;return i[Wg]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new BZ;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 Vg(this,r=>new Uint8Array(r),t)}}}function c3e(t){Object.assign(t.prototype,A3e(t))}async function Vg(t,e,r){if(ZOe.brandCheck(t,r),xZ(t))throw new TypeError("Body is unusable: Body has already been read");a3e(t[Wg]);let n=jOe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Wg].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await KOe(t[Wg].body,i,s),n.promise)}function xZ(t){let e=t[Wg].body;return e!=null&&(e.stream.locked||AC.isDisturbed(e.stream))}function u3e(t){return JSON.parse(QZ(t))}function bZ(t){let e=t[Wg].headersList,r=XOe(e);return r==="failure"?null:r}RZ.exports={extractBody:TZ,safelyExtractBody:i3e,cloneBody:o3e,mixinBody:c3e,streamRegistry:NZ,hasFinalizationRegistry:SZ,bodyUnusable:xZ}});var HZ=m((c5t,OZ)=>{"use strict";var Ge=b("node:assert"),Ze=lt(),{channels:DZ}=_g(),BF=nF(),{RequestContentLengthMismatchError:Jd,ResponseContentLengthMismatchError:l3e,RequestAbortedError:LZ,HeadersTimeoutError:d3e,HeadersOverflowError:h3e,SocketError:kw,InformationalError:zg,BodyTimeoutError:f3e,HTTPParserError:g3e,ResponseExceededMaxSizeError:p3e}=Ft(),{kUrl:UZ,kReset:zs,kClient:SF,kParser:_r,kBlocking:lC,kRunning:rs,kPending:m3e,kSize:kZ,kWriting:ju,kQueue:la,kNoRef:cC,kKeepAliveDefaultTimeout:E3e,kHostHeader:C3e,kPendingIdx:I3e,kRunningIdx:co,kError:uo,kPipelining:Rw,kSocket:jg,kKeepAliveTimeoutValue:vw,kMaxHeadersSize:bF,kKeepAliveMaxTimeout:y3e,kKeepAliveTimeoutThreshold:B3e,kHeadersTimeout:b3e,kBodyTimeout:Q3e,kStrictContentLength:NF,kMaxRequests:vZ,kCounter:w3e,kMaxResponseSize:S3e,kOnError:N3e,kResume:zu,kHTTPContext:PZ}=Ir(),eA=NX(),T3e=Buffer.alloc(0),Nw=Buffer[Symbol.species],Tw=Ze.addListener,x3e=Ze.removeAllListeners,QF;async function R3e(){let t=process.env.JEST_WORKER_ID?oF():void 0,e;try{e=await WebAssembly.compile(RX())}catch{e=await WebAssembly.compile(t||oF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(hn.ptr===r);let i=n-rA+tA.byteOffset;return hn.onStatus(new Nw(tA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(hn.ptr===r),hn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(hn.ptr===r);let i=n-rA+tA.byteOffset;return hn.onHeaderField(new Nw(tA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(hn.ptr===r);let i=n-rA+tA.byteOffset;return hn.onHeaderValue(new Nw(tA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(hn.ptr===r),hn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(hn.ptr===r);let i=n-rA+tA.byteOffset;return hn.onBody(new Nw(tA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(hn.ptr===r),hn.onMessageComplete()||0)}})}var wF=null,TF=R3e();TF.catch();var hn=null,tA=null,xw=0,rA=null,D3e=0,uC=1,Kg=2|uC,Dw=4|uC,xF=8|D3e,RF=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[bF])&&e[bF]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(eA.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=[],this.headersSize=0,this.header Line truncated
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=f1.encode(`--${A}--\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=${A}`}else if(aee(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(LC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:c4e(t)}if((typeof s=="string"||LC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(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(!lee(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:s,length:i},o]}function B4e(t,e=!1){return t instanceof ReadableStream&&(NM(!LC.isDisturbed(t),"The body has already been consumed."),NM(!t.locked,"The stream is locked.")),fee(t,e)}function b4e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Q4e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function w4e(t){return{blob(){return hp(this,r=>{let n=cee(this);return n===null?n="":n&&(n=C4e(n)),new p4e([r],{type:n})},t)},arrayBuffer(){return hp(this,r=>new Uint8Array(r).buffer,t)},text(){return hp(this,uee,t)},json(){return hp(this,N4e,t)},formData(){return hp(this,r=>{let n=cee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=I4e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Aee;return i[fp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Aee;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 hp(this,r=>new Uint8Array(r),t)}}}function S4e(t){Object.assign(t.prototype,w4e(t))}async function hp(t,e,r){if(g4e.brandCheck(t,r),gee(t))throw new TypeError("Body is unusable: Body has already been read");Q4e(t[fp]);let n=d4e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[fp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await h4e(t[fp].body,i,s),n.promise)}function gee(t){let e=t[fp].body;return e!=null&&(e.stream.locked||LC.isDisturbed(e.stream))}function N4e(t){return JSON.parse(uee(t))}function cee(t){let e=t[fp].headersList,r=f4e(e);return r==="failure"?null:r}pee.exports={extractBody:fee,safelyExtractBody:B4e,cloneBody:b4e,mixinBody:S4e,streamRegistry:hee,hasFinalizationRegistry:dee,bodyUnusable:gee}});var Nee=m((G9t,See)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:mee}=rp(),xM=uM(),{RequestContentLengthMismatchError:gh,ResponseContentLengthMismatchError:T4e,RequestAbortedError:bee,HeadersTimeoutError:x4e,HeadersOverflowError:R4e,SocketError:I1,InformationalError:pp,BodyTimeoutError:D4e,HTTPParserError:k4e,ResponseExceededMaxSizeError:v4e}=Mt(),{kUrl:Qee,kReset:Ks,kClient:vM,kParser:Fr,kBlocking:OC,kRunning:ns,kPending:_4e,kSize:Eee,kWriting:dl,kQueue:pa,kNoRef:UC,kKeepAliveDefaultTimeout:F4e,kHostHeader:M4e,kPendingIdx:L4e,kRunningIdx:fo,kError:go,kPipelining:E1,kSocket:mp,kKeepAliveTimeoutValue:y1,kMaxHeadersSize:RM,kKeepAliveMaxTimeout:U4e,kKeepAliveTimeoutThreshold:P4e,kHeadersTimeout:O4e,kBodyTimeout:H4e,kStrictContentLength:_M,kMaxRequests:Cee,kCounter:G4e,kMaxResponseSize:q4e,kOnError:Y4e,kResume:ll,kHTTPContext:wee}=yr(),aA=h$(),V4e=Buffer.alloc(0),g1=Buffer[Symbol.species],p1=Ze.addListener,W4e=Ze.removeAllListeners,DM;async function J4e(){let t=process.env.JEST_WORKER_ID?hM():void 0,e;try{e=await WebAssembly.compile(p$())}catch{e=await WebAssembly.compile(t||hM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onStatus(new g1(AA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(hn.ptr===r),hn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onHeaderField(new g1(AA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onHeaderValue(new g1(AA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(hn.ptr===r),hn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(hn.ptr===r);let i=n-cA+AA.byteOffset;return hn.onBody(new g1(AA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(hn.ptr===r),hn.onMessageComplete()||0)}})}var kM=null,FM=J4e();FM.catch();var hn=null,AA=null,m1=0,cA=null,z4e=0,PC=1,Ep=2|PC,C1=4|PC,MM=8|z4e,LM=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[RM])&&e[RM]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(aA.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=[],this. Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[C3e],i?p+=`connection: upgrade\r
`:p+=t[M4e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Rw]&&!h[zs]?p+=`connection: keep-alive\r
`:t[E1]&&!h[Ks]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let E=c[C+0],I=c[C+1];if(Array.isArray(I))for(let B=0;B<I.length;B++)p+=`${E}: ${I[B]}\r
`;else p+=`${E}: ${I}\r
`}return DZ.sendHeaders.hasSubscribers&&DZ.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?FZ(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?FZ(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?MZ(f,A.stream(),t,e,h,u,p,l):L3e(f,A,t,e,h,u,p,l):Ze.isStream(A)?M3e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?MZ(f,A,t,e,h,u,p,l):Ge(!1),!0}function M3e(t,e,r,n,s,i,o,a){Ge(i!==0||r[rs]===0,"stream body cannot be pipelined");let A=!1,c=new _w({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new LZ;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[ju]&&r[rs]<=1),s.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")?Ze.destroy(e,f):Ze.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 FZ(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return mee.sendHeaders.hasSubscribers&&mee.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?yee(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?yee(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?Bee(f,A.stream(),t,e,h,u,p,l):e6e(f,A,t,e,h,u,p,l):Ze.isStream(A)?$4e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?Bee(f,A,t,e,h,u,p,l):Ge(!1),!0}function $4e(t,e,r,n,s,i,o,a){Ge(i!==0||r[ns]===0,"stream body cannot be pipelined");let A=!1,c=new B1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new bee;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[dl]&&r[ns]<=1),s.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")?Ze.destroy(e,f):Ze.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 yee(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\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
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Ks]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zu]()}catch(A){t(A)}}async function L3e(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 Jd;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[ll]()}catch(A){t(A)}}async function e6e(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 gh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[zs]=!0),r[zu]()}catch(A){t(A)}}async function MZ(t,e,r,n,s,i,o,a){Ge(i!==0||r[rs]===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),s[uo]?h(s[uo]):A=d});s.on("close",c).on("drain",c);let l=new _w({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[uo])throw s[uo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var _w=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[ju]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[uo])throw r[uo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[NF])throw new Jd;process.emitWarning(new Jd)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ks]=!0),r[ll]()}catch(A){t(A)}}async function Bee(t,e,r,n,s,i,o,a){Ge(i!==0||r[ns]===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),s[go]?h(s[go]):A=d});s.on("close",c).on("drain",c);let l=new B1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[go])throw s[go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var B1=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[dl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[go])throw r[go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[_M])throw new gh;process.emitWarning(new gh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ks]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[_r].timeout&&r[_r].timeoutType===Kg&&r[_r].timeout.refresh&&r[_r].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[ju]=!1,e[uo])throw e[uo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Ep&&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[dl]=!1,e[go])throw e[go];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&&s!==r){if(n[NF])throw new Jd;process.emitWarning(new Jd)}e[_r].timeout&&e[_r].timeoutType===Kg&&e[_r].timeout.refresh&&e[_r].timeout.refresh(),n[zu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[ju]=!1,e&&(Ge(n[rs]<=1,"pipeline should only contain this request"),s(e))}};OZ.exports=k3e});var jZ=m((u5t,zZ)=>{"use strict";var lo=b("node:assert"),{pipeline:U3e}=b("node:stream"),pt=lt(),{RequestContentLengthMismatchError:DF,RequestAbortedError:GZ,SocketError:dC,InformationalError:kF}=Ft(),{kUrl:Fw,kReset:Lw,kClient:Xg,kRunning:Uw,kPending:P3e,kQueue:Ku,kPendingIdx:vF,kRunningIdx:da,kError:fa,kSocket:Nn,kStrictContentLength:O3e,kOnError:_F,kMaxConcurrentStreams:JZ,kHTTP2Session:ha,kResume:Xu,kSize:H3e,kHTTPContext:G3e}=Ir(),Lc=Symbol("open streams"),qZ,YZ=!1,Mw;try{Mw=b("node:http2")}catch{Mw={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:q3e,HTTP2_HEADER_METHOD:Y3e,HTTP2_HEADER_PATH:V3e,HTTP2_HEADER_SCHEME:W3e,HTTP2_HEADER_CONTENT_LENGTH:J3e,HTTP2_HEADER_EXPECT:z3e,HTTP2_HEADER_STATUS:j3e}}=Mw;function K3e(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 X3e(t,e){t[Nn]=e,YZ||(YZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Mw.connect(t[Fw],{createConnection:()=>e,peerMaxConcurrentStreams:t[JZ]});r[Lc]=0,r[Xg]=t,r[Nn]=e,pt.addListener(r,"error",$3e),pt.addListener(r,"frameError",e8e),pt.addListener(r,"end",t8e),pt.addListener(r,"goaway",r8e),pt.addListener(r,"close",function(){let{[Xg]:s}=this,{[Nn]:i}=s,o=this[Nn][fa]||this[fa]||new dC("closed",pt.getSocketInfo(i));if(s[ha]=null,s.destroyed){lo(s[P3e]===0);let a=s[Ku].splice(s[da]);for(let A=0;A<a.length;A++){let c=a[A];pt.errorRequest(s,c,o)}}}),r.unref(),t[ha]=r,e[ha]=r,pt.addListener(e,"error",function(s){lo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fa]=s,this[Xg][_F](s)}),pt.addListener(e,"end",function(){pt.destroy(this,new dC("other side closed",pt.getSocketInfo(this)))}),pt.addListener(e,"close",function(){let s=this[fa]||new dC("closed",pt.getSocketInfo(this));t[Nn]=null,this[ha]!=null&&this[ha].destroy(s),t[vF]=t[da],lo(t[Uw]===0),t.emit("disconnect",t[Fw],[t],s),t[Xu]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return s8e(t,...s)},resume(){Z3e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Z3e(t){let e=t[Nn];e?.destroyed===!1&&(t[H3e]===0&&t[JZ]===0?(e.unref(),t[ha].unref()):(e.ref(),t[ha].ref()))}function $3e(t){lo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nn][fa]=t,this[Xg][_F](t)}function e8e(t,e,r){if(r===0){let n=new kF(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nn][fa]=n,this[Xg][_F](n)}}function t8e(){let t=new dC("other side closed",pt.getSocketInfo(this[Nn]));this.destroy(t),pt.destroy(this[Nn],t)}function r8e(t){let e=this[fa]||new dC(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this)),r=this[Xg];if(r[Nn]=null,r[G3e]=null,this[ha]!=null&&(this[ha].destroy(e),this[ha]=null),pt.destroy(this[Nn],e),r[da]<r[Ku].length){let n=r[Ku][r[da]];r[Ku][r[da]++]=null,pt.errorRequest(r,n,e),r[vF]=r[da]}lo(r[Uw]===0),r.emit("disconnect",r[Fw],[r],e),r[Xu]()}function n8e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function s8e(t,e){let r=t[ha],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return pt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],q=c[R+1];if(Array.isArray(q))for(let v=0;v<q.length;v++)l[M]?l[M]+=`,${q[v]}`:l[M]=q[v];else l[M]=q}let d,{hostname:h,port:f}=t[Fw];l[q3e]=i||`${h}${f?`:${f}`:""}`,l[Y3e]=n;let p=R=>{e.aborted||e.completed||(R=R||new GZ,pt.errorRequest(t,e,R),d!=null&&pt.destroy(d,R),pt.destroy(u,R),t[Ku][t[da]++]=null,t[Xu]())};try{e.onConnect(p)}catch(R){pt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Lc],t[Ku][t[da]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Lc],t[Ku][t[da]++]=null}),d.once("close",()=>{r[Lc]-=1,r[Lc]===0&&r.unref()}),!0;l[V3e]=s,l[W3e]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=pt.bodyLength(u);if(pt.isFormDataLike(u)){qZ??=Jg().extractBody;let[R,M]=qZ(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),n8e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[O3e])return pt.errorRequest(t,e,new DF),!1;process.emitWarning(new DF)}E!=null&&(lo(u,"no body must not have content length"),l[J3e]=`${E}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[z3e]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("continue",B)):(d=r Line truncated
`,this[R8e]=A??3e5,this[x8e]=s??3e5,this[D8e]=I??!0,this[k8e]=R,this[UF]=q,this[$u]=null,this[L8e]=P>-1?P:-1,this[P8e]=Z??100,this[Jr]=null,this[ga]=[],this[Pc]=0,this[pa]=0,this[pC]=oe=>OF(this,oe),this[U8e]=oe=>a$(this,oe)}get pipelining(){return this[Gw]}set pipelining(e){this[Gw]=e,this[pC](!0)}get[CC](){return this[ga].length-this[pa]}get[EC](){return this[pa]-this[Pc]}get[mC](){return this[ga].length-this[Pc]}get[B8e](){return!!this[Jr]&&!this[$g]&&!this[Jr].destroyed}get[LF](){return!!(this[Jr]?.busy(null)||this[mC]>=(o$(this)||1)||this[CC]>0)}[y8e](e){A$(this),this.once("connect",e)}[M8e](e,r){let n=e.origin||this[sA].origin,s=new g8e(n,e,r);return this[ga].push(s),this[jd]||(zd.bodyLength(s.body)==null&&zd.isIterable(s.body)?(this[jd]=1,queueMicrotask(()=>OF(this))):this[pC](!0)),this[jd]&&this[el]!==2&&this[LF]&&(this[el]=2),this[el]<2}async[_8e](){return new Promise(e=>{this[mC]?this[$u]=e:e(null)})}async[F8e](e){return new Promise(r=>{let n=this[ga].splice(this[pa]);for(let i=0;i<n.length;i++){let o=n[i];zd.errorRequest(this,o,e)}let s=()=>{this[$u]&&(this[$u](),this[$u]=null),r(null)};this[Jr]?(this[Jr].destroy(e,s),this[Jr]=null):queueMicrotask(s),this[pC]()})}},G8e=Hw();function a$(t,e){if(t[EC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Uc(t[pa]===t[Pc]);let r=t[ga].splice(t[Pc]);for(let n=0;n<r.length;n++){let s=r[n];zd.errorRequest(t,s,e)}Uc(t[mC]===0)}}async function A$(t){Uc(!t[$g]),Uc(!t[Jr]);let{host:e,hostname:r,protocol:n,port:s}=t[sA];if(r[0]==="["){let i=r.indexOf("]");Uc(i!==-1);let o=r.substring(1,i);Uc(i$.isIP(o)),r=o}t[$g]=!0,Zg.beforeConnect.hasSubscribers&&Zg.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Jr]?.version,servername:t[Zu],localAddress:t[gC]},connector:t[fC]});try{let i=await new Promise((o,a)=>{t[fC]({host:e,hostname:r,protocol:n,port:s,servername:t[Zu],localAddress:t[gC]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){zd.destroy(i.on("error",n$),new E8e);return}Uc(i);try{t[Jr]=i.alpnProtocol==="h2"?await H8e(t,i):await O8e(t,i)}catch(o){throw i.destroy().on("error",n$),o}t[$g]=!1,i[v8e]=0,i[UF]=t[UF],i[I8e]=t,i[Q8e]=null,Zg.connected.hasSubscribers&&Zg.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Jr]?.version,servername:t[Zu],localAddress:t[gC]},connector:t[fC],socket:i}),t.emit("connect",t[sA],[t])}catch(i){if(t.destroyed)return;if(t[$g]=!1,Zg.connectError.hasSubscribers&&Zg.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Jr]?.version,servername:t[Zu],localAddress:t[gC]},connector:t[fC],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Uc(t[EC]===0);t[CC]>0&&t[ga][t[pa]].servername===t[Zu];){let o=t[ga][t[pa]++];zd.errorRequest(t,o,i)}else a$(t,i);t.emit("connectionError",t[sA],[t],i)}t[pC]()}function s$(t){t[el]=0,t.emit("drain",t[sA],[t])}function OF(t,e){t[jd]!==2&&(t[jd]=2,q8e(t,e),t[jd]=0,t[Pc]>256&&(t[ga].splice(0,t[Pc]),t[pa]-=t[Pc],t[Pc]=0))}function q8e(t,e){for(;;){if(t.destroyed){Uc(t[CC]===0);return}if(t[$u]&&!t[mC]){t[$u](),t[$u]=null;return}if(t[Jr]&&t[Jr].resume(),t[LF])t[el]=2;else if(t[el]===2){e?(t[el]=1,queueMicrotask(()=>s$(t))):s$(t);continue}if(t[CC]===0||t[EC]>=(o$(t)||1))return;let r=t[ga][t[pa]];if(t[sA].protocol==="https:"&&t[Zu]!==r.servername){if(t[EC]>0)return;t[Zu]=r.servername,t[Jr]?.destroy(new m8e("servername changed"),()=>{t[Jr]=null,OF(t)})}if(t[$g])return;if(!t[Jr]){A$(t);return}if(t[Jr].destroyed||t[Jr].busy(r))return;!r.aborted&&t[Jr].write(r)?t[pa]++:t[ga].splice(t[pa],1)}}c$.exports=PF});var HF=m((g5t,u$)=>{"use strict";var qw=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)}};u$.exports=class{constructor(){this.head=this.tail=new qw}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new qw),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var d$=m((p5t,l$)=>{var{kFree:Y8e,kConnected:V8e,kPending:W8e,kQueued:J8e,kRunning:z8e,kSize:j8e}=Ir(),Kd=Symbol("pool"),GF=class{constructor(e){this[Kd]=e}get connected(){return this[Kd][V8e]}get free(){return this[Kd][Y8e]}get pending(){return this[Kd][W8e]}get queued(){return this[Kd][J8e]}get running(){return this[Kd][z8e]}get size(){return this[Kd][j8e]}};l$.exports=GF});var zF=m((m5t,B$)=>{"use strict";var K8e=Ug(),X8e=HF(),{kConnected:qF,kSize:h$,kRunning:f$,kPending:g$,kQueued:IC,kBusy:Z8e,kFree:$8e,kUrl:e4e,kClose:t4e,kDestroy:r4e,kDispatch:n4e}=Ir(),s4e=d$(),js=Symbol("clients"),ws=Symbol("needDrain"),yC=Symbol("queue"),YF=Symbol("closed resolve"),VF=Symbol("onDrain"),p$=Symbol("onConnect"),m$=Symbol("onDisconnect"),E$=Symbol("onConnectionError"),WF=Symbol("g Line truncated
`,"latin1"),r!==null&&s!==r){if(n[_M])throw new gh;process.emitWarning(new gh)}e[Fr].timeout&&e[Fr].timeoutType===Ep&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[ll]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[dl]=!1,e&&(Ge(n[ns]<=1,"pipeline should only contain this request"),s(e))}};See.exports=j4e});var Fee=m((q9t,_ee)=>{"use strict";var po=b("node:assert"),{pipeline:t6e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:UM,RequestAbortedError:Tee,SocketError:HC,InformationalError:PM}=Mt(),{kUrl:b1,kReset:w1,kClient:Cp,kRunning:S1,kPending:r6e,kQueue:hl,kPendingIdx:OM,kRunningIdx:ma,kError:Ca,kSocket:Nn,kStrictContentLength:n6e,kOnError:HM,kMaxConcurrentStreams:vee,kHTTP2Session:Ea,kResume:fl,kSize:s6e,kHTTPContext:i6e}=yr(),jc=Symbol("open streams"),xee,Ree=!1,Q1;try{Q1=b("node:http2")}catch{Q1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:o6e,HTTP2_HEADER_METHOD:a6e,HTTP2_HEADER_PATH:A6e,HTTP2_HEADER_SCHEME:c6e,HTTP2_HEADER_CONTENT_LENGTH:u6e,HTTP2_HEADER_EXPECT:l6e,HTTP2_HEADER_STATUS:d6e}}=Q1;function h6e(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 f6e(t,e){t[Nn]=e,Ree||(Ree=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Q1.connect(t[b1],{createConnection:()=>e,peerMaxConcurrentStreams:t[vee]});r[jc]=0,r[Cp]=t,r[Nn]=e,mt.addListener(r,"error",p6e),mt.addListener(r,"frameError",m6e),mt.addListener(r,"end",E6e),mt.addListener(r,"goaway",C6e),mt.addListener(r,"close",function(){let{[Cp]:s}=this,{[Nn]:i}=s,o=this[Nn][Ca]||this[Ca]||new HC("closed",mt.getSocketInfo(i));if(s[Ea]=null,s.destroyed){po(s[r6e]===0);let a=s[hl].splice(s[ma]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[Ea]=r,e[Ea]=r,mt.addListener(e,"error",function(s){po(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ca]=s,this[Cp][HM](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new HC("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ca]||new HC("closed",mt.getSocketInfo(this));t[Nn]=null,this[Ea]!=null&&this[Ea].destroy(s),t[OM]=t[ma],po(t[S1]===0),t.emit("disconnect",t[b1],[t],s),t[fl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return y6e(t,...s)},resume(){g6e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function g6e(t){let e=t[Nn];e?.destroyed===!1&&(t[s6e]===0&&t[vee]===0?(e.unref(),t[Ea].unref()):(e.ref(),t[Ea].ref()))}function p6e(t){po(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nn][Ca]=t,this[Cp][HM](t)}function m6e(t,e,r){if(r===0){let n=new PM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nn][Ca]=n,this[Cp][HM](n)}}function E6e(){let t=new HC("other side closed",mt.getSocketInfo(this[Nn]));this.destroy(t),mt.destroy(this[Nn],t)}function C6e(t){let e=this[Ca]||new HC(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Cp];if(r[Nn]=null,r[i6e]=null,this[Ea]!=null&&(this[Ea].destroy(e),this[Ea]=null),mt.destroy(this[Nn],e),r[ma]<r[hl].length){let n=r[hl][r[ma]];r[hl][r[ma]++]=null,mt.errorRequest(r,n,e),r[OM]=r[ma]}po(r[S1]===0),r.emit("disconnect",r[b1],[r],e),r[fl]()}function I6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function y6e(t,e){let r=t[Ea],{method:n,path:s,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 R=0;R<c.length;R+=2){let M=c[R+0],q=c[R+1];if(Array.isArray(q))for(let v=0;v<q.length;v++)l[M]?l[M]+=`,${q[v]}`:l[M]=q[v];else l[M]=q}let d,{hostname:h,port:f}=t[b1];l[o6e]=i||`${h}${f?`:${f}`:""}`,l[a6e]=n;let p=R=>{e.aborted||e.completed||(R=R||new Tee,mt.errorRequest(t,e,R),d!=null&&mt.destroy(d,R),mt.destroy(u,R),t[hl][t[ma]++]=null,t[fl]())};try{e.onConnect(p)}catch(R){mt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[jc],t[hl][t[ma]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[jc],t[hl][t[ma]++]=null}),d.once("close",()=>{r[jc]-=1,r[jc]===0&&r.unref()}),!0;l[A6e]=s,l[c6e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=mt.bodyLength(u);if(mt.isFormDataLike(u)){xee??=gp().extractBody;let[R,M]=xee(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),I6e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[n6e])return mt.errorRequest(t,e,new UM),!1;process.emitWarning(new UM)}E!=null&&(po(u,"no body must not have content length"),l[u6e]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[l6e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[J6e]=A??3e5,this[W6e]=s??3e5,this[z6e]=C??!0,this[j6e]=R,this[VM]=q,this[pl]=null,this[e5e]=P>-1?P:-1,this[r5e]=$??100,this[zr]=null,this[Ia]=[],this[Xc]=0,this[ya]=0,this[VC]=Ae=>JM(this,Ae),this[t5e]=Ae=>Jee(this,Ae)}get pipelining(){return this[R1]}set pipelining(e){this[R1]=e,this[VC](!0)}get[zC](){return this[Ia].length-this[ya]}get[JC](){return this[ya]-this[Xc]}get[WC](){return this[Ia].length-this[Xc]}get[P6e](){return!!this[zr]&&!this[yp]&&!this[zr].destroyed}get[YM](){return!!(this[zr]?.busy(null)||this[WC]>=(Wee(this)||1)||this[zC]>0)}[U6e](e){zee(this),this.once("connect",e)}[$6e](e,r){let n=e.origin||this[lA].origin,s=new k6e(n,e,r);return this[Ia].push(s),this[mh]||(ph.bodyLength(s.body)==null&&ph.isIterable(s.body)?(this[mh]=1,queueMicrotask(()=>JM(this))):this[VC](!0)),this[mh]&&this[ml]!==2&&this[YM]&&(this[ml]=2),this[ml]<2}async[X6e](){return new Promise(e=>{this[WC]?this[pl]=e:e(null)})}async[Z6e](e){return new Promise(r=>{let n=this[Ia].splice(this[ya]);for(let i=0;i<n.length;i++){let o=n[i];ph.errorRequest(this,o,e)}let s=()=>{this[pl]&&(this[pl](),this[pl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[VC]()})}},i5e=x1();function Jee(t,e){if(t[JC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Kc(t[ya]===t[Xc]);let r=t[Ia].splice(t[Xc]);for(let n=0;n<r.length;n++){let s=r[n];ph.errorRequest(t,s,e)}Kc(t[WC]===0)}}async function zee(t){Kc(!t[yp]),Kc(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[lA];if(r[0]==="["){let i=r.indexOf("]");Kc(i!==-1);let o=r.substring(1,i);Kc(Vee.isIP(o)),r=o}t[yp]=!0,Ip.beforeConnect.hasSubscribers&&Ip.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[gl],localAddress:t[YC]},connector:t[qC]});try{let i=await new Promise((o,a)=>{t[qC]({host:e,hostname:r,protocol:n,port:s,servername:t[gl],localAddress:t[YC]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){ph.destroy(i.on("error",qee),new F6e);return}Kc(i);try{t[zr]=i.alpnProtocol==="h2"?await s5e(t,i):await n5e(t,i)}catch(o){throw i.destroy().on("error",qee),o}t[yp]=!1,i[K6e]=0,i[VM]=t[VM],i[L6e]=t,i[H6e]=null,Ip.connected.hasSubscribers&&Ip.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[gl],localAddress:t[YC]},connector:t[qC],socket:i}),t.emit("connect",t[lA],[t])}catch(i){if(t.destroyed)return;if(t[yp]=!1,Ip.connectError.hasSubscribers&&Ip.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[gl],localAddress:t[YC]},connector:t[qC],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Kc(t[JC]===0);t[zC]>0&&t[Ia][t[ya]].servername===t[gl];){let o=t[Ia][t[ya]++];ph.errorRequest(t,o,i)}else Jee(t,i);t.emit("connectionError",t[lA],[t],i)}t[VC]()}function Yee(t){t[ml]=0,t.emit("drain",t[lA],[t])}function JM(t,e){t[mh]!==2&&(t[mh]=2,o5e(t,e),t[mh]=0,t[Xc]>256&&(t[Ia].splice(0,t[Xc]),t[ya]-=t[Xc],t[Xc]=0))}function o5e(t,e){for(;;){if(t.destroyed){Kc(t[zC]===0);return}if(t[pl]&&!t[WC]){t[pl](),t[pl]=null;return}if(t[zr]&&t[zr].resume(),t[YM])t[ml]=2;else if(t[ml]===2){e?(t[ml]=1,queueMicrotask(()=>Yee(t))):Yee(t);continue}if(t[zC]===0||t[JC]>=(Wee(t)||1))return;let r=t[Ia][t[ya]];if(t[lA].protocol==="https:"&&t[gl]!==r.servername){if(t[JC]>0)return;t[gl]=r.servername,t[zr]?.destroy(new _6e("servername changed"),()=>{t[zr]=null,JM(t)})}if(t[yp])return;if(!t[zr]){zee(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[ya]++:t[Ia].splice(t[ya],1)}}jee.exports=WM});var zM=m((z9t,Kee)=>{"use strict";var D1=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)}};Kee.exports=class{constructor(){this.head=this.tail=new D1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new D1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Zee=m((j9t,Xee)=>{var{kFree:a5e,kConnected:A5e,kPending:c5e,kQueued:u5e,kRunning:l5e,kSize:d5e}=yr(),Eh=Symbol("pool"),jM=class{constructor(e){this[Eh]=e}get connected(){return this[Eh][A5e]}get free(){return this[Eh][a5e]}get pending(){return this[Eh][c5e]}get queued(){return this[Eh][u5e]}get running(){return this[Eh][l5e]}get size(){return this[Eh][d5e]}};Xee.exports=jM});var tL=m((K9t,Ate)=>{"use strict";var h5e=op(),f5e=zM(),{kConnected:KM,kSize:$ee,kRunning:ete,kPending:tte,kQueued:jC,kBusy:g5e,kFree:p5e,kUrl:m5e,kClose:E5e,kDestroy:C5e,kDispatch:I5e}=yr(),y5e=Zee(),Xs=Symbol("clients"),Ss=Symbol("needDrain"),KC=Symbol("queue"),XM=Symbol("closed resolve"),ZM=Symbol("onDrain"),rte=Symbol("onConnect"),nte=Symbol("onDisconnect"),ste=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Tte.exports=zM});var a1=m((V5t,vte)=>{"use strict";var Rte=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:R5e}=Ft(),D5e=rp();kte()===void 0&&Dte(new D5e);function Dte(t){if(!t||typeof t.dispatch!="function")throw new R5e("Argument agent must implement Agent");Object.defineProperty(globalThis,Rte,{value:t,writable:!0,enumerable:!1,configurable:!1})}function kte(){return globalThis[Rte]}vte.exports={setGlobalDispatcher:Dte,getGlobalDispatcher:kte}});var A1=m((J5t,_te)=>{"use strict";_te.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 Mte=m((z5t,Fte)=>{"use strict";var k5e=Ow();Fte.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new k5e(r,o,s,i);return r(a,A)}}});var Ute=m((j5t,Lte)=>{"use strict";var v5e=Xw();Lte.exports=t=>e=>function(n,s){return e(n,new v5e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Ote=m((K5t,Pte)=>{"use strict";var _5e=lt(),{InvalidArgumentError:F5e,RequestAbortedError:M5e}=Ft(),L5e=A1(),jM=class extends L5e{#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 F5e("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=_5e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new M5e(`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 U5e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new jM({maxSize:i},s);return e(n,o)}}Pte.exports=U5e});var qte=m((X5t,Gte)=>{"use strict";var{isIP:P5e}=b("node:net"),{lookup:O5e}=b("node:dns"),H5e=A1(),{InvalidArgumentError:dp,InformationalError:G5e}=Ft(),Hte=Math.pow(2,31)-1,KM=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 G5e("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.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){O5e(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===Hte?(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===Hte?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,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 XM(this,e,r)}},XM=class extends H5e{#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":Bse(i)&&(r[s]=i);break;case"id":bse(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Bse(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&bse(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}}};Qse.exports={EventSourceStream:ML}});var vse=m((THt,kse)=>{"use strict";var{pipeline:Zqe}=b("node:stream"),{fetching:$qe}=_C(),{makeRequest:eYe}=gp(),{webidl:Yc}=Wn(),{EventSourceStream:tYe}=wse(),{parseMIMEType:rYe}=Js(),{createFastMessageEvent:nYe}=yp(),{isNetworkError:Sse}=kC(),{delay:sYe}=_L(),{kEnumerableProperty:lh}=lt(),{environmentSettingsObject:Nse}=yi(),Tse=!1,xse=3e3,JC=0,Rse=1,zC=2,iYe="anonymous",oYe="use-credentials",Sp=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=JC;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Yc.util.markAsUncloneable(this);let n="EventSource constructor";Yc.argumentLengthCheck(arguments,1,n),Tse||(Tse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yc.converters.USVString(e,n,"url"),r=Yc.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:xse};let s=Nse,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=iYe;r.withCredentials&&(o=oYe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Nse.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=eYe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===zC)return;this.#r=JC;let e={request:this.#s,dispatcher:this.#a},r=n=>{Sse(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Sse(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?rYe(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=Rse,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new tYe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(nYe(A.type,A.options))}});Zqe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=$qe(e)}async#c(){this.#r!==zC&&(this.#r=JC,this.dispatchEvent(new Event("error")),await sYe(this.#o.reconnectionTime),this.#r===JC&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Yc.brandCheck(this,t),this.#r!==zC&&(this.#r=zC,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}},Dse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:JC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Rse,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zC,writable:!1}};Object.defineProperties(Sp,Dse);Object.defineProperties(Sp.prototype,Dse);Object.defineProperties(Sp.prototype,{close:lh,onerror:lh,onmessage:lh,onopen:lh,readyState:lh,url:lh,withCredentials:lh});Yc.converters.EventSourceInitDict=Yc.dictionaryConverter([{key:"withCredentials",converter:Yc.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Yc.converters.any}]);kse.exports={EventSource:Sp,defaultReconnectionTime:xse}});var K1=m((xHt,Ye)=>{"use strict";var aYe=ep(),_se=ZE(),AYe=tp(),cYe=D$(),uYe=rp(),lYe=aM(),dYe=tee(),hYe=aee(),Fse=Ft(),j1=lt(),{InvalidArgumentError:z1}=Fse,Np=Jee(),fYe=eC(),gYe=GM(),pYe=xte(),mYe=VM(),EYe=xM(),CYe=Xw(),{getGlobalDispatcher:Mse,setGlobalDispatcher:IYe}=a1(),yYe=A1(),BYe=Ow(),bYe=Hw();Object.assign(_se.prototype,Np);Ye.exports.Dispatcher=_se;Ye.exports.Client=aYe;Ye.exports.Pool=AYe;Ye.exports.BalancedPool=cYe;Ye.exports.Agent=uYe;Ye.exports.ProxyAgent=lYe;Ye.exports.EnvHttpProxyAgent=dYe;Ye.exports. Line truncated
%s`,M,M,I,n);var q=I.type==="*"?SU:I.type==="?"?wU:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+q+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],J=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),oe=n.slice(D.reEnd);te+=oe;var fe=J.split("(").length-1,De=oe;for(p=0;p<fe;p++)De=De.replace(/\)[+*?]?/,"");oe=De;var Ke="";oe===""&&e!==dS&&(Ke="$");var st=J+Z+oe+Ke+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===dS)return[n,s];if(!s)return CWe(t);var Vt=r.nocase?"i":"";try{var Dt=new RegExp("^"+n+"$",Vt)}catch{return new RegExp("$.")}return Dt._glob=t,Dt._src=n,Dt}Di.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=EWe;function EWe(){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?SU:e.dot?uWe:lWe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Eh?r:typeof o=="string"?IWe(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}Di.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;iI.sep!=="/"&&(e=e.split(iI.sep).join("/")),e=e.split(goe),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],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(Eh)!==-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]===Eh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Eh){a=i;break}var A=e.slice(s,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(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.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(!c.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 C=[[[],0]],E=C[0],I=0,B=[0],R=0;R<c.length;R++){var M=c[R];M===Eh?(B.push(I),E=[[],0],C.push(E)):(E[0].push(M),I++)}for(var q=C.length-1,v=t.length-d,P=0;P<C.length;P++)C[P][1]=v-(B[q--]+C[P][0].length);return!!this._matchGlobStarBodySections(t,C,n,0,r,0,!!d)};an.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];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,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 c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,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===Eh)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 CWe(t){return t.replace(/\\(.)/g,"$1")}function IWe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var cI=m((NGt,Boe)=>{"use strict";var NWe="2.0.0",TWe=Number.MAX_SAFE_INTEGER||9007199254740991,xWe=16,RWe=250,DWe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Boe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xWe,MAX_SAFE_BUILD_LENGTH:RWe,MAX_SAFE_INTEGER:TWe,RELEASE_TYPES:DWe,SEMVER_SPEC_VERSION:NWe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var uI=m((TGt,boe)=>{"use strict";var kWe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};boe.exports=kWe});var Mp=m((AA,Qoe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:xU,MAX_SAFE_BUILD_LENGTH:vWe,MAX_LENGTH:_We}=cI(),FWe=uI();AA=Qoe.exports={};var MWe=AA.re=[],LWe=AA.safeRe=[],pe=AA.src=[],UWe=AA.safeSrc=[],me=AA.t={},PWe=0,RU="[a-zA-Z0-9-]",OWe=[["\\s",1],["\\d",_We],[RU,vWe]],HWe=t=>{for(let[e,r]of OWe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};fne.exports=tU});var j1=m((QGt,Cne)=>{"use strict";var pne=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:J9e}=Mt(),z9e=Qp();Ene()===void 0&&mne(new z9e);function mne(t){if(!t||typeof t.dispatch!="function")throw new J9e("Argument agent must implement Agent");Object.defineProperty(globalThis,pne,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ene(){return globalThis[pne]}Cne.exports={setGlobalDispatcher:mne,getGlobalDispatcher:Ene}});var K1=m((SGt,Ine)=>{"use strict";Ine.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 Bne=m((NGt,yne)=>{"use strict";var j9e=T1();yne.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new j9e(r,o,s,i);return r(a,A)}}});var Qne=m((TGt,bne)=>{"use strict";var K9e=P1();bne.exports=t=>e=>function(n,s){return e(n,new K9e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Sne=m((xGt,wne)=>{"use strict";var X9e=dt(),{InvalidArgumentError:Z9e,RequestAbortedError:$9e}=Mt(),eGe=K1(),rU=class extends eGe{#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 Z9e("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=X9e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new $9e(`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 tGe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new rU({maxSize:i},s);return e(n,o)}}wne.exports=tGe});var xne=m((RGt,Tne)=>{"use strict";var{isIP:rGe}=b("node:net"),{lookup:nGe}=b("node:dns"),sGe=K1(),{InvalidArgumentError:_p,InformationalError:iGe}=Mt(),Nne=Math.pow(2,31)-1,nU=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 iGe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.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){nGe(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===Nne?(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===Nne?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,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 sU(this,e,r)}},sU=class extends sGe{#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":Aoe(i)&&(r[s]=i);break;case"id":coe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Aoe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&coe(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}}};uoe.exports={EventSourceStream:qU}});var Coe=m((aqt,Eoe)=>{"use strict";var{pipeline:g7e}=b("node:stream"),{fetching:p7e}=cI(),{makeRequest:m7e}=Lp(),{webidl:ru}=Wn(),{EventSourceStream:E7e}=loe(),{parseMIMEType:C7e}=js(),{createFastMessageEvent:I7e}=qp(),{isNetworkError:doe}=aI(),{delay:y7e}=HU(),{kEnumerableProperty:vh}=dt(),{environmentSettingsObject:hoe}=Qi(),foe=!1,goe=3e3,BI=0,poe=1,bI=2,B7e="anonymous",b7e="use-credentials",zp=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=BI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),ru.util.markAsUncloneable(this);let n="EventSource constructor";ru.argumentLengthCheck(arguments,1,n),foe||(foe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ru.converters.USVString(e,n,"url"),r=ru.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:goe};let s=hoe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=B7e;r.withCredentials&&(o=b7e,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hoe.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=m7e(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===bI)return;this.#r=BI;let e={request:this.#s,dispatcher:this.#a},r=n=>{doe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(doe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?C7e(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=poe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new E7e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(I7e(A.type,A.options))}});g7e(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=p7e(e)}async#c(){this.#r!==bI&&(this.#r=BI,this.dispatchEvent(new Event("error")),await y7e(this.#o.reconnectionTime),this.#r===BI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){ru.brandCheck(this,t),this.#r!==bI&&(this.#r=bI,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}},moe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:BI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:poe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bI,writable:!1}};Object.defineProperties(zp,moe);Object.defineProperties(zp.prototype,moe);Object.defineProperties(zp.prototype,{close:vh,onerror:vh,onmessage:vh,onopen:vh,readyState:vh,url:vh,withCredentials:vh});ru.converters.EventSourceInitDict=ru.dictionaryConverter([{key:"withCredentials",converter:ru.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:ru.converters.any}]);Eoe.exports={EventSource:zp,defaultReconnectionTime:goe}});var US=m((Aqt,Ye)=>{"use strict";var Q7e=Bp(),Ioe=NC(),w7e=bp(),S7e=mte(),N7e=Qp(),T7e=fL(),x7e=Hte(),R7e=Jte(),yoe=Mt(),LS=dt(),{InvalidArgumentError:MS}=yoe,jp=vre(),D7e=xC(),k7e=jL(),v7e=gne(),_7e=ZL(),F7e=ML(),M7e=P1(),{getGlobalDispatcher:Boe,setGlobalDispatcher:L7e}=j1(),U7e=K1(),P7e=T1(),O7e=x1();Object.assign(Ioe.prototype,jp);Ye.exports.Dispatcher=Ioe;Ye.exports.Client=Q7e;Ye.exports.Pool=w7e;Ye.exports.BalancedPool=S7e;Ye.exports.Agent=N7e;Ye.exports.ProxyAgent=T7e;Ye.exports.EnvHttpProxyAgent=x7e;Ye.exports Line truncated
%s`,M,M,C,n);var q=C.type==="*"?UP:C.type==="?"?LP:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+q+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),$=n.slice(D.reStart,D.reEnd-8),re=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);re+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==oN&&(Ke="$");var it=z+$+Ae+Ke+re;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===oN)return[n,s];if(!s)return Fze(t);var Wt=r.nocase?"i":"";try{var kt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return kt._glob=t,kt._src=n,kt}vi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=_ze;function _ze(){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?UP:e.dot?Sze:Nze,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Ph?r:typeof o=="string"?Mze(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}vi.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;_I.sep!=="/"&&(e=e.split(_I.sep).join("/")),e=e.split(AAe),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],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(Ph)!==-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]===Ph){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Ph){a=i;break}var A=e.slice(s,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(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.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(!c.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]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===Ph?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var q=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[q--]+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 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,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 c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,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===Ph)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 Fze(t){return t.replace(/\\(.)/g,"$1")}function Mze(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var PI=m((tVt,IAe)=>{"use strict";var Yze="2.0.0",Vze=Number.MAX_SAFE_INTEGER||9007199254740991,Wze=16,Jze=250,zze=["major","premajor","minor","preminor","patch","prepatch","prerelease"];IAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Wze,MAX_SAFE_BUILD_LENGTH:Jze,MAX_SAFE_INTEGER:Vze,RELEASE_TYPES:zze,SEMVER_SPEC_VERSION:Yze,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var OI=m((rVt,yAe)=>{"use strict";var jze=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};yAe.exports=jze});var nm=m((CA,BAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:GP,MAX_SAFE_BUILD_LENGTH:Kze,MAX_LENGTH:Xze}=PI(),Zze=OI();CA=BAe.exports={};var $ze=CA.re=[],eje=CA.safeRe=[],me=CA.src=[],tje=CA.safeSrc=[],Ee=CA.t={},rje=0,qP="[a-zA-Z0-9-]",nje=[["\\s",1],["\\d",Xze],[qP,Kze]],sje=t=>{for(let[e,r]of nje)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+jS.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=IKe()+e+" "+t[0]}function IKe(){return xn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function yKe(...t){return process.stderr.write(zS.formatWithOptions(xn.inspectOpts,...t)+`
`)}function BKe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function bKe(){return process.env.DEBUG}function QKe(t){t.inspectOpts={};let e=Object.keys(xn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xn.inspectOpts[e[r]]}jS.exports=hP()(xn);var{formatters:jAe}=jS.exports;jAe.o=function(t){return this.inspectOpts.colors=this.useColors,zS.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};jAe.O=function(t){return this.inspectOpts.colors=this.useColors,zS.inspect(t,this.inspectOpts)}});var KS=m((ZYt,pP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?pP.exports=qAe():pP.exports=KAe()});var $Ae=m(ti=>{"use strict";var wKe=ti&&ti.__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]})),SKe=ti&&ti.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XAe=ti&&ti.__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)&&wKe(e,t,r);return SKe(e,t),e};Object.defineProperty(ti,"__esModule",{value:!0});ti.req=ti.json=ti.toBuffer=void 0;var NKe=XAe(b("http")),TKe=XAe(b("https"));async function ZAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ti.toBuffer=ZAe;async function xKe(t){let r=(await ZAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ti.json=xKe;function RKe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?TKe:NKe).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ti.req=RKe});var EP=m(vi=>{"use strict";var tce=vi&&vi.__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]})),DKe=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rce=vi&&vi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tce(e,t,r);return DKe(e,t),e},kKe=vi&&vi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tce(e,t,r)};Object.defineProperty(vi,"__esModule",{value:!0});vi.Agent=void 0;var vKe=rce(b("net")),ece=rce(b("http")),_Ke=b("https");kKe($Ae(),vi);var uA=Symbol("AgentBaseInternalState"),mP=class extends ece.Agent{constructor(e){super(e),this[uA]={}}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 vKe.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)?_Ke.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 ece.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[uA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[uA].currentSocket;if(this[uA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[uA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[uA]&&(this[uA].defaultPort=e)}get protocol(){return this[uA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[uA]&&(this[uA].protocol=e)}};vi.Agent=mP});var nce=m(Gp=>{"use strict";var FKe=Gp&&Gp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gp,"__esModule",{value:!0});Gp.parseProxyResponse=void 0;var MKe=FKe(KS()),XS=(0,MKe.default)("https-proxy-agent:parse-proxy-response");function LKe(t){return new Promise((e,r)=>{let n=0,s=[];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(),XS("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),XS("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+WN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=_Ze()+e+" "+t[0]}function _Ze(){return xn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function FZe(...t){return process.stderr.write(VN.formatWithOptions(xn.inspectOpts,...t)+`
`)}function MZe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function LZe(){return process.env.DEBUG}function UZe(t){t.inspectOpts={};let e=Object.keys(xn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xn.inspectOpts[e[r]]}WN.exports=xO()(xn);var{formatters:$ue}=WN.exports;$ue.o=function(t){return this.inspectOpts.colors=this.useColors,VN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};$ue.O=function(t){return this.inspectOpts.colors=this.useColors,VN.inspect(t,this.inspectOpts)}});var JN=m((SWt,kO)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kO.exports=Jue():kO.exports=ele()});var nle=m(ni=>{"use strict";var PZe=ni&&ni.__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]})),OZe=ni&&ni.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tle=ni&&ni.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&PZe(e,t,r);return OZe(e,t),e};Object.defineProperty(ni,"__esModule",{value:!0});ni.req=ni.json=ni.toBuffer=void 0;var HZe=tle(b("http")),GZe=tle(b("https"));async function rle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ni.toBuffer=rle;async function qZe(t){let r=(await rle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ni.json=qZe;function YZe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?GZe:HZe).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ni.req=YZe});var _O=m(Mi=>{"use strict";var ile=Mi&&Mi.__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]})),VZe=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ole=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)&&ile(e,t,r);return VZe(e,t),e},WZe=Mi&&Mi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ile(e,t,r)};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Agent=void 0;var JZe=ole(b("net")),sle=ole(b("http")),zZe=b("https");WZe(nle(),Mi);var BA=Symbol("AgentBaseInternalState"),vO=class extends sle.Agent{constructor(e){super(e),this[BA]={}}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 JZe.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)?zZe.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 sle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[BA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[BA].currentSocket;if(this[BA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[BA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[BA]&&(this[BA].defaultPort=e)}get protocol(){return this[BA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[BA]&&(this[BA].protocol=e)}};Mi.Agent=vO});var ale=m(dm=>{"use strict";var jZe=dm&&dm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dm,"__esModule",{value:!0});dm.parseProxyResponse=void 0;var KZe=jZe(JN()),zN=(0,KZe.default)("https-proxy-agent:parse-proxy-response");function XZe(t){return new Promise((e,r)=>{let n=0,s=[];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(),zN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),zN("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){XS("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(" "),C=+p[1],E=p.slice(2).join(" "),I={};for(let B of h){if(!B)continue;let R=B.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let M=B.slice(0,R).toLowerCase(),q=B.slice(R+1).trimStart(),v=I[M];typeof v=="string"?I[M]=[v,q]:Array.isArray(v)?v.push(q):I[M]=q}XS("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:C,statusText:E,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}Gp.parseProxyResponse=LKe});var cce=m(Bo=>{"use strict";var UKe=Bo&&Bo.__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]})),PKe=Bo&&Bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ace=Bo&&Bo.__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)&&UKe(e,t,r);return PKe(e,t),e},Ace=Bo&&Bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.HttpsProxyAgent=void 0;var ZS=ace(b("net")),sce=ace(b("tls")),OKe=Ace(b("assert")),HKe=Ace(KS()),GKe=EP(),qKe=b("url"),YKe=nce(),CI=(0,HKe.default)("https-proxy-agent"),ice=t=>t.servername===void 0&&t.host&&!ZS.isIP(t.host)?{...t,servername:t.host}:t,$S=class extends GKe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new qKe.URL(e):e,this.proxyHeaders=r?.headers??{},CI("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?oce(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:"?(CI("Creating `tls.Socket`: %o",this.connectOpts),s=sce.connect(ice(this.connectOpts))):(CI("Creating `net.Socket`: %o",this.connectOpts),s=ZS.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=ZS.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){zN("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],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),q=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,q]:Array.isArray(v)?v.push(q):C[M]=q}zN("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}dm.parseProxyResponse=XZe});var hle=m(So=>{"use strict";var ZZe=So&&So.__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]})),$Ze=So&&So.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lle=So&&So.__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)&&ZZe(e,t,r);return $Ze(e,t),e},dle=So&&So.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(So,"__esModule",{value:!0});So.HttpsProxyAgent=void 0;var jN=lle(b("net")),Ale=lle(b("tls")),e$e=dle(b("assert")),t$e=dle(JN()),r$e=_O(),n$e=b("url"),s$e=ale(),ey=(0,t$e.default)("https-proxy-agent"),cle=t=>t.servername===void 0&&t.host&&!jN.isIP(t.host)?{...t,servername:t.host}:t,KN=class extends r$e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new n$e.URL(e):e,this.proxyHeaders=r?.headers??{},ey("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?ule(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:"?(ey("Creating `tls.Socket`: %o",this.connectOpts),s=Ale.connect(cle(this.connectOpts))):(ey("Creating `net.Socket`: %o",this.connectOpts),s=jN.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=jN.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 A=(0,YKe.parseProxyResponse)(s);s.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",VKe),r.secureEndpoint?(CI("Upgrading socket connection to TLS"),sce.connect({...oce(ice(r),"host","path","port"),socket:s})):s;s.destroy();let l=new ZS.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{CI("Replaying proxy buffer for failed request"),(0,OKe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};$S.protocols=["http","https"];Bo.HttpsProxyAgent=$S;function VKe(t){t.resume()}function oce(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var dce=m(bo=>{"use strict";var WKe=bo&&bo.__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]})),JKe=bo&&bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lce=bo&&bo.__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)&&WKe(e,t,r);return JKe(e,t),e},zKe=bo&&bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bo,"__esModule",{value:!0});bo.HttpProxyAgent=void 0;var jKe=lce(b("net")),KKe=lce(b("tls")),XKe=zKe(KS()),ZKe=b("events"),$Ke=EP(),uce=b("url"),qp=(0,XKe.default)("http-proxy-agent"),eN=class extends $Ke.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new uce.URL(e):e,this.proxyHeaders=r?.headers??{},qp("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?eXe(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 uce.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(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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 n,s;qp("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(qp("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let A=(0,s$e.parseProxyResponse)(s);s.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",i$e),r.secureEndpoint?(ey("Upgrading socket connection to TLS"),Ale.connect({...ule(cle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new jN.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{ey("Replaying proxy buffer for failed request"),(0,e$e.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};KN.protocols=["http","https"];So.HttpsProxyAgent=KN;function i$e(t){t.resume()}function ule(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ple=m(No=>{"use strict";var o$e=No&&No.__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]})),a$e=No&&No.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gle=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)&&o$e(e,t,r);return a$e(e,t),e},A$e=No&&No.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(No,"__esModule",{value:!0});No.HttpProxyAgent=void 0;var c$e=gle(b("net")),u$e=gle(b("tls")),l$e=A$e(JN()),d$e=b("events"),h$e=_O(),fle=b("url"),hm=(0,l$e.default)("http-proxy-agent"),XN=class extends h$e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new fle.URL(e):e,this.proxyHeaders=r?.headers??{},hm("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?f$e(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 fle.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(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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 n,s;hm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hm("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+n.substring(s),qp("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(qp("Creating `tls.Socket`: %o",this.connectOpts),i=KKe.connect(this.connectOpts)):(qp("Creating `net.Socket`: %o",this.connectOpts),i=jKe.connect(this.connectOpts)),await(0,ZKe.once)(i,"connect"),i}};eN.protocols=["http","https"];bo.HttpProxyAgent=eN;function eXe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yce=m(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.state=void 0;fN.state={instrumenterImplementation:void 0}});var aue=m(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.state=void 0;CN.state={operationRequestMap:new WeakMap}});var fde=m((xor,Vrt)=>{Vrt.exports={name:"@actions/cache",version:"6.0.0",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.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var pde=m((Ror,gde)=>{var Wrt=fde();gde.exports={version:Wrt.version}});var UT=m(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.isJsonObject=am.typeofJsonValue=void 0;function Zrt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}am.typeofJsonValue=Zrt;function $rt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}am.isJsonObject=$rt});var OT=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.base64encode=Am.base64decode=void 0;var Au="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),PT=[];for(let t=0;t<Au.length;t++)PT[Au[t].charCodeAt(0)]=t;PT[45]=Au.indexOf("+");PT[95]=Au.indexOf("/");function ent(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=PT[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)}Am.base64decode=ent;function tnt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Au[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Au[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Au[s|n>>6],e+=Au[n&63],r=0;break}return r&&(e+=Au[s],e+="=",r==1&&(e+="=")),e}Am.base64encode=tnt});var Ede=m(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.utf8read=void 0;var i6=t=>String.fromCharCode.apply(String,t);function rnt(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(i6(n)),s=0);return r.length?(s&&r.push(i6(n.slice(0,s))),r.join("")):i6(n.slice(0,s))}HT.utf8read=rnt});var uy=m(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});FA.WireType=FA.mergeBinaryOptions=FA.UnknownFieldHandler=void 0;var nnt;(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])})(nnt=FA.UnknownFieldHandler||(FA.UnknownFieldHandler={}));function snt(t,e){return Object.assign(Object.assign({},t),e)}FA.mergeBinaryOptions=snt;var int;(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"})(int=FA.WireType||(FA.WireType={}))});var qT=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.varint32read=oi.varint32write=oi.int64toString=oi.int64fromString=oi.varint64write=oi.varint64read=void 0;function ont(){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")}oi.varint64read=ont;function ant(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 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),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}oi.varint64write=ant;var GT=65536*65536;function Ant(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=GT&&(s=s+(n/GT|0),n=n%GT)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}oi.int64fromString=Ant;function cnt(t,e){if(e>>>0<=2097151)return""+(GT*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,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)}oi.int64toString=cnt;function unt(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)}}oi.varint32write=unt;function lnt(){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}oi.varint32read=lnt});var Tl=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.PbLong=Nl.PbULong=Nl.detectBi=void 0;var ly=qT(),ir;function Cde(){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}Nl.detectBi=Cde;Cde();function Ide(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var yde=/^-?[0-9]+$/,VT=4294967296,YT=2147483648,WT=c Line truncated
`)}};px.RpcError=k6});var _6=m(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.mergeRpcOptions=void 0;var Xde=At();function vst(t,e){if(!e)return t;let r={};mx(t,r),mx(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Xde.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Xde.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mx(t.meta,r.meta),mx(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}Ex.mergeRpcOptions=vst;function mx(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 M6=m(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.Deferred=jh.DeferredState=void 0;var UA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(UA=jh.DeferredState||(jh.DeferredState={}));var F6=class{constructor(e=!0){this._state=UA.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!==UA.PENDING)throw new Error(`cannot resolve ${UA[this.state].toLowerCase()}`);this._resolve(e),this._state=UA.RESOLVED}reject(e){if(this.state!==UA.PENDING)throw new Error(`cannot reject ${UA[this.state].toLowerCase()}`);this._reject(e),this._state=UA.REJECTED}resolvePending(e){this._state===UA.PENDING&&this.resolve(e)}rejectPending(e){this._state===UA.PENDING&&this.reject(e)}};jh.Deferred=F6});var U6=m(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0});Cx.RpcOutputStreamController=void 0;var Zde=M6(),Kh=At(),L6=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){Kh.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){Kh.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){Kh.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(){Kh.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;Kh.assert(e,"bad state"),Kh.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 Zde.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kh.assert(n.state==Zde.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Cx.RpcOutputStreamController=L6});var O6=m(gm=>{"use strict";var _st=gm&&gm.__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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(gm,"__esModule",{value:!0});gm.UnaryCall=void 0;var P6=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 _st(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}})}};gm.UnaryCall=P6});var G6=m(pm=>{"use strict";var Fst=pm&&pm.__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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(pm,"__esModule",{value:!0});pm.ServerStreamingCall=void 0;var H6=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),hm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hm("Creating `tls.Socket`: %o",this.connectOpts),i=u$e.connect(this.connectOpts)):(hm("Creating `net.Socket`: %o",this.connectOpts),i=c$e.connect(this.connectOpts)),await(0,d$e.once)(i,"connect"),i}};XN.protocols=["http","https"];No.HttpProxyAgent=XN;function f$e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var zle=m(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.state=void 0;lT.state={instrumenterImplementation:void 0}});var lde=m(pT=>{"use strict";Object.defineProperty(pT,"__esModule",{value:!0});pT.state=void 0;pT.state={operationRequestMap:new WeakMap}});var Qfe=m((ecr,lit)=>{lit.exports={name:"@actions/cache",version:"6.0.0",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.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Sfe=m((tcr,wfe)=>{var dit=Qfe();wfe.exports={version:dit.version}});var Ox=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.isJsonObject=Fm.typeofJsonValue=void 0;function yit(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Fm.typeofJsonValue=yit;function Bit(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Fm.isJsonObject=Bit});var Gx=m(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.base64encode=Mm.base64decode=void 0;var bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Hx=[];for(let t=0;t<bu.length;t++)Hx[bu[t].charCodeAt(0)]=t;Hx[45]=bu.indexOf("+");Hx[95]=bu.indexOf("/");function bit(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=Hx[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)}Mm.base64decode=bit;function Qit(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=bu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=bu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=bu[s|n>>6],e+=bu[n&63],r=0;break}return r&&(e+=bu[s],e+="=",r==1&&(e+="=")),e}Mm.base64encode=Qit});var Dfe=m(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});qx.utf8read=void 0;var N5=t=>String.fromCharCode.apply(String,t);function wit(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(N5(n)),s=0);return r.length?(s&&r.push(N5(n.slice(0,s))),r.join("")):N5(n.slice(0,s))}qx.utf8read=wit});var zy=m(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.WireType=JA.mergeBinaryOptions=JA.UnknownFieldHandler=void 0;var Sit;(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])})(Sit=JA.UnknownFieldHandler||(JA.UnknownFieldHandler={}));function Nit(t,e){return Object.assign(Object.assign({},t),e)}JA.mergeBinaryOptions=Nit;var Tit;(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"})(Tit=JA.WireType||(JA.WireType={}))});var Vx=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.varint32read=ci.varint32write=ci.int64toString=ci.int64fromString=ci.varint64write=ci.varint64read=void 0;function xit(){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")}ci.varint64read=xit;function Rit(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 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),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}ci.varint64write=Rit;var Yx=65536*65536;function Dit(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=Yx&&(s=s+(n/Yx|0),n=n%Yx)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}ci.int64fromString=Dit;function kit(t,e){if(e>>>0<=2097151)return""+(Yx*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,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)}ci.int64toString=kit;function vit(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)}}ci.varint32write=vit;function _it(){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}ci.varint32read=_it});var zl=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.PbLong=Jl.PbULong=Jl.detectBi=void 0;var jy=Vx(),or;function kfe(){let t=new DataView(new ArrayBuffer(8));or=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}Jl.detectBi=kfe;kfe();function vfe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var _fe=/^-?[0-9]+$/,Jx=4294967296,Wx=2147483648,zx=c Line truncated
`)}};ER.RpcError=eH});var rH=m(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.mergeRpcOptions=void 0;var uge=ct();function rat(t,e){if(!e)return t;let r={};CR(t,r),CR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=uge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=uge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},CR(t.meta,r.meta),CR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}IR.mergeRpcOptions=rat;function CR(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 sH=m(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.Deferred=Cf.DeferredState=void 0;var KA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(KA=Cf.DeferredState||(Cf.DeferredState={}));var nH=class{constructor(e=!0){this._state=KA.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!==KA.PENDING)throw new Error(`cannot resolve ${KA[this.state].toLowerCase()}`);this._resolve(e),this._state=KA.RESOLVED}reject(e){if(this.state!==KA.PENDING)throw new Error(`cannot reject ${KA[this.state].toLowerCase()}`);this._reject(e),this._state=KA.REJECTED}resolvePending(e){this._state===KA.PENDING&&this.resolve(e)}rejectPending(e){this._state===KA.PENDING&&this.reject(e)}};Cf.Deferred=nH});var oH=m(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0});yR.RpcOutputStreamController=void 0;var lge=sH(),If=ct(),iH=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){If.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){If.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){If.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(){If.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;If.assert(e,"bad state"),If.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 lge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;If.assert(n.state==lge.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};yR.RpcOutputStreamController=iH});var AH=m(qm=>{"use strict";var nat=qm&&qm.__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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(qm,"__esModule",{value:!0});qm.UnaryCall=void 0;var aH=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 nat(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}})}};qm.UnaryCall=aH});var uH=m(Ym=>{"use strict";var sat=Ym&&Ym.__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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.ServerStreamingCall=void 0;var cH=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 Rpe=m(xpe=>{"use strict";var c9=pu().Buffer;xpe._dbcs=mu;var Jn=-1,Tpe=-2,Yo=-10,Ms=-1e3,Ym=new Array(256),tB=-1;for(UR=0;UR<256;UR++)Ym[UR]=Jn;var UR;function mu(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]=Ym.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(Ym.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Ym.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ms-o[n]],A=48;A<=57;A++){if(a[A]===Jn)a[A]=Ms-s;else if(a[A]>Ms)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Ms-a[A]],u=129;u<=254;u++){if(c[u]===Jn)c[u]=Ms-i;else{if(c[u]===Ms-i)continue;if(c[u]>Ms)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ms-c[u]],d=48;d<=57;d++)l[d]===Jn&&(l[d]=Tpe)}}}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 Sft(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(lft.has(s)){r=s;break}}return r}function Nft(t,e){let r=Sft(e);r!==""&&(t.referrerPolicy=r)}function Tft(){return"allowed"}function xft(){return"success"}function Rft(){return"success"}function Dft(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function kft(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&&NG(t.origin)&&!NG(yf(t))&&(e=null);break;case"same-origin":uB(t,yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function jm(t,e){return t}function vft(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:jm(t.domainLookupStartTime,r),domainLookupEndTime:jm(t.domainLookupEndTime,r),connectionStartTime:jm(t.connectionStartTime,r),connectionEndTime:jm(t.connectionEndTime,r),secureConnectionStartTime:jm(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function _ft(t){return jm(gft.now(),t)}function Fft(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 oEe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Mft(t){return{referrerPolicy:t.referrerPolicy}}function Lft(t){let e=t.referrerPolicy;lB(e);let r=null;if(t.referrer==="client"){let i=tEe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Wl.is.URL(t.referrer)&&(r=t.referrer);let n=SG(r),s=SG(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??SG(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=yf(t);return If(n)&&!If(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=yf(t);return uB(n,i)?n:If(n)&&!If(i)?"no-referrer":s}case"same-origin":return uB(t,n)?n:"no-referrer";case"origin-when-cross-origin":return uB(t,n)?n:s;case"no-referrer-when-downgrade":{let i=yf(t);return If(n)&&!If(i)?"no-referrer":n}}}function SG(t,e=!1){return lB(Wl.is.URL(t)),t=new URL(t),uEe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Uft=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)$/),Pft=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function aEe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Pft(t)):Uft(t)}function Oft(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||aEe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function If(t){return Wl.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Oft(t.origin):!1}function Hft(t){}function uB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Gft(t){return t.controller.state==="aborted"}function qft(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Yft(t){return mft[t.toLowerCase()]??t}var Vft=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function AEe(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),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=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 s.prototype.constructor,Object.setPrototypeOf(s.prototype,Vft),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 Wft(t,e,r,n=0,s=1){let i=AEe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Wl.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Wl.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Jo(a=>MG(a)&&a!==59,t,e);i=_G.decode(o)}return{name:n,value:i}}function pgt(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 hi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Jo(a=>a!==10&&a!==13&&a!==58,t,e);if(o=FG(o,!0,!0,a=>a===9||a===32),!Agt.test(o.toString()))throw hi("header name does not match the field-name token production");if(t[e.position]!==58)throw hi("expected :");switch(e.position++,Jo(a=>a===32||a===9,t,e),agt(o)){case"content-disposition":{if(r=n=null,Jo(A=>MG(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw hi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=ggt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw hi("name attribute is required in content-disposition header");break}case"content-type":{let a=Jo(A=>A!==10&&A!==13,t,e);a=FG(a,!1,!0,A=>A===9||A===32),s=pEe(a);break}case"content-transfer-encoding":{let a=Jo(A=>A!==10&&A!==13,t,e);a=FG(a,!1,!0,A=>A===9||A===32),i=pEe(a);break}default:Jo(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw hi("expected CRLF");e.position+=2}}function Jo(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function FG(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 mgt(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 hi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Egt(t){return t<=31||t===127}function Cgt(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 MG(t){return t<=127&&t!==32&&t!==9&&!Egt(t)&&!Cgt(t)}mEe.exports={multipartFormDataParser:fgt,validateBoundary:hgt}});var dB=m((mfr,CEe)=>{"use strict";function Igt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}CEe.exports={createDeferredPromise:Igt}});var Zm=m((Efr,QEe)=>{"use strict";var PG=$e(),{ReadableStreamFrom:ygt,readableStreamClose:Bgt,fullyReadBody:bgt,extractMimeType:Qgt}=Yi(),{FormData:IEe,setFormDataState:wgt}=cD(),{webidl:La}=zn(),LG=b("node:assert"),{isErrored:UG,isDisturbed:Sgt}=b("node:stream"),{isUint8Array:Ngt}=b("node:util/types"),{serializeAMimeType:Tgt}=Wo(),{multipartFormDataParser:xgt}=EEe(),{createDeferredPromise:Rgt}=dB(),{parseJSONFromBytes:Dgt}=Iu(),{utf8DecodeBytes:kgt}=nD(),{runtimeFeatures:vgt}=yu(),_gt=vgt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),uD=new TextEncoder;function Fgt(){}var Mgt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Sgt(e)&&!UG(e)&&e.cancel("Response object has been garbage collected").catch(Fgt)});function BEe(t,e=!1){let r=null,n=null;La.is.ReadableStream(t)?r=t:La.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),LG(La.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(La.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(La.is.BufferSource(t))i=La.util.getCopyOfBytesHeldByBufferSource(t);else if(La.is.FormData(t)){let c=`----formdata-undici-0${`${_gt(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 J0e=m(W0e=>{"use strict";var WG=ku().Buffer;W0e._dbcs=vu;var zn=-1,V0e=-2,jo=-10,Us=-1e3,I0=new Array(256),HB=-1;for(VD=0;VD<256;VD++)I0[VD]=zn;var VD;function vu(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]=I0.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(I0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(I0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],A=48;A<=57;A++){if(a[A]===zn)a[A]=Us-s;else if(a[A]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Us-a[A]],u=129;u<=254;u++){if(c[u]===zn)c[u]=Us-i;else{if(c[u]===Us-i)continue;if(c[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-c[u]],d=48;d<=57;d++)l[d]===zn&&(l[d]=V0e)}}}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 imt(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(Ypt.has(s)){r=s;break}}return r}function omt(t,e){let r=imt(e);r!==""&&(t.referrerPolicy=r)}function amt(){return"allowed"}function Amt(){return"success"}function cmt(){return"success"}function umt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function lmt(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&&uY(t.origin)&&!uY(Yf(t))&&(e=null);break;case"same-origin":KB(t,Yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function w0(t,e){return t}function dmt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:w0(t.domainLookupStartTime,r),domainLookupEndTime:w0(t.domainLookupEndTime,r),connectionStartTime:w0(t.connectionStartTime,r),connectionEndTime:w0(t.connectionEndTime,r),secureConnectionStartTime:w0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function hmt(t){return w0(zpt.now(),t)}function fmt(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 bIe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function gmt(t){return{referrerPolicy:t.referrerPolicy}}function pmt(t){let e=t.referrerPolicy;XB(e);let r=null;if(t.referrer==="client"){let i=EIe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else hd.is.URL(t.referrer)&&(r=t.referrer);let n=cY(r),s=cY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??cY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Yf(t);return qf(n)&&!qf(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Yf(t);return KB(n,i)?n:qf(n)&&!qf(i)?"no-referrer":s}case"same-origin":return KB(t,n)?n:"no-referrer";case"origin-when-cross-origin":return KB(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Yf(t);return qf(n)&&!qf(i)?"no-referrer":n}}}function cY(t,e=!1){return XB(hd.is.URL(t)),t=new URL(t),NIe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var mmt=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)$/),Emt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function QIe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Emt(t)):mmt(t)}function Cmt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||QIe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function qf(t){return hd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Cmt(t.origin):!1}function Imt(t){}function KB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ymt(t){return t.controller.state==="aborted"}function Bmt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function bmt(t){return Kpt[t.toLowerCase()]??t}var Qmt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function wIe(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),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=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 s.prototype.constructor,Object.setPrototypeOf(s.prototype,Qmt),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 wmt(t,e,r,n=0,s=1){let i=wIe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return hd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Zo(a=>CY(a)&&a!==59,t,e);i=mY.decode(o)}return{name:n,value:i}}function jmt(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 pi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Zo(a=>a!==10&&a!==13&&a!==58,t,e);if(o=EY(o,!0,!0,a=>a===9||a===32),!Hmt.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++,Zo(a=>a===32||a===9,t,e),Omt(o)){case"content-disposition":{if(r=n=null,Zo(A=>CY(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=zmt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw pi("name attribute is required in content-disposition header");break}case"content-type":{let a=Zo(A=>A!==10&&A!==13,t,e);a=EY(a,!1,!0,A=>A===9||A===32),s=vIe(a);break}case"content-transfer-encoding":{let a=Zo(A=>A!==10&&A!==13,t,e);a=EY(a,!1,!0,A=>A===9||A===32),i=vIe(a);break}default:Zo(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 Zo(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function EY(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 Kmt(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 pi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Xmt(t){return t<=31||t===127}function Zmt(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 CY(t){return t<=127&&t!==32&&t!==9&&!Xmt(t)&&!Zmt(t)}_Ie.exports={multipartFormDataParser:Jmt,validateBoundary:Wmt}});var ZB=m((Cpr,MIe)=>{"use strict";function $mt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}MIe.exports={createDeferredPromise:$mt}});var T0=m((Ipr,HIe)=>{"use strict";var BY=$e(),{ReadableStreamFrom:e0t,readableStreamClose:t0t,fullyReadBody:r0t,extractMimeType:n0t}=zi(),{FormData:LIe,setFormDataState:s0t}=p2(),{webidl:Ya}=jn(),IY=b("node:assert"),{isErrored:yY,isDisturbed:i0t}=b("node:stream"),{isUint8Array:o0t}=b("node:util/types"),{serializeAMimeType:a0t}=Xo(),{multipartFormDataParser:A0t}=FIe(),{createDeferredPromise:c0t}=ZB(),{parseJSONFromBytes:u0t}=Mu(),{utf8DecodeBytes:l0t}=u2(),{runtimeFeatures:d0t}=Lu(),h0t=d0t.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),m2=new TextEncoder;function f0t(){}var g0t=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!i0t(e)&&!yY(e)&&e.cancel("Response object has been garbage collected").catch(f0t)});function PIe(t,e=!1){let r=null,n=null;Ya.is.ReadableStream(t)?r=t:Ya.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),IY(Ya.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(Ya.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ya.is.BufferSource(t))i=Ya.util.getCopyOfBytesHeldByBufferSource(t);else if(Ya.is.FormData(t)){let c=`----formdata-undici-0${`${h0t(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,I]of t)if(typeof I=="string"){let B=uD.encode(u+`; name="${l(d(E))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=m2.encode(u+`; name="${l(d(E))}"\r
\r
${d(I)}\r
`);h.push(B),o+=B.byteLength}else{let B=uD.encode(`${u}; name="${l(d(E))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=m2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(B,I,f),typeof I.size=="number"?o+=B.byteLength+I.size+f.byteLength:p=!0}let C=uD.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(La.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(PG.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=La.is.ReadableStream(t)?t:ygt(t)}return(typeof i=="string"||Ngt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(UG(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!UG(r)&&n.enqueue(typeof c=="string"?uD.encode(c):new Uint8Array(c));queueMicrotask(()=>Bgt(n))})(),[{stream:r,source:i,length:o},a]}function Lgt(t,e=!1){return La.is.ReadableStream(t)&&(LG(!PG.isDisturbed(t),"The body has already been consumed."),LG(!t.locked,"The stream is locked.")),BEe(t,e)}function Ugt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Pgt(t,e){return{blob(){return Xm(this,n=>{let s=yEe(e(this));return s===null?s="":s&&(s=Tgt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return Xm(this,n=>new Uint8Array(n).buffer,t,e)},text(){return Xm(this,kgt,t,e)},json(){return Xm(this,Dgt,t,e)},formData(){return Xm(this,n=>{let s=yEe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xgt(n,s),o=new IEe;return wgt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new IEe;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 Xm(this,n=>new Uint8Array(n),t,e)}}}function Ogt(t,e){Object.assign(t.prototype,Pgt(t,e))}function Xm(t,e,r,n){try{La.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),bEe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Rgt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(bgt(t.body,o,i),s.promise)}function bEe(t){let e=t.body;return e!=null&&(e.stream.locked||PG.isDisturbed(e.stream))}function yEe(t){let e=t.headersList,r=Qgt(e);return r==="failure"?null:r}QEe.exports={extractBody:BEe,safelyExtractBody:Lgt,cloneBody:Ugt,mixinBody:Ogt,streamRegistry:Mgt,bodyUnusable:bEe}});var FEe=m((Cfr,_Ee)=>{"use strict";var Ve=b("node:assert"),We=$e(),{channels:wEe}=Yl(),OG=y9(),{RequestContentLengthMismatchError:Bf,ResponseContentLengthMismatchError:Hgt,RequestAbortedError:DEe,HeadersTimeoutError:Ggt,HeadersOverflowError:qgt,SocketError:gB,InformationalError:$m,BodyTimeoutError:Ygt,HTTPParserError:Vgt,ResponseExceededMaxSizeError:Wgt}=je(),{kUrl:kEe,kReset:fi,kClient:JG,kParser:qr,kBlocking:pB,kRunning:ds,kPending:Jgt,kSize:SEe,kWriting:zl,kQueue:Ua,kNoRef:hB,kKeepAliveDefaultTimeout:zgt,kHostHeader:jgt,kPendingIdx:Kgt,kRunningIdx:zo,kError:jo,kPipelining:hD,kSocket:e0,kKeepAliveTimeoutValue:gD,kMaxHeadersSize:Xgt,kKeepAliveMaxTimeout:Zgt,kKeepAliveTimeoutThreshold:$gt,kHeadersTimeout:ept,kBodyTimeout:tpt,kStrictContentLength:qG,kMaxRequests:NEe,kCounter:rpt,kMaxResponseSize:npt,kOnError:spt,kResume:Jl,kHTTPContext:vEe,kClosed:YG}=Xt(),JA=Q0e(),ipt=Buffer.alloc(0),lD=Buffer[Symbol.species],opt=We.removeAllListeners,HG;function apt(){let t=process.env.JEST_WORKER_ID?hG():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(N0e())}catch{}return e||(e=new WebAssembly.Module(t||hG())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(In.ptr===n);let o=s-jA+zA.byteOffset;return In.onStatus(new lD(zA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(In.ptr===n),In.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(In.ptr===n);let o=s-jA+zA.byteOffset;return In.onHeaderField(new lD(zA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(In.ptr===n);let o=s-jA+zA.byteOffset;return In.onHeaderValue(new lD(zA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(In.ptr===n),In.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(In.ptr===n);let o=s-jA+zA.byteOffset;return In.onBody(new lD(zA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(In.ptr===n),In.onMessageComplete())}})}var GG=null,In=null,zA=null,dD=0,jA=null,Apt=0,fB=1,t0=2|fB,fD=4|fB,VG=8|Apt,WG=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(JA.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[Xgt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[npt]}setTi Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=m2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Ya.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(BY.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ya.is.ReadableStream(t)?t:e0t(t)}return(typeof i=="string"||o0t(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(yY(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!yY(r)&&n.enqueue(typeof c=="string"?m2.encode(c):new Uint8Array(c));queueMicrotask(()=>t0t(n))})(),[{stream:r,source:i,length:o},a]}function p0t(t,e=!1){return Ya.is.ReadableStream(t)&&(IY(!BY.isDisturbed(t),"The body has already been consumed."),IY(!t.locked,"The stream is locked.")),PIe(t,e)}function m0t(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function E0t(t,e){return{blob(){return N0(this,n=>{let s=UIe(e(this));return s===null?s="":s&&(s=a0t(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return N0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return N0(this,l0t,t,e)},json(){return N0(this,u0t,t,e)},formData(){return N0(this,n=>{let s=UIe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=A0t(n,s),o=new LIe;return s0t(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new LIe;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 N0(this,n=>new Uint8Array(n),t,e)}}}function C0t(t,e){Object.assign(t.prototype,E0t(t,e))}function N0(t,e,r,n){try{Ya.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),OIe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=c0t(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(r0t(t.body,o,i),s.promise)}function OIe(t){let e=t.body;return e!=null&&(e.stream.locked||BY.isDisturbed(e.stream))}function UIe(t){let e=t.headersList,r=n0t(e);return r==="failure"?null:r}HIe.exports={extractBody:PIe,safelyExtractBody:p0t,cloneBody:m0t,mixinBody:C0t,streamRegistry:g0t,bodyUnusable:OIe}});var ZIe=m((ypr,XIe)=>{"use strict";var Ve=b("node:assert"),We=$e(),{channels:GIe}=ld(),bY=sq(),{RequestContentLengthMismatchError:Vf,ResponseContentLengthMismatchError:I0t,RequestAbortedError:zIe,HeadersTimeoutError:y0t,HeadersOverflowError:B0t,SocketError:tb,InformationalError:x0,BodyTimeoutError:b0t,HTTPParserError:Q0t,ResponseExceededMaxSizeError:w0t}=je(),{kUrl:jIe,kReset:mi,kClient:RY,kParser:Yr,kBlocking:rb,kRunning:hs,kPending:S0t,kSize:qIe,kWriting:gd,kQueue:Va,kNoRef:$B,kKeepAliveDefaultTimeout:N0t,kHostHeader:T0t,kPendingIdx:x0t,kRunningIdx:$o,kError:ea,kPipelining:I2,kSocket:R0,kKeepAliveTimeoutValue:B2,kMaxHeadersSize:R0t,kKeepAliveMaxTimeout:D0t,kKeepAliveTimeoutThreshold:k0t,kHeadersTimeout:v0t,kBodyTimeout:_0t,kStrictContentLength:SY,kMaxRequests:YIe,kCounter:F0t,kMaxResponseSize:M0t,kOnError:L0t,kResume:fd,kHTTPContext:KIe,kClosed:NY}=Xt(),ic=HCe(),U0t=Buffer.alloc(0),E2=Buffer[Symbol.species],P0t=We.removeAllListeners,QY;function O0t(){let t=process.env.JEST_WORKER_ID?Kq():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(YCe())}catch{}return e||(e=new WebAssembly.Module(t||Kq())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onStatus(new E2(oc.buffer,o,i))},wasm_on_message_begin:n=>(Ve(In.ptr===n),In.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onHeaderField(new E2(oc.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onHeaderValue(new E2(oc.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(In.ptr===n),In.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(In.ptr===n);let o=s-ac+oc.byteOffset;return In.onBody(new E2(oc.buffer,o,i))},wasm_on_message_complete:n=>(Ve(In.ptr===n),In.onMessageComplete())}})}var wY=null,In=null,oc=null,C2=0,ac=null,H0t=0,eb=1,D0=2|eb,y2=4|eb,TY=8|H0t,xY=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ic.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[R0t],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[M0t]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[jgt],i?p+=`connection: upgrade\r
`:p+=t[T0t],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[hD]&&!h[fi]?p+=`connection: keep-alive\r
`:t[I2]&&!h[mi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let E=c[C+0],I=c[C+1];if(Array.isArray(I))for(let B=0;B<I.length;B++)p+=`${E}: ${I[B]}\r
`;else p+=`${E}: ${I}\r
`}return wEe.sendHeaders.hasSubscribers&&wEe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?xEe(f,null,t,e,h,u,p,l):We.isBuffer(A)?xEe(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?REe(f,A.stream(),t,e,h,u,p,l):Cpt(f,A,t,e,h,u,p,l):We.isStream(A)?Ept(f,A,t,e,h,u,p,l):We.isIterable(A)?REe(f,A,t,e,h,u,p,l):Ve(!1),!0}function Ept(t,e,r,n,s,i,o,a){Ve(i!==0||r[ds]===0,"stream body cannot be pipelined");let A=!1,c=new pD({abort:t,socket:s,request:n,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 DEe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[zl]&&r[ds]<=1),s.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(),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 xEe(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
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return GIe.sendHeaders.hasSubscribers&&GIe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?WIe(f,null,t,e,h,u,p,l):We.isBuffer(A)?WIe(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?JIe(f,A.stream(),t,e,h,u,p,l):Z0t(f,A,t,e,h,u,p,l):We.isStream(A)?X0t(f,A,t,e,h,u,p,l):We.isIterable(A)?JIe(f,A,t,e,h,u,p,l):Ve(!1),!0}function X0t(t,e,r,n,s,i,o,a){Ve(i!==0||r[hs]===0,"stream body cannot be pipelined");let A=!1,c=new b2({abort:t,socket:s,request:n,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 zIe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[gd]&&r[hs]<=1),s.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(),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 WIe(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"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[fi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[mi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Jl]()}catch(A){t(A)}}async function Cpt(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 Bf;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[fd]()}catch(A){t(A)}}async function Z0t(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 Vf;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[fi]=!0),r[Jl]()}catch(A){t(A)}}async function REe(t,e,r,n,s,i,o,a){Ve(i!==0||r[ds]===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),s[jo]?h(s[jo]):A=d});s.on("close",c).on("drain",c);let l=new pD({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[jo])throw s[jo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var pD=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[zl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[jo])throw r[jo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[qG])throw new Bf;process.emitWarning(new Bf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[fi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[mi]=!0),r[fd]()}catch(A){t(A)}}async function JIe(t,e,r,n,s,i,o,a){Ve(i!==0||r[hs]===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),s[ea]?h(s[ea]):A=d});s.on("close",c).on("drain",c);let l=new b2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ea])throw s[ea];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var b2=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[gd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ea])throw r[ea];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[SY])throw new Vf;process.emitWarning(new Vf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[mi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[qr].timeout&&r[qr].timeoutType===t0&&r[qr].timeout.refresh&&r[qr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[zl]=!1,e[jo])throw e[jo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===D0&&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[gd]=!1,e[ea])throw e[ea];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&&s!==r){if(n[qG])throw new Bf;process.emitWarning(new Bf)}e[qr].timeout&&e[qr].timeoutType===t0&&e[qr].timeout.refresh&&e[qr].timeout.refresh(),n[Jl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[zl]=!1,e&&(Ve(n[ds]<=1,"pipeline should only contain this request"),s(e))}};_Ee.exports=cpt});var YEe=m((Ifr,qEe)=>{"use strict";var Xo=b("node:assert"),{pipeline:Ipt}=b("node:stream"),ct=$e(),{RequestContentLengthMismatchError:XG,RequestAbortedError:ypt,SocketError:IB,InformationalError:jl,InvalidArgumentError:Bpt}=je(),{kUrl:CB,kReset:ID,kClient:Vi,kRunning:yB,kPending:bpt,kQueue:Kl,kPendingIdx:$G,kRunningIdx:Pa,kError:Wi,kSocket:Rr,kStrictContentLength:Qpt,kOnError:r0,kMaxConcurrentStreams:ED,kPingInterval:MEe,kHTTP2Session:bu,kHTTP2InitialWindowSize:wpt,kHTTP2ConnectionWindowSize:Spt,kResume:KA,kSize:Npt,kHTTPContext:eq,kClosed:ZG,kBodyTimeout:Tpt,kEnableConnectProtocol:mB,kRemoteSettings:EB,kHTTP2Stream:mD,kHTTP2SessionState:tq}=Xt(),{channels:LEe}=Yl(),Ko=Symbol("open streams"),UEe,CD;try{CD=b("node:http2")}catch{CD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xpt,HTTP2_HEADER_METHOD:PEe,HTTP2_HEADER_PATH:OEe,HTTP2_HEADER_SCHEME:zG,HTTP2_HEADER_CONTENT_LENGTH:Rpt,HTTP2_HEADER_EXPECT:Dpt,HTTP2_HEADER_STATUS:jG,HTTP2_HEADER_PROTOCOL:kpt,NGHTTP2_REFUSED_STREAM:vpt,NGHTTP2_CANCEL:_pt}}=CD;function KG(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 Fpt(t,e){t[Rr]=e;let r=t[wpt],n=t[Spt],s=CD.connect(t[CB],{createConnection:()=>e,peerMaxConcurrentStreams:t[ED],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[Ko]=0,s[Vi]=t,s[Rr]=e,s[tq]={ping:{interval:t[MEe]===0?null:setInterval(Ppt,t[MEe],s).unref()}},s[mB]=!1,s[EB]=!1,n&&ct.addListener(s,"connect",Lpt.bind(s,n)),ct.addListener(s,"error",Opt),ct.addListener(s,"frameError",Hpt),ct.addListener(s,"end",Gpt),ct.addListener(s,"goaway",qpt),ct.addListener(s,"close",Ypt),ct.addListener(s,"remoteSettings",Upt),s.unref(),t[bu]=s,e[bu]=s,ct.addListener(e,"error",Wpt),ct.addListener(e,"end",Jpt),ct.addListener(e,"close",Vpt),e[ZG]=!1,e.on("close",zpt),{version:"h2",defaultPipelining:1/0,write(i){return Kpt(t,i)},resume(){Mpt(t)},destroy(i,o){e[ZG]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[yB]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[EB]===!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")&&s[EB]===!1;return!1}}}function Mpt(t){let e=t[Rr];e?.destroyed===!1&&(t[Npt]===0||t[ED]===0?(e.unref(),t[bu].unref()):(e.ref(),t[bu].ref()))}function Lpt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Upt(t){if(this[Vi][ED]=t.maxConcurrentStreams??this[Vi][ED],this[EB]===!0&&this[mB]===!0&&t.enableConnectProtocol===!1){let e=new jl("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Wi]=e,this[Vi][r0](e);return}this[mB]=t.enableConnectProtocol??this[mB],this[EB]=!0,this[Vi][KA]()}function Ppt(t){let e=t[tq];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[Vi],o=this[Vi];if(n!=null){let a=new jl(`HTTP/2: "PING" errored - type ${n.message}`);o[Wi]=a,i[r0](a)}else i.emit("ping",s)}}function Opt(t){Xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Wi]=t,this[Vi][r0](t)}function Hpt(t,e,r){if(r===0){let n=new jl(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Wi]=n,this[Vi][r0](n)}}function Gpt(){let t=new IB("other side closed",ct.getSocketInfo(this[Rr]));this.destroy(t),ct.destroy(this[Rr],t)}function qpt(t){let e=this[Wi]||new IB(`HTTP/2: "GOAWAY" frame received with code ${t}`,ct.getSocketInfo(this[Rr])),r=this[Vi];if(r[Rr]=null,r[eq]=null,this.close(),this[bu]=null,ct.destroy(this[Rr],e),r[Pa]<r[Kl].length){let n=r[Kl][r[Pa]];r[Kl][r[Pa]++]=null,ct.errorRequest(r,n,e),r[$G]=r[Pa]}Xo(r[yB]===0),r.emit("disconnect",r[CB],[r],e),r.emit("connectionError",r[CB],[r],e),r[KA]()}function Ypt(){let{[Vi]:t,[tq]:e}=this,{[Rr]:r}=t,n=this[Rr][Wi]||this[Wi]||new IB("closed",ct.getSocketInfo(r));if(t[Rr]=null,t[eq]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Xo(t[bpt]===0);let s=t[Kl].splice(t[Pa]);for(let i=0;i<s.length;i++){let o=s[i];ct.errorRequest(t,o,n)}}}function Vpt(){let t=this[Wi]||new IB("closed",ct.getSocketInfo(this)),e=this[bu][Vi];e[Rr]=null,e[eq]=null,this[bu]!==null&&this[bu].destroy(t),e[$G]=e[Pa],Xo(e[yB]===0),e.emit("disconnect",e[CB],[e],t),e[KA]()}function Wpt(t){Xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Wi]=t,this[Vi][r0](t)}function Jpt(){ct.destroy(this,new IB("other side closed",ct.getSocketInfo(this)))}func Line truncated
`;LEe.sendHeaders.publish({request:e,headers:v,socket:n[Rr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[Dpt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[mD]=!0,f.once("continue",q)):(f=n.request(h,{endStream:R,signal:c}),f[mD]=!0,q()),++n[Ko],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[jG]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),KG(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",J=>{e.aborted||e.completed||e.onData(J)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Kl][t[Pa]++]=null,t[KA]()):(E(new jl("HTTP/2: stream half-closed (remote)")),t[Kl][t[Pa]++]=null,t[$G]=t[Pa],t[KA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[Ko]-=1,n[Ko]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new jl(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new jl(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[Ko]-=1,n[Ko]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function q(){!d||B===0?HEe(E,f,null,t,e,t[Rr],B,I):ct.isBuffer(d)?HEe(E,f,d,t,e,t[Rr],B,I):ct.isBlobLike(d)?typeof d.stream=="function"?GEe(E,f,d.stream(),t,e,t[Rr],B,I):Zpt(E,f,d,t,e,t[Rr],B,I):ct.isStream(d)?Xpt(E,t[Rr],I,f,d,t,e,B):ct.isIterable(d)?GEe(E,f,d,t,e,t[Rr],B,I):Xo(!1)}}function HEe(t,e,r,n,s,i,o,a){try{r!=null&&ct.isBuffer(r)&&(Xo(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[ID]=!0),s.onRequestSent(),n[KA]()}catch(A){t(A)}}function Xpt(t,e,r,n,s,i,o,a){Xo(a!==0||i[yB]===0,"stream body cannot be pipelined");let A=Ipt(s,n,u=>{u?(ct.destroy(A,u),t(u)):(ct.removeAllListeners(A),o.onRequestSent(),r||(e[ID]=!0),i[KA]())});ct.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Zpt(t,e,r,n,s,i,o,a){Xo(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new XG;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[ID]=!0),n[KA]()}catch(A){t(A)}}async function GEe(t,e,r,n,s,i,o,a){Xo(o!==0||n[yB]===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)=>{Xo(A===null),i[Wi]?d(i[Wi]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Wi])throw i[Wi];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[ID]=!0),n[KA]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}qEe.exports=Fpt});var td=m((yfr,$Ee)=>{"use strict";var Qu=b("node:assert"),jEe=b("node:net"),BB=b("node:http"),bf=$e(),{ClientStats:$pt}=K9(),{channels:n0}=Yl(),emt=d0e(),tmt=mf(),{InvalidArgumentError:fr,InformationalError:rmt,ClientDestroyedError:nmt}=je(),smt=Ef(),{kUrl:XA,kServerName:ed,kClient:imt,kBusy:rq,kConnect:omt,kResuming:Qf,kRunning:SB,kPending:NB,kSize:bB,kQueue:Oa,kConnected:amt,kConnecting:s0,kNeedDrain:Zl,kKeepAliveDefaultTimeout:VEe,kHostHeader:Amt,kPendingIdx:Ha,kRunningIdx:wu,kError:cmt,kPipelining:yD,kKeepAliveTimeoutValue:umt,kMaxHeadersSize:lmt,kKeepAliveMaxTimeout:dmt,kKeepAliveTimeoutThreshold:hmt,kHeadersTimeout:fmt,kBodyTimeout:gmt,kStrictContentLength:pmt,kConnector:QB,kMaxRequests:nq,kCounter:mmt,kClose:Emt,kDestroy:Cmt,kDispatch:Imt,kLocalAddress:wB,kMaxResponseSize:ymt,kOnError:Bmt,kHTTPContext:en,kMaxConcurrentStreams:bmt,kHTTP2InitialWindowSize:Qmt,kHTTP2ConnectionWindowSize:wmt,kResume:$l,kPingInterval:Smt}=Xt(),Nmt=FEe(),Tmt=YEe(),Xl=Symbol("kClosedResolve"),xmt=BB&&BB.maxHeaderSize&&Number.isInteger(BB.maxHeaderSize)&&BB.maxHeaderSize>0?()=>BB.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},WEe=()=>{};function KEe(t){return t[yD]??t[en]?.defaultPipelining??1}var sq=class extends tmt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:C,strictContentLength:E,maxCachedSessions:I,connect:B,maxRequestsPerClient:R,localAddress:M,maxResponseSize:q,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:J,useH2c:Z,initialWindowSize:te,connectionWindowSize:oe,pingInterval:fe}={}){if(c!==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(A!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[gmt]=a??3e5,this[fmt]=n??3e5,this[pmt]=E??!0,this[nq]=R,this[Xl]=null,this[ymt]=q>-1?q:-1,this[en]=null,this[bmt]=D??100,this[Qmt]=te??262144,this[wmt]=oe??524288,this[Smt]=fe??6e4,this[Oa]=[],this[wu]=0,this[Ha]=0,this[$l]=De=>iq(this,De),this[Bmt]=De=>XEe(this,De)}get pipelining(){return this[yD]}set pipelining(e){this[yD]=e,this[$l](!0)}get stats(){return new $pt(this)}get[NB](){return this[Oa].length-this[Ha]}get[SB](){return this[Ha]-this[wu]}get[bB](){return this[Oa].length-this[wu]}get[amt](){return!!this[en]&&!this[s0]&&!this[en].destroyed}get[rq](){return!!(this[en]?.busy(null)||this[bB]>=(KEe(this)||1)||this[NB]>0)}[omt](e){ZEe(this),this.once("connect",e)}[Imt](e,r){let n=new emt(this[XA].origin,e,r);return this[Oa].push(n),this[Qf]||(bf.bodyLength(n.body)==null&&bf.isIterable(n.body)?(this[Qf]=1,queueMicrotask(()=>iq(this))):this[$l](!0)),this[Qf]&&this[Zl]!==2&&this[rq]&&(this[Zl]=2),this[Zl]<2}[Emt](){return new Promise(e=>{this[bB]?this[Xl]=e:e(null)})}[Cmt](e){return new Promise(r=>{let n=this[Oa].splice(this[Ha]);for(let i=0;i<n.length;i++){let o=n[i];bf.errorRequest(this,o,e)}let s=()=>{this[Xl]&&(this[Xl](),this[Xl]=null),r(null)};this[en]?(this[en].destroy(e,s),this[en]=null):queueMicrotask(s),this[$l]()})}};function XEe(t,e){if(t[SB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Qu(t[Ha]===t[wu]);let r=t[Oa].splice(t[wu]);for(let n=0;n<r.length;n++){let s=r[n];bf.errorRequest(t,s,e)}Qu(t[bB]===0)}}function ZEe(t){Qu(!t[s0]),Qu(!t[en]);let{host:e,hostname:r,protocol:n,port:s}=t[XA];if(r[0]==="["){let i=r.indexOf("]");Qu(i!==-1);let o=r.substring(1,i);Qu(jEe.isIPv6(o)),r=o}t[s0]=!0,n0.beforeConnect.hasSubscribers&&n0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[en]?.version,servername:t[ed],localAddress:t[wB]},connector:t[QB]}),t[QB]({host:e,hostname:r,protocol:n,port:s,servername:t[ed],localAddress:t[wB]},(i,o)=>{if(i){JEe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$l]();return}if(t.destroyed){bf.destroy(o.on("error",WEe),new nmt),t[$l]();return}Qu(o);try{t[en]=o.alpnProtocol==="h2"?Tmt(t,o):Nmt(t,o)}catch(a){o.destroy().on("error",WEe),JEe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$l]();return}t[s0]=!1,o[mmt]=0,o[nq]=t[nq],o[imt]=t,o[cmt]=null,n0.connected.hasSubscribers&&n0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[en]?.version,servername:t[ed],localAddress:t[wB]},connector:t[QB],socket:o}),t.emit("connect",t[XA],[t]),t[$l]()})}function JEe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[s0]=!1,n0.connectError.hasSubscribers&&n0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[en]?.version,servername:t[ed],localAddress:t[wB]},connector:t[QB],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Qu(t[SB]===0);t[NB]>0&&t[Oa][t[Ha]].servername===t[ed];){let o=t[Oa][t[Ha]++];bf.errorRequest(t,o,e)}else XEe(t,e);t.emit("connectionError",t[XA],[t],e)}}function zEe(t){t[Zl]=0,t.emit("drain",t[XA],[t])}function iq(t,e){t[Qf]!==2&&(t[Qf]=2,Rmt(t,e),t[Qf]=0,t[wu]>256&&(t[Oa].splice(0,t[wu]),t[Ha]-=t[wu],t[wu]=0))}function Rmt(t,e){for(;;){if(t.destroyed){Qu(t[NB]===0);return}if(t[Xl]&&!t[bB]){t[Xl](),t[Xl]=null;return}if(t[en]&&t[en].resume(),t[rq])t[Zl]=2;else if(t[Zl]===2){e?(t[Zl]=1,queueMicrotask(()=>zEe(t))):zEe(t);continue}if(t[NB]===0||t[SB]>=(KEe(t)||1))return;let r=t[Oa][t[Ha]];if(r===null)return;if(t[XA].protocol==="https:"&&t[ed]!==r.servername){if(t[SB]>0)return;t[ed]=r.servername,t[en]?.destroy(new rmt("servername changed"),()=>{t[en]=null,iq(t)})}if(t[s0])return;if(!t[en]){ZEe(t);return}if(t[en].destroyed||t[en].busy(r))return;!r.aborted&&t[en].write(r)?t[Ha]++:t[Oa].splice(t[Ha],1)}}$Ee.exports=sq});var oq=m((bfr,eCe)=>{"use strict";var BD=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)}};eCe.exports=class{constructor(){this.head=this.tail=new BD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new BD),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 bD=m((Qfr,cCe)=>{"use strict";var{PoolStats:Dmt}=K9(),kmt=mf(),vmt=oq(),{kConnected:aq,kSize:tCe,kRunning:rCe,kPending:nCe,kQueued:TB,kBusy:_mt,kFree:Fmt,kUrl:Mmt,kClose:Lmt,kDestroy:Umt,kDispatch:Pmt}=Xt(),Hn=Symbol("clients"),Ls=Symbol("needDrain"),xB=Symbol("queue"),Aq=Symbol("closed resolve"),cq=Symbol("onDrain"),sCe=Symbol("onConnect"),iCe=Symbol("onDisconnect"),oCe=Symbol("onConnectionError"),uq=Symbol("get dispatcher"),aCe=Symbol("add client"),ACe=Symbol("remove client"),lq=class extends kmt{[xB]=new vmt;[TB]=0;[Hn]=[];[Ls]=!1;[cq](e,r,n){let s=this[xB],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[SY])throw new Vf;process.emitWarning(new Vf)}e[Yr].timeout&&e[Yr].timeoutType===D0&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[fd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[gd]=!1,e&&(Ve(n[hs]<=1,"pipeline should only contain this request"),s(e))}};XIe.exports=G0t});var aye=m((Bpr,oye)=>{"use strict";var ra=b("node:assert"),{pipeline:$0t}=b("node:stream"),ut=$e(),{RequestContentLengthMismatchError:_Y,RequestAbortedError:eEt,SocketError:ob,InformationalError:pd,InvalidArgumentError:tEt}=je(),{kUrl:ib,kReset:N2,kClient:ji,kRunning:ab,kPending:rEt,kQueue:md,kPendingIdx:MY,kRunningIdx:Wa,kError:Ki,kSocket:Dr,kStrictContentLength:nEt,kOnError:k0,kMaxConcurrentStreams:w2,kPingInterval:$Ie,kHTTP2Session:Pu,kHTTP2InitialWindowSize:sEt,kHTTP2ConnectionWindowSize:iEt,kResume:Ac,kSize:oEt,kHTTPContext:LY,kClosed:FY,kBodyTimeout:aEt,kEnableConnectProtocol:nb,kRemoteSettings:sb,kHTTP2Stream:Q2,kHTTP2SessionState:UY}=Xt(),{channels:eye}=ld(),ta=Symbol("open streams"),tye,S2;try{S2=b("node:http2")}catch{S2={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:AEt,HTTP2_HEADER_METHOD:rye,HTTP2_HEADER_PATH:nye,HTTP2_HEADER_SCHEME:DY,HTTP2_HEADER_CONTENT_LENGTH:cEt,HTTP2_HEADER_EXPECT:uEt,HTTP2_HEADER_STATUS:kY,HTTP2_HEADER_PROTOCOL:lEt,NGHTTP2_REFUSED_STREAM:dEt,NGHTTP2_CANCEL:hEt}}=S2;function vY(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 fEt(t,e){t[Dr]=e;let r=t[sEt],n=t[iEt],s=S2.connect(t[ib],{createConnection:()=>e,peerMaxConcurrentStreams:t[w2],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ta]=0,s[ji]=t,s[Dr]=e,s[UY]={ping:{interval:t[$Ie]===0?null:setInterval(EEt,t[$Ie],s).unref()}},s[nb]=!1,s[sb]=!1,n&&ut.addListener(s,"connect",pEt.bind(s,n)),ut.addListener(s,"error",CEt),ut.addListener(s,"frameError",IEt),ut.addListener(s,"end",yEt),ut.addListener(s,"goaway",BEt),ut.addListener(s,"close",bEt),ut.addListener(s,"remoteSettings",mEt),s.unref(),t[Pu]=s,e[Pu]=s,ut.addListener(e,"error",wEt),ut.addListener(e,"end",SEt),ut.addListener(e,"close",QEt),e[FY]=!1,e.on("close",NEt),{version:"h2",defaultPipelining:1/0,write(i){return xEt(t,i)},resume(){gEt(t)},destroy(i,o){e[FY]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[ab]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sb]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sb]===!1;return!1}}}function gEt(t){let e=t[Dr];e?.destroyed===!1&&(t[oEt]===0||t[w2]===0?(e.unref(),t[Pu].unref()):(e.ref(),t[Pu].ref()))}function pEt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function mEt(t){if(this[ji][w2]=t.maxConcurrentStreams??this[ji][w2],this[sb]===!0&&this[nb]===!0&&t.enableConnectProtocol===!1){let e=new pd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][Ki]=e,this[ji][k0](e);return}this[nb]=t.enableConnectProtocol??this[nb],this[sb]=!0,this[ji][Ac]()}function EEt(t){let e=t[UY];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[ji],o=this[ji];if(n!=null){let a=new pd(`HTTP/2: "PING" errored - type ${n.message}`);o[Ki]=a,i[k0](a)}else i.emit("ping",s)}}function CEt(t){ra(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][Ki]=t,this[ji][k0](t)}function IEt(t,e,r){if(r===0){let n=new pd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][Ki]=n,this[ji][k0](n)}}function yEt(){let t=new ob("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function BEt(t){let e=this[Ki]||new ob(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[ji];if(r[Dr]=null,r[LY]=null,this.close(),this[Pu]=null,ut.destroy(this[Dr],e),r[Wa]<r[md].length){let n=r[md][r[Wa]];r[md][r[Wa]++]=null,ut.errorRequest(r,n,e),r[MY]=r[Wa]}ra(r[ab]===0),r.emit("disconnect",r[ib],[r],e),r.emit("connectionError",r[ib],[r],e),r[Ac]()}function bEt(){let{[ji]:t,[UY]:e}=this,{[Dr]:r}=t,n=this[Dr][Ki]||this[Ki]||new ob("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[LY]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ra(t[rEt]===0);let s=t[md].splice(t[Wa]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function QEt(){let t=this[Ki]||new ob("closed",ut.getSocketInfo(this)),e=this[Pu][ji];e[Dr]=null,e[LY]=null,this[Pu]!==null&&this[Pu].destroy(t),e[MY]=e[Wa],ra(e[ab]===0),e.emit("disconnect",e[ib],[e],t),e[Ac]()}function wEt(t){ra(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ki]=t,this[ji][k0](t)}function SEt(){ut.destroy(this,new ob("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;eye.sendHeaders.publish({request:e,headers:v,socket:n[Dr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[uEt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[Q2]=!0,f.once("continue",q)):(f=n.request(h,{endStream:R,signal:c}),f[Q2]=!0,q()),++n[ta],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[kY]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),vY(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[md][t[Wa]++]=null,t[Ac]()):(E(new pd("HTTP/2: stream half-closed (remote)")),t[md][t[Wa]++]=null,t[MY]=t[Wa],t[Ac]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ta]-=1,n[ta]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new pd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new pd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ta]-=1,n[ta]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function q(){!d||y===0?sye(E,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?sye(E,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?iye(E,f,d.stream(),t,e,t[Dr],y,C):DEt(E,f,d,t,e,t[Dr],y,C):ut.isStream(d)?REt(E,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?iye(E,f,d,t,e,t[Dr],y,C):ra(!1)}}function sye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ra(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[N2]=!0),s.onRequestSent(),n[Ac]()}catch(A){t(A)}}function REt(t,e,r,n,s,i,o,a){ra(a!==0||i[ab]===0,"stream body cannot be pipelined");let A=$0t(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[N2]=!0),i[Ac]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function DEt(t,e,r,n,s,i,o,a){ra(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _Y;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[N2]=!0),n[Ac]()}catch(A){t(A)}}async function iye(t,e,r,n,s,i,o,a){ra(o!==0||n[ab]===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)=>{ra(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);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[N2]=!0),n[Ac]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}oye.exports=fEt});var Bd=m((bpr,pye)=>{"use strict";var Ou=b("node:assert"),dye=b("node:net"),Ab=b("node:http"),Wf=$e(),{ClientStats:kEt}=vq(),{channels:v0}=ld(),vEt=xCe(),_Et=Of(),{InvalidArgumentError:gr,InformationalError:FEt,ClientDestroyedError:MEt}=je(),LEt=Hf(),{kUrl:cc,kServerName:yd,kClient:UEt,kBusy:PY,kConnect:PEt,kResuming:Jf,kRunning:db,kPending:hb,kSize:cb,kQueue:Ja,kConnected:OEt,kConnecting:_0,kNeedDrain:Cd,kKeepAliveDefaultTimeout:Aye,kHostHeader:HEt,kPendingIdx:za,kRunningIdx:Hu,kError:GEt,kPipelining:T2,kKeepAliveTimeoutValue:qEt,kMaxHeadersSize:YEt,kKeepAliveMaxTimeout:VEt,kKeepAliveTimeoutThreshold:WEt,kHeadersTimeout:JEt,kBodyTimeout:zEt,kStrictContentLength:jEt,kConnector:ub,kMaxRequests:OY,kCounter:KEt,kClose:XEt,kDestroy:ZEt,kDispatch:$Et,kLocalAddress:lb,kMaxResponseSize:eCt,kOnError:tCt,kHTTPContext:rn,kMaxConcurrentStreams:rCt,kHTTP2InitialWindowSize:nCt,kHTTP2ConnectionWindowSize:sCt,kResume:Id,kPingInterval:iCt}=Xt(),oCt=ZIe(),aCt=aye(),Ed=Symbol("kClosedResolve"),ACt=Ab&&Ab.maxHeaderSize&&Number.isInteger(Ab.maxHeaderSize)&&Ab.maxHeaderSize>0?()=>Ab.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},cye=()=>{};function hye(t){return t[T2]??t[rn]?.defaultPipelining??1}var HY=class extends _Et{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,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:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:q,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:$,initialWindowSize:re,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("unsu Line truncated
`,this[zEt]=a??3e5,this[JEt]=n??3e5,this[jEt]=E??!0,this[OY]=R,this[Ed]=null,this[eCt]=q>-1?q:-1,this[rn]=null,this[rCt]=D??100,this[nCt]=re??262144,this[sCt]=Ae??524288,this[iCt]=ge??6e4,this[Ja]=[],this[Hu]=0,this[za]=0,this[Id]=De=>GY(this,De),this[tCt]=De=>fye(this,De)}get pipelining(){return this[T2]}set pipelining(e){this[T2]=e,this[Id](!0)}get stats(){return new kEt(this)}get[hb](){return this[Ja].length-this[za]}get[db](){return this[za]-this[Hu]}get[cb](){return this[Ja].length-this[Hu]}get[OEt](){return!!this[rn]&&!this[_0]&&!this[rn].destroyed}get[PY](){return!!(this[rn]?.busy(null)||this[cb]>=(hye(this)||1)||this[hb]>0)}[PEt](e){gye(this),this.once("connect",e)}[$Et](e,r){let n=new vEt(this[cc].origin,e,r);return this[Ja].push(n),this[Jf]||(Wf.bodyLength(n.body)==null&&Wf.isIterable(n.body)?(this[Jf]=1,queueMicrotask(()=>GY(this))):this[Id](!0)),this[Jf]&&this[Cd]!==2&&this[PY]&&(this[Cd]=2),this[Cd]<2}[XEt](){return new Promise(e=>{this[cb]?this[Ed]=e:e(null)})}[ZEt](e){return new Promise(r=>{let n=this[Ja].splice(this[za]);for(let i=0;i<n.length;i++){let o=n[i];Wf.errorRequest(this,o,e)}let s=()=>{this[Ed]&&(this[Ed](),this[Ed]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Id]()})}};function fye(t,e){if(t[db]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ou(t[za]===t[Hu]);let r=t[Ja].splice(t[Hu]);for(let n=0;n<r.length;n++){let s=r[n];Wf.errorRequest(t,s,e)}Ou(t[cb]===0)}}function gye(t){Ou(!t[_0]),Ou(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[cc];if(r[0]==="["){let i=r.indexOf("]");Ou(i!==-1);let o=r.substring(1,i);Ou(dye.isIPv6(o)),r=o}t[_0]=!0,v0.beforeConnect.hasSubscribers&&v0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[yd],localAddress:t[lb]},connector:t[ub]}),t[ub]({host:e,hostname:r,protocol:n,port:s,servername:t[yd],localAddress:t[lb]},(i,o)=>{if(i){uye(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Id]();return}if(t.destroyed){Wf.destroy(o.on("error",cye),new MEt),t[Id]();return}Ou(o);try{t[rn]=o.alpnProtocol==="h2"?aCt(t,o):oCt(t,o)}catch(a){o.destroy().on("error",cye),uye(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Id]();return}t[_0]=!1,o[KEt]=0,o[OY]=t[OY],o[UEt]=t,o[GEt]=null,v0.connected.hasSubscribers&&v0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[yd],localAddress:t[lb]},connector:t[ub],socket:o}),t.emit("connect",t[cc],[t]),t[Id]()})}function uye(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_0]=!1,v0.connectError.hasSubscribers&&v0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[yd],localAddress:t[lb]},connector:t[ub],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ou(t[db]===0);t[hb]>0&&t[Ja][t[za]].servername===t[yd];){let o=t[Ja][t[za]++];Wf.errorRequest(t,o,e)}else fye(t,e);t.emit("connectionError",t[cc],[t],e)}}function lye(t){t[Cd]=0,t.emit("drain",t[cc],[t])}function GY(t,e){t[Jf]!==2&&(t[Jf]=2,cCt(t,e),t[Jf]=0,t[Hu]>256&&(t[Ja].splice(0,t[Hu]),t[za]-=t[Hu],t[Hu]=0))}function cCt(t,e){for(;;){if(t.destroyed){Ou(t[hb]===0);return}if(t[Ed]&&!t[cb]){t[Ed](),t[Ed]=null;return}if(t[rn]&&t[rn].resume(),t[PY])t[Cd]=2;else if(t[Cd]===2){e?(t[Cd]=1,queueMicrotask(()=>lye(t))):lye(t);continue}if(t[hb]===0||t[db]>=(hye(t)||1))return;let r=t[Ja][t[za]];if(r===null)return;if(t[cc].protocol==="https:"&&t[yd]!==r.servername){if(t[db]>0)return;t[yd]=r.servername,t[rn]?.destroy(new FEt("servername changed"),()=>{t[rn]=null,GY(t)})}if(t[_0])return;if(!t[rn]){gye(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[za]++:t[Ja].splice(t[za],1)}}pye.exports=HY});var qY=m((wpr,mye)=>{"use strict";var x2=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)}};mye.exports=class{constructor(){this.head=this.tail=new x2}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new x2),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 R2=m((Spr,Sye)=>{"use strict";var{PoolStats:uCt}=vq(),lCt=Of(),dCt=qY(),{kConnected:YY,kSize:Eye,kRunning:Cye,kPending:Iye,kQueued:fb,kBusy:hCt,kFree:fCt,kUrl:gCt,kClose:pCt,kDestroy:mCt,kDispatch:ECt}=Xt(),Hn=Symbol("clients"),Ps=Symbol("needDrain"),gb=Symbol("queue"),VY=Symbol("closed resolve"),WY=Symbol("onDrain"),yye=Symbol("onConnect"),Bye=Symbol("onDisconnect"),bye=Symbol("onConnectionError"),JY=Symbol("get dispatcher"),Qye=Symbol("add client"),wye=Symbol("remove client"),zY=class extends lCt{[gb]=new dCt;[fb]=0;[Hn]=[];[Ps]=!1;[WY](e,r,n){let s=this[gb],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Dye.exports=SY});var TY=m((tgr,Fye)=>{"use strict";var{InvalidArgumentError:MCt}=je(),{runtimeFeatures:LCt}=yu();function UCt(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 kye=LCt.has("crypto")?b("node:crypto"):null,PCt=kye?.hash?t=>kye.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function _ye(t){return Array.isArray(t)&&(t.length&1)===0}function OCt(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 HCt(t){let e={};if(!t)return e;if(_ye(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 vye=["record","playback","update"];function GCt(t){if(!vye.includes(t))throw new MCt(`Invalid snapshot mode: ${t}. Must be one of: ${vye.join(", ")}`)}Fye.exports={createHeaderFilters:UCt,hashId:PCt,isUndiciHeaders:_ye,normalizeHeaders:HCt,isUrlExcludedFactory:OCt,validateSnapshotMode:GCt}});var Yye=m((rgr,qye)=>{"use strict";var{writeFile:qCt,readFile:YCt,mkdir:VCt}=b("node:fs/promises"),{dirname:WCt,resolve:Mye}=b("node:path"),{setTimeout:JCt,clearTimeout:Lye}=b("node:timers"),{InvalidArgumentError:Uye,UndiciError:zCt}=je(),{hashId:jCt,isUrlExcludedFactory:KCt,normalizeHeaders:Pye,createHeaderFilters:Oye}=TY();function qB(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Pye(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Hye(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Hye(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function Gye(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 A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function YB(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 jCt(r)}var xY=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=Oye(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=KCt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=qB(e,this.#a,this.matchOptions),s=YB(n),i=Pye(r.headers),o={statusCode:r.statusCode,headers:Gye(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 A=this.#n.keys().next().value;this.#n.delete(A)}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.#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=qB(e,this.#a,this.matchOptions),n=YB(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 Uye("Snapshot path is required");try{let n=await YCt(Mye(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 zCt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Uye("Snapshot path is required");let n=Mye(r);await VCt(WCt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await qCt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};zbe.exports=c7});var l7=m((nmr,Zbe)=>{"use strict";var{InvalidArgumentError:gBt}=je(),{runtimeFeatures:pBt}=Lu();function mBt(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 jbe=pBt.has("crypto")?b("node:crypto"):null,EBt=jbe?.hash?t=>jbe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Xbe(t){return Array.isArray(t)&&(t.length&1)===0}function CBt(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 IBt(t){let e={};if(!t)return e;if(Xbe(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 Kbe=["record","playback","update"];function yBt(t){if(!Kbe.includes(t))throw new gBt(`Invalid snapshot mode: ${t}. Must be one of: ${Kbe.join(", ")}`)}Zbe.exports={createHeaderFilters:mBt,hashId:EBt,isUndiciHeaders:Xbe,normalizeHeaders:IBt,isUrlExcludedFactory:CBt,validateSnapshotMode:yBt}});var aQe=m((smr,oQe)=>{"use strict";var{writeFile:BBt,readFile:bBt,mkdir:QBt}=b("node:fs/promises"),{dirname:wBt,resolve:$be}=b("node:path"),{setTimeout:SBt,clearTimeout:eQe}=b("node:timers"),{InvalidArgumentError:tQe,UndiciError:NBt}=je(),{hashId:TBt,isUrlExcludedFactory:xBt,normalizeHeaders:rQe,createHeaderFilters:nQe}=l7();function xb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||rQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:sQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function sQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function iQe(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 A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Rb(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 TBt(r)}var d7=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=nQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=xBt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=xb(e,this.#a,this.matchOptions),s=Rb(n),i=rQe(r.headers),o={statusCode:r.statusCode,headers:iQe(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 A=this.#n.keys().next().value;this.#n.delete(A)}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.#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=xb(e,this.#a,this.matchOptions),n=Rb(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 tQe("Snapshot path is required");try{let n=await bBt($be(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 NBt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new tQe("Snapshot path is required");let n=$be(r);await QBt(wBt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await BBt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ji} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${$i} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};Dye.exports=SY});var TY=m((tgr,Fye)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ji}_getValuesQuery ON cacheInterceptorV${ji}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ji}_deleteByUrlQuery ON cacheInterceptorV${ji}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${$i}_getValuesQuery ON cacheInterceptorV${$i}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${$i}_deleteByUrlQuery ON cacheInterceptorV${$i}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};Dye.exports=SY});var TY=m((tgr,Fye)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ji}
FROM cacheInterceptorV${$i}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ji} SET
UPDATE cacheInterceptorV${$i} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +168,7 @@ ${e.format(r)}`.trim())}};Dye.exports=SY});var TY=m((tgr,Fye)=>{"use strict";var
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ji} (
INSERT INTO cacheInterceptorV${$i} (
url,
method,
body,
@@ -182,85 +182,88 @@ ${e.format(r)}`.trim())}};Dye.exports=SY});var TY=m((tgr,Fye)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ji} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ji}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ji} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ji}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${$i} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${$i}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${$i} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${$i}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ji}
FROM cacheInterceptorV${$i}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){XY(e);let r=this.#f(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){XY(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.#f(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){XY(e),Myt(r);let n=0,s=[],i=this;return new Fyt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},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.#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}`}#f(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 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(!Lyt(s[l],u[l])){c=!1;break}}if(c)return A}}};function Lyt(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 Uf=m((Qgr,XBe)=>{"use strict";var{kConstruct:Uyt}=Xt(),{kEnumerableProperty:C0}=$e(),{iteratorMixin:Pyt,isValidHeaderName:zB,isValidHeaderValue:WBe}=Yi(),{webidl:bt}=zn(),$Y=b("node:assert"),e2=b("node:util");function VBe(t){return t===10||t===13||t===9||t===32}function JBe(t){let e=0,r=t.length;for(;r>e&&VBe(t.charCodeAt(r-1));)--r;for(;r>e&&VBe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function zBe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw bt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});eV(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)eV(t,r[n],e[r[n]])}else throw bt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function eV(t,e,r){if(r=JBe(r),zB(e)){if(!WBe(r))throw bt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw bt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(KBe(t)==="immutable")throw new TypeError("immutable");return r2(t).append(e,r,!1)}function Oyt(t){let e=r2(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 A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function jBe(t,e){return t[0]<e[0]?-1:1}var t2=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":swe(i)&&(r[s]=i);break;case"id":iwe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&swe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&iwe(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}}};owe.exports={EventSourceStream:LV}});var gwe=m((jgr,fwe)=>{"use strict";var{pipeline:n1t}=b("node:stream"),{fetching:s1t}=$B(),{makeRequest:i1t}=y0(),{webidl:Ps}=zn(),{EventSourceStream:o1t}=awe(),{parseMIMEType:a1t}=Wo(),{createFastMessageEvent:A1t}=N2(),{isNetworkError:Awe}=KB(),{kEnumerableProperty:Wf}=$e(),{environmentSettingsObject:cwe}=Yi(),uwe=!1,lwe=3e3,ob=0,dwe=1,ab=2,c1t="anonymous",u1t="use-credentials",D0=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=ob;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),uwe||(uwe=!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=cwe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=c1t;r.withCredentials===!0&&(o=u1t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=cwe.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=i1t(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===ab)return;this.#r=ob;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!Awe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Awe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?a1t(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=dwe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new o1t({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(A1t(A.type,A.options))}});n1t(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=s1t(e)}#c(){this.#r!==ab&&(this.#r=ob,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===ob&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Ps.brandCheck(this,t),this.#r!==ab&&(this.#r=ab,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}},hwe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ob,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dwe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ab,writable:!1}};Object.defineProperties(D0,hwe);Object.defineProperties(D0.prototype,hwe);Object.defineProperties(D0.prototype,{close:Wf,onerror:Wf,onmessage:Wf,onopen:Wf,readyState:Wf,url:Wf,withCredentials:Wf});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:()=>lwe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);fwe.exports={EventSource:D0,defaultReconnectionTime:lwe}});var ywe=m((Kgr,ge)=>{"use strict";var l1t=td(),mwe=iB(),d1t=wf(),h1t=mCe(),f1t=yCe(),g1t=Tf(),p1t=Dq(),m1t=Nq(),E1t=sIe(),C1t=uIe(),I1t=hIe(),Ewe=je(),O2=$e(),{InvalidArgumentError:P2}=Ewe,k0=zIe(),y1t=Ef(),B1t=gY(),{MockCallHistory:b1 Line truncated
`)}close(){this.#n.close()}get(e){_7(e);let r=this.#f(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){_7(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.#f(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){_7(e),gQt(r);let n=0,s=[],i=this;return new fQt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},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.#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}`}#f(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 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(!pQt(s[l],u[l])){c=!1;break}}if(c)return A}}};function pQt(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 ag=m((Smr,fwe)=>{"use strict";var{kConstruct:mQt}=Xt(),{kEnumerableProperty:j0}=$e(),{iteratorMixin:EQt,isValidHeaderName:_b,isValidHeaderValue:cwe}=zi(),{webidl:Qt}=jn(),M7=b("node:assert"),ak=b("node:util");function Awe(t){return t===10||t===13||t===9||t===32}function uwe(t){let e=0,r=t.length;for(;r>e&&Awe(t.charCodeAt(r-1));)--r;for(;r>e&&Awe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function lwe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Qt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});L7(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)L7(t,r[n],e[r[n]])}else throw Qt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function L7(t,e,r){if(r=uwe(r),_b(e)){if(!cwe(r))throw Qt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Qt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(hwe(t)==="immutable")throw new TypeError("immutable");return ck(t).append(e,r,!1)}function CQt(t){let e=ck(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 A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function dwe(t,e){return t[0]<e[0]?-1:1}var Ak=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":ySe(i)&&(r[s]=i);break;case"id":BSe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&ySe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&BSe(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}}};bSe.exports={EventSourceStream:IW}});var kSe=m((Xmr,DSe)=>{"use strict";var{pipeline:MNt}=b("node:stream"),{fetching:LNt}=Pb(),{makeRequest:UNt}=X0(),{webidl:Hs}=jn(),{EventSourceStream:PNt}=QSe(),{parseMIMEType:ONt}=Xo(),{createFastMessageEvent:HNt}=_k(),{isNetworkError:wSe}=Mb(),{kEnumerableProperty:gg}=$e(),{environmentSettingsObject:SSe}=zi(),NSe=!1,TSe=3e3,Wb=0,xSe=1,Jb=2,GNt="anonymous",qNt="use-credentials",aE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Wb;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),NSe||(NSe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=SSe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=GNt;r.withCredentials===!0&&(o=qNt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=SSe.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=UNt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===Jb)return;this.#r=Wb;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!wSe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(wSe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?ONt(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=xSe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new PNt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(HNt(A.type,A.options))}});MNt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=LNt(e)}#c(){this.#r!==Jb&&(this.#r=Wb,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===Wb&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==Jb&&(this.#r=Jb,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=Hs.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=Hs.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=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},RSe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Wb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:xSe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Jb,writable:!1}};Object.defineProperties(aE,RSe);Object.defineProperties(aE.prototype,RSe);Object.defineProperties(aE.prototype,{close:gg,onerror:gg,onmessage:gg,onopen:gg,readyState:gg,url:gg,withCredentials:gg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>TSe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);DSe.exports={EventSource:aE,defaultReconnectionTime:TSe}});var USe=m((Zmr,pe)=>{"use strict";var YNt=Bd(),_Se=VB(),VNt=zf(),WNt=_ye(),JNt=Uye(),zNt=Xf(),jNt=fV(),KNt=uV(),XNt=yBe(),ZNt=NBe(),$Nt=RBe(),FSe=je(),Jk=$e(),{InvalidArgumentError:Wk}=FSe,AE=lbe(),eTt=Hf(),tTt=ZV(),{MockCallHistory:rT Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return _1t(e,r).catch(n=>{throw pwe?Iwe(n,pwe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=Uf().Headers;ge.exports.Response=KB().Response;ge.exports.Request=y0().Request;ge.exports.FormData=cD().FormData;var{setGlobalOrigin:F1t,getGlobalOrigin:M1t}=pG();ge.exports.setGlobalOrigin=F1t;ge.exports.getGlobalOrigin=M1t;var{CacheStorage:L1t}=eQe(),{kConstruct:U1t}=Xt();ge.exports.caches=new L1t(U1t);var{deleteCookie:P1t,getCookies:O1t,getSetCookies:H1t,setCookie:G1t,parseCookie:q1t}=hQe();ge.exports.deleteCookie=P1t;ge.exports.getCookies=O1t;ge.exports.getSetCookies=H1t;ge.exports.setCookie=G1t;ge.exports.parseCookie=q1t;var{parseMIMEType:Y1t,serializeAMimeType:V1t}=Wo();ge.exports.parseMIMEType=Y1t;ge.exports.serializeAMimeType=V1t;var{CloseEvent:W1t,ErrorEvent:J1t,MessageEvent:z1t}=N2(),{WebSocket:j1t,ping:K1t}=JQe();ge.exports.WebSocket=j1t;ge.exports.CloseEvent=W1t;ge.exports.ErrorEvent=J1t;ge.exports.MessageEvent=z1t;ge.exports.ping=K1t;ge.exports.WebSocketStream=twe().WebSocketStream;ge.exports.WebSocketError=kV().WebSocketError;ge.exports.request=Ab(k0.request);ge.exports.stream=Ab(k0.stream);ge.exports.pipeline=Ab(k0.pipeline);ge.exports.connect=Ab(k0.connect);ge.exports.upgrade=Ab(k0.upgrade);ge.exports.MockClient=B1t;ge.exports.MockCallHistory=b1t;ge.exports.MockCallHistoryLog=Q1t;ge.exports.MockPool=S1t;ge.exports.MockAgent=w1t;ge.exports.SnapshotAgent=N1t;ge.exports.mockErrors=T1t;var{EventSource:X1t}=gwe();ge.exports.EventSource=X1t;function Z1t(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=Z1t});var cb=m(fd=>{"use strict";fd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");fd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");fd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";fd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);fd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);fd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());fd.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 bwe=m(($gr,Bwe)=>{"use strict";var{asciiLowercase:H2,solelyContainsHTTPTokenCodePoints:$1t,soleyContainsHTTPQuotedStringTokenCodePoints:eSt}=cb();Bwe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=H2(String(e)),this._map.get(e)}has(e){return e=H2(String(e)),this._map.has(e)}set(e,r){if(e=H2(String(e)),r=String(r),!$1t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!eSt(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=H2(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 Swe=m((epr,wwe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:tSt,removeTrailingHTTPWhitespace:Qwe,isHTTPWhitespaceChar:rSt,solelyContainsHTTPTokenCodePoints:UV,soleyContainsHTTPQuotedStringTokenCodePoints:nSt,asciiLowercase:PV,collectAnHTTPQuotedString:sSt}=cb();wwe.exports=t=>{t=tSt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!UV(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Qwe(n),n.length===0||!UV(n))return null;let s={type:PV(r),subtype:PV(n),parameters:new Map};for(;e<t.length;){for(++e;rSt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=PV(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=sSt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Qwe(o),o==="")continue}i.length>0&&UV(i)&&nSt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Twe=m((tpr,Nwe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:iSt}=cb();Nwe.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+="=",(!iSt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var kwe=m((npr,Dwe)=>{"use strict";var oSt=bwe(),aSt=Swe(),ASt=Twe(),{asciiLowercase:xwe,solelyContainsHTTPTokenCodePoints:Rwe}=cb();Dwe.exports=class{constructor(e){e=String(e);let r=aSt(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 oSt(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=xwe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Rwe(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=xwe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Rwe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return ASt(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 zwe=m((pmr,NSt)=>{NSt.exports={name:"@actions/artifact",version:"6.1.0",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`,v,v,f,s);let P=f.type==="*"?v7:f.type==="?"?M7:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=GSt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),J=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+Z,oe=D.split(")").length,fe=D.split("(").length-oe,De=Z;for(let st=0;st<fe;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==_7?"(?:$|\\/)":"";s=D+J+Z+Ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===_7)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return YSt(e);let q=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",q),{_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?v7:r.dot?OSt:HSt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?WSt(a):a===Os?Os:a._src).reduce((a,A)=>(a[a.length-1]===Os&&A===Os||a.push(A),a),[]),o.forEach((a,A)=>{a!==Os||o[A-1]===Os||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+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;F7.sep!=="/"&&(e=e.split(F7.sep).join("/")),e=e.split(y1e),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],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return eo.defaults(e).Minimatch}};eo.Minimatch=U0});var x1e=m((Wmr,T1e)=>{T1e.exports=N1e;var P7=b("fs"),{EventEmitter:zSt}=b("events"),{Minimatch:U7}=Q1e(),{resolve:jSt}=b("path");function KSt(t,e){return new Promise((r,n)=>{P7.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 w1e(t,e){return new Promise((r,n)=>{(e?P7.stat:P7.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?w1e(t,!1):null):r(null):r(o)})})}async function*S1e(t,e,r,n,s,i){let o=await KSt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await w1e(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*S1e(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*XSt(t,e,r,n){yield*S1e("",t,e,r,n,!0)}function ZSt(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 z2=class extends zSt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=ZSt(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 U7(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 U7(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 U7(i,{dot:!0}))}this.iterator=XSt(jSt(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=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)):(y+=Q[w],w++)}else y+=Q[w],w++;return y}function PE(Q){let y=UE(Q.toString()),w=y.match(r_);if(w||(w=y.match(n_)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return hTt(e,r).catch(n=>{throw vSe?LSe(n,vSe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=ag().Headers;pe.exports.Response=Mb().Response;pe.exports.Request=X0().Request;pe.exports.FormData=p2().FormData;var{setGlobalOrigin:fTt,getGlobalOrigin:gTt}=$q();pe.exports.setGlobalOrigin=fTt;pe.exports.getGlobalOrigin=gTt;var{CacheStorage:pTt}=m1e(),{kConstruct:mTt}=Xt();pe.exports.caches=new pTt(mTt);var{deleteCookie:ETt,getCookies:CTt,getSetCookies:ITt,setCookie:yTt,parseCookie:BTt}=R1e();pe.exports.deleteCookie=ETt;pe.exports.getCookies=CTt;pe.exports.getSetCookies=ITt;pe.exports.setCookie=yTt;pe.exports.parseCookie=BTt;var{parseMIMEType:bTt,serializeAMimeType:QTt}=Xo();pe.exports.parseMIMEType=bTt;pe.exports.serializeAMimeType=QTt;var{CloseEvent:wTt,ErrorEvent:STt,MessageEvent:NTt}=_k(),{WebSocket:TTt,ping:xTt}=uSe();pe.exports.WebSocket=TTt;pe.exports.CloseEvent=wTt;pe.exports.ErrorEvent=STt;pe.exports.MessageEvent=NTt;pe.exports.ping=xTt;pe.exports.WebSocketStream=ESe().WebSocketStream;pe.exports.WebSocketError=gW().WebSocketError;pe.exports.request=zb(AE.request);pe.exports.stream=zb(AE.stream);pe.exports.pipeline=zb(AE.pipeline);pe.exports.connect=zb(AE.connect);pe.exports.upgrade=zb(AE.upgrade);pe.exports.MockClient=tTt;pe.exports.MockCallHistory=rTt;pe.exports.MockCallHistoryLog=nTt;pe.exports.MockPool=iTt;pe.exports.MockAgent=sTt;pe.exports.SnapshotAgent=oTt;pe.exports.mockErrors=aTt;var{EventSource:RTt}=kSe();pe.exports.EventSource=RTt;function DTt(){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=DTt});var jb=m(Fd=>{"use strict";Fd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Fd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Fd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Fd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Fd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Fd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Fd.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 OSe=m((t0r,PSe)=>{"use strict";var{asciiLowercase:zk,solelyContainsHTTPTokenCodePoints:kTt,soleyContainsHTTPQuotedStringTokenCodePoints:vTt}=jb();PSe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=zk(String(e)),this._map.get(e)}has(e){return e=zk(String(e)),this._map.has(e)}set(e,r){if(e=zk(String(e)),r=String(r),!kTt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!vTt(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=zk(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 qSe=m((r0r,GSe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:_Tt,removeTrailingHTTPWhitespace:HSe,isHTTPWhitespaceChar:FTt,solelyContainsHTTPTokenCodePoints:yW,soleyContainsHTTPQuotedStringTokenCodePoints:MTt,asciiLowercase:BW,collectAnHTTPQuotedString:LTt}=jb();GSe.exports=t=>{t=_Tt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!yW(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=HSe(n),n.length===0||!yW(n))return null;let s={type:BW(r),subtype:BW(n),parameters:new Map};for(;e<t.length;){for(++e;FTt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=BW(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=LTt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=HSe(o),o==="")continue}i.length>0&&yW(i)&&MTt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var VSe=m((n0r,YSe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:UTt}=jb();YSe.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+="=",(!UTt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var jSe=m((i0r,zSe)=>{"use strict";var PTt=OSe(),OTt=qSe(),HTt=VSe(),{asciiLowercase:WSe,solelyContainsHTTPTokenCodePoints:JSe}=jb();zSe.exports=class{constructor(e){e=String(e);let r=OTt(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 PTt(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=WSe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!JSe(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=WSe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!JSe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return HTt(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 lNe=m((EEr,oxt)=>{oxt.exports={name:"@actions/artifact",version:"6.1.0",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`,v,v,f,s);let P=f.type==="*"?pJ:f.type==="?"?CJ:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=yxt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),$=s.slice(P.reEnd),re=s.slice(P.reEnd-8,P.reEnd)+$,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=$;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");$=De;let Ke=$===""&&r!==mJ?"(?:$|\\/)":"";s=D+z+$+Ke+re}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===mJ)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return bxt(e);let q=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",q),{_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?pJ:r.dot?Cxt:Ixt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?wxt(a):a===Gs?Gs:a._src).reduce((a,A)=>(a[a.length-1]===Gs&&A===Gs||a.push(A),a),[]),o.forEach((a,A)=>{a!==Gs||o[A-1]===Gs||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Gs))}),o.filter(a=>a!==Gs).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;EJ.sep!=="/"&&(e=e.split(EJ.sep).join("/")),e=e.split(UNe),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],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return so.defaults(e).Minimatch}};so.Minimatch=fE});var WNe=m((zEr,VNe)=>{VNe.exports=YNe;var BJ=b("fs"),{EventEmitter:Nxt}=b("events"),{Minimatch:yJ}=HNe(),{resolve:Txt}=b("path");function xxt(t,e){return new Promise((r,n)=>{BJ.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 GNe(t,e){return new Promise((r,n)=>{(e?BJ.stat:BJ.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?GNe(t,!1):null):r(null):r(o)})})}async function*qNe(t,e,r,n,s,i){let o=await xxt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await GNe(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*qNe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Rxt(t,e,r,n){yield*qNe("",t,e,r,n,!0)}function Dxt(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 tv=class extends Nxt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Dxt(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 yJ(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 yJ(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 yJ(i,{dot:!0}))}this.iterator=Rxt(Txt(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=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 gC(Q){let B=fC(Q.toString()),w=B.match(cF);if(w||(w=B.match(uF)),!w)throw new Error(`could not parse args in autoInject
Source:
`+y);let[,F]=w;return F.replace(/\s/g,"").split(kQ).map(H=>H.replace(vQ,"").trim())}function OE(Q,y){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],Y,W=h(H),z=!W&&H.length===1||W&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),w[F]=Y.concat(Y.length>0?$:H);else if(z)w[F]=H;else{if(Y=PE(H),H.length===0&&!W&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");W||Y.pop(),w[F]=Y.concat($)}function $(Se,It){var vt=Y.map(Qt=>Se[Qt]);vt.push(It),C(H)(...vt)}}),LE(w,y)}class HE{constructor(){this.head=this.tail=null,this.length=0}removeLink(y){return y.prev?y.prev.next=y.next:this.head=y.next,y.next?y.next.prev=y.prev:this.tail=y.prev,y.prev=y.next=null,this.length-=1,y}empty(){for(;this.head;)this.shift();return this}insertAfter(y,w){w.prev=y,w.next=y.next,y.next?y.next.prev=w:this.tail=w,y.next=w,this.length+=1}insertBefore(y,w){w.prev=y.prev,w.next=y,y.prev?y.prev.next=w:this.head=w,y.prev=w,this.length+=1}unshift(y){this.head?this.insertBefore(this.head,y):GE(this,y)}push(y){this.tail?this.insertAfter(this.tail,y):GE(this,y)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var y=this.head;y;)yield y.data,y=y.next}remove(y){for(var w=this.head;w;){var{next:F}=w;y(w)&&this.removeLink(w),w=F}return this}}function GE(Q,y){Q.length=1,Q.head=Q.tail=y}function Sg(Q,y,w){if(y==null)y=1;else if(y===0)throw new RangeError("Concurrency must not be zero");var F=C(Q),H=0,Y=[];let W={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function z(Ue,be){W[Ue].push(be)}function $(Ue,be){let Pe=(...wt)=>{Se(Ue,Pe),be(...wt)};W[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(W).forEach(Pe=>W[Pe]=[]);if(!be)return W[Ue]=[];W[Ue]=W[Ue].filter(Pe=>Pe!==be)}function It(Ue,...be){W[Ue].forEach(Pe=>Pe(...be))}var vt=!1;function Qt(Ue,be,Pe,wt){if(wt!=null&&typeof wt!="function")throw new Error("task callback must be a function");_t.started=!0;var Cr,wn;function ao(Gd,...jE){if(Gd)return Pe?wn(Gd):Cr();if(jE.length<=1)return Cr(jE[0]);Cr(jE)}var Rg=_t._createTaskItem(Ue,Pe?ao:wt||ao);if(be?_t._tasks.unshift(Rg):_t._tasks.push(Rg),vt||(vt=!0,c(()=>{vt=!1,_t.process()})),Pe||!wt)return new Promise((Gd,jE)=>{Cr=Gd,wn=jE})}function oo(Ue){return function(be,...Pe){H-=1;for(var wt=0,Cr=Ue.length;wt<Cr;wt++){var wn=Ue[wt],ao=Y.indexOf(wn);ao===0?Y.shift():ao>0&&Y.splice(ao,1),wn.callback(be,...Pe),be!=null&&It("error",be,wn.data)}H<=_t.concurrency-_t.buffer&&It("unsaturated"),_t.idle()&&It("drain"),_t.process()}}function xg(Ue){return Ue.length===0&&_t.idle()?(c(()=>It("drain")),!0):!1}let Hd=Ue=>be=>{if(!be)return new Promise((Pe,wt)=>{$(Ue,(Cr,wn)=>{if(Cr)return wt(Cr);Pe(wn)})});Se(Ue),z(Ue,be)};var zE=!1,_t={_tasks:new HE,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*_t._tasks[Symbol.iterator]()},concurrency:y,payload:w,buffer:y/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?xg(Ue)?void 0:Ue.map(Pe=>Qt(Pe,!1,!1,be)):Qt(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?xg(Ue)?void 0:Ue.map(Pe=>Qt(Pe,!1,!0,be)):Qt(Ue,!1,!0,be)},kill(){Se(),_t._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?xg(Ue)?void 0:Ue.map(Pe=>Qt(Pe,!0,!1,be)):Qt(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?xg(Ue)?void 0:Ue.map(Pe=>Qt(Pe,!0,!0,be)):Qt(Ue,!0,!0,be)},remove(Ue){_t._tasks.remove(Ue)},process(){if(!zE){for(zE=!0;!_t.paused&&H<_t.concurrency&&_t._tasks.length;){var Ue=[],be=[],Pe=_t._tasks.length;_t.payload&&(Pe=Math.min(Pe,_t.payload));for(var wt=0;wt<Pe;wt++){var Cr=_t._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}H+=1,_t._tasks.length===0&&It("empty"),H===_t.concurrency&&It("saturated");var wn=te(oo(Ue));F(be,wn)}zE=!1}},length(){return _t._tasks.length},running(){return H},workersList(){return Y},idle(){return _t._tasks.length+H===0},pause(){_t.paused=!0},resume(){_t.paused!==!1&&(_t.paused=!1,c(_t.process))}};return Object.defineProperties(_t,{saturated:{writable:!1,value:Hd("saturated")},unsaturated:{writable:!1,value:Hd("unsaturated")},empty:{writable:!1,value:Hd("empty")},drain:{writable:!1,value:Hd("drain")},error:{writable:!1,value:Hd("error")}}),_t}function qE(Q,y){return Sg(Q,1,y)}function Ng(Q,y,w){return Sg(Q,y,w)}function io(Q,y,w,F){F=q(F);var H=C(w);return Ws(Q,(Y,W,z)=>{H(y,Y,($,Se)=>{y=Se,z($)})},Y=>F(Y,y))}var ca=E(io,4);function Tg(...Q){var y=Q.map(C);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=Rc(),ca(y,w,(Y,W,z)=>{W.apply(F,Y.concat(($,...Se)=>{z($,Se)}))},(Y,W)=>H(Y,...W)),H[xc]}}function _Q(...Q){return Tg(...Q.reverse())}function we(Q,y,w,F){return B(fe(y),Q,w,F)}var O=E(we,4);function N(Q,y,w,F){var H=C(w);return O(Q,y,(Y,W)=>{H(Y,(z,...$)=>z?W(z):W(z,$))},(Y,W)=>{for(var z=[],$=0;$<W.length;$++)W[$]&&(z=z.concat(...W[$]));return F(Y,z)})}var G=E(N,4);function j(Q,y,w){return G(Q,1/0,y,w)}var K=E(j,3);function se(Q,y,w){return G(Q,1,y,w)}var Line truncated
GFS4: `),console.error(t)});Dr[Kn]||(P1e=global[Kn]||[],H1e(Dr,P1e),Dr.close=(function(t){function e(r,n){return t.call(Dr,r,function(s){s||O1e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,$2,{value:t}),e})(Dr.close),Dr.closeSync=(function(t){function e(r){t.apply(Dr,arguments),O1e()}return Object.defineProperty(e,$2,{value:t}),e})(Dr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jf(Dr[Kn]),b("assert").equal(Dr[Kn].length,0)}));var P1e;global[Kn]||H1e(global,Dr[Kn]);q7.exports=H7(aNt(Dr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Dr.__patched&&(q7.exports=H7(Dr),Dr.__patched=!0);function H7(t){iNt(t),t.gracefulify=H7,t.createReadStream=M,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(D,J,Z){return typeof J=="function"&&(Z=J,J=null),te(D,J,Z);function te(oe,fe,De,Ke){return e(oe,fe,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?P0([te,[oe,fe,De],st,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,J,Z,te){return typeof Z=="function"&&(te=Z,Z=null),oe(D,J,Z,te);function oe(fe,De,Ke,st,Vt){return n(fe,De,Ke,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?P0([oe,[fe,De,Ke,st],Dt,Vt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,J,Z,te){return typeof Z=="function"&&(te=Z,Z=null),oe(D,J,Z,te);function oe(fe,De,Ke,st,Vt){return i(fe,De,Ke,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?P0([oe,[fe,De,Ke,st],Dt,Vt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,J,Z,te){return typeof Z=="function"&&(te=Z,Z=0),oe(D,J,Z,te);function oe(fe,De,Ke,st,Vt){return a(fe,De,Ke,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?P0([oe,[fe,De,Ke,st],Dt,Vt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,J,Z){typeof J=="function"&&(Z=J,J=null);var te=u.test(process.version)?function(De,Ke,st,Vt){return c(De,oe(De,Ke,st,Vt))}:function(De,Ke,st,Vt){return c(De,Ke,oe(De,Ke,st,Vt))};return te(D,J,Z);function oe(fe,De,Ke,st){return function(Vt,Dt){Vt&&(Vt.code==="EMFILE"||Vt.code==="ENFILE")?P0([te,[fe,De,Ke],Vt,st||Date.now(),Date.now()]):(Dt&&Dt.sort&&Dt.sort(),typeof Ke=="function"&&Ke.call(this,Vt,Dt))}}}if(process.version.substr(0,4)==="v0.8"){var d=oNt(t);E=d.ReadStream,B=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=I);var f=t.WriteStream;f&&(B.prototype=Object.create(f.prototype),B.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(D){B=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var C=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(D){C=D},enumerable:!0,configurable:!0});function E(D,J){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function I(){var D=this;P(D.path,D.flags,D.mode,function(J,Z){J?(D.autoClose&&D.destroy(),D.emit("error",J)):(D.fd=Z,D.emit("open",Z),D.read())})}function B(D,J){return this instanceof B?(f.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(J,Z){J?(D.destroy(),D.emit("error",J)):(D.fd=Z,D.emit("open",Z))})}function M(D,J){return new t.ReadStream(D,J)}function q(D,J){return new t.WriteStream(D,J)}var v=t.open;t.open=P;function P(D,J,Z,te){return typeof Z=="function"&&(te=Z,Z=null),oe(D,J,Z,te);function oe(fe,De,Ke,st,Vt){return v(fe,De,Ke,function(Dt,dn){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?P0([oe,[fe,De,Ke,st],Dt,Vt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function P0(t){jf("ENQUEUE",t[0].name,t[1]),Dr[Kn].push(t),G7()}var Z2;function O1e(){for(var t=Date.now(),e=0;e<Dr[Kn].length;++e)Dr[Kn][e].length>2&&(Dr[Kn][e][3]=t,Dr[Kn][e][4]=t);G7()}function G7(){if(clearTimeout(Z2),Z2=void 0,Dr[Kn].length!==0){var t=Dr[Kn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jf("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jf("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(jf("RETRY",e.name,r),e.apply(null,r.concat([s]))):Dr[Kn].push(t)}Z2===void 0&&(Z2=setTimeout(G7,0))}}});var ek=m((Xmr,G1e)=>{"use strict";var gc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";gc.writable=t=>gc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";gc.readable=t=>gc(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};ITe.exports={AggregateError:wW,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 SW=m((aEr,yTe)=>{"use strict";yTe.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 Is=m((AEr,QTe)=>{"use strict";var{format:RDt,inspect:Ck}=SW(),{AggregateError:DDt}=Nr(),kDt=globalThis.AggregateError||DDt,vDt=Symbol("kIsNodeError"),_Dt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],FDt=/^([A-Z][a-z0-9]*)+$/,MDt="__node_internal_",Ik={};function Zf(t,e){if(!t)throw new Ik.ERR_INTERNAL_ASSERTION(e)}function BTe(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 LDt(t,e,r){if(typeof e=="function")return Zf(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 Zf(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:RDt(e,...r)}function Zn(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(LDt(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[vDt]=!0,Ik[t]=n}function bTe(t){let e=MDt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function UDt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new kDt([e,t],e.message);return r.code=e.code,r}return t||e}var NW=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Ik.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Zn("ERR_ASSERTION","%s",Error);Zn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Zf(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 A of e)Zf(typeof A=="string","All expected entries have to be of type string"),_Dt.includes(A)?s.push(A.toLowerCase()):FDt.test(A)?i.push(A):(Zf(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,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+=ij(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=ij(" "+s+"="+n[s]+`
`);return Rt.from(r)};SE.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Rt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Rt.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};SE.encode=function(e){let r=Rt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Rt.byteLength(n)!==n.length)return null;for(;Rt.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 Rt.byteLength(n)>100||Rt.byteLength(s)>155||e.linkname&&Rt.byteLength(e.linkname)>100?null:(Rt.write(r,n),Rt.write(r,vd(e.mode&j8t,6),100),Rt.write(r,vd(e.uid,6),108),Rt.write(r,vd(e.gid,6),116),r4t(e.size,r,124),Rt.write(r,vd(e.mtime.getTime()/1e3|0,11),136),r[156]=zv+e4t(e.type),e.linkname&&Rt.write(r,e.linkname,157),Rt.copy(W_e,r,QQ),Rt.copy(W8t,r,oj),e.uname&&Rt.write(r,e.uname,265),e.gname&&Rt.write(r,e.gname,297),Rt.write(r,vd(e.devmajor||0,6),329),Rt.write(r,vd(e.devminor||0,6),337),s&&Rt.write(r,s,345),Rt.write(r,vd(z_e(r),6),148),r)};SE.decode=function(e,r,n){let s=e[156]===0?0:e[156]-zv,i=wE(e,0,100,r),o=kd(e,100,8),a=kd(e,108,8),A=kd(e,116,8),c=kd(e,124,12),u=kd(e,136,12),l=$8t(s),d=e[157]===0?null:wE(e,157,100,r),h=wE(e,265,32),f=wE(e,297,32),p=kd(e,329,8),C=kd(e,337,8),E=z_e(e);if(E===256)return null;if(E!==kd(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(K8t(e))e[345]&&(i=wE(e,345,155,r)+"/"+i);else if(!X8t(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:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:C,pax:null}};function K8t(t){return Rt.equals(W_e,t.subarray(QQ,QQ+6))}function X8t(t){return Rt.equals(J8t,t.subarray(QQ,QQ+6))&&Rt.equals(z8t,t.subarray(oj,oj+2))}function Z8t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function $8t(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 e4t(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 J_e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function z_e(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 vd(t,e){return t=t.toString(8),t.length>e?V8t.slice(0,e)+" ":Y8t.slice(0,e-t.length)+t+" "}function t4t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function r4t(t,e,r){t.toString(8).length>11?t4t(t,e,r):Rt.write(e,vd(t,11),r)}function n4t(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 kd(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return n4t(t);{for(;e<t.length&&t[e]===32;)e++;let n=Z8t(J_e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Rt.toString(t.subarray(e,n)),8)}}function wE(t,e,r,n){return Rt.toString(t.subarray(e,J_e(t,0,e,e+r)),n)}function ij(t){let e=Rt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $_e=m((_Ir,Z_e)=>{var{Writable:s4t,Readable:i4t,getStreamError:j_e}=sj(),o4t=qz(),K_e=IE(),NE=aj(),a4t=K_e.alloc(0),cj=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new o4t,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 a4t;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 K_e.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)}},uj=class extends i4t{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(j_e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=X_e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},lj=class extends s4t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function WL(t){process.exitCode=YL.Failure,$C(t)}function Ce(t){Dg("debug",{},t)}function $C(t,e={}){Dg("error",ew(e),t instanceof Error?t.toString():t)}function Mt(t,e={}){Dg("warning",ew(e),t instanceof Error?t.toString():t)}function Yse(t,e={}){Dg("notice",ew(e),t instanceof Error?t.toString():t)}function de(t){process.stdout.write(t+qse.EOL)}function Tp(t){return process.env[`STATE_${t}`]||""}import{readFileSync as hVe,existsSync as fVe}from"fs";import{EOL as gVe}from"os";var xp=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(fVe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(hVe(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${gVe}`)}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 KL=he(jse(),1),Kse=he(K1(),1),TVe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Xse(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 Zse(t){return new KL.HttpClient().getAgent(t)}function xVe(t){return new KL.HttpClient().getAgentDispatcher(t)}function $se(t){let e=xVe(t);return(n,s)=>TVe(this,void 0,void 0,function*(){return(0,Kse.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function eie(){return process.env.GITHUB_API_URL||"https://api.github.com"}function sS(){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 iS(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)=>iS.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 tie(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(A=>(a=A,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 rie(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 nie=Function.bind,sie=nie.bind(nie);function iie(t,e,r){let n=sie(rie,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]=sie(tie,null).apply(null,i)})}function DVe(){let t=Symbol("Singular"),e={registry:{}},r=iS.bind(null,e,t);return iie(r,e,t),r}function kVe(){let t={registry:{}},e=iS.bind(null,t);return iie(e,t),e}var oie={Singular:DVe,Collection:kVe};var hU=he(cU(),1);var kie=he(cU(),1);var w7e="0.0.0-development";function S7e(t){return`Request failed due to following response errors:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Ew).map(H=>H.replace(Cw,"").trim())}function pC(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?ee:H);else if(j)w[F]=H;else{if(Y=gC(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(ee)}function ee(Se,yt){var _t=Y.map(wt=>Se[wt]);_t.push(yt),I(H)(..._t)}}),hC(w,B)}class mC{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):EC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):EC(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 EC(Q,B){Q.length=1,Q.head=Q.tail=B}function jg(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 ee(Ue,be){let Pe=(...St)=>{Se(Ue,Pe),be(...St)};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 _t=!1;function wt(Ue,be,Pe,St){if(St!=null&&typeof St!="function")throw new Error("task callback must be a function");Ft.started=!0;var Ir,wn;function lo(ch,...wC){if(ch)return Pe?wn(ch):Ir();if(wC.length<=1)return Ir(wC[0]);Ir(wC)}var $g=Ft._createTaskItem(Ue,Pe?lo:St||lo);if(be?Ft._tasks.unshift($g):Ft._tasks.push($g),_t||(_t=!0,c(()=>{_t=!1,Ft.process()})),Pe||!St)return new Promise((ch,wC)=>{Ir=ch,wn=wC})}function uo(Ue){return function(be,...Pe){H-=1;for(var St=0,Ir=Ue.length;St<Ir;St++){var wn=Ue[St],lo=Y.indexOf(wn);lo===0?Y.shift():lo>0&&Y.splice(lo,1),wn.callback(be,...Pe),be!=null&&yt("error",be,wn.data)}H<=Ft.concurrency-Ft.buffer&&yt("unsaturated"),Ft.idle()&&yt("drain"),Ft.process()}}function Zg(Ue){return Ue.length===0&&Ft.idle()?(c(()=>yt("drain")),!0):!1}let Ah=Ue=>be=>{if(!be)return new Promise((Pe,St)=>{ee(Ue,(Ir,wn)=>{if(Ir)return St(Ir);Pe(wn)})});Se(Ue),j(Ue,be)};var QC=!1,Ft={_tasks:new mC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Ft._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!1,!1,be)):wt(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!1,!0,be)):wt(Ue,!1,!0,be)},kill(){Se(),Ft._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!0,!1,be)):wt(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Zg(Ue)?void 0:Ue.map(Pe=>wt(Pe,!0,!0,be)):wt(Ue,!0,!0,be)},remove(Ue){Ft._tasks.remove(Ue)},process(){if(!QC){for(QC=!0;!Ft.paused&&H<Ft.concurrency&&Ft._tasks.length;){var Ue=[],be=[],Pe=Ft._tasks.length;Ft.payload&&(Pe=Math.min(Pe,Ft.payload));for(var St=0;St<Pe;St++){var Ir=Ft._tasks.shift();Ue.push(Ir),Y.push(Ir),be.push(Ir.data)}H+=1,Ft._tasks.length===0&&yt("empty"),H===Ft.concurrency&&yt("saturated");var wn=re(uo(Ue));F(be,wn)}QC=!1}},length(){return Ft._tasks.length},running(){return H},workersList(){return Y},idle(){return Ft._tasks.length+H===0},pause(){Ft.paused=!0},resume(){Ft.paused!==!1&&(Ft.paused=!1,c(Ft.process))}};return Object.defineProperties(Ft,{saturated:{writable:!1,value:Ah("saturated")},unsaturated:{writable:!1,value:Ah("unsaturated")},empty:{writable:!1,value:Ah("empty")},drain:{writable:!1,value:Ah("drain")},error:{writable:!1,value:Ah("error")}}),Ft}function CC(Q,B){return jg(Q,1,B)}function Kg(Q,B,w){return jg(Q,B,w)}function co(Q,B,w,F){F=q(F);var H=I(w);return zs(Q,(Y,J,j)=>{H(B,Y,(ee,Se)=>{B=Se,j(ee)})},Y=>F(Y,B))}var fa=E(co,4);function Xg(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=Gc(),fa(B,w,(Y,J,j)=>{J.apply(F,Y.concat((ee,...Se)=>{j(ee,Se)}))},(Y,J)=>H(Y,...J)),H[Hc]}}function Iw(...Q){return Xg(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(Y,J)=>{H(Y,(j,...ee)=>j?J(j):J(j,ee))},(Y,J)=>{for(var j=[],ee=0;ee<J.length;ee++)J[ee]&&(j=j.concat(...J[ee]));return F(Y,j)})}var G=E(N,4);function K(Q,B,w){return G(Q,1/0,B,w)}var X=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[Xn]||(rTe=global[Xn]||[],sTe(kr,rTe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||nTe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,ov,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),nTe()}return Object.defineProperty(e,ov,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Eg(kr[Xn]),b("assert").equal(kr[Xn].length,0)}));var rTe;global[Xn]||sTe(global,kr[Xn]);SJ.exports=QJ(Oxt(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(SJ.exports=QJ(kr),kr.__patched=!0);function QJ(t){Uxt(t),t.gracefulify=QJ,t.createReadStream=M,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(D,z,$){return typeof z=="function"&&($=z,z=null),re(D,z,$);function re(Ae,ge,De,Ke){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?gE([re,[Ae,ge,De],it,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,$,re){return typeof $=="function"&&(re=$,$=null),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return n(ge,De,Ke,function(kt){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,$,re){return typeof $=="function"&&(re=$,$=null),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return i(ge,De,Ke,function(kt){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,$,re){return typeof $=="function"&&(re=$,$=0),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return a(ge,De,Ke,function(kt){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,$){typeof z=="function"&&($=z,z=null);var re=u.test(process.version)?function(De,Ke,it,Wt){return c(De,Ae(De,Ke,it,Wt))}:function(De,Ke,it,Wt){return c(De,Ke,Ae(De,Ke,it,Wt))};return re(D,z,$);function Ae(ge,De,Ke,it){return function(Wt,kt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?gE([re,[ge,De,Ke],Wt,it||Date.now(),Date.now()]):(kt&&kt.sort&&kt.sort(),typeof Ke=="function"&&Ke.call(this,Wt,kt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Pxt(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;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 E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,$){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=$,D.emit("open",$),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,$){z?(D.destroy(),D.emit("error",z)):(D.fd=$,D.emit("open",$))})}function M(D,z){return new t.ReadStream(D,z)}function q(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,$,re){return typeof $=="function"&&(re=$,$=null),Ae(D,z,$,re);function Ae(ge,De,Ke,it,Wt){return v(ge,De,Ke,function(kt,dn){kt&&(kt.code==="EMFILE"||kt.code==="ENFILE")?gE([Ae,[ge,De,Ke,it],kt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function gE(t){Eg("ENQUEUE",t[0].name,t[1]),kr[Xn].push(t),wJ()}var iv;function nTe(){for(var t=Date.now(),e=0;e<kr[Xn].length;++e)kr[Xn][e].length>2&&(kr[Xn][e][3]=t,kr[Xn][e][4]=t);wJ()}function wJ(){if(clearTimeout(iv),iv=void 0,kr[Xn].length!==0){var t=kr[Xn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Eg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Eg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Eg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[Xn].push(t)}iv===void 0&&(iv=setTimeout(wJ,0))}}});var av=m(($Er,iTe)=>{"use strict";var Nc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Nc.writable=t=>Nc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Nc.readable=t=>Nc(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};LRe.exports={AggregateError:Az,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 cz=m((cIr,URe)=>{"use strict";URe.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 ys=m((uIr,HRe)=>{"use strict";var{format:cvt,inspect:Sv}=cz(),{AggregateError:uvt}=Tr(),lvt=globalThis.AggregateError||uvt,dvt=Symbol("kIsNodeError"),hvt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],fvt=/^([A-Z][a-z0-9]*)+$/,gvt="__node_internal_",Nv={};function yg(t,e){if(!t)throw new Nv.ERR_INTERNAL_ASSERTION(e)}function PRe(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 pvt(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:cvt(e,...r)}function $n(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(pvt(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[dvt]=!0,Nv[t]=n}function ORe(t){let e=gvt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function mvt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new lvt([e,t],e.message);return r.code=e.code,r}return t||e}var uz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Nv.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};$n("ERR_ASSERTION","%s",Error);$n("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 A of e)yg(typeof A=="string","All expected entries have to be of type string"),hvt.includes(A)?s.push(A.toLowerCase()):fvt.test(A)?i.push(A):(yg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,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+=GK(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=GK(" "+s+"="+n[s]+`
`);return Dt.from(r)};rC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Dt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Dt.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};rC.encode=function(e){let r=Dt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Dt.byteLength(n)!==n.length)return null;for(;Dt.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 Dt.byteLength(n)>100||Dt.byteLength(s)>155||e.linkname&&Dt.byteLength(e.linkname)>100?null:(Dt.write(r,n),Dt.write(r,eh(e.mode&T5t,6),100),Dt.write(r,eh(e.uid,6),108),Dt.write(r,eh(e.gid,6),116),F5t(e.size,r,124),Dt.write(r,eh(e.mtime.getTime()/1e3|0,11),136),r[156]=tF+v5t(e.type),e.linkname&&Dt.write(r,e.linkname,157),Dt.copy(cLe,r,uw),Dt.copy(w5t,r,qK),e.uname&&Dt.write(r,e.uname,265),e.gname&&Dt.write(r,e.gname,297),Dt.write(r,eh(e.devmajor||0,6),329),Dt.write(r,eh(e.devminor||0,6),337),s&&Dt.write(r,s,345),Dt.write(r,eh(lLe(r),6),148),r)};rC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-tF,i=tC(e,0,100,r),o=$d(e,100,8),a=$d(e,108,8),A=$d(e,116,8),c=$d(e,124,12),u=$d(e,136,12),l=k5t(s),d=e[157]===0?null:tC(e,157,100,r),h=tC(e,265,32),f=tC(e,297,32),p=$d(e,329,8),I=$d(e,337,8),E=lLe(e);if(E===256)return null;if(E!==$d(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(x5t(e))e[345]&&(i=tC(e,345,155,r)+"/"+i);else if(!R5t(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:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function x5t(t){return Dt.equals(cLe,t.subarray(uw,uw+6))}function R5t(t){return Dt.equals(S5t,t.subarray(uw,uw+6))&&Dt.equals(N5t,t.subarray(qK,qK+2))}function D5t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function k5t(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 v5t(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 uLe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function lLe(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?Q5t.slice(0,e)+" ":b5t.slice(0,e-t.length)+t+" "}function _5t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function F5t(t,e,r){t.toString(8).length>11?_5t(t,e,r):Dt.write(e,eh(t,11),r)}function M5t(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 $d(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return M5t(t);{for(;e<t.length&&t[e]===32;)e++;let n=D5t(uLe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Dt.toString(t.subarray(e,n)),8)}}function tC(t,e,r,n){return Dt.toString(t.subarray(e,uLe(t,0,e,e+r)),n)}function GK(t){let e=Dt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var pLe=m((MBr,gLe)=>{var{Writable:L5t,Readable:U5t,getStreamError:dLe}=HK(),P5t=SK(),hLe=KE(),nC=YK(),O5t=hLe.alloc(0),WK=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new P5t,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 O5t;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 hLe.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)}},JK=class extends U5t{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(dLe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=fLe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},zK=class extends L5t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function sP(t){process.exitCode=rP.Failure,ou(t)}function Rl(){return process.env.RUNNER_DEBUG==="1"}function W(t){uh("debug",{},t)}function ou(t,e={}){uh("error",Ow(e),t instanceof Error?t.toString():t)}function et(t,e={}){uh("warning",Ow(e),t instanceof Error?t.toString():t)}function Loe(t,e={}){uh("notice",Ow(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+Moe.EOL)}function TI(t,e){if(process.env.GITHUB_STATE||"")return jX("STATE",KX(t,e));uh("save-state",{name:t},Al(e))}function EA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as xWe,existsSync as RWe}from"fs";import{EOL as DWe}from"os";var Kp=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(RWe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(xWe(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${DWe}`)}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 AP=fe(Goe(),1),qoe=fe(US(),1),YWe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Yoe(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 Voe(t){return new AP.HttpClient().getAgent(t)}function VWe(t){return new AP.HttpClient().getAgentDispatcher(t)}function Woe(t){let e=VWe(t);return(n,s)=>YWe(this,void 0,void 0,function*(){return(0,qoe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Joe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ZS(){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 $S(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)=>$S.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 zoe(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(A=>(a=A,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 joe(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 Koe=Function.bind,Xoe=Koe.bind(Koe);function Zoe(t,e,r){let n=Xoe(joe,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]=Xoe(zoe,null).apply(null,i)})}function JWe(){let t=Symbol("Singular"),e={registry:{}},r=$S.bind(null,e,t);return Zoe(r,e,t),r}function zWe(){let t={registry:{}},e=$S.bind(null,t);return Zoe(e,t),e}var $oe={Singular:JWe,Collection:zWe};var wP=fe(yP(),1);var wae=fe(yP(),1);var HJe="0.0.0-development";function GJe(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var N7e=class extends Error{constructor(t,e,r){super(S7e(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},T7e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],x7e=["query","method","url"],Die=/\/api\/v3\/?$/;function R7e(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(x7e.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)=>T7e.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 Die.test(i)&&(s.url=i.replace(Die,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new N7e(s,a,o.data)}return o.data.data})}function uU(t,e){let r=t.defaults(e);return Object.assign((s,i)=>R7e(r,s,i),{defaults:uU.bind(null,r),endpoint:r.endpoint})}var v9t=uU(kie.request,{headers:{"user-agent":`octokit-graphql.js/${w7e} ${sS()}`},method:"POST",url:"/graphql"});function vie(t){return uU(t,{method:"POST",url:"/graphql"})}var lU="(?:[a-zA-Z0-9_-]+)",_ie="\\.",Fie=new RegExp(`^${lU}${_ie}${lU}${_ie}${lU}$`),D7e=Fie.test.bind(Fie);async function k7e(t){let e=D7e(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 v7e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function _7e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=v7e(t),e(s)}var Mie=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(k7e.bind(null,e),{hook:_7e.bind(null,e)})};var dU="7.0.6";var Lie=()=>{},F7e=console.warn.bind(console),M7e=console.error.bind(console);function L7e(t={}){return typeof t.debug!="function"&&(t.debug=Lie),typeof t.info!="function"&&(t.info=Lie),typeof t.warn!="function"&&(t.warn=F7e),typeof t.error!="function"&&(t.error=M7e),t}var Uie=`octokit-core.js/${dU} ${sS()}`,AS=class{static VERSION=dU;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 oie.Collection,n={baseUrl:hU.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} ${Uie}`:Uie,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=hU.request.defaults(n),this.graphql=vie(this.request).defaults(n),this.log=L7e(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=Mie(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 fU="17.0.0";var U7e={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 qJe=class extends Error{constructor(t,e,r){super(GJe(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},YJe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],VJe=["query","method","url"],Qae=/\/api\/v3\/?$/;function WJe(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(VJe.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)=>YJe.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 Qae.test(i)&&(s.url=i.replace(Qae,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new qJe(s,a,o.data)}return o.data.data})}function BP(t,e){let r=t.defaults(e);return Object.assign((s,i)=>WJe(r,s,i),{defaults:BP.bind(null,r),endpoint:r.endpoint})}var AYt=BP(wae.request,{headers:{"user-agent":`octokit-graphql.js/${HJe} ${ZS()}`},method:"POST",url:"/graphql"});function Sae(t){return BP(t,{method:"POST",url:"/graphql"})}var bP="(?:[a-zA-Z0-9_-]+)",Nae="\\.",Tae=new RegExp(`^${bP}${Nae}${bP}${Nae}${bP}$`),JJe=Tae.test.bind(Tae);async function zJe(t){let e=JJe(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 jJe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function KJe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=jJe(t),e(s)}var xae=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(zJe.bind(null,e),{hook:KJe.bind(null,e)})};var QP="7.0.6";var Rae=()=>{},XJe=console.warn.bind(console),ZJe=console.error.bind(console);function $Je(t={}){return typeof t.debug!="function"&&(t.debug=Rae),typeof t.info!="function"&&(t.info=Rae),typeof t.warn!="function"&&(t.warn=XJe),typeof t.error!="function"&&(t.error=ZJe),t}var Dae=`octokit-core.js/${QP} ${ZS()}`,rN=class{static VERSION=QP;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 $oe.Collection,n={baseUrl:wP.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} ${Dae}`:Dae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=wP.request.defaults(n),this.graphql=Sae(this.request).defaults(n),this.log=$Je(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=xae(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 SP="17.0.0";var eze={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 s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new aI(i));return n.searchPaths.push(...BU(n.patterns)),n})}static stat(e,r,n){return NU(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Fp.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ce(`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 Fp.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Fp.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Ce(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var SWe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function TU(t,e){return SWe(this,void 0,void 0,function*(){return yield fS.create(t,e)})}var Sje=he(uAe(),1);var zU;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(zU||(zU={}));var TS;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(TS||(TS={}));var jU;(function(t){t.GNU="gnu",t.BSD="bsd"})(jU||(jU={}));var Bje=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,bje=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`;var mqt=10*Math.pow(1024,3);var cA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Nje}from"node:os";import Tje from"node:util";import xje from"node:process";function lAe(t,...e){xje.stderr.write(`${Tje.format(t,...e)}${Nje}`)}var dAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,fAe,KU=[],XU=[],RS=[];dAe&&ZU(dAe);var gAe=Object.assign(t=>pAe(t),{enable:ZU,enabled:$U,disable:Rje,log:lAe});function ZU(t){fAe=t,KU=[],XU=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?XU.push(r.substring(1)):KU.push(r);for(let r of RS)r.enabled=$U(r.namespace)}function $U(t){if(t.endsWith("*"))return!0;for(let e of XU)if(hAe(t,e))return!1;for(let e of KU)if(hAe(t,e))return!0;return!1}function hAe(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,A=-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;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function Rje(){let t=fAe||"";return ZU(""),t}function pAe(t){let e=Object.assign(r,{enabled:$U(t),destroy:Dje,log:gAe.log,namespace:t,extend:kje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return RS.push(e),e}function Dje(){let t=RS.indexOf(this);return t>=0?(RS.splice(t,1),!0):!1}function kje(t){let e=pAe(`${this.namespace}:${t}`);return e.log=this.log,e}var Lp=gAe;var eP=["verbose","info","warning","error"],mAe={verbose:400,info:300,warning:200,error:100};function EAe(t,e){e.log=(...r)=>{t.log(...r)}}function CAe(t){return eP.includes(t)}function vje(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Lp(t.namespace);s.log=(...u)=>{Lp.log(...u)};function i(u){if(u&&!CAe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${eP.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Lp.enable(l.join(","))}r&&(CAe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${eP.join(", ")}.`));function o(u){return!!(n&&mAe[u.level]<=mAe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(EAe(u,d),o(d)){let h=Lp.disable();Lp.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return EAe(s,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:s}}var IAe=vje({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),_je=IAe.logger;function pI(t){return IAe.createClientLogger(t)}function DS(t){return t.toLowerCase()}function*Fje(t){for(let e of t.values())yield[e.name,e.value]}var tP=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(DS(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(DS(e))?.value}has(e){return this._headersMap.has(DS(e))}delete(e){this._headersMap.delete(DS(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,s]of t Line truncated
${Pje.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function _S(t){return t instanceof Rs?!0:Qh(t)&&t.name==="RestError"}function $s(t,e){return Buffer.from(t,e)}import iP from"node:http";import oP from"node:https";import bAe from"node:zlib";import{Transform as Oje}from"node:stream";var Io=pI("ts-http-runtime");var Hje={};function mI(t){return t&&typeof t.pipe=="function"}function QAe(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 wAe(t){return t&&typeof t.byteLength=="number"}var FS=class extends Oje{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}},aP=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new cA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new ba;Io.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=Vje(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new FS(f);p.on("error",C=>{Io.error("Error in upload progress",C)}),mI(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Gje(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?qje(c,u):c;let h=e.onDownloadProgress;if(h){let f=new FS(h);f.on("error",p=>{Io.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 Yje(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();mI(a)&&(c=QAe(a));let u=Promise.resolve();mI(A)&&(u=QAe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Io.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((A,c)=>{let u=i?iP.request(a,A):oP.request(a,A);u.once("error",l=>{c(new Rs(l.message,{code:l.code??Rs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new cA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&mI(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):wAe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Io.error("Unrecognized body type",n),c(new Rs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?iP.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new iP.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return oP.globalAgent;let s=e.tlsSettings??Hje,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Io.info("No cached TLS Agent exist, creating a new Agent"),i=new oP.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Gje(t){let e=ki();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 qje(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=bAe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=bAe.createInflate();return t.pipe(n),n}return t}function Yje(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 Rs(`Error reading response as text: ${s.message}`,{code:Rs.PARSE_ERROR}))})})}function Vje(t){return t?Buffer.isBuffer(t)?t.length:mI(t)?null:wAe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function SAe(){return new aP}function MS(){return SAe()}var AP="logPolicy";function LS(t={}){let e=t.logger??Io.info,r=new ba({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:AP,async sendRequest(n,s){if(!e. Line truncated
`;return e}function hXe(t){return t instanceof Uint8Array?t.byteLength:iN(t)?t.size===-1?void 0:t.size:void 0}function fXe(t){let e=0;for(let r of t){let n=hXe(r);if(n===void 0)return;e+=n}return e}async function gXe(t,e,r){let n=[$s(`--${r}`,"utf-8"),...e.flatMap(i=>[$s(`\r
`,"utf-8"),$s(dXe(i.headers),"utf-8"),$s(`\r
`,"utf-8"),i.body,$s(`\r
--${r}`,"utf-8")]),$s(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new MI(i));return n.searchPaths.push(..._P(n.patterns)),n})}static stat(e,r,n){return PP(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield rm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){W(`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 rm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield rm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){W(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as OP from"crypto";import*as uN from"fs";import*as fAe from"stream";import*as gAe from"util";import*as pAe from"path";var Gze=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},qze=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,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function mAe(t,e){return Gze(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?se:W,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=OP.createHash("sha256"),f=0;try{for(var p=!0,I=qze(r.globGenerator()),E;E=yield I.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${pAe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(uN.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=OP.createHash("sha256");yield gAe.promisify(fAe.pipeline)(uN.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 EAe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function UI(t,e){return EAe(this,void 0,void 0,function*(){return yield AN.create(t,e)})}function CAe(t){return EAe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield UI(e,{followSymbolicLinks:i});return mAe(o,r,s)})}var uue=fe(Aue(),1);import*as wN from"crypto";import*as im from"fs";import*as Yh from"path";import*as lue from"util";var WI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(WI||(WI={}));var Ds;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ds||(Ds={}));var _i;(function(t){t.GNU="gnu",t.BSD="bsd"})(_i||(_i={}));var bN=2,QN=5e3,aO=5e3,AO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,JI="cache.tar",cO="manifest.txt",VVt=10*Math.pow(1024,3);var sm=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},PXe=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,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},OXe="1.0";function zI(){return sm(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=Yh.join(n,"actions","temp")}let r=Yh.join(e,wN.randomUUID());return yield GS(r),r})}function IA(t){return im.statSync(t).size}function uO(t){return sm(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(),A=yield UI(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=PXe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=Yh.relative(a,s).replace(new RegExp(`\\${Yh.sep}`,"g"),"/");W(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function jI(t){return sm(this,void 0,void 0,function*(){return lue.promisify(im.unlink)(t)})}function due(t){return sm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),W(`Checking ${e} ${r.join(" ")}`);try{yield VS(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){W(s.message)}return n=n.trim(),W(n),n})}function KI(){return sm(this,void 0,void 0,function*(){let t=yield due("zstd",["--quiet"]),e=uue.clean(t);return W(`zstd version: ${e}`),t===""?Ds.Gzip:Ds.ZstdWithoutLong})}function Fl(t){return t===Ds.Gzip?WI.Gzip:WI.Zstd}function hue(){return sm(this,void 0,void 0,function*(){return im.existsSync(AO)?AO:(yield due("tar")).toLowerCase().includes("gnu tar")?iu("tar"):""})}function lO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function om(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(OXe),wN.createHash("sha256").update(n.join("|")).digest("hex")}function fue(){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 _m from"fs";import{URL as hit}from"url";var yA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as HXe}from"node:os";import GXe from"node:util";import qXe from"node:process";function gue(t,...e){qXe.stderr.write(`${GXe.format(t,...e)}${HXe}`)}var pue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Eue,dO=[],hO=[],NN=[];pue&&fO(pue);var Cue=Object.assign(t=>Iue(t),{enable:fO,enabled:gO,disable:YXe,log:gue});function fO(t){Eue=t,dO=[],hO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?hO.push(r.substring(1)):dO.push(r);for(let r of NN)r.enabled=gO(r.namespace)}function gO(t){if(t.endsWith("*"))return!0;for(let e of hO)if(mue(t,e))return!1;for(let e of dO)if(mue(t,e))return!0;return!1}function mue(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,A=-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;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function YXe(){let t=Eue||"";return fO(""),t}function Iue(t){let e=Object.assign(r,{enabled:gO(t),destroy:VXe,log:Cue.log,namespace:t,extend:WXe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return NN.push(e),e}function VXe(){let t=NN.indexOf(this);return t>=0?(NN.splice(t,1),!0):!1}function WXe(t){let e=Iue(`${this.namespace}:${t}`);return e.log=this.log,e}var am=Cue;var pO=["verbose","info","warning","error"],yue={verbose:400,info:300,warning:200,error:100};function Bue(t,e){e.log=(...r)=>{t.log(...r)}}function bue(t){return pO.includes(t)}function JXe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=am(t.namespace);s.log=(...u)=>{am.log(...u)};function i(u){if(u&&!bue(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${pO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);am.enable(l.join(","))}r&&(bue(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${pO.join(", ")}.`));function o(u){return!!(n&&yue[u.level]<=yue[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Bue(u,d),o(d)){let h=am.disable();am.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return Bue(s,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:s}}var Que=JXe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),zXe=Que.logger;function XI(t){return Que.createClientLogger(t)}function TN(t){return t.toLowerCase()}function*jXe(t){for(let e of t.values())yield[e.name,e.value]}var mO=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(TN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(TN(e))?.value}has(e){return this._headersMap.has(TN(e))}delete(e){this._headersMap.delete(TN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${$Xe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function DN(t){return t instanceof ks?!0:Wh(t)&&t.name==="RestError"}function ti(t,e){return Buffer.from(t,e)}import yO from"node:http";import BO from"node:https";import Nue from"node:zlib";import{Transform as eZe}from"node:stream";var Qo=XI("ts-http-runtime");var tZe={};function ZI(t){return t&&typeof t.pipe=="function"}function Tue(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 xue(t){return t&&typeof t.byteLength=="number"}var kN=class extends eZe{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}},bO=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new yA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Ta;Qo.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=iZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new kN(f);p.on("error",I=>{Qo.error("Error in upload progress",I)}),ZI(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=rZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?nZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new kN(h);f.on("error",p=>{Qo.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 sZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();ZI(a)&&(c=Tue(a));let u=Promise.resolve();ZI(A)&&(u=Tue(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Qo.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((A,c)=>{let u=i?yO.request(a,A):BO.request(a,A);u.once("error",l=>{c(new ks(l.message,{code:l.code??ks.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new yA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&ZI(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):xue(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Qo.error("Unrecognized body type",n),c(new ks("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?yO.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new yO.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return BO.globalAgent;let s=e.tlsSettings??tZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Qo.info("No cached TLS Agent exist, creating a new Agent"),i=new BO.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function rZe(t){let e=Fi();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 nZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Nue.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Nue.createInflate();return t.pipe(n),n}return t}function sZe(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 ks(`Error reading response as text: ${s.message}`,{code:ks.PARSE_ERROR}))})})}function iZe(t){return t?Buffer.isBuffer(t)?t.length:ZI(t)?null:xue(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Rue(){return new bO}function vN(){return Rue()}var QO="logPolicy";function _N(t={}){let e=t.logger??Qo.info,r=new Ta({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:QO,async sendRequest(n,s){if(!e. Line truncated
`;return e}function N$e(t){return t instanceof Uint8Array?t.byteLength:rT(t)?t.size===-1?void 0:t.size:void 0}function T$e(t){let e=0;for(let r of t){let n=N$e(r);if(n===void 0)return;e+=n}return e}async function x$e(t,e,r){let n=[ti(`--${r}`,"utf-8"),...e.flatMap(i=>[ti(`\r
`,"utf-8"),ti(S$e(i.headers),"utf-8"),ti(`\r
`,"utf-8"),i.body,ti(`\r
--${r}`,"utf-8")]),ti(`--\r
\r
`,"utf-8")],s=fXe(n);s&&t.headers.set("Content-Length",s),t.body=await Bce(n)}var II="multipartPolicy",pXe=70,mXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function EXe(t){if(t.length>pXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!mXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function oN(){return{name:II,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?EXe(r):r=lXe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await gXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function aN(){return vS()}import{EOL as IXe}from"node:os";import yXe from"node:util";import*as bce from"node:process";function Qce(t,...e){bce.stderr.write(`${yXe.format(t,...e)}${IXe}`)}var wce=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Sce,SP=[],NP=[],AN=[];wce&&TP(wce);var Nce=Object.assign(t=>Tce(t),{enable:TP,enabled:xP,disable:BXe,log:Qce});function TP(t){Sce=t,SP=[],NP=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?NP.push(new RegExp(`^${n.substr(1)}$`)):SP.push(new RegExp(`^${n}$`));for(let n of AN)n.enabled=xP(n.namespace)}function xP(t){if(t.endsWith("*"))return!0;for(let e of NP)if(e.test(t))return!1;for(let e of SP)if(e.test(t))return!0;return!1}function BXe(){let t=Sce||"";return TP(""),t}function Tce(t){let e=Object.assign(r,{enabled:xP(t),destroy:bXe,log:Nce.log,namespace:t,extend:QXe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return AN.push(e),e}function bXe(){let t=AN.indexOf(this);return t>=0?(AN.splice(t,1),!0):!1}function QXe(t){let e=Tce(`${this.namespace}:${t}`);return e.log=this.log,e}var Yp=Nce;var Rce=new Set,cN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,RP,DP=Yp("azure");DP.log=(...t)=>{Yp.log(...t)};var kP=["verbose","info","warning","error"];cN&&(vce(cN)?wXe(cN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${cN}'; logging is not enabled. Acceptable values: ${kP.join(", ")}.`));function wXe(t){if(t&&!vce(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${kP.join(",")}`);RP=t;let e=[];for(let r of Rce)kce(r)&&e.push(r.namespace);Yp.enable(e.join(","))}var xce={verbose:400,info:300,warning:200,error:100};function Qo(t){let e=DP.extend(t);return Dce(DP,e),{error:uN(e,"error"),warning:uN(e,"warning"),info:uN(e,"info"),verbose:uN(e,"verbose")}}function Dce(t,e){e.log=(...r)=>{t.log(...r)}}function uN(t,e){let r=Object.assign(t.extend(e),{level:e});if(Dce(t,r),kce(r)){let n=Yp.disable();Yp.enable(n+","+r.namespace)}return Rce.add(r),r}function kce(t){return!!(RP&&xce[t.level]<=xce[RP])}function vce(t){return kP.includes(t)}var lA=Qo("core-rest-pipeline");function vP(t={}){return LS({logger:lA.info,...t})}var _P=US;function FP(t={}){return PS(t)}import MP from"node:os";import LP from"node:process";function _ce(){return"User-Agent"}async function Fce(t){if(LP&&LP.versions){let e=`${MP.type()} ${MP.release()}; ${MP.arch()}`,r=LP.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var lN="1.22.2";function kXe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Mce(){return _ce()}async function dN(t){let e=new Map;e.set("core-rest-pipeline",lN),await Fce(e);let r=kXe(e);return t?`${t} ${r}`:r}var Lce=Mce(),Uce="userAgentPolicy";function UP(t={}){let e=dN(t.userAgentPrefix);return{name:Uce,async sendRequest(r,n){return r.headers.has(Lce)||r.headers.set(Lce,await e),n(r)}}}var yI=class extends Error{constructor(e){super(e),this.name="AbortError"}};function PP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new yI(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var LXe="The delay was aborted.";function Vp(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return PP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??LXe})}function ml(t){if(Qh(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Pce(t){return Qh(t)}function Wp(){return bh()}var Pt=Nh;var Oce=S 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--),!a$e(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Kr("InvalidTag",l,Ds(t,i))}let c=r$e(t,i);if(c===!1)return Kr("InvalidAttr","Attributes for '"+A+"' have open quote.",Ds(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=Sue(u,e);if(d===!0)n=!0;else return Kr(d.err.code,d.err.msg,Ds(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Kr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Ds(t,o));if(r.length===0)return Kr("InvalidTag","Closing tag '"+A+"' has not been opened.",Ds(t,o));{let l=r.pop();if(A!==l.tagName){let d=Ds(t,l.tagStartPos);return Kr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Ds(t,o))}r.length==0&&(s=!0)}}else return Kr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Ds(t,i));else{let l=Sue(u,e);if(l!==!0)return Kr(l.err.code,l.err.msg,Ds(t,i-u.length+l.err.line));if(s===!0)return Kr("InvalidXml","Multiple possible root nodes found.",Ds(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=wue(t,i);continue}else if(t[i+1]==="?"){if(i=Que(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=i$e(t,i);if(l==-1)return Kr("InvalidChar","char '&' is not expected.",Ds(t,i));i=l}else if(s===!0&&!bue(t[i]))return Kr("InvalidXml","Extra text at the end",Ds(t,i));t[i]==="<"&&i--}}else{if(bue(t[i]))continue;return Kr("InvalidChar","char '"+t[i]+"' is not expected.",Ds(t,i))}if(n){if(r.length==1)return Kr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ds(t,r[0].tagStartPos));if(r.length>0)return Kr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Kr("InvalidXml","Start tag expected.",1);return!0}function bue(t){return t===" "||t===" "||t===`
`||t==="\r"}function Que(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 Kr("InvalidXml","XML declaration allowed only at the start of the document.",Ds(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function wue(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 e$e='"',t$e="'";function r$e(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===e$e||t[e]===t$e)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 n$e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Sue(t,e){let r=QN(t,n$e),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Kr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",vI(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Kr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",vI(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Kr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",vI(r[s]));let i=r[s][2];if(!o$e(i))return Kr("InvalidAttr","Attribute '"+i+"' is an invalid name.",vI(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Kr("InvalidAttr","Attribute '"+i+"' is repeated.",vI(r[s]))}return!0}function s$e(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 i$e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,s$e(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 Kr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function o$e(t){return Kp(t)}function a$e(t){return Kp(t)}function Ds(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function vI(t){return t.startIndex+t[1].length}var Nue=t=>kI.includes(t)?"__"+t:t,A$e={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:Nue};function c$e(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(kI.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(wN.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Tue(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}:Tue(!0)}var xue=function(t){let e=Object.assign({},A$e,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:n,name:s}of r)n&&c$e(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=Nue),e.processEntities=Tue(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var NN;typeof Symbol!="function"?NN="@@xmlMetadata":NN=Symbol("XML Node Metadata");var ri=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 ri("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new FI(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=kh(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=mO(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,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(),n="",i=a}else if(t[i+1]==="?"){let a=EO(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new ri(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=kh(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=kh(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,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=EO(t,i,this.options.removeNSPrefix);if(!a){let B=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${B}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=mO(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&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,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,C={},E;E=I$e(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(C=C$e(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let I=i;if(this.isCurrentNodeStopNode){let B="";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,B=M.tagContent}let R=new ri(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,B),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,I)}else{if(f){({tagName:A,tagExp:u}=mO(this.options.transformTagName,A,u,this.options));let B=new ri(A);p&&(B[":@"]=p),this.addChild(r,B,this.readonlyMatcher,I),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let B=new ri(A);p&&(B[":@"]=p),this.addChild(r,B,this.readonlyMatcher,I),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let B=new ri(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(B[":@"]=p),this.addChild(r,B,this.readonlyMatcher,I),r=B}n="",i=d}}else n+=t[i];return e.child};function N$e(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 T$e(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}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function bO(t,e){let r="";e.format&&e.indentBy.length>0&&(r=L$e);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Mi(o)):o instanceof Mi&&n.push(o)}let s=new fA;return _ue(t,e,r,s,n)}function _ue(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=BO(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Mue(A);if(c===void 0)continue;let u=U$e(A[":@"],e);n.push(c,u);let l=O$e(n,s);if(c===e.textNodeName){let C=A[c];l||(C=e.tagValueProcessor(c,C),C=BO(C,e)),o&&(i+=r),i+=C,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let C=vue(A[":@"],e,l),E=c==="?xml"?"":r,I=A[c][0][e.textNodeName];I=I.length!==0?" "+I:"",i+=E+`<${c}${I}${C}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=vue(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=Fue(A[c],e):p=_ue(A[c],e,d,n,s),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,n.pop()}return i}function U$e(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]=t[s],n=!0}return n?r:null}function Fue(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=Mue(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=P$e(s[":@"],e),a=Fue(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function P$e(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)}="${s}"`}return r}function Mue(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 vue(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=BO(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function O$e(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 BO(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 QO(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 H$e={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 si(t){if(this.options=Object.assign({},H$e,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 Mi(r)):r instanceof Mi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=QO(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Y$e),this.processTextOrObjNode=G$e,this.options.format?(this.indentate=q$e,this.tagEndChar=`>
`,"utf-8")],s=T$e(n);s&&t.headers.set("Content-Length",s),t.body=await Sle(n)}var ty="multipartPolicy",R$e=70,D$e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function k$e(t){if(t.length>R$e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!D$e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function nT(){return{name:ty,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?k$e(r):r=w$e(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await x$e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function sT(){return RN()}import{EOL as _$e}from"node:os";import F$e from"node:util";import*as Nle from"node:process";function Tle(t,...e){Nle.stderr.write(`${F$e.format(t,...e)}${_$e}`)}var xle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Rle,GO=[],qO=[],iT=[];xle&&YO(xle);var Dle=Object.assign(t=>kle(t),{enable:YO,enabled:VO,disable:M$e,log:Tle});function YO(t){Rle=t,GO=[],qO=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?qO.push(new RegExp(`^${n.substr(1)}$`)):GO.push(new RegExp(`^${n}$`));for(let n of iT)n.enabled=VO(n.namespace)}function VO(t){if(t.endsWith("*"))return!0;for(let e of qO)if(e.test(t))return!1;for(let e of GO)if(e.test(t))return!0;return!1}function M$e(){let t=Rle||"";return YO(""),t}function kle(t){let e=Object.assign(r,{enabled:VO(t),destroy:L$e,log:Dle.log,namespace:t,extend:U$e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return iT.push(e),e}function L$e(){let t=iT.indexOf(this);return t>=0?(iT.splice(t,1),!0):!1}function U$e(t){let e=kle(`${this.namespace}:${t}`);return e.log=this.log,e}var fm=Dle;var _le=new Set,oT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,WO,JO=fm("azure");JO.log=(...t)=>{fm.log(...t)};var zO=["verbose","info","warning","error"];oT&&(Lle(oT)?P$e(oT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${oT}'; logging is not enabled. Acceptable values: ${zO.join(", ")}.`));function P$e(t){if(t&&!Lle(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${zO.join(",")}`);WO=t;let e=[];for(let r of _le)Mle(r)&&e.push(r.namespace);fm.enable(e.join(","))}var vle={verbose:400,info:300,warning:200,error:100};function To(t){let e=JO.extend(t);return Fle(JO,e),{error:aT(e,"error"),warning:aT(e,"warning"),info:aT(e,"info"),verbose:aT(e,"verbose")}}function Fle(t,e){e.log=(...r)=>{t.log(...r)}}function aT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Fle(t,r),Mle(r)){let n=fm.disable();fm.enable(n+","+r.namespace)}return _le.add(r),r}function Mle(t){return!!(WO&&vle[t.level]<=vle[WO])}function Lle(t){return zO.includes(t)}var bA=To("core-rest-pipeline");function jO(t={}){return _N({logger:bA.info,...t})}var KO=FN;function XO(t={}){return MN(t)}import ZO from"node:os";import $O from"node:process";function Ule(){return"User-Agent"}async function Ple(t){if($O&&$O.versions){let e=`${ZO.type()} ${ZO.release()}; ${ZO.arch()}`,r=$O.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var AT="1.22.2";function W$e(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Ole(){return Ule()}async function cT(t){let e=new Map;e.set("core-rest-pipeline",AT),await Ple(e);let r=W$e(e);return t?`${t} ${r}`:r}var Hle=Ole(),Gle="userAgentPolicy";function e3(t={}){let e=cT(t.userAgentPrefix);return{name:Gle,async sendRequest(r,n){return r.headers.has(Hle)||r.headers.set(Hle,await e),n(r)}}}var ry=class extends Error{constructor(e){super(e),this.name="AbortError"}};function t3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new ry(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var X$e="The delay was aborted.";function gm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return t3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??X$e})}function Ll(t){if(Wh(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function qle(t){return Wh(t)}function pm(){return Vh()}var Ot=jh;var Yle=S 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--),!btt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,vs(t,i))}let c=Ett(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",vs(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=Rde(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,vs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",vs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",vs(t,o));{let l=r.pop();if(A!==l.tagName){let d=vs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",vs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",vs(t,i));else{let l=Rde(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,vs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",vs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=xde(t,i);continue}else if(t[i+1]==="?"){if(i=Tde(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ytt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",vs(t,i));i=l}else if(s===!0&&!Nde(t[i]))return Zr("InvalidXml","Extra text at the end",vs(t,i));t[i]==="<"&&i--}}else{if(Nde(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",vs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",vs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Nde(t){return t===" "||t===" "||t===`
`||t==="\r"}function Tde(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",vs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function xde(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 ptt='"',mtt="'";function Ett(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===ptt||t[e]===mtt)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 Ctt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Rde(t,e){let r=yT(t,Ctt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",fy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",fy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",fy(r[s]));let i=r[s][2];if(!Btt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",fy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",fy(r[s]))}return!0}function Itt(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 ytt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Itt(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 Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Btt(t){return Im(t)}function btt(t){return Im(t)}function vs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function fy(t){return t.startIndex+t[1].length}var Dde=t=>hy.includes(t)?"__"+t:t,Qtt={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:Dde};function wtt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(hy.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(BT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function kde(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}:kde(!0)}var vde=function(t){let e=Object.assign({},Qtt,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:n,name:s}of r)n&&wtt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=Dde),e.processEntities=kde(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var QT;typeof Symbol!="function"?QT="@@xmlMetadata":QT=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,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new py(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=ef(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=v3(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,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(),n="",i=a}else if(t[i+1]==="?"){let a=_3(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,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=ef(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=ef(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,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=_3(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}=v3(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&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,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={},E;E=Mtt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=Ftt(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 R=new si(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=v3(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}n="",i=d}}else n+=t[i];return e.child};function qtt(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 Ytt(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}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function P3(t,e){let r="";e.format&&e.indentBy.length>0&&(r=$tt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Pi(o)):o instanceof Pi&&n.push(o)}let s=new SA;return Ude(t,e,r,s,n)}function Ude(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=U3(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Ode(A);if(c===void 0)continue;let u=ert(A[":@"],e);n.push(c,u);let l=rrt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=U3(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=Lde(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=Lde(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=Pde(A[c],e):p=Ude(A[c],e,d,n,s),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,n.pop()}return i}function ert(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]=t[s],n=!0}return n?r:null}function Pde(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=Ode(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=trt(s[":@"],e),a=Pde(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function trt(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)}="${s}"`}return r}function Ode(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 Lde(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=U3(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function rrt(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 U3(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 O3(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 nrt={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 oi(t){if(this.options=Object.assign({},nrt,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=O3(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ort),this.processTextOrObjNode=srt,this.options.format?(this.indentate=irt,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}si.prototype.build=function(t){if(this.options.preserveOrder)return bO(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new fA;return this.j2x(t,0,e).val}};si.prototype.j2x=function(t,e,r){let n="",s="";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)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=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]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=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)),s+=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++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};si.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 G$e(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}si.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]=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]=t[n],r=!0)}return r?e:null};si.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.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};si.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 n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}oi.prototype.build=function(t){if(this.options.preserveOrder)return P3(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new SA;return this.j2x(t,0,e).val}};oi.prototype.j2x=function(t,e,r){let n="",s="";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)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=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]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=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)),s+=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++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};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+'="'+e+'"'};function srt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.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]=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]=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.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};oi.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 n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): 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)=>UN(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=FN(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=MN(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Fr=class extends _h{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new OI(e,r,this)}computeHMACSHA256(e){return eet("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Fh=class extends Error{constructor(e){super(e),this.name="AbortError"}};var gn=Qo("storage-common");var wo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(wo||(wo={}));var Bl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:wo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},tet=new Fh("The operation was aborted."),HI=class extends gA{retryOptions;constructor(e,r,n=Bl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Bl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Bl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Bl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Bl.maxRetryDelayInMs):Bl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Bl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Bl.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=_N(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=yl(s.url,$c.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gn.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(gn.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 gn.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 gn.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 gn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gn.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')?(gn.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 wo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case wo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return gn.info(`RetryPolicy: Delay for ${s}ms`),LN(s,n,tet)}};var GI=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new HI(e,r,this.retryOptions)}};var ret="storageBrowserPolicy";function Hue(){return{name:ret,async sendRequest(t,e){return Pt||((t.method==="GET"||t.method==="HEAD")&&(t.url=yl(t.url,$c.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var net="StorageCorrectContentLengthPolicy";function Gue(){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:net,async sendRequest(e,r){return t(e),r(e)}}}var set="storageRetryPolicy",Zp={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:wo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iet=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],oet=new Fh("The operation was aborted.");function que(t={}){let e=t.retryPolicyType??Zp.retryPolicyType,r=t.maxTries??Zp.maxTries,n=t.retryDelayInMs??Zp.retryDelayInMs,s=t.maxRetryDelayInMs??Zp.maxRetryDelayInMs,i=t.secondaryHost??Zp.secondaryHost,o=t.tryTimeoutInMs??Zp.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return gn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of iet)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)=>FT(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=kT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=vT(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Mr=class extends rf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new yy(e,r,this)}computeHMACSHA256(e){return prt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var gn=To("storage-common");var xo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(xo||(xo={}));var Gl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mrt=new nf("The operation was aborted."),By=class extends NA{retryOptions;constructor(e,r,n=Gl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Gl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Gl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Gl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Gl.maxRetryDelayInMs):Gl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Gl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Gl.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=DT(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Hl(s.url,fu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gn.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(gn.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 gn.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 gn.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 gn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gn.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')?(gn.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 xo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case xo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return gn.info(`RetryPolicy: Delay for ${s}ms`),_T(s,n,mrt)}};var by=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new By(e,r,this.retryOptions)}};var Ert="storageBrowserPolicy";function Vde(){return{name:Ert,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=Hl(t.url,fu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Crt="StorageCorrectContentLengthPolicy";function Wde(){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:Crt,async sendRequest(e,r){return t(e),r(e)}}}var Irt="storageRetryPolicy",Bm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},yrt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Brt=new nf("The operation was aborted.");function Jde(t={}){let e=t.retryPolicyType??Bm.retryPolicyType,r=t.maxTries??Bm.maxTries,n=t.retryDelayInMs??Bm.retryDelayInMs,s=t.maxRetryDelayInMs??Bm.maxRetryDelayInMs,i=t.secondaryHost??Bm.secondaryHost,o=t.tryTimeoutInMs??Bm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return gn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of yrt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=aet("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[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>UN(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 s(i){let o=FN(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=MN(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:Aet,async sendRequest(i,o){return e(i),o(i)}}}var cet="storageRequestFailureDetailsParserPolicy";function Yue(){return{name:cet,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 uet}from"node:crypto";var PN=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return uet("sha256",this.key).update(e,"utf8").digest("base64")}};var ON="12.31.0",HN="2026-02-06";var GN="https://storage.azure.com/.default",eu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Qa="",RO="*",det=1*1024*1024;var het=4*det;var Vue="AES256",Wue="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Jue=["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"],zue=["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"],jue="BlobUsesCustomerSpecifiedEncryption",Kue="BlobDoesNotUseCustomerSpecifiedEncryption",Xue=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function tu(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 qI=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Xr(t,e={}){t||(t=new Qr);let r=new qI([],e);return r._credential=t,r}function fet(t){let e=[get,Zue,pet,met,Eet,Cet,yet];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Iet(s));return{wrappedPolicies:hO(r),afterRetry:n}}}}function DO(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?fO(e):TO(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${ON}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=SI({...r,loggingOptions:{additionalAllowedHeaderNames:Jue,additionalAllowedQueryParameters:zue,logger:xN.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:TN,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:SO,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:qP}),s.addPolicy(Gue()),s.addPolicy(que(r.retryOptions),{phase:"Retry"}),s.addPolicy(Yue()),s.addPolicy(Hue());let a=fet(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=kO(t);_i(A)?s.addPolicy(zp({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new xa(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 prt(t,e){if(t=Yh(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=kA.parse(t.permissions.toString()).toString():s=vA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",qh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ta(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 xa(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 mrt(t,e){if(t=Yh(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=kA.parse(t.permissions.toString()).toString():s=vA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",qh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ta(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 xa(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 Ert(t,e){if(t=Yh(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=kA.parse(t.permissions.toString()).toString():s=vA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",qh(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?Ta(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 xa(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 Crt(t,e){if(t=Yh(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=kA.parse(t.permissions.toString()).toString():s=vA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",qh(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?Ta(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 xa(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 Irt(t,e){if(t=Yh(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=kA.parse(t.permissions.toString()).toString():s=vA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",qh(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?Ta(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 xa(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 yrt(t,e){if(t=Yh(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=kA.parse(t.permissions.toString()).toString():s=vA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",qh(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?Ta(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 xa(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 qh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Yh(t){let e=t.version?t.version:HN;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 ty=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=Wp()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Qa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Qa||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!==Qa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Qa||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!==Qa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Qa||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!==Qa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Qa||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"}};MT.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var LT=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};LT.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;function dde(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}function hde(){return dde()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}var Jrt=he(pde(),1);var uhe=he(j6(),1),$r=he(At(),1),Pi=he(At(),1),Xh=he(At(),1),Zh=he(At(),1),$h=he(At(),1);var $6=he(At(),1),e5=he(At(),1),ahe=he(At(),1),Ahe=he(At(),1),che=he(At(),1);var K6=he(At(),1),X6=he(At(),1),she=he(At(),1),ihe=he(At(),1),ohe=he(At(),1),Z6=class extends ohe.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,ihe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,she.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,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.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?X6.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,K6.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,K6.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?X6.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Bx=new Z6;var t5=class extends che.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:()=>Bx}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Ahe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ahe.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,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(Bx.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.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?e5.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$6.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Bx.internalBinaryWrite(e.scope[i],r.tag(2,$6.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e5.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},PA=new t5;var r5=class extends $h.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>PA},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,Zh.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Xh.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,A]=e.tag();switch(a){case 1:i.metadata=PA.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=n.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?Pi.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.metadata&&PA.internalBinaryWrite(e.metadata,r.tag(1,$r.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,$r.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,$r.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},lhe=new r5,n5=class extends $h.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,Zh.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Xh.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,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=n.readUnknownField;if(c==="th Line truncated
`+n(i)+s(i),a=brt("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[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>FT(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 s(i){let o=kT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=vT(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:Qrt,async sendRequest(i,o){return e(i),o(i)}}}var wrt="storageRequestFailureDetailsParserPolicy";function zde(){return{name:wrt,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 Srt}from"node:crypto";var MT=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Srt("sha256",this.key).update(e,"utf8").digest("base64")}};var LT="12.31.0",UT="2026-02-06";var PT="https://storage.azure.com/.default",gu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var xa="",W3="*",Nrt=1*1024*1024;var Trt=4*Nrt;var jde="AES256",Kde="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Xde=["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"],Zde=["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"],$de="BlobUsesCustomerSpecifiedEncryption",ehe="BlobDoesNotUseCustomerSpecifiedEncryption",the=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pu(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 Qy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function $r(t,e={}){t||(t=new wr);let r=new Qy([],e);return r._credential=t,r}function xrt(t){let e=[Rrt,rhe,Drt,krt,vrt,_rt,Mrt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Frt(s));return{wrappedPolicies:x3(r),afterRetry:n}}}}function J3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?R3(e):Y3(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${LT}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=ay({...r,loggingOptions:{additionalAllowedHeaderNames:Xde,additionalAllowedQueryParameters:Zde,logger:ST.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:wT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:G3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:i3}),s.addPolicy(Wde()),s.addPolicy(Jde(r.retryOptions),{phase:"Retry"}),s.addPolicy(zde()),s.addPolicy(Vde());let a=xrt(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=z3(t);Li(A)?s.addPolicy(Em({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new _a(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 Rst(t,e){if(t=hf(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=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?va(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 _a(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 Dst(t,e){if(t=hf(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=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?va(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 _a(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 kst(t,e){if(t=hf(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=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?va(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 _a(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 vst(t,e){if(t=hf(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=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?va(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 _a(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 _st(t,e){if(t=hf(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=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?va(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 _a(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 Fst(t,e){if(t=hf(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=YA.parse(t.permissions.toString()).toString():s=VA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?va(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 _a(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 df(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function hf(t){let e=t.version?t.version:UT;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 My=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=pm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==xa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==xa||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!==xa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==xa||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!==xa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==xa||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!==xa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==xa||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"}};km.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Yy=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var sit=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},y5=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);se(`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 gfe(t,e,r){return sit(this,void 0,void 0,function*(){var n;let s=new Fa(t),i=s.getBlockBlobClient(),o=new y5((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(),W(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new vx(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as mfe from"buffer";import*as WA from"fs";import*as Efe from"stream";import*as Cfe from"util";var _x=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Fx(t){return t?t>=200&&t<300:!1}function iit(t){return t?t>=500:!0}function oit(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function ait(t){return _x(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function pfe(t,e,r){return _x(this,arguments,void 0,function*(n,s,i,o=bN,a=QN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!iit(d)))return l;if(d&&(h=oit(d),c=`Cache service responded with ${d}`),W(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){W(`${n} - Error is not retryable`);break}yield ait(a),u++}throw Error(`${n} failed: ${c}`)})}function Vy(t,e){return _x(this,arguments,void 0,function*(r,n,s=bN,i=QN){return yield pfe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof gA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function vm(t,e){return _x(this,arguments,void 0,function*(r,n,s=bN,i=QN){return yield pfe(r,n,o=>o.message.statusCode,s,i)})}var _o=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Ait(t,e){return _o(this,void 0,void 0,function*(){yield Cfe.promisify(Efe.pipeline)(t.message,e)})}var Mx=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,W(`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);se(`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||[])W(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function w5(t,e,r){return Ai(this,void 0,void 0,function*(){let n=new hit(t),s=bfe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield yfe(t,e,s):s.concurrentBlobDownloads?yield Ife(t,e,s):yield Lx(t,e):yield Lx(t,e)})}function Rfe(t,e,r){return Ai(this,void 0,void 0,function*(){let n=Q5(),s=om(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield Vy("reserveCache",()=>Ai(this,void 0,void 0,function*(){return n.postJson(Jy("caches"),i)}))})}function Tfe(t,e){return`bytes ${t}-${e}/*`}function mit(t,e,r,n,s){return Ai(this,void 0,void 0,function*(){W(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Tfe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Tfe(n,s)},o=yield vm(`uploadChunk (start: ${n}, end: ${s})`,()=>Ai(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Fx(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Eit(t,e,r,n){return Ai(this,void 0,void 0,function*(){let s=IA(r),i=Jy(`caches/${e.toString()}`),o=_m.openSync(r,"r"),a=B5(n),A=lO("uploadConcurrency",a.uploadConcurrency),c=lO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];W("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Ai(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield mit(t,i,()=>_m.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{_m.closeSync(o)}})}function Cit(t,e,r){return Ai(this,void 0,void 0,function*(){let n={size:r};return yield Vy("commitCache",()=>Ai(this,void 0,void 0,function*(){return t.postJson(Jy(`caches/${e.toString()}`),n)}))})}function S5(t,e,r,n){return Ai(this,void 0,void 0,function*(){if(B5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield gfe(r,e,n)}else{let i=Q5();W("Upload cache"),yield Eit(i,t,e,n),W("Commiting cache");let o=IA(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Cit(i,t,o);if(!Fx(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var bge=fe(mH(),1),tn=fe(ct(),1),Gi=fe(ct(),1),yf=fe(ct(),1),Bf=fe(ct(),1),bf=fe(ct(),1);var yH=fe(ct(),1),BH=fe(ct(),1),Ige=fe(ct(),1),yge=fe(ct(),1),Bge=fe(ct(),1);var EH=fe(ct(),1),CH=fe(ct(),1),mge=fe(ct(),1),Ege=fe(ct(),1),Cge=fe(ct(),1),IH=class extends Cge.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,Ege.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,mge.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,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.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?CH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,EH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,EH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?CH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},QR=new IH;var bH=class extends Bge.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:()=>QR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,yge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ige.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,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(QR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.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?BH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,yH.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)QR.internalBinaryWrite(e.scope[i],r.tag(2,yH.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?BH.UnknownFieldHandler.onWrite Line truncated
`));let n=yield UH(r,"create");yield PH(n,t)})}var Xm=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Ua=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Km=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},NR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Nge(t){if(!t||t.length===0)throw new Ua("Path Validation Error: At least one directory or file path is required")}function GH(t){if(t.length>512)throw new Ua(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ua(`Key Validation Error: ${t} cannot contain commas.`)}function Tge(){return Wy()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function xge(t,e,r,n){return Xm(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=Wy();return W(`Cache service version: ${c}`),Nge(s),c==="v2"?yield Mat(s,i,o,a,A):yield Fat(s,i,o,a,A)})}function Fat(t,e,r,n){return Xm(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(W("Resolved Keys:"),W(JSON.stringify(c)),c.length>10)throw new Ua("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)GH(d);let u=yield KI(),l="";try{let d=yield xfe(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),d.cacheKey;l=cB.join(yield zI(),Fl(u)),W(`Archive Path: ${l}`),yield w5(d.archiveLocation,l,a),Rl()&&(yield AB(l,u));let h=IA(l);return se(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield OH(l,u),se("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Ua.name)throw d;h instanceof gA&&typeof h.statusCode=="number"&&h.statusCode>=500?ou(`Failed to restore: ${d.message}`):et(`Failed to restore: ${d.message}`)}finally{try{yield jI(l)}catch(d){W(`Failed to delete archive: ${d}`)}}})}function Mat(t,e,r,n){return Xm(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(W("Resolved Keys:"),W(JSON.stringify(c)),c.length>10)throw new Ua("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)GH(l);let u="";try{let l=LH(),d=yield KI(),h={key:i,restoreKeys:o,version:om(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){W(`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=cB.join(yield zI(),Fl(d)),W(`Archive path: ${u}`),W(`Starting download of archive to: ${u}`),yield w5(f.signedDownloadUrl,u,a);let I=IA(u);return se(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Rl()&&(yield AB(u,d)),yield OH(u,d),se("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Ua.name)throw l;d instanceof gA&&typeof d.statusCode=="number"&&d.statusCode>=500?ou(`Failed to restore: ${l.message}`):et(`Failed to restore: ${l.message}`)}finally{try{u&&(yield jI(u))}catch(l){W(`Failed to delete archive: ${l}`)}}})}function Rge(t,e,r){return Xm(this,arguments,void 0,function*(n,s,i,o=!1){let a=Wy();return W(`Cache service version: ${a}`),Nge(n),GH(s),a==="v2"?yield Uat(n,s,i,o):yield Lat(n,s,i,o)})}function Lat(t,e,r){return Xm(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield KI(),h=-1,f=yield uO(n);if(W("Cache Paths:"),W(`${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 zI(),I=cB.join(p,Fl(d));W(`Archive Path: ${I}`);try{yield HH(p,f,d),Rl()&&(yield AB(I,d));let E=10*1024*1024*1024,C=IA(I);if(W(`File Size: ${C}`),C>E&&!b5())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);W("Reserving Cache");let y=yield Rfe(s,n,{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 Km(`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}`);W(`Saving Cache (ID: ${h})`),yield S5(h,I,"",i)}catch(E){let C=E;if(C.name===Ua.name)throw E;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}`,s=Rx(),i=mo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Mt(pit(o));else throw o}}function pit(t){let e=`Failed to generate PR comment.
${t}`,s=FR(),i=yo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")et(Wat(o));else throw o}}function Wat(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 mit(t){return`${Cit()}
${yit(t)}`}function Eit(){let t=Ihe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function Cit(){let t=Che();return t.length===0?"":`
`:e}function Jat(t){return`${jat()}
${Xat(t)}`}function zat(){let t=_ge();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function jat(){let t=vge();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${Qx()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${xR()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${Iit(e)}</li>`).join("")}
${t.map(e=>`<li>${Kat(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function Iit(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function yit(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function Kat(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Xat(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -268,95 +271,80 @@ This job uses deprecated functionality from the <code>${Qx()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>bit(e)).join("")}
</tr>${t.map(e=>$at(e)).join("")}
</table>
`}function Bit(t){return t.some(e=>e.buildFailed)}function bit(t){return`
`}function Zat(t){return t.some(e=>e.buildFailed)}function $at(t){return`
<tr>
<td>${Qhe(t.rootProjectName,30)}</td>
<td>${Qhe(t.requestedTasks,60)}</td>
<td>${Uge(t.rootProjectName,30)}</td>
<td>${Uge(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${Qit(t)}</td>
<td>${wit(t)}</td>
</tr>`}function Qit(t){return t.buildFailed?":x:":":white_check_mark:"}function wit(t){return t.buildScanFailed?c5({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?c5({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):c5({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function c5({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 Qhe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var She=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 vo from"fs";import*as cu from"path";function Nhe(){return xhe().map(e=>{let r=vo.readFileSync(e,"utf8"),n=JSON.parse(r);return Tit(e,n),n})}function The(){xhe().forEach(Rit)}function xhe(){let t=cu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return vo.existsSync(t)?vo.readdirSync(t).map(e=>cu.resolve(t,e)).filter(e=>cu.extname(e)===".json"&&!xit(e)):[]}function Tit(t,e){let r=cu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!vo.existsSync(r))return;let n=cu.resolve(r,cu.basename(t));if(vo.existsSync(n)){let s=vo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function xit(t){let e=`${t}.processed`;return vo.existsSync(e)}function Rit(t){let e=`${t}.processed`;vo.writeFileSync(e,"")}import*as Rhe from"fs";import*as Dhe from"path";import{pathToFileURL as Dit}from"url";var kit=`
<td align='center'>${eAt(t)}</td>
<td>${tAt(t)}</td>
</tr>`}function eAt(t){return t.buildFailed?":x:":":white_check_mark:"}function tAt(t){return t.buildScanFailed?YH({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?YH({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):YH({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function YH({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 Uge(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var Oge=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 Uo from"fs";import*as wu from"path";function Hge(){return qge().map(e=>{let r=Uo.readFileSync(e,"utf8"),n=JSON.parse(r);return sAt(e,n),n})}function Gge(){qge().forEach(oAt)}function qge(){let t=wu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Uo.existsSync(t)?Uo.readdirSync(t).map(e=>wu.resolve(t,e)).filter(e=>wu.extname(e)===".json"&&!iAt(e)):[]}function sAt(t,e){let r=wu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Uo.existsSync(r))return;let n=wu.resolve(r,wu.basename(t));if(Uo.existsSync(n)){let s=Uo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function iAt(t){let e=`${t}.processed`;return Uo.existsSync(e)}function oAt(t){let e=`${t}.processed`;Uo.writeFileSync(e,"")}import*as Jge from"fs";import*as zge from"path";import{pathToFileURL as cAt}from"url";import*as WH from"path";var Yge="BASIC_CACHE_PRIMARY_KEY",VH="BASIC_CACHE_RESTORED_KEY",aAt="setup-java",Vge=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],MR=class{async restore(e,r){let n=Wge(e),s=await AAt();TI(Yge,s);try{let i=await xge(n,s);i?(TI(VH,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){et(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=EA(VH);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=EA(Yge);if(EA(VH)===s)return se(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=Wge(e);try{return await Rge(o,s),se(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return et(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Wge(t){return[WH.join(t,"caches"),WH.join(t,"wrapper")]}async function AAt(){let t=await CAe(Vge.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Vge}], make sure you have checked out the target repository`);return`${aAt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var uAt=`
[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.
`,vit=`
***********************************************************
LICENSING NOTICE
The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
You can suppress this message by accepting the terms in your action configuration: see https://github.com/gradle/actions/blob/main/README.md
***********************************************************
`,_it=`
> [!IMPORTANT]
> #### Licensing notice
>
> The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
> The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
>
> The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
>
> Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
> If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
>
>You can suppress this message by [accepting the terms in your action configuration](https://github.com/gradle/actions/blob/main/README.md).
`,u5=class{async restore(e,r){}async save(e,r,n){return kit}},l5=class{constructor(e){this.delegate=e}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${_it}`}};async function khe(t){if(t.isCacheDisabled())return new u5;let e=await Fit();return t.isCacheLicenseAccepted()?e:(await Lit(),new l5(e))}async function Fit(){let t=Mit();return await import(Dit(t).href)}function Mit(){let t=import.meta.dirname,e=Dhe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Rhe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}async function Lit(){console.info(vit)}import*as Lhe from"util";var Yit=he(Mhe(),1);import*as d5 from"fs";var zAr=Lhe.promisify(d5.readdir);var Wit={_useHtmlParser2:!1};function bm(t,e){if(!t)return e??Wit;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 M5={};ua(M5,{contains:()=>Vx,extract:()=>Oot,html:()=>Mot,merge:()=>ofe,parseHTML:()=>Uot,root:()=>Pot,text:()=>af,xml:()=>Lot});var _l={};ua(_l,{DocumentPosition:()=>Mo,append:()=>Eot,appendChild:()=>mot,compareDocumentPosition:()=>rfe,existsOne:()=>efe,filter:()=>Tm,find:()=>Hx,findAll:()=>Bot,findOne:()=>Gx,findOneChild:()=>yot,getAttributeValue:()=>hot,getChildren:()=>Nm,getElementById:()=>Sot,getElements:()=>wot,getElementsByClassName:()=>Not,getElementsByTagName:()=>of,getElementsByTagType:()=>Tot,getFeed:()=>F5,getInnerHTML:()=>dot,getName:()=>got,getOuterHTML:()=>Zhe,getParent:()=>$he,getSiblings:()=>v5,getText:()=>Ux,hasAttrib:()=>fot,hasChildren:()=>tr,innerText:()=>Dy,isCDATA:()=>Qm,isComment:()=>sf,isDocument:()=>Fo,isTag:()=>Qe,isText:()=>Ai,nextElementSibling:()=>Px,prepend:()=>Iot,prependChild:()=>Cot,prevElementSibling:()=>Ox,removeElement:()=>du,removeSubsets:()=>xot,replaceElement:()=>pot,testElement:()=>Qot,textContent:()=>lu,uniqueSort:()=>kl});var _o={};ua(_o,{CDATA:()=>y5,Comment:()=>m5,Directive:()=>p5,Doctype:()=>B5,ElementType:()=>yt,Root:()=>f5,Script:()=>E5,Style:()=>C5,Tag:()=>I5,Text:()=>g5,isTag:()=>h5});var yt;(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"})(yt||(yt={}));function h5(t){return t.type===yt.Tag||t.type===yt.Script||t.type===yt.Style}var f5=yt.Root,g5=yt.Text,p5=yt.Directive,m5=yt.Comment,E5=yt.Script,C5=yt.Style,I5=yt.Tag,y5=yt.CDATA,B5=yt.Doctype;var Dx=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 wm(this,e)}},Ny=class extends Dx{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},OA=class extends Ny{constructor(){super(...arguments),this.type=yt.Text}get nodeType(){return 3}},tf=class extends Ny{constructor(){super(...arguments),this.type=yt.Comment}get nodeType(){return 8}},rf=class extends Ny{constructor(e,r){super(r),this.name=e,this.type=yt.Directive}get nodeType(){return 1}},Ty=class extends Dx{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}},xy=class extends Ty{constructor(){super(...arguments),this.type=yt.CDATA}get nodeType(){return 4}},Oi=class extends Ty{constructor(){super(...arguments),this.type=yt.Root}get nodeType(){return 9}},nf=class extends Ty{constructor(e,r,n=[],s=e==="script"?yt.Script:e==="style"?yt.Style:yt.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 h5(t)}function Qm(t){return t.type===yt.CDATA}function Ai(t){return t.type===yt.Text}function sf(t){return t.type===yt.Comment}function kx(t){return t.type===yt.Directive}function Fo(t){return t.type===yt.Root}function tr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function wm(t,e=!1){let r;if(Ai(t))r=new OA(t.data);else if(sf(t))r=new tf(t.data);else if(Qe(t)){let n=e?b5(t.children):[],s=new nf(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(Qm(t)){let n=e?b5(t.children):[],s=new xy(n);n.forEach(i=>i.parent=s),r=s}else if(Fo(t)){let n=e?b5(t.children):[],s=new Oi(n);n.forEach(i=>i.parent=s),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),r=s}else if(kx(t)){let n=n Line truncated
`:Ux(t.children):Qm(t)?Ux(t.children):Ai(t)?t.data:""}function lu(t){return Array.isArray(t)?t.map(lu).join(""):tr(t)&&!sf(t)?lu(t.children):Ai(t)?t.data:""}function Dy(t){return Array.isArray(t)?t.map(Dy).join(""):tr(t)&&(t.type===yt.Tag||Qm(t))?Dy(t.children):Ai(t)?t.data:""}function Nm(t){return tr(t)?t.children:[]}function $he(t){return t.parent||null}function v5(t){let e=$he(t);if(e!=null)return Nm(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 hot(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function fot(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function got(t){return t.name}function Px(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function Ox(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function du(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 pot(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 mot(t,e){if(du(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 Eot(t,e){du(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 Cot(t,e){if(du(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 Iot(t,e){du(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 Tm(t,e,r=!0,n=1/0){return Hx(t,Array.isArray(e)?e:[e],r,n)}function Hx(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 yot(t,e){return e.find(t)}function Gx(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=Gx(t,i.children,!0);if(o)return o}}return null}function efe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&efe(t,r.children))}function Bot(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 qx={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=>Ai(e)&&t(e.data):e=>Ai(e)&&e.data===t}};function _5(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function bot(t,e){return r=>t(r)||e(r)}function tfe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(qx,r)?qx[r](n):_5(r,n)});return e.length===0?null:e.reduce(bot)}function Qot(t,e){let r=tfe(t);return r?r(e):!0}function wot(t,e,r,n=1/0){let s=tfe(t);return s?Tm(s,e,r,n):[]}function Sot(t,e,r=!0){return Array.isArray(e)||(e=[e]),Gx(_5("id",t),e,r)}function of(t,e,r=!0,n=1/0){return Tm(qx.tag_name(t),e,r,n)}function Not(t,e,r=!0,n=1/0){return Tm(_5("class",t),e,r,n)}function Tot(t,e,r=!0,n=1/0){return Tm(qx.tag_type(t),e,r,n)}function xot(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 Mo;(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"})(Mo||(Mo={}));function rfe(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 Mo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Mo.FOLLOWING|Mo.CONTAINED_BY:Mo.FOLLOWING:a===t?Mo.PRECEDING|Mo.CONTAINS:Mo.PRECEDING}function kl(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=rfe(e,r);return n&Mo.PRECEDING?-1:n&Mo.FOLLOWING?1:0}),t}function F5(t){let e=Yx(_ot,t);return e?e.name==="feed"?Rot(e):Dot(e):null}function Rot(t){var e;let r=t.children,n={type:"atom",items:of("entry",r).map(o=>{var a;let{children:A}=o,c={media:nfe(A)};ci(c,"id","id",A),ci(c,"title","title",A);let u=(a=Yx("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=vl("summary",A)||vl("conten Line truncated
`,lAt="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.",dAt=`
> [!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.
`,hAt="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.",fAt=`
> [!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.`,zH=class{async restore(e,r){}async save(e,r,n){return uAt}},LR=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 jge(t){if(t.isCacheDisabled())return JH("Cache is disabled: will not restore state from previous builds."),new zH;if(t.getCacheProvider()==="basic")return JH(hAt),new LR(new MR,fAt);JH(lAt);let e=await gAt();return t.isCacheLicenseAccepted()?e:new LR(e,dAt)}async function gAt(){let t=pAt();return await import(cAt(t).href)}function pAt(){let t=import.meta.dirname,e=zge.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Jge.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function JH(t){console.info(t)}import*as epe from"util";var bAt=fe($ge(),1);import*as jH from"fs";var Kur=epe.promisify(jH.readdir);var wAt={_useHtmlParser2:!1};function $m(t,e){if(!t)return e??wAt;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 C9={};ga(C9,{contains:()=>ZR,extract:()=>Cct,html:()=>gct,merge:()=>bpe,parseHTML:()=>mct,root:()=>Ect,text:()=>Rf,xml:()=>pct});var td={};ga(td,{DocumentPosition:()=>Ho,append:()=>XAt,appendChild:()=>KAt,compareDocumentPosition:()=>Cpe,existsOne:()=>mpe,filter:()=>s0,find:()=>zR,findAll:()=>tct,findOne:()=>jR,findOneChild:()=>ect,getAttributeValue:()=>WAt,getChildren:()=>n0,getElementById:()=>ict,getElements:()=>sct,getElementsByClassName:()=>oct,getElementsByTagName:()=>xf,getElementsByTagType:()=>act,getFeed:()=>E9,getInnerHTML:()=>VAt,getName:()=>zAt,getOuterHTML:()=>gpe,getParent:()=>ppe,getSiblings:()=>p9,getText:()=>VR,hasAttrib:()=>JAt,hasChildren:()=>rr,innerText:()=>mB,isCDATA:()=>e0,isComment:()=>Tf,isDocument:()=>Oo,isTag:()=>Qe,isText:()=>li,nextElementSibling:()=>WR,prepend:()=>$At,prependChild:()=>ZAt,prevElementSibling:()=>JR,removeElement:()=>Tu,removeSubsets:()=>Act,replaceElement:()=>jAt,testElement:()=>nct,textContent:()=>Nu,uniqueSort:()=>$l});var Po={};ga(Po,{CDATA:()=>s9,Comment:()=>e9,Directive:()=>$H,Doctype:()=>i9,ElementType:()=>Bt,Root:()=>XH,Script:()=>t9,Style:()=>r9,Tag:()=>n9,Text:()=>ZH,isTag:()=>KH});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 KH(t){return t.type===Bt.Tag||t.type===Bt.Script||t.type===Bt.Style}var XH=Bt.Root,ZH=Bt.Text,$H=Bt.Directive,e9=Bt.Comment,t9=Bt.Script,r9=Bt.Style,n9=Bt.Tag,s9=Bt.CDATA,i9=Bt.Doctype;var UR=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 t0(this,e)}},hB=class extends UR{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},ZA=class extends hB{constructor(){super(...arguments),this.type=Bt.Text}get nodeType(){return 3}},wf=class extends hB{constructor(){super(...arguments),this.type=Bt.Comment}get nodeType(){return 8}},Sf=class extends hB{constructor(e,r){super(r),this.name=e,this.type=Bt.Directive}get nodeType(){return 1}},fB=class extends UR{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}},gB=class extends fB{constructor(){super(...arguments),this.type=Bt.CDATA}get nodeType(){return 4}},Yi=class extends fB{constructor(){super(...arguments),this.type=Bt.Root}get nodeType(){return 9}},Nf=class extends fB{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 KH(t)}function e0(t){return t.type===Bt.CDATA}function li(t){return t.type===Bt.Text}function Tf(t){return t.type===Bt.Comment}function PR(t){return t.type===Bt.Directive}function Oo(t){return t.type===Bt.Root}function rr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function t0(t,e=!1){let r;if(li(t))r=new ZA(t.data);else if(Tf(t))r=new wf(t.data);else if(Qe(t)){let n=e?o9(t.children):[],s=new Nf(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(e0(t)){let n=e?o9(t.children):[],s=new gB(n);n.forEach(i=>i.parent=s),r=s}else i Line truncated
`:VR(t.children):e0(t)?VR(t.children):li(t)?t.data:""}function Nu(t){return Array.isArray(t)?t.map(Nu).join(""):rr(t)&&!Tf(t)?Nu(t.children):li(t)?t.data:""}function mB(t){return Array.isArray(t)?t.map(mB).join(""):rr(t)&&(t.type===Bt.Tag||e0(t))?mB(t.children):li(t)?t.data:""}function n0(t){return rr(t)?t.children:[]}function ppe(t){return t.parent||null}function p9(t){let e=ppe(t);if(e!=null)return n0(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 WAt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function JAt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function zAt(t){return t.name}function WR(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function JR(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Tu(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 jAt(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 KAt(t,e){if(Tu(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 XAt(t,e){Tu(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 ZAt(t,e){if(Tu(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 $At(t,e){Tu(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 s0(t,e,r=!0,n=1/0){return zR(t,Array.isArray(e)?e:[e],r,n)}function zR(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&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function ect(t,e){return e.find(t)}function jR(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&&rr(i)&&i.children.length>0){let o=jR(t,i.children,!0);if(o)return o}}return null}function mpe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&mpe(t,r.children))}function tct(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),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var KR={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 m9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function rct(t,e){return r=>t(r)||e(r)}function Epe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(KR,r)?KR[r](n):m9(r,n)});return e.length===0?null:e.reduce(rct)}function nct(t,e){let r=Epe(t);return r?r(e):!0}function sct(t,e,r,n=1/0){let s=Epe(t);return s?s0(s,e,r,n):[]}function ict(t,e,r=!0){return Array.isArray(e)||(e=[e]),jR(m9("id",t),e,r)}function xf(t,e,r=!0,n=1/0){return s0(KR.tag_name(t),e,r,n)}function oct(t,e,r=!0,n=1/0){return s0(m9("class",t),e,r,n)}function act(t,e,r=!0,n=1/0){return s0(KR.tag_type(t),e,r,n)}function Act(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 Ho;(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"})(Ho||(Ho={}));function Cpe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(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 Ho.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ho.FOLLOWING|Ho.CONTAINED_BY:Ho.FOLLOWING:a===t?Ho.PRECEDING|Ho.CONTAINS:Ho.PRECEDING}function $l(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Cpe(e,r);return n&Ho.PRECEDING?-1:n&Ho.FOLLOWING?1:0}),t}function E9(t){let e=XR(hct,t);return e?e.name==="feed"?cct(e):uct(e):null}function cct(t){var e;let r=t.children,n={type:"atom",items:xf("entry",r).map(o=>{var a;let{children:A}=o,c={media:Ipe(A)};di(c,"id","id",A),di(c,"title","title",A);let u=(a=XR("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ed("summary",A)||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 Po=he(Fl(),1);var Z5={};function $5(t,e){return t===Po.default.falseFunc?Po.default.falseFunc:r=>e.isTag(r)&&t(r)}function eH(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 X5(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 K5=(t,e,r,n,s)=>{let i=s(e,X5(r),n);return i===Po.default.trueFunc?t:i===Po.default.falseFunc?Po.default.falseFunc:o=>i(o)&&t(o)},nR={is:K5,matches:K5,where:K5,not(t,e,r,n,s){let i=s(e,X5(r),n);return i===Po.default.falseFunc?t:i===Po.default.trueFunc?Po.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=X5(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Uy))?[Z5]:void 0,A=s(e,o,a);if(A===Po.default.falseFunc)return Po.default.falseFunc;let c=$5(A,i);if(a&&A!==Po.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,...eH(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Vfe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in nR))throw new Error(`Unknown pseudo-class :${o}(${a})`);return nR[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:rR[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Yfe.parse)(c);return nR.is(t,u,r,n,s)}if(typeof A=="function")return j5(A,o,a,1),u=>A(u,a)&&t(u);if(o in Lm)return Lm[o](t,a,r,n);if(o in Oy){let u=Oy[o];return j5(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Oo=he(Fm(),1);function tH(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Wfe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Oo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Oo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Oo.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()),Ofe[e.action](t,e,r)}case Oo.SelectorType.Pseudo:return Vfe(t,e,r,n,s);case Oo.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 Oo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=tH(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=tH(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=tH(c,i));return!1};case Oo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Oo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Oo.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 Oo.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 Oo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Jfe(t,e,r){let n=sR(t,e,r);return $5(n,e.adapter)}function sR(t,e,r){let n=typeof t=="string"?(0,va.parse)(t):t;return iR(n,e,r)}function zfe(t){return t.type===va.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(zfe)))}var wat={type:va.SelectorType.Descendant},Sat={type:"_flexibleDescendant"},Nat={type:va.SelectorType.Pseudo,name:"scope",data:null};function Tat(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Z5||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(uge,`\r
`)}}).toArray()}var mH={};ua(mH,{extract:()=>qAt});function GAt(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 qAt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=GAt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)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 Ul=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}}};Ul.prototype.cheerio="[cheerio object]";Ul.prototype.splice=Array.prototype.splice;Ul.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ul.prototype,Y5,hH,fH,gH,pH,mH);function lge(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=bm(s),a=t(n,o,i,null);class A extends Ul{_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&&Lo(u))return u;let f=bm(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],C=Lo(p)?p:new A(p,null,f);if(C._root=C,!u)return new A(void 0,C,f);let E=typeof u=="string"&&ky(u)?t(u,f,!1,null).children:YAt(u)?[u]:Array.isArray(u)?u:void 0,I=new A(E,C,f);if(E)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let B=u,R=l?typeof l=="string"?ky(l)?new A([t(l,f,!1,null)],C,f):(B=`${l} ${B}`,C):Lo(l)?l:new A(Array.isArray(l)?l:[l],C,f):C;return R?R.find(B):I}return Object.assign(c,M5,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function YAt(t){return!!t.name||t.type===_o.Root||t.type===_o.Text||t.type===_o.Comment}var VAt=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 lR(t){return t>=55296&&t<=57343}function dge(t){return t>=56320&&t<=57343}function hge(t,e){return(t-55296)*1024+9216+e}function dR(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function hR(t){return t>=64976&&t<=65007||VAt.has(t)}var V;(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"]]),Wwe=new Map([...T7,["\\"," Backslash \\"],["/"," Forward slash /"]]);function Jwe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of Wwe)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 Yo=fe(rd(),1);var F9={};function M9(t,e){return t===Yo.default.falseFunc?Yo.default.falseFunc:r=>e.isTag(r)&&t(r)}function L9(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 _9(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 v9=(t,e,r,n,s)=>{let i=s(e,_9(r),n);return i===Yo.default.trueFunc?t:i===Yo.default.falseFunc?Yo.default.falseFunc:o=>i(o)&&t(o)},uD={is:v9,matches:v9,where:v9,not(t,e,r,n,s){let i=s(e,_9(r),n);return i===Yo.default.falseFunc?t:i===Yo.default.trueFunc?Yo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=_9(r);o.relativeSelector=!0;let a=e.some(u=>u.some(QB))?[F9]:void 0,A=s(e,o,a);if(A===Yo.default.falseFunc)return Yo.default.falseFunc;let c=M9(A,i);if(a&&A!==Yo.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,...L9(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Ame(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in uD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return uD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:cD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ame.parse)(c);return uD.is(t,u,r,n,s)}if(typeof A=="function")return k9(A,o,a,1),u=>A(u,a)&&t(u);if(o in h0)return h0[o](t,a,r,n);if(o in SB){let u=SB[o];return k9(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Vo=fe(l0(),1);function U9(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function cme(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Vo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Vo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Vo.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()),nme[e.action](t,e,r)}case Vo.SelectorType.Pseudo:return Ame(t,e,r,n,s);case Vo.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 Vo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=U9(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=U9(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=U9(c,i));return!1};case Vo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Vo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Vo.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 Vo.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 Vo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ume(t,e,r){let n=lD(t,e,r);return M9(n,e.adapter)}function lD(t,e,r){let n=typeof t=="string"?(0,Oa.parse)(t):t;return dD(n,e,r)}function lme(t){return t.type===Oa.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(lme)))}var sut={type:Oa.SelectorType.Descendant},iut={type:"_flexibleDescendant"},out={type:Oa.SelectorType.Pseudo,name:"scope",data:null};function aut(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===F9||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(Nme,`\r
`)}}).toArray()}var eG={};ga(eG,{extract:()=>Blt});function ylt(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 Blt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=ylt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)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 id=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}}};id.prototype.cheerio="[cheerio object]";id.prototype.splice=Array.prototype.splice;id.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(id.prototype,N9,K9,X9,Z9,$9,eG);function Tme(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=$m(s),a=t(n,o,i,null);class A extends id{_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&&Go(u))return u;let f=$m(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Go(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&EB(u)?t(u,f,!1,null).children:blt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?EB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Go(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,C9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function blt(t){return!!t.name||t.type===Po.Root||t.type===Po.Text||t.type===Po.Comment}var Qlt=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]),lr="\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 Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ED(t){return t>=55296&&t<=57343}function xme(t){return t>=56320&&t<=57343}function Rme(t,e){return(t-55296)*1024+9216+e}function CD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function ID(t){return t>=64976&&t<=65007||Qlt.has(t)}var V;(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"]]),cNe=new Map([...lJ,["\\"," Backslash \\"],["/"," Forward slash /"]]);function uNe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of cNe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(Wwe.values()).toString()}
Invalid characters include: ${Array.from(cNe.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.`);de("Artifact name is valid!")}function x7(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of T7)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.`);se("Artifact name is valid!")}function dJ(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of lJ)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(T7.values()).toString()}
Invalid characters include: ${Array.from(lJ.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 Xwe=he(Kwe(),1);function dc(){return`@actions/artifact-${Xwe.version}`}var Y2=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"}},ku=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},vu=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},gd=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"}},_u=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"}};_u.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Jf=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var zf=class extends Error{};zf.prototype.name="InvalidTokenError";function xSt(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 RSt(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 xSt(e)}catch{return atob(e)}}function Zwe(t,e){if(typeof t!="string")throw new zf("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 zf(`Invalid token specified: missing part #${r+1}`);let s;try{s=RSt(n)}catch(i){throw new zf(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new zf(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var V2=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function hc(){let t=G2(),e=Zwe(t);if(!e.scp)throw V2;let r=e.scp.split(" ");if(r.length===0)throw V2;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw V2;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return Ce(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Ce(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw V2}function $we(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(hh(r),hh(encodeURIComponent(r)))}catch(e){Ce(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function e1e(t){if(typeof t!="object"||t===null){Ce("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$we(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$we(t.signed_url)}var W2=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},R7=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=G2();this.baseUrl=Fwe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ri(e,[new dh(i)])}request(e,r,n,s){return W2(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Ce(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>W2(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 W2(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),Ce(`[Response] - ${a.message.statusCode}`),Ce(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(e1e(c),Ce(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Jf.isUsageErrorMessage(c.msg))throw new Jf;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Ce(`Raw Body: ${s}`),a instanceof Jf)throw a;if(_u.isNetworkErrorCode(a?.code))throw new _u(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);de(`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?[sn.BadGateway,sn.GatewayTimeout,sn.InternalServerError,sn.ServiceUnavailable,sn.TooManyRequests].includes(e):!1}sleep(e){return W2(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 fc(t){let e=new R7(dc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new q2(e)}import*as L0 from"fs";import{normalize as t1e,resolve as r1e}from"path";function n1e(t){if(!L0.existsSync(t Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Mt("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);de(`Redirecting to blob download url: ${cMe(u)}`);try{de(`Starting download of artifact to: ${r}`);let l=yield uMe(u,r,e?.skipDecompress);de("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,Ce(`Computed digest: ${l.sha256Digest}`),Ce(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function hMe(){return DE(this,arguments,void 0,function*(t=Mwe()){return(yield s6t(t))?Ce(`Artifact destination folder already exists: ${t}`):(Ce(`Artifact destination folder does not exist, creating: ${t}`),yield sMe.mkdir(t,{recursive:!0})),t})}var o6t=5,a6t=[400,401,403,404,422];function kE(t,e=o6t,r=a6t){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 Ce(`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 fMe="6.0.0";function bg(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})})}bg.VERSION=fMe;var mMe=he(gMe(),1),EMe=he(iU(),1),A6t="0.0.0-development";async function pMe(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 c6t(t,e,r,n){let s=new mMe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(u6t.bind(null,t,e,r),n)}async function u6t(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 EMe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return pMe(t,e,i,n)}return s}function Qg(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",pMe.bind(null,r,t)),t.hook.wrap("request",c6t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Qg.VERSION=A6t;var CMe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Zv(t,e,r,n,s){return CMe(this,void 0,void 0,function*(){var i;let[o,a]=kE(ph),A={log:void 0,userAgent:dc(),previews:void 0,retry:o,request:a},u=yield mo(s,A,Qg,bg).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 ku(`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 vu(`Artifact not found for name: ${t}
`)}var fNe=fe(hNe(),1);function Qc(){return`@actions/artifact-${fNe.version}`}var Xk=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"}},zu=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ju=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Md=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"}},Ku=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"}};Ku.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. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};pg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var mg=class extends Error{};mg.prototype.name="InvalidTokenError";function Axt(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 cxt(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 Axt(e)}catch{return atob(e)}}function gNe(t,e){if(typeof t!="string")throw new mg("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 mg(`Invalid token specified: missing part #${r+1}`);let s;try{s=cxt(n)}catch(i){throw new mg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new mg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Zk=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function wc(){let t=jk(),e=gNe(t);if(!e.scp)throw Zk;let r=e.scp.split(" ");if(r.length===0)throw Zk;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Zk;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return W(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),W(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Zk}function pNe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(pA(r),pA(encodeURIComponent(r)))}catch(e){W(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function mNe(t){if(typeof t!="object"||t===null){W("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&pNe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&pNe(t.signed_url)}var $k=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},hJ=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=jk();this.baseUrl=ZSe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Jn(e,[new su(i)])}request(e,r,n,s){return $k(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;W(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>$k(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 $k(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),W(`[Response] - ${a.message.statusCode}`),W(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(mNe(c),W(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(pg.isUsageErrorMessage(c.msg))throw new pg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&W(`Raw Body: ${s}`),a instanceof pg)throw a;if(Ku.isNetworkErrorCode(a?.code))throw new Ku(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);se(`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?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return $k(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 Sc(t){let e=new hJ(Qc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Kk(e)}import*as hE from"fs";import{normalize as ENe,resolve as CNe}from"path";function INe(t){if(!hE.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&&et("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${SUe(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield NUe(u,r,e?.skipDecompress);se("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,W(`Computed digest: ${l.sha256Digest}`),W(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function RUe(){return aC(this,arguments,void 0,function*(t=$Se()){return(yield LHt(t))?W(`Artifact destination folder already exists: ${t}`):(W(`Artifact destination folder does not exist, creating: ${t}`),yield yUe.mkdir(t,{recursive:!0})),t})}var PHt=5,OHt=[400,401,403,404,422];function AC(t,e=PHt,r=OHt){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 W(`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 DUe="6.0.0";function Wg(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})})}Wg.VERSION=DUe;var _Ue=fe(kUe(),1),FUe=fe(mP(),1),HHt="0.0.0-development";async function vUe(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 GHt(t,e,r,n){let s=new _Ue.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(qHt.bind(null,t,e,r),n)}async function qHt(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 FUe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return vUe(t,e,i,n)}return s}function Jg(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",vUe.bind(null,r,t)),t.hook.wrap("request",GHt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Jg.VERSION=HHt;var MUe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function iF(t,e,r,n,s){return MUe(this,void 0,void 0,function*(){var i;let[o,a]=AC(Lh),A={log:void 0,userAgent:Qc(),previews:void 0,retry:o,request:a},u=yield yo(s,A,Jg,Wg).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 zu(`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 ju(`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],Ce(`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 IMe(t){return CMe(this,void 0,void 0,function*(){var e;let r=fc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=hc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:gs.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new vu(`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],W(`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 LUe(t){return MUe(this,void 0,void 0,function*(){var e;let r=Sc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=wc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ps.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ju(`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],Ce(`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?fs.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function BMe(t,e,r,n,s){return yMe(this,void 0,void 0,function*(){var i;let[o,a]=kE(ph),A={log:void 0,userAgent:dc(),previews:void 0,retry:o,request:a},c=mo(s,A,Qg,bg),u=yield Zv(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new ku(`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 bMe(t){return yMe(this,void 0,void 0,function*(){let e=fc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=hc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:gs.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new vu(`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],Ce(`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 de(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var QMe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},$v=Pwe(),e_=100,l6t=Math.ceil($v/e_);function wMe(t,e,r,n){return QMe(this,arguments,void 0,function*(s,i,o,a,A=!1){de(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=kE(ph),d={log:void 0,userAgent:dc(),previews:void 0,retry:u,request:l},h=mo(a,d,Qg,bg),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:e_,page:f}),C=Math.ceil(p.total_count/e_),E=p.total_count;E>$v&&(Mt(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${$v}. Results will be incomplete as only the first ${$v} artifacts will be returned`),C=l6t);for(let I of p.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=C;f++){Ce(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:e_,page:f});for(let B of I.artifacts)c.push({name:B.name,id:B.id,size:B.size_in_bytes,createdAt:B.created_at?new Date(B.created_at):void 0,digest:B.digest})}return A&&(c=NMe(c)),de(`Found ${c.length} artifact(s)`),{artifacts:c}})}function SMe(){return QMe(this,arguments,void 0,function*(t=!1){let e=fc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=hc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fs.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=NMe(o)),de(`Found ${o.length} artifact(s)`),{artifacts:o}})}function NMe(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 RQ=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},d6t=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},vE=class{uploadArtifact(e,r,n,s){return RQ(this,void 0,void 0,function*(){try{if(_0())throw new gd;return bFe(e,r,n,s)}catch(i){throw Mt(`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((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],W(`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?gs.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var UUe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function PUe(t,e,r,n,s){return UUe(this,void 0,void 0,function*(){var i;let[o,a]=AC(Lh),A={log:void 0,userAgent:Qc(),previews:void 0,retry:o,request:a},c=yo(s,A,Jg,Wg),u=yield iF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new zu(`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 OUe(t){return UUe(this,void 0,void 0,function*(){let e=Sc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=wc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ps.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ju(`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],W(`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 HUe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},oF=rNe(),aF=100,YHt=Math.ceil(oF/aF);function GUe(t,e,r,n){return HUe(this,arguments,void 0,function*(s,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=AC(Lh),d={log:void 0,userAgent:Qc(),previews:void 0,retry:u,request:l},h=yo(a,d,Jg,Wg),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:aF,page:f}),I=Math.ceil(p.total_count/aF),E=p.total_count;E>oF&&(et(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${oF}. Results will be incomplete as only the first ${oF} artifacts will be returned`),I=YHt);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++){W(`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:aF,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=YUe(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function qUe(){return HUe(this,arguments,void 0,function*(t=!1){let e=Sc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=wc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?gs.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=YUe(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function YUe(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 pw=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},VHt=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},cC=class{uploadArtifact(e,r,n,s){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;return OLe(e,r,n,s)}catch(i){throw et(`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 RQ(this,void 0,void 0,function*(){try{if(_0())throw new gd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=d6t(r,["findBy"]);return lMe(e,n,s,i,o)}return dMe(e,r)}catch(n){throw Mt(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=VHt(r,["findBy"]);return TUe(e,n,s,i,o)}return xUe(e,r)}catch(n){throw et(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return RQ(this,void 0,void 0,function*(){try{if(_0())throw new gd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return wMe(r,n,s,i,e?.latest)}return SMe(e?.latest)}catch(r){throw Mt(`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 pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return GUe(r,n,s,i,e?.latest)}return qUe(e?.latest)}catch(r){throw et(`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 RQ(this,void 0,void 0,function*(){try{if(_0())throw new gd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return Zv(e,n,s,i,o)}return IMe(e)}catch(n){throw Mt(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return iF(e,n,s,i,o)}return LUe(e)}catch(n){throw et(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return RQ(this,void 0,void 0,function*(){try{if(_0())throw new gd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return BMe(e,i,n,s,o)}return bMe(e)}catch(n){throw Mt(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return pw(this,void 0,void 0,function*(){try{if(uE())throw new Md;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return PUe(e,i,n,s,o)}return OUe(e)}catch(n){throw et(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var wBr=new vE;import*as t_ from"path";import Nj from"fs";var h6t="dependency-graph_";async function xMe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await TMe(t,!1);return;case"generate-submit-and-upload":await TMe(t,!0);return;case"generate-and-upload":await f6t(t)}}catch(r){y6t(t,e,r)}}async function TMe(t,e){if(DMe()){de("Dependency graph not supported in the ACT environment.");return}let r=await RMe();try{await g6t(r)}catch(n){try{await Sj(r,t)}catch(s){de(String(s))}throw n}e&&await Sj(r,t)}async function f6t(t){if(DMe()){de("Dependency graph not supported in the ACT environment.");return}await Sj(await RMe(),t)}async function RMe(){let r=(await(await TU(`${E6t()}/**/*.json`)).glob()).filter(n=>!C6t(n));return r.forEach(I6t),de(`Found dependency graph files: ${r.join(", ")}`),r}async function Sj(t,e){if(t.length===0){de("No dependency graph files found to upload.");return}let r=Sy(),n=new vE;for(let s of t){let i=Tj(s);de(`Uploading dependency graph file: ${i}`);let o=`${h6t}${t_.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function g6t(t){if(t.length===0){de("No dependency graph files found to submit.");return}for(let e of t)try{await m6t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=p6t(e,r)),r}}function p6t(t,e){let n=`Dependency submission failed for ${Tj(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var NQr=new cC;import*as AF from"path";import uX from"fs";var WHt="dependency-graph_";async function WUe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await VUe(t,!1);return;case"generate-submit-and-upload":await VUe(t,!0);return;case"generate-and-upload":await JHt(t)}}catch(r){e9t(t,e,r)}}async function VUe(t,e){if(zUe()){se("Dependency graph not supported in the ACT environment.");return}let r=await JUe();try{await zHt(r)}catch(n){try{await cX(r,t)}catch(s){se(String(s))}throw n}e&&await cX(r,t)}async function JHt(t){if(zUe()){se("Dependency graph not supported in the ACT environment.");return}await cX(await JUe(),t)}async function JUe(){let r=(await(await UI(`${XHt()}/**/*.json`)).glob()).filter(n=>!ZHt(n));return r.forEach($Ht),se(`Found dependency graph files: ${r.join(", ")}`),r}async function cX(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=dB(),n=new cC;for(let s of t){let i=lX(s);se(`Uploading dependency graph file: ${i}`);let o=`${WHt}${AF.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zHt(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await KHt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jHt(e,r)),r}}function jHt(t,e){let n=`Dependency submission failed for ${lX(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.
`:n}async function m6t(t){let e=B6t(),r=Nj.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=dl.repo.owner,n.repo=dl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Tj(t);Yse(`Submitted ${i}: ${s.data.message}`)}function E6t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function C6t(t){let e=`${t}.processed`;return Nj.existsSync(e)}function I6t(t){let e=`${t}.processed`;Nj.writeFileSync(e,"")}function y6t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new v0(r);Mt(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function B6t(){return mo(Rx())}function Tj(t){let e=Sy();return t_.relative(e,t)}function DMe(){return process.env.ACT!==void 0}function Q6t(t=process.platform){return t==="win32"?50:0}async function kMe(t=process.platform){let e=Q6t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>GV(t));async function w6t(){try{Bhe(),yhe(),await _we(new Sx,new Nx)&&await xMe(new wx)}catch(t){GV(t)}await kMe()}w6t();export{w6t as run};
`:n}async function KHt(t){let e=t9t(),r=uX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Dl.repo.owner,n.repo=Dl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=lX(t);Loe(`Submitted ${i}: ${s.data.message}`)}function XHt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ZHt(t){let e=`${t}.processed`;return uX.existsSync(e)}function $Ht(t){let e=`${t}.processed`;uX.writeFileSync(e,"")}function e9t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new cE(r);et(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function t9t(){return yo(FR())}function lX(t){let e=dB();return AF.relative(e,t)}function zUe(){return process.env.ACT!==void 0}function n9t(t=process.platform){return t==="win32"?50:0}async function jUe(t=process.platform){let e=n9t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>wW(t));async function s9t(){try{Mge(),Fge(),await XSe(new DR,new kR)&&await WUe(new RR)}catch(t){wW(t)}await jUe()}s9t();export{s9t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js: