月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-06-02 dc0d4a7907f3affdbc116288cac24ad4ba05f319
1
2
/* sockjs-client v1.4.0 | http://sockjs.org | MIT license */
(function(a){"object"===typeof exports&&"undefined"!==typeof module?module.exports=a():"function"===typeof define&&define.amd?define([],a):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).SockJS=a()})(function(){return function(){function a(f,k,d){function c(e,g){if(!k[e]){if(!f[e]){var h="function"==typeof require&&require;if(!g&&h)return h(e,!0);if(b)return b(e,!0);h=Error("Cannot find module '"+e+"'");throw h.code="MODULE_NOT_FOUND",h;}h=k[e]={exports:{}};f[e][0].call(h.exports,function(b){return c(f[e][1][b]||b)},h,h.exports,a,f,k,d)}return k[e].exports}for(var b="function"==typeof require&&require,g=0;g<d.length;g++)c(d[g]);return c}return a}()({1:[function(a,f,k){k="undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};var d=a("./transport-list");f.exports=a("./main")(d);"_sockjs_onload"in k&&setTimeout(k._sockjs_onload,1)},{"./main":14,"./transport-list":16}],2:[function(a,f,k){function d(){c.call(this);this.initEvent("close",!1,!1);this.wasClean=!1;this.code=0;this.reason=""}k=a("inherits");var c=a("./event");k(d,c);f.exports=d},{"./event":4,inherits:57}],3:[function(a,f,k){function d(){c.call(this)}k=a("inherits");var c=a("./eventtarget");k(d,c);d.prototype.removeAllListeners=function(b){b?delete this._listeners[b]:this._listeners={}};d.prototype.once=function(b,c){function a(){g.removeListener(b,a);d||(d=!0,c.apply(this,arguments))}var g=this,d=!1;this.on(b,a)};d.prototype.emit=function(){var b=this._listeners[arguments[0]];if(b){for(var c=arguments.length,a=Array(c-1),h=1;h<c;h++)a[h-1]=arguments[h];for(c=0;c<b.length;c++)b[c].apply(this,a)}};d.prototype.on=d.prototype.addListener=c.prototype.addEventListener;d.prototype.removeListener=c.prototype.removeEventListener;f.exports.EventEmitter=d},{"./eventtarget":5,inherits:57}],4:[function(a,f,k){function d(c){this.type=c}d.prototype.initEvent=function(c,b,a){this.type=c;this.bubbles=b;this.cancelable=a;this.timeStamp=+new Date;return this};d.prototype.stopPropagation=function(){};d.prototype.preventDefault=function(){};d.CAPTURING_PHASE=1;d.AT_TARGET=2;d.BUBBLING_PHASE=3;f.exports=d},{}],5:[function(a,f,k){function d(){this._listeners={}}d.prototype.addEventListener=function(c,b){c in this._listeners||(this._listeners[c]=[]);var a=this._listeners[c];-1===a.indexOf(b)&&(a=a.concat([b]));this._listeners[c]=a};d.prototype.removeEventListener=function(c,b){var a=this._listeners[c];if(a){var e=a.indexOf(b);-1!==e&&(1<a.length?this._listeners[c]=a.slice(0,e).concat(a.slice(e+1)):delete this._listeners[c])}};d.prototype.dispatchEvent=function(){var a=arguments[0],b=a.type,a=1===arguments.length?[a]:Array.apply(null,arguments);this["on"+b]&&this["on"+b].apply(this,a);if(b in this._listeners)for(var b=this._listeners[b],d=0;d<b.length;d++)b[d].apply(this,a)};f.exports=d},{}],6:[function(a,f,k){function d(b){c.call(this);this.initEvent("message",!1,!1);this.data=b}k=a("inherits");var c=a("./event");k(d,c);f.exports=d},{"./event":4,inherits:57}],7:[function(a,f,k){function d(b){this._transport=b;b.on("message",this._transportMessage.bind(this));b.on("close",this._transportClose.bind(this))}var c=a("json3"),b=a("./utils/iframe");d.prototype._transportClose=function(a,e){b.postMessage("c",c.stringify([a,e]))};d.prototype._transportMessage=function(a){b.postMessage("t",a)};d.prototype._send=function(b){this._transport.send(b)};d.prototype._close=function(){this._transport.close();this._transport.removeAllListeners()};f.exports=d},{"./utils/iframe":47,json3:58}],8:[function(a,f,k){(function(d){var c=a("./utils/url"),b=a("./utils/event"),g=a("json3"),e=a("./facade"),h=a("./info-iframe-receiver"),l=a("./utils/iframe"),r=a("./location"),n=function(){};"production"!==d.env.NODE_ENV&&(n=a("debug")("sockjs-client:iframe-bootstrap"));f.exports=function(a,d){var p={};d.forEach(function(b){b.facadeTransport&&(p[b.facadeTransport.transportName]=b.facadeTransport)});p[h.transportName]=h;var E;a.bootstrap_iframe=function(){var d;l.currentWindowId=r.hash.slice(1);b.attachEvent("message",function(b){if(b.source===parent&&("undefined"===typeof E&&(E=b.origin),b.origin===E)){var h;try{h=g.parse(b.data)}catch(J){n("bad json",b.data);return}if(h.windowId===l.currentWindowId)switch(h.type){case "s":var m;try{m=g.parse(h.data)}catch(J){n("bad json",h.data);break}b=m[0];h=m[1];var f=m[2];m=m[3];n(b,h,f,m);if(b!==a.version)throw Error('Incompatible SockJS! Main site uses: "'+b+'", the iframe: "'+a.version+'".');if(!c.isOriginEqual(f,r.href)||!c.isOriginEqual(m,r.href))throw Error("Can't connect to different domain from within an iframe. ("+r.href+", "+f+", "+m+")");d=new e(new p[h](f,m));break;case "m":d._send(h.data);break;case "c":d&&d._close(),d=null}}});l.postMessage("s")}}}).call(this,{env:{}})},{"./facade":7,"./info-iframe-receiver":10,"./location":13,"./utils/event":46,"./utils/iframe":47,"./utils/url":52,debug:55,json3:58}],9:[function(a,f,k){(function(d){function c(a,c){b.call(this);var d=this,g=+new Date;this.xo=new c("GET",a);this.xo.once("finish",function(b,a){var c,p;if(200===b){p=+new Date-g;if(a)try{c=e.parse(a)}catch(G){l("bad json",a)}h.isObject(c)||(c={})}d.emit("finish",c,p);d.removeAllListeners()})}var b=a("events").EventEmitter,g=a("inherits"),e=a("json3"),h=a("./utils/object"),l=function(){};"production"!==d.env.NODE_ENV&&(l=a("debug")("sockjs-client:info-ajax"));g(c,b);c.prototype.close=function(){this.removeAllListeners();this.xo.close()};f.exports=c}).call(this,{env:{}})},{"./utils/object":49,debug:55,events:3,inherits:57,json3:58}],10:[function(a,f,k){function d(a){var d=this;c.call(this);this.ir=new e(a,g);this.ir.once("finish",function(a,c){d.ir=null;d.emit("message",b.stringify([a,c]))})}k=a("inherits");var c=a("events").EventEmitter,b=a("json3"),g=a("./transport/sender/xhr-local"),e=a("./info-ajax");k(d,c);d.transportName="iframe-info-receiver";d.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null);this.removeAllListeners()};f.exports=d},{"./info-ajax":9,"./transport/sender/xhr-local":37,events:3,inherits:57,json3:58}],11:[function(a,f,k){(function(d,c){function b(b,a){var d=this;g.call(this);var e=function(){var c=d.ifr=new r(n.transportName,a,b);c.once("message",function(b){if(b){var a;try{a=h.parse(b)}catch(R){k("bad json",b);d.emit("finish");d.close();return}d.emit("finish",a[0],a[1])}d.close()});c.once("close",function(){d.emit("finish");d.close()})};c.document.body?e():l.attachEvent("load",e)}var g=a("events").EventEmitter,e=a("inherits"),h=a("json3"),l=a("./utils/event"),r=a("./transport/iframe"),n=a("./info-iframe-receiver"),k=function(){};"production"!==d.env.NODE_ENV&&(k=a("debug")("sockjs-client:info-iframe"));e(b,g);b.enabled=function(){return r.enabled()};b.prototype.close=function(){this.ifr&&this.ifr.close();this.removeAllListeners();this.ifr=null};f.exports=b}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./info-iframe-receiver":10,"./transport/iframe":22,"./utils/event":46,debug:55,events:3,inherits:57,json3:58}],12:[function(a,f,k){(function(d){function c(a,c){p(a);var d=this;b.call(this);setTimeout(function(){d.doXhr(a,c)},0)}var b=a("events").EventEmitter,g=a("inherits"),e=a("./utils/url"),h=a("./transport/sender/xdr"),l=a("./transport/sender/xhr-cors"),r=a("./transport/sender/xhr-local"),n=a("./transport/sender/xhr-fake"),k=a("./info-iframe"),m=a("./info-ajax"),p=function(){};"production"!==d.env.NODE_ENV&&(p=a("debug")("sockjs-client:info-receiver"));g(c,b);c._getReceiver=function(b,a,c){return c.sameOrigin?new m(a,r):l.enabled?new m(a,l):h.enabled&&c.sameScheme?new m(a,h):k.enabled()?new k(b,a):new m(a,n)};c.prototype.doXhr=function(b,a){var d=this,h=e.addPath(b,"/info");p("doXhr",h);this.xo=c._getReceiver(b,h,a);this.timeoutRef=setTimeout(function(){p("timeout");d._cleanup(!1);d.emit("finish")},c.timeout);this.xo.once("finish",function(b,a){p("finish",b,a);d._cleanup(!0);d.emit("finish",b,a)})};c.prototype._cleanup=function(b){p("_cleanup");clearTimeout(this.timeoutRef);this.timeoutRef=null;!b&&this.xo&&this.xo.close();this.xo=null};c.prototype.close=function(){p("close");this.removeAllListeners();this._cleanup(!1)};c.timeout=8E3;f.exports=c}).call(this,{env:{}})},{"./info-ajax":9,"./info-iframe":11,"./transport/sender/xdr":34,"./transport/sender/xhr-cors":35,"./transport/sender/xhr-fake":36,"./transport/sender/xhr-local":37,"./utils/url":52,debug:55,events:3,inherits:57}],13:[function(a,f,k){f.exports=("undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{}).location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}},{}],14:[function(a,f,k){(function(d,c){function b(a,c,d){if(!(this instanceof b))return new b(a,c,d);if(1>arguments.length)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");G.call(this);this.readyState=b.CONNECTING;this.protocol=this.extensions="";d=d||{};d.protocols_whitelist&&X.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead.");this._transportsWhitelist=d.transports;this._transportOptions=d.transportOptions||{};this._timeout=d.timeout||0;var h=d.sessionId||8;if("function"===typeof h)this._generateSessionId=h;else if("number"===typeof h)this._generateSessionId=function(){return l.string(h)};else throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._server=d.server||l.numberString(1E3);var e=new g(a);if(e.host&&e.protocol){if(e.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==e.protocol&&"https:"!==e.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+e.protocol+"' is not allowed.");}else throw new SyntaxError("The URL '"+a+"' is invalid");var p="https:"===e.protocol;if("https:"===A.protocol&&!p)throw Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");c?Array.isArray(c)||(c=[c]):c=[];var m=c.sort();m.forEach(function(b,a){if(!b)throw new SyntaxError("The protocols entry '"+b+"' is invalid.");if(a<m.length-1&&b===m[a+1])throw new SyntaxError("The protocols entry '"+b+"' is duplicated.");});this._origin=(p=n.getOrigin(A.href))?p.toLowerCase():null;e.set("pathname",e.pathname.replace(/\/+$/,""));this.url=e.href;u("using url",this.url);this._urlInfo={nullOrigin:!E.hasDomain(),sameOrigin:n.isOriginEqual(this.url,A.href),sameScheme:n.isSchemeEqual(this.url,A.href)};this._ir=new S(this.url,this._urlInfo);this._ir.once("finish",this._receiveInfo.bind(this))}a("./shims");var g=a("url-parse"),e=a("inherits"),h=a("json3"),l=a("./utils/random"),r=a("./utils/escape"),n=a("./utils/url"),k=a("./utils/event"),m=a("./utils/transport"),p=a("./utils/object"),E=a("./utils/browser"),X=a("./utils/log"),w=a("./event/event"),G=a("./event/eventtarget"),A=a("./location"),R=a("./event/close"),J=a("./event/trans-message"),S=a("./info-receiver"),u=function(){};"production"!==d.env.NODE_ENV&&(u=a("debug")("sockjs-client:main"));var T;e(b,G);b.prototype.close=function(a,c){if(a&&!(1E3===a||3E3<=a&&4999>=a))throw Error("InvalidAccessError: Invalid code");if(c&&123<c.length)throw new SyntaxError("reason argument has an invalid length");this.readyState!==b.CLOSING&&this.readyState!==b.CLOSED&&this._close(a||1E3,c||"Normal closure",!0)};b.prototype.send=function(a){"string"!==typeof a&&(a=""+a);if(this.readyState===b.CONNECTING)throw Error("InvalidStateError: The connection has not been established yet");this.readyState===b.OPEN&&this._transport.send(r.quote(a))};b.version=a("./version");b.CONNECTING=0;b.OPEN=1;b.CLOSING=2;b.CLOSED=3;b.prototype._receiveInfo=function(b,a){u("_receiveInfo",a);this._ir=null;b?(this._rto=this.countRTO(a),this._transUrl=b.base_url?b.base_url:this.url,b=p.extend(b,this._urlInfo),u("info",b),this._transports=T.filterToEnabled(this._transportsWhitelist,b).main,u(this._transports.length+" enabled transports"),this._connect()):this._close(1002,"Cannot connect to server")};b.prototype._connect=function(){for(var b=this._transports.shift();b;){u("attempt",b.transportName);if(b.needBody&&(!c.document.body||"undefined"!==typeof c.document.readyState&&"complete"!==c.document.readyState&&"interactive"!==c.document.readyState)){u("waiting for body");this._transports.unshift(b);k.attachEvent("load",this._connect.bind(this));return}var a=Math.max(this._timeout,this._rto*b.roundTrips||5E3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),a);u("using timeout",a);var a=n.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),d=this._transportOptions[b.transportName];u("transport url",a);a=new b(a,this._transUrl,d);a.on("message",this._transportMessage.bind(this));a.once("close",this._transportClose.bind(this));a.transportName=b.transportName;this._transport=a;return}this._close(2E3,"All transports failed",!1)};b.prototype._transportTimeout=function(){u("_transportTimeout");this.readyState===b.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))};b.prototype._transportMessage=function(b){u("_transportMessage",b);var a=this,c=b.slice(0,1);b=b.slice(1);var d;switch(c){case "o":this._open();return;case "h":this.dispatchEvent(new w("heartbeat"));u("heartbeat",this.transport);return}if(b)try{d=h.parse(b)}catch(I){u("bad json",b)}if("undefined"===typeof d)u("empty payload",b);else switch(c){case "a":Array.isArray(d)&&d.forEach(function(b){u("message",a.transport,b);a.dispatchEvent(new J(b))});break;case "m":u("message",this.transport,d);this.dispatchEvent(new J(d));break;case "c":Array.isArray(d)&&2===d.length&&this._close(d[0],d[1],!0)}};b.prototype._transportClose=function(a,c){u("_transportClose",this.transport,a,c);this._transport&&(this._transport.removeAllListeners(),this.transport=this._transport=null);1E3===a||3E3<=a&&4999>=a||2E3===a||this.readyState!==b.CONNECTING?this._close(a,c):this._connect()};b.prototype._open=function(){u("_open",this._transport&&this._transport.transportName,this.readyState);this.readyState===b.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=b.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new w("open")),u("connected",this.transport)):this._close(1006,"Server lost session")};b.prototype._close=function(a,c,d){u("_close",this.transport,a,c,d,this.readyState);var e=!1;this._ir&&(e=!0,this._ir.close(),this._ir=null);this._transport&&(this._transport.close(),this.transport=this._transport=null);if(this.readyState===b.CLOSED)throw Error("InvalidStateError: SockJS has already been closed");this.readyState=b.CLOSING;setTimeout(function(){this.readyState=b.CLOSED;e&&this.dispatchEvent(new w("error"));var h=new R("close");h.wasClean=d||!1;h.code=a||1E3;h.reason=c;this.dispatchEvent(h);this.onmessage=this.onclose=this.onerror=null;u("disconnected")}.bind(this),0)};b.prototype.countRTO=function(b){return 100<b?4*b:300+b};f.exports=function(c){T=m(c);a("./iframe-bootstrap")(b,c);return b}}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./event/close":2,"./event/event":4,"./event/eventtarget":5,"./event/trans-message":6,"./iframe-bootstrap":8,"./info-receiver":12,"./location":13,"./shims":15,"./utils/browser":44,"./utils/escape":45,"./utils/event":46,"./utils/log":48,"./utils/object":49,"./utils/random":50,"./utils/transport":51,"./utils/url":52,"./version":53,debug:55,inherits:57,json3:58,"url-parse":61}],15:[function(a,f,k){function d(){}var c=Array.prototype,b=Object.prototype;f=Function.prototype;var g=String.prototype,e=c.slice,h=b.toString;if(a=Object.defineProperty)try{Object.defineProperty({},"x",{}),a=!0}catch(p){a=!1}var l;l=a?function(b,a,c,d){!d&&a in b||Object.defineProperty(b,a,{configurable:!0,enumerable:!1,writable:!0,value:c})}:function(b,a,c,d){!d&&a in b||(b[a]=c)};a=function(a,c,d){for(var e in c)b.hasOwnProperty.call(c,e)&&l(a,e,c[e],d)};var r=function(b){if(null==b)throw new TypeError("can't convert "+b+" to object");return Object(b)};a(f,{bind:function(a){var c=this;if("[object Function]"!==b.toString.call(c))throw new TypeError("Function.prototype.bind called on incompatible "+c);for(var h=e.call(arguments,1),g=Math.max(0,c.length-h.length),m=[],p=0;p<g;p++)m.push("$"+p);var l=Function("binder","return function ("+m.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof l){var b=c.apply(this,h.concat(e.call(arguments)));return Object(b)===b?b:this}return c.apply(a,h.concat(e.call(arguments)))});c.prototype&&(d.prototype=c.prototype,l.prototype=new d,d.prototype=null);return l}});a(Array,{isArray:function(b){return"[object Array]"===h.call(b)}});f=Object("a");var n="a"!==f[0]||!(0 in f);a(c,{forEach:function(a,c){var d=r(this),e=n&&"[object String]"===h.call(this)?this.split(""):d,g=-1,m=e.length>>>0;if("[object Function]"!==b.toString.call(a))throw new TypeError;for(;++g<m;)g in e&&a.call(c,e[g],g,d)}},!function(b){var a=!0,c=!0;b&&(b.call("foo",function(b,c,d){"object"!==typeof d&&(a=!1)}),b.call([1],function(){c="string"===typeof this},"x"));return!!b&&a&&c}(c.forEach));f=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);a(c,{indexOf:function(b){var a=n&&"[object String]"===h.call(this)?this.split(""):r(this),c=a.length>>>0;if(!c)return-1;var d=0;1<arguments.length&&(d=+arguments[1],d!==d?d=0:0!==d&&d!==1/0&&d!==-(1/0)&&(d=(0<d||-1)*Math.floor(Math.abs(d))));for(d=0<=d?d:Math.max(0,c+d);d<c;d++)if(d in a&&a[d]===b)return d;return-1}},f);var t=g.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||1<".".split(/()()/).length?function(){var b=void 0===/()??/.exec("")[1];g.split=function(a,d){var e=this;if(void 0===a&&0===d)return[];if("[object RegExp]"!==h.call(a))return t.call(this,a,d);var g=[],m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.extended?"x":"")+(a.sticky?"y":""),p=0,l,n,E;a=new RegExp(a.source,m+"g");e+="";b||(l=new RegExp("^"+a.source+"$(?!\\s)",m));for(d=void 0===d?4294967295:d>>>0;n=a.exec(e);){m=n.index+n[0].length;if(m>p&&(g.push(e.slice(p,n.index)),!b&&1<n.length&&n[0].replace(l,function(){for(var a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)}),1<n.length&&n.index<e.length&&c.push.apply(g,n.slice(1)),E=n[0].length,p=m,g.length>=d))break;a.lastIndex===n.index&&a.lastIndex++}p===e.length?!E&&a.test("")||g.push(""):g.push(e.slice(p));return g.length>d?g.slice(0,d):g}}():"0".split(void 0,0).length&&(g.split=function(a,b){return void 0===a&&0===b?[]:t.call(this,a,b)});var m=g.substr;f="".substr&&"b"!=="0b".substr(-1);a(g,{substr:function(a,b){return m.call(this,0>a?0>(a=this.length+a)?0:a:a,b)}},f)},{}],16:[function(a,f,k){f.exports=[a("./transport/websocket"),a("./transport/xhr-streaming"),a("./transport/xdr-streaming"),a("./transport/eventsource"),a("./transport/lib/iframe-wrap")(a("./transport/eventsource")),a("./transport/htmlfile"),a("./transport/lib/iframe-wrap")(a("./transport/htmlfile")),a("./transport/xhr-polling"),a("./transport/xdr-polling"),a("./transport/lib/iframe-wrap")(a("./transport/xhr-polling")),a("./transport/jsonp-polling")]},{"./transport/eventsource":20,"./transport/htmlfile":21,"./transport/jsonp-polling":23,"./transport/lib/iframe-wrap":26,"./transport/websocket":38,"./transport/xdr-polling":39,"./transport/xdr-streaming":40,"./transport/xhr-polling":41,"./transport/xhr-streaming":42}],17:[function(a,f,k){(function(d,c){function b(a,b,c,d){n(a,b);var e=this;g.call(this);setTimeout(function(){e._start(a,b,c,d)},0)}var g=a("events").EventEmitter,e=a("inherits"),h=a("../../utils/event"),l=a("../../utils/url"),r=c.XMLHttpRequest,n=function(){};"production"!==d.env.NODE_ENV&&(n=a("debug")("sockjs-client:browser:xhr"));e(b,g);b.prototype._start=function(a,c,d,e){var g=this;try{this.xhr=new r}catch(A){}if(this.xhr){c=l.addQuery(c,"t\x3d"+ +new Date);this.unloadRef=h.unloadAdd(function(){n("unload cleanup");g._cleanup(!0)});try{this.xhr.open(a,c,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){n("xhr timeout");g.emit("finish",0,"");g._cleanup(!1)})}catch(A){n("exception",A);this.emit("finish",0,"");this._cleanup(!1);return}e&&e.noCredentials||!b.supportsCORS||(n("withCredentials"),this.xhr.withCredentials=!0);if(e&&e.headers)for(var m in e.headers)this.xhr.setRequestHeader(m,e.headers[m]);this.xhr.onreadystatechange=function(){if(g.xhr){var a=g.xhr,b,c;n("readyState",a.readyState);switch(a.readyState){case 3:try{c=a.status,b=a.responseText}catch(S){}n("status",c);1223===c&&(c=204);200===c&&b&&0<b.length&&(n("chunk"),g.emit("chunk",c,b));break;case 4:c=a.status;n("status",c);1223===c&&(c=204);if(12005===c||12029===c)c=0;n("finish",c,a.responseText);g.emit("finish",c,a.responseText);g._cleanup(!1)}}};try{g.xhr.send(d)}catch(A){g.emit("finish",0,""),g._cleanup(!1)}}else n("no xhr"),this.emit("finish",0,"no xhr support"),this._cleanup()};b.prototype._cleanup=function(a){n("cleanup");if(this.xhr){this.removeAllListeners();h.unloadDel(this.unloadRef);this.xhr.onreadystatechange=function(){};this.xhr.ontimeout&&(this.xhr.ontimeout=null);if(a)try{this.xhr.abort()}catch(p){}this.unloadRef=this.xhr=null}};b.prototype.close=function(){n("close");this._cleanup(!0)};b.enabled=!!r;var k=["Active"].concat("Object").join("X");!b.enabled&&k in c&&(n("overriding xmlhttprequest"),r=function(){try{return new c[k]("Microsoft.XMLHTTP")}catch(m){return null}},b.enabled=!!new r);e=!1;try{e="withCredentials"in new r}catch(m){}b.supportsCORS=e;f.exports=b}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../../utils/event":46,"../../utils/url":52,debug:55,events:3,inherits:57}],18:[function(a,f,k){f.exports=("undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{}).EventSource},{}],19:[function(a,f,k){(function(a){var c=a.WebSocket||a.MozWebSocket;f.exports=c?function(a){return new c(a)}:void 0}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],20:[function(a,f,k){function d(a){if(!d.enabled())throw Error("Transport created when disabled");c.call(this,a,"/eventsource",b,g)}k=a("inherits");var c=a("./lib/ajax-based"),b=a("./receiver/eventsource"),g=a("./sender/xhr-cors"),e=a("eventsource");k(d,c);d.enabled=function(){return!!e};d.transportName="eventsource";d.roundTrips=2;f.exports=d},{"./lib/ajax-based":24,"./receiver/eventsource":29,"./sender/xhr-cors":35,eventsource:18,inherits:57}],21:[function(a,f,k){function d(a){if(!c.enabled)throw Error("Transport created when disabled");g.call(this,a,"/htmlfile",c,b)}k=a("inherits");var c=a("./receiver/htmlfile"),b=a("./sender/xhr-local"),g=a("./lib/ajax-based");k(d,g);d.enabled=function(a){return c.enabled&&a.sameOrigin};d.transportName="htmlfile";d.roundTrips=2;f.exports=d},{"./lib/ajax-based":24,"./receiver/htmlfile":30,"./sender/xhr-local":37,inherits:57}],22:[function(a,f,k){(function(d){function c(a,b,d){if(!c.enabled())throw Error("Transport created when disabled");e.call(this);var h=this;this.origin=l.getOrigin(d);this.baseUrl=d;this.transUrl=b;this.transport=a;this.windowId=k.string(8);d=l.addPath(d,"/iframe.html")+"#"+this.windowId;m(a,b,d);this.iframeObj=r.createIframe(d,function(a){m("err callback");h.emit("close",1006,"Unable to load an iframe ("+a+")");h.close()});this.onmessageCallback=this._message.bind(this);n.attachEvent("message",this.onmessageCallback)}var b=a("inherits"),g=a("json3"),e=a("events").EventEmitter,h=a("../version"),l=a("../utils/url"),r=a("../utils/iframe"),n=a("../utils/event"),k=a("../utils/random"),m=function(){};"production"!==d.env.NODE_ENV&&(m=a("debug")("sockjs-client:transport:iframe"));b(c,e);c.prototype.close=function(){m("close");this.removeAllListeners();if(this.iframeObj){n.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(p){}this.iframeObj.cleanup();this.onmessageCallback=this.iframeObj=null}};c.prototype._message=function(a){m("message",a.data);if(l.isOriginEqual(a.origin,this.origin)){var b;try{b=g.parse(a.data)}catch(w){m("bad json",a.data);return}if(b.windowId!==this.windowId)m("mismatched window id",b.windowId,this.windowId);else switch(b.type){case "s":this.iframeObj.loaded();this.postMessage("s",g.stringify([h,this.transport,this.transUrl,this.baseUrl]));break;case "t":this.emit("message",b.data);break;case "c":var c;try{c=g.parse(b.data)}catch(w){m("bad json",b.data);break}this.emit("close",c[0],c[1]);this.close()}}else m("not same origin",a.origin,this.origin)};c.prototype.postMessage=function(a,b){m("postMessage",a,b);this.iframeObj.post(g.stringify({windowId:this.windowId,type:a,data:b||""}),this.origin)};c.prototype.send=function(a){m("send",a);this.postMessage("m",a)};c.enabled=function(){return r.iframeEnabled};c.transportName="iframe";c.roundTrips=2;f.exports=c}).call(this,{env:{}})},{"../utils/event":46,"../utils/iframe":47,"../utils/random":50,"../utils/url":52,"../version":53,debug:55,events:3,inherits:57,json3:58}],23:[function(a,f,k){(function(d){function c(a){if(!c.enabled())throw Error("Transport created when disabled");g.call(this,a,"/jsonp",h,e)}var b=a("inherits"),g=a("./lib/sender-receiver"),e=a("./receiver/jsonp"),h=a("./sender/jsonp");b(c,g);c.enabled=function(){return!!d.document};c.transportName="jsonp-polling";c.roundTrips=1;c.needBody=!0;f.exports=c}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./lib/sender-receiver":28,"./receiver/jsonp":31,"./sender/jsonp":33,inherits:57}],24:[function(a,f,k){(function(d){function c(a){return function(b,c,d){l("create ajax sender",b,c);var h={};"string"===typeof c&&(h.headers={"Content-type":"text/plain"});b=e.addPath(b,"/xhr_send");var g=new a("POST",b,c,h);g.once("finish",function(a){l("finish",a);g=null;if(200!==a&&204!==a)return d(Error("http status "+a));d()});return function(){l("abort");g.close();g=null;var a=Error("Aborted");a.code=1E3;d(a)}}}function b(a,b,d,e){h.call(this,a,b,c(e),d,e)}var g=a("inherits"),e=a("../../utils/url"),h=a("./sender-receiver"),l=function(){};"production"!==d.env.NODE_ENV&&(l=a("debug")("sockjs-client:ajax-based"));g(b,h);f.exports=b}).call(this,{env:{}})},{"../../utils/url":52,"./sender-receiver":28,debug:55,inherits:57}],25:[function(a,f,k){(function(d){function c(a,b){e(a);g.call(this);this.sendBuffer=[];this.sender=b;this.url=a}var b=a("inherits"),g=a("events").EventEmitter,e=function(){};"production"!==d.env.NODE_ENV&&(e=a("debug")("sockjs-client:buffered-sender"));b(c,g);c.prototype.send=function(a){e("send",a);this.sendBuffer.push(a);this.sendStop||this.sendSchedule()};c.prototype.sendScheduleWait=function(){e("sendScheduleWait");var a=this,b;this.sendStop=function(){e("sendStop");a.sendStop=null;clearTimeout(b)};b=setTimeout(function(){e("timeout");a.sendStop=null;a.sendSchedule()},25)};c.prototype.sendSchedule=function(){e("sendSchedule",this.sendBuffer.length);var a=this;if(0<this.sendBuffer.length){var b="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,b,function(b){a.sendStop=null;b?(e("error",b),a.emit("close",b.code||1006,"Sending error: "+b),a.close()):a.sendScheduleWait()});this.sendBuffer=[]}};c.prototype._cleanup=function(){e("_cleanup");this.removeAllListeners()};c.prototype.close=function(){e("close");this._cleanup();this.sendStop&&(this.sendStop(),this.sendStop=null)};f.exports=c}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],26:[function(a,f,k){(function(d){var c=a("inherits"),b=a("../iframe"),g=a("../../utils/object");f.exports=function(a){function e(c,d){b.call(this,a.transportName,c,d)}c(e,b);e.enabled=function(c,e){if(!d.document)return!1;var h=g.extend({},e);h.sameOrigin=!0;return a.enabled(h)&&b.enabled()};e.transportName="iframe-"+a.transportName;e.needBody=!0;e.roundTrips=b.roundTrips+a.roundTrips-1;e.facadeTransport=a;return e}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../../utils/object":49,"../iframe":22,inherits:57}],27:[function(a,f,k){(function(d){function c(a,b,c){e(b);g.call(this);this.Receiver=a;this.receiveUrl=b;this.AjaxObject=c;this._scheduleReceiver()}var b=a("inherits"),g=a("events").EventEmitter,e=function(){};"production"!==d.env.NODE_ENV&&(e=a("debug")("sockjs-client:polling"));b(c,g);c.prototype._scheduleReceiver=function(){e("_scheduleReceiver");var a=this,b=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);b.on("message",function(b){e("message",b);a.emit("message",b)});b.once("close",function(c,d){e("close",c,d,a.pollIsClosing);a.poll=b=null;a.pollIsClosing||("network"===d?a._scheduleReceiver():(a.emit("close",c||1006,d),a.removeAllListeners()))})};c.prototype.abort=function(){e("abort");this.removeAllListeners();this.pollIsClosing=!0;this.poll&&this.poll.abort()};f.exports=c}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],28:[function(a,f,k){(function(d){function c(a,b,c,d,p){b=g.addPath(a,b);l(b);var m=this;e.call(this,a,c);this.poll=new h(d,b,p);this.poll.on("message",function(a){l("poll message",a);m.emit("message",a)});this.poll.once("close",function(a,b){l("poll close",a,b);m.poll=null;m.emit("close",a,b);m.close()})}var b=a("inherits"),g=a("../../utils/url"),e=a("./buffered-sender"),h=a("./polling"),l=function(){};"production"!==d.env.NODE_ENV&&(l=a("debug")("sockjs-client:sender-receiver"));b(c,e);c.prototype.close=function(){e.prototype.close.call(this);l("close");this.removeAllListeners();this.poll&&(this.poll.abort(),this.poll=null)};f.exports=c}).call(this,{env:{}})},{"../../utils/url":52,"./buffered-sender":25,"./polling":27,debug:55,inherits:57}],29:[function(a,f,k){(function(d){function c(a){h(a);g.call(this);var b=this,c=this.es=new e(a);c.onmessage=function(a){h("message",a.data);b.emit("message",decodeURI(a.data))};c.onerror=function(a){h("error",c.readyState,a);a=2!==c.readyState?"network":"permanent";b._cleanup();b._close(a)}}var b=a("inherits"),g=a("events").EventEmitter,e=a("eventsource"),h=function(){};"production"!==d.env.NODE_ENV&&(h=a("debug")("sockjs-client:receiver:eventsource"));b(c,g);c.prototype.abort=function(){h("abort");this._cleanup();this._close("user")};c.prototype._cleanup=function(){h("cleanup");var a=this.es;a&&(a.onmessage=a.onerror=null,a.close(),this.es=null)};c.prototype._close=function(a){h("close",a);var b=this;setTimeout(function(){b.emit("close",null,a);b.removeAllListeners()},200)};f.exports=c}).call(this,{env:{}})},{debug:55,events:3,eventsource:18,inherits:57}],30:[function(a,f,k){(function(d,c){function b(a){n(a);l.call(this);var d=this;e.polluteGlobalNamespace();this.id="a"+k.string(6);a=h.addQuery(a,"c\x3d"+decodeURIComponent(e.WPrefix+"."+this.id));n("using htmlfile",b.htmlfileEnabled);var g=b.htmlfileEnabled?e.createHtmlfile:e.createIframe;c[e.WPrefix][this.id]={start:function(){n("start");d.iframeObj.loaded()},message:function(a){n("message",a);d.emit("message",a)},stop:function(){n("stop");d._cleanup();d._close("network")}};this.iframeObj=g(a,function(){n("callback");d._cleanup();d._close("permanent")})}var g=a("inherits"),e=a("../../utils/iframe"),h=a("../../utils/url"),l=a("events").EventEmitter,k=a("../../utils/random"),n=function(){};"production"!==d.env.NODE_ENV&&(n=a("debug")("sockjs-client:receiver:htmlfile"));g(b,l);b.prototype.abort=function(){n("abort");this._cleanup();this._close("user")};b.prototype._cleanup=function(){n("_cleanup");this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null);delete c[e.WPrefix][this.id]};b.prototype._close=function(a){n("_close",a);this.emit("close",null,a);this.removeAllListeners()};b.htmlfileEnabled=!1;g=["Active"].concat("Object").join("X");if(g in c)try{b.htmlfileEnabled=!!new c[g]("htmlfile")}catch(t){}b.enabled=b.htmlfileEnabled||e.iframeEnabled;f.exports=b}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:55,events:3,inherits:57}],31:[function(a,f,k){(function(d,c){function b(a){t(a);var d=this;n.call(this);g.polluteGlobalNamespace();this.id="a"+e.string(6);a=l.addQuery(a,"c\x3d"+encodeURIComponent(g.WPrefix+"."+this.id));c[g.WPrefix][this.id]=this._callback.bind(this);this._createScript(a);this.timeoutId=setTimeout(function(){t("timeout");d._abort(Error("JSONP script loaded abnormally (timeout)"))},b.timeout)}var g=a("../../utils/iframe"),e=a("../../utils/random"),h=a("../../utils/browser"),l=a("../../utils/url"),k=a("inherits"),n=a("events").EventEmitter,t=function(){};"production"!==d.env.NODE_ENV&&(t=a("debug")("sockjs-client:receiver:jsonp"));k(b,n);b.prototype.abort=function(){t("abort");if(c[g.WPrefix][this.id]){var a=Error("JSONP user aborted read");a.code=1E3;this._abort(a)}};b.timeout=35E3;b.scriptErrorTimeout=1E3;b.prototype._callback=function(a){t("_callback",a);this._cleanup();this.aborting||(a&&(t("message",a),this.emit("message",a)),this.emit("close",null,"network"),this.removeAllListeners())};b.prototype._abort=function(a){t("_abort",a);this._cleanup();this.aborting=!0;this.emit("close",a.code,a.message);this.removeAllListeners()};b.prototype._cleanup=function(){t("_cleanup");clearTimeout(this.timeoutId);this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null);if(this.script){var a=this.script;a.parentNode.removeChild(a);this.script=a.onreadystatechange=a.onerror=a.onload=a.onclick=null}delete c[g.WPrefix][this.id]};b.prototype._scriptError=function(){t("_scriptError");var a=this;this.errorTimer||(this.errorTimer=setTimeout(function(){a.loadedOkay||a._abort(Error("JSONP script loaded abnormally (onerror)"))},b.scriptErrorTimeout))};b.prototype._createScript=function(a){t("_createScript",a);var b=this,d=this.script=c.document.createElement("script"),g;d.id="a"+e.string(8);d.src=a;d.type="text/javascript";d.charset="UTF-8";d.onerror=this._scriptError.bind(this);d.onload=function(){t("onload");b._abort(Error("JSONP script loaded abnormally (onload)"))};d.onreadystatechange=function(){t("onreadystatechange",d.readyState);if(/loaded|closed/.test(d.readyState)){if(d&&d.htmlFor&&d.onclick){b.loadedOkay=!0;try{d.onclick()}catch(w){}}d&&b._abort(Error("JSONP script loaded abnormally (onreadystatechange)"))}};if("undefined"===typeof d.async&&c.document.attachEvent)if(h.isOpera())g=this.script2=c.document.createElement("script"),g.text="try{var a \x3d document.getElementById('"+d.id+"'); if(a)a.onerror();}catch(x){};",d.async=g.async=!1;else{try{d.htmlFor=d.id,d.event="onclick"}catch(w){}d.async=!0}"undefined"!==typeof d.async&&(d.async=!0);a=c.document.getElementsByTagName("head")[0];a.insertBefore(d,a.firstChild);g&&a.insertBefore(g,a.firstChild)};f.exports=b}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:55,events:3,inherits:57}],32:[function(a,f,k){(function(d){function c(a,b){e(a);g.call(this);var c=this;this.bufferPosition=0;this.xo=new b("POST",a,null);this.xo.on("chunk",this._chunkHandler.bind(this));this.xo.once("finish",function(a,b){e("finish",a,b);c._chunkHandler(a,b);c.xo=null;var d=200===a?"network":"permanent";e("close",d);c.emit("close",null,d);c._cleanup()})}var b=a("inherits"),g=a("events").EventEmitter,e=function(){};"production"!==d.env.NODE_ENV&&(e=a("debug")("sockjs-client:receiver:xhr"));b(c,g);c.prototype._chunkHandler=function(a,b){e("_chunkHandler",a);if(200===a&&b)for(var c;;this.bufferPosition+=c+1){var d=b.slice(this.bufferPosition);c=d.indexOf("\n");if(-1===c)break;if(d=d.slice(0,c))e("message",d),this.emit("message",d)}};c.prototype._cleanup=function(){e("_cleanup");this.removeAllListeners()};c.prototype.abort=function(){e("abort");this.xo&&(this.xo.close(),e("close"),this.emit("close",null,"user"),this.xo=null);this._cleanup()};f.exports=c}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],33:[function(a,f,k){(function(d,c){function b(a){h("createIframe",a);try{return c.document.createElement('\x3ciframe name\x3d"'+a+'"\x3e')}catch(m){var b=c.document.createElement("iframe");b.name=a;return b}}var g=a("../../utils/random"),e=a("../../utils/url"),h=function(){};"production"!==d.env.NODE_ENV&&(h=a("debug")("sockjs-client:sender:jsonp"));var l,k;f.exports=function(a,d,m){h(a,d);l||(h("createForm"),l=c.document.createElement("form"),l.style.display="none",l.style.position="absolute",l.method="POST",l.enctype="application/x-www-form-urlencoded",l.acceptCharset="UTF-8",k=c.document.createElement("textarea"),k.name="d",l.appendChild(k),c.document.body.appendChild(l));var p="a"+g.string(8);l.target=p;l.action=e.addQuery(e.addPath(a,"/jsonp_send"),"i\x3d"+p);var f=b(p);f.id=p;f.style.display="none";l.appendChild(f);try{k.value=d}catch(w){}l.submit();var n=function(a){h("completed",p,a);f.onerror&&(f.onreadystatechange=f.onerror=f.onload=null,setTimeout(function(){h("cleaning up",p);f.parentNode.removeChild(f);f=null},500),k.value="",m(a))};f.onerror=function(){h("onerror",p);n()};f.onload=function(){h("onload",p);n()};f.onreadystatechange=function(a){h("onreadystatechange",p,f.readyState,a);"complete"===f.readyState&&n()};return function(){h("aborted",p);n(Error("Aborted"))}}}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../../utils/random":50,"../../utils/url":52,debug:55}],34:[function(a,f,k){(function(d,c){function b(a,b,c){n(a,b);var d=this;g.call(this);setTimeout(function(){d._start(a,b,c)},0)}var g=a("events").EventEmitter,e=a("inherits"),h=a("../../utils/event"),l=a("../../utils/browser"),k=a("../../utils/url"),n=function(){};"production"!==d.env.NODE_ENV&&(n=a("debug")("sockjs-client:sender:xdr"));e(b,g);b.prototype._start=function(a,b,d){n("_start");var e=this,g=new c.XDomainRequest;b=k.addQuery(b,"t\x3d"+ +new Date);g.onerror=function(){n("onerror");e._error()};g.ontimeout=function(){n("ontimeout");e._error()};g.onprogress=function(){n("progress",g.responseText);e.emit("chunk",200,g.responseText)};g.onload=function(){n("load");e.emit("finish",200,g.responseText);e._cleanup(!1)};this.xdr=g;this.unloadRef=h.unloadAdd(function(){e._cleanup(!0)});try{this.xdr.open(a,b),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(d)}catch(w){this._error()}};b.prototype._error=function(){this.emit("finish",0,"");this._cleanup(!1)};b.prototype._cleanup=function(a){n("cleanup",a);if(this.xdr){this.removeAllListeners();h.unloadDel(this.unloadRef);this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null;if(a)try{this.xdr.abort()}catch(m){}this.unloadRef=this.xdr=null}};b.prototype.close=function(){n("close");this._cleanup(!0)};b.enabled=!(!c.XDomainRequest||!l.hasDomain());f.exports=b}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../../utils/browser":44,"../../utils/event":46,"../../utils/url":52,debug:55,events:3,inherits:57}],35:[function(a,f,k){function d(a,d,e,h){c.call(this,a,d,e,h)}k=a("inherits");var c=a("../driver/xhr");k(d,c);d.enabled=c.enabled&&c.supportsCORS;f.exports=d},{"../driver/xhr":17,inherits:57}],36:[function(a,f,k){function d(){var a=this;c.call(this);this.to=setTimeout(function(){a.emit("finish",200,"{}")},d.timeout)}var c=a("events").EventEmitter;a("inherits")(d,c);d.prototype.close=function(){clearTimeout(this.to)};d.timeout=2E3;f.exports=d},{events:3,inherits:57}],37:[function(a,f,k){function d(a,d,e){c.call(this,a,d,e,{noCredentials:!0})}k=a("inherits");var c=a("../driver/xhr");k(d,c);d.enabled=c.enabled;f.exports=d},{"../driver/xhr":17,inherits:57}],38:[function(a,f,k){(function(d){function c(a,d,e){if(!c.enabled())throw Error("Transport created when disabled");h.call(this);k("constructor",a);var f=this;a=g.addPath(a,"/websocket");this.url=a="https"===a.slice(0,5)?"wss"+a.slice(5):"ws"+a.slice(4);this.ws=new l(this.url,[],e);this.ws.onmessage=function(a){k("message event",a.data);f.emit("message",a.data)};this.unloadRef=b.unloadAdd(function(){k("unload");f.ws.close()});this.ws.onclose=function(a){k("close event",a.code,a.reason);f.emit("close",a.code,a.reason);f._cleanup()};this.ws.onerror=function(a){k("error event",a);f.emit("close",1006,"WebSocket connection broken");f._cleanup()}}var b=a("../utils/event"),g=a("../utils/url"),e=a("inherits"),h=a("events").EventEmitter,l=a("./driver/websocket"),k=function(){};"production"!==d.env.NODE_ENV&&(k=a("debug")("sockjs-client:websocket"));e(c,h);c.prototype.send=function(a){a="["+a+"]";k("send",a);this.ws.send(a)};c.prototype.close=function(){k("close");var a=this.ws;this._cleanup();a&&a.close()};c.prototype._cleanup=function(){k("_cleanup");var a=this.ws;a&&(a.onmessage=a.onclose=a.onerror=null);b.unloadDel(this.unloadRef);this.unloadRef=this.ws=null;this.removeAllListeners()};c.enabled=function(){k("enabled");return!!l};c.transportName="websocket";c.roundTrips=2;f.exports=c}).call(this,{env:{}})},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:55,events:3,inherits:57}],39:[function(a,f,k){function d(a){if(!e.enabled)throw Error("Transport created when disabled");c.call(this,a,"/xhr",g,e)}k=a("inherits");var c=a("./lib/ajax-based"),b=a("./xdr-streaming"),g=a("./receiver/xhr"),e=a("./sender/xdr");k(d,c);d.enabled=b.enabled;d.transportName="xdr-polling";d.roundTrips=2;f.exports=d},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:57}],40:[function(a,f,k){function d(a){if(!g.enabled)throw Error("Transport created when disabled");c.call(this,a,"/xhr_streaming",b,g)}k=a("inherits");var c=a("./lib/ajax-based"),b=a("./receiver/xhr"),g=a("./sender/xdr");k(d,c);d.enabled=function(a){return a.cookie_needed||a.nullOrigin?!1:g.enabled&&a.sameScheme};d.transportName="xdr-streaming";d.roundTrips=2;f.exports=d},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:57}],41:[function(a,f,k){function d(a){if(!e.enabled&&!g.enabled)throw Error("Transport created when disabled");c.call(this,a,"/xhr",b,g)}k=a("inherits");var c=a("./lib/ajax-based"),b=a("./receiver/xhr"),g=a("./sender/xhr-cors"),e=a("./sender/xhr-local");k(d,c);d.enabled=function(a){return a.nullOrigin?!1:e.enabled&&a.sameOrigin?!0:g.enabled};d.transportName="xhr-polling";d.roundTrips=2;f.exports=d},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],42:[function(a,f,k){(function(d){function c(a){if(!l.enabled&&!h.enabled)throw Error("Transport created when disabled");g.call(this,a,"/xhr_streaming",e,h)}var b=a("inherits"),g=a("./lib/ajax-based"),e=a("./receiver/xhr"),h=a("./sender/xhr-cors"),l=a("./sender/xhr-local"),k=a("../utils/browser");b(c,g);c.enabled=function(a){return a.nullOrigin||k.isOpera()?!1:h.enabled};c.transportName="xhr-streaming";c.roundTrips=2;c.needBody=!!d.document;f.exports=c}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],43:[function(a,f,k){(function(a){f.exports.randomBytes=a.crypto&&a.crypto.getRandomValues?function(c){c=new Uint8Array(c);a.crypto.getRandomValues(c);return c}:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Math.floor(256*Math.random());return b}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],44:[function(a,f,k){(function(a){f.exports={isOpera:function(){return a.navigator&&/opera/i.test(a.navigator.userAgent)},isKonqueror:function(){return a.navigator&&/konqueror/i.test(a.navigator.userAgent)},hasDomain:function(){if(!a.document)return!0;try{return!!a.document.domain}catch(c){return!1}}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],45:[function(a,f,k){var d=a("json3"),c=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,b,g=function(a){var b,c={},d=[];for(b=0;65536>b;b++)d.push(String.fromCharCode(b));a.lastIndex=0;d.join("").replace(a,function(a){c[a]="\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);return""});a.lastIndex=0;return c};f.exports={quote:function(a){a=d.stringify(a);c.lastIndex=0;if(!c.test(a))return a;b||(b=g(c));return a.replace(c,function(a){return b[a]})}}},{json3:58}],46:[function(a,f,k){(function(d){var c=a("./random"),b={},g=!1,e=d.chrome&&d.chrome.app&&d.chrome.app.runtime;f.exports={attachEvent:function(a,b){"undefined"!==typeof d.addEventListener?d.addEventListener(a,b,!1):d.document&&d.attachEvent&&(d.document.attachEvent("on"+a,b),d.attachEvent("on"+a,b))},detachEvent:function(a,b){"undefined"!==typeof d.addEventListener?d.removeEventListener(a,b,!1):d.document&&d.detachEvent&&(d.document.detachEvent("on"+a,b),d.detachEvent("on"+a,b))},unloadAdd:function(a){if(e)return null;var d=c.string(8);b[d]=a;g&&setTimeout(this.triggerUnloadCallbacks,0);return d},unloadDel:function(a){a in b&&delete b[a]},triggerUnloadCallbacks:function(){for(var a in b)b[a](),delete b[a]}};e||f.exports.attachEvent("unload",function(){g||(g=!0,f.exports.triggerUnloadCallbacks())})}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./random":50}],47:[function(a,f,k){(function(d,c){var b=a("./event"),g=a("json3"),e=a("./browser"),h=function(){};"production"!==d.env.NODE_ENV&&(h=a("debug")("sockjs-client:utils:iframe"));f.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){f.exports.WPrefix in c||(c[f.exports.WPrefix]={})},postMessage:function(a,b){c.parent!==c?c.parent.postMessage(g.stringify({windowId:f.exports.currentWindowId,type:a,data:b||""}),"*"):h("Cannot postMessage, no parent window.",a,b)},createIframe:function(a,d){var e=c.document.createElement("iframe"),g,f,p=function(){h("unattach");clearTimeout(g);try{e.onload=null}catch(w){}e.onerror=null},k=function(){h("cleanup");e&&(p(),setTimeout(function(){e&&e.parentNode.removeChild(e);e=null},0),b.unloadDel(f))},l=function(a){h("onerror",a);e&&(k(),d(a))};e.src=a;e.style.display="none";e.style.position="absolute";e.onerror=function(){l("onerror")};e.onload=function(){h("onload");clearTimeout(g);g=setTimeout(function(){l("onload timeout")},2E3)};c.document.body.appendChild(e);g=setTimeout(function(){l("timeout")},15E3);f=b.unloadAdd(k);return{post:function(a,b){h("post",a,b);setTimeout(function(){try{e&&e.contentWindow&&e.contentWindow.postMessage(a,b)}catch(A){}},0)},cleanup:k,loaded:p}},createHtmlfile:function(a,d){var e=["Active"].concat("Object").join("X"),g=new c[e]("htmlfile"),m,k,l,r=function(){clearTimeout(m);l.onerror=null},w=function(){g&&(r(),b.unloadDel(k),l.parentNode.removeChild(l),l=g=null,CollectGarbage())},G=function(a){h("onerror",a);g&&(w(),d(a))};g.open();g.write('\x3chtml\x3e\x3cscript\x3edocument.domain\x3d"'+c.document.domain+'";\x3c/script\x3e\x3c/html\x3e');g.close();g.parentWindow[f.exports.WPrefix]=c[f.exports.WPrefix];e=g.createElement("div");g.body.appendChild(e);l=g.createElement("iframe");e.appendChild(l);l.src=a;l.onerror=function(){G("onerror")};m=setTimeout(function(){G("timeout")},15E3);k=b.unloadAdd(w);return{post:function(a,b){try{setTimeout(function(){l&&l.contentWindow&&l.contentWindow.postMessage(a,b)},0)}catch(J){}},cleanup:w,loaded:r}}};f.exports.iframeEnabled=!1;c.document&&(f.exports.iframeEnabled=("function"===typeof c.postMessage||"object"===typeof c.postMessage)&&!e.isKonqueror())}).call(this,{env:{}},"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./browser":44,"./event":46,debug:55,json3:58}],48:[function(a,f,k){(function(a){var c={};["log","debug","warn"].forEach(function(b){var d;try{d=a.console&&a.console[b]&&a.console[b].apply}catch(e){}c[b]=d?function(){return a.console[b].apply(a.console,arguments)}:"log"===b?function(){}:c.log});f.exports=c}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],49:[function(a,f,k){f.exports={isObject:function(a){var c=typeof a;return"function"===c||"object"===c&&!!a},extend:function(a){if(!this.isObject(a))return a;for(var c,b,d=1,e=arguments.length;d<e;d++)for(b in c=arguments[d],c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b]);return a}}},{}],50:[function(a,f,k){var d=a("crypto");f.exports={string:function(a){for(var b=d.randomBytes(a),c=[],e=0;e<a;e++)c.push("abcdefghijklmnopqrstuvwxyz012345".substr(b[e]%32,1));return c.join("")},number:function(a){return Math.floor(Math.random()*a)},numberString:function(a){var b=(""+(a-1)).length;return(Array(b+1).join("0")+this.number(a)).slice(-b)}}},{crypto:43}],51:[function(a,f,k){(function(d){var c=function(){};"production"!==d.env.NODE_ENV&&(c=a("debug")("sockjs-client:utils:transport"));f.exports=function(a){return{filterToEnabled:function(b,d){var e={main:[],facade:[]};b?"string"===typeof b&&(b=[b]):b=[];a.forEach(function(a){a&&("websocket"===a.transportName&&!1===d.websocket?c("disabled from server","websocket"):b.length&&-1===b.indexOf(a.transportName)?c("not in whitelist",a.transportName):a.enabled(d)?(c("enabled",a.transportName),e.main.push(a),a.facadeTransport&&e.facade.push(a.facadeTransport)):c("disabled",a.transportName))});return e}}}}).call(this,{env:{}})},{debug:55}],52:[function(a,f,k){(function(d){var c=a("url-parse"),b=function(){};"production"!==d.env.NODE_ENV&&(b=a("debug")("sockjs-client:utils:url"));f.exports={getOrigin:function(a){if(!a)return null;a=new c(a);if("file:"===a.protocol)return null;var b=a.port;b||(b="https:"===a.protocol?"443":"80");return a.protocol+"//"+a.hostname+":"+b},isOriginEqual:function(a,c){var d=this.getOrigin(a)===this.getOrigin(c);b("same",a,c,d);return d},isSchemeEqual:function(a,b){return a.split(":")[0]===b.split(":")[0]},addPath:function(a,b){var c=a.split("?");return c[0]+b+(c[1]?"?"+c[1]:"")},addQuery:function(a,b){return a+(-1===a.indexOf("?")?"?"+b:"\x26"+b)}}}).call(this,{env:{}})},{debug:55,"url-parse":61}],53:[function(a,f,k){f.exports="1.4.0"},{}],54:[function(a,f,k){function d(a){a=String(a);if(!(100<a.length)&&(a=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a))){var b=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case "years":case "year":case "yrs":case "yr":case "y":return 315576E5*b;case "weeks":case "week":case "w":return 6048E5*b;case "days":case "day":case "d":return 864E5*b;case "hours":case "hour":case "hrs":case "hr":case "h":return 36E5*b;case "minutes":case "minute":case "mins":case "min":case "m":return 6E4*b;case "seconds":case "second":case "secs":case "sec":case "s":return 1E3*b;case "milliseconds":case "millisecond":case "msecs":case "msec":case "ms":return b}}}function c(a,c,d,h){return Math.round(a/d)+" "+h+(c>=1.5*d?"s":"")}f.exports=function(a,g){g=g||{};var b=typeof a;if("string"===b&&0<a.length)return d(a);if("number"===b&&!1===isNaN(a))return g["long"]?(b=Math.abs(a),b=864E5<=b?c(a,b,864E5,"day"):36E5<=b?c(a,b,36E5,"hour"):6E4<=b?c(a,b,6E4,"minute"):1E3<=b?c(a,b,1E3,"second"):a+" ms"):(b=Math.abs(a),b=864E5<=b?Math.round(a/864E5)+"d":36E5<=b?Math.round(a/36E5)+"h":6E4<=b?Math.round(a/6E4)+"m":1E3<=b?Math.round(a/1E3)+"s":a+"ms"),b;throw Error("val is not a non-empty string or a valid number. val\x3d"+JSON.stringify(a));}},{}],55:[function(a,f,k){(function(d){function c(a){c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};return c(a)}k.log=function(){var a;return"object"===("undefined"===typeof console?"undefined":c(console))&&console.log&&(a=console).log.apply(a,arguments)};k.formatArgs=function(a){a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+f.exports.humanize(this.diff);if(this.useColors){var b="color: "+this.color;a.splice(1,0,b,"color: inherit");var c=0,d=0;a[0].replace(/%[a-zA-Z%]/g,function(a){"%%"!==a&&(c++,"%c"===a&&(d=c))});a.splice(d,0,b)}};k.save=function(a){try{a?k.storage.setItem("debug",a):k.storage.removeItem("debug")}catch(e){}};k.load=function(){var a;try{a=k.storage.getItem("debug")}catch(e){}!a&&"undefined"!==typeof d&&"env"in d&&(a=d.env.DEBUG);return a};k.useColors=function(){return"undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs)?!0:"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)};var b;a:{try{b=localStorage;break a}catch(g){}b=void 0}k.storage=b;k.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".split(" ");f.exports=a("./common")(k);f.exports.formatters.j=function(a){try{return JSON.stringify(a)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,{env:{}})},{"./common":56}],56:[function(a,f,k){f.exports=function(d){function c(a){for(var c=0,d=0;d<a.length;d++)c=(c<<5)-c+a.charCodeAt(d),c|=0;return b.colors[Math.abs(c)%b.colors.length]}function b(a){function d(){for(var a=arguments.length,c=Array(a),e=0;e<a;e++)c[e]=arguments[e];if(d.enabled){a=Number(new Date);d.diff=a-(f||a);d.prev=f;f=d.curr=a;c[0]=b.coerce(c[0]);"string"!==typeof c[0]&&c.unshift("%O");var g=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,function(a,e){if("%%"===a)return a;g++;var f=b.formatters[e];"function"===typeof f&&(a=f.call(d,c[g]),c.splice(g,1),g--);return a});b.formatArgs.call(d,c);(d.log||b.log).apply(d,c)}}var f;d.namespace=a;d.enabled=b.enabled(a);d.useColors=b.useColors();d.color=c(a);d.destroy=g;d.extend=e;"function"===typeof b.init&&b.init(d);b.instances.push(d);return d}function g(){var a=b.instances.indexOf(this);return-1!==a?(b.instances.splice(a,1),!0):!1}function e(a,c){return b(this.namespace+("undefined"===typeof c?":":c)+a)}b.debug=b;b["default"]=b;b.coerce=function(a){return a instanceof Error?a.stack||a.message:a};b.disable=function(){b.enable("")};b.enable=function(a){b.save(a);b.names=[];b.skips=[];var c,d=("string"===typeof a?a:"").split(/[\s,]+/),e=d.length;for(c=0;c<e;c++)d[c]&&(a=d[c].replace(/\*/g,".*?"),"-"===a[0]?b.skips.push(new RegExp("^"+a.substr(1)+"$")):b.names.push(new RegExp("^"+a+"$")));for(c=0;c<b.instances.length;c++)a=b.instances[c],a.enabled=b.enabled(a.namespace)};b.enabled=function(a){if("*"===a[a.length-1])return!0;var c,d;c=0;for(d=b.skips.length;c<d;c++)if(b.skips[c].test(a))return!1;c=0;for(d=b.names.length;c<d;c++)if(b.names[c].test(a))return!0;return!1};b.humanize=a("ms");Object.keys(d).forEach(function(a){b[a]=d[a]});b.instances=[];b.names=[];b.skips=[];b.formatters={};b.selectColor=c;b.enable(b.load());return b}},{ms:54}],57:[function(a,f,k){f.exports="function"===typeof Object.create?function(a,c){a.super_=c;a.prototype=Object.create(c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:function(a,c){a.super_=c;var b=function(){};b.prototype=c.prototype;a.prototype=new b;a.prototype.constructor=a}},{}],58:[function(a,f,k){(function(a){(function(){function c(a,d){function g(a){if(g[a]!==y)return g[a];var b;if("bug-string-char-index"==a)b=!1;else if("json"==a)b=g("json-stringify")&&g("json-parse");else{var c;if("json-stringify"==a){b=d.stringify;var e="function"==typeof b&&z;if(e){(c=function(){return 1}).toJSON=c;try{e="0"===b(0)&&"0"===b(new f)&&'""'==b(new k)&&b(t)===y&&b(y)===y&&b()===y&&"1"===b(c)&&"[1]"==b([c])&&"[null]"==b([y])&&"null"==b(null)&&"[null,null,null]"==b([y,t,null])&&'{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'==b({a:[c,!0,!1,null,"\x00\b\n\f\r\t"]})&&"1"===b(null,c)&&"[\n 1,\n 2\n]"==b([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==b(new m(-864E13))&&'"+275760-09-13T00:00:00.000Z"'==b(new m(864E13))&&'"-000001-01-01T00:00:00.000Z"'==b(new m(-621987552E5))&&'"1969-12-31T23:59:59.999Z"'==b(new m(-1))}catch(M){e=!1}}b=e}if("json-parse"==a){b=d.parse;if("function"==typeof b)try{if(0===b("0")&&!b(!1)){c=b('{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}');var h=5==c.a.length&&1===c.a[0];if(h){try{h=!b('"\t"')}catch(M){}if(h)try{h=1!==b("01")}catch(M){}if(h)try{h=1!==b("1.")}catch(M){}}}}catch(M){h=!1}b=h}}return g[a]=!!b}a||(a=e.Object());d||(d=e.Object());var f=a.Number||e.Number,k=a.String||e.String,h=a.Object||e.Object,m=a.Date||e.Date,p=a.SyntaxError||e.SyntaxError,l=a.TypeError||e.TypeError,n=a.Math||e.Math,r=a.JSON||e.JSON;"object"==typeof r&&r&&(d.stringify=r.stringify,d.parse=r.parse);var h=h.prototype,t=h.toString,x,H,y,z=new m(-0xc782b5b800cec);try{z=-109252==z.getUTCFullYear()&&0===z.getUTCMonth()&&1===z.getUTCDate()&&10==z.getUTCHours()&&37==z.getUTCMinutes()&&6==z.getUTCSeconds()&&708==z.getUTCMilliseconds()}catch(L){}if(!g("json")){var I=g("bug-string-char-index");if(!z)var B=n.floor,Y=[0,31,59,90,120,151,181,212,243,273,304,334],K=function(a,b){return Y[b]+365*(a-1970)+B((a-1969+(b=+(1<b)))/4)-B((a-1901+b)/100)+B((a-1601+b)/400)};(x=h.hasOwnProperty)||(x=function(a){var b={},c;(b.__proto__=null,b.__proto__={toString:1},b).toString!=t?x=function(a){var b=this.__proto__;a=a in(this.__proto__=null,this);this.__proto__=b;return a}:(c=b.constructor,x=function(a){var b=(this.constructor||c).prototype;return a in this&&!(a in b&&this[a]===b[a])});b=null;return x.call(this,a)});H=function(a,c){var d=0,e,g,f;(e=function(){this.valueOf=0}).prototype.valueOf=0;g=new e;for(f in g)x.call(g,f)&&d++;e=g=null;d?H=2==d?function(a,b){var c={},d="[object Function]"==t.call(a),e;for(e in a)d&&"prototype"==e||x.call(c,e)||!(c[e]=1)||!x.call(a,e)||b(e)}:function(a,b){var c="[object Function]"==t.call(a),d,e;for(d in a)c&&"prototype"==d||!x.call(a,d)||(e="constructor"===d)||b(d);(e||x.call(a,d="constructor"))&&b(d)}:(g="valueOf toString toLocaleString propertyIsEnumerable isPrototypeOf hasOwnProperty constructor".split(" "),H=function(a,c){var d="[object Function]"==t.call(a),e,f=!d&&"function"!=typeof a.constructor&&b[typeof a.hasOwnProperty]&&a.hasOwnProperty||x;for(e in a)d&&"prototype"==e||!f.call(a,e)||c(e);for(d=g.length;e=g[--d];f.call(a,e)&&c(e));});return H(a,c)};if(!g("json-stringify")){var Z={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},D=function(a,b){return("000000"+(b||0)).slice(-a)},U=function(a){for(var b='"',c=0,d=a.length,e=!I||10<d,g=e&&(I?a.split(""):a);c<d;c++){var f=a.charCodeAt(c);switch(f){case 8:case 9:case 10:case 12:case 13:case 34:case 92:b+=Z[f];break;default:b=32>f?b+("\\u00"+D(2,f.toString(16))):b+(e?g[c]:a.charAt(c))}}return b+'"'},P=function(a,b,c,d,e,g,f){var h,k,m,p,n,L,O,q,C;try{h=b[a]}catch(ca){}if("object"==typeof h&&h)if(k=t.call(h),"[object Date]"!=k||x.call(h,"toJSON"))"function"==typeof h.toJSON&&("[object Number]"!=k&&"[object String]"!=k&&"[object Array]"!=k||x.call(h,"toJSON"))&&(h=h.toJSON(a));else if(h>-1/0&&h<1/0){if(K){p=B(h/864E5);for(k=B(p/365.2425)+1970-1;K(k+1,0)<=p;k++);for(m=B((p-K(k,0))/30.42);K(k,m+1)<=p;m++);p=1+p-K(k,m);n=(h%864E5+864E5)%864E5;L=B(n/36E5)%24;O=B(n/6E4)%60;q=B(n/1E3)%60;n%=1E3}else k=h.getUTCFullYear(),m=h.getUTCMonth(),p=h.getUTCDate(),L=h.getUTCHours(),O=h.getUTCMinutes(),q=h.getUTCSeconds(),n=h.getUTCMilliseconds();h=(0>=k||1E4<=k?(0>k?"-":"+")+D(6,0>k?-k:k):D(4,k))+"-"+D(2,m+1)+"-"+D(2,p)+"T"+D(2,L)+":"+D(2,O)+":"+D(2,q)+"."+D(3,n)+"Z"}else h=null;c&&(h=c.call(b,a,h));if(null===h)return"null";k=t.call(h);if("[object Boolean]"==k)return""+h;if("[object Number]"==k)return h>-1/0&&h<1/0?""+h:"null";if("[object String]"==k)return U(""+h);if("object"==typeof h){for(a=f.length;a--;)if(f[a]===h)throw l();f.push(h);C=[];b=g;g+=e;if("[object Array]"==k){m=0;for(a=h.length;m<a;m++)k=P(m,h,c,d,e,g,f),C.push(k===y?"null":k);a=C.length?e?"[\n"+g+C.join(",\n"+g)+"\n"+b+"]":"["+C.join(",")+"]":"[]"}else H(d||h,function(a){var b=P(a,h,c,d,e,g,f);b!==y&&C.push(U(a)+":"+(e?" ":"")+b)}),a=C.length?e?"{\n"+g+C.join(",\n"+g)+"\n"+b+"}":"{"+C.join(",")+"}":"{}";f.pop();return a}};d.stringify=function(a,c,d){var e,g,f,h;if(b[typeof c]&&c)if("[object Function]"==(h=t.call(c)))g=c;else if("[object Array]"==h){f={};for(var k=0,m=c.length,p;k<m;p=c[k++],(h=t.call(p),"[object String]"==h||"[object Number]"==h)&&(f[p]=1));}if(d)if("[object Number]"==(h=t.call(d))){if(0<(d-=d%1))for(e="",10<d&&(d=10);e.length<d;e+=" ");}else"[object String]"==h&&(e=10>=d.length?d:d.slice(0,10));return P("",(p={},p[""]=a,p),g,f,e,"",[])}}if(!g("json-parse")){var aa=k.fromCharCode,ba={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},q,N,v=function(){q=N=null;throw p();},F=function(){for(var a=N,b=a.length,c,d,e,g,f;q<b;)switch(f=a.charCodeAt(q),f){case 9:case 10:case 13:case 32:q++;break;case 123:case 125:case 91:case 93:case 58:case 44:return c=I?a.charAt(q):a[q],q++,c;case 34:c="@";for(q++;q<b;)if(f=a.charCodeAt(q),32>f)v();else if(92==f)switch(f=a.charCodeAt(++q),f){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:c+=ba[f];q++;break;case 117:d=++q;for(e=q+4;q<e;q++)f=a.charCodeAt(q),48<=f&&57>=f||97<=f&&102>=f||65<=f&&70>=f||v();c+=aa("0x"+a.slice(d,q));break;default:v()}else{if(34==f)break;f=a.charCodeAt(q);for(d=q;32<=f&&92!=f&&34!=f;)f=a.charCodeAt(++q);c+=a.slice(d,q)}if(34==a.charCodeAt(q))return q++,c;v();default:d=q;45==f&&(g=!0,f=a.charCodeAt(++q));if(48<=f&&57>=f){for(48==f&&(f=a.charCodeAt(q+1),48<=f&&57>=f)&&v();q<b&&(f=a.charCodeAt(q),48<=f&&57>=f);q++);if(46==a.charCodeAt(q)){for(e=++q;e<b&&(f=a.charCodeAt(e),48<=f&&57>=f);e++);e==q&&v();q=e}f=a.charCodeAt(q);if(101==f||69==f){f=a.charCodeAt(++q);43!=f&&45!=f||q++;for(e=q;e<b&&(f=a.charCodeAt(e),48<=f&&57>=f);e++);e==q&&v();q=e}return+a.slice(d,q)}g&&v();if("true"==a.slice(q,q+4))return q+=4,!0;if("false"==a.slice(q,q+5))return q+=5,!1;if("null"==a.slice(q,q+4))return q+=4,null;v()}return"$"},Q=function(a){var b,c;"$"==a&&v();if("string"==typeof a){if("@"==(I?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(b=[];;c||(c=!0)){a=F();if("]"==a)break;c&&(","==a?(a=F(),"]"==a&&v()):v());","==a&&v();b.push(Q(a))}return b}if("{"==a){for(b={};;c||(c=!0)){a=F();if("}"==a)break;c&&(","==a?(a=F(),"}"==a&&v()):v());","!=a&&"string"==typeof a&&"@"==(I?a.charAt(0):a[0])&&":"==F()||v();b[a.slice(1)]=Q(F())}return b}v()}return a},W=function(a,b,c){c=V(a,b,c);c===y?delete a[b]:a[b]=c},V=function(a,b,c){var d=a[b],e;if("object"==typeof d&&d)if("[object Array]"==t.call(d))for(e=d.length;e--;)W(d,e,c);else H(d,function(a){W(d,a,c)});return c.call(a,b,d)};d.parse=function(a,b){var c,d;q=0;N=""+a;c=Q(F());"$"!=F()&&v();q=N=null;return b&&"[object Function]"==t.call(b)?V((d={},d[""]=c,d),"",b):c}}}d.runInContext=c;return d}var b={"function":!0,object:!0},d=b[typeof k]&&k&&!k.nodeType&&k,e=b[typeof window]&&window||this,h=d&&b[typeof f]&&f&&!f.nodeType&&"object"==typeof a&&a;!h||h.global!==h&&h.window!==h&&h.self!==h||(e=h);if(d)c(e,d);else{var l=e.JSON,r=e.JSON3,n=!1,t=c(e,e.JSON3={noConflict:function(){n||(n=!0,e.JSON=l,e.JSON3=r,l=r=null);return t}});e.JSON={parse:t.parse,stringify:t.stringify}}}).call(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],59:[function(a,f,k){var d=Object.prototype.hasOwnProperty;k.stringify=function(a,b){b=b||"";var c=[];"string"!==typeof b&&(b="?");for(var e in a)d.call(a,e)&&c.push(encodeURIComponent(e)+"\x3d"+encodeURIComponent(a[e]));return c.length?b+c.join("\x26"):""};k.parse=function(a){for(var b=/([^=?&]+)=?([^&]*)/g,c={},d;d=b.exec(a);){var f=decodeURIComponent(d[1].replace(/\+/g," "));d=decodeURIComponent(d[2].replace(/\+/g," "));f in c||(c[f]=d)}return c}},{}],60:[function(a,f,k){f.exports=function(a,c){c=c.split(":")[0];a=+a;if(!a)return!1;switch(c){case "http":case "ws":return 80!==a;case "https":case "wss":return 443!==a;case "ftp":return 21!==a;case "gopher":return 70!==a;case "file":return!1}return 0!==a}},{}],61:[function(a,f,k){(function(d){function c(a){var b=d&&d.location||{};a=a||b;var b={},c=typeof a,e;if("blob:"===a.protocol)b=new g(unescape(a.pathname),{});else if("string"===c)for(e in b=new g(a,{}),t)delete b[e];else if("object"===c){for(e in a)e in t||(b[e]=a[e]);void 0===b.slashes&&(b.slashes=r.test(a.href))}return b}function b(a){a=k.exec(a);return{protocol:a[1]?a[1].toLowerCase():"",slashes:!!a[2],rest:a[3]}}function g(a,d,f){if(!(this instanceof g))return new g(a,d,f);var k,p,m,l,t=n.slice();k=typeof d;var r=0;"object"!==k&&"string"!==k&&(f=d,d=null);f&&"function"!==typeof f&&(f=h.parse);d=c(d);p=b(a||"");k=!p.protocol&&!p.slashes;this.slashes=p.slashes||k&&d.slashes;this.protocol=p.protocol||d.protocol||"";a=p.rest;for(p.slashes||(t[3]=[/(.*)/,"pathname"]);r<t.length;r++)if(p=t[r],"function"===typeof p)a=p(a);else{m=p[0];l=p[1];if(m!==m)this[l]=a;else if("string"===typeof m)~(m=a.indexOf(m))&&("number"===typeof p[2]?(this[l]=a.slice(0,m),a=a.slice(m+p[2])):(this[l]=a.slice(m),a=a.slice(0,m)));else if(m=m.exec(a))this[l]=m[1],a=a.slice(0,m.index);this[l]=this[l]||(k&&p[3]?d[l]||"":"");p[4]&&(this[l]=this[l].toLowerCase())}f&&(this.query=f(this.query));if(k&&d.slashes&&"/"!==this.pathname.charAt(0)&&(""!==this.pathname||""!==d.pathname)){a=this.pathname;d=(d.pathname||"/").split("/").slice(0,-1).concat(a.split("/"));a=d.length;f=d[a-1];t=!1;for(r=0;a--;)"."===d[a]?d.splice(a,1):".."===d[a]?(d.splice(a,1),r++):r&&(0===a&&(t=!0),d.splice(a,1),r--);t&&d.unshift("");"."!==f&&".."!==f||d.push("");this.pathname=d.join("/")}e(this.port,this.protocol)||(this.host=this.hostname,this.port="");this.username=this.password="";this.auth&&(p=this.auth.split(":"),this.username=p[0]||"",this.password=p[1]||"");this.origin=this.protocol&&this.host&&"file:"!==this.protocol?this.protocol+"//"+this.host:"null";this.href=this.toString()}var e=a("requires-port"),h=a("querystringify"),k=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,n=[["#","hash"],["?","query"],function(a){return a.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],t={hash:1,query:1};g.prototype={set:function(a,b,c){switch(a){case "query":"string"===typeof b&&b.length&&(b=(c||h.parse)(b));this[a]=b;break;case "port":this[a]=b;e(b,this.protocol)?b&&(this.host=this.hostname+":"+b):(this.host=this.hostname,this[a]="");break;case "hostname":this[a]=b;this.port&&(b+=":"+this.port);this.host=b;break;case "host":this[a]=b;/:\d+$/.test(b)?(b=b.split(":"),this.port=b.pop(),this.hostname=b.join(":")):(this.hostname=b,this.port="");break;case "protocol":this.protocol=b.toLowerCase();this.slashes=!c;break;case "pathname":case "hash":b?(c="pathname"===a?"/":"#",this[a]=b.charAt(0)!==c?c+b:b):this[a]=b;break;default:this[a]=b}for(a=0;a<n.length;a++)b=n[a],b[4]&&(this[b[1]]=this[b[1]].toLowerCase());this.origin=this.protocol&&this.host&&"file:"!==this.protocol?this.protocol+"//"+this.host:"null";this.href=this.toString();return this},toString:function(a){a&&"function"===typeof a||(a=h.stringify);var b=this.protocol;b&&":"!==b.charAt(b.length-1)&&(b+=":");b+=this.slashes?"//":"";this.username&&(b+=this.username,this.password&&(b+=":"+this.password),b+="@");b+=this.host+this.pathname;(a="object"===typeof this.query?a(this.query):this.query)&&(b+="?"!==a.charAt(0)?"?"+a:a);this.hash&&(b+=this.hash);return b}};g.extractProtocol=b;g.location=c;g.qs=h;f.exports=g}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{querystringify:59,"requires-port":60}]},{},[1])(1)});