import{nasv}from"./@babel.80d29b7b.js";import{rasM}from"./engine.io-parser.4305f785.js";import{rasJ}from"./@socket.io.573b606e.js";import{rasj}from"./debug.b392f131.js";varI={},k={},W={},w={},L={},q={},R={},T={},Q;functionO(){if(Q)returnT;Q=1,Object.defineProperty(T,"__esModule",{value:!0}),T.defaultBinaryType=T.globalThisShim=T.nextTick=void0,T.createCookieJar=n,T.nextTick=(()=>typeofPromise=="function"&&typeofPromise.resolve=="function"?d=>Promise.resolve().then(d):(d,l)=>l(d,0))(),T.globalThisShim=(()=>typeofself<"u"?self:typeofwindow<"u"?window:Function("return this")())(),T.defaultBinaryType="arraybuffer";functionn(){}returnT}varY;functionx(){if(Y)returnR;Y=1,Object.defineProperty(R,"__esModule",{value:!0}),R.pick=y,R.installTimerFunctions=p,R.byteLength=g,R.randomString=a;constn=O();functiony(i,...s){returns.reduce((h,c)=>(i.hasOwnProperty(c)&&(h[c]=i[c]),h),{})}constd=n.globalThisShim.setTimeout,l=n.globalThisShim.clearTimeout;functionp(i,s){s.useNativeTimers?(i.setTimeoutFn=d.bind(n.globalThisShim),i.clearTimeoutFn=l.bind(n.globalThisShim)):(i.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),i.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))}consto=1.33;functiong(i){returntypeofi=="string"?u(i):Math.ceil((i.byteLength||i.size)*o)}functionu(i){lets=0,h=0;for(letc=0,m=i.length;c<m;c++)s=i.charCodeAt(c),s<128?h+=1:s<2048?h+=2:s<55296||s>=57344?h+=3:(c++,h+=4);returnh}functiona(){returnDate.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}returnR}varB={},Z;functionpe(){if(Z)returnB;Z=1,Object.defineProperty(B,"__esModule",{value:!0}),B.encode=n,B.decode=y;functionn(d){letl="";for(letpind)d.hasOwnProperty(p)&&(l.length&&(l+="&"),l+=encodeURIComponent(p)+"="+encodeURIComponent(d[p]));returnl}functiony(d){letl={},p=d.split("&");for(leto=0,g=p.length;o<g;o++){letu=p[o].split("=");l[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}returnl}returnB}varee;functionN(){if(ee)returnq;ee=1;varn=v&&v.__importDefault||function(i){returni&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0}),q.Transport=q.TransportError=void0;consty=M(),d=J,l=x(),p=pe(),g=(0,n(j()).default)("engine.io-client:transport");classuextendsError{constructor(s,h,c){super(s),this.description=h,this.context=c,this.type="TransportError"}}q.TransportError=u;classaextendsd.Emitter{constructor(s){super(),this.writable=!1,(0,l.installTimerFunctions)(this,s),this.opts=s,this.query=s.query,this.socket=s.socket,this.supportsBinary=!s.forceBase64}onError(s,h,c){returnsuper.emitReserved("error",newu(s,h,c)),this}open(){returnthis.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(s){this.readyState==="open"?this.write(s):g("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(s){consth=(0,y.decodePacket)(s,this.socket.binaryType);this.onPacket(h)}onPacket(s){super.emitReserved("packet",s)}onClose(s){this.readyState="closed",super.emitReserved("close",s)}pause(s){}createUri(s,h={}){returns+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_hostname(){consts=this.opts.hostname;returns.indexOf(":")===-1?s:"["+s+"]"}_port(){returnthis.opts.port&&(this.opts.secure&&Number(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(s){consth=(0,p.encode)(s);returnh.length?"?"+h:""}}returnq.Transport=a,q}varte;functionde(){if(te)returnL;te=1;varn=v&&v.__importDefault||function(u){returnu&&u.__esModule?u:{default:u}};Object.defineProperty(L,"__esModule",{value:!0}),L.Polling=void0;consty=N(),d=x(),l=M(),o=(0,n(j()).default)("engine.io-client:polling");classgextendsy.Transport{constructor(){super(...arguments),this._polling=!1}getname(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";consti=()=>{o("paused"),this.readyState="paused",a()};if(this._polling