testempaquetado 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,4 +48,4 @@ Error generating stack: `+w.message+`
|
|
|
48
48
|
max-sm:rounded-[8px] \r
|
|
49
49
|
max-[1370px]:animate-slide-up-xl\r
|
|
50
50
|
`,children:a.jsxs("div",{className:"w-full h-full rounded-[18px] bg-white shadow-[1px_3px_20px_rgba(0,0,0,0.2)] flex flex-col overflow-hidden",children:[a.jsx("div",{className:"w-full h-[138px] max-w-[416px] max-h-[138px] flex-shrink-0 bg-azulChatbot box-border rounded-t-[18px]",children:M}),a.jsx("div",{className:"w-full h-[422px] max-w-[416px] max-h-[422px] bg-white overflow-y-auto box-border",children:D}),a.jsx("div",{className:"w-full h-[60px] max-w-[416px] max-h-[60px] flex-shrink-0 bg-grayFooter box-border",children:N})]})})}const _s=({onClick:M=()=>{}})=>{const{companyName:D,floatImg:N}=_n(),e=D.toLowerCase()==="geni",w=!!N?N:e?BA:SA;return a.jsx("button",{className:"fixed bottom-[86px] right-16 w-[50px] h-[50px] bg-azulChatbot rounded-full flex items-center justify-center z-[9998] shadow-md transition-opacity duration-300 ease-in-out select-none max-sm:bottom-[74px] max-sm:right-4",onClick:M,children:a.jsx("img",{src:w,alt:"Abrir chat",className:"w-[30px] h-[24px]"})})},bM=Object.create(null);bM.open="0",bM.close="1",bM.ping="2",bM.pong="3",bM.message="4",bM.upgrade="5",bM.noop="6";const kt=Object.create(null);Object.keys(bM).forEach(M=>{kt[bM[M]]=M});const Pn={type:"error",data:"parser error"},RA=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ZA=typeof ArrayBuffer=="function",JA=M=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(M):M&&M.buffer instanceof ArrayBuffer,$n=({type:M,data:D},N,e)=>RA&&D instanceof Blob?N?e(D):VA(D,e):ZA&&(D instanceof ArrayBuffer||JA(D))?N?e(D):VA(new Blob([D]),e):e(bM[M]+(D||"")),VA=(M,D)=>{const N=new FileReader;return N.onload=function(){const e=N.result.split(",")[1];D("b"+(e||""))},N.readAsDataURL(M)};function XA(M){return M instanceof Uint8Array?M:M instanceof ArrayBuffer?new Uint8Array(M):new Uint8Array(M.buffer,M.byteOffset,M.byteLength)}let qn;function Ps(M,D){if(RA&&M.data instanceof Blob)return M.data.arrayBuffer().then(XA).then(D);if(ZA&&(M.data instanceof ArrayBuffer||JA(M.data)))return D(XA(M.data));$n(M,!1,N=>{qn||(qn=new TextEncoder),D(qn.encode(N))})}const bA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",we=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let M=0;M<bA.length;M++)we[bA.charCodeAt(M)]=M;const $s=M=>{let D=M.length*.75,N=M.length,e,t=0,w,n,T,z;M[M.length-1]==="="&&(D--,M[M.length-2]==="="&&D--);const A=new ArrayBuffer(D),i=new Uint8Array(A);for(e=0;e<N;e+=4)w=we[M.charCodeAt(e)],n=we[M.charCodeAt(e+1)],T=we[M.charCodeAt(e+2)],z=we[M.charCodeAt(e+3)],i[t++]=w<<2|n>>4,i[t++]=(n&15)<<4|T>>2,i[t++]=(T&3)<<6|z&63;return A},qs=typeof ArrayBuffer=="function",MT=(M,D)=>{if(typeof M!="string")return{type:"message",data:WA(M,D)};const N=M.charAt(0);return N==="b"?{type:"message",data:M0(M.substring(1),D)}:kt[N]?M.length>1?{type:kt[N],data:M.substring(1)}:{type:kt[N]}:Pn},M0=(M,D)=>{if(qs){const N=$s(M);return WA(N,D)}else return{base64:!0,data:M}},WA=(M,D)=>{switch(D){case"blob":return M instanceof Blob?M:new Blob([M]);case"arraybuffer":default:return M instanceof ArrayBuffer?M:M.buffer}},KA=String.fromCharCode(30),D0=(M,D)=>{const N=M.length,e=new Array(N);let t=0;M.forEach((w,n)=>{$n(w,!1,T=>{e[n]=T,++t===N&&D(e.join(KA))})})},N0=(M,D)=>{const N=M.split(KA),e=[];for(let t=0;t<N.length;t++){const w=MT(N[t],D);if(e.push(w),w.type==="error")break}return e};function e0(){return new TransformStream({transform(M,D){Ps(M,N=>{const e=N.length;let t;if(e<126)t=new Uint8Array(1),new DataView(t.buffer).setUint8(0,e);else if(e<65536){t=new Uint8Array(3);const w=new DataView(t.buffer);w.setUint8(0,126),w.setUint16(1,e)}else{t=new Uint8Array(9);const w=new DataView(t.buffer);w.setUint8(0,127),w.setBigUint64(1,BigInt(e))}M.data&&typeof M.data!="string"&&(t[0]|=128),D.enqueue(t),D.enqueue(N)})}})}let DT;function Et(M){return M.reduce((D,N)=>D+N.length,0)}function pt(M,D){if(M[0].length===D)return M.shift();const N=new Uint8Array(D);let e=0;for(let t=0;t<D;t++)N[t]=M[0][e++],e===M[0].length&&(M.shift(),e=0);return M.length&&e<M[0].length&&(M[0]=M[0].slice(e)),N}function t0(M,D){DT||(DT=new TextDecoder);const N=[];let e=0,t=-1,w=!1;return new TransformStream({transform(n,T){for(N.push(n);;){if(e===0){if(Et(N)<1)break;const z=pt(N,1);w=(z[0]&128)===128,t=z[0]&127,t<126?e=3:t===126?e=1:e=2}else if(e===1){if(Et(N)<2)break;const z=pt(N,2);t=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),e=3}else if(e===2){if(Et(N)<8)break;const z=pt(N,8),A=new DataView(z.buffer,z.byteOffset,z.length),i=A.getUint32(0);if(i>Math.pow(2,53-32)-1){T.enqueue(Pn);break}t=i*Math.pow(2,32)+A.getUint32(4),e=3}else{if(Et(N)<t)break;const z=pt(N,t);T.enqueue(MT(w?z:DT.decode(z),D)),e=0}if(t===0||t>M){T.enqueue(Pn);break}}}})}const vA=4;function H(M){if(M)return w0(M)}function w0(M){for(var D in H.prototype)M[D]=H.prototype[D];return M}H.prototype.on=H.prototype.addEventListener=function(M,D){return this._callbacks=this._callbacks||{},(this._callbacks["$"+M]=this._callbacks["$"+M]||[]).push(D),this},H.prototype.once=function(M,D){function N(){this.off(M,N),D.apply(this,arguments)}return N.fn=D,this.on(M,N),this},H.prototype.off=H.prototype.removeListener=H.prototype.removeAllListeners=H.prototype.removeEventListener=function(M,D){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var N=this._callbacks["$"+M];if(!N)return this;if(arguments.length==1)return delete this._callbacks["$"+M],this;for(var e,t=0;t<N.length;t++)if(e=N[t],e===D||e.fn===D){N.splice(t,1);break}return N.length===0&&delete this._callbacks["$"+M],this},H.prototype.emit=function(M){this._callbacks=this._callbacks||{};for(var D=new Array(arguments.length-1),N=this._callbacks["$"+M],e=1;e<arguments.length;e++)D[e-1]=arguments[e];if(N){N=N.slice(0);for(var e=0,t=N.length;e<t;++e)N[e].apply(this,D)}return this},H.prototype.emitReserved=H.prototype.emit,H.prototype.listeners=function(M){return this._callbacks=this._callbacks||{},this._callbacks["$"+M]||[]},H.prototype.hasListeners=function(M){return!!this.listeners(M).length};const ft=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?D=>Promise.resolve().then(D):(D,N)=>N(D,0))(),fM=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),n0="arraybuffer";function Dc(){}function GA(M,...D){return D.reduce((N,e)=>(M.hasOwnProperty(e)&&(N[e]=M[e]),N),{})}const T0=fM.setTimeout,z0=fM.clearTimeout;function It(M,D){D.useNativeTimers?(M.setTimeoutFn=T0.bind(fM),M.clearTimeoutFn=z0.bind(fM)):(M.setTimeoutFn=fM.setTimeout.bind(fM),M.clearTimeoutFn=fM.clearTimeout.bind(fM))}const r0=1.33;function A0(M){return typeof M=="string"?o0(M):Math.ceil((M.byteLength||M.size)*r0)}function o0(M){let D=0,N=0;for(let e=0,t=M.length;e<t;e++)D=M.charCodeAt(e),D<128?N+=1:D<2048?N+=2:D<55296||D>=57344?N+=3:(e++,N+=4);return N}function HA(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function l0(M){let D="";for(let N in M)M.hasOwnProperty(N)&&(D.length&&(D+="&"),D+=encodeURIComponent(N)+"="+encodeURIComponent(M[N]));return D}function s0(M){let D={},N=M.split("&");for(let e=0,t=N.length;e<t;e++){let w=N[e].split("=");D[decodeURIComponent(w[0])]=decodeURIComponent(w[1])}return D}class c0 extends Error{constructor(D,N,e){super(D),this.description=N,this.context=e,this.type="TransportError"}}class NT extends H{constructor(D){super(),this.writable=!1,It(this,D),this.opts=D,this.query=D.query,this.socket=D.socket,this.supportsBinary=!D.forceBase64}onError(D,N,e){return super.emitReserved("error",new c0(D,N,e)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(D){this.readyState==="open"&&this.write(D)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(D){const N=MT(D,this.socket.binaryType);this.onPacket(N)}onPacket(D){super.emitReserved("packet",D)}onClose(D){this.readyState="closed",super.emitReserved("close",D)}pause(D){}createUri(D,N={}){return D+"://"+this._hostname()+this._port()+this.opts.path+this._query(N)}_hostname(){const D=this.opts.hostname;return D.indexOf(":")===-1?D:"["+D+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(D){const N=l0(D);return N.length?"?"+N:""}}class i0 extends NT{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(D){this.readyState="pausing";const N=()=>{this.readyState="paused",D()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||N()})),this.writable||(e++,this.once("drain",function(){--e||N()}))}else N()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(D){const N=e=>{if(this.readyState==="opening"&&e.type==="open"&&this.onOpen(),e.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};N0(D,this.socket.binaryType).forEach(N),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const D=()=>{this.write([{type:"close"}])};this.readyState==="open"?D():this.once("open",D)}write(D){this.writable=!1,D0(D,N=>{this.doWrite(N,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const D=this.opts.secure?"https":"http",N=this.query||{};return this.opts.timestampRequests!==!1&&(N[this.opts.timestampParam]=HA()),!this.supportsBinary&&!N.sid&&(N.b64=1),this.createUri(D,N)}}let _A=!1;try{_A=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j0=_A;function u0(){}class Q0 extends i0{constructor(D){if(super(D),typeof location<"u"){const N=location.protocol==="https:";let e=location.port;e||(e=N?"443":"80"),this.xd=typeof location<"u"&&D.hostname!==location.hostname||e!==D.port}}doWrite(D,N){const e=this.request({method:"POST",data:D});e.on("success",N),e.on("error",(t,w)=>{this.onError("xhr post error",t,w)})}doPoll(){const D=this.request();D.on("data",this.onData.bind(this)),D.on("error",(N,e)=>{this.onError("xhr poll error",N,e)}),this.pollXhr=D}}class WM extends H{constructor(D,N,e){super(),this.createRequest=D,It(this,e),this._opts=e,this._method=e.method||"GET",this._uri=N,this._data=e.data!==void 0?e.data:null,this._create()}_create(){var D;const N=GA(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");N.xdomain=!!this._opts.xd;const e=this._xhr=this.createRequest(N);try{e.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(let t in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&e.setRequestHeader(t,this._opts.extraHeaders[t])}}catch{}if(this._method==="POST")try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{e.setRequestHeader("Accept","*/*")}catch{}(D=this._opts.cookieJar)===null||D===void 0||D.addCookies(e),"withCredentials"in e&&(e.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(e.timeout=this._opts.requestTimeout),e.onreadystatechange=()=>{var t;e.readyState===3&&((t=this._opts.cookieJar)===null||t===void 0||t.parseCookies(e.getResponseHeader("set-cookie"))),e.readyState===4&&(e.status===200||e.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof e.status=="number"?e.status:0)},0))},e.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}typeof document<"u"&&(this._index=WM.requestsCount++,WM.requests[this._index]=this)}_onError(D){this.emitReserved("error",D,this._xhr),this._cleanup(!0)}_cleanup(D){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=u0,D)try{this._xhr.abort()}catch{}typeof document<"u"&&delete WM.requests[this._index],this._xhr=null}}_onLoad(){const D=this._xhr.responseText;D!==null&&(this.emitReserved("data",D),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(WM.requestsCount=0,WM.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",PA);else if(typeof addEventListener=="function"){const M="onpagehide"in fM?"pagehide":"unload";addEventListener(M,PA,!1)}}function PA(){for(let M in WM.requests)WM.requests.hasOwnProperty(M)&&WM.requests[M].abort()}const O0=function(){const M=$A({xdomain:!1});return M&&M.responseType!==null}();class a0 extends Q0{constructor(D){super(D);const N=D&&D.forceBase64;this.supportsBinary=O0&&!N}request(D={}){return Object.assign(D,{xd:this.xd},this.opts),new WM($A,this.uri(),D)}}function $A(M){const D=M.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!D||j0))return new XMLHttpRequest}catch{}if(!D)try{return new fM[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const qA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class U0 extends NT{get name(){return"websocket"}doOpen(){const D=this.uri(),N=this.opts.protocols,e=qA?{}:GA(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(e.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(D,N,e)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=D=>this.onClose({description:"websocket connection closed",context:D}),this.ws.onmessage=D=>this.onData(D.data),this.ws.onerror=D=>this.onError("websocket error",D)}write(D){this.writable=!1;for(let N=0;N<D.length;N++){const e=D[N],t=N===D.length-1;$n(e,this.supportsBinary,w=>{try{this.doWrite(e,w)}catch{}t&&ft(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const D=this.opts.secure?"wss":"ws",N=this.query||{};return this.opts.timestampRequests&&(N[this.opts.timestampParam]=HA()),this.supportsBinary||(N.b64=1),this.createUri(D,N)}}const eT=fM.WebSocket||fM.MozWebSocket;class y0 extends U0{createSocket(D,N,e){return qA?new eT(D,N,e):N?new eT(D,N):new eT(D)}doWrite(D,N){this.ws.send(N)}}class x0 extends NT{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(D){return this.emitReserved("error",D)}this._transport.closed.then(()=>{this.onClose()}).catch(D=>{this.onError("webtransport error",D)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(D=>{const N=t0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),e=D.readable.pipeThrough(N).getReader(),t=e0();t.readable.pipeTo(D.writable),this._writer=t.writable.getWriter();const w=()=>{e.read().then(({done:T,value:z})=>{T||(this.onPacket(z),w())}).catch(T=>{})};w();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(D){this.writable=!1;for(let N=0;N<D.length;N++){const e=D[N],t=N===D.length-1;this._writer.write(e).then(()=>{t&&ft(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var D;(D=this._transport)===null||D===void 0||D.close()}}const g0={websocket:y0,webtransport:x0,polling:a0},d0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,k0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tT(M){if(M.length>8e3)throw"URI too long";const D=M,N=M.indexOf("["),e=M.indexOf("]");N!=-1&&e!=-1&&(M=M.substring(0,N)+M.substring(N,e).replace(/:/g,";")+M.substring(e,M.length));let t=d0.exec(M||""),w={},n=14;for(;n--;)w[k0[n]]=t[n]||"";return N!=-1&&e!=-1&&(w.source=D,w.host=w.host.substring(1,w.host.length-1).replace(/;/g,":"),w.authority=w.authority.replace("[","").replace("]","").replace(/;/g,":"),w.ipv6uri=!0),w.pathNames=E0(w,w.path),w.queryKey=p0(w,w.query),w}function E0(M,D){const N=/\/{2,9}/g,e=D.replace(N,"/").split("/");return(D.slice(0,1)=="/"||D.length===0)&&e.splice(0,1),D.slice(-1)=="/"&&e.splice(e.length-1,1),e}function p0(M,D){const N={};return D.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,w){t&&(N[t]=w)}),N}const wT=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ct=[];wT&&addEventListener("offline",()=>{Ct.forEach(M=>M())},!1);class yD extends H{constructor(D,N){if(super(),this.binaryType=n0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,D&&typeof D=="object"&&(N=D,D=null),D){const e=tT(D);N.hostname=e.host,N.secure=e.protocol==="https"||e.protocol==="wss",N.port=e.port,e.query&&(N.query=e.query)}else N.host&&(N.hostname=tT(N.host).host);It(this,N),this.secure=N.secure!=null?N.secure:typeof location<"u"&&location.protocol==="https:",N.hostname&&!N.port&&(N.port=this.secure?"443":"80"),this.hostname=N.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=N.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},N.transports.forEach(e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},N),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=s0(this.opts.query)),wT&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ct.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(D){const N=Object.assign({},this.opts.query);N.EIO=vA,N.transport=D,this.id&&(N.sid=this.id);const e=Object.assign({},this.opts,{query:N,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[D]);return new this._transportsByName[D](e)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const D=this.opts.rememberUpgrade&&yD.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const N=this.createTransport(D);N.open(),this.setTransport(N)}setTransport(D){this.transport&&this.transport.removeAllListeners(),this.transport=D,D.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",N=>this._onClose("transport close",N))}onOpen(){this.readyState="open",yD.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(D){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",D),this.emitReserved("heartbeat"),D.type){case"open":this.onHandshake(JSON.parse(D.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const N=new Error("server error");N.code=D.data,this._onError(N);break;case"message":this.emitReserved("data",D.data),this.emitReserved("message",D.data);break}}onHandshake(D){this.emitReserved("handshake",D),this.id=D.sid,this.transport.query.sid=D.sid,this._pingInterval=D.pingInterval,this._pingTimeout=D.pingTimeout,this._maxPayload=D.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const D=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+D,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},D),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const D=this._getWritablePackets();this.transport.send(D),this._prevBufferLen=D.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let N=1;for(let e=0;e<this.writeBuffer.length;e++){const t=this.writeBuffer[e].data;if(t&&(N+=A0(t)),e>0&&N>this._maxPayload)return this.writeBuffer.slice(0,e);N+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const D=Date.now()>this._pingTimeoutTime;return D&&(this._pingTimeoutTime=0,ft(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),D}write(D,N,e){return this._sendPacket("message",D,N,e),this}send(D,N,e){return this._sendPacket("message",D,N,e),this}_sendPacket(D,N,e,t){if(typeof N=="function"&&(t=N,N=void 0),typeof e=="function"&&(t=e,e=null),this.readyState==="closing"||this.readyState==="closed")return;e=e||{},e.compress=e.compress!==!1;const w={type:D,data:N,options:e};this.emitReserved("packetCreate",w),this.writeBuffer.push(w),t&&this.once("flush",t),this.flush()}close(){const D=()=>{this._onClose("forced close"),this.transport.close()},N=()=>{this.off("upgrade",N),this.off("upgradeError",N),D()},e=()=>{this.once("upgrade",N),this.once("upgradeError",N)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?e():D()}):this.upgrading?e():D()),this}_onError(D){if(yD.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",D),this._onClose("transport error",D)}_onClose(D,N){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),wT&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=Ct.indexOf(this._offlineEventListener);e!==-1&&Ct.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",D,N),this.writeBuffer=[],this._prevBufferLen=0}}}yD.protocol=vA;class f0 extends yD{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let D=0;D<this._upgrades.length;D++)this._probe(this._upgrades[D])}_probe(D){let N=this.createTransport(D),e=!1;yD.priorWebsocketSuccess=!1;const t=()=>{e||(N.send([{type:"ping",data:"probe"}]),N.once("packet",s=>{if(!e)if(s.type==="pong"&&s.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",N),!N)return;yD.priorWebsocketSuccess=N.name==="websocket",this.transport.pause(()=>{e||this.readyState!=="closed"&&(i(),this.setTransport(N),N.send([{type:"upgrade"}]),this.emitReserved("upgrade",N),N=null,this.upgrading=!1,this.flush())})}else{const c=new Error("probe error");c.transport=N.name,this.emitReserved("upgradeError",c)}}))};function w(){e||(e=!0,i(),N.close(),N=null)}const n=s=>{const c=new Error("probe error: "+s);c.transport=N.name,w(),this.emitReserved("upgradeError",c)};function T(){n("transport closed")}function z(){n("socket closed")}function A(s){N&&s.name!==N.name&&w()}const i=()=>{N.removeListener("open",t),N.removeListener("error",n),N.removeListener("close",T),this.off("close",z),this.off("upgrading",A)};N.once("open",t),N.once("error",n),N.once("close",T),this.once("close",z),this.once("upgrading",A),this._upgrades.indexOf("webtransport")!==-1&&D!=="webtransport"?this.setTimeoutFn(()=>{e||N.open()},200):N.open()}onHandshake(D){this._upgrades=this._filterUpgrades(D.upgrades),super.onHandshake(D)}_filterUpgrades(D){const N=[];for(let e=0;e<D.length;e++)~this.transports.indexOf(D[e])&&N.push(D[e]);return N}}let I0=class extends f0{constructor(D,N={}){const e=typeof D=="object"?D:N;(!e.transports||e.transports&&typeof e.transports[0]=="string")&&(e.transports=(e.transports||["polling","websocket","webtransport"]).map(t=>g0[t]).filter(t=>!!t)),super(D,e)}};function C0(M,D="",N){let e=M;N=N||typeof location<"u"&&location,M==null&&(M=N.protocol+"//"+N.host),typeof M=="string"&&(M.charAt(0)==="/"&&(M.charAt(1)==="/"?M=N.protocol+M:M=N.host+M),/^(https?|wss?):\/\//.test(M)||(typeof N<"u"?M=N.protocol+"//"+M:M="https://"+M),e=tT(M)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";const w=e.host.indexOf(":")!==-1?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+w+":"+e.port+D,e.href=e.protocol+"://"+w+(N&&N.port===e.port?"":":"+e.port),e}const F0=typeof ArrayBuffer=="function",m0=M=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(M):M.buffer instanceof ArrayBuffer,Mo=Object.prototype.toString,L0=typeof Blob=="function"||typeof Blob<"u"&&Mo.call(Blob)==="[object BlobConstructor]",Y0=typeof File=="function"||typeof File<"u"&&Mo.call(File)==="[object FileConstructor]";function nT(M){return F0&&(M instanceof ArrayBuffer||m0(M))||L0&&M instanceof Blob||Y0&&M instanceof File}function Ft(M,D){if(!M||typeof M!="object")return!1;if(Array.isArray(M)){for(let N=0,e=M.length;N<e;N++)if(Ft(M[N]))return!0;return!1}if(nT(M))return!0;if(M.toJSON&&typeof M.toJSON=="function"&&arguments.length===1)return Ft(M.toJSON(),!0);for(const N in M)if(Object.prototype.hasOwnProperty.call(M,N)&&Ft(M[N]))return!0;return!1}function h0(M){const D=[],N=M.data,e=M;return e.data=TT(N,D),e.attachments=D.length,{packet:e,buffers:D}}function TT(M,D){if(!M)return M;if(nT(M)){const N={_placeholder:!0,num:D.length};return D.push(M),N}else if(Array.isArray(M)){const N=new Array(M.length);for(let e=0;e<M.length;e++)N[e]=TT(M[e],D);return N}else if(typeof M=="object"&&!(M instanceof Date)){const N={};for(const e in M)Object.prototype.hasOwnProperty.call(M,e)&&(N[e]=TT(M[e],D));return N}return M}function S0(M,D){return M.data=zT(M.data,D),delete M.attachments,M}function zT(M,D){if(!M)return M;if(M&&M._placeholder===!0){if(typeof M.num=="number"&&M.num>=0&&M.num<D.length)return D[M.num];throw new Error("illegal attachments")}else if(Array.isArray(M))for(let N=0;N<M.length;N++)M[N]=zT(M[N],D);else if(typeof M=="object")for(const N in M)Object.prototype.hasOwnProperty.call(M,N)&&(M[N]=zT(M[N],D));return M}const B0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],R0=5;var C;(function(M){M[M.CONNECT=0]="CONNECT",M[M.DISCONNECT=1]="DISCONNECT",M[M.EVENT=2]="EVENT",M[M.ACK=3]="ACK",M[M.CONNECT_ERROR=4]="CONNECT_ERROR",M[M.BINARY_EVENT=5]="BINARY_EVENT",M[M.BINARY_ACK=6]="BINARY_ACK"})(C||(C={}));class Z0{constructor(D){this.replacer=D}encode(D){return(D.type===C.EVENT||D.type===C.ACK)&&Ft(D)?this.encodeAsBinary({type:D.type===C.EVENT?C.BINARY_EVENT:C.BINARY_ACK,nsp:D.nsp,data:D.data,id:D.id}):[this.encodeAsString(D)]}encodeAsString(D){let N=""+D.type;return(D.type===C.BINARY_EVENT||D.type===C.BINARY_ACK)&&(N+=D.attachments+"-"),D.nsp&&D.nsp!=="/"&&(N+=D.nsp+","),D.id!=null&&(N+=D.id),D.data!=null&&(N+=JSON.stringify(D.data,this.replacer)),N}encodeAsBinary(D){const N=h0(D),e=this.encodeAsString(N.packet),t=N.buffers;return t.unshift(e),t}}function Do(M){return Object.prototype.toString.call(M)==="[object Object]"}class rT extends H{constructor(D){super(),this.reviver=D}add(D){let N;if(typeof D=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");N=this.decodeString(D);const e=N.type===C.BINARY_EVENT;e||N.type===C.BINARY_ACK?(N.type=e?C.EVENT:C.ACK,this.reconstructor=new J0(N),N.attachments===0&&super.emitReserved("decoded",N)):super.emitReserved("decoded",N)}else if(nT(D)||D.base64)if(this.reconstructor)N=this.reconstructor.takeBinaryData(D),N&&(this.reconstructor=null,super.emitReserved("decoded",N));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+D)}decodeString(D){let N=0;const e={type:Number(D.charAt(0))};if(C[e.type]===void 0)throw new Error("unknown packet type "+e.type);if(e.type===C.BINARY_EVENT||e.type===C.BINARY_ACK){const w=N+1;for(;D.charAt(++N)!=="-"&&N!=D.length;);const n=D.substring(w,N);if(n!=Number(n)||D.charAt(N)!=="-")throw new Error("Illegal attachments");e.attachments=Number(n)}if(D.charAt(N+1)==="/"){const w=N+1;for(;++N&&!(D.charAt(N)===","||N===D.length););e.nsp=D.substring(w,N)}else e.nsp="/";const t=D.charAt(N+1);if(t!==""&&Number(t)==t){const w=N+1;for(;++N;){const n=D.charAt(N);if(n==null||Number(n)!=n){--N;break}if(N===D.length)break}e.id=Number(D.substring(w,N+1))}if(D.charAt(++N)){const w=this.tryParse(D.substr(N));if(rT.isPayloadValid(e.type,w))e.data=w;else throw new Error("invalid payload")}return e}tryParse(D){try{return JSON.parse(D,this.reviver)}catch{return!1}}static isPayloadValid(D,N){switch(D){case C.CONNECT:return Do(N);case C.DISCONNECT:return N===void 0;case C.CONNECT_ERROR:return typeof N=="string"||Do(N);case C.EVENT:case C.BINARY_EVENT:return Array.isArray(N)&&(typeof N[0]=="number"||typeof N[0]=="string"&&B0.indexOf(N[0])===-1);case C.ACK:case C.BINARY_ACK:return Array.isArray(N)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class J0{constructor(D){this.packet=D,this.buffers=[],this.reconPack=D}takeBinaryData(D){if(this.buffers.push(D),this.buffers.length===this.reconPack.attachments){const N=S0(this.reconPack,this.buffers);return this.finishedReconstruction(),N}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const V0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:rT,Encoder:Z0,get PacketType(){return C},protocol:R0},Symbol.toStringTag,{value:"Module"}));function SM(M,D,N){return M.on(D,N),function(){M.off(D,N)}}const X0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class No extends H{constructor(D,N,e){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=D,this.nsp=N,e&&e.auth&&(this.auth=e.auth),this._opts=Object.assign({},e),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const D=this.io;this.subs=[SM(D,"open",this.onopen.bind(this)),SM(D,"packet",this.onpacket.bind(this)),SM(D,"error",this.onerror.bind(this)),SM(D,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...D){return D.unshift("message"),this.emit.apply(this,D),this}emit(D,...N){var e,t,w;if(X0.hasOwnProperty(D))throw new Error('"'+D.toString()+'" is a reserved event name');if(N.unshift(D),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(N),this;const n={type:C.EVENT,data:N};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof N[N.length-1]=="function"){const i=this.ids++,s=N.pop();this._registerAckCallback(i,s),n.id=i}const T=(t=(e=this.io.engine)===null||e===void 0?void 0:e.transport)===null||t===void 0?void 0:t.writable,z=this.connected&&!(!((w=this.io.engine)===null||w===void 0)&&w._hasPingExpired());return this.flags.volatile&&!T||(z?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(D,N){var e;const t=(e=this.flags.timeout)!==null&&e!==void 0?e:this._opts.ackTimeout;if(t===void 0){this.acks[D]=N;return}const w=this.io.setTimeoutFn(()=>{delete this.acks[D];for(let T=0;T<this.sendBuffer.length;T++)this.sendBuffer[T].id===D&&this.sendBuffer.splice(T,1);N.call(this,new Error("operation has timed out"))},t),n=(...T)=>{this.io.clearTimeoutFn(w),N.apply(this,T)};n.withError=!0,this.acks[D]=n}emitWithAck(D,...N){return new Promise((e,t)=>{const w=(n,T)=>n?t(n):e(T);w.withError=!0,N.push(w),this.emit(D,...N)})}_addToQueue(D){let N;typeof D[D.length-1]=="function"&&(N=D.pop());const e={id:this._queueSeq++,tryCount:0,pending:!1,args:D,flags:Object.assign({fromQueue:!0},this.flags)};D.push((t,...w)=>e!==this._queue[0]?void 0:(t!==null?e.tryCount>this._opts.retries&&(this._queue.shift(),N&&N(t)):(this._queue.shift(),N&&N(null,...w)),e.pending=!1,this._drainQueue())),this._queue.push(e),this._drainQueue()}_drainQueue(D=!1){if(!this.connected||this._queue.length===0)return;const N=this._queue[0];N.pending&&!D||(N.pending=!0,N.tryCount++,this.flags=N.flags,this.emit.apply(this,N.args))}packet(D){D.nsp=this.nsp,this.io._packet(D)}onopen(){typeof this.auth=="function"?this.auth(D=>{this._sendConnectPacket(D)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(D){this.packet({type:C.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},D):D})}onerror(D){this.connected||this.emitReserved("connect_error",D)}onclose(D,N){this.connected=!1,delete this.id,this.emitReserved("disconnect",D,N),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(D=>{if(!this.sendBuffer.some(e=>String(e.id)===D)){const e=this.acks[D];delete this.acks[D],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(D){if(D.nsp===this.nsp)switch(D.type){case C.CONNECT:D.data&&D.data.sid?this.onconnect(D.data.sid,D.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case C.EVENT:case C.BINARY_EVENT:this.onevent(D);break;case C.ACK:case C.BINARY_ACK:this.onack(D);break;case C.DISCONNECT:this.ondisconnect();break;case C.CONNECT_ERROR:this.destroy();const e=new Error(D.data.message);e.data=D.data.data,this.emitReserved("connect_error",e);break}}onevent(D){const N=D.data||[];D.id!=null&&N.push(this.ack(D.id)),this.connected?this.emitEvent(N):this.receiveBuffer.push(Object.freeze(N))}emitEvent(D){if(this._anyListeners&&this._anyListeners.length){const N=this._anyListeners.slice();for(const e of N)e.apply(this,D)}super.emit.apply(this,D),this._pid&&D.length&&typeof D[D.length-1]=="string"&&(this._lastOffset=D[D.length-1])}ack(D){const N=this;let e=!1;return function(...t){e||(e=!0,N.packet({type:C.ACK,id:D,data:t}))}}onack(D){const N=this.acks[D.id];typeof N=="function"&&(delete this.acks[D.id],N.withError&&D.data.unshift(null),N.apply(this,D.data))}onconnect(D,N){this.id=D,this.recovered=N&&this._pid===N,this._pid=N,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(D=>this.emitEvent(D)),this.receiveBuffer=[],this.sendBuffer.forEach(D=>{this.notifyOutgoingListeners(D),this.packet(D)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(D=>D()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:C.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(D){return this.flags.compress=D,this}get volatile(){return this.flags.volatile=!0,this}timeout(D){return this.flags.timeout=D,this}onAny(D){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(D),this}prependAny(D){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(D),this}offAny(D){if(!this._anyListeners)return this;if(D){const N=this._anyListeners;for(let e=0;e<N.length;e++)if(D===N[e])return N.splice(e,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(D){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(D),this}prependAnyOutgoing(D){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(D),this}offAnyOutgoing(D){if(!this._anyOutgoingListeners)return this;if(D){const N=this._anyOutgoingListeners;for(let e=0;e<N.length;e++)if(D===N[e])return N.splice(e,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(D){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const N=this._anyOutgoingListeners.slice();for(const e of N)e.apply(this,D.data)}}}function cN(M){M=M||{},this.ms=M.min||100,this.max=M.max||1e4,this.factor=M.factor||2,this.jitter=M.jitter>0&&M.jitter<=1?M.jitter:0,this.attempts=0}cN.prototype.duration=function(){var M=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var D=Math.random(),N=Math.floor(D*this.jitter*M);M=Math.floor(D*10)&1?M+N:M-N}return Math.min(M,this.max)|0},cN.prototype.reset=function(){this.attempts=0},cN.prototype.setMin=function(M){this.ms=M},cN.prototype.setMax=function(M){this.max=M},cN.prototype.setJitter=function(M){this.jitter=M};class AT extends H{constructor(D,N){var e;super(),this.nsps={},this.subs=[],D&&typeof D=="object"&&(N=D,D=void 0),N=N||{},N.path=N.path||"/socket.io",this.opts=N,It(this,N),this.reconnection(N.reconnection!==!1),this.reconnectionAttempts(N.reconnectionAttempts||1/0),this.reconnectionDelay(N.reconnectionDelay||1e3),this.reconnectionDelayMax(N.reconnectionDelayMax||5e3),this.randomizationFactor((e=N.randomizationFactor)!==null&&e!==void 0?e:.5),this.backoff=new cN({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(N.timeout==null?2e4:N.timeout),this._readyState="closed",this.uri=D;const t=N.parser||V0;this.encoder=new t.Encoder,this.decoder=new t.Decoder,this._autoConnect=N.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(D){return arguments.length?(this._reconnection=!!D,D||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(D){return D===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=D,this)}reconnectionDelay(D){var N;return D===void 0?this._reconnectionDelay:(this._reconnectionDelay=D,(N=this.backoff)===null||N===void 0||N.setMin(D),this)}randomizationFactor(D){var N;return D===void 0?this._randomizationFactor:(this._randomizationFactor=D,(N=this.backoff)===null||N===void 0||N.setJitter(D),this)}reconnectionDelayMax(D){var N;return D===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=D,(N=this.backoff)===null||N===void 0||N.setMax(D),this)}timeout(D){return arguments.length?(this._timeout=D,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(D){if(~this._readyState.indexOf("open"))return this;this.engine=new I0(this.uri,this.opts);const N=this.engine,e=this;this._readyState="opening",this.skipReconnect=!1;const t=SM(N,"open",function(){e.onopen(),D&&D()}),w=T=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",T),D?D(T):this.maybeReconnectOnOpen()},n=SM(N,"error",w);if(this._timeout!==!1){const T=this._timeout,z=this.setTimeoutFn(()=>{t(),w(new Error("timeout")),N.close()},T);this.opts.autoUnref&&z.unref(),this.subs.push(()=>{this.clearTimeoutFn(z)})}return this.subs.push(t),this.subs.push(n),this}connect(D){return this.open(D)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const D=this.engine;this.subs.push(SM(D,"ping",this.onping.bind(this)),SM(D,"data",this.ondata.bind(this)),SM(D,"error",this.onerror.bind(this)),SM(D,"close",this.onclose.bind(this)),SM(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(D){try{this.decoder.add(D)}catch(N){this.onclose("parse error",N)}}ondecoded(D){ft(()=>{this.emitReserved("packet",D)},this.setTimeoutFn)}onerror(D){this.emitReserved("error",D)}socket(D,N){let e=this.nsps[D];return e?this._autoConnect&&!e.active&&e.connect():(e=new No(this,D,N),this.nsps[D]=e),e}_destroy(D){const N=Object.keys(this.nsps);for(const e of N)if(this.nsps[e].active)return;this._close()}_packet(D){const N=this.encoder.encode(D);for(let e=0;e<N.length;e++)this.engine.write(N[e],D.options)}cleanup(){this.subs.forEach(D=>D()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(D,N){var e;this.cleanup(),(e=this.engine)===null||e===void 0||e.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",D,N),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const D=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const N=this.backoff.duration();this._reconnecting=!0;const e=this.setTimeoutFn(()=>{D.skipReconnect||(this.emitReserved("reconnect_attempt",D.backoff.attempts),!D.skipReconnect&&D.open(t=>{t?(D._reconnecting=!1,D.reconnect(),this.emitReserved("reconnect_error",t)):D.onreconnect()}))},N);this.opts.autoUnref&&e.unref(),this.subs.push(()=>{this.clearTimeoutFn(e)})}}onreconnect(){const D=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",D)}}const ne={};function mt(M,D){typeof M=="object"&&(D=M,M=void 0),D=D||{};const N=C0(M,D.path||"/socket.io"),e=N.source,t=N.id,w=N.path,n=ne[t]&&w in ne[t].nsps,T=D.forceNew||D["force new connection"]||D.multiplex===!1||n;let z;return T?z=new AT(e,D):(ne[t]||(ne[t]=new AT(e,D)),z=ne[t]),N.query&&!D.query&&(D.query=N.queryKey),z.socket(N.path,D)}Object.assign(mt,{Manager:AT,Socket:No,io:mt,connect:mt});class Te extends Error{}Te.prototype.name="InvalidTokenError";function b0(M){return decodeURIComponent(atob(M).replace(/(.)/g,(D,N)=>{let e=N.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e}))}function W0(M){let D=M.replace(/-/g,"+").replace(/_/g,"/");switch(D.length%4){case 0:break;case 2:D+="==";break;case 3:D+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b0(D)}catch{return atob(D)}}function K0(M,D){if(typeof M!="string")throw new Te("Invalid token specified: must be a string");D||(D={});const N=D.header===!0?0:1,e=M.split(".")[N];if(typeof e!="string")throw new Te(`Invalid token specified: missing part #${N+1}`);let t;try{t=W0(e)}catch(w){throw new Te(`Invalid token specified: invalid base64 for part #${N+1} (${w.message})`)}try{return JSON.parse(t)}catch(w){throw new Te(`Invalid token specified: invalid json for part #${N+1} (${w.message})`)}}let iN=null;const v0=M=>{try{let D;try{D=K0(M)}catch{throw new Error("El token de autenticación es inválido.")}let N=D==null?void 0:D.urlSocket;if(!N)throw new Error("URL del socket no encontrada en el token.");const e=new URL(N),t=`${e.protocol}//${e.host}${e.pathname.replace(/\/socket\.\w+$/,"")}`,w=e.pathname.match(/\/(socket\.\w+)$/),n=w?`/${w[1]}`:null;if(!n)throw new Error("Path del socket no encontrado o inválido.");iN=mt(t,{path:n,transports:["websocket"],autoConnect:!0,reconnectionAttempts:3,reconnectionDelay:2e3}),iN.on("connect",()=>{console.log("Conectado al servidor con éxito.")}),iN.on("disconnect",T=>{console.log("Desconectado del servidor:",T)}),iN.on("reconnect_attempt",T=>{console.log(`Intento de reconexión automática #${T}`)}),iN.on("reconnect",()=>{console.log("Reconexión automática exitosa al servidor.")}),window.socket=iN}catch(D){throw console.error("Error al inicializar el socket:",D),D}},G0=()=>{const M=localStorage.getItem("conversationId"),D=localStorage.getItem("conversationTimestamp");if(M&&D){const e=parseInt(D,10),t=Date.now(),w=60*60*1e3;if(t-e<w)return M}const N=crypto.randomUUID();return localStorage.setItem("conversationId",N),localStorage.setItem("conversationTimestamp",Date.now().toString()),N},H0=M=>{localStorage.removeItem("conversationId"),localStorage.removeItem("conversationTimestamp");const D=crypto.randomUUID();return localStorage.setItem("conversationId",D),localStorage.setItem("conversationTimestamp",Date.now().toString()),window.socket&&window.socket.connected&&window.socket.emit("reconnect",{companyToken:M,conversationId:D}),D},_0=({companyToken:M,isChatOpen:D,onMessage:N,onConversation:e})=>{const t=v.useRef(G0()),w=v.useRef(null),[n,T]=v.useState(!1);return v.useEffect(()=>{var O,U,Y,o;if(!D||!M)return;const i=r=>{var l;(l=r.message)!=null&&l.includes("autenticación")&&T(!0),N({msg:(r==null?void 0:r.message)||"Ha ocurrido un error inesperado. Inténtelo más tarde."})};try{console.log("📡 Conectando socket..."),v0(M)}catch(r){console.error("🔴 Error al conectar socket:",r.message),i(r);return}const s=()=>{var r;console.log("✅ Socket conectado."),T(!1),(r=window.socket)!=null&&r.connected&&window.socket.emit("reconnect",{companyToken:M,conversationId:t.current,origin:"web"})},c=r=>{clearTimeout(w.current),w.current=null;const l={msg:r.message,urlImage:r.urlImage||null};N(l)},Q=r=>{var j;const l=((j=r==null?void 0:r.conversation)==null?void 0:j.messages)||[];e(l)};return(O=window.socket)==null||O.on("connect",s),(U=window.socket)==null||U.on("response",c),(Y=window.socket)==null||Y.on("conversation",Q),(o=window.socket)==null||o.on("error",i),()=>{var r,l,j,y,d;console.log("📴 Desconectando socket..."),(r=window.socket)==null||r.off("connect",s),(l=window.socket)==null||l.off("response",c),(j=window.socket)==null||j.off("conversation",Q),(y=window.socket)==null||y.off("error",i),(d=window.socket)==null||d.disconnect(),window.socket=null}},[M,D]),{sendMessage:i=>{var s;if(!((s=window.socket)!=null&&s.connected)){T(!0),N({msg:"No se pudo enviar el mensaje. El socket no está conectado."});return}window.socket.emit("message",{message:i,companyToken:M,conversationId:t.current,origin:"web"}),w.current=setTimeout(()=>{N({msg:"Estamos teniendo dificultades para responder. Por favor, inténtalo más tarde."})},6e4)},resetConversation:()=>{t.current=H0(M)},idConversation:t.current,hasAuthError:n}},P0=()=>{const[M,D]=v.useState(!1),[N,e]=v.useState([]),{companyToken:t}=_n(),{sendMessage:w,resetConversation:n,hasAuthError:T}=_0({companyToken:t,isChatOpen:M,onMessage:A=>e(i=>{const s=i[i.length-1];return(s==null?void 0:s.text)===A.msg?i:[...i.filter(c=>!c.loading),{text:A.msg,userType:"assistant",loading:!1,...A.urlImage&&{images:A.urlImage}}]}),onConversation:A=>{const i=A.filter(s=>(s==null?void 0:s.content)&&!/-invisible:\s*true/.test(s==null?void 0:s.content)).map(s=>({userType:s.role,text:s.content}));e(i.slice(1))}}),z=A=>{e(i=>[...i,{text:A,userType:"user",loading:!1},{text:"Cargando...",userType:"assistant",loading:!0}]),w(A)};return a.jsxs(a.Fragment,{children:[!M&&a.jsx(_s,{onClick:()=>D(!0)}),M&&a.jsx(Hs,{header:a.jsx(Zs,{closeChat:()=>D(!1),onResetChat:()=>{n(),e([])}}),mainChat:a.jsx(Gs,{messages:N,onSendMessage:z,inputDisabled:T}),footer:a.jsx(Ys,{})})]})},Nc="",$0=`@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@100;300;400;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Manrope,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{font-family:Manrope,sans-serif}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-\\[-600px\\]{bottom:-600px}.bottom-\\[86px\\]{bottom:86px}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[1px\\]{left:1px}.left-\\[2px\\]{left:2px}.left-full{left:100%}.right-0{right:0}.right-16{right:4rem}.right-\\[10px\\]{right:10px}.right-\\[20px\\]{right:20px}.right-\\[50px\\]{right:50px}.right-\\[5px\\]{right:5px}.top-0{top:0}.top-\\[-28px\\]{top:-28px}.top-\\[10px\\]{top:10px}.top-\\[138px\\]{top:138px}.top-\\[1px\\]{top:1px}.top-\\[20px\\]{top:20px}.top-\\[5px\\]{top:5px}.z-10{z-index:10}.z-\\[1000\\]{z-index:1000}.z-\\[2\\]{z-index:2}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.m-\\[12px_auto\\]{margin:12px auto}.m-\\[18px\\]{margin:18px}.mx-\\[18px\\]{margin-left:18px;margin-right:18px}.mb-\\[4px\\]{margin-bottom:4px}.ml-\\[8px\\]{margin-left:8px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-\\[138px\\]{height:138px}.h-\\[17px\\]{height:17px}.h-\\[187px\\]{height:187px}.h-\\[18px\\]{height:18px}.h-\\[19px\\]{height:19px}.h-\\[24px\\]{height:24px}.h-\\[30px\\]{height:30px}.h-\\[361px\\]{height:361px}.h-\\[40px\\]{height:40px}.h-\\[422px\\]{height:422px}.h-\\[4px\\]{height:4px}.h-\\[50px\\]{height:50px}.h-\\[5px\\]{height:5px}.h-\\[60px\\]{height:60px}.h-\\[78px\\]{height:78px}.h-\\[calc\\(100vh-20px\\)\\]{height:calc(100vh - 20px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[105px\\]{max-height:105px}.max-h-\\[138px\\]{max-height:138px}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[361px\\]{max-height:361px}.max-h-\\[422px\\]{max-height:422px}.max-h-\\[60px\\]{max-height:60px}.max-h-\\[620px\\]{max-height:620px}.max-h-\\[85vh\\]{max-height:85vh}.min-h-\\[61px\\]{min-height:61px}.w-\\[149px\\]{width:149px}.w-\\[150px\\]{width:150px}.w-\\[17px\\]{width:17px}.w-\\[180px\\]{width:180px}.w-\\[19px\\]{width:19px}.w-\\[22px\\]{width:22px}.w-\\[24px\\]{width:24px}.w-\\[30px\\]{width:30px}.w-\\[50px\\]{width:50px}.w-\\[51px\\]{width:51px}.w-\\[5px\\]{width:5px}.w-\\[78px\\]{width:78px}.w-\\[80px\\]{width:80px}.w-\\[calc\\(100\\%-90px\\)\\]{width:calc(100% - 90px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-\\[220px\\]{max-width:220px}.max-w-\\[342px\\]{max-width:342px}.max-w-\\[416px\\]{max-width:416px}.max-w-\\[85vw\\]{max-width:85vw}.max-w-full{max-width:100%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-up-all{0%{bottom:-600px;opacity:0}to{bottom:5vh;opacity:1}}.animate-slide-up-all{animation:slide-up-all .4s cubic-bezier(.25,.1,.25,1) forwards}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-\\[15px\\]{gap:15px}.gap-\\[2\\.64px\\]{gap:2.64px}.gap-\\[22px\\]{gap:22px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[16px\\]{border-radius:16px}.rounded-\\[18px\\]{border-radius:18px}.rounded-full{border-radius:9999px}.rounded-t-\\[18px\\]{border-top-left-radius:18px;border-top-right-radius:18px}.rounded-bl-\\[10px\\]{border-bottom-left-radius:10px}.rounded-br-\\[10px\\]{border-bottom-right-radius:10px}.rounded-tl-\\[10px\\]{border-top-left-radius:10px}.rounded-tr-\\[10px\\]{border-top-right-radius:10px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-azulChatbot{--tw-border-opacity: 1;border-color:rgb(20 70 255 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-\\[\\#e7e7e7\\]{--tw-bg-opacity: 1;background-color:rgb(231 231 231 / var(--tw-bg-opacity, 1))}.bg-azulChatbot{--tw-bg-opacity: 1;background-color:rgb(20 70 255 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\/70{background-color:#000000b3}.bg-grayChat{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-grayFooter{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-\\[17px_24px_17px_22px\\]{padding:17px 24px 17px 22px}.p-\\[20px\\]{padding:20px}.p-\\[30px\\]{padding:30px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-\\[5px\\]{padding-top:5px}.text-center{text-align:center}.text-start{text-align:start}.font-\\[Manrope\\]{font-family:Manrope}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.text-\\[20\\.23px\\]{font-size:20.23px}.text-\\[20px\\]{font-size:20px}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\\[100\\%\\]{line-height:100%}.leading-\\[111\\%\\]{line-height:111%}.leading-\\[20px\\]{line-height:20px}.leading-\\[22px\\]{line-height:22px}.leading-normal{line-height:1.5}.tracking-\\[0\\.2px\\]{letter-spacing:.2px}.text-\\[\\#FAFAFA\\]{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-\\[\\#bdbdbd\\]{--tw-text-opacity: 1;color:rgb(189 189 189 / var(--tw-text-opacity, 1))}.text-azulChatbot{--tw-text-opacity: 1;color:rgb(20 70 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blackAyelen{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray3{--tw-text-opacity: 1;color:rgb(130 130 130 / var(--tw-text-opacity, 1))}.text-grayFooter{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_2px_2px_0px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow: 0px 2px 2px 0px rgba(0,0,0,.1);--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[1px_3px_20px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 1px 3px 20px rgba(0,0,0,.2);--tw-shadow-colored: 1px 3px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[2px_3px_22px_rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{--tw-shadow: 2px 3px 22px rgba(255,255,255,.2);--tw-shadow-colored: 2px 3px 22px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[8px_0_\\#1446ff\\,-8px_0_\\#1446ff\\]{--tw-shadow: 8px 0 #1446ff,-8px 0 #1446ff;--tw-shadow-colored: 8px 0 var(--tw-shadow-color), -8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-questionMark{--tw-shadow: 1px 3px 6px 0px rgba(0, 0, 0, .2);--tw-shadow-colored: 1px 3px 6px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:opacity-100:hover{opacity:1}.focus\\:border-azulChatbot:focus{--tw-border-opacity: 1;border-color:rgb(20 70 255 / var(--tw-border-opacity, 1))}@media (max-width: 1370px){@keyframes slide-up-xl{0%{bottom:-600px;opacity:0}to{bottom:3.2vh;opacity:1}0%{bottom:-600px;opacity:0}to{bottom:3.2vh;opacity:1}}.max-\\[1370px\\]\\:animate-slide-up-xl{animation:slide-up-xl .4s cubic-bezier(.25,.1,.25,1) forwards}}@media not all and (min-width: 640px){.max-sm\\:bottom-\\[74px\\]{bottom:74px}.max-sm\\:right-0{right:0}.max-sm\\:right-4{right:1rem}.max-sm\\:rounded-\\[8px\\]{border-radius:8px}.max-sm\\:px-\\[10px\\]{padding-left:10px;padding-right:10px}}
|
|
51
|
-
`;class q0 extends HTMLElement{connectedCallback(){const D=this.attachShadow({mode:"open"}),N=document.createElement("
|
|
51
|
+
`;class q0 extends HTMLElement{connectedCallback(){const D=this.attachShadow({mode:"open"}),N=document.createElement("link");N.rel="stylesheet",N.href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&family=Manrope:wght@400;500;600;700&display=swap",D.appendChild(N);const e=document.createElement("style");e.textContent=$0,D.appendChild(e);const t=document.createElement("div");D.appendChild(t);const w={companyName:this.getAttribute("companyname")||"",profileImg:this.getAttribute("profileimg")||"",floatImg:this.getAttribute("floatimg")||"",companyToken:this.getAttribute("companytoken")||""};Jt.createRoot(t).render(a.jsx(ao.StrictMode,{children:a.jsx(hA.Provider,{value:w,children:a.jsx(P0,{})})}))}}customElements.define("test-empaquetado",q0)})();
|