(()=>{varA={6472:function(A,e,t){"use strict";varr=this&&this.__createBinding||(Object.create?function(A,e,t,r){if(r===undefined)r=t;vars=Object.getOwnPropertyDescriptor(e,t);if(!s||("get"ins?!e.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){returne[t]}}}Object.defineProperty(A,r,s)}:function(A,e,t,r){if(r===undefined)r=t;A[r]=e[t]});vars=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:true,value:e})}:function(A,e){A["default"]=e});varn=this&&this.__importStar||function(A){if(A&&A.__esModule)returnA;vare={};if(A!=null)for(vartinA)if(t!=="default"&&Object.prototype.hasOwnProperty.call(A,t))r(e,A,t);s(e,A);returne};Object.defineProperty(e,"__esModule",{value:true});e.addINIValuesUnix=addINIValuesUnix;e.addINIValuesWindows=addINIValuesWindows;e.addINIValues=addINIValues;consto=n(t(9277));asyncfunctionaddINIValuesUnix(A){conste=awaito.CSVArray(A);lett="";awaito.asyncForEach(e,(asyncfunction(A){t+="\n"+awaito.addLog("$tick",A,"Added to php.ini","linux")}));return'echo "'+e.join("\n")+'" | sudo tee -a "${pecl_file:-${ini_file[@]}}" >/dev/null 2>&1'+t}asyncfunctionaddINIValuesWindows(A){conste=awaito.CSVArray(A);lett="\n";awaito.asyncForEach(e,(asyncfunction(A){t+=awaito.addLog("$tick",A,"Added to php.ini","win32")+"\n"}));return'Add-Content "$php_dir\\php.ini" "'+e.join("\n")+'"'+t}asyncfunctionaddINIValues(A,e,t=false){letr="\n";switch(t){casetrue:r+=awaito.stepLog("Add php.ini values",e)+awaito.suppressOutput(e)+"\n";break;casefalse:default:r+=awaito.stepLog("Add php.ini values",e)+"\n";break}switch(e){case"win32":returnr+awaitaddINIValuesWindows(A);case"darwin":case"linux":returnr+awaitaddINIValuesUnix(A);default:returnawaito.log("Platform "+e+" is not supported",e,"error")}}},9524:function(A,e,t){"use strict";varr=this&&this.__createBinding||(Object.create?function(A,e,t,r){if(r===undefined)r=t;vars=Object.getOwnPropertyDescriptor(e,t);if(!s||("get"ins?!e.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){returne[t]}}}Object.defineProperty(A,r,s)}:function(A,e,t,r){if(r===undefined)r=t;A[r]=e[t]});vars=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:true,value:e})}:function(A,e){A["default"]=e});varn=this&&this.__importStar||function(A){if(A&&A.__esModule)returnA;vare={};if(A!=null)for(vartinA)if(t!=="default"&&Object.prototype.hasOwnProperty.call(A,t))r(e,A,t);s(e,A);returne};Object.defineProperty(e,"__esModule",{value:true});e.checkXdebugError=checkXdebugError;e.addCoverageXdebug=addCoverageXdebug;e.addCoveragePCOV=addCoveragePCOV;e.disableCoverage=disableCoverage;e.addCoverage=addCoverage;consto=n(t(9277));consti=n(t(3252));consta=n(t(6472));asyncfunctioncheckXdebugError(A,e){if(/^5\.[3-6]$|^7\.[0-1]$/.test(e)&&A=="xdebug3"||/^8\.[0-9]$/.test(e)&&A=="xdebug2"){returnA+" is not supported on PHP "+e}return""}asyncfunctionaddCoverageXdebug(A,e,t,r){lets="\n";constn=awaitcheckXdebugError(A,e);if(!n){s+=awaiti.addExtension(":pcov:false",e,t,true)+r;A=A=="xdebug3"?"xdebug":A;s+=awaiti.addExtension(A,e,t,true)+r;s+=awaito.setVariable("xdebug_version","php -r \"echo phpversion('xdebug');\"",t);s+=awaito.getCommand(t,"extension_log")+'xdebug "Xdebug $xdebug_version enabled as coverage driver"'}else{s+=awaito.addLog("$cross",A,n,t)}returns}asyncfunctionaddCoveragePCOV(A,e,t){letr="\n";switch(true){default:r+=awaiti.addExtension(":xdebug:false",A,e,true)+t;r+=awaiti.addExtension("pcov",A,e,true)+t;r+=awaita.addINIValues("pcov.enabled=1",e,true)+"\n";r+=awaito.setVariable("pcov_version","php -r \"echo phpversion('pcov');\"",e);r+=awaito.getCommand(e,"extension_log")+'pcov "PCOV $pcov_version enabled as coverage driver"';break;case/5\.[3-6]|7\.0/.test(A):r+=awaito.addLog("$cross","pcov","PHP 7.1 or newer is required",e);break}returnr}asyncfunctiondisableCoverage(A,e,t){letr="\n";r+=awaiti.addExtension(":pcov:false",A,e,true)+t;r+=awaiti.addExtension(":xdebug:false",A,e,true)+t;r+=aw
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;constescape=A=>A.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");constnormalizeLinefeeds=A=>A.replace(/\r?\n|\r/g,"\r\n");constr=[];consts=newUint8Array([13,10]);E=0;letn=false;for(const[e,o]ofA){if(typeofo==="string"){constA=b.encode(t+`; name="${escape(normalizeLinefeeds(e))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);r.push(A);E+=A.byteLength}else{constA=b.encode(`${t}; name="${escape(normalizeLinefeeds(e))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);r.push(A,o,s);if(typeofo.size==="number"){E+=A.byteLength+o.size+s.byteLength}else{n=true}}}consto=b.encode(`--${e}--`);r.push(o);E+=o.byteLength;if(n){E=null}g=A;c=asyncfunction*(){for(constAofr){if(A.stream){yield*A.stream()}else{yieldA}}};Q="multipart/form-data; boundary="+e}elseif(o(A)){g=A;E=A.size;if(A.type){Q=A.type}}elseif(typeofA[Symbol.asyncIterator]==="function"){if(e){thrownewTypeError("keepalive")}if(s.isDisturbed(A)||A.locked){thrownewTypeError("Response body object should not be disturbed or locked")}r=Ainstanceofm?A:n(A)}if(typeofg==="string"||s.isBuffer(g)){E=Buffer.byteLength(g)}if(c!=null){lete;r=newm({asyncstart(){e=c(A)[Symbol.asyncIterator]()},asyncpull(A){const{value:t,done:s}=awaite.next();if(s){queueMicrotask((()=>{A.close()}))}else{if(!f(r)){A.enqueue(newUint8Array(t))}}returnA.desiredSize>0},asynccancel(A){awaite.return()},type:undefined})}constC={stream:r,source:g,length:E};return[C,Q]}functionsafelyExtractBody(A,e=false){if(!m){m=t(3774).ReadableStream}if(Ainstanceofm){d(!s.isDisturbed(A),"The body has already been consumed.");d(!A.locked,"The stream is locked.")}returnextractBody(A,e)}functioncloneBody(A){const[e,t]=A.stream.tee();constr=l(t,{transfer:[t]});const[,s]=r.tee();A.stream=e;return{stream:s,length:A.length,source:A.source}}asyncfunction*consumeBody(A){if(A){if(p(A)){yieldA}else{conste=A.stream;if(s.isDisturbed(e)){thrownewTypeError("The body has already been consumed.")}if(e.locked){thrownewTypeError("The stream is locked.")}e[u]=true;yield*e}}}functionthrowIfAborted(A){if(A.aborted){thrownewB("The operation was aborted.","AbortError")}}functionbodyMixinMethods(A){conste={blob(){returnspecConsumeBody(this,(A=>{lete=bodyMimeType(this);if(e==="failure"){e=""}elseif(e){e=D(e)}returnnewI([A],{type:e})}),A)},arrayBuffer(){returnspecConsumeBody(this,(A=>newUint8Array(A).buffer),A)},text(){returnspecConsumeBody(this,utf8DecodeBytes,A)},json(){returnspecConsumeBody(this,parseJSONFromBytes,A)},asyncformData(){C.brandCheck(this,A);throwIfAborted(this[Q]);conste=this.headers.get("Content-Type");if(/multipart\/form-data/.test(e)){constA={};for(const[e,t]ofthis.headers)A[e.toLowerCase()]=t;conste=newE;lett;try{t=newr({headers:A,preservePath:true})}catch(A){thrownewB(`${A}`,"AbortError")}t.on("field",((A,t)=>{e.append(A,t)}));t.on("file",((A,t,r,s,n)=>{consto=[];if(s==="base64"||s.toLowerCase()==="base64"){lets="";t.on("data",(A=>{s+=A.toString().replace(/[\r\n]/gm,"");conste=s.length-s.length%4;o.push(Buffer.from(s.slice(0,e),"base64"));s=s.slice(e)}));t.on("end",(()=>{o.push(Buffer.from(s,"base64"));e.append(A,newk(o,r,{type:n}))}))}else{t.on("data",(A=>{o.push(A)}));t.on("end",(()=>{e.append(A,newk(o,r,{type:n}))}))}}));consts=newPromise(((A,e)=>{t.on("finish",A);t.on("error",(A=>e(newTypeError(A))))}));if(this.body!==null)forawait(constAofconsumeBody(this[Q].body))t.write(A);t.end();awaits;returne}elseif(/application\/x-www-form-urlencoded/.test(e)){letA;try{lete="";constt=newTextDecoder("utf-8",{ignoreBOM:true});forawait(constAofconsumeBody(this[Q].body)){if(!p(A)){thrownewTypeError("Expected Uint8Array chunk")}e+=t.decode(A,{stream:true})}e+=t.decode();A=newURLSearchParams(e)}catch(A){throwObject.assign(newTypeError,{cause:A})}conste=newE;for(const[t,r]ofA){e.append(t,r)}returne}else{awaitPromise.resolve();throwIfAborted(this[Q]);throwC.errors.exception({he
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */n[s-4]=this.maskKey[0];n[s-3]=this.maskKey[1];n[s-2]=this.maskKey[2];n[s-1]=this.maskKey[3];n[1]=t;if(t===126){n.writeUInt16BE(e,2)}elseif(t===127){n[2]=n[3]=0;n.writeUIntBE(e,4,6)}n[1]|=128;for(letA=0;A<e;A++){n[s+A]=this.frameData[A]^this.maskKey[A%4]}returnn}}A.exports={WebsocketFrameSend:WebsocketFrameSend}},3171:(A,e,t)=>{"use strict";const{Writable:r}=t(2203);consts=t(1637);const{parserStates:n,opcodes:o,states:i,emptyBuffer:a}=t(5913);const{kReadyState:c,kSentClose:g,kResponse:E,kReceivedClose:Q}=t(2933);const{isValidStatusCode:C,failWebsocketConnection:B,websocketMessageReceived:l}=t(3574);const{WebsocketFrameSend:I}=t(1237);consth={};h.ping=s.channel("undici:websocket:ping");h.pong=s.channel("undici:websocket:pong");classByteParserextendsr{#o=[];#i=0;#a=n.INFO;#c={};#g=[];constructor(A){super();this.ws=A}_write(A,e,t){this.#o.push(A);this.#i+=A.length;this.run(t)}run(A){while(true){if(this.#a===n.INFO){if(this.#i<2){returnA()}conste=this.consume(2);this.#c.fin=(e[0]&128)!==0;this.#c.opcode=e[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==o.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==o.BINARY&&this.#c.opcode!==o.TEXT){B(this.ws,"Invalid frame type was fragmented.");return}constt=e[1]&127;if(t<=125){this.#c.payloadLength=t;this.#a=n.READ_DATA}elseif(t===126){this.#a=n.PAYLOADLENGTH_16}elseif(t===127){this.#a=n.PAYLOADLENGTH_64}if(this.#c.fragmented&&t>125){B(this.ws,"Fragmented frame exceeded 125 bytes.");return}elseif((this.#c.opcode===o.PING||this.#c.opcode===o.PONG||this.#c.opcode===o.CLOSE)&&t>125){B(this.ws,"Payload length for control frame exceeded 125 bytes.");return}elseif(this.#c.opcode===o.CLOSE){if(t===1){B(this.ws,"Received close frame with a 1-byte body.");return}constA=this.consume(t);this.#c.closeInfo=this.parseCloseBody(false,A);if(!this.ws[g]){constA=Buffer.allocUnsafe(2);A.writeUInt16BE(this.#c.closeInfo.code,0);conste=newI(A);this.ws[E].socket.write(e.createFrame(o.CLOSE),(A=>{if(!A){this.ws[g]=true}}))}this.ws[c]=i.CLOSING;this.ws[Q]=true;this.end();return}elseif(this.#c.opcode===o.PING){conste=this.consume(t);if(!this.ws[Q]){constA=newI(e);this.ws[E].socket.write(A.createFrame(o.PONG));if(h.ping.hasSubscribers){h.ping.publish({payload:e})}}this.#a=n.INFO;if(this.#i>0){continue}else{A();return}}elseif(this.#c.opcode===o.PONG){conste=this.consume(t);if(h.pong.hasSubscribers){h.pong.publish({payload:e})}if(this.#i>0){continue}else{A();return}}}elseif(this.#a===n.PAYLOADLENGTH_16){if(this.#i<2){returnA()}conste=this.consume(2);this.#c.payloadLength=e.readUInt16BE(0);this.#a=n.READ_DATA}elseif(this.#a===n.PAYLOADLENGTH_64){if(this.#i<8){returnA()}conste=this.consume(8);constt=e.readUInt32BE(0);if(t>2**31-1){B(this.ws,"Received payload length > 2^31 bytes.");return}constr=e.readUInt32BE(4);this.#c.payloadLength=(t<<8)+r;this.#a=n.READ_DATA}elseif(this.#a===n.READ_DATA){if(this.#i<this.#c.payloadLength){returnA()}elseif(this.#i>=this.#c.payloadLength){constA=this.consume(this.#c.payloadLength);this.#g.push(A);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===o.CONTINUATION){constA=Buffer.concat(this.#g);l(this.ws,this.#c.originalOpcode,A);this.#c={};this.#g.length=0}this.#a=n.INFO}}if(this.#i>0){continue}else{A();break}}}consume(A){if(A>this.#i){returnnull}elseif(A===0){returna}if(this.#o[0].length===A){this.#i-=this.#o[0].length;returnthis.#o.shift()}conste=Buffer.allocUnsafe(A);lett=0;while(t!==A){constr=this.#o[0];const{length:s}=r;if(s+t===A){e.set(this.#o.shift(),t);break}elseif(s+t>A){e.set(r.subarray(0,A-t),t);this.#o[0]=r.subarray(A-t);break}else{e.set(this.#o.shift(),t);t+=r.length}}this.#i-=A;returne}parseCloseBody(A,e){lett;if(e.length>=2){t=e.readUInt16BE(0)}if(A){if(!C(t)){returnnull}return{code:t}}letr=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}if(t!==undefined&&!C(t)){returnnull}try{r=newTextDecoder("utf-8",{fatal:true}).decode(r)}catch{returnnull}return{code:t,reason:r}}getclosingIn