!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.io=e():t.io=e()}(this,function(){returnfunction(t){functione(n){if(r[n])returnr[n].exports;varo=r[n]={exports:{},id:n,loaded:!1};returnt[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}varr={};returne.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";functionn(t,e){"object"===("undefined"==typeoft?"undefined":i(t))&&(e=t,t=void0),e=e||{};varr,n=s(t),a=n.source,h=n.id,f=n.path,l=u[h]&&finu[h].nsps,d=e.forceNew||e["force new connection"]||!1===e.multiplex||l;returnd?(p("ignoring socket cache for %s",a),r=c(a,e)):(u[h]||(p("new io instance for %s",a),u[h]=c(a,e)),r=u[h]),n.query&&!e.query?e.query=n.query:e&&"object"===i(e.query)&&(e.query=o(e.query)),r.socket(n.path,e)}functiono(t){vare=[];for(varrint)t.hasOwnProperty(r)&&e.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));returne.join("&")}vari="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},s=r(1),a=r(6),c=r(14),p=r(3)("socket.io-client");t.exports=e=n;varu=e.managers={};e.protocol=a.protocol,e.connect=n,e.Manager=r(14),e.Socket=r(42)},function(t,e,r){(function(e){"use strict";functionn(t,r){varn=t;r=r||e.location,null==t&&(t=r.protocol+"//"+r.host),"string"==typeoft&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?r.protocol+t:r.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t="undefined"!=typeofr?r.protocol+"//"+t:"https://"+t),i("parse %s",t),n=o(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";vars=-1!==n.host.indexOf(":"),a=s?"["+n.host+"]":n.host;returnn.id=n.protocol+"://"+a+":"+n.port,n.href=n.protocol+"://"+a+(r&&r.port===n.port?"":":"+n.port),n}varo=r(2),i=r(3)("socket.io-client:url");t.exports=n}).call(e,function(){returnthis}())},function(t){vare=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){varn=t,o=t.indexOf("["),i=t.indexOf("]");-1!=o&&-1!=i&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(vars=e.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return-1!=o&&-1!=i&&(a.source=n,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,r){functionn(){return"WebkitAppearance"indocument.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}functiono(){vart=arguments,r=this.useColors;if(t[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+t[0]+(r?"%c ":" ")+"+"+e.humanize(this.diff),!r)returnt;varn="color: "+this.color;t=[t[0],n,"color: inherit"].concat(Array.prototype.slice.call(t,1));varo=0,i=0;returnt[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,n),t}functioni(){return"object"==typeofconsole&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}functions(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(r){}}functiona(){vart;try{t=e.storage.debug}catch(r){}returnt}functionc(){try{returnwindow.localStorage}catch(t){}}e=t.exports=r(4),e.log=i,e.formatArgs=o,e.save=s,e.load=a,e.useColors=n,e.storage="undefined"!=typeofchrome&&"undefined"!=typeofchrome.storage?chrome.storage.local:c(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){returnJSON.stringify(t)},e.enabl
e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}elsea('packet received with socket readyState "%s"',this.readyState)},n.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},n.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);vare=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!=e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},n.prototype.setPing=function(){vart=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},n.prototype.ping=function(){vart=this;this.sendPacket("ping",function(){t.emit("ping")})},n.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},n.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},n.prototype.write=n.prototype.send=function(t,e,r){returnthis.sendPacket("message",t,e,r),this},n.prototype.sendPacket=function(t,e,r,n){if("function"==typeofe&&(n=e,e=void0),"function"==typeofr&&(n=r,r=null),"closing"!=this.readyState&&"closed"!=this.readyState){r=r||{},r.compress=!1!==r.compress;varo={type:t,data:e,options:r};this.emit("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}},n.prototype.close=function(){functiont(){n.onClose("forced close"),a("socket closing - telling transport to close"),n.transport.close()}functione(){n.removeListener("upgrade",e),n.removeListener("upgradeError",e),t()}functionr(){n.once("upgrade",e),n.once("upgradeError",e)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";varn=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():t()}):this.upgrading?r():t()}returnthis},n.prototype.onError=function(t){a("socket error %j",t),n.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},n.prototype.onClose=function(t,e){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){a('socket close with reason: "%s"',t);varr=this;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",t,e),r.writeBuffer=[],r.prevBufferLen=0}},n.prototype.filterUpgrades=function(t){for(vare=[],r=0,n=t.length;n>r;r++)~c(this.transports,t[r])&&e.push(t[r]);returne}}).call(e,function(){returnthis}())},function(t,e,r){(function(t){functionn(e){varr,n=!1,a=!1,c=!1!==e.jsonp;if(t.location){varp="https:"==location.protocol,u=location.port;u||(u=p?443:80),n=e.hostname!=location.hostname||u!=e.port,a=e.secure!=p}if(e.xdomain=n,e.xscheme=a,r=newo(e),"open"inr&&!e.forceJSONP)returnnewi(e);if(!c)thrownewError("JSONP disabled");returnnews(e)}varo=r(19),i=r(21),s=r(37),a=r(38);e.polling=n,e.websocket=a}).call(e,function(){returnthis}())},function(t,e,r){varn=r(20);t.exports=function(t){vare=t.xdomain,r=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeofXMLHttpRequest&&(!e||n))returnnewXMLHttpRequest}catch(i){}try{if("undefined"!=typeofXDomainRequest&&!r&&o)returnnewXDomainRequest}catch(i){}if(!e)try{returnnewActiveXObject("Microsoft.XMLHTTP")}catch(i){}}},function(t){try{t.exports="undefined"!=typeofXMLHttpRequest&&"withCredentials"innewXMLHttpRequest}catch(e){t.exports=!1}},function(t,e,r){
this.sendBuffer=[]},n.prototype.ondisconnect=function(){p("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},n.prototype.destroy=function(){if(this.subs){for(vart=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},n.prototype.close=n.prototype.disconnect=function(){returnthis.connected&&(p("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},n.prototype.compress=function(t){returnthis.flags=this.flags||{},this.flags.compress=t,this}},function(t){functione(t){returnt?r(t):void0}functionr(t){for(varrine.prototype)t[r]=e.prototype[r];returnt}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){returnthis._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){functionr(){this.off(t,r),e.apply(this,arguments)}returnr.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)returnthis._callbacks={},this;varr=this._callbacks["$"+t];if(!r)returnthis;if(1==arguments.length)returndeletethis._callbacks["$"+t],this;for(varn,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}returnthis},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};vare=[].slice.call(arguments,1),r=this._callbacks["$"+t];if(r){r=r.slice(0);for(varn=0,o=r.length;o>n;++n)r[n].apply(this,e)}returnthis},e.prototype.listeners=function(t){returnthis._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t){functione(t,e){varr=[];e=e||0;for(varn=e||0;n<t.length;n++)r[n-e]=t[n];returnr}t.exports=e},function(t){"use strict";functione(t,e,r){returnt.on(e,r),{destroy:function(){t.removeListener(e,r)}}}t.exports=e},function(t){vare=[].slice;t.exports=function(t,r){if("string"==typeofr&&(r=t[r]),"function"!=typeofr)thrownewError("bind() requires a function");varn=e.call(arguments,2);returnfunction(){returnr.apply(t,n.concat(e.call(arguments)))}}},function(t,e,r){(function(e){functionn(t){functionr(t){if(!t)return!1;if(e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&tinstanceofArrayBuffer||e.Blob&&tinstanceofBlob||e.File&&tinstanceofFile)return!0;if(o(t)){for(varn=0;n<t.length;n++)if(r(t[n]))return!0}elseif(t&&"object"==typeoft){t.toJSON&&"function"==typeoft.toJSON&&(t=t.toJSON());for(variint)if(Object.prototype.hasOwnProperty.call(t,i)&&r(t[i]))return!0}return!1}returnr(t)}varo=r(48);t.exports=n}).call(e,function(){returnthis}())},function(t){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t){functione(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){vart=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){vare=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}}])});