PageSourceSearch

https://nfc-card.onrender.com/static/js/844.be1085a1.chunk.js

js nfc-card.onrender.com collected 2026-10-03 11:42:30 UTC 90,172 bytes, 2 lines download raw bytes

1(self.webpackChunkweb3_onboarding_starter_kits=self.webpackChunkweb3_onboarding_starter_kits||[]).push([[844],{6844:(e,t,n)=>{"use strict";n.d(t,{PhantomAdapter:()=>C});var r=n(64572),o=n(1413);n(44101),n(47465),n(11053),n(93137),n(69578),n(14876),n(99306);Symbol("IGNORE_SUBSTREAM");n(1827);var i=n(79392);function a(e){let t,n=!1,r=0;try{t=window[e],n=!0,r=t.length;const o="__storage_test__";return t.setItem(o,o),t.removeItem(o),!0}catch(o){const e=o;return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&n&&0!==r}}class l{constructor(){(0,r.Z)(this,"store",{})}getItem(e){return this.store[e]||null}setItem(e,t){this.store[e]=t}}(0,r.Z)(class{constructor(e,t){(0,r.Z)(this,"storage",void 0),(0,r.Z)(this,"_storeKey",void 0),this.storage=t,this._storeKey=e;try{t.getItem(e)||this.resetStore()}catch(n){}}static getInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"local";if(!this.instance){let n;n="local"===t&&a("localStorage")?window.localStorage:"session"===t&&a("sessionStorage")?window.sessionStorage:new l,this.instance=new this(e,n)}return this.instance}toJSON(){return this.storage.getItem(this._storeKey)}resetStore(){const e=this.getStore();return this.storage.setItem(this._storeKey,JSON.stringify({})),e}getStore(){return JSON.parse(this.storage.getItem(this._storeKey)||"{}")}get(e){return JSON.parse(this.storage.getItem(this._storeKey)||"{}")[e]}set(e,t){const n=JSON.parse(this.storage.getItem(this._storeKey)||"{}");n[e]=t,this.storage.setItem(this._storeKey,JSON.stringify(n))}},"instance",void 0);(0,o.Z)((0,o.Z)({},i.X_),i.Ad);var s=n(688),d=(n(57381),n(62895)),c=n.n(d);const u=c().getLogger("http-helpers");u.setLevel(d.levels.INFO);class f extends Error{}f.prototype.name="InvalidTokenError";const h="solana",b="solana";class p extends s.s{constructor(e,t){super(t),(0,r.Z)(this,"code",void 0),(0,r.Z)(this,"message",void 0),this.code=e,this.message=t||"",Object.defineProperty(this,"name",{value:"Web3AuthError"})}toJSON(){return{name:this.name,code:this.code,message:this.message}}toString(){return JSON.stringify(this.toJSON())}}class g extends p{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletInitializationError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new g(e,`${g.messages[e]}, ${t}`)}static notFound(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5001,e)}static notInstalled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5002,e)}static notReady(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5003,e)}static windowBlocked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5004,e)}static windowClosed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5005,e)}static incompatibleChainNameSpace(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5006,e)}static duplicateAdapterError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5007,e)}static invalidProviderConfigError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5008,e)}static providerNotReadyError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5009,e)}static rpcConnectionError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5010,e)}static invalidParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5011,e)}static invalidNetwork(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return g.fromCode(5013,e)}}(0,r.Z)(g,"messages",{5e3:"Custom",5001:"Wallet is not found",5002:"Wallet is not installed",5003:"Wallet is not ready yet",5004:"Wallet window is blocked",5005:"Wallet window has been closed by the user",5006:"Incompatible chain namespace provided",5007:"Adapter has already been included",5008:"Invalid provider Config",5009:"Provider is not ready yet",5010:"Failed to connect with rpc url",5011:"Invalid params passed in",5013:"Invalid network provided"});class y extends p{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletLoginError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new y(e,`${y.messages[e]}. ${t}`)}static connectionError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5111,e)}static disconnectionError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5112,e)}static notConnectedError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5113,e)}static popupClosed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5114,e)}static mfaEnabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5115,e)}static chainConfigNotAdded(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5116,e)}static unsupportedOperation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5117,e)}static coreKitKeyNotFound(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5118,e)}static userNotLoggedIn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return y.fromCode(5119,e)}}(0,r.Z)(y,"messages",{5e3:"Custom",5111:"Failed to connect with wallet",5112:"Failed to disconnect from wallet",5113:"Wallet is not connected",5114:"Wallet popup has been closed by the user",5115:"User has already enabled mfa, please use the @web3auth/web3auth-web sdk for login 
1with mfa",5116:"Chain config has not been added. Please add the chain config before calling switchChain",5117:"Unsupported operation",5118:"useCoreKitKey flag is enabled but coreKitKey is not available",5119:"User not logged in."});class w extends p{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletOperationsError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new w(e,`${w.messages[e]}, ${t}`)}static chainIDNotAllowed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.fromCode(5201,e)}static operationNotAllowed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.fromCode(5202,e)}static chainNamespaceNotAllowed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.fromCode(5203,e)}}(0,r.Z)(w,"messages",{5e3:"Custom",5201:"Provided chainId is not allowed",5202:"This operation is not allowed"});class _ extends p{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletProviderError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new w(e,`${_.messages[e]}, ${t}`)}static invalidRequestArgs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.fromCode(5301,e)}static invalidRequestMethod(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.fromCode(5302,e)}static invalidRequestParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.fromCode(5303,e)}}(0,r.Z)(_,"messages",{5e3:"Custom",5301:"Expected a single, non-array, object argument.",5302:"'args.method' must be a non-empty string.",5303:"'args.params' must be an object or array if provided."});const m={OPENLOGIN:"openlogin",WALLET_CONNECT_V2:"wallet-connect-v2"},v=(0,o.Z)({TORUS_SOLANA:"torus-solana",PHANTOM:"phantom",SOLFLARE:"solflare",SLOPE:"slope"},m),E=(0,o.Z)({TORUS_EVM:"torus-evm",METAMASK:"metamask",COINBASE:"coinbase"},m),S=(0,o.Z)((0,o.Z)({},E),v),R=(v.TORUS_SOLANA,v.PHANTOM,v.SOLFLARE,v.SLOPE,E.TORUS_EVM,E.METAMASK,E.COINBASE,"external"),A={NOT_READY:"not_ready",READY:"ready",CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected",ERRORED:"errored"},T=(0,o.Z)((0,o.Z)({},A),{},{ADAPTER_DATA_UPDATED:"adapter_data_updated",CACHE_CLEAR:"cache_clear"});var N=c().getLogger("web3auth-logger");var I=n(30862),O=n(31339);function k(e,t,n){return new Promise(((r,o)=>{n>0?setTimeout((async()=>{const i=await e();i&&r(i),i||k(e,t,n-1).then((e=>(r(e),e))).catch((e=>o(e)))}),t):r(!1)}))}const P=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{interval:1e3,count:3};if("undefined"!==typeof window&&!(null===(e=window.solana)||void 0===e||!e.isPhantom))return window.solana;return await k((()=>{var e;return null===(e=window.solana)||void 0===e?void 0:e.isPhantom}),t.interval,t.count)?window.solana:null};class C extends I.v{constructor(){super(...arguments),(0,r.Z)(this,"name",S.PHANTOM),(0,r.Z)(this,"adapterNamespace",b),(0,r.Z)(this,"currentChainNamespace",h),(0,r.Z)(this,"type",R),(0,r.Z)(this,"status",A.NOT_READY),(0,r.Z)(this,"_wallet",null),(0,r.Z)(this,"phantomProvider",null),(0,r.Z)(this,"_onDisconnect",(()=>{this._wallet&&(this._wallet.off("disconnect",this._onDisconnect),this.rehydrated=!1,this.status=this.status===A.CONNECTED?A.READY:A.NOT_READY,this.emit(T.DISCONNECTED))}))}get isWalletConnected(){var e;return!(null===(e=this._wallet)||void 0===e||!e.isConnected||this.status!==A.CONNECTED)}get provider(){return this.status!==A.NOT_READY&&this.phantomProvider?this.phantomProvider:null}set provider(e){throw new Error("Not implemented")}
1async init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(await super.init(e),super.checkInitializationRequirements(),this._wallet=await P({interval:500,count:3}),!this._wallet)throw g.notInstalled();this.phantomProvider=new O.kL({config:{chainConfig:this.chainConfig}}),this.status=A.READY,this.emit(T.READY,S.PHANTOM);try{N.debug("initializing phantom adapter"),e.autoConnect&&(this.rehydrated=!0,await this.connect())}catch(t){N.error("Failed to connect with cached phantom provider",t),this.emit("ERRORED",t)}}async connect(){var e=this;try{if(super.checkConnectionRequirements(),this.status=A.CONNECTING,this.emit(T.CONNECTING,{adapter:S.PHANTOM}),!this._wallet)throw g.notInstalled();if(this._wallet.isConnected)await this.connectWithProvider(this._wallet);else{const n=this._wallet._handleDisconnect;try{await new Promise(((t,r)=>{this._wallet?(this._wallet.once("connect",(async()=>{await this.connectWithProvider(this._wallet),t(this.provider)})),this._wallet._handleDisconnect=function(){r(g.windowClosed());for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return n.apply(e._wallet,o)},this._wallet.connect().catch((e=>{r(e)}))):r(g.notInstalled())}))}catch(t){if(t instanceof p)throw t;throw y.connectionError(null===t||void 0===t?void 0:t.message)}finally{this._wallet._handleDisconnect=n}}if(!this._wallet.publicKey)throw y.connectionError();return this._wallet.on("disconnect",this._onDisconnect),this.provider}catch(t){throw this.status=A.READY,this.rehydrated=!1,this.emit(T.ERRORED,t),t}}async disconnect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cleanup:!1};await super.disconnectSession();try{var t;await(null===(t=this._wallet)||void 0===t?void 0:t.disconnect()),e.cleanup&&(this.status=A.NOT_READY,this.phantomProvider=null,this._wallet=null),await super.disconnect()}catch(n){this.emit(T.ERRORED,y.disconnectionError(null===n||void 0===n?void 0:n.message))}}async getUserInfo(){if(!this.isWalletConnected)throw y.notConnectedError("Not connected with wallet, Please login/connect first");return{}}async addChain(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.checkAddChainRequirements(e,n),null===(t=this.phantomProvider)||void 0===t||t.addChain(e),this.addChainConfig(e)}async switchChain(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.checkSwitchChainRequirements(e,n),await(null===(t=this.phantomProvider)||void 0===t?void 0:t.switchChain(e)),this.setAdapterSettings({chainConfig:this.getChainConfig(e.chainId)})}async connectWithProvider(e){if(!this.phantomProvider)throw y.connectionError("No phantom provider");return await this.phantomProvider.setupProvider(e),this.status=A.CONNECTED,this.emit(T.CONNECTED,{adapter:S.PHANTOM,reconnected:this.rehydrated}),this.provider}}},82460:(e,t,n)=>{"use strict";const{AbortError:r,codes:o}=n(82009),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:l}=n(30716),s=n(34560),{ERR_INVALID_ARG_TYPE:d}=o;e.exports.addAbortSignal=function(t,n){if(((e,t)=>{if("object"!==typeof e||!("aborted"in e))throw new d(t,"AbortSignal",e)})(t,"signal"),!i(n)&&!a(n))throw new d("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!==typeof e||!("aborted"in e))return t;const n=i(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[l](new r(void 0,{cause:e.reason}))};return e.aborted?n():(e.addEventListener("abort",n),s(t,(()=>e.removeEventListener("abort",n)))),t}},40338:(e,t,n)=>{"use strict";const{StringPrototypeSlice:r,SymbolIterator:o,TypedArrayPrototypeSet:i,Uint8Array:a}=n(29606),{Buffer:l}=n(19778),{inspect:s}=n(30793);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return l.alloc(0);const t=l.allocUnsafe(e>>>0);let n=this.head,r=0;for(;n;)i(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[o](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,o=0;do{const i=n.data;if(!(e>i.length)){e===i.length?(t+=i,++o,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(i,0,e),this.head=n,n.data=r(i,e));break}t+=i,e-=i.length,++o}while(null!==(n=n.next));return this.length-=o,t}_getBuffer(e){const t=l.allocUnsafe(e),n=e;let r=this.head,o=0;do{const l=r.data;if(!(e>l.length)){e===l.length?(i(t,l,n-e),++o,r.next?this.head=r.next:this.head=this.tail=null):(i(t,new a(l.buffer,l.byteOffset,e),n-e),this.head=r,r.data=l.slice(e));break}i(t,l,n-e),e-=l.length,++o}while(null!==(r=r.next));return this.length-=o,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}},38695:(e,t,n)=>{"use strict";const{pipeline:r}=n(33354),o=n(3437),{destroyer:i}
1=n(9472),{isNodeStream:a,isReadable:l,isWritable:s,isWebStream:d,isTransformStream:c,isWritableStream:u,isReadableStream:f}=n(30716),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:b,ERR_MISSING_ARGS:p}}=n(82009),g=n(34560);e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new p("streams");if(1===t.length)return o.from(t[0]);const y=[...t];if("function"===typeof t[0]&&(t[0]=o.from(t[0])),"function"===typeof t[t.length-1]){const e=t.length-1;t[e]=o.from(t[e])}for(let r=0;r<t.length;++r)if(a(t[r])||d(t[r])){if(r<t.length-1&&!(l(t[r])||f(t[r])||c(t[r])))throw new b(`streams[${r}]`,y[r],"must be readable");if(r>0&&!(s(t[r])||u(t[r])||c(t[r])))throw new b(`streams[${r}]`,y[r],"must be writable")}let w,_,m,v,E;const S=t[0],R=r(t,(function(e){const t=v;v=null,t?t(e):e?E.destroy(e):T||A||E.destroy()})),A=!!(s(S)||u(S)||c(S)),T=!!(l(R)||f(R)||c(R));if(E=new o({writableObjectMode:!(null===S||void 0===S||!S.writableObjectMode),readableObjectMode:!(null===R||void 0===R||!R.writableObjectMode),writable:A,readable:T}),A){if(a(S))E._write=function(e,t,n){S.write(e,t)?n():w=n},E._final=function(e){S.end(),_=e},S.on("drain",(function(){if(w){const e=w;w=null,e()}}));else if(d(S)){const e=(c(S)?S.writable:S).getWriter();E._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(o){r(o)}},E._final=async function(t){try{await e.ready,e.close().catch((()=>{})),_=t}catch(n){t(n)}}}const e=c(R)?R.readable:R;g(e,(()=>{if(_){const e=_;_=null,e()}}))}if(T)if(a(R))R.on("readable",(function(){if(m){const e=m;m=null,e()}})),R.on("end",(function(){E.push(null)})),E._read=function(){for(;;){const e=R.read();if(null===e)return void(m=E._read);if(!E.push(e))return}};else if(d(R)){const e=(c(R)?R.readable:R).getReader();E._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!E.push(t))return;if(n)return void E.push(null)}catch{return}}}return E._destroy=function(e,t){e||null===v||(e=new h),m=null,w=null,_=null,null===v?t(e):(v=t,a(R)&&i(R,e))},E}},9472:(e,t,n)=>{"use strict";const r=n(1426),{aggregateTwoErrors:o,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=n(82009),{Symbol:l}=n(29606),{kDestroyed:s,isDestroyed:d,isFinished:c,isServerRequest:u}=n(30716),f=l("kDestroy"),h=l("kConstruct");function b(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function p(e,t,n){let o=!1;function i(t){if(o)return;o=!0;const i=e._readableState,a=e._writableState;b(t,a,i),a&&(a.closed=!0),i&&(i.closed=!0),"function"===typeof n&&n(t),t?r.nextTick(g,e,t):r.nextTick(y,e)}try{e._destroy(t||null,i)}catch(t){i(t)}}function g(e,t){w(e,t),y(e)}function y(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!==n&&void 0!==n&&n.emitClose||null!==t&&void 0!==t&&t.emitClose)&&e.emit("close")}function w(e,t){const n=e._readableState,r=e._writableState;null!==r&&void 0!==r&&r.errorEmitted||null!==n&&void 0!==n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function _(e,t,n){const o=e._readableState,i=e._writableState;if(null!==i&&void 0!==i&&i.destroyed||null!==o&&void 0!==o&&o.destroyed)return this;null!==o&&void 0!==o&&o.autoDestroy||null!==i&&void 0!==i&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),o&&!o.errored&&(o.errored=t),n?r.nextTick(w,e,t):w(e,t))}function m(e){let t=!1;
1function n(n){if(t)return void _(e,null!==n&&void 0!==n?n:new i);t=!0;const o=e._readableState,a=e._writableState,l=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),l.destroyed?e.emit(f,n):n?_(e,n,!0):r.nextTick(v,e)}try{e._construct((e=>{r.nextTick(n,e)}))}catch(o){r.nextTick(n,o)}}function v(e){e.emit(h)}function E(e){return(null===e||void 0===e?void 0:e.setHeader)&&"function"===typeof e.abort}function S(e){e.emit("close")}function R(e,t){e.emit("error",t),r.nextTick(S,e)}e.exports={construct:function(e,t){if("function"!==typeof e._construct)return;const n=e._readableState,o=e._writableState;n&&(n.constructed=!1),o&&(o.constructed=!1),e.once(h,t),e.listenerCount(h)>1||r.nextTick(m,e)},destroyer:function(e,t){e&&!d(e)&&(t||c(e)||(t=new a),u(e)?(e.socket=null,e.destroy(t)):E(e)?e.abort():E(e.req)?e.req.abort():"function"===typeof e.destroy?e.destroy(t):"function"===typeof e.close?e.close():t?r.nextTick(R,e,t):r.nextTick(S,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){const n=this._readableState,r=this._writableState,i=r||n;return null!==r&&void 0!==r&&r.destroyed||null!==n&&void 0!==n&&n.destroyed?("function"===typeof t&&t(),this):(b(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?p(this,e,t):this.once(f,(function(n){p(this,o(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:_}},3437:(e,t,n)=>{"use strict";const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:i,ObjectSetPrototypeOf:a}=n(29606);e.exports=d;const l=n(26634),s=n(80442);a(d.prototype,l.prototype),a(d,l);{const e=i(s.prototype);for(let t=0;t<e.length;t++){const n=e[t];d.prototype[n]||(d.prototype[n]=s.prototype[n])}}function d(e){if(!(this instanceof d))return new d(e);l.call(this,e),s.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let c,u;function f(){return void 0===c&&(c={}),c}r(d.prototype,{writable:{__proto__:null,...o(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(s.prototype,"writableLength")},writableFinished:{__proto__:null,...o(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),d.fromWeb=function(e,t){return f().newStreamDuplexFromReadableWritablePair(e,t)},d.toWeb=function(e){return f().newReadableWritablePairFromDuplex(e)},d.from=function(e){return u||(u=n(41003)),u(e,"body")}},41003:(e,t,n)=>{const r=n(1426),o=n(19778),{isReadable:i,isWritable:a,isIterable:l,isNodeStream:s,isReadableNodeStream:d,isWritableNodeStream:c,isDuplexNodeStream:u}=n(30716),f=n(34560),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:p}}=n(82009),{destroyer:g}=n(9472),y=n(3437),w=n(26634),{createDeferredPromise:_}=n(30793),m=n(42337),v=globalThis.Blob||o.Blob,E="undefined"!==typeof v?function(e){return e instanceof v}:function(e){return!1},S=globalThis.AbortController||n(35935).AbortController,{FunctionPrototypeCall:R}=n(29606);class A extends y{constructor(e){super(e),!1===(null===e||void 0===e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null===e||void 0===e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(e){const t=e.readable&&"function"!==typeof e.readable.read?w.wrap(e.readable):e.readable,n=e.writable;let r,o,l,s,d,c=!!i(t),u=!!a(n);function b(e){const t=s;s=null,t?t(e):e&&d.destroy(e)}return d=new A({readableObjectMode:!(null===t||void 0===t||!t.readableObjectMode),writableObjectMode:!(null===n||void 0===n||!n.writableObjectMode),readable:c,writable:u}),u&&(f(n,(e=>{u=!1,e&&g(t,e),b(e)})),d._write=function(e,t,o){n.write(e,t)?o():r=o},d._final=function(e){n.end(),o=e},n.on("drain",(function(){if(r){const e=r;r=null,e()}})),n.on("finish",(function(){if(o){const e=o;o=null,e()}}))),c&&(f(t,(e=>{c=!1,e&&g(t,e),b(e)})),t.on("readable",(function(){if(l){const e=l;l=null,e()}})),t.on("end",(function(){d.push(null)})),d._read=function(){for(;;){const e=t.read();if(null===e)return void(l=d._read);if(!d.push(e))return}}),d._destroy=function(e,i){e||null===s||(e=new h),l=null,r=null,o=null,null===s?i(e):(s=i,g(n,e),g(t,e))},d}e.exports=function e(t,n){if(u(t))return t;if(d(t))return T({readable:t});if(c(t))return T({writable:t});if(s(t))return T({writable:!1,readable:!1});if("function"===typeof t){const{value:e,write:o,final:i,destroy:a}=function(e){let{promise:t,resolve:n}=_();const o=new S,i=o.signal,a=e(async function*(){for(;;){const e=t;t=null;const{chunk:o,done:a,cb:l}=await e;if(r.nextTick(l),a)return;if(i.aborted)throw new h(void 0,{cause:i.reason});({promise:t,resolve:n}=_()),yield o}}(),{signal:i});return{value:a,write(e,t,r){const o=n;n=null,o({chunk:e,done:!1,cb:r})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){o.abort(),t(e)}}}(t);if(l(e))return m(A,e,{objectMode:!0,write:o,final:i,destroy:a});const s=null===e||void 0===e?void 0:e.then;if("function"===typeof s){let t;const n=R(s,e,(e=>{if(null!=e)throw new p("nully","body",e)}),(e=>{g(t,e)}));return t=new A({objectMode:!0,readable:!1,write:o,final(e){i((async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}}))},destroy:a})}throw new p("Iterable, AsyncIterable or AsyncFunction",n,e)}if(E(t))return e(t.arrayBuffer());if(l(t))return m(A,t,{objectMode:!0,writable:!1});if("object"===typeof(null===t||void 0===t?void 0:t.writable)||"object"===typeof(null===t||void 0===t?void 0:t.readable)){return T({readable:null!==t&&void 0!==t&&t.readable?d(null===t||void 0===t?void 0:t.readable)?null===t||void 0===t?void 0:t.readable:e(t.readable):void 0,writable:null!==t&&void 0!==t&&t.writable?c(null===t||void 0===t?void 0:t.writable)?null===t||void 0===t?void 0:t.writable:e(t.writable):void 0})}const o=null===t||void 0===t?void 0:t.then;if("function"===typeof o){let e;return R(o,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{g(e,t)})),e=new A({objectMode:!0,writable:!1,read(){}})}throw new b(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},34560:(e,t,n)=>{const r=n(1426),{AbortError:o,codes:i}=n(82009),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=i,{kEmptyObject:s,once:d}=n(30793),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:h}=n(8595),{Promise:b,PromisePrototypeThen:p}
1=n(29606),{isClosed:g,isReadable:y,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:m,isReadableErrored:v,isWritable:E,isWritableNodeStream:S,isWritableStream:R,isWritableFinished:A,isWritableErrored:T,isNodeStream:N,willEmitClose:I,kIsClosedPromise:O}=n(30716);const k=()=>{};function P(e,t,n){var i,h;if(2===arguments.length?(n=t,t=s):null==t?t=s:f(t,"options"),u(n,"callback"),c(t.signal,"options.signal"),n=d(n),_(e)||R(e))return function(e,t,n){let i=!1,a=k;if(t.signal)if(a=()=>{i=!0,n.call(e,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)r.nextTick(a);else{const r=n;n=d((function(){t.signal.removeEventListener("abort",a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.apply(e,o)})),t.signal.addEventListener("abort",a)}const l=function(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];i||r.nextTick((()=>n.apply(e,o)))};return p(e[O].promise,l,l),k}(e,t,n);if(!N(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);const b=null!==(i=t.readable)&&void 0!==i?i:w(e),P=null!==(h=t.writable)&&void 0!==h?h:S(e),C=e._writableState,D=e._readableState,M=()=>{e.writable||j()};let L=I(e)&&w(e)===b&&S(e)===P,x=A(e,!1);const j=()=>{x=!0,e.destroyed&&(L=!1),(!L||e.readable&&!b)&&(b&&!W||n.call(e))};let W=m(e,!1);const $=()=>{W=!0,e.destroyed&&(L=!1),(!L||e.writable&&!P)&&(P&&!x||n.call(e))},F=t=>{n.call(e,t)};let U=g(e);const B=()=>{U=!0;const t=T(e)||v(e);return t&&"boolean"!==typeof t?n.call(e,t):b&&!W&&w(e,!0)&&!m(e,!1)?n.call(e,new l):!P||x||A(e,!1)?void n.call(e):n.call(e,new l)},H=()=>{U=!0;const t=T(e)||v(e);if(t&&"boolean"!==typeof t)return n.call(e,t);n.call(e)},G=()=>{e.req.on("finish",j)};!function(e){return e.setHeader&&"function"===typeof e.abort}(e)?P&&!C&&(e.on("end",M),e.on("close",M)):(e.on("complete",j),L||e.on("abort",B),e.req?G():e.on("request",G)),L||"boolean"!==typeof e.aborted||e.on("aborted",B),e.on("end",$),e.on("finish",j),!1!==t.error&&e.on("error",F),e.on("close",B),U?r.nextTick(B):null!==C&&void 0!==C&&C.errorEmitted||null!==D&&void 0!==D&&D.errorEmitted?L||r.nextTick(H):(b||L&&!y(e)||!x&&!1!==E(e))&&(P||L&&!E(e)||!W&&!1!==y(e))?D&&e.req&&e.aborted&&r.nextTick(H):r.nextTick(H);const V=()=>{n=k,e.removeListener("aborted",B),e.removeListener("complete",j),e.removeListener("abort",B),e.removeListener("request",G),e.req&&e.req.removeListener("finish",j),e.removeListener("end",M),e.removeListener("close",M),e.removeListener("finish",j),e.removeListener("end",$),e.removeListener("error",F),e.removeListener("close",B)};if(t.signal&&!U){const i=()=>{const r=n;V(),r.call(e,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)r.nextTick(i);else{const r=n;n=d((function(){t.signal.removeEventListener("abort",i);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];r.apply(e,o)})),t.signal.addEventListener("abort",i)}}return V}e.exports=P,e.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(h(t.cleanup,"cleanup"),r=t.cleanup),new b(((n,o)=>{const i=P(e,t,(e=>{r&&i(),e?o(e):n()}))}))}},42337:(e,t,n)=>{"use strict";const r=n(1426),{PromisePrototypeThen:o,SymbolAsyncIterator:i,SymbolIterator:a}=n(29606),{Buffer:l}=n(19778),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:d}=n(82009).codes;e.exports=function(e,t,n){let c,u;if("string"===typeof t||t instanceof l)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[i])u=!0,c=t[i]();else{if(!t||!t[a])throw new s("iterable",["Iterable"],t);u=!1,c=t[a]()}const f=new e({objectMode:!0,highWaterMark:1,...n});let h=!1;return f._read=function(){h||(h=!0,async function(){for(;;){try{const{value:e,done:t}=u?await c.next():c.next();if(t)f.push(null);else{const t=e&&"function"===typeof e.then?await e:e;if(null===t)throw h=!1,new d;if(f.push(t))continue;h=!1}}catch(e){f.destroy(e)}break}}())},f._destroy=function(e,t){o(async function(e){const t=void 0!==e&&null!==e,n="function"===typeof c.throw;if(t&&n){const{value:t,done:n}=await c.throw(e);if(await t,n)return}if("function"===typeof c.return){const{value:e}=await c.return();await e}}(e),(()=>r.nextTick(t,e)),(n=>r.nextTick(t,n||e)))},f}},91466:(e,t,n)=>{"use strict";const{ArrayIsArray:r,ObjectSetPrototypeOf:o}=n(29606),{EventEmitter:i}=n(47465);function a(e){i.call(this,e)}function l(e,t,n){if("function"===typeof e.prependListener)return e.prepe
1ndListener(t,n);e._events&&e._events[t]?r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}o(a.prototype,i.prototype),o(a,i),a.prototype.pipe=function(e,t){const n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",d));let a=!1;function s(){a||(a=!0,e.end())}function d(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function c(e){u(),0===i.listenerCount(this,"error")&&this.emit("error",e)}function u(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",d),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return l(n,"error",c),l(e,"error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e},e.exports={Stream:a,prependListener:l}},62737:(e,t,n)=>{"use strict";const r=globalThis.AbortController||n(35935).AbortController,{codes:{ERR_INVALID_ARG_VALUE:o,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:l},AbortError:s}=n(82009),{validateAbortSignal:d,validateInteger:c,validateObject:u}=n(8595),f=n(29606).Symbol("kWeak"),{finished:h}=n(34560),b=n(38695),{addAbortSignalNoValidate:p}=n(82460),{isWritable:g,isNodeStream:y}=n(30716),{ArrayPrototypePush:w,MathFloor:_,Number:m,NumberIsNaN:v,Promise:E,PromiseReject:S,PromisePrototypeThen:R,Symbol:A}=n(29606),T=A("kEmpty"),N=A("kEof");function I(e,t){if("function"!==typeof e)throw new i("fn",["Function","AsyncFunction"],e);null!=t&&u(t,"options"),null!=(null===t||void 0===t?void 0:t.signal)&&d(t.signal,"options.signal");let n=1;return null!=(null===t||void 0===t?void 0:t.concurrency)&&(n=_(t.concurrency)),c(n,"concurrency",1),async function*(){var o,i;const a=new r,l=this,d=[],c=a.signal,u={signal:c},f=()=>a.abort();let h,b;null!==t&&void 0!==t&&null!==(o=t.signal)&&void 0!==o&&o.aborted&&f(),null===t||void 0===t||null===(i=t.signal)||void 0===i||i.addEventListener("abort",f);let p=!1;function g(){p=!0}!async function(){try{for await(let t of l){var r;if(p)return;if(c.aborted)throw new s;try{t=e(t,u)}catch(i){t=S(i)}t!==T&&("function"===typeof(null===(r=t)||void 0===r?void 0:r.catch)&&t.catch(g),d.push(t),h&&(h(),h=null),!p&&d.length&&d.length>=n&&await new E((e=>{b=e})))}d.push(N)}catch(i){const e=S(i);R(e,void 0,g),d.push(e)}finally{var o;p=!0,h&&(h(),h=null),null===t||void 0===t||null===(o=t.signal)||void 0===o||o.removeEventListener("abort",f)}}();try{for(;;){for(;d.length>0;){const e=await d[0];if(e===N)return;if(c.aborted)throw new s;e!==T&&(yield e),d.shift(),b&&(b(),b=null)}await new E((e=>{h=e}))}}finally{a.abort(),p=!0,b&&(b(),b=null)}}.call(this)}async function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;for await(const n of k.call(this,e,t))return!0;return!1}function k(e,t){if("function"!==typeof e)throw new i("fn",["Function","AsyncFunction"],e);return I.call(this,(async function(t,n){return await e(t,n)?t:T}),t)}class P extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function C(e){if(e=m(e),v(e))return 0;if(e<0)throw new l("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return null!=e&&u(e,"options"),null!=(null===e||void 0===e?void 0:e.signal)&&d(e.signal,"options.signal"),async function*(){let t=0;for await(const r of this){var n;if(null!==e&&void 0!==e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return null!=t&&u(t,"options"),null!=(null===t||void 0===t?void 0:t.signal)&&d(t.signal,"options.signal"),e=C(e),async function*(){var n;if(null!==t&&void 0!==t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const o of this){var r;if(null!==t&&void 0!==t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;e--<=0&&(yield o)}}.call(this)},filter:k,flatMap:function(e,t){const n=I.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:I,take:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return null!=t&&u(t,"options"),null!=(null===t||void 0===t?void 0:t.signal)&&d(t.signal,"options.signal"),e=C(e),async function*(){var n;if(null!==t&&void 0!==t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const o of this){var r;if(null!==t&&void 0!==t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;if(!(e-- >0))return;yield o}}.call(this)},compose:function(e,t){if(null!=t&&u(t,"options"),null!=(null===t||void 0===t?void 0:t.signal)&&d(t.signal,"options.signal"),y(e)&&!g(e))throw new o("stream",e,"must be writable");const n=b(this,e);return null!==t&&void 0!==t&&t.signal&&p(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;
1if("function"!==typeof e)throw new i("fn",["Function","AsyncFunction"],e);return!await O.call(this,(async function(){return!await e(...arguments)}),t)},forEach:async function(e,t){if("function"!==typeof e)throw new i("fn",["Function","AsyncFunction"],e);for await(const n of I.call(this,(async function(t,n){return await e(t,n),T}),t));},reduce:async function(e,t,n){var o;if("function"!==typeof e)throw new i("reducer",["Function","AsyncFunction"],e);null!=n&&u(n,"options"),null!=(null===n||void 0===n?void 0:n.signal)&&d(n.signal,"options.signal");let a=arguments.length>1;if(null!==n&&void 0!==n&&null!==(o=n.signal)&&void 0!==o&&o.aborted){const e=new s(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await h(this.destroy(e)),e}const l=new r,c=l.signal;if(null!==n&&void 0!==n&&n.signal){const e={once:!0,[f]:this};n.signal.addEventListener("abort",(()=>l.abort()),e)}let b=!1;try{for await(const r of this){var p;if(b=!0,null!==n&&void 0!==n&&null!==(p=n.signal)&&void 0!==p&&p.aborted)throw new s;a?t=await e(t,r,{signal:c}):(t=r,a=!0)}if(!b&&!a)throw new P}finally{l.abort()}return t},toArray:async function(e){null!=e&&u(e,"options"),null!=(null===e||void 0===e?void 0:e.signal)&&d(e.signal,"options.signal");const t=[];for await(const r of this){var n;if(null!==e&&void 0!==e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});w(t,r)}return t},some:O,find:async function(e,t){for await(const n of k.call(this,e,t))return n}}},424:(e,t,n)=>{"use strict";const{ObjectSetPrototypeOf:r}=n(29606);e.exports=i;const o=n(28578);function i(e){if(!(this instanceof i))return new i(e);o.call(this,e)}r(i.prototype,o.prototype),r(i,o),i.prototype._transform=function(e,t,n){n(null,e)}},33354:(e,t,n)=>{const r=n(1426),{ArrayIsArray:o,Promise:i,SymbolAsyncIterator:a}=n(29606),l=n(34560),{once:s}=n(30793),d=n(9472),c=n(3437),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:p,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:y}=n(82009),{validateFunction:w,validateAbortSignal:_}=n(8595),{isIterable:m,isReadable:v,isReadableNodeStream:E,isNodeStream:S,isTransformStream:R,isWebStream:A,isReadableStream:T,isReadableEnded:N}=n(30716),I=globalThis.AbortController||n(35935).AbortController;let O,k;function P(e,t,n){let r=!1;e.on("close",(()=>{r=!0}));return{destroy:t=>{r||(r=!0,d.destroyer(e,t||new p("pipe")))},cleanup:l(e,{readable:t,writable:n},(e=>{r=!e}))}}function C(e){if(m(e))return e;if(E(e))return async function*(e){k||(k=n(26634));yield*k.prototype[a].call(e)}(e);throw new f("val",["Readable","Iterable","AsyncIterable"],e)}async function D(e,t,n,r){let o,{end:a}=r,s=null;const d=e=>{if(e&&(o=e),s){const e=s;s=null,e()}},c=()=>new i(((e,t)=>{o?t(o):s=()=>{o?t(o):e()}}));t.on("drain",d);const f=l(t,{readable:!1},d);try{t.writableNeedDrain&&await c();for await(const n of e)t.write(n)||await c();a&&t.end(),await c(),n()}catch(h){n(o!==h?u(o,h):h)}finally{f(),t.off("drain",d)}}async function M(e,t,n,r){let{end:o}=r;R(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,o&&await i.close(),n()}catch(a){try{await i.abort(a),n(a)}catch(a){n(a)}}}function L(e,t,i){if(1===e.length&&o(e[0])&&(e=e[0]),e.length<2)throw new b("streams");const a=new I,l=a.signal,s=null===i||void 0===i?void 0:i.signal,d=[];function u(){j(new y)}let p,g;_(s,"options.signal"),null===s||void 0===s||s.addEventListener("abort",u);const w=[];let N,k=0;function L(e){j(e,0===--k)}function j(e,n){if(!e||p&&"ERR_STREAM_PREMATURE_CLOSE"!==p.code||(p=e),p||n){for(;w.length;)w.shift()(p);null===s||void 0===s||s.removeEventListener("abort",u),a.abort(),n&&(p||d.forEach((e=>e())),r.nextTick(t,p,g))}}for(let U=0;U<e.length;U++){const B=e[U],H=U<e.length-1,G=U>0,V=H||!1!==(null===i||void 0===i?void 0:i.end),K=U===e.length-1;if(S(B)){if(V){const{destroy:Z,cleanup:Y}=P(B,H,G);w.push(Z),v(B)&&K&&d.push(Y)}function W(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&L(e)}B.on("error",W),v(B)&&K&&d.push((()=>{B.removeListener("error",W)}))}if(0===U)if("function"===typeof B){if(N=B({signal:l}),!m(N))throw new h("Iterable, AsyncIterable or Stream","source",N)}else N=m(B)||E(B)||R(B)?B:c.from(B);else if("function"===typeof B){var $;if(R(N))N=C(null===($=N)||void 0===$?void 0:$.readable);else N=C(N);if(N=B(N,{signal:l}),H){if(!m(N,!0))throw new h("AsyncIterable",`transform[${U-1}]`,N)}else{var F;O||(O=n(424));const q=new O({objectMode:!0}),J=null===(F=N)||void 0===F?void 0:F.then;if("function"===typeof J)k++,J.call(N,(e=>{g=e,null!=e&&q.write(e),V&&q.end(),r.nextTick(L)}),(e=>{q.destroy(e),r.nextTick(L,e)}));else if(m(N,!0))k++,D(N,q,L,{end:V}
1);else{if(!T(N)&&!R(N))throw new h("AsyncIterable or Promise","destination",N);{const Q=N.readable||N;k++,D(Q,q,L,{end:V})}}N=q;const{destroy:z,cleanup:X}=P(N,!1,!0);w.push(z),K&&d.push(X)}}else if(S(B)){if(E(N)){k+=2;const ee=x(N,B,L,{end:V});v(B)&&K&&d.push(ee)}else if(R(N)||T(N)){const te=N.readable||N;k++,D(te,B,L,{end:V})}else{if(!m(N))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N);k++,D(N,B,L,{end:V})}N=B}else if(A(B)){if(E(N))k++,M(C(N),B,L,{end:V});else if(T(N)||m(N))k++,M(N,B,L,{end:V});else{if(!R(N))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N);k++,M(N.readable,B,L,{end:V})}N=B}else N=c.from(B)}return(null!==l&&void 0!==l&&l.aborted||null!==s&&void 0!==s&&s.aborted)&&r.nextTick(u),N}function x(e,t,n,o){let{end:i}=o,a=!1;if(t.on("close",(()=>{a||n(new g)})),e.pipe(t,{end:!1}),i){function s(){a=!0,t.end()}N(e)?r.nextTick(s):e.once("end",s)}else n();return l(e,{readable:!0,writable:!1},(t=>{const r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),l(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:L,pipeline:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L(t,s(function(e){return w(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(t)))}}},26634:(e,t,n)=>{const r=n(1426),{ArrayPrototypeIndexOf:o,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:d,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:h,Symbol:b}=n(29606);e.exports=$,$.ReadableState=W;const{EventEmitter:p}=n(47465),{Stream:g,prependListener:y}=n(91466),{Buffer:w}=n(19778),{addAbortSignal:_}=n(82460),m=n(34560);let v=n(30793).debuglog("stream",(e=>{v=e}));const E=n(40338),S=n(9472),{getHighWaterMark:R,getDefaultHighWaterMark:A}=n(49584),{aggregateTwoErrors:T,codes:{ERR_INVALID_ARG_TYPE:N,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:P}}=n(82009),{validateObject:C}=n(8595),D=b("kPaused"),{StringDecoder:M}=n(15948),L=n(42337);c($.prototype,g.prototype),c($,g);const x=()=>{},{errorOrDestroy:j}=S;function W(e,t,r){"boolean"!==typeof r&&(r=t instanceof n(3437)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?R(this,e,"readableHighWaterMark",r):A(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[D]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new M(e.encoding),this.encoding=e.encoding)}function $(e){if(!(this instanceof $))return new $(e);const t=this instanceof n(3437);this._readableState=new W(e,this,t),e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&_(e.signal,this)),g.call(this,e),S.construct(this,(()=>{this._readableState.needReadable&&V(this,this._readableState)}))}function F(e,t,n,r){v("readableAddChunk",t);const o=e._readableState;let i;if(o.objectMode||("string"===typeof t?(n=n||o.defaultEncoding,o.encoding!==n&&(r&&o.encoding?t=w.from(t,n).toString(o.encoding):(t=w.from(t,n),n=""))):t instanceof w?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(i=new N("chunk",["string","Buffer","Uint8Array"],t))),i)j(e,i);else if(null===t)o.reading=!1,function(e,t){if(v("onEofChunk"),t.ended)return;if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?H(e):(t.needReadable=!1,t.emittedReadable=!0,G(e))}(e,o);else if(o.objectMode||t&&t.length>0)if(r)if(o.endEmitted)j(e,new P);else{if(o.destroyed||o.errored)return!1;U(e,o,t,!0)}else if(o.ended)j(e,new k);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?U(e,o,t,!1):V(e,o)):U(e,o,t,!1)}else r||(o.reading=!1,V(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function U(e,t,n,r){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&H(e)),V(e,t)}$.prototype.destroy=S.destroy,$.prototype._undestroy=S.undestroy,$.prototype._destroy=function(e,t){t(e)},$.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},$.prototype.push=function(e,t){return F(this,e,t,!1)},$.prototype.unshift=function(e,t){return F(this,e,t,!0)},$.prototype.isPaused=function(){const e=this._readableState;return!0===e[D]||!1===e.flowing},$.prototype.setEncoding=function(e){const t=new M(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let r="";for(const o of n)r+=t.write(o);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this};function B(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function H(e){const t=e._readableState;v("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(G,e))}function G(e){const t=e._readableState;v("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,J(e)}function V(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(K,e,t))}function K(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(v("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function Z(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[D]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function Y(e){v("readable nexttick read 0"),e.read(0)}function q(e,t){v("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),J(e),t.flowing&&!t.reading&&e.read(0)}function J(e){const t=e._readableState;for(v("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){"function"!==typeof e.read&&(e=$.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,r=x;function o(t){this===e?(r(),r=x):r=t}e.on("readable",o);const i=m(e,{writable:!1},(e=>{n=e?T(n,e):null,r(),r=x}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new u(o)}}}catch(a){throw n=T(n,a),n}finally{!n&&!1===(null===t||void 0===t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",o),i()):S.destroyer(e,null)}}(e,t);return n.stream=e,n}function X(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Q(e){const t=e._readableState;v("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(ee,t,e))}function ee(e,t){if(v("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)r.nextTick(te,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function te(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ne;function re(){return void 0===ne&&(ne={}),ne}$.prototype.read=function(e){v("read",e),void 0===e?e=NaN:i(e)||(e=l(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new O("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return v("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Q(this):H(this),null;if(0===(e=B(e,t))&&t.ended)return 0===t.length&&Q(this),null;let r,o=t.needReadable;if(v("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&
1(o=!0,v("length less than watermark",o)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)o=!1,v("reading, ended or constructing",o);else if(o){v("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(a){j(this,a)}t.sync=!1,t.reading||(e=B(n,t))}return r=e>0?X(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Q(this)),null===r||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",r)),r},$.prototype._read=function(e){throw new I("_read()")},$.prototype.pipe=function(e,t){const n=this,o=this._readableState;1===o.pipes.length&&(o.multiAwaitDrain||(o.multiAwaitDrain=!0,o.awaitDrainWriters=new f(o.awaitDrainWriters?[o.awaitDrainWriters]:[]))),o.pipes.push(e),v("pipe count=%d opts=%j",o.pipes.length,t);const i=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:g;function a(t,r){v("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,function(){v("cleanup"),e.removeListener("close",b),e.removeListener("finish",p),s&&e.removeListener("drain",s);e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",u),d=!0,s&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&s()}())}function l(){v("onend"),e.end()}let s;o.endEmitted?r.nextTick(i):n.once("end",i),e.on("unpipe",a);let d=!1;function c(){d||(1===o.pipes.length&&o.pipes[0]===e?(v("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(v("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),n.pause()),s||(s=function(e,t){return function(){const n=e._readableState;
1n.awaitDrainWriters===t?(v("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(v("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",s))}function u(t){v("ondata");const n=e.write(t);v("dest.write",n),!1===n&&c()}function h(t){if(v("onerror",t),g(),e.removeListener("error",h),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?j(e,t):e.emit("error",t)}}function b(){e.removeListener("finish",p),g()}function p(){v("onfinish"),e.removeListener("close",b),g()}function g(){v("unpipe"),n.unpipe(e)}return n.on("data",u),y(e,"error",h),e.once("close",b),e.once("finish",p),e.emit("pipe",n),!0===e.writableNeedDrain?o.flowing&&c():o.flowing||(v("pipe resume"),n.resume()),e},$.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=o(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},$.prototype.on=function(e,t){const n=g.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,v("on readable",o.length,o.reading),o.length?H(this):o.reading||r.nextTick(Y,this))),n},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(e,t){const n=g.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(Z,this),n},$.prototype.off=$.prototype.removeListener,$.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(Z,this),t},$.prototype.resume=function(){const e=this._readableState;return e.flowing||(v("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(q,e,t))}(this,e)),e[D]=!1,this},$.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[D]=!0,this},$.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{j(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=d(e);for(let r=1;r<n.length;r++){const t=n[r];void 0===this[t]&&"function"===typeof e[t]&&(this[t]=e[t].bind(e))}return this},$.prototype[h]=function(){return z(this)},$.prototype.iterator=function(e){return void 0!==e&&C(e,"options"),z(this,e)},s($.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!!e&&!1!==e.readable&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),s(W.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[D]},set(e){this[D]=!!e}}}),$._fromList=X,$.from=function(e,t){return L($,e,t)},$.fromWeb=function(e,t){return re().newStreamReadableFromReadableStream(e,t)},$.toWeb=function(e,t){return re().newReadableStreamFromStreamReadable(e,t)},$.wrap=function(e,t){var n,r;return new $({objectMode:null===(n=null!==(r=e.readableObjectMode)&&void 0!==r?r:e.objectMode)||void 0===n||n,...t,destroy(t,n){S.destroyer(e,t),n(t)}}).wrap(e)}},49584:(e,t,n)=>{"use strict";const{MathFloor:r,NumberIsInteger:o}=n(29606),{ERR_INVALID_ARG_VALUE:i}=n(82009).codes;function a(e){return e?16:16384}e.exports={getHighWaterMark:function(e,t,n,l){const s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,l,n);if(null!=s){if(!o(s)||s<0){throw new i(l?`options.${n}`:"options.highWaterMark",s)}return r(s)}return a(e.objectMode)},getDefaultHighWaterMark:a}},28578:(e,t,n)=>{"use strict";
1const{ObjectSetPrototypeOf:r,Symbol:o}=n(29606);e.exports=d;const{ERR_METHOD_NOT_IMPLEMENTED:i}=n(82009).codes,a=n(3437),{getHighWaterMark:l}=n(49584);r(d.prototype,a.prototype),r(d,a);const s=o("kCallback");function d(e){if(!(this instanceof d))return new d(e);const t=e?l(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function c(e){"function"!==typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function u(){this._final!==c&&c.call(this)}d.prototype._final=c,d.prototype._transform=function(e,t,n){throw new i("_transform()")},d.prototype._write=function(e,t,n){const r=this._readableState,o=this._writableState,i=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),o.ended||i===r.length||r.length<r.highWaterMark?n():this[s]=n)}))},d.prototype._read=function(){if(this[s]){const e=this[s];this[s]=null,e()}}},30716:(e,t,n)=>{"use strict";const{Symbol:r,SymbolAsyncIterator:o,SymbolIterator:i,SymbolFor:a}=n(29606),l=r("kDestroyed"),s=r("kIsErrored"),d=r("kIsReadable"),c=r("kIsDisturbed"),u=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;return!(!e||"function"!==typeof e.pipe||"function"!==typeof e.on||t&&("function"!==typeof e.pause||"function"!==typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function b(e){var t;return!(!e||"function"!==typeof e.write||"function"!==typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function p(e){return e&&(e._readableState||e._writableState||"function"===typeof e.write&&"function"===typeof e.on||"function"===typeof e.pipe&&"function"===typeof e.on)}function g(e){return!(!e||p(e)||"function"!==typeof e.pipeThrough||"function"!==typeof e.getReader||"function"!==typeof e.cancel)}function y(e){return!(!e||p(e)||"function"!==typeof e.getWriter||"function"!==typeof e.abort)}function w(e){return!(!e||p(e)||"object"!==typeof e.readable||"object"!==typeof e.writable)}function _(e){if(!p(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[l]||null!==r&&void 0!==r&&r.destroyed)}function m(e){if(!b(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null===t||void 0===t||!t.errored)&&("boolean"!==typeof(null===t||void 0===t?void 0:t.ended)?null:t.ended)}function v(e,t){if(!h(e))return null;const n=e._readableState;return(null===n||void 0===n||!n.errored)&&("boolean"!==typeof(null===n||void 0===n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function E(e){return e&&null!=e[d]?e[d]:"boolean"!==typeof(null===e||void 0===e?void 0:e.readable)?null:!_(e)&&(h(e)&&e.readable&&!v(e))}function S(e){return"boolean"!==typeof(null===e||void 0===e?void 0:e.writable)?null:!_(e)&&(b(e)&&e.writable&&!m(e))}function R(e){return"boolean"===typeof e._closed&&"boolean"===typeof e._defaultKeepAlive&&"boolean"===typeof e._removedConnection&&"boolean"===typeof e._removedContLen}function A(e){return"boolean"===typeof e._sent100&&R(e)}e.exports={kDestroyed:l,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[c])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:c,isErrored:function(e){var t,n,r,o,i,a,l,d,c,u;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(o=null!==(i=null!==(a=e[s])&&void 0!==a?a:e.readableErrored)&&void 0!==i?i:e.writableErrored)&&void 0!==o?o:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==r?r:null===(d=e._writableState)||void 0===d?void 0:d.errorEmitted)&&void 0!==n?n:null===(c=e._readableState)||void 0===c?void 0:c.errored)&&void 0!==t?t:null===(u=e._writableState)||void 0===u?void 0:u.errored))},kIsErrored:s,isReadable:E,kIsReadable:d,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:function(e){if(!p(e))return null;if("boolean"===typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"===typeof(null===t||void 0===t?void 0:t.closed)||"boolean"===typeof(null===n||void 0===n?void 0:n.closed)?(null===t||void 0===t?void 0:t.closed)||(null===n||void 0===n?void 0:n.closed):"boolean"===typeof e._closed&&R(e)?e._closed:null}
1,isDestroyed:_,isDuplexNodeStream:function(e){return!(!e||"function"!==typeof e.pipe||!e._readableState||"function"!==typeof e.on||"function"!==typeof e.write)},isFinished:function(e,t){return p(e)?!!_(e)||(!1===(null===t||void 0===t?void 0:t.readable)||!E(e))&&(!1===(null===t||void 0===t?void 0:t.writable)||!S(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"===typeof e[o]:!1===t?"function"===typeof e[i]:"function"===typeof e[o]||"function"===typeof e[i])},isReadableNodeStream:h,isReadableStream:g,isReadableEnded:function(e){if(!h(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!==typeof(null===t||void 0===t?void 0:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,n;return p(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:p,isWebStream:function(e){return g(e)||y(e)||w(e)},isWritable:S,isWritableNodeStream:b,isWritableStream:y,isWritableEnded:m,isWritableFinished:function(e,t){if(!b(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null===n||void 0===n||!n.errored)&&("boolean"!==typeof(null===n||void 0===n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return p(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"===typeof e._consuming&&"boolean"===typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:A,willEmitClose:function(e){if(!p(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!r&&A(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:w}},80442:(e,t,n)=>{const r=n(1426),{ArrayPrototypeSlice:o,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:d,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=n(29606);e.exports=M,M.WritableState=C;const{EventEmitter:h}=n(47465),b=n(91466).Stream,{Buffer:p}=n(19778),g=n(9472),{addAbortSignal:y}=n(82460),{getHighWaterMark:w,getDefaultHighWaterMark:_}=n(49584),{ERR_INVALID_ARG_TYPE:m,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:R,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:N,ERR_UNKNOWN_ENCODING:I}=n(82009).codes,{errorOrDestroy:O}=g;function k(){}d(M.prototype,b.prototype),d(M,b);const P=u("kOnFinished");function C(e,t,r){"boolean"!==typeof r&&(r=t instanceof n(3437)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?w(this,e,"writableHighWaterMark",r):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const o=!(!e||!1!==e.decodeStrings);this.decodeStrings=!o,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=W.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,D(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function D(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function M(e){const t=this instanceof n(3437);if(!t&&!a(M,this))return new M(e);this._writableState=new C(e,this,t),e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final),"function"===typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),b.call(this,e),g.construct(this,(()=>{const e=this._writableState;e.writing||B(this,e),V(this,e)}))}function L(e,t,n,o){const i=e._writableState;if("function"===typeof n)o=n,n=i.defaultEncoding;else{if(n){if("buffer"!==n&&!p.isEncoding(n))throw new I(n)}else n=i.defaultEncoding;"function"!==typeof o&&(o=k)}if(null===t)throw new T;if(!i.objectMode)if("string"===typeof t)!1!==i.decodeStrings&&(t=p.from(t,n),n="buffer");else if(t instanceof p)n="buffer";
1else{if(!b._isUint8Array(t))throw new m("chunk",["string","Buffer","Uint8Array"],t);t=b._uint8ArrayToBuffer(t),n="buffer"}let a;return i.ending?a=new N:i.destroyed&&(a=new R("write")),a?(r.nextTick(o,a),O(e,a,!0),a):(i.pendingcb++,function(e,t,n,r,o){const i=t.objectMode?1:n.length;t.length+=i;const a=t.length<t.highWaterMark;a||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:o}),t.allBuffers&&"buffer"!==r&&(t.allBuffers=!1),t.allNoop&&o!==k&&(t.allNoop=!1)):(t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1);return a&&!t.errored&&!t.destroyed}(e,i,t,n,o))}function x(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function j(e,t,n,r){--t.pendingcb,r(n),U(t),O(e,n)}function W(e,t){const n=e._writableState,o=n.sync,i=n.writecb;"function"===typeof i?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),o?r.nextTick(j,e,n,t,i):j(e,n,t,i)):(n.buffered.length>n.bufferedIndex&&B(e,n),o?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:e,state:n},r.nextTick($,n.afterWriteTickInfo)):F(e,n,1,i))):O(e,new E)}function $(e){let{stream:t,state:n,count:r,cb:o}=e;return n.afterWriteTickInfo=null,F(t,n,r,o)}function F(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&U(t),V(e,t)}function U(e){if(e.writing)return;for(let o=e.bufferedIndex;o<e.buffered.length;++o){var t;const{chunk:n,callback:r}=e.buffered[o],i=e.objectMode?1:n.length;e.length-=i,r(null!==(t=e.errored)&&void 0!==t?t:new R("write"))}const n=e[P].splice(0);for(let o=0;o<n.length;o++){var r;n[o](null!==(r=e.errored)&&void 0!==r?r:new R("end"))}D(e)}function B(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:r,objectMode:i}=t,a=n.length-r;if(!a)return;let l=r;if(t.bufferProcessing=!0,a>1&&e._writev){t.pendingcb-=a-1;const r=t.allNoop?k:e=>{for(let t=l;t<n.length;++t)n[t].callback(e)},i=t.allNoop&&0===l?n:o(n,l);i.allBuffers=t.allBuffers,x(e,t,!0,t.length,i,"",r),D(t)}else{do{const{chunk:r,encoding:o,callback:a}=n[l];n[l++]=null;x(e,t,!1,i?1:r.length,r,o,a)}while(l<n.length&&!t.writing);l===n.length?D(t):l>256?(n.splice(0,l),t.bufferedIndex=0):t.bufferedIndex=l}t.bufferProcessing=!1}function H(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function G(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function o(o){if(n)O(e,null!==o&&void 0!==o?o:E());else if(n=!0,t.pendingcb--,o){const n=t[P].splice(0);for(let e=0;e<n.length;e++)n[e](o);O(e,o,t.sync)}else H(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,r.nextTick(K,e,t))}t.sync=!0,t.pendingcb++;try{e._final(o)}catch(i){o(i)}t.sync=!1}(e,t)))}function V(e,t,n){H(t)&&(G(e,t),0===t.pendingcb&&(n?(t.pendingcb++,r.nextTick(((e,t)=>{H(t)?K(e,t):t.pendingcb--}),e,t)):H(t)&&(t.pendingcb++,K(e,t))))}function K(e,t){t.pendingcb--,t.finished=!0;const n=t[P].splice(0);for(let r=0;r<n.length;r++)n[r]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}C.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},l(C.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(M,f,{__proto__:null,value:function(e){return!!a(this,e)||this===M&&(e&&e._writableState instanceof C)}}),M.prototype.pipe=function(){O(this,new S)},M.prototype.write=function(e,t,n){return!0===L(this,e,t,n)},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||B(this,e))},M.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=c(e)),!p.isEncoding(e))throw new I(e);return this._writableState.defaultEncoding=e,this},M.prototype._write=function(e,t,n){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],n)},M.prototype._writev=null,M.prototype.end=function(e,t,n){const o=this._writableState;let a;if("function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e){const n=L(this,e,t);n instanceof i&&(a=n)}return o.corked&&(o.corked=1,this.uncork()),a||(o.errored||o.ending?o.finished?a=new A("end"):o.destroyed&&(a=new R("end")):(o.ending=!0,V(this,o,!0),o.ended=!0)),"function"===typeof n&&(a||o.finished?r.nextTick(n,a):o[P].push(n)),this},s(M.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!!e&&!1!==e.writable&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const Z=g.destroy;let Y;function q(){return void 0===Y&&(Y={}),Y}M.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[P].length)&&r.nextTick(U,n),Z.call(this,e,t),this},M.prototype._undestroy=g.undestroy,M.prototype._destroy=function(e,t){t(e)},M.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},M.fromWeb=function(e,t){return q().newStreamWritableFromWritableStream(e,t)},M.toWeb=function(e){return q().newWritableStreamFromStreamWritable(e)}},8595:(e,t,n)=>{"use strict";const{ArrayIsArray:r,ArrayPrototypeIncludes:o,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:l,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:d,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:h,String:b,StringPrototypeToUpperCase:p,StringPrototypeTrim:g}=n(29606),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:m,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:E}}=n(82009),{normalizeEncoding:S}=n(30793),{isAsyncFunction:R,isArrayBufferView:A}=n(30793).types,T={};const N=/^[0-7]+$/;const I=y((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d;if("number"!==typeof e)throw new _(t,"number",e);if(!l(e))throw new v(t,"an integer",e);if(e<n||e>r)throw new v(t,`>= ${n} && <= ${r}`,e)})),O=y((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-2147483648,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2147483647;if("number"!==typeof e)throw new _(t,"number",e);if(!l(e))throw new v(t,"an integer",e);if(e<n||e>r)throw new v(t,`>= ${n} && <= ${r}`,e)})),k=y((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"!==typeof e)throw new _(t,"number",e);if(!l(e))throw new v(t,"an integer",e);const r=n?1:0,o=4294967295;if(e<r||e>o)throw new v(t,`>= ${r} && <= ${o}`,e)}
1));function P(e,t){if("string"!==typeof e)throw new _(t,"string",e)}const C=y(((e,t,n)=>{if(!o(n,e)){const r=i(a(n,(e=>"string"===typeof e?`'${e}'`:b(e))),", ");throw new m(t,e,"must be one of: "+r)}}));function D(e,t){if("boolean"!==typeof e)throw new _(t,"boolean",e)}function M(e,t,n){return null!=e&&f(e,t)?e[t]:n}const L=y((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=M(n,"allowArray",!1),i=M(n,"allowFunction",!1);if(!M(n,"nullable",!1)&&null===e||!o&&r(e)||"object"!==typeof e&&(!i||"function"!==typeof e))throw new _(t,"Object",e)})),x=y(((e,t)=>{if(null!=e&&"object"!==typeof e&&"function"!==typeof e)throw new _(t,"a dictionary",e)})),j=y((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!r(e))throw new _(t,"Array",e);if(e.length<n){throw new m(t,e,`must be longer than ${n}`)}}));const W=y((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"buffer";if(!A(e))throw new _(t,["Buffer","TypedArray","DataView"],e)}));const $=y(((e,t)=>{if(void 0!==e&&(null===e||"object"!==typeof e||!("aborted"in e)))throw new _(t,"AbortSignal",e)})),F=y(((e,t)=>{if("function"!==typeof e)throw new _(t,"Function",e)})),U=y(((e,t)=>{if("function"!==typeof e||R(e))throw new _(t,"Function",e)})),B=y(((e,t)=>{if(void 0!==e)throw new _(t,"undefined",e)}));const H=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(e,t){if("undefined"===typeof e||!h(H,e))throw new m(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if("undefined"===typeof e&&(e=n),"string"===typeof e){if(null===h(N,e))throw new m(t,e,"must be a 32-bit unsigned integer or an octal string");e=u(e,8)}return k(e,t),e},validateArray:j,validateStringArray:function(e,t){j(e,t);for(let n=0;n<e.length;n++)P(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){j(e,t);for(let n=0;n<e.length;n++)D(e[n],`${t}[${n}]`)},validateBoolean:D,validateBuffer:W,validateDictionary:x,validateEncoding:function(e,t){const n=S(t),r=e.length;if("hex"===n&&r%2!==0)throw new m("encoding",t,`is invalid for data of length ${r}`)},validateFunction:F,validateInt32:O,validateInteger:I,validateNumber:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("number"!==typeof e)throw new _(t,"number",e);if(null!=n&&e<n||null!=r&&e>r||(null!=n||null!=r)&&s(e))throw new v(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:L,validateOneOf:C,validatePlainFunction:U,validatePort:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Port",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("number"!==typeof e&&"string"!==typeof e||"string"===typeof e&&0===g(e).length||+e!==+e>>>0||e>65535||0===e&&!n)throw new w(t,e,n);return 0|e},validateSignalName:function(e){if(P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"signal"),void 0===T[e]){if(void 0!==T[p(e)])throw new E(e+" (signals must use all capital letters)");throw new E(e)}},validateString:P,validateUint32:k,validateUndefined:B,validateUnion:function(e,t,n){if(!o(n,e))throw new _(t,`('${i(n,"|")}')`,e)},validateAbortSignal:$,validateLinkHeaderValue:function(e){if("string"===typeof e)return G(e,"hints"),e;if(r(e)){const t=e.length;let n="";if(0===t)return n;for(let r=0;r<t;r++){const o=e[r];G(o,"hints"),n+=o,r!==t-1&&(n+=", ")}return n}throw new m("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},44101:(e,t,n)=>{"use strict";const r=n(72185),o=n(75183),i=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=i,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>o}),e.exports.Stream=r.Stream,e.exports.default=e.exports},82009:(e,t,n)=>{"use strict";const{format:r,inspect:o,AggregateError:i}=n(30793),a=globalThis.AggregateError||i,l=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],d=/^([A-Z][a-z0-9]*)+$/,c={};function u(e,t){if(!e)throw new c.ERR_INTERNAL_ASSERTION(t)}function f(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function h(e,t,n){n||(n=Error);class o extends n{constructor(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];super(function(e,t,n){if("function"===typeof t)return u(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const o=(t.match(/%[dfijoOs]/g)||[]).length;return u(o===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${o}).`),0===n.length?t:r(t,...n)}(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(o.prototype,{name:{value:n.name,writable:!0,enumerable:!1,
1configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),o.prototype.code=e,o.prototype[l]=!0,c[e]=o}function b(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class p extends Error{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The operation was aborted",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(void 0!==t&&"object"!==typeof t)throw new c.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",((e,t,n)=>{u("string"===typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";const i=[],a=[],l=[];for(const o of t)u("string"===typeof o,"All expected entries have to be of type string"),s.includes(o)?i.push(o.toLowerCase()):d.test(o)?a.push(o):(u("object"!==o,'The value "object" should be written as "Object"'),l.push(o));if(a.length>0){const e=i.indexOf("object");-1!==e&&(i.splice(i,e,1),a.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{const e=i.pop();r+=`one of type ${i.join(", ")}, or ${e}`}}(a.length>0||l.length>0)&&(r+=" or ")}if(a.length>0){switch(a.length){case 1:r+=`an instance of ${a[0]}`;break;case 2:r+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();r+=`an instance of ${a.join(", ")}, or ${e}`}}l.length>0&&(r+=" or ")}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(r+="an "),r+=`${l[0]}`;break;case 2:r+=`one of ${l[0]} or ${l[1]}`;break;default:{const e=l.pop();r+=`one of ${l.join(", ")}, or ${e}`}}if(null==n)r+=`. Received ${n}`;else if("function"===typeof n&&n.name)r+=`. Received function ${n.name}`;else if("object"===typeof n){var c;if(null!==(c=n.constructor)&&void 0!==c&&c.name)r+=`. Received an instance of ${n.constructor.name}`;else{r+=`. Received ${o(n,{depth:-1})}`}}else{let e=o(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),r+=`. Received type ${typeof n} (${e})`}return r}),TypeError),h("ERR_INVALID_ARG_VALUE",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid",r=o(t);r.length>128&&(r=r.slice(0,128)+"...");return`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`}),TypeError),h("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!==n&&void 0!==n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),h("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r;u(t.length>0,"At least one arg needs to be specified");const o=t.length;switch(t=(Array.isArray(t)?t:[t]).map((e=>`"${e}"`)).join(" or "),o){case 1:r+=`The ${t[0]} argument`;break;case 2:r+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const e=t.pop();r+=`The ${t.join(", ")}, and ${e} arguments`}}return`${r} must be specified`}),TypeError),h("ERR_OUT_OF_RANGE",((e,t,n)=>{let r;return u(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?r=f(String(n)):"bigint"===typeof n?(r=String(n),(n>2n**32n||n<-(2n**32n))&&(r=f(r)),r+="n"):r=o(n),`The value of "${e}" is out of range. It must be ${t}. Received ${r}`}),RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:p,aggregateTwoErrors:b((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new a([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:b,codes:c}},29606:e=>{"use strict";e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error:Error,FunctionPrototypeCall(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.call(t,...r)},FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>
1Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise:Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String:String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Uint8Array:Uint8Array}},30793:(e,t,n)=>{"use strict";const r=n(19778),o=Object.getPrototypeOf((async function(){})).constructor,i=globalThis.Blob||r.Blob,a="undefined"!==typeof i?function(e){return e instanceof i}:function(e){return!1};class l extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=`    ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e((function(e){if(e)return n(e);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t(...o)}))})),debuglog:()=>function(){},format(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.replace(/%([sdifj])/g,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[o,i]=t;const a=n.shift();if("f"===i)return a.toFixed(6);if("j"===i)return JSON.stringify(a);if("s"===i&&"object"===typeof a){return`${a.constructor!==Object?a.constructor.name:""} {}`.trim()}return a.toString()}))},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof o,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:a},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},72185:(e,t,n)=>{const{Buffer:r}=n(19778),{ObjectDefineProperty:o,ObjectKeys:i,ReflectApply:a}=n(29606),{promisify:{custom:l}}=n(30793),{streamReturningOperators:s,promiseReturningOperators:d}=n(62737),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=n(82009),u=n(38695),{pipeline:f}=n(33354),{destroyer:h}=n(9472),b=n(34560),p=n(75183),g=n(30716),y=e.exports=n(91466).Stream;y.isDisturbed=g.isDisturbed,y.isErrored=g.isErrored,y.isReadable=g.isReadable,y.Readable=n(26634);for(const m of i(s)){const v=s[m];function w(){if(new.target)throw c();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.Readable.from(a(v,this,t))}o(w,"name",{__proto__:null,value:v.name}),o(w,"length",{__proto__:null,value:v.length}),o(y.Readable.prototype,m,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(const E of i(d)){const S=d[E];function w(){if(new.target)throw c();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(S,this,t)}o(w,"name",{__proto__:null,value:S.name}),o(w,"length",{__proto__:null,value:S.length}),o(y.Readable.prototype,E,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}y.Writable=n(80442),y.Duplex=n(3437),y.Transform=n(28578),y.PassThrough=n(424),y.pipeline=f;const{addAbortSignal:_}=n(82460);y.addAbortSignal=_,y.finished=b,y.destroy=h,y.compose=u,o(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>p}),o(f,l,{__proto__:null,enumerable:!0,get:()=>p.pipeline}),o(b,l,{__proto__:null,enumerable:!0,get:()=>p.finished}),y.Stream=y,y._isUint8Array=function(e){return e instanceof Uint8Array},y._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}}
1,75183:(e,t,n)=>{"use strict";const{ArrayPrototypePop:r,Promise:o}=n(29606),{isIterable:i,isNodeStream:a,isWebStream:l}=n(30716),{pipelineImpl:s}=n(33354),{finished:d}=n(34560);n(72185),e.exports={finished:d,pipeline:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new o(((e,n)=>{let o,d;const c=t[t.length-1];if(c&&"object"===typeof c&&!a(c)&&!i(c)&&!l(c)){const e=r(t);o=e.signal,d=e.end}s(t,((t,r)=>{t?n(t):e(r)}),{signal:o,end:d})}))}}}}]);
2//# sourceMappingURL=844.be1085a1.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.