},content:function(a){this.opcode("appendContent",a.string)},mustache:function(a){this.sexpr(a.sexpr),this.opcode(a.escaped&&!this.options.noEscape?"appendEscaped":"append")},ambiguousSexpr:function(a,b,c){vard=a.id,e=d.parts[0],f=null!=b||null!=c;this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.opcode("invokeAmbiguous",e,f)},simpleSexpr:function(a){varb=a.id;"DATA"===b.type?this.DATA(b):b.parts.length?this.ID(b):(this.addDepth(b.depth),this.opcode("getContext",b.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){vard=this.setupFullMustacheParams(a,b,c),e=a.id,g=e.parts[0];if(this.options.knownHelpers[g])this.opcode("invokeKnownHelper",d.length,g);else{if(this.options.knownHelpersOnly)thrownewf("You specified knownHelpersOnly, but used the unknown helper "+g,a);this.ID(e),this.opcode("invokeHelper",d.length,e.original,a.isRoot)}},sexpr:function(a){varb=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ID:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);varb=a.parts[0];b?this.opcode("lookupOnContext",a.parts[0]):this.opcode("pushContext");for(varc=1,d=a.parts.length;d>c;c++)this.opcode("lookup",a.parts[c])},DATA:function(a){this.options.data=!0,this.opcode("lookupData",a.id.depth);for(varb=a.id.parts,c=0,d=b.length;d>c;c++)this.opcode("lookup",b[c])},STRING:function(a){this.opcode("pushString",a.string)},NUMBER:function(a){this.opcode("pushLiteral",a.number)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:[].slice.call(arguments,1)})},declare:function(a,b){this.opcodes.push({opcode:"DECLARE",name:a,value:b})},addDepth:function(a){0!==a&&(this.depths[a]||(this.depths[a]=!0,this.depths.list.push(a)))},classifySexpr:function(a){varb=a.isHelper,c=a.eligibleHelper,d=this.options;if(c&&!b){vare=a.id.parts[0];d.knownHelpers[e]?b=!0:d.knownHelpersOnly&&(c=!1)}returnb?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(varb=0,c=a.length;c>b;b++)this.pushParam(a[b])},pushParam:function(a){this.stringParams?(a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",a.stringModeValue,a.type),"sexpr"===a.type&&this.sexpr(a)):(this.trackIds&&this.opcode("pushId",a.type,a.idName||a.stringModeValue),this.accept(a))},setupFullMustacheParams:function(a,b,c){vard=a.params;returnthis.pushParams(d),this.opcode("pushProgram",b),this.opcode("pushProgram",c),a.hash?this.hash(a.hash):this.opcode("emptyHash"),d}},e.precompile=c,e.compile=d,e}(c),k=function(a,b){"use strict";functionc(a){this.value=a}functiond(){}vare,f=a.COMPILER_REVISION,g=a.REVISION_CHANGES,h=a.log,i=b;d.prototype={nameLookup:function(a,b){varc,e;return0===a.indexOf("depth")&&(c=!0),e=d.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']",c?"("+a+" && "+e+")":e},compilerInfo:function(){vara=f,b=g[a];return[a,b]},appendToBuffer:function(a){returnthis.environment.isSimple?"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+a+";"}}},initializeBuffer:function(){returnthis.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a,this.options=b||{},this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,h("debug",this.environment.disassemble()+"\n\n"),this.name=this.environment.name,this.isChild=!!c,this.context=c||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(a,b);vare,f,g,j=a.opcodes;for(f=0,g=j.length;g>f;f++)e=j[f],"DECLARE"===e.opcode?this[e.name]=e.value:this[e.opcode].apply(this,e.args),e.opcode!==this.stripNext&&(this.stripNext=!1);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)thrownewi("Compile completed with content left on stack");vark=this.creat
}},_.fn.extend({offset:function(a){if(arguments.length)returnvoid0===a?this:this.each(function(b){_.offset.setOffset(this,a,b)});varb,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)returnb=f.documentElement,_.contains(b,d)?(typeofd.getBoundingClientRect!==zb&&(e=d.getBoundingClientRect()),c=P(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){vara,b,c=this[0],d={top:0,left:0};return"fixed"===_.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),_.nodeName(a[0],"html")||(d=a.offset()),d.top+=_.css(a[0],"borderTopWidth",!0),d.left+=_.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-_.css(c,"marginTop",!0),left:b.left-d.left-_.css(c,"marginLeft",!0)}}},offsetParent:function(){returnthis.map(function(){for(vara=this.offsetParent||Kc;a&&!_.nodeName(a,"html")&&"static"===_.css(a,"position");)a=a.offsetParent;returna||Kc})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){vard="pageYOffset"===c;_.fn[b]=function(e){returnqb(this,function(b,e,f){varg=P(b);returnvoid0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),_.each(["top","left"],function(a,b){_.cssHooks[b]=w(Y.pixelPosition,function(a,c){returnc?(c=v(a,b),Qb.test(c)?_(a).position()[b]+"px":c):void0})}),_.each({Height:"height",Width:"width"},function(a,b){_.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){_.fn[d]=function(d,e){varf=arguments.length&&(c||"boolean"!=typeofd),g=c||(d===!0||e===!0?"margin":"border");returnqb(this,function(b,c,d){vare;return_.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void0===d?_.css(b,c,g):_.style(b,c,d,g)},b,f?d:void0,f,null)}})}),_.fn.size=function(){returnthis.length},_.fn.andSelf=_.fn.addBack,"function"==typeofdefine&&define.amd&&define("jquery",[],function(){return_});varLc=a.jQuery,Mc=a.$;return_.noConflict=function(b){returna.$===_&&(a.$=Mc),b&&a.jQuery===_&&(a.jQuery=Lc),_},typeofb===zb&&(a.jQuery=a.$=_),_}),!function(a){"object"==typeofexports?module.exports=a():"function"==typeofdefine&&define.amd?define(a):"undefined"!=typeofwindow?window.io=a():"undefined"!=typeofglobal?global.io=a():"undefined"!=typeofself&&(self.io=a())}(function(){vara;returnfunctionb(a,c,d){functione(g,h){if(!c[g]){if(!a[g]){vari="function"==typeofrequire&&require;if(!h&&i)returni(g,!0);if(f)returnf(g,!0);thrownewError("Cannot find module '"+g+"'")}varj=c[g]={exports:{}};a[g][0].call(j.exports,function(b){varc=a[g][1][b];returne(c?c:b)},j,j.exports,b,a,c,d)}returnc[g].exports}for(varf="function"==typeofrequire&&require,g=0;g<d.length;g++)e(d[g]);returne}({1:[function(a,b){b.exports=a("./lib/")},{"./lib/":2}],2:[function(a,b,c){functiond(a,b){"object"==typeofa&&(b=a,a=void0),b=b||{};varc,d=e(a),f=d.source,j=d.id;returnb.forceNew||b["force new connection"]||!1===b.multiplex?(h("ignoring socket cache for %s",f),c=g(f,b)):(i[j]||(h("new io instance for %s",f),i[j]=g(f,b)),c=i[j]),c.socket(d.path)}vare=a("./url"),f=a("socket.io-parser"),g=a("./manager"),h=a("debug")("socket.io-client");b.exports=c=d;vari=c.managers={};c.protocol=f.protocol,c.connect=d,c.Manager=a("./manager"),c.Socket=a("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:9,"socket.io-parser":40}],3:[function(a,b){functionc(a,b){returnthisinstanceofc?(a&&"object"==typeofa&&(b=a,a=void0),b=b||{},b.path=b.path||"/socket.io",this.nsps={},this.subs=[],this.opts=b,this.reconnection(b.reconnection!==!1),this.reconnectionAttempts(b.reconnectionAttempts||1/0),this.reconnectionDelay(b.reconnectionDelay||1e3),this.reconnectionDelayMax(b.reconnectionDelayMax||5e3),this.timeout(null==b.timeout?2e4:b.timeout),this.readyState="closed",this.uri=a,this.connected=0,this.attempts=0,this.encoding=!1,this.packetBuffer=[],this.encoder=newg.Encoder,this.decoder=newg.Decoder,voidthis.open()):newc(a,b)}vard=(a("./ur
})),this.writable||(h("we are currently writing - waiting to pause"),d++,this.once("drain",function(){h("pre-pause writing complete"),--d||b()}))}elseb()},c.prototype.poll=function(){h("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},c.prototype.onData=function(a){varb=this;h("polling got data %s",a);varc=function(a){return"opening"==b.readyState&&b.onOpen(),"close"==a.type?(b.onClose(),!1):voidb.onPacket(a)};f.decodePayload(a,this.socket.binaryType,c),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))},c.prototype.doClose=function(){functiona(){h("writing close packet"),b.write([{type:"close"}])}varb=this;"open"==this.readyState?(h("transport open - closing"),a()):(h("transport not open - deferring close"),this.once("open",a))},c.prototype.write=function(a){varb=this;this.writable=!1;varc=function(){b.writable=!0,b.emit("drain")},b=this;f.encodePayload(a,this.supportsBinary,function(a){b.doWrite(a,c)})},c.prototype.uri=function(){vara=this.query||{},b=this.secure?"https":"http",c="";return!1!==this.timestampRequests&&(a[this.timestampParam]=+newDate+"-"+d.timestamps++),this.supportsBinary||a.sid||(a.b64=1),a=e.encode(a),this.port&&("https"==b&&443!=this.port||"http"==b&&80!=this.port)&&(c=":"+this.port),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,xmlhttprequest:20}],19:[function(a,b){functionc(a){varb=a&&a.forceBase64;b&&(this.supportsBinary=!1),d.call(this,a)}vard=a("../transport"),e=a("engine.io-parser"),f=a("parseqs"),g=a("component-inherit"),h=a("debug")("engine.io-client:websocket"),i=a("ws");b.exports=c,g(c,d),c.prototype.name="websocket",c.prototype.supportsBinary=!0,c.prototype.doOpen=function(){if(this.check()){vara=this.uri(),b=void0,c={agent:this.agent};this.ws=newi(a,b,c),void0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},c.prototype.addEventListeners=function(){vara=this;this.ws.onopen=function(){a.onOpen()},this.ws.onclose=function(){a.onClose()},this.ws.onmessage=function(b){a.onData(b.data)},this.ws.onerror=function(b){a.onError("websocket error",b)}},"undefined"!=typeofnavigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(c.prototype.onData=function(a){varb=this;setTimeout(function(){d.prototype.onData.call(b,a)},0)}),c.prototype.write=function(a){functionb(){c.writable=!0,c.emit("drain")}varc=this;this.writable=!1;for(vard=0,f=a.length;f>d;d++)e.encodePacket(a[d],this.supportsBinary,function(a){try{c.ws.send(a)}catch(b){h("websocket closed before onclose event")}});setTimeout(b,0)},c.prototype.onClose=function(){d.prototype.onClose.call(this)},c.prototype.doClose=function(){"undefined"!=typeofthis.ws&&this.ws.close()},c.prototype.uri=function(){vara=this.query||{},b=this.secure?"wss":"ws",c="";returnthis.port&&("wss"==b&&443!=this.port||"ws"==b&&80!=this.port)&&(c=":"+this.port),this.timestampRequests&&(a[this.timestampParam]=+newDate),this.supportsBinary||(a.b64=1),a=f.encode(a),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a},c.prototype.check=function(){return!(!i||"__initialize"ini&&this.name===c.prototype.name)}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,ws:31}],20:[function(a,b){varc=a("has-cors");b.exports=function(a){varb=a.xdomain;try{if("undefined"!=typeofXMLHttpRequest&&(!b||c))returnnewXMLHttpRequest}catch(d){}if(!b)try{returnnewActiveXObject("Microsoft.XMLHTTP")}catch(d){}}},{"has-cors":34}],21:[function(a,b){b.exports=function(a,b){varc=function(){};c.prototype=b.prototype,a.prototype=newc,a.prototype.constructor=a}},{}],22:[function(a,b,c){functiond(a,b,d){if(!b)returnc.encodeBase64Packet(a,d);vare=a.data,f=newUint8Array(e),g=newUint8Array(1+e.byteLength);g[0]=o[a.type];for(varh=0;h<f.length;h++)g[h+1]=f[h];returnd(g.buffer)}functione(a,b,d){if(!b)returnc.encodeBase64Packet(a,d);vare=newFileReader;returne.o
},e.parseHost=function(a,b){varc,d,e=a.indexOf("/");return-1===e&&(e=a.length),"["===a.charAt(0)?(c=a.indexOf("]"),b.hostname=a.substring(1,c)||null,b.port=a.substring(c+2,e)||null,"/"===b.port&&(b.port=null)):a.indexOf(":")!==a.lastIndexOf(":")?(b.hostname=a.substring(0,e)||null,b.port=null):(d=a.substring(0,e).split(":"),b.hostname=d[0]||null,b.port=d[1]||null),b.hostname&&"/"!==a.substring(e).charAt(0)&&(e++,a="/"+a),a.substring(e)||"/"},e.parseAuthority=function(a,b){returna=e.parseUserinfo(a,b),e.parseHost(a,b)},e.parseUserinfo=function(a,b){varc,d=a.indexOf("/"),f=d>-1?a.lastIndexOf("@",d):a.indexOf("@");returnf>-1&&(-1===d||d>f)?(c=a.substring(0,f).split(":"),b.username=c[0]?e.decode(c[0]):null,c.shift(),b.password=c[0]?e.decode(c.join(":")):null,a=a.substring(f+1)):(b.username=null,b.password=null),a},e.parseQuery=function(a,b){if(!a)return{};if(a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!a)return{};for(varc,d,f,g={},h=a.split("&"),i=h.length,j=0;i>j;j++)c=h[j].split("="),d=e.decodeQuery(c.shift(),b),f=c.length?e.decodeQuery(c.join("="),b):null,g[d]?("string"==typeofg[d]&&(g[d]=[g[d]]),g[d].push(f)):g[d]=f;returng},e.build=function(a){varb="";returna.protocol&&(b+=a.protocol+":"),a.urn||!b&&!a.hostname||(b+="//"),b+=e.buildAuthority(a)||"","string"==typeofa.path&&("/"!==a.path.charAt(0)&&"string"==typeofa.hostname&&(b+="/"),b+=a.path),"string"==typeofa.query&&a.query&&(b+="?"+a.query),"string"==typeofa.fragment&&a.fragment&&(b+="#"+a.fragment),b},e.buildHost=function(a){varb="";returna.hostname?(b+=e.ip6_expression.test(a.hostname)?"["+a.hostname+"]":a.hostname,a.port&&(b+=":"+a.port),b):""},e.buildAuthority=function(a){returne.buildUserinfo(a)+e.buildHost(a)},e.buildUserinfo=function(a){varb="";returna.username&&(b+=e.encode(a.username),a.password&&(b+=":"+e.encode(a.password)),b+="@"),b},e.buildQuery=function(a,b,c){vard,f,g,i,j="";for(fina)if(p.call(a,f)&&f)if(h(a[f]))for(d={},g=0,i=a[f].length;i>g;g++)void0!==a[f][g]&&void0===d[a[f][g]+""]&&(j+="&"+e.buildQueryParameter(f,a[f][g],c),b!==!0&&(d[a[f][g]+""]=!0));elsevoid0!==a[f]&&(j+="&"+e.buildQueryParameter(f,a[f],c));returnj.substring(1)},e.buildQueryParameter=function(a,b,c){returne.encodeQuery(a,c)+(null!==b?"="+e.encodeQuery(b,c):"")},e.addQuery=function(a,b,c){if("object"==typeofb)for(vardinb)p.call(b,d)&&e.addQuery(a,d,b[d]);else{if("string"!=typeofb)thrownewTypeError("URI.addQuery() accepts an object, string as the name parameter");if(void0===a[b])returnvoid(a[b]=c);"string"==typeofa[b]&&(a[b]=[a[b]]),h(c)||(c=[c]),a[b]=a[b].concat(c)}},e.removeQuery=function(a,b,c){vard,f,g;if(h(b))for(d=0,f=b.length;f>d;d++)a[b[d]]=void0;elseif("object"==typeofb)for(ginb)p.call(b,g)&&e.removeQuery(a,g,b[g]);else{if("string"!=typeofb)thrownewTypeError("URI.addQuery() accepts an object, string as the first parameter");void0!==c?a[b]===c?a[b]=void0:h(a[b])&&(a[b]=i(a[b],c)):a[b]=void0}},e.hasQuery=function(a,b,c,d){if("object"==typeofb){for(varfinb)if(p.call(b,f)&&!e.hasQuery(a,f,b[f]))return!1;return!0}if("string"!=typeofb)thrownewTypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(g(c)){case"Undefined":returnbina;case"Boolean":vari=Boolean(h(a[b])?a[b].length:a[b]);returnc===i;case"Function":return!!c(a[b],b,a);case"Array":if(!h(a[b]))return!1;varl=d?j:k;returnl(a[b],c);case"RegExp":returnh(a[b])?d?j(a[b],c):!1:Boolean(a[b]&&a[b].match(c));case"Number":c=String(c);case"String":returnh(a[b])?d?j(a[b],c):!1:a[b]===c;default:thrownewTypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},e.commonPath=function(a,b){varc,d=Math.min(a.length,b.length);for(c=0;d>c;c++)if(a.charAt(c)!==b.charAt(c)){c--;break}return1>c?a.charAt(0)===b.charAt(0)&&"/"===a.charAt(0)?"/":"":(("/"!==a.charAt(c)||"/"!==b.charAt(c))&&(c=a.substring(0,c).lastIndexOf("/")),a.substring(0,c+1))},e.withinString=function(a,b,c){c||(c={});vard=c.start||e.findUri.start,f=c.end||e.findUri.end,g=c.trim||e.findUri.trim,h=/[a-z0-9-]=["']?$/i;for(d.l