/* sockjs-client v1.1.2 | http://sockjs.org | MIT license */
!function(t){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=t();elseif("function"==typeofdefine&&define.amd)define([],t);else{vare;e="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,e.SockJS=t()}}(function(){vart;returnfunctiont(e,n,r){functioni(s,a){if(!n[s]){if(!e[s]){varl="function"==typeofrequire&&require;if(!a&&l)returnl(s,!0);if(o)returno(s,!0);varu=newError("Cannot find module '"+s+"'");throwu.code="MODULE_NOT_FOUND",u}varc=n[s]={exports:{}};e[s][0].call(c.exports,function(t){varn=e[s][1][t];returni(n?n:t)},c,c.exports,t,e,n,r)}returnn[s].exports}for(varo="function"==typeofrequire&&require,s=0;s<r.length;s++)i(r[s]);returni}({1:[function(t,e,n){(function(n){"use strict";varr=t("./transport-list");e.exports=t("./main")(r),"_sockjs_onload"inn&&setTimeout(n._sockjs_onload,1)}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"./main":14,"./transport-list":16}],2:[function(t,e,n){"use strict";functionr(){o.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}vari=t("inherits"),o=t("./event");i(r,o),e.exports=r},{"./event":4,inherits:54}],3:[function(t,e,n){"use strict";functionr(){o.call(this)}vari=t("inherits"),o=t("./eventtarget");i(r,o),r.prototype.removeAllListeners=function(t){t?deletethis._listeners[t]:this._listeners={}},r.prototype.once=function(t,e){functionn(){r.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}varr=this,i=!1;this.on(t,n)},r.prototype.emit=function(){vart=arguments[0],e=this._listeners[t];if(e){for(varn=arguments.length,r=newArray(n-1),i=1;i<n;i++)r[i-1]=arguments[i];for(varo=0;o<e.length;o++)e[o].apply(this,r)}},r.prototype.on=r.prototype.addListener=o.prototype.addEventListener,r.prototype.removeListener=o.prototype.removeEventListener,e.exports.EventEmitter=r},{"./eventtarget":5,inherits:54}],4:[function(t,e,n){"use strict";functionr(t){this.type=t}r.prototype.initEvent=function(t,e,n){returnthis.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+newDate,this},r.prototype.stopPropagation=function(){},r.prototype.preventDefault=function(){},r.CAPTURING_PHASE=1,r.AT_TARGET=2,r.BUBBLING_PHASE=3,e.exports=r},{}],5:[function(t,e,n){"use strict";functionr(){this._listeners={}}r.prototype.addEventListener=function(t,e){tinthis._listeners||(this._listeners[t]=[]);varn=this._listeners[t];n.indexOf(e)===-1&&(n=n.concat([e])),this._listeners[t]=n},r.prototype.removeEventListener=function(t,e){varn=this._listeners[t];if(n){varr=n.indexOf(e);returnr!==-1?void(n.length>1?this._listeners[t]=n.slice(0,r).concat(n.slice(r+1)):deletethis._listeners[t]):void0}},r.prototype.dispatchEvent=function(){vart=arguments[0],e=t.type,n=1===arguments.length?[t]:Array.apply(null,arguments);if(this["on"+e]&&this["on"+e].apply(this,n),einthis._listeners)for(varr=this._listeners[e],i=0;i<r.length;i++)r[i].apply(this,n)},e.exports=r},{}],6:[function(t,e,n){"use strict";functionr(t){o.call(this),this.initEvent("message",!1,!1),this.data=t}vari=t("inherits"),o=t("./event");i(r,o),e.exports=r},{"./event":4,inherits:54}],7:[function(t,e,n){"use strict";functionr(t){this._transport=t,t.on("message",this._transportMessage.bind(this)),t.on("close",this._transportClose.bind(this))}vari=t("json3"),o=t("./utils/iframe");r.prototype._transportClose=function(t,e){o.postMessage("c",i.stringify([t,e]))},r.prototype._transportMessage=function(t){o.postMessage("t",t)},r.prototype._send=function(t){this._transport.send(t)},r.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=r},{"./utils/iframe":47,json3:55}],8:[function(t,e,n){"use strict";varr=t("./utils/url"),i=t("./utils/event"),o=t("json3"),s=t("./facade"),a=t("./info-iframe-receiver"),l=t("./utils/iframe"),u=t("./location");e.exports=function(t,e){varn={};e.forEach(function(t){t.facadeTransport&&(n[t.facadeTransport.transportName]=t.facadeTransport)}),n[a.transportName]=a;varc;t.bootstrap_iframe=function(){vare;l.currentWindowId=u.hash.slice(1);vara=function(i){if(i.source===parent&&("undefined"==typeofc&&(c=i.origin),i.origin===c)){vara;try{a=o.parse(i.data)}catch(t){return}if(a.windowId===l.currentWindowId)switch(a.type){case"s":varf;try{f=o.parse(a.data)}catch(t){break}varh=f[0],d=f[1],p=f[2],v=f[3];if(h!==t.version)thrownewError('Incompatible SockJS! Main site uses: "'+h+'", the iframe: "'+t.version+'".');if(!r.isOriginEqual(p,u.href)||!r.isOriginEqual(v,u.href))thrownewError("Can't connect to different domain from within an iframe. ("+u.href+", "+p+", "+v+")");e=news(newn[d](p,v));break;case"m":e._send(a.data);break;case"c":e&&e._close(),e=null}}};i.attachEvent("message",a),l.postMessage("s")}}},{"./facade":7,"./info-iframe-receiver":10,"./location":13,"./utils/event":46,"./utils/iframe":47,"./utils/url":52,debug:void0,json3:55}],9:[function(t,e,n){"use strict";functionr(t,e){i.call(this);varn=this,r=+newDate;this.xo=newe("GET",t),this.xo.once("finish",function(t,e){vari,o;if(200===t){if(o=+newDate-r,e)try{i=s.parse(e)}catch(t){}a.isObject(i)||(i={})}n.emit("finish",i,o),n.removeAllListeners()})}vari=t("events").EventEmitter,o=t("inherits"),s=t("json3"),a=t("./utils/object");o(r,i),r.prototype.close=function(){this.removeAllListeners(),this.xo.close()},e.exports=r},{"./utils/object":49,debug:void0,events:3,inherits:54,json3:55}],10:[function(t,e,n){"use strict";functionr(t){vare=this;o.call(this),this.ir=newl(t,a),this.ir.once("finish",function(t,n){e.ir=null,e.emit("message",s.stringify([t,n]))})}vari=t("inherits"),o=t("events").EventEmitter,s=t("json3"),a=t("./transport/sender/xhr-local"),l=t("./info-ajax");i(r,o),r.transportName="iframe-info-receiver",r.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},e.exports=r},{"./info-ajax":9,"./transport/sender/xhr-local":37,events:3,inherits:54,json3:55}],11:[function(t,e,n){(function(n){"use strict";functionr(t,e){varr=this;i.call(this);varo=function(){varn=r.ifr=newl(u.transportName,e,t);n.once("message",function(t){if(t){vare;try{e=s.parse(t)}catch(t){returnr.emit("finish"),voidr.close()}varn=e[0],i=e[1];r.emit("finish",n,i)}r.close()}),n.once("close",function(){r.emit("finish"),r.close()})};n.document.body?o():a.attachEvent("load",o)}vari=t("events").EventEmitter,o=t("inherits"),s=t("json3"),a=t("./utils/event"),l=t("./transport/iframe"),u=t("./info-iframe-receiver");o(r,i),r.enabled=function(){returnl.enabled()},r.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"./info-iframe-receiver":10,"./transport/iframe":22,"./utils/event":46,debug:void0,events:3,inherits:54,json3:55}],12:[function(t,e,n){"use strict";functionr(t,e){varn=this;i.call(this),setTimeout(function(){n.doXhr(t,e)},0)}vari=t("events").EventEmitter,o=t("inherits"),s=t("./utils/url"),a=t("./transport/sender/xdr"),l=t("./transport/sender/xhr-cors"),u=t("./transport/sender/xhr-local"),c=t("./transport/sender/xhr-fake"),f=t("./info-iframe"),h=t("./info-ajax");o(r,i),r._getReceiver=function(t,e,n){returnn.sameOrigin?newh(e,u):l.enabled?newh(e,l):a.enabled&&n.sameScheme?newh(e,a):f.enabled()?newf(t,e):newh(e,c)},r.prototype.doXhr=function(t,e){varn=this,i=s.addPath(t,"/info");this.xo=r._getReceiver(t,i,e),this.timeoutRef=setTimeout(function(){n._cleanup(!1),n.emit("finish")},r.timeout),this.xo.once("finish",function(t,e){n._cleanup(!0),n.emit("finish",t,e)})},r.prototype._cleanup=function(t){clearTimeout(this.timeoutRef),this.timeoutRef=null,!t&&this.xo&&this.xo.close(),this.xo=null},r.prototype.close=function(){this.removeAllListeners(),this._cleanup(!1)},r.timeout=8e3,e.exports=r},{"./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:void0,events:3,inherits:54}],13:[function(t,e,n){(function(t){"use strict";e.exports=t.location||{origin:"http://localhost:80",protocol:"http",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],14:[function(t,e,n){(function(n){"use strict";functionr(t,e,n){if(!(thisinstanceofr))returnnewr(t,e,n);if(arguments.length<1)thrownewTypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");y.call(this),this.readyState=r.CONNECTING,this.extensions="",this.protocol="",n=n||{},n.protocols_whitelist&&m.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{};vari=n.sessionId||8;if("function"==typeofi)this._generateSessionId=i;else{if("number"!=typeofi)thrownewTypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){returnu.string(i)}}this._server=n.server||u.numberString(1e3);varo=news(t);if(!o.host||!o.protocol)thrownewSyntaxError("The URL '"+t+"' is invalid");if(o.hash)thrownewSyntaxError("The URL must not contain a fragment");if("http:"!==o.protocol&&"https:"!==o.protocol)thrownewSyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+o.protocol+"' is not allowed.");vara="https:"===o.protocol;if("https"===g.protocol&&!a)thrownewError("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");e?Array.isArray(e)||(e=[e]):e=[];varl=e.sort();l.forEach(function(t,e){if(!t)thrownewSyntaxError("The protocols entry '"+t+"' is invalid.");if(e<l.length-1&&t===l[e+1])thrownewSyntaxError("The protocols entry '"+t+"' is duplicated.")});varc=f.getOrigin(g.href);this._origin=c?c.toLowerCase():null,o.set("pathname",o.pathname.replace(/\/+$/,"")),this.url=o.href,this._urlInfo={nullOrigin:!v.hasDomain(),sameOrigin:f.isOriginEqual(this.url,g.href),sameScheme:f.isSchemeEqual(this.url,g.href)},this._ir=new_(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}functioni(t){return1e3===t||t>=3e3&&t<=4999}t("./shims");varo,s=t("url-parse"),a=t("inherits"),l=t("json3"),u=t("./utils/random"),c=t("./utils/escape"),f=t("./utils/url"),h=t("./utils/event"),d=t("./utils/transport"),p=t("./utils/object"),v=t("./utils/browser"),m=t("./utils/log"),b=t("./event/event"),y=t("./event/eventtarget"),g=t("./location"),w=t("./event/close"),x=t("./event/trans-message"),_=t("./info-receiver");a(r,y),r.prototype.close=function(t,e){if(t&&!i(t))thrownewError("InvalidAccessError: Invalid code");if(e&&e.length>123)thrownewSyntaxError("reason argument has an invalid length");if(this.readyState!==r.CLOSING&&this.readyState!==r.CLOSED){varn=!0;this._close(t||1e3,e||"Normal closure",n)}},r.prototype.send=function(t){if("string"!=typeoft&&(t=""+t),this.readyState===r.CONNECTING)thrownewError("InvalidStateError: The connection has not been established yet");this.readyState===r.OPEN&&this._transport.send(c.quote(t))},r.version=t("./version"),r.CONNECTING=0,r.OPEN=1,r.CLOSING=2,r.CLOSED=3,r.prototype._receiveInfo=function(t,e){if(this._ir=null,!t)returnvoidthis._close(1002,"Cannot connect to server");this._rto=this.countRTO(e),this._transUrl=t.base_url?t.base_url:this.url,t=p.extend(t,this._urlInfo);varn=o.filterToEnabled(this._transportsWhitelist,t);this._transports=n.main,this._connect()},r.prototype._connect=function(){for(vart=this._transports.shift();t;t=this._transports.shift()){if(t.needBody&&(!n.document.body||"undefined"!=typeofn.document.readyState&&"complete"!==n.document.readyState&&"interactive"!==n.document.readyState))returnthis._transports.unshift(t),voidh.attachEvent("load",this._connect.bind(this));vare=this._rto*t.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),e);varr=f.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),i=this._transportOptions[t.transportName],o=newt(r,this._transUrl,i);returno.on("message",this._transportMessage.bind(this)),o.once("close",this._transportClose.bind(this)),o.transportName=t.transportName,void(this._transport=o)}this._close(2e3,"All transports failed",!1)},r.prototype._transportTimeout=function(){this.readyState===r.CONNECTING&&this._transportClose(2007,"Transport timed out")},r.prototype._transportMessage=function(t){vare,n=this,r=t.slice(0,1),i=t.slice(1);switch(r){case"o":returnvoidthis._open();case"h":returnvoidthis.dispatchEvent(newb("heartbeat"))}if(i)try{e=l.parse(i)}catch(t){}if("undefined"!=typeofe)switch(r){case"a":Array.isArray(e)&&e.forEach(function(t){n.dispatchEvent(newx(t))});break;case"m":this.dispatchEvent(newx(e));break;case"c":Array.isArray(e)&&2===e.length&&this._close(e[0],e[1],!0)}},r.prototype._transportClose=function(t,e){returnthis._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),i(t)||2e3===t||this.readyState!==r.CONNECTING?voidthis._close(t,e):voidthis._connect()},r.prototype._open=function(){this.readyState===r.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=r.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(newb("open"))):this._close(1006,"Server lost session")},r.prototype._close=function(t,e,n){vari=!1;if(this._ir&&(i=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===r.CLOSED)thrownewError("InvalidStateError: SockJS has already been closed");this.readyState=r.CLOSING,setTimeout(function(){this.readyState=r.CLOSED,i&&this.dispatchEvent(newb("error"));varo=neww("close");o.wasClean=n||!1,o.code=t||1e3,o.reason=e,this.dispatchEvent(o),this.onmessage=this.onclose=this.onerror=null}.bind(this),0)},r.prototype.countRTO=function(t){returnt>100?4*t:300+t},e.exports=function(e){returno=d(e),t("./iframe-bootstrap")(r,e),r}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?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:void0,inherits:54,json3:55,"url-parse":58}],15:[function(t,e,n){"use strict";functionr(t){vare=+t;returne!==e?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}functioni(t){returnt>>>0}functiono(){}vars,a=Array.prototype,l=Object.prototype,u=Function.prototype,c=String.prototype,f=a.slice,h=l.toString,d=function(t){return"[object Function]"===l.toString.call(t)},p=function(t){return"[object Array]"===h.call(t)},v=function(t){return"[object String]"===h.call(t)},m=Object.defineProperty&&function(){try{returnObject.defineProperty({},"x",{}),!0}catch(t){return!1}}();s=m?function(t,e,n,r){!r&&eint||Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,n,r){!r&&eint||(t[e]=n)};varb=function(t,e,n){for(varrine)l.hasOwnProperty.call(e,r)&&s(t,r,e[r],n)},y=function(t){if(null==t)thrownewTypeError("can't convert "+t+" to object");returnObject(t)};b(u,{bind:function(t){vare=this;if(!d(e))thrownewTypeError("Function.prototype.bind called on incompatible "+e);for(varn=f.call(arguments,1),r=function(){if(thisinstanceofl){varr=e.apply(this,n.concat(f.call(arguments)));returnObject(r)===r?r:this}returne.apply(t,n.concat(f.call(arguments)))},i=Math.max(0,e.length-n.length),s=[],a=0;a<i;a++)s.push("$"+a);varl=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(r);returne.prototype&&(o.prototype=e.prototype,l.prototype=newo,o.prototype=null),l}}),b(Array,{isArray:p});varg=Object("a"),w="a"!==g[0]||!(0ing),x=function(t){vare=!0,n=!0;returnt&&(t.call("foo",function(t,n,r){"object"!=typeofr&&(e=!1)}),t.call([1],function(){n="string"==typeofthis},"x")),!!t&&e&&n};b(a,{forEach:function(t){vare=y(this),n=w&&v(this)?this.split(""):e,r=arguments[1],i=-1,o=n.length>>>0;if(!d(t))thrownewTypeError;for(;++i<o;)iinn&&t.call(r,n[i],i,e)}},!x(a.forEach));var_=Array.prototype.indexOf&&[0,1].indexOf(1,2)!==-1;b(a,{indexOf:function(t){vare=w&&v(this)?this.split(""):y(this),n=e.length>>>0;if(!n)return-1;vari=0;for(arguments.length>1&&(i=r(arguments[1])),i=i>=0?i:Math.max(0,n+i);i<n;i++)if(iine&&e[i]===t)returni;return-1}},_);varE=c.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){vart=void0===/()??/.exec("")[1];c.split=function(e,n){varr=this;if(void0===e&&0===n)return[];if("[object RegExp]"!==h.call(e))returnE.call(this,e,n);varo,s,l,u,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),d=0;for(e=newRegExp(e.source,f+"g"),r+="",t||(o=newRegExp("^"+e.source+"$(?!\\s)",f)),n=void0===n?-1>>>0:i(n);(s=e.exec(r))&&(l=s.index+s[0].length,!(l>d&&(c.push(r.slice(d,s.index)),!t&&s.length>1&&s[0].replace(o,function(){for(vart=1;t<arguments.length-2;t++)void0===arguments[t]&&(s[t]=void0)}),s.length>1&&s.index<r.length&&a.push.apply(c,s.slice(1)),u=s[0].length,d=l,c.length>=n)));)e.lastIndex===s.index&&e.lastIndex++;returnd===r.length?!u&&e.test("")||c.push(""):c.push(r.slice(d)),c.length>n?c.slice(0,n):c}}():"0".split(void0,0).length&&(c.split=function(t,e){returnvoid0===t&&0===e?[]:E.call(this,t,e)});varj=c.substr,T="".substr&&"b"!=="0b".substr(-1);b(c,{substr:function(t,e){returnj.call(this,t<0&&(t=this.length+t)<0?0:t,e)}},T)},{}],16:[function(t,e,n){"use strict";e.exports=[t("./transport/websocket"),t("./transport/xhr-streaming"),t("./transport/xdr-streaming"),t("./transport/eventsource"),t("./transport/lib/iframe-wrap")(t("./transport/eventsource")),t("./transport/htmlfile"),t("./transport/lib/iframe-wrap")(t("./transport/htmlfile")),t("./transport/xhr-polling"),t("./transport/xdr-polling"),t("./transport/lib/iframe-wrap")(t("./transport/xhr-polling")),t("./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(t,e,n){(function(n){"use strict";functionr(t,e,n,r){varo=this;i.call(this),setTimeout(function(){o._start(t,e,n,r)},0)}vari=t("events").EventEmitter,o=t("inherits"),s=t("../../utils/event"),a=t("../../utils/url"),l=n.XMLHttpRequest;o(r,i),r.prototype._start=function(t,e,n,i){varo=this;try{this.xhr=newl}catch(t){}if(!this.xhr)returnthis.emit("finish",0,"no xhr support"),voidthis._cleanup();e=a.addQuery(e,"t="++newDate),this.unloadRef=s.unloadAdd(function(){o._cleanup(!0)});try{this.xhr.open(t,e,!0),this.timeout&&"timeout"inthis.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){o.emit("finish",0,""),o._cleanup(!1)})}catch(t){returnthis.emit("finish",0,""),voidthis._cleanup(!1)}if(i&&i.noCredentials||!r.supportsCORS||(this.xhr.withCredentials="true"),i&&i.headers)for(varuini.headers)this.xhr.setRequestHeader(u,i.headers[u]);this.xhr.onreadystatechange=function(){if(o.xhr){vart,e,n=o.xhr;switch(n.readyState){case3:try{e=n.status,t=n.responseText}catch(t){}1223===e&&(e=204),200===e&&t&&t.length>0&&o.emit("chunk",e,t);break;case4:e=n.status,1223===e&&(e=204),12005!==e&&12029!==e||(e=0),o.emit("finish",e,n.responseText),o._cleanup(!1)}}};try{o.xhr.send(n)}catch(t){o.emit("finish",0,""),o._cleanup(!1)}},r.prototype._cleanup=function(t){if(this.xhr){if(this.removeAllListeners(),s.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),t)try{this.xhr.abort()}catch(t){}this.unloadRef=this.xhr=null}},r.prototype.close=function(){this._cleanup(!0)},r.enabled=!!l;varu=["Active"].concat("Object").join("X");!r.enabled&&uinn&&(l=function(){try{returnnewn[u]("Microsoft.XMLHTTP")}catch(t){returnnull}},r.enabled=!!newl);varc=!1;try{c="withCredentials"innewl}catch(t){}r.supportsCORS=c,e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../../utils/event":46,"../../utils/url":52,debug:void0,events:3,inherits:54}],18:[function(t,e,n){(function(t){e.exports=t.EventSource}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],19:[function(t,e,n){(function(t){"use strict";varn=t.WebSocket||t.MozWebSocket;n?e.exports=function(t){returnnewn(t)}:e.exports=void0}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],20:[function(t,e,n){"use strict";functionr(t){if(!r.enabled())thrownewError("Transport created when disabled");o.call(this,t,"/eventsource",s,a)}vari=t("inherits"),o=t("./lib/ajax-based"),s=t("./receiver/eventsource"),a=t("./sender/xhr-cors"),l=t("eventsource");i(r,o),r.enabled=function(){return!!l},r.transportName="eventsource",r.roundTrips=2,e.exports=r},{"./lib/ajax-based":24,"./receiver/eventsource":29,"./sender/xhr-cors":35,eventsource:18,inherits:54}],21:[function(t,e,n){"use strict";functionr(t){if(!o.enabled)thrownewError("Transport created when disabled");a.call(this,t,"/htmlfile",o,s)}vari=t("inherits"),o=t("./receiver/htmlfile"),s=t("./sender/xhr-local"),a=t("./lib/ajax-based");i(r,a),r.enabled=function(t){returno.enabled&&t.sameOrigin},r.transportName="htmlfile",r.roundTrips=2,e.exports=r},{"./lib/ajax-based":24,"./receiver/htmlfile":30,"./sender/xhr-local":37,inherits:54}],22:[function(t,e,n){"use strict";functionr(t,e,n){if(!r.enabled())thrownewError("Transport created when disabled");s.call(this);vari=this;this.origin=l.getOrigin(n),this.baseUrl=n,this.transUrl=e,this.transport=t,this.windowId=f.string(8);varo=l.addPath(n,"/iframe.html")+"#"+this.windowId;this.iframeObj=u.createIframe(o,function(t){i.emit("close",1006,"Unable to load an iframe ("+t+")"),i.close()}),this.onmessageCallback=this._message.bind(this),c.attachEvent("message",this.onmessageCallback)}vari=t("inherits"),o=t("json3"),s=t("events").EventEmitter,a=t("../version"),l=t("../utils/url"),u=t("../utils/iframe"),c=t("../utils/event"),f=t("../utils/random");i(r,s),r.prototype.close=function(){if(this.removeAllListeners(),this.iframeObj){c.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(t){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},r.prototype._message=function(t){if(l.isOriginEqual(t.origin,this.origin)){vare;try{e=o.parse(t.data)}catch(t){return}if(e.windowId===this.windowId)switch(e.type){case"s":this.iframeObj.loaded(),this.postMessage("s",o.stringify([a,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",e.data);break;case"c":varn;try{n=o.parse(e.data)}catch(t){return}this.emit("close",n[0],n[1]),this.close()}}},r.prototype.postMessage=function(t,e){this.iframeObj.post(o.stringify({windowId:this.windowId,type:t,data:e||""}),this.origin)},r.prototype.send=function(t){this.postMessage("m",t)},r.enabled=function(){returnu.iframeEnabled},r.transportName="iframe",r.roundTrips=2,e.exports=r},{"../utils/event":46,"../utils/iframe":47,"../utils/random":50,"../utils/url":52,"../version":53,debug:void0,events:3,inherits:54,json3:55}],23:[function(t,e,n){(function(n){"use strict";functionr(t){if(!r.enabled())thrownewError("Transport created when disabled");o.call(this,t,"/jsonp",a,s)}vari=t("inherits"),o=t("./lib/sender-receiver"),s=t("./receiver/jsonp"),a=t("./sender/jsonp");i(r,o),r.enabled=function(){return!!n.document},r.transportName="jsonp-polling",r.roundTrips=1,r.needBody=!0,e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"./lib/sender-receiver":28,"./receiver/jsonp":31,"./sender/jsonp":33,inherits:54}],24:[function(t,e,n){"use strict";functionr(t){returnfunction(e,n,r){vari={};"string"==typeofn&&(i.headers={"Content-type":"text/plain"});varo=s.addPath(e,"/xhr_send"),a=newt("POST",o,n,i);returna.once("finish",function(t){returna=null,200!==t&&204!==t?r(newError("http status "+t)):voidr()}),function(){a.close(),a=null;vart=newError("Aborted");t.code=1e3,r(t)}}}functioni(t,e,n,i){a.call(this,t,e,r(i),n,i)}varo=t("inherits"),s=t("../../utils/url"),a=t("./sender-receiver");o(i,a),e.exports=i},{"../../utils/url":52,"./sender-receiver":28,debug:void0,inherits:54}],25:[function(t,e,n){"use strict";functionr(t,e){o.call(this),this.sendBuffer=[],this.sender=e,this.url=t}vari=t("inherits"),o=t("events").EventEmitter;i(r,o),r.prototype.send=function(t){this.sendBuffer.push(t),this.sendStop||this.sendSchedule()},r.prototype.sendScheduleWait=function(){vart,e=this;this.sendStop=function(){e.sendStop=null,clearTimeout(t)},t=setTimeout(function(){e.sendStop=null,e.sendSchedule()},25)},r.prototype.sendSchedule=function(){vart=this;if(this.sendBuffer.length>0){vare="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,e,function(e){t.sendStop=null,e?(t.emit("close",e.code||1006,"Sending error: "+e),t.close()):t.sendScheduleWait()}),this.sendBuffer=[]}},r.prototype._cleanup=function(){this.removeAllListeners()},r.prototype.close=function(){this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=r},{debug:void0,events:3,inherits:54}],26:[function(t,e,n){(function(n){"use strict";varr=t("inherits"),i=t("../iframe"),o=t("../../utils/object");e.exports=function(t){functione(e,n){i.call(this,t.transportName,e,n)}returnr(e,i),e.enabled=function(e,r){if(!n.document)return!1;vars=o.extend({},r);returns.sameOrigin=!0,t.enabled(s)&&i.enabled()},e.transportName="iframe-"+t.transportName,e.needBody=!0,e.roundTrips=i.roundTrips+t.roundTrips-1,e.facadeTransport=t,e}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../../utils/object":49,"../iframe":22,inherits:54}],27:[function(t,e,n){"use strict";functionr(t,e,n){o.call(this),this.Receiver=t,this.receiveUrl=e,this.AjaxObject=n,this._scheduleReceiver()}vari=t("inherits"),o=t("events").EventEmitter;i(r,o),r.prototype._scheduleReceiver=function(){vart=this,e=this.poll=newthis.Receiver(this.receiveUrl,this.AjaxObject);e.on("message",function(e){t.emit("message",e)}),e.once("close",function(n,r){t.poll=e=null,t.pollIsClosing||("network"===r?t._scheduleReceiver():(t.emit("close",n||1006,r),t.removeAllListeners()))})},r.prototype.abort=function(){this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=r},{debug:void0,events:3,inherits:54}],28:[function(t,e,n){"use strict";functionr(t,e,n,r,i){varl=o.addPath(t,e),u=this;s.call(this,t,n),this.poll=newa(r,l,i),this.poll.on("message",function(t){u.emit("message",t)}),this.poll.once("close",function(t,e){u.poll=null,u.emit("close",t,e),u.close()})}vari=t("inherits"),o=t("../../utils/url"),s=t("./buffered-sender"),a=t("./polling");i(r,s),r.prototype.close=function(){s.prototype.close.call(this),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},e.exports=r},{"../../utils/url":52,"./buffered-sender":25,"./polling":27,debug:void0,inherits:54}],29:[function(t,e,n){"use strict";functionr(t){o.call(this);vare=this,n=this.es=news(t);n.onmessage=function(t){e.emit("message",decodeURI(t.data))},n.onerror=function(t){varr=2!==n.readyState?"network":"permanent";e._cleanup(),e._close(r)}}vari=t("inherits"),o=t("events").EventEmitter,s=t("eventsource");i(r,o),r.prototype.abort=function(){this._cleanup(),this._close("user")},r.prototype._cleanup=function(){vart=this.es;t&&(t.onmessage=t.onerror=null,t.close(),this.es=null)},r.prototype._close=function(t){vare=this;setTimeout(function(){e.emit("close",null,t),e.removeAllListeners()},200)},e.exports=r},{debug:void0,events:3,eventsource:18,inherits:54}],30:[function(t,e,n){(function(n){"use strict";functionr(t){a.call(this);vare=this;o.polluteGlobalNamespace(),this.id="a"+l.string(6),t=s.addQuery(t,"c="+decodeURIComponent(o.WPrefix+"."+this.id));vari=r.htmlfileEnabled?o.createHtmlfile:o.createIframe;n[o.WPrefix][this.id]={start:function(){e.iframeObj.loaded()},message:function(t){e.emit("message",t)},stop:function(){e._cleanup(),e._close("network")}},this.iframeObj=i(t,function(){e._cleanup(),e._close("permanent")})}vari=t("inherits"),o=t("../../utils/iframe"),s=t("../../utils/url"),a=t("events").EventEmitter,l=t("../../utils/random");i(r,a),r.prototype.abort=function(){this._cleanup(),this._close("user")},r.prototype._cleanup=function(){this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),deleten[o.WPrefix][this.id]},r.prototype._close=function(t){this.emit("close",null,t),this.removeAllListeners()},r.htmlfileEnabled=!1;varu=["Active"].concat("Object").join("X");if(uinn)try{r.htmlfileEnabled=!!newn[u]("htmlfile")}catch(t){}r.enabled=r.htmlfileEnabled||o.iframeEnabled,e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:void0,events:3,inherits:54}],31:[function(t,e,n){(function(n){"use strict";functionr(t){vare=this;u.call(this),i.polluteGlobalNamespace(),this.id="a"+o.string(6);vars=a.addQuery(t,"c="+encodeURIComponent(i.WPrefix+"."+this.id));n[i.WPrefix][this.id]=this._callback.bind(this),this._createScript(s),this.timeoutId=setTimeout(function(){e._abort(newError("JSONP script loaded abnormally (timeout)"))},r.timeout)}vari=t("../../utils/iframe"),o=t("../../utils/random"),s=t("../../utils/browser"),a=t("../../utils/url"),l=t("inherits"),u=t("events").EventEmitter;l(r,u),r.prototype.abort=function(){if(n[i.WPrefix][this.id]){vart=newError("JSONP user aborted read");t.code=1e3,this._abort(t)}},r.timeout=35e3,r.scriptErrorTimeout=1e3,r.prototype._callback=function(t){this._cleanup(),this.aborting||(t&&this.emit("message",t),this.emit("close",null,"network"),this.removeAllListeners())},r.prototype._abort=function(t){this._cleanup(),this.aborting=!0,this.emit("close",t.code,t.message),this.removeAllListeners()},r.prototype._cleanup=function(){if(clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){vart=this.script;t.parentNode.removeChild(t),t.onreadystatechange=t.onerror=t.onload=t.onclick=null,this.script=null}deleten[i.WPrefix][this.id]},r.prototype._scriptError=function(){vart=this;this.errorTimer||(this.errorTimer=setTimeout(function(){t.loadedOkay||t._abort(newError("JSONP script loaded abnormally (onerror)"))},r.scriptErrorTimeout))},r.prototype._createScript=function(t){vare,r=this,i=this.script=n.document.createElement("script");if(i.id="a"+o.string(8),i.src=t,i.type="text/javascript",i.charset="UTF-8",i.onerror=this._scriptError.bind(this),i.onload=function(){r._abort(newError("JSONP script loaded abnormally (onload)"))},i.onreadystatechange=function(){if(/loaded|closed/.test(i.readyState)){if(i&&i.htmlFor&&i.onclick){r.loadedOkay=!0;try{i.onclick()}catch(t){}}i&&r._abort(newError("JSONP script loaded abnormally (onreadystatechange)"))}},"undefined"==typeofi.async&&n.document.attachEvent)if(s.isOpera())e=this.script2=n.document.createElement("script"),e.text="try{var a = document.getElementById('"+i.id+"'); if(a)a.onerror();}catch(x){};",
i.async=e.async=!1;else{try{i.htmlFor=i.id,i.event="onclick"}catch(t){}i.async=!0}"undefined"!=typeofi.async&&(i.async=!0);vara=n.document.getElementsByTagName("head")[0];a.insertBefore(i,a.firstChild),e&&a.insertBefore(e,a.firstChild)},e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:void0,events:3,inherits:54}],32:[function(t,e,n){"use strict";functionr(t,e){o.call(this);varn=this;this.bufferPosition=0,this.xo=newe("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){n._chunkHandler(t,e),n.xo=null;varr=200===t?"network":"permanent";n.emit("close",null,r),n._cleanup()})}vari=t("inherits"),o=t("events").EventEmitter;i(r,o),r.prototype._chunkHandler=function(t,e){if(200===t&&e)for(varn=-1;;this.bufferPosition+=n+1){varr=e.slice(this.bufferPosition);if(n=r.indexOf("\n"),n===-1)break;vari=r.slice(0,n);i&&this.emit("message",i)}},r.prototype._cleanup=function(){this.removeAllListeners()},r.prototype.abort=function(){this.xo&&(this.xo.close(),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=r},{debug:void0,events:3,inherits:54}],33:[function(t,e,n){(function(n){"use strict";functionr(t){try{returnn.document.createElement('<iframe name="'+t+'">')}catch(r){vare=n.document.createElement("iframe");returne.name=t,e}}functioni(){o=n.document.createElement("form"),o.style.display="none",o.style.position="absolute",o.method="POST",o.enctype="application/x-www-form-urlencoded",o.acceptCharset="UTF-8",s=n.document.createElement("textarea"),s.name="d",o.appendChild(s),n.document.body.appendChild(o)}varo,s,a=t("../../utils/random"),l=t("../../utils/url");e.exports=function(t,e,n){o||i();varu="a"+a.string(8);o.target=u,o.action=l.addQuery(l.addPath(t,"/jsonp_send"),"i="+u);varc=r(u);c.id=u,c.style.display="none",o.appendChild(c);try{s.value=e}catch(t){}o.submit();varf=function(t){c.onerror&&(c.onreadystatechange=c.onerror=c.onload=null,setTimeout(function(){c.parentNode.removeChild(c),c=null},500),s.value="",n(t))};returnc.onerror=function(){f()},c.onload=function(){f()},c.onreadystatechange=function(t){"complete"===c.readyState&&f()},function(){f(newError("Aborted"))}}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../../utils/random":50,"../../utils/url":52,debug:void0}],34:[function(t,e,n){(function(n){"use strict";functionr(t,e,n){varr=this;i.call(this),setTimeout(function(){r._start(t,e,n)},0)}vari=t("events").EventEmitter,o=t("inherits"),s=t("../../utils/event"),a=t("../../utils/browser"),l=t("../../utils/url");o(r,i),r.prototype._start=function(t,e,r){vari=this,o=newn.XDomainRequest;e=l.addQuery(e,"t="++newDate),o.onerror=function(){i._error()},o.ontimeout=function(){i._error()},o.onprogress=function(){i.emit("chunk",200,o.responseText)},o.onload=function(){i.emit("finish",200,o.responseText),i._cleanup(!1)},this.xdr=o,this.unloadRef=s.unloadAdd(function(){i._cleanup(!0)});try{this.xdr.open(t,e),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(t){this._error()}},r.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},r.prototype._cleanup=function(t){if(this.xdr){if(this.removeAllListeners(),s.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,t)try{this.xdr.abort()}catch(t){}this.unloadRef=this.xdr=null}},r.prototype.close=function(){this._cleanup(!0)},r.enabled=!(!n.XDomainRequest||!a.hasDomain()),e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../../utils/browser":44,"../../utils/event":46,"../../utils/url":52,debug:void0,events:3,inherits:54}],35:[function(t,e,n){"use strict";functionr(t,e,n,r){o.call(this,t,e,n,r)}vari=t("inherits"),o=t("../driver/xhr");i(r,o),r.enabled=o.enabled&&o.supportsCORS,e.exports=r},{"../driver/xhr":17,inherits:54}],36:[function(t,e,n){"use strict";functionr(){vart=this;i.call(this),this.to=setTimeout(function(){t.emit("finish",200,"{}")},r.timeout)}vari=t("events").EventEmitter,o=t("inherits");o(r,i),r.prototype.close=function(){clearTimeout(this.to)},r.timeout=2e3,e.exports=r},{events:3,inherits:54}],37:[function(t,e,n){"use strict";functionr(t,e,n){o.call(this,t,e,n,{noCredentials:!0})}vari=t("inherits"),o=t("../driver/xhr");i(r,o),r.enabled=o.enabled,e.exports=r},{"../driver/xhr":17,inherits:54}],38:[function(t,e,n){"use strict";functionr(t,e,n){if(!r.enabled())thrownewError("Transport created when disabled");a.call(this);vars=this,u=o.addPath(t,"/websocket");u="https"===u.slice(0,5)?"wss"+u.slice(5):"ws"+u.slice(4),this.url=u,this.ws=newl(this.url,[],n),this.ws.onmessage=function(t){s.emit("message",t.data)},this.unloadRef=i.unloadAdd(function(){s.ws.close()}),this.ws.onclose=function(t){s.emit("close",t.code,t.reason),s._cleanup()},this.ws.onerror=function(t){s.emit("close",1006,"WebSocket connection broken"),s._cleanup()}}vari=t("../utils/event"),o=t("../utils/url"),s=t("inherits"),a=t("events").EventEmitter,l=t("./driver/websocket");s(r,a),r.prototype.send=function(t){vare="["+t+"]";this.ws.send(e)},r.prototype.close=function(){vart=this.ws;this._cleanup(),t&&t.close()},r.prototype._cleanup=function(){vart=this.ws;t&&(t.onmessage=t.onclose=t.onerror=null),i.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},r.enabled=function(){return!!l},r.transportName="websocket",r.roundTrips=2,e.exports=r},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:void0,events:3,inherits:54}],39:[function(t,e,n){"use strict";functionr(t){if(!l.enabled)thrownewError("Transport created when disabled");o.call(this,t,"/xhr",a,l)}vari=t("inherits"),o=t("./lib/ajax-based"),s=t("./xdr-streaming"),a=t("./receiver/xhr"),l=t("./sender/xdr");i(r,o),r.enabled=s.enabled,r.transportName="xdr-polling",r.roundTrips=2,e.exports=r},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:54}],40:[function(t,e,n){"use strict";functionr(t){if(!a.enabled)thrownewError("Transport created when disabled");o.call(this,t,"/xhr_streaming",s,a)}vari=t("inherits"),o=t("./lib/ajax-based"),s=t("./receiver/xhr"),a=t("./sender/xdr");i(r,o),r.enabled=function(t){return!t.cookie_needed&&!t.nullOrigin&&(a.enabled&&t.sameScheme)},r.transportName="xdr-streaming",r.roundTrips=2,e.exports=r},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:54}],41:[function(t,e,n){"use strict";functionr(t){if(!l.enabled&&!a.enabled)thrownewError("Transport created when disabled");o.call(this,t,"/xhr",s,a)}vari=t("inherits"),o=t("./lib/ajax-based"),s=t("./receiver/xhr"),a=t("./sender/xhr-cors"),l=t("./sender/xhr-local");i(r,o),r.enabled=function(t){return!t.nullOrigin&&(!(!l.enabled||!t.sameOrigin)||a.enabled)},r.transportName="xhr-polling",r.roundTrips=2,e.exports=r},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:54}],42:[function(t,e,n){(function(n){"use strict";functionr(t){if(!l.enabled&&!a.enabled)thrownewError("Transport created when disabled");o.call(this,t,"/xhr_streaming",s,a)}vari=t("inherits"),o=t("./lib/ajax-based"),s=t("./receiver/xhr"),a=t("./sender/xhr-cors"),l=t("./sender/xhr-local"),u=t("../utils/browser");i(r,o),r.enabled=function(t){return!t.nullOrigin&&(!u.isOpera()&&a.enabled)},r.transportName="xhr-streaming",r.roundTrips=2,r.needBody=!!n.document,e.exports=r}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:54}],43:[function(t,e,n){(function(t){"use strict";t.crypto&&t.crypto.getRandomValues?e.exports.randomBytes=function(e){varn=newUint8Array(e);returnt.crypto.getRandomValues(n),n}:e.exports.randomBytes=function(t){for(vare=newArray(t),n=0;n<t;n++)e[n]=Math.floor(256*Math.random());returne}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],44:[function(t,e,n){(function(t){"use strict";e.exports={isOpera:function(){returnt.navigator&&/opera/i.test(t.navigator.userAgent)},isKonqueror:function(){returnt.navigator&&/konqueror/i.test(t.navigator.userAgent)},hasDomain:function(){if(!t.document)return!0;try{return!!t.document.domain}catch(t){return!1}}}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],45:[function(t,e,n){"use strict";varr,i=t("json3"),o=/[\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,s=function(t){vare,n={},r=[];for(e=0;e<65536;e++)r.push(String.fromCharCode(e));returnt.lastIndex=0,r.join("").replace(t,function(t){returnn[t]="\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4),""}),t.lastIndex=0,n};e.exports={quote:function(t){vare=i.stringify(t);returno.lastIndex=0,o.test(e)?(r||(r=s(o)),e.replace(o,function(t){returnr[t]})):e}}},{json3:55}],46:[function(t,e,n){(function(n){"use strict";varr=t("./random"),i={},o=!1,s=n.chrome&&n.chrome.app&&n.chrome.app.runtime;e.exports={attachEvent:function(t,e){"undefined"!=typeofn.addEventListener?n.addEventListener(t,e,!1):n.document&&n.attachEvent&&(n.document.attachEvent("on"+t,e),n.attachEvent("on"+t,e))},detachEvent:function(t,e){"undefined"!=typeofn.addEventListener?n.removeEventListener(t,e,!1):n.document&&n.detachEvent&&(n.document.detachEvent("on"+t,e),n.detachEvent("on"+t,e))},unloadAdd:function(t){if(s)returnnull;vare=r.string(8);returni[e]=t,o&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){tini&&deletei[t]},triggerUnloadCallbacks:function(){for(vartini)i[t](),deletei[t]}};vara=function(){o||(o=!0,e.exports.triggerUnloadCallbacks())};s||e.exports.attachEvent("unload",a)}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"./random":50}],47:[function(t,e,n){(function(n){"use strict";varr=t("./event"),i=t("json3"),o=t("./browser");e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefixinn||(n[e.exports.WPrefix]={})},postMessage:function(t,r){n.parent!==n&&n.parent.postMessage(i.stringify({windowId:e.exports.currentWindowId,type:t,data:r||""}),"*")},createIframe:function(t,e){vari,o,s=n.document.createElement("iframe"),a=function(){clearTimeout(i);try{s.onload=null}catch(t){}s.onerror=null},l=function(){s&&(a(),setTimeout(function(){s&&s.parentNode.removeChild(s),s=null},0),r.unloadDel(o))},u=function(t){s&&(l(),e(t))},c=function(t,e){try{setTimeout(function(){s&&s.contentWindow&&s.contentWindow.postMessage(t,e)},0)}catch(t){}};returns.src=t,s.style.display="none",s.style.position="absolute",s.onerror=function(){u("onerror")},s.onload=function(){clearTimeout(i),i=setTimeout(function(){u("onload timeout")},2e3)},n.document.body.appendChild(s),i=setTimeout(function(){u("timeout")},15e3),o=r.unloadAdd(l),{post:c,cleanup:l,loaded:a}},createHtmlfile:function(t,i){varo,s,a,l=["Active"].concat("Object").join("X"),u=newn[l]("htmlfile"),c=function(){clearTimeout(o),a.onerror=null},f=function(){u&&(c(),r.unloadDel(s),a.parentNode.removeChild(a),a=u=null,CollectGarbage())},h=function(t){u&&(f(),i(t))},d=function(t,e){try{setTimeout(function(){a&&a.contentWindow&&a.contentWindow.postMessage(t,e)},0)}catch(t){}};u.open(),u.write('<html><script>document.domain="'+n.document.domain+'";</script></html>'),u.close(),u.parentWindow[e.exports.WPrefix]=n[e.exports.WPrefix];varp=u.createElement("div");returnu.body.appendChild(p),a=u.createElement("iframe"),p.appendChild(a),a.src=t,a.onerror=function(){h("onerror")},o=setTimeout(function(){h("timeout")},15e3),s=r.unloadAdd(f),{post:d,cleanup:f,loaded:c}}},e.exports.iframeEnabled=!1,n.document&&(e.exports.iframeEnabled=("function"==typeofn.postMessage||"object"==typeofn.postMessage)&&!o.isKonqueror())}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"./browser":44,"./event":46,debug:void0,json3:55}],48:[function(t,e,n){(function(t){"use strict";varn={};["log","debug","warn"].forEach(function(e){varr;try{r=t.console&&t.console[e]&&t.console[e].apply}catch(t){}n[e]=r?function(){returnt.console[e].apply(t.console,arguments)}:"log"===e?function(){}:n.log}),e.exports=n}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],49:[function(t,e,n){"use strict";e.exports={isObject:function(t){vare=typeoft;return"function"===e||"object"===e&&!!t},extend:function(t){if(!this.isObject(t))returnt;for(vare,n,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(nine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}returnt}}},{}],50:[function(t,e,n){"use strict";varr=t("crypto"),i="abcdefghijklmnopqrstuvwxyz012345";e.exports={string:function(t){for(vare=i.length,n=r.randomBytes(t),o=[],s=0;s<t;s++)o.push(i.substr(n[s]%e,1));returno.join("")},number:function(t){returnMath.floor(Math.random()*t)},numberString:function(t){vare=(""+(t-1)).length,n=newArray(e+1).join("0");return(n+this.number(t)).slice(-e)}}},{crypto:43}],51:[function(t,e,n){"use strict";e.exports=function(t){return{filterToEnabled:function(e,n){varr={main:[],facade:[]};returne?"string"==typeofe&&(e=[e]):e=[],t.forEach(function(t){t&&("websocket"===t.transportName&&n.websocket===!1||e.length&&e.indexOf(t.transportName)===-1||t.enabled(n)&&(r.main.push(t),t.facadeTransport&&r.facade.push(t.facadeTransport)))}),r}}}},{debug:void0}],52:[function(t,e,n){"use strict";varr=t("url-parse");e.exports={getOrigin:function(t){if(!t)returnnull;vare=newr(t);if("file:"===e.protocol)returnnull;varn=e.port;returnn||(n="https:"===e.protocol?"443":"80"),e.protocol+"//"+e.hostname+":"+n},isOriginEqual:function(t,e){varn=this.getOrigin(t)===this.getOrigin(e);returnn},isSchemeEqual:function(t,e){returnt.split(":")[0]===e.split(":")[0]},addPath:function(t,e){varn=t.split("?");returnn[0]+e+(n[1]?"?"+n[1]:"")},addQuery:function(t,e){returnt+(t.indexOf("?")===-1?"?"+e:"&"+e)}}},{debug:void0,"url-parse":58}],53:[function(t,e,n){e.exports="1.1.2"},{}],54:[function(t,e,n){"function"==typeofObject.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;varn=function(){};n.prototype=e.prototype,t.prototype=newn,t.prototype.constructor=t}},{}],55:[function(e,n,r){(function(e){(function(){functioni(t,e){functionn(t){if(n[t]!==m)returnn[t];vari;if("bug-string-char-index"==t)i="a"!="a"[0];elseif("json"==t)i=n("json-stringify")&&n("json-parse");else{vars,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){varl=e.stringify,c="function"==typeofl&&g;if(c){(s=function(){return1}).toJSON=s;try{c="0"===l(0)&&"0"===l(newr)&&'""'==l(newo)&&l(y)===m&&l(m)===m&&l()===m&&"1"===l(s)&&"[1]"==l([s])&&"[null]"==l([m])&&"null"==l(null)&&"[null,null,null]"==l([m,y,null])&&l({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==a&&"1"===l(null,s)&&"[\n 1,\n 2\n]"==l([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==l(newu((-864e13)))&&'"+275760-09-13T00:00:00.000Z"'==l(newu(864e13))&&'"-000001-01-01T00:00:00.000Z"'==l(newu((-621987552e5)))&&'"1969-12-31T23:59:59.999Z"'==l(newu((-1)))}catch(t){c=!1}}i=c}if("json-parse"==t){varf=e.parse;if("function"==typeoff)try{if(0===f("0")&&!f(!1)){s=f(a);varh=5==s.a.length&&1===s.a[0];if(h){try{h=!f('"\t"')}catch(t){}if(h)try{h=1!==f("01")}catch(t){}if(h)try{h=1!==f("1.")}catch(t){}}}}catch(t){h=!1}i=h}}returnn[t]=!!i}t||(t=l.Object()),e||(e=l.Object());varr=t.Number||l.Number,o=t.String||l.String,a=t.Object||l.Object,u=t.Date||l.Date,c=t.SyntaxError||l.SyntaxError,f=t.TypeError||l.TypeError,h=t.Math||l.Math,d=t.JSON||l.JSON;"object"==typeofd&&d&&(e.stringify=d.stringify,e.parse=d.parse);varp,v,m,b=a.prototype,y=b.toString,g=newu((-0xc782b5b800cec));try{g=g.getUTCFullYear()==-109252&&0===g.getUTCMonth()&&1===g.getUTCDate()&&10==g.getUTCHours()&&37==g.getUTCMinutes()&&6==g.getUTCSeconds()&&708==g.getUTCMilliseconds()}catch(t){}if(!n("json")){varw="[object Function]",x="[object Date]",_="[object Number]",E="[object String]",j="[object Array]",T="[object Boolean]",S=n("bug-string-char-index");if(!g)varO=h.floor,C=[0,31,59,90,120,151,181,212,243,273,304,334],A=function(t,e){returnC[e]+365*(t-1970)+O((t-1969+(e=+(e>1)))/4)-O((t-1901+e)/100)+O((t-1601+e)/400)};if((p=b.hasOwnProperty)||(p=function(t){vare,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=y?p=function(t){vare=this.__proto__,n=tin(this.__proto__=null,this);returnthis.__proto__=e,n}:(e=n.constructor,p=function(t){varn=(this.constructor||e).prototype;returntinthis&&!(tinn&&this[t]===n[t])}),n=null,p.call(this,t)}),v=function(t,e){varn,r,i,o=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=newn;for(iinr)p.call(r,i)&&o++;returnn=r=null,o?v=2==o?function(t,e){varn,r={},i=y.call(t)==w;for(nint)i&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(t,n)||e(n)}:function(t,e){varn,r,i=y.call(t)==w;for(nint)i&&"prototype"==n||!p.call(t,n)||(r="constructor"===n)||e(n);(r||p.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(t,e){varn,i,o=y.call(t)==w,a=!o&&"function"!=typeoft.constructor&&s[typeoft.hasOwnProperty]&&t.hasOwnProperty||p;for(nint)o&&"prototype"==n||!a.call(t,n)||e(n);for(i=r.length;n=r[--i];a.call(t,n)&&e(n));}),v(t,e)},!n("json-stringify")){varN={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},k="000000",I=function(t,e){return(k+(e||0)).slice(-t)},P="\\u00",L=function(t){for(vare='"',n=0,r=t.length,i=!S||r>10,o=i&&(S?t.split(""):t);n<r;n++){vars=t.charCodeAt(n);switch(s){case8:case9:case10:case12:case13:case34:case92:e+=N[s];break;default:if(s<32){e+=P+I(2,s.toString(16));break}e+=i?o[n]:t.charAt(n)}}returne+'"'},R=function(t,e,n,r,i,o,s){vara,l,u,c,h,d,b,g,w,S,C,N,k,P,U,M;try{a=e[t]}catch(t){}if("object"==typeofa&&a)if(l=y.call(a),l!=x||p.call(a,"toJSON"))"function"==typeofa.toJSON&&(l!=_&&l!=E&&l!=j||p.call(a,"toJSON"))&&(a=a.toJSON(t));elseif(a>-1/0&&a<1/0){if(A){for(h=O(a/864e5),u=O(h/365.2425)+1970-1;A(u+1,0)<=h;u++);for(c=O((h-A(u,0))/30.42);A(u,c+1)<=h;c++);h=1+h-A(u,c),d=(a%864e5+864e5)%864e5,b=O(d/36e5)%24,g=O(d/6e4)%60,w=O(d/1e3)%60,S=d%1e3}elseu=a.getUTCFullYear(),c=a.getUTCMonth(),h=a.getUTCDate(),b=a.getUTCHours(),g=a.getUTCMinutes(),w=a.getUTCSeconds(),S=a.getUTCMilliseconds();a=(u<=0||u>=1e4?(u<0?"-":"+")+I(6,u<0?-u:u):I(4,u))+"-"+I(2,c+1)+"-"+I(2,h)+"T"+I(2,b)+":"+I(2,g)+":"+I(2,w)+"."+I(3,S)+"Z"}elsea=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if(l=y.call(a),l==T)return""+a;if(l==_)returna>-1/0&&a<1/0?""+a:"null";if(l==E)returnL(""+a);if("object"==typeofa){for(P=s.length;P--;)if(s[P]===a)throwf();if(s.push(a),C=[],U=o,o+=i,l==j){for(k=0,P=a.length;k<P;k++)N=R(k,a,n,r,i,o,s),C.push(N===m?"null":N);M=C.length?i?"[\n"+o+C.join(",\n"+o)+"\n"+U+"]":"["+C.join(",")+"]":"[]"}elsev(r||a,function(t){vare=R(t,a,n,r,i,o,s);e!==m&&C.push(L(t)+":"+(i?"":"")+e)}),M=C.length?i?"{\n"+o+C.join(",\n"+o)+"\n"+U+"}":"{"+C.join(",")+"}":"{}";returns.pop(),M}};e.stringify=function(t,e,n){varr,i,o,a;if(s[typeofe]&&e)if((a=y.call(e))==w)i=e;elseif(a==j){o={};for(varl,u=0,c=e.length;u<c;l=e[u++],a=y.call(l),(a==E||a==_)&&(o[l]=1));}if(n)if((a=y.call(n))==_){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+="");}elsea==E&&(r=n.length<=10?n:n.slice(0,10));returnR("",(l={},l[""]=t,l),i,o,r,"",[])}}if(!n("json-parse")){varU,M,q=o.fromCharCode,D={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},W=function(){throwU=M=null,c()},J=function(){for(vart,e,n,r,i,o=M,s=o.length;U<s;)switch(i=o.charCodeAt(U)){case9:case10:case13:case32:U++;break;case123:case125:case91:case93:case58:case44:returnt=S?o.charAt(U):o[U],U++,t;case34:for(t="@",U++;U<s;)if(i=o.charCodeAt(U),i<32)W();elseif(92==i)switch(i=o.charCodeAt(++U)){case92:case34:case47:case98:case116:case110:case102:case114:t+=D[i],U++;break;case117:for(e=++U,n=U+4;U<n;U++)i=o.charCodeAt(U),i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70||W();t+=q("0x"+o.slice(e,U));break;default:W()}else{if(34==i)break;for(i=o.charCodeAt(U),e=U;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++U);t+=o.slice(e,U)}if(34==o.charCodeAt(U))returnU++,t;W();default:if(e=U,45==i&&(r=!0,i=o.charCodeAt(++U)),i>=48&&i<=57){for(48==i&&(i=o.charCodeAt(U+1),i>=48&&i<=57)&&W(),r=!1;U<s&&(i=o.charCodeAt(U),i>=48&&i<=57);U++);if(46==o.charCodeAt(U)){for(n=++U;n<s&&(i=o.charCodeAt(n),i>=48&&i<=57);n++);n==U&&W(),U=n}if(i=o.charCodeAt(U),101==i||69==i){for(i=o.charCodeAt(++U),43!=i&&45!=i||U++,n=U;n<s&&(i=o.charCodeAt(n),i>=48&&i<=57);n++);n==U&&W(),U=n}return+o.slice(e,U)}if(r&&W(),"true"==o.slice(U,U+4))returnU+=4,!0;if("false"==o.slice(U,U+5))returnU+=5,!1;if("null"==o.slice(U,U+4))returnU+=4,null;W()}return"$"},B=function(t){vare,n;if("$"==t&&W(),"string"==typeoft){if("@"==(S?t.charAt(0):t[0]))returnt.slice(1);if("["==t){for(e=[];t=J(),"]"!=t;n||(n=!0))n&&(","==t?(t=J(),"]"==t&&W()):W()),","==t&&W(),e.push(B(t));returne}if("{"==t){for(e={};t=J(),"}"!=t;n||(n=!0))n&&(","==t?(t=J(),"}"==t&&W()):W()),","!=t&&"string"==typeoft&&"@"==(S?t.charAt(0):t[0])&&":"==J()||W(),e[t.slice(1)]=B(J());returne}W()}returnt},G=function(t,e,n){varr=F(t,e,n);r===m?deletet[e]:t[e]=r},F=function(t,e,n){varr,i=t[e];if("object"==typeofi&&i)if(y.call(i)==j)for(r=i.length;r--;)G(i,r,n);elsev(i,function(t){G(i,t,n)});returnn.call(t,e,i)};e.parse=function(t,e){varn,r;returnU=0,M=""+t,n=B(J()),"$"!=J()&&W(),U=M=null,e&&y.call(e)==w?F((r={},r[""]=n,r),"",e):n}}}returne.runInContext=i,e}varo="function"==typeoft&&t.amd,s={function:!0,object:!0},a=s[typeofr]&&r&&!r.nodeType&&r,l=s[typeofwindow]&&window||this,u=a&&s[typeofn]&&n&&!n.nodeType&&"object"==typeofe&&e;if(!u||u.global!==u&&u.window!==u&&u.self!==u||(l=u),a&&!o)i(l,a);else{varc=l.JSON,f=l.JSON3,h=!1,d=i(l,l.JSON3={noConflict:function(){returnh||(h=!0,l.JSON=c,l.JSON3=f,c=f=null),d}});l.JSON={parse:d.parse,stringify:d.stringify}}o&&t(function(){returnd})}).call(this)}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],56:[function(t,e,n){"use strict";functionr(t){for(vare,n=/([^=?&]+)=?([^&]*)/g,r={};e=n.exec(t);r[decodeURIComponent(e[1])]=decodeURIComponent(e[2]));returnr}functioni(t,e){e=e||"";varn=[];"string"!=typeofe&&(e="?");for(varrint)o.call(t,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));returnn.length?e+n.join("&"):""}varo=Object.prototype.hasOwnProperty;n.stringify=i,n.parse=r},{}],57:[function(t,e,n){"use strict";e.exports=function(t,e){if(e=e.split(":")[0],t=+t,!t)return!1;switch(e){case"http":case"ws":return80!==t;case"https":case"wss":return443!==t;case"ftp":return21!==t;case"gopher":return70!==t;case"file":return!1}return0!==t}},{}],58:[function(t,e,n){"use strict";functionr(t){vare=u.exec(t);return{protocol:e[1]?e[1].toLowerCase():"",slashes:!!e[2],rest:e[3]}}functioni(t,e){for(varn=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),s++):s&&(0===r&&(o=!0),n.splice(r,1),s--);returno&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}functiono(t,e,n){if(!(thisinstanceofo))returnnewo(t,e,n);varu,f,h,d,p,v,m=c.slice(),b=typeofe,y=this,g=0;for("object"!==b&&"string"!==b&&(n=e,e=null),n&&"function"!=typeofn&&(n=l.parse),e=a(e),f=r(t||""),u=!f.protocol&&!f.slashes,y.slashes=f.slashes||u&&e.slashes,y.protocol=f.protocol||e.protocol||"",t=f.rest,f.slashes||(m[2]=[/(.*)/,"pathname"]);g<m.length;g++)d=m[g],h=d[0],v=d[1],h!==h?y[v]=t:"string"==typeofh?~(p=t.indexOf(h))&&("number"==typeofd[2]?(y[v]=t.slice(0,p),t=t.slice(p+d[2])):(y[v]=t.slice(p),t=t.slice(0,p))):(p=h.exec(t))&&(y[v]=p[1],t=t.slice(0,p.index)),y[v]=y[v]||(u&&d[3]?e[v]||"":""),d[4]&&(y[v]=y[v].toLowerCase());n&&(y.query=n(y.query)),u&&e.slashes&&"/"!==y.pathname.charAt(0)&&(""!==y.pathname||""!==e.pathname)&&(y.pathname=i(y.pathname,e.pathname)),s(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(d=y.auth.split(":"),y.username=d[0]||"",y.password=d[1]||""),y.origin=y.protocol&&y.host&&"file:"!==y.protocol?y.protocol+"//"+y.host:"null",y.href=y.toString()}vars=t("requires-port"),a=t("./lolcation"),l=t("querystringify"),u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,c=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void0,1,1],[/:(\d+)$/,"port",void0,1],[NaN,"hostname",void0,1,1]];o.prototype.set=function(t,e,n){varr=this;switch(t){case"query":"string"==typeofe&&e.length&&(e=(n||l.parse)(e)),r[t]=e;break;case"port":r[t]=e,s(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=e,r.port&&(e+=":"+r.port),r.host=e;break;case"host":r[t]=e,/:\d+$/.test(e)?(e=e.split(":"),r.port=e.pop(),r.hostname=e.join(":")):(r.hostname=e,r.port="");break;case"protocol":r.protocol=e.toLowerCase(),r.slashes=!n;break;case"pathname":r.pathname=e.length&&"/"!==e.charAt(0)?"/"+e:e;break;default:r[t]=e}for(vari=0;i<c.length;i++){varo=c[i];o[4]&&(r[o[1]]=r[o[1]].toLowerCase())}returnr.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},o.prototype.toString=function(t){t&&"function"==typeoft||(t=l.stringify);vare,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");vari=r+(n.slashes?"//":"");returnn.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,e="object"==typeofn.query?t(n.query):n.query,e&&(i+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(i+=n.hash),i},o.extractProtocol=r,o.location=a,o.qs=l,e.exports=o},{"./lolcation":59,querystringify:56,"requires-port":57}],59:[function(t,e,n){(function(n){"use strict";varr,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o={hash:1,query:1};e.exports=function(e){e=e||n.location||{},r=r||t("./");vars,a={},l=typeofe;if("blob:"===e.protocol)a=newr(unescape(e.pathname),{});elseif("string"===l){a=newr(e,{});for(sino)deletea[s]}elseif("object"===l){for(sine)sino||(a[s]=e[s]);void0===a.slashes&&(a.slashes=i.test(e.href))}returna}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{"./":58}]},{},[1])(1)});