setup-cpp
Version:
Install all the tools required for building and testing C++/C projects.
1 lines • 277 kB
JavaScript
function A(A,Q){for(var E=0;Q.length>E;E++){const B=Q[E];if("string"!=typeof B&&!Array.isArray(B))for(const Q in B)if("default"!==Q&&!(Q in A)){const E=Object.getOwnPropertyDescriptor(B,Q);E&&Object.defineProperty(A,Q,E.get?E:{enumerable:!0,get:()=>B[Q]})}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}function Q(){return x?W:(x=1,W={kClose:Symbol(),kDestroy:Symbol(),kDispatch:Symbol(),kUrl:Symbol(),kWriting:Symbol(),kResuming:Symbol(),kQueue:Symbol(),kConnect:Symbol(),kConnecting:Symbol(),kHeadersList:Symbol(),kKeepAliveDefaultTimeout:Symbol(),kKeepAliveMaxTimeout:Symbol(),kKeepAliveTimeoutThreshold:Symbol(),kKeepAliveTimeoutValue:Symbol(),kKeepAlive:Symbol(),kHeadersTimeout:Symbol(),kBodyTimeout:Symbol(),kServerName:Symbol(),kLocalAddress:Symbol(),kHost:Symbol(),kNoRef:Symbol(),kBodyUsed:Symbol(),kRunning:Symbol(),kBlocking:Symbol(),kPending:Symbol(),kSize:Symbol(),kBusy:Symbol(),kQueued:Symbol(),kFree:Symbol(),kConnected:Symbol(),kClosed:Symbol(),kNeedDrain:Symbol(),kReset:Symbol(),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol(),kRunningIdx:Symbol(),kPendingIdx:Symbol(),kError:Symbol(),kClients:Symbol(),kClient:Symbol(),kParser:Symbol(),kOnDestroyed:Symbol(),kPipelining:Symbol(),kSocket:Symbol(),kHostHeader:Symbol(),kConnector:Symbol(),kStrictContentLength:Symbol(),kMaxRedirections:Symbol(),kMaxRequests:Symbol(),kProxy:Symbol(),kCounter:Symbol(),kInterceptors:Symbol(),kMaxResponseSize:Symbol(),kHTTP2Session:Symbol(),kHTTP2SessionState:Symbol(),kHTTP2BuildRequest:Symbol(),kHTTP1BuildRequest:Symbol(),kHTTP2CopyHeaders:Symbol(),kHTTPConnVersion:Symbol(),kRetryHandlerDefaultRetry:Symbol(),kConstruct:Symbol()})}function E(){if(O)return q;O=1;class A extends Error{constructor(A){super(A),this.name="UndiciError",this.code="UND_ERR"}}class Q extends A{constructor(A){super(A),Error.captureStackTrace(this,Q),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class E extends A{constructor(A){super(A),Error.captureStackTrace(this,E),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class B extends A{constructor(A){super(A),Error.captureStackTrace(this,B),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class g extends A{constructor(A){super(A),Error.captureStackTrace(this,g),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class I extends A{constructor(A,Q,E,B){super(A),Error.captureStackTrace(this,I),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=B,this.status=Q,this.statusCode=Q,this.headers=E}}class C extends A{constructor(A){super(A),Error.captureStackTrace(this,C),this.name="InvalidArgumentError",this.message=A||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class e extends A{constructor(A){super(A),Error.captureStackTrace(this,e),this.name="InvalidReturnValueError",this.message=A||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class t extends A{constructor(A){super(A),Error.captureStackTrace(this,t),this.name="AbortError",this.message=A||"Request aborted",this.code="UND_ERR_ABORTED"}}class i extends A{constructor(A){super(A),Error.captureStackTrace(this,i),this.name="InformationalError",this.message=A||"Request information",this.code="UND_ERR_INFO"}}class o extends A{constructor(A){super(A),Error.captureStackTrace(this,o),this.name="RequestContentLengthMismatchError",this.message=A||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class s extends A{constructor(A){super(A),Error.captureStackTrace(this,s),this.name="ResponseContentLengthMismatchError",this.message=A||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class r extends A{constructor(A){super(A),Error.captureStackTrace(this,r),this.name="ClientDestroyedError",this.message=A||"The client is destroyed",this.code="UND_ERR_DESTROYED"}}class n extends A{constructor(A){super(A),Error.captureStackTrace(this,n),this.name="ClientClosedError",this.message=A||"The client is closed",this.code="UND_ERR_CLOSED"}}class h extends A{constructor(A,Q){super(A),Error.captureStackTrace(this,h),this.name="SocketError",this.message=A||"Socket error",this.code="UND_ERR_SOCKET",this.socket=Q}}class a extends A{constructor(A){super(A),Error.captureStackTrace(this,a),this.name="NotSupportedError",this.message=A||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}}class c extends Error{constructor(A,Q,E){super(A),Error.captureStackTrace(this,c),this.name="HTTPParserError",this.code=Q?"HPE_"+Q:void 0,this.data=E?""+E:void 0}}class D extends A{constructor(A){super(A),Error.captureStackTrace(this,D),this.name="ResponseExceededMaxSizeError",this.message=A||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class l extends A{constructor(A,Q,{headers:E,data:B}){super(A),Error.captureStackTrace(this,l),this.name="RequestRetryError",this.message=A||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=Q,this.data=B,this.headers=E}}return q={HTTPParserError:c,UndiciError:A,HeadersTimeoutError:E,HeadersOverflowError:B,BodyTimeoutError:g,RequestContentLengthMismatchError:o,ConnectTimeoutError:Q,ResponseStatusCodeError:I,InvalidArgumentError:C,InvalidReturnValueError:e,RequestAbortedError:t,ClientDestroyedError:r,ClientClosedError:n,InformationalError:i,SocketError:h,NotSupportedError:a,ResponseContentLengthMismatchError:s,BalancedPoolMissingUpstreamError:class extends A{constructor(A){super(A),Error.captureStackTrace(this,a),this.name="MissingUpstreamError",this.message=A||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}},ResponseExceededMaxSizeError:D,RequestRetryError:l}}function B(){if(v)return X;v=1;const A=function(){if(P)return Z;P=1;const A=y;return Z=class extends A{dispatch(){throw Error("not implemented")}close(){throw Error("not implemented")}destroy(){throw Error("not implemented")}}}(),{ClientDestroyedError:B,ClientClosedError:g,InvalidArgumentError:I}=E(),{kDestroy:C,kClose:e,kDispatch:t,kInterceptors:i}=Q(),o=Symbol(),s=Symbol(),r=Symbol(),n=Symbol(),h=Symbol();return X=class extends A{constructor(){super(),this[o]=!1,this[r]=null,this[s]=!1,this[n]=[]}get destroyed(){return this[o]}get closed(){return this[s]}get interceptors(){return this[i]}set interceptors(A){if(A)for(let Q=A.length-1;Q>=0;Q--)if("function"!=typeof this[i][Q])throw new I("interceptor must be an function");this[i]=A}close(A){if(void 0===A)return new Promise(((A,Q)=>{this.close(((E,B)=>E?Q(E):A(B)))}));if("function"!=typeof A)throw new I("invalid callback");if(this[o])return void queueMicrotask((()=>A(new B,null)));if(this[s])return void(this[n]?this[n].push(A):queueMicrotask((()=>A(null,null))));this[s]=!0,this[n].push(A);const Q=()=>{const A=this[n];this[n]=null;for(let Q=0;A.length>Q;Q++)A[Q](null,null)};this[e]().then((()=>this.destroy())).then((()=>{queueMicrotask(Q)}))}destroy(A,Q){if("function"==typeof A&&(Q=A,A=null),void 0===Q)return new Promise(((Q,E)=>{this.destroy(A,((A,B)=>A?E(A):Q(B)))}));if("function"!=typeof Q)throw new I("invalid callback");if(this[o])return void(this[r]?this[r].push(Q):queueMicrotask((()=>Q(null,null))));A||(A=new B),this[o]=!0,this[r]=this[r]||[],this[r].push(Q);const E=()=>{const A=this[r];this[r]=null;for(let Q=0;A.length>Q;Q++)A[Q](null,null)};this[C](A).then((()=>{queueMicrotask(E)}))}[h](A,Q){if(!this[i]||0===this[i].length)return this[h]=this[t],this[t](A,Q);let E=this[t].bind(this);for(let B=this[i].length-1;B>=0;B--)E=this[i][B](E);return this[h]=E,E(A,Q)}dispatch(A,Q){if(!Q||"object"!=typeof Q)throw new I("handler must be an object");try{if(!A||"object"!=typeof A)throw new I("opts must be an object.");if(this[o]||this[r])throw new B;if(this[s])throw new g;return this[h](A,Q)}catch(E){if("function"!=typeof Q.onError)throw new I("invalid onError method");return Q.onError(E),!1}}}}function g(){function A(A){return A&&"object"==typeof A&&"function"==typeof A.pipe&&"function"==typeof A.on}function B(A){return a&&A instanceof a||A&&"object"==typeof A&&("function"==typeof A.stream||"function"==typeof A.arrayBuffer)&&/^(Blob|File)$/.test(A[Symbol.toStringTag])}function g(A){if("string"==typeof A){if(A=new URL(A),!/^https?:/.test(A.origin||A.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");return A}if(!A||"object"!=typeof A)throw new h("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(A.origin||A.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(A instanceof URL)){if(null!=A.port&&""!==A.port&&!Number.isFinite(parseInt(A.port)))throw new h("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=A.path&&"string"!=typeof A.path)throw new h("Invalid URL path: the path must be a string or null/undefined.");if(null!=A.pathname&&"string"!=typeof A.pathname)throw new h("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=A.hostname&&"string"!=typeof A.hostname)throw new h("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=A.origin&&"string"!=typeof A.origin)throw new h("Invalid URL origin: the origin must be a string or null/undefined.");let Q=null!=A.origin?A.origin:`${A.protocol}//${A.hostname}:${null!=A.port?A.port:"https:"===A.protocol?443:80}`,E=null!=A.path?A.path:`${A.pathname||""}${A.search||""}`;Q.endsWith("/")&&(Q=Q.substring(0,Q.length-1)),E&&!E.startsWith("/")&&(E="/"+E),A=new URL(Q+E)}return A}function I(A){return!A||!(!A.destroyed&&!A[i])}function C(A){const Q=A&&A._readableState;return I(A)&&Q&&!Q.endEmitted}function e(A){return A instanceof Uint8Array||Buffer.isBuffer(A)}if(gA)return BA;gA=1;const t=k,{kDestroyed:i,kBodyUsed:o}=Q(),{IncomingMessage:s}=U,r=S,n=f,{InvalidArgumentError:h}=E(),{Blob:a}=L,c=M,{stringify:D}=Y,{headerNameLowerCasedRecord:l}=function(){if(EA)return QA;EA=1;const A={},Q=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let E=0;Q.length>E;++E){const B=Q[E],g=B.toLowerCase();A[B]=A[g]=g}return Object.setPrototypeOf(A,null),QA={wellknownHeaderNames:Q,headerNameLowerCasedRecord:A}}(),[R,F]=process.versions.node.split(".").map((A=>Number(A))),u=/timeout=(\d+)/;let N;const w=!!"".toWellFormed,d=Object.create(null);return d.enumerable=!0,BA={kEnumerableProperty:d,nop:function(){},isDisturbed:function(A){return!(!A||!(r.isDisturbed?r.isDisturbed(A)||A[o]:A[o]||A.readableDidRead||A._readableState&&A._readableState.dataEmitted||C(A)))},isErrored:function(A){return!(!A||!(r.isErrored?r.isErrored(A):/state: 'errored'/.test(c.inspect(A))))},isReadable:function(A){return!(!A||!(r.isReadable?r.isReadable(A):/state: 'readable'/.test(c.inspect(A))))},toUSVString:function(A){return w?(""+A).toWellFormed():c.toUSVString?c.toUSVString(A):""+A},isReadableAborted:C,isBlobLike:B,parseOrigin:function(A){if("/"!==(A=g(A)).pathname||A.search||A.hash)throw new h("invalid url");return A},parseURL:g,getServerName:function(A){if(!A)return null;t.strictEqual(typeof A,"string");const Q=function(A){if("["===A[0]){const Q=A.indexOf("]");return t(-1!==Q),A.substring(1,Q)}const Q=A.indexOf(":");return-1===Q?A:A.substring(0,Q)}(A);return n.isIP(Q)?"":Q},isStream:A,isIterable:function(A){return!(null==A||"function"!=typeof A[Symbol.iterator]&&"function"!=typeof A[Symbol.asyncIterator])},isAsyncIterable:function(A){return!(null==A||"function"!=typeof A[Symbol.asyncIterator])},isDestroyed:I,headerNameToString:function(A){return l[A]||A.toLowerCase()},parseRawHeaders:function(A){const Q=[];let E=!1,B=-1;for(let g=0;A.length>g;g+=2){const I=""+A[g+0],C=A[g+1].toString("utf8");14!==I.length||"content-length"!==I&&"content-length"!==I.toLowerCase()?19!==I.length||"content-disposition"!==I&&"content-disposition"!==I.toLowerCase()?Q.push(I,C):B=Q.push(I,C)-1:(Q.push(I,C),E=!0)}return E&&-1!==B&&(Q[B]=Buffer.from(Q[B]).toString("latin1")),Q},parseHeaders:function(A,Q={}){if(!Array.isArray(A))return A;for(let E=0;A.length>E;E+=2){const B=(""+A[E]).toLowerCase();let g=Q[B];g?(Array.isArray(g)||(g=[g],Q[B]=g),g.push(A[E+1].toString("utf8"))):Q[B]=Array.isArray(A[E+1])?A[E+1].map((A=>A.toString("utf8"))):A[E+1].toString("utf8")}return"content-length"in Q&&"content-disposition"in Q&&(Q["content-disposition"]=Buffer.from(Q["content-disposition"]).toString("latin1")),Q},parseKeepAliveTimeout:function(A){const Q=(""+A).match(u);return Q?1e3*parseInt(Q[1],10):null},destroy:function(Q,E){null!=Q&&A(Q)&&!I(Q)&&("function"==typeof Q.destroy?(Object.getPrototypeOf(Q).constructor===s&&(Q.socket=null),Q.destroy(E)):E&&process.nextTick(((A,Q)=>{A.emit("error",Q)}),Q,E),!0!==Q.destroyed&&(Q[i]=!0))},bodyLength:function(Q){if(null==Q)return 0;if(A(Q)){const A=Q._readableState;return A&&!1===A.objectMode&&!0===A.ended&&Number.isFinite(A.length)?A.length:null}return B(Q)?null!=Q.size?Q.size:null:e(Q)?Q.byteLength:null},deepClone:function(A){return JSON.parse(JSON.stringify(A))},ReadableStreamFrom:function(A){if(N||(N=J.ReadableStream),N.from)return N.from(async function*(A){for await(const Q of A)yield Buffer.isBuffer(Q)?Q:Buffer.from(Q)}(A));let Q;return new N({async start(){Q=A[Symbol.asyncIterator]()},async pull(A){const{done:E,value:B}=await Q.next();if(E)queueMicrotask((()=>{A.close()}));else{const Q=Buffer.isBuffer(B)?B:Buffer.from(B);A.enqueue(new Uint8Array(Q))}return A.desiredSize>0},async cancel(A){await Q.return()}},0)},isBuffer:e,validateHandler:function(A,Q,E){if(!A||"object"!=typeof A)throw new h("handler must be an object");if("function"!=typeof A.onConnect)throw new h("invalid onConnect method");if("function"!=typeof A.onError)throw new h("invalid onError method");if("function"!=typeof A.onBodySent&&void 0!==A.onBodySent)throw new h("invalid onBodySent method");if(E||"CONNECT"===Q){if("function"!=typeof A.onUpgrade)throw new h("invalid onUpgrade method")}else{if("function"!=typeof A.onHeaders)throw new h("invalid onHeaders method");if("function"!=typeof A.onData)throw new h("invalid onData method");if("function"!=typeof A.onComplete)throw new h("invalid onComplete method")}},getSocketInfo:function(A){return{localAddress:A.localAddress,localPort:A.localPort,remoteAddress:A.remoteAddress,remotePort:A.remotePort,remoteFamily:A.remoteFamily,timeout:A.timeout,bytesWritten:A.bytesWritten,bytesRead:A.bytesRead}},isFormDataLike:function(A){return A&&"object"==typeof A&&"function"==typeof A.append&&"function"==typeof A.delete&&"function"==typeof A.get&&"function"==typeof A.getAll&&"function"==typeof A.has&&"function"==typeof A.set&&"FormData"===A[Symbol.toStringTag]},buildURL:function(A,Q){if(A.includes("?")||A.includes("#"))throw Error('Query params cannot be passed when url already contains "?" or "#".');const E=D(Q);return E&&(A+="?"+E),A},throwIfAborted:function(A){if(A)if("function"==typeof A.throwIfAborted)A.throwIfAborted();else if(A.aborted){const A=Error("The operation was aborted");throw A.name="AbortError",A}},addAbortListener:function(A,Q){return"addEventListener"in A?(A.addEventListener("abort",Q,{once:!0}),()=>A.removeEventListener("abort",Q)):(A.addListener("abort",Q),()=>A.removeListener("abort",Q))},parseRangeHeader:function(A){if(null==A||""===A)return{start:0,end:null,size:null};const Q=A?A.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return Q?{start:parseInt(Q[1]),end:Q[2]?parseInt(Q[2]):null,size:Q[3]?parseInt(Q[3]):null}:null},nodeMajor:R,nodeMinor:F,nodeHasAutoSelectFamily:R>18||18===R&&F>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}}function I(){function A(A){if("string"==typeof A&&(A=Buffer.from(A)),!Buffer.isBuffer(A))throw new TypeError("The needle has to be a String or a Buffer.");const Q=A.length;if(0===Q)throw Error("The needle cannot be an empty String/Buffer.");if(Q>256)throw Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=Array(256).fill(Q),this._lookbehind_size=0,this._needle=A,this._bufpos=0,this._lookbehind=Buffer.alloc(Q);for(var E=0;Q-1>E;++E)this._occ[A[E]]=Q-1-E}return tA?eA:(tA=1,(0,p.inherits)(A,b.EventEmitter),A.prototype.reset=function(){this._lookbehind_size=0,this.matches=0,this._bufpos=0},A.prototype.push=function(A,Q){Buffer.isBuffer(A)||(A=Buffer.from(A,"binary"));const E=A.length;let B;for(this._bufpos=Q||0;B!==E&&this.maxMatches>this.matches;)B=this._sbmh_feed(A);return B},A.prototype._sbmh_feed=function(A){const Q=A.length,E=this._needle,B=E.length,g=E[B-1];let I,C=-this._lookbehind_size;if(0>C){for(;0>C&&Q-B>=C;){if(I=this._sbmh_lookup_char(A,C+B-1),I===g&&this._sbmh_memcmp(A,C,B-1))return this._lookbehind_size=0,++this.matches,this.emit("info",!0),this._bufpos=C+B;C+=this._occ[I]}if(0>C)for(;0>C&&!this._sbmh_memcmp(A,C,Q-C);)++C;if(0>C){const E=this._lookbehind_size+C;return E>0&&this.emit("info",!1,this._lookbehind,0,E),this._lookbehind.copy(this._lookbehind,0,E,this._lookbehind_size-E),this._lookbehind_size-=E,A.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=Q,this._bufpos=Q,Q}this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0}if(C+=(C>=0)*this._bufpos,-1!==A.indexOf(E,C))return C=A.indexOf(E,C),++this.matches,C>0?this.emit("info",!0,A,this._bufpos,C):this.emit("info",!0),this._bufpos=C+B;for(C=Q-B;Q>C&&(A[C]!==E[0]||0!==Buffer.compare(A.subarray(C,C+Q-C),E.subarray(0,Q-C)));)++C;return Q>C&&(A.copy(this._lookbehind,0,C,C+(Q-C)),this._lookbehind_size=Q-C),C>0&&this.emit("info",!1,A,this._bufpos,Q>C?C:Q),this._bufpos=Q,Q},A.prototype._sbmh_lookup_char=function(A,Q){return 0>Q?this._lookbehind[this._lookbehind_size+Q]:A[Q]},A.prototype._sbmh_memcmp=function(A,Q,E){for(var B=0;E>B;++B)if(this._sbmh_lookup_char(A,Q+B)!==this._needle[B])return!1;return!0},eA=A)}function C(){return rA?sA:(rA=1,sA=function(A,Q,E){if(!A||null==A[Q])return E;if("number"!=typeof A[Q]||isNaN(A[Q]))throw new TypeError("Limit "+Q+" is not a valid number");return A[Q]})}function e(){function A(E){if(!(this instanceof A))return new A(E);if(Q.call(this,E),!E||!E.headerFirst&&"string"!=typeof E.boundary)throw new TypeError("Boundary required");"string"==typeof E.boundary?this.setBoundary(E.boundary):this._bparser=void 0,this._headerFirst=E.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:E.partHwm},this._pause=!1;const B=this;this._hparser=new e(E),this._hparser.on("header",(function(A){B._inHeader=!1,B._part.emit("header",A)}))}if(cA)return aA;cA=1;const Q=G.Writable,E=p.inherits,B=I(),g=function(){function A(A){Q.call(this,A)}if(oA)return iA;oA=1;const Q=G.Readable;return(0,p.inherits)(A,Q),A.prototype._read=function(A){},iA=A}(),e=function(){function A(A){Q.call(this),A=A||{};const E=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=B(A,"maxHeaderPairs",2e3),this.maxHeaderSize=B(A,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new g(e),this.ss.on("info",(function(A,Q,B,g){Q&&!E.maxed&&(E.maxHeaderSize>E.nread+g-B?E.nread+=g-B:(g=E.maxHeaderSize-E.nread+B,E.nread=E.maxHeaderSize,E.maxed=!0),E.buffer+=Q.toString("binary",B,g)),A&&E._finish()}))}if(hA)return nA;hA=1;const Q=b.EventEmitter,E=p.inherits,B=C(),g=I(),e=Buffer.from("\r\n\r\n"),t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;return E(A,Q),A.prototype.push=function(A){const Q=this.ss.push(A);if(this.finished)return Q},A.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()},A.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;const A=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",A)},A.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;const A=this.buffer.split(/\r\n/g),Q=A.length;let E,B;for(var g=0;Q>g;++g){if(0===A[g].length)continue;if(("\t"===A[g][0]||" "===A[g][0])&&B){this.header[B][this.header[B].length-1]+=A[g];continue}const Q=A[g].indexOf(":");if(-1===Q||0===Q)return;if(E=t.exec(A[g]),B=E[1].toLowerCase(),this.header[B]=this.header[B]||[],this.header[B].push(E[2]||""),++this.npairs===this.maxHeaderPairs)break}},nA=A}(),t=Buffer.from("-"),i=Buffer.from("\r\n"),o=function(){};return E(A,Q),A.prototype.emit=function(A){if("finish"!==A||this._realFinish)Q.prototype.emit.apply(this,arguments);else if(!this._finished){const A=this;process.nextTick((function(){if(A.emit("error",Error("Unexpected end of multipart data")),A._part&&!A._ignoreData)return A._part.emit("error",Error((A._isPreamble?"Preamble":"Part")+" terminated early due to unexpected end of multipart data")),A._part.push(null),void process.nextTick((function(){A._realFinish=!0,A.emit("finish"),A._realFinish=!1}));A._realFinish=!0,A.emit("finish"),A._realFinish=!1}))}},A.prototype._write=function(A,Q,E){if(!this._hparser&&!this._bparser)return E();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new g(this._partOpts),0!==this.listenerCount("preamble")?this.emit("preamble",this._part):this._ignore());const Q=this._hparser.push(A);if(this._inHeader||void 0===Q||Q>=A.length)return E();A=A.slice(Q)}this._firstWrite&&(this._bparser.push(i),this._firstWrite=!1),this._bparser.push(A),this._pause?this._cb=E:E()},A.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0},A.prototype.setBoundary=function(A){const Q=this;this._bparser=new B("\r\n--"+A),this._bparser.on("info",(function(A,E,B,g){Q._oninfo(A,E,B,g)}))},A.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",o),this._part.resume())},A.prototype._oninfo=function(A,Q,E,B){let I;const C=this;let e,i=0,o=!0;if(!this._part&&this._justMatched&&Q){for(;2>this._dashes&&B>E+i;){if(45!==Q[E+i]){this._dashes&&(I=t),this._dashes=0;break}++i,++this._dashes}if(2===this._dashes&&(B>E+i&&0!==this.listenerCount("trailer")&&this.emit("trailer",Q.slice(E+i,B)),this.reset(),this._finished=!0,0===C._parts&&(C._realFinish=!0,C.emit("finish"),C._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new g(this._partOpts),this._part._read=function(A){C._unpause()},this._isPreamble&&0!==this.listenerCount("preamble")?this.emit("preamble",this._part):!0!==this._isPreamble&&0!==this.listenerCount("part")?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),Q&&B>E&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(I&&(o=this._part.push(I)),o=this._part.push(Q.slice(E,B)),o||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(I&&this._hparser.push(I),e=this._hparser.push(Q.slice(E,B)),!this._inHeader&&void 0!==e&&B>e&&this._oninfo(!1,Q,E+e,B))),A&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:E!==B&&(++this._parts,this._part.on("end",(function(){0==--C._parts&&(C._finished?(C._realFinish=!0,C.emit("finish"),C._realFinish=!1):C._unpause())}))),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)},A.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){const A=this._cb;this._cb=void 0,A()}},aA=A}function t(){if(lA)return DA;lA=1;const A=new TextDecoder("utf-8"),Q=new Map([["utf-8",A],["utf8",A]]),E={utf8:(A,Q)=>0===A.length?"":("string"==typeof A&&(A=Buffer.from(A,Q)),A.utf8Slice(0,A.length)),latin1:(A,Q)=>0===A.length?"":"string"==typeof A?A:A.latin1Slice(0,A.length),utf16le:(A,Q)=>0===A.length?"":("string"==typeof A&&(A=Buffer.from(A,Q)),A.ucs2Slice(0,A.length)),base64:(A,Q)=>0===A.length?"":("string"==typeof A&&(A=Buffer.from(A,Q)),A.base64Slice(0,A.length)),other:(A,E)=>{if(0===A.length)return"";if("string"==typeof A&&(A=Buffer.from(A,E)),Q.has(""+this))try{return Q.get(this).decode(A)}catch{}return"string"==typeof A?A:""+A}};return DA=function(A,Q,B){return A?function(A){let Q;for(;;)switch(A){case"utf-8":case"utf8":return E.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 E.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return E.utf16le;case"base64":return E.base64;default:if(void 0===Q){Q=!0,A=A.toLowerCase();continue}return E.other.bind(A)}}(B)(A,Q):A}}function i(){function A(A){return B[A]}if(FA)return RA;FA=1;const Q=t(),E=/%[a-fA-F0-9][a-fA-F0-9]/g,B={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%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":"","%1B":"","%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":"","%7F":"","%80":"","%81":"","%82":"","%83":"","%84":"","%85":"
","%86":"","%87":"","%88":"","%89":"","%8a":"","%8A":"","%8b":"","%8B":"","%8c":"","%8C":"","%8d":"","%8D":"","%8e":"","%8E":"","%8f":"","%8F":"","%90":"","%91":"","%92":"","%93":"","%94":"","%95":"","%96":"","%97":"","%98":"","%99":"","%9a":"","%9A":"","%9b":"","%9B":"","%9c":"","%9C":"","%9d":"","%9D":"","%9e":"","%9E":"","%9f":"","%9F":"","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"","%Ad":"","%aD":"","%AD":"","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};return RA=function(B){const g=[];let I=0,C="",e=!1,t=!1,i=0,o="";const s=B.length;for(var r=0;s>r;++r){const s=B[r];if("\\"===s&&e){if(!t){t=!0;continue}t=!1}else if('"'===s){if(!t){e?(e=!1,I=0):e=!0;continue}t=!1}else{if(t&&e&&(o+="\\"),t=!1,(2===I||3===I)&&"'"===s){2===I?(I=3,C=o.substring(1)):I=1,o="";continue}if(0===I&&("*"===s||"="===s)&&g.length){I="*"===s?2:1,g[i]=[o,void 0],o="";continue}if(!e&&";"===s){I=0,C?(o.length&&(o=Q(o.replace(E,A),"binary",C)),C=""):o.length&&(o=Q(o,"binary","utf8")),void 0===g[i]?g[i]=o:g[i][1]=o,o="",++i;continue}if(!e&&(" "===s||"\t"===s))continue}o+=s}return C&&o.length?o=Q(o.replace(E,A),"binary",C):o&&(o=Q(o,"binary","utf8")),void 0===g[i]?o&&(g[i]=o):g[i][1]=o,g}}function o(){if(MA)return LA;MA=1;const{MessageChannel:A,receiveMessageOnPort:Q}=m,E=["GET","HEAD","POST"],B=new Set(E),g=[301,302,303,307,308],I=new Set(g),C=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],e=new Set(C),t=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],i=new Set(t),o=["GET","HEAD","OPTIONS","TRACE"],s=new Set(o),r=["CONNECT","TRACE","TRACK"],n=new Set(r),h=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],a=new Set(h),c=globalThis.DOMException??(()=>{try{atob("~")}catch(A){return Object.getPrototypeOf(A).constructor}})();let D;const l=globalThis.structuredClone??function(E,B=void 0){if(0===arguments.length)throw new TypeError("missing argument");return D||(D=new A),D.port1.unref(),D.port2.unref(),D.port1.postMessage(E,B?.transfer),Q(D.port2).message};return LA={DOMException:c,structuredClone:l,subresource:h,forbiddenMethods:r,requestBodyHeader:["content-encoding","content-language","content-location","content-type","content-length"],referrerPolicy:t,requestRedirect:["follow","manual","error"],requestMode:["navigate","same-origin","no-cors","cors"],requestCredentials:["omit","same-origin","include"],requestCache:["default","no-store","reload","no-cache","force-cache","only-if-cached"],redirectStatus:g,corsSafeListedMethods:E,nullBodyStatus:[101,204,205,304],safeMethods:o,badPorts:C,requestDuplex:["half"],subresourceSet:a,badPortsSet:e,redirectStatusSet:I,corsSafeListedMethodsSet:B,safeMethodsSet:s,forbiddenMethodsSet:n,referrerPolicySet:i}}function s(){function A(A){const Q=A.urlList,E=Q.length;return 0===E?null:""+Q[E-1]}function Q(A){return A.urlList[A.urlList.length-1]}function E(A){switch(A){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return A>=33&&126>=A}}function B(A){if(0===A.length)return!1;for(let Q=0;A.length>Q;++Q)if(!E(A.charCodeAt(Q)))return!1;return!0}function I(A){return!(A.startsWith("\t")||A.startsWith(" ")||A.endsWith("\t")||A.endsWith(" ")||A.includes("\0")||A.includes("\r")||A.includes("\n"))}function C(A,Q){return w(A instanceof URL),"file:"===A.protocol||"about:"===A.protocol||"blank:"===A.protocol?"no-referrer":(A.username="",A.password="",A.hash="",Q&&(A.pathname="",A.search=""),A)}function e(A){return A instanceof URL&&("about:blank"===A.href||"about:srcdoc"===A.href||"data:"===A.protocol||"file:"===A.protocol||function(A){if(null==A||"null"===A)return!1;const Q=new URL(A);return"https:"===Q.protocol||"wss:"===Q.protocol||!!(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(Q.hostname)||"localhost"===Q.hostname||Q.hostname.includes("localhost.")||Q.hostname.endsWith(".localhost"))}(A.origin))}function t(A){const Q=[];let E=!0;for(const B of A.split(" ")){E=!1;const A=U.exec(B);if(null===A||void 0===A.groups||void 0===A.groups.algo)continue;const g=A.groups.algo.toLowerCase();f.includes(g)&&Q.push(A.groups)}return!0===E?"no metadata":Q}function i(A,Q){if(A.length!==Q.length)return!1;for(let E=0;A.length>E;++E)if(A[E]!==Q[E]){if("+"===A[E]&&"-"===Q[E]||"/"===A[E]&&"_"===Q[E])continue;return!1}return!0}function s(A,Q){return A.origin===Q.origin&&"null"===A.origin||A.protocol===Q.protocol&&A.hostname===Q.hostname&&A.port===Q.port}async function r(A){const Q=[];let E=0;for(;;){const{done:B,value:g}=await A.read();if(B)return Buffer.concat(Q,E);if(!d(g))throw new TypeError("Received non-Uint8Array chunk");Q.push(g),E+=g.length}}function n(A){return"string"==typeof A?A.startsWith("https:"):"https:"===A.protocol}function h(A){w("protocol"in A);const Q=A.protocol;return"http:"===Q||"https:"===Q}if(pA)return GA;pA=1;const{redirectStatusSet:a,referrerPolicySet:c,badPortsSet:D}=o(),{getGlobalOrigin:l}=function(){if(JA)return YA;JA=1;const A=Symbol.for("undici.globalOrigin.1");return YA={getGlobalOrigin:function(){return globalThis[A]},setGlobalOrigin:function(Q){if(void 0===Q)return void Object.defineProperty(globalThis,A,{value:void 0,writable:!0,enumerable:!1,configurable:!1});const E=new URL(Q);if("http:"!==E.protocol&&"https:"!==E.protocol)throw new TypeError("Only http & https urls are allowed, received "+E.protocol);Object.defineProperty(globalThis,A,{value:E,writable:!0,enumerable:!1,configurable:!1})}}}(),{performance:R}=H,{isBlobLike:F,toUSVString:u,ReadableStreamFrom:N}=g(),w=k,{isUint8Array:d}=V;let y,f=[];try{y=require("crypto");const A=["sha256","sha384","sha512"];f=y.getHashes().filter((Q=>A.includes(Q)))}catch{}const U=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i,S={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(S,null);const L=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));let M=globalThis.ReadableStream;return GA={isAborted:function(A){return"aborted"===A.controller.state},isCancelled:function(A){return"aborted"===A.controller.state||"terminated"===A.controller.state},createDeferredPromise:function(){let A,Q;return{promise:new Promise(((E,B)=>{A=E,Q=B})),resolve:A,reject:Q}},ReadableStreamFrom:N,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:function(A){},coarsenedSharedCurrentTime:function(A){return R.now()},determineRequestsReferrer:function(A){const E=A.referrerPolicy;w(E);let B=null;if("client"===A.referrer){const A=l();if(!A||"null"===A.origin)return"no-referrer";B=new URL(A)}else A.referrer instanceof URL&&(B=A.referrer);let g=C(B);const I=C(B,!0);(""+g).length>4096&&(g=I);const t=s(A,g),i=e(g)&&!e(A.url);switch(E){case"origin":return null!=I?I:C(B,!0);case"unsafe-url":return g;case"same-origin":return t?I:"no-referrer";case"origin-when-cross-origin":return t?g:I;case"strict-origin-when-cross-origin":{const E=Q(A);return s(g,E)?g:e(g)&&!e(E)?"no-referrer":I}default:return i?"no-referrer":I}},makePolicyContainer:function(){return{referrerPolicy:"strict-origin-when-cross-origin"}},clonePolicyContainer:function(A){return{referrerPolicy:A.referrerPolicy}},appendFetchMetadata:function(A){let Q=null;Q=A.mode,A.headersList.set("sec-fetch-mode",Q)},appendRequestOriginHeader:function(A){let E=A.origin;if("cors"===A.responseTainting||"websocket"===A.mode)E&&A.headersList.append("origin",E);else if("GET"!==A.method&&"HEAD"!==A.method){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&&n(A.origin)&&!n(Q(A))&&(E=null);break;case"same-origin":s(A,Q(A))||(E=null)}E&&A.headersList.append("origin",E)}},TAOCheck:function(){return"success"},corsCheck:function(){return"success"},crossOriginResourcePolicyCheck:function(){return"allowed"},createOpaqueTimingInfo:function(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}},setRequestReferrerPolicyOnRedirect:function(A,Q){const{headersList:E}=Q,B=(E.get("referrer-policy")??"").split(",");let g="";if(B.length>0)for(let I=B.length;0!==I;I--){const A=B[I-1].trim();if(c.has(A)){g=A;break}}""!==g&&(A.referrerPolicy=g)},isValidHTTPToken:B,requestBadPort:function(A){const E=Q(A);return h(E)&&D.has(E.port)?"blocked":"allowed"},requestCurrentURL:Q,responseURL:A,responseLocationURL:function(Q,E){if(!a.has(Q.status))return null;let B=Q.headersList.get("location");return null!==B&&I(B)&&(B=new URL(B,A(Q))),B&&!B.hash&&(B.hash=E),B},isBlobLike:F,isURLPotentiallyTrustworthy:e,isValidReasonPhrase:function(A){for(let Q=0;A.length>Q;++Q){const E=A.charCodeAt(Q);if(9!==E&&(32>E||E>126)&&(128>E||E>255))return!1}return!0},sameOrigin:s,normalizeMethod:function(A){return S[A.toLowerCase()]??A},serializeJavascriptValueToJSONString:function(A){const Q=JSON.stringify(A);if(void 0===Q)throw new TypeError("Value is not JSON serializable");return w("string"==typeof Q),Q},makeIterator:function(A,Q,E){const B={index:0,kind:E,target:A},g={next(){if(Object.getPrototypeOf(this)!==g)throw new TypeError(`'next' called on an object that does not implement interface ${Q} Iterator.`);const{index:A,kind:E,target:I}=B,C=I();if(A>=C.length)return{value:void 0,done:!0};const e=C[A];return B.index=A+1,function(A,Q){let E;switch(Q){case"key":E=A[0];break;case"value":E=A[1];break;case"key+value":E=A}return{value:E,done:!1}}(e,E)},[Symbol.toStringTag]:Q+" Iterator"};return Object.setPrototypeOf(g,L),Object.setPrototypeOf({},g)},isValidHeaderName:function(A){return B(A)},isValidHeaderValue:I,hasOwn:Object.hasOwn||((A,Q)=>({}.hasOwnProperty.call(A,Q))),isErrorLike:function(A){return A instanceof Error||"Error"===A?.constructor?.name||"DOMException"===A?.constructor?.name},fullyReadBody:async function(A,Q,E){const B=Q,g=E;let I;try{I=A.stream.getReader()}catch(C){return void g(C)}try{B(await r(I))}catch(C){g(C)}},bytesMatch:function(A,Q){if(void 0===y)return!0;const E=t(Q);if("no metadata"===E)return!0;if(0===E.length)return!0;const B=function(A){let Q=A[0].algo;if("5"===Q[3])return Q;for(let E=1;A.length>E;++E){const B=A[E];if("5"===B.algo[3]){Q="sha512";break}"3"!==Q[3]&&"3"===B.algo[3]&&(Q="sha384")}return Q}(E),g=function(A,Q){if(1===A.length)return A;let E=0;for(let B=0;A.length>B;++B)A[B].algo===Q&&(A[E++]=A[B]);return A.length=E,A}(E,B);for(const I of g){const Q=I.hash;let E=y.createHash(I.algo).update(A).digest("base64");if("="===E[E.length-1]&&(E=E.slice(0,"="===E[E.length-2]?-2:-1)),i(E,Q))return!0}return!1},isReadableStreamLike:function(A){return M||(M=J.ReadableStream),A instanceof M||"ReadableStream"===A[Symbol.toStringTag]&&"function"==typeof A.tee},readableStreamClose:function(A){try{A.close()}catch(Q){if(!Q.message.includes("Controller is already closed"))throw Q}},isomorphicEncode:function(A){for(let Q=0;A.length>Q;Q++)w(255>=A.charCodeAt(Q));return A},isomorphicDecode:function(A){return 65535>A.length?String.fromCharCode(...A):A.reduce(((A,Q)=>A+String.fromCharCode(Q)),"")},urlIsLocal:function(A){w("protocol"in A);const Q=A.protocol;return"about:"===Q||"blob:"===Q||"data:"===Q},urlHasHttpsScheme:n,urlIsHttpHttpsScheme:h,readAllBytes:r,normalizeMethodRecord:S,parseMetadata:t}}function r(){return mA?bA:(mA=1,bA={kUrl:Symbol(),kHeaders:Symbol(),kSignal:Symbol(),kState:Symbol(),kGuard:Symbol(),kRealm:Symbol()})}function n(){if(VA)return HA;VA=1;const{types:A}=M,{hasOwn:Q,toUSVString:E}=s(),B={converters:{},util:{},errors:{}};return B.errors.exception=function(A){return new TypeError(`${A.header}: ${A.message}`)},B.errors.conversionFailed=function(A){const Q=`${A.argument} could not be converted to${1===A.types.length?"":" one of"}: ${A.types.join(", ")}.`;return B.errors.exception({header:A.prefix,message:Q})},B.errors.invalidArgument=function(A){return B.errors.exception({header:A.prefix,message:`"${A.value}" is an invalid ${A.type}.`})},B.brandCheck=function(A,Q,E=void 0){if(!1===E?.strict||A instanceof Q)return A?.[Symbol.toStringTag]===Q.prototype[Symbol.toStringTag];throw new TypeError("Illegal invocation")},B.argumentLengthCheck=function({length:A},Q,E){if(Q>A)throw B.errors.exception({message:`${Q} argument${1!==Q?"s":""} required, but${A?" only":""} ${A} found.`,...E})},B.illegalConstructor=function(){throw B.errors.exception({header:"TypeError",message:"Illegal constructor"})},B.util.Type=function(A){switch(typeof A){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":return null===A?"Null":"Object"}},B.util.ConvertToInt=function(A,Q,E,g={}){let I,C;64===Q?(I=9007199254740991,C="unsigned"===E?0:-9007199254740991):"unsigned"===E?(C=0,I=Math.pow(2,Q)-1):(C=Math.pow(-2,Q)-1,I=Math.pow(2,Q-1)-1);let e=Number(A);if(0===e&&(e=0),!0===g.enforceRange){if(Number.isNaN(e)||e===1/0||e===-1/0)throw B.errors.exception({header:"Integer conversion",message:`Could not convert ${A} to an integer.`});if(e=B.util.IntegerPart(e),C>e||e>I)throw B.errors.exception({header:"Integer conversion",message:`Value must be between ${C}-${I}, got ${e}.`});return e}return Number.isNaN(e)||!0!==g.clamp?Number.isNaN(e)||0===e&&Object.is(0,e)||e===1/0||e===-1/0?0:(e=B.util.IntegerPart(e),e%=Math.pow(2,Q),"signed"!==E||Math.pow(2,Q)-1>e?e:e-Math.pow(2,Q)):(e=Math.min(Math.max(e,C),I),e=Math.floor(e)%2==0?Math.floor(e):Math.ceil(e),e)},B.util.IntegerPart=function(A){const Q=Math.floor(Math.abs(A));return 0>A?-1*Q:Q},B.sequenceConverter=function(A){return Q=>{if("Object"!==B.util.Type(Q))throw B.errors.exception({header:"Sequence",message:`Value of type ${B.util.Type(Q)} is not an Object.`});const E=Q?.[Symbol.iterator]?.(),g=[];if(void 0===E||"function"!=typeof E.next)throw B.errors.exception({header:"Sequence",message:"Object is not an iterator."});for(;;){const{done:Q,value:B}=E.next();if(Q)break;g.push(A(B))}return g}},B.recordConverter=function(Q,E){return g=>{if("Object"!==B.util.Type(g))throw B.errors.exception({header:"Record",message:`Value of type ${B.util.Type(g)} is not an Object.`});const I={};if(!A.isProxy(g)){const A=Object.keys(g);for(const B of A){const A=Q(B),C=E(g[B]);I[A]=C}return I}const C=Reflect.ownKeys(g);for(const A of C){const B=Reflect.getOwnPropertyDescriptor(g,A);if(B?.enumerable){const B=Q(A),C=E(g[A]);I[B]=C}}return I}},B.interfaceConverter=function(A){return(Q,E={})=>{if(!1!==E.strict&&!(Q instanceof A))throw B.errors.exception({header:A.name,message:`Expected ${Q} to be an instance of ${A.name}.`});return Q}},B.dictionaryConverter=function(A){return E=>{const g=B.util.Type(E),I={};if("Null"===g||"Undefined"===g)return I;if("Object"!==g)throw B.errors.exception({header:"Dictionary",message:`Expected ${E} to be one of: Null, Undefined, Object.`});for(const C of A){const{key:A,defaultValue:g,required:e,converter:t}=C;if(!0===e&&!Q(E,A))throw B.errors.exception({header:"Dictionary",message:`Missing required key "${A}".`});let i=E[A];const o=Q(C,"defaultValue");if(o&&null!==i&&(i=i??g),e||o||void 0!==i){if(i=t(i),C.allowedValues&&!C.allowedValues.includes(i))throw B.errors.exception({header:"Dictionary",message:`${i} is not an accepted type. Expected one of ${C.allowedValues.join(", ")}.`});I[A]=i}}return I}},B.nullableConverter=function(A){return Q=>null===Q?Q:A(Q)},B.converters.DOMString=function(A,Q={}){if(null===A&&Q.legacyNullToEmptyString)return"";if("symbol"==typeof A)throw new TypeError("Could not convert argument of type symbol to string.");return A+""},B.converters.ByteString=function(A){const Q=B.converters.DOMString(A);for(let E=0;Q.length>E;E++)if(Q.charCodeAt(E)>255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${E} has a value of ${Q.charCodeAt(E)} which is greater than 255.`);return Q},B.converters.USVString=E,B.converters.boolean=function(A){return!!A},B.converters.any=function(A){return A},B.converters["long long"]=function(A){return B.util.ConvertToInt(A,64,"signed")},B.converters["unsigned long long"]=function(A){return B.util.ConvertToInt(A,64,"unsigned")},B.converters["unsigned long"]=function(A){return B.util.ConvertToInt(A,32,"unsigned")},B.converters["unsigned short"]=function(A,Q){return B.util.ConvertToInt(A,16,"unsigned",Q)},B.converters.ArrayBuffer=function(Q,E={}){if("Object"!==B.util.Type(Q)||!A.isAnyArrayBuffer(Q))throw B.errors.conversionFailed({prefix:""+Q,argument:""+Q,types:["ArrayBuffer"]});if(!1===E.allowShared&&A.isSharedArrayBuffer(Q))throw B.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return Q},B.converters.TypedArray=function(Q,E,g={}){if("Object"!==B.util.Type(Q)||!A.isTypedArray(Q)||Q.constructor.name!==E.name)throw B.errors.conversionFailed({prefix:""+E.name,argument:""+Q,types:[E.name]});if(!1===g.allowShared&&A.isSharedArrayBuffer(Q.buffer))throw B.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return Q},B.converters.DataView=function(Q,E={}){if("Object"!==B.util.Type(Q)||!A.isDataView(Q))throw B.errors.exception({header:"DataView",message:"Object is not a DataView."});if(!1===E.allowShared&&A.isSharedArrayBuffer(Q.buffer))throw B.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return Q},B.converters.BufferSource=function(Q,E={}){if(A.isAnyArrayBuffer(Q))return B.converters.ArrayBuffer(Q,E);if(A.isTypedArray(Q))return B.converters.TypedArray(Q,Q.constructor);if(A.isDataView(Q))return B.converters.DataView(Q,E);throw new TypeError(`Could not convert ${Q} to a BufferSource.`)},B.converters["sequence<ByteString>"]=B.sequenceConverter(B.converters.ByteString),B.converters["sequence<sequence<ByteString>>"]=B.sequenceConverter(B.converters["sequence<ByteString>"]),B.converters["record<ByteString, ByteString>"]=B.recordConverter(B.converters.ByteString,B.converters.ByteString),HA={webidl:B}}function h(){function A(A,Q=!1){if(!Q)return A.href;const E=A.href,B=A.hash.length;return 0===B?E:E.substring(0,E.length-B)}function Q(A,Q,E){let B="";for(;Q.length>E.position&&A(Q[E.position]);)B+=Q[E.position],E.position++;return B}function E(A,Q,E){const B=Q.indexOf(A,E.position),g=E.position;return-1===B?(E.position=Q.length,Q.slice(g)):(E.position=B,Q.slice(g,E.position))}function B(A){return function(A){const Q=[];for(let E=0;A.length>E;E++){const B=A[E];if(37!==B