this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;returnthis},input:function(){vara=this._input[0];this.yytext+=a;this.yyleng++;this.offset++;this.match+=a;this.matched+=a;varb=a.match(/(?:\r\n?|\n).*/g);if(b){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);returna},unput:function(a){varb=a.length;varc=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-b-1);this.offset-=b;vard=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(c.length-1)this.yylineno-=c.length-1;vare=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b};if(this.options.ranges){this.yylloc.range=[e[0],e[0]+this.yyleng-b]}returnthis},more:function(){this._more=true;returnthis},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){vara=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){vara=this.match;if(a.length<20){a+=this._input.substr(0,20-a.length)}return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){vara=this.pastInput();varb=newArray(a.length+1).join("-");returna+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done){returnthis.EOF}if(!this._input)this.done=true;vara,b,c,d,e,f;if(!this._more){this.yytext="";this.match=""}varg=this._currentRules();for(varh=0;h<g.length;h++){c=this._input.match(this.rules[g[h]]);if(c&&(!b||c[0].length>b[0].length)){b=c;d=h;if(!this.options.flex)break}}if(b){f=b[0].match(/(?:\r\n?|\n).*/g);if(f)this.yylineno+=f.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length};this.yytext+=b[0];this.match+=b[0];this.matches=b;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(b[0].length);this.matched+=b[0];a=this.performAction.call(this,this.yy,this,g[d],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(a)returna;elsereturn}if(this._input===""){returnthis.EOF}else{returnthis.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:functionc(){vara=this.next();if(typeofa!=="undefined"){returna}else{returnthis.lex()}},begin:functiond(a){this.conditionStack.push(a)},popState:functione(){returnthis.conditionStack.pop()},_currentRules:functionf(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){returnthis.conditionStack[this.conditionStack.length-2]},pushState:functiong(a){this.begin(a)}};a.options={};a.performAction=functionh(a,b,c,d){functione(a,c){returnb.yytext=b.yytext.substr(a,b.yyleng-c)}varf=d;switch(c){case0:if(b.yytext.slice(-2)==="\\\\"){e(0,1);this.begin("mu")}elseif(b.yytext.slice(-1)==="\\"){e(0,1);this.begin("emu")}else{this.begin("mu")}if(b.yytext)return10;break;case1:return10;break;case2:this.popState();return10;break;case3:b.yytext=b.yytext.substr(5,b.yyleng-9);this.popState();return11;break;case4:return10;break;case5:e(0,4);this.popState();return17;break;case6:return40;break;case7:return41;break;case8:return18;break;case9:this.popState();this.begin("raw");return20;break;case10:b.yytext=b.yytext.substr(4,b.yyleng-8);this.popState();return"RAW_BLOCK";break;case11:return29;break;case12
};m.prototype.packet=function(a){l("writing packet %j",a);varb=this;if(!b.encoding){b.encoding=true;this.encoder.encode(a,function(a){for(varc=0;c<a.length;c++){b.engine.write(a[c])}b.encoding=false;b.processPacketQueue()})}else{b.packetBuffer.push(a)}};m.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){vara=this.packetBuffer.shift();this.packet(a)}};m.prototype.cleanup=function(){vara;while(a=this.subs.shift())a.destroy();this.packetBuffer=[];this.encoding=false;this.decoder.destroy()};m.prototype.close=m.prototype.disconnect=function(){this.skipReconnect=true;this.engine.close()};m.prototype.onclose=function(a){l("close");this.cleanup();this.readyState="closed";this.emit("close",a);if(this._reconnection&&!this.skipReconnect){this.reconnect()}};m.prototype.reconnect=function(){if(this.reconnecting)returnthis;vara=this;this.attempts++;if(this.attempts>this._reconnectionAttempts){l("reconnect failed");this.emitAll("reconnect_failed");this.reconnecting=false}else{varb=this.attempts*this.reconnectionDelay();b=Math.min(b,this.reconnectionDelayMax());l("will wait %dms before reconnect attempt",b);this.reconnecting=true;varc=setTimeout(function(){l("attempting reconnect");a.emitAll("reconnect_attempt",a.attempts);a.emitAll("reconnecting",a.attempts);a.open(function(b){if(b){l("reconnect attempt error");a.reconnecting=false;a.reconnect();a.emitAll("reconnect_error",b.data)}else{l("reconnect success");a.onreconnect()}})},b);this.subs.push({destroy:function(){clearTimeout(c)}})}};m.prototype.onreconnect=function(){vara=this.attempts;this.attempts=0;this.reconnecting=false;this.emitAll("reconnect",a)}},{"./on":4,"./socket":5,"./url":6,"component-bind":7,"component-emitter":8,debug:9,"engine.io-client":11,"object-component":37,"socket.io-parser":40}],4:[function(a,b,c){b.exports=d;functiond(a,b,c){a.on(b,c);return{destroy:function(){a.removeListener(b,c)}}}},{}],5:[function(a,b,c){vard=a("socket.io-parser");vare=a("component-emitter");varf=a("to-array");varg=a("./on");varh=a("component-bind");vari=a("debug")("socket.io-client:socket");varj=a("has-binary-data");vark=a("indexof");b.exports=c=n;varl={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1};varm=e.prototype.emit;functionn(a,b){this.io=a;this.nsp=b;this.json=this;this.ids=0;this.acks={};this.open();this.receiveBuffer=[];this.sendBuffer=[];this.connected=false;this.disconnected=true;this.subEvents()}e(n.prototype);n.prototype.subEvents=function(){vara=this.io;this.subs=[g(a,"open",h(this,"onopen")),g(a,"packet",h(this,"onpacket")),g(a,"close",h(this,"onclose"))]};n.prototype.open=n.prototype.connect=function(){if(this.connected)returnthis;this.io.open();if("open"==this.io.readyState)this.onopen();returnthis};n.prototype.send=function(){vara=f(arguments);a.unshift("message");this.emit.apply(this,a);returnthis};n.prototype.emit=function(a){if(l.hasOwnProperty(a)){m.apply(this,arguments);returnthis}varb=f(arguments);varc=d.EVENT;if(j(b)){c=d.BINARY_EVENT}vare={type:c,data:b};if("function"==typeofb[b.length-1]){i("emitting packet with ack id %d",this.ids);this.acks[this.ids]=b.pop();e.id=this.ids++}if(this.connected){this.packet(e)}else{this.sendBuffer.push(e)}returnthis};n.prototype.packet=function(a){a.nsp=this.nsp;this.io.packet(a)};n.prototype.onopen=function(){i("transport is open - connecting");if("/"!=this.nsp){this.packet({type:d.CONNECT})}};n.prototype.onclose=function(a){i("close (%s)",a);this.connected=false;this.disconnected=true;this.emit("disconnect",a)};n.prototype.onpacket=function(a){if(a.nsp!=this.nsp)return;switch(a.type){cased.CONNECT:this.onconnect();break;cased.EVENT:this.onevent(a);break;cased.BINARY_EVENT:this.onevent(a);break;cased.ACK:this.onack(a);break;cased.BINARY_ACK:this.onack(a);break;cased.DISCONNECT:this.ondisconnect();break;cased.ERROR:this.emit("error",a.data);break}};n.prototype.onevent=function(a){varb=a.data||[];i("emitting event %j",b);if(null!=a.id){i("attachingack
}a=i.decode(a);vard=a.charAt(0);if(Number(d)!=d||!l[d]){returnm}if(a.length>1){return{type:l[d],data:a.substring(1)}}else{return{type:l[d]}}}vare=newUint8Array(a);vard=e[0];varg=f(a,1);if(n&&b==="blob"){g=newn([g])}return{type:l[d],data:g}};c.decodeBase64Packet=function(a,b){varc=l[a.charAt(0)];if(!d.ArrayBuffer){return{type:c,data:{base64:true,data:a.substr(1)}}}vare=g.decode(a.substr(1));if(b==="blob"&&n){e=newn([e])}return{type:c,data:e}};c.encodePayload=function(a,b,d){if(typeofb=="function"){d=b;b=null}if(b){if(n&&!j){returnc.encodePayloadAsBlob(a,d)}returnc.encodePayloadAsArrayBuffer(a,d)}if(!a.length){returnd("0:")}functione(a){returna.length+":"+a}functionf(a,d){c.encodePacket(a,b,function(a){d(null,e(a))})}r(a,f,function(a,b){returnd(b.join(""))})};functionr(a,b,c){vard=newArray(a.length);vare=h(a.length,c);varf=function(a,c,e){b(c,function(b,c){d[a]=c;e(b,d)})};for(varg=0;g<a.length;g++){f(g,a[g],e)}}c.decodePayload=function(a,b,d){if(typeofa!="string"){returnc.decodePayloadAsBinary(a,b,d)}if(typeofb==="function"){d=b;b=null}vare;if(a==""){returnd(m,0,1)}varf="",g,h;for(vari=0,j=a.length;i<j;i++){vark=a.charAt(i);if(":"!=k){f+=k}else{if(""==f||f!=(g=Number(f))){returnd(m,0,1)}h=a.substr(i+1,g);if(f!=h.length){returnd(m,0,1)}if(h.length){e=c.decodePacket(h,b);if(m.type==e.type&&m.data==e.data){returnd(m,0,1)}varl=d(e,i+g,j);if(false===l)return}i+=g;f=""}}if(f!=""){returnd(m,0,1)}};c.encodePayloadAsArrayBuffer=function(a,b){if(!a.length){returnb(newArrayBuffer(0))}functiond(a,b){c.encodePacket(a,true,function(a){returnb(null,a)})}r(a,d,function(a,c){vard=c.reduce(function(a,b){varc;if(typeofb==="string"){c=b.length}else{c=b.byteLength}returna+c.toString().length+c+2},0);vare=newUint8Array(d);varf=0;c.forEach(function(a){varb=typeofa==="string";varc=a;if(b){vard=newUint8Array(a.length);for(varg=0;g<a.length;g++){d[g]=a.charCodeAt(g)}c=d.buffer}if(b){e[f++]=0}else{e[f++]=1}varh=c.byteLength.toString();for(varg=0;g<h.length;g++){e[f++]=parseInt(h[g])}e[f++]=255;vard=newUint8Array(c);for(varg=0;g<d.length;g++){e[f++]=d[g]}});returnb(e.buffer)})};c.encodePayloadAsBlob=function(a,b){functiond(a,b){c.encodePacket(a,true,function(a){varc=newUint8Array(1);c[0]=1;if(typeofa==="string"){vard=newUint8Array(a.length);for(vare=0;e<a.length;e++){d[e]=a.charCodeAt(e)}a=d.buffer;c[0]=0}varf=ainstanceofArrayBuffer?a.byteLength:a.size;varg=f.toString();varh=newUint8Array(g.length+1);for(vare=0;e<g.length;e++){h[e]=parseInt(g[e])}h[g.length]=255;if(n){vari=newn([c.buffer,h.buffer,a]);b(null,i)}})}r(a,d,function(a,c){returnb(newn(c))})};c.decodePayloadAsBinary=function(a,b,d){if(typeofb==="function"){d=b;b=null}vare=a;varg=[];while(e.byteLength>0){varh=newUint8Array(e);vari=h[0]===0;varj="";for(vark=1;;k++){if(h[k]==255)break;j+=h[k]}e=f(e,2+j.length);j=parseInt(j);varl=f(e,0,j);if(i){try{l=String.fromCharCode.apply(null,newUint8Array(l))}catch(m){varn=newUint8Array(l);l="";for(vark=0;k<n.length;k++){l+=String.fromCharCode(n[k])}}}g.push(l);e=f(e,j)}varo=g.length;g.forEach(function(a,e){d(c.decodePacket(a,b),e,o)})}},{"./keys":23,after:24,"arraybuffer.slice":25,"base64-arraybuffer":26,blob:27,utf8:28}],23:[function(a,b,c){b.exports=Object.keys||functiond(a){varb=[];varc=Object.prototype.hasOwnProperty;for(vardina){if(c.call(a,d)){b.push(d)}}returnb}},{}],24:[function(a,b,c){b.exports=d;functiond(a,b,c){vard=false;c=c||e;f.count=a;returna===0?b():f;functionf(a,e){if(f.count<=0){thrownewError("after called too many times")}--f.count;if(a){d=true;b(a);b=c}elseif(f.count===0&&!d){b(null,e)}}}functione(){}},{}],25:[function(a,b,c){b.exports=function(a,b,c){vard=a.byteLength;b=b||0;c=c||d;if(a.slice){returna.slice(b,c)}if(b<0){b+=d}if(c<0){c+=d}if(c>d){c=d}if(b>=d||b>=c||d===0){returnnewArrayBuffer(0)}vare=newUint8Array(a);varf=newUint8Array(c-b);for(varg=b,h=0;g<c;g++,h++){f[h]=e[g]}returnf.buffer}},{}],26:[function(a,b,c){(function(a){"use strict";c.encode=function(b){varc=newUint8Array(b),d,e=c.length,f="";for(d=0;d<e;
}switch(j(c)){case"Undefined":returnbina;case"Boolean":varg=Boolean(k(a[b])?a[b].length:a[b]);returnc===g;case"Function":return!!c(a[b],b,a);case"Array":if(!k(a[b])){returnfalse}vari=d?m:n;returni(a[b],c);case"RegExp":if(!k(a[b])){returnBoolean(a[b]&&a[b].match(c))}if(!d){returnfalse}returnm(a[b],c);case"Number":c=String(c);case"String":if(!k(a[b])){returna[b]===c}if(!d){returnfalse}returnm(a[b],c);default:thrownewTypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}};f.commonPath=function(a,b){varc=Math.min(a.length,b.length);vard;for(d=0;d<c;d++){if(a.charAt(d)!==b.charAt(d)){d--;break}}if(d<1){returna.charAt(0)===b.charAt(0)&&a.charAt(0)==="/"?"/":""}if(a.charAt(d)!=="/"||b.charAt(d)!=="/"){d=a.substring(0,d).lastIndexOf("/")}returna.substring(0,d+1)};f.withinString=function(a,b,c){c||(c={});vard=c.start||f.findUri.start;vare=c.end||f.findUri.end;varg=c.trim||f.findUri.trim;varh=/[a-z0-9-]=["']?$/i;d.lastIndex=0;while(true){vari=d.exec(a);if(!i){break}varj=i.index;if(c.ignoreHtml){vark=a.slice(Math.max(j-3,0),j);if(k&&h.test(k)){continue}}varl=j+a.slice(j).search(e);varm=a.slice(j,l).replace(g,"");if(c.ignore&&c.ignore.test(m)){continue}l=j+m.length;varn=b(m,j,l,a);a=a.slice(0,j)+n+a.slice(l);d.lastIndex=j+n.length}d.lastIndex=0;returna};f.ensureValidHostname=function(b){if(b.match(f.invalid_hostname_characters)){if(!a){thrownewTypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available')}if(a.toASCII(b).match(f.invalid_hostname_characters)){thrownewTypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]')}}};f.noConflict=function(a){if(a){varb={URI:this.noConflict()};if(d.URITemplate&&typeofd.URITemplate.noConflict==="function"){b.URITemplate=d.URITemplate.noConflict()}if(d.IPv6&&typeofd.IPv6.noConflict==="function"){b.IPv6=d.IPv6.noConflict()}if(d.SecondLevelDomains&&typeofd.SecondLevelDomains.noConflict==="function"){b.SecondLevelDomains=d.SecondLevelDomains.noConflict()}returnb}elseif(d.URI===this){d.URI=e}returnthis};g.build=function(a){if(a===true){this._deferred_build=true}elseif(a===undefined||this._deferred_build){this._string=f.build(this._parts);this._deferred_build=false}returnthis};g.clone=function(){returnnewf(this)};g.valueOf=g.toString=function(){returnthis.build(false)._string};q={protocol:"protocol",username:"username",password:"password",hostname:"hostname",port:"port"};s=function(a){returnfunction(b,c){if(b===undefined){returnthis._parts[a]||""}else{this._parts[a]=b||null;this.build(!c);returnthis}}};for(rinq){g[r]=s(q[r])}q={query:"?",fragment:"#"};s=function(a,b){returnfunction(c,d){if(c===undefined){returnthis._parts[a]||""}else{if(c!==null){c=c+"";if(c.charAt(0)===b){c=c.substring(1)}}this._parts[a]=c;this.build(!d);returnthis}}};for(rinq){g[r]=s(r,q[r])}q={search:["?","query"],hash:["#","fragment"]};s=function(a,b){returnfunction(c,d){vare=this[a](c,d);returntypeofe==="string"&&e.length?b+e:e}};for(rinq){g[r]=s(q[r][1],q[r][0])}g.pathname=function(a,b){if(a===undefined||a===true){varc=this._parts.path||(this._parts.hostname?"/":"");returna?f.decodePath(c):c}else{this._parts.path=a?f.recodePath(a):"/";this.build(!b);returnthis}};g.path=g.pathname;g.href=function(a,b){varc;if(a===undefined){returnthis.toString()}this._string="";this._parts=f._parts();vard=ainstanceoff;vare=typeofa==="object"&&(a.hostname||a.path||a.pathname);if(a.nodeName){varg=f.getDomAttribute(a);a=a[g]||"";e=false}if(!d&&e&&a.pathname!==undefined){a=a.toString()}if(typeofa==="string"){this._parts=f.parse(a,this._parts)}elseif(d||e){vari=d?a._parts:a;for(cini){if(h.call(this._parts,c)){this._parts[c]=i[c]}}}else{thrownewTypeError("invalid input")}this.build(!b);returnthis};g.is=function(a){varb=false;vard=false;vare=false;varg=false;varh=false;vari=false;varj=false;vark=!this._parts.urn;if(this._parts.hostname){k=false;d=f.ip4_expression.test(this._parts.hostname);e=f.ip6_expression.test(this._parts.hostname);b=d||e;g=!b;h=