Update: Added option update-cache, and changed default action behavior to always use cached version without checking for a new one.
Test Action / test (push) Successful in 3s

This commit is contained in:
slawek committed 2026-01-11 08:05:18 +01:00
1 parent 03b8e6fa3b
commit ef971a6da4
3 files changed
+57 -32

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ inputs:
description: 'The type of the file to be downloaded (archive, package, or custom regex).'
required: false
default: 'archive'
update-cache:
description: 'How to handle the tool cache (false, true, or always). Defaults to false.'
required: false
default: 'false'
debug:
description: 'When set to true, displays the contents of the unpacked archive or directory.'
required: false
+25 -25
View File
@@ -1,65 +1,65 @@
"use strict";var Af=Object.create;var tQ=Object.defineProperty;var ef=Object.getOwnPropertyDescriptor;var tf=Object.getOwnPropertyNames;var rf=Object.getPrototypeOf,sf=Object.prototype.hasOwnProperty;var h=(A,e)=>()=>(e||A((e={exports:{}}).exports,e),e.exports);var nf=(A,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of tf(e))!sf.call(A,s)&&s!==t&&tQ(A,s,{get:()=>e[s],enumerable:!(r=ef(e,s))||r.enumerable});return A};var cs=(A,e,t)=>(t=A!=null?Af(rf(A)):{},nf(e||!A||!A.__esModule?tQ(t,"default",{value:A,enumerable:!0}):t,A));var ii=h(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.toCommandProperties=Cr.toCommandValue=void 0;function of(A){return A==null?"":typeof A=="string"||A instanceof String?A:JSON.stringify(A)}Cr.toCommandValue=of;function Ef(A){return Object.keys(A).length?{title:A.title,file:A.file,line:A.startLine,endLine:A.endLine,col:A.startColumn,endColumn:A.endColumn}:{}}Cr.toCommandProperties=Ef});var nQ=h(pe=>{"use strict";var af=pe&&pe.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),gf=pe&&pe.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),Qf=pe&&pe.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&af(e,A,t);return gf(e,A),e};Object.defineProperty(pe,"__esModule",{value:!0});pe.issue=pe.issueCommand=void 0;var cf=Qf(require("os")),sQ=ii();function iQ(A,e,t){let r=new Bo(A,e,t);process.stdout.write(r.toString()+cf.EOL)}pe.issueCommand=iQ;function Cf(A,e=""){iQ(A,{},e)}pe.issue=Cf;var rQ="::",Bo=class{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e=rQ+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let s=this.properties[r];s&&(t?t=!1:e+=",",e+=`${r}=${If(s)}`)}}return e+=`${rQ}${Bf(this.message)}`,e}};function Bf(A){return(0,sQ.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function If(A){return(0,sQ.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});var aQ=h(we=>{"use strict";var hf=we&&we.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),lf=we&&we.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),ho=we&&we.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&hf(e,A,t);return lf(e,A),e};Object.defineProperty(we,"__esModule",{value:!0});we.prepareKeyValueMessage=we.issueFileCommand=void 0;var uf=ho(require("crypto")),oQ=ho(require("fs")),Io=ho(require("os")),EQ=ii();function ff(A,e){let t=process.env[`GITHUB_${A}`];if(!t)throw new Error(`Unable to find environment variable for file command ${A}`);if(!oQ.existsSync(t))throw new Error(`Missing file at path: ${t}`);oQ.appendFileSync(t,`${(0,EQ.toCommandValue)(e)}${Io.EOL}`,{encoding:"utf8"})}we.issueFileCommand=ff;function df(A,e){let t=`ghadelimiter_${uf.randomUUID()}`,r=(0,EQ.toCommandValue)(e);if(A.includes(t))throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`);return`${A}<<${t}${Io.EOL}${r}${Io.EOL}${t}`}we.prepareKeyValueMessage=df});var QQ=h(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.checkBypass=Br.getProxyUrl=void 0;function yf(A){let e=A.protocol==="https:";if(gQ(A))return;let t=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(t)try{return new ni(t)}catch{if(!t.startsWith("http://")&&!t.startsWith("https://"))return new ni(`http://${t}`)}else return}Br.getProxyUrl=yf;function gQ(A){if(!A.hostname)return!1;let e=A.hostname;if(pf(e))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;A.port?r=Number(A.port):A.protocol==="http:"?r=80:A.protocol==="https:"&&(r=443);let s=[A.hostname.toUpperCase()];typeof r=="number"&&s.push(`${s[0]}:${r}`);for(let i of t.split(",").map(n=>n.trim().toUpperCase()).filter(n=>n))if(i==="*"||s.some(n=>n===i||n.endsWith(`.${i}`)||i.startsWith(".")&&n.endsWith(`${i}`)))return!0;return!1}Br.checkBypass=gQ;functLine truncated
`,Q.message,Q.stack);var c=new Error("tunneling socket could not be established, cause="+Q.message);c.code="ECONNRESET",e.request.emit("error",c),r.removeSocket(s)}};ot.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(s){r.request.onSocket(s)})}};function CQ(A,e){var t=this;ot.prototype.createSocket.call(t,A,function(r){var s=A.request.getHeader("host"),i=uo({},t.options,{socket:r,servername:s?s.replace(/:.*$/,""):A.host}),n=wf.connect(0,i);t.sockets[t.sockets.indexOf(r)]=n,e(n)})}function BQ(A,e,t){return typeof A=="string"?{host:A,port:e,localAddress:t}:A}function uo(A){for(var e=1,t=arguments.length;e<t;++e){var r=arguments[e];if(typeof r=="object")for(var s=Object.keys(r),i=0,n=s.length;i<n;++i){var o=s[i];r[o]!==void 0&&(A[o]=r[o])}}return A}var Dt;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Dt=function(){var A=Array.prototype.slice.call(arguments);typeof A[0]=="string"?A[0]="TUNNEL: "+A[0]:A.unshift("TUNNEL:"),console.error.apply(console,A)}:Dt=function(){};Ir.debug=Dt});var lQ=h((fU,hQ)=>{hQ.exports=IQ()});var EA=h((dU,uQ)=>{uQ.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var eA=h((yU,fQ)=>{"use strict";var fA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},fo=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},yo=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},po=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},wo=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},Do=class A extends fA{constructor(e,t,r,s){super(e),Error.captureStackTrace(this,A),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=t,this.statusCode=t,this.headers=r}},Ro=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}},No=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}},mo=class A extends fA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="AbortError",this.message=e Line truncated
`,Q.message,Q.stack);var c=new Error("tunneling socket could not be established, cause="+Q.message);c.code="ECONNRESET",e.request.emit("error",c),r.removeSocket(s)}};ot.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(s){r.request.onSocket(s)})}};function CQ(A,e){var t=this;ot.prototype.createSocket.call(t,A,function(r){var s=A.request.getHeader("host"),i=uo({},t.options,{socket:r,servername:s?s.replace(/:.*$/,""):A.host}),n=wf.connect(0,i);t.sockets[t.sockets.indexOf(r)]=n,e(n)})}function BQ(A,e,t){return typeof A=="string"?{host:A,port:e,localAddress:t}:A}function uo(A){for(var e=1,t=arguments.length;e<t;++e){var r=arguments[e];if(typeof r=="object")for(var s=Object.keys(r),i=0,n=s.length;i<n;++i){var o=s[i];r[o]!==void 0&&(A[o]=r[o])}}return A}var Dt;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Dt=function(){var A=Array.prototype.slice.call(arguments);typeof A[0]=="string"?A[0]="TUNNEL: "+A[0]:A.unshift("TUNNEL:"),console.error.apply(console,A)}:Dt=function(){};Ir.debug=Dt});var lQ=h((fU,hQ)=>{hQ.exports=IQ()});var EA=h((dU,uQ)=>{uQ.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var tA=h((yU,fQ)=>{"use strict";var yA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},fo=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},yo=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},po=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},wo=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},Do=class A extends yA{constructor(e,t,r,s){super(e),Error.captureStackTrace(this,A),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=t,this.statusCode=t,this.headers=r}},Ro=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}},No=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}},mo=class A extends yA{constructor(e){super(e),Error.captureStackTrace(this,A),this.name="AbortError",this.message=e Line truncated
\r
`),Id=/\r\n/g,hd=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function lr(A){VQ.call(this),A=A||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=HQ(A,"maxHeaderPairs",2e3),this.maxHeaderSize=HQ(A,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new Cd(Bd),this.ss.on("info",function(t,r,s,i){r&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=r.toString("binary",s,i)),t&&e._finish()})}cd(lr,VQ);lr.prototype.push=function(A){let e=this.ss.push(A);if(this.finished)return e};lr.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};lr.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)};lr.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let A=this.buffer.split(Id),e=A.length,t,r;for(var s=0;s<e;++s){if(A[s].length===0)continue;if((A[s][0]===" "||A[s][0]===" ")&&r){this.header[r][this.header[r].length-1]+=A[s];continue}let i=A[s].indexOf(":");if(i===-1||i===0)return;if(t=hd.exec(A[s]),r=t[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(t[2]||""),++this.npairs===this.maxHeaderPairs)break}};qQ.exports=lr});var Po=h((kU,PQ)=>{"use strict";var Wo=require("node:stream").Writable,ld=require("node:util").inherits,ud=qo(),WQ=JQ(),fd=OQ(),dd=45,yd=Buffer.from("-"),pd=Buffer.from(`\r
`),wd=function(){};function xe(A){if(!(this instanceof xe))return new xe(A);if(Wo.call(this,A),!A||!A.headerFirst&&typeof A.boundary!="string")throw new TypeError("Boundary required");typeof A.boundary=="string"?this.setBoundary(A.boundary):this._bparser=void 0,this._headerFirst=A.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:A.partHwm},this._pause=!1;let e=this;this._hparser=new fd(A),this._hparser.on("header",function(t){e._inHeader=!1,e._part.emit("header",t)})}ld(xe,Wo);xe.prototype.emit=function(A){if(A==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else Wo.prototype.emit.apply(this,arguments)};xe.prototype._write=function(A,e,t){if(!this._hparser&&!this._bparser)return t();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new WQ(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(A);if(!this._inHeader&&r!==void 0&&r<A.length)A=A.slice(r);else return t()}this._firstWrite&&(this._bparser.push(pd),this._firstWrite=!1),this._bparser.push(A),this._pause?this._cb=t:t()};xe.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};xe.prototype.setBoundary=function(A){let e=this;this._bparser=new ud(`\r
--`+A),this._bparser.on("info",function(t,r,s,i){e._oninfo(t,r,s,i)})};xe.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",wd),this._part.resume())};xe.prototype._oninfo=function(A,e,t,r){let s,i=this,n=0,o,E=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&t+n<r;)if(e[t+n]===dd)++n,++this._dashes;else{this._dashes&&(s=yd),this._dashes=0;break}if(this._dashes===2&&(t+n<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(t+n,r)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new WQ(this._partOpts),this._part._read=function(g){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&t<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(E=this._part.push(s)),E=this._part.push(e.slice(t,r)),E||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),o=this._hparser.push(e.slice(t,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,t+o,r))),A&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:t!==r&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};xe.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let A=this._cb;this._cb=void 0,A()}};PQ.exports=xe});var ci=h((_o,ZQ)=>{"use strict";var _Q=new TextDecoder("utf-8"),XQ=new Map([["utf-8",_Q],["utf8",_Q]]);function Dd(A){let e;for(;;)switch(A){case"utf-8":case"utf8":return Bs.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return Bs.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return Bs.utf16le;case"base64":return Bs.base64;default:if(e===void 0){e=!0,A=A.toLowerCase();continue}return Bs.other.bind(A)}}var Bs={utf8:(A,e)=>A.length===0?"":(typeof A=="string"&&(A=Buffer.from(A,e)),A.utf8Slice(0,A.length)),latin1:(A,e)=>A.length===0?"":typeof A=="string"?A:A.latin1Slice(0,A.length),utf16le:(A,e)=>A.length===0?"":(typeof A=="string"&&(A=Buffer.from(A,e)),A.ucs2Slice(0,A.length)),base64:(A,e)=>A.length===0?"":(typeof A=="string"&&(A=Buffer.from(A,e)),A.base64Slice(0,A.length)),other:(A,e)=>{if(A.length===0)return"";if(typeof A=="string"&&(A=Buffer.from(A,e)),XQ.has(_o.toString()))try{return XQ.get(_o).decode(A)}catch{}return typeof A=="string"?A:A.toString()}};function Rd(A,e,t){return A&&Dd(t)(A,e)}ZQ.exports=Rd});var Zo=h((bU,Ac)=>{"use strict";var Ci=ci(),jQ=/%[a-fA-F0-9][a-fA-F0-9]/g,Nd={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function Ry(A,e){let{headersList:t}=e,r=(t.get("referrer-policy")??"").split(","),s="";if(r.length>0)for(let i=r.length;i!==0;i--){let n=r[i-1].trim();if(Qy.has(n)){s=n;break}}s!==""&&(A.referrerPolicy=s)}function Ny(){return"allowed"}function my(){return"success"}function Fy(){return"success"}function ky(A){let e=null;e=A.mode,A.headersList.set("sec-fetch-mode",e)}function by(A){let e=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket")e&&A.headersList.append("origin",e);else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":A.origin&&rE(A.origin)&&!rE(ls(A))&&(e=null);break;case"same-origin":ui(A,ls(A))||(e=null);break;default:}e&&A.headersList.append("origin",e)}}function Sy(A){return By.now()}function Uy(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Ly(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function My(A){return{referrerPolicy:A.referrerPolicy}}function xy(A){let e=A.referrerPolicy;pr(e);let t=null;if(A.referrer==="client"){let o=Cy();if(!o||o.origin==="null")return"no-referrer";t=new URL(o)}else A.referrer instanceof URL&&(t=A.referrer);let r=eE(t),s=eE(t,!0);r.toString().length>4096&&(r=s);let i=ui(A,r),n=hs(r)&&!hs(A.url);switch(e){case"origin":return s??eE(t,!0);case"unsafe-url":return r;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?r:s;case"strict-origin-when-cross-origin":{let o=ls(A);return ui(r,o)?r:hs(r)&&!hs(o)?"no-referrer":s}default:return n?"no-referrer":s}}function eE(A,e){return pr(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:"?"no-referrer":(A.username="",A.password="",A.hash="",e&&(A.pathname="",A.search=""),A)}function hs(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc"||A.protocol==="data:"||A.protocol==="file:")return!0;return e(A.origin);function e(t){if(t==null||t==="null")return!1;let r=new URL(t);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}function Yy(A,e){if(li===void 0)return!0;let t=mc(e);if(t==="no metadata"||t.length===0)return!0;let r=Gy(t),s=Jy(t,r);for(let i of s){let n=i.algo,o=i.hash,E=li.createHash(n).update(A).digest("base64");if(E[E.length-1]==="="&&(E[E.length-2]==="="?E=E.slice(0,-2):E=E.slice(0,-1)),vy(E,o))return!0}return!1}var Ty=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function mc(A){let e=[],t=!0;for(let r of A.split(" ")){t=!1;let s=Ty.exec(r);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();wc.includes(i)&&e.push(s.groups)}return t===!0?"no metadata":e}function Gy(A){let e=A[0].algo;if(e[3]==="5")return e;for(let t=1;t<A.length;++t){let r=A[t];if(r.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;r.algo[3]==="3"&&(e="sha384")}}return e}function Jy(A,e){if(A.length===1)return A;let t=0;for(let r=0;r<A.length;++r)A[r].algo===e&&(A[t++]=A[r]);return A.length=t,A}function vy(A,e){if(A.length!==e.length)return!1;for(let t=0;t<A.length;++t)if(A[t]!==e[t]){if(A[t]==="+"&&e[t]==="-"||A[t]==="/"&&e[t]==="_")continue;return!1}return!0}function Hy(A){}function ui(A,e){return A.origin===e.origin&&A.origin==="null"||A.protocol===e.protocol&&A.hostname===e.hostname&&A.port===e.port}function Vy(){let A,e;return{promise:new Promise((r,s)=>{A=r,e=s}),resolve:A,reject:e}}function qy(A){return A.controller.state==="aborted"}function Oy(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var sE={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(sE,null);function Wy(A){return sE[A.toLowerCase()]??A}function Py(A){let e=JSON.stringify(A);if(e===void 0)throw new TypeError("Value is not JSON serializable");return pr(typeof e=="string"),e}var _y=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Xy(A,e,t){let r={index:0,kind:t,target:A},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:n,target:o}=r,E=o(),g=E.length;if(i>=g)return{value:void 0,done:!0};let a=E[i];return r.index=i+1,Zy(a,n)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,_y),Object.setPrototypeOf({},s)}function Zy(A,e){let t;switch(e){case"key":{t=A[0];break}case"value":{t=A[1];break}case"key+value":{t Line truncated
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function Ry(A,e){let{headersList:t}=e,r=(t.get("referrer-policy")??"").split(","),s="";if(r.length>0)for(let i=r.length;i!==0;i--){let n=r[i-1].trim();if(Qy.has(n)){s=n;break}}s!==""&&(A.referrerPolicy=s)}function Ny(){return"allowed"}function my(){return"success"}function Fy(){return"success"}function ky(A){let e=null;e=A.mode,A.headersList.set("sec-fetch-mode",e)}function by(A){let e=A.origin;if(A.responseTainting==="cors"||A.mode==="websocket")e&&A.headersList.append("origin",e);else if(A.method!=="GET"&&A.method!=="HEAD"){switch(A.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":A.origin&&rE(A.origin)&&!rE(ls(A))&&(e=null);break;case"same-origin":ui(A,ls(A))||(e=null);break;default:}e&&A.headersList.append("origin",e)}}function Sy(A){return By.now()}function Uy(A){return{startTime:A.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:A.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Ly(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function My(A){return{referrerPolicy:A.referrerPolicy}}function xy(A){let e=A.referrerPolicy;pr(e);let t=null;if(A.referrer==="client"){let o=Cy();if(!o||o.origin==="null")return"no-referrer";t=new URL(o)}else A.referrer instanceof URL&&(t=A.referrer);let r=eE(t),s=eE(t,!0);r.toString().length>4096&&(r=s);let i=ui(A,r),n=hs(r)&&!hs(A.url);switch(e){case"origin":return s??eE(t,!0);case"unsafe-url":return r;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?r:s;case"strict-origin-when-cross-origin":{let o=ls(A);return ui(r,o)?r:hs(r)&&!hs(o)?"no-referrer":s}default:return n?"no-referrer":s}}function eE(A,e){return pr(A instanceof URL),A.protocol==="file:"||A.protocol==="about:"||A.protocol==="blank:"?"no-referrer":(A.username="",A.password="",A.hash="",e&&(A.pathname="",A.search=""),A)}function hs(A){if(!(A instanceof URL))return!1;if(A.href==="about:blank"||A.href==="about:srcdoc"||A.protocol==="data:"||A.protocol==="file:")return!0;return e(A.origin);function e(t){if(t==null||t==="null")return!1;let r=new URL(t);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}function Yy(A,e){if(li===void 0)return!0;let t=mc(e);if(t==="no metadata"||t.length===0)return!0;let r=Gy(t),s=Jy(t,r);for(let i of s){let n=i.algo,o=i.hash,E=li.createHash(n).update(A).digest("base64");if(E[E.length-1]==="="&&(E[E.length-2]==="="?E=E.slice(0,-2):E=E.slice(0,-1)),vy(E,o))return!0}return!1}var Ty=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function mc(A){let e=[],t=!0;for(let r of A.split(" ")){t=!1;let s=Ty.exec(r);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();wc.includes(i)&&e.push(s.groups)}return t===!0?"no metadata":e}function Gy(A){let e=A[0].algo;if(e[3]==="5")return e;for(let t=1;t<A.length;++t){let r=A[t];if(r.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;r.algo[3]==="3"&&(e="sha384")}}return e}function Jy(A,e){if(A.length===1)return A;let t=0;for(let r=0;r<A.length;++r)A[r].algo===e&&(A[t++]=A[r]);return A.length=t,A}function vy(A,e){if(A.length!==e.length)return!1;for(let t=0;t<A.length;++t)if(A[t]!==e[t]){if(A[t]==="+"&&e[t]==="-"||A[t]==="/"&&e[t]==="_")continue;return!1}return!0}function Hy(A){}function ui(A,e){return A.origin===e.origin&&A.origin==="null"||A.protocol===e.protocol&&A.hostname===e.hostname&&A.port===e.port}function Vy(){let A,e;return{promise:new Promise((r,s)=>{A=r,e=s}),resolve:A,reject:e}}function qy(A){return A.controller.state==="aborted"}function Oy(A){return A.controller.state==="aborted"||A.controller.state==="terminated"}var sE={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(sE,null);function Wy(A){return sE[A.toLowerCase()]??A}function Py(A){let e=JSON.stringify(A);if(e===void 0)throw new TypeError("Value is not JSON serializable");return pr(typeof e=="string"),e}var _y=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Xy(A,e,t){let r={index:0,kind:t,target:A},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:n,target:o}=r,E=o(),g=E.length;if(i>=g)return{value:void 0,done:!0};let a=E[i];return r.index=i+1,Zy(a,n)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,_y),Object.setPrototypeOf({},s)}function Zy(A,e){let t;switch(e){case"key":{t=A[0];break}case"value":{t=A[1];break}case"key+value":{t Line truncated
`||A===" "||A===" "}function iE(A,e=!0,t=!0){let r=0,s=A.length-1;if(e)for(;r<A.length&&Mc(A[r]);r++);if(t)for(;s>0&&Mc(A[s]);s--);return A.slice(r,s+1)}function xc(A){return A==="\r"||A===`
`||A===" "||A==="\f"||A===" "}function Bp(A,e=!0,t=!0){let r=0,s=A.length-1;if(e)for(;r<A.length&&xc(A[r]);r++);if(t)for(;s>0&&xc(A[s]);s--);return A.slice(r,s+1)}Jc.exports={dataURLProcessor:gp,URLSerializer:Yc,collectASequenceOfCodePoints:yi,collectASequenceOfCodePointsFast:wr,stringPercentDecode:Tc,parseMIMEType:nE,collectAnHTTPQuotedString:Gc,serializeAMimeType:Cp}});var pi=h((VU,Oc)=>{"use strict";var{Blob:Vc,File:vc}=require("buffer"),{types:oE}=require("util"),{kState:ge}=at(),{isBlobLike:qc}=De(),{webidl:Z}=qA(),{parseMIMEType:Ip,serializeAMimeType:hp}=Ye(),{kEnumerableProperty:Hc}=W(),lp=new TextEncoder,us=class A extends Vc{constructor(e,t,r={}){Z.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=Z.converters["sequence<BlobPart>"](e),t=Z.converters.USVString(t),r=Z.converters.FilePropertyBag(r);let s=t,i=r.type,n;A:{if(i){if(i=Ip(i),i==="failure"){i="";break A}i=hp(i).toLowerCase()}n=r.lastModified}super(up(e,r),{type:i}),this[ge]={name:s,lastModified:n,type:i}}get name(){return Z.brandCheck(this,A),this[ge].name}get lastModified(){return Z.brandCheck(this,A),this[ge].lastModified}get type(){return Z.brandCheck(this,A),this[ge].type}},EE=class A{constructor(e,t,r={}){let s=t,i=r.type,n=r.lastModified??Date.now();this[ge]={blobLike:e,name:s,type:i,lastModified:n}}stream(...e){return Z.brandCheck(this,A),this[ge].blobLike.stream(...e)}arrayBuffer(...e){return Z.brandCheck(this,A),this[ge].blobLike.arrayBuffer(...e)}slice(...e){return Z.brandCheck(this,A),this[ge].blobLike.slice(...e)}text(...e){return Z.brandCheck(this,A),this[ge].blobLike.text(...e)}get size(){return Z.brandCheck(this,A),this[ge].blobLike.size}get type(){return Z.brandCheck(this,A),this[ge].blobLike.type}get name(){return Z.brandCheck(this,A),this[ge].name}get lastModified(){return Z.brandCheck(this,A),this[ge].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(us.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:Hc,lastModified:Hc});Z.converters.Blob=Z.interfaceConverter(Vc);Z.converters.BlobPart=function(A,e){if(Z.util.Type(A)==="Object"){if(qc(A))return Z.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||oE.isAnyArrayBuffer(A))return Z.converters.BufferSource(A,e)}return Z.converters.USVString(A,e)};Z.converters["sequence<BlobPart>"]=Z.sequenceConverter(Z.converters.BlobPart);Z.converters.FilePropertyBag=Z.dictionaryConverter([{key:"lastModified",converter:Z.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:Z.converters.DOMString,defaultValue:""},{key:"endings",converter:A=>(A=Z.converters.DOMString(A),A=A.toLowerCase(),A!=="native"&&(A="transparent"),A),defaultValue:"transparent"}]);function up(A,e){let t=[];for(let r of A)if(typeof r=="string"){let s=r;e.endings==="native"&&(s=fp(s)),t.push(lp.encode(s))}else oE.isAnyArrayBuffer(r)||oE.isTypedArray(r)?r.buffer?t.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):t.push(new Uint8Array(r)):qc(r)&&t.push(r);return t}function fp(A){let e=`
`||A===" "||A==="\f"||A===" "}function Bp(A,e=!0,t=!0){let r=0,s=A.length-1;if(e)for(;r<A.length&&xc(A[r]);r++);if(t)for(;s>0&&xc(A[s]);s--);return A.slice(r,s+1)}Jc.exports={dataURLProcessor:gp,URLSerializer:Yc,collectASequenceOfCodePoints:yi,collectASequenceOfCodePointsFast:wr,stringPercentDecode:Tc,parseMIMEType:nE,collectAnHTTPQuotedString:Gc,serializeAMimeType:Cp}});var pi=h((VU,Oc)=>{"use strict";var{Blob:Vc,File:vc}=require("buffer"),{types:oE}=require("util"),{kState:ge}=at(),{isBlobLike:qc}=De(),{webidl:Z}=OA(),{parseMIMEType:Ip,serializeAMimeType:hp}=Ye(),{kEnumerableProperty:Hc}=W(),lp=new TextEncoder,us=class A extends Vc{constructor(e,t,r={}){Z.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=Z.converters["sequence<BlobPart>"](e),t=Z.converters.USVString(t),r=Z.converters.FilePropertyBag(r);let s=t,i=r.type,n;A:{if(i){if(i=Ip(i),i==="failure"){i="";break A}i=hp(i).toLowerCase()}n=r.lastModified}super(up(e,r),{type:i}),this[ge]={name:s,lastModified:n,type:i}}get name(){return Z.brandCheck(this,A),this[ge].name}get lastModified(){return Z.brandCheck(this,A),this[ge].lastModified}get type(){return Z.brandCheck(this,A),this[ge].type}},EE=class A{constructor(e,t,r={}){let s=t,i=r.type,n=r.lastModified??Date.now();this[ge]={blobLike:e,name:s,type:i,lastModified:n}}stream(...e){return Z.brandCheck(this,A),this[ge].blobLike.stream(...e)}arrayBuffer(...e){return Z.brandCheck(this,A),this[ge].blobLike.arrayBuffer(...e)}slice(...e){return Z.brandCheck(this,A),this[ge].blobLike.slice(...e)}text(...e){return Z.brandCheck(this,A),this[ge].blobLike.text(...e)}get size(){return Z.brandCheck(this,A),this[ge].blobLike.size}get type(){return Z.brandCheck(this,A),this[ge].blobLike.type}get name(){return Z.brandCheck(this,A),this[ge].name}get lastModified(){return Z.brandCheck(this,A),this[ge].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(us.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:Hc,lastModified:Hc});Z.converters.Blob=Z.interfaceConverter(Vc);Z.converters.BlobPart=function(A,e){if(Z.util.Type(A)==="Object"){if(qc(A))return Z.converters.Blob(A,{strict:!1});if(ArrayBuffer.isView(A)||oE.isAnyArrayBuffer(A))return Z.converters.BufferSource(A,e)}return Z.converters.USVString(A,e)};Z.converters["sequence<BlobPart>"]=Z.sequenceConverter(Z.converters.BlobPart);Z.converters.FilePropertyBag=Z.dictionaryConverter([{key:"lastModified",converter:Z.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:Z.converters.DOMString,defaultValue:""},{key:"endings",converter:A=>(A=Z.converters.DOMString(A),A=A.toLowerCase(),A!=="native"&&(A="transparent"),A),defaultValue:"transparent"}]);function up(A,e){let t=[];for(let r of A)if(typeof r=="string"){let s=r;e.endings==="native"&&(s=fp(s)),t.push(lp.encode(s))}else oE.isAnyArrayBuffer(r)||oE.isTypedArray(r)?r.buffer?t.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):t.push(new Uint8Array(r)):qc(r)&&t.push(r);return t}function fp(A){let e=`
`;return process.platform==="win32"&&(e=`\r
`),A.replace(/\r?\n/g,e)}function dp(A){return vc&&A instanceof vc||A instanceof us||A&&(typeof A.stream=="function"||typeof A.arrayBuffer=="function")&&A[Symbol.toStringTag]==="File"}Oc.exports={File:us,FileLike:EE,isFileLike:dp}});var Di=h((qU,Zc)=>{"use strict";var{isBlobLike:wi,toUSVString:yp,makeIterator:aE}=De(),{kState:GA}=at(),{File:Xc,FileLike:Wc,isFileLike:pp}=pi(),{webidl:$}=qA(),{Blob:wp,File:gE}=require("buffer"),Pc=gE??Xc,Dr=class A{constructor(e){if(e!==void 0)throw $.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[GA]=[]}append(e,t,r=void 0){if($.brandCheck(this,A),$.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!wi(t))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=$.converters.USVString(e),t=wi(t)?$.converters.Blob(t,{strict:!1}):$.converters.USVString(t),r=arguments.length===3?$.converters.USVString(r):void 0;let s=_c(e,t,r);this[GA].push(s)}delete(e){$.brandCheck(this,A),$.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=$.converters.USVString(e),this[GA]=this[GA].filter(t=>t.name!==e)}get(e){$.brandCheck(this,A),$.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=$.converters.USVString(e);let t=this[GA].findIndex(r=>r.name===e);return t===-1?null:this[GA][t].value}getAll(e){return $.brandCheck(this,A),$.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=$.converters.USVString(e),this[GA].filter(t=>t.name===e).map(t=>t.value)}has(e){return $.brandCheck(this,A),$.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=$.converters.USVString(e),this[GA].findIndex(t=>t.name===e)!==-1}set(e,t,r=void 0){if($.brandCheck(this,A),$.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!wi(t))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=$.converters.USVString(e),t=wi(t)?$.converters.Blob(t,{strict:!1}):$.converters.USVString(t),r=arguments.length===3?yp(r):void 0;let s=_c(e,t,r),i=this[GA].findIndex(n=>n.name===e);i!==-1?this[GA]=[...this[GA].slice(0,i),s,...this[GA].slice(i+1).filter(n=>n.name!==e)]:this[GA].push(s)}entries(){return $.brandCheck(this,A),aE(()=>this[GA].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return $.brandCheck(this,A),aE(()=>this[GA].map(e=>[e.name,e.value]),"FormData","key")}values(){return $.brandCheck(this,A),aE(()=>this[GA].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,t=globalThis){if($.brandCheck(this,A),$.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,s]of this)e.apply(t,[s,r,this])}};Dr.prototype[Symbol.iterator]=Dr.prototype.entries;Object.defineProperties(Dr.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function _c(A,e,t){if(A=Buffer.from(A).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(pp(e)||(e=e instanceof wp?new Pc([e],"blob",{type:e.type}):new Wc(e,"blob",{type:e.type})),t!==void 0){let r={type:e.type,lastModified:e.lastModified};e=gE&&e instanceof gE||e instanceof Xc?new Pc([e],t,r):new Wc(e,t,r)}return{name:A,value:e}}Zc.exports={FormData:Dr}});var fs=h((OU,sC)=>{"use strict";var Dp=Cc(),Rr=W(),{ReadableStreamFrom:Rp,isBlobLike:jc,isReadableStreamLike:Np,readableStreamClose:mp,createDeferredPromise:Fp,fullyReadBody:kp}=De(),{FormData:Kc}=Di(),{kState:Qt}=at(),{webidl:QE}=qA(),{DOMException:AC,structuredClone:bp}=mt(),{Blob:Sp,File:Up}=require("buffer"),{kBodyUsed:Lp}=EA(),cE=require("assert"),{isErrored:Mp}=W(),{isUint8Array:eC,isArrayBuffer:xp}=require("util/types"),{File:Yp}=pi(),{parseMIMEType:Tp,serializeAMimeType:Gp}=Ye(),CE;try{let A=require("node:crypto");CE=e=>A.randomInt(0,e)}catch{CE=A=>Math.floor(Math.random(A))}var gt=globalThis.ReadableStream,zc=Up??Yp,Ri=new TextEncoder,Jp=new TextDecoder;function tC(A,e=!1){gt||(gt=require("stream/web").ReadableStream);let t=null;A instanceof gt?t=A:jc(A)?t=A.stream():t=new gt({async pull(E){E.enqueue(typeof s=="string"?Ri.encode(s):s),queueMicrotask(()=>mp(E))},start(){},type:void 0}),cE(Np(t));let r=null,s=null,i=null,n=null;if(typeof A=="string")s=A,n="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)s=A.toString(),n="application/x-www-form-urlencoded;charset=UTF-8";else if(xp(A))s=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))s=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(Rr.isFormDataLike(A)){let E=`----formdata-undici-0${`${CE(1e11)}`.padStart(11,"0")}`,g=`--${E}\r
`),A.replace(/\r?\n/g,e)}function dp(A){return vc&&A instanceof vc||A instanceof us||A&&(typeof A.stream=="function"||typeof A.arrayBuffer=="function")&&A[Symbol.toStringTag]==="File"}Oc.exports={File:us,FileLike:EE,isFileLike:dp}});var Di=h((qU,Zc)=>{"use strict";var{isBlobLike:wi,toUSVString:yp,makeIterator:aE}=De(),{kState:JA}=at(),{File:Xc,FileLike:Wc,isFileLike:pp}=pi(),{webidl:AA}=OA(),{Blob:wp,File:gE}=require("buffer"),Pc=gE??Xc,Dr=class A{constructor(e){if(e!==void 0)throw AA.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[JA]=[]}append(e,t,r=void 0){if(AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!wi(t))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=AA.converters.USVString(e),t=wi(t)?AA.converters.Blob(t,{strict:!1}):AA.converters.USVString(t),r=arguments.length===3?AA.converters.USVString(r):void 0;let s=_c(e,t,r);this[JA].push(s)}delete(e){AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=AA.converters.USVString(e),this[JA]=this[JA].filter(t=>t.name!==e)}get(e){AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=AA.converters.USVString(e);let t=this[JA].findIndex(r=>r.name===e);return t===-1?null:this[JA][t].value}getAll(e){return AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=AA.converters.USVString(e),this[JA].filter(t=>t.name===e).map(t=>t.value)}has(e){return AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=AA.converters.USVString(e),this[JA].findIndex(t=>t.name===e)!==-1}set(e,t,r=void 0){if(AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!wi(t))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=AA.converters.USVString(e),t=wi(t)?AA.converters.Blob(t,{strict:!1}):AA.converters.USVString(t),r=arguments.length===3?yp(r):void 0;let s=_c(e,t,r),i=this[JA].findIndex(n=>n.name===e);i!==-1?this[JA]=[...this[JA].slice(0,i),s,...this[JA].slice(i+1).filter(n=>n.name!==e)]:this[JA].push(s)}entries(){return AA.brandCheck(this,A),aE(()=>this[JA].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return AA.brandCheck(this,A),aE(()=>this[JA].map(e=>[e.name,e.value]),"FormData","key")}values(){return AA.brandCheck(this,A),aE(()=>this[JA].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,t=globalThis){if(AA.brandCheck(this,A),AA.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,s]of this)e.apply(t,[s,r,this])}};Dr.prototype[Symbol.iterator]=Dr.prototype.entries;Object.defineProperties(Dr.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function _c(A,e,t){if(A=Buffer.from(A).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(pp(e)||(e=e instanceof wp?new Pc([e],"blob",{type:e.type}):new Wc(e,"blob",{type:e.type})),t!==void 0){let r={type:e.type,lastModified:e.lastModified};e=gE&&e instanceof gE||e instanceof Xc?new Pc([e],t,r):new Wc(e,t,r)}return{name:A,value:e}}Zc.exports={FormData:Dr}});var fs=h((OU,sC)=>{"use strict";var Dp=Cc(),Rr=W(),{ReadableStreamFrom:Rp,isBlobLike:jc,isReadableStreamLike:Np,readableStreamClose:mp,createDeferredPromise:Fp,fullyReadBody:kp}=De(),{FormData:Kc}=Di(),{kState:Qt}=at(),{webidl:QE}=OA(),{DOMException:AC,structuredClone:bp}=mt(),{Blob:Sp,File:Up}=require("buffer"),{kBodyUsed:Lp}=EA(),cE=require("assert"),{isErrored:Mp}=W(),{isUint8Array:eC,isArrayBuffer:xp}=require("util/types"),{File:Yp}=pi(),{parseMIMEType:Tp,serializeAMimeType:Gp}=Ye(),CE;try{let A=require("node:crypto");CE=e=>A.randomInt(0,e)}catch{CE=A=>Math.floor(Math.random(A))}var gt=globalThis.ReadableStream,zc=Up??Yp,Ri=new TextEncoder,Jp=new TextDecoder;function tC(A,e=!1){gt||(gt=require("stream/web").ReadableStream);let t=null;A instanceof gt?t=A:jc(A)?t=A.stream():t=new gt({async pull(E){E.enqueue(typeof s=="string"?Ri.encode(s):s),queueMicrotask(()=>mp(E))},start(){},type:void 0}),cE(Np(t));let r=null,s=null,i=null,n=null;if(typeof A=="string")s=A,n="text/plain;charset=UTF-8";else if(A instanceof URLSearchParams)s=A.toString(),n="application/x-www-form-urlencoded;charset=UTF-8";else if(xp(A))s=new Uint8Array(A.slice());else if(ArrayBuffer.isView(A))s=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength));else if(Rr.isFormDataLike(A)){let E=`----formdata-undici-0${`${CE(1e11)}`.padStart(11,"0")}`,g=`--${E}\r
Content-Disposition: form-data`;let a=u=>u.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),Q=u=>u.replace(/\r?\n|\r/g,`\r
`),c=[],B=new Uint8Array([13,10]);i=0;let C=!1;for(let[u,d]of A)if(typeof d=="string"){let R=Ri.encode(g+`; name="${a(Q(u))}"\r
`),c=[],B=new Uint8Array([13,10]);i=0;let C=!1;for(let[u,y]of A)if(typeof y=="string"){let R=Ri.encode(g+`; name="${a(Q(u))}"\r
\r
${Q(d)}\r
`);c.push(R),i+=R.byteLength}else{let R=Ri.encode(`${g}; name="${a(Q(u))}"`+(d.name?`; filename="${a(d.name)}"`:"")+`\r
Content-Type: ${d.type||"application/octet-stream"}\r
${Q(y)}\r
`);c.push(R),i+=R.byteLength}else{let R=Ri.encode(`${g}; name="${a(Q(u))}"`+(y.name?`; filename="${a(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);c.push(R,d,B),typeof d.size=="number"?i+=R.byteLength+d.size+B.byteLength:C=!0}let f=Ri.encode(`--${E}--`);c.push(f),i+=f.byteLength,C&&(i=null),s=A,r=async function*(){for(let u of c)u.stream?yield*u.stream():yield u},n="multipart/form-data; boundary="+E}else if(jc(A))s=A,i=A.size,A.type&&(n=A.type);else if(typeof A[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Rr.isDisturbed(A)||A.locked)throw new TypeError("Response body object should not be disturbed or locked");t=A instanceof gt?A:Rp(A)}if((typeof s=="string"||Rr.isBuffer(s))&&(i=Buffer.byteLength(s)),r!=null){let E;t=new gt({async start(){E=r(A)[Symbol.asyncIterator]()},async pull(g){let{value:a,done:Q}=await E.next();return Q?queueMicrotask(()=>{g.close()}):Mp(t)||g.enqueue(new Uint8Array(a)),g.desiredSize>0},async cancel(g){await E.return()},type:void 0})}return[{stream:t,source:s,length:i},n]}function vp(A,e=!1){return gt||(gt=require("stream/web").ReadableStream),A instanceof gt&&(cE(!Rr.isDisturbed(A),"The body has already been consumed."),cE(!A.locked,"The stream is locked.")),tC(A,e)}function Hp(A){let[e,t]=A.stream.tee(),r=bp(t,{transfer:[t]}),[,s]=r.tee();return A.stream=e,{stream:s,length:A.length,source:A.source}}async function*$c(A){if(A)if(eC(A))yield A;else{let e=A.stream;if(Rr.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[Lp]=!0,yield*e}}function BE(A){if(A.aborted)throw new AC("The operation was aborted.","AbortError")}function Vp(A){return{blob(){return Ni(this,t=>{let r=Pp(this);return r==="failure"?r="":r&&(r=Gp(r)),new Sp([t],{type:r})},A)},arrayBuffer(){return Ni(this,t=>new Uint8Array(t).buffer,A)},text(){return Ni(this,rC,A)},json(){return Ni(this,Wp,A)},async formData(){QE.brandCheck(this,A),BE(this[Qt]);let t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){let r={};for(let[o,E]of this.headers)r[o.toLowerCase()]=E;let s=new Kc,i;try{i=new Dp({headers:r,preservePath:!0})}catch(o){throw new AC(`${o}`,"AbortError")}i.on("field",(o,E)=>{s.append(o,E)}),i.on("file",(o,E,g,a,Q)=>{let c=[];if(a==="base64"||a.toLowerCase()==="base64"){let B="";E.on("data",C=>{B+=C.toString().replace(/[\r\n]/gm,"");let f=B.length-B.length%4;c.push(Buffer.from(B.slice(0,f),"base64")),B=B.slice(f)}),E.on("end",()=>{c.push(Buffer.from(B,"base64")),s.append(o,new zc(c,g,{type:Q}))})}else E.on("data",B=>{c.push(B)}),E.on("end",()=>{s.append(o,new zc(c,g,{type:Q}))})});let n=new Promise((o,E)=>{i.on("finish",o),i.on("error",g=>E(new TypeError(g)))});if(this.body!==null)for await(let o of $c(this[Qt].body))i.write(o);return i.end(),await n,s}else if(/application\/x-www-form-urlencoded/.test(t)){let r;try{let i="",n=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of $c(this[Qt].body)){if(!eC(o))throw new TypeError("Expected Uint8Array chunk");i+=n.decode(o,{stream:!0})}i+=n.decode(),r=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new Kc;for(let[i,n]of r)s.append(i,n);return s}else throw await Promise.resolve(),BE(this[Qt]),QE.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function qp(A){Object.assign(A.prototype,Vp(A))}async function Ni(A,e,t){if(QE.brandCheck(A,t),BE(A[Qt]),Op(A[Qt].body))throw new TypeError("Body is unusable");let r=Fp(),s=n=>r.reject(n),i=n=>{try{r.resolve(e(n))}catch(o){s(o)}};return A[Qt].body==null?(i(new Uint8Array),r.promise):(await kp(A[Qt].body,i,s),r.promise)}function Op(A){return A!=null&&(A.stream.locked||Rr.isDisturbed(A.stream))}function rC(A){return A.length===0?"":(A[0]===239&&A[1]===187&&A[2]===191&&(A=A.subarray(3)),Jp.decode(A))}function Wp(A){return JSON.parse(rC(A))}function Pp(A){let{headersList:e}=A[Qt],t=e.get("content-type");return t===null?"failure":Tp(t)}sC.exports={extractBody:tC,safelyExtractBody:vp,cloneBody:Hp,mixinBody:qp}});var EC=h((WU,oC)=>{"use strict";var{InvalidArgumentError:iA,NotSupportedError:_p}=eA(),ct=require("assert"),{kHTTP2BuildRequest:Xp,kHTTP2CopyHeaders:Zp,kHTTP1BuildRequest:jp}=EA(),zA=W(),iC=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,nC=/[^\t\x20-\x7e\x80-\xff]/,Kp=/[^\u0021-\u00ff]/,Te=Symbol("handler"),RA={},IE;try{let A=require("diagnostics_channel");RA.create=A.channel("undici:request:create"),RA.bodySent=A.channel("undici:request:bodySent"),RA.headers=A.channel("undici:request:headers"),RA.trailers=A.channel("undici:request:trailers"),RA.error=A.channel("undici:request:error")}catch{RA.create={hasSubscribers:!1},RA.bodySent={hasSubscribers:!1},RA.headers={hasSubscribers:!1},RA.trailers={hasSubscribers:!1},RA.error={hasSubscribers:!1}}var hE=class A{constructor(e,{path:t,method:r,body:s,headers:i,query:n,idempotent:o,blocking:E,upgrade:g,headersTimeout:a,bodyTimeout:Q,reset:c,throwOnError:B,expectContinue:C},f){if(typeof t!="string")throw new iA("path must be a string");if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT")throw new iA("Line truncated
`),this.body=u.stream,this.contentLength=u.length}else zA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);zA.validateHandler(f,r,g),this.servername=zA.getServerName(this.host),this[Te]=f,RA.create.hasSubscribers&&RA.create.publish({request:this})}onBodySent(e){if(this[Te].onBodySent)try{return this[Te].onBodySent(e)}catch(t){this.abort(t)}}onRequestSent(){if(RA.bodySent.hasSubscribers&&RA.bodySent.publish({request:this}),this[Te].onRequestSent)try{return this[Te].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(ct(!this.aborted),ct(!this.completed),this.error)e(this.error);else return this.abort=e,this[Te].onConnect(e)}onHeaders(e,t,r,s){ct(!this.aborted),ct(!this.completed),RA.headers.hasSubscribers&&RA.headers.publish({request:this,response:{statusCode:e,headers:t,statusText:s}});try{return this[Te].onHeaders(e,t,r,s)}catch(i){this.abort(i)}}onData(e){ct(!this.aborted),ct(!this.completed);try{return this[Te].onData(e)}catch(t){return this.abort(t),!1}}onUpgrade(e,t,r){return ct(!this.aborted),ct(!this.completed),this[Te].onUpgrade(e,t,r)}onComplete(e){this.onFinally(),ct(!this.aborted),this.completed=!0,RA.trailers.hasSubscribers&&RA.trailers.publish({request:this,trailers:e});try{return this[Te].onComplete(e)}catch(t){this.onError(t)}}onError(e){if(this.onFinally(),RA.error.hasSubscribers&&RA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Te].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,t){return ds(this,e,t),this}static[jp](e,t,r){return new A(e,t,r)}static[Xp](e,t,r){let s=t.headers;t={...t,headers:null};let i=new A(e,t,r);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new iA("headers array must be even");for(let n=0;n<s.length;n+=2)ds(i,s[n],s[n+1],!0)}else if(s&&typeof s=="object"){let n=Object.keys(s);for(let o=0;o<n.length;o++){let E=n[o];ds(i,E,s[E],!0)}}else if(s!=null)throw new iA("headers must be an object or an array");return i}static[Zp](e){let t=e.split(`\r
`);c.push(R,y,B),typeof y.size=="number"?i+=R.byteLength+y.size+B.byteLength:C=!0}let d=Ri.encode(`--${E}--`);c.push(d),i+=d.byteLength,C&&(i=null),s=A,r=async function*(){for(let u of c)u.stream?yield*u.stream():yield u},n="multipart/form-data; boundary="+E}else if(jc(A))s=A,i=A.size,A.type&&(n=A.type);else if(typeof A[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Rr.isDisturbed(A)||A.locked)throw new TypeError("Response body object should not be disturbed or locked");t=A instanceof gt?A:Rp(A)}if((typeof s=="string"||Rr.isBuffer(s))&&(i=Buffer.byteLength(s)),r!=null){let E;t=new gt({async start(){E=r(A)[Symbol.asyncIterator]()},async pull(g){let{value:a,done:Q}=await E.next();return Q?queueMicrotask(()=>{g.close()}):Mp(t)||g.enqueue(new Uint8Array(a)),g.desiredSize>0},async cancel(g){await E.return()},type:void 0})}return[{stream:t,source:s,length:i},n]}function vp(A,e=!1){return gt||(gt=require("stream/web").ReadableStream),A instanceof gt&&(cE(!Rr.isDisturbed(A),"The body has already been consumed."),cE(!A.locked,"The stream is locked.")),tC(A,e)}function Hp(A){let[e,t]=A.stream.tee(),r=bp(t,{transfer:[t]}),[,s]=r.tee();return A.stream=e,{stream:s,length:A.length,source:A.source}}async function*$c(A){if(A)if(eC(A))yield A;else{let e=A.stream;if(Rr.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[Lp]=!0,yield*e}}function BE(A){if(A.aborted)throw new AC("The operation was aborted.","AbortError")}function Vp(A){return{blob(){return Ni(this,t=>{let r=Pp(this);return r==="failure"?r="":r&&(r=Gp(r)),new Sp([t],{type:r})},A)},arrayBuffer(){return Ni(this,t=>new Uint8Array(t).buffer,A)},text(){return Ni(this,rC,A)},json(){return Ni(this,Wp,A)},async formData(){QE.brandCheck(this,A),BE(this[Qt]);let t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){let r={};for(let[o,E]of this.headers)r[o.toLowerCase()]=E;let s=new Kc,i;try{i=new Dp({headers:r,preservePath:!0})}catch(o){throw new AC(`${o}`,"AbortError")}i.on("field",(o,E)=>{s.append(o,E)}),i.on("file",(o,E,g,a,Q)=>{let c=[];if(a==="base64"||a.toLowerCase()==="base64"){let B="";E.on("data",C=>{B+=C.toString().replace(/[\r\n]/gm,"");let d=B.length-B.length%4;c.push(Buffer.from(B.slice(0,d),"base64")),B=B.slice(d)}),E.on("end",()=>{c.push(Buffer.from(B,"base64")),s.append(o,new zc(c,g,{type:Q}))})}else E.on("data",B=>{c.push(B)}),E.on("end",()=>{s.append(o,new zc(c,g,{type:Q}))})});let n=new Promise((o,E)=>{i.on("finish",o),i.on("error",g=>E(new TypeError(g)))});if(this.body!==null)for await(let o of $c(this[Qt].body))i.write(o);return i.end(),await n,s}else if(/application\/x-www-form-urlencoded/.test(t)){let r;try{let i="",n=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of $c(this[Qt].body)){if(!eC(o))throw new TypeError("Expected Uint8Array chunk");i+=n.decode(o,{stream:!0})}i+=n.decode(),r=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new Kc;for(let[i,n]of r)s.append(i,n);return s}else throw await Promise.resolve(),BE(this[Qt]),QE.errors.exception({header:`${A.name}.formData`,message:"Could not parse content as FormData."})}}}function qp(A){Object.assign(A.prototype,Vp(A))}async function Ni(A,e,t){if(QE.brandCheck(A,t),BE(A[Qt]),Op(A[Qt].body))throw new TypeError("Body is unusable");let r=Fp(),s=n=>r.reject(n),i=n=>{try{r.resolve(e(n))}catch(o){s(o)}};return A[Qt].body==null?(i(new Uint8Array),r.promise):(await kp(A[Qt].body,i,s),r.promise)}function Op(A){return A!=null&&(A.stream.locked||Rr.isDisturbed(A.stream))}function rC(A){return A.length===0?"":(A[0]===239&&A[1]===187&&A[2]===191&&(A=A.subarray(3)),Jp.decode(A))}function Wp(A){return JSON.parse(rC(A))}function Pp(A){let{headersList:e}=A[Qt],t=e.get("content-type");return t===null?"failure":Tp(t)}sC.exports={extractBody:tC,safelyExtractBody:vp,cloneBody:Hp,mixinBody:qp}});var EC=h((WU,oC)=>{"use strict";var{InvalidArgumentError:iA,NotSupportedError:_p}=tA(),ct=require("assert"),{kHTTP2BuildRequest:Xp,kHTTP2CopyHeaders:Zp,kHTTP1BuildRequest:jp}=EA(),$A=W(),iC=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,nC=/[^\t\x20-\x7e\x80-\xff]/,Kp=/[^\u0021-\u00ff]/,Te=Symbol("handler"),NA={},IE;try{let A=require("diagnostics_channel");NA.create=A.channel("undici:request:create"),NA.bodySent=A.channel("undici:request:bodySent"),NA.headers=A.channel("undici:request:headers"),NA.trailers=A.channel("undici:request:trailers"),NA.error=A.channel("undici:request:error")}catch{NA.create={hasSubscribers:!1},NA.bodySent={hasSubscribers:!1},NA.headers={hasSubscribers:!1},NA.trailers={hasSubscribers:!1},NA.error={hasSubscribers:!1}}var hE=class A{constructor(e,{path:t,method:r,body:s,headers:i,query:n,idempotent:o,blocking:E,upgrade:g,headersTimeout:a,bodyTimeout:Q,reset:c,throwOnError:B,expectContinue:C},d){if(typeof t!="string")throw new iA("path must be a string");if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT")throw new iA("Line truncated
`),this.body=u.stream,this.contentLength=u.length}else $A.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);$A.validateHandler(d,r,g),this.servername=$A.getServerName(this.host),this[Te]=d,NA.create.hasSubscribers&&NA.create.publish({request:this})}onBodySent(e){if(this[Te].onBodySent)try{return this[Te].onBodySent(e)}catch(t){this.abort(t)}}onRequestSent(){if(NA.bodySent.hasSubscribers&&NA.bodySent.publish({request:this}),this[Te].onRequestSent)try{return this[Te].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(ct(!this.aborted),ct(!this.completed),this.error)e(this.error);else return this.abort=e,this[Te].onConnect(e)}onHeaders(e,t,r,s){ct(!this.aborted),ct(!this.completed),NA.headers.hasSubscribers&&NA.headers.publish({request:this,response:{statusCode:e,headers:t,statusText:s}});try{return this[Te].onHeaders(e,t,r,s)}catch(i){this.abort(i)}}onData(e){ct(!this.aborted),ct(!this.completed);try{return this[Te].onData(e)}catch(t){return this.abort(t),!1}}onUpgrade(e,t,r){return ct(!this.aborted),ct(!this.completed),this[Te].onUpgrade(e,t,r)}onComplete(e){this.onFinally(),ct(!this.aborted),this.completed=!0,NA.trailers.hasSubscribers&&NA.trailers.publish({request:this,trailers:e});try{return this[Te].onComplete(e)}catch(t){this.onError(t)}}onError(e){if(this.onFinally(),NA.error.hasSubscribers&&NA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Te].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,t){return ds(this,e,t),this}static[jp](e,t,r){return new A(e,t,r)}static[Xp](e,t,r){let s=t.headers;t={...t,headers:null};let i=new A(e,t,r);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new iA("headers array must be even");for(let n=0;n<s.length;n+=2)ds(i,s[n],s[n+1],!0)}else if(s&&typeof s=="object"){let n=Object.keys(s);for(let o=0;o<n.length;o++){let E=n[o];ds(i,E,s[E],!0)}}else if(s!=null)throw new iA("headers must be an object or an array");return i}static[Zp](e){let t=e.split(`\r
`),r={};for(let s of t){let[i,n]=s.split(": ");n==null||n.length===0||(r[i]?r[i]+=`,${n}`:r[i]=n)}return r}};function Wt(A,e,t){if(e&&typeof e=="object")throw new iA(`invalid ${A} header`);if(e=e!=null?`${e}`:"",nC.exec(e)!==null)throw new iA(`invalid ${A} header`);return t?e:`${A}: ${e}\r
`}function ds(A,e,t,r=!1){if(t&&typeof t=="object"&&!Array.isArray(t))throw new iA(`invalid ${e} header`);if(t===void 0)return;if(A.host===null&&e.length===4&&e.toLowerCase()==="host"){if(nC.exec(t)!==null)throw new iA(`invalid ${e} header`);A.host=t}else if(A.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(A.contentLength=parseInt(t,10),!Number.isFinite(A.contentLength))throw new iA("invalid content-length header")}else if(A.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")A.contentType=t,r?A.headers[e]=Wt(e,t,r):A.headers+=Wt(e,t);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new iA("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof t=="string"?t.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new iA("invalid connection header");s==="close"&&(A.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new iA("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new iA("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new _p("expect header not supported");if(iC.exec(e)===null)throw new iA("invalid header key");if(Array.isArray(t))for(let s=0;s<t.length;s++)r?A.headers[e]?A.headers[e]+=`,${Wt(e,t[s],r)}`:A.headers[e]=Wt(e,t[s],r):A.headers+=Wt(e,t[s]);else r?A.headers[e]=Wt(e,t,r):A.headers+=Wt(e,t)}}}oC.exports=hE});var mi=h((PU,aC)=>{"use strict";var zp=require("events"),lE=class extends zp{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};aC.exports=lE});var ps=h((_U,gC)=>{"use strict";var $p=mi(),{ClientDestroyedError:uE,ClientClosedError:Aw,InvalidArgumentError:Nr}=eA(),{kDestroy:ew,kClose:tw,kDispatch:fE,kInterceptors:Pt}=EA(),mr=Symbol("destroyed"),ys=Symbol("closed"),Ct=Symbol("onDestroyed"),Fr=Symbol("onClosed"),Fi=Symbol("Intercepted Dispatch"),dE=class extends $p{constructor(){super(),this[mr]=!1,this[Ct]=null,this[ys]=!1,this[Fr]=[]}get destroyed(){return this[mr]}get closed(){return this[ys]}get interceptors(){return this[Pt]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[Pt][t]!="function")throw new Nr("interceptor must be an function")}this[Pt]=e}close(e){if(e===void 0)return new Promise((r,s)=>{this.close((i,n)=>i?s(i):r(n))});if(typeof e!="function")throw new Nr("invalid callback");if(this[mr]){queueMicrotask(()=>e(new uE,null));return}if(this[ys]){this[Fr]?this[Fr].push(e):queueMicrotask(()=>e(null,null));return}this[ys]=!0,this[Fr].push(e);let t=()=>{let r=this[Fr];this[Fr]=null;for(let s=0;s<r.length;s++)r[s](null,null)};this[tw]().then(()=>this.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e=="function"&&(t=e,e=null),t===void 0)return new Promise((s,i)=>{this.destroy(e,(n,o)=>n?i(n):s(o))});if(typeof t!="function")throw new Nr("invalid callback");if(this[mr]){this[Ct]?this[Ct].push(t):queueMicrotask(()=>t(null,null));return}e||(e=new uE),this[mr]=!0,this[Ct]=this[Ct]||[],this[Ct].push(t);let r=()=>{let s=this[Ct];this[Ct]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[ew](e).then(()=>{queueMicrotask(r)})}[Fi](e,t){if(!this[Pt]||this[Pt].length===0)return this[Fi]=this[fE],this[fE](e,t);let r=this[fE].bind(this);for(let s=this[Pt].length-1;s>=0;s--)r=this[Pt][s](r);return this[Fi]=r,r(e,t)}dispatch(e,t){if(!t||typeof t!="object")throw new Nr("handler must be an object");try{if(!e||typeof e!="object")throw new Nr("opts must be an object.");if(this[mr]||this[Ct])throw new uE;if(this[ys])throw new Aw;return this[Fi](e,t)}catch(r){if(typeof t.onError!="function")throw new Nr("invalid onError method");return t.onError(r),!1}}};gC.exports=dE});var ws=h((jU,CC)=>{"use strict";var rw=require("net"),QC=require("assert"),cC=W(),{InvalidArgumentError:sw,ConnectTimeoutError:iw}=eA(),yE,pE;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?pE=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(t=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(t);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(t)})}get(e){let t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(t)),this._sessionRegistry.register(t,e))}}:pE=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,t)}}};function nw({allowH2:A,maxCachedSessions:e,socketPath:t,timeout:r,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new sw("maxCachedSessions must be a positive integer or zero");let i={path:t,...s},n=new pE(e??100);return r=r??1e4,A=A??!1,function({hostname:E,ho Line truncated
`,this[bC]=E??3e5,this[kC]=s??3e5,this[ks]=R??!0,this[Yw]=x,this[bs]=wA,this[kt]=null,this[UC]=uA>-1?uA:-1,this[Ke]="h1",this[ce]=null,this[Yi]=kA?{openStreams:0,maxConcurrentStreams:q??100}:null,this[LC]=`${this[MA].hostname}${this[MA].port?`:${this[MA].port}`:""}`,this[aA]=[],this[gA]=0,this[Qe]=0}get pipelining(){return this[St]}set pipelining(e){this[St]=e,Ce(this,!0)}get[Zt](){return this[aA].length-this[Qe]}get[CA](){return this[Qe]-this[gA]}get[Xt](){return this[aA].length-this[gA]}get[xw](){return!!this[hA]&&!this[br]&&!this[hA].destroyed}get[bE](){let e=this[hA];return e&&(e[OA]||e[ht]||e[Ur])||this[Xt]>=(this[St]||1)||this[Zt]>0}[Mw](e){TC(this),this.once("connect",e)}[Jw](e,t){let r=e.origin||this[MA].origin,s=this[Ke]==="h2"?kE[Hw](r,e,t):kE[qw](r,e,t);return this[aA].push(s),this[_t]||(m.bodyLength(s.body)==null&&m.isIterable(s.body)?(this[_t]=1,process.nextTick(Ce,this)):Ce(this,!0)),this[_t]&&this[bt]!==2&&this[bE]&&(this[bt]=2),this[bt]<2}async[Tw](){return new Promise(e=>{this[Xt]?this[kt]=e:e(null)})}async[Gw](e){return new Promise(t=>{let r=this[aA].splice(this[Qe]);for(let i=0;i<r.length;i++){let n=r[i];WA(this,n,e)}let s=()=>{this[kt]&&(this[kt](),this[kt]=null),t()};this[ce]!=null&&(m.destroy(this[ce],e),this[ce]=null,this[Yi]=null),this[hA]?m.destroy(this[hA].on("close",s),e):queueMicrotask(s),Ce(this)})}};function Kw(A){w(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hA][xA]=A,vi(this[je],A)}function zw(A,e,t){let r=new Ze(`HTTP/2: "frameError" received - type ${A}, code ${e}`);t===0&&(this[hA][xA]=r,vi(this[je],r))}function $w(){m.destroy(this,new Sr("other side closed")),m.destroy(this[hA],new Sr("other side closed"))}function AD(A){let e=this[je],t=new Ze(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(e[hA]=null,e[ce]=null,e.destroyed){w(this[Zt]===0);let r=e[aA].splice(e[gA]);for(let s=0;s<r.length;s++){let i=r[s];WA(this,i,t)}}else if(e[CA]>0){let r=e[aA][e[gA]];e[aA][e[gA]++]=null,WA(e,r,t)}e[Qe]=e[gA],w(e[CA]===0),e.emit("disconnect",e[MA],[e],t),Ce(e)}var Pe=IC(),eD=Si(),tD=Buffer.alloc(0);async function rD(){let A=process.env.JEST_WORKER_ID?NE():void 0,e;try{e=await WebAssembly.compile(Buffer.from(pC(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(A||NE(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(t,r,s)=>0,wasm_on_status:(t,r,s)=>{w.strictEqual(FA.ptr,t);let i=r-Xe+_e.byteOffset;return FA.onStatus(new Ui(_e.buffer,i,s))||0},wasm_on_message_begin:t=>(w.strictEqual(FA.ptr,t),FA.onMessageBegin()||0),wasm_on_header_field:(t,r,s)=>{w.strictEqual(FA.ptr,t);let i=r-Xe+_e.byteOffset;return FA.onHeaderField(new Ui(_e.buffer,i,s))||0},wasm_on_header_value:(t,r,s)=>{w.strictEqual(FA.ptr,t);let i=r-Xe+_e.byteOffset;return FA.onHeaderValue(new Ui(_e.buffer,i,s))||0},wasm_on_headers_complete:(t,r,s,i)=>(w.strictEqual(FA.ptr,t),FA.onHeadersComplete(r,!!s,!!i)||0),wasm_on_body:(t,r,s)=>{w.strictEqual(FA.ptr,t);let i=r-Xe+_e.byteOffset;return FA.onBody(new Ui(_e.buffer,i,s))||0},wasm_on_message_complete:t=>(w.strictEqual(FA.ptr,t),FA.onMessageComplete()||0)}})}var FE=null,LE=rD();LE.catch();var FA=null,_e=null,Li=0,Xe=null,Lr=1,xi=2,ME=3,xE=class{constructor(e,t,{exports:r}){w(Number.isFinite(e[Mi])&&e[Mi]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Pe.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Mi],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[UC]}setTimeout(e,t){this.timeoutType=t,e!==this.timeoutValue?(mE.clearTimeout(this.timeout),e?(this.timeout=mE.setTimeout(sD,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(w(this.ptr!=null),w(FA==null),this.llhttp.llhttp_resume(this.ptr),w(this.timeoutType===xi),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||tD),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){w(this.ptr!=null),w(FA==null),w(!this.paused);let{socket:t,llhttp:r}=this;e.length>Li&&(Xe&&r.free(Xe),Li=Math.ceil(e.length/4096)*4096,Xe=r.malloc(Li)),new Uint8Array(r.memory.buffer,Xe,Li).set(e);try{let s;try{_e=e,FA=this,s=r.llhttp_execute(this.ptr,Xe,e.length)}catch(n){throw n}finally{FA=null,_e=null}let i=r.llhttp_get_error_pos(this.ptr)-Xe;if(s===Pe.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Pe.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(i));else if(s!==Pe.ERROR.OK){let n=r.llhttp_get_error_reason(this.ptr),o="";if(n){let E=new Uint8Array(r.memory.buffer,n).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory. Line truncated
`}function ds(A,e,t,r=!1){if(t&&typeof t=="object"&&!Array.isArray(t))throw new iA(`invalid ${e} header`);if(t===void 0)return;if(A.host===null&&e.length===4&&e.toLowerCase()==="host"){if(nC.exec(t)!==null)throw new iA(`invalid ${e} header`);A.host=t}else if(A.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(A.contentLength=parseInt(t,10),!Number.isFinite(A.contentLength))throw new iA("invalid content-length header")}else if(A.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")A.contentType=t,r?A.headers[e]=Wt(e,t,r):A.headers+=Wt(e,t);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new iA("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof t=="string"?t.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new iA("invalid connection header");s==="close"&&(A.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new iA("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new iA("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new _p("expect header not supported");if(iC.exec(e)===null)throw new iA("invalid header key");if(Array.isArray(t))for(let s=0;s<t.length;s++)r?A.headers[e]?A.headers[e]+=`,${Wt(e,t[s],r)}`:A.headers[e]=Wt(e,t[s],r):A.headers+=Wt(e,t[s]);else r?A.headers[e]=Wt(e,t,r):A.headers+=Wt(e,t)}}}oC.exports=hE});var mi=h((PU,aC)=>{"use strict";var zp=require("events"),lE=class extends zp{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};aC.exports=lE});var ps=h((_U,gC)=>{"use strict";var $p=mi(),{ClientDestroyedError:uE,ClientClosedError:Aw,InvalidArgumentError:Nr}=tA(),{kDestroy:ew,kClose:tw,kDispatch:fE,kInterceptors:Pt}=EA(),mr=Symbol("destroyed"),ys=Symbol("closed"),Ct=Symbol("onDestroyed"),Fr=Symbol("onClosed"),Fi=Symbol("Intercepted Dispatch"),dE=class extends $p{constructor(){super(),this[mr]=!1,this[Ct]=null,this[ys]=!1,this[Fr]=[]}get destroyed(){return this[mr]}get closed(){return this[ys]}get interceptors(){return this[Pt]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[Pt][t]!="function")throw new Nr("interceptor must be an function")}this[Pt]=e}close(e){if(e===void 0)return new Promise((r,s)=>{this.close((i,n)=>i?s(i):r(n))});if(typeof e!="function")throw new Nr("invalid callback");if(this[mr]){queueMicrotask(()=>e(new uE,null));return}if(this[ys]){this[Fr]?this[Fr].push(e):queueMicrotask(()=>e(null,null));return}this[ys]=!0,this[Fr].push(e);let t=()=>{let r=this[Fr];this[Fr]=null;for(let s=0;s<r.length;s++)r[s](null,null)};this[tw]().then(()=>this.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e=="function"&&(t=e,e=null),t===void 0)return new Promise((s,i)=>{this.destroy(e,(n,o)=>n?i(n):s(o))});if(typeof t!="function")throw new Nr("invalid callback");if(this[mr]){this[Ct]?this[Ct].push(t):queueMicrotask(()=>t(null,null));return}e||(e=new uE),this[mr]=!0,this[Ct]=this[Ct]||[],this[Ct].push(t);let r=()=>{let s=this[Ct];this[Ct]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[ew](e).then(()=>{queueMicrotask(r)})}[Fi](e,t){if(!this[Pt]||this[Pt].length===0)return this[Fi]=this[fE],this[fE](e,t);let r=this[fE].bind(this);for(let s=this[Pt].length-1;s>=0;s--)r=this[Pt][s](r);return this[Fi]=r,r(e,t)}dispatch(e,t){if(!t||typeof t!="object")throw new Nr("handler must be an object");try{if(!e||typeof e!="object")throw new Nr("opts must be an object.");if(this[mr]||this[Ct])throw new uE;if(this[ys])throw new Aw;return this[Fi](e,t)}catch(r){if(typeof t.onError!="function")throw new Nr("invalid onError method");return t.onError(r),!1}}};gC.exports=dE});var ws=h((jU,CC)=>{"use strict";var rw=require("net"),QC=require("assert"),cC=W(),{InvalidArgumentError:sw,ConnectTimeoutError:iw}=tA(),yE,pE;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?pE=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(t=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(t);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(t)})}get(e){let t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(t)),this._sessionRegistry.register(t,e))}}:pE=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,t)}}};function nw({allowH2:A,maxCachedSessions:e,socketPath:t,timeout:r,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new sw("maxCachedSessions must be a positive integer or zero");let i={path:t,...s},n=new pE(e??100);return r=r??1e4,A=A??!1,function({hostname:E,ho Line truncated
`,this[bC]=E??3e5,this[kC]=s??3e5,this[ks]=R??!0,this[Yw]=Y,this[bs]=DA,this[kt]=null,this[UC]=dA>-1?dA:-1,this[Ke]="h1",this[ce]=null,this[Yi]=bA?{openStreams:0,maxConcurrentStreams:q??100}:null,this[LC]=`${this[xA].hostname}${this[xA].port?`:${this[xA].port}`:""}`,this[aA]=[],this[gA]=0,this[Qe]=0}get pipelining(){return this[St]}set pipelining(e){this[St]=e,Ce(this,!0)}get[Zt](){return this[aA].length-this[Qe]}get[IA](){return this[Qe]-this[gA]}get[Xt](){return this[aA].length-this[gA]}get[xw](){return!!this[uA]&&!this[br]&&!this[uA].destroyed}get[bE](){let e=this[uA];return e&&(e[WA]||e[ht]||e[Ur])||this[Xt]>=(this[St]||1)||this[Zt]>0}[Mw](e){TC(this),this.once("connect",e)}[Jw](e,t){let r=e.origin||this[xA].origin,s=this[Ke]==="h2"?kE[Hw](r,e,t):kE[qw](r,e,t);return this[aA].push(s),this[_t]||(F.bodyLength(s.body)==null&&F.isIterable(s.body)?(this[_t]=1,process.nextTick(Ce,this)):Ce(this,!0)),this[_t]&&this[bt]!==2&&this[bE]&&(this[bt]=2),this[bt]<2}async[Tw](){return new Promise(e=>{this[Xt]?this[kt]=e:e(null)})}async[Gw](e){return new Promise(t=>{let r=this[aA].splice(this[Qe]);for(let i=0;i<r.length;i++){let n=r[i];PA(this,n,e)}let s=()=>{this[kt]&&(this[kt](),this[kt]=null),t()};this[ce]!=null&&(F.destroy(this[ce],e),this[ce]=null,this[Yi]=null),this[uA]?F.destroy(this[uA].on("close",s),e):queueMicrotask(s),Ce(this)})}};function Kw(A){w(A.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uA][YA]=A,vi(this[je],A)}function zw(A,e,t){let r=new Ze(`HTTP/2: "frameError" received - type ${A}, code ${e}`);t===0&&(this[uA][YA]=r,vi(this[je],r))}function $w(){F.destroy(this,new Sr("other side closed")),F.destroy(this[uA],new Sr("other side closed"))}function AD(A){let e=this[je],t=new Ze(`HTTP/2: "GOAWAY" frame received with code ${A}`);if(e[uA]=null,e[ce]=null,e.destroyed){w(this[Zt]===0);let r=e[aA].splice(e[gA]);for(let s=0;s<r.length;s++){let i=r[s];PA(this,i,t)}}else if(e[IA]>0){let r=e[aA][e[gA]];e[aA][e[gA]++]=null,PA(e,r,t)}e[Qe]=e[gA],w(e[IA]===0),e.emit("disconnect",e[xA],[e],t),Ce(e)}var Pe=IC(),eD=Si(),tD=Buffer.alloc(0);async function rD(){let A=process.env.JEST_WORKER_ID?NE():void 0,e;try{e=await WebAssembly.compile(Buffer.from(pC(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(A||NE(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(t,r,s)=>0,wasm_on_status:(t,r,s)=>{w.strictEqual(kA.ptr,t);let i=r-Xe+_e.byteOffset;return kA.onStatus(new Ui(_e.buffer,i,s))||0},wasm_on_message_begin:t=>(w.strictEqual(kA.ptr,t),kA.onMessageBegin()||0),wasm_on_header_field:(t,r,s)=>{w.strictEqual(kA.ptr,t);let i=r-Xe+_e.byteOffset;return kA.onHeaderField(new Ui(_e.buffer,i,s))||0},wasm_on_header_value:(t,r,s)=>{w.strictEqual(kA.ptr,t);let i=r-Xe+_e.byteOffset;return kA.onHeaderValue(new Ui(_e.buffer,i,s))||0},wasm_on_headers_complete:(t,r,s,i)=>(w.strictEqual(kA.ptr,t),kA.onHeadersComplete(r,!!s,!!i)||0),wasm_on_body:(t,r,s)=>{w.strictEqual(kA.ptr,t);let i=r-Xe+_e.byteOffset;return kA.onBody(new Ui(_e.buffer,i,s))||0},wasm_on_message_complete:t=>(w.strictEqual(kA.ptr,t),kA.onMessageComplete()||0)}})}var FE=null,LE=rD();LE.catch();var kA=null,_e=null,Li=0,Xe=null,Lr=1,xi=2,ME=3,xE=class{constructor(e,t,{exports:r}){w(Number.isFinite(e[Mi])&&e[Mi]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Pe.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Mi],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[UC]}setTimeout(e,t){this.timeoutType=t,e!==this.timeoutValue?(mE.clearTimeout(this.timeout),e?(this.timeout=mE.setTimeout(sD,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(w(this.ptr!=null),w(kA==null),this.llhttp.llhttp_resume(this.ptr),w(this.timeoutType===xi),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||tD),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){w(this.ptr!=null),w(kA==null),w(!this.paused);let{socket:t,llhttp:r}=this;e.length>Li&&(Xe&&r.free(Xe),Li=Math.ceil(e.length/4096)*4096,Xe=r.malloc(Li)),new Uint8Array(r.memory.buffer,Xe,Li).set(e);try{let s;try{_e=e,kA=this,s=r.llhttp_execute(this.ptr,Xe,e.length)}catch(n){throw n}finally{kA=null,_e=null}let i=r.llhttp_get_error_pos(this.ptr)-Xe;if(s===Pe.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Pe.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(i));else if(s!==Pe.ERROR.OK){let n=r.llhttp_get_error_reason(this.ptr),o="";if(n){let E=new Uint8Array(r.memory.buffer,n).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory. Line truncated
`;return typeof i=="string"?C+=`host: ${i}\r
`:C+=A[NC],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:A[St]&&!B[OA]?C+=`connection: keep-alive\r
`:A[St]&&!B[WA]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,o&&(C+=o),JA.sendHeaders.hasSubscribers&&JA.sendHeaders.publish({request:e,headers:C,socket:B}),!t||Q===0?(c===0?B.write(`${C}content-length: 0\r
`,o&&(C+=o),vA.sendHeaders.hasSubscribers&&vA.sendHeaders.publish({request:e,headers:C,socket:B}),!t||Q===0?(c===0?B.write(`${C}content-length: 0\r
\r
`,"latin1"):(w(c===null,"no body must not have content length"),B.write(`${C}\r
`,"latin1")),e.onRequestSent()):m.isBuffer(t)?(w(c===t.byteLength,"buffer body must have content length"),B.cork(),B.write(`${C}content-length: ${c}\r
`,"latin1")),e.onRequestSent()):F.isBuffer(t)?(w(c===t.byteLength,"buffer body must have content length"),B.cork(),B.write(`${C}content-length: ${c}\r
\r
`,"latin1"),B.write(t),B.uncork(),e.onBodySent(t),e.onRequestSent(),a||(B[OA]=!0)):m.isBlobLike(t)?typeof t.stream=="function"?Gi({body:t.stream(),client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):vC({body:t,client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):m.isStream(t)?JC({body:t,client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):m.isIterable(t)?Gi({body:t,client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):w(!1),!0}function oD(A,e,t){let{body:r,method:s,path:i,host:n,upgrade:o,expectContinue:E,signal:g,headers:a}=t,Q;if(typeof a=="string"?Q=kE[Vw](a.trim()):Q=a,o)return WA(A,t,new Error("Upgrade not supported for H2")),!1;try{t.onConnect(R=>{t.aborted||t.completed||WA(A,t,R||new TE)})}catch(R){WA(A,t,R)}if(t.aborted)return!1;let c,B=A[Yi];if(Q[Ow]=n||A[LC],Q[Ww]=s,s==="CONNECT")return e.ref(),c=e.request(Q,{endStream:!1,signal:g}),c.id&&!c.pending?(t.onUpgrade(null,null,c),++B.openStreams):c.once("ready",()=>{t.onUpgrade(null,null,c),++B.openStreams}),c.once("close",()=>{B.openStreams-=1,B.openStreams===0&&e.unref()}),!0;Q[Pw]=i,Q[_w]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";r&&typeof r.read=="function"&&r.read(0);let f=m.bodyLength(r);if(f==null&&(f=t.contentLength),(f===0||!C)&&(f=null),GC(s)&&f>0&&t.contentLength!=null&&t.contentLength!==f){if(A[ks])return WA(A,t,new It),!1;process.emitWarning(new It)}f!=null&&(w(r,"no body must not have content length"),Q[Xw]=`${f}`),e.ref();let u=s==="GET"||s==="HEAD";return E?(Q[Zw]="100-continue",c=e.request(Q,{endStream:u,signal:g}),c.once("continue",d)):(c=e.request(Q,{endStream:u,signal:g}),d()),++B.openStreams,c.once("response",R=>{let{[jw]:F,...x}=R;t.onHeaders(Number(F),x,c.resume.bind(c),"")===!1&&c.pause()}),c.once("end",()=>{t.onComplete([])}),c.on("data",R=>{t.onData(R)===!1&&c.pause()}),c.once("close",()=>{B.openStreams-=1,B.openStreams===0&&e.unref()}),c.once("error",function(R){A[ce]&&!A[ce].destroyed&&!this.closed&&!this.destroyed&&(B.streams-=1,m.destroy(c,R))}),c.once("frameError",(R,F)=>{let x=new Ze(`HTTP/2: "frameError" received - type ${R}, code ${F}`);WA(A,t,x),A[ce]&&!A[ce].destroyed&&!this.closed&&!this.destroyed&&(B.streams-=1,m.destroy(c,x))}),!0;function d(){r?m.isBuffer(r)?(w(f===r.byteLength,"buffer body must have content length"),c.cork(),c.write(r),c.uncork(),c.end(),t.onBodySent(r),t.onRequestSent()):m.isBlobLike(r)?typeof r.stream=="function"?Gi({client:A,request:t,contentLength:f,h2stream:c,expectsPayload:C,body:r.stream(),socket:A[hA],header:""}):vC({body:r,client:A,request:t,contentLength:f,expectsPayload:C,h2stream:c,header:"",socket:A[hA]}):m.isStream(r)?JC({body:r,client:A,request:t,contentLength:f,expectsPayload:C,socket:A[hA],h2stream:c,header:""}):m.isIterable(r)?Gi({body:r,client:A,request:t,contentLength:f,expectsPayload:C,header:"",h2stream:c,socket:A[hA]}):w(!1):t.onRequestSent()}}function JC({h2stream:A,body:e,client:t,request:r,socket:s,contentLength:i,header:n,expectsPayload:o}){if(w(i!==0||t[CA]===0,"stream body cannot be pipelined"),t[Ke]==="h2"){let f=function(u){r.onBodySent(u)},C=Dw(e,A,u=>{u?(m.destroy(e,u),m.destroy(A,u)):r.onRequestSent()});C.on("data",f),C.once("end",()=>{C.removeListener("data",f),m.destroy(C)});return}let E=!1,g=new Ji({socket:s,request:r,contentLength:i,client:t,expectsPayload:o,header:n}),a=function(C){if(!E)try{!g.write(C)&&this.pause&&this.pause()}catch(f){m.destroy(this,f)}},Q=function(){E||e.resume&&e.resume()},c=function(){if(E)return;let C=new TE;queueMicrotask(()=>B(C))},B=function(C){if(!E){if(E=!0,w(s.destroyed||s[ht]&&t[CA]<=1),s.off("drain",Q).off("error",B),e.removeListener("data",a).removeListener("end",B).removeListener("error",B).removeListener("close",c),!C)try{g.end()}catch(f){C=f}g.destroy(C),C&&(C.code!=="UND_ERR_INFO"||C.message!=="reset")?m.destroy(e,C):m.destroy(e)}};e.on("data",a).on("end",B).on("error",B).on("close",c),e.resume&&e.resume(),s.on("drain",Q).on("error",B)}async function vC({h2stream:A,body:e,client:t,request:r,socket:s,contentLength:i,header:n,expectsPayload:o}){w(i===e.size,"blob body must have content length");let E=t[Ke]==="h2";try{if(i!=null&&i!==e.size)throw new It;let g=Buffer.from(await e.arrayBuffer());E?(A.cork(),A.write(g),A.uncork()):(s.cork(),s.write(`${n}content-length: ${i}\r
`,"latin1"),B.write(t),B.uncork(),e.onBodySent(t),e.onRequestSent(),a||(B[WA]=!0)):F.isBlobLike(t)?typeof t.stream=="function"?Gi({body:t.stream(),client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):vC({body:t,client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):F.isStream(t)?JC({body:t,client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):F.isIterable(t)?Gi({body:t,client:A,request:e,socket:B,contentLength:c,header:C,expectsPayload:a}):w(!1),!0}function oD(A,e,t){let{body:r,method:s,path:i,host:n,upgrade:o,expectContinue:E,signal:g,headers:a}=t,Q;if(typeof a=="string"?Q=kE[Vw](a.trim()):Q=a,o)return PA(A,t,new Error("Upgrade not supported for H2")),!1;try{t.onConnect(R=>{t.aborted||t.completed||PA(A,t,R||new TE)})}catch(R){PA(A,t,R)}if(t.aborted)return!1;let c,B=A[Yi];if(Q[Ow]=n||A[LC],Q[Ww]=s,s==="CONNECT")return e.ref(),c=e.request(Q,{endStream:!1,signal:g}),c.id&&!c.pending?(t.onUpgrade(null,null,c),++B.openStreams):c.once("ready",()=>{t.onUpgrade(null,null,c),++B.openStreams}),c.once("close",()=>{B.openStreams-=1,B.openStreams===0&&e.unref()}),!0;Q[Pw]=i,Q[_w]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";r&&typeof r.read=="function"&&r.read(0);let d=F.bodyLength(r);if(d==null&&(d=t.contentLength),(d===0||!C)&&(d=null),GC(s)&&d>0&&t.contentLength!=null&&t.contentLength!==d){if(A[ks])return PA(A,t,new It),!1;process.emitWarning(new It)}d!=null&&(w(r,"no body must not have content length"),Q[Xw]=`${d}`),e.ref();let u=s==="GET"||s==="HEAD";return E?(Q[Zw]="100-continue",c=e.request(Q,{endStream:u,signal:g}),c.once("continue",y)):(c=e.request(Q,{endStream:u,signal:g}),y()),++B.openStreams,c.once("response",R=>{let{[jw]:m,...Y}=R;t.onHeaders(Number(m),Y,c.resume.bind(c),"")===!1&&c.pause()}),c.once("end",()=>{t.onComplete([])}),c.on("data",R=>{t.onData(R)===!1&&c.pause()}),c.once("close",()=>{B.openStreams-=1,B.openStreams===0&&e.unref()}),c.once("error",function(R){A[ce]&&!A[ce].destroyed&&!this.closed&&!this.destroyed&&(B.streams-=1,F.destroy(c,R))}),c.once("frameError",(R,m)=>{let Y=new Ze(`HTTP/2: "frameError" received - type ${R}, code ${m}`);PA(A,t,Y),A[ce]&&!A[ce].destroyed&&!this.closed&&!this.destroyed&&(B.streams-=1,F.destroy(c,Y))}),!0;function y(){r?F.isBuffer(r)?(w(d===r.byteLength,"buffer body must have content length"),c.cork(),c.write(r),c.uncork(),c.end(),t.onBodySent(r),t.onRequestSent()):F.isBlobLike(r)?typeof r.stream=="function"?Gi({client:A,request:t,contentLength:d,h2stream:c,expectsPayload:C,body:r.stream(),socket:A[uA],header:""}):vC({body:r,client:A,request:t,contentLength:d,expectsPayload:C,h2stream:c,header:"",socket:A[uA]}):F.isStream(r)?JC({body:r,client:A,request:t,contentLength:d,expectsPayload:C,socket:A[uA],h2stream:c,header:""}):F.isIterable(r)?Gi({body:r,client:A,request:t,contentLength:d,expectsPayload:C,header:"",h2stream:c,socket:A[uA]}):w(!1):t.onRequestSent()}}function JC({h2stream:A,body:e,client:t,request:r,socket:s,contentLength:i,header:n,expectsPayload:o}){if(w(i!==0||t[IA]===0,"stream body cannot be pipelined"),t[Ke]==="h2"){let d=function(u){r.onBodySent(u)},C=Dw(e,A,u=>{u?(F.destroy(e,u),F.destroy(A,u)):r.onRequestSent()});C.on("data",d),C.once("end",()=>{C.removeListener("data",d),F.destroy(C)});return}let E=!1,g=new Ji({socket:s,request:r,contentLength:i,client:t,expectsPayload:o,header:n}),a=function(C){if(!E)try{!g.write(C)&&this.pause&&this.pause()}catch(d){F.destroy(this,d)}},Q=function(){E||e.resume&&e.resume()},c=function(){if(E)return;let C=new TE;queueMicrotask(()=>B(C))},B=function(C){if(!E){if(E=!0,w(s.destroyed||s[ht]&&t[IA]<=1),s.off("drain",Q).off("error",B),e.removeListener("data",a).removeListener("end",B).removeListener("error",B).removeListener("close",c),!C)try{g.end()}catch(d){C=d}g.destroy(C),C&&(C.code!=="UND_ERR_INFO"||C.message!=="reset")?F.destroy(e,C):F.destroy(e)}};e.on("data",a).on("end",B).on("error",B).on("close",c),e.resume&&e.resume(),s.on("drain",Q).on("error",B)}async function vC({h2stream:A,body:e,client:t,request:r,socket:s,contentLength:i,header:n,expectsPayload:o}){w(i===e.size,"blob body must have content length");let E=t[Ke]==="h2";try{if(i!=null&&i!==e.size)throw new It;let g=Buffer.from(await e.arrayBuffer());E?(A.cork(),A.write(g),A.uncork()):(s.cork(),s.write(`${n}content-length: ${i}\r
\r
`,"latin1"),s.write(g),s.uncork()),r.onBodySent(g),r.onRequestSent(),o||(s[OA]=!0),Ce(t)}catch(g){m.destroy(E?A:s,g)}}async function Gi({h2stream:A,body:e,client:t,request:r,socket:s,contentLength:i,header:n,expectsPayload:o}){w(i!==0||t[CA]===0,"iterator body cannot be pipelined");let E=null;function g(){if(E){let c=E;E=null,c()}}let a=()=>new Promise((c,B)=>{w(E===null),s[xA]?B(s[xA]):E=c});if(t[Ke]==="h2"){A.on("close",g).on("drain",g);try{for await(let c of e){if(s[xA])throw s[xA];let B=A.write(c);r.onBodySent(c),B||await a()}}catch(c){A.destroy(c)}finally{r.onRequestSent(),A.end(),A.off("close",g).off("drain",g)}return}s.on("close",g).on("drain",g);let Q=new Ji({socket:s,request:r,contentLength:i,client:t,expectsPayload:o,header:n});try{for await(let c of e){if(s[xA])throw s[xA];Q.write(c)||await a()}Q.end()}catch(c){Q.destroy(c)}finally{s.off("close",g).off("drain",g)}}var Ji=class{constructor({socket:e,request:t,contentLength:r,client:s,expectsPayload:i,header:n}){this.socket=e,this.request=t,this.contentLength=r,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=n,e[ht]=!0}write(e){let{socket:t,request:r,contentLength:s,client:i,bytesWritten:n,expectsPayload:o,header:E}=this;if(t[xA])throw t[xA];if(t.destroyed)return!1;let g=Buffer.byteLength(e);if(!g)return!0;if(s!==null&&n+g>s){if(i[ks])throw new It;process.emitWarning(new It)}t.cork(),n===0&&(o||(t[OA]=!0),s===null?t.write(`${E}transfer-encoding: chunked\r
`,"latin1"),s.write(g),s.uncork()),r.onBodySent(g),r.onRequestSent(),o||(s[WA]=!0),Ce(t)}catch(g){F.destroy(E?A:s,g)}}async function Gi({h2stream:A,body:e,client:t,request:r,socket:s,contentLength:i,header:n,expectsPayload:o}){w(i!==0||t[IA]===0,"iterator body cannot be pipelined");let E=null;function g(){if(E){let c=E;E=null,c()}}let a=()=>new Promise((c,B)=>{w(E===null),s[YA]?B(s[YA]):E=c});if(t[Ke]==="h2"){A.on("close",g).on("drain",g);try{for await(let c of e){if(s[YA])throw s[YA];let B=A.write(c);r.onBodySent(c),B||await a()}}catch(c){A.destroy(c)}finally{r.onRequestSent(),A.end(),A.off("close",g).off("drain",g)}return}s.on("close",g).on("drain",g);let Q=new Ji({socket:s,request:r,contentLength:i,client:t,expectsPayload:o,header:n});try{for await(let c of e){if(s[YA])throw s[YA];Q.write(c)||await a()}Q.end()}catch(c){Q.destroy(c)}finally{s.off("close",g).off("drain",g)}}var Ji=class{constructor({socket:e,request:t,contentLength:r,client:s,expectsPayload:i,header:n}){this.socket=e,this.request=t,this.contentLength=r,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=n,e[ht]=!0}write(e){let{socket:t,request:r,contentLength:s,client:i,bytesWritten:n,expectsPayload:o,header:E}=this;if(t[YA])throw t[YA];if(t.destroyed)return!1;let g=Buffer.byteLength(e);if(!g)return!0;if(s!==null&&n+g>s){if(i[ks])throw new It;process.emitWarning(new It)}t.cork(),n===0&&(o||(t[WA]=!0),s===null?t.write(`${E}transfer-encoding: chunked\r
`,"latin1"):t.write(`${E}content-length: ${s}\r
\r
`,"latin1")),s===null&&t.write(`\r
${g.toString(16)}\r
`,"latin1"),this.bytesWritten+=g;let a=t.write(e);return t.uncork(),r.onBodySent(e),a||t[IA].timeout&&t[IA].timeoutType===Lr&&t[IA].timeout.refresh&&t[IA].timeout.refresh(),a}end(){let{socket:e,contentLength:t,client:r,bytesWritten:s,expectsPayload:i,header:n,request:o}=this;if(o.onRequestSent(),e[ht]=!1,e[xA])throw e[xA];if(!e.destroyed){if(s===0?i?e.write(`${n}content-length: 0\r
`,"latin1"),this.bytesWritten+=g;let a=t.write(e);return t.uncork(),r.onBodySent(e),a||t[lA].timeout&&t[lA].timeoutType===Lr&&t[lA].timeout.refresh&&t[lA].timeout.refresh(),a}end(){let{socket:e,contentLength:t,client:r,bytesWritten:s,expectsPayload:i,header:n,request:o}=this;if(o.onRequestSent(),e[ht]=!1,e[YA])throw e[YA];if(!e.destroyed){if(s===0?i?e.write(`${n}content-length: 0\r
\r
`,"latin1"):e.write(`${n}\r
`,"latin1"):t===null&&e.write(`\r
0\r
\r
`,"latin1"),t!==null&&s!==t){if(r[ks])throw new It;process.emitWarning(new It)}e[IA].timeout&&e[IA].timeoutType===Lr&&e[IA].timeout.refresh&&e[IA].timeout.refresh(),Ce(r)}}destroy(e){let{socket:t,client:r}=this;t[ht]=!1,e&&(w(r[CA]<=1,"pipeline should only contain this request"),m.destroy(t,e))}};function WA(A,e,t){try{e.onError(t),w(e.aborted)}catch(r){A.emit("error",r)}}HC.exports=UE});var qC=h((iL,VC)=>{"use strict";var Hi=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)}};VC.exports=class{constructor(){this.head=this.tail=new Hi}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Hi),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}});var WC=h((nL,OC)=>{var{kFree:ED,kConnected:aD,kPending:gD,kQueued:QD,kRunning:cD,kSize:CD}=EA(),jt=Symbol("pool"),GE=class{constructor(e){this[jt]=e}get connected(){return this[jt][aD]}get free(){return this[jt][ED]}get pending(){return this[jt][gD]}get queued(){return this[jt][QD]}get running(){return this[jt][cD]}get size(){return this[jt][CD]}};OC.exports=GE});var OE=h((oL,eB)=>{"use strict";var BD=ps(),ID=qC(),{kConnected:JE,kSize:PC,kRunning:_C,kPending:XC,kQueued:Us,kBusy:hD,kFree:lD,kUrl:uD,kClose:fD,kDestroy:dD,kDispatch:yD}=EA(),pD=WC(),$A=Symbol("clients"),PA=Symbol("needDrain"),Ls=Symbol("queue"),vE=Symbol("closed resolve"),HE=Symbol("onDrain"),ZC=Symbol("onConnect"),jC=Symbol("onDisconnect"),KC=Symbol("onConnectionError"),VE=Symbol("get dispatcher"),$C=Symbol("add client"),AB=Symbol("remove client"),zC=Symbol("stats"),qE=class extends BD{constructor(){super(),this[Ls]=new ID,this[$A]=[],this[Us]=0;let e=this;this[HE]=function(r,s){let i=e[Ls],n=!1;for(;!n;){let o=i.shift();if(!o)break;e[Us]--,n=!this.dispatch(o.opts,o.handler)}this[PA]=n,!this[PA]&&e[PA]&&(e[PA]=!1,e.emit("drain",r,[e,...s])),e[vE]&&i.isEmpty()&&Promise.all(e[$A].map(o=>o.close())).then(e[vE])},this[ZC]=(t,r)=>{e.emit("connect",t,[e,...r])},this[jC]=(t,r,s)=>{e.emit("disconnect",t,[e,...r],s)},this[KC]=(t,r,s)=>{e.emit("connectionError",t,[e,...r],s)},this[zC]=new pD(this)}get[hD](){return this[PA]}get[JE](){return this[$A].filter(e=>e[JE]).length}get[lD](){return this[$A].filter(e=>e[JE]&&!e[PA]).length}get[XC](){let e=this[Us];for(let{[XC]:t}of this[$A])e+=t;return e}get[_C](){let e=0;for(let{[_C]:t}of this[$A])e+=t;return e}get[PC](){let e=this[Us];for(let{[PC]:t}of this[$A])e+=t;return e}get stats(){return this[zC]}async[fD](){return this[Ls].isEmpty()?Promise.all(this[$A].map(e=>e.close())):new Promise(e=>{this[vE]=e})}async[dD](e){for(;;){let t=this[Ls].shift();if(!t)break;t.handler.onError(e)}return Promise.all(this[$A].map(t=>t.destroy(e)))}[yD](e,t){let r=this[VE]();return r?r.dispatch(e,t)||(r[PA]=!0,this[PA]=!this[VE]()):(this[PA]=!0,this[Ls].push({opts:e,handler:t}),this[Us]++),!this[PA]}[$C](e){return e.on("drain",this[HE]).on("connect",this[ZC]).on("disconnect",this[jC]).on("connectionError",this[KC]),this[$A].push(e),this[PA]&&process.nextTick(()=>{this[PA]&&this[HE](e[uD],[this,e])}),this}[AB](e){e.close(()=>{let t=this[$A].indexOf(e);t!==-1&&this[$A].splice(t,1)}),this[PA]=this[$A].some(t=>!t[PA]&&t.closed!==!0&&t.destroyed!==!0)}};eB.exports={PoolBase:qE,kClients:$A,kNeedDrain:PA,kAddClient:$C,kRemoveClient:AB,kGetDispatcher:VE}});var Mr=h((EL,sB)=>{"use strict";var{PoolBase:wD,kClients:Vi,kNeedDrain:DD,kAddClient:RD,kGetDispatcher:ND}=OE(),mD=Ss(),{InvalidArgumentError:WE}=eA(),PE=W(),{kUrl:tB,kInterceptors:FD}=EA(),kD=ws(),_E=Symbol("options"),XE=Symbol("connections"),rB=Symbol("factory");function bD(A,e){return new mD(A,e)}var ZE=class extends wD{constructor(e,{connections:t,factory:r=bD,connect:s,connectTimeout:i,tls:n,maxCachedSessions:o,socketPath:E,autoSelectFamily:g,autoSelectFamilyAttemptTimeout:a,allowH2:Q,...c}={}){if(super(),t!=null&&(!Number.isFinite(t)||t<0))throw new WE("invalid connections");if(typeof r!="function")throw new WE("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new WE("connect must be a function or an object");typeof s!="function"&&(s=kD({...n,maxCachedSessions:o,allowH2:Q,socketPath:E,timeout:i,...PE.nodeHasAutoSelectFamily&&g?{autoSelectFamily:g,autoSelectFamilyAttemptTimeout:a}:void 0,...s})),this[FD]=c.interceptors&&c.interceptors.Pool&&Array.isArray(c.interceptors.Pool)?c.interceptors.Pool:[],this[XE]=t||null,this[tB]=PE.parseOrigin(e),this[_E]={...PE.deepClone(c),connect:s,allowH2:Q},this[_E].interceptors=c.interceptors?{...c.interceptors}:void 0,this[rB]=r,this.on("connectionError",(B,C,f)=>{for(let u of C){let d=this[Vi].indexOf(u);d!==-1&&this[Vi].splice(d,1)}})}[ND](){let e=this[Vi].find(t=>!t[ Line truncated
`,"latin1"),t!==null&&s!==t){if(r[ks])throw new It;process.emitWarning(new It)}e[lA].timeout&&e[lA].timeoutType===Lr&&e[lA].timeout.refresh&&e[lA].timeout.refresh(),Ce(r)}}destroy(e){let{socket:t,client:r}=this;t[ht]=!1,e&&(w(r[IA]<=1,"pipeline should only contain this request"),F.destroy(t,e))}};function PA(A,e,t){try{e.onError(t),w(e.aborted)}catch(r){A.emit("error",r)}}HC.exports=UE});var qC=h((iL,VC)=>{"use strict";var Hi=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)}};VC.exports=class{constructor(){this.head=this.tail=new Hi}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Hi),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}});var WC=h((nL,OC)=>{var{kFree:ED,kConnected:aD,kPending:gD,kQueued:QD,kRunning:cD,kSize:CD}=EA(),jt=Symbol("pool"),GE=class{constructor(e){this[jt]=e}get connected(){return this[jt][aD]}get free(){return this[jt][ED]}get pending(){return this[jt][gD]}get queued(){return this[jt][QD]}get running(){return this[jt][cD]}get size(){return this[jt][CD]}};OC.exports=GE});var OE=h((oL,eB)=>{"use strict";var BD=ps(),ID=qC(),{kConnected:JE,kSize:PC,kRunning:_C,kPending:XC,kQueued:Us,kBusy:hD,kFree:lD,kUrl:uD,kClose:fD,kDestroy:dD,kDispatch:yD}=EA(),pD=WC(),Ae=Symbol("clients"),_A=Symbol("needDrain"),Ls=Symbol("queue"),vE=Symbol("closed resolve"),HE=Symbol("onDrain"),ZC=Symbol("onConnect"),jC=Symbol("onDisconnect"),KC=Symbol("onConnectionError"),VE=Symbol("get dispatcher"),$C=Symbol("add client"),AB=Symbol("remove client"),zC=Symbol("stats"),qE=class extends BD{constructor(){super(),this[Ls]=new ID,this[Ae]=[],this[Us]=0;let e=this;this[HE]=function(r,s){let i=e[Ls],n=!1;for(;!n;){let o=i.shift();if(!o)break;e[Us]--,n=!this.dispatch(o.opts,o.handler)}this[_A]=n,!this[_A]&&e[_A]&&(e[_A]=!1,e.emit("drain",r,[e,...s])),e[vE]&&i.isEmpty()&&Promise.all(e[Ae].map(o=>o.close())).then(e[vE])},this[ZC]=(t,r)=>{e.emit("connect",t,[e,...r])},this[jC]=(t,r,s)=>{e.emit("disconnect",t,[e,...r],s)},this[KC]=(t,r,s)=>{e.emit("connectionError",t,[e,...r],s)},this[zC]=new pD(this)}get[hD](){return this[_A]}get[JE](){return this[Ae].filter(e=>e[JE]).length}get[lD](){return this[Ae].filter(e=>e[JE]&&!e[_A]).length}get[XC](){let e=this[Us];for(let{[XC]:t}of this[Ae])e+=t;return e}get[_C](){let e=0;for(let{[_C]:t}of this[Ae])e+=t;return e}get[PC](){let e=this[Us];for(let{[PC]:t}of this[Ae])e+=t;return e}get stats(){return this[zC]}async[fD](){return this[Ls].isEmpty()?Promise.all(this[Ae].map(e=>e.close())):new Promise(e=>{this[vE]=e})}async[dD](e){for(;;){let t=this[Ls].shift();if(!t)break;t.handler.onError(e)}return Promise.all(this[Ae].map(t=>t.destroy(e)))}[yD](e,t){let r=this[VE]();return r?r.dispatch(e,t)||(r[_A]=!0,this[_A]=!this[VE]()):(this[_A]=!0,this[Ls].push({opts:e,handler:t}),this[Us]++),!this[_A]}[$C](e){return e.on("drain",this[HE]).on("connect",this[ZC]).on("disconnect",this[jC]).on("connectionError",this[KC]),this[Ae].push(e),this[_A]&&process.nextTick(()=>{this[_A]&&this[HE](e[uD],[this,e])}),this}[AB](e){e.close(()=>{let t=this[Ae].indexOf(e);t!==-1&&this[Ae].splice(t,1)}),this[_A]=this[Ae].some(t=>!t[_A]&&t.closed!==!0&&t.destroyed!==!0)}};eB.exports={PoolBase:qE,kClients:Ae,kNeedDrain:_A,kAddClient:$C,kRemoveClient:AB,kGetDispatcher:VE}});var Mr=h((EL,sB)=>{"use strict";var{PoolBase:wD,kClients:Vi,kNeedDrain:DD,kAddClient:RD,kGetDispatcher:ND}=OE(),mD=Ss(),{InvalidArgumentError:WE}=tA(),PE=W(),{kUrl:tB,kInterceptors:FD}=EA(),kD=ws(),_E=Symbol("options"),XE=Symbol("connections"),rB=Symbol("factory");function bD(A,e){return new mD(A,e)}var ZE=class extends wD{constructor(e,{connections:t,factory:r=bD,connect:s,connectTimeout:i,tls:n,maxCachedSessions:o,socketPath:E,autoSelectFamily:g,autoSelectFamilyAttemptTimeout:a,allowH2:Q,...c}={}){if(super(),t!=null&&(!Number.isFinite(t)||t<0))throw new WE("invalid connections");if(typeof r!="function")throw new WE("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new WE("connect must be a function or an object");typeof s!="function"&&(s=kD({...n,maxCachedSessions:o,allowH2:Q,socketPath:E,timeout:i,...PE.nodeHasAutoSelectFamily&&g?{autoSelectFamily:g,autoSelectFamilyAttemptTimeout:a}:void 0,...s})),this[FD]=c.interceptors&&c.interceptors.Pool&&Array.isArray(c.interceptors.Pool)?c.interceptors.Pool:[],this[XE]=t||null,this[tB]=PE.parseOrigin(e),this[_E]={...PE.deepClone(c),connect:s,allowH2:Q},this[_E].interceptors=c.interceptors?{...c.interceptors}:void 0,this[rB]=r,this.on("connectionError",(B,C,d)=>{for(let u of C){let y=this[Vi].indexOf(u);y!==-1&&this[Vi].splice(y,1)}})}[ND](){let e=this[Vi].find(t=>!t[ Line truncated
${r.count} ${r.noun} ${r.is} pending:
${e.format(t)}
`.trim())}};YI.exports=La});var qI=h((LL,VI)=>{"use strict";var{kProxy:S0,kClose:U0,kDestroy:L0,kInterceptors:M0}=EA(),{URL:GI}=require("url"),JI=xs(),x0=Mr(),Y0=ps(),{InvalidArgumentError:vs,RequestAbortedError:T0}=eA(),vI=ws(),Gs=Symbol("proxy agent"),gn=Symbol("proxy client"),Js=Symbol("proxy headers"),Ma=Symbol("request tls settings"),G0=Symbol("proxy tls settings"),HI=Symbol("connect endpoint function");function J0(A){return A==="https:"?443:80}function v0(A){if(typeof A=="string"&&(A={uri:A}),!A||!A.uri)throw new vs("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function H0(A,e){return new x0(A,e)}var xa=class extends Y0{constructor(e){if(super(e),this[S0]=v0(e),this[Gs]=new JI(e),this[M0]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new vs("Proxy opts.uri is mandatory");let{clientFactory:t=H0}=e;if(typeof t!="function")throw new vs("Proxy opts.clientFactory must be a function.");this[Ma]=e.requestTls,this[G0]=e.proxyTls,this[Js]=e.headers||{};let r=new GI(e.uri),{origin:s,port:i,host:n,username:o,password:E}=r;if(e.auth&&e.token)throw new vs("opts.auth cannot be used in combination with opts.token");e.auth?this[Js]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[Js]["proxy-authorization"]=e.token:o&&E&&(this[Js]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(E)}`).toString("base64")}`);let g=vI({...e.proxyTls});this[HI]=vI({...e.requestTls}),this[gn]=t(r,{connect:g}),this[Gs]=new JI({...e,connect:async(a,Q)=>{let c=a.host;a.port||(c+=`:${J0(a.protocol)}`);try{let{socket:B,statusCode:C}=await this[gn].connect({origin:s,port:i,path:c,signal:a.signal,headers:{...this[Js],host:n}});if(C!==200&&(B.on("error",()=>{}).destroy(),Q(new T0(`Proxy response (${C}) !== 200 when HTTP Tunneling`))),a.protocol!=="https:"){Q(null,B);return}let f;this[Ma]?f=this[Ma].servername:f=a.servername,this[HI]({...a,servername:f,httpSocket:B},Q)}catch(B){Q(B)}}})}dispatch(e,t){let{host:r}=new GI(e.origin),s=V0(e.headers);return q0(s),this[Gs].dispatch({...e,headers:{...s,host:r}},t)}async[U0](){await this[Gs].close(),await this[gn].close()}async[L0](){await this[Gs].destroy(),await this[gn].destroy()}};function V0(A){if(Array.isArray(A)){let e={};for(let t=0;t<A.length;t+=2)e[A[t]]=A[t+1];return e}return A}function q0(A){if(A&&Object.keys(A).find(t=>t.toLowerCase()==="proxy-authorization"))throw new vs("Proxy-Authorization should be sent in ProxyAgent constructor")}VI.exports=xa});var XI=h((ML,_I)=>{var tr=require("assert"),{kRetryHandlerDefaultRetry:OI}=EA(),{RequestRetryError:Qn}=eA(),{isDisturbed:WI,parseHeaders:O0,parseRangeHeader:PI}=W();function W0(A){let e=Date.now();return new Date(A).getTime()-e}var Ya=class A{constructor(e,t){let{retryOptions:r,...s}=e,{retry:i,maxRetries:n,maxTimeout:o,minTimeout:E,timeoutFactor:g,methods:a,errorCodes:Q,retryAfter:c,statusCodes:B}=r??{};this.dispatch=t.dispatch,this.handler=t.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??A[OI],retryAfter:c??!0,maxTimeout:o??30*1e3,timeout:E??500,timeoutFactor:g??2,maxRetries:n??5,methods:a??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:B??[500,502,503,504,429],errorCodes:Q??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(C=>{this.aborted=!0,this.abort?this.abort(C):this.reason=C})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[OI](e,{state:t,opts:r},s){let{statusCode:i,code:n,headers:o}=e,{method:E,retryOptions:g}=r,{maxRetries:a,timeout:Q,maxTimeout:c,timeoutFactor:B,statusCodes:C,errorCodes:f,methods:u}=g,{counter:d,currentTimeout:R}=t;if(R=R!=null&&R>0?R:Q,n&&n!=="UND_ERR_REQ_RETRY"&&n!=="UND_ERR_SOCKET"&&!f.includes(n)){s(e);return}if(Array.isArray(u)&&!u.includes(E)){s(e);return}if(i!=null&&Array.isArray(C)&&!C.includes(i)){s(e);return}if(d>a){s(e);return}let F=o!=null&&o["retry-after"];F&&(F=Number(F),F=isNaN(F)?W0(F):F*1e3);let x=F>0?Math.min(F,c):Math.min(R*B**d,c);t.currentTimeout=x,setTimeout(()=>s(null),x)}onHeaders(e,t,r,s){let i=O0(t);if(this.retryCount+=1,e>=300)return this.abort(new Qn("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=PI(i["content-range"]);if(!o)return this.abort(new Qn("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new Qn("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:E,size:g,end:a=g}=o;return tr(this.start===E,"content-range mism Line truncated
`.trim())}};YI.exports=La});var qI=h((LL,VI)=>{"use strict";var{kProxy:S0,kClose:U0,kDestroy:L0,kInterceptors:M0}=EA(),{URL:GI}=require("url"),JI=xs(),x0=Mr(),Y0=ps(),{InvalidArgumentError:vs,RequestAbortedError:T0}=tA(),vI=ws(),Gs=Symbol("proxy agent"),gn=Symbol("proxy client"),Js=Symbol("proxy headers"),Ma=Symbol("request tls settings"),G0=Symbol("proxy tls settings"),HI=Symbol("connect endpoint function");function J0(A){return A==="https:"?443:80}function v0(A){if(typeof A=="string"&&(A={uri:A}),!A||!A.uri)throw new vs("Proxy opts.uri is mandatory");return{uri:A.uri,protocol:A.protocol||"https"}}function H0(A,e){return new x0(A,e)}var xa=class extends Y0{constructor(e){if(super(e),this[S0]=v0(e),this[Gs]=new JI(e),this[M0]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new vs("Proxy opts.uri is mandatory");let{clientFactory:t=H0}=e;if(typeof t!="function")throw new vs("Proxy opts.clientFactory must be a function.");this[Ma]=e.requestTls,this[G0]=e.proxyTls,this[Js]=e.headers||{};let r=new GI(e.uri),{origin:s,port:i,host:n,username:o,password:E}=r;if(e.auth&&e.token)throw new vs("opts.auth cannot be used in combination with opts.token");e.auth?this[Js]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[Js]["proxy-authorization"]=e.token:o&&E&&(this[Js]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(E)}`).toString("base64")}`);let g=vI({...e.proxyTls});this[HI]=vI({...e.requestTls}),this[gn]=t(r,{connect:g}),this[Gs]=new JI({...e,connect:async(a,Q)=>{let c=a.host;a.port||(c+=`:${J0(a.protocol)}`);try{let{socket:B,statusCode:C}=await this[gn].connect({origin:s,port:i,path:c,signal:a.signal,headers:{...this[Js],host:n}});if(C!==200&&(B.on("error",()=>{}).destroy(),Q(new T0(`Proxy response (${C}) !== 200 when HTTP Tunneling`))),a.protocol!=="https:"){Q(null,B);return}let d;this[Ma]?d=this[Ma].servername:d=a.servername,this[HI]({...a,servername:d,httpSocket:B},Q)}catch(B){Q(B)}}})}dispatch(e,t){let{host:r}=new GI(e.origin),s=V0(e.headers);return q0(s),this[Gs].dispatch({...e,headers:{...s,host:r}},t)}async[U0](){await this[Gs].close(),await this[gn].close()}async[L0](){await this[Gs].destroy(),await this[gn].destroy()}};function V0(A){if(Array.isArray(A)){let e={};for(let t=0;t<A.length;t+=2)e[A[t]]=A[t+1];return e}return A}function q0(A){if(A&&Object.keys(A).find(t=>t.toLowerCase()==="proxy-authorization"))throw new vs("Proxy-Authorization should be sent in ProxyAgent constructor")}VI.exports=xa});var XI=h((ML,_I)=>{var tr=require("assert"),{kRetryHandlerDefaultRetry:OI}=EA(),{RequestRetryError:Qn}=tA(),{isDisturbed:WI,parseHeaders:O0,parseRangeHeader:PI}=W();function W0(A){let e=Date.now();return new Date(A).getTime()-e}var Ya=class A{constructor(e,t){let{retryOptions:r,...s}=e,{retry:i,maxRetries:n,maxTimeout:o,minTimeout:E,timeoutFactor:g,methods:a,errorCodes:Q,retryAfter:c,statusCodes:B}=r??{};this.dispatch=t.dispatch,this.handler=t.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??A[OI],retryAfter:c??!0,maxTimeout:o??30*1e3,timeout:E??500,timeoutFactor:g??2,maxRetries:n??5,methods:a??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:B??[500,502,503,504,429],errorCodes:Q??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(C=>{this.aborted=!0,this.abort?this.abort(C):this.reason=C})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[OI](e,{state:t,opts:r},s){let{statusCode:i,code:n,headers:o}=e,{method:E,retryOptions:g}=r,{maxRetries:a,timeout:Q,maxTimeout:c,timeoutFactor:B,statusCodes:C,errorCodes:d,methods:u}=g,{counter:y,currentTimeout:R}=t;if(R=R!=null&&R>0?R:Q,n&&n!=="UND_ERR_REQ_RETRY"&&n!=="UND_ERR_SOCKET"&&!d.includes(n)){s(e);return}if(Array.isArray(u)&&!u.includes(E)){s(e);return}if(i!=null&&Array.isArray(C)&&!C.includes(i)){s(e);return}if(y>a){s(e);return}let m=o!=null&&o["retry-after"];m&&(m=Number(m),m=isNaN(m)?W0(m):m*1e3);let Y=m>0?Math.min(m,c):Math.min(R*B**y,c);t.currentTimeout=Y,setTimeout(()=>s(null),Y)}onHeaders(e,t,r,s){let i=O0(t);if(this.retryCount+=1,e>=300)return this.abort(new Qn("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=PI(i["content-range"]);if(!o)return this.abort(new Qn("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new Qn("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:E,size:g,end:a=g}=o;return tr(this.start===E,"content-range mism Line truncated
Error Code : ${n.statusCode}
Error Message: ${n.message}`)})).result)===null||t===void 0?void 0:t.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return su(this,void 0,void 0,function*(){try{let t=A.getIDTokenUrl();if(e){let s=encodeURIComponent(e);t=`${t}&audience=${s}`}(0,iu.debug)(`ID token url is ${t}`);let r=yield A.getCall(t);return(0,iu.setSecret)(r),r}catch(t){throw new Error(`Error message: ${t.message}`)}})}};is.OidcClient=Ng});var bg=h(se=>{"use strict";var mg=se&&se.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(se,"__esModule",{value:!0});se.summary=se.markdownSummary=se.SUMMARY_DOCS_URL=se.SUMMARY_ENV_VAR=void 0;var xk=require("os"),Fg=require("fs"),{access:Yk,appendFile:Tk,writeFile:Gk}=Fg.promises;se.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";se.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var kg=class{constructor(){this._buffer=""}filePath(){return mg(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[se.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${se.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Yk(e,Fg.constants.R_OK|Fg.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,r={}){let s=Object.entries(r).map(([i,n])=>` ${i}="${n}"`).join("");return t?`<${e}${s}>${t}</${e}>`:`<${e}${s}>`}write(e){return mg(this,void 0,void 0,function*(){let t=!!e?.overwrite,r=yield this.filePath();return yield(t?Gk:Tk)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return mg(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(xk.EOL)}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),s=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(s).addEOL()}addList(e,t=!1){let r=t?"ol":"ul",s=e.map(n=>this.wrap("li",n)).join(""),i=this.wrap(r,s);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(s=>{let i=s.map(n=>{if(typeof n=="string")return this.wrap("td",n);let{header:o,data:E,colspan:g,rowspan:a}=n,Q=o?"th":"td",c=Object.assign(Object.assign({},g&&{colspan:g}),a&&{rowspan:a});return this.wrap(Q,E,c)}).join("");return this.wrap("tr",i)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){let{width:s,height:i}=r||{},n=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),o=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(o).addEOL()}addHeading(e,t){let r=`h${t}`,s=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),s=this.wrap("blockquote",e,r);return this.addRaw(s).addEOL()}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}},ou=new kg;se.markdownSummary=ou;se.summary=ou});var Eu=h(ie=>{"use strict";var Jk=ie&&ie.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),vk=ie&&ie.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),Hk=ie&&ie.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&Jk(e,A,t);return vk(e,A),e};Object.defineProperty(ie,"__esModule",{value:!0});ie.toPlatformPath=ie.toWin32Path=ie.toPosixPath=void 0;var Vk=Hk(require("path"));function qk(A){return A.replace(/[\\]/g,"/")}ie.toPosixPath=qk;function Ok(A){return A.replace(/[/]/g,"\\")}ie.toWin32Path=Ok;function Wk(A){return A.replace(/[/\\]/g,Vk.sep)}ie.toPlatformPath=Wk});var Ug=h(N=>{"use strict";var Pk=N&&N.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t]}})}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),_k=N&&N.__setModLine truncated
Error Message: ${n.message}`)})).result)===null||t===void 0?void 0:t.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return su(this,void 0,void 0,function*(){try{let t=A.getIDTokenUrl();if(e){let s=encodeURIComponent(e);t=`${t}&audience=${s}`}(0,iu.debug)(`ID token url is ${t}`);let r=yield A.getCall(t);return(0,iu.setSecret)(r),r}catch(t){throw new Error(`Error message: ${t.message}`)}})}};is.OidcClient=Ng});var bg=h(ie=>{"use strict";var mg=ie&&ie.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(ie,"__esModule",{value:!0});ie.summary=ie.markdownSummary=ie.SUMMARY_DOCS_URL=ie.SUMMARY_ENV_VAR=void 0;var xk=require("os"),Fg=require("fs"),{access:Yk,appendFile:Tk,writeFile:Gk}=Fg.promises;ie.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";ie.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var kg=class{constructor(){this._buffer=""}filePath(){return mg(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ie.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${ie.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Yk(e,Fg.constants.R_OK|Fg.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,r={}){let s=Object.entries(r).map(([i,n])=>` ${i}="${n}"`).join("");return t?`<${e}${s}>${t}</${e}>`:`<${e}${s}>`}write(e){return mg(this,void 0,void 0,function*(){let t=!!e?.overwrite,r=yield this.filePath();return yield(t?Gk:Tk)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return mg(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(xk.EOL)}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),s=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(s).addEOL()}addList(e,t=!1){let r=t?"ol":"ul",s=e.map(n=>this.wrap("li",n)).join(""),i=this.wrap(r,s);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(s=>{let i=s.map(n=>{if(typeof n=="string")return this.wrap("td",n);let{header:o,data:E,colspan:g,rowspan:a}=n,Q=o?"th":"td",c=Object.assign(Object.assign({},g&&{colspan:g}),a&&{rowspan:a});return this.wrap(Q,E,c)}).join("");return this.wrap("tr",i)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){let{width:s,height:i}=r||{},n=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),o=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(o).addEOL()}addHeading(e,t){let r=`h${t}`,s=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),s=this.wrap("blockquote",e,r);return this.addRaw(s).addEOL()}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}},ou=new kg;ie.markdownSummary=ou;ie.summary=ou});var Eu=h(ne=>{"use strict";var Jk=ne&&ne.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),vk=ne&&ne.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),Hk=ne&&ne.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&Jk(e,A,t);return vk(e,A),e};Object.defineProperty(ne,"__esModule",{value:!0});ne.toPlatformPath=ne.toWin32Path=ne.toPosixPath=void 0;var Vk=Hk(require("path"));function qk(A){return A.replace(/[\\]/g,"/")}ne.toPosixPath=qk;function Ok(A){return A.replace(/[/]/g,"\\")}ne.toWin32Path=Ok;function Wk(A){return A.replace(/[/\\]/g,Vk.sep)}ne.toPlatformPath=Wk});var Ug=h(N=>{"use strict";var Pk=N&&N.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t]}})}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),_k=N&&N.__setModLine truncated
`);return{name:e,version:t}});P.platform=Nu.default.platform();P.arch=Nu.default.arch();P.isWindows=P.platform==="win32";P.isMacOS=P.platform==="darwin";P.isLinux=P.platform==="linux";function Db(){return so(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield P.isWindows?yb():P.isMacOS?pb():wb()),{platform:P.platform,arch:P.arch,isWindows:P.isWindows,isMacOS:P.isMacOS,isLinux:P.isLinux})})}P.getDetails=Db});var ns=h(D=>{"use strict";var Rb=D&&D.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),Nb=D&&D.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),Jg=D&&D.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&Rb(e,A,t);return Nb(e,A),e},Fu=D&&D.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(D,"__esModule",{value:!0});D.platform=D.toPlatformPath=D.toWin32Path=D.toPosixPath=D.markdownSummary=D.summary=D.getIDToken=D.getState=D.saveState=D.group=D.endGroup=D.startGroup=D.info=D.notice=D.warning=D.error=D.debug=D.isDebug=D.setFailed=D.setCommandEcho=D.setOutput=D.getBooleanInput=D.getMultilineInput=D.getInput=D.addPath=D.setSecret=D.exportVariable=D.ExitCode=void 0;var Se=nQ(),ar=aQ(),Es=ii(),ku=Jg(require("os")),mb=Jg(require("path")),Fb=nu(),Gg;(function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"})(Gg||(D.ExitCode=Gg={}));function kb(A,e){let t=(0,Es.toCommandValue)(e);if(process.env[A]=t,process.env.GITHUB_ENV||"")return(0,ar.issueFileCommand)("ENV",(0,ar.prepareKeyValueMessage)(A,e));(0,Se.issueCommand)("set-env",{name:A},t)}D.exportVariable=kb;function bb(A){(0,Se.issueCommand)("add-mask",{},A)}D.setSecret=bb;function Sb(A){process.env.GITHUB_PATH||""?(0,ar.issueFileCommand)("PATH",A):(0,Se.issueCommand)("add-path",{},A),process.env.PATH=`${A}${mb.delimiter}${process.env.PATH}`}D.addPath=Sb;function vg(A,e){let t=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!t)throw new Error(`Input required and not supplied: ${A}`);return e&&e.trimWhitespace===!1?t:t.trim()}D.getInput=vg;function Ub(A,e){let t=vg(A,e).split(`
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?t:t.map(r=>r.trim())}D.getMultilineInput=Ub;function Lb(A,e){let t=["true","True","TRUE"],r=["false","False","FALSE"],s=vg(A,e);if(t.includes(s))return!0;if(r.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}D.getBooleanInput=Lb;function Mb(A,e){if(process.env.GITHUB_OUTPUT||"")return(0,ar.issueFileCommand)("OUTPUT",(0,ar.prepareKeyValueMessage)(A,e));process.stdout.write(ku.EOL),(0,Se.issueCommand)("set-output",{name:A},(0,Es.toCommandValue)(e))}D.setOutput=Mb;function xb(A){(0,Se.issue)("echo",A?"on":"off")}D.setCommandEcho=xb;function Yb(A){process.exitCode=Gg.Failure,bu(A)}D.setFailed=Yb;function Tb(){return process.env.RUNNER_DEBUG==="1"}D.isDebug=Tb;function Gb(A){(0,Se.issueCommand)("debug",{},A)}D.debug=Gb;function bu(A,e={}){(0,Se.issueCommand)("error",(0,Es.toCommandProperties)(e),A instanceof Error?A.toString():A)}D.error=bu;function Jb(A,e={}){(0,Se.issueCommand)("warning",(0,Es.toCommandProperties)(e),A instanceof Error?A.toString():A)}D.warning=Jb;function vb(A,e={}){(0,Se.issueCommand)("notice",(0,Es.toCommandProperties)(e),A instanceof Error?A.toString():A)}D.notice=vb;function Hb(A){process.stdout.write(A+ku.EOL)}D.info=Hb;function Su(A){(0,Se.issue)("group",A)}D.startGroup=Su;function Uu(){(0,Se.issue)("endgroup")}D.endGroup=Uu;function Vb(A,e){return Fu(this,void 0,void 0,function*(){Su(A);let t;try{t=yield e()}finally{Uu()}return t})}D.group=Vb;function qb(A,e){if(process.env.GITHUB_STATE||"")return(0,ar.issueFileCommand)("STATE",(0,ar.prepareKeyValueMessage)(A,e));(0,Se.issueCommand)("save-state",{name:A},(0,Es.toCommandValue)(e))}D.saveState=qb;function Ob(A){return process.env[`STATE_${A}`]||""}D.getState=Ob;function Wb(A){return Fu(this,void 0,void 0,function*(){return yield Fb.OidcClient.getIDToken(A)})}D.getIDToken=Wb;var Pb=bg();Object.defineProperty(D,"summary",{enumerable:!0,get:function(){return Pb.summary}});var _b=bg();Object.defineProperty(D,"markdownSummary",{enumerable:!0,get:function(){return _b.markdownSummary}});var Hg=Eu();Object.defineProperty(D,"toPosixPath",{enumerable:!0,get:function(){return Hg.toPosixPath}});Object.defineProperty(D,"toWin32Path",{enumerable:!0,get:function(){return Hg.toWin32Path}});Object.defineProperty(D,"toPlatformPath",{enumerable:!0,get:function(){return Hg.toPlatformPath}});D.platform=Jg(mu())});var Zg=h((L,Tu)=>{L=Tu.exports=G;var z;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?z=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)}:z=function(){};L.SEMVER_SPEC_VERSION="2.0.0";var Ai=256,io=Number.MAX_SAFE_INTEGER||9007199254740991,Vg=16,Xb=Ai-6,as=L.re=[],K=L.safeRe=[],l=L.src=[],I=L.tokens={},xu=0;function H(A){I[A]=xu++}var Og="[a-zA-Z0-9-]",qg=[["\\s",1],["\\d",Ai],[Og,Xb]];function ti(A){for(var e=0;e<qg.length;e++){var t=qg[e][0],r=qg[e][1];A=A.split(t+"*").join(t+"{0,"+r+"}").split(t+"+").join(t+"{1,"+r+"}")}return A}H("NUMERICIDENTIFIER");l[I.NUMERICIDENTIFIER]="0|[1-9]\\d*";H("NUMERICIDENTIFIERLOOSE");l[I.NUMERICIDENTIFIERLOOSE]="\\d+";H("NONNUMERICIDENTIFIER");l[I.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Og+"*";H("MAINVERSION");l[I.MAINVERSION]="("+l[I.NUMERICIDENTIFIER]+")\\.("+l[I.NUMERICIDENTIFIER]+")\\.("+l[I.NUMERICIDENTIFIER]+")";H("MAINVERSIONLOOSE");l[I.MAINVERSIONLOOSE]="("+l[I.NUMERICIDENTIFIERLOOSE]+")\\.("+l[I.NUMERICIDENTIFIERLOOSE]+")\\.("+l[I.NUMERICIDENTIFIERLOOSE]+")";H("PRERELEASEIDENTIFIER");l[I.PRERELEASEIDENTIFIER]="(?:"+l[I.NUMERICIDENTIFIER]+"|"+l[I.NONNUMERICIDENTIFIER]+")";H("PRERELEASEIDENTIFIERLOOSE");l[I.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[I.NUMERICIDENTIFIERLOOSE]+"|"+l[I.NONNUMERICIDENTIFIER]+")";H("PRERELEASE");l[I.PRERELEASE]="(?:-("+l[I.PRERELEASEIDENTIFIER]+"(?:\\."+l[I.PRERELEASEIDENTIFIER]+")*))";H("PRERELEASELOOSE");l[I.PRERELEASELOOSE]="(?:-?("+l[I.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[I.PRERELEASEIDENTIFIERLOOSE]+")*))";H("BUILDIDENTIFIER");l[I.BUILDIDENTIFIER]=Og+"+";H("BUILD");l[I.BUILD]="(?:\\+("+l[I.BUILDIDENTIFIER]+"(?:\\."+l[I.BUILDIDENTIFIER]+")*))";H("FULL");H("FULLPLAIN");l[I.FULLPLAIN]="v?"+l[I.MAINVERSION]+l[I.PRERELEASE]+"?"+l[I.BUILD]+"?";l[I.FULL]="^"+l[I.FULLPLAIN]+"$";H("LOOSEPLAIN");l[I.LOOSEPLAIN]="[v=\\s]*"+l[I.MAINVERSIONLOOSE]+l[I.PRERELEASELOOSE]+"?"+l[I.BUILD]+"?";H("LOOSE");l[I.LOOSE]="^"+l[I.LOOSEPLAIN]+"$";H("GTLT");l[I.GTLT]="((?:<|>)?=?)";H("XRANGEIDENTIFIERLOOSE");l[I.XRANGEIDENTIFIERLOOSE]=l[I.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";H("XRANGEIDENTIFIER");l[I.XRANGEIDENTIFIER]=l[I.NUMERICIDENTIFIER]+"|x|X|\\*";H("XRANGEPLAIN");l[I.XRANGEPLAIN]="[v=\\s]*("+l[I.XRANGEIDENTIFIER]+")(?:\\.("+l[I.XRANGEIDENTIFIER]+")(?:\\.("+l[I.XRANGEIDENTIFIER]+")(?:"+l[I.PRERELEASE]+")?"+l[I.BUILD]+"?)?)?";H("XRANGEPLAINLOOSE");l[I.XRANGEPLAINLOOSE]="[v=\\s]*("+l[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+l[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+l[I.XRANGEIDENTIFIERLOOSE]+")(?:"+l[I.PRERELEASELOOSE]+")?"+l[I.BUILD]+"?)?)?";H("XRANGE");l[I.XRANGE]="^"+l[I.GTLT]+"\\s*"+l[I.XRANGEPLAIN]+"$";H("XRANGELOOSE");l[I.XRANGELOOSE]="^"+l[I.GTLT]+"\\s*"+l[I.XRANGEPLAINLOOSE]+"$";H("COERCE");l[I.COERCE]="(^|[^\\d])(\\d{1,"+Vg+"})Line truncated
`);for(let s of r){let i=s.split("=");if(i.length===2&&(i[0].trim()==="VERSION_ID"||i[0].trim()==="DISTRIB_RELEASE")){e=i[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}VA._getOsVersion=TS;function GS(){let A="/etc/lsb-release",e="/etc/os-release",t="";return ao.existsSync(A)?t=ao.readFileSync(A).toString():ao.existsSync(e)&&(t=ao.readFileSync(e).toString()),t}VA._readLinuxVersionFile=GS});var qu=h(Le=>{"use strict";var JS=Le&&Le.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),vS=Le&&Le.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),HS=Le&&Le.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&JS(e,A,t);return vS(e,A),e},Hu=Le&&Le.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(Le,"__esModule",{value:!0});Le.RetryHelper=void 0;var Vu=HS(ns()),zg=class{constructor(e,t,r){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,t){return Hu(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e()}catch(i){if(t&&!t(i))throw i;Vu.info(i.message)}let s=this.getSleepAmount();Vu.info(`Waiting ${s} seconds before trying again`),yield this.sleep(s),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Hu(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e*1e3))})}};Le.RetryHelper=zg});var Ku=h(V=>{"use strict";var VS=V&&V.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),qS=V&&V.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),Ve=V&&V.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&VS(e,A,t);return qS(e,A),e},KA=V&&V.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(V,"__esModule",{value:!0});V.evaluateVersions=V.isExplicitVersion=V.findFromManifest=V.getManifestFromRepo=V.findAllVersions=V.find=V.cacheFile=V.cacheDir=V.extractZip=V.extractXar=V.extractTar=V.extract7z=V.downloadTool=V.HTTPError=void 0;var _=Ve(ns()),de=Ve(Mg()),Ou=Ve(require("crypto")),Me=Ve(require("fs")),OS=Ve(vu()),si=Ve(require("os")),He=Ve(require("path")),Wu=Ve(yg()),pt=Ve(Zg()),WS=Ve(require("stream")),PS=Ve(require("util")),Qs=require("assert"),Jt=Tg(),_S=qu(),ri=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};V.HTTPError=ri;var AQ=process.platform==="win32",XS=process.platform==="darwin",ZS="actions/tool-cache";function jS(A,e,t,r){return KA(this,void 0,void 0,function*(){e=e||He.join(ju(),Ou.randomUUID()),yield de.mkdirP(He.dirname(e)),_.debug(`Downloading ${A}`),_.debug(`Destination ${e}`);let s=3,i=$g("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=$g("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new _S.RetryHelper(s,i,n).execute(()=>KA(this,void 0,void 0,function*(){return yield KS(A,e||"",t,r)}),E=>!(E instanceof ri&&E.httpStatusCode&&E.httpStatusCode<500&&E.httpStatusCode!==408&&E.httpStatusCode!==429))})}V.downloadTool=jS;function KS(A,e,t,r){return KA(this,void 0,void 0,function*(){if(Me.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Wu.HttpClient(ZS,[],{allowRetries:!1});t&&(_.debug("set auth"),r===void 0&&(r={}),r.authorization=t);let i=yield s.get(A,r);if(i.message.statusCode!==200){let a=new ri(i.message.statusCode);throw _.debug(`Failed to download from "${A}". Code(${i.message.statusCode}) Message(${i.Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}D.getBooleanInput=Lb;function Mb(A,e){if(process.env.GITHUB_OUTPUT||"")return(0,ar.issueFileCommand)("OUTPUT",(0,ar.prepareKeyValueMessage)(A,e));process.stdout.write(ku.EOL),(0,Se.issueCommand)("set-output",{name:A},(0,Es.toCommandValue)(e))}D.setOutput=Mb;function xb(A){(0,Se.issue)("echo",A?"on":"off")}D.setCommandEcho=xb;function Yb(A){process.exitCode=Gg.Failure,bu(A)}D.setFailed=Yb;function Tb(){return process.env.RUNNER_DEBUG==="1"}D.isDebug=Tb;function Gb(A){(0,Se.issueCommand)("debug",{},A)}D.debug=Gb;function bu(A,e={}){(0,Se.issueCommand)("error",(0,Es.toCommandProperties)(e),A instanceof Error?A.toString():A)}D.error=bu;function Jb(A,e={}){(0,Se.issueCommand)("warning",(0,Es.toCommandProperties)(e),A instanceof Error?A.toString():A)}D.warning=Jb;function vb(A,e={}){(0,Se.issueCommand)("notice",(0,Es.toCommandProperties)(e),A instanceof Error?A.toString():A)}D.notice=vb;function Hb(A){process.stdout.write(A+ku.EOL)}D.info=Hb;function Su(A){(0,Se.issue)("group",A)}D.startGroup=Su;function Uu(){(0,Se.issue)("endgroup")}D.endGroup=Uu;function Vb(A,e){return Fu(this,void 0,void 0,function*(){Su(A);let t;try{t=yield e()}finally{Uu()}return t})}D.group=Vb;function qb(A,e){if(process.env.GITHUB_STATE||"")return(0,ar.issueFileCommand)("STATE",(0,ar.prepareKeyValueMessage)(A,e));(0,Se.issueCommand)("save-state",{name:A},(0,Es.toCommandValue)(e))}D.saveState=qb;function Ob(A){return process.env[`STATE_${A}`]||""}D.getState=Ob;function Wb(A){return Fu(this,void 0,void 0,function*(){return yield Fb.OidcClient.getIDToken(A)})}D.getIDToken=Wb;var Pb=bg();Object.defineProperty(D,"summary",{enumerable:!0,get:function(){return Pb.summary}});var _b=bg();Object.defineProperty(D,"markdownSummary",{enumerable:!0,get:function(){return _b.markdownSummary}});var Hg=Eu();Object.defineProperty(D,"toPosixPath",{enumerable:!0,get:function(){return Hg.toPosixPath}});Object.defineProperty(D,"toWin32Path",{enumerable:!0,get:function(){return Hg.toWin32Path}});Object.defineProperty(D,"toPlatformPath",{enumerable:!0,get:function(){return Hg.toPlatformPath}});D.platform=Jg(mu())});var Zg=h((L,Tu)=>{L=Tu.exports=J;var z;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?z=function(){var A=Array.prototype.slice.call(arguments,0);A.unshift("SEMVER"),console.log.apply(console,A)}:z=function(){};L.SEMVER_SPEC_VERSION="2.0.0";var Ai=256,io=Number.MAX_SAFE_INTEGER||9007199254740991,Vg=16,Xb=Ai-6,as=L.re=[],K=L.safeRe=[],l=L.src=[],I=L.tokens={},xu=0;function H(A){I[A]=xu++}var Og="[a-zA-Z0-9-]",qg=[["\\s",1],["\\d",Ai],[Og,Xb]];function ti(A){for(var e=0;e<qg.length;e++){var t=qg[e][0],r=qg[e][1];A=A.split(t+"*").join(t+"{0,"+r+"}").split(t+"+").join(t+"{1,"+r+"}")}return A}H("NUMERICIDENTIFIER");l[I.NUMERICIDENTIFIER]="0|[1-9]\\d*";H("NUMERICIDENTIFIERLOOSE");l[I.NUMERICIDENTIFIERLOOSE]="\\d+";H("NONNUMERICIDENTIFIER");l[I.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Og+"*";H("MAINVERSION");l[I.MAINVERSION]="("+l[I.NUMERICIDENTIFIER]+")\\.("+l[I.NUMERICIDENTIFIER]+")\\.("+l[I.NUMERICIDENTIFIER]+")";H("MAINVERSIONLOOSE");l[I.MAINVERSIONLOOSE]="("+l[I.NUMERICIDENTIFIERLOOSE]+")\\.("+l[I.NUMERICIDENTIFIERLOOSE]+")\\.("+l[I.NUMERICIDENTIFIERLOOSE]+")";H("PRERELEASEIDENTIFIER");l[I.PRERELEASEIDENTIFIER]="(?:"+l[I.NUMERICIDENTIFIER]+"|"+l[I.NONNUMERICIDENTIFIER]+")";H("PRERELEASEIDENTIFIERLOOSE");l[I.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[I.NUMERICIDENTIFIERLOOSE]+"|"+l[I.NONNUMERICIDENTIFIER]+")";H("PRERELEASE");l[I.PRERELEASE]="(?:-("+l[I.PRERELEASEIDENTIFIER]+"(?:\\."+l[I.PRERELEASEIDENTIFIER]+")*))";H("PRERELEASELOOSE");l[I.PRERELEASELOOSE]="(?:-?("+l[I.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[I.PRERELEASEIDENTIFIERLOOSE]+")*))";H("BUILDIDENTIFIER");l[I.BUILDIDENTIFIER]=Og+"+";H("BUILD");l[I.BUILD]="(?:\\+("+l[I.BUILDIDENTIFIER]+"(?:\\."+l[I.BUILDIDENTIFIER]+")*))";H("FULL");H("FULLPLAIN");l[I.FULLPLAIN]="v?"+l[I.MAINVERSION]+l[I.PRERELEASE]+"?"+l[I.BUILD]+"?";l[I.FULL]="^"+l[I.FULLPLAIN]+"$";H("LOOSEPLAIN");l[I.LOOSEPLAIN]="[v=\\s]*"+l[I.MAINVERSIONLOOSE]+l[I.PRERELEASELOOSE]+"?"+l[I.BUILD]+"?";H("LOOSE");l[I.LOOSE]="^"+l[I.LOOSEPLAIN]+"$";H("GTLT");l[I.GTLT]="((?:<|>)?=?)";H("XRANGEIDENTIFIERLOOSE");l[I.XRANGEIDENTIFIERLOOSE]=l[I.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";H("XRANGEIDENTIFIER");l[I.XRANGEIDENTIFIER]=l[I.NUMERICIDENTIFIER]+"|x|X|\\*";H("XRANGEPLAIN");l[I.XRANGEPLAIN]="[v=\\s]*("+l[I.XRANGEIDENTIFIER]+")(?:\\.("+l[I.XRANGEIDENTIFIER]+")(?:\\.("+l[I.XRANGEIDENTIFIER]+")(?:"+l[I.PRERELEASE]+")?"+l[I.BUILD]+"?)?)?";H("XRANGEPLAINLOOSE");l[I.XRANGEPLAINLOOSE]="[v=\\s]*("+l[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+l[I.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+l[I.XRANGEIDENTIFIERLOOSE]+")(?:"+l[I.PRERELEASELOOSE]+")?"+l[I.BUILD]+"?)?)?";H("XRANGE");l[I.XRANGE]="^"+l[I.GTLT]+"\\s*"+l[I.XRANGEPLAIN]+"$";H("XRANGELOOSE");l[I.XRANGELOOSE]="^"+l[I.GTLT]+"\\s*"+l[I.XRANGEPLAINLOOSE]+"$";H("COERCE");l[I.COERCE]="(^|[^\\d])(\\d{1,"+Vg+"})Line truncated
`);for(let s of r){let i=s.split("=");if(i.length===2&&(i[0].trim()==="VERSION_ID"||i[0].trim()==="DISTRIB_RELEASE")){e=i[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}qA._getOsVersion=TS;function GS(){let A="/etc/lsb-release",e="/etc/os-release",t="";return ao.existsSync(A)?t=ao.readFileSync(A).toString():ao.existsSync(e)&&(t=ao.readFileSync(e).toString()),t}qA._readLinuxVersionFile=GS});var qu=h(Le=>{"use strict";var JS=Le&&Le.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),vS=Le&&Le.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),HS=Le&&Le.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&JS(e,A,t);return vS(e,A),e},Hu=Le&&Le.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(Le,"__esModule",{value:!0});Le.RetryHelper=void 0;var Vu=HS(ns()),zg=class{constructor(e,t,r){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,t){return Hu(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e()}catch(i){if(t&&!t(i))throw i;Vu.info(i.message)}let s=this.getSleepAmount();Vu.info(`Waiting ${s} seconds before trying again`),yield this.sleep(s),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Hu(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e*1e3))})}};Le.RetryHelper=zg});var Ku=h(V=>{"use strict";var VS=V&&V.__createBinding||(Object.create?(function(A,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}):(function(A,e,t,r){r===void 0&&(r=t),A[r]=e[t]})),qS=V&&V.__setModuleDefault||(Object.create?(function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}):function(A,e){A.default=e}),Ve=V&&V.__importStar||function(A){if(A&&A.__esModule)return A;var e={};if(A!=null)for(var t in A)t!=="default"&&Object.prototype.hasOwnProperty.call(A,t)&&VS(e,A,t);return qS(e,A),e},zA=V&&V.__awaiter||function(A,e,t,r){function s(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function o(a){try{g(r.next(a))}catch(Q){n(Q)}}function E(a){try{g(r.throw(a))}catch(Q){n(Q)}}function g(a){a.done?i(a.value):s(a.value).then(o,E)}g((r=r.apply(A,e||[])).next())})};Object.defineProperty(V,"__esModule",{value:!0});V.evaluateVersions=V.isExplicitVersion=V.findFromManifest=V.getManifestFromRepo=V.findAllVersions=V.find=V.cacheFile=V.cacheDir=V.extractZip=V.extractXar=V.extractTar=V.extract7z=V.downloadTool=V.HTTPError=void 0;var _=Ve(ns()),de=Ve(Mg()),Ou=Ve(require("crypto")),Me=Ve(require("fs")),OS=Ve(vu()),si=Ve(require("os")),He=Ve(require("path")),Wu=Ve(yg()),pt=Ve(Zg()),WS=Ve(require("stream")),PS=Ve(require("util")),Qs=require("assert"),Jt=Tg(),_S=qu(),ri=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};V.HTTPError=ri;var AQ=process.platform==="win32",XS=process.platform==="darwin",ZS="actions/tool-cache";function jS(A,e,t,r){return zA(this,void 0,void 0,function*(){e=e||He.join(ju(),Ou.randomUUID()),yield de.mkdirP(He.dirname(e)),_.debug(`Downloading ${A}`),_.debug(`Destination ${e}`);let s=3,i=$g("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=$g("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new _S.RetryHelper(s,i,n).execute(()=>zA(this,void 0,void 0,function*(){return yield KS(A,e||"",t,r)}),E=>!(E instanceof ri&&E.httpStatusCode&&E.httpStatusCode<500&&E.httpStatusCode!==408&&E.httpStatusCode!==429))})}V.downloadTool=jS;function KS(A,e,t,r){return zA(this,void 0,void 0,function*(){if(Me.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Wu.HttpClient(ZS,[],{allowRetries:!1});t&&(_.debug("set auth"),r===void 0&&(r={}),r.authorization=t);let i=yield s.get(A,r);if(i.message.statusCode!==200){let a=new ri(i.message.statusCode);throw _.debug(`Failed to download from "${A}". Code(${i.message.statusCode}) Message(${i.Line truncated
/*! Bundled license information:
undici/lib/fetch/body.js:
+28 -7
View File
@@ -40,6 +40,7 @@ async function run() {
let fileName = core.getInput('file-name');
const binaryInput = core.getInput('binary-name');
const fileType = core.getInput('file-type') || 'archive';
const updateCache = core.getInput('update-cache') || 'false';
const debug = core.getBooleanInput('debug');
const token = core.getInput('token') || process.env.GITHUB_TOKEN;
@@ -47,6 +48,25 @@ async function run() {
const platform = os.platform(); // 'linux', 'darwin', 'win32'
const arch = os.arch(); // 'x64', 'arm64'
const toolName = repository.split('/').pop() || repository;
// Rule for update-cache: 'false' means use ANY cached version if available
if (updateCache === 'false') {
const allVersions = tc.findAllVersions(toolName, arch);
if (allVersions.length > 0) {
// Simple sort to pick the 'latest' local version
const latestVersion = allVersions.sort().pop();
if (latestVersion) {
const cachedDir = tc.find(toolName, latestVersion, arch);
if (cachedDir) {
core.info(`Found ${toolName} version ${latestVersion} in local cache (update-cache: false)`);
core.addPath(cachedDir);
return;
}
}
}
}
const systemPatterns: Record<string, string> = {
linux: 'linux',
darwin: '(darwin|macos|mac)',
@@ -141,15 +161,16 @@ async function run() {
}
const version = data.tag_name.replace(/^v/, '');
const toolName = repository.split('/').pop() || repository;
const binaryName = binaryInput || toolName;
// Check if the tool is already in the cache
const cachedDir = tc.find(toolName, version, arch);
if (cachedDir) {
core.info(`Found ${toolName} version ${version} in cache at ${cachedDir}`);
core.addPath(cachedDir);
return;
// Check if the tool is already in the cache (if not 'always' update)
if (updateCache !== 'always') {
const cachedDir = tc.find(toolName, version, arch);
if (cachedDir) {
core.info(`Found ${toolName} version ${version} in cache at ${cachedDir}`);
core.addPath(cachedDir);
return;
}
}
const downloadUrl = asset.browser_download_url;