health_center-RYKjYDdu.js 138 KB

1234567
  1. import{_ as Ce}from"./people-PJ0ChT72.js";import{_ as Ae}from"./left-icon2-CMcWN3fS.js";import{e as ae}from"./index-B9bA2oXO.js";import{c as xe}from"./_commonjsHelpers-Cpj98o6Y.js";import{h as xt,k as ht,M as $t,$ as ce,p as tt,F as et,z as T,J as X,A as at,v as Be,x as Ht,y as Yt,B as Bt,c as rt,G as te,V as ee,Q as Se,N as Re,R as Te}from"./index-DhgeYuDI.js";const Oe="/assets/left-BkPeJBFI.png",Pe="/assets/right-CA5WyWpI.png",Ne="/assets/blood-g--UQjv17k.png",Le="/assets/blood-d-CeJZNk-U.png",De="/assets/left-title-CY39qeYz.png",Ie="/assets/sleep-Cp3ScsFZ.png",Ue="/assets/score-m6AEvyUP.png",Fe="/assets/heart-rate-B3gvmgDg.png",qe="/assets/heart-rate-icon-l-D-laf1vJ.png",Me="/assets/heart-rate-icon-r-div-vVfa.png",je="/assets/img1-LNPUnejQ.png",$e="/assets/img2-DhpHql6N.png",He="/assets/img3-BeacTmAW.png",Ye="/assets/img4-kZ6XFpZs.png";var Ve={exports:{}};(function(h,t){(function(e,n){h.exports=n()})(typeof self<"u"?self:xe,function(){return function(e){var n={};function a(c){if(n[c])return n[c].exports;var y=n[c]={i:c,l:!1,exports:{}};return e[c].call(y.exports,y,y.exports,a),y.l=!0,y.exports}return a.m=e,a.c=n,a.d=function(c,y,f){a.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:f})},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,y){if(1&y&&(c=a(c)),8&y||4&y&&typeof c=="object"&&c&&c.__esModule)return c;var f=Object.create(null);if(a.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:c}),2&y&&typeof c!="string")for(var g in c)a.d(f,g,(function(b){return c[b]}).bind(null,g));return f},a.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(y,"a",y),y},a.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},a.p="",a(a.s=23)}([function(e,n,a){(function(c){function y(){var f;try{f=n.storage.debug}catch{}return!f&&c!==void 0&&"env"in c&&(f=c.env.DEBUG),f}(n=e.exports=a(26)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(f){var g=this.useColors;if(f[0]=(g?"%c":"")+this.namespace+(g?" %c":" ")+f[0]+(g?"%c ":" ")+"+"+n.humanize(this.diff),!!g){var b="color: "+this.color;f.splice(1,0,b,"color: inherit");var v=0,p=0;f[0].replace(/%[a-zA-Z%]/g,function(w){w!=="%%"&&(v++,w==="%c"&&(p=v))}),f.splice(p,0,b)}},n.save=function(f){try{f==null?n.storage.removeItem("debug"):n.storage.debug=f}catch{}},n.load=y,n.useColors=function(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.formatters.j=function(f){try{return JSON.stringify(f)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}},n.enable(y())}).call(this,a(25))},function(e,n,a){function c(y){if(y)return function(f){for(var g in c.prototype)f[g]=c.prototype[g];return f}(y)}e.exports=c,c.prototype.on=c.prototype.addEventListener=function(y,f){return this._callbacks=this._callbacks||{},(this._callbacks["$"+y]=this._callbacks["$"+y]||[]).push(f),this},c.prototype.once=function(y,f){function g(){this.off(y,g),f.apply(this,arguments)}return g.fn=f,this.on(y,g),this},c.prototype.off=c.prototype.removeListener=c.prototype.removeAllListeners=c.prototype.removeEventListener=function(y,f){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var g,b=this._callbacks["$"+y];if(!b)return this;if(arguments.length==1)return delete this._callbacks["$"+y],this;for(var v=0;v<b.length;v++)if((g=b[v])===f||g.fn===f){b.splice(v,1);break}return this},c.prototype.emit=function(y){this._callbacks=this._callbacks||{};var f=[].slice.call(arguments,1),g=this._callbacks["$"+y];if(g)for(var b=0,v=(g=g.slice(0)).length;b<v;++b)g[b].apply(this,f);return this},c.prototype.listeners=function(y){return this._callbacks=this._callbacks||{},this._callbacks["$"+y]||[]},c.prototype.hasListeners=function(y){return!!this.listeners(y).length}},function(e,n,a){var c,y=a(36),f=a(16),g=a(37),b=a(38),v=a(39);typeof ArrayBuffer<"u"&&(c=a(40));var p=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),w=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),d=p||w;n.protocol=3;var u=n.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},o=y(u),s={type:"error",data:"parser error"},m=a(41);function k(_,B,R){for(var A=new Array(_.length),S=b(_.length,R),O=function(L,D,q){B(D,function(H,j){A[L]=j,q(H,A)})},P=0;P<_.length;P++)O(P,_[P],S)}n.encodePacket=function(_,B,R,A){typeof B=="function"&&(A=B,B=!1),typeof R=="function"&&(A=R,R=null);var S=_.data===void 0?void 0:_.data.buffer||_.data;if(typeof ArrayBuffer<"u"&&S instanceof ArrayBuffer)return function(P,L,D){if(!L)return n.encodeBase64Packet(P,D);var q=P.data,H=new Uint8Array(q),j=new Uint8Array(1+q.byteLength);j[0]=u[P.type];for(var W=0;W<H.length;W++)j[W+1]=H[W];return D(j.buffer)}(_,B,A);if(m!==void 0&&S instanceof m)return function(P,L,D){if(!L)return n.encodeBase64Packet(P,D);if(d)return function(j,W,ot){if(!W)return n.encodeBase64Packet(j,ot);var ft=new FileReader;return ft.onload=function(){n.encodePacket({type:j.type,data:ft.result},W,!0,ot)},ft.readAsArrayBuffer(j.data)}(P,L,D);var q=new Uint8Array(1);q[0]=u[P.type];var H=new m([q.buffer,P.data]);return D(H)}(_,B,A);if(S&&S.base64)return function(P,L){var D="b"+n.packets[P.type]+P.data.data;return L(D)}(_,A);var O=u[_.type];return _.data!==void 0&&(O+=R?v.encode(String(_.data),{strict:!1}):String(_.data)),A(""+O)},n.encodeBase64Packet=function(_,B){var R,A="b"+n.packets[_.type];if(m!==void 0&&_.data instanceof m){var S=new FileReader;return S.onload=function(){var D=S.result.split(",")[1];B(A+D)},S.readAsDataURL(_.data)}try{R=String.fromCharCode.apply(null,new Uint8Array(_.data))}catch{for(var O=new Uint8Array(_.data),P=new Array(O.length),L=0;L<O.length;L++)P[L]=O[L];R=String.fromCharCode.apply(null,P)}return A+=btoa(R),B(A)},n.decodePacket=function(_,B,R){if(_===void 0)return s;if(typeof _=="string"){if(_.charAt(0)==="b")return n.decodeBase64Packet(_.substr(1),B);if(R&&(_=function(O){try{O=v.decode(O,{strict:!1})}catch{return!1}return O}(_))===!1)return s;var A=_.charAt(0);return Number(A)==A&&o[A]?_.length>1?{type:o[A],data:_.substring(1)}:{type:o[A]}:s}A=new Uint8Array(_)[0];var S=g(_,1);return m&&B==="blob"&&(S=new m([S])),{type:o[A],data:S}},n.decodeBase64Packet=function(_,B){var R=o[_.charAt(0)];if(!c)return{type:R,data:{base64:!0,data:_.substr(1)}};var A=c.decode(_.substr(1));return B==="blob"&&m&&(A=new m([A])),{type:R,data:A}},n.encodePayload=function(_,B,R){typeof B=="function"&&(R=B,B=null);var A=f(_);if(B&&A)return m&&!d?n.encodePayloadAsBlob(_,R):n.encodePayloadAsArrayBuffer(_,R);if(!_.length)return R("0:");k(_,function(S,O){n.encodePacket(S,!!A&&B,!1,function(P){O(null,function(L){return L.length+":"+L}(P))})},function(S,O){return R(O.join(""))})},n.decodePayload=function(_,B,R){if(typeof _!="string")return n.decodePayloadAsBinary(_,B,R);var A;if(typeof B=="function"&&(R=B,B=null),_==="")return R(s,0,1);for(var S,O,P="",L=0,D=_.length;L<D;L++){var q=_.charAt(L);if(q===":"){if(P===""||P!=(S=Number(P))||P!=(O=_.substr(L+1,S)).length)return R(s,0,1);if(O.length){if(A=n.decodePacket(O,B,!1),s.type===A.type&&s.data===A.data)return R(s,0,1);if(R(A,L+S,D)===!1)return}L+=S,P=""}else P+=q}return P!==""?R(s,0,1):void 0},n.encodePayloadAsArrayBuffer=function(_,B){if(!_.length)return B(new ArrayBuffer(0));k(_,function(R,A){n.encodePacket(R,!0,!0,function(S){return A(null,S)})},function(R,A){var S=A.reduce(function(L,D){var q;return L+(q=typeof D=="string"?D.length:D.byteLength).toString().length+q+2},0),O=new Uint8Array(S),P=0;return A.forEach(function(L){var D=typeof L=="string",q=L;if(D){for(var H=new Uint8Array(L.length),j=0;j<L.length;j++)H[j]=L.charCodeAt(j);q=H.buffer}O[P++]=D?0:1;var W=q.byteLength.toString();for(j=0;j<W.length;j++)O[P++]=parseInt(W[j]);for(O[P++]=255,H=new Uint8Array(q),j=0;j<H.length;j++)O[P++]=H[j]}),B(O.buffer)})},n.encodePayloadAsBlob=function(_,B){k(_,function(R,A){n.encodePacket(R,!0,!0,function(S){var O=new Uint8Array(1);if(O[0]=1,typeof S=="string"){for(var P=new Uint8Array(S.length),L=0;L<S.length;L++)P[L]=S.charCodeAt(L);S=P.buffer,O[0]=0}var D=(S instanceof ArrayBuffer?S.byteLength:S.size).toString(),q=new Uint8Array(D.length+1);for(L=0;L<D.length;L++)q[L]=parseInt(D[L]);if(q[D.length]=255,m){var H=new m([O.buffer,q.buffer,S]);A(null,H)}})},function(R,A){return B(new m(A))})},n.decodePayloadAsBinary=function(_,B,R){typeof B=="function"&&(R=B,B=null);for(var A=_,S=[];A.byteLength>0;){for(var O=new Uint8Array(A),P=O[0]===0,L="",D=1;O[D]!==255;D++){if(L.length>310)return R(s,0,1);L+=O[D]}A=g(A,2+L.length),L=parseInt(L);var q=g(A,0,L);if(P)try{q=String.fromCharCode.apply(null,new Uint8Array(q))}catch{var H=new Uint8Array(q);for(q="",D=0;D<H.length;D++)q+=String.fromCharCode(H[D])}S.push(q),A=g(A,L)}var j=S.length;S.forEach(function(W,ot){R(n.decodePacket(W,B,!0),ot,j)})}},function(e,n){n.encode=function(a){var c="";for(var y in a)a.hasOwnProperty(y)&&(c.length&&(c+="&"),c+=encodeURIComponent(y)+"="+encodeURIComponent(a[y]));return c},n.decode=function(a){for(var c={},y=a.split("&"),f=0,g=y.length;f<g;f++){var b=y[f].split("=");c[decodeURIComponent(b[0])]=decodeURIComponent(b[1])}return c}},function(e,n){e.exports=function(a,c){var y=function(){};y.prototype=c.prototype,a.prototype=new y,a.prototype.constructor=a}},function(e,n,a){var c=a(0)("socket.io-parser"),y=a(1),f=a(28),g=a(6),b=a(11);function v(){}n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=v,n.Decoder=d;var p=n.ERROR+'"encode error"';function w(s){var m=""+s.type;if(n.BINARY_EVENT!==s.type&&n.BINARY_ACK!==s.type||(m+=s.attachments+"-"),s.nsp&&s.nsp!=="/"&&(m+=s.nsp+","),s.id!=null&&(m+=s.id),s.data!=null){var k=function(_){try{return JSON.stringify(_)}catch{return!1}}(s.data);if(k===!1)return p;m+=k}return c("encoded %j as %s",s,m),m}function d(){this.reconstructor=null}function u(s){this.reconPack=s,this.buffers=[]}function o(s){return{type:n.ERROR,data:"parser error: "+s}}v.prototype.encode=function(s,m){c("encoding packet %j",s),n.BINARY_EVENT===s.type||n.BINARY_ACK===s.type?function(k,_){f.removeBlobs(k,function(B){var R=f.deconstructPacket(B),A=w(R.packet),S=R.buffers;S.unshift(A),_(S)})}(s,m):m([w(s)])},y(d.prototype),d.prototype.add=function(s){var m;if(typeof s=="string")m=function(k){var _=0,B={type:Number(k.charAt(0))};if(n.types[B.type]==null)return o("unknown packet type "+B.type);if(n.BINARY_EVENT===B.type||n.BINARY_ACK===B.type){for(var R="";k.charAt(++_)!=="-"&&(R+=k.charAt(_),_!=k.length););if(R!=Number(R)||k.charAt(_)!=="-")throw new Error("Illegal attachments");B.attachments=Number(R)}if(k.charAt(_+1)==="/")for(B.nsp="";++_;){var A=k.charAt(_);if(A===","||(B.nsp+=A,_===k.length))break}else B.nsp="/";var S=k.charAt(_+1);if(S!==""&&Number(S)==S){for(B.id="";++_;){var A=k.charAt(_);if(A==null||Number(A)!=A){--_;break}if(B.id+=k.charAt(_),_===k.length)break}B.id=Number(B.id)}if(k.charAt(++_)){var O=function(L){try{return JSON.parse(L)}catch{return!1}}(k.substr(_)),P=O!==!1&&(B.type===n.ERROR||g(O));if(!P)return o("invalid payload");B.data=O}return c("decoded %s as %j",k,B),B}(s),n.BINARY_EVENT===m.type||n.BINARY_ACK===m.type?(this.reconstructor=new u(m),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",m)):this.emit("decoded",m);else{if(!b(s)&&!s.base64)throw new Error("Unknown type: "+s);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(m=this.reconstructor.takeBinaryData(s))&&(this.reconstructor=null,this.emit("decoded",m))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},u.prototype.takeBinaryData=function(s){if(this.buffers.push(s),this.buffers.length===this.reconPack.attachments){var m=f.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),m}return null},u.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,n){var a={}.toString;e.exports=Array.isArray||function(c){return a.call(c)=="[object Array]"}},function(e,n,a){(function(c){/*!
  2. * The buffer module from node.js, for the browser.
  3. *
  4. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  5. * @license MIT
  6. */var y=a(29),f=a(30),g=a(31);function b(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(r,i){if(b()<i)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(i)).__proto__=p.prototype:(r===null&&(r=new p(i)),r.length=i),r}function p(r,i,l){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(r,i,l);if(typeof r=="number"){if(typeof i=="string")throw new Error("If encoding is specified then the first argument must be a string");return u(this,r)}return w(this,r,i,l)}function w(r,i,l,E){if(typeof i=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer?function(C,x,N,I){if(x.byteLength,N<0||x.byteLength<N)throw new RangeError("'offset' is out of bounds");if(x.byteLength<N+(I||0))throw new RangeError("'length' is out of bounds");return x=N===void 0&&I===void 0?new Uint8Array(x):I===void 0?new Uint8Array(x,N):new Uint8Array(x,N,I),p.TYPED_ARRAY_SUPPORT?(C=x).__proto__=p.prototype:C=o(C,x),C}(r,i,l,E):typeof i=="string"?function(C,x,N){if(typeof N=="string"&&N!==""||(N="utf8"),!p.isEncoding(N))throw new TypeError('"encoding" must be a valid string encoding');var I=0|m(x,N),$=(C=v(C,I)).write(x,N);return $!==I&&(C=C.slice(0,$)),C}(r,i,l):function(C,x){if(p.isBuffer(x)){var N=0|s(x.length);return(C=v(C,N)).length===0||x.copy(C,0,0,N),C}if(x){if(typeof ArrayBuffer<"u"&&x.buffer instanceof ArrayBuffer||"length"in x)return typeof x.length!="number"||(I=x.length)!=I?v(C,0):o(C,x);if(x.type==="Buffer"&&g(x.data))return o(C,x.data)}var I;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(r,i)}function d(r){if(typeof r!="number")throw new TypeError('"size" argument must be a number');if(r<0)throw new RangeError('"size" argument must not be negative')}function u(r,i){if(d(i),r=v(r,i<0?0:0|s(i)),!p.TYPED_ARRAY_SUPPORT)for(var l=0;l<i;++l)r[l]=0;return r}function o(r,i){var l=i.length<0?0:0|s(i.length);r=v(r,l);for(var E=0;E<l;E+=1)r[E]=255&i[E];return r}function s(r){if(r>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return 0|r}function m(r,i){if(p.isBuffer(r))return r.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;typeof r!="string"&&(r=""+r);var l=r.length;if(l===0)return 0;for(var E=!1;;)switch(i){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":case void 0:return _t(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*l;case"hex":return l>>>1;case"base64":return Zt(r).length;default:if(E)return _t(r).length;i=(""+i).toLowerCase(),E=!0}}function k(r,i,l){var E=r[i];r[i]=r[l],r[l]=E}function _(r,i,l,E,C){if(r.length===0)return-1;if(typeof l=="string"?(E=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,isNaN(l)&&(l=C?0:r.length-1),l<0&&(l=r.length+l),l>=r.length){if(C)return-1;l=r.length-1}else if(l<0){if(!C)return-1;l=0}if(typeof i=="string"&&(i=p.from(i,E)),p.isBuffer(i))return i.length===0?-1:B(r,i,l,E,C);if(typeof i=="number")return i&=255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(r,i,l):Uint8Array.prototype.lastIndexOf.call(r,i,l):B(r,[i],l,E,C);throw new TypeError("val must be string, number or Buffer")}function B(r,i,l,E,C){var x,N=1,I=r.length,$=i.length;if(E!==void 0&&((E=String(E).toLowerCase())==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(r.length<2||i.length<2)return-1;N=2,I/=2,$/=2,l/=2}function Y(lt,pt){return N===1?lt[pt]:lt.readUInt16BE(pt*N)}if(C){var F=-1;for(x=l;x<I;x++)if(Y(r,x)===Y(i,F===-1?0:x-F)){if(F===-1&&(F=x),x-F+1===$)return F*N}else F!==-1&&(x-=x-F),F=-1}else for(l+$>I&&(l=I-$),x=l;x>=0;x--){for(var it=!0,nt=0;nt<$;nt++)if(Y(r,x+nt)!==Y(i,nt)){it=!1;break}if(it)return x}return-1}function R(r,i,l,E){l=Number(l)||0;var C=r.length-l;E?(E=Number(E))>C&&(E=C):E=C;var x=i.length;if(x%2!=0)throw new TypeError("Invalid hex string");E>x/2&&(E=x/2);for(var N=0;N<E;++N){var I=parseInt(i.substr(2*N,2),16);if(isNaN(I))return N;r[l+N]=I}return N}function A(r,i,l,E){return bt(_t(i,r.length-l),r,l,E)}function S(r,i,l,E){return bt(function(C){for(var x=[],N=0;N<C.length;++N)x.push(255&C.charCodeAt(N));return x}(i),r,l,E)}function O(r,i,l,E){return S(r,i,l,E)}function P(r,i,l,E){return bt(Zt(i),r,l,E)}function L(r,i,l,E){return bt(function(C,x){for(var N,I,$,Y=[],F=0;F<C.length&&!((x-=2)<0);++F)N=C.charCodeAt(F),I=N>>8,$=N%256,Y.push($),Y.push(I);return Y}(i,r.length-l),r,l,E)}function D(r,i,l){return i===0&&l===r.length?y.fromByteArray(r):y.fromByteArray(r.slice(i,l))}function q(r,i,l){l=Math.min(r.length,l);for(var E=[],C=i;C<l;){var x,N,I,$,Y=r[C],F=null,it=Y>239?4:Y>223?3:Y>191?2:1;if(C+it<=l)switch(it){case 1:Y<128&&(F=Y);break;case 2:(192&(x=r[C+1]))==128&&($=(31&Y)<<6|63&x)>127&&(F=$);break;case 3:x=r[C+1],N=r[C+2],(192&x)==128&&(192&N)==128&&($=(15&Y)<<12|(63&x)<<6|63&N)>2047&&($<55296||$>57343)&&(F=$);break;case 4:x=r[C+1],N=r[C+2],I=r[C+3],(192&x)==128&&(192&N)==128&&(192&I)==128&&($=(15&Y)<<18|(63&x)<<12|(63&N)<<6|63&I)>65535&&$<1114112&&(F=$)}F===null?(F=65533,it=1):F>65535&&(F-=65536,E.push(F>>>10&1023|55296),F=56320|1023&F),E.push(F),C+=it}return function(nt){var lt=nt.length;if(lt<=H)return String.fromCharCode.apply(String,nt);for(var pt="",Ot=0;Ot<lt;)pt+=String.fromCharCode.apply(String,nt.slice(Ot,Ot+=H));return pt}(E)}n.Buffer=p,n.SlowBuffer=function(r){return+r!=r&&(r=0),p.alloc(+r)},n.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=c.TYPED_ARRAY_SUPPORT!==void 0?c.TYPED_ARRAY_SUPPORT:function(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},r.foo()===42&&typeof r.subarray=="function"&&r.subarray(1,1).byteLength===0}catch{return!1}}(),n.kMaxLength=b(),p.poolSize=8192,p._augment=function(r){return r.__proto__=p.prototype,r},p.from=function(r,i,l){return w(null,r,i,l)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(r,i,l){return function(E,C,x,N){return d(C),C<=0?v(E,C):x!==void 0?typeof N=="string"?v(E,C).fill(x,N):v(E,C).fill(x):v(E,C)}(null,r,i,l)},p.allocUnsafe=function(r){return u(null,r)},p.allocUnsafeSlow=function(r){return u(null,r)},p.isBuffer=function(r){return!(r==null||!r._isBuffer)},p.compare=function(r,i){if(!p.isBuffer(r)||!p.isBuffer(i))throw new TypeError("Arguments must be Buffers");if(r===i)return 0;for(var l=r.length,E=i.length,C=0,x=Math.min(l,E);C<x;++C)if(r[C]!==i[C]){l=r[C],E=i[C];break}return l<E?-1:E<l?1:0},p.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(r,i){if(!g(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return p.alloc(0);var l;if(i===void 0)for(i=0,l=0;l<r.length;++l)i+=r[l].length;var E=p.allocUnsafe(i),C=0;for(l=0;l<r.length;++l){var x=r[l];if(!p.isBuffer(x))throw new TypeError('"list" argument must be an Array of Buffers');x.copy(E,C),C+=x.length}return E},p.byteLength=m,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<r;i+=2)k(this,i,i+1);return this},p.prototype.swap32=function(){var r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<r;i+=4)k(this,i,i+3),k(this,i+1,i+2);return this},p.prototype.swap64=function(){var r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<r;i+=8)k(this,i,i+7),k(this,i+1,i+6),k(this,i+2,i+5),k(this,i+3,i+4);return this},p.prototype.toString=function(){var r=0|this.length;return r===0?"":arguments.length===0?q(this,0,r):(function(i,l,E){var C=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0)<=(l>>>=0))return"";for(i||(i="utf8");;)switch(i){case"hex":return ot(this,l,E);case"utf8":case"utf-8":return q(this,l,E);case"ascii":return j(this,l,E);case"latin1":case"binary":return W(this,l,E);case"base64":return D(this,l,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,l,E);default:if(C)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),C=!0}}).apply(this,arguments)},p.prototype.equals=function(r){if(!p.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||p.compare(this,r)===0},p.prototype.inspect=function(){var r="",i=n.INSPECT_MAX_BYTES;return this.length>0&&(r=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(r+=" ... ")),"<Buffer "+r+">"},p.prototype.compare=function(r,i,l,E,C){if(!p.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),l===void 0&&(l=r?r.length:0),E===void 0&&(E=0),C===void 0&&(C=this.length),i<0||l>r.length||E<0||C>this.length)throw new RangeError("out of range index");if(E>=C&&i>=l)return 0;if(E>=C)return-1;if(i>=l)return 1;if(this===r)return 0;for(var x=(C>>>=0)-(E>>>=0),N=(l>>>=0)-(i>>>=0),I=Math.min(x,N),$=this.slice(E,C),Y=r.slice(i,l),F=0;F<I;++F)if($[F]!==Y[F]){x=$[F],N=Y[F];break}return x<N?-1:N<x?1:0},p.prototype.includes=function(r,i,l){return this.indexOf(r,i,l)!==-1},p.prototype.indexOf=function(r,i,l){return _(this,r,i,l,!0)},p.prototype.lastIndexOf=function(r,i,l){return _(this,r,i,l,!1)},p.prototype.write=function(r,i,l,E){if(i===void 0)E="utf8",l=this.length,i=0;else if(l===void 0&&typeof i=="string")E=i,l=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i|=0,isFinite(l)?(l|=0,E===void 0&&(E="utf8")):(E=l,l=void 0)}var C=this.length-i;if((l===void 0||l>C)&&(l=C),r.length>0&&(l<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");for(var x=!1;;)switch(E){case"hex":return R(this,r,i,l);case"utf8":case"utf-8":return A(this,r,i,l);case"ascii":return S(this,r,i,l);case"latin1":case"binary":return O(this,r,i,l);case"base64":return P(this,r,i,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,i,l);default:if(x)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),x=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;function j(r,i,l){var E="";l=Math.min(r.length,l);for(var C=i;C<l;++C)E+=String.fromCharCode(127&r[C]);return E}function W(r,i,l){var E="";l=Math.min(r.length,l);for(var C=i;C<l;++C)E+=String.fromCharCode(r[C]);return E}function ot(r,i,l){var E=r.length;(!i||i<0)&&(i=0),(!l||l<0||l>E)&&(l=E);for(var C="",x=i;x<l;++x)C+=Ee(r[x]);return C}function ft(r,i,l){for(var E=r.slice(i,l),C="",x=0;x<E.length;x+=2)C+=String.fromCharCode(E[x]+256*E[x+1]);return C}function z(r,i,l){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+i>l)throw new RangeError("Trying to access beyond buffer length")}function J(r,i,l,E,C,x){if(!p.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>C||i<x)throw new RangeError('"value" argument is out of bounds');if(l+E>r.length)throw new RangeError("Index out of range")}function mt(r,i,l,E){i<0&&(i=65535+i+1);for(var C=0,x=Math.min(r.length-l,2);C<x;++C)r[l+C]=(i&255<<8*(E?C:1-C))>>>8*(E?C:1-C)}function vt(r,i,l,E){i<0&&(i=4294967295+i+1);for(var C=0,x=Math.min(r.length-l,4);C<x;++C)r[l+C]=i>>>8*(E?C:3-C)&255}function Kt(r,i,l,E,C,x){if(l+E>r.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function Qt(r,i,l,E,C){return C||Kt(r,0,l,4),f.write(r,i,l,E,23,4),l+4}function Gt(r,i,l,E,C){return C||Kt(r,0,l,8),f.write(r,i,l,E,52,8),l+8}p.prototype.slice=function(r,i){var l,E=this.length;if((r=~~r)<0?(r+=E)<0&&(r=0):r>E&&(r=E),(i=i===void 0?E:~~i)<0?(i+=E)<0&&(i=0):i>E&&(i=E),i<r&&(i=r),p.TYPED_ARRAY_SUPPORT)(l=this.subarray(r,i)).__proto__=p.prototype;else{var C=i-r;l=new p(C,void 0);for(var x=0;x<C;++x)l[x]=this[x+r]}return l},p.prototype.readUIntLE=function(r,i,l){r|=0,i|=0,l||z(r,i,this.length);for(var E=this[r],C=1,x=0;++x<i&&(C*=256);)E+=this[r+x]*C;return E},p.prototype.readUIntBE=function(r,i,l){r|=0,i|=0,l||z(r,i,this.length);for(var E=this[r+--i],C=1;i>0&&(C*=256);)E+=this[r+--i]*C;return E},p.prototype.readUInt8=function(r,i){return i||z(r,1,this.length),this[r]},p.prototype.readUInt16LE=function(r,i){return i||z(r,2,this.length),this[r]|this[r+1]<<8},p.prototype.readUInt16BE=function(r,i){return i||z(r,2,this.length),this[r]<<8|this[r+1]},p.prototype.readUInt32LE=function(r,i){return i||z(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},p.prototype.readUInt32BE=function(r,i){return i||z(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},p.prototype.readIntLE=function(r,i,l){r|=0,i|=0,l||z(r,i,this.length);for(var E=this[r],C=1,x=0;++x<i&&(C*=256);)E+=this[r+x]*C;return E>=(C*=128)&&(E-=Math.pow(2,8*i)),E},p.prototype.readIntBE=function(r,i,l){r|=0,i|=0,l||z(r,i,this.length);for(var E=i,C=1,x=this[r+--E];E>0&&(C*=256);)x+=this[r+--E]*C;return x>=(C*=128)&&(x-=Math.pow(2,8*i)),x},p.prototype.readInt8=function(r,i){return i||z(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},p.prototype.readInt16LE=function(r,i){i||z(r,2,this.length);var l=this[r]|this[r+1]<<8;return 32768&l?4294901760|l:l},p.prototype.readInt16BE=function(r,i){i||z(r,2,this.length);var l=this[r+1]|this[r]<<8;return 32768&l?4294901760|l:l},p.prototype.readInt32LE=function(r,i){return i||z(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},p.prototype.readInt32BE=function(r,i){return i||z(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},p.prototype.readFloatLE=function(r,i){return i||z(r,4,this.length),f.read(this,r,!0,23,4)},p.prototype.readFloatBE=function(r,i){return i||z(r,4,this.length),f.read(this,r,!1,23,4)},p.prototype.readDoubleLE=function(r,i){return i||z(r,8,this.length),f.read(this,r,!0,52,8)},p.prototype.readDoubleBE=function(r,i){return i||z(r,8,this.length),f.read(this,r,!1,52,8)},p.prototype.writeUIntLE=function(r,i,l,E){r=+r,i|=0,l|=0,E||J(this,r,i,l,Math.pow(2,8*l)-1,0);var C=1,x=0;for(this[i]=255&r;++x<l&&(C*=256);)this[i+x]=r/C&255;return i+l},p.prototype.writeUIntBE=function(r,i,l,E){r=+r,i|=0,l|=0,E||J(this,r,i,l,Math.pow(2,8*l)-1,0);var C=l-1,x=1;for(this[i+C]=255&r;--C>=0&&(x*=256);)this[i+C]=r/x&255;return i+l},p.prototype.writeUInt8=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,1,255,0),p.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[i]=255&r,i+1},p.prototype.writeUInt16LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[i]=255&r,this[i+1]=r>>>8):mt(this,r,i,!0),i+2},p.prototype.writeUInt16BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=255&r):mt(this,r,i,!1),i+2},p.prototype.writeUInt32LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=255&r):vt(this,r,i,!0),i+4},p.prototype.writeUInt32BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r):vt(this,r,i,!1),i+4},p.prototype.writeIntLE=function(r,i,l,E){if(r=+r,i|=0,!E){var C=Math.pow(2,8*l-1);J(this,r,i,l,C-1,-C)}var x=0,N=1,I=0;for(this[i]=255&r;++x<l&&(N*=256);)r<0&&I===0&&this[i+x-1]!==0&&(I=1),this[i+x]=(r/N>>0)-I&255;return i+l},p.prototype.writeIntBE=function(r,i,l,E){if(r=+r,i|=0,!E){var C=Math.pow(2,8*l-1);J(this,r,i,l,C-1,-C)}var x=l-1,N=1,I=0;for(this[i+x]=255&r;--x>=0&&(N*=256);)r<0&&I===0&&this[i+x+1]!==0&&(I=1),this[i+x]=(r/N>>0)-I&255;return i+l},p.prototype.writeInt8=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,1,127,-128),p.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[i]=255&r,i+1},p.prototype.writeInt16LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[i]=255&r,this[i+1]=r>>>8):mt(this,r,i,!0),i+2},p.prototype.writeInt16BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=255&r):mt(this,r,i,!1),i+2},p.prototype.writeInt32LE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[i]=255&r,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24):vt(this,r,i,!0),i+4},p.prototype.writeInt32BE=function(r,i,l){return r=+r,i|=0,l||J(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),p.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=255&r):vt(this,r,i,!1),i+4},p.prototype.writeFloatLE=function(r,i,l){return Qt(this,r,i,!0,l)},p.prototype.writeFloatBE=function(r,i,l){return Qt(this,r,i,!1,l)},p.prototype.writeDoubleLE=function(r,i,l){return Gt(this,r,i,!0,l)},p.prototype.writeDoubleBE=function(r,i,l){return Gt(this,r,i,!1,l)},p.prototype.copy=function(r,i,l,E){if(l||(l=0),E||E===0||(E=this.length),i>=r.length&&(i=r.length),i||(i=0),E>0&&E<l&&(E=l),E===l||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("sourceStart out of bounds");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),r.length-i<E-l&&(E=r.length-i+l);var C,x=E-l;if(this===r&&l<i&&i<E)for(C=x-1;C>=0;--C)r[C+i]=this[C+l];else if(x<1e3||!p.TYPED_ARRAY_SUPPORT)for(C=0;C<x;++C)r[C+i]=this[C+l];else Uint8Array.prototype.set.call(r,this.subarray(l,l+x),i);return x},p.prototype.fill=function(r,i,l,E){if(typeof r=="string"){if(typeof i=="string"?(E=i,i=0,l=this.length):typeof l=="string"&&(E=l,l=this.length),r.length===1){var C=r.charCodeAt(0);C<256&&(r=C)}if(E!==void 0&&typeof E!="string")throw new TypeError("encoding must be a string");if(typeof E=="string"&&!p.isEncoding(E))throw new TypeError("Unknown encoding: "+E)}else typeof r=="number"&&(r&=255);if(i<0||this.length<i||this.length<l)throw new RangeError("Out of range index");if(l<=i)return this;var x;if(i>>>=0,l=l===void 0?this.length:l>>>0,r||(r=0),typeof r=="number")for(x=i;x<l;++x)this[x]=r;else{var N=p.isBuffer(r)?r:_t(new p(r,E).toString()),I=N.length;for(x=0;x<l-i;++x)this[x+i]=N[x%I]}return this};var ke=/[^+\/0-9A-Za-z-_]/g;function Ee(r){return r<16?"0"+r.toString(16):r.toString(16)}function _t(r,i){var l;i=i||1/0;for(var E=r.length,C=null,x=[],N=0;N<E;++N){if((l=r.charCodeAt(N))>55295&&l<57344){if(!C){if(l>56319){(i-=3)>-1&&x.push(239,191,189);continue}if(N+1===E){(i-=3)>-1&&x.push(239,191,189);continue}C=l;continue}if(l<56320){(i-=3)>-1&&x.push(239,191,189),C=l;continue}l=65536+(C-55296<<10|l-56320)}else C&&(i-=3)>-1&&x.push(239,191,189);if(C=null,l<128){if((i-=1)<0)break;x.push(l)}else if(l<2048){if((i-=2)<0)break;x.push(l>>6|192,63&l|128)}else if(l<65536){if((i-=3)<0)break;x.push(l>>12|224,l>>6&63|128,63&l|128)}else{if(!(l<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;x.push(l>>18|240,l>>12&63|128,l>>6&63|128,63&l|128)}}return x}function Zt(r){return y.toByteArray(function(i){if((i=function(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}(i).replace(ke,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(r))}function bt(r,i,l,E){for(var C=0;C<E&&!(C+l>=i.length||C>=r.length);++C)i[C+l]=r[C];return C}}).call(this,a(12))},function(e,n,a){var c=a(34);e.exports=function(y){var f=y.xdomain,g=y.xscheme,b=y.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!f||c))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!g&&b)return new XDomainRequest}catch{}if(!f)try{return new self[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}},function(e,n,a){var c=a(2),y=a(1);function f(g){this.path=g.path,this.hostname=g.hostname,this.port=g.port,this.secure=g.secure,this.query=g.query,this.timestampParam=g.timestampParam,this.timestampRequests=g.timestampRequests,this.readyState="",this.agent=g.agent||!1,this.socket=g.socket,this.enablesXDR=g.enablesXDR,this.pfx=g.pfx,this.key=g.key,this.passphrase=g.passphrase,this.cert=g.cert,this.ca=g.ca,this.ciphers=g.ciphers,this.rejectUnauthorized=g.rejectUnauthorized,this.forceNode=g.forceNode,this.isReactNative=g.isReactNative,this.extraHeaders=g.extraHeaders,this.localAddress=g.localAddress}e.exports=f,y(f.prototype),f.prototype.onError=function(g,b){var v=new Error(g);return v.type="TransportError",v.description=b,this.emit("error",v),this},f.prototype.open=function(){return this.readyState!=="closed"&&this.readyState!==""||(this.readyState="opening",this.doOpen()),this},f.prototype.close=function(){return this.readyState!=="opening"&&this.readyState!=="open"||(this.doClose(),this.onClose()),this},f.prototype.send=function(g){if(this.readyState!=="open")throw new Error("Transport not open");this.write(g)},f.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},f.prototype.onData=function(g){var b=c.decodePacket(g,this.socket.binaryType);this.onPacket(b)},f.prototype.onPacket=function(g){this.emit("packet",g)},f.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,n){var a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(y){var f=y,g=y.indexOf("["),b=y.indexOf("]");g!=-1&&b!=-1&&(y=y.substring(0,g)+y.substring(g,b).replace(/:/g,";")+y.substring(b,y.length));for(var v=a.exec(y||""),p={},w=14;w--;)p[c[w]]=v[w]||"";return g!=-1&&b!=-1&&(p.source=f,p.host=p.host.substring(1,p.host.length-1).replace(/;/g,":"),p.authority=p.authority.replace("[","").replace("]","").replace(/;/g,":"),p.ipv6uri=!0),p}},function(e,n,a){(function(c){e.exports=function(b){return y&&c.isBuffer(b)||f&&(b instanceof ArrayBuffer||g(b))};var y=typeof c=="function"&&typeof c.isBuffer=="function",f=typeof ArrayBuffer=="function",g=function(b){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(b):b.buffer instanceof ArrayBuffer}}).call(this,a(7).Buffer)},function(e,n){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}e.exports=a},function(e,n,a){var c=a(32),y=a(19),f=a(1),g=a(5),b=a(20),v=a(21),p=a(0)("socket.io-client:manager"),w=a(18),d=a(46),u=Object.prototype.hasOwnProperty;function o(s,m){if(!(this instanceof o))return new o(s,m);s&&typeof s=="object"&&(m=s,s=void 0),(m=m||{}).path=m.path||"/socket.io",this.nsps={},this.subs=[],this.opts=m,this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor(m.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this.readyState="closed",this.uri=s,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var k=m.parser||g;this.encoder=new k.Encoder,this.decoder=new k.Decoder,this.autoConnect=m.autoConnect!==!1,this.autoConnect&&this.open()}e.exports=o,o.prototype.emitAll=function(){for(var s in this.emit.apply(this,arguments),this.nsps)u.call(this.nsps,s)&&this.nsps[s].emit.apply(this.nsps[s],arguments)},o.prototype.updateSocketIds=function(){for(var s in this.nsps)u.call(this.nsps,s)&&(this.nsps[s].id=this.generateId(s))},o.prototype.generateId=function(s){return(s==="/"?"":s+"#")+this.engine.id},f(o.prototype),o.prototype.reconnection=function(s){return arguments.length?(this._reconnection=!!s,this):this._reconnection},o.prototype.reconnectionAttempts=function(s){return arguments.length?(this._reconnectionAttempts=s,this):this._reconnectionAttempts},o.prototype.reconnectionDelay=function(s){return arguments.length?(this._reconnectionDelay=s,this.backoff&&this.backoff.setMin(s),this):this._reconnectionDelay},o.prototype.randomizationFactor=function(s){return arguments.length?(this._randomizationFactor=s,this.backoff&&this.backoff.setJitter(s),this):this._randomizationFactor},o.prototype.reconnectionDelayMax=function(s){return arguments.length?(this._reconnectionDelayMax=s,this.backoff&&this.backoff.setMax(s),this):this._reconnectionDelayMax},o.prototype.timeout=function(s){return arguments.length?(this._timeout=s,this):this._timeout},o.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},o.prototype.open=o.prototype.connect=function(s,m){if(p("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=c(this.uri,this.opts);var k=this.engine,_=this;this.readyState="opening",this.skipReconnect=!1;var B=b(k,"open",function(){_.onopen(),s&&s()}),R=b(k,"error",function(O){if(p("connect_error"),_.cleanup(),_.readyState="closed",_.emitAll("connect_error",O),s){var P=new Error("Connection error");P.data=O,s(P)}else _.maybeReconnectOnOpen()});if(this._timeout!==!1){var A=this._timeout;p("connect attempt will timeout after %d",A);var S=setTimeout(function(){p("connect attempt timed out after %d",A),B.destroy(),k.close(),k.emit("error","timeout"),_.emitAll("connect_timeout",A)},A);this.subs.push({destroy:function(){clearTimeout(S)}})}return this.subs.push(B),this.subs.push(R),this},o.prototype.onopen=function(){p("open"),this.cleanup(),this.readyState="open",this.emit("open");var s=this.engine;this.subs.push(b(s,"data",v(this,"ondata"))),this.subs.push(b(s,"ping",v(this,"onping"))),this.subs.push(b(s,"pong",v(this,"onpong"))),this.subs.push(b(s,"error",v(this,"onerror"))),this.subs.push(b(s,"close",v(this,"onclose"))),this.subs.push(b(this.decoder,"decoded",v(this,"ondecoded")))},o.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},o.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},o.prototype.ondata=function(s){this.decoder.add(s)},o.prototype.ondecoded=function(s){this.emit("packet",s)},o.prototype.onerror=function(s){p("error",s),this.emitAll("error",s)},o.prototype.socket=function(s,m){var k=this.nsps[s];if(!k){k=new y(this,s,m),this.nsps[s]=k;var _=this;k.on("connecting",B),k.on("connect",function(){k.id=_.generateId(s)}),this.autoConnect&&B()}function B(){~w(_.connecting,k)||_.connecting.push(k)}return k},o.prototype.destroy=function(s){var m=w(this.connecting,s);~m&&this.connecting.splice(m,1),this.connecting.length||this.close()},o.prototype.packet=function(s){p("writing packet %j",s);var m=this;s.query&&s.type===0&&(s.nsp+="?"+s.query),m.encoding?m.packetBuffer.push(s):(m.encoding=!0,this.encoder.encode(s,function(k){for(var _=0;_<k.length;_++)m.engine.write(k[_],s.options);m.encoding=!1,m.processPacketQueue()}))},o.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var s=this.packetBuffer.shift();this.packet(s)}},o.prototype.cleanup=function(){p("cleanup");for(var s=this.subs.length,m=0;m<s;m++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},o.prototype.close=o.prototype.disconnect=function(){p("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},o.prototype.onclose=function(s){p("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",s),this._reconnection&&!this.skipReconnect&&this.reconnect()},o.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var s=this;if(this.backoff.attempts>=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var m=this.backoff.duration();p("will wait %dms before reconnect attempt",m),this.reconnecting=!0;var k=setTimeout(function(){s.skipReconnect||(p("attempting reconnect"),s.emitAll("reconnect_attempt",s.backoff.attempts),s.emitAll("reconnecting",s.backoff.attempts),s.skipReconnect||s.open(function(_){_?(p("reconnect attempt error"),s.reconnecting=!1,s.reconnect(),s.emitAll("reconnect_error",_.data)):(p("reconnect success"),s.onreconnect())}))},m);this.subs.push({destroy:function(){clearTimeout(k)}})}},o.prototype.onreconnect=function(){var s=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",s)}},function(e,n,a){var c=a(8),y=a(35),f=a(42),g=a(43);n.polling=function(b){var v=!1,p=!1,w=b.jsonp!==!1;if(typeof location<"u"){var d=location.protocol==="https:",u=location.port;u||(u=d?443:80),v=b.hostname!==location.hostname||u!==b.port,p=b.secure!==d}if(b.xdomain=v,b.xscheme=p,"open"in new c(b)&&!b.forceJSONP)return new y(b);if(!w)throw new Error("JSONP disabled");return new f(b)},n.websocket=g},function(e,n,a){var c=a(9),y=a(3),f=a(2),g=a(4),b=a(17),v=a(0)("engine.io-client:polling");e.exports=w;var p=new(a(8))({xdomain:!1}).responseType!=null;function w(d){var u=d&&d.forceBase64;p&&!u||(this.supportsBinary=!1),c.call(this,d)}g(w,c),w.prototype.name="polling",w.prototype.doOpen=function(){this.poll()},w.prototype.pause=function(d){var u=this;function o(){v("paused"),u.readyState="paused",d()}if(this.readyState="pausing",this.polling||!this.writable){var s=0;this.polling&&(v("we are currently polling - waiting to pause"),s++,this.once("pollComplete",function(){v("pre-pause polling complete"),--s||o()})),this.writable||(v("we are currently writing - waiting to pause"),s++,this.once("drain",function(){v("pre-pause writing complete"),--s||o()}))}else o()},w.prototype.poll=function(){v("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},w.prototype.onData=function(d){var u=this;v("polling got data %s",d),f.decodePayload(d,this.socket.binaryType,function(o,s,m){if(u.readyState==="opening"&&u.onOpen(),o.type==="close")return u.onClose(),!1;u.onPacket(o)}),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():v('ignoring poll - transport state "%s"',this.readyState))},w.prototype.doClose=function(){var d=this;function u(){v("writing close packet"),d.write([{type:"close"}])}this.readyState==="open"?(v("transport open - closing"),u()):(v("transport not open - deferring close"),this.once("open",u))},w.prototype.write=function(d){var u=this;this.writable=!1;var o=function(){u.writable=!0,u.emit("drain")};f.encodePayload(d,this.supportsBinary,function(s){u.doWrite(s,o)})},w.prototype.uri=function(){var d=this.query||{},u=this.secure?"https":"http",o="";return this.timestampRequests!==!1&&(d[this.timestampParam]=b()),this.supportsBinary||d.sid||(d.b64=1),d=y.encode(d),this.port&&(u==="https"&&Number(this.port)!==443||u==="http"&&Number(this.port)!==80)&&(o=":"+this.port),d.length&&(d="?"+d),u+"://"+(this.hostname.indexOf(":")!==-1?"["+this.hostname+"]":this.hostname)+o+this.path+d}},function(e,n,a){(function(c){var y=a(6),f=Object.prototype.toString,g=typeof Blob=="function"||typeof Blob<"u"&&f.call(Blob)==="[object BlobConstructor]",b=typeof File=="function"||typeof File<"u"&&f.call(File)==="[object FileConstructor]";e.exports=function v(p){if(!p||typeof p!="object")return!1;if(y(p)){for(var w=0,d=p.length;w<d;w++)if(v(p[w]))return!0;return!1}if(typeof c=="function"&&c.isBuffer&&c.isBuffer(p)||typeof ArrayBuffer=="function"&&p instanceof ArrayBuffer||g&&p instanceof Blob||b&&p instanceof File)return!0;if(p.toJSON&&typeof p.toJSON=="function"&&arguments.length===1)return v(p.toJSON(),!0);for(var u in p)if(Object.prototype.hasOwnProperty.call(p,u)&&v(p[u]))return!0;return!1}}).call(this,a(7).Buffer)},function(e,n,a){var c,y="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),f=64,g={},b=0,v=0;function p(d){var u="";do u=y[d%f]+u,d=Math.floor(d/f);while(d>0);return u}function w(){var d=p(+new Date);return d!==c?(b=0,c=d):d+"."+p(b++)}for(;v<f;v++)g[y[v]]=v;w.encode=p,w.decode=function(d){var u=0;for(v=0;v<d.length;v++)u=u*f+g[d.charAt(v)];return u},e.exports=w},function(e,n){var a=[].indexOf;e.exports=function(c,y){if(a)return c.indexOf(y);for(var f=0;f<c.length;++f)if(c[f]===y)return f;return-1}},function(e,n,a){var c=a(5),y=a(1),f=a(45),g=a(20),b=a(21),v=a(0)("socket.io-client:socket"),p=a(3),w=a(16);e.exports=o;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},u=y.prototype.emit;function o(s,m,k){this.io=s,this.nsp=m,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},k&&k.query&&(this.query=k.query),this.io.autoConnect&&this.open()}y(o.prototype),o.prototype.subEvents=function(){if(!this.subs){var s=this.io;this.subs=[g(s,"open",b(this,"onopen")),g(s,"packet",b(this,"onpacket")),g(s,"close",b(this,"onclose"))]}},o.prototype.open=o.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},o.prototype.send=function(){var s=f(arguments);return s.unshift("message"),this.emit.apply(this,s),this},o.prototype.emit=function(s){if(d.hasOwnProperty(s))return u.apply(this,arguments),this;var m=f(arguments),k={type:(this.flags.binary!==void 0?this.flags.binary:w(m))?c.BINARY_EVENT:c.EVENT,data:m,options:{}};return k.options.compress=!this.flags||this.flags.compress!==!1,typeof m[m.length-1]=="function"&&(v("emitting packet with ack id %d",this.ids),this.acks[this.ids]=m.pop(),k.id=this.ids++),this.connected?this.packet(k):this.sendBuffer.push(k),this.flags={},this},o.prototype.packet=function(s){s.nsp=this.nsp,this.io.packet(s)},o.prototype.onopen=function(){if(v("transport is open - connecting"),this.nsp!=="/")if(this.query){var s=typeof this.query=="object"?p.encode(this.query):this.query;v("sending connect packet with query %s",s),this.packet({type:c.CONNECT,query:s})}else this.packet({type:c.CONNECT})},o.prototype.onclose=function(s){v("close (%s)",s),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",s)},o.prototype.onpacket=function(s){var m=s.nsp===this.nsp,k=s.type===c.ERROR&&s.nsp==="/";if(m||k)switch(s.type){case c.CONNECT:this.onconnect();break;case c.EVENT:case c.BINARY_EVENT:this.onevent(s);break;case c.ACK:case c.BINARY_ACK:this.onack(s);break;case c.DISCONNECT:this.ondisconnect();break;case c.ERROR:this.emit("error",s.data)}},o.prototype.onevent=function(s){var m=s.data||[];v("emitting event %j",m),s.id!=null&&(v("attaching ack callback to event"),m.push(this.ack(s.id))),this.connected?u.apply(this,m):this.receiveBuffer.push(m)},o.prototype.ack=function(s){var m=this,k=!1;return function(){if(!k){k=!0;var _=f(arguments);v("sending ack %j",_),m.packet({type:w(_)?c.BINARY_ACK:c.ACK,id:s,data:_})}}},o.prototype.onack=function(s){var m=this.acks[s.id];typeof m=="function"?(v("calling ack %s with %j",s.id,s.data),m.apply(this,s.data),delete this.acks[s.id]):v("bad ack %s",s.id)},o.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},o.prototype.emitBuffered=function(){var s;for(s=0;s<this.receiveBuffer.length;s++)u.apply(this,this.receiveBuffer[s]);for(this.receiveBuffer=[],s=0;s<this.sendBuffer.length;s++)this.packet(this.sendBuffer[s]);this.sendBuffer=[]},o.prototype.ondisconnect=function(){v("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},o.prototype.destroy=function(){if(this.subs){for(var s=0;s<this.subs.length;s++)this.subs[s].destroy();this.subs=null}this.io.destroy(this)},o.prototype.close=o.prototype.disconnect=function(){return this.connected&&(v("performing disconnect (%s)",this.nsp),this.packet({type:c.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},o.prototype.compress=function(s){return this.flags.compress=s,this},o.prototype.binary=function(s){return this.flags.binary=s,this}},function(e,n){e.exports=function(a,c,y){return a.on(c,y),{destroy:function(){a.removeListener(c,y)}}}},function(e,n){var a=[].slice;e.exports=function(c,y){if(typeof y=="string"&&(y=c[y]),typeof y!="function")throw new Error("bind() requires a function");var f=a.call(arguments,2);return function(){return y.apply(c,f.concat(a.call(arguments)))}}},function(e,n,a){var c=a(24),y=a(5),f=a(13),g=a(0)("socket.io-client");e.exports=n=v;var b=n.managers={};function v(p,w){typeof p=="object"&&(w=p,p=void 0),w=w||{};var d,u=c(p),o=u.source,s=u.id,m=u.path,k=b[s]&&m in b[s].nsps;return w.forceNew||w["force new connection"]||w.multiplex===!1||k?(g("ignoring socket cache for %s",o),d=f(o,w)):(b[s]||(g("new io instance for %s",o),b[s]=f(o,w)),d=b[s]),u.query&&!w.query&&(w.query=u.query),d.socket(u.path,w)}n.protocol=y.protocol,n.connect=v,n.Manager=a(13),n.Socket=a(19)},function(e,n,a){e.exports=a(47)},function(e,n,a){var c=a(10),y=a(0)("socket.io-client:url");e.exports=function(f,g){var b=f;g=g||typeof location<"u"&&location,f==null&&(f=g.protocol+"//"+g.host),typeof f=="string"&&(f.charAt(0)==="/"&&(f=f.charAt(1)==="/"?g.protocol+f:g.host+f),/^(https?|wss?):\/\//.test(f)||(y("protocol-less url %s",f),f=g!==void 0?g.protocol+"//"+f:"https://"+f),y("parse %s",f),b=c(f)),b.port||(/^(http|ws)$/.test(b.protocol)?b.port="80":/^(http|ws)s$/.test(b.protocol)&&(b.port="443")),b.path=b.path||"/";var v=b.host.indexOf(":")!==-1?"["+b.host+"]":b.host;return b.id=b.protocol+"://"+v+":"+b.port,b.href=b.protocol+"://"+v+(g&&g.port===b.port?"":":"+b.port),b}},function(e,n){var a,c,y=e.exports={};function f(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function b(k){if(a===setTimeout)return setTimeout(k,0);if((a===f||!a)&&setTimeout)return a=setTimeout,setTimeout(k,0);try{return a(k,0)}catch{try{return a.call(null,k,0)}catch{return a.call(this,k,0)}}}(function(){try{a=typeof setTimeout=="function"?setTimeout:f}catch{a=f}try{c=typeof clearTimeout=="function"?clearTimeout:g}catch{c=g}})();var v,p=[],w=!1,d=-1;function u(){w&&v&&(w=!1,v.length?p=v.concat(p):d=-1,p.length&&o())}function o(){if(!w){var k=b(u);w=!0;for(var _=p.length;_;){for(v=p,p=[];++d<_;)v&&v[d].run();d=-1,_=p.length}v=null,w=!1,function(B){if(c===clearTimeout)return clearTimeout(B);if((c===g||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(B);try{c(B)}catch{try{return c.call(null,B)}catch{return c.call(this,B)}}}(k)}}function s(k,_){this.fun=k,this.array=_}function m(){}y.nextTick=function(k){var _=new Array(arguments.length-1);if(arguments.length>1)for(var B=1;B<arguments.length;B++)_[B-1]=arguments[B];p.push(new s(k,_)),p.length!==1||w||b(o)},s.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={},y.on=m,y.addListener=m,y.once=m,y.off=m,y.removeListener=m,y.removeAllListeners=m,y.emit=m,y.prependListener=m,y.prependOnceListener=m,y.listeners=function(k){return[]},y.binding=function(k){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(k){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},function(e,n,a){function c(f){var g;function b(){if(b.enabled){var v=b,p=+new Date,w=p-(g||p);v.diff=w,v.prev=g,v.curr=p,g=p;for(var d=new Array(arguments.length),u=0;u<d.length;u++)d[u]=arguments[u];d[0]=n.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");var o=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,function(s,m){if(s==="%%")return s;o++;var k=n.formatters[m];if(typeof k=="function"){var _=d[o];s=k.call(v,_),d.splice(o,1),o--}return s}),n.formatArgs.call(v,d),(b.log||n.log||console.log.bind(console)).apply(v,d)}}return b.namespace=f,b.enabled=n.enabled(f),b.useColors=n.useColors(),b.color=function(v){var p,w=0;for(p in v)w=(w<<5)-w+v.charCodeAt(p),w|=0;return n.colors[Math.abs(w)%n.colors.length]}(f),b.destroy=y,typeof n.init=="function"&&n.init(b),n.instances.push(b),b}function y(){var f=n.instances.indexOf(this);return f!==-1&&(n.instances.splice(f,1),!0)}(n=e.exports=c.debug=c.default=c).coerce=function(f){return f instanceof Error?f.stack||f.message:f},n.disable=function(){n.enable("")},n.enable=function(f){var g;n.save(f),n.names=[],n.skips=[];var b=(typeof f=="string"?f:"").split(/[\s,]+/),v=b.length;for(g=0;g<v;g++)b[g]&&((f=b[g].replace(/\*/g,".*?"))[0]==="-"?n.skips.push(new RegExp("^"+f.substr(1)+"$")):n.names.push(new RegExp("^"+f+"$")));for(g=0;g<n.instances.length;g++){var p=n.instances[g];p.enabled=n.enabled(p.namespace)}},n.enabled=function(f){if(f[f.length-1]==="*")return!0;var g,b;for(g=0,b=n.skips.length;g<b;g++)if(n.skips[g].test(f))return!1;for(g=0,b=n.names.length;g<b;g++)if(n.names[g].test(f))return!0;return!1},n.humanize=a(27),n.instances=[],n.names=[],n.skips=[],n.formatters={}},function(e,n){var a=1e3,c=60*a,y=60*c,f=24*y,g=365.25*f;function b(v,p,w){if(!(v<p))return v<1.5*p?Math.floor(v/p)+" "+w:Math.ceil(v/p)+" "+w+"s"}e.exports=function(v,p){p=p||{};var w,d=typeof v;if(d==="string"&&v.length>0)return function(u){if(!((u=String(u)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(u);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*g;case"days":case"day":case"d":return s*f;case"hours":case"hour":case"hrs":case"hr":case"h":return s*y;case"minutes":case"minute":case"mins":case"min":case"m":return s*c;case"seconds":case"second":case"secs":case"sec":case"s":return s*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(v);if(d==="number"&&isNaN(v)===!1)return p.long?b(w=v,f,"day")||b(w,y,"hour")||b(w,c,"minute")||b(w,a,"second")||w+" ms":function(u){return u>=f?Math.round(u/f)+"d":u>=y?Math.round(u/y)+"h":u>=c?Math.round(u/c)+"m":u>=a?Math.round(u/a)+"s":u+"ms"}(v);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(v))}},function(e,n,a){var c=a(6),y=a(11),f=Object.prototype.toString,g=typeof Blob=="function"||typeof Blob<"u"&&f.call(Blob)==="[object BlobConstructor]",b=typeof File=="function"||typeof File<"u"&&f.call(File)==="[object FileConstructor]";n.deconstructPacket=function(v){var p=[],w=v.data,d=v;return d.data=function u(o,s){if(!o)return o;if(y(o)){var m={_placeholder:!0,num:s.length};return s.push(o),m}if(c(o)){for(var k=new Array(o.length),_=0;_<o.length;_++)k[_]=u(o[_],s);return k}if(typeof o=="object"&&!(o instanceof Date)){var k={};for(var B in o)k[B]=u(o[B],s);return k}return o}(w,p),d.attachments=p.length,{packet:d,buffers:p}},n.reconstructPacket=function(v,p){return v.data=function w(d,u){if(!d)return d;if(d&&d._placeholder)return u[d.num];if(c(d))for(var o=0;o<d.length;o++)d[o]=w(d[o],u);else if(typeof d=="object")for(var s in d)d[s]=w(d[s],u);return d}(v.data,p),v.attachments=void 0,v},n.removeBlobs=function(v,p){var w=0,d=v;(function u(o,s,m){if(!o)return o;if(g&&o instanceof Blob||b&&o instanceof File){w++;var k=new FileReader;k.onload=function(){m?m[s]=this.result:d=this.result,--w||p(d)},k.readAsArrayBuffer(o)}else if(c(o))for(var _=0;_<o.length;_++)u(o[_],_,o);else if(typeof o=="object"&&!y(o))for(var B in o)u(o[B],B,o)})(d),w||p(d)}},function(e,n,a){n.byteLength=function(d){var u=p(d),o=u[0],s=u[1];return 3*(o+s)/4-s},n.toByteArray=function(d){for(var u,o=p(d),s=o[0],m=o[1],k=new f(function(A,S,O){return 3*(S+O)/4-O}(0,s,m)),_=0,B=m>0?s-4:s,R=0;R<B;R+=4)u=y[d.charCodeAt(R)]<<18|y[d.charCodeAt(R+1)]<<12|y[d.charCodeAt(R+2)]<<6|y[d.charCodeAt(R+3)],k[_++]=u>>16&255,k[_++]=u>>8&255,k[_++]=255&u;return m===2&&(u=y[d.charCodeAt(R)]<<2|y[d.charCodeAt(R+1)]>>4,k[_++]=255&u),m===1&&(u=y[d.charCodeAt(R)]<<10|y[d.charCodeAt(R+1)]<<4|y[d.charCodeAt(R+2)]>>2,k[_++]=u>>8&255,k[_++]=255&u),k},n.fromByteArray=function(d){for(var u,o=d.length,s=o%3,m=[],k=0,_=o-s;k<_;k+=16383)m.push(w(d,k,k+16383>_?_:k+16383));return s===1?(u=d[o-1],m.push(c[u>>2]+c[u<<4&63]+"==")):s===2&&(u=(d[o-2]<<8)+d[o-1],m.push(c[u>>10]+c[u>>4&63]+c[u<<2&63]+"=")),m.join("")};for(var c=[],y=[],f=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,v=g.length;b<v;++b)c[b]=g[b],y[g.charCodeAt(b)]=b;function p(d){var u=d.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=d.indexOf("=");return o===-1&&(o=u),[o,o===u?0:4-o%4]}function w(d,u,o){for(var s,m,k=[],_=u;_<o;_+=3)s=(d[_]<<16&16711680)+(d[_+1]<<8&65280)+(255&d[_+2]),k.push(c[(m=s)>>18&63]+c[m>>12&63]+c[m>>6&63]+c[63&m]);return k.join("")}y[45]=62,y[95]=63},function(e,n){n.read=function(a,c,y,f,g){var b,v,p=8*g-f-1,w=(1<<p)-1,d=w>>1,u=-7,o=y?g-1:0,s=y?-1:1,m=a[c+o];for(o+=s,b=m&(1<<-u)-1,m>>=-u,u+=p;u>0;b=256*b+a[c+o],o+=s,u-=8);for(v=b&(1<<-u)-1,b>>=-u,u+=f;u>0;v=256*v+a[c+o],o+=s,u-=8);if(b===0)b=1-d;else{if(b===w)return v?NaN:1/0*(m?-1:1);v+=Math.pow(2,f),b-=d}return(m?-1:1)*v*Math.pow(2,b-f)},n.write=function(a,c,y,f,g,b){var v,p,w,d=8*b-g-1,u=(1<<d)-1,o=u>>1,s=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=f?0:b-1,k=f?1:-1,_=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(p=isNaN(c)?1:0,v=u):(v=Math.floor(Math.log(c)/Math.LN2),c*(w=Math.pow(2,-v))<1&&(v--,w*=2),(c+=v+o>=1?s/w:s*Math.pow(2,1-o))*w>=2&&(v++,w/=2),v+o>=u?(p=0,v=u):v+o>=1?(p=(c*w-1)*Math.pow(2,g),v+=o):(p=c*Math.pow(2,o-1)*Math.pow(2,g),v=0));g>=8;a[y+m]=255&p,m+=k,p/=256,g-=8);for(v=v<<g|p,d+=g;d>0;a[y+m]=255&v,m+=k,v/=256,d-=8);a[y+m-k]|=128*_}},function(e,n){var a={}.toString;e.exports=Array.isArray||function(c){return a.call(c)=="[object Array]"}},function(e,n,a){e.exports=a(33),e.exports.parser=a(2)},function(e,n,a){var c=a(14),y=a(1),f=a(0)("engine.io-client:socket"),g=a(18),b=a(2),v=a(10),p=a(3);function w(d,u){if(!(this instanceof w))return new w(d,u);u=u||{},d&&typeof d=="object"&&(u=d,d=null),d?(d=v(d),u.hostname=d.host,u.secure=d.protocol==="https"||d.protocol==="wss",u.port=d.port,d.query&&(u.query=d.query)):u.host&&(u.hostname=v(u.host).host),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.agent=u.agent||!1,this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=u.query||{},typeof this.query=="string"&&(this.query=p.decode(this.query)),this.upgrade=u.upgrade!==!1,this.path=(u.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!u.forceJSONP,this.jsonp=u.jsonp!==!1,this.forceBase64=!!u.forceBase64,this.enablesXDR=!!u.enablesXDR,this.timestampParam=u.timestampParam||"t",this.timestampRequests=u.timestampRequests,this.transports=u.transports||["polling","websocket"],this.transportOptions=u.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=u.policyPort||843,this.rememberUpgrade=u.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=u.onlyBinaryUpgrades,this.perMessageDeflate=u.perMessageDeflate!==!1&&(u.perMessageDeflate||{}),this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=u.pfx||null,this.key=u.key||null,this.passphrase=u.passphrase||null,this.cert=u.cert||null,this.ca=u.ca||null,this.ciphers=u.ciphers||null,this.rejectUnauthorized=u.rejectUnauthorized===void 0||u.rejectUnauthorized,this.forceNode=!!u.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(u.extraHeaders&&Object.keys(u.extraHeaders).length>0&&(this.extraHeaders=u.extraHeaders),u.localAddress&&(this.localAddress=u.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=w,w.priorWebsocketSuccess=!1,y(w.prototype),w.protocol=b.protocol,w.Socket=w,w.Transport=a(9),w.transports=a(14),w.parser=a(2),w.prototype.createTransport=function(d){f('creating transport "%s"',d);var u=function(s){var m={};for(var k in s)s.hasOwnProperty(k)&&(m[k]=s[k]);return m}(this.query);u.EIO=b.protocol,u.transport=d;var o=this.transportOptions[d]||{};return this.id&&(u.sid=this.id),new c[d]({query:u,socket:this,agent:o.agent||this.agent,hostname:o.hostname||this.hostname,port:o.port||this.port,secure:o.secure||this.secure,path:o.path||this.path,forceJSONP:o.forceJSONP||this.forceJSONP,jsonp:o.jsonp||this.jsonp,forceBase64:o.forceBase64||this.forceBase64,enablesXDR:o.enablesXDR||this.enablesXDR,timestampRequests:o.timestampRequests||this.timestampRequests,timestampParam:o.timestampParam||this.timestampParam,policyPort:o.policyPort||this.policyPort,pfx:o.pfx||this.pfx,key:o.key||this.key,passphrase:o.passphrase||this.passphrase,cert:o.cert||this.cert,ca:o.ca||this.ca,ciphers:o.ciphers||this.ciphers,rejectUnauthorized:o.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:o.perMessageDeflate||this.perMessageDeflate,extraHeaders:o.extraHeaders||this.extraHeaders,forceNode:o.forceNode||this.forceNode,localAddress:o.localAddress||this.localAddress,requestTimeout:o.requestTimeout||this.requestTimeout,protocols:o.protocols||void 0,isReactNative:this.isReactNative})},w.prototype.open=function(){var d;if(this.rememberUpgrade&&w.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else{if(this.transports.length===0){var u=this;return void setTimeout(function(){u.emit("error","No transports available")},0)}d=this.transports[0]}this.readyState="opening";try{d=this.createTransport(d)}catch{return this.transports.shift(),void this.open()}d.open(),this.setTransport(d)},w.prototype.setTransport=function(d){f("setting transport %s",d.name);var u=this;this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",function(){u.onDrain()}).on("packet",function(o){u.onPacket(o)}).on("error",function(o){u.onError(o)}).on("close",function(){u.onClose("transport close")})},w.prototype.probe=function(d){f('probing transport "%s"',d);var u=this.createTransport(d,{probe:1}),o=!1,s=this;function m(){if(s.onlyBinaryUpgrades){var O=!this.supportsBinary&&s.transport.supportsBinary;o=o||O}o||(f('probe transport "%s" opened',d),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(P){if(!o)if(P.type==="pong"&&P.data==="probe"){if(f('probe transport "%s" pong',d),s.upgrading=!0,s.emit("upgrading",u),!u)return;w.priorWebsocketSuccess=u.name==="websocket",f('pausing current transport "%s"',s.transport.name),s.transport.pause(function(){o||s.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),S(),s.setTransport(u),u.send([{type:"upgrade"}]),s.emit("upgrade",u),u=null,s.upgrading=!1,s.flush())})}else{f('probe transport "%s" failed',d);var L=new Error("probe error");L.transport=u.name,s.emit("upgradeError",L)}}))}function k(){o||(o=!0,S(),u.close(),u=null)}function _(O){var P=new Error("probe error: "+O);P.transport=u.name,k(),f('probe transport "%s" failed because of error: %s',d,O),s.emit("upgradeError",P)}function B(){_("transport closed")}function R(){_("socket closed")}function A(O){u&&O.name!==u.name&&(f('"%s" works - aborting "%s"',O.name,u.name),k())}function S(){u.removeListener("open",m),u.removeListener("error",_),u.removeListener("close",B),s.removeListener("close",R),s.removeListener("upgrading",A)}w.priorWebsocketSuccess=!1,u.once("open",m),u.once("error",_),u.once("close",B),this.once("close",R),this.once("upgrading",A),u.open()},w.prototype.onOpen=function(){if(f("socket open"),this.readyState="open",w.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){f("starting upgrade probes");for(var d=0,u=this.upgrades.length;d<u;d++)this.probe(this.upgrades[d])}},w.prototype.onPacket=function(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emit("packet",d),this.emit("heartbeat"),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var u=new Error("server error");u.code=d.data,this.onError(u);break;case"message":this.emit("data",d.data),this.emit("message",d.data)}else f('packet received with socket readyState "%s"',this.readyState)},w.prototype.onHandshake=function(d){this.emit("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},w.prototype.onHeartbeat=function(d){clearTimeout(this.pingTimeoutTimer);var u=this;u.pingTimeoutTimer=setTimeout(function(){u.readyState!=="closed"&&u.onClose("ping timeout")},d||u.pingInterval+u.pingTimeout)},w.prototype.setPing=function(){var d=this;clearTimeout(d.pingIntervalTimer),d.pingIntervalTimer=setTimeout(function(){f("writing ping packet - expecting pong within %sms",d.pingTimeout),d.ping(),d.onHeartbeat(d.pingTimeout)},d.pingInterval)},w.prototype.ping=function(){var d=this;this.sendPacket("ping",function(){d.emit("ping")})},w.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},w.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(f("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},w.prototype.write=w.prototype.send=function(d,u,o){return this.sendPacket("message",d,u,o),this},w.prototype.sendPacket=function(d,u,o,s){if(typeof u=="function"&&(s=u,u=void 0),typeof o=="function"&&(s=o,o=null),this.readyState!=="closing"&&this.readyState!=="closed"){(o=o||{}).compress=o.compress!==!1;var m={type:d,data:u,options:o};this.emit("packetCreate",m),this.writeBuffer.push(m),s&&this.once("flush",s),this.flush()}},w.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var d=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?s():u()}):this.upgrading?s():u()}function u(){d.onClose("forced close"),f("socket closing - telling transport to close"),d.transport.close()}function o(){d.removeListener("upgrade",o),d.removeListener("upgradeError",o),u()}function s(){d.once("upgrade",o),d.once("upgradeError",o)}return this},w.prototype.onError=function(d){f("socket error %j",d),w.priorWebsocketSuccess=!1,this.emit("error",d),this.onClose("transport error",d)},w.prototype.onClose=function(d,u){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",d,u),this.writeBuffer=[],this.prevBufferLen=0)},w.prototype.filterUpgrades=function(d){for(var u=[],o=0,s=d.length;o<s;o++)~g(this.transports,d[o])&&u.push(d[o]);return u}},function(e,n){try{e.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{e.exports=!1}},function(e,n,a){var c=a(8),y=a(15),f=a(1),g=a(4),b=a(0)("engine.io-client:polling-xhr");function v(){}function p(o){if(y.call(this,o),this.requestTimeout=o.requestTimeout,this.extraHeaders=o.extraHeaders,typeof location<"u"){var s=location.protocol==="https:",m=location.port;m||(m=s?443:80),this.xd=typeof location<"u"&&o.hostname!==location.hostname||m!==o.port,this.xs=o.secure!==s}}function w(o){this.method=o.method||"GET",this.uri=o.uri,this.xd=!!o.xd,this.xs=!!o.xs,this.async=o.async!==!1,this.data=o.data!==void 0?o.data:null,this.agent=o.agent,this.isBinary=o.isBinary,this.supportsBinary=o.supportsBinary,this.enablesXDR=o.enablesXDR,this.requestTimeout=o.requestTimeout,this.pfx=o.pfx,this.key=o.key,this.passphrase=o.passphrase,this.cert=o.cert,this.ca=o.ca,this.ciphers=o.ciphers,this.rejectUnauthorized=o.rejectUnauthorized,this.extraHeaders=o.extraHeaders,this.create()}if(e.exports=p,e.exports.Request=w,g(p,y),p.prototype.supportsBinary=!0,p.prototype.request=function(o){return(o=o||{}).uri=this.uri(),o.xd=this.xd,o.xs=this.xs,o.agent=this.agent||!1,o.supportsBinary=this.supportsBinary,o.enablesXDR=this.enablesXDR,o.pfx=this.pfx,o.key=this.key,o.passphrase=this.passphrase,o.cert=this.cert,o.ca=this.ca,o.ciphers=this.ciphers,o.rejectUnauthorized=this.rejectUnauthorized,o.requestTimeout=this.requestTimeout,o.extraHeaders=this.extraHeaders,new w(o)},p.prototype.doWrite=function(o,s){var m=typeof o!="string"&&o!==void 0,k=this.request({method:"POST",data:o,isBinary:m}),_=this;k.on("success",s),k.on("error",function(B){_.onError("xhr post error",B)}),this.sendXhr=k},p.prototype.doPoll=function(){b("xhr poll");var o=this.request(),s=this;o.on("data",function(m){s.onData(m)}),o.on("error",function(m){s.onError("xhr poll error",m)}),this.pollXhr=o},f(w.prototype),w.prototype.create=function(){var o={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};o.pfx=this.pfx,o.key=this.key,o.passphrase=this.passphrase,o.cert=this.cert,o.ca=this.ca,o.ciphers=this.ciphers,o.rejectUnauthorized=this.rejectUnauthorized;var s=this.xhr=new c(o),m=this;try{b("xhr open %s: %s",this.method,this.uri),s.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var k in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(k)&&s.setRequestHeader(k,this.extraHeaders[k])}catch{}if(this.method==="POST")try{this.isBinary?s.setRequestHeader("Content-type","application/octet-stream"):s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in s&&(s.withCredentials=!0),this.requestTimeout&&(s.timeout=this.requestTimeout),this.hasXDR()?(s.onload=function(){m.onLoad()},s.onerror=function(){m.onError(s.responseText)}):s.onreadystatechange=function(){if(s.readyState===2)try{var _=s.getResponseHeader("Content-Type");m.supportsBinary&&_==="application/octet-stream"&&(s.responseType="arraybuffer")}catch{}s.readyState===4&&(s.status===200||s.status===1223?m.onLoad():setTimeout(function(){m.onError(s.status)},0))},b("xhr data %s",this.data),s.send(this.data)}catch(_){return void setTimeout(function(){m.onError(_)},0)}typeof document<"u"&&(this.index=w.requestsCount++,w.requests[this.index]=this)},w.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},w.prototype.onData=function(o){this.emit("data",o),this.onSuccess()},w.prototype.onError=function(o){this.emit("error",o),this.cleanup(!0)},w.prototype.cleanup=function(o){if(this.xhr!==void 0&&this.xhr!==null){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=v:this.xhr.onreadystatechange=v,o)try{this.xhr.abort()}catch{}typeof document<"u"&&delete w.requests[this.index],this.xhr=null}},w.prototype.onLoad=function(){var o;try{var s;try{s=this.xhr.getResponseHeader("Content-Type")}catch{}o=s==="application/octet-stream"&&this.xhr.response||this.xhr.responseText}catch(m){this.onError(m)}o!=null&&this.onData(o)},w.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},w.prototype.abort=function(){this.cleanup()},w.requestsCount=0,w.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",u);else if(typeof addEventListener=="function"){var d="onpagehide"in self?"pagehide":"unload";addEventListener(d,u,!1)}}function u(){for(var o in w.requests)w.requests.hasOwnProperty(o)&&w.requests[o].abort()}},function(e,n){e.exports=Object.keys||function(a){var c=[],y=Object.prototype.hasOwnProperty;for(var f in a)y.call(a,f)&&c.push(f);return c}},function(e,n){e.exports=function(a,c,y){var f=a.byteLength;if(c=c||0,y=y||f,a.slice)return a.slice(c,y);if(c<0&&(c+=f),y<0&&(y+=f),y>f&&(y=f),c>=f||c>=y||f===0)return new ArrayBuffer(0);for(var g=new Uint8Array(a),b=new Uint8Array(y-c),v=c,p=0;v<y;v++,p++)b[p]=g[v];return b.buffer}},function(e,n){function a(){}e.exports=function(c,y,f){var g=!1;return f=f||a,b.count=c,c===0?y():b;function b(v,p){if(b.count<=0)throw new Error("after called too many times");--b.count,v?(g=!0,y(v),y=f):b.count!==0||g||y(null,p)}}},function(e,n){/*! https://mths.be/utf8js v2.1.2 by @mathias */var a,c,y,f=String.fromCharCode;function g(u){for(var o,s,m=[],k=0,_=u.length;k<_;)(o=u.charCodeAt(k++))>=55296&&o<=56319&&k<_?(64512&(s=u.charCodeAt(k++)))==56320?m.push(((1023&o)<<10)+(1023&s)+65536):(m.push(o),k--):m.push(o);return m}function b(u,o){if(u>=55296&&u<=57343){if(o)throw Error("Lone surrogate U+"+u.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function v(u,o){return f(u>>o&63|128)}function p(u,o){if(!(4294967168&u))return f(u);var s="";return 4294965248&u?4294901760&u?!(4292870144&u)&&(s=f(u>>18&7|240),s+=v(u,12),s+=v(u,6)):(b(u,o)||(u=65533),s=f(u>>12&15|224),s+=v(u,6)):s=f(u>>6&31|192),s+=f(63&u|128)}function w(){if(y>=c)throw Error("Invalid byte index");var u=255&a[y];if(y++,(192&u)==128)return 63&u;throw Error("Invalid continuation byte")}function d(u){var o,s;if(y>c)throw Error("Invalid byte index");if(y==c)return!1;if(o=255&a[y],y++,(128&o)==0)return o;if((224&o)==192){if((s=(31&o)<<6|w())>=128)return s;throw Error("Invalid continuation byte")}if((240&o)==224){if((s=(15&o)<<12|w()<<6|w())>=2048)return b(s,u)?s:65533;throw Error("Invalid continuation byte")}if((248&o)==240&&(s=(7&o)<<18|w()<<12|w()<<6|w())>=65536&&s<=1114111)return s;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(u,o){for(var s=(o=o||{}).strict!==!1,m=g(u),k=m.length,_=-1,B="";++_<k;)B+=p(m[_],s);return B},decode:function(u,o){var s=(o=o||{}).strict!==!1;a=g(u),c=a.length,y=0;for(var m,k=[];(m=d(s))!==!1;)k.push(m);return function(_){for(var B,R=_.length,A=-1,S="";++A<R;)(B=_[A])>65535&&(S+=f((B-=65536)>>>10&1023|55296),B=56320|1023&B),S+=f(B);return S}(k)}}},function(e,n){(function(){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=new Uint8Array(256),y=0;y<a.length;y++)c[a.charCodeAt(y)]=y;n.encode=function(f){var g,b=new Uint8Array(f),v=b.length,p="";for(g=0;g<v;g+=3)p+=a[b[g]>>2],p+=a[(3&b[g])<<4|b[g+1]>>4],p+=a[(15&b[g+1])<<2|b[g+2]>>6],p+=a[63&b[g+2]];return v%3==2?p=p.substring(0,p.length-1)+"=":v%3==1&&(p=p.substring(0,p.length-2)+"=="),p},n.decode=function(f){var g,b,v,p,w,d=.75*f.length,u=f.length,o=0;f[f.length-1]==="="&&(d--,f[f.length-2]==="="&&d--);var s=new ArrayBuffer(d),m=new Uint8Array(s);for(g=0;g<u;g+=4)b=c[f.charCodeAt(g)],v=c[f.charCodeAt(g+1)],p=c[f.charCodeAt(g+2)],w=c[f.charCodeAt(g+3)],m[o++]=b<<2|v>>4,m[o++]=(15&v)<<4|p>>2,m[o++]=(3&p)<<6|63&w;return s}})()},function(e,n){var a=a!==void 0?a:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"&&MozBlobBuilder,c=function(){try{return new Blob(["hi"]).size===2}catch{return!1}}(),y=c&&function(){try{return new Blob([new Uint8Array([1,2])]).size===2}catch{return!1}}(),f=a&&a.prototype.append&&a.prototype.getBlob;function g(p){return p.map(function(w){if(w.buffer instanceof ArrayBuffer){var d=w.buffer;if(w.byteLength!==d.byteLength){var u=new Uint8Array(w.byteLength);u.set(new Uint8Array(d,w.byteOffset,w.byteLength)),d=u.buffer}return d}return w})}function b(p,w){w=w||{};var d=new a;return g(p).forEach(function(u){d.append(u)}),w.type?d.getBlob(w.type):d.getBlob()}function v(p,w){return new Blob(g(p),w||{})}typeof Blob<"u"&&(b.prototype=Blob.prototype,v.prototype=Blob.prototype),e.exports=c?y?Blob:v:f?b:void 0},function(e,n,a){(function(c){var y=a(15),f=a(4);e.exports=d;var g,b=/\n/g,v=/\\n/g;function p(){}function w(){return typeof self<"u"?self:typeof window<"u"?window:c!==void 0?c:{}}function d(u){if(y.call(this,u),this.query=this.query||{},!g){var o=w();g=o.___eio=o.___eio||[]}this.index=g.length;var s=this;g.push(function(m){s.onData(m)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){s.script&&(s.script.onerror=p)},!1)}f(d,y),d.prototype.supportsBinary=!1,d.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),y.prototype.doClose.call(this)},d.prototype.doPoll=function(){var u=this,o=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),o.async=!0,o.src=this.uri(),o.onerror=function(m){u.onError("jsonp poll error",m)};var s=document.getElementsByTagName("script")[0];s?s.parentNode.insertBefore(o,s):(document.head||document.body).appendChild(o),this.script=o,typeof navigator<"u"&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var m=document.createElement("iframe");document.body.appendChild(m),document.body.removeChild(m)},100)},d.prototype.doWrite=function(u,o){var s=this;if(!this.form){var m,k=document.createElement("form"),_=document.createElement("textarea"),B=this.iframeId="eio_iframe_"+this.index;k.className="socketio",k.style.position="absolute",k.style.top="-1000px",k.style.left="-1000px",k.target=B,k.method="POST",k.setAttribute("accept-charset","utf-8"),_.name="d",k.appendChild(_),document.body.appendChild(k),this.form=k,this.area=_}function R(){A(),o()}function A(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(O){s.onError("jsonp polling iframe removal error",O)}try{var S='<iframe src="javascript:0" name="'+s.iframeId+'">';m=document.createElement(S)}catch{(m=document.createElement("iframe")).name=s.iframeId,m.src="javascript:0"}m.id=s.iframeId,s.form.appendChild(m),s.iframe=m}this.form.action=this.uri(),A(),u=u.replace(v,`\\
  7. `),this.area.value=u.replace(b,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){s.iframe.readyState==="complete"&&R()}:this.iframe.onload=R}}).call(this,a(12))},function(e,n,a){(function(c){var y,f,g=a(9),b=a(2),v=a(3),p=a(4),w=a(17),d=a(0)("engine.io-client:websocket");if(typeof WebSocket<"u")y=WebSocket;else if(typeof self<"u")y=self.WebSocket||self.MozWebSocket;else try{f=a(44)}catch{}var u=y||f;function o(s){s&&s.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=s.perMessageDeflate,this.usingBrowserWebSocket=y&&!s.forceNode,this.protocols=s.protocols,this.usingBrowserWebSocket||(u=f),g.call(this,s)}e.exports=o,p(o,g),o.prototype.name="websocket",o.prototype.supportsBinary=!0,o.prototype.doOpen=function(){if(this.check()){var s=this.uri(),m=this.protocols,k={agent:this.agent,perMessageDeflate:this.perMessageDeflate};k.pfx=this.pfx,k.key=this.key,k.passphrase=this.passphrase,k.cert=this.cert,k.ca=this.ca,k.ciphers=this.ciphers,k.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(k.headers=this.extraHeaders),this.localAddress&&(k.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?m?new u(s,m):new u(s):new u(s,m,k)}catch(_){return this.emit("error",_)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},o.prototype.addEventListeners=function(){var s=this;this.ws.onopen=function(){s.onOpen()},this.ws.onclose=function(){s.onClose()},this.ws.onmessage=function(m){s.onData(m.data)},this.ws.onerror=function(m){s.onError("websocket error",m)}},o.prototype.write=function(s){var m=this;this.writable=!1;for(var k=s.length,_=0,B=k;_<B;_++)(function(A){b.encodePacket(A,m.supportsBinary,function(S){if(!m.usingBrowserWebSocket){var O={};A.options&&(O.compress=A.options.compress),m.perMessageDeflate&&(typeof S=="string"?c.byteLength(S):S.length)<m.perMessageDeflate.threshold&&(O.compress=!1)}try{m.usingBrowserWebSocket?m.ws.send(S):m.ws.send(S,O)}catch{d("websocket closed before onclose event")}--k||R()})})(s[_]);function R(){m.emit("flush"),setTimeout(function(){m.writable=!0,m.emit("drain")},0)}},o.prototype.onClose=function(){g.prototype.onClose.call(this)},o.prototype.doClose=function(){this.ws!==void 0&&this.ws.close()},o.prototype.uri=function(){var s=this.query||{},m=this.secure?"wss":"ws",k="";return this.port&&(m==="wss"&&Number(this.port)!==443||m==="ws"&&Number(this.port)!==80)&&(k=":"+this.port),this.timestampRequests&&(s[this.timestampParam]=w()),this.supportsBinary||(s.b64=1),(s=v.encode(s)).length&&(s="?"+s),m+"://"+(this.hostname.indexOf(":")!==-1?"["+this.hostname+"]":this.hostname)+k+this.path+s},o.prototype.check=function(){return!(!u||"__initialize"in u&&this.name===o.prototype.name)}}).call(this,a(7).Buffer)},function(e,n){},function(e,n){e.exports=function(a,c){for(var y=[],f=(c=c||0)||0;f<a.length;f++)y[f-c]=a[f];return y}},function(e,n){function a(c){c=c||{},this.ms=c.min||100,this.max=c.max||1e4,this.factor=c.factor||2,this.jitter=c.jitter>0&&c.jitter<=1?c.jitter:0,this.attempts=0}e.exports=a,a.prototype.duration=function(){var c=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var y=Math.random(),f=Math.floor(y*this.jitter*c);c=1&Math.floor(10*y)?c+f:c-f}return 0|Math.min(c,this.max)},a.prototype.reset=function(){this.attempts=0},a.prototype.setMin=function(c){this.ms=c},a.prototype.setMax=function(c){this.max=c},a.prototype.setJitter=function(c){this.jitter=c}},function(e,n,a){a.r(n);var c={beforeCreate(){this.sockets||(this.sockets={}),this.sockets.subscribe=(_,B)=>{this.$vueSocketIo.emitter.addListener(_,B,this)},this.sockets.unsubscribe=_=>{this.$vueSocketIo.emitter.removeListener(_,this)}},mounted(){this.$options.sockets&&Object.keys(this.$options.sockets).forEach(_=>{_!=="subscribe"&&_!=="unsubscribe"&&this.$vueSocketIo.emitter.addListener(_,this.$options.sockets[_],this)})},beforeDestroy(){this.$options.sockets&&Object.keys(this.$options.sockets).forEach(_=>{this.$vueSocketIo.emitter.removeListener(_,this)})}};function y(_,B){for(var R=0;R<B.length;R++){var A=B[R];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(_,A.key,A)}}var f=new(function(){function _(){(function(A,S){if(!(A instanceof S))throw new TypeError("Cannot call a class as a function")})(this,_),this.debug=!1,this.prefix="%cVue-Socket.io: "}var B,R;return B=_,(R=[{key:"info",value:function(A,S=""){this.debug&&window.console.info(this.prefix+`%c${A}`,"color: blue; font-weight: 600","color: #333333",S)}},{key:"error",value:function(){this.debug&&window.console.error(this.prefix,...arguments)}},{key:"warn",value:function(){this.debug&&window.console.warn(this.prefix,...arguments)}},{key:"event",value:function(A,S=""){this.debug&&window.console.info(this.prefix+`%c${A}`,"color: blue; font-weight: 600","color: #333333",S)}}])&&y(B.prototype,R),_}());function g(_,B){for(var R=0;R<B.length;R++){var A=B[R];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(_,A.key,A)}}let b=function(){function _(A,S){(function(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")})(this,_),this.io=A,this.register(),this.emitter=S}var B,R;return B=_,(R=[{key:"register",value:function(){this.io.onevent=A=>{let[S,...O]=A.data;O.length===1&&(O=O[0]),this.onEvent(S,O)},_.staticEvents.forEach(A=>this.io.on(A,S=>this.onEvent(A,S)))}},{key:"onEvent",value:function(A,S){this.emitter.emit(A,S)}}])&&g(B.prototype,R),_}();var v,p,w;function d(_,B){for(var R=0;R<B.length;R++){var A=B[R];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(_,A.key,A)}}w=["connect","error","disconnect","reconnect","reconnect_attempt","reconnecting","reconnect_error","reconnect_failed","connect_error","connect_timeout","connecting","ping","pong"],(p="staticEvents")in(v=b)?Object.defineProperty(v,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[p]=w;let u=function(){function _(A={}){(function(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")})(this,_),f.info(A?"Vuex adapter enabled":"Vuex adapter disabled"),f.info(A.mutationPrefix?"Vuex socket mutations enabled":"Vuex socket mutations disabled"),f.info(A?"Vuex socket actions enabled":"Vuex socket actions disabled"),this.store=A.store,this.actionPrefix=A.actionPrefix?A.actionPrefix:"SOCKET_",this.mutationPrefix=A.mutationPrefix,this.listeners=new Map}var B,R;return B=_,(R=[{key:"addListener",value:function(A,S,O){if(typeof S!="function")throw new Error("callback must be a function");this.listeners.has(A)||this.listeners.set(A,[]),this.listeners.get(A).push({callback:S,component:O}),f.info(`#${A} subscribe, component: ${O.$options.name}`)}},{key:"removeListener",value:function(A,S){if(this.listeners.has(A)){const O=this.listeners.get(A).filter(P=>P.component!==S);O.length>0?this.listeners.set(A,O):this.listeners.delete(A),f.info(`#${A} unsubscribe, component: ${S.$options.name}`)}}},{key:"emit",value:function(A,S){this.listeners.has(A)&&(f.info(`Broadcasting: #${A}, Data:`,S),this.listeners.get(A).forEach(O=>{O.callback.call(O.component,S)})),A!=="ping"&&A!=="pong"&&this.dispatchStore(A,S)}},{key:"dispatchStore",value:function(A,S){if(this.store&&this.store._actions){let O=this.actionPrefix+A;for(let P in this.store._actions)P.split("/").pop()===O&&(f.info(`Dispatching Action: ${P}, Data:`,S),this.store.dispatch(P,S));if(this.mutationPrefix){let P=this.mutationPrefix+A;for(let L in this.store._mutations)L.split("/").pop()===P&&(f.info(`Commiting Mutation: ${L}, Data:`,S),this.store.commit(L,S))}}}}])&&d(B.prototype,R),_}();var o=a(22),s=a.n(o);function m(_,B){for(var R=0;R<B.length;R++){var A=B[R];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(_,A.key,A)}}a.d(n,"default",function(){return k});let k=function(){function _({connection:A,vuex:S,debug:O,options:P}){(function(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")})(this,_),f.debug=O,this.io=this.connect(A,P),this.emitter=new u(S),this.listener=new b(this.io,this.emitter)}var B,R;return B=_,(R=[{key:"install",value:function(A){A.prototype.$socket=this.io,A.prototype.$vueSocketIo=this,A.mixin(c),f.info("Vue-Socket.io plugin enabled")}},{key:"connect",value:function(A,S){if(A&&typeof A=="object")return f.info("Received socket.io-client instance"),A;if(typeof A=="string")return f.info("Received connection string"),this.io=s()(A,S);throw new Error("Unsupported connection type")}}])&&m(B.prototype,R),_}()}]).default})})(Ve);const Z=Object.create(null);Z.open="0";Z.close="1";Z.ping="2";Z.pong="3";Z.message="4";Z.upgrade="5";Z.noop="6";const Et=Object.create(null);Object.keys(Z).forEach(h=>{Et[Z[h]]=h});const It={type:"error",data:"parser error"},he=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ue=typeof ArrayBuffer=="function",fe=h=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(h):h&&h.buffer instanceof ArrayBuffer,Vt=({type:h,data:t},e,n)=>he&&t instanceof Blob?e?n(t):ne(t,n):ue&&(t instanceof ArrayBuffer||fe(t))?e?n(t):ne(new Blob([t]),n):n(Z[h]+(t||"")),ne=(h,t)=>{const e=new FileReader;return e.onload=function(){const n=e.result.split(",")[1];t("b"+(n||""))},e.readAsDataURL(h)};function re(h){return h instanceof Uint8Array?h:h instanceof ArrayBuffer?new Uint8Array(h):new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}let Pt;function ze(h,t){if(he&&h.data instanceof Blob)return h.data.arrayBuffer().then(re).then(t);if(ue&&(h.data instanceof ArrayBuffer||fe(h.data)))return t(re(h.data));Vt(h,!1,e=>{Pt||(Pt=new TextEncoder),t(Pt.encode(e))})}const se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let h=0;h<se.length;h++)yt[se.charCodeAt(h)]=h;const Xe=h=>{let t=h.length*.75,e=h.length,n,a=0,c,y,f,g;h[h.length-1]==="="&&(t--,h[h.length-2]==="="&&t--);const b=new ArrayBuffer(t),v=new Uint8Array(b);for(n=0;n<e;n+=4)c=yt[h.charCodeAt(n)],y=yt[h.charCodeAt(n+1)],f=yt[h.charCodeAt(n+2)],g=yt[h.charCodeAt(n+3)],v[a++]=c<<2|y>>4,v[a++]=(y&15)<<4|f>>2,v[a++]=(f&3)<<6|g&63;return b},We=typeof ArrayBuffer=="function",zt=(h,t)=>{if(typeof h!="string")return{type:"message",data:le(h,t)};const e=h.charAt(0);return e==="b"?{type:"message",data:Je(h.substring(1),t)}:Et[e]?h.length>1?{type:Et[e],data:h.substring(1)}:{type:Et[e]}:It},Je=(h,t)=>{if(We){const e=Xe(h);return le(e,t)}else return{base64:!0,data:h}},le=(h,t)=>{switch(t){case"blob":return h instanceof Blob?h:new Blob([h]);case"arraybuffer":default:return h instanceof ArrayBuffer?h:h.buffer}},pe="",Ke=(h,t)=>{const e=h.length,n=new Array(e);let a=0;h.forEach((c,y)=>{Vt(c,!1,f=>{n[y]=f,++a===e&&t(n.join(pe))})})},Qe=(h,t)=>{const e=h.split(pe),n=[];for(let a=0;a<e.length;a++){const c=zt(e[a],t);if(n.push(c),c.type==="error")break}return n};function Ge(){return new TransformStream({transform(h,t){ze(h,e=>{const n=e.length;let a;if(n<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,n);else if(n<65536){a=new Uint8Array(3);const c=new DataView(a.buffer);c.setUint8(0,126),c.setUint16(1,n)}else{a=new Uint8Array(9);const c=new DataView(a.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(n))}h.data&&typeof h.data!="string"&&(a[0]|=128),t.enqueue(a),t.enqueue(e)})}})}let Nt;function wt(h){return h.reduce((t,e)=>t+e.length,0)}function kt(h,t){if(h[0].length===t)return h.shift();const e=new Uint8Array(t);let n=0;for(let a=0;a<t;a++)e[a]=h[0][n++],n===h[0].length&&(h.shift(),n=0);return h.length&&n<h[0].length&&(h[0]=h[0].slice(n)),e}function Ze(h,t){Nt||(Nt=new TextDecoder);const e=[];let n=0,a=-1,c=!1;return new TransformStream({transform(y,f){for(e.push(y);;){if(n===0){if(wt(e)<1)break;const g=kt(e,1);c=(g[0]&128)===128,a=g[0]&127,a<126?n=3:a===126?n=1:n=2}else if(n===1){if(wt(e)<2)break;const g=kt(e,2);a=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),n=3}else if(n===2){if(wt(e)<8)break;const g=kt(e,8),b=new DataView(g.buffer,g.byteOffset,g.length),v=b.getUint32(0);if(v>Math.pow(2,21)-1){f.enqueue(It);break}a=v*Math.pow(2,32)+b.getUint32(4),n=3}else{if(wt(e)<a)break;const g=kt(e,a);f.enqueue(zt(c?g:Nt.decode(g),t)),n=0}if(a===0||a>h){f.enqueue(It);break}}}})}const de=4;function V(h){if(h)return tn(h)}function tn(h){for(var t in V.prototype)h[t]=V.prototype[t];return h}V.prototype.on=V.prototype.addEventListener=function(h,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+h]=this._callbacks["$"+h]||[]).push(t),this};V.prototype.once=function(h,t){function e(){this.off(h,e),t.apply(this,arguments)}return e.fn=t,this.on(h,e),this};V.prototype.off=V.prototype.removeListener=V.prototype.removeAllListeners=V.prototype.removeEventListener=function(h,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+h];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+h],this;for(var n,a=0;a<e.length;a++)if(n=e[a],n===t||n.fn===t){e.splice(a,1);break}return e.length===0&&delete this._callbacks["$"+h],this};V.prototype.emit=function(h){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),e=this._callbacks["$"+h],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e){e=e.slice(0);for(var n=0,a=e.length;n<a;++n)e[n].apply(this,t)}return this};V.prototype.emitReserved=V.prototype.emit;V.prototype.listeners=function(h){return this._callbacks=this._callbacks||{},this._callbacks["$"+h]||[]};V.prototype.hasListeners=function(h){return!!this.listeners(h).length};const St=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,e)=>e(t,0),K=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),en="arraybuffer";function ye(h,...t){return t.reduce((e,n)=>(h.hasOwnProperty(n)&&(e[n]=h[n]),e),{})}const nn=K.setTimeout,rn=K.clearTimeout;function Rt(h,t){t.useNativeTimers?(h.setTimeoutFn=nn.bind(K),h.clearTimeoutFn=rn.bind(K)):(h.setTimeoutFn=K.setTimeout.bind(K),h.clearTimeoutFn=K.clearTimeout.bind(K))}const sn=1.33;function on(h){return typeof h=="string"?an(h):Math.ceil((h.byteLength||h.size)*sn)}function an(h){let t=0,e=0;for(let n=0,a=h.length;n<a;n++)t=h.charCodeAt(n),t<128?e+=1:t<2048?e+=2:t<55296||t>=57344?e+=3:(n++,e+=4);return e}function ge(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function cn(h){let t="";for(let e in h)h.hasOwnProperty(e)&&(t.length&&(t+="&"),t+=encodeURIComponent(e)+"="+encodeURIComponent(h[e]));return t}function hn(h){let t={},e=h.split("&");for(let n=0,a=e.length;n<a;n++){let c=e[n].split("=");t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}class un extends Error{constructor(t,e,n){super(t),this.description=e,this.context=n,this.type="TransportError"}}class Xt extends V{constructor(t){super(),this.writable=!1,Rt(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,n){return super.emitReserved("error",new un(t,e,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=zt(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const e=cn(t);return e.length?"?"+e:""}}class fn extends Xt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||e()})),this.writable||(n++,this.once("drain",function(){--n||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Qe(t,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ke(t,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=ge()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(t,e)}}let me=!1;try{me=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ln=me;function pn(){}class dn extends fn{constructor(t){if(super(t),typeof location<"u"){const e=location.protocol==="https:";let n=location.port;n||(n=e?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,e){const n=this.request({method:"POST",data:t});n.on("success",e),n.on("error",(a,c)=>{this.onError("xhr post error",a,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(e,n)=>{this.onError("xhr poll error",e,n)}),this.pollXhr=t}}class G extends V{constructor(t,e,n){super(),this.createRequest=t,Rt(this,n),this._opts=n,this._method=n.method||"GET",this._uri=e,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;const e=ye(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(e);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&n.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var a;n.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=G.requestsCount++,G.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=pn,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete G.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}G.requestsCount=0;G.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ie);else if(typeof addEventListener=="function"){const h="onpagehide"in K?"pagehide":"unload";addEventListener(h,ie,!1)}}function ie(){for(let h in G.requests)G.requests.hasOwnProperty(h)&&G.requests[h].abort()}const yn=function(){const h=ve({xdomain:!1});return h&&h.responseType!==null}();class gn extends dn{constructor(t){super(t);const e=t&&t.forceBase64;this.supportsBinary=yn&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new G(ve,this.uri(),t)}}function ve(h){const t=h.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||ln))return new XMLHttpRequest}catch{}if(!t)try{return new K[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _e=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class mn extends Xt{get name(){return"websocket"}doOpen(){const t=this.uri(),e=this.opts.protocols,n=_e?{}:ye(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,n)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const n=t[e],a=e===t.length-1;Vt(n,this.supportsBinary,c=>{try{this.doWrite(n,c)}catch{}a&&St(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=ge()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}const Lt=K.WebSocket||K.MozWebSocket;class vn extends mn{createSocket(t,e,n){return _e?new Lt(t,e,n):e?new Lt(t,e):new Lt(t)}doWrite(t,e){this.ws.send(e)}}class _n extends Xt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const e=Ze(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(e).getReader(),a=Ge();a.readable.pipeTo(t.writable),this._writer=a.writable.getWriter();const c=()=>{n.read().then(({done:f,value:g})=>{f||(this.onPacket(g),c())}).catch(f=>{})};c();const y={type:"open"};this.query.sid&&(y.data=`{"sid":"${this.query.sid}"}`),this._writer.write(y).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const n=t[e],a=e===t.length-1;this._writer.write(n).then(()=>{a&&St(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const bn={websocket:vn,webtransport:_n,polling:gn},wn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ut(h){if(h.length>8e3)throw"URI too long";const t=h,e=h.indexOf("["),n=h.indexOf("]");e!=-1&&n!=-1&&(h=h.substring(0,e)+h.substring(e,n).replace(/:/g,";")+h.substring(n,h.length));let a=wn.exec(h||""),c={},y=14;for(;y--;)c[kn[y]]=a[y]||"";return e!=-1&&n!=-1&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=En(c,c.path),c.queryKey=Cn(c,c.query),c}function En(h,t){const e=/\/{2,9}/g,n=t.replace(e,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Cn(h,t){const e={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,a,c){a&&(e[a]=c)}),e}const Ft=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ct=[];Ft&&addEventListener("offline",()=>{Ct.forEach(h=>h())},!1);class st extends V{constructor(t,e){if(super(),this.binaryType=en,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(e=t,t=null),t){const n=Ut(t);e.hostname=n.host,e.secure=n.protocol==="https"||n.protocol==="wss",e.port=n.port,n.query&&(e.query=n.query)}else e.host&&(e.hostname=Ut(e.host).host);Rt(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(n=>{const a=n.prototype.name;this.transports.push(a),this._transportsByName[a]=n}),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},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=hn(this.opts.query)),Ft&&(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(t){const e=Object.assign({},this.opts.query);e.EIO=de,e.transport=t,this.id&&(e.sid=this.id);const n=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&st.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",st.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const a=this.writeBuffer[n].data;if(a&&(e+=on(a)),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,St(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,n){return this._sendPacket("message",t,e,n),this}send(t,e,n){return this._sendPacket("message",t,e,n),this}_sendPacket(t,e,n,a){if(typeof e=="function"&&(a=e,e=void 0),typeof n=="function"&&(a=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const c={type:t,data:e,options:n};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(st.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){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(),Ft&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=Ct.indexOf(this._offlineEventListener);n!==-1&&Ct.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}st.protocol=de;class An extends st{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),n=!1;st.priorWebsocketSuccess=!1;const a=()=>{n||(e.send([{type:"ping",data:"probe"}]),e.once("packet",p=>{if(!n)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;st.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(v(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=e.name,this.emitReserved("upgradeError",w)}}))};function c(){n||(n=!0,v(),e.close(),e=null)}const y=p=>{const w=new Error("probe error: "+p);w.transport=e.name,c(),this.emitReserved("upgradeError",w)};function f(){y("transport closed")}function g(){y("socket closed")}function b(p){e&&p.name!==e.name&&c()}const v=()=>{e.removeListener("open",a),e.removeListener("error",y),e.removeListener("close",f),this.off("close",g),this.off("upgrading",b)};e.once("open",a),e.once("error",y),e.once("close",f),this.once("close",g),this.once("upgrading",b),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const e=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&e.push(t[n]);return e}}let xn=class extends An{constructor(t,e={}){const n=typeof t=="object"?t:e;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(a=>bn[a]).filter(a=>!!a)),super(t,n)}};function Bn(h,t="",e){let n=h;e=e||typeof location<"u"&&location,h==null&&(h=e.protocol+"//"+e.host),typeof h=="string"&&(h.charAt(0)==="/"&&(h.charAt(1)==="/"?h=e.protocol+h:h=e.host+h),/^(https?|wss?):\/\//.test(h)||(typeof e<"u"?h=e.protocol+"//"+h:h="https://"+h),n=Ut(h)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const c=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+c+":"+n.port+t,n.href=n.protocol+"://"+c+(e&&e.port===n.port?"":":"+n.port),n}const Sn=typeof ArrayBuffer=="function",Rn=h=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(h):h.buffer instanceof ArrayBuffer,be=Object.prototype.toString,Tn=typeof Blob=="function"||typeof Blob<"u"&&be.call(Blob)==="[object BlobConstructor]",On=typeof File=="function"||typeof File<"u"&&be.call(File)==="[object FileConstructor]";function Wt(h){return Sn&&(h instanceof ArrayBuffer||Rn(h))||Tn&&h instanceof Blob||On&&h instanceof File}function At(h,t){if(!h||typeof h!="object")return!1;if(Array.isArray(h)){for(let e=0,n=h.length;e<n;e++)if(At(h[e]))return!0;return!1}if(Wt(h))return!0;if(h.toJSON&&typeof h.toJSON=="function"&&arguments.length===1)return At(h.toJSON(),!0);for(const e in h)if(Object.prototype.hasOwnProperty.call(h,e)&&At(h[e]))return!0;return!1}function Pn(h){const t=[],e=h.data,n=h;return n.data=qt(e,t),n.attachments=t.length,{packet:n,buffers:t}}function qt(h,t){if(!h)return h;if(Wt(h)){const e={_placeholder:!0,num:t.length};return t.push(h),e}else if(Array.isArray(h)){const e=new Array(h.length);for(let n=0;n<h.length;n++)e[n]=qt(h[n],t);return e}else if(typeof h=="object"&&!(h instanceof Date)){const e={};for(const n in h)Object.prototype.hasOwnProperty.call(h,n)&&(e[n]=qt(h[n],t));return e}return h}function Nn(h,t){return h.data=Mt(h.data,t),delete h.attachments,h}function Mt(h,t){if(!h)return h;if(h&&h._placeholder===!0){if(typeof h.num=="number"&&h.num>=0&&h.num<t.length)return t[h.num];throw new Error("illegal attachments")}else if(Array.isArray(h))for(let e=0;e<h.length;e++)h[e]=Mt(h[e],t);else if(typeof h=="object")for(const e in h)Object.prototype.hasOwnProperty.call(h,e)&&(h[e]=Mt(h[e],t));return h}const Ln=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Dn=5;var U;(function(h){h[h.CONNECT=0]="CONNECT",h[h.DISCONNECT=1]="DISCONNECT",h[h.EVENT=2]="EVENT",h[h.ACK=3]="ACK",h[h.CONNECT_ERROR=4]="CONNECT_ERROR",h[h.BINARY_EVENT=5]="BINARY_EVENT",h[h.BINARY_ACK=6]="BINARY_ACK"})(U||(U={}));class In{constructor(t){this.replacer=t}encode(t){return(t.type===U.EVENT||t.type===U.ACK)&&At(t)?this.encodeAsBinary({type:t.type===U.EVENT?U.BINARY_EVENT:U.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===U.BINARY_EVENT||t.type===U.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(e+=t.nsp+","),t.id!=null&&(e+=t.id),t.data!=null&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){const e=Pn(t),n=this.encodeAsString(e.packet),a=e.buffers;return a.unshift(n),a}}function oe(h){return Object.prototype.toString.call(h)==="[object Object]"}class Jt extends V{constructor(t){super(),this.reviver=t}add(t){let e;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const n=e.type===U.BINARY_EVENT;n||e.type===U.BINARY_ACK?(e.type=n?U.EVENT:U.ACK,this.reconstructor=new Un(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(Wt(t)||t.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let e=0;const n={type:Number(t.charAt(0))};if(U[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===U.BINARY_EVENT||n.type===U.BINARY_ACK){const c=e+1;for(;t.charAt(++e)!=="-"&&e!=t.length;);const y=t.substring(c,e);if(y!=Number(y)||t.charAt(e)!=="-")throw new Error("Illegal attachments");n.attachments=Number(y)}if(t.charAt(e+1)==="/"){const c=e+1;for(;++e&&!(t.charAt(e)===","||e===t.length););n.nsp=t.substring(c,e)}else n.nsp="/";const a=t.charAt(e+1);if(a!==""&&Number(a)==a){const c=e+1;for(;++e;){const y=t.charAt(e);if(y==null||Number(y)!=y){--e;break}if(e===t.length)break}n.id=Number(t.substring(c,e+1))}if(t.charAt(++e)){const c=this.tryParse(t.substr(e));if(Jt.isPayloadValid(n.type,c))n.data=c;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,e){switch(t){case U.CONNECT:return oe(e);case U.DISCONNECT:return e===void 0;case U.CONNECT_ERROR:return typeof e=="string"||oe(e);case U.EVENT:case U.BINARY_EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Ln.indexOf(e[0])===-1);case U.ACK:case U.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Un{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const e=Nn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Fn=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Jt,Encoder:In,get PacketType(){return U},protocol:Dn},Symbol.toStringTag,{value:"Module"}));function Q(h,t,e){return h.on(t,e),function(){h.off(t,e)}}const qn=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class we extends V{constructor(t,e,n){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=t,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Q(t,"open",this.onopen.bind(this)),Q(t,"packet",this.onpacket.bind(this)),Q(t,"error",this.onerror.bind(this)),Q(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var n,a,c;if(qn.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const y={type:U.EVENT,data:e};if(y.options={},y.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const v=this.ids++,p=e.pop();this._registerAckCallback(v,p),y.id=v}const f=(a=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||a===void 0?void 0:a.writable,g=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!f||(g?(this.notifyOutgoingListeners(y),this.packet(y)):this.sendBuffer.push(y)),this.flags={},this}_registerAckCallback(t,e){var n;const a=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(a===void 0){this.acks[t]=e;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);e.call(this,new Error("operation has timed out"))},a),y=(...f)=>{this.io.clearTimeoutFn(c),e.apply(this,f)};y.withError=!0,this.acks[t]=y}emitWithAck(t,...e){return new Promise((n,a)=>{const c=(y,f)=>y?a(y):n(f);c.withError=!0,e.push(c),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...c)=>n!==this._queue[0]?void 0:(a!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(a)):(this._queue.shift(),e&&e(null,...c)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:U.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){const n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case U.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 U.EVENT:case U.BINARY_EVENT:this.onevent(t);break;case U.ACK:case U.BINARY_ACK:this.onack(t);break;case U.DISCONNECT:this.ondisconnect();break;case U.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const n of e)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let n=!1;return function(...a){n||(n=!0,e.packet({type:U.ACK,id:t,data:a}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:U.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const n of e)n.apply(this,t.data)}}}function ut(h){h=h||{},this.ms=h.min||100,this.max=h.max||1e4,this.factor=h.factor||2,this.jitter=h.jitter>0&&h.jitter<=1?h.jitter:0,this.attempts=0}ut.prototype.duration=function(){var h=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*h);h=Math.floor(t*10)&1?h+e:h-e}return Math.min(h,this.max)|0};ut.prototype.reset=function(){this.attempts=0};ut.prototype.setMin=function(h){this.ms=h};ut.prototype.setMax=function(h){this.max=h};ut.prototype.setJitter=function(h){this.jitter=h};class jt extends V{constructor(t,e){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,Rt(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((n=e.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new ut({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const a=e.parser||Fn;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new xn(this.uri,this.opts);const e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const a=Q(e,"open",function(){n.onopen(),t&&t()}),c=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},y=Q(e,"error",c);if(this._timeout!==!1){const f=this._timeout,g=this.setTimeoutFn(()=>{a(),c(new Error("timeout")),e.close()},f);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(a),this.subs.push(y),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Q(t,"ping",this.onping.bind(this)),Q(t,"data",this.ondata.bind(this)),Q(t,"error",this.onerror.bind(this)),Q(t,"close",this.onclose.bind(this)),Q(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){St(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new we(this,t,e),this.nsps[t]=n),n}_destroy(t){const e=Object.keys(this.nsps);for(const n of e)if(this.nsps[n].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let n=0;n<e.length;n++)this.engine.write(e[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const dt={};function Dt(h,t){typeof h=="object"&&(t=h,h=void 0),t=t||{};const e=Bn(h,t.path||"/socket.io"),n=e.source,a=e.id,c=e.path,y=dt[a]&&c in dt[a].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||y;let g;return f?g=new jt(n,t):(dt[a]||(dt[a]=new jt(n,t)),g=dt[a]),e.query&&!t.query&&(t.query=e.queryKey),g.socket(e.path,t)}Object.assign(Dt,{Manager:jt,Socket:we,io:Dt,connect:Dt});const M=h=>(Ht("data-v-c1f55392"),h=h(),Yt(),h),Mn={class:"leftContent"},jn={class:"blood"},$n={class:"blood-g"},Hn=M(()=>T("img",{src:Ne,alt:""},null,-1)),Yn={class:"blood-g-info"},Vn=M(()=>T("div",{class:"blood-g-info-text"},"高压",-1)),zn={class:"blood-g-info-num"},Xn={class:"num"},Wn=M(()=>T("span",{class:"unit"},"mmHg",-1)),Jn={class:"blood-d"},Kn=M(()=>T("img",{src:Le,alt:""},null,-1)),Qn={class:"blood-d-info"},Gn=M(()=>T("div",{class:"blood-d-info-text"},"低压",-1)),Zn={class:"blood-d-info-num"},tr={class:"num"},er=M(()=>T("span",{class:"unit"},"mmHg",-1)),nr={class:"left-title"},rr=M(()=>T("img",{class:"left-title-icon",src:Ae,alt:""},null,-1)),sr=M(()=>T("img",{class:"left-title-bg",src:De,alt:""},null,-1)),ir={class:"left-title-text"},or={class:"left-title-text-title"},ar=M(()=>T("div",{class:"left-title-text-d"},"低压",-1)),cr=M(()=>T("div",{class:"left-title-text-g"},"高压",-1)),hr=M(()=>T("div",{class:"lineCharts bgBox"},[T("div",{id:"lineCharts_66",class:"lineCharts_66"})],-1)),ur={class:"score bgBox"},fr=M(()=>T("div",{class:"score-sleep"},[T("img",{src:Ie,alt:""}),T("div",{class:"score-sleep-text"},"睡眠质量")],-1)),lr={class:"score-info"},pr=M(()=>T("img",{src:Ue,alt:""},null,-1)),dr={class:"score-info-num"},yr={class:"num"},gr=M(()=>T("span",null,"分",-1)),mr=M(()=>T("div",{class:"score-info-text"},"综合评分为",-1)),vr={class:"heartRate bgBox"},_r={class:"heartRate-data"},br=M(()=>T("img",{src:Fe,alt:""},null,-1)),wr={class:"heartRate-data-info"},kr=M(()=>T("div",{class:"heartRate-data-info-tips"},"实时心率/呼吸",-1)),Er={class:"heartRate-data-info-num"},Cr=M(()=>T("span",null,"分次",-1)),Ar=M(()=>T("div",{class:"heartRate-line"},[T("img",{class:"img-l",src:qe,alt:""}),T("div",{class:"line"}),T("img",{class:"img-r",src:Me,alt:""})],-1)),xr={class:"otherData"},Br={class:"otherData-item bgBox"},Sr=M(()=>T("img",{src:je,alt:""},null,-1)),Rr={class:"otherData-item-info"},Tr=M(()=>T("div",{class:"otherData-item-info-text"},"血糖",-1)),Or={class:"otherData-item-info-num"},Pr=M(()=>T("span",null,"mmHg",-1)),Nr={class:"otherData-item bgBox"},Lr=M(()=>T("img",{src:$e,alt:""},null,-1)),Dr={class:"otherData-item-info"},Ir=M(()=>T("div",{class:"otherData-item-info-text"},"体温",-1)),Ur={class:"otherData-item-info-num"},Fr=M(()=>T("span",null,"C°",-1)),qr={class:"otherData-item bgBox"},Mr=M(()=>T("img",{src:He,alt:""},null,-1)),jr={class:"otherData-item-info"},$r=M(()=>T("div",{class:"otherData-item-info-text"},"血氧",-1)),Hr={class:"otherData-item-info-num"},Yr=M(()=>T("span",null,"%",-1)),Vr={class:"otherData-item bgBox"},zr=M(()=>T("img",{src:Ye,alt:""},null,-1)),Xr={class:"otherData-item-info"},Wr=M(()=>T("div",{class:"otherData-item-info-text"},"今日步数",-1)),Jr={class:"otherData-item-info-num"},Kr=M(()=>T("span",null,"步",-1)),Qr={__name:"LeftContent",props:{props_data:{type:Object,default:{}}},setup(h){const t=h;var e=ht(0),n=ae;$t(()=>{ce(()=>{a()})});function a(){let y=[],f=[],g=[],b=t.props_data.sevenDaysData;b&&(b.forEach(v=>{y.push(v.healthBlood.mmHg1),f.push(v.healthBlood.mmHg2),g.push(v.measureDateStr)}),setTimeout(()=>{c(y,f,g)},10))}function c(y,f,g){console.log(y),console.log(f),console.log(g);const b=n.init(document.getElementById("lineCharts_66"));b.setOption({radar:{alignTicks:!1},grid:{right:10,bottom:30,top:20},xAxis:{type:"category",splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},data:g,axisLabel:{show:!0,color:"#A3C2CC",fontSize:10}},yAxis:{splitLine:{show:!0,lineStyle:{type:"dashed",color:"#4C5C6B"}},axisLine:{show:!1},axisTick:{show:!1},type:"value",axisLabel:{show:!0,color:"#A3C2CC"}},series:[{data:y,type:"line",smooth:.5,itemStyle:{color:"#39E6AD"},lineStyle:{width:4}},{data:f,type:"line",smooth:.5,itemStyle:{color:"#0088FF"},lineStyle:{width:4}}]}),window.onresize=function(){b.resize()}}return(y,f)=>(tt(),et("div",Mn,[T("div",jn,[T("div",$n,[Hn,T("div",Yn,[Vn,T("div",zn,[T("span",Xn,X(t.props_data.mmHg1),1),Wn])])]),T("div",Jn,[Kn,T("div",Qn,[Gn,T("div",Zn,[T("span",tr,X(t.props_data.mmHg2),1),er])])])]),T("div",nr,[rr,sr,T("div",ir,[T("div",or," 近"+X(t.props_data.sevenDaysData?t.props_data.sevenDaysData.length:0)+"天血压 ",1),ar,cr])]),hr,T("div",ur,[fr,T("div",lr,[pr,T("div",dr,[T("div",yr,[at(X(t.props_data.sleepQualityScore||0)+" ",1),gr]),mr])])]),T("div",vr,[T("div",_r,[br,T("div",wr,[kr,T("div",Er,[at(X(Be(e))+" ",1),Cr])])]),Ar]),T("div",xr,[T("div",Br,[Sr,T("div",Rr,[Tr,T("div",Or,[at(X(t.props_data.bloodGlucose||0),1),Pr])])]),T("div",Nr,[Lr,T("div",Dr,[Ir,T("div",Ur,[at(X(t.props_data.animalHeat||0),1),Fr])])]),T("div",qr,[Mr,T("div",jr,[$r,T("div",Hr,[at(X(t.props_data.spoz||0),1),Yr])])]),T("div",Vr,[zr,T("div",Xr,[Wr,T("div",Jr,[at(X(t.props_data.realityStep||0),1),Kr])])])])]))}},Gr=xt(Qr,[["__scopeId","data-v-c1f55392"]]),Zr={class:"labelItem"},ts={class:"labelItem-key"},es={class:"labelItem-value"},ns={__name:"LabelItem",props:{label:{type:String,default:"睡眠时长"},value:{type:String,default:"xx小时"}},setup(h){return(t,e)=>(tt(),et("div",Zr,[T("div",ts,X(h.label),1),T("div",es,X(h.value),1)]))}},ct=xt(ns,[["__scopeId","data-v-bf2cfda7"]]);function rs(h){return Bt.get("/dataBigScreen/elderlyHealthCenter/getLatestHealthData",{params:h})}function ss(h){return Bt.get("/dataBigScreen/elderlyHealthCenter/getSleepReport",{params:h})}function is(h){return Bt.get("/dataBigScreen/elderlyHealthCenter/lastThirtyDaysHealthData",{params:h})}function os(h){return Bt.get("/dataBigScreen/elderlyHealthCenter/elderHealthStatistics",{params:h})}const Tt=h=>(Ht("data-v-fe689488"),h=h(),Yt(),h),as={class:"rightContent"},cs={class:"rightContent-data"},hs=Tt(()=>T("div",{class:"rightContent-data-echarts"},[T("div",{id:"radarEcharts",class:"radarEcharts"})],-1)),us={class:"rightContent-data-label"},fs=Tt(()=>T("div",{class:"label-tips"}," *睡眠雷达图:单项评分距离顶点越近,分值越高蓝色区域面积越大,睡眠质量越好 ",-1)),ls={class:"label-list"},ps={class:"rightContent-line"},ds={class:"rightContent-line-title"},ys=["onClick"],gs=Tt(()=>T("div",{class:"rightContent-line-echarts"},[T("div",{id:"lineEcharts",class:"lineEcharts"})],-1)),ms={class:"rightContent-result"},vs={class:"rightContent-result-table"},_s=Tt(()=>T("thead",null,[T("tr",null,[T("th",null,"序号"),T("th",null,"测试结果"),T("th",null,"测试时间"),T("th",null,"数据来源")])],-1)),bs={__name:"RightContent",props:{sleep_report:{type:Object,default:{}}},setup(h){const t=h,e=ht([]),n=ae;var a=ht();$t(()=>{ce(()=>{a=n.init(document.getElementById("lineEcharts"))}),c(),y(t.sleep_report.elderId)});function c(){f(),g(t.sleep_report.elderId,1)}function y(w){is({elderId:w}).then(d=>{e.value=d.data})}function f(){let w=JSON.parse(t.sleep_report.arrayScoreAssigned),d=Math.max(...w);const u=n.init(document.getElementById("radarEcharts"));u.setOption({tooltip:{show:!1},legend:{show:!1},splitArea:{show:!1},radar:{radius:40,indicator:[{name:"睡眠时长",max:d},{name:"入睡时刻",max:d},{name:"入睡时长",max:d},{name:"深度睡眠",max:d},{name:"做梦多少",max:d},{name:"睡中觉醒",max:d},{name:"躁动不安",max:d},{name:"睡中中断",max:d}]},series:[{type:"radar",symbol:"none",itemStyle:{color:"#00FFC6"},data:[{value:w,areaStyle:{color:"rgba(68,215,182,0.4)"},lineStyle:{width:1}}]}]}),window.onresize=function(){u.resize()}}function g(w,d){os({elderId:w,type:d}).then(u=>{let o=[],s=[];u.data.forEach(m=>{console.log(m),s.push(m.createDateStr),d==1?o.push(m.healthBlood.mmHg1):d==2?o.push(m.healthGlucose.bloodGlucose):d==3?o.push(m.healthTemperature.animalHeat):d==4?o.push(m.healthRate.heartRate):d==6?o.push(m.healthOxygen.spoz):d==7&&o.push(m.healthExercise.realityStep)}),b(o,s)})}function b(w,d){a.setOption({grid:{right:10,bottom:30,top:20},xAxis:{type:"category",splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},data:d,fontSize:10,axisLabel:{show:!0,color:"#A3C2CC"}},yAxis:{splitLine:{show:!0,lineStyle:{type:"dashed",color:"#4C5C6B"}},axisLine:{show:!1},axisTick:{show:!1},type:"value",axisLabel:{show:!0,color:"#A3C2CC"}},series:[{data:w,type:"line",smooth:.5,itemStyle:{color:"#39E6AD"},lineStyle:{width:4}}]}),window.onresize=function(){myChart.resize()}}const v=ht([{name:"血压",type:1,active:!0},{name:"血糖",type:2,active:!1},{name:"体温",type:3,active:!1},{name:"心率",type:4,active:!1},{name:"血氧",type:6,active:!1},{name:"运动",type:7,active:!1}]),p=w=>{v.value.forEach(d=>{d.active=!1}),v.value[w].active=!0,g(t.sleep_report.elderId,v.value[w].type)};return(w,d)=>(tt(),et("div",as,[T("div",cs,[hs,T("div",us,[fs,T("div",ls,[rt(ct,{label:"睡眠时长",value:t.sleep_report.sleepDuration},null,8,["value"]),rt(ct,{label:"入睡时刻",value:"23:08"}),rt(ct,{label:"入睡时长",value:t.sleep_report.sleepOnsetLatency},null,8,["value"]),rt(ct,{label:"深度睡眠",value:(t.sleep_report.sleepDuration*t.sleep_report.deepPercent/6e3).toFixed(1)+"分钟"},null,8,["value"]),rt(ct,{label:"做梦多少",value:(t.sleep_report.sleepDuration*t.sleep_report.dreamPercent/6e3).toFixed(1)+"分钟"},null,8,["value"]),rt(ct,{label:"睡眠中断",value:t.sleep_report.outbedCounts+"分钟"},null,8,["value"])])])]),T("div",ps,[T("div",ds,[(tt(!0),et(te,null,ee(v.value,(u,o)=>(tt(),et("div",{class:Se(u.active?"active_text":""),onClick:s=>p(o),key:o},X(u.name),11,ys))),128))]),gs]),T("div",ms,[T("div",vs,[T("table",null,[_s,T("tbody",null,[(tt(!0),et(te,null,ee(e.value,(u,o)=>(tt(),et("tr",{key:o},[T("td",null,X(o+1),1),T("td",null,X(u.result),1),T("td",null,X(u.createDate),1),T("td",null,X(u.source),1)]))),128))])])])])]))}},ws=xt(bs,[["__scopeId","data-v-fe689488"]]),gt=h=>(Ht("data-v-c14c5a26"),h=h(),Yt(),h),ks={class:"health-center"},Es={key:0,class:"health-center-left"},Cs=gt(()=>T("img",{class:"img",src:Oe,alt:""},null,-1)),As=gt(()=>T("div",{class:"title"},"健康数据分析",-1)),xs={class:"health-center-right"},Bs=gt(()=>T("img",{class:"img",src:Pe,alt:""},null,-1)),Ss=gt(()=>T("div",{class:"title"},"睡眠质量分析",-1)),Rs=gt(()=>T("div",{class:"people"},[T("img",{class:"img",src:Ce,alt:""})],-1)),Ts={__name:"health_center",setup(h){const t=Re(),e=ht({}),n=ht({});$t(()=>{t.PersonalCenterInfo.extend.elderId&&(a(t.PersonalCenterInfo.extend.elderId),c(t.PersonalCenterInfo.extend.elderId))});function a(y){rs({elderId:y}).then(f=>{e.value=f.data})}function c(y){ss({elderId:y}).then(f=>{f.data&&(n.value=f.data,e.value.sleepQualityScore=f.data.sleepQualityScore?f.data.sleepQualityScore:0)})}return(y,f)=>(tt(),et("div",ks,[JSON.stringify(e.value)!="{}"?(tt(),et("div",Es,[Cs,As,rt(Gr,{props_data:e.value},null,8,["props_data"])])):Te("",!0),T("div",xs,[Bs,Ss,rt(ws,{sleep_report:n.value},null,8,["sleep_report"])]),Rs]))}},Us=xt(Ts,[["__scopeId","data-v-c14c5a26"]]);export{Us as default};