!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SockJS=e():t.SockJS=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(0),o=n(18);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},i.prototype.once=function(t,e){var n=this,r=!1;this.on(t,(function o(){n.removeListener(t,o),r||(r=!0,e.apply(this,arguments))}))},i.prototype.emit=function(){var t=arguments[0],e=this._listeners[t];if(e){for(var n=arguments.length,r=new Array(n-1),o=1;o1)))/4)-l((t-1901+e)/100)+l((t-1601+e)/400)};e=function(t){for(o=l(t/864e5),n=l(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=l((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),s=l((i=(t%864e5+864e5)%864e5)/36e5)%24,a=l(i/6e4)%60,c=l(i/1e3)%60,u=i%1e3}}return(E=function(t){return t>-1/0&&t<1/0?(e(t),t=(n<=0||n>=1e4?(n<0?"-":"+")+_(6,n<0?-n:n):_(4,n))+"-"+_(2,r+1)+"-"+_(2,o)+"T"+_(2,s)+":"+_(2,a)+":"+_(2,c)+"."+_(3,u)+"Z",n=r=o=s=a=c=u=null):t=null,t})(t)};if(b("json-stringify")&&!b("date-serialization")){function S(t){return E(this)}var O=e.stringify;e.stringify=function(t,e,n){var r=i.prototype.toJSON;i.prototype.toJSON=S;var o=O(t,e,n);return i.prototype.toJSON=r,o}}else{var T=function(t){var e=t.charCodeAt(0),n=x[e];return n||"\\u00"+_(2,e.toString(16))},j=/[\x00-\x1f\x22\x5c]/g,C=function(t){return j.lastIndex=0,'"'+(j.test(t)?t.replace(j,T):t)+'"'},A=function(t,e,n,r,o,s,a){var c,l,f,h,p,m,y,b,g;if(v((function(){c=e[t]})),"object"==typeof c&&c&&(c.getUTCFullYear&&"[object Date]"==d.call(c)&&c.toJSON===i.prototype.toJSON?c=E(c):"function"==typeof c.toJSON&&(c=c.toJSON(t))),n&&(c=n.call(e,t,c)),null==c)return void 0===c?c:"null";switch("object"==(l=typeof c)&&(f=d.call(c)),f||l){case"boolean":case"[object Boolean]":return""+c;case"number":case"[object Number]":return c>-1/0&&c<1/0?""+c:"null";case"string":case"[object String]":return C(""+c)}if("object"==typeof c){for(y=a.length;y--;)if(a[y]===c)throw u();if(a.push(c),h=[],b=s,s+=o,"[object Array]"==f){for(m=0,y=c.length;m0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||L();t+=I("0x"+i.slice(e,N));break;default:L()}else{if(34==o)break;for(o=i.charCodeAt(N),e=N;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++N);t+=i.slice(e,N)}if(34==i.charCodeAt(N))return N++,t;L();default:if(e=N,45==o&&(r=!0,o=i.charCodeAt(++N)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(N+1))>=48&&o<=57)&&L(),r=!1;N=48&&o<=57);N++);if(46==i.charCodeAt(N)){for(n=++N;n57);n++);n==N&&L(),N=n}if(101==(o=i.charCodeAt(N))||69==o){for(43!=(o=i.charCodeAt(++N))&&45!=o||N++,n=N;n57);n++);n==N&&L(),N=n}return+i.slice(e,N)}r&&L();var a=i.slice(N,N+4);if("true"==a)return N+=4,!0;if("fals"==a&&101==i.charCodeAt(N+4))return N+=5,!1;if("null"==a)return N+=4,null;L()}return"$"},M=function(t){var e,n;if("$"==t&&L(),"string"==typeof t){if("@"==(g?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=R());)n?","==t?"]"==(t=R())&&L():L():n=!0,","==t&&L(),e.push(M(t));return e}if("{"==t){for(e={};"}"!=(t=R());)n?","==t?"}"==(t=R())&&L():L():n=!0,","!=t&&"string"==typeof t&&"@"==(g?t.charAt(0):t[0])&&":"==R()||L(),e[t.slice(1)]=M(R());return e}L()}return t},U=function(t,e,n){var r=D(t,e,n);void 0===r?delete t[e]:t[e]=r},D=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if("[object Array]"==d.call(o))for(r=o.length;r--;)U(d,w,o);else w(o,(function(t){U(o,t,n)}));return n.call(t,e,o)};e.parse=function(t,e){var n,r;return N=0,k=""+t,n=M(R()),"$"!=R()&&L(),N=k=null,e&&"[object Function]"==d.call(e)?D(((r={})[""]=n,r),"",e):n}}}return e.runInContext=l,e}if(!u||u.global!==u&&u.window!==u&&u.self!==u||(c=u),a&&!i)l(c,a);else{var f=c.JSON,h=c.JSON3,p=!1,d=l(c,c.JSON3={noConflict:function(){return p||(p=!0,c.JSON=f,c.JSON3=h,f=h=null),d}});c.JSON={parse:d.parse,stringify:d.stringify}}i&&(void 0===(o=function(){return d}.call(e,n,e,t))||(t.exports=o))}).call(this)}).call(this,n(43)(t),n(1))},function(t,e,n){"use strict";(function(e){var r=n(6),o={},i=!1,s=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){void 0!==e.addEventListener?e.addEventListener(t,n,!1):e.document&&e.attachEvent&&(e.document.attachEvent("on"+t,n),e.attachEvent("on"+t,n))},detachEvent:function(t,n){void 0!==e.addEventListener?e.removeEventListener(t,n,!1):e.document&&e.detachEvent&&(e.document.detachEvent("on"+t,n),e.detachEvent("on"+t,n))},unloadAdd:function(t){if(s)return null;var e=r.string(8);return o[e]=t,i&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in o&&delete o[t]},triggerUnloadCallbacks:function(){for(var t in o)o[t](),delete o[t]}};s||t.exports.attachEvent("unload",(function(){i||(i=!0,t.exports.triggerUnloadCallbacks())}))}).call(this,n(1))},function(t,e,n){"use strict";var r=n(35);t.exports={string:function(t){for(var e="abcdefghijklmnopqrstuvwxyz012345".length,n=r.randomBytes(t),o=[],i=0;i