@quotemedia.com/streamer 2.18.1 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;((t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).qmci||(t.qmci={})).Streamer=e()}}(function(){return function o(s,a,u){function l(t,e){if(!a[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(f)return f(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=a[t]={exports:{}};s[t][0].call(i.exports,function(e){return l(s[t][1][e]||e)},i,i.exports,o,s,a,u)}return a[t].exports}for(var f="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=E("./logging.js"),p=E("./EventSupport.js"),h=(c=p)&&c.__esModule?c:{"default":c},m=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("./streamer-events.js"));var _=function(){function r(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.openSocket=t,this.createTransmitter=e,this.log=(0,d.asLogger)(n),this.events=new h["default"](this)}return r.prototype.open=function(){var o=this,e={push:function(e){return o.socket.push(e)}};this.transmitter=this.createTransmitter(e),this.transmitter.on("sequence",function(e){o.events.fire("sequence",e)}).on("message",function(e){o.events.fire("message",e)}),this.socket=this.openSocket(function(e){var i=(o.request=e).url;return{onMessage:function(e){o.transmitter.onMessage(e.responseBody)},onMessagePublished:function(e){o.transmitter.onMessage(e.responseBody)},onOpen:function(e){var t=m.event("open",{url:i,code:e.status,transport:e.transport});o.log.info(t),o.events.fire("open",t)},onReopen:function(e){var t=m.event("reopen",{url:i,status:e.code,transport:e.transport});e.maxReconnectOnClose--,o.log.info(t)},onTransportFailure:function(e,t){var n=m.error("Transport failure",{url:i,code:-2,reason:e,fallback:t.fallbackTransport});o.log.error(e),o.events.fire("error",n)},onError:function(e){var t=e.reason||e.reasonPhrase,n=e.status;t&&(""+t.stack).includes("Failed to execute 'send' on 'XMLHttpRequest")&&(t="Failed to send XMLHttpRequest to "+/Failed to load '(.*?)'/.exec(""+t.stack)[1],n=404);var r=m.error(e.reason,{transport:e.transport,reason:t,url:i,code:n});o.log.error(r),o.events.fire("error",r)},onClose:function(e){var t=e.status,n=e.reason||e.reasonPhrase;408===t&&"unsubscribe"===e.state&&(t=200,n="Unsubscribed");var r=m.close({url:i,transport:e.transport,code:t,reason:n});o.log.info(r),o.events.fire("close",r)},onSlow:function(e){var t=m.slow({timesExceeded:e.timesExceeded,maxExceeded:e.maxExceed});o.log.info(t),o.events.fire("slow",t)}}})},r.prototype.close=function(){if(this.socket)try{this.socket.close(),this.socket=null}catch(e){this.events.fire("error",m.error("Error closing",{reason:e.message,cause:e,code:-3}))}},r.prototype.send=function(e){try{this.transmitter.send(e)}catch(t){this.events.fire("error",m.error("Error sending message",{reason:t.message,cause:t,code:-4}))}},r.prototype.setServer=function(e){this.request.headers["X-Stream-Instance"]=e},r.prototype.isClosed=function(){return null==this.socket},r.prototype.on=function(e,t){return this.events.on(e,t)},r}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/Connection.js","/lib")},{"./EventSupport.js":2,"./logging.js":16,"./streamer-events.js":93,_process:114,buffer:104,timers:135}],2:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;var c=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={},this.source=e||this}return t.prototype.on=function(e,t){return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),this.source},t.prototype.fire=function(e,t){var n=this.listeners[e];if(n){var r=n,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}s(t)}}},t}();d["default"]=c}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/EventSupport.js","/lib")},{_process:114,buffer:104,timers:135}],3:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=_("./LongSequence.js"),p=(c=d)&&c.__esModule?c:{"default":c},h=_("./streamer-api.js");var m=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.update=e,this.sendsequence=new p["default"],this.checkinterval=null,this.lastreceivedsequence=null}return t.prototype.next=function(){return this.sendsequence.next()},t.prototype.track=function(e){if(null!=this.checkinterval){if(e%this.checkinterval==0){var t=new h.messages.control.FlowMessage;t.sequence=e,this.update(t)}this.lastreceivedsequence=e}},t}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/FlowControl.js","/lib")},{"./LongSequence.js":4,"./streamer-api.js":92,_process:114,buffer:104,timers:135}],4:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;var c=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.val=t.MIN_VALUE}return t.prototype.next=function(){var e=this.val;return e<t.MAX_VALUE?this.val++:this.val=t.MIN_VALUE,e},t}();c.MIN_VALUE=1,c.MAX_VALUE=Number.MAX_SAFE_INTEGER,d["default"]=c}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/LongSequence.js","/lib")},{_process:114,buffer:104,timers:135}],5:[function(m,e,_){(function(t,n,r,i,o,s,a,u,l,f,c){"use strict";_.__esModule=!0;var d,p=m("./serialization/v1/codec.js"),h=(d=p)&&d.__esModule?d:{"default":d};_["default"]=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=h["default"].TYPE,this.sequencenumber=null,this.timestamp=null,this.id=null,this.encoding=null,this.mimetype=null,this.payload=null}}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/SMessage.js","/lib")},{"./serialization/v1/codec.js":91,_process:114,buffer:104,timers:135}],6:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0,b("./polyfills.js");var c=b("./streamer-api.js"),d=b("./streamer-utils.js"),p=b("./logging.js"),O=b("./utils.js"),h=g(b("./UShortId.js")),m=g(b("./FlowControl.js")),_=g(b("./EventSupport.js")),E=b("./formatting.js"),v=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(b("./streamer-events.js"));function g(e){return e&&e.__esModule?e:{"default":e}}var T=function(){function i(e,t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.events=new _["default"],this.streamingService=e,this.format=t,this.log=(0,p.asLogger)(n),this.flowControl=new m["default"](function(e){r.send(e)}),this.conn=e.createConnection(),this.conn.on("message",function(e){r._handlejsonmsg(e)}).on("sequence",function(e){r.flowControl.track(e)}).on("close",function(e){r.doClose(e)}).on("error",function(e){r.pendingConnection&&r.pendingConnection(e),r.events.fire("error",e)}),this.requestid=new h["default"],this.pendingsubscriptions={},this.pendingUnsubscriptions={},this.pendingExchangeSubscriptions={},this.pendingExchangeUnsubscriptions={},this.on("error",function(e){r.log.warn(e)})}return i.prototype.open=function(e){try{this.pendingConnection=e,this.conn.open()}catch(t){e&&e(t)}},i.prototype.on=function(e,t){return this.events.on(e,t)},i.prototype.subscribe=function(e,t,n,r){var i=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()}),t=Array.isArray(t)?t:[t].map(function(e){return e.toUpperCase()});var o=n&&"function"!=typeof n?n:null,s=r||(n&&"function"==typeof n?n:null);if(this.isClosed()){var a=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",a),void(s&&s(a))}var u={ids:[],types:t,mimetype:this.format,callback:s,result:{subscribed:[],rejected:[],unentitled:[],invalidSymbols:[]}};0!==e.length&&0!==t.length?this._prepareSubscriptionRequests(e,u,c.messages.control.Action.SUBSCRIBE,o).forEach(function(e){var t=i.requestid.next();u.ids.push(t),i.pendingsubscriptions[t]=u,e.id=t,i.send(e)}):s(null,u.result)},i.prototype.subscribeExchange=function(e,t,n){var r=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()});var i=t&&"function"!=typeof t?t:null,o=n||(t&&"function"==typeof t?t:null);if(this.isClosed()){var s=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",s),void(o&&o(s))}var a={callback:o,mimetype:this.format,id:[],result:{subscribed:[],rejected:[]}};0===e.length&&o(null,a.result),this.prepareExchangeSubscriptionRequest(e,a,c.messages.control.Action.SUBSCRIBE,i).forEach(function(e){var t=r.requestid.next();a.id.push(t),a.exchange=e.exchange,a.conflation=e.conflation,r.pendingExchangeSubscriptions[t]=a,e.id=t,r.send(e)})},i.prototype.getSessionStats=function(){if(this.isClosed()){var e=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});this.events.fire("error",e)}else{var t=new c.messages.control.StatsMessage;this.send(t)}},i.prototype.unsubscribe=function(e,t,n,r){var i=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()}),t=Array.isArray(t)?t:[t].map(function(e){return e.toUpperCase()});var o=n&&"function"!=typeof n?n:null,s=r||(n&&"function"==typeof n?n:null);if(this.isClosed()){var a=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",a),void(s&&s(a))}var u={ids:[],types:t,mimetype:this.format,callback:s,result:{unsubscribed:[]}};0!==e.length&&0!==t.length||s&&s(null,u.result),this._prepareSubscriptionRequests(e,u,c.messages.control.Action.UNSUBSCRIBE,o).forEach(function(e){var t=i.requestid.next();u.ids.push(t),i.pendingUnsubscriptions[t]=u,e.id=t,i.send(e)})},i.prototype.unsubscribeExchange=function(e,t,n){var r=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()});var i=t&&"function"!=typeof t?t:null,o=n||(t&&"function"==typeof t?t:null);if(this.isClosed()){var s=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",s),void(o&&o(s))}var a={callback:o,mimetype:this.format,id:[],result:{subscribed:[],rejected:[]}};0===e.length&&o(null,a.result),this.prepareExchangeSubscriptionRequest(e,a,c.messages.control.Action.UNSUBSCRIBE,i).forEach(function(e){var t=r.requestid.next();a.id.push(t),a.exchange=e.exchange,a.conflation=e.conflation,r.pendingExchangeUnsubscriptions[t]=a,e.id=t,r.send(e)})},i.prototype._handlejsonmsg=function(e){(0,d.iscontrolmessage)(e)?this.handlectrlmsg(e):(0,d.isdatamessage)(e)?this._handledatamsg(e):this.events.fire("error",e)},i.prototype._prepareSubscriptionRequests=function(e,t,n,r){for(var i=0,o=-1,s=e.length,a=t.types.includes("ORDERBOOK"),u=[],l=0;l<s;l++)((i=this._getUpdatedNumberOfEntitlements(t.types.length,i,e[l],a))>=this.maxEntitlementsPerSubscription||l===s-1)&&(u.push(this._buildRequest(e.slice(o+1,l+1),t,n,r)),o=l,i=0);return u},i.prototype._buildRequest=function(e,t,n,r){var i=new c.messages.control.SubscribeMessage;return i.action=n,i.symbols=e,i.types=t.types,i.mimetype=t.mimetype,r&&r.skipHeavyInitialLoad&&(i.skipHeavyInitialLoad=!0),r&&(i.conflation=r.conflation),i},i.prototype.prepareExchangeSubscriptionRequest=function(e,t,n,r){for(var i=[],o=e.length,s=0;s<o;s++)i.push(this.buildExchangeRequest(e[s],t,n,r));return i},i.prototype.buildExchangeRequest=function(e,t,n,r){var i=new c.messages.control.ExchangeSubscribeMessage;return i.action=n,i.exchange=e,i.mimetype=t.mimetype,r&&(i.conflation=r.conflation),i},i.prototype._getUpdatedNumberOfEntitlements=function(e,t,n,r){var i=t;return r&&n.endsWith(":CC")?i+=14*e:i+=e,i},i.prototype.handlectrlmsg=function(e){switch(this.log.debug(E.msgfmt.fmt(e)),(0,d.messagetype)(e)){case c.messages.MessageTypeNames.ctrl.HEARTBEAT:this.onHeartbeat(e);break;case c.messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE:this.onSubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE:this.onExchangeSubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE:this.onUnsubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE:this.onExchangeUnsubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE:this.onConnectResponse(e);break;case c.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE:this.onConnectionClose(e);break;case c.messages.MessageTypeNames.ctrl.SLOW_CONNECTION:this.onSlowConnection(e);break;case c.messages.MessageTypeNames.ctrl.STATS_RESPONSE:this.onStatsResponse(e);break;case c.messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT:this.onInitialDataSent(e);break;case c.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE:this.onResubscribeMessage(e)}},i.prototype.onHeartbeat=function(e){},i.prototype.onSubscribeResponse=function(e){var t=this.pendingsubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.ids,e.__id),delete this.pendingsubscriptions[e.__id],200!=e.code&&!t.failed){t.failed=!0;var r=v.error("Error subscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&t.callback(r))}var i=t.result;if(e.entitlements){var o=e.entitlements,s=Array.isArray(o),a=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(a>=o.length)break;u=o[a++]}else{if((a=o.next()).done)break;u=a.value}var l=u,f=l,c=f.symbol,d=f.marketdatatype,p=f.entitlement;l={symbol:c,type:d},"NA"!==p?(this.log.debug("SUBSCRIBED <"+c+", "+d+">"),l.entitlement=p,i.subscribed.push(l)):(this.log.warn("NOT ENTITLED <"+c+","+d+">"),i.unentitled.push(l))}}if(e.rejectedSymbols){var h=e.rejectedSymbols,m=Array.isArray(h),_=0;for(h=m?h:h[Symbol.iterator]();;){var E;if(m){if(_>=h.length)break;E=h[_++]}else{if((_=h.next()).done)break;E=_.value}c=E;this.log.warn("REJECTED "+c),i.rejected.push(c)}}if(e.invalidSymbols){var g=e.invalidSymbols,T=Array.isArray(g),b=0;for(g=T?g:g[Symbol.iterator]();;){var y,S;if(T){if(b>=g.length)break;S=g[b++]}else{if((b=g.next()).done)break;S=b.value}var w=S;this.log.warn("INVALID SYMBOL "+w),(y=i.invalidSymbols).push.apply(y,e.invalidSymbols)}}0!==t.ids.length||t.failed||n&&n(null,t.result)},i.prototype.onExchangeSubscribeResponse=function(e){var t=this.pendingExchangeSubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.id,e.__id),delete this.pendingExchangeSubscriptions[e.__id],console.log(e),200!=e.code){var r=v.error("Error subscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&t.callback(r))}0===t.id.length&&n&&n(null,t)},i.prototype.onUnsubscribeResponse=function(e){var t=this.pendingUnsubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.ids,e.__id),delete this.pendingUnsubscriptions[e.__id],200!=e.code&&!t.failed){t.failed=!0;var r=v.error("Error unsubscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&n(r))}for(var i=0;i<e.unsubscribed.length;++i){var o=t.result,s=e.unsubscribed[i],a=s.symbol,u=s.marketdatatype;this.log.debug("UNSUBSCRIBED <"+a+", "+u+">"),o.unsubscribed.push({symbol:a,type:u})}0!==t.ids.length||t.failed||n&&n(null,t.result)},i.prototype.onExchangeUnsubscribeResponse=function(e){var t=this.pendingExchangeUnsubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.id,e.__id),delete this.pendingExchangeUnsubscriptions[e.__id],console.log(e),200!=e.code){var r=v.error("Error unsubscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&t.callback(r))}0===t.id.length&&n&&n(null,t)},i.prototype.onConnectResponse=function(e){if(200!=e.code){var t=v.error("Connection failed",{code:e.code,reason:e.reason});return this.events.fire("error",t),this.pendingConnection&&this.pendingConnection(t),void this.doClose(t)}if(this._serverversion=e.version,this.flowControl.checkinterval=e.flowControlCheckInterval,this.maxEntitlementsPerSubscription=e.maxEntitlementsPerSubscription,this.isClosed()){var n=v.error("Connection was already closed",{code:-1,reason:"Already disconnected"});return this.events.fire("error",n),void(this.pendingConnection&&this.pendingConnection(n))}this.conn.setServer(e.serverInstance),this.pendingConnection&&this.pendingConnection(null,this)},i.prototype.onConnectionClose=function(e){this.doClose(v.close({reason:e.reason,code:e.code}))},i.prototype.onSlowConnection=function(e){this.log.debug(E.msgfmt.fmt(e)),this.events.fire("slow",e)},i.prototype.onStatsResponse=function(e){if(200==e.code)this.events.fire("stats",e);else{var t=v.error("Error getting stats",{code:e.code,reason:e.reason});this.events.fire("error",t)}},i.prototype.onInitialDataSent=function(e){this.log.debug(E.msgfmt.fmt(e)),this.events.fire("initialDataSent",e)},i.prototype.onResubscribeMessage=function(e){this.log.debug(E.msgfmt.fmt(e)),this.events.fire("resubscribeMessage",e)},i.prototype._handledatamsg=function(e){this.events.fire("message",e)},i.prototype.send=function(e){this.conn&&(e.sequenceNumber=this.flowControl.next(),this.conn.send(e))},i.prototype.doClose=function(e){if(!this.isClosed()){var t=this.conn;this.conn=null,this.events.fire("close",e),t.close()}},i.prototype.close=function(e){this.doClose(v.close({reason:"Manually closed",code:200})),e&&e()},i.prototype.isClosed=function(){return null==this.conn},i}();y["default"]=T}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/Stream.js","/lib")},{"./EventSupport.js":2,"./FlowControl.js":3,"./UShortId.js":9,"./formatting.js":13,"./logging.js":16,"./polyfills.js":18,"./streamer-api.js":92,"./streamer-events.js":93,"./streamer-utils.js":94,"./utils.js":98,_process:114,buffer:104,timers:135}],7:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0;var c=E(b("./atmosphere.js/lib/atmosphere.js")),d=E(b("./http.js")),p=b("./auth/AuthService.js"),h=b("./logging.js"),m=E(b("./auth/EnduserAuthService.js"));b("./polyfills.js");var _=E(b("./StreamingService.js"));function E(e){return e&&e.__esModule?e:{"default":e}}var g={},T=void 0;Object.assign(g,{login:function(e,t){new m["default"](d["default"],e).login(t)},open:function(e,t){T||(T=(0,h.asLogger)(g.logger),c["default"].util.log=function(e,t){T.log.apply(T,[e].concat(Array.from(t)))});var n=void 0;try{n=(0,p.asCredentials)(e.credentials)}catch(i){return void t(i)}var r=Object.assign({},e);r.credentials=n,r.format=r.format||"application/json",new _["default"](d["default"],c["default"],T,r).openStream(t)},ping:function(e,t){new _["default"](d["default"],c["default"],T,{host:e}).ping(t)},getServerVersion:function(e,t){new _["default"](d["default"],c["default"],T,{host:e}).getVersion(t)}}),y["default"]=g}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/Streamer.js","/lib")},{"./StreamingService.js":8,"./atmosphere.js/lib/atmosphere.js":10,"./auth/AuthService.js":11,"./auth/EnduserAuthService.js":12,"./http.js":14,"./logging.js":16,"./polyfills.js":18,_process:114,buffer:104,timers:135}],8:[function(N,e,A){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";A.__esModule=!0,N("./polyfills.js");var c=N("./logging.js"),d=N("./streamer-api.js"),p=N("./message.js"),h=S(N("./serialization/SMessageDecoder.js")),m=S(N("./serialization/SMessageEncoder.js")),_=S(N("./transmission/SMessageTransmitter.js")),E=S(N("./transmission/JsonTransmitter.js")),g=S(N("./Connection.js")),T=S(N("./Stream.js")),b=S(N("./transmission/QitchTransmitter.js")),y=S(N("./qitch/encoder/QitchEncoder"));function S(e){return e&&e.__esModule?e:{"default":e}}var w="/ping/v1",O="/version/v1",v="/stream/v1",I=function(){function u(e,t,n,r){var i=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.http=e,this.atmo=t,this.log=(0,c.asLogger)(n),this.config=r||{},this.format=this.config.format,"application/json"===this.config.format)this.createTransmitter=function(e){return new E["default"](e,i.log)};else if("application/qitch"===this.config.format){var o=new y["default"];this.createTransmitter=function(e){return new b["default"](e,o,i.log)},this.format=p.MimeTypes.QITCH}else{var s=new m["default"],a=new h["default"];this.createTransmitter=function(e){return new _["default"](e,s,a,i.log)},"application/json/legacy"===this.config.format&&(this.format=p.MimeTypes.JSON)}}return u.prototype.openSocket=function(e){var t={"X-Stream-Version":d.VERSION,"X-Stream-Lib":d.LIBRARY_NAME},n=this.config.conflation;null!=n&&""!==n&&(t["X-Stream-Conflation"]=n);var r=this.config.rejectExcessiveConnection;null!=r&&""!==r&&(t["X-Stream-Reject"]=r),"application/json"!==this.config.format&&this.config.format!==p.MimeTypes.QITCH||(t["X-Stream-Format"]=this.format),this.format===p.MimeTypes.QITCH&&(t["X-Atmosphere-Binary"]=!0,t["X-atmo-protocol"]=!1),"true"===this.config.updatesOnly&&(t["X-Stream-UpdatesOnly"]=!0),Object.assign(t,this.config.credentials.getHeaders());var i={url:this.config.host+v,transport:this.config.transport||"websocket",fallbackTransport:this.config.fallbackTransport||"streaming",enableXDR:!0===this.config.cors,trackMessageLength:!t["X-Atmosphere-Binary"],headers:t,maxReconnectOnClose:1,reconnectInterval:1e3,closeAsync:!0,connectTimeout:6e4};Object.assign(i,e(i));var o=this.atmo.subscribe(i);return{push:function(e){o.push(e)},close:function(){o.close()}}},u.prototype.createConnection=function(){var t=this;return new g["default"](function(e){return t.createTransmitter(e)},function(e){return t.openSocket(e)},this.logger)},u.prototype.openStream=function(e){new T["default"](this,this.format,this.log).open(e)},u.prototype.ping=function(t){this.http({url:this.config.host+w,success:function(e){return t(null,e)},failure:t})},u.prototype.getVersion=function(t){this.http({url:this.config.host+O,success:function(e){return t(null,e)},failure:t})},u}();A["default"]=I}).call(this,N("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],N("timers").setImmediate,N("timers").clearImmediate,"/lib/StreamingService.js","/lib")},{"./Connection.js":1,"./Stream.js":6,"./logging.js":16,"./message.js":17,"./polyfills.js":18,"./qitch/encoder/QitchEncoder":67,"./serialization/SMessageDecoder.js":87,"./serialization/SMessageEncoder.js":88,"./streamer-api.js":92,"./transmission/JsonTransmitter.js":95,"./transmission/QitchTransmitter.js":96,"./transmission/SMessageTransmitter.js":97,_process:114,buffer:104,timers:135}],9:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;var c=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.val=t.MIN_VALUE}return t.prototype.next=function(){var e=this.val;return e<t.MAX_VALUE?this.val++:this.val=t.MIN_VALUE,e},t}();c.NULL=0,c.MIN_VALUE=1,c.MAX_VALUE=65535,d["default"]=c}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/UShortId.js","/lib")},{_process:114,buffer:104,timers:135}],10:[function(e,p,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c,d,ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};
1
+ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;((t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).qmci||(t.qmci={})).Streamer=e()}}(function(){return function o(s,a,u){function l(t,e){if(!a[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(f)return f(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=a[t]={exports:{}};s[t][0].call(i.exports,function(e){return l(s[t][1][e]||e)},i,i.exports,o,s,a,u)}return a[t].exports}for(var f="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=E("./logging.js"),p=E("./EventSupport.js"),h=(c=p)&&c.__esModule?c:{"default":c},m=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("./streamer-events.js"));var _=function(){function r(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.openSocket=t,this.createTransmitter=e,this.log=(0,d.asLogger)(n),this.events=new h["default"](this)}return r.prototype.open=function(){var o=this,e={push:function(e){return o.socket.push(e)}};this.transmitter=this.createTransmitter(e),this.transmitter.on("sequence",function(e){o.events.fire("sequence",e)}).on("message",function(e){o.events.fire("message",e)}),this.socket=this.openSocket(function(e){var i=(o.request=e).url;return{onMessage:function(e){o.transmitter.onMessage(e.responseBody)},onMessagePublished:function(e){o.transmitter.onMessage(e.responseBody)},onOpen:function(e){var t=m.event("open",{url:i,code:e.status,transport:e.transport});o.log.info(t),o.events.fire("open",t)},onReopen:function(e){var t=m.event("reopen",{url:i,status:e.code,transport:e.transport});e.maxReconnectOnClose--,o.log.info(t)},onTransportFailure:function(e,t){var n=m.error("Transport failure",{url:i,code:-2,reason:e,fallback:t.fallbackTransport});o.log.error(e),o.events.fire("error",n)},onError:function(e){var t=e.reason||e.reasonPhrase,n=e.status;t&&(""+t.stack).includes("Failed to execute 'send' on 'XMLHttpRequest")&&(t="Failed to send XMLHttpRequest to "+/Failed to load '(.*?)'/.exec(""+t.stack)[1],n=404);var r=m.error(e.reason,{transport:e.transport,reason:t,url:i,code:n});o.log.error(r),o.events.fire("error",r)},onClose:function(e){var t=e.status,n=e.reason||e.reasonPhrase;408===t&&"unsubscribe"===e.state&&(t=200,n="Unsubscribed");var r=m.close({url:i,transport:e.transport,code:t,reason:n});o.log.info(r),o.events.fire("close",r)},onSlow:function(e){var t=m.slow({timesExceeded:e.timesExceeded,maxExceeded:e.maxExceed});o.log.info(t),o.events.fire("slow",t)}}})},r.prototype.close=function(){if(this.socket)try{this.socket.close(),this.socket=null}catch(e){this.events.fire("error",m.error("Error closing",{reason:e.message,cause:e,code:-3}))}},r.prototype.send=function(e){try{this.transmitter.send(e)}catch(t){this.events.fire("error",m.error("Error sending message",{reason:t.message,cause:t,code:-4}))}},r.prototype.setServer=function(e){this.request.headers["X-Stream-Instance"]=e},r.prototype.isClosed=function(){return null==this.socket},r.prototype.on=function(e,t){return this.events.on(e,t)},r}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/Connection.js","/lib")},{"./EventSupport.js":2,"./logging.js":16,"./streamer-events.js":93,_process:114,buffer:104,timers:135}],2:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;var c=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={},this.source=e||this}return t.prototype.on=function(e,t){return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),this.source},t.prototype.fire=function(e,t){var n=this.listeners[e];if(n){var r=n,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}s(t)}}},t}();d["default"]=c}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/EventSupport.js","/lib")},{_process:114,buffer:104,timers:135}],3:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=_("./LongSequence.js"),p=(c=d)&&c.__esModule?c:{"default":c},h=_("./streamer-api.js");var m=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.update=e,this.sendsequence=new p["default"],this.checkinterval=null,this.lastreceivedsequence=null}return t.prototype.next=function(){return this.sendsequence.next()},t.prototype.track=function(e){if(null!=this.checkinterval){if(e%this.checkinterval==0){var t=new h.messages.control.FlowMessage;t.sequence=e,this.update(t)}this.lastreceivedsequence=e}},t}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/FlowControl.js","/lib")},{"./LongSequence.js":4,"./streamer-api.js":92,_process:114,buffer:104,timers:135}],4:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;var c=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.val=t.MIN_VALUE}return t.prototype.next=function(){var e=this.val;return e<t.MAX_VALUE?this.val++:this.val=t.MIN_VALUE,e},t}();c.MIN_VALUE=1,c.MAX_VALUE=Number.MAX_SAFE_INTEGER,d["default"]=c}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/LongSequence.js","/lib")},{_process:114,buffer:104,timers:135}],5:[function(m,e,_){(function(t,n,r,i,o,s,a,u,l,f,c){"use strict";_.__esModule=!0;var d,p=m("./serialization/v1/codec.js"),h=(d=p)&&d.__esModule?d:{"default":d};_["default"]=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=h["default"].TYPE,this.sequencenumber=null,this.timestamp=null,this.id=null,this.encoding=null,this.mimetype=null,this.payload=null}}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/SMessage.js","/lib")},{"./serialization/v1/codec.js":91,_process:114,buffer:104,timers:135}],6:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0,b("./polyfills.js");var c=b("./streamer-api.js"),d=b("./streamer-utils.js"),p=b("./logging.js"),O=b("./utils.js"),h=g(b("./UShortId.js")),m=g(b("./FlowControl.js")),_=g(b("./EventSupport.js")),E=b("./formatting.js"),v=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(b("./streamer-events.js"));function g(e){return e&&e.__esModule?e:{"default":e}}var T=function(){function i(e,t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.events=new _["default"],this.streamingService=e,this.format=t,this.log=(0,p.asLogger)(n),this.flowControl=new m["default"](function(e){r.send(e)}),this.conn=e.createConnection(),this.conn.on("message",function(e){r._handlejsonmsg(e)}).on("sequence",function(e){r.flowControl.track(e)}).on("close",function(e){r.doClose(e)}).on("error",function(e){r.pendingConnection&&r.pendingConnection(e),r.events.fire("error",e)}),this.requestid=new h["default"],this.pendingsubscriptions={},this.pendingUnsubscriptions={},this.pendingExchangeSubscriptions={},this.pendingExchangeUnsubscriptions={},this.on("error",function(e){r.log.warn(e)})}return i.prototype.open=function(e){try{this.pendingConnection=e,this.conn.open()}catch(t){e&&e(t)}},i.prototype.on=function(e,t){return this.events.on(e,t)},i.prototype.subscribe=function(e,t,n,r){var i=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()}),t=Array.isArray(t)?t:[t].map(function(e){return e.toUpperCase()});var o=n&&"function"!=typeof n?n:null,s=r||(n&&"function"==typeof n?n:null);if(this.isClosed()){var a=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",a),void(s&&s(a))}var u={ids:[],types:t,mimetype:this.format,callback:s,result:{subscribed:[],rejected:[],unentitled:[],invalidSymbols:[]}};0!==e.length&&0!==t.length?this._prepareSubscriptionRequests(e,u,c.messages.control.Action.SUBSCRIBE,o).forEach(function(e){var t=i.requestid.next();u.ids.push(t),i.pendingsubscriptions[t]=u,e.id=t,i.send(e)}):s(null,u.result)},i.prototype.subscribeExchange=function(e,t,n){var r=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()});var i=t&&"function"!=typeof t?t:null,o=n||(t&&"function"==typeof t?t:null);if(this.isClosed()){var s=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",s),void(o&&o(s))}var a={callback:o,mimetype:this.format,id:[],result:{subscribed:[],rejected:[]}};0===e.length&&o(null,a.result),this.prepareExchangeSubscriptionRequest(e,a,c.messages.control.Action.SUBSCRIBE,i).forEach(function(e){var t=r.requestid.next();a.id.push(t),a.exchange=e.exchange,a.conflation=e.conflation,r.pendingExchangeSubscriptions[t]=a,e.id=t,r.send(e)})},i.prototype.getSessionStats=function(){if(this.isClosed()){var e=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});this.events.fire("error",e)}else{var t=new c.messages.control.StatsMessage;this.send(t)}},i.prototype.unsubscribe=function(e,t,n,r){var i=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()}),t=Array.isArray(t)?t:[t].map(function(e){return e.toUpperCase()});var o=n&&"function"!=typeof n?n:null,s=r||(n&&"function"==typeof n?n:null);if(this.isClosed()){var a=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",a),void(s&&s(a))}var u={ids:[],types:t,mimetype:this.format,callback:s,result:{unsubscribed:[]}};0!==e.length&&0!==t.length||s&&s(null,u.result),this._prepareSubscriptionRequests(e,u,c.messages.control.Action.UNSUBSCRIBE,o).forEach(function(e){var t=i.requestid.next();u.ids.push(t),i.pendingUnsubscriptions[t]=u,e.id=t,i.send(e)})},i.prototype.unsubscribeExchange=function(e,t,n){var r=this;e=(Array.isArray(e)?e:[e]).map(function(e){return e.toUpperCase()});var i=t&&"function"!=typeof t?t:null,o=n||(t&&"function"==typeof t?t:null);if(this.isClosed()){var s=v.error("Stream is disconnected",{code:-1,reason:"Already disconnected"});return this.events.fire("error",s),void(o&&o(s))}var a={callback:o,mimetype:this.format,id:[],result:{subscribed:[],rejected:[]}};0===e.length&&o(null,a.result),this.prepareExchangeSubscriptionRequest(e,a,c.messages.control.Action.UNSUBSCRIBE,i).forEach(function(e){var t=r.requestid.next();a.id.push(t),a.exchange=e.exchange,a.conflation=e.conflation,r.pendingExchangeUnsubscriptions[t]=a,e.id=t,r.send(e)})},i.prototype._handlejsonmsg=function(e){(0,d.iscontrolmessage)(e)?this.handlectrlmsg(e):(0,d.isdatamessage)(e)?this._handledatamsg(e):this.events.fire("error",e)},i.prototype._prepareSubscriptionRequests=function(e,t,n,r){for(var i=0,o=-1,s=e.length,a=t.types.includes("ORDERBOOK"),u=[],l=0;l<s;l++)((i=this._getUpdatedNumberOfEntitlements(t.types.length,i,e[l],a))>=this.maxEntitlementsPerSubscription||l===s-1)&&(u.push(this._buildRequest(e.slice(o+1,l+1),t,n,r)),o=l,i=0);return u},i.prototype._buildRequest=function(e,t,n,r){var i=new c.messages.control.SubscribeMessage;return i.action=n,i.symbols=e,i.types=t.types,i.mimetype=t.mimetype,r&&r.skipHeavyInitialLoad&&(i.skipHeavyInitialLoad=!0),r&&(i.conflation=r.conflation),i},i.prototype.prepareExchangeSubscriptionRequest=function(e,t,n,r){for(var i=[],o=e.length,s=0;s<o;s++)i.push(this.buildExchangeRequest(e[s],t,n,r));return i},i.prototype.buildExchangeRequest=function(e,t,n,r){var i=new c.messages.control.ExchangeSubscribeMessage;return i.action=n,i.exchange=e,i.mimetype=t.mimetype,r&&(i.conflation=r.conflation),i},i.prototype._getUpdatedNumberOfEntitlements=function(e,t,n,r){var i=t;return r&&n.endsWith(":CC")?i+=14*e:i+=e,i},i.prototype.handlectrlmsg=function(e){switch(this.log.debug(E.msgfmt.fmt(e)),(0,d.messagetype)(e)){case c.messages.MessageTypeNames.ctrl.HEARTBEAT:this.onHeartbeat(e);break;case c.messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE:this.onSubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE:this.onExchangeSubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE:this.onUnsubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE:this.onExchangeUnsubscribeResponse(e);break;case c.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE:this.onConnectResponse(e);break;case c.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE:this.onConnectionClose(e);break;case c.messages.MessageTypeNames.ctrl.SLOW_CONNECTION:this.onSlowConnection(e);break;case c.messages.MessageTypeNames.ctrl.STATS_RESPONSE:this.onStatsResponse(e);break;case c.messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT:this.onInitialDataSent(e);break;case c.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE:this.onResubscribeMessage(e)}},i.prototype.onHeartbeat=function(e){},i.prototype.onSubscribeResponse=function(e){var t=this.pendingsubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.ids,e.__id),delete this.pendingsubscriptions[e.__id],200!=e.code&&!t.failed){t.failed=!0;var r=v.error("Error subscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&t.callback(r))}var i=t.result;if(e.entitlements){var o=e.entitlements,s=Array.isArray(o),a=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(a>=o.length)break;u=o[a++]}else{if((a=o.next()).done)break;u=a.value}var l=u,f=l,c=f.symbol,d=f.marketdatatype,p=f.entitlement;l={symbol:c,type:d},"NA"!==p?(this.log.debug("SUBSCRIBED <"+c+", "+d+">"),l.entitlement=p,i.subscribed.push(l)):(this.log.warn("NOT ENTITLED <"+c+","+d+">"),i.unentitled.push(l))}}if(e.rejectedSymbols){var h=e.rejectedSymbols,m=Array.isArray(h),_=0;for(h=m?h:h[Symbol.iterator]();;){var E;if(m){if(_>=h.length)break;E=h[_++]}else{if((_=h.next()).done)break;E=_.value}c=E;this.log.warn("REJECTED "+c),i.rejected.push(c)}}if(e.invalidSymbols){var g=e.invalidSymbols,T=Array.isArray(g),b=0;for(g=T?g:g[Symbol.iterator]();;){var y,S;if(T){if(b>=g.length)break;S=g[b++]}else{if((b=g.next()).done)break;S=b.value}var w=S;this.log.warn("INVALID SYMBOL "+w),(y=i.invalidSymbols).push.apply(y,e.invalidSymbols)}}0!==t.ids.length||t.failed||n&&n(null,t.result)},i.prototype.onExchangeSubscribeResponse=function(e){var t=this.pendingExchangeSubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.id,e.__id),delete this.pendingExchangeSubscriptions[e.__id],console.log(e),200!=e.code){var r=v.error("Error subscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&t.callback(r))}0===t.id.length&&n&&n(null,t)},i.prototype.onUnsubscribeResponse=function(e){var t=this.pendingUnsubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.ids,e.__id),delete this.pendingUnsubscriptions[e.__id],200!=e.code&&!t.failed){t.failed=!0;var r=v.error("Error unsubscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&n(r))}for(var i=0;i<e.unsubscribed.length;++i){var o=t.result,s=e.unsubscribed[i],a=s.symbol,u=s.marketdatatype;this.log.debug("UNSUBSCRIBED <"+a+", "+u+">"),o.unsubscribed.push({symbol:a,type:u})}0!==t.ids.length||t.failed||n&&n(null,t.result)},i.prototype.onExchangeUnsubscribeResponse=function(e){var t=this.pendingExchangeUnsubscriptions[e.__id],n=t.callback;if((0,O.removeFromArray)(t.id,e.__id),delete this.pendingExchangeUnsubscriptions[e.__id],console.log(e),200!=e.code){var r=v.error("Error unsubscribing",{code:e.code,reason:e.reason});return this.events.fire("error",r),void(n&&t.callback(r))}0===t.id.length&&n&&n(null,t)},i.prototype.onConnectResponse=function(e){if(200!=e.code){var t=v.error("Connection failed",{code:e.code,reason:e.reason});return this.events.fire("error",t),this.pendingConnection&&this.pendingConnection(t),void this.doClose(t)}if(this._serverversion=e.version,this.flowControl.checkinterval=e.flowControlCheckInterval,this.maxEntitlementsPerSubscription=e.maxEntitlementsPerSubscription,this.isClosed()){var n=v.error("Connection was already closed",{code:-1,reason:"Already disconnected"});return this.events.fire("error",n),void(this.pendingConnection&&this.pendingConnection(n))}this.conn.setServer(e.serverInstance),this.pendingConnection&&this.pendingConnection(null,this)},i.prototype.onConnectionClose=function(e){this.doClose(v.close({reason:e.reason,code:e.code}))},i.prototype.onSlowConnection=function(e){this.log.debug(E.msgfmt.fmt(e)),this.events.fire("slow",e)},i.prototype.onStatsResponse=function(e){if(200==e.code)this.events.fire("stats",e);else{var t=v.error("Error getting stats",{code:e.code,reason:e.reason});this.events.fire("error",t)}},i.prototype.onInitialDataSent=function(e){this.log.debug(E.msgfmt.fmt(e)),this.events.fire("initialDataSent",e)},i.prototype.onResubscribeMessage=function(e){this.log.debug(E.msgfmt.fmt(e)),this.events.fire("resubscribeMessage",e)},i.prototype._handledatamsg=function(e){this.events.fire("message",e)},i.prototype.send=function(e){this.conn&&(e.sequenceNumber=this.flowControl.next(),this.conn.send(e))},i.prototype.doClose=function(e){if(!this.isClosed()){var t=this.conn;this.conn=null,this.events.fire("close",e),t.close()}},i.prototype.close=function(e){this.doClose(v.close({reason:"Manually closed",code:200})),e&&e()},i.prototype.isClosed=function(){return null==this.conn},i}();y["default"]=T}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/Stream.js","/lib")},{"./EventSupport.js":2,"./FlowControl.js":3,"./UShortId.js":9,"./formatting.js":13,"./logging.js":16,"./polyfills.js":18,"./streamer-api.js":92,"./streamer-events.js":93,"./streamer-utils.js":94,"./utils.js":98,_process:114,buffer:104,timers:135}],7:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0;var c=E(b("./atmosphere.js/lib/atmosphere.js")),d=E(b("./http.js")),p=b("./auth/AuthService.js"),h=b("./logging.js"),m=E(b("./auth/EnduserAuthService.js"));b("./polyfills.js");var _=E(b("./StreamingService.js"));function E(e){return e&&e.__esModule?e:{"default":e}}var g={},T=void 0;Object.assign(g,{login:function(e,t){new m["default"](d["default"],e).login(t)},open:function(e,t){T||(T=(0,h.asLogger)(g.logger),c["default"].util.log=function(e,t){T.log.apply(T,[e].concat(Array.from(t)))});var n=void 0;try{n=(0,p.asCredentials)(e.credentials)}catch(i){return void t(i)}var r=Object.assign({},e);r.credentials=n,r.format=r.format||"application/json",new _["default"](d["default"],c["default"],T,r).openStream(t)},ping:function(e,t){new _["default"](d["default"],c["default"],T,{host:e}).ping(t)},getServerVersion:function(e,t){new _["default"](d["default"],c["default"],T,{host:e}).getVersion(t)}}),y["default"]=g}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/Streamer.js","/lib")},{"./StreamingService.js":8,"./atmosphere.js/lib/atmosphere.js":10,"./auth/AuthService.js":11,"./auth/EnduserAuthService.js":12,"./http.js":14,"./logging.js":16,"./polyfills.js":18,_process:114,buffer:104,timers:135}],8:[function(A,e,N){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";N.__esModule=!0,A("./polyfills.js");var c=A("./logging.js"),d=A("./streamer-api.js"),p=A("./message.js"),h=S(A("./serialization/SMessageDecoder.js")),m=S(A("./serialization/SMessageEncoder.js")),_=S(A("./transmission/SMessageTransmitter.js")),E=S(A("./transmission/JsonTransmitter.js")),g=S(A("./Connection.js")),T=S(A("./Stream.js")),b=S(A("./transmission/QitchTransmitter.js")),y=S(A("./qitch/encoder/QitchEncoder"));function S(e){return e&&e.__esModule?e:{"default":e}}var w="/ping/v1",O="/version/v1",v="/stream/v1",I=function(){function u(e,t,n,r){var i=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.http=e,this.atmo=t,this.log=(0,c.asLogger)(n),this.config=r||{},this.format=this.config.format,"application/json"===this.config.format)this.createTransmitter=function(e){return new E["default"](e,i.log)};else if("application/qitch"===this.config.format){var o=new y["default"];this.createTransmitter=function(e){return new b["default"](e,o,i.log)},this.format=p.MimeTypes.QITCH}else{var s=new m["default"],a=new h["default"];this.createTransmitter=function(e){return new _["default"](e,s,a,i.log)},"application/json/legacy"===this.config.format&&(this.format=p.MimeTypes.JSON)}}return u.prototype.openSocket=function(e){var t={"X-Stream-Version":d.VERSION,"X-Stream-Lib":d.LIBRARY_NAME},n=this.config.conflation;null!=n&&""!==n&&(t["X-Stream-Conflation"]=n);var r=this.config.rejectExcessiveConnection;null!=r&&""!==r&&(t["X-Stream-Reject"]=r),"application/json"!==this.config.format&&this.config.format!==p.MimeTypes.QITCH||(t["X-Stream-Format"]=this.format),this.format===p.MimeTypes.QITCH&&(t["X-Atmosphere-Binary"]=!0,t["X-atmo-protocol"]=!1),"true"===this.config.updatesOnly&&(t["X-Stream-UpdatesOnly"]=!0),Object.assign(t,this.config.credentials.getHeaders());var i={url:this.config.host+v,transport:this.config.transport||"websocket",fallbackTransport:this.config.fallbackTransport||"streaming",enableXDR:!0===this.config.cors,trackMessageLength:!t["X-Atmosphere-Binary"],headers:t,maxReconnectOnClose:1,reconnectInterval:1e3,closeAsync:!0,connectTimeout:6e4};Object.assign(i,e(i));var o=this.atmo.subscribe(i);return{push:function(e){o.push(e)},close:function(){o.close()}}},u.prototype.createConnection=function(){var t=this;return new g["default"](function(e){return t.createTransmitter(e)},function(e){return t.openSocket(e)},this.logger)},u.prototype.openStream=function(e){new T["default"](this,this.format,this.log).open(e)},u.prototype.ping=function(t){this.http({url:this.config.host+w,success:function(e){return t(null,e)},failure:t})},u.prototype.getVersion=function(t){this.http({url:this.config.host+O,success:function(e){return t(null,e)},failure:t})},u}();N["default"]=I}).call(this,A("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},A("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],A("timers").setImmediate,A("timers").clearImmediate,"/lib/StreamingService.js","/lib")},{"./Connection.js":1,"./Stream.js":6,"./logging.js":16,"./message.js":17,"./polyfills.js":18,"./qitch/encoder/QitchEncoder":67,"./serialization/SMessageDecoder.js":87,"./serialization/SMessageEncoder.js":88,"./streamer-api.js":92,"./transmission/JsonTransmitter.js":95,"./transmission/QitchTransmitter.js":96,"./transmission/SMessageTransmitter.js":97,_process:114,buffer:104,timers:135}],9:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;var c=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.val=t.MIN_VALUE}return t.prototype.next=function(){var e=this.val;return e<t.MAX_VALUE?this.val++:this.val=t.MIN_VALUE,e},t}();c.NULL=0,c.MIN_VALUE=1,c.MAX_VALUE=65535,d["default"]=c}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/UShortId.js","/lib")},{_process:114,buffer:104,timers:135}],10:[function(e,p,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c,d,ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};
2
2
  /*
3
3
  * Copyright 2015 Async-IO.org
4
4
  *
@@ -29,9 +29,9 @@
29
29
  * See the License for the specific language governing permissions and
30
30
  * limitations under the License.
31
31
  */
32
- c=undefined,d=function(){var e,t,ee={},te=!1,i=[],ne=[],re=0,c=Object.prototype.hasOwnProperty;return(ee={version:"2.3.3-javascript",onError:function(e){},onClose:function(e){},onOpen:function(e){},onReopen:function(e){},onMessage:function(e){},onReconnect:function(e,t){},onMessagePublished:function(e){},onTransportFailure:function(e,t){},onLocalMessage:function(e){},onFailureToReconnect:function(e,t){},onClientTimeout:function(e){},onOpenAfterResume:function(e){},WebsocketApiAdapter:function(e){var t,n;return e.onMessage=function(e){n.onmessage({data:e.responseBody})},e.onMessagePublished=function(e){n.onmessage({data:e.responseBody})},e.onOpen=function(e){n.onopen(e)},n={close:function(){t.close()},send:function(e){t.push(e)},onmessage:function(e){},onopen:function(e){},onclose:function(e){},onerror:function(e){}},t=new ee.subscribe(e),n},AtmosphereRequest:function(e){var a,l,u,d={timeout:3e5,method:"GET",headers:{},contentType:"",callback:null,url:"",data:"",suspend:!0,maxRequest:-1,reconnect:!0,maxStreamingLength:1e7,lastIndex:0,logLevel:"info",requestCount:0,fallbackMethod:"GET",fallbackTransport:"streaming",transport:"long-polling",webSocketImpl:null,webSocketBinaryType:null,dispatchUrl:null,webSocketPathDelimiter:"@@",enableXDR:!1,rewriteURL:!1,attachHeadersAsQueryString:!0,executeCallbackBeforeReconnect:!1,readyState:0,withCredentials:!1,trackMessageLength:!1,messageDelimiter:"|",connectTimeout:-1,reconnectInterval:0,dropHeaders:!0,uuid:0,async:!0,shared:!1,readResponsesHeaders:!1,maxReconnectOnClose:5,enableProtocol:!0,disableDisconnect:!1,pollingInterval:0,heartbeat:{client:null,server:null},ackInterval:0,closeAsync:!1,reconnectOnServerError:!0,handleOnlineOffline:!0,onError:function(e){},onClose:function(e){},onOpen:function(e){},onMessage:function(e){},onReopen:function(e,t){},onReconnect:function(e,t){},onMessagePublished:function(e){},onTransportFailure:function(e,t){},onLocalMessage:function(e){},onFailureToReconnect:function(e,t){},onClientTimeout:function(e){},onOpenAfterResume:function(e){}},p={status:200,reasonPhrase:"OK",responseBody:"",messages:[],headers:[],state:"messageReceived",transport:"polling",error:null,request:null,partialMessage:"",errorHandled:!1,closedByClientTimeout:!1,ffTryingReconnect:!1},o=null,s=null,n=null,r=null,f=null,i=!0,h=0,c=0,m="X",_=!1,E=null,g=null,T=ee.util.now();function t(){_=!(i=!0),h=0,r=n=s=o=null}function b(e){return"debug"==e?"debug"===d.logLevel:"info"==e?"info"===d.logLevel||"debug"===d.logLevel:"warn"==e?"warn"===d.logLevel||"info"===d.logLevel||"debug"===d.logLevel:"error"==e&&("error"===d.logLevel||"warn"===d.logLevel||"info"===d.logLevel||"debug"===d.logLevel)}function y(e){b("debug")&&ee.util.debug(new Date+" Atmosphere: "+e)}function S(e,t){return""===p.partialMessage&&"streaming"===t.transport&&e.responseText.length>t.maxStreamingLength}function w(){if(d.enableProtocol&&!d.disableDisconnect&&!d.firstMessage){var r="X-Atmosphere-Transport=close&X-Atmosphere-tracking-id="+d.uuid;ee.util.each(d.headers,function(e,t){var n=ee.util.isFunction(t)?t.call(this,d,d,p):t;null!=n&&(r+="&"+encodeURIComponent(e)+"="+encodeURIComponent(n))});var e=d.url.replace(/([?&])_=[^&]*/,r);e+=e===d.url?(/\?/.test(d.url)?"&":"?")+r:"";var t=new ee.AtmosphereRequest({connected:!1});t.connectTimeout=d.connectTimeout,t.attachHeadersAsQueryString=!1,t.dropHeaders=!0,t.url=e,t.contentType="text/plain",t.transport="polling",t.method="GET",t.data="",t.heartbeat=null,d.enableXDR&&(t.enableXDR=d.enableXDR),t.async=d.closeAsync,function(e,t){t||(t=K(e));t.transport="polling",t.method="GET",t.withCredentials=!1,t.reconnect=!1,t.force=!0,t.suspend=!1,t.timeout=1e3,U(t)}("",t)}}function O(){y("Closing (AtmosphereRequest._close() called)"),_=!0,d.reconnectId&&(clearTimeout(d.reconnectId),delete d.reconnectId),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),d.reconnect=!1,p.request=d,p.state="unsubscribe",p.responseBody="",p.status=408,p.partialMessage="",$(),w(),v()}function v(){p.partialMessage="",d.id&&clearTimeout(d.id),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),d.reconnectId&&(clearTimeout(d.reconnectId),delete d.reconnectId),null!=r&&(r.close(),r=null),null!=f&&(f.abort(),f=null),null!=n&&(n.abort(),n=null),null!=o&&(o.canSendMessage&&(y("invoking .close() on WebSocket object"),o.close()),o=null),null!=s&&(s.close(),s=null),function(){null!=a&&(clearInterval(l),document.cookie=u+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",a.signal("close",{reason:"",heir:_?(a.get("children")||[])[0]:T}),a.close());null!=g&&g.close()}()}function I(e){v(),t(),(d=ee.util.extend(d,e)).mrequest=d.reconnect,d.reconnect||(d.reconnect=!0)}function N(){if(d.shared){if(null!=(g=function(o){var t,n,r,s="atmosphere-"+o.url,e={storage:function(){function t(e){e.key===s&&e.newValue&&u(e.newValue)}if(ee.util.storage){var n=window.localStorage,r=function(e){var t=n.getItem(s+"-"+e);return null===t?[]:ee.util.parseJSON(t)},i=function(e,t){n.setItem(s+"-"+e,ee.util.stringifyJSON(t))};return{init:function(){return i("children",r("children").concat([T])),ee.util.on(window,"storage",t),r("opened")},signal:function(e,t){n.setItem(s,ee.util.stringifyJSON({target:"p",type:e,data:t}))},close:function(){var e=r("children");ee.util.off(window,"storage",t),e&&a(e,o.id)&&i("children",e)}}}},windowref:function(){var n=window.open("",s.replace(/\W/g,""));if(n&&!n.closed&&n.callbacks)return{init:function(){return n.callbacks.push(u),n.children.push(T),n.opened},signal:function(e,t){!n.closed&&n.fire&&n.fire(ee.util.stringifyJSON({target:"p",type:e,data:t}))},close:function(){r||(a(n.callbacks,u),a(n.children,T))}}}};function a(e,t){var n,r=e.length;for(n=0;n<r;n++)e[n]===t&&e.splice(n,1);return r!==e.length}function u(e){var t=ee.util.parseJSON(e),n=t.data;if("c"===t.target)switch(t.type){case"open":A("opening","local",d);break;case"close":r||(r=!0,"aborted"===n.reason?O():n.heir===T?N():setTimeout(function(){N()},100));break;case"message":X(n,"messageReceived",200,o.transport);break;case"localMessage":Q(n)}}function i(){var e=new RegExp("(?:^|; )("+encodeURIComponent(s)+")=([^;]*)").exec(document.cookie);if(e)return ee.util.parseJSON(decodeURIComponent(e[2]))}if(!(t=i())||1e3<ee.util.now()-t.ts)return;if(!(n=e.storage()||e.windowref()))return;return{open:function(){var e;return l=setInterval(function(){var e=t;(t=i())&&e.ts!==t.ts||u(ee.util.stringifyJSON({target:"c",type:"close",data:{reason:"error",heir:e.heir}}))},1e3),(e=n.init())&&setTimeout(function(){A("opening","local",o)},50),e},send:function(e){n.signal("send",e)},localSend:function(e){n.signal("localSend",ee.util.stringifyJSON({id:T,event:e}))},close:function(){_||(clearInterval(l),n.signal("close"),n.close())}}}(d))&&(b("debug")&&ee.util.debug("Storage service available. All communication will be local"),g.open(d)))return;b("debug")&&ee.util.debug("No Storage service available."),g=null}var e,r,i;d.firstMessage=0==re,d.isOpen=!1,d.ctime=ee.util.now(),0===d.uuid&&(d.uuid=re),p.closedByClientTimeout=!1,"websocket"!==d.transport&&"sse"!==d.transport?U(d):"websocket"===d.transport?null!=d.webSocketImpl||window.WebSocket||window.MozWebSocket?function n(s){p.transport="websocket";var e=(d.url,B(d,ee.util.getAbsoluteURL(d.webSocketUrl||d.url)).replace(/^http/,"ws"));b("debug")&&ee.util.debug("Invoking executeWebSocket, using URL: "+e);if(s&&!d.reconnect)return void(null!=o&&v());o=function(e){{return null!=d.webSocketImpl?d.webSocketImpl:window.WebSocket?new WebSocket(e):new MozWebSocket(e)}}(e);null!=d.webSocketBinaryType&&(o.binaryType=d.webSocketBinaryType);0<d.connectTimeout&&(d.id=setTimeout(function(){if(s);else{o.onclose({code:1002,reason:"",wasClean:!1});try{v()}catch(e){}}},d.connectTimeout));o.onopen=function(e){y("websocket.onopen"),C(d),te=!1,b("debug")&&ee.util.debug("Websocket successfully opened");var t=s;null!=o&&(o.canSendMessage=!0),d.enableProtocol||(s=!0,A(t?"re-opening":"opening","websocket",d)),null!=o&&"POST"===d.method&&(p.state="messageReceived",o.send(d.data))};o.onmessage=function(e){y("websocket.onmessage"),C(d),d.enableProtocol&&(s=!0),p.state="messageReceived",p.status=200;var t,n,r,i="string"==typeof(e=e.data);if(i){var o=D(e,d,p);o||($(),p.responseBody="",p.messages=[])}else d.firstMessage?function(n,e,r){if(e instanceof Blob){var i=n.firstMessage;n.firstMessage=!1;var t=new FileReader;t.addEventListener("loadend",function(e){if(r){var t=M(n,e.target.result);i||r(t)}}),t.readAsText(e)}else r&&r(M(n,e))}(d,e,function(e){""!==e&&(p.responseBody=e,$(),p.responseBody=null)}):(t=e,n=function(e){p.responseBody=e,$(),p.responseBody=null},(r=new FileReader).addEventListener("loadend",function(e){n&&n(e.target.result)}),r.readAsArrayBuffer(t))};o.onerror=function(e){y("websocket.onerror"),clearTimeout(d.id),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),
32
+ c=undefined,d=function(){var e,t,ee={},te=!1,i=[],ne=[],re=0,c=Object.prototype.hasOwnProperty;return(ee={version:"2.3.3-javascript",onError:function(e){},onClose:function(e){},onOpen:function(e){},onReopen:function(e){},onMessage:function(e){},onReconnect:function(e,t){},onMessagePublished:function(e){},onTransportFailure:function(e,t){},onLocalMessage:function(e){},onFailureToReconnect:function(e,t){},onClientTimeout:function(e){},onOpenAfterResume:function(e){},WebsocketApiAdapter:function(e){var t,n;return e.onMessage=function(e){n.onmessage({data:e.responseBody})},e.onMessagePublished=function(e){n.onmessage({data:e.responseBody})},e.onOpen=function(e){n.onopen(e)},n={close:function(){t.close()},send:function(e){t.push(e)},onmessage:function(e){},onopen:function(e){},onclose:function(e){},onerror:function(e){}},t=new ee.subscribe(e),n},AtmosphereRequest:function(e){var a,l,u,d={timeout:3e5,method:"GET",headers:{},contentType:"",callback:null,url:"",data:"",suspend:!0,maxRequest:-1,reconnect:!0,maxStreamingLength:1e7,lastIndex:0,logLevel:"info",requestCount:0,fallbackMethod:"GET",fallbackTransport:"streaming",transport:"long-polling",webSocketImpl:null,webSocketBinaryType:null,dispatchUrl:null,webSocketPathDelimiter:"@@",enableXDR:!1,rewriteURL:!1,attachHeadersAsQueryString:!0,executeCallbackBeforeReconnect:!1,readyState:0,withCredentials:!1,trackMessageLength:!1,messageDelimiter:"|",connectTimeout:-1,reconnectInterval:0,dropHeaders:!0,uuid:0,async:!0,shared:!1,readResponsesHeaders:!1,maxReconnectOnClose:5,enableProtocol:!0,disableDisconnect:!1,pollingInterval:0,heartbeat:{client:null,server:null},ackInterval:0,closeAsync:!1,reconnectOnServerError:!0,handleOnlineOffline:!0,onError:function(e){},onClose:function(e){},onOpen:function(e){},onMessage:function(e){},onReopen:function(e,t){},onReconnect:function(e,t){},onMessagePublished:function(e){},onTransportFailure:function(e,t){},onLocalMessage:function(e){},onFailureToReconnect:function(e,t){},onClientTimeout:function(e){},onOpenAfterResume:function(e){}},p={status:200,reasonPhrase:"OK",responseBody:"",messages:[],headers:[],state:"messageReceived",transport:"polling",error:null,request:null,partialMessage:"",errorHandled:!1,closedByClientTimeout:!1,ffTryingReconnect:!1},o=null,s=null,n=null,r=null,f=null,i=!0,h=0,c=0,m="X",_=!1,E=null,g=null,T=ee.util.now();function t(){_=!(i=!0),h=0,r=n=s=o=null}function b(e){return"debug"==e?"debug"===d.logLevel:"info"==e?"info"===d.logLevel||"debug"===d.logLevel:"warn"==e?"warn"===d.logLevel||"info"===d.logLevel||"debug"===d.logLevel:"error"==e&&("error"===d.logLevel||"warn"===d.logLevel||"info"===d.logLevel||"debug"===d.logLevel)}function y(e){b("debug")&&ee.util.debug(new Date+" Atmosphere: "+e)}function S(e,t){return""===p.partialMessage&&"streaming"===t.transport&&e.responseText.length>t.maxStreamingLength}function w(){if(d.enableProtocol&&!d.disableDisconnect&&!d.firstMessage){var r="X-Atmosphere-Transport=close&X-Atmosphere-tracking-id="+d.uuid;ee.util.each(d.headers,function(e,t){var n=ee.util.isFunction(t)?t.call(this,d,d,p):t;null!=n&&(r+="&"+encodeURIComponent(e)+"="+encodeURIComponent(n))});var e=d.url.replace(/([?&])_=[^&]*/,r);e+=e===d.url?(/\?/.test(d.url)?"&":"?")+r:"";var t=new ee.AtmosphereRequest({connected:!1});t.connectTimeout=d.connectTimeout,t.attachHeadersAsQueryString=!1,t.dropHeaders=!0,t.url=e,t.contentType="text/plain",t.transport="polling",t.method="GET",t.data="",t.heartbeat=null,d.enableXDR&&(t.enableXDR=d.enableXDR),t.async=d.closeAsync,function(e,t){t||(t=K(e));t.transport="polling",t.method="GET",t.withCredentials=!1,t.reconnect=!1,t.force=!0,t.suspend=!1,t.timeout=1e3,U(t)}("",t)}}function O(){y("Closing (AtmosphereRequest._close() called)"),_=!0,d.reconnectId&&(clearTimeout(d.reconnectId),delete d.reconnectId),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),d.reconnect=!1,p.request=d,p.state="unsubscribe",p.responseBody="",p.status=408,p.partialMessage="",$(),w(),v()}function v(){p.partialMessage="",d.id&&clearTimeout(d.id),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),d.reconnectId&&(clearTimeout(d.reconnectId),delete d.reconnectId),null!=r&&(r.close(),r=null),null!=f&&(f.abort(),f=null),null!=n&&(n.abort(),n=null),null!=o&&(o.canSendMessage&&(y("invoking .close() on WebSocket object"),o.close()),o=null),null!=s&&(s.close(),s=null),function(){null!=a&&(clearInterval(l),document.cookie=u+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",a.signal("close",{reason:"",heir:_?(a.get("children")||[])[0]:T}),a.close());null!=g&&g.close()}()}function I(e){v(),t(),(d=ee.util.extend(d,e)).mrequest=d.reconnect,d.reconnect||(d.reconnect=!0)}function A(){if(d.shared){if(null!=(g=function(o){var t,n,r,s="atmosphere-"+o.url,e={storage:function(){function t(e){e.key===s&&e.newValue&&u(e.newValue)}if(ee.util.storage){var n=window.localStorage,r=function(e){var t=n.getItem(s+"-"+e);return null===t?[]:ee.util.parseJSON(t)},i=function(e,t){n.setItem(s+"-"+e,ee.util.stringifyJSON(t))};return{init:function(){return i("children",r("children").concat([T])),ee.util.on(window,"storage",t),r("opened")},signal:function(e,t){n.setItem(s,ee.util.stringifyJSON({target:"p",type:e,data:t}))},close:function(){var e=r("children");ee.util.off(window,"storage",t),e&&a(e,o.id)&&i("children",e)}}}},windowref:function(){var n=window.open("",s.replace(/\W/g,""));if(n&&!n.closed&&n.callbacks)return{init:function(){return n.callbacks.push(u),n.children.push(T),n.opened},signal:function(e,t){!n.closed&&n.fire&&n.fire(ee.util.stringifyJSON({target:"p",type:e,data:t}))},close:function(){r||(a(n.callbacks,u),a(n.children,T))}}}};function a(e,t){var n,r=e.length;for(n=0;n<r;n++)e[n]===t&&e.splice(n,1);return r!==e.length}function u(e){var t=ee.util.parseJSON(e),n=t.data;if("c"===t.target)switch(t.type){case"open":N("opening","local",d);break;case"close":r||(r=!0,"aborted"===n.reason?O():n.heir===T?A():setTimeout(function(){A()},100));break;case"message":X(n,"messageReceived",200,o.transport);break;case"localMessage":Q(n)}}function i(){var e=new RegExp("(?:^|; )("+encodeURIComponent(s)+")=([^;]*)").exec(document.cookie);if(e)return ee.util.parseJSON(decodeURIComponent(e[2]))}if(!(t=i())||1e3<ee.util.now()-t.ts)return;if(!(n=e.storage()||e.windowref()))return;return{open:function(){var e;return l=setInterval(function(){var e=t;(t=i())&&e.ts!==t.ts||u(ee.util.stringifyJSON({target:"c",type:"close",data:{reason:"error",heir:e.heir}}))},1e3),(e=n.init())&&setTimeout(function(){N("opening","local",o)},50),e},send:function(e){n.signal("send",e)},localSend:function(e){n.signal("localSend",ee.util.stringifyJSON({id:T,event:e}))},close:function(){_||(clearInterval(l),n.signal("close"),n.close())}}}(d))&&(b("debug")&&ee.util.debug("Storage service available. All communication will be local"),g.open(d)))return;b("debug")&&ee.util.debug("No Storage service available."),g=null}var e,r,i;d.firstMessage=0==re,d.isOpen=!1,d.ctime=ee.util.now(),0===d.uuid&&(d.uuid=re),p.closedByClientTimeout=!1,"websocket"!==d.transport&&"sse"!==d.transport?U(d):"websocket"===d.transport?null!=d.webSocketImpl||window.WebSocket||window.MozWebSocket?function n(s){p.transport="websocket";var e=(d.url,B(d,ee.util.getAbsoluteURL(d.webSocketUrl||d.url)).replace(/^http/,"ws"));b("debug")&&ee.util.debug("Invoking executeWebSocket, using URL: "+e);if(s&&!d.reconnect)return void(null!=o&&v());o=function(e){{return null!=d.webSocketImpl?d.webSocketImpl:window.WebSocket?new WebSocket(e):new MozWebSocket(e)}}(e);null!=d.webSocketBinaryType&&(o.binaryType=d.webSocketBinaryType);0<d.connectTimeout&&(d.id=setTimeout(function(){if(s);else{o.onclose({code:1002,reason:"",wasClean:!1});try{v()}catch(e){}}},d.connectTimeout));o.onopen=function(e){y("websocket.onopen"),M(d),te=!1,b("debug")&&ee.util.debug("Websocket successfully opened");var t=s;null!=o&&(o.canSendMessage=!0),d.enableProtocol||(s=!0,N(t?"re-opening":"opening","websocket",d)),null!=o&&"POST"===d.method&&(p.state="messageReceived",o.send(d.data))};o.onmessage=function(e){y("websocket.onmessage"),M(d),d.enableProtocol&&(s=!0),p.state="messageReceived",p.status=200;var t,n,r,i="string"==typeof(e=e.data);if(i){var o=D(e,d,p);o||($(),p.responseBody="",p.messages=[])}else d.firstMessage?function(n,e,r){if(e instanceof Blob){var i=n.firstMessage;n.firstMessage=!1;var t=new FileReader;t.addEventListener("loadend",function(e){if(r){var t=C(n,e.target.result);i||r(t)}}),t.readAsText(e)}else r&&r(C(n,e))}(d,e,function(e){""!==e&&(p.responseBody=e,$(),p.responseBody=null)}):(t=e,n=function(e){p.responseBody=e,$(),p.responseBody=null},(r=new FileReader).addEventListener("loadend",function(e){n&&n(e.target.result)}),r.readAsArrayBuffer(t))};o.onerror=function(e){y("websocket.onerror"),clearTimeout(d.id),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),
33
33
  // Patched by QuoteMedia
34
- L(460,"Websocket error")};o.onclose=function(e){if(y("websocket.onclose"),clearTimeout(d.id),"closed"!==p.state){var t=e.reason;if(""===t)switch(e.code){case 1e3:t="Normal closure; the connection successfully completed whatever purpose for which it was created.";break;case 1001:t="The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.";break;case 1002:t="The endpoint is terminating the connection due to a protocol error.";break;case 1003:t="The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data).";break;case 1004:t="The endpoint is terminating the connection because a data frame was received that is too large.";break;case 1005:t="Unknown: no status code was provided even though one was expected.";break;case 1006:t="Connection was closed abnormally (that is, with no close frame being sent)."}b("warn")&&ee.util.warn("Websocket closed, reason: "+t+" - wasClean: "+e.wasClean),p.closedByClientTimeout||d.handleOnlineOffline&&te?d.reconnectId&&(clearTimeout(d.reconnectId),delete d.reconnectId):(Z(s),p.state="closed",_?ee.util.log(d.logLevel,["Websocket closed normally"]):s?d.reconnect&&"websocket"===p.transport&&(v(),h++<d.maxReconnectOnClose?(A("re-connecting",d.transport,d),0<d.reconnectInterval?d.reconnectId=setTimeout(function(){p.responseBody="",p.messages=[],n(!0)},d.reconnectInterval):(p.responseBody="",p.messages=[],n(!0))):(ee.util.log(d.logLevel,["Websocket reconnect maximum try reached "+h]),b("warn")&&ee.util.warn("Websocket error, reason: "+e.reason),L(0,"maxReconnectOnClose reached"))):R("Websocket failed on first connection attempt. Downgrading to "+d.fallbackTransport+" and resending"))}};var t=navigator.userAgent.toLowerCase();var r=-1<t.indexOf("android");r&&o.url===undefined&&o.onclose({reason:"Android 4.1 does not support websockets.",wasClean:!1})}(!1):R("Websocket is not supported, using request.fallbackTransport ("+d.fallbackTransport+")"):"sse"===d.transport&&(e=ee.util.getAbsoluteURL(d.url.toLowerCase()),r=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/.exec(e),i=!(!r||r[1]==window.location.protocol&&r[2]==window.location.hostname&&(r[3]||("http:"===r[1]?80:443))==(window.location.port||("http:"===window.location.protocol?80:443))),!window.EventSource||i&&ee.util.browser.safari&&!(7<=ee.util.browser.vmajor)?R("Server Side Events(SSE) is not supported, using request.fallbackTransport ("+d.fallbackTransport+")"):function t(n){p.transport="sse";var e=B(d);b("debug")&&(ee.util.debug("Invoking executeSSE"),ee.util.debug("Using URL: "+e));if(n&&!d.reconnect)return void(null!=s&&v());try{s=new EventSource(e,{withCredentials:d.withCredentials})}catch(r){return L(0,r),void R("SSE failed. Downgrading to fallback transport and resending")}0<d.connectTimeout&&(d.id=setTimeout(function(){n||v()},d.connectTimeout));s.onopen=function(e){y("sse.onopen"),C(d),b("debug")&&ee.util.debug("SSE successfully opened"),d.enableProtocol?d.isReopen&&(d.isReopen=!1,A("re-opening",d.transport,d)):A(n?"re-opening":"opening","sse",d),n=!0,"POST"===d.method&&(p.state="messageReceived",s.send(d.data))};s.onmessage=function(e){if(y("sse.onmessage"),C(d),!d.enableXDR&&window.location.host&&e.origin&&e.origin!==window.location.protocol+"//"+window.location.host)ee.util.log(d.logLevel,["Origin was not "+window.location.protocol+"//"+window.location.host]);else{p.state="messageReceived",p.status=200;var t=D(e=e.data,d,p);t||($(),p.responseBody="",p.messages=[])}};s.onerror=function(e){y("sse.onerror"),clearTimeout(d.id),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),p.closedByClientTimeout||(Z(n),v(),_?ee.util.log(d.logLevel,["SSE closed normally"]):n?d.reconnect&&"sse"===p.transport&&(h++<d.maxReconnectOnClose?(A("re-connecting",d.transport,d),0<d.reconnectInterval?d.reconnectId=setTimeout(function(){t(!0)},d.reconnectInterval):t(!0),p.responseBody="",p.messages=[]):(ee.util.log(d.logLevel,["SSE reconnect maximum try reached "+h]),L(0,"maxReconnectOnClose reached"))):R("SSE failed. Downgrading to fallback transport and resending"))}}(!1))}function A(e,t,n){if(d.shared&&"local"!==t&&function(){var t,r="atmosphere-"+d.url,e=function(){var n,e=r.replace(/\W/g,""),t=document.getElementById(e);return t||((t=document.createElement("div")).id=e,t.style.display="none",t.innerHTML='<iframe name="'+e+'" />',document.body.appendChild(t)),n=t.firstChild.contentWindow,{init:function(){n.callbacks=[i],n.fire=function(e){var t;for(t=0;t<n.callbacks.length;t++)n.callbacks[t](e)}},signal:function(e,t){!n.closed&&n.fire&&n.fire(ee.util.stringifyJSON({target:"c",type:e,data:t}))},get:function(e){return n.closed?null:n[e]},set:function(e,t){n.closed||(n[e]=t)},close:function(){}}};function i(e){var t=ee.util.parseJSON(e),n=t.data;if("p"===t.target)switch(t.type){case"send":q(n);break;case"localSend":Q(n);break;case"close":O()}}function n(){document.cookie=u+"="+encodeURIComponent(ee.util.stringifyJSON({ts:ee.util.now()+1,heir:(t.get("children")||[])[0]}))+"; path=/"}E=function(e){t.signal("message",e)},(t=function(){function e(e){e.key===r&&e.newValue&&i(e.newValue)}if(ee.util.storage){var n=window.localStorage;return{init:function(){ee.util.on(window,"storage",e)},signal:function(e,t){n.setItem(r,ee.util.stringifyJSON({target:"c",type:e,data:t}))},get:function(e){return ee.util.parseJSON(n.getItem(r+"-"+e))},set:function(e,t){n.setItem(r+"-"+e,ee.util.stringifyJSON(t))},close:function(){ee.util.off(window,"storage",e),n.removeItem(r),n.removeItem(r+"-opened"),n.removeItem(r+"-children")}}}}()||e()).init(),b("debug")&&ee.util.debug("Installed StorageService "+t),t.set("children",[]),null==t.get("opened")||t.get("opened")||t.set("opened",!1),u=encodeURIComponent(r),n(),l=setInterval(n,1e3),a=t}(),null!=a&&a.set("opened",!0),n.close=function(){O()},0<h&&"re-connecting"===e)n.isReopen=!0,(s=p).state="re-connecting",z(s);else if(null==p.error){p.request=n;var r=p.state;p.state=e;var i=p.transport;p.transport=t;var o=p.responseBody;$(),p.responseBody=o,p.state=r,p.transport=i}var s}function F(i){i.transport="jsonp";var o,s=d;null!=i&&void 0!==i&&(s=i),(f={open:function(){var r="atmosphere"+ ++T;function e(){var e=s.url;null!=s.dispatchUrl&&(e+=s.dispatchUrl);var t=s.data;s.attachHeadersAsQueryString&&(e=B(s),""!==t&&(e+="&X-Atmosphere-Post-Body="+encodeURIComponent(t)),t="");var n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;(o=document.createElement("script")).src=e+"&jsonpTransport="+r,o.clean=function(){o.clean=o.onerror=o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),2==++i.scriptCount&&(i.scriptCount=1,s.lastIndex=0,s.openId&&clearTimeout(s.openId),s.heartbeatTimer&&clearTimeout(s.heartbeatTimer),s.reconnect&&h++<s.maxReconnectOnClose?(A("re-connecting",s.transport,s),P(f,s,i.reconnectInterval),s.openId=setTimeout(function(){k(s)},s.reconnectInterval+1e3)):L(0,"maxReconnectOnClose reached"))},o.onload=o.onreadystatechange=function(){y("jsonp.onload"),o.readyState&&!/loaded|complete/.test(o.readyState)||o.clean()},o.onerror=function(){y("jsonp.onerror"),i.scriptCount=1,o.clean()},n.insertBefore(o,n.firstChild)}window[r]=function(e){if(y("jsonp.window"),i.scriptCount=0,s.reconnect&&-1===s.maxRequest||s.requestCount++<s.maxRequest){if(s.executeCallbackBeforeReconnect||P(f,s,s.pollingInterval),null!=e&&"string"!=typeof e)try{e=e.message}catch(t){}D(e,s,p)||X(p.responseBody,"messageReceived",200,s.transport),s.executeCallbackBeforeReconnect&&P(f,s,s.pollingInterval),C(s)}else ee.util.log(d.logLevel,["JSONP reconnect maximum try reached "+d.requestCount]),L(0,"maxRequest reached")},setTimeout(function(){e()},50)},abort:function(){o&&o.clean&&o.clean()}}).open()}function M(e,t){var n=t;if("polling"===e.transport)return n;if(e.enableProtocol&&e.firstMessage&&0!==ee.util.trim(t).length){var r=e.trackMessageLength?1:0,i=t.split(e.messageDelimiter);if(i.length<=r+1)return n;if(e.firstMessage=!1,e.uuid=ee.util.trim(i[r]),i.length<=r+2&&ee.util.log("error",["Protocol data not sent by the server. If you enable protocol on client side be sure to install JavascriptProtocol interceptor on server side.Also note that atmosphere-runtime 2.2+ should be used."]),c=parseInt(ee.util.trim(i[r+1]),10),m=i[r+2],"long-polling"!==e.transport&&k(e),re=e.uuid,n="",r=e.trackMessageLength?4:3,i.length>r)for(var o=r;o<i.length;o++)n+=i[o],o+1!==i.length&&(n+=e.messageDelimiter);0!==e.ackInterval&&setTimeout(function(){q("...ACK...")},e.ackInterval)}else e.enableProtocol&&e.firstMessage&&ee.util.browser.msie&&+ee.util.browser.version.split(".")[0]<10?ee.util.log(d.logLevel,["Receiving unexpected data from IE"]):k(e);return n}function C(e){clearTimeout(e.id),0<e.timeout&&"polling"!==e.transport&&(e.id=setTimeout(function(){p.closedByClientTimeout=!0,p.state="closedByClient",p.responseBody="",p.status=408,p.messages=[],$(),w(),v()},e.timeout))}function L(e,t){v(),clearTimeout(d.id),p.state="error",p.reasonPhrase=t,p.responseBody="",p.status=e,p.messages=[],$()}function D(e,t,n){if(e instanceof Blob)return!1;if(0===(e=M(t,e)).length)return!0;if(n.responseBody=e,t.trackMessageLength){var r=[],i=(e=n.partialMessage+e).indexOf(t.messageDelimiter);if(-1!=i){for(;-1!==i;){var o=e.substring(0,i),s=+o;if(isNaN(s))throw n.partialMessage="",new Error('message length "'+o+'" is not a number');(i+=t.messageDelimiter.length)+s>e.length?i=-1:(r.push(e.substring(i,i+s)),i=(e=e.substring(i+s,e.length)).indexOf(t.messageDelimiter))}return n.partialMessage=e,0!==r.length?(n.responseBody=r.join(t.messageDelimiter),n.messages=r,!1):(n.responseBody="",n.messages=[],!0)}}return n.responseBody=e,!(n.messages=[e])}function R(e){ee.util.log(d.logLevel,[e]),"undefined"!=typeof d.onTransportFailure?d.onTransportFailure(e,d):"undefined"!=typeof ee.util.onTransportFailure&&ee.util.onTransportFailure(e,d),d.transport=d.fallbackTransport;var t=-1===d.connectTimeout?0:d.connectTimeout;d.reconnect&&"none"!==d.transport||null==d.transport?(d.method=d.fallbackMethod,p.transport=d.fallbackTransport,d.fallbackTransport="none",0<t?d.reconnectId=setTimeout(function(){N()},t):N()):L(500,"Unable to reconnect with fallback transport")}function B(r,i){var o=d;return null!=r&&void 0!==r&&(o=r),null==i&&(i=o.url),o.attachHeadersAsQueryString&&(-1!==i.indexOf("X-Atmosphere-Framework")||(i+=-1!==i.indexOf("?")?"&":"?",i+="X-Atmosphere-tracking-id="+o.uuid,i+="&X-Atmosphere-Framework="+ee.version,i+="&X-Atmosphere-Transport="+o.transport,o.trackMessageLength&&(i+="&X-Atmosphere-TrackMessageSize=true"),null!==o.heartbeat&&null!==o.heartbeat.server&&(i+="&X-Heartbeat-Server="+o.heartbeat.server),""!==o.contentType&&(i+="&Content-Type="+("websocket"===o.transport?o.contentType:encodeURIComponent(o.contentType))),o.enableProtocol&&(i+="&X-atmo-protocol=true"),ee.util.each(o.headers,function(e,t){var n=ee.util.isFunction(t)?t.call(this,o,r,p):t;null!=n&&(i+="&"+encodeURIComponent(e)+"="+encodeURIComponent(n))}))),i}function k(e){if(e.isOpen)if(e.isReopen)e.isReopen=!1,A("re-opening",e.transport,e);else{if("messageReceived"!==p.state||"jsonp"!==e.transport&&"long-polling"!==e.transport)return;(t=p).state="openAfterResume",z(t),t.state="messageReceived"}else e.isOpen=!0,A("opening",e.transport,e);var t;!function(t){null!=t.heartbeatTimer&&clearTimeout(t.heartbeatTimer);if(!isNaN(c)&&0<c){t.heartbeatTimer=setTimeout(function e(){b("debug")&&ee.util.debug("Sending heartbeat");q(m),t.heartbeatTimer=setTimeout(e,c)},c)}}(e)}function U(u){var l=d;if(null==u&&void 0===u||(l=u),l.lastIndex=0,l.readyState=0,"jsonp"===l.transport||l.enableXDR&&ee.util.checkCORSSupport())F(l);else{if(ee.util.browser.msie&&+ee.util.browser.version.split(".")[0]<10){if("streaming"===l.transport)return void(l.enableXDR&&window.XDomainRequest?G(l):j(l));if(l.enableXDR&&window.XDomainRequest)return void G(l)}var t=function(e){if(l.lastIndex=0,h++,e||l.reconnect&&h<=l.maxReconnectOnClose){var t=e?0:u.reconnectInterval;p.ffTryingReconnect=!0,A("re-connecting",u.transport,u),P(c,l,t)}else L(0,"maxReconnectOnClose reached")},f=function(e){ee._beforeUnloadState?(ee.util.debug(new Date+" Atmosphere: reconnectF: execution delayed due to _beforeUnloadState flag"),setTimeout(function(){t(e)},5e3)):t(e)};if(l.force||l.reconnect&&(-1===l.maxRequest||l.requestCount++<l.maxRequest)){l.force=!1;var c=ee.util.xhr();c.hasData=!1,function(r,i,o){var e=i.url;null!=i.dispatchUrl&&"POST"===i.method&&(e+=i.dispatchUrl);e=B(i,e),e=ee.util.prepareURL(e),o&&(r.open(i.method,e,i.async),0<i.connectTimeout&&(i.id=setTimeout(function(){0===i.requestCount&&(v(),X("Connect timeout","closed",200,i.transport))},i.connectTimeout)));d.withCredentials&&"websocket"!==d.transport&&"withCredentials"in r&&(r.withCredentials=!0);d.dropHeaders||(r.setRequestHeader("X-Atmosphere-Framework",ee.version),r.setRequestHeader("X-Atmosphere-Transport",i.transport),null!==i.heartbeat&&null!==i.heartbeat.server&&r.setRequestHeader("X-Heartbeat-Server",r.heartbeat.server),i.trackMessageLength&&r.setRequestHeader("X-Atmosphere-TrackMessageSize","true"),r.setRequestHeader("X-Atmosphere-tracking-id",i.uuid),ee.util.each(i.headers,function(e,t){var n=ee.util.isFunction(t)?t.call(this,r,i,o,p):t;null!=n&&r.setRequestHeader(e,n)}));""!==i.contentType&&r.setRequestHeader("Content-Type",i.contentType)}(c,l,!0),l.suspend&&(n=c),"polling"!==l.transport&&(p.transport=l.transport,c.onabort=function(){y("ajaxrequest.onabort"),Z(!0)},c.onerror=function(){y("ajaxrequest.onerror"),p.error=!0,p.ffTryingReconnect=!0;try{p.status=XMLHttpRequest.status}catch(e){p.status=500}p.status||(p.status=500),p.errorHandled||(v(),f(!1))}),c.onreadystatechange=function(){if(y("ajaxRequest.onreadystatechange, new state: "+c.readyState),_)y("onreadystatechange has been ignored due to _abortingConnection flag");else{p.error=null;var n=!1,e=!1;if("streaming"===l.transport&&2<l.readyState&&4===c.readyState)return v(),void f(!1);if(l.readyState=c.readyState,"streaming"===l.transport&&3<=c.readyState?e=!0:"long-polling"===l.transport&&4===c.readyState&&(e=!0),C(d),"polling"!==l.transport){var t=200;if(4===c.readyState&&(t=1e3<c.status?0:c.status),!l.reconnectOnServerError&&300<=t&&t<600)return void L(t,c.statusText);if(300<=t||0===t)return p.errorHandled=!0,v(),void f(!1);l.enableProtocol&&u.firstMessage||2!==c.readyState||(ee.util.browser.mozilla&&p.ffTryingReconnect?(p.ffTryingReconnect=!1,setTimeout(function(){p.ffTryingReconnect||k(l)},500)):k(l))}else 4===c.readyState&&(e=!0);if(e){var r=c.responseText;if(p.errorHandled=!1,"long-polling"===l.transport&&0===ee.util.trim(r).length)return void(c.hasData?c.hasData=!1:f(!0));if(c.hasData=!0,W(c,d),"streaming"===l.transport)if(ee.util.browser.opera)ee.util.iterate(function(){if(500!==p.status&&c.responseText.length>l.lastIndex){try{p.status=c.status,p.headers=ee.util.parseHeaders(c.getAllResponseHeaders()),W(c,d)}catch(t){p.status=404}C(d),p.state="messageReceived";var e=c.responseText.substring(l.lastIndex);if(l.lastIndex=c.responseText.length,(n=D(e,l,p))||$(),S(c,l))return void H(c,l)}else if(400<p.status)return l.lastIndex=c.responseText.length,!1},0);else{var i=r.substring(l.lastIndex,r.length);if(n=D(i,l,p),l.lastIndex=r.length,n)return}else n=D(r,l,p);var o=S(c,l);try{p.status=c.status,p.headers=ee.util.parseHeaders(c.getAllResponseHeaders()),W(c,l)}catch(a){p.status=404}l.suspend?p.state=0===p.status?"closed":"messageReceived":p.state="messagePublished";var s=!o&&"streaming"!==u.transport&&"polling"!==u.transport;s&&!l.executeCallbackBeforeReconnect&&P(c,l,l.pollingInterval),0===p.responseBody.length||n||$(),s&&l.executeCallbackBeforeReconnect&&P(c,l,l.pollingInterval),o&&H(c,l)}}};try{"streaming"===l.transport&&l.headers["X-Atmosphere-Binary"]&&c.overrideMimeType("text/plain; charset=x-user-defined"),c.send(l.data),i=!0}catch(e){ee.util.log(l.logLevel,["Unable to connect to "+l.url]),L(0,e)}}else"debug"===l.logLevel&&ee.util.log(l.logLevel,["Max re-connection reached."]),L(0,"maxRequest reached")}}function H(e,t){p.messages=[],t.isReopen=!0,O(),_=!1,P(e,t,500)}function P(e,t,n){if(!p.closedByClientTimeout&&(t.reconnect||t.suspend&&i)){var r=0;e&&1<e.readyState&&(r=1e3<e.status?0:e.status),p.status=0===r?204:r,p.reason=0===r?"Server resumed the connection or down.":"OK",clearTimeout(t.id),t.reconnectId&&(clearTimeout(t.reconnectId),delete t.reconnectId),0<n?d.reconnectId=setTimeout(function(){U(t)},n):U(t)}}function G(e){"polling"!==e.transport?(r=x(e)).open():x(e).open()}function x(e){var r=d;null!=e&&void 0!==e&&(r=e);var i=r.transport,o=0,t=new window.XDomainRequest,s=function(){"long-polling"===r.transport&&r.reconnect&&(-1===r.maxRequest||r.requestCount++<r.maxRequest)&&(t.status=200,G(r))},n=r.rewriteURL||function(e){var t=/(?:^|;\s*)(JSESSIONID|PHPSESSID)=([^;]*)/.exec(document.cookie);switch(t&&t[1]){case"JSESSIONID":return e.replace(/;jsessionid=[^\?]*|(\?)|$/,";jsessionid="+t[2]+"$1");case"PHPSESSID":return e.replace(/\?PHPSESSID=[^&]*&?|\?|$/,"?PHPSESSID="+t[2]+"&").replace(/&$/,"")}return e};t.onprogress=function(){a(t)},t.onerror=function(){"polling"!==r.transport&&(v(),h++<r.maxReconnectOnClose?0<r.reconnectInterval?r.reconnectId=setTimeout(function(){A("re-connecting",e.transport,e),G(r)},r.reconnectInterval):(A("re-connecting",e.transport,e),G(r)):L(0,"maxReconnectOnClose reached"))},t.onload=function(){};var a=function(e){clearTimeout(r.id);var t=e.responseText;if(t=t.substring(o),o+=t.length,"polling"!==i){C(r);var n=D(t,r,p);if("long-polling"===i&&0===ee.util.trim(t).length)return;r.executeCallbackBeforeReconnect&&s(),n||X(p.responseBody,"messageReceived",200,i),r.executeCallbackBeforeReconnect||s()}};return{open:function(){var e=r.url;null!=r.dispatchUrl&&(e+=r.dispatchUrl),e=B(r,e),t.open(r.method,n(e)),"GET"===r.method?t.send():t.send(r.data),0<r.connectTimeout&&(r.id=setTimeout(function(){0===r.requestCount&&(v(),X("Connect timeout","closed",200,r.transport))},r.connectTimeout))},close:function(){t.abort()}}}function j(e){(r=function(e){var o,s=d;null!=e&&void 0!==e&&(s=e);var a=new window.ActiveXObject("htmlfile");a.open(),a.close();var t=s.url;null!=s.dispatchUrl&&(t+=s.dispatchUrl);"polling"!==s.transport&&(p.transport=s.transport);return{open:function(){var e=a.createElement("iframe");t=B(s),""!==s.data&&(t+="&X-Atmosphere-Post-Body="+encodeURIComponent(s.data)),t=ee.util.prepareURL(t),e.src=t,a.body.appendChild(e);var i=e.contentDocument||e.contentWindow.document;o=ee.util.iterate(function(){try{if(!i.firstChild)return;var n=i.body?i.body.lastChild:i;n.omgThisIsBroken;if(!i.body||!i.body.firstChild||"pre"!==i.body.firstChild.nodeName.toLowerCase()){var e=i.head||i.getElementsByTagName("head")[0]||i.documentElement||i,t=i.createElement("script");t.text="document.write('<plaintext>')",e.insertBefore(t,e.firstChild),e.removeChild(t),n=i.body.lastChild}return s.closed&&(s.isReopen=!0),o=ee.util.iterate(function(){var e=function(){var e=n.cloneNode(!0);e.appendChild(i.createTextNode("."));var t=e.innerText;return t=t.substring(0,t.length-1)}();if(e.length>s.lastIndex){C(d),p.status=200,p.error=null,n.innerText="";var t=D(e,s,p);if(t)return"";X(p.responseBody,"messageReceived",200,s.transport)}if(s.lastIndex=0,"complete"===i.readyState)return Z(!0),A("re-connecting",s.transport,s),0<s.reconnectInterval?s.reconnectId=setTimeout(function(){j(s)},s.reconnectInterval):j(s),!1},null),!1}catch(r){return p.error=!0,A("re-connecting",s.transport,s),h++<s.maxReconnectOnClose?0<s.reconnectInterval?s.reconnectId=setTimeout(function(){j(s)},s.reconnectInterval):j(s):L(0,"maxReconnectOnClose reached"),a.execCommand("Stop"),a.close(),!1}})},close:function(){o&&o(),a.execCommand("Stop"),Z(!0)}}}(e)).open()}function q(e){var t;null!=g?(t=e,g.send(t)):null!=n||null!=s?V(e):null!=r?function(e){if(d.enableXDR&&ee.util.checkCORSSupport()){var t=K(e);t.reconnect=!1,F(t)}else V(e)}(e):null!=f?V(e):null!=o?function(e){var t,n=ee.util.isBinary(e)?e:Y(e);try{if(t=null!=d.dispatchUrl?d.webSocketPathDelimiter+d.dispatchUrl+d.webSocketPathDelimiter+n:n,!o.canSendMessage)return ee.util.error("WebSocket not connected.");o.send(t)}catch(r){o.onclose=function(e){},v(),R("Websocket failed. Downgrading to "+d.fallbackTransport+" and resending "+e),V(e)}}(e):(L(0,"No suspended connection available"),ee.util.error("No suspended connection available. Make sure atmosphere.subscribe has been called and request.onOpen invoked before trying to push data"))}function V(e){U(K(e))}function Y(e){var t=e;return"object"===(void 0===t?"undefined":ie(t))&&(t=e.data),t}function K(e){var t=Y(e),n={connected:!1,timeout:6e4,method:"POST",url:d.url,contentType:d.contentType,headers:d.headers,reconnect:!0,callback:null,data:t,suspend:!1,maxRequest:-1,logLevel:"info",requestCount:0,withCredentials:d.withCredentials,async:d.async,transport:"polling",isOpen:!0,attachHeadersAsQueryString:!0,enableXDR:d.enableXDR,uuid:d.uuid,dispatchUrl:d.dispatchUrl,enableProtocol:!1,messageDelimiter:"|",trackMessageLength:d.trackMessageLength,maxReconnectOnClose:d.maxReconnectOnClose,heartbeatTimer:d.heartbeatTimer,heartbeat:d.heartbeat};return"object"===(void 0===e?"undefined":ie(e))&&(n=ee.util.extend(n,e)),n}function Q(e){var t=ee.util.parseJSON(e);t.id!==T&&("undefined"!=typeof d.onLocalMessage?d.onLocalMessage(t.event):"undefined"!=typeof ee.util.onLocalMessage&&ee.util.onLocalMessage(t.event))}function X(e,t,n,r){p.responseBody=e,p.transport=r,p.status=n,p.state=t,$()}function W(e,t){if(t.readResponsesHeaders)try{var n=e.getResponseHeader("X-Atmosphere-tracking-id");n&&null!=n&&(t.uuid=n.split(" ").pop())}catch(r){}else t.enableProtocol||(t.uuid=T)}function z(e){J(e,d),J(e,ee.util)}function J(e,t){switch(e.state){case"messageReceived":y("Firing onMessage"),h=0,"undefined"!=typeof t.onMessage&&t.onMessage(e),"undefined"!=typeof t.onmessage&&t.onmessage(e);break;case"error":y("Firing onError, reasonPhrase: "+("undefined"!=typeof e.reasonPhrase?e.reasonPhrase:"n/a")),"undefined"!=typeof t.onError&&t.onError(e),"undefined"!=typeof t.onerror&&t.onerror(e);break;case"opening":delete d.closed,y("Firing onOpen"),"undefined"!=typeof t.onOpen&&t.onOpen(e),"undefined"!=typeof t.onopen&&t.onopen(e);break;case"messagePublished":y("Firing messagePublished"),"undefined"!=typeof t.onMessagePublished&&t.onMessagePublished(e);break;case"re-connecting":y("Firing onReconnect"),"undefined"!=typeof t.onReconnect&&t.onReconnect(d,e);break;case"closedByClient":y("Firing closedByClient"),"undefined"!=typeof t.onClientTimeout&&t.onClientTimeout(d);break;case"re-opening":delete d.closed,y("Firing onReopen"),"undefined"!=typeof t.onReopen&&t.onReopen(d,e);break;case"fail-to-reconnect":y("Firing onFailureToReconnect"),"undefined"!=typeof t.onFailureToReconnect&&t.onFailureToReconnect(d,e);break;case"unsubscribe":case"closed":"undefined"!=typeof d.closed&&d.closed?y("Request already closed, not firing onClose ("+e.state+" case)"):(y("Firing onClose ("+e.state+" case)"),"undefined"!=typeof t.onClose&&t.onClose(e),"undefined"!=typeof t.onclose&&t.onclose(e)),d.closed=!0;break;case"openAfterResume":"undefined"!=typeof t.onOpenAfterResume&&t.onOpenAfterResume(d)}}function Z(e){"closed"!==p.state&&(p.state="closed",p.responseBody="",p.messages=[],p.status=e?200:501,$())}function $(){var e=function(e,t){t(p)};null==g&&null!=E&&E(p.responseBody),d.reconnect=d.mrequest;for(var t="string"==typeof p.responseBody,n=t&&d.trackMessageLength?0<p.messages.length?p.messages:[""]:new Array(p.responseBody),r=0;r<n.length;r++)if(!(1<n.length&&0===n[r].length||(p.responseBody=!t||"streaming"===d.transport&&d.headers["X-Atmosphere-Binary"]&&!d.firstMessage?n[r]:ee.util.trim(n[r]),null==g&&null!=E&&E(p.responseBody),(0===p.responseBody.length||t&&m===p.responseBody)&&"messageReceived"===p.state))){if(z(p),0<ne.length){b("debug")&&ee.util.debug("Invoking "+ne.length+" global callbacks: "+p.state);try{ee.util.each(ne,e)}catch(i){ee.util.log(d.logLevel,["Callback exception"+i])}}if("function"==typeof d.callback){b("debug")&&ee.util.debug("Invoking request callbacks");try{d.callback(p)}catch(i){ee.util.log(d.logLevel,["Callback exception"+i])}}}}I(e),this.subscribe=function(e){I(e),N()},this.execute=function(){N()},this.close=function(){O()},this.disconnect=function(){w()},this.getUrl=function(){return d.url},this.push=function(e,t){if(null!=t){var n=d.dispatchUrl;d.dispatchUrl=t,q(e),d.dispatchUrl=n}else q(e)},this.getUUID=function(){return d.uuid},this.pushLocal=function(e){!function(e){if(0!==e.length)try{g?g.localSend(e):a&&a.signal("localMessage",ee.util.stringifyJSON({id:T,event:e}))}catch(t){ee.util.error(t)}}(e)},this.enableProtocol=function(e){return d.enableProtocol},this.init=function(){t()},this.request=d,this.response=p}}).subscribe=function(e,t,n){"function"==typeof t&&ee.addCallback(t),"string"!=typeof e?n=e:n.url=e,re=void 0!==n&&"undefined"!=typeof n.uuid?n.uuid:0;var r=new ee.AtmosphereRequest(n);return r.execute(),i[i.length]=r},ee.unsubscribe=function(){if(0<i.length)for(var e=[].concat(i),t=0;t<e.length;t++){var n=e[t];n.close(),clearTimeout(n.response.request.id),n.heartbeatTimer&&clearTimeout(n.heartbeatTimer)}i=[],ne=[]},ee.unsubscribeUrl=function(e){var t=-1;if(0<i.length)for(var n=0;n<i.length;n++){var r=i[n];if(r.getUrl()===e){r.close(),clearTimeout(r.response.request.id),r.heartbeatTimer&&clearTimeout(r.heartbeatTimer),t=n;break}}0<=t&&i.splice(t,1)},ee.addCallback=function(e){-1===ee.util.inArray(e,ne)&&ne.push(e)},ee.removeCallback=function(e){var t=ee.util.inArray(e,ne);-1!==t&&ne.splice(t,1)},ee.util={browser:{},parseHeaders:function(e){for(var t,n=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,r={};t=n.exec(e);)r[t[1]]=t[2];return r},now:function(){return(new Date).getTime()},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},inArray:function(e,t){if(!Array.prototype.indexOf){for(var n=t.length,r=0;r<n;++r)if(t[r]===e)return r;return-1}return t.indexOf(e)},isBinary:function(e){return/^\[object\s(?:Blob|ArrayBuffer|.+Array)\]$/.test(Object.prototype.toString.call(e))},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},getAbsoluteURL:function(e){if("undefined"==typeof document.createElement)return e;var t=document.createElement("div");return t.innerHTML='<a href="'+e+'"/>',encodeURI(decodeURI(t.firstChild.href))},prepareURL:function(e){var t=ee.util.now(),n=e.replace(/([?&])_=[^&]*/,"$1_="+t);return n+(n===e?(/\?/.test(e)?"&":"?")+"_="+t:"")},trim:function(e){return String.prototype.trim?e.toString().trim():e.toString().replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")},param:function(e){var t,n=[];function r(e,t){t=ee.util.isFunction(t)?t():null==t?"":t,n.push(encodeURIComponent(e)+"="+encodeURIComponent(t))}function i(n,e){var t;if(ee.util.isArray(e))ee.util.each(e,function(e,t){/\[\]$/.test(n)?r(n,t):i(n+"["+("object"===(void 0===t?"undefined":ie(t))?e:"")+"]",t)});else if("[object Object]"===Object.prototype.toString.call(e))for(t in e)i(n+"["+t+"]",e[t]);else r(n,e)}for(t in e)i(t,e[t]);return n.join("&").replace(/%20/g,"+")},storage:function(){try{return!(!window.localStorage||!window.StorageEvent)}catch(e){return!1}},iterate:function(t,n){var r;return n=n||0,function e(){r=setTimeout(function(){!1!==t()&&e()},n)}(),function(){clearTimeout(r)}},each:function(e,t,n){if(e){var r=0,i=e.length,o=ee.util.isArray(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e}},extend:function(e){var t,n,r;for(t=1;t<arguments.length;t++)if(null!=(n=arguments[t]))for(r in n)e[r]=n[r];return e},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},log:function(e,t){if(window.console){var n=window.console[e];"function"==typeof n&&n.apply(window.console,t)}},warn:function(){ee.util.log("warn",arguments)},info:function(){ee.util.log("info",arguments)},debug:function(){ee.util.log("debug",arguments)},error:function(){ee.util.log("error",arguments)},xhr:function(){try{return new window.XMLHttpRequest}catch(e){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}},parseJSON:function(e){return e?window.JSON&&window.JSON.parse?window.JSON.parse(e):new Function("return "+e)():null},stringifyJSON:function(t){var n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function l(e){return'"'+e.replace(n,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"'}function f(e){return e<10?"0"+e:e}return window.JSON&&window.JSON.stringify?window.JSON.stringify(t):function e(t,n){var r,i,o,s,a=n[t],u=void 0===a?"undefined":ie(a);switch(a&&"object"===(void 0===a?"undefined":ie(a))&&"function"==typeof a.toJSON&&(u=void 0===(a=a.toJSON(t))?"undefined":ie(a)),u){case"string":return l(a);case"number":return isFinite(a)?String(a):"null";case"boolean":return String(a);case"object":if(!a)return"null";switch(Object.prototype.toString.call(a)){case"[object Date]":return isFinite(a.valueOf())?'"'+a.getUTCFullYear()+"-"+f(a.getUTCMonth()+1)+"-"+f(a.getUTCDate())+"T"+f(a.getUTCHours())+":"+f(a.getUTCMinutes())+":"+f(a.getUTCSeconds())+'Z"':"null";case"[object Array]":for(o=a.length,s=[],r=0;r<o;r++)s.push(e(r,a)||"null");return"["+s.join(",")+"]";default:for(r in s=[],a)c.call(a,r)&&(i=e(r,a))&&s.push(l(r)+":"+i);return"{"+s.join(",")+"}"}}}("",{"":t})},checkCORSSupport:function(){if(ee.util.browser.msie&&!window.XDomainRequest&&+ee.util.browser.version.split(".")[0]<11)return!0;if(ee.util.browser.opera&&+ee.util.browser.version.split(".")<12)return!0;if("KreaTVWebKit/531"===ee.util.trim(navigator.userAgent).slice(0,16))return!0;if("kreatel"===ee.util.trim(navigator.userAgent).slice(-7).toLowerCase())return!0;var e=navigator.userAgent.toLowerCase().match(/.+android ([0-9]{1,2})/i),t=parseInt(e&&e[0]||-1,10);return!isNaN(t)&&-1<t&&t<3}},ee.util.now(),e=navigator.userAgent.toLowerCase(),"safari"===(t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(e)||e.indexOf("android")<0&&/version\/(.+) (safari)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[])[2]&&(t[2]=t[1],t[1]="safari"),ee.util.browser[t[1]||""]=!0,ee.util.browser.version=t[2]||"0",ee.util.browser.vmajor=ee.util.browser.version.split(".")[0],ee.util.browser.trident&&(ee.util.browser.msie=!0),(ee.util.browser.msie||ee.util.browser.mozilla&&1==+ee.util.browser.version.split(".")[0])&&(ee.util.storage=!1),ee.callbacks={unload:function(){ee.util.debug(new Date+" Atmosphere: unload event"),ee.unsubscribe()},beforeUnload:function(){ee.util.debug(new Date+" Atmosphere: beforeunload event"),ee._beforeUnloadState=!0,setTimeout(function(){ee.util.debug(new Date+" Atmosphere: beforeunload event timeout reached. Reset _beforeUnloadState flag"),ee._beforeUnloadState=!1},5e3)},offline:function(){if(ee.util.debug(new Date+" Atmosphere: offline event"),te=!0,0<i.length)for(var e=[].concat(i),t=0;t<e.length;t++){var n=e[t];n.request.handleOnlineOffline&&(n.close(),clearTimeout(n.response.request.id),n.heartbeatTimer&&clearTimeout(n.heartbeatTimer))}},online:function(){if(ee.util.debug(new Date+" Atmosphere: online event"),0<i.length)for(var e=0;e<i.length;e++)i[e].request.handleOnlineOffline&&(i[e].init(),i[e].execute());te=!1}},ee.bindEvents=function(){ee.util.on(window,"unload",ee.callbacks.unload),ee.util.on(window,"beforeunload",ee.callbacks.beforeUnload),ee.util.on(window,"offline",ee.callbacks.offline),ee.util.on(window,"online",ee.callbacks.online)},ee.unbindEvents=function(){ee.util.off(window,"unload",ee.callbacks.unload),ee.util.off(window,"beforeunload",ee.callbacks.beforeUnload),ee.util.off(window,"offline",ee.callbacks.offline),ee.util.off(window,"online",ee.callbacks.online)},ee.bindEvents(),ee},void 0!==h?p.exports=d():c.atmosphere=d()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/atmosphere.js/lib/atmosphere.js","/lib/atmosphere.js/lib")},{_process:114,buffer:104,timers:135}],11:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.asCredentials=function(e){var t=Object.keys(e);{if((0,c["default"])(t,["sid"]))return new h(e.sid);if((0,c["default"])(t,["wmid","token"]))return new _(e.wmid,e.token);if((0,c["default"])(t,["wmid"]))return new m(e.wmid);if((0,c["default"])(t,["data_token"]))return new E(e.data_token);throw new Error("Misconfigured credentials, should be one of {sid}, {wmid,token}, or {wmid}")}};d(g("./EnduserAuthService.js"));var c=d(g("array-equal"));function d(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function t(e){p(this,t),this.sid=e}return t.prototype.getHeaders=function(){return{"X-Stream-Sid":this.sid}},t}(),m=function(){function t(e){p(this,t),this.wmid=e}return t.prototype.getHeaders=function(){return{"X-Stream-Wmid":this.wmid}},t}(),_=function(){function n(e,t){p(this,n),this.wmid=e,this.token=t}return n.prototype.getHeaders=function(){return{"X-Stream-Wmid":this.wmid,Authorization:this.token}},n}(),E=function(){function t(e){p(this,t),this.data_token=e}return t.prototype.getHeaders=function(){return{"X-Stream-DataTool-Token":this.data_token}},t}()}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/auth/AuthService.js","/lib/auth")},{"./EnduserAuthService.js":12,_process:114,"array-equal":99,buffer:104,timers:135}],12:[function(e,t,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0;var c="/g/authenticate/v0",d="/p/authenticate/v0/legacy=false",p=function(){function r(e,t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),null==e)throw new Error("AJAX cannot be null.");var n=t.credentials;if(!n.wmid||!n.username||!n.password)throw new Error("Cannot login if any of sid, username or password is empty.");this.http=e,this.host=t.host||"app.quotemedia.com",this.credentials=n,this.method=t.method||"GET"}return r.prototype.login=function(e){"POST"==this.method?this.login_POST(e):this.login_GET(e)},r.prototype.login_POST=function(e){var t=this.host+d,n={wmId:this.credentials.wmid,username:this.credentials.username,password:this.credentials.password};this.http({url:t,type:"POST",contentType:"application/json",data:JSON.stringify(n),success:this.handleSuccess(e),failure:this.handleFailure(e)})},r.prototype.login_GET=function(e){var t=this.host+c;t+="/"+this.credentials.wmid+"/"+this.credentials.username+"/"+this.credentials.password+"/",this.http({url:t,dataType:"json",timeout:5e3,success:this.handleSuccess(e),failure:this.handleFailure(e)})},r.prototype.handleSuccess=function(t){return function(e){e.code&&"Ok"===e.code.name?t(null,e.sid):t(new Error("Login failed: "+e.code+", "+e.message))}},r.prototype.handleFailure=function(e){return function(){e(new Error("Auth HTTP error"))}},r}();h["default"]=p}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/auth/EnduserAuthService.js","/lib/auth")},{_process:114,buffer:104,timers:135}],13:[function(E,g,e){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c,d=E("./streamer-api.js"),p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("./streamer-utils.js")),h=E("jsbi"),m=(c=h)&&c.__esModule?c:{"default":c};var _={Formatter:function(){this.formatters={},this.formatters[_.Formatter._UNKOWNTYPE]=this._fmtunknown,this.formatters[d.messages.MessageTypeNames.ctrl.HEARTBEAT]=this._fmtheartbeat,this.formatters[d.messages.MessageTypeNames.ctrl.SUBSCRIBE]=this._fmtsubscribe,this.formatters[d.messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE]=this._fmtsubscriberesponse,this.formatters[d.messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE]=this._fmtunsubscriberesponse,this.formatters[d.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE]=this._fmtconnectresponse,this.formatters[d.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE]=this._fmtconnectionclose,this.formatters[d.messages.MessageTypeNames.ctrl.FLOW]=this._fmtflowmessage,this.formatters[d.messages.MessageTypeNames.ctrl.SLOW_CONNECTION]=this._fmtslowconnection,this.formatters[d.messages.MessageTypeNames.ctrl.STATS]=this._fmtstats,this.formatters[d.messages.MessageTypeNames.ctrl.STATS_RESPONSE]=this._fmtstatsresponse,this.formatters[d.messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT]=this._fmtinitialdatasent,this.formatters[d.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE]=this._fmtresubscribeMessage,this.formatters[d.messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE]=this._fmtexchangesubscribe,this.formatters[d.messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE]=this._fmtexchangesubscriberesponse,this.formatters[d.messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE]=this._fmtexchangeunsubscriberesponse,this.formatters[d.messages.MessageTypeNames.data.QUOTE]=this._fmtquote,this.formatters[d.messages.MessageTypeNames.data.PRICEDATA]=this._fmtpricedata,this.formatters[d.messages.MessageTypeNames.data.TRADE]=this._fmttrade,this.formatters[d.messages.MessageTypeNames.data.INTERVAL]=this._fmtinterval,this.formatters[d.messages.MessageTypeNames.data.NETHOUSEPOSITION]=this._fmtnethouseposition,this.formatters[d.messages.MessageTypeNames.data.MMQUOTE]=this._fmtmmquote,this.formatters[d.messages.MessageTypeNames.data.BOOKORDER]=this._fmtbookorder,this.formatters[d.messages.MessageTypeNames.data.PURGEBOOK]=this._fmtpurgebook,this.formatters[d.messages.MessageTypeNames.data.BOOKDELETE]=this._fmtbookdelete,this.formatters[d.messages.MessageTypeNames.data.SYMBOLINFO]=this._fmtsymbolinfo,this.formatters[d.messages.MessageTypeNames.data.SYMBOLSTATUS]=this._fmtsymbolstatus,this.formatters[d.messages.MessageTypeNames.data.DERIVATIVEINFO]=this._fmtderivativeinfo,this.formatters[d.messages.MessageTypeNames.data.LASTSALE]=this._fmtlastsale,this.formatters[d.messages.MessageTypeNames.data.LIMITUPLIMITDOWN]=this._fmtlimituplimitdown,this.formatters[d.messages.MessageTypeNames.data.IVGREEKS]=this._fmtivgreeks,this.formatters[d.messages.MessageTypeNames.data.IMBALANCESTATUS]=this._fmtimbalancestatus,this.formatters[d.messages.MessageTypeNames.data.ALERT]=this._fmtalert}};_.Formatter._UNKOWNTYPE="__UNKNOWN__",_.Formatter.prototype.fmt=function(e){var t=p.messagetype(e);null==t&&(t=_.Formatter._UNKOWNTYPE);var n=this.formatters[t];return null==n&&(n=_.Formatter._UNKOWNTYPE),n.call(this,e)},_.Formatter.prototype._fmtunknown=function(e){return null==e?"null":e["@T"]?p.getMessageName(e):e.toString()},_.Formatter.prototype._fmtquote=function(e){var t=new _.StringBuilder;return t.append("Q"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.indicator),t.sep(),t.append(e.sharesPerSizeUnit),t.sep(),t.append(e.bidPrice),t.sep(),t.append(e.bidSize),t.sep(),t.append(e.bidExcode),t.sep(),t.append(e.bidCondition),t.sep(),t.append(e.askPrice),t.sep(),t.append(e.askSize),t.sep(),t.append(e.askExcode),t.sep(),t.append(e.askCondition),t.toString()},_.Formatter.prototype._fmtpricedata=function(e){var t=new _.StringBuilder;return t.append("P"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.last),t.sep(),t.append(e.lastTradeSize),t.sep(),t.append(e.change),t.sep(),t.append(e.percentChange),t.sep(),t.append(e.tick),t.sep(),t.append(e.tradeCount),t.sep(),t.append(e.close),t.sep(),t.append(e.previousClose),t.sep(),t.append(e.open),t.sep(),t.append(e.high),t.sep(),t.append(e.annualHigh),t.sep(),t.append(e.low),t.sep(),t.append(e.annualLow),t.sep(),t.datetime(e.lastTradeTime),t.sep(),t.append(e.accumulatedPrice),t.sep(),t.append(e.accumulatedVolume),t.sep(),t.append(e.accumulatedTradeValue),t.sep(),t.append(e.twap),t.sep(),t.append(e.vwap),t.sep(),t.datetime(e.preMarketTradeTime),t.sep(),t.append(e.preMarketLast),t.sep(),t.append(e.preMarketVolume),t.sep(),t.append(e.preMarketChange),t.sep(),t.append(e.preMarketPercentChange),t.sep(),t.datetime(e.postMarketTradeTime),t.sep(),t.append(e.postMarketLast),t.sep(),t.append(e.postMarketVolume),t.sep(),t.append(e.postMarketChange),t.sep(),t.append(e.postMarketPercentChange),t.toString()},_.Formatter.prototype._fmtlastsale=function(e){var t=new _.StringBuilder;return t.append("LS"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.last),t.sep(),t.append(e.change),t.sep(),t.append(e.percentChange),t.sep(),t.append(e.accumulatedVolume),t.sep(),t.append(e.tick),t.toString()},_.Formatter.prototype._fmtlimituplimitdown=function(e){var t=new _.StringBuilder;return t.append("LULD"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.datetime(e.effectiveTime),t.sep(),t.append(e.lowerLimit),t.sep(),t.append(e.upperLimit),t.sep(),t.append(e.bidNotExecutable),t.sep(),t.append(e.askNotExecutable),t.toString()},_.Formatter.prototype._fmtivgreeks=function(e){var t=new _.StringBuilder;return t.append("IVG"),t.sep(),t.datetime(e.lastCalculation),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.delta),t.sep(),t.append(e.gamma),t.sep(),t.append(e.vega),t.sep(),t.append(e.rho),t.sep(),t.append(e.theta),t.sep(),t.append(e.midIV),t.sep(),t.append(e.midIVChange.toFixed(5)),t.sep(),t.append(e.bidIV),t.sep(),t.append(e.askIV),t.sep(),t.append(e.mark),t.sep(),t.append(e.intrinsicValue),t.sep(),t.append(e.extrinsicValue),t.toString()},_.Formatter.prototype._fmtimbalancestatus=function(e){var t=new _.StringBuilder;return t.append("IS"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.imbalanceType),t.sep(),t.append(e.referencePrice),t.sep(),t.append(e.size),t.sep(),t.append(e.side),t.sep(),t.append(e.pairedVolume),t.sep(),t.append(e.nearIndicativePrice),t.sep(),t.append(e.farIndicativePrice),t.sep(),t.append(e.priceVariation),t.toString()},_.Formatter.prototype._fmttrade=function(e){var t=new _.StringBuilder;return t.append("T"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.excode),t.sep(),t.append(e.sequenceNumber),t.sep(),t.append(e.matchID),t.sep(),t.append(e.price),t.sep(),t.append(e.size),t.sep(),t.append(e.tick),t.sep(),t.append(e.indicator),t.sep(),t.append(e.rangeIndicator),t.sep(),t.append(e.sellerID),t.sep(),t.append(e.buyerID),t.sep(),t.append(e.accumulatedVolume),t.sep(),t.append(e.vwap),t.toString()},_.Formatter.prototype._fmtinterval=function(e){var t=new _.StringBuilder;return t.append("I"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.last),t.sep(),t.datetime(e.lastTime),t.sep(),t.append(e.open),t.sep(),t.datetime(e.openTime),t.sep(),t.append(e.high),t.sep(),t.append(e.low),t.sep(),t.datetime(e.startTime),t.sep(),t.append(e.tradeValue),t.sep(),t.append(e.volume),t.sep(),t.append(e.vwap),t.toString()},_.Formatter.prototype._fmtnethouseposition=function(e){var t=new _.StringBuilder;return t.append("NHP"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.marketMakerID),t.sep(),t.append(e.buyValue),t.sep(),t.append(e.buyVolume),t.sep(),t.append(e.buyBlockTransactions),t.sep(),t.append(e.buyBlockValue),t.sep(),t.append(e.buyBlockVolume),t.sep(),t.append(e.sellValue),t.sep(),t.append(e.sellVolume),t.sep(),t.append(e.sellBlockTransactions),t.sep(),t.append(e.sellBlockValue),t.sep(),t.append(e.sellBlockVolume),t.toString()},_.Formatter.prototype._fmtmmquote=function(e){var t=new _.StringBuilder;return t.append("MMQ"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.bidPrice),t.sep(),t.append(e.bidSize),t.sep(),t.append(e.bidChange),t.sep(),t.append(e.askPrice),t.sep(),t.append(e.askSize),t.sep(),t.append(e.askChange),t.sep(),t.append(e.indicator),t.sep(),t.append(e.marketMakerID),t.sep(),t.append(e.sharesPerSizeUnit),t.toString()},_.Formatter.prototype._fmtbookorder=function(e){var t=new _.StringBuilder;return t.append("BO"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.orderID),t.sep(),t.append(e.orderReference),t.sep(),t.append(e.marketMakerID),t.sep(),t.append(e.orderSide),t.sep(),t.datetime(e.lastUpdate),t.sep(),t.append(e.price),t.sep(),t.append(e.size),t.sep(),t.append(e.display),t.sep(),t.append(e.orderChangeType),t.toString()},_.Formatter.prototype._fmtpurgebook=function(e){var t=new _.StringBuilder;return t.append("PB"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.toString()},_.Formatter.prototype._fmtbookdelete=function(e){var t=new _.StringBuilder;return t.append("BD"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.orderReference),t.toString()},_.Formatter.prototype._fmtsymbolinfo=function(e){var t=new _.StringBuilder;return t.append("SI"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.excode),t.sep(),t.append(e.instrumentType),t.sep(),t.append(e.currencyId),t.sep(),t.append(e.haltStatus),t.sep(),t.append(e.haltIndicator),t.sep(),t.append(e.regSHOStatus),t.sep(),t.append(e.pqe),t.sep(),t.append(e.caveatEmptor),t.toString()},_.Formatter.prototype._fmtsymbolstatus=function(e){var t=new _.StringBuilder;return t.append("SS"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.haltStatus),t.sep(),t.append(e.haltIndicator),t.sep(),t.append(e.regSHOStatus),t.sep(),t.append(e.closingCalculatedPrice),t.sep(),t.datetime(e.effectiveTime),t.sep(),t.datetime(e.openingTime),t.sep(),t.append(e.note),t.toString()},_.Formatter.prototype._fmtderivativeinfo=function(e){var t=new _.StringBuilder;return t.append("DI"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.rootSymbol),t.sep(),t.datetime(e.expiration),t.sep(),t.append(e.openInterest),t.sep(),t.datetime(e.delivery),t.sep(),t.append(e.contractSize),t.sep(),t.append(e.callPutIndicator),t.sep(),t.append(e.minTickSize),t.toString()},_.Formatter.prototype._fmtalert=function(e){var t=new _.StringBuilder;return t.append("A"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.instrumentType),t.sep(),t.append(e.alertId),t.sep(),t.append(e.triggerValue),t.toString()},_.Formatter.prototype._fmtheartbeat=function(e){var t=new _.StringBuilder;return t.append("HEARBEAT"),t.sep(),t.datetime(e.timestamp),t.toString()},_.Formatter.prototype._fmtsubscribe=function(e){var t=new _.StringBuilder;return t.append("SUBSCRIBE"),t.toString()},_.Formatter.prototype._fmtexchangesubscribe=function(e){var t=new _.StringBuilder;return t.append("EXCHANGE SUBSCRIBE"),t.toString()},_.Formatter.prototype._fmtstats=function(e){var t=new _.StringBuilder;return t.append("STATS"),t.toString()},_.Formatter.prototype._fmtsubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("SUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtexchangesubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("EXCHANGE SUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtunsubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("UN-SUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtexchangeunsubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("EXCHANGE UNSUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtconnectresponse=function(e){var t=new _.StringBuilder;return t.append("CONNECT"),t.sep(),this.__baseresponse(e,t),t.sep(),t.append(e.version),t.sep(),t.append(e.flowControlCheckInterval),t.sep(),t.append(e.serverInstance),t.sep(),t.append(e.conflationMs),t.sep(),t.append(e.rejectExcessiveConnection),t.sep(),t.append(e.maxEntitlementsPerSubscription),t.toString()},_.Formatter.prototype._fmtconnectionclose=function(e){var t=new _.StringBuilder;return t.append("CLOSE"),t.sep(),t.append(e.code),t.sep(),t.append(e.reason),t.toString()},_.Formatter.prototype._fmtslowconnection=function(e){var t=new _.StringBuilder;return t.append("SLOW"),t.sep(),t.append(e.timesExceeded),t.sep(),t.append(e.maxExceed),t.toString()},_.Formatter.prototype._fmtstatsresponse=function(e){var t=new _.StringBuilder;return t.append("STATS"),t.sep(),this.__baseresponse(e,t),t.sep(),t.append("number of available l1 symbols: "),t.append(e.numberOfAvailableSymbolsL1),t.sep(),t.append("number of available l2 symbols: "),t.append(e.numberOfAvailableSymbolsL2),t.sep(),t.append("number of available connections: "),t.append(e.numberOfAvailableConnections),t.sep(),t.append("number of subscribed l1 symbols: "),t.append(e.numberOfSubscribedSymbolsL1),t.sep(),t.append("number of subscribed l2 symbols: "),t.append(e.numberOfSubscribedSymbolsL2),t.sep(),t.append("number of open connections: "),t.append(e.numberOfOpenedConnections),t.sep(),t.append("number of subscribed exchanges: "),t.append(e.numberOfSubscribedExchanges),t.toString()},_.Formatter.prototype._fmtinitialdatasent=function(e){var t=new _.StringBuilder;return t.append("INITIAL DATA SENT"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.requestId),t.toString()},_.Formatter.prototype._fmtresubscribeMessage=function(e){var t=new _.StringBuilder;return t.append("RESUBSCRIBE MESSAGE"),t.sep(),t.datetime(e.timestamp),t.toString()},_.Formatter.prototype._fmtflowmessage=function(e){var t=new _.StringBuilder;return t.append("FLOW"),t.sep(),t.append(e.sequence),t.toString()},_.Formatter.prototype.__baseresponse=function(e,t){t.append(e.code),t.sep(),t.append(e.reason)},_.StringBuilder=function(){this._str=""},_.StringBuilder.SEP=", ",_.StringBuilder.prototype.append=function(e){this._str+=e},_.StringBuilder.prototype.sep=function(){this.append(_.StringBuilder.SEP)},_.StringBuilder.prototype.datetime=function(e){if(null!=e){var t=e;e instanceof m["default"]&&(t=m["default"].toNumber(e)),this._str+=""+new Date(t)}else this._str+="null"},_.StringBuilder.prototype.toString=function(){return this._str},_.msgfmt=new _.Formatter,_.format=function(e){return _.msgfmt.fmt(e)},g.exports=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/formatting.js","/lib")},{"./streamer-api.js":92,"./streamer-utils.js":94,_process:114,buffer:104,jsbi:111,timers:135}],14:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0,_["default"]=function(e){var t=e.url,n=e.success||function(){},r=e.failure||function(){},i=e.type||"GET",o=e.applicationType,s=e.data,a=e.timeout,u=h(e.dataType),l=p();l.onreadystatechange=function(){4===l.readyState&&(200===l.status?n(u(l.responseText)):r(l.status))},o&&l.setRequestHeader("Content-Type",o);l.open(i,t,!0),a&&(l.timeout=a);l.send(s)};var c,d=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new(0,m("xmlhttprequest").XMLHttpRequest)}],p=(c=null,function(){if(null===c){for(c=0;c<d.length;c++)try{return d[c]()}catch(e){}if(c===d.length)throw c=null,new Error("No HTTP implementation found.")}return d[c]()}),h=function(e){switch(e?e.toLowerCase():e){case"json":return JSON.parse;default:return function(e){return e}}}}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/http.js","/lib")},{_process:114,buffer:104,timers:135,xmlhttprequest:140}],15:[function(g,T,e){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c=E(g("json3"));g("./polyfills");var d=_(g("./streamer-utils.js")),p=E(g("./Streamer.js")),h=_(g("./formatting.js")),m=g("./streamer-api.js");function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function E(e){return e&&e.__esModule?e:{"default":e}}window&&(window.JSON=window.JSON||c["default"]),p["default"].formatting=h,p["default"].dataTypes=m.messages.control.MarketdataType,p["default"].dataTypes.get=function(e){var t=d.getMessageName(e);return p["default"].dataTypes[t]?t:"UnknownType["+t+"]"},T.exports=p["default"]}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/index.js","/lib")},{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":92,"./streamer-utils.js":94,_process:114,buffer:104,json3:112,timers:135}],16:[function(e,t,p){(function(t,n,r,i,o,s,a,u,l,f,c){"use strict";p.__esModule=!0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};p.asLogger=function e(o){{if(!o)return e({log:function(){}});if("function"==typeof o)return e({log:o});var t=function(){for(var i={log:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o[e]?o[e].apply(o,n):o.log&&o.log.apply(o,[e].concat(n))}},t=["info","error","warn","debug"],e=function(){var e=t[n],r=e;i[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.log.apply(i,[r].concat(t))}},n=0;n<t.length;n++)e();return{v:i}}();if("object"===(void 0===t?"undefined":d(t)))return t.v}}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/logging.js","/lib")},{_process:114,buffer:104,timers:135}],17:[function(e,t,c){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";c.__esModule=!0;c.Encodings={UNDEFINED:"undefined",UNDEFINED_CHAR:"U",NONE:"none",NONE_CHAR:"N",BASE64:"base64",BASE64_CHAR:"B"},c.MimeTypes={UNDEFINED:"undefined",UNDEFINED_CHAR:"U",JSON:"application/json",JSON_CHAR:"J",QMCI:"application/qmci",QMCI_CHAR:"Q",QITCH:"application/qitch",QITCH_CHAR:"I"},c.lpad=function(e,t){var n,r=e.toString();if(r.length==t)return r;if(r.length>t)throw"Number to long.";0<=e?n="0":(r=r.slice(1),n="-");for(var i=t-r.length,o=1;o<i;o++)n+="0";return n+r}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/message.js","/lib")},{_process:114,buffer:104,timers:135}],18:[function(e,t,n){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c,d,p,h;String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n}),"function"!=typeof Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.map||(Array.prototype.map=function(e){var t,n,r;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=new Array(o),r=0;r<o;){var s,a;r in i&&(s=i[r],a=e.call(t,s,r,i),n[r]=a),r++}return n}),Array.from||(Array.from=(c=Object.prototype.toString,d=function(e){return"function"==typeof e||"[object Function]"===c.call(e)},p=Math.pow(2,53)-1,h=function(e){var t,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),p)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1<arguments.length?arguments[1]:void undefined;if(void 0!==r){if(!d(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var i,o=h(t.length),s=d(this)?Object(new this(o)):new Array(o),a=0;a<o;)i=t[a],s[a]=r?void 0===n?r(i,a):r.call(n,i,a):i,a+=1;return s.length=o,s}))}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/polyfills.js","/lib")},{_process:114,buffer:104,timers:135}],19:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c=m(E("./Bytes")),d=E("./DataOperations"),p=E("./QitchConstants"),h=m(E("./Qitch"));function m(e){return e&&e.__esModule?e:{"default":e}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.lengthToBytes=function(e,t,n){return c["default"].putshort(e,t+p.BLOCK_HEADER_LENGTH_OFFSET,d.UShort.fromint(n))},e.lengthGetValue=function(e,t){return c["default"].getshort(e,t+p.BLOCK_HEADER_LENGTH_OFFSET)},e.messageCountToBytes=function(e,t,n){return e[t+p.BLOCK_HEADER_MESSAGECOUNT_OFFSET]=d.UByte.fromint(n),e},e.messageCountGetValue=function(e,t){return d.UByte.frombyte(e[t+p.BLOCK_HEADER_MESSAGECOUNT_OFFSET])},e.reservedToBytes=function(e,t,n){return e[t+p.BLOCK_HEADER_RESERVED_OFFSET]=n,e},e.sequenceToBytes=function(e,t,n){return h["default"].putUInt32(e,t+p.BLOCK_HEADER_SEQUENCE_OFFSET,n)},e.sequenceGetValue=function(e,t){return h["default"].uint32(e,t+p.BLOCK_HEADER_SEQUENCE_OFFSET)},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/BlockHeader.js","/lib/qitch")},{"./Bytes":20,"./DataOperations":21,"./Qitch":25,"./QitchConstants":26,_process:114,buffer:104,timers:135}],20:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0;var c,d=S("jsbi"),p=(c=d)&&c.__esModule?c:{"default":c};var h=Math.pow(2,8),m=Math.pow(2,16),_=Math.pow(2,24),E=p["default"].BigInt(32),g=p["default"].BigInt(40),T=p["default"].BigInt(48),b=p["default"].BigInt(56),y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.putshort=function(e,t,n){return e[t]=n>>8,e[t+1]=n,e},e.getshort=function(e,t){return e[t]*h|255&e[t+1]},e.putint=function(e,t,n){return e[t]=n>>24,e[t+1]=n>>16,e[t+2]=n>>8,e[t+3]=n,e},e.getint=function(e,t){return e[t]*_|(255&e[t+1])*m|(255&e[t+2])*h|255&e[t+3]},e.getlong=function(e,t){return p["default"].bitwiseOr(p["default"].bitwiseOr(p["default"].bitwiseOr(p["default"].leftShift(p["default"].BigInt(e[t]),b),p["default"].leftShift(p["default"].BigInt(255&e[t+1]),T)),p["default"].bitwiseOr(p["default"].leftShift(p["default"].BigInt(255&e[t+2]),g),p["default"].leftShift(p["default"].BigInt(255&e[t+3]),E))),p["default"].bitwiseOr(p["default"].bitwiseOr(p["default"].BigInt((255&e[t+4])*_),p["default"].BigInt((255&e[t+5])*m)),p["default"].bitwiseOr(p["default"].BigInt((255&e[t+6])*h),p["default"].BigInt(255&e[t+7]))))},e}();w["default"]=y}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/qitch/Bytes.js","/lib/qitch")},{_process:114,buffer:104,jsbi:111,timers:135}],21:[function(e,t,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}_.__esModule=!0;var d=function(){function t(){c(this,t)}return t.fromint=function(e){if(e<t.prototype.MIN_VALUE)throw"Value underflows unsiged short";if(t.prototype.MAX_VALUE<e)throw"Value overflows unsigned short";return e<t.prototype.MAX_SHORT_VALUE?e:e-(t.prototype.MAX_VALUE+1)},t.fromshort=function(e){return 65535&e},t}();d.prototype.LENGTH=2,d.prototype.MIN_VALUE=0,d.prototype.MAX_VALUE=65535,d.prototype.MAX_SHORT_VALUE=32767;var p=function(){function t(){c(this,t)}return t.fromint=function(e){if(e<t.prototype.MIN_VALUE)throw"Value underflows unsigned byte";if(t.prototype.MAX_VALUE<e)throw"Value overflows unsigned byte";return e<t.prototype.BYTE_MAX_VALUE?e:e-(t.prototype.MAX_VALUE+1)},t.frombyte=function(e){return 255&e},t}();p.prototype.LENGTH=1,p.prototype.MIN_VALUE=0,p.prototype.MAX_VALUE=255,p.prototype.BYTE_MAX_VALUE=127;var h=function(){function t(){c(this,t)}return t.fromlong=function(e){if(e<t.prototype.MIN_VALUE)throw"Value underfows unsigned int";if(t.prototype.MAX_VALUE<e)throw"Value overflows unsigned int";return e<t.prototype.INT_MAX_VALUE?e:e-(t.prototype.MAX_VALUE+1)},t.fromint=function(e){return 4294967295&e},t}();h.prototype.LENGTH=4,h.prototype.MIN_VALUE=0,h.prototype.MAX_VALUE=4294967295,h.prototype.INT_MAX_VALUE=2147483647;var m=function(){function a(){c(this,a)}return a.put=function(e,t,n,r){if(e.length<t+r)throw"Not enough space in destination array";var i=t;if(null!=n&&0!==n.length){if(n.length>r)throw"String overflows maximum length";var o=void 0;for(o=0;o<n.length;o++)e[i++]=n.charAt(o).charCodeAt(0)}var s=void 0;for(s=i;s<t+r;s++)e[s]=a.prototype.PADDING;return e},a.get=function(e,t,n){var r=t,i=n;if(e.length<r+i)throw"Not enough bytes in source array";for(;0<i&&e[r+i-1]===a.prototype.PADDING;)i--;return String.fromCharCode.apply(String,e.slice(r,r+i))},a}();m.prototype.PADDING=32,_.UByte=p,_.UShort=d,_.UInt=h,_.ASCIIString=m}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/qitch/DataOperations.js","/lib/qitch")},{_process:114,buffer:104,timers:135}],22:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0;var c=h("../streamer-api");var d={1:"QUOTE",2:"PRICEDATA",3:"TRADE",4:"MMQUOTE",5:"ORDERBOOK",6:"INTERVAL",7:"NETHOUSEPOSITION",8:"LASTSALE",9:"LIMITUPLIMITDOWN",10:"IVGREEKS",11:"IMBALANCESTATUS"},p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.marketdatatypeToInt=function(t){return Object.keys(d).find(function(e){return d[e]===t})},e.ubyteToMarketdataType=function(e){return d[e]},e.ubyteToEntitlementType=function(e){switch(e){case 1:return"RT";case 2:return"RTN";case 3:return"RTB";case 4:return"DL";case 6:return"RTO";case 7:return"DLO";case 8:return"DLN";default:return"NA"}},e.subscribeActionToChar=function(e){switch(e){case c.messages.control.Action.SUBSCRIBE:return"S";case c.messages.control.Action.UNSUBSCRIBE:return"U"}},e}();m["default"]=p}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/EnumValueTranslator.js","/lib/qitch")},{"../streamer-api":92,_process:114,buffer:104,timers:135}],23:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0;var c=p("../streamer-api");var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.symbols=new Map}return e.prototype.injectLocateCode=function(e){e instanceof c.messages.market.SymbolInfo?this.symbols.set(e.locateCode,e.symbol):e instanceof c.messages.market.DataMessage&&null!==e.locateCode&&(e.symbol=this.symbols.get(e.locateCode))},e}();h["default"]=d}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/LocateCodeInjector.js","/lib/qitch")},{"../streamer-api":92,_process:114,buffer:104,timers:135}],24:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=E("./Bytes"),p=(c=d)&&c.__esModule?c:{"default":c},h=E("./DataOperations"),m=E("./QitchConstants");var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.lengthGetValue=function(e,t){return h.UShort.fromshort(p["default"].getshort(e,t+m.MESSAGE_HEADER_LENGTH_OFFSET))},e.lengthGetBytes=function(e,t,n){return p["default"].putshort(e,t+m.MESSAGE_HEADER_LENGTH_OFFSET,h.UShort.fromint(n))},e.typeGetValue=function(e,t){return h.UByte.frombyte(e[t+m.MESSAGE_HEADER_TYPE_OFFSET])},e.typeGetBytes=function(e,t,n){return e[t+m.MESSAGE_HEADER_TYPE_OFFSET]=h.UByte.fromint(n),e},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/MessageHeader.js","/lib/qitch")},{"./Bytes":20,"./DataOperations":21,"./QitchConstants":26,_process:114,buffer:104,timers:135}],25:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0;var c=b("../streamer-api"),d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(b("./QitchConstants")),p=g(b("./Bytes")),h=b("./DataOperations"),m=g(b("bignumber.js")),_=g(b("jsbi")),E=g(b("./EnumValueTranslator"));function g(e){return e&&e.__esModule?e:{"default":e}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.copyArray=function(e,t,n,r,i){if(0!==i){if(!(e instanceof Int8Array))throw"Source must be a byte array";if(!(n instanceof Int8Array))throw"Destination must be a byte array";if(t>=e.length)throw"Source index is out of range. Index: "+t+", max length: "+e.length;if(r>=n.length)throw"Destination index is out of range. Index: "+r+", max length: "+n.length;if(t+i>e.length||r+i>n.length)throw"Length is out of range";var o=void 0;for(o=0;o<i;o++)n[r+o]=e[t+o]}},e.bool=function(e,t){if(e instanceof Int8Array)return 0!==e[t];throw"Invalid source. Expected: Int8Array"},e.putBool=function(e,t,n){if(e instanceof Int8Array)return e[t]=n?1:0,e;throw"Invalid destination. Expected: Int8Array"},e.putByte=function(e,t,n){if(e instanceof Int8Array)return e[t]=h.UByte.fromint(n),e;throw"Invalid destination. Expected: Int8Array"},e.int32=function(e,t){if(e instanceof Int8Array)return p["default"].getint(e,t);throw"Invalid source. Expected: Int8Array"},e.putInt32=function(e,t,n){if(e instanceof Int8Array)return p["default"].putint(e,t,n);throw"Invalid destination. Expected: Int8Array"},e.uint32=function(e,t){if(e instanceof Int8Array)return h.UInt.fromint(p["default"].getint(e,t));throw"Invalid source. Expected: Int8Array"},e.putUInt32=function(e,t,n){if(e instanceof Int8Array)return p["default"].putint(e,t,h.UInt.fromlong(n));throw"Invalid destination. Expected: Int8Array"},e.asciichar=function(e,t){if(e instanceof Int8Array){if(t>=e.length)return null;var n=e[t];return n!==d.ASCII_NULL?String.fromCharCode(n):null}throw"Invalid source. Expected: Int8Array"},e.int64=function(e,t){if(e instanceof Int8Array)return p["default"].getlong(e,t);throw"Invalid source. Expected: Int8Array"},e.dec8double=function(e,t){if(e instanceof Int8Array)return new m["default"](p["default"].getlong(e,t).toString()).dividedBy(d.PRICE_DIVISOR);throw"Invalid source. Expected: Int8Array"},e.sbyte=function(e,t){if(e instanceof Int8Array)return e[t];throw"Invalid source. Expected: Int8Array"},e.timestamp=function(e,t){if(e instanceof Int8Array){var n=p["default"].getlong(e,t);return _["default"].equal(n,d.TIMESTAMP_NULL)?null:n}throw"Invalid source. Expected: Int8Array"},e.locatecode=function(e,t){if(e instanceof Int8Array)return p["default"].getint(e,t);throw"Invalid source. Expected: Int8Array"},e.symbol=function(e,t){if(e instanceof Int8Array)return t+d.SYMBOL_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.SYMBOL_LENGTH);throw"Invalid source. Expected: Int8Array"},e.putSymbol=function(e,t,n){if(e instanceof Int8Array)return h.ASCIIString.put(e,t,n,d.SYMBOL_LENGTH);throw"Invalid destination. Expected: Int8Array"},e.excode=function(e,t){if(e instanceof Int8Array)return t+d.EXCODE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.EXCODE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.mmid=function(e,t){if(e instanceof Int8Array)return t+d.MMID_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.MMID_LENGTH);throw"Invalid source. Expected: Int8Array"},e.orderId=function(e,t){if(e instanceof Int8Array)return p["default"].getlong(e,t);throw"Invalid source. Expected: Int8Array"},e.orderIdLegacy=function(e,t){if(e instanceof Int8Array)return t+d.ORDERID_LENGTH>e.length?null:p["default"].getlong(e,t).toString();throw"Invalid source. Expected: Int8Array"},e.currencyid=function(e,t){if(e instanceof Int8Array)return t+d.CURRENCYID_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.CURRENCYID_LENGTH);throw"Invalid source. Expected: Int8Array"},e.tick=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:String.fromCharCode(e[t]);throw"Invalid source. Expected: Int8Array"},e.bookOrderChangeType=function(e,t){if(e instanceof Int8Array){if(t>=e.length)return null;var n=String.fromCharCode(e[t]);return n===d.ASCIICHAR_NULL?null:c.messages.market.OrderChangeType[n]}throw"Invalid source. Expected: Int8Array"},e.orderside=function(e,t){if(e instanceof Int8Array){if(t>=e.length)return null;var n=String.fromCharCode(e[t]);return n===d.ASCIICHAR_NULL?null:n}throw"Invalid source. Expected: Int8Array"},e.rangeindicator=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:String.fromCharCode(e[t]);throw"Invalid source. Expected: Int8Array"},e.instrumenttype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:c.messages.market.InstrumentType[h.UByte.frombyte(e[t])];throw"Invalid source. Expected: Int8Array"},e.imbalancetype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:c.messages.market.ImbalanceType[h.UByte.frombyte(e[t])];throw"Invalid source. Expected: Int8Array"},e.orderreference=function(e,t){if(e instanceof Int8Array)return t+d.ORDER_REFERENCE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.ORDER_REFERENCE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.reason=function(e,t){if(e instanceof Int8Array)return t+d.REASON_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.REASON_LENGTH);throw"Invalid source. Expected: Int8Array"},e.version=function(e,t){if(e instanceof Int8Array)return t+d.VERSION_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.VERSION_LENGTH);throw"Invalid source. Expected: Int8Array"},e.serverInstance=function(e,t){if(e instanceof Int8Array)return t+d.SERVER_INSTANCE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.SERVER_INSTANCE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.note=function(e,t){if(e instanceof Int8Array)return t+d.NOTE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.NOTE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.putAction=function(e,t,n){if(e instanceof Int8Array)return e[t]=E["default"].subscribeActionToChar(n).charCodeAt(0),e;throw"Invalid destination. Expected: Int8Array"},e.putMimetype=function(e,t,n){if(e instanceof Int8Array)return h.ASCIIString.put(e,t,n,d.MIMETYPE_LENGTH);throw"Invalid destination. Expected: Int8Array"},e.putConflation=function(e,t,n){if(e instanceof Int8Array)return this.putInt32(e,t,null!=n&&""!==n?n:d.CONFLATION_NULL);throw"Invalid destination. Expected: Int8Array"},e.marketdatatype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:E["default"].ubyteToMarketdataType(h.UByte.frombyte(e[t]));throw"Invalid source. Expected: Int8Array"},e.putMarketdatatype=function(e,t,n){if(e instanceof Int8Array)return e[t]=h.UByte.fromint(E["default"].marketdatatypeToInt(n)),e;throw"Invalid destination. Expected: Int8Array"},e.entitlementtype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:E["default"].ubyteToEntitlementType(h.UByte.frombyte(e[t]));throw"Invalid source. Expected: Int8Array"},e.entitlement=function(e,t){if(e instanceof Int8Array){var n=new c.messages.control.StreamEntitlement;return n.symbol=this.symbol(e,t),n.marketdatatype=this.marketdatatype(e,t+d.SYMBOL_LENGTH),n.entitlement=this.entitlementtype(e,t+d.SYMBOL_LENGTH+d.MARKETDATATYPE_LENGTH),n}throw"Invalid source. Expected: Int8Array"},e}();y["default"]=T}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/qitch/Qitch.js","/lib/qitch")},{"../streamer-api":92,"./Bytes":20,"./DataOperations":21,"./EnumValueTranslator":22,"./QitchConstants":26,_process:114,"bignumber.js":101,buffer:104,jsbi:111,timers:135}],26:[function(C,e,L){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";L.__esModule=!0,L.BLOCK_HEADER_LENGTH=L.BLOCK_HEADER_SEQUENCE_OFFSET=L.BLOCK_HEADER_RESERVED_OFFSET=L.BLOCK_HEADER_MESSAGECOUNT_OFFSET=L.BLOCK_HEADER_LENGTH_OFFSET=L.MESSAGE_HEADER_LENGTH=L.MESSAGE_HEADER_TYPE_OFFSET=L.MESSAGE_HEADER_LENGTH_OFFSET=L.NOTE_LENGTH=L.ENTITLEMENT_LENGTH=L.ENTITLEMENTTYPE_LENGTH=L.MARKETDATATYPE_LENGTH=L.CONFLATION_LENGTH=L.MIMETYPE_LENGTH=L.ACTION_LENGTH=L.BOOLEAN_LENGTH=L.VERSION_LENGTH=L.SERVER_INSTANCE_LENGTH=L.REASON_LENGTH=L.ORDER_REFERENCE_LENGTH=L.PRICE_DIVISOR=L.RANGEINDICATOR_LENGTH=L.INSTRUMENTTYPE_LENGTH=L.SYMBOL_LENGTH=L.CURRENCYID_LENGTH=L.EXCODE_LENGTH=L.TICK_LENGTH=L.IMBALANCETYPE_LENGTH=L.ORDERSIDE_LENGTH=L.ORDERID_LENGTH=L.MMID_LENGTH=L.LOCATECODE_LENGTH=L.TIMESTAMP_LENGTH=L.DOUBLE_LENGTH=L.LONG_LENGTH=L.INT_LENGTH=L.SHORT_LENGTH=L.ASCIICHAR_LENGTH=L.BYTE_LENGTH=L.CONFLATION_NULL=L.TIMESTAMP_NULL=L.ASCIICHAR_NULL=L.ASCII_NULL=undefined;var c,d=C("jsbi"),p=(c=d)&&c.__esModule?c:{"default":c};L.ASCII_NULL=0,L.ASCIICHAR_NULL="0",L.TIMESTAMP_NULL=p["default"].BigInt("-9223372036854775808"),L.CONFLATION_NULL=-1;var h=L.BYTE_LENGTH=1,m=L.ASCIICHAR_LENGTH=1,_=L.SHORT_LENGTH=2,E=L.INT_LENGTH=4,g=L.LONG_LENGTH=8,T=(L.DOUBLE_LENGTH=8,L.TIMESTAMP_LENGTH=8,L.LOCATECODE_LENGTH=E,L.MMID_LENGTH=4),b=L.ORDERID_LENGTH=g,y=(L.ORDERSIDE_LENGTH=m,L.IMBALANCETYPE_LENGTH=m,L.TICK_LENGTH=m,L.EXCODE_LENGTH=5),S=(L.CURRENCYID_LENGTH=3,L.SYMBOL_LENGTH=26),w=(L.INSTRUMENTTYPE_LENGTH=m,L.RANGEINDICATOR_LENGTH=h,L.PRICE_DIVISOR=1e8,L.ORDER_REFERENCE_LENGTH=y+S+T+b,L.REASON_LENGTH=40,L.SERVER_INSTANCE_LENGTH=1,L.VERSION_LENGTH=8,L.BOOLEAN_LENGTH=1,L.ACTION_LENGTH=m,L.MIMETYPE_LENGTH=20,L.CONFLATION_LENGTH=E,L.MARKETDATATYPE_LENGTH=h),O=L.ENTITLEMENTTYPE_LENGTH=h,v=(L.ENTITLEMENT_LENGTH=S+w+O,L.NOTE_LENGTH=50,L.MESSAGE_HEADER_LENGTH_OFFSET=0),I=L.MESSAGE_HEADER_TYPE_OFFSET=v+_,N=(L.MESSAGE_HEADER_LENGTH=I+h,L.BLOCK_HEADER_LENGTH_OFFSET=0),A=L.BLOCK_HEADER_MESSAGECOUNT_OFFSET=N+_,F=L.BLOCK_HEADER_RESERVED_OFFSET=A+h,M=L.BLOCK_HEADER_SEQUENCE_OFFSET=F+h;L.BLOCK_HEADER_LENGTH=M+E}).call(this,C("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},C("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],C("timers").setImmediate,C("timers").clearImmediate,"/lib/qitch/QitchConstants.js","/lib/qitch")},{_process:114,buffer:104,jsbi:111,timers:135}],27:[function(y,e,S){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";S.__esModule=!0,S.LENGTH=S.MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET=S.REJECT_EXCESSIVE_CONNECTION_OFFSET=S.CONFLATION_OFFSET=S.SERVER_INSTANCE_OFFSET=S.FLOW_CONTROL_CHECK_INTERVAL_OFFSET=S.VERSION_OFFSET=S.REQUEST_ID_OFFSET=S.REASON_OFFSET=S.CODE_OFFSET=S.TYPEID=undefined;var c=y("../QitchConstants"),d=(S.TYPEID=105,S.CODE_OFFSET=0),p=S.REASON_OFFSET=d+c.INT_LENGTH,h=S.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=S.VERSION_OFFSET=h+c.INT_LENGTH,_=S.FLOW_CONTROL_CHECK_INTERVAL_OFFSET=m+c.VERSION_LENGTH,E=S.SERVER_INSTANCE_OFFSET=_+c.INT_LENGTH,g=S.CONFLATION_OFFSET=E+c.SERVER_INSTANCE_LENGTH,T=S.REJECT_EXCESSIVE_CONNECTION_OFFSET=g+c.INT_LENGTH,b=S.MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET=T+c.BOOLEAN_LENGTH;S.LENGTH=b+c.INT_LENGTH}).call(this,y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],y("timers").setImmediate,y("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ConnectResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],28:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0,m.LENGTH=m.REASON_OFFSET=m.CODE_OFFSET=m.TYPEID=undefined;var c=h("../QitchConstants"),d=(m.TYPEID=106,m.CODE_OFFSET=0),p=m.REASON_OFFSET=d+c.INT_LENGTH;m.LENGTH=p+c.REASON_LENGTH}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ConnectionCloseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],29:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.SEQUENCE_NUMBER_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=107,h.SEQUENCE_NUMBER_OFFSET=0);h.LENGTH=d+c.INT_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/FlowMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],30:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.TIMESTAMP_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=101,h.TIMESTAMP_OFFSET=0);h.LENGTH=d+c.TIMESTAMP_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/HeartbeatDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],31:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0,m.LENGTH=m.REQUEST_ID_OFFSET=m.TIMESTAMP_OFFSET=m.TYPEID=undefined;var c=h("../QitchConstants"),d=(m.TYPEID=110,m.TIMESTAMP_OFFSET=0),p=m.REQUEST_ID_OFFSET=d+c.TIMESTAMP_LENGTH;m.LENGTH=p+c.INT_LENGTH}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/InitialDataSentDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],32:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.TIMESTAMP_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=112,h.TIMESTAMP_OFFSET=0);h.LENGTH=d+c.TIMESTAMP_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ResubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],33:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0,m.LENGTH=m.MAX_EXCEED_OFFSET=m.TIMES_EXCEED_OFFSET=m.TYPEID=undefined;var c=h("../QitchConstants"),d=(m.TYPEID=111,m.TIMES_EXCEED_OFFSET=0),p=m.MAX_EXCEED_OFFSET=d+c.INT_LENGTH;m.LENGTH=p+c.INT_LENGTH}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SlowConnectionDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],34:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.REQUEST_ID_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=108,h.REQUEST_ID_OFFSET=0);h.LENGTH=d+c.INT_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/StatsMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],35:[function(y,e,S){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";S.__esModule=!0,S.LENGTH=S.NUMBER_OF_AVAILABLE_CONNECTIONS=S.NUMBER_OF_OPENED_CONNECTIONS=S.NUMBER_OF_AVAILABLE_L2_OFFSET=S.NUMBER_OF_SUBSCRIBED_L2_OFFSET=S.NUMBER_OF_AVAILABLE_L1_OFFSET=S.NUMBER_OF_SUBSCRIBED_L1_OFFSET=S.REQUEST_ID_OFFSET=S.REASON_OFFSET=S.CODE_OFFSET=S.TYPEID=undefined;var c=y("../QitchConstants"),d=(S.TYPEID=109,S.CODE_OFFSET=0),p=S.REASON_OFFSET=d+c.INT_LENGTH,h=S.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=S.NUMBER_OF_SUBSCRIBED_L1_OFFSET=h+c.INT_LENGTH,_=S.NUMBER_OF_AVAILABLE_L1_OFFSET=m+c.INT_LENGTH,E=S.NUMBER_OF_SUBSCRIBED_L2_OFFSET=_+c.INT_LENGTH,g=S.NUMBER_OF_AVAILABLE_L2_OFFSET=E+c.INT_LENGTH,T=S.NUMBER_OF_OPENED_CONNECTIONS=g+c.INT_LENGTH,b=S.NUMBER_OF_AVAILABLE_CONNECTIONS=T+c.INT_LENGTH;S.LENGTH=b+c.INT_LENGTH}).call(this,y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],y("timers").setImmediate,y("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/StatsResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],36:[function(T,e,b){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";b.__esModule=!0,b.FIXED_LENGTH=b.NUMBER_OF_TYPES_OFFSET=b.NUMBER_OF_SYMBOLS_OFFSET=b.CONFLATION_OFFSET=b.SKIP_HEAVY_INITIAL_LOAD_OFFSET=b.MIMETYPE_OFFSET=b.ACTION_OFFSET=b.REQUEST_ID_OFFSET=b.TYPEID=undefined;var c=T("../QitchConstants"),d=(b.TYPEID=102,b.REQUEST_ID_OFFSET=0),p=b.ACTION_OFFSET=d+c.INT_LENGTH,h=b.MIMETYPE_OFFSET=p+c.ACTION_LENGTH,m=b.SKIP_HEAVY_INITIAL_LOAD_OFFSET=h+c.MIMETYPE_LENGTH,_=b.CONFLATION_OFFSET=m+c.BOOLEAN_LENGTH,E=b.NUMBER_OF_SYMBOLS_OFFSET=_+c.CONFLATION_LENGTH,g=b.NUMBER_OF_TYPES_OFFSET=E+c.INT_LENGTH;b.FIXED_LENGTH=g+c.BYTE_LENGTH}).call(this,T("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},T("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],T("timers").setImmediate,T("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],37:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.FIXED_LENGTH=T.NUMBER_OF_INVALID_SYMBOLS_OFFSET=T.NUMBER_OF_REJECTED_SYMBOLS_OFFSET=T.NUMBER_OF_ENTITLEMENTS_OFFSET=T.REQUEST_ID_OFFSET=T.REASON_OFFSET=T.CODE_OFFSET=T.TYPEID=undefined;var c=g("../QitchConstants"),d=(T.TYPEID=103,T.CODE_OFFSET=0),p=T.REASON_OFFSET=d+c.INT_LENGTH,h=T.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=T.NUMBER_OF_ENTITLEMENTS_OFFSET=h+c.INT_LENGTH,_=T.NUMBER_OF_REJECTED_SYMBOLS_OFFSET=m+c.INT_LENGTH,E=T.NUMBER_OF_INVALID_SYMBOLS_OFFSET=_+c.INT_LENGTH;T.FIXED_LENGTH=E+c.INT_LENGTH}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],38:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0,E.FIXED_LENGTH=E.NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET=E.REQUEST_ID_OFFSET=E.REASON_OFFSET=E.CODE_OFFSET=E.TYPEID=undefined;var c=_("../QitchConstants"),d=(E.TYPEID=104,E.CODE_OFFSET=0),p=E.REASON_OFFSET=d+c.INT_LENGTH,h=E.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=E.NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET=h+c.INT_LENGTH;E.FIXED_LENGTH=m+c.INT_LENGTH}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/UnsubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],39:[function(w,e,O){(function(t,n,r,i,o,s,a,u,l,f,c){"use strict";O.__esModule=!0;var d=_(w("../Qitch")),p=_(w("../MessageHeader")),h=_(w("../BlockHeader")),m=w("../QitchConstants");function _(e){return e&&e.__esModule?e:{"default":e}}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var g=function(){function n(e,t){if(E(this,n),null==e)throw"Decoders cannot be null";this.buffer=new ArrayBuffer(t),this.bufferView=new Int8Array(this.buffer),this.bufferPosition=0,this.bufferCapacity=t,this.decodeblockheader=new b(this),this.decodemessageheader=new y(this),this.decodemessage=new S(e,this),this.state=new T,this.state.current=this.decodeblockheader,this.docompact=!1,this.doflip=!1}return n.prototype.messagecount=function(){return this.state.messagecount},n.prototype.blocksequencenumber=function(){return this.state.blocksequencenumber},n.prototype.add=function(e,t,n){var r=0;if(null!=e){if(this.docompact){var i=this.bufferPosition<=this.bufferLimit?this.bufferLimit-this.bufferPosition:0;d["default"].copyArray(this.bufferView,this.bufferPosition,this.bufferView,0,i),this.bufferPosition=i,this.bufferLimit=this.bufferCapacity,this.docompact=!1}n+this.bufferPosition>this.bufferView.length?(r=n-(this.bufferView.length-this.bufferPosition),d["default"].copyArray(e,t,this.bufferView,this.bufferPosition,n-r),this.messagelength=this.bufferView.length,this.bufferPosition=this.bufferView.length):(d["default"].copyArray(e,t,this.bufferView,this.bufferPosition,n),this.messagelength=n,this.bufferPosition=this.bufferPosition+this.messagelength),this.doflip=!0}return r},n.prototype.decode=function(){this.doflip&&(this.bufferLimit=this.bufferPosition,this.bufferPosition=0,this.doflip=!1),this.state.current===this.decodeblockheader?(this.state.blocklength=-1,this.state.messagecount=-1,this.state.blocksequencenumber=-1,this.state.messagelength=-1,this.state.messagetype=-1):this.state.current===this.decodemessageheader&&(this.state.messagelength=-1,this.state.messagetype=-1);var e=0;try{do{if(-1!==(e=this.state.current.decode(this.state,this.bufferView,this.bufferLimit,this.bufferPosition))&&(this.state.previous=this.state.current,this.state.current=this.state.next,this.state.next=null,this.bufferPosition=e),null!=this.state.result&&e>=this.messagelength)break}while(0<=e)}catch(n){throw this.state.current=this.decodeblockheader,this.bufferPosition=0,this.bufferLimit=this.bufferCapacity,n}var t=this.state.result;return this.state.result=null,this.docompact=!0,t},n}(),T=function e(){E(this,e),this.previous=null,this.current=null,this.next=null,this.blocklength=0,this.messagecount=0,this.blocksequencenumber=0,this.messagelength=0,this.messagetype=0,this.result=null},b=function(){function t(e){E(this,t),this.blockDecoder=e}return t.prototype.decode=function(e,t,n,r){return n-r<m.BLOCK_HEADER_LENGTH?-1:(e.blocklength=h["default"].lengthGetValue(t,r),e.messagecount=h["default"].messageCountGetValue(t,r),e.blocksequencenumber=h["default"].sequenceGetValue(t,r),0<e.messagecount?e.next=this.blockDecoder.decodemessageheader:e.next=this.blockDecoder.decodeblockheader,r+m.BLOCK_HEADER_LENGTH)},t}(),y=function(){function t(e){E(this,t),this.blockDecoder=e}return t.prototype.decode=function(e,t,n,r){return n-r<m.MESSAGE_HEADER_LENGTH?-1:(e.messagelength=p["default"].lengthGetValue(t,r),e.messagetype=p["default"].typeGetValue(t,r),e.next=this.blockDecoder.decodemessage,r)},t}(),S=function(){function n(e,t){E(this,n),this.decoders=e,this.blockDecoder=t}return n.prototype.decode=function(e,t,n,r){if(n-r<e.messagelength+m.MESSAGE_HEADER_LENGTH)return-1;var i=this.decoders.decode(t,r);return null!=i&&(e.result||(e.result=[]),i.messagecount=e.messagecount,i.blocksequencenumber=e.blocksequencenumber,e.result.push(i)),e.messagecount--,0<e.messagecount?e.next=this.blockDecoder.decodemessageheader:e.next=this.blockDecoder.decodeblockheader,r+m.MESSAGE_HEADER_LENGTH+e.messagelength},n}();O["default"]=g}).call(this,w("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],w("timers").setImmediate,w("timers").clearImmediate,"/lib/qitch/decoder/BlockDecoder.js","/lib/qitch/decoder")},{"../BlockHeader":19,"../MessageHeader":24,"../Qitch":25,"../QitchConstants":26,_process:114,buffer:104,timers:135}],40:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=_("../MessageHeader"),p=(c=d)&&c.__esModule?c:{"default":c},h=_("../QitchConstants");var m=function(){function n(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),null===e)throw"Decoders cannot be null";this.decoders=new Map;var t=void 0;for(t=0;t<e.length;t++)this.decoders.set(e[t].type(),e[t])}return n.prototype.decode=function(e,t){if(null==e)throw"The source cannot be null";if(0===e.length)return null;var n=p["default"].typeGetValue(e,t),r=this.decoders.get(n);if(null==r)return null;var i=p["default"].lengthGetValue(e,t);this._check(e,t,i);var o=new Int8Array(e.buffer,h.MESSAGE_HEADER_LENGTH+t,i);return r.decode(o,0)},n.prototype._check=function(e,t,n){var r=e.length-t,i=h.MESSAGE_HEADER_LENGTH+n;if(r<i)throw"Not enough data available. Available: "+r+" Required: "+i},n}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/decoder/MessageDecoder.js","/lib/qitch/decoder")},{"../MessageHeader":24,"../QitchConstants":26,_process:114,buffer:104,timers:135}],41:[function(Q,e,X){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";X.__esModule=!0,X.MessageBlock=X.BinaryMessage=undefined;var c=G(Q("./BlockDecoder")),d=G(Q("./MessageDecoder")),p=Q("../../message.js"),h=G(Q("./dataDecoder/TradeDecoder")),m=G(Q("./dataDecoder/SymbolInfoDecoder")),_=G(Q("./dataDecoder/PricedataDecoder")),E=G(Q("./dataDecoder/SymbolStatusDecoder")),g=G(Q("./dataDecoder/QuoteDecoder")),T=G(Q("./dataDecoder/DerivativeInfoDecoder")),b=G(Q("./dataDecoder/IVGreeksDecoder")),y=G(Q("./dataDecoder/LastSaleDecoder")),S=G(Q("./dataDecoder/LimitUpLimitDownDecoder")),w=G(Q("./dataDecoder/ImbalanceStatusDecoder")),O=G(Q("./dataDecoder/NethousePositionDecoder")),v=G(Q("./dataDecoder/IntervalDecoder")),I=G(Q("./dataDecoder/MMQuoteDecoder")),N=G(Q("./dataDecoder/PurgeBookDecoder")),A=G(Q("./dataDecoder/BookDeleteDecoder")),F=G(Q("./dataDecoder/BookOrderDecoder")),M=G(Q("../../SMessage")),C=G(Q("./controlMessageDecoder/HeartbeatDecoder")),L=G(Q("./controlMessageDecoder/InitialDataSentDecoder")),D=G(Q("./controlMessageDecoder/ConnectResponseDecoder")),R=G(Q("./controlMessageDecoder/StatsResponseDecoder")),B=G(Q("./controlMessageDecoder/SubscribeResponseDecoder")),k=G(Q("./controlMessageDecoder/UnsubscribeResponseDecoder")),U=G(Q("./controlMessageDecoder/SlowConnectionDecoder")),H=G(Q("./controlMessageDecoder/ConnectionCloseDecoder")),P=G(Q("./controlMessageDecoder/ResubscribeMessageDecoder"));function G(e){return e&&e.__esModule?e:{"default":e}}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var V=function(){function n(e){q(this,n);var t=[new C["default"],new B["default"],new k["default"],new D["default"],new H["default"],new R["default"],new U["default"],new L["default"],new P["default"],new m["default"],new h["default"],new _["default"],new E["default"],new g["default"],new T["default"],new b["default"],new y["default"],new S["default"],new w["default"],new O["default"],new v["default"],new I["default"],new N["default"],new A["default"],new F["default"]];this.decoder=new c["default"](new d["default"](t),e)}return n.prototype.decode=function(e){for(var t=e.length,n=[],r=0;0<t;){var i=t-this.decoder.add(e,r,t);r+=i,t-=i;var o=this.decoder.decode();if(null!=o)if(1===o.length&&1===o[0].messagecount)n.push(this._messageImpl(o[0]));else if(1<o.length)for(var s=0;s<o.length;s++)1<o[s].messagecount?(n.push(this._messageBlockImpl(o.slice(s+1,s+o[s].messagecount))),s+=o[s].messagecount+1):n.push(this._messageImpl(o[s]));else{for(var a=[],u=0;null!=o;)a[u++]=o,o=this.decoder.decode();n.push(this._messageBlockImpl(a))}}return n},n.prototype._messageBlockImpl=function(e){if(null==e||!(e instanceof Array)||0===e.length)return null;var t=new Array(e.length),n=void 0;for(n=0;n<e.length;n++)t[n]=this._messageImpl(e[n]);var r=new K;return r.sequencenumber=this.decoder.blocksequencenumber(),r.timestamp=(new Date).getMilliseconds(),r.encoding=p.Encodings.NONE_CHAR,r.mimetype=p.MimeTypes.QITCH_CHAR,r.messages=t,r},n.prototype._messageImpl=function(e){var t=new Y;return t.sequencenumber=e.blocksequencenumber,t.timestamp=(new Date).getTime(),t.encoding=p.Encodings.NONE_CHAR,t.mimetype=p.MimeTypes.QITCH_CHAR,t.decodedPayload=e,t.id=e.requestId,t},n}(),Y=X.BinaryMessage=function(t){function n(){q(this,n);var e=x(this,t.call(this));return e.type="1",e.decodedPayload=null,e}return j(n,t),n}(M["default"]),K=X.MessageBlock=function(t){function n(){q(this,n);var e=x(this,t.call(this));return e.type="B",e.messages=null,e}return j(n,t),n}(M["default"]);X["default"]=V}).call(this,Q("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Q("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],Q("timers").setImmediate,Q("timers").clearImmediate,"/lib/qitch/decoder/QitchDecoder.js","/lib/qitch/decoder")},{"../../SMessage":5,"../../message.js":17,"./BlockDecoder":39,"./MessageDecoder":40,"./controlMessageDecoder/ConnectResponseDecoder":42,"./controlMessageDecoder/ConnectionCloseDecoder":43,"./controlMessageDecoder/HeartbeatDecoder":44,"./controlMessageDecoder/InitialDataSentDecoder":45,"./controlMessageDecoder/ResubscribeMessageDecoder":46,"./controlMessageDecoder/SlowConnectionDecoder":47,"./controlMessageDecoder/StatsResponseDecoder":48,"./controlMessageDecoder/SubscribeResponseDecoder":49,"./controlMessageDecoder/UnsubscribeResponseDecoder":50,"./dataDecoder/BookDeleteDecoder":51,"./dataDecoder/BookOrderDecoder":52,"./dataDecoder/DerivativeInfoDecoder":53,"./dataDecoder/IVGreeksDecoder":54,"./dataDecoder/ImbalanceStatusDecoder":55,"./dataDecoder/IntervalDecoder":56,"./dataDecoder/LastSaleDecoder":57,"./dataDecoder/LimitUpLimitDownDecoder":58,"./dataDecoder/MMQuoteDecoder":59,"./dataDecoder/NethousePositionDecoder":60,"./dataDecoder/PricedataDecoder":61,"./dataDecoder/PurgeBookDecoder":62,"./dataDecoder/QuoteDecoder":63,"./dataDecoder/SymbolInfoDecoder":64,"./dataDecoder/SymbolStatusDecoder":65,"./dataDecoder/TradeDecoder":66,_process:114,buffer:104,timers:135}],42:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/ConnectResponseDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.ConnectResponse;return n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET),n.version=m["default"].version(e,t+d.VERSION_OFFSET),n.flowControlCheckInterval=m["default"].int32(e,t+d.FLOW_CONTROL_CHECK_INTERVAL_OFFSET),n.serverInstance=m["default"].serverInstance(e,t+d.SERVER_INSTANCE_OFFSET),n.conflationMs=m["default"].int32(e,t+d.CONFLATION_OFFSET),n.rejectExcessiveConnection=m["default"].bool(e,t+d.REJECT_EXCESSIVE_CONNECTION_OFFSET),n.maxEntitlementsPerSubscription=m["default"].int32(e,t+d.MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ConnectResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ConnectResponseDef":27,_process:114,buffer:104,timers:135}],43:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/ConnectionCloseDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.ConnectionClose;return n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ConnectionCloseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ConnectionCloseDef":28,_process:114,buffer:104,timers:135}],44:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/HeartbeatDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.Heartbeat;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/HeartbeatDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/HeartbeatDef":30,_process:114,buffer:104,timers:135}],45:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/InitialDataSentDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.InitialDataSent;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/InitialDataSentDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/InitialDataSentDef":31,_process:114,buffer:104,timers:135}],46:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/ResubscribeMessageDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.ResubscribeMessage;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ResubscribeMessageDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ResubscribeMessageDef":32,_process:114,buffer:104,timers:135}],47:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/SlowConnectionDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.SlowConnection;return n.timesExceeded=m["default"].int32(e,t+d.TIMES_EXCEED_OFFSET),n.maxExceed=m["default"].int32(e,t+d.MAX_EXCEED_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/SlowConnectionDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/SlowConnectionDef":33,_process:114,buffer:104,timers:135}],48:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/StatsResponseDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.StatsResponse;return n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET),n.numberOfSubscribedSymbolsL1=m["default"].int32(e,t+d.NUMBER_OF_SUBSCRIBED_L1_OFFSET),n.numberOfAvailableSymbolsL1=m["default"].int32(e,t+d.NUMBER_OF_AVAILABLE_L1_OFFSET),n.numberOfSubscribedSymbolsL2=m["default"].int32(e,t+d.NUMBER_OF_SUBSCRIBED_L2_OFFSET),n.numberOfAvailableSymbolsL2=m["default"].int32(e,t+d.NUMBER_OF_AVAILABLE_L2_OFFSET),n.numberOfOpenedConnections=m["default"].int32(e,t+d.NUMBER_OF_OPENED_CONNECTIONS),n.numberOfAvailableConnections=m["default"].int32(e,t+d.NUMBER_OF_AVAILABLE_CONNECTIONS),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/StatsResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/StatsResponseDef":35,_process:114,buffer:104,timers:135}],49:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(g("../../controlMessageDefinition/SubscribeResponseDef")),p=g("../../../streamer-api"),h=g("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c},_=g("../../QitchConstants");var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.SubscribeResponse;n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET);var r=m["default"].int32(e,t+d.NUMBER_OF_ENTITLEMENTS_OFFSET),i=m["default"].int32(e,t+d.NUMBER_OF_REJECTED_SYMBOLS_OFFSET),o=m["default"].int32(e,t+d.NUMBER_OF_INVALID_SYMBOLS_OFFSET);return n.entitlements=this._decodeEntitlements(e,t+d.FIXED_LENGTH,r),n.rejectedsymbols=this._decodeSymbolList(e,t+d.FIXED_LENGTH+r*_.ENTITLEMENT_LENGTH,i),n.invalidsymbols=this._decodeSymbolList(e,t+d.FIXED_LENGTH+r*_.ENTITLEMENT_LENGTH+i*_.SYMBOL_LENGTH,o),n},e.prototype._decodeEntitlements=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(m["default"].entitlement(e,t+i*_.ENTITLEMENT_LENGTH));return r},e.prototype._decodeSymbolList=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(m["default"].symbol(e,t+i*_.SYMBOL_LENGTH));return r},e}();T["default"]=E}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/SubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeResponseDef":37,_process:114,buffer:104,timers:135}],50:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(g("../../controlMessageDefinition/UnsubscribeResponseDef")),p=g("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c},m=g("../../QitchConstants"),_=g("../../../streamer-api");var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new _.messages.control.UnsubscribeResponse;n.code=h["default"].int32(e,t+d.CODE_OFFSET),n.reason=h["default"].reason(e,t+d.REASON_OFFSET),n.requestId=h["default"].int32(e,t+d.REQUEST_ID_OFFSET);var r=h["default"].int32(e,t+d.NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET);return n.unsubscribed=this._decodeEntitlements(e,t+d.FIXED_LENGTH,r),n},e.prototype._decodeEntitlements=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(h["default"].entitlement(e,t+i*m.ENTITLEMENT_LENGTH));return r},e}();T["default"]=E}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/UnsubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/UnsubscribeResponseDef":38,_process:114,buffer:104,timers:135}],51:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/BookDeleteDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.BookDelete;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.orderReference=m["default"].orderreference(e,t+d.ORDER_REFERENCE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/BookDeleteDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/BookDeleteDef":71,_process:114,buffer:104,timers:135}],52:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/BookOrderDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.BookOrder;n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.marketMakerID=m["default"].mmid(e,t+d.MMID_OFFSET),n.orderID=m["default"].orderIdLegacy(e,t+d.ORDERID_OFFSET),n.orderSide=m["default"].orderside(e,t+d.SIDE_OFFSET),n.price=m["default"].dec8double(e,t+d.PRICE_OFFSET),n.size=m["default"].int32(e,t+d.SIZE_OFFSET),n.lastUpdate=m["default"].timestamp(e,t+d.LASTUPDATE_OFFSET);var r=m["default"].int32(e,t+d.FLAGS_OFFSET);return n.flags=r,n.display=d.BookOrderFlags.isDisplay(r),n.orderChangeType=m["default"].bookOrderChangeType(e,t+d.CHANGE_TYPE_OFFSET),n.orderReference=m["default"].orderreference(e,t+d.ORDER_REFERENCE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/BookOrderDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/BookOrderDef":72,_process:114,buffer:104,timers:135}],53:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/DerivativeInfoDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.DerivativeInfo;return n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.rootSymbol=m["default"].symbol(e,t+d.ROOTSYMBOL_OFFSET),n.expiration=m["default"].timestamp(e,t+d.EXPIRATION_OFFSET),n.delivery=m["default"].timestamp(e,t+d.DELIVERY_OFFSET),n.openInterest=m["default"].int64(e,t+d.OPENINTEREST_OFFSET),n.contractSize=m["default"].int32(e,t+d.CONTRACTSIZE_OFFSET),n.callPutIndicator=m["default"].asciichar(e,t+d.CALLPUTINDICATOR_OFFSET),n.minTickSize=m["default"].dec8double(e,t+d.MINTICKSIZE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/DerivativeInfoDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/DerivativeInfoDef":73,_process:114,buffer:104,timers:135}],54:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/IVGreeksDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.IVGreeks;return n.locateCode=m["default"].locatecode(e,t+d.LOCATECODE_OFFSET),n.lastCalculation=m["default"].timestamp(e,t+d.LAST_CALCULATION_OFFSET),n.delta=m["default"].dec8double(e,t+d.DELTA_OFFSET),n.gamma=m["default"].dec8double(e,t+d.GAMMA_OFFSET),n.vega=m["default"].dec8double(e,t+d.VEGA_OFFSET),n.rho=m["default"].dec8double(e,t+d.RHO_OFFSET),n.theta=m["default"].dec8double(e,t+d.THETA_OFFSET),n.midIV=m["default"].dec8double(e,t+d.IMPLIED_VOLATILITY_OFFSET),n.midIVChange=m["default"].dec8double(e,t+d.IMPLIED_VOLATILITY_CHANGE_OFFSET),n.bidIV=m["default"].dec8double(e,t+d.BID_IMPLIED_VOLATILITY_OFFSET),n.askIV=m["default"].dec8double(e,t+d.ASK_IMPLIED_VOLATILITY_OFFSET),n.mark=m["default"].dec8double(e,t+d.MARK_OFFSET),n.intrinsicValue=m["default"].dec8double(e,t+d.INTRINSIC_VALUE_OFFSET),n.extrinsicValue=m["default"].dec8double(e,t+d.EXTRINSIC_VALUE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/IVGreeksDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/IVGreeksDef":74,_process:114,buffer:104,timers:135}],55:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/ImbalanceStatusDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.ImbalanceStatus;return n.locateCode=m["default"].locatecode(e,t+d.LOCATECODE_OFFSET),n.imbalanceType=m["default"].imbalancetype(e,t+d.IMBALANCE_TYPE_OFFSET),n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.referencePrice=m["default"].dec8double(e,t+d.REFERENCEPRICE_OFFSET),n.size=m["default"].int64(e,t+d.SIZE_OFFSET),n.side=m["default"].orderside(e,t+d.ORDERSIDE_OFFSET),n.pairedVolume=m["default"].int32(e,t+d.PAIREDVOLUME_OFFSET),n.nearIndicativePrice=m["default"].dec8double(e,t+d.NEARINDICATIVEPRICE_OFFSET),n.farIndicativePrice=m["default"].dec8double(e,t+d.FARINDICATIVEPRICE_OFFSET),n.priceVariation=m["default"].dec8double(e,t+d.PRICEVARIATION_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/ImbalanceStatusDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/ImbalanceStatusDef":75,_process:114,buffer:104,timers:135}],56:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0;var c=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(g("../../marketDataDefinition/IntervalDef")),d=g("../../../streamer-api"),p=_(g("../../Qitch")),h=_(g("jsbi")),m=_(g("bignumber.js"));function _(e){return e&&e.__esModule?e:{"default":e}}var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return c.TYPEID},e.prototype.decode=function(e,t){var n=new d.messages.market.Interval;return n.timestamp=p["default"].timestamp(e,t+c.TIMESTAMP_OFFSET),n.locateCode=p["default"].locatecode(e,t+c.SYMBOL_OFFSET),n.open=p["default"].dec8double(e,t+c.OPEN_OFFSET),n.low=p["default"].dec8double(e,t+c.LOW_OFFSET),n.high=p["default"].dec8double(e,t+c.HIGH_OFFSET),n.last=p["default"].dec8double(e,t+c.LAST_OFFSET),n.volume=p["default"].int64(e,t+c.VOLUME_OFFSET),n.startTime=p["default"].timestamp(e,t+c.STARTTIME_OFFSET),n.openTime=p["default"].timestamp(e,t+c.OPENTIME_OFFSET),n.lastTime=p["default"].timestamp(e,t+c.LASTTIME_OFFSET),n.tradeValue=p["default"].int64(e,t+c.TRADEVALUE_OFFSET),n.vwap=this._vwap(n),n},e.prototype._vwap=function(e){return null!=e.tradeValue&&null!=e.volume&&0!==h["default"].toNumber(e.volume)?new m["default"](e.tradeValue.toString()).dividedBy(e.volume):null},e}();T["default"]=E}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/IntervalDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/IntervalDef":76,_process:114,"bignumber.js":101,buffer:104,jsbi:111,timers:135}],57:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/LastSaleDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.LastSale;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.last=m["default"].dec8double(e,t+d.LAST_OFFSET),n.previousClose=m["default"].dec8double(e,t+d.PREVCLOSE_OFFSET),n.accumulatedVolume=m["default"].int64(e,t+d.ACCUMULATEDVOLUME_OFFSET),n.tick=m["default"].tick(e,t+d.TICK_OFFSET),n.change=this._change(n),n.percentChange=this._percentChange(n),n},e.prototype._change=function(e){return null!=e.last&&null!=e.previousClose?e.last.minus(e.previousClose):null},e.prototype._percentChange=function(e){return null==e.last||null==e.previousClose||e.previousClose.isEqualTo(0)?null:(e.last-e.previousClose)/e.previousClose*100},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/LastSaleDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/LastSaleDef":77,_process:114,buffer:104,timers:135}],58:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/LimitUpLimitDownDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.LimitUpLimitDown;n.locateCode=m["default"].int32(e,t+d.LOCATECODE_OFFSET),n.lowerLimit=m["default"].dec8double(e,t+d.LOWERLIMIT_OFFSET),n.effectiveTime=m["default"].timestamp(e,t+d.EFFECTIVETIME_OFFSET),n.upperLimit=m["default"].dec8double(e,t+d.UPPERLIMIT_OFFSET);var r=m["default"].sbyte(e,t+d.PRICEBANDINDICATOR_OFFSET);return n.bidNotExecutable=d.LimitUpLimitDownFlags.isBidNotExecutable(r),n.askNotExecutable=d.LimitUpLimitDownFlags.isAskNotExecutable(r),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/LimitUpLimitDownDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/LimitUpLimitDownDef":78,_process:114,buffer:104,timers:135}],59:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/MMQuoteDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.MMQuote;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.bidPrice=m["default"].dec8double(e,t+d.BIDPRICE_OFFSET),n.bidSize=m["default"].int32(e,t+d.BIDSIZE_OFFSET),n.askPrice=m["default"].dec8double(e,t+d.ASKPRICE_OFFSET),n.askSize=m["default"].int32(e,t+d.ASKSIZE_OFFSET),n.marketMakerID=m["default"].mmid(e,t+d.MMID_OFFSET),n.indicator=m["default"].asciichar(e,t+d.INDICATOR_OFFSET),n.bidChange=m["default"].dec8double(e,t+d.BIDCHANGE_OFFSET),n.askChange=m["default"].dec8double(e,t+d.ASKCHANGE_OFFSET),n.sharesPerSizeUnit=m["default"].int32(e,t+d.SHARESPERSIZEUNIT_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/MMQuoteDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/MMQuoteDef":79,_process:114,buffer:104,timers:135}],60:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/NethousePositionDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.NethousePosition;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.marketMakerID=m["default"].mmid(e,t+d.MMID_OFFSET),n.buyValue=m["default"].dec8double(e,t+d.BUYVALUE_OFFSET),n.buyVolume=m["default"].int64(e,t+d.BUYVOLUME_OFFSET),n.sellValue=m["default"].dec8double(e,t+d.SELLVALUE_OFFSET),n.sellVolume=m["default"].int64(e,t+d.SELLVOLUME_OFFSET),n.buyBlockValue=m["default"].dec8double(e,t+d.BUYBLOCKVALUE_OFFSET),n.buyBlockVolume=m["default"].int64(e,t+d.BUYBLOCKVOLUME_OFFSET),n.sellBlockValue=m["default"].dec8double(e,t+d.SELLBLOCKVALUE_OFFSET),n.sellBlockVolume=m["default"].int64(e,t+d.SELLBLOCKVOLUME_OFFSET),n.buyTransactions=m["default"].int32(e,t+d.BUYTRANSACTIONS_OFFSET),n.sellTransactions=m["default"].int32(e,t+d.SELLTRANSACTIONS_OFFSET),n.buyBlockTransactions=m["default"].int32(e,t+d.BUYBLOCKTRANSACTIONS_OFFSET),n.sellBlockTransactions=m["default"].int32(e,t+d.SELLBLOCKTRANSACTIONS_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/NethousePositionDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/NethousePositionDef":80,_process:114,buffer:104,timers:135}],61:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/PricedataDef")),p=E("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c},m=E("../../../streamer-api.js");var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new m.messages.market.PriceData;n.timestamp=h["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=h["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.last=h["default"].dec8double(e,t+d.LAST_OFFSET),n.previousClose=h["default"].dec8double(e,t+d.PREVCLOSE_OFFSET),n.open=h["default"].dec8double(e,t+d.OPEN_OFFSET),n.high=h["default"].dec8double(e,t+d.HIGH_OFFSET),n.low=h["default"].dec8double(e,t+d.LOW_OFFSET),n.accumulatedVolume=h["default"].int64(e,t+d.ACCUMULATEDVOLUME_OFFSET),n.lastTradeTime=h["default"].timestamp(e,t+d.LASTTRADETIME_OFFSET),n.tick=h["default"].tick(e,t+d.TICK_OFFSET),n.lastTradeSize=h["default"].int32(e,t+d.LASTTRADESIZE_OFFSET),n.close=h["default"].dec8double(e,t+d.CLOSE_OFFSET),n.tradeCount=h["default"].int64(e,t+d.TRADECOUNT_OFFSET),n.accumulatedPrice=null,n.accumulatedTradeValue=h["default"].dec8double(e,t+d.ACCUMULATEDTRADEVALUE_OFFSET),n.change=this._change(n),n.percentChange=this._percentChange(n);var r=h["default"].sbyte(e,t+d.FLAGS_OFFSET);return n.annualHigh=d.PricedataFlags.isAnnualHigh(r),n.annualLow=d.PricedataFlags.isAnnualLow(r),n.vwap=h["default"].dec8double(e,t+d.VWAP_OFFSET),n.twap=h["default"].dec8double(e,t+d.TWAP_OFFSET),n.preMarketTradeTime=h["default"].timestamp(e,t+d.PREMARKETTRADETIME_OFFSET),n.preMarketLast=h["default"].dec8double(e,t+d.PREMARKETLASTPRICE_OFFSET),n.preMarketVolume=h["default"].int64(e,t+d.PREMARKETVOLUME_OFFSET),n.preMarketChange=h["default"].dec8double(e,t+d.PREMARKETCHANGE_OFFSET),n.preMarketPercentChange=this._premarketPercentChange(n),n.postMarketTradeTime=h["default"].timestamp(e,t+d.POSTMARKETTRADETIME_OFFSET),n.postMarketLast=h["default"].dec8double(e,t+d.POSTMARKETLASTPRICE_OFFSET),n.postMarketVolume=h["default"].int64(e,t+d.POSTMARKETVOLUME_OFFSET),n.postMarketChange=h["default"].dec8double(e,t+d.POSTMARKETCHANGE_OFFSET),n.postMarketPercentChange=this._postmarketPercentChange(n),n},e.prototype._change=function(e){return null!=e.last&&null!=e.previousClose?e.last.minus(e.previousClose):null},e.prototype._percentChange=function(e){return null==e.last||null==e.previousClose||e.previousClose.isEqualTo(0)?null:e.last.minus(e.previousClose).dividedBy(e.previousClose).multipliedBy(100)},e.prototype._premarketPercentChange=function(e){if(null!=e.preMarketChange){if(null!=e.close&&!e.close.isEqualTo(0))return e.preMarketChange.minus(e.close).dividedBy(e.close).multipliedBy(100);if(null!=e.previousClose&&!e.previousClose.isEqualTo(0))return e.preMarketChange.minus(e.previousClose).dividedBy(e.previousClose).multipliedBy(100)}return null},e.prototype._postmarketPercentChange=function(e){return null==e.postMarketLast||null==e.last||e.last.isEqualTo(0)?null:e.postMarketLast.minus(e.last).dividedBy(e.last).multipliedBy(100)},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/PricedataDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/PricedataDef":81,_process:114,buffer:104,timers:135}],62:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/PurgeBookDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.PurgeBook;return n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/PurgeBookDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/PurgeBookDef":82,_process:114,buffer:104,timers:135}],63:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/QuoteDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.Quote;return n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.askCondition=m["default"].asciichar(e,t+d.ASKCONDITION_OFFSET),n.askExcode=m["default"].excode(e,t+d.ASKEXCODE_OFFSET),n.askPrice=m["default"].dec8double(e,t+d.ASKPRICE_OFFSET),n.askSize=m["default"].int32(e,t+d.ASKSIZE_OFFSET),n.bidCondition=m["default"].asciichar(e,t+d.BIDCONDITION_OFFSET),n.bidExcode=m["default"].excode(e,t+d.BIDEXCODE_OFFSET),n.bidPrice=m["default"].dec8double(e,t+d.BIDPRICE_OFFSET),n.bidSize=m["default"].int32(e,t+d.BIDSIZE_OFFSET),n.indicator=m["default"].asciichar(e,t+d.INDICATOR_OFFSET),n.sharesPerSizeUnit=m["default"].int32(e,t+d.SHARESPERSIZEUNIT_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/QuoteDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/QuoteDef":83,_process:114,buffer:104,timers:135}],64:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/SymbolInfoDef")),p=E("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c},m=E("../../../streamer-api.js");var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new m.messages.market.SymbolInfo;return n.symbol=h["default"].symbol(e,t+d.SYMBOL_OFFSET),n.locateCode=h["default"].locatecode(e,t+d.LOCATECODE_OFFSET),n.excode=h["default"].excode(e,t+d.EXCODE_OFFSET),n.instrumentType=h["default"].instrumenttype(e,t+d.INSTRUMENTTYPE_OFFSET),n.currencyId=h["default"].currencyid(e,t+d.CURRENCYID_OFFSET),n.haltStatus=h["default"].sbyte(e,t+d.HALTSTATUS_OFFSET),n.haltIndicator=h["default"].sbyte(e,t+d.HALTINDICATOR_OFFSET),n.regSHOStatus=h["default"].asciichar(e,t+d.REGSHOSTATUS_OFFSET),n.pqe=0<h["default"].sbyte(e,t+d.PQE_OFFSET),n.caveatEmptor=0<h["default"].sbyte(e,t+d.CAVEATEMPTOR_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/SymbolInfoDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/SymbolInfoDef":84,_process:114,buffer:104,timers:135}],65:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/SymbolStatusDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.SymbolStatus;return n.locateCode=m["default"].locatecode(e,t+d.LOCATE_CODE_OFFSET),n.haltStatus=m["default"].sbyte(e,t+d.HALTSTATUS_OFFSET),n.haltIndicator=m["default"].sbyte(e,t+d.HALTINDICATOR_OFFSET),n.regSHOStatus=m["default"].asciichar(e,t+d.REGSHOSTATUS_OFFSET),n.calculatedClosingPrice=m["default"].dec8double(e,t+d.CLOSINGPRICE_OFFSET),n.effectiveTime=m["default"].timestamp(e,t+d.EFFECTIVETIME_OFFSET),n.openingTime=m["default"].timestamp(e,t+d.OPENINGTIME_OFFSET),n.note=m["default"].note(e,t+d.NOTE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/SymbolStatusDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/SymbolStatusDef":85,_process:114,buffer:104,timers:135}],66:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=E("../../Qitch"),p=(c=d)&&c.__esModule?c:{"default":c},h=E("../../../streamer-api.js"),m=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/TradeDef"));var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return m.TYPEID},e.prototype.decode=function(e,t){var n=new h.messages.market.Trade;return n.timestamp=p["default"].timestamp(e,t+m.TIMESTAMP_OFFSET),n.locateCode=p["default"].locatecode(e,t+m.SYMBOL_OFFSET),n.price=p["default"].dec8double(e,t+m.PRICE_OFFSET),n.size=p["default"].int32(e,t+m.SIZE_OFFSET),n.indicator=p["default"].asciichar(e,t+m.INDICATOR_OFFSET),n.tick=p["default"].tick(e,t+m.TICK_OFFSET),n.accumulatedVolume=p["default"].int64(e,t+m.ACCUMULATEDVOLUME_OFFSET),n.sequenceNumber=p["default"].int32(e,t+m.SEQUENCENUMBER_OFFSET),n.flags=p["default"].int32(e,t+m.FLAGS_OFFSET),n.buyerID=p["default"].mmid(e,t+m.BUYERMMID_OFFSET),n.sellerID=p["default"].mmid(e,t+m.SELLERMMID_OFFSET),n.rangeIndicator=p["default"].rangeindicator(e,t+m.RANGEINDICATOR_OFFSET),n.matchID=p["default"].int64(e,t+m.MATCHID_OFFSET),n.vwap=p["default"].dec8double(e,t+m.VWAP_OFFSET),n.excode=p["default"].excode(e,t+m.EXCODE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/TradeDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/TradeDef":86,_process:114,buffer:104,timers:135}],67:[function(O,e,v){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";v.__esModule=!0;var c=O("../../streamer-api"),d=b(O("../../SMessage")),p=O("../QitchConstants"),h=b(O("../BlockHeader")),m=O("../../streamer-utils"),_=b(O("../MessageHeader")),E=b(O("./controlMessageEncoder/StatsMessageEncoder")),g=b(O("./controlMessageEncoder/SubscribeMessageEncoder")),T=b(O("./controlMessageEncoder/FlowMessageEncoder"));function b(e){return e&&e.__esModule?e:{"default":e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S=function(){function e(){y(this,e),this.encoder=new w}return e.prototype.encode=function(e,t){if(null==e)throw"Argument cannot be null.";if(!e instanceof d["default"])throw"Wrong message type";var n=this.encoder.length(e.payload),r=p.BLOCK_HEADER_LENGTH+n,i=new ArrayBuffer(t+r),o=new Int8Array(i);return h["default"].lengthToBytes(o,t,n),h["default"].messageCountToBytes(o,t,1),h["default"].reservedToBytes(o,t,0),h["default"].sequenceToBytes(o,t,e.sequencenumber),this.encoder.encode(o,t+p.BLOCK_HEADER_LENGTH,e.payload)},e}(),w=function(){function e(){y(this,e),this[c.messages.MessageTypeNames.ctrl.STATS]=new E["default"],this[c.messages.MessageTypeNames.ctrl.FLOW]=new T["default"],this[c.messages.MessageTypeNames.ctrl.SUBSCRIBE]=new g["default"]}return e.prototype.length=function(e){var t=this[(0,m.messagetype)(e)];return null!==t?t.length(e)+p.MESSAGE_HEADER_LENGTH:0},e.prototype.encode=function(e,t,n){var r=this[(0,m.messagetype)(n)];return null!==r?(_["default"].lengthGetBytes(e,t,r.length(n)),_["default"].typeGetBytes(e,t,r.type()),r.encode(e,t+p.MESSAGE_HEADER_LENGTH,n)):e},e}();v["default"]=S}).call(this,O("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],O("timers").setImmediate,O("timers").clearImmediate,"/lib/qitch/encoder/QitchEncoder.js","/lib/qitch/encoder")},{"../../SMessage":5,"../../streamer-api":92,"../../streamer-utils":94,"../BlockHeader":19,"../MessageHeader":24,"../QitchConstants":26,"./controlMessageEncoder/FlowMessageEncoder":68,"./controlMessageEncoder/StatsMessageEncoder":69,"./controlMessageEncoder/SubscribeMessageEncoder":70,_process:114,buffer:104,timers:135}],68:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(_("../../controlMessageDefinition/FlowMessageDef")),p=_("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.length=function(e){return d.LENGTH},e.prototype.encode=function(e,t,n){return h["default"].putInt32(e,t+d.SEQUENCE_NUMBER_OFFSET,n.sequence),e},e}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/FlowMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")},{"../../Qitch":25,"../../controlMessageDefinition/FlowMessageDef":29,_process:114,buffer:104,timers:135}],69:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(_("../../controlMessageDefinition/StatsMessageDef")),p=_("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.length=function(e){return d.LENGTH},e.prototype.encode=function(e,t,n){return h["default"].putInt32(e,t+d.REQUEST_ID_OFFSET,n.sequenceNumber),e},e}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/StatsMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")},{"../../Qitch":25,"../../controlMessageDefinition/StatsMessageDef":34,_process:114,buffer:104,timers:135}],70:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/SubscribeMessageDef")),p=E("../../QitchConstants"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.length=function(e){var t=p.SYMBOL_LENGTH*e.symbols.length,n=p.MARKETDATATYPE_LENGTH*e.types.length;return d.FIXED_LENGTH+t+n},e.prototype.encode=function(e,t,n){var r=p.SYMBOL_LENGTH*n.symbols.length;return m["default"].putInt32(e,t+d.REQUEST_ID_OFFSET,n.id),m["default"].putAction(e,t+d.ACTION_OFFSET,n.action),m["default"].putMimetype(e,t+d.MIMETYPE_OFFSET,n.mimetype),m["default"].putBool(e,t+d.SKIP_HEAVY_INITIAL_LOAD_OFFSET,n.skipHeavyInitialLoad),m["default"].putConflation(e,t+d.CONFLATION_OFFSET,n.conflation),m["default"].putInt32(e,t+d.NUMBER_OF_SYMBOLS_OFFSET,n.symbols.length),m["default"].putByte(e,t+d.NUMBER_OF_TYPES_OFFSET,n.types.length),this._encodeSymbols(n,t+d.FIXED_LENGTH,e),this._encodeMarketdataTypes(n,t+d.FIXED_LENGTH+r,e),e},e.prototype._encodeSymbols=function(e,t,n){for(var r=0;r<e.symbols.length;r++)m["default"].putSymbol(n,t+r*p.SYMBOL_LENGTH,e.symbols[r])},e.prototype._encodeMarketdataTypes=function(e,t,n){for(var r=0;r<e.types.length;r++)m["default"].putMarketdatatype(n,t+r*p.MARKETDATATYPE_LENGTH,e.types[r])},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/SubscribeMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")},{"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeMessageDef":36,_process:114,buffer:104,timers:135}],71:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0,_.LENGTH=_.ORDER_REFERENCE_OFFSET=_.SYMBOL_OFFSET=_.TIMESTAMP_OFFSET=_.TYPEID=undefined;var c=m("../QitchConstants"),d=(_.TYPEID=5,_.TIMESTAMP_OFFSET=0),p=_.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=_.ORDER_REFERENCE_OFFSET=p+c.LOCATECODE_LENGTH;_.LENGTH=h+c.ORDER_REFERENCE_LENGTH}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/qitch/marketDataDefinition/BookDeleteDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],72:[function(O,e,v){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";v.__esModule=!0,v.BookOrderFlags=v.LENGTH=v.ORDER_REFERENCE_OFFSET=v.CHANGE_TYPE_OFFSET=v.FLAGS_OFFSET=v.LASTUPDATE_OFFSET=v.SIZE_OFFSET=v.PRICE_OFFSET=v.SIDE_OFFSET=v.ORDERID_OFFSET=v.MMID_OFFSET=v.SYMBOL_OFFSET=v.TIMESTAMP_OFFSET=v.TYPEID=undefined;var c=O("../QitchConstants");v.TYPEID=4;var d=v.TIMESTAMP_OFFSET=0,p=v.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=v.MMID_OFFSET=p+c.LOCATECODE_LENGTH,m=v.ORDERID_OFFSET=h+c.MMID_LENGTH,_=v.SIDE_OFFSET=m+c.ORDERID_LENGTH,E=v.PRICE_OFFSET=_+c.ORDERSIDE_LENGTH,g=v.SIZE_OFFSET=E+c.DOUBLE_LENGTH,T=v.LASTUPDATE_OFFSET=g+c.INT_LENGTH,b=v.FLAGS_OFFSET=T+c.TIMESTAMP_LENGTH,y=v.CHANGE_TYPE_OFFSET=b+c.INT_LENGTH,S=v.ORDER_REFERENCE_OFFSET=y+c.ASCIICHAR_LENGTH,w=(v.LENGTH=S+c.ORDER_REFERENCE_LENGTH,v.BookOrderFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isLotsOf=function(e){return 0<(e&t.prototype.LOTSOF_MASK)},t.isAllOrNone=function(e){return 0<(e&t.prototype.ALLORNONE_MASK)},t.isMinimumFillVolume=function(e){return 0<(e&t.prototype.MINIMUMFILLVOLUME_MASK)},t.isNonResident=function(e){return 0<(e&t.prototype.NONRESIDENT_MASK)},t.isCashSettlement=function(e){return 0<(e&t.prototype.CASHSETTLEMENT_MASK)},t.isCashTodaySettlement=function(e){return 0<(e&t.prototype.CASHTODAYSETTLEMENT_MASK)},t.isDelayedDateSettlement=function(e){return 0<(e&t.prototype.DELAYEDDATESETTLEMENT_MASK)},t.isDerivativeRelatedSettlement=function(e){return 0<(e&t.prototype.DERIVATIVERELATEDSETTLEMENT_MASK)},t.isNonNetSettlement=function(e){return 0<(e&t.prototype.NONNETSETTLEMENT_MASK)},t.isMarketOrder=function(e){return 0<(e&t.prototype.MARKETORDER_MASK)},t.isFirmQuote=function(e){return 0<(e&t.prototype.FIRMQUOTE_MASK)},t.isDisplay=function(e){return 0<(e&t.prototype.DISPLAY_MASK)},t.isMarketPrice=function(e){return 0<(e&t.prototype.PRICE_MARKET_MASK)},t.isOpeningPrice=function(e){return 0<(e&t.prototype.PRICE_OPENING_MASK)},t.isPriceMustBeFilled=function(e){return 0<(e&t.prototype.PRICE_MUSTBEFILLED_MASK)},t.isFutureSettlement=function(e){return 0<(e&t.prototype.FUTURESETTLEMENT_MASK)},t.isNextDaySettlement=function(e){return 0<(e&t.prototype.NEXTDAYSETTLEMENT_MASK)},t}());w.prototype.LOTSOF_MASK=1,w.prototype.ALLORNONE_MASK=2,w.prototype.MINIMUMFILLVOLUME_MASK=4,w.prototype.NONRESIDENT_MASK=8,w.prototype.CASHSETTLEMENT_MASK=16,w.prototype.CASHTODAYSETTLEMENT_MASK=32,w.prototype.DELAYEDDATESETTLEMENT_MASK=64,w.prototype.DERIVATIVERELATEDSETTLEMENT_MASK=128,w.prototype.NONNETSETTLEMENT_MASK=256,w.prototype.MARKETORDER_MASK=512,w.prototype.FIRMQUOTE_MASK=1024,w.prototype.DISPLAY_MASK=16777216,w.prototype.PRICE_MARKET_MASK=268435456,w.prototype.PRICE_OPENING_MASK=536870912,w.prototype.PRICE_MUSTBEFILLED_MASK=1073741824,w.prototype.FUTURESETTLEMENT_MASK=2048,w.prototype.NEXTDAYSETTLEMENT_MASK=4096}).call(this,O("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],O("timers").setImmediate,O("timers").clearImmediate,"/lib/qitch/marketDataDefinition/BookOrderDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],73:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0,y.LENGTH=y.MINTICKSIZE_OFFSET=y.CALLPUTINDICATOR_OFFSET=y.CONTRACTSIZE_OFFSET=y.OPENINTEREST_OFFSET=y.DELIVERY_OFFSET=y.EXPIRATION_OFFSET=y.ROOTSYMBOL_OFFSET=y.SYMBOL_OFFSET=y.TYPEID=undefined;var c=b("../QitchConstants"),d=(y.TYPEID=12,y.SYMBOL_OFFSET=0),p=y.ROOTSYMBOL_OFFSET=d+c.LOCATECODE_LENGTH,h=y.EXPIRATION_OFFSET=p+c.SYMBOL_LENGTH,m=y.DELIVERY_OFFSET=h+c.TIMESTAMP_LENGTH,_=y.OPENINTEREST_OFFSET=m+c.TIMESTAMP_LENGTH,E=y.CONTRACTSIZE_OFFSET=_+c.LONG_LENGTH,g=y.CALLPUTINDICATOR_OFFSET=E+c.INT_LENGTH,T=y.MINTICKSIZE_OFFSET=g+c.ASCIICHAR_LENGTH;y.LENGTH=T+c.DOUBLE_LENGTH}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/qitch/marketDataDefinition/DerivativeInfoDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],74:[function(I,e,N){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";N.__esModule=!0,N.LENGTH=N.EXTRINSIC_VALUE_OFFSET=N.INTRINSIC_VALUE_OFFSET=N.MARK_OFFSET=N.LAST_CALCULATION_OFFSET=N.ASK_IMPLIED_VOLATILITY_OFFSET=N.BID_IMPLIED_VOLATILITY_OFFSET=N.IMPLIED_VOLATILITY_CHANGE_OFFSET=N.IMPLIED_VOLATILITY_OFFSET=N.THETA_OFFSET=N.RHO_OFFSET=N.VEGA_OFFSET=N.GAMMA_OFFSET=N.DELTA_OFFSET=N.LOCATECODE_OFFSET=N.TYPEID=undefined;var c=I("../QitchConstants"),d=(N.TYPEID=15,N.LOCATECODE_OFFSET=0),p=N.DELTA_OFFSET=d+c.INT_LENGTH,h=N.GAMMA_OFFSET=p+c.DOUBLE_LENGTH,m=N.VEGA_OFFSET=h+c.DOUBLE_LENGTH,_=N.RHO_OFFSET=m+c.DOUBLE_LENGTH,E=N.THETA_OFFSET=_+c.DOUBLE_LENGTH,g=N.IMPLIED_VOLATILITY_OFFSET=E+c.DOUBLE_LENGTH,T=N.IMPLIED_VOLATILITY_CHANGE_OFFSET=g+c.DOUBLE_LENGTH,b=N.BID_IMPLIED_VOLATILITY_OFFSET=T+c.DOUBLE_LENGTH,y=N.ASK_IMPLIED_VOLATILITY_OFFSET=b+c.DOUBLE_LENGTH,S=N.LAST_CALCULATION_OFFSET=y+c.DOUBLE_LENGTH,w=N.MARK_OFFSET=S+c.TIMESTAMP_LENGTH,O=N.INTRINSIC_VALUE_OFFSET=w+c.DOUBLE_LENGTH,v=N.EXTRINSIC_VALUE_OFFSET=O+c.DOUBLE_LENGTH;N.LENGTH=v+c.DOUBLE_LENGTH}).call(this,I("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},I("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],I("timers").setImmediate,I("timers").clearImmediate,"/lib/qitch/marketDataDefinition/IVGreeksDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],75:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0,w.LENGTH=w.PRICEVARIATION_OFFSET=w.FARINDICATIVEPRICE_OFFSET=w.NEARINDICATIVEPRICE_OFFSET=w.PAIREDVOLUME_OFFSET=w.ORDERSIDE_OFFSET=w.SIZE_OFFSET=w.REFERENCEPRICE_OFFSET=w.TIMESTAMP_OFFSET=w.IMBALANCE_TYPE_OFFSET=w.LOCATECODE_OFFSET=w.TYPEID=undefined;var c=S("../QitchConstants"),d=(w.TYPEID=16,w.LOCATECODE_OFFSET=0),p=w.IMBALANCE_TYPE_OFFSET=d+c.LOCATECODE_LENGTH,h=w.TIMESTAMP_OFFSET=p+c.IMBALANCETYPE_LENGTH,m=w.REFERENCEPRICE_OFFSET=h+c.TIMESTAMP_LENGTH,_=w.SIZE_OFFSET=m+c.DOUBLE_LENGTH,E=w.ORDERSIDE_OFFSET=_+c.LONG_LENGTH,g=w.PAIREDVOLUME_OFFSET=E+c.ORDERSIDE_LENGTH,T=w.NEARINDICATIVEPRICE_OFFSET=g+c.INT_LENGTH,b=w.FARINDICATIVEPRICE_OFFSET=T+c.DOUBLE_LENGTH,y=w.PRICEVARIATION_OFFSET=b+c.DOUBLE_LENGTH;w.LENGTH=y+c.DOUBLE_LENGTH}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/qitch/marketDataDefinition/ImbalanceStatusDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],76:[function(w,e,O){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";O.__esModule=!0,O.LENGTH=O.TRADEVALUE_OFFSET=O.LASTTIME_OFFSET=O.OPENTIME_OFFSET=O.STARTTIME_OFFSET=O.VOLUME_OFFSET=O.LAST_OFFSET=O.HIGH_OFFSET=O.LOW_OFFSET=O.OPEN_OFFSET=O.SYMBOL_OFFSET=O.TIMESTAMP_OFFSET=O.TYPEID=undefined;var c=w("../QitchConstants"),d=(O.TYPEID=8,O.TIMESTAMP_OFFSET=0),p=O.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=O.OPEN_OFFSET=p+c.LOCATECODE_LENGTH,m=O.LOW_OFFSET=h+c.DOUBLE_LENGTH,_=O.HIGH_OFFSET=m+c.DOUBLE_LENGTH,E=O.LAST_OFFSET=_+c.DOUBLE_LENGTH,g=O.VOLUME_OFFSET=E+c.DOUBLE_LENGTH,T=O.STARTTIME_OFFSET=g+c.LONG_LENGTH,b=O.OPENTIME_OFFSET=T+c.TIMESTAMP_LENGTH,y=O.LASTTIME_OFFSET=b+c.TIMESTAMP_LENGTH,S=O.TRADEVALUE_OFFSET=y+c.TIMESTAMP_LENGTH;O.LENGTH=S+c.LONG_LENGTH}).call(this,w("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],w("timers").setImmediate,w("timers").clearImmediate,"/lib/qitch/marketDataDefinition/IntervalDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],77:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.LENGTH=T.TICK_OFFSET=T.ACCUMULATEDVOLUME_OFFSET=T.PREVCLOSE_OFFSET=T.LAST_OFFSET=T.SYMBOL_OFFSET=T.TIMESTAMP_OFFSET=T.TYPEID=undefined;var c=g("../QitchConstants"),d=(T.TYPEID=13,T.TIMESTAMP_OFFSET=0),p=T.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=T.LAST_OFFSET=p+c.LOCATECODE_LENGTH,m=T.PREVCLOSE_OFFSET=h+c.DOUBLE_LENGTH,_=T.ACCUMULATEDVOLUME_OFFSET=m+c.DOUBLE_LENGTH,E=T.TICK_OFFSET=_+c.LONG_LENGTH;T.LENGTH=E+c.TICK_LENGTH}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/marketDataDefinition/LastSaleDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],78:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.LimitUpLimitDownFlags=T.LENGTH=T.UPPERLIMIT_OFFSET=T.LOWERLIMIT_OFFSET=T.EFFECTIVETIME_OFFSET=T.PRICEBANDINDICATOR_OFFSET=T.LOCATECODE_OFFSET=T.TYPEID=undefined;var c=g("../QitchConstants");T.TYPEID=14;var d=T.LOCATECODE_OFFSET=0,p=T.PRICEBANDINDICATOR_OFFSET=d+c.INT_LENGTH,h=T.EFFECTIVETIME_OFFSET=p+c.BYTE_LENGTH,m=T.LOWERLIMIT_OFFSET=h+c.TIMESTAMP_LENGTH,_=T.UPPERLIMIT_OFFSET=m+c.DOUBLE_LENGTH,E=(T.LENGTH=_+c.DOUBLE_LENGTH,T.LimitUpLimitDownFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isBidNotExecutable=function(e){return 0<(e&t.prototype.BID_NOT_EXECUTABLE)},t.isAskNotExecutable=function(e){return 0<(e&t.prototype.ASK_NOT_EXECUTABLE)},t}());E.prototype.BID_NOT_EXECUTABLE=1,E.prototype.ASK_NOT_EXECUTABLE=2}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/marketDataDefinition/LimitUpLimitDownDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],79:[function(w,e,O){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";O.__esModule=!0,O.LENGTH=O.SHARESPERSIZEUNIT_OFFSET=O.ASKCHANGE_OFFSET=O.BIDCHANGE_OFFSET=O.INDICATOR_OFFSET=O.MMID_OFFSET=O.ASKSIZE_OFFSET=O.ASKPRICE_OFFSET=O.BIDSIZE_OFFSET=O.BIDPRICE_OFFSET=O.SYMBOL_OFFSET=O.TIMESTAMP_OFFSET=O.TYPEID=undefined;var c=w("../QitchConstants"),d=(O.TYPEID=7,O.TIMESTAMP_OFFSET=0),p=O.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=O.BIDPRICE_OFFSET=p+c.LOCATECODE_LENGTH,m=O.BIDSIZE_OFFSET=h+c.DOUBLE_LENGTH,_=O.ASKPRICE_OFFSET=m+c.INT_LENGTH,E=O.ASKSIZE_OFFSET=_+c.DOUBLE_LENGTH,g=O.MMID_OFFSET=E+c.INT_LENGTH,T=O.INDICATOR_OFFSET=g+c.MMID_LENGTH,b=O.BIDCHANGE_OFFSET=T+c.ASCIICHAR_LENGTH,y=O.ASKCHANGE_OFFSET=b+c.DOUBLE_LENGTH,S=O.SHARESPERSIZEUNIT_OFFSET=y+c.DOUBLE_LENGTH;O.LENGTH=S+c.INT_LENGTH}).call(this,w("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],w("timers").setImmediate,w("timers").clearImmediate,"/lib/qitch/marketDataDefinition/MMQuoteDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],80:[function(N,e,A){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";A.__esModule=!0,A.LENGTH=A.SELLBLOCKTRANSACTIONS_OFFSET=A.BUYBLOCKTRANSACTIONS_OFFSET=A.SELLTRANSACTIONS_OFFSET=A.BUYTRANSACTIONS_OFFSET=A.SELLBLOCKVOLUME_OFFSET=A.SELLBLOCKVALUE_OFFSET=A.BUYBLOCKVOLUME_OFFSET=A.BUYBLOCKVALUE_OFFSET=A.SELLVOLUME_OFFSET=A.SELLVALUE_OFFSET=A.BUYVOLUME_OFFSET=A.BUYVALUE_OFFSET=A.MMID_OFFSET=A.SYMBOL_OFFSET=A.TIMESTAMP_OFFSET=A.TYPEID=undefined;var c=N("../QitchConstants"),d=(A.TYPEID=9,A.TIMESTAMP_OFFSET=0),p=A.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=A.MMID_OFFSET=p+c.LOCATECODE_LENGTH,m=A.BUYVALUE_OFFSET=h+c.MMID_LENGTH,_=A.BUYVOLUME_OFFSET=m+c.DOUBLE_LENGTH,E=A.SELLVALUE_OFFSET=_+c.LONG_LENGTH,g=A.SELLVOLUME_OFFSET=E+c.DOUBLE_LENGTH,T=A.BUYBLOCKVALUE_OFFSET=g+c.LONG_LENGTH,b=A.BUYBLOCKVOLUME_OFFSET=T+c.DOUBLE_LENGTH,y=A.SELLBLOCKVALUE_OFFSET=b+c.LONG_LENGTH,S=A.SELLBLOCKVOLUME_OFFSET=y+c.DOUBLE_LENGTH,w=A.BUYTRANSACTIONS_OFFSET=S+c.LONG_LENGTH,O=A.SELLTRANSACTIONS_OFFSET=w+c.INT_LENGTH,v=A.BUYBLOCKTRANSACTIONS_OFFSET=O+c.INT_LENGTH,I=A.SELLBLOCKTRANSACTIONS_OFFSET=v+c.INT_LENGTH;A.LENGTH=I+c.INT_LENGTH}).call(this,N("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],N("timers").setImmediate,N("timers").clearImmediate,"/lib/qitch/marketDataDefinition/NethousePositionDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],81:[function(H,e,P){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";P.__esModule=!0,P.PricedataFlags=P.LENGTH=P.POSTMARKETCHANGE_OFFSET=P.POSTMARKETVOLUME_OFFSET=P.POSTMARKETLASTPRICE_OFFSET=P.POSTMARKETTRADETIME_OFFSET=P.PREMARKETCHANGE_OFFSET=P.PREMARKETVOLUME_OFFSET=P.PREMARKETLASTPRICE_OFFSET=P.PREMARKETTRADETIME_OFFSET=P.TWAP_OFFSET=P.VWAP_OFFSET=P.FLAGS_OFFSET=P.ACCUMULATEDTRADEVALUE_OFFSET=P.TRADECOUNT_OFFSET=P.CLOSE_OFFSET=P.LASTTRADESIZE_OFFSET=P.TICK_OFFSET=P.LASTTRADETIME_OFFSET=P.ACCUMULATEDVOLUME_OFFSET=P.LOW_OFFSET=P.HIGH_OFFSET=P.OPEN_OFFSET=P.PREVCLOSE_OFFSET=P.LAST_OFFSET=P.SYMBOL_OFFSET=P.TIMESTAMP_OFFSET=P.TYPEID=undefined;var c=H("../QitchConstants");P.TYPEID=2;var d=P.TIMESTAMP_OFFSET=0,p=P.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=P.LAST_OFFSET=p+c.LOCATECODE_LENGTH,m=P.PREVCLOSE_OFFSET=h+c.DOUBLE_LENGTH,_=P.OPEN_OFFSET=m+c.DOUBLE_LENGTH,E=P.HIGH_OFFSET=_+c.DOUBLE_LENGTH,g=P.LOW_OFFSET=E+c.DOUBLE_LENGTH,T=P.ACCUMULATEDVOLUME_OFFSET=g+c.DOUBLE_LENGTH,b=P.LASTTRADETIME_OFFSET=T+c.LONG_LENGTH,y=P.TICK_OFFSET=b+c.TIMESTAMP_LENGTH,S=P.LASTTRADESIZE_OFFSET=y+c.TICK_LENGTH,w=P.CLOSE_OFFSET=S+c.INT_LENGTH,O=P.TRADECOUNT_OFFSET=w+c.DOUBLE_LENGTH,v=P.ACCUMULATEDTRADEVALUE_OFFSET=O+c.LONG_LENGTH,I=P.FLAGS_OFFSET=v+c.DOUBLE_LENGTH,N=P.VWAP_OFFSET=I+1,A=P.TWAP_OFFSET=N+c.DOUBLE_LENGTH,F=P.PREMARKETTRADETIME_OFFSET=A+c.TIMESTAMP_LENGTH,M=P.PREMARKETLASTPRICE_OFFSET=F+c.DOUBLE_LENGTH,C=P.PREMARKETVOLUME_OFFSET=M+c.LONG_LENGTH,L=P.PREMARKETCHANGE_OFFSET=C+c.DOUBLE_LENGTH,D=P.POSTMARKETTRADETIME_OFFSET=L+c.TIMESTAMP_LENGTH,R=P.POSTMARKETLASTPRICE_OFFSET=D+c.DOUBLE_LENGTH,B=P.POSTMARKETVOLUME_OFFSET=R+c.LONG_LENGTH,k=P.POSTMARKETCHANGE_OFFSET=B+c.DOUBLE_LENGTH,U=(P.LENGTH=k+c.DOUBLE_LENGTH,P.PricedataFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isAnnualHigh=function(e){return 0<(e&t.prototype.ANNUALHIGH_MASK)},t.isAnnualLow=function(e){return 0<(e&t.prototype.ANNUALLOW_MASK)},t}());U.prototype.ANNUALHIGH_MASK=1,U.prototype.ANNUALLOW_MASK=2}).call(this,H("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},H("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],H("timers").setImmediate,H("timers").clearImmediate,"/lib/qitch/marketDataDefinition/PricedataDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],82:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.SYMBOL_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=6,h.SYMBOL_OFFSET=0);h.LENGTH=d+c.LOCATECODE_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/marketDataDefinition/PurgeBookDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],83:[function(O,e,v){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";v.__esModule=!0,v.LENGTH=v.SHARESPERSIZEUNIT_OFFSET=v.INDICATOR_OFFSET=v.BIDSIZE_OFFSET=v.BIDPRICE_OFFSET=v.BIDEXCODE_OFFSET=v.BIDCONDITION_OFFSET=v.ASKSIZE_OFFSET=v.ASKPRICE_OFFSET=v.ASKEXCODE_OFFSET=v.ASKCONDITION_OFFSET=v.SYMBOL_OFFSET=v.TIMESTAMP_OFFSET=v.TYPEID=undefined;var c=O("../QitchConstants"),d=(v.TYPEID=1,v.TIMESTAMP_OFFSET=0),p=v.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=v.ASKCONDITION_OFFSET=p+c.LOCATECODE_LENGTH,m=v.ASKEXCODE_OFFSET=h+c.ASCIICHAR_LENGTH,_=v.ASKPRICE_OFFSET=m+c.EXCODE_LENGTH,E=v.ASKSIZE_OFFSET=_+c.DOUBLE_LENGTH,g=v.BIDCONDITION_OFFSET=E+c.INT_LENGTH,T=v.BIDEXCODE_OFFSET=g+c.ASCIICHAR_LENGTH,b=v.BIDPRICE_OFFSET=T+c.EXCODE_LENGTH,y=v.BIDSIZE_OFFSET=b+c.DOUBLE_LENGTH,S=v.INDICATOR_OFFSET=y+c.INT_LENGTH,w=v.SHARESPERSIZEUNIT_OFFSET=S+c.ASCIICHAR_LENGTH;v.LENGTH=w+c.INT_LENGTH}).call(this,O("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],O("timers").setImmediate,O("timers").clearImmediate,"/lib/qitch/marketDataDefinition/QuoteDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],84:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0,w.LENGTH=w.CAVEATEMPTOR_OFFSET=w.PQE_OFFSET=w.REGSHOSTATUS_OFFSET=w.HALTINDICATOR_OFFSET=w.HALTSTATUS_OFFSET=w.CURRENCYID_OFFSET=w.INSTRUMENTTYPE_OFFSET=w.EXCODE_OFFSET=w.LOCATECODE_OFFSET=w.SYMBOL_OFFSET=w.TYPEID=undefined;var c=S("../QitchConstants"),d=(w.TYPEID=10,w.SYMBOL_OFFSET=0),p=w.LOCATECODE_OFFSET=d+c.SYMBOL_LENGTH,h=w.EXCODE_OFFSET=p+c.LOCATECODE_LENGTH,m=w.INSTRUMENTTYPE_OFFSET=h+c.EXCODE_LENGTH,_=w.CURRENCYID_OFFSET=m+c.INSTRUMENTTYPE_LENGTH,E=w.HALTSTATUS_OFFSET=_+c.CURRENCYID_LENGTH,g=w.HALTINDICATOR_OFFSET=E+c.BYTE_LENGTH,T=w.REGSHOSTATUS_OFFSET=g+c.BYTE_LENGTH,b=w.PQE_OFFSET=T+c.ASCIICHAR_LENGTH,y=w.CAVEATEMPTOR_OFFSET=b+c.BYTE_LENGTH;w.LENGTH=y+c.BYTE_LENGTH}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/qitch/marketDataDefinition/SymbolInfoDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],85:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0,y.LENGTH=y.NOTE_OFFSET=y.OPENINGTIME_OFFSET=y.EFFECTIVETIME_OFFSET=y.CLOSINGPRICE_OFFSET=y.REGSHOSTATUS_OFFSET=y.HALTINDICATOR_OFFSET=y.HALTSTATUS_OFFSET=y.LOCATE_CODE_OFFSET=y.TYPEID=undefined;var c=b("../QitchConstants"),d=(y.TYPEID=11,y.LOCATE_CODE_OFFSET=0),p=y.HALTSTATUS_OFFSET=d+c.LOCATECODE_LENGTH,h=y.HALTINDICATOR_OFFSET=p+c.BYTE_LENGTH,m=y.REGSHOSTATUS_OFFSET=h+c.BYTE_LENGTH,_=y.CLOSINGPRICE_OFFSET=m+c.ASCIICHAR_LENGTH,E=y.EFFECTIVETIME_OFFSET=_+c.DOUBLE_LENGTH,g=y.OPENINGTIME_OFFSET=E+c.TIMESTAMP_LENGTH,T=y.NOTE_OFFSET=g+c.TIMESTAMP_LENGTH;y.LENGTH=T+c.NOTE_LENGTH}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/qitch/marketDataDefinition/SymbolStatusDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],86:[function(A,e,F){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";F.__esModule=!0,F.TradeFlags=F.LENGTH=F.EXCODE_OFFSET=F.VWAP_OFFSET=F.MATCHID_OFFSET=F.RANGEINDICATOR_OFFSET=F.SELLERMMID_OFFSET=F.BUYERMMID_OFFSET=F.FLAGS_OFFSET=F.SEQUENCENUMBER_OFFSET=F.ACCUMULATEDVOLUME_OFFSET=F.TICK_OFFSET=F.INDICATOR_OFFSET=F.SIZE_OFFSET=F.PRICE_OFFSET=F.SYMBOL_OFFSET=F.TIMESTAMP_OFFSET=F.TYPEID=undefined;var c=A("../QitchConstants");F.TYPEID=3;var d=F.TIMESTAMP_OFFSET=0,p=F.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=F.PRICE_OFFSET=p+c.LOCATECODE_LENGTH,m=F.SIZE_OFFSET=h+c.DOUBLE_LENGTH,_=F.INDICATOR_OFFSET=m+c.INT_LENGTH,E=F.TICK_OFFSET=_+c.ASCIICHAR_LENGTH,g=F.ACCUMULATEDVOLUME_OFFSET=E+c.TICK_LENGTH,T=F.SEQUENCENUMBER_OFFSET=g+c.LONG_LENGTH,b=F.FLAGS_OFFSET=T+c.INT_LENGTH,y=F.BUYERMMID_OFFSET=b+c.INT_LENGTH,S=F.SELLERMMID_OFFSET=y+c.MMID_LENGTH,w=F.RANGEINDICATOR_OFFSET=S+c.MMID_LENGTH,O=F.MATCHID_OFFSET=w+c.RANGEINDICATOR_LENGTH,v=F.VWAP_OFFSET=O+c.LONG_LENGTH,I=F.EXCODE_OFFSET=v+c.DOUBLE_LENGTH,N=(F.LENGTH=I+c.EXCODE_LENGTH,F.TradeFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isOpen=function(e){return 0<(e&t.prototype.OPEN_MASK)},t.isHigh=function(e){return 0<(e&t.prototype.HIGH_MASK)},t.isLow=function(e){return 0<(e&t.prototype.LOW_MASK)},t.isClose=function(e){return 0<(e&t.prototype.CLOSE_MASK)},t.isUpdateVolume=function(e){return 0<(e&t.prototype.UPDATEVOLUME_MASK)},t.isCancel=function(e){return 0<(e&t.prototype.CANCEL_MASK)},t.isFromBook=function(e){return 0<(e&t.prototype.FROMBOOK_MASK)},t.isATrade=function(e){return 0<(e&t.prototype.ISATRADE_MASK)},t.isIncrementVolume=function(e){return 0<(e&t.prototype.INCREMENTVOLUME_MASK)},t.isUpdateAfterHours=function(e){return 0<(e&t.prototype.UPDATEAFTERHOURS_MASK)},t.isUpdateLast=function(e){return 0<(e&t.prototype.UPDATELAST_MASK)},t.isAfterHoursTrade=function(e){return 0<(e&t.prototype.AFTERHOURSTRADE)},t.isIgnoreHighLow=function(e){return 0<(e&t.prototype.IGNOREHIGHLOW_MASK)},t.isParticipantOnly=function(e){return 0<(e&t.prototype.PARTICIPANTONLY_MAKS)},t.isBlockTrade=function(e){return 0<(e&t.prototype.BLOCKTRADE_MASK)},t.isIgnoreOpen=function(e){return 0<(e&t.prototype.IGNOREOPEN_MASK)},t.isTradeThroughExempt=function(e){return 0<(e&t.prototype.TRADETHROUGHEXEMPT)},t.isCorrection=function(e){return e&t.prototype.CORRECTION_MASK},t}());N.prototype.OPEN_MASK=1048576,N.prototype.HIGH_MASK=2097152,N.prototype.LOW_MASK=4194304,N.prototype.CLOSE_MASK=8388608,N.prototype.UPDATEVOLUME_MASK=16777216,N.prototype.CANCEL_MASK=33554432,N.prototype.FROMBOOK_MASK=67108864,N.prototype.ISATRADE_MASK=65536,N.prototype.INCREMENTVOLUME_MASK=131072,N.prototype.UPDATEAFTERHOURS_MASK=262144,N.prototype.UPDATELAST_MASK=524288,N.prototype.AFTERHOURSTRADE=4096,N.prototype.IGNOREHIGHLOW_MASK=8192,N.prototype.PARTICIPANTONLY_MAKS=16384,N.prototype.BLOCKTRADE_MASK=32768,N.prototype.IGNOREOPEN_MASK=256,N.prototype.TRADETHROUGHEXEMPT=512,N.prototype.CORRECTION_MASK=134217728}).call(this,A("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},A("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],A("timers").setImmediate,A("timers").clearImmediate,"/lib/qitch/marketDataDefinition/TradeDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],87:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;var c,d=m("./v1/SMessageDecoder_1.js"),p=(c=d)&&c.__esModule?c:{"default":c};var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._1=new p["default"]}return e.prototype.decode=function(e){if(null==e)throw"Argument cannot be null.";if(0==e.length)throw"Argument cannot be empty string.";var t=e.charAt(0),n=this["_"+t];if(null!=n)return n.decode(e);throw"Unsupported message type '"+t+"'."},e}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/serialization/SMessageDecoder.js","/lib/serialization")},{"./v1/SMessageDecoder_1.js":89,_process:114,buffer:104,timers:135}],88:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;var c,d=m("./v1/SMessageEncoder_1.js"),p=(c=d)&&c.__esModule?c:{"default":c};var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._1=new p["default"]}return e.prototype.encode=function(e){if(null==e)throw"Argument cannot be null.";var t=this["_"+e.type];if(null!=t)return t.encode(e);throw"Unsupported message type '"+e.type+"'."},e}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/serialization/SMessageEncoder.js","/lib/serialization")},{"./v1/SMessageEncoder_1.js":90,_process:114,buffer:104,timers:135}],89:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;var c=p(m("../../SMessage.js")),d=p(m("./codec.js"));function p(e){return e&&e.__esModule?e:{"default":e}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.decode=function(e){if(null==e)throw"Argument cannot be null.";if(0==e.length)throw"Argument cannot be empty string.";var t=new c["default"];t.type=d["default"].TYPE;var n=Number(e.substr(d["default"].HEADERLENGTH_OFFSET,d["default"].USHORT_LENGTH_CHAR));t.sequencenumber=Number(e.substr(d["default"].SEQUENCENUMBER_OFFSET,d["default"].LONG_LENGTH_CHAR)),t.timestamp=Number(e.substr(d["default"].TIMESTAMP_OFFSET,d["default"].LONG_LENGTH_CHAR)),t.id=Number(e.substr(d["default"].ID_OFFSET,d["default"].USHORT_LENGTH_CHAR)),t.encoding=e.charAt(d["default"].ENCODING_OFFSET),t.mimetype=e.charAt(d["default"].MIMETYPE_OFFSET);var r=Number(e.substr(d["default"].PAYLOADLENGTH_OFFSET,d["default"].UINT_LENGTH_CHAR));return t.payload=e.substr(n,r),t},e}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/serialization/v1/SMessageDecoder_1.js","/lib/serialization/v1")},{"../../SMessage.js":5,"./codec.js":91,_process:114,buffer:104,timers:135}],90:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=_("../../message.js"),p=_("./codec.js"),h=(c=p)&&c.__esModule?c:{"default":c};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.encode=function(e){if(null==e)throw"Argument cannot be null.";var t=h["default"].TYPE;return t+=(0,d.lpad)(h["default"].HEADER_LENGTH_CHAR,h["default"].USHORT_LENGTH_CHAR),t+=(0,d.lpad)(e.sequencenumber,h["default"].LONG_LENGTH_CHAR),t+=(0,d.lpad)(e.timestamp,h["default"].LONG_LENGTH_CHAR),t+=(0,d.lpad)(e.id,h["default"].USHORT_LENGTH_CHAR),t+=e.encoding,t+=e.mimetype,t+=(0,d.lpad)(null!=e.payload?e.payload.length:0,h["default"].UINT_LENGTH_CHAR),null!=e.payload&&(t+=e.payload),t},e}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/serialization/v1/SMessageEncoder_1.js","/lib/serialization/v1")},{"../../message.js":17,"./codec.js":91,_process:114,buffer:104,timers:135}],91:[function(e,t,c){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";c.__esModule=!0,c["default"]=new function(){this.TYPE="1",this.USHORT_LENGTH_CHAR=5,this.USHORT_MIN=0,this.USHORT_MAX=65535,this.UINT_LENGTH_CHAR=10,this.UINT_MIN=0,this.UINT_MAX=4294967295,this.LONG_LENGTH_CHAR=20,this.LONG_MIN=Number.MIN_SAFE_INTEGER,this.LONG_MAX=Number.MAX_SAFE_INTEGER,this.TYPE_OFFSET=0,this.HEADERLENGTH_OFFSET=this.TYPE_OFFSET+1,this.SEQUENCENUMBER_OFFSET=this.HEADERLENGTH_OFFSET+this.USHORT_LENGTH_CHAR,this.TIMESTAMP_OFFSET=this.SEQUENCENUMBER_OFFSET+this.LONG_LENGTH_CHAR,this.ID_OFFSET=this.TIMESTAMP_OFFSET+this.LONG_LENGTH_CHAR,this.ENCODING_OFFSET=this.ID_OFFSET+this.USHORT_LENGTH_CHAR,this.MIMETYPE_OFFSET=this.ENCODING_OFFSET+1,this.PAYLOADLENGTH_OFFSET=this.MIMETYPE_OFFSET+1,this.HEADER_LENGTH_CHAR=this.PAYLOADLENGTH_OFFSET+this.UINT_LENGTH_CHAR}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/serialization/v1/codec.js","/lib/serialization/v1")},{_process:114,buffer:104,timers:135}],92:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;d.LIBRARY_NAME="JavaScript",d.VERSION="2.18.1";var c=d.messages={};c.control={},c.market={},c.JSON_TYPE_PROPERTY="@T",c.MessageTypeNames={ctrl:{HEARTBEAT:"C1",SUBSCRIBE:"C2",SUBSCRIBE_RESPONSE:"C3",UNSUBSCRIBE_RESPONSE:"C4",CONNECT_RESPONSE:"C5",CONNECTION_CLOSE:"C6",FLOW:"C7",SLOW_CONNECTION:"C8",INITIAL_DATA_SENT:"C9",RESUBSCRIBE_MESSAGE:"C10",STATS:"C12",STATS_RESPONSE:"C13",EXCHANGE_SUBSCRIBE:"C14",EXCHANGE_RESPONSE:"C15",EXCHANGE_UNSUBSCRIBE_RESPONSE:"C16"},data:{QUOTE:"D1",PRICEDATA:"D2",TRADE:"D3",BOOKORDER:"D4",BOOKDELETE:"D5",PURGEBOOK:"D6",MMQUOTE:"D7",INTERVAL:"D8",NETHOUSEPOSITION:"D9",SYMBOLINFO:"D10",SYMBOLSTATUS:"D11",DERIVATIVEINFO:"D12",LASTSALE:"D13",LIMITUPLIMITDOWN:"D14",IVGREEKS:"D15",IMBALANCESTATUS:"D16",ALERT:"D17"}},c.Message=function(){},c.Message.prototype.init=function(e){this[c.JSON_TYPE_PROPERTY]=e},c.control.CtrlMessage=function(){},c.control.CtrlMessage.prototype=new c.Message,c.control.Heartbeat=function(){this.init(c.MessageTypeNames.ctrl.HEARTBEAT),this.timestamp=null},c.control.Heartbeat.prototype=new c.control.CtrlMessage,c.control.StatsMessage=function(){this.init(c.MessageTypeNames.ctrl.STATS)},c.control.StatsMessage.prototype=new c.control.CtrlMessage,c.control.SubscribeMessage=function(){this.init(c.MessageTypeNames.ctrl.SUBSCRIBE),this.action=null,this.symbols=[],this.types=[],this.mimetype=null,this.conflation=null},c.control.SubscribeMessage.prototype=new c.control.CtrlMessage,c.control.ExchangeSubscribeMessage=function(){this.init(c.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE),this.action=null,this.exchange=null,this.mimetype=null,this.conflation=null},c.control.ExchangeSubscribeMessage.prototype=new c.control.CtrlMessage,c.control.BaseResponse=function(){this.code=null,this.reason=null},c.control.BaseResponse.prototype=new c.control.CtrlMessage,c.control.SubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE),this.entitlements=null,this.invalidsymbols=null,this.rejectedsymbols=null},c.control.SubscribeResponse.prototype=new c.control.BaseResponse,c.control.ExchangeSubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.EXCHANGE_RESPONSE)},c.control.ExchangeSubscribeResponse.prototype=new c.control.BaseResponse,c.control.UnsubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE),this.unsubscribed=null},c.control.UnsubscribeResponse.prototype=new c.control.BaseResponse,c.control.ExchangeUnsubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE)},c.control.ExchangeUnsubscribeResponse.prototype=new c.control.BaseResponse,c.control.StreamEntitlement=function(){this.symbol=null,this.marketdatatype=null,this.entitlement=null},c.control.ConnectResponse=function(){this.init(c.MessageTypeNames.ctrl.CONNECT_RESPONSE),this.version=null,this.flowControlCheckInterval=null,this.serverInstance=null,this.conflationMs=null},c.control.ConnectResponse.prototype=new c.control.BaseResponse,c.control.ConnectionClose=function(){this.init(c.MessageTypeNames.ctrl.CONNECTION_CLOSE),this.code=null,this.reason=null},c.control.ConnectionClose.prototype=new c.control.CtrlMessage,c.control.SlowConnection=function(){this.init(c.MessageTypeNames.ctrl.SLOW_CONNECTION),this.timesExceeded=null,this.maxExceed=null},c.control.SlowConnection.prototype=new c.control.CtrlMessage,c.control.FlowMessage=function(){this.init(c.MessageTypeNames.ctrl.FLOW),this.sequence=null},c.control.FlowMessage.prototype=new c.control.CtrlMessage,c.control.StatsResponse=function(){this.init(c.MessageTypeNames.ctrl.STATS_RESPONSE),this.numberOfSubscribedSymbolsL1=null,this.numberOfAvailableSymbolsL1=null,this.numberOfSubscribedSymbolsL2=null,this.numberOfAvailableSymbolsL2=null,this.numberOfOpenedConnections=null,this.numberOfAvailableConnections=null,this.numberOfSubscribedExchanges=null},c.control.StatsResponse.prototype=new c.control.BaseResponse,c.control.InitialDataSent=function(){this.init(c.MessageTypeNames.ctrl.INITIAL_DATA_SENT),this.timestamp=null},c.control.InitialDataSent.prototype=new c.control.CtrlMessage,c.control.ResubscribeMessage=function(){this.init(c.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE),this.timestamp=null},c.control.ResubscribeMessage.prototype=new c.control.CtrlMessage,c.control.StreamEntitlementType={RT:"Realtime",RTO:"Realtime CBOE ONE",RTN:"Realtime NASDAQ",RTB:"Realtime BATS",DL:"Delayed",DLO:"Delayed CBOE One",DLN:"Delayed NASDAQ",NA:"Not Entitled"},c.control.Action={SUBSCRIBE:"SUBSCRIBE",UNSUBSCRIBE:"UNSUBSCRIBE"},c.control.MarketdataType={QUOTE:"QUOTE",PRICEDATA:"PRICEDATA",TRADE:"TRADE",MMQUOTE:"MMQUOTE",ORDERBOOK:"ORDERBOOK",INTERVAL:"INTERVAL",NETHOUSEPOSITION:"NETHOUSEPOSITION",LASTSALE:"LASTSALE",BOOKORDER:"BOOKORDER",BOOKDELETE:"BOOKDELETE",PURGEBOOK:"PURGEBOOK",LIMITUPLIMITDOWN:"LIMITUPLIMITDOWN",IVGREEKS:"IVGREEKS",IMBALANCESTATUS:"IMBALANCESTATUS"},c.control.ResponseCodes={OK_CODE:200,OK_REASON:"OK",BADREQUEST_CODE:400,BADREQUEST_REASON:"Bad Request",UNAUTHORIZED_CODE:401,UNAUTHORIZED_REASON:"Unauthorized",TOOSLOW_CODE:450,TOOSLOW_REASON:"Too slow",DATA_SOURCE_RESET:454,DATA_SOURCE_RESET_REASON:"Data Source Was Reset",CONNECTION_LIMIT_EXCEEDED_CODE:452,CONNECTION_LIMIT_EXCEEDED_REASON:"Connection Limit Exceeded",INTERNALSERVERERROR_CODE:500,INTERNALSERVERERROR_REASON:"Internal Server Error"},c.market.DataMessage=function(){this.messageType=null},c.market.DataMessage.prototype=new c.Message,c.market.Quote=function(){this.init(c.MessageTypeNames.data.QUOTE)},c.market.Quote.prototype=new c.market.DataMessage,c.market.PriceData=function(){this.init(c.MessageTypeNames.data.PRICEDATA)},c.market.PriceData.prototype=new c.market.DataMessage,c.market.Trade=function(){this.init(c.MessageTypeNames.data.TRADE)},c.market.Trade.prototype=new c.market.DataMessage,c.market.MMQuote=function(){this.init(c.MessageTypeNames.data.MMQUOTE)},c.market.MMQuote.prototype=new c.market.DataMessage,c.market.PurgeBook=function(){this.init(c.MessageTypeNames.data.PURGEBOOK)},c.market.PurgeBook.prototype=new c.market.DataMessage,c.market.BookOrder=function(){this.init(c.MessageTypeNames.data.BOOKORDER)},c.market.BookOrder.prototype=new c.market.DataMessage,c.market.BookDelete=function(){this.init(c.MessageTypeNames.data.BOOKDELETE)},c.market.BookDelete.prototype=new c.market.DataMessage,c.market.Interval=function(){this.init(c.MessageTypeNames.data.INTERVAL)},c.market.Interval.prototype=new c.market.DataMessage,c.market.NethousePosition=function(){this.init(c.MessageTypeNames.data.NETHOUSEPOSITION)},c.market.NethousePosition.prototype=new c.market.DataMessage,c.market.SymbolInfo=function(){this.init(c.MessageTypeNames.data.SYMBOLINFO)},c.market.SymbolInfo.prototype=new c.market.DataMessage,c.market.SymbolStatus=function(){this.init(c.MessageTypeNames.data.SYMBOLSTATUS)},c.market.SymbolStatus.prototype=new c.market.DataMessage,c.market.DerivativeInfo=function(){this.init(c.MessageTypeNames.data.DERIVATIVEINFO)},c.market.DerivativeInfo.prototype=new c.market.DataMessage,c.market.IVGreeks=function(){this.init(c.MessageTypeNames.data.IVGREEKS)},c.market.IVGreeks.prototype=new c.market.DataMessage,c.market.LastSale=function(){this.init(c.MessageTypeNames.data.LASTSALE)},c.market.LastSale.prototype=new c.market.DataMessage,c.market.LimitUpLimitDown=function(){this.init(c.MessageTypeNames.data.LIMITUPLIMITDOWN)},c.market.LimitUpLimitDown.prototype=new c.market.DataMessage,c.market.ImbalanceStatus=function(){this.init(c.MessageTypeNames.data.IMBALANCESTATUS)},c.market.ImbalanceStatus.prototype=new c.market.DataMessage,c.market.Alert=function(){this.init(c.MessageTypeNames.data.ALERT)},c.market.Alert.prototype=new c.market.DataMessage,c.market.InstrumentType={1:"CASH",2:"BOND",3:"COMPOSITE",4:"FUTURE",5:"FUTURE_OPTION",6:"FOREX",7:"INDEX",8:"MUTUAL_FUND",9:"MONEY_MARKET_FUND",10:"MARKET_STAT",11:"EQUITY",12:"EQUITY_OPTION",13:"GOVT_BOND",14:"MUNI_BOND",15:"CORP_BOND",16:"ETF",17:"FUTURE_SPREAD",97:"OPTION_ROOT",98:"UNKNOWN",99:"RATE"},c.market.OrderSide={BUYSIDE:"B",SELLSIDE:"S"},c.market.ImbalanceType={0:"NONE",1:"MARKET",2:"MOC",3:"REGULATORY_IMBALANCE",4:"OPENING_IMBALANCE",5:"CLOSING_IMBALANCE",6:"IPO_IMBALANCE",7:"HALT_IMBALANCE",8:"EQUILIBRIUM"},c.market.OrderChangeType={A:"ADD",M:"MODIFY",C:"CANCEL",E:"EXECUTE"}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/streamer-api.js","/lib")},{_process:114,buffer:104,timers:135}],93:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,p("./polyfills");var c=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Object.assign(this,e)}return t.prototype.toString=function(){var e=this.type+"{",t=!0;for(var n in this)"type"!==n&&"function"!=typeof this[n]&&(t||(e+=", "),e+=n+": "+JSON.stringify(this[n]),t=!1);return e+="}"},t}(),d=h.event=function(e,t){return new c(Object.assign({type:e},t))};h.error=function(e,t){return d("error",Object.assign({description:e},t))},h.close=function(e){return d("close",e)}}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/streamer-events.js","/lib")},{"./polyfills":18,_process:114,buffer:104,timers:135}],94:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.getMessageName=h.entitlement=h.isvalid=h.iscontrolmessage=h.isdatamessage=h.messagetype=undefined;var c,d=p("./streamer-api.js");h.messagetype=function(e){return null===e?null:e[d.messages.JSON_TYPE_PROPERTY]},h.isdatamessage=function(e){if(null===e)return!1;var t=h.messagetype(e);return null!==t&&t.startsWith("D")},h.iscontrolmessage=function(e){if(null===e)return!1;var t=h.messagetype(e);return null!==t&&t.startsWith("C")},h.isvalid=function(e,t){var n=t.invalidSymbols;if(null==n)return!0;for(var r=0;r<n.length;r++){if(n[r]===e)return!1}return!0},h.entitlement=function(e,t,n){var r=n.entitlements;if(null!=r)for(var i=0;i<r.length;i++){var o=r[i];if(o.symbol===e&&o.marketdatatype===t)return o.entitlement}return null},h.getMessageName=(c={},function(e){var t=e[d.messages.JSON_TYPE_PROPERTY];if(!c[t]){var n=d.messages.MessageTypeNames.ctrl;for(var r in n)if(n[r]===t)return c[t]=r;var i=d.messages.MessageTypeNames.data;for(var o in i)if(i[o]===t)return c[t]=o;return c[t]=t}return c[t]})}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/streamer-utils.js","/lib")},{"./streamer-api.js":92,_process:114,buffer:104,timers:135}],95:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;m("../message.js");var c,d=m("../EventSupport.js"),p=(c=d)&&c.__esModule?c:{"default":c};var h=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.socket=e,this.log=t,this.events=new p["default"](this)}return n.prototype.send=function(e,t){this.socket.push({trackMessageLength:!0,data:JSON.stringify(e)})},n.prototype.onMessage=function(e){var t=null;try{t=JSON.parse(e)}catch(o){return void this.log.error(o)}this.events.fire("sequence",t.seq);for(var n=t.data.length,r=0;r<n;r++){var i=t.data[r];i.__id=i.requestId,this.events.fire("message",i)}},n.prototype.on=function(e,t){return this.events.on(e,t)},n}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/transmission/JsonTransmitter.js","/lib/transmission")},{"../EventSupport.js":2,"../message.js":17,_process:114,buffer:104,timers:135}],96:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0;var c=b(S("../EventSupport.js")),d=b(S("../SMessage")),p=S("../qitch/decoder/QitchDecoder"),h=b(p),m=b(S("../qitch/encoder/QitchEncoder")),_=b(S("../UShortId.js")),E=S("../message.js"),g=b(S("../qitch/LocateCodeInjector")),T=S("../utils");function b(e){return e&&e.__esModule?e:{"default":e}}var y=function(){function r(e,t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.socket=e,!(t instanceof m["default"]))throw"Wrong encoder";this.encoder=t,this.log=n,this.events=new c["default"](this),this.decoder=new h["default"](r.prototype.DEFAULT_BUFFERSIZE),this.locateCodeInjector=new g["default"]}return r.prototype.send=function(e,t){var n=new d["default"];n.sequencenumber=e.sequenceNumber,n.timestamp=(new Date).getTime(),n.id=null!=t?t:_["default"].NULL,n.encoding=E.Encodings.NONE_CHAR,n.mimetype=E.MimeTypes.QITCH_CHAR,n.payload=e;var r={trackMessageLength:!1,data:this.encoder.encode(n,0)};this.socket.push(r)},r.prototype.onMessage=function(e){var t=void 0;t=e instanceof ArrayBuffer?e:(0,T.asciiStringToArrayBuffer)(e);var n=null;try{n=this.decoder.decode(new Int8Array(t))}catch(o){return void this.log.error(o)}if(null!=n)for(var r=0;r<n.length;r++)if(n[r]instanceof p.MessageBlock)for(var i=0;i<n[r].messages.length;i++)this._processMessage(n[r].messages[i]);else this._processMessage(n[r]);else this.log.debug("Couldn't decode message. Ignoring unsupported message")},r.prototype.on=function(e,t){return this.events.on(e,t)},r.prototype._processMessage=function(e){this.locateCodeInjector.injectLocateCode(e.decodedPayload),this.events.fire("sequence",e.sequencenumber),e.decodedPayload.__id=e.id,this.events.fire("message",e.decodedPayload)},r}();y.prototype.DEFAULT_BUFFERSIZE=4096,w["default"]=y}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/transmission/QitchTransmitter.js","/lib/transmission")},{"../EventSupport.js":2,"../SMessage":5,"../UShortId.js":9,"../message.js":17,"../qitch/LocateCodeInjector":23,"../qitch/decoder/QitchDecoder":41,"../qitch/encoder/QitchEncoder":67,"../utils":98,_process:114,buffer:104,timers:135}],97:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c=E("../message.js"),d=m(E("../SMessage.js")),p=m(E("../UShortId.js")),h=m(E("../EventSupport.js"));E("../formatting.js");function m(e){return e&&e.__esModule?e:{"default":e}}var _=function(){function i(e,t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.socket=e,this.encoder=t,this.decoder=n,this.log=r,this.events=new h["default"](this)}return i.prototype.send=function(e,t){var n=new d["default"];n.sequencenumber=e.sequenceNumber,n.timestamp=(new Date).getTime(),n.id=null!=t?t:p["default"].NULL,n.encoding=c.Encodings.NONE_CHAR,n.mimetype=c.MimeTypes.JSON_CHAR,n.payload=JSON.stringify(e);var r={trackMessageLength:!0,data:this.encoder.encode(n)};this.socket.push(r)},i.prototype.onMessage=function(e){var t=this.decoder.decode(e);if(this.events.fire("sequence",t.sequencenumber),t.encoding===c.Encodings.NONE_CHAR)if(t.mimetype===c.MimeTypes.JSON_CHAR){var n=null;try{n=JSON.parse(t.payload)}catch(r){return void this.log.error(r)}n.__id=t.id,this.events.fire("message",n)}else this.log.debug("Unhandled mimetype: "+t.mimeType+" - "+t.payload);else this.log.debug("Unhandled encoding: "+t.encoding+" - "+t.payload)},i.prototype.on=function(e,t){return this.events.on(e,t)},i}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/transmission/SMessageTransmitter.js","/lib/transmission")},{"../EventSupport.js":2,"../SMessage.js":5,"../UShortId.js":9,"../formatting.js":13,"../message.js":17,_process:114,buffer:104,timers:135}],98:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;d.forEachPartition=function(e,t,n){if(e)for(var r=0;r<e.length;r+=t){n(e.slice(r,r+t))}};var c=d.indexOf=function(e,t){for(var n=e.length,r=0;r<n;++r)if(t===e[r])return r;return-1};d.removeFromArray=function(e){for(var t,n,r=arguments.length<=1?0:arguments.length-1;0<r&&e.length;){var i;for(i=1+--r,t=arguments.length<=i?undefined:arguments[i];-1!==(n=c(e,t));)e.splice(n,1)}return e},d.asciiStringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return t}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/utils.js","/lib")},{_process:114,buffer:104,timers:135}],99:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){c.exports=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/array-equal/index.js","/node_modules/array-equal")},{_process:114,buffer:104,timers:135}],100:[function(e,t,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.byteLength=function(e){var t=E(e),n=t[0],r=t[1];return 3*(n+r)/4-r},T.toByteArray=function(e){for(var t,n=E(e),r=n[0],i=n[1],o=new p((l=r,f=i,3*(l+f)/4-f)),s=0,a=0<i?r-4:r,u=0;u<a;u+=4)t=d[e.charCodeAt(u)]<<18|d[e.charCodeAt(u+1)]<<12|d[e.charCodeAt(u+2)]<<6|d[e.charCodeAt(u+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;var l,f;2===i&&(t=d[e.charCodeAt(u)]<<2|d[e.charCodeAt(u+1)]>>4,o[s++]=255&t);1===i&&(t=d[e.charCodeAt(u)]<<10|d[e.charCodeAt(u+1)]<<4|d[e.charCodeAt(u+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t);return o},T.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],o=0,s=n-r;o<s;o+=16383)i.push(g(e,o,s<o+16383?s:o+16383));1===r?(t=e[n-1],i.push(c[t>>2]+c[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"="));return i.join("")};for(var c=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,_=h.length;m<_;++m)c[m]=h[m],d[h.charCodeAt(m)]=m;function E(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function g(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(c[(i=r)>>18&63]+c[i>>12&63]+c[i>>6&63]+c[63&i]);return o.join("")}d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/base64-js/index.js","/node_modules/base64-js")},{_process:114,buffer:104,timers:135}],101:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){!function(t){"use strict";
34
+ L(460,"Websocket error")};o.onclose=function(e){if(y("websocket.onclose"),clearTimeout(d.id),"closed"!==p.state){var t=e.reason;if(""===t)switch(e.code){case 1e3:t="Normal closure; the connection successfully completed whatever purpose for which it was created.";break;case 1001:t="The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.";break;case 1002:t="The endpoint is terminating the connection due to a protocol error.";break;case 1003:t="The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data).";break;case 1004:t="The endpoint is terminating the connection because a data frame was received that is too large.";break;case 1005:t="Unknown: no status code was provided even though one was expected.";break;case 1006:t="Connection was closed abnormally (that is, with no close frame being sent)."}b("warn")&&ee.util.warn("Websocket closed, reason: "+t+" - wasClean: "+e.wasClean),p.closedByClientTimeout||d.handleOnlineOffline&&te?d.reconnectId&&(clearTimeout(d.reconnectId),delete d.reconnectId):(Z(s),p.state="closed",_?ee.util.log(d.logLevel,["Websocket closed normally"]):s?d.reconnect&&"websocket"===p.transport&&(v(),h++<d.maxReconnectOnClose?(N("re-connecting",d.transport,d),0<d.reconnectInterval?d.reconnectId=setTimeout(function(){p.responseBody="",p.messages=[],n(!0)},d.reconnectInterval):(p.responseBody="",p.messages=[],n(!0))):(ee.util.log(d.logLevel,["Websocket reconnect maximum try reached "+h]),b("warn")&&ee.util.warn("Websocket error, reason: "+e.reason),L(0,"maxReconnectOnClose reached"))):R("Websocket failed on first connection attempt. Downgrading to "+d.fallbackTransport+" and resending"))}};var t=navigator.userAgent.toLowerCase();var r=-1<t.indexOf("android");r&&o.url===undefined&&o.onclose({reason:"Android 4.1 does not support websockets.",wasClean:!1})}(!1):R("Websocket is not supported, using request.fallbackTransport ("+d.fallbackTransport+")"):"sse"===d.transport&&(e=ee.util.getAbsoluteURL(d.url.toLowerCase()),r=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/.exec(e),i=!(!r||r[1]==window.location.protocol&&r[2]==window.location.hostname&&(r[3]||("http:"===r[1]?80:443))==(window.location.port||("http:"===window.location.protocol?80:443))),!window.EventSource||i&&ee.util.browser.safari&&!(7<=ee.util.browser.vmajor)?R("Server Side Events(SSE) is not supported, using request.fallbackTransport ("+d.fallbackTransport+")"):function t(n){p.transport="sse";var e=B(d);b("debug")&&(ee.util.debug("Invoking executeSSE"),ee.util.debug("Using URL: "+e));if(n&&!d.reconnect)return void(null!=s&&v());try{s=new EventSource(e,{withCredentials:d.withCredentials})}catch(r){return L(0,r),void R("SSE failed. Downgrading to fallback transport and resending")}0<d.connectTimeout&&(d.id=setTimeout(function(){n||v()},d.connectTimeout));s.onopen=function(e){y("sse.onopen"),M(d),b("debug")&&ee.util.debug("SSE successfully opened"),d.enableProtocol?d.isReopen&&(d.isReopen=!1,N("re-opening",d.transport,d)):N(n?"re-opening":"opening","sse",d),n=!0,"POST"===d.method&&(p.state="messageReceived",s.send(d.data))};s.onmessage=function(e){if(y("sse.onmessage"),M(d),!d.enableXDR&&window.location.host&&e.origin&&e.origin!==window.location.protocol+"//"+window.location.host)ee.util.log(d.logLevel,["Origin was not "+window.location.protocol+"//"+window.location.host]);else{p.state="messageReceived",p.status=200;var t=D(e=e.data,d,p);t||($(),p.responseBody="",p.messages=[])}};s.onerror=function(e){y("sse.onerror"),clearTimeout(d.id),d.heartbeatTimer&&clearTimeout(d.heartbeatTimer),p.closedByClientTimeout||(Z(n),v(),_?ee.util.log(d.logLevel,["SSE closed normally"]):n?d.reconnect&&"sse"===p.transport&&(h++<d.maxReconnectOnClose?(N("re-connecting",d.transport,d),0<d.reconnectInterval?d.reconnectId=setTimeout(function(){t(!0)},d.reconnectInterval):t(!0),p.responseBody="",p.messages=[]):(ee.util.log(d.logLevel,["SSE reconnect maximum try reached "+h]),L(0,"maxReconnectOnClose reached"))):R("SSE failed. Downgrading to fallback transport and resending"))}}(!1))}function N(e,t,n){if(d.shared&&"local"!==t&&function(){var t,r="atmosphere-"+d.url,e=function(){var n,e=r.replace(/\W/g,""),t=document.getElementById(e);return t||((t=document.createElement("div")).id=e,t.style.display="none",t.innerHTML='<iframe name="'+e+'" />',document.body.appendChild(t)),n=t.firstChild.contentWindow,{init:function(){n.callbacks=[i],n.fire=function(e){var t;for(t=0;t<n.callbacks.length;t++)n.callbacks[t](e)}},signal:function(e,t){!n.closed&&n.fire&&n.fire(ee.util.stringifyJSON({target:"c",type:e,data:t}))},get:function(e){return n.closed?null:n[e]},set:function(e,t){n.closed||(n[e]=t)},close:function(){}}};function i(e){var t=ee.util.parseJSON(e),n=t.data;if("p"===t.target)switch(t.type){case"send":q(n);break;case"localSend":Q(n);break;case"close":O()}}function n(){document.cookie=u+"="+encodeURIComponent(ee.util.stringifyJSON({ts:ee.util.now()+1,heir:(t.get("children")||[])[0]}))+"; path=/"}E=function(e){t.signal("message",e)},(t=function(){function e(e){e.key===r&&e.newValue&&i(e.newValue)}if(ee.util.storage){var n=window.localStorage;return{init:function(){ee.util.on(window,"storage",e)},signal:function(e,t){n.setItem(r,ee.util.stringifyJSON({target:"c",type:e,data:t}))},get:function(e){return ee.util.parseJSON(n.getItem(r+"-"+e))},set:function(e,t){n.setItem(r+"-"+e,ee.util.stringifyJSON(t))},close:function(){ee.util.off(window,"storage",e),n.removeItem(r),n.removeItem(r+"-opened"),n.removeItem(r+"-children")}}}}()||e()).init(),b("debug")&&ee.util.debug("Installed StorageService "+t),t.set("children",[]),null==t.get("opened")||t.get("opened")||t.set("opened",!1),u=encodeURIComponent(r),n(),l=setInterval(n,1e3),a=t}(),null!=a&&a.set("opened",!0),n.close=function(){O()},0<h&&"re-connecting"===e)n.isReopen=!0,(s=p).state="re-connecting",z(s);else if(null==p.error){p.request=n;var r=p.state;p.state=e;var i=p.transport;p.transport=t;var o=p.responseBody;$(),p.responseBody=o,p.state=r,p.transport=i}var s}function F(i){i.transport="jsonp";var o,s=d;null!=i&&void 0!==i&&(s=i),(f={open:function(){var r="atmosphere"+ ++T;function e(){var e=s.url;null!=s.dispatchUrl&&(e+=s.dispatchUrl);var t=s.data;s.attachHeadersAsQueryString&&(e=B(s),""!==t&&(e+="&X-Atmosphere-Post-Body="+encodeURIComponent(t)),t="");var n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;(o=document.createElement("script")).src=e+"&jsonpTransport="+r,o.clean=function(){o.clean=o.onerror=o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),2==++i.scriptCount&&(i.scriptCount=1,s.lastIndex=0,s.openId&&clearTimeout(s.openId),s.heartbeatTimer&&clearTimeout(s.heartbeatTimer),s.reconnect&&h++<s.maxReconnectOnClose?(N("re-connecting",s.transport,s),P(f,s,i.reconnectInterval),s.openId=setTimeout(function(){k(s)},s.reconnectInterval+1e3)):L(0,"maxReconnectOnClose reached"))},o.onload=o.onreadystatechange=function(){y("jsonp.onload"),o.readyState&&!/loaded|complete/.test(o.readyState)||o.clean()},o.onerror=function(){y("jsonp.onerror"),i.scriptCount=1,o.clean()},n.insertBefore(o,n.firstChild)}window[r]=function(e){if(y("jsonp.window"),i.scriptCount=0,s.reconnect&&-1===s.maxRequest||s.requestCount++<s.maxRequest){if(s.executeCallbackBeforeReconnect||P(f,s,s.pollingInterval),null!=e&&"string"!=typeof e)try{e=e.message}catch(t){}D(e,s,p)||X(p.responseBody,"messageReceived",200,s.transport),s.executeCallbackBeforeReconnect&&P(f,s,s.pollingInterval),M(s)}else ee.util.log(d.logLevel,["JSONP reconnect maximum try reached "+d.requestCount]),L(0,"maxRequest reached")},setTimeout(function(){e()},50)},abort:function(){o&&o.clean&&o.clean()}}).open()}function C(e,t){var n=t;if("polling"===e.transport)return n;if(e.enableProtocol&&e.firstMessage&&0!==ee.util.trim(t).length){var r=e.trackMessageLength?1:0,i=t.split(e.messageDelimiter);if(i.length<=r+1)return n;if(e.firstMessage=!1,e.uuid=ee.util.trim(i[r]),i.length<=r+2&&ee.util.log("error",["Protocol data not sent by the server. If you enable protocol on client side be sure to install JavascriptProtocol interceptor on server side.Also note that atmosphere-runtime 2.2+ should be used."]),c=parseInt(ee.util.trim(i[r+1]),10),m=i[r+2],"long-polling"!==e.transport&&k(e),re=e.uuid,n="",r=e.trackMessageLength?4:3,i.length>r)for(var o=r;o<i.length;o++)n+=i[o],o+1!==i.length&&(n+=e.messageDelimiter);0!==e.ackInterval&&setTimeout(function(){q("...ACK...")},e.ackInterval)}else e.enableProtocol&&e.firstMessage&&ee.util.browser.msie&&+ee.util.browser.version.split(".")[0]<10?ee.util.log(d.logLevel,["Receiving unexpected data from IE"]):k(e);return n}function M(e){clearTimeout(e.id),0<e.timeout&&"polling"!==e.transport&&(e.id=setTimeout(function(){p.closedByClientTimeout=!0,p.state="closedByClient",p.responseBody="",p.status=408,p.messages=[],$(),w(),v()},e.timeout))}function L(e,t){v(),clearTimeout(d.id),p.state="error",p.reasonPhrase=t,p.responseBody="",p.status=e,p.messages=[],$()}function D(e,t,n){if(e instanceof Blob)return!1;if(0===(e=C(t,e)).length)return!0;if(n.responseBody=e,t.trackMessageLength){var r=[],i=(e=n.partialMessage+e).indexOf(t.messageDelimiter);if(-1!=i){for(;-1!==i;){var o=e.substring(0,i),s=+o;if(isNaN(s))throw n.partialMessage="",new Error('message length "'+o+'" is not a number');(i+=t.messageDelimiter.length)+s>e.length?i=-1:(r.push(e.substring(i,i+s)),i=(e=e.substring(i+s,e.length)).indexOf(t.messageDelimiter))}return n.partialMessage=e,0!==r.length?(n.responseBody=r.join(t.messageDelimiter),n.messages=r,!1):(n.responseBody="",n.messages=[],!0)}}return n.responseBody=e,!(n.messages=[e])}function R(e){ee.util.log(d.logLevel,[e]),"undefined"!=typeof d.onTransportFailure?d.onTransportFailure(e,d):"undefined"!=typeof ee.util.onTransportFailure&&ee.util.onTransportFailure(e,d),d.transport=d.fallbackTransport;var t=-1===d.connectTimeout?0:d.connectTimeout;d.reconnect&&"none"!==d.transport||null==d.transport?(d.method=d.fallbackMethod,p.transport=d.fallbackTransport,d.fallbackTransport="none",0<t?d.reconnectId=setTimeout(function(){A()},t):A()):L(500,"Unable to reconnect with fallback transport")}function B(r,i){var o=d;return null!=r&&void 0!==r&&(o=r),null==i&&(i=o.url),o.attachHeadersAsQueryString&&(-1!==i.indexOf("X-Atmosphere-Framework")||(i+=-1!==i.indexOf("?")?"&":"?",i+="X-Atmosphere-tracking-id="+o.uuid,i+="&X-Atmosphere-Framework="+ee.version,i+="&X-Atmosphere-Transport="+o.transport,o.trackMessageLength&&(i+="&X-Atmosphere-TrackMessageSize=true"),null!==o.heartbeat&&null!==o.heartbeat.server&&(i+="&X-Heartbeat-Server="+o.heartbeat.server),""!==o.contentType&&(i+="&Content-Type="+("websocket"===o.transport?o.contentType:encodeURIComponent(o.contentType))),o.enableProtocol&&(i+="&X-atmo-protocol=true"),ee.util.each(o.headers,function(e,t){var n=ee.util.isFunction(t)?t.call(this,o,r,p):t;null!=n&&(i+="&"+encodeURIComponent(e)+"="+encodeURIComponent(n))}))),i}function k(e){if(e.isOpen)if(e.isReopen)e.isReopen=!1,N("re-opening",e.transport,e);else{if("messageReceived"!==p.state||"jsonp"!==e.transport&&"long-polling"!==e.transport)return;(t=p).state="openAfterResume",z(t),t.state="messageReceived"}else e.isOpen=!0,N("opening",e.transport,e);var t;!function(t){null!=t.heartbeatTimer&&clearTimeout(t.heartbeatTimer);if(!isNaN(c)&&0<c){t.heartbeatTimer=setTimeout(function e(){b("debug")&&ee.util.debug("Sending heartbeat");q(m),t.heartbeatTimer=setTimeout(e,c)},c)}}(e)}function U(u){var l=d;if(null==u&&void 0===u||(l=u),l.lastIndex=0,l.readyState=0,"jsonp"===l.transport||l.enableXDR&&ee.util.checkCORSSupport())F(l);else{if(ee.util.browser.msie&&+ee.util.browser.version.split(".")[0]<10){if("streaming"===l.transport)return void(l.enableXDR&&window.XDomainRequest?G(l):j(l));if(l.enableXDR&&window.XDomainRequest)return void G(l)}var t=function(e){if(l.lastIndex=0,h++,e||l.reconnect&&h<=l.maxReconnectOnClose){var t=e?0:u.reconnectInterval;p.ffTryingReconnect=!0,N("re-connecting",u.transport,u),P(c,l,t)}else L(0,"maxReconnectOnClose reached")},f=function(e){ee._beforeUnloadState?(ee.util.debug(new Date+" Atmosphere: reconnectF: execution delayed due to _beforeUnloadState flag"),setTimeout(function(){t(e)},5e3)):t(e)};if(l.force||l.reconnect&&(-1===l.maxRequest||l.requestCount++<l.maxRequest)){l.force=!1;var c=ee.util.xhr();c.hasData=!1,function(r,i,o){var e=i.url;null!=i.dispatchUrl&&"POST"===i.method&&(e+=i.dispatchUrl);e=B(i,e),e=ee.util.prepareURL(e),o&&(r.open(i.method,e,i.async),0<i.connectTimeout&&(i.id=setTimeout(function(){0===i.requestCount&&(v(),X("Connect timeout","closed",200,i.transport))},i.connectTimeout)));d.withCredentials&&"websocket"!==d.transport&&"withCredentials"in r&&(r.withCredentials=!0);d.dropHeaders||(r.setRequestHeader("X-Atmosphere-Framework",ee.version),r.setRequestHeader("X-Atmosphere-Transport",i.transport),null!==i.heartbeat&&null!==i.heartbeat.server&&r.setRequestHeader("X-Heartbeat-Server",r.heartbeat.server),i.trackMessageLength&&r.setRequestHeader("X-Atmosphere-TrackMessageSize","true"),r.setRequestHeader("X-Atmosphere-tracking-id",i.uuid),ee.util.each(i.headers,function(e,t){var n=ee.util.isFunction(t)?t.call(this,r,i,o,p):t;null!=n&&r.setRequestHeader(e,n)}));""!==i.contentType&&r.setRequestHeader("Content-Type",i.contentType)}(c,l,!0),l.suspend&&(n=c),"polling"!==l.transport&&(p.transport=l.transport,c.onabort=function(){y("ajaxrequest.onabort"),Z(!0)},c.onerror=function(){y("ajaxrequest.onerror"),p.error=!0,p.ffTryingReconnect=!0;try{p.status=XMLHttpRequest.status}catch(e){p.status=500}p.status||(p.status=500),p.errorHandled||(v(),f(!1))}),c.onreadystatechange=function(){if(y("ajaxRequest.onreadystatechange, new state: "+c.readyState),_)y("onreadystatechange has been ignored due to _abortingConnection flag");else{p.error=null;var n=!1,e=!1;if("streaming"===l.transport&&2<l.readyState&&4===c.readyState)return v(),void f(!1);if(l.readyState=c.readyState,"streaming"===l.transport&&3<=c.readyState?e=!0:"long-polling"===l.transport&&4===c.readyState&&(e=!0),M(d),"polling"!==l.transport){var t=200;if(4===c.readyState&&(t=1e3<c.status?0:c.status),!l.reconnectOnServerError&&300<=t&&t<600)return void L(t,c.statusText);if(300<=t||0===t)return p.errorHandled=!0,v(),void f(!1);l.enableProtocol&&u.firstMessage||2!==c.readyState||(ee.util.browser.mozilla&&p.ffTryingReconnect?(p.ffTryingReconnect=!1,setTimeout(function(){p.ffTryingReconnect||k(l)},500)):k(l))}else 4===c.readyState&&(e=!0);if(e){var r=c.responseText;if(p.errorHandled=!1,"long-polling"===l.transport&&0===ee.util.trim(r).length)return void(c.hasData?c.hasData=!1:f(!0));if(c.hasData=!0,W(c,d),"streaming"===l.transport)if(ee.util.browser.opera)ee.util.iterate(function(){if(500!==p.status&&c.responseText.length>l.lastIndex){try{p.status=c.status,p.headers=ee.util.parseHeaders(c.getAllResponseHeaders()),W(c,d)}catch(t){p.status=404}M(d),p.state="messageReceived";var e=c.responseText.substring(l.lastIndex);if(l.lastIndex=c.responseText.length,(n=D(e,l,p))||$(),S(c,l))return void H(c,l)}else if(400<p.status)return l.lastIndex=c.responseText.length,!1},0);else{var i=r.substring(l.lastIndex,r.length);if(n=D(i,l,p),l.lastIndex=r.length,n)return}else n=D(r,l,p);var o=S(c,l);try{p.status=c.status,p.headers=ee.util.parseHeaders(c.getAllResponseHeaders()),W(c,l)}catch(a){p.status=404}l.suspend?p.state=0===p.status?"closed":"messageReceived":p.state="messagePublished";var s=!o&&"streaming"!==u.transport&&"polling"!==u.transport;s&&!l.executeCallbackBeforeReconnect&&P(c,l,l.pollingInterval),0===p.responseBody.length||n||$(),s&&l.executeCallbackBeforeReconnect&&P(c,l,l.pollingInterval),o&&H(c,l)}}};try{"streaming"===l.transport&&l.headers["X-Atmosphere-Binary"]&&c.overrideMimeType("text/plain; charset=x-user-defined"),c.send(l.data),i=!0}catch(e){ee.util.log(l.logLevel,["Unable to connect to "+l.url]),L(0,e)}}else"debug"===l.logLevel&&ee.util.log(l.logLevel,["Max re-connection reached."]),L(0,"maxRequest reached")}}function H(e,t){p.messages=[],t.isReopen=!0,O(),_=!1,P(e,t,500)}function P(e,t,n){if(!p.closedByClientTimeout&&(t.reconnect||t.suspend&&i)){var r=0;e&&1<e.readyState&&(r=1e3<e.status?0:e.status),p.status=0===r?204:r,p.reason=0===r?"Server resumed the connection or down.":"OK",clearTimeout(t.id),t.reconnectId&&(clearTimeout(t.reconnectId),delete t.reconnectId),0<n?d.reconnectId=setTimeout(function(){U(t)},n):U(t)}}function G(e){"polling"!==e.transport?(r=x(e)).open():x(e).open()}function x(e){var r=d;null!=e&&void 0!==e&&(r=e);var i=r.transport,o=0,t=new window.XDomainRequest,s=function(){"long-polling"===r.transport&&r.reconnect&&(-1===r.maxRequest||r.requestCount++<r.maxRequest)&&(t.status=200,G(r))},n=r.rewriteURL||function(e){var t=/(?:^|;\s*)(JSESSIONID|PHPSESSID)=([^;]*)/.exec(document.cookie);switch(t&&t[1]){case"JSESSIONID":return e.replace(/;jsessionid=[^\?]*|(\?)|$/,";jsessionid="+t[2]+"$1");case"PHPSESSID":return e.replace(/\?PHPSESSID=[^&]*&?|\?|$/,"?PHPSESSID="+t[2]+"&").replace(/&$/,"")}return e};t.onprogress=function(){a(t)},t.onerror=function(){"polling"!==r.transport&&(v(),h++<r.maxReconnectOnClose?0<r.reconnectInterval?r.reconnectId=setTimeout(function(){N("re-connecting",e.transport,e),G(r)},r.reconnectInterval):(N("re-connecting",e.transport,e),G(r)):L(0,"maxReconnectOnClose reached"))},t.onload=function(){};var a=function(e){clearTimeout(r.id);var t=e.responseText;if(t=t.substring(o),o+=t.length,"polling"!==i){M(r);var n=D(t,r,p);if("long-polling"===i&&0===ee.util.trim(t).length)return;r.executeCallbackBeforeReconnect&&s(),n||X(p.responseBody,"messageReceived",200,i),r.executeCallbackBeforeReconnect||s()}};return{open:function(){var e=r.url;null!=r.dispatchUrl&&(e+=r.dispatchUrl),e=B(r,e),t.open(r.method,n(e)),"GET"===r.method?t.send():t.send(r.data),0<r.connectTimeout&&(r.id=setTimeout(function(){0===r.requestCount&&(v(),X("Connect timeout","closed",200,r.transport))},r.connectTimeout))},close:function(){t.abort()}}}function j(e){(r=function(e){var o,s=d;null!=e&&void 0!==e&&(s=e);var a=new window.ActiveXObject("htmlfile");a.open(),a.close();var t=s.url;null!=s.dispatchUrl&&(t+=s.dispatchUrl);"polling"!==s.transport&&(p.transport=s.transport);return{open:function(){var e=a.createElement("iframe");t=B(s),""!==s.data&&(t+="&X-Atmosphere-Post-Body="+encodeURIComponent(s.data)),t=ee.util.prepareURL(t),e.src=t,a.body.appendChild(e);var i=e.contentDocument||e.contentWindow.document;o=ee.util.iterate(function(){try{if(!i.firstChild)return;var n=i.body?i.body.lastChild:i;n.omgThisIsBroken;if(!i.body||!i.body.firstChild||"pre"!==i.body.firstChild.nodeName.toLowerCase()){var e=i.head||i.getElementsByTagName("head")[0]||i.documentElement||i,t=i.createElement("script");t.text="document.write('<plaintext>')",e.insertBefore(t,e.firstChild),e.removeChild(t),n=i.body.lastChild}return s.closed&&(s.isReopen=!0),o=ee.util.iterate(function(){var e=function(){var e=n.cloneNode(!0);e.appendChild(i.createTextNode("."));var t=e.innerText;return t=t.substring(0,t.length-1)}();if(e.length>s.lastIndex){M(d),p.status=200,p.error=null,n.innerText="";var t=D(e,s,p);if(t)return"";X(p.responseBody,"messageReceived",200,s.transport)}if(s.lastIndex=0,"complete"===i.readyState)return Z(!0),N("re-connecting",s.transport,s),0<s.reconnectInterval?s.reconnectId=setTimeout(function(){j(s)},s.reconnectInterval):j(s),!1},null),!1}catch(r){return p.error=!0,N("re-connecting",s.transport,s),h++<s.maxReconnectOnClose?0<s.reconnectInterval?s.reconnectId=setTimeout(function(){j(s)},s.reconnectInterval):j(s):L(0,"maxReconnectOnClose reached"),a.execCommand("Stop"),a.close(),!1}})},close:function(){o&&o(),a.execCommand("Stop"),Z(!0)}}}(e)).open()}function q(e){var t;null!=g?(t=e,g.send(t)):null!=n||null!=s?V(e):null!=r?function(e){if(d.enableXDR&&ee.util.checkCORSSupport()){var t=K(e);t.reconnect=!1,F(t)}else V(e)}(e):null!=f?V(e):null!=o?function(e){var t,n=ee.util.isBinary(e)?e:Y(e);try{if(t=null!=d.dispatchUrl?d.webSocketPathDelimiter+d.dispatchUrl+d.webSocketPathDelimiter+n:n,!o.canSendMessage)return ee.util.error("WebSocket not connected.");o.send(t)}catch(r){o.onclose=function(e){},v(),R("Websocket failed. Downgrading to "+d.fallbackTransport+" and resending "+e),V(e)}}(e):(L(0,"No suspended connection available"),ee.util.error("No suspended connection available. Make sure atmosphere.subscribe has been called and request.onOpen invoked before trying to push data"))}function V(e){U(K(e))}function Y(e){var t=e;return"object"===(void 0===t?"undefined":ie(t))&&(t=e.data),t}function K(e){var t=Y(e),n={connected:!1,timeout:6e4,method:"POST",url:d.url,contentType:d.contentType,headers:d.headers,reconnect:!0,callback:null,data:t,suspend:!1,maxRequest:-1,logLevel:"info",requestCount:0,withCredentials:d.withCredentials,async:d.async,transport:"polling",isOpen:!0,attachHeadersAsQueryString:!0,enableXDR:d.enableXDR,uuid:d.uuid,dispatchUrl:d.dispatchUrl,enableProtocol:!1,messageDelimiter:"|",trackMessageLength:d.trackMessageLength,maxReconnectOnClose:d.maxReconnectOnClose,heartbeatTimer:d.heartbeatTimer,heartbeat:d.heartbeat};return"object"===(void 0===e?"undefined":ie(e))&&(n=ee.util.extend(n,e)),n}function Q(e){var t=ee.util.parseJSON(e);t.id!==T&&("undefined"!=typeof d.onLocalMessage?d.onLocalMessage(t.event):"undefined"!=typeof ee.util.onLocalMessage&&ee.util.onLocalMessage(t.event))}function X(e,t,n,r){p.responseBody=e,p.transport=r,p.status=n,p.state=t,$()}function W(e,t){if(t.readResponsesHeaders)try{var n=e.getResponseHeader("X-Atmosphere-tracking-id");n&&null!=n&&(t.uuid=n.split(" ").pop())}catch(r){}else t.enableProtocol||(t.uuid=T)}function z(e){J(e,d),J(e,ee.util)}function J(e,t){switch(e.state){case"messageReceived":y("Firing onMessage"),h=0,"undefined"!=typeof t.onMessage&&t.onMessage(e),"undefined"!=typeof t.onmessage&&t.onmessage(e);break;case"error":y("Firing onError, reasonPhrase: "+("undefined"!=typeof e.reasonPhrase?e.reasonPhrase:"n/a")),"undefined"!=typeof t.onError&&t.onError(e),"undefined"!=typeof t.onerror&&t.onerror(e);break;case"opening":delete d.closed,y("Firing onOpen"),"undefined"!=typeof t.onOpen&&t.onOpen(e),"undefined"!=typeof t.onopen&&t.onopen(e);break;case"messagePublished":y("Firing messagePublished"),"undefined"!=typeof t.onMessagePublished&&t.onMessagePublished(e);break;case"re-connecting":y("Firing onReconnect"),"undefined"!=typeof t.onReconnect&&t.onReconnect(d,e);break;case"closedByClient":y("Firing closedByClient"),"undefined"!=typeof t.onClientTimeout&&t.onClientTimeout(d);break;case"re-opening":delete d.closed,y("Firing onReopen"),"undefined"!=typeof t.onReopen&&t.onReopen(d,e);break;case"fail-to-reconnect":y("Firing onFailureToReconnect"),"undefined"!=typeof t.onFailureToReconnect&&t.onFailureToReconnect(d,e);break;case"unsubscribe":case"closed":"undefined"!=typeof d.closed&&d.closed?y("Request already closed, not firing onClose ("+e.state+" case)"):(y("Firing onClose ("+e.state+" case)"),"undefined"!=typeof t.onClose&&t.onClose(e),"undefined"!=typeof t.onclose&&t.onclose(e)),d.closed=!0;break;case"openAfterResume":"undefined"!=typeof t.onOpenAfterResume&&t.onOpenAfterResume(d)}}function Z(e){"closed"!==p.state&&(p.state="closed",p.responseBody="",p.messages=[],p.status=e?200:501,$())}function $(){var e=function(e,t){t(p)};null==g&&null!=E&&E(p.responseBody),d.reconnect=d.mrequest;for(var t="string"==typeof p.responseBody,n=t&&d.trackMessageLength?0<p.messages.length?p.messages:[""]:new Array(p.responseBody),r=0;r<n.length;r++)if(!(1<n.length&&0===n[r].length||(p.responseBody=!t||"streaming"===d.transport&&d.headers["X-Atmosphere-Binary"]&&!d.firstMessage?n[r]:ee.util.trim(n[r]),null==g&&null!=E&&E(p.responseBody),(0===p.responseBody.length||t&&m===p.responseBody)&&"messageReceived"===p.state))){if(z(p),0<ne.length){b("debug")&&ee.util.debug("Invoking "+ne.length+" global callbacks: "+p.state);try{ee.util.each(ne,e)}catch(i){ee.util.log(d.logLevel,["Callback exception"+i])}}if("function"==typeof d.callback){b("debug")&&ee.util.debug("Invoking request callbacks");try{d.callback(p)}catch(i){ee.util.log(d.logLevel,["Callback exception"+i])}}}}I(e),this.subscribe=function(e){I(e),A()},this.execute=function(){A()},this.close=function(){O()},this.disconnect=function(){w()},this.getUrl=function(){return d.url},this.push=function(e,t){if(null!=t){var n=d.dispatchUrl;d.dispatchUrl=t,q(e),d.dispatchUrl=n}else q(e)},this.getUUID=function(){return d.uuid},this.pushLocal=function(e){!function(e){if(0!==e.length)try{g?g.localSend(e):a&&a.signal("localMessage",ee.util.stringifyJSON({id:T,event:e}))}catch(t){ee.util.error(t)}}(e)},this.enableProtocol=function(e){return d.enableProtocol},this.init=function(){t()},this.request=d,this.response=p}}).subscribe=function(e,t,n){"function"==typeof t&&ee.addCallback(t),"string"!=typeof e?n=e:n.url=e,re=void 0!==n&&"undefined"!=typeof n.uuid?n.uuid:0;var r=new ee.AtmosphereRequest(n);return r.execute(),i[i.length]=r},ee.unsubscribe=function(){if(0<i.length)for(var e=[].concat(i),t=0;t<e.length;t++){var n=e[t];n.close(),clearTimeout(n.response.request.id),n.heartbeatTimer&&clearTimeout(n.heartbeatTimer)}i=[],ne=[]},ee.unsubscribeUrl=function(e){var t=-1;if(0<i.length)for(var n=0;n<i.length;n++){var r=i[n];if(r.getUrl()===e){r.close(),clearTimeout(r.response.request.id),r.heartbeatTimer&&clearTimeout(r.heartbeatTimer),t=n;break}}0<=t&&i.splice(t,1)},ee.addCallback=function(e){-1===ee.util.inArray(e,ne)&&ne.push(e)},ee.removeCallback=function(e){var t=ee.util.inArray(e,ne);-1!==t&&ne.splice(t,1)},ee.util={browser:{},parseHeaders:function(e){for(var t,n=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,r={};t=n.exec(e);)r[t[1]]=t[2];return r},now:function(){return(new Date).getTime()},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},inArray:function(e,t){if(!Array.prototype.indexOf){for(var n=t.length,r=0;r<n;++r)if(t[r]===e)return r;return-1}return t.indexOf(e)},isBinary:function(e){return/^\[object\s(?:Blob|ArrayBuffer|.+Array)\]$/.test(Object.prototype.toString.call(e))},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},getAbsoluteURL:function(e){if("undefined"==typeof document.createElement)return e;var t=document.createElement("div");return t.innerHTML='<a href="'+e+'"/>',encodeURI(decodeURI(t.firstChild.href))},prepareURL:function(e){var t=ee.util.now(),n=e.replace(/([?&])_=[^&]*/,"$1_="+t);return n+(n===e?(/\?/.test(e)?"&":"?")+"_="+t:"")},trim:function(e){return String.prototype.trim?e.toString().trim():e.toString().replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")},param:function(e){var t,n=[];function r(e,t){t=ee.util.isFunction(t)?t():null==t?"":t,n.push(encodeURIComponent(e)+"="+encodeURIComponent(t))}function i(n,e){var t;if(ee.util.isArray(e))ee.util.each(e,function(e,t){/\[\]$/.test(n)?r(n,t):i(n+"["+("object"===(void 0===t?"undefined":ie(t))?e:"")+"]",t)});else if("[object Object]"===Object.prototype.toString.call(e))for(t in e)i(n+"["+t+"]",e[t]);else r(n,e)}for(t in e)i(t,e[t]);return n.join("&").replace(/%20/g,"+")},storage:function(){try{return!(!window.localStorage||!window.StorageEvent)}catch(e){return!1}},iterate:function(t,n){var r;return n=n||0,function e(){r=setTimeout(function(){!1!==t()&&e()},n)}(),function(){clearTimeout(r)}},each:function(e,t,n){if(e){var r=0,i=e.length,o=ee.util.isArray(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e}},extend:function(e){var t,n,r;for(t=1;t<arguments.length;t++)if(null!=(n=arguments[t]))for(r in n)e[r]=n[r];return e},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},log:function(e,t){if(window.console){var n=window.console[e];"function"==typeof n&&n.apply(window.console,t)}},warn:function(){ee.util.log("warn",arguments)},info:function(){ee.util.log("info",arguments)},debug:function(){ee.util.log("debug",arguments)},error:function(){ee.util.log("error",arguments)},xhr:function(){try{return new window.XMLHttpRequest}catch(e){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}},parseJSON:function(e){return e?window.JSON&&window.JSON.parse?window.JSON.parse(e):new Function("return "+e)():null},stringifyJSON:function(t){var n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function l(e){return'"'+e.replace(n,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"'}function f(e){return e<10?"0"+e:e}return window.JSON&&window.JSON.stringify?window.JSON.stringify(t):function e(t,n){var r,i,o,s,a=n[t],u=void 0===a?"undefined":ie(a);switch(a&&"object"===(void 0===a?"undefined":ie(a))&&"function"==typeof a.toJSON&&(u=void 0===(a=a.toJSON(t))?"undefined":ie(a)),u){case"string":return l(a);case"number":return isFinite(a)?String(a):"null";case"boolean":return String(a);case"object":if(!a)return"null";switch(Object.prototype.toString.call(a)){case"[object Date]":return isFinite(a.valueOf())?'"'+a.getUTCFullYear()+"-"+f(a.getUTCMonth()+1)+"-"+f(a.getUTCDate())+"T"+f(a.getUTCHours())+":"+f(a.getUTCMinutes())+":"+f(a.getUTCSeconds())+'Z"':"null";case"[object Array]":for(o=a.length,s=[],r=0;r<o;r++)s.push(e(r,a)||"null");return"["+s.join(",")+"]";default:for(r in s=[],a)c.call(a,r)&&(i=e(r,a))&&s.push(l(r)+":"+i);return"{"+s.join(",")+"}"}}}("",{"":t})},checkCORSSupport:function(){if(ee.util.browser.msie&&!window.XDomainRequest&&+ee.util.browser.version.split(".")[0]<11)return!0;if(ee.util.browser.opera&&+ee.util.browser.version.split(".")<12)return!0;if("KreaTVWebKit/531"===ee.util.trim(navigator.userAgent).slice(0,16))return!0;if("kreatel"===ee.util.trim(navigator.userAgent).slice(-7).toLowerCase())return!0;var e=navigator.userAgent.toLowerCase().match(/.+android ([0-9]{1,2})/i),t=parseInt(e&&e[0]||-1,10);return!isNaN(t)&&-1<t&&t<3}},ee.util.now(),e=navigator.userAgent.toLowerCase(),"safari"===(t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(e)||e.indexOf("android")<0&&/version\/(.+) (safari)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[])[2]&&(t[2]=t[1],t[1]="safari"),ee.util.browser[t[1]||""]=!0,ee.util.browser.version=t[2]||"0",ee.util.browser.vmajor=ee.util.browser.version.split(".")[0],ee.util.browser.trident&&(ee.util.browser.msie=!0),(ee.util.browser.msie||ee.util.browser.mozilla&&1==+ee.util.browser.version.split(".")[0])&&(ee.util.storage=!1),ee.callbacks={unload:function(){ee.util.debug(new Date+" Atmosphere: unload event"),ee.unsubscribe()},beforeUnload:function(){ee.util.debug(new Date+" Atmosphere: beforeunload event"),ee._beforeUnloadState=!0,setTimeout(function(){ee.util.debug(new Date+" Atmosphere: beforeunload event timeout reached. Reset _beforeUnloadState flag"),ee._beforeUnloadState=!1},5e3)},offline:function(){if(ee.util.debug(new Date+" Atmosphere: offline event"),te=!0,0<i.length)for(var e=[].concat(i),t=0;t<e.length;t++){var n=e[t];n.request.handleOnlineOffline&&(n.close(),clearTimeout(n.response.request.id),n.heartbeatTimer&&clearTimeout(n.heartbeatTimer))}},online:function(){if(ee.util.debug(new Date+" Atmosphere: online event"),0<i.length)for(var e=0;e<i.length;e++)i[e].request.handleOnlineOffline&&(i[e].init(),i[e].execute());te=!1}},ee.bindEvents=function(){ee.util.on(window,"unload",ee.callbacks.unload),ee.util.on(window,"beforeunload",ee.callbacks.beforeUnload),ee.util.on(window,"offline",ee.callbacks.offline),ee.util.on(window,"online",ee.callbacks.online)},ee.unbindEvents=function(){ee.util.off(window,"unload",ee.callbacks.unload),ee.util.off(window,"beforeunload",ee.callbacks.beforeUnload),ee.util.off(window,"offline",ee.callbacks.offline),ee.util.off(window,"online",ee.callbacks.online)},ee.bindEvents(),ee},void 0!==h?p.exports=d():c.atmosphere=d()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/atmosphere.js/lib/atmosphere.js","/lib/atmosphere.js/lib")},{_process:114,buffer:104,timers:135}],11:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.asCredentials=function(e){var t=Object.keys(e);{if((0,c["default"])(t,["sid"]))return new h(e.sid);if((0,c["default"])(t,["wmid","token"]))return new _(e.wmid,e.token);if((0,c["default"])(t,["wmid"]))return new m(e.wmid);if((0,c["default"])(t,["data_token"]))return new E(e.data_token);throw new Error("Misconfigured credentials, should be one of {sid}, {wmid,token}, or {wmid}")}};d(g("./EnduserAuthService.js"));var c=d(g("array-equal"));function d(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function t(e){p(this,t),this.sid=e}return t.prototype.getHeaders=function(){return{"X-Stream-Sid":this.sid}},t}(),m=function(){function t(e){p(this,t),this.wmid=e}return t.prototype.getHeaders=function(){return{"X-Stream-Wmid":this.wmid}},t}(),_=function(){function n(e,t){p(this,n),this.wmid=e,this.token=t}return n.prototype.getHeaders=function(){return{"X-Stream-Wmid":this.wmid,Authorization:this.token}},n}(),E=function(){function t(e){p(this,t),this.data_token=e}return t.prototype.getHeaders=function(){return{"X-Stream-DataTool-Token":this.data_token}},t}()}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/auth/AuthService.js","/lib/auth")},{"./EnduserAuthService.js":12,_process:114,"array-equal":99,buffer:104,timers:135}],12:[function(e,t,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0;var c="/g/authenticate/v0",d="/p/authenticate/v0/legacy=false",p=function(){function r(e,t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),null==e)throw new Error("AJAX cannot be null.");var n=t.credentials;if(!n.wmid||!n.username||!n.password)throw new Error("Cannot login if any of sid, username or password is empty.");this.http=e,this.host=t.host||"app.quotemedia.com",this.credentials=n,this.method=t.method||"GET"}return r.prototype.login=function(e){"POST"==this.method?this.login_POST(e):this.login_GET(e)},r.prototype.login_POST=function(e){var t=this.host+d,n={wmId:this.credentials.wmid,username:this.credentials.username,password:this.credentials.password};this.http({url:t,type:"POST",contentType:"application/json",data:JSON.stringify(n),success:this.handleSuccess(e),failure:this.handleFailure(e)})},r.prototype.login_GET=function(e){var t=this.host+c;t+="/"+this.credentials.wmid+"/"+this.credentials.username+"/"+this.credentials.password+"/",this.http({url:t,dataType:"json",timeout:5e3,success:this.handleSuccess(e),failure:this.handleFailure(e)})},r.prototype.handleSuccess=function(t){return function(e){e.code&&"Ok"===e.code.name?t(null,e.sid):t(new Error("Login failed: "+e.code+", "+e.message))}},r.prototype.handleFailure=function(e){return function(){e(new Error("Auth HTTP error"))}},r}();h["default"]=p}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/auth/EnduserAuthService.js","/lib/auth")},{_process:114,buffer:104,timers:135}],13:[function(E,g,e){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c,d=E("./streamer-api.js"),p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("./streamer-utils.js")),h=E("jsbi"),m=(c=h)&&c.__esModule?c:{"default":c};var _={Formatter:function(){this.formatters={},this.formatters[_.Formatter._UNKOWNTYPE]=this._fmtunknown,this.formatters[d.messages.MessageTypeNames.ctrl.HEARTBEAT]=this._fmtheartbeat,this.formatters[d.messages.MessageTypeNames.ctrl.SUBSCRIBE]=this._fmtsubscribe,this.formatters[d.messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE]=this._fmtsubscriberesponse,this.formatters[d.messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE]=this._fmtunsubscriberesponse,this.formatters[d.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE]=this._fmtconnectresponse,this.formatters[d.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE]=this._fmtconnectionclose,this.formatters[d.messages.MessageTypeNames.ctrl.FLOW]=this._fmtflowmessage,this.formatters[d.messages.MessageTypeNames.ctrl.SLOW_CONNECTION]=this._fmtslowconnection,this.formatters[d.messages.MessageTypeNames.ctrl.STATS]=this._fmtstats,this.formatters[d.messages.MessageTypeNames.ctrl.STATS_RESPONSE]=this._fmtstatsresponse,this.formatters[d.messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT]=this._fmtinitialdatasent,this.formatters[d.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE]=this._fmtresubscribeMessage,this.formatters[d.messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE]=this._fmtexchangesubscribe,this.formatters[d.messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE]=this._fmtexchangesubscriberesponse,this.formatters[d.messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE]=this._fmtexchangeunsubscriberesponse,this.formatters[d.messages.MessageTypeNames.data.QUOTE]=this._fmtquote,this.formatters[d.messages.MessageTypeNames.data.PRICEDATA]=this._fmtpricedata,this.formatters[d.messages.MessageTypeNames.data.TRADE]=this._fmttrade,this.formatters[d.messages.MessageTypeNames.data.INTERVAL]=this._fmtinterval,this.formatters[d.messages.MessageTypeNames.data.NETHOUSEPOSITION]=this._fmtnethouseposition,this.formatters[d.messages.MessageTypeNames.data.MMQUOTE]=this._fmtmmquote,this.formatters[d.messages.MessageTypeNames.data.BOOKORDER]=this._fmtbookorder,this.formatters[d.messages.MessageTypeNames.data.PURGEBOOK]=this._fmtpurgebook,this.formatters[d.messages.MessageTypeNames.data.BOOKDELETE]=this._fmtbookdelete,this.formatters[d.messages.MessageTypeNames.data.SYMBOLINFO]=this._fmtsymbolinfo,this.formatters[d.messages.MessageTypeNames.data.SYMBOLSTATUS]=this._fmtsymbolstatus,this.formatters[d.messages.MessageTypeNames.data.DERIVATIVEINFO]=this._fmtderivativeinfo,this.formatters[d.messages.MessageTypeNames.data.LASTSALE]=this._fmtlastsale,this.formatters[d.messages.MessageTypeNames.data.LIMITUPLIMITDOWN]=this._fmtlimituplimitdown,this.formatters[d.messages.MessageTypeNames.data.IVGREEKS]=this._fmtivgreeks,this.formatters[d.messages.MessageTypeNames.data.IMBALANCESTATUS]=this._fmtimbalancestatus,this.formatters[d.messages.MessageTypeNames.data.ALERT]=this._fmtalert}};_.Formatter._UNKOWNTYPE="__UNKNOWN__",_.Formatter.prototype.fmt=function(e){var t=p.messagetype(e);null==t&&(t=_.Formatter._UNKOWNTYPE);var n=this.formatters[t];return null==n&&(n=_.Formatter._UNKOWNTYPE),n.call(this,e)},_.Formatter.prototype._fmtunknown=function(e){return null==e?"null":e["@T"]?p.getMessageName(e):e.toString()},_.Formatter.prototype._fmtquote=function(e){var t=new _.StringBuilder;return t.append("Q"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.indicator),t.sep(),t.append(e.sharesPerSizeUnit),t.sep(),t.append(e.bidPrice),t.sep(),t.append(e.bidSize),t.sep(),t.append(e.bidExcode),t.sep(),t.append(e.bidCondition),t.sep(),t.append(e.askPrice),t.sep(),t.append(e.askSize),t.sep(),t.append(e.askExcode),t.sep(),t.append(e.askCondition),t.toString()},_.Formatter.prototype._fmtpricedata=function(e){var t=new _.StringBuilder;return t.append("P"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.last),t.sep(),t.append(e.lastTradeSize),t.sep(),t.append(e.change),t.sep(),t.append(e.percentChange),t.sep(),t.append(e.tick),t.sep(),t.append(e.tradeCount),t.sep(),t.append(e.close),t.sep(),t.append(e.previousClose),t.sep(),t.append(e.open),t.sep(),t.append(e.high),t.sep(),t.append(e.annualHigh),t.sep(),t.append(e.low),t.sep(),t.append(e.annualLow),t.sep(),t.datetime(e.lastTradeTime),t.sep(),t.append(e.accumulatedPrice),t.sep(),t.append(e.accumulatedVolume),t.sep(),t.append(e.accumulatedTradeValue),t.sep(),t.append(e.twap),t.sep(),t.append(e.vwap),t.sep(),t.datetime(e.preMarketTradeTime),t.sep(),t.append(e.preMarketLast),t.sep(),t.append(e.preMarketVolume),t.sep(),t.append(e.preMarketChange),t.sep(),t.append(e.preMarketPercentChange),t.sep(),t.datetime(e.postMarketTradeTime),t.sep(),t.append(e.postMarketLast),t.sep(),t.append(e.postMarketVolume),t.sep(),t.append(e.postMarketChange),t.sep(),t.append(e.postMarketPercentChange),t.sep(),t.append(e.lastTradeExcode),t.toString()},_.Formatter.prototype._fmtlastsale=function(e){var t=new _.StringBuilder;return t.append("LS"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.last),t.sep(),t.append(e.change),t.sep(),t.append(e.percentChange),t.sep(),t.append(e.accumulatedVolume),t.sep(),t.append(e.tick),t.toString()},_.Formatter.prototype._fmtlimituplimitdown=function(e){var t=new _.StringBuilder;return t.append("LULD"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.datetime(e.effectiveTime),t.sep(),t.append(e.lowerLimit),t.sep(),t.append(e.upperLimit),t.sep(),t.append(e.bidNotExecutable),t.sep(),t.append(e.askNotExecutable),t.toString()},_.Formatter.prototype._fmtivgreeks=function(e){var t=new _.StringBuilder;return t.append("IVG"),t.sep(),t.datetime(e.lastCalculation),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.delta),t.sep(),t.append(e.gamma),t.sep(),t.append(e.vega),t.sep(),t.append(e.rho),t.sep(),t.append(e.theta),t.sep(),t.append(e.midIV),t.sep(),t.append(e.midIVChange.toFixed(5)),t.sep(),t.append(e.bidIV),t.sep(),t.append(e.askIV),t.sep(),t.append(e.mark),t.sep(),t.append(e.intrinsicValue),t.sep(),t.append(e.extrinsicValue),t.toString()},_.Formatter.prototype._fmtimbalancestatus=function(e){var t=new _.StringBuilder;return t.append("IS"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.imbalanceType),t.sep(),t.append(e.referencePrice),t.sep(),t.append(e.size),t.sep(),t.append(e.side),t.sep(),t.append(e.pairedVolume),t.sep(),t.append(e.nearIndicativePrice),t.sep(),t.append(e.farIndicativePrice),t.sep(),t.append(e.priceVariation),t.toString()},_.Formatter.prototype._fmttrade=function(e){var t=new _.StringBuilder;return t.append("T"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.excode),t.sep(),t.append(e.sequenceNumber),t.sep(),t.append(e.matchID),t.sep(),t.append(e.price),t.sep(),t.append(e.size),t.sep(),t.append(e.tick),t.sep(),t.append(e.indicator),t.sep(),t.append(e.rangeIndicator),t.sep(),t.append(e.sellerID),t.sep(),t.append(e.buyerID),t.sep(),t.append(e.accumulatedVolume),t.sep(),t.append(e.vwap),t.toString()},_.Formatter.prototype._fmtinterval=function(e){var t=new _.StringBuilder;return t.append("I"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.last),t.sep(),t.datetime(e.lastTime),t.sep(),t.append(e.open),t.sep(),t.datetime(e.openTime),t.sep(),t.append(e.high),t.sep(),t.append(e.low),t.sep(),t.datetime(e.startTime),t.sep(),t.append(e.tradeValue),t.sep(),t.append(e.volume),t.sep(),t.append(e.vwap),t.toString()},_.Formatter.prototype._fmtnethouseposition=function(e){var t=new _.StringBuilder;return t.append("NHP"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.marketMakerID),t.sep(),t.append(e.buyValue),t.sep(),t.append(e.buyVolume),t.sep(),t.append(e.buyBlockTransactions),t.sep(),t.append(e.buyBlockValue),t.sep(),t.append(e.buyBlockVolume),t.sep(),t.append(e.sellValue),t.sep(),t.append(e.sellVolume),t.sep(),t.append(e.sellBlockTransactions),t.sep(),t.append(e.sellBlockValue),t.sep(),t.append(e.sellBlockVolume),t.toString()},_.Formatter.prototype._fmtmmquote=function(e){var t=new _.StringBuilder;return t.append("MMQ"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.bidPrice),t.sep(),t.append(e.bidSize),t.sep(),t.append(e.bidChange),t.sep(),t.append(e.askPrice),t.sep(),t.append(e.askSize),t.sep(),t.append(e.askChange),t.sep(),t.append(e.indicator),t.sep(),t.append(e.marketMakerID),t.sep(),t.append(e.sharesPerSizeUnit),t.toString()},_.Formatter.prototype._fmtbookorder=function(e){var t=new _.StringBuilder;return t.append("BO"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.orderID),t.sep(),t.append(e.orderReference),t.sep(),t.append(e.marketMakerID),t.sep(),t.append(e.orderSide),t.sep(),t.datetime(e.lastUpdate),t.sep(),t.append(e.price),t.sep(),t.append(e.size),t.sep(),t.append(e.display),t.sep(),t.append(e.orderChangeType),t.toString()},_.Formatter.prototype._fmtpurgebook=function(e){var t=new _.StringBuilder;return t.append("PB"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.toString()},_.Formatter.prototype._fmtbookdelete=function(e){var t=new _.StringBuilder;return t.append("BD"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.orderReference),t.toString()},_.Formatter.prototype._fmtsymbolinfo=function(e){var t=new _.StringBuilder;return t.append("SI"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.excode),t.sep(),t.append(e.instrumentType),t.sep(),t.append(e.currencyId),t.sep(),t.append(e.haltStatus),t.sep(),t.append(e.haltIndicator),t.sep(),t.append(e.regSHOStatus),t.sep(),t.append(e.pqe),t.sep(),t.append(e.caveatEmptor),t.toString()},_.Formatter.prototype._fmtsymbolstatus=function(e){var t=new _.StringBuilder;return t.append("SS"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.haltStatus),t.sep(),t.append(e.haltIndicator),t.sep(),t.append(e.regSHOStatus),t.sep(),t.append(e.closingCalculatedPrice),t.sep(),t.datetime(e.effectiveTime),t.sep(),t.datetime(e.openingTime),t.sep(),t.append(e.note),t.toString()},_.Formatter.prototype._fmtderivativeinfo=function(e){var t=new _.StringBuilder;return t.append("DI"),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.rootSymbol),t.sep(),t.datetime(e.expiration),t.sep(),t.append(e.openInterest),t.sep(),t.datetime(e.delivery),t.sep(),t.append(e.contractSize),t.sep(),t.append(e.callPutIndicator),t.sep(),t.append(e.minTickSize),t.toString()},_.Formatter.prototype._fmtalert=function(e){var t=new _.StringBuilder;return t.append("A"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.symbol),t.sep(),t.append(e.locateCode),t.sep(),t.append(e.instrumentType),t.sep(),t.append(e.alertId),t.sep(),t.append(e.triggerValue),t.toString()},_.Formatter.prototype._fmtheartbeat=function(e){var t=new _.StringBuilder;return t.append("HEARBEAT"),t.sep(),t.datetime(e.timestamp),t.toString()},_.Formatter.prototype._fmtsubscribe=function(e){var t=new _.StringBuilder;return t.append("SUBSCRIBE"),t.toString()},_.Formatter.prototype._fmtexchangesubscribe=function(e){var t=new _.StringBuilder;return t.append("EXCHANGE SUBSCRIBE"),t.toString()},_.Formatter.prototype._fmtstats=function(e){var t=new _.StringBuilder;return t.append("STATS"),t.toString()},_.Formatter.prototype._fmtsubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("SUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtexchangesubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("EXCHANGE SUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtunsubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("UN-SUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtexchangeunsubscriberesponse=function(e){var t=new _.StringBuilder;return t.append("EXCHANGE UNSUBSCRIBED"),t.sep(),this.__baseresponse(e,t),t.toString()},_.Formatter.prototype._fmtconnectresponse=function(e){var t=new _.StringBuilder;return t.append("CONNECT"),t.sep(),this.__baseresponse(e,t),t.sep(),t.append(e.version),t.sep(),t.append(e.flowControlCheckInterval),t.sep(),t.append(e.serverInstance),t.sep(),t.append(e.conflationMs),t.sep(),t.append(e.rejectExcessiveConnection),t.sep(),t.append(e.maxEntitlementsPerSubscription),t.toString()},_.Formatter.prototype._fmtconnectionclose=function(e){var t=new _.StringBuilder;return t.append("CLOSE"),t.sep(),t.append(e.code),t.sep(),t.append(e.reason),t.toString()},_.Formatter.prototype._fmtslowconnection=function(e){var t=new _.StringBuilder;return t.append("SLOW"),t.sep(),t.append(e.timesExceeded),t.sep(),t.append(e.maxExceed),t.toString()},_.Formatter.prototype._fmtstatsresponse=function(e){var t=new _.StringBuilder;return t.append("STATS"),t.sep(),this.__baseresponse(e,t),t.sep(),t.append("number of available l1 symbols: "),t.append(e.numberOfAvailableSymbolsL1),t.sep(),t.append("number of available l2 symbols: "),t.append(e.numberOfAvailableSymbolsL2),t.sep(),t.append("number of available connections: "),t.append(e.numberOfAvailableConnections),t.sep(),t.append("number of subscribed l1 symbols: "),t.append(e.numberOfSubscribedSymbolsL1),t.sep(),t.append("number of subscribed l2 symbols: "),t.append(e.numberOfSubscribedSymbolsL2),t.sep(),t.append("number of open connections: "),t.append(e.numberOfOpenedConnections),t.sep(),t.append("number of subscribed exchanges: "),t.append(e.numberOfSubscribedExchanges),t.toString()},_.Formatter.prototype._fmtinitialdatasent=function(e){var t=new _.StringBuilder;return t.append("INITIAL DATA SENT"),t.sep(),t.datetime(e.timestamp),t.sep(),t.append(e.requestId),t.toString()},_.Formatter.prototype._fmtresubscribeMessage=function(e){var t=new _.StringBuilder;return t.append("RESUBSCRIBE MESSAGE"),t.sep(),t.datetime(e.timestamp),t.toString()},_.Formatter.prototype._fmtflowmessage=function(e){var t=new _.StringBuilder;return t.append("FLOW"),t.sep(),t.append(e.sequence),t.toString()},_.Formatter.prototype.__baseresponse=function(e,t){t.append(e.code),t.sep(),t.append(e.reason)},_.StringBuilder=function(){this._str=""},_.StringBuilder.SEP=", ",_.StringBuilder.prototype.append=function(e){this._str+=e},_.StringBuilder.prototype.sep=function(){this.append(_.StringBuilder.SEP)},_.StringBuilder.prototype.datetime=function(e){if(null!=e){var t=e;e instanceof m["default"]&&(t=m["default"].toNumber(e)),this._str+=""+new Date(t).toUTCString()}else this._str+="null"},_.StringBuilder.prototype.toString=function(){return this._str},_.msgfmt=new _.Formatter,_.format=function(e){return _.msgfmt.fmt(e)},g.exports=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/formatting.js","/lib")},{"./streamer-api.js":92,"./streamer-utils.js":94,_process:114,buffer:104,jsbi:111,timers:135}],14:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0,_["default"]=function(e){var t=e.url,n=e.success||function(){},r=e.failure||function(){},i=e.type||"GET",o=e.applicationType,s=e.data,a=e.timeout,u=h(e.dataType),l=p();l.onreadystatechange=function(){4===l.readyState&&(200===l.status?n(u(l.responseText)):r(l.status))},o&&l.setRequestHeader("Content-Type",o);l.open(i,t,!0),a&&(l.timeout=a);l.send(s)};var c,d=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new(0,m("xmlhttprequest").XMLHttpRequest)}],p=(c=null,function(){if(null===c){for(c=0;c<d.length;c++)try{return d[c]()}catch(e){}if(c===d.length)throw c=null,new Error("No HTTP implementation found.")}return d[c]()}),h=function(e){switch(e?e.toLowerCase():e){case"json":return JSON.parse;default:return function(e){return e}}}}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/http.js","/lib")},{_process:114,buffer:104,timers:135,xmlhttprequest:140}],15:[function(g,T,e){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c=E(g("json3"));g("./polyfills");var d=_(g("./streamer-utils.js")),p=E(g("./Streamer.js")),h=_(g("./formatting.js")),m=g("./streamer-api.js");function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function E(e){return e&&e.__esModule?e:{"default":e}}window&&(window.JSON=window.JSON||c["default"]),p["default"].formatting=h,p["default"].dataTypes=m.messages.control.MarketdataType,p["default"].dataTypes.get=function(e){var t=d.getMessageName(e);return p["default"].dataTypes[t]?t:"UnknownType["+t+"]"},T.exports=p["default"]}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/index.js","/lib")},{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":92,"./streamer-utils.js":94,_process:114,buffer:104,json3:112,timers:135}],16:[function(e,t,p){(function(t,n,r,i,o,s,a,u,l,f,c){"use strict";p.__esModule=!0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};p.asLogger=function e(o){{if(!o)return e({log:function(){}});if("function"==typeof o)return e({log:o});var t=function(){for(var i={log:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o[e]?o[e].apply(o,n):o.log&&o.log.apply(o,[e].concat(n))}},t=["info","error","warn","debug"],e=function(){var e=t[n],r=e;i[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.log.apply(i,[r].concat(t))}},n=0;n<t.length;n++)e();return{v:i}}();if("object"===(void 0===t?"undefined":d(t)))return t.v}}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/logging.js","/lib")},{_process:114,buffer:104,timers:135}],17:[function(e,t,c){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";c.__esModule=!0;c.Encodings={UNDEFINED:"undefined",UNDEFINED_CHAR:"U",NONE:"none",NONE_CHAR:"N",BASE64:"base64",BASE64_CHAR:"B"},c.MimeTypes={UNDEFINED:"undefined",UNDEFINED_CHAR:"U",JSON:"application/json",JSON_CHAR:"J",QMCI:"application/qmci",QMCI_CHAR:"Q",QITCH:"application/qitch",QITCH_CHAR:"I"},c.lpad=function(e,t){var n,r=e.toString();if(r.length==t)return r;if(r.length>t)throw"Number to long.";0<=e?n="0":(r=r.slice(1),n="-");for(var i=t-r.length,o=1;o<i;o++)n+="0";return n+r}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/message.js","/lib")},{_process:114,buffer:104,timers:135}],18:[function(e,t,n){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c,d,p,h;String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n}),"function"!=typeof Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.map||(Array.prototype.map=function(e){var t,n,r;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=new Array(o),r=0;r<o;){var s,a;r in i&&(s=i[r],a=e.call(t,s,r,i),n[r]=a),r++}return n}),Array.from||(Array.from=(c=Object.prototype.toString,d=function(e){return"function"==typeof e||"[object Function]"===c.call(e)},p=Math.pow(2,53)-1,h=function(e){var t,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),p)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1<arguments.length?arguments[1]:void undefined;if(void 0!==r){if(!d(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var i,o=h(t.length),s=d(this)?Object(new this(o)):new Array(o),a=0;a<o;)i=t[a],s[a]=r?void 0===n?r(i,a):r.call(n,i,a):i,a+=1;return s.length=o,s}))}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/polyfills.js","/lib")},{_process:114,buffer:104,timers:135}],19:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c=m(E("./Bytes")),d=E("./DataOperations"),p=E("./QitchConstants"),h=m(E("./Qitch"));function m(e){return e&&e.__esModule?e:{"default":e}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.lengthToBytes=function(e,t,n){return c["default"].putshort(e,t+p.BLOCK_HEADER_LENGTH_OFFSET,d.UShort.fromint(n))},e.lengthGetValue=function(e,t){return c["default"].getshort(e,t+p.BLOCK_HEADER_LENGTH_OFFSET)},e.messageCountToBytes=function(e,t,n){return e[t+p.BLOCK_HEADER_MESSAGECOUNT_OFFSET]=d.UByte.fromint(n),e},e.messageCountGetValue=function(e,t){return d.UByte.frombyte(e[t+p.BLOCK_HEADER_MESSAGECOUNT_OFFSET])},e.reservedToBytes=function(e,t,n){return e[t+p.BLOCK_HEADER_RESERVED_OFFSET]=n,e},e.sequenceToBytes=function(e,t,n){return h["default"].putUInt32(e,t+p.BLOCK_HEADER_SEQUENCE_OFFSET,n)},e.sequenceGetValue=function(e,t){return h["default"].uint32(e,t+p.BLOCK_HEADER_SEQUENCE_OFFSET)},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/BlockHeader.js","/lib/qitch")},{"./Bytes":20,"./DataOperations":21,"./Qitch":25,"./QitchConstants":26,_process:114,buffer:104,timers:135}],20:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0;var c,d=S("jsbi"),p=(c=d)&&c.__esModule?c:{"default":c};var h=Math.pow(2,8),m=Math.pow(2,16),_=Math.pow(2,24),E=p["default"].BigInt(32),g=p["default"].BigInt(40),T=p["default"].BigInt(48),b=p["default"].BigInt(56),y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.putshort=function(e,t,n){return e[t]=n>>8,e[t+1]=n,e},e.getshort=function(e,t){return e[t]*h|255&e[t+1]},e.putint=function(e,t,n){return e[t]=n>>24,e[t+1]=n>>16,e[t+2]=n>>8,e[t+3]=n,e},e.getint=function(e,t){return e[t]*_|(255&e[t+1])*m|(255&e[t+2])*h|255&e[t+3]},e.getlong=function(e,t){return p["default"].bitwiseOr(p["default"].bitwiseOr(p["default"].bitwiseOr(p["default"].leftShift(p["default"].BigInt(e[t]),b),p["default"].leftShift(p["default"].BigInt(255&e[t+1]),T)),p["default"].bitwiseOr(p["default"].leftShift(p["default"].BigInt(255&e[t+2]),g),p["default"].leftShift(p["default"].BigInt(255&e[t+3]),E))),p["default"].bitwiseOr(p["default"].bitwiseOr(p["default"].BigInt((255&e[t+4])*_),p["default"].BigInt((255&e[t+5])*m)),p["default"].bitwiseOr(p["default"].BigInt((255&e[t+6])*h),p["default"].BigInt(255&e[t+7]))))},e}();w["default"]=y}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/qitch/Bytes.js","/lib/qitch")},{_process:114,buffer:104,jsbi:111,timers:135}],21:[function(e,t,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}_.__esModule=!0;var d=function(){function t(){c(this,t)}return t.fromint=function(e){if(e<t.prototype.MIN_VALUE)throw"Value underflows unsiged short";if(t.prototype.MAX_VALUE<e)throw"Value overflows unsigned short";return e<t.prototype.MAX_SHORT_VALUE?e:e-(t.prototype.MAX_VALUE+1)},t.fromshort=function(e){return 65535&e},t}();d.prototype.LENGTH=2,d.prototype.MIN_VALUE=0,d.prototype.MAX_VALUE=65535,d.prototype.MAX_SHORT_VALUE=32767;var p=function(){function t(){c(this,t)}return t.fromint=function(e){if(e<t.prototype.MIN_VALUE)throw"Value underflows unsigned byte";if(t.prototype.MAX_VALUE<e)throw"Value overflows unsigned byte";return e<t.prototype.BYTE_MAX_VALUE?e:e-(t.prototype.MAX_VALUE+1)},t.frombyte=function(e){return 255&e},t}();p.prototype.LENGTH=1,p.prototype.MIN_VALUE=0,p.prototype.MAX_VALUE=255,p.prototype.BYTE_MAX_VALUE=127;var h=function(){function t(){c(this,t)}return t.fromlong=function(e){if(e<t.prototype.MIN_VALUE)throw"Value underfows unsigned int";if(t.prototype.MAX_VALUE<e)throw"Value overflows unsigned int";return e<t.prototype.INT_MAX_VALUE?e:e-(t.prototype.MAX_VALUE+1)},t.fromint=function(e){return 4294967295&e},t}();h.prototype.LENGTH=4,h.prototype.MIN_VALUE=0,h.prototype.MAX_VALUE=4294967295,h.prototype.INT_MAX_VALUE=2147483647;var m=function(){function a(){c(this,a)}return a.put=function(e,t,n,r){if(e.length<t+r)throw"Not enough space in destination array";var i=t;if(null!=n&&0!==n.length){if(n.length>r)throw"String overflows maximum length";var o=void 0;for(o=0;o<n.length;o++)e[i++]=n.charAt(o).charCodeAt(0)}var s=void 0;for(s=i;s<t+r;s++)e[s]=a.prototype.PADDING;return e},a.get=function(e,t,n){var r=t,i=n;if(e.length<r+i)throw"Not enough bytes in source array";for(;0<i&&e[r+i-1]===a.prototype.PADDING;)i--;return String.fromCharCode.apply(String,e.slice(r,r+i))},a}();m.prototype.PADDING=32,_.UByte=p,_.UShort=d,_.UInt=h,_.ASCIIString=m}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/qitch/DataOperations.js","/lib/qitch")},{_process:114,buffer:104,timers:135}],22:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0;var c=h("../streamer-api");var d={1:"QUOTE",2:"PRICEDATA",3:"TRADE",4:"MMQUOTE",5:"ORDERBOOK",6:"INTERVAL",7:"NETHOUSEPOSITION",8:"LASTSALE",9:"LIMITUPLIMITDOWN",10:"IVGREEKS",11:"IMBALANCESTATUS"},p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.marketdatatypeToInt=function(t){return Object.keys(d).find(function(e){return d[e]===t})},e.ubyteToMarketdataType=function(e){return d[e]},e.ubyteToEntitlementType=function(e){switch(e){case 1:return"RT";case 2:return"RTN";case 3:return"RTB";case 4:return"DL";case 6:return"RTO";case 7:return"DLO";case 8:return"DLN";default:return"NA"}},e.subscribeActionToChar=function(e){switch(e){case c.messages.control.Action.SUBSCRIBE:return"S";case c.messages.control.Action.UNSUBSCRIBE:return"U"}},e}();m["default"]=p}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/EnumValueTranslator.js","/lib/qitch")},{"../streamer-api":92,_process:114,buffer:104,timers:135}],23:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0;var c=p("../streamer-api");var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.symbols=new Map}return e.prototype.injectLocateCode=function(e){e instanceof c.messages.market.SymbolInfo?this.symbols.set(e.locateCode,e.symbol):e instanceof c.messages.market.DataMessage&&null!==e.locateCode&&(e.symbol=this.symbols.get(e.locateCode))},e}();h["default"]=d}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/LocateCodeInjector.js","/lib/qitch")},{"../streamer-api":92,_process:114,buffer:104,timers:135}],24:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=E("./Bytes"),p=(c=d)&&c.__esModule?c:{"default":c},h=E("./DataOperations"),m=E("./QitchConstants");var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.lengthGetValue=function(e,t){return h.UShort.fromshort(p["default"].getshort(e,t+m.MESSAGE_HEADER_LENGTH_OFFSET))},e.lengthGetBytes=function(e,t,n){return p["default"].putshort(e,t+m.MESSAGE_HEADER_LENGTH_OFFSET,h.UShort.fromint(n))},e.typeGetValue=function(e,t){return h.UByte.frombyte(e[t+m.MESSAGE_HEADER_TYPE_OFFSET])},e.typeGetBytes=function(e,t,n){return e[t+m.MESSAGE_HEADER_TYPE_OFFSET]=h.UByte.fromint(n),e},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/MessageHeader.js","/lib/qitch")},{"./Bytes":20,"./DataOperations":21,"./QitchConstants":26,_process:114,buffer:104,timers:135}],25:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0;var c=b("../streamer-api"),d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(b("./QitchConstants")),p=g(b("./Bytes")),h=b("./DataOperations"),m=g(b("bignumber.js")),_=g(b("jsbi")),E=g(b("./EnumValueTranslator"));function g(e){return e&&e.__esModule?e:{"default":e}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.copyArray=function(e,t,n,r,i){if(0!==i){if(!(e instanceof Int8Array))throw"Source must be a byte array";if(!(n instanceof Int8Array))throw"Destination must be a byte array";if(t>=e.length)throw"Source index is out of range. Index: "+t+", max length: "+e.length;if(r>=n.length)throw"Destination index is out of range. Index: "+r+", max length: "+n.length;if(t+i>e.length||r+i>n.length)throw"Length is out of range";var o=void 0;for(o=0;o<i;o++)n[r+o]=e[t+o]}},e.bool=function(e,t){if(e instanceof Int8Array)return 0!==e[t];throw"Invalid source. Expected: Int8Array"},e.putBool=function(e,t,n){if(e instanceof Int8Array)return e[t]=n?1:0,e;throw"Invalid destination. Expected: Int8Array"},e.putByte=function(e,t,n){if(e instanceof Int8Array)return e[t]=h.UByte.fromint(n),e;throw"Invalid destination. Expected: Int8Array"},e.int32=function(e,t){if(e instanceof Int8Array)return p["default"].getint(e,t);throw"Invalid source. Expected: Int8Array"},e.putInt32=function(e,t,n){if(e instanceof Int8Array)return p["default"].putint(e,t,n);throw"Invalid destination. Expected: Int8Array"},e.uint32=function(e,t){if(e instanceof Int8Array)return h.UInt.fromint(p["default"].getint(e,t));throw"Invalid source. Expected: Int8Array"},e.putUInt32=function(e,t,n){if(e instanceof Int8Array)return p["default"].putint(e,t,h.UInt.fromlong(n));throw"Invalid destination. Expected: Int8Array"},e.asciichar=function(e,t){if(e instanceof Int8Array){if(t>=e.length)return null;var n=e[t];return n!==d.ASCII_NULL?String.fromCharCode(n):null}throw"Invalid source. Expected: Int8Array"},e.int64=function(e,t){if(e instanceof Int8Array)return p["default"].getlong(e,t);throw"Invalid source. Expected: Int8Array"},e.dec8double=function(e,t){if(e instanceof Int8Array)return new m["default"](p["default"].getlong(e,t).toString()).dividedBy(d.PRICE_DIVISOR);throw"Invalid source. Expected: Int8Array"},e.sbyte=function(e,t){if(e instanceof Int8Array)return e[t];throw"Invalid source. Expected: Int8Array"},e.timestamp=function(e,t){if(e instanceof Int8Array){var n=p["default"].getlong(e,t);return _["default"].equal(n,d.TIMESTAMP_NULL)?null:n}throw"Invalid source. Expected: Int8Array"},e.locatecode=function(e,t){if(e instanceof Int8Array)return p["default"].getint(e,t);throw"Invalid source. Expected: Int8Array"},e.symbol=function(e,t){if(e instanceof Int8Array)return t+d.SYMBOL_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.SYMBOL_LENGTH);throw"Invalid source. Expected: Int8Array"},e.putSymbol=function(e,t,n){if(e instanceof Int8Array)return h.ASCIIString.put(e,t,n,d.SYMBOL_LENGTH);throw"Invalid destination. Expected: Int8Array"},e.excode=function(e,t){if(e instanceof Int8Array)return t+d.EXCODE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.EXCODE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.mmid=function(e,t){if(e instanceof Int8Array)return t+d.MMID_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.MMID_LENGTH);throw"Invalid source. Expected: Int8Array"},e.orderId=function(e,t){if(e instanceof Int8Array)return p["default"].getlong(e,t);throw"Invalid source. Expected: Int8Array"},e.orderIdLegacy=function(e,t){if(e instanceof Int8Array)return t+d.ORDERID_LENGTH>e.length?null:p["default"].getlong(e,t).toString();throw"Invalid source. Expected: Int8Array"},e.currencyid=function(e,t){if(e instanceof Int8Array)return t+d.CURRENCYID_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.CURRENCYID_LENGTH);throw"Invalid source. Expected: Int8Array"},e.tick=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:String.fromCharCode(e[t]);throw"Invalid source. Expected: Int8Array"},e.bookOrderChangeType=function(e,t){if(e instanceof Int8Array){if(t>=e.length)return null;var n=String.fromCharCode(e[t]);return n===d.ASCIICHAR_NULL?null:c.messages.market.OrderChangeType[n]}throw"Invalid source. Expected: Int8Array"},e.orderside=function(e,t){if(e instanceof Int8Array){if(t>=e.length)return null;var n=String.fromCharCode(e[t]);return n===d.ASCIICHAR_NULL?null:n}throw"Invalid source. Expected: Int8Array"},e.rangeindicator=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:String.fromCharCode(e[t]);throw"Invalid source. Expected: Int8Array"},e.instrumenttype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:c.messages.market.InstrumentType[h.UByte.frombyte(e[t])];throw"Invalid source. Expected: Int8Array"},e.imbalancetype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:c.messages.market.ImbalanceType[h.UByte.frombyte(e[t])];throw"Invalid source. Expected: Int8Array"},e.orderreference=function(e,t){if(e instanceof Int8Array)return t+d.ORDER_REFERENCE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.ORDER_REFERENCE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.reason=function(e,t){if(e instanceof Int8Array)return t+d.REASON_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.REASON_LENGTH);throw"Invalid source. Expected: Int8Array"},e.version=function(e,t){if(e instanceof Int8Array)return t+d.VERSION_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.VERSION_LENGTH);throw"Invalid source. Expected: Int8Array"},e.serverInstance=function(e,t){if(e instanceof Int8Array)return t+d.SERVER_INSTANCE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.SERVER_INSTANCE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.note=function(e,t){if(e instanceof Int8Array)return t+d.NOTE_LENGTH>e.length?null:h.ASCIIString.get(e,t,d.NOTE_LENGTH);throw"Invalid source. Expected: Int8Array"},e.putAction=function(e,t,n){if(e instanceof Int8Array)return e[t]=E["default"].subscribeActionToChar(n).charCodeAt(0),e;throw"Invalid destination. Expected: Int8Array"},e.putMimetype=function(e,t,n){if(e instanceof Int8Array)return h.ASCIIString.put(e,t,n,d.MIMETYPE_LENGTH);throw"Invalid destination. Expected: Int8Array"},e.putConflation=function(e,t,n){if(e instanceof Int8Array)return this.putInt32(e,t,null!=n&&""!==n?n:d.CONFLATION_NULL);throw"Invalid destination. Expected: Int8Array"},e.marketdatatype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:E["default"].ubyteToMarketdataType(h.UByte.frombyte(e[t]));throw"Invalid source. Expected: Int8Array"},e.putMarketdatatype=function(e,t,n){if(e instanceof Int8Array)return e[t]=h.UByte.fromint(E["default"].marketdatatypeToInt(n)),e;throw"Invalid destination. Expected: Int8Array"},e.entitlementtype=function(e,t){if(e instanceof Int8Array)return t>=e.length?null:E["default"].ubyteToEntitlementType(h.UByte.frombyte(e[t]));throw"Invalid source. Expected: Int8Array"},e.entitlement=function(e,t){if(e instanceof Int8Array){var n=new c.messages.control.StreamEntitlement;return n.symbol=this.symbol(e,t),n.marketdatatype=this.marketdatatype(e,t+d.SYMBOL_LENGTH),n.entitlement=this.entitlementtype(e,t+d.SYMBOL_LENGTH+d.MARKETDATATYPE_LENGTH),n}throw"Invalid source. Expected: Int8Array"},e}();y["default"]=T}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/qitch/Qitch.js","/lib/qitch")},{"../streamer-api":92,"./Bytes":20,"./DataOperations":21,"./EnumValueTranslator":22,"./QitchConstants":26,_process:114,"bignumber.js":101,buffer:104,jsbi:111,timers:135}],26:[function(M,e,L){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";L.__esModule=!0,L.BLOCK_HEADER_LENGTH=L.BLOCK_HEADER_SEQUENCE_OFFSET=L.BLOCK_HEADER_RESERVED_OFFSET=L.BLOCK_HEADER_MESSAGECOUNT_OFFSET=L.BLOCK_HEADER_LENGTH_OFFSET=L.MESSAGE_HEADER_LENGTH=L.MESSAGE_HEADER_TYPE_OFFSET=L.MESSAGE_HEADER_LENGTH_OFFSET=L.NOTE_LENGTH=L.ENTITLEMENT_LENGTH=L.ENTITLEMENTTYPE_LENGTH=L.MARKETDATATYPE_LENGTH=L.CONFLATION_LENGTH=L.MIMETYPE_LENGTH=L.ACTION_LENGTH=L.BOOLEAN_LENGTH=L.VERSION_LENGTH=L.SERVER_INSTANCE_LENGTH=L.REASON_LENGTH=L.ORDER_REFERENCE_LENGTH=L.PRICE_DIVISOR=L.RANGEINDICATOR_LENGTH=L.INSTRUMENTTYPE_LENGTH=L.SYMBOL_LENGTH=L.CURRENCYID_LENGTH=L.EXCODE_LENGTH=L.TICK_LENGTH=L.IMBALANCETYPE_LENGTH=L.ORDERSIDE_LENGTH=L.ORDERID_LENGTH=L.MMID_LENGTH=L.LOCATECODE_LENGTH=L.TIMESTAMP_LENGTH=L.DOUBLE_LENGTH=L.LONG_LENGTH=L.INT_LENGTH=L.SHORT_LENGTH=L.ASCIICHAR_LENGTH=L.BYTE_LENGTH=L.CONFLATION_NULL=L.TIMESTAMP_NULL=L.ASCIICHAR_NULL=L.ASCII_NULL=undefined;var c,d=M("jsbi"),p=(c=d)&&c.__esModule?c:{"default":c};L.ASCII_NULL=0,L.ASCIICHAR_NULL="0",L.TIMESTAMP_NULL=p["default"].BigInt("-9223372036854775808"),L.CONFLATION_NULL=-1;var h=L.BYTE_LENGTH=1,m=L.ASCIICHAR_LENGTH=1,_=L.SHORT_LENGTH=2,E=L.INT_LENGTH=4,g=L.LONG_LENGTH=8,T=(L.DOUBLE_LENGTH=8,L.TIMESTAMP_LENGTH=8,L.LOCATECODE_LENGTH=E,L.MMID_LENGTH=4),b=L.ORDERID_LENGTH=g,y=(L.ORDERSIDE_LENGTH=m,L.IMBALANCETYPE_LENGTH=m,L.TICK_LENGTH=m,L.EXCODE_LENGTH=5),S=(L.CURRENCYID_LENGTH=3,L.SYMBOL_LENGTH=26),w=(L.INSTRUMENTTYPE_LENGTH=m,L.RANGEINDICATOR_LENGTH=h,L.PRICE_DIVISOR=1e8,L.ORDER_REFERENCE_LENGTH=y+S+T+b,L.REASON_LENGTH=40,L.SERVER_INSTANCE_LENGTH=1,L.VERSION_LENGTH=8,L.BOOLEAN_LENGTH=1,L.ACTION_LENGTH=m,L.MIMETYPE_LENGTH=20,L.CONFLATION_LENGTH=E,L.MARKETDATATYPE_LENGTH=h),O=L.ENTITLEMENTTYPE_LENGTH=h,v=(L.ENTITLEMENT_LENGTH=S+w+O,L.NOTE_LENGTH=50,L.MESSAGE_HEADER_LENGTH_OFFSET=0),I=L.MESSAGE_HEADER_TYPE_OFFSET=v+_,A=(L.MESSAGE_HEADER_LENGTH=I+h,L.BLOCK_HEADER_LENGTH_OFFSET=0),N=L.BLOCK_HEADER_MESSAGECOUNT_OFFSET=A+_,F=L.BLOCK_HEADER_RESERVED_OFFSET=N+h,C=L.BLOCK_HEADER_SEQUENCE_OFFSET=F+h;L.BLOCK_HEADER_LENGTH=C+E}).call(this,M("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},M("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],M("timers").setImmediate,M("timers").clearImmediate,"/lib/qitch/QitchConstants.js","/lib/qitch")},{_process:114,buffer:104,jsbi:111,timers:135}],27:[function(y,e,S){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";S.__esModule=!0,S.LENGTH=S.MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET=S.REJECT_EXCESSIVE_CONNECTION_OFFSET=S.CONFLATION_OFFSET=S.SERVER_INSTANCE_OFFSET=S.FLOW_CONTROL_CHECK_INTERVAL_OFFSET=S.VERSION_OFFSET=S.REQUEST_ID_OFFSET=S.REASON_OFFSET=S.CODE_OFFSET=S.TYPEID=undefined;var c=y("../QitchConstants"),d=(S.TYPEID=105,S.CODE_OFFSET=0),p=S.REASON_OFFSET=d+c.INT_LENGTH,h=S.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=S.VERSION_OFFSET=h+c.INT_LENGTH,_=S.FLOW_CONTROL_CHECK_INTERVAL_OFFSET=m+c.VERSION_LENGTH,E=S.SERVER_INSTANCE_OFFSET=_+c.INT_LENGTH,g=S.CONFLATION_OFFSET=E+c.SERVER_INSTANCE_LENGTH,T=S.REJECT_EXCESSIVE_CONNECTION_OFFSET=g+c.INT_LENGTH,b=S.MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET=T+c.BOOLEAN_LENGTH;S.LENGTH=b+c.INT_LENGTH}).call(this,y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],y("timers").setImmediate,y("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ConnectResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],28:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0,m.LENGTH=m.REASON_OFFSET=m.CODE_OFFSET=m.TYPEID=undefined;var c=h("../QitchConstants"),d=(m.TYPEID=106,m.CODE_OFFSET=0),p=m.REASON_OFFSET=d+c.INT_LENGTH;m.LENGTH=p+c.REASON_LENGTH}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ConnectionCloseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],29:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.SEQUENCE_NUMBER_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=107,h.SEQUENCE_NUMBER_OFFSET=0);h.LENGTH=d+c.INT_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/FlowMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],30:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.TIMESTAMP_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=101,h.TIMESTAMP_OFFSET=0);h.LENGTH=d+c.TIMESTAMP_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/HeartbeatDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],31:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0,m.LENGTH=m.REQUEST_ID_OFFSET=m.TIMESTAMP_OFFSET=m.TYPEID=undefined;var c=h("../QitchConstants"),d=(m.TYPEID=110,m.TIMESTAMP_OFFSET=0),p=m.REQUEST_ID_OFFSET=d+c.TIMESTAMP_LENGTH;m.LENGTH=p+c.INT_LENGTH}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/InitialDataSentDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],32:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.TIMESTAMP_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=112,h.TIMESTAMP_OFFSET=0);h.LENGTH=d+c.TIMESTAMP_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ResubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],33:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";m.__esModule=!0,m.LENGTH=m.MAX_EXCEED_OFFSET=m.TIMES_EXCEED_OFFSET=m.TYPEID=undefined;var c=h("../QitchConstants"),d=(m.TYPEID=111,m.TIMES_EXCEED_OFFSET=0),p=m.MAX_EXCEED_OFFSET=d+c.INT_LENGTH;m.LENGTH=p+c.INT_LENGTH}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SlowConnectionDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],34:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.REQUEST_ID_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=108,h.REQUEST_ID_OFFSET=0);h.LENGTH=d+c.INT_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/StatsMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],35:[function(y,e,S){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";S.__esModule=!0,S.LENGTH=S.NUMBER_OF_AVAILABLE_CONNECTIONS=S.NUMBER_OF_OPENED_CONNECTIONS=S.NUMBER_OF_AVAILABLE_L2_OFFSET=S.NUMBER_OF_SUBSCRIBED_L2_OFFSET=S.NUMBER_OF_AVAILABLE_L1_OFFSET=S.NUMBER_OF_SUBSCRIBED_L1_OFFSET=S.REQUEST_ID_OFFSET=S.REASON_OFFSET=S.CODE_OFFSET=S.TYPEID=undefined;var c=y("../QitchConstants"),d=(S.TYPEID=109,S.CODE_OFFSET=0),p=S.REASON_OFFSET=d+c.INT_LENGTH,h=S.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=S.NUMBER_OF_SUBSCRIBED_L1_OFFSET=h+c.INT_LENGTH,_=S.NUMBER_OF_AVAILABLE_L1_OFFSET=m+c.INT_LENGTH,E=S.NUMBER_OF_SUBSCRIBED_L2_OFFSET=_+c.INT_LENGTH,g=S.NUMBER_OF_AVAILABLE_L2_OFFSET=E+c.INT_LENGTH,T=S.NUMBER_OF_OPENED_CONNECTIONS=g+c.INT_LENGTH,b=S.NUMBER_OF_AVAILABLE_CONNECTIONS=T+c.INT_LENGTH;S.LENGTH=b+c.INT_LENGTH}).call(this,y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],y("timers").setImmediate,y("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/StatsResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],36:[function(T,e,b){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";b.__esModule=!0,b.FIXED_LENGTH=b.NUMBER_OF_TYPES_OFFSET=b.NUMBER_OF_SYMBOLS_OFFSET=b.CONFLATION_OFFSET=b.SKIP_HEAVY_INITIAL_LOAD_OFFSET=b.MIMETYPE_OFFSET=b.ACTION_OFFSET=b.REQUEST_ID_OFFSET=b.TYPEID=undefined;var c=T("../QitchConstants"),d=(b.TYPEID=102,b.REQUEST_ID_OFFSET=0),p=b.ACTION_OFFSET=d+c.INT_LENGTH,h=b.MIMETYPE_OFFSET=p+c.ACTION_LENGTH,m=b.SKIP_HEAVY_INITIAL_LOAD_OFFSET=h+c.MIMETYPE_LENGTH,_=b.CONFLATION_OFFSET=m+c.BOOLEAN_LENGTH,E=b.NUMBER_OF_SYMBOLS_OFFSET=_+c.CONFLATION_LENGTH,g=b.NUMBER_OF_TYPES_OFFSET=E+c.INT_LENGTH;b.FIXED_LENGTH=g+c.BYTE_LENGTH}).call(this,T("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},T("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],T("timers").setImmediate,T("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],37:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.FIXED_LENGTH=T.NUMBER_OF_INVALID_SYMBOLS_OFFSET=T.NUMBER_OF_REJECTED_SYMBOLS_OFFSET=T.NUMBER_OF_ENTITLEMENTS_OFFSET=T.REQUEST_ID_OFFSET=T.REASON_OFFSET=T.CODE_OFFSET=T.TYPEID=undefined;var c=g("../QitchConstants"),d=(T.TYPEID=103,T.CODE_OFFSET=0),p=T.REASON_OFFSET=d+c.INT_LENGTH,h=T.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=T.NUMBER_OF_ENTITLEMENTS_OFFSET=h+c.INT_LENGTH,_=T.NUMBER_OF_REJECTED_SYMBOLS_OFFSET=m+c.INT_LENGTH,E=T.NUMBER_OF_INVALID_SYMBOLS_OFFSET=_+c.INT_LENGTH;T.FIXED_LENGTH=E+c.INT_LENGTH}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],38:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0,E.FIXED_LENGTH=E.NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET=E.REQUEST_ID_OFFSET=E.REASON_OFFSET=E.CODE_OFFSET=E.TYPEID=undefined;var c=_("../QitchConstants"),d=(E.TYPEID=104,E.CODE_OFFSET=0),p=E.REASON_OFFSET=d+c.INT_LENGTH,h=E.REQUEST_ID_OFFSET=p+c.REASON_LENGTH,m=E.NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET=h+c.INT_LENGTH;E.FIXED_LENGTH=m+c.INT_LENGTH}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/UnsubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],39:[function(w,e,O){(function(t,n,r,i,o,s,a,u,l,f,c){"use strict";O.__esModule=!0;var d=_(w("../Qitch")),p=_(w("../MessageHeader")),h=_(w("../BlockHeader")),m=w("../QitchConstants");function _(e){return e&&e.__esModule?e:{"default":e}}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var g=function(){function n(e,t){if(E(this,n),null==e)throw"Decoders cannot be null";this.buffer=new ArrayBuffer(t),this.bufferView=new Int8Array(this.buffer),this.bufferPosition=0,this.bufferCapacity=t,this.decodeblockheader=new b(this),this.decodemessageheader=new y(this),this.decodemessage=new S(e,this),this.state=new T,this.state.current=this.decodeblockheader,this.docompact=!1,this.doflip=!1}return n.prototype.messagecount=function(){return this.state.messagecount},n.prototype.blocksequencenumber=function(){return this.state.blocksequencenumber},n.prototype.add=function(e,t,n){var r=0;if(null!=e){if(this.docompact){var i=this.bufferPosition<=this.bufferLimit?this.bufferLimit-this.bufferPosition:0;d["default"].copyArray(this.bufferView,this.bufferPosition,this.bufferView,0,i),this.bufferPosition=i,this.bufferLimit=this.bufferCapacity,this.docompact=!1}n+this.bufferPosition>this.bufferView.length?(r=n-(this.bufferView.length-this.bufferPosition),d["default"].copyArray(e,t,this.bufferView,this.bufferPosition,n-r),this.messagelength=this.bufferView.length,this.bufferPosition=this.bufferView.length):(d["default"].copyArray(e,t,this.bufferView,this.bufferPosition,n),this.messagelength=n,this.bufferPosition=this.bufferPosition+this.messagelength),this.doflip=!0}return r},n.prototype.decode=function(){this.doflip&&(this.bufferLimit=this.bufferPosition,this.bufferPosition=0,this.doflip=!1),this.state.current===this.decodeblockheader?(this.state.blocklength=-1,this.state.messagecount=-1,this.state.blocksequencenumber=-1,this.state.messagelength=-1,this.state.messagetype=-1):this.state.current===this.decodemessageheader&&(this.state.messagelength=-1,this.state.messagetype=-1);var e=0;try{do{if(-1!==(e=this.state.current.decode(this.state,this.bufferView,this.bufferLimit,this.bufferPosition))&&(this.state.previous=this.state.current,this.state.current=this.state.next,this.state.next=null,this.bufferPosition=e),null!=this.state.result&&e>=this.messagelength)break}while(0<=e)}catch(n){throw this.state.current=this.decodeblockheader,this.bufferPosition=0,this.bufferLimit=this.bufferCapacity,n}var t=this.state.result;return this.state.result=null,this.docompact=!0,t},n}(),T=function e(){E(this,e),this.previous=null,this.current=null,this.next=null,this.blocklength=0,this.messagecount=0,this.blocksequencenumber=0,this.messagelength=0,this.messagetype=0,this.result=null},b=function(){function t(e){E(this,t),this.blockDecoder=e}return t.prototype.decode=function(e,t,n,r){return n-r<m.BLOCK_HEADER_LENGTH?-1:(e.blocklength=h["default"].lengthGetValue(t,r),e.messagecount=h["default"].messageCountGetValue(t,r),e.blocksequencenumber=h["default"].sequenceGetValue(t,r),0<e.messagecount?e.next=this.blockDecoder.decodemessageheader:e.next=this.blockDecoder.decodeblockheader,r+m.BLOCK_HEADER_LENGTH)},t}(),y=function(){function t(e){E(this,t),this.blockDecoder=e}return t.prototype.decode=function(e,t,n,r){return n-r<m.MESSAGE_HEADER_LENGTH?-1:(e.messagelength=p["default"].lengthGetValue(t,r),e.messagetype=p["default"].typeGetValue(t,r),e.next=this.blockDecoder.decodemessage,r)},t}(),S=function(){function n(e,t){E(this,n),this.decoders=e,this.blockDecoder=t}return n.prototype.decode=function(e,t,n,r){if(n-r<e.messagelength+m.MESSAGE_HEADER_LENGTH)return-1;var i=this.decoders.decode(t,r);return null!=i&&(e.result||(e.result=[]),i.messagecount=e.messagecount,i.blocksequencenumber=e.blocksequencenumber,e.result.push(i)),e.messagecount--,0<e.messagecount?e.next=this.blockDecoder.decodemessageheader:e.next=this.blockDecoder.decodeblockheader,r+m.MESSAGE_HEADER_LENGTH+e.messagelength},n}();O["default"]=g}).call(this,w("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],w("timers").setImmediate,w("timers").clearImmediate,"/lib/qitch/decoder/BlockDecoder.js","/lib/qitch/decoder")},{"../BlockHeader":19,"../MessageHeader":24,"../Qitch":25,"../QitchConstants":26,_process:114,buffer:104,timers:135}],40:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=_("../MessageHeader"),p=(c=d)&&c.__esModule?c:{"default":c},h=_("../QitchConstants");var m=function(){function n(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),null===e)throw"Decoders cannot be null";this.decoders=new Map;var t=void 0;for(t=0;t<e.length;t++)this.decoders.set(e[t].type(),e[t])}return n.prototype.decode=function(e,t){if(null==e)throw"The source cannot be null";if(0===e.length)return null;var n=p["default"].typeGetValue(e,t),r=this.decoders.get(n);if(null==r)return null;var i=p["default"].lengthGetValue(e,t);this._check(e,t,i);var o=new Int8Array(e.buffer,h.MESSAGE_HEADER_LENGTH+t,i);return r.decode(o,0)},n.prototype._check=function(e,t,n){var r=e.length-t,i=h.MESSAGE_HEADER_LENGTH+n;if(r<i)throw"Not enough data available. Available: "+r+" Required: "+i},n}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/decoder/MessageDecoder.js","/lib/qitch/decoder")},{"../MessageHeader":24,"../QitchConstants":26,_process:114,buffer:104,timers:135}],41:[function(Q,e,X){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";X.__esModule=!0,X.MessageBlock=X.BinaryMessage=undefined;var c=G(Q("./BlockDecoder")),d=G(Q("./MessageDecoder")),p=Q("../../message.js"),h=G(Q("./dataDecoder/TradeDecoder")),m=G(Q("./dataDecoder/SymbolInfoDecoder")),_=G(Q("./dataDecoder/PricedataDecoder")),E=G(Q("./dataDecoder/SymbolStatusDecoder")),g=G(Q("./dataDecoder/QuoteDecoder")),T=G(Q("./dataDecoder/DerivativeInfoDecoder")),b=G(Q("./dataDecoder/IVGreeksDecoder")),y=G(Q("./dataDecoder/LastSaleDecoder")),S=G(Q("./dataDecoder/LimitUpLimitDownDecoder")),w=G(Q("./dataDecoder/ImbalanceStatusDecoder")),O=G(Q("./dataDecoder/NethousePositionDecoder")),v=G(Q("./dataDecoder/IntervalDecoder")),I=G(Q("./dataDecoder/MMQuoteDecoder")),A=G(Q("./dataDecoder/PurgeBookDecoder")),N=G(Q("./dataDecoder/BookDeleteDecoder")),F=G(Q("./dataDecoder/BookOrderDecoder")),C=G(Q("../../SMessage")),M=G(Q("./controlMessageDecoder/HeartbeatDecoder")),L=G(Q("./controlMessageDecoder/InitialDataSentDecoder")),D=G(Q("./controlMessageDecoder/ConnectResponseDecoder")),R=G(Q("./controlMessageDecoder/StatsResponseDecoder")),B=G(Q("./controlMessageDecoder/SubscribeResponseDecoder")),k=G(Q("./controlMessageDecoder/UnsubscribeResponseDecoder")),U=G(Q("./controlMessageDecoder/SlowConnectionDecoder")),H=G(Q("./controlMessageDecoder/ConnectionCloseDecoder")),P=G(Q("./controlMessageDecoder/ResubscribeMessageDecoder"));function G(e){return e&&e.__esModule?e:{"default":e}}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var V=function(){function n(e){q(this,n);var t=[new M["default"],new B["default"],new k["default"],new D["default"],new H["default"],new R["default"],new U["default"],new L["default"],new P["default"],new m["default"],new h["default"],new _["default"],new E["default"],new g["default"],new T["default"],new b["default"],new y["default"],new S["default"],new w["default"],new O["default"],new v["default"],new I["default"],new A["default"],new N["default"],new F["default"]];this.decoder=new c["default"](new d["default"](t),e)}return n.prototype.decode=function(e){for(var t=e.length,n=[],r=0;0<t;){var i=t-this.decoder.add(e,r,t);r+=i,t-=i;var o=this.decoder.decode();if(null!=o)if(1===o.length&&1===o[0].messagecount)n.push(this._messageImpl(o[0]));else if(1<o.length)for(var s=0;s<o.length;s++)1<o[s].messagecount?(n.push(this._messageBlockImpl(o.slice(s+1,s+o[s].messagecount))),s+=o[s].messagecount+1):n.push(this._messageImpl(o[s]));else{for(var a=[],u=0;null!=o;)a[u++]=o,o=this.decoder.decode();n.push(this._messageBlockImpl(a))}}return n},n.prototype._messageBlockImpl=function(e){if(null==e||!(e instanceof Array)||0===e.length)return null;var t=new Array(e.length),n=void 0;for(n=0;n<e.length;n++)t[n]=this._messageImpl(e[n]);var r=new K;return r.sequencenumber=this.decoder.blocksequencenumber(),r.timestamp=(new Date).getMilliseconds(),r.encoding=p.Encodings.NONE_CHAR,r.mimetype=p.MimeTypes.QITCH_CHAR,r.messages=t,r},n.prototype._messageImpl=function(e){var t=new Y;return t.sequencenumber=e.blocksequencenumber,t.timestamp=(new Date).getTime(),t.encoding=p.Encodings.NONE_CHAR,t.mimetype=p.MimeTypes.QITCH_CHAR,t.decodedPayload=e,t.id=e.requestId,t},n}(),Y=X.BinaryMessage=function(t){function n(){q(this,n);var e=x(this,t.call(this));return e.type="1",e.decodedPayload=null,e}return j(n,t),n}(C["default"]),K=X.MessageBlock=function(t){function n(){q(this,n);var e=x(this,t.call(this));return e.type="B",e.messages=null,e}return j(n,t),n}(C["default"]);X["default"]=V}).call(this,Q("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Q("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],Q("timers").setImmediate,Q("timers").clearImmediate,"/lib/qitch/decoder/QitchDecoder.js","/lib/qitch/decoder")},{"../../SMessage":5,"../../message.js":17,"./BlockDecoder":39,"./MessageDecoder":40,"./controlMessageDecoder/ConnectResponseDecoder":42,"./controlMessageDecoder/ConnectionCloseDecoder":43,"./controlMessageDecoder/HeartbeatDecoder":44,"./controlMessageDecoder/InitialDataSentDecoder":45,"./controlMessageDecoder/ResubscribeMessageDecoder":46,"./controlMessageDecoder/SlowConnectionDecoder":47,"./controlMessageDecoder/StatsResponseDecoder":48,"./controlMessageDecoder/SubscribeResponseDecoder":49,"./controlMessageDecoder/UnsubscribeResponseDecoder":50,"./dataDecoder/BookDeleteDecoder":51,"./dataDecoder/BookOrderDecoder":52,"./dataDecoder/DerivativeInfoDecoder":53,"./dataDecoder/IVGreeksDecoder":54,"./dataDecoder/ImbalanceStatusDecoder":55,"./dataDecoder/IntervalDecoder":56,"./dataDecoder/LastSaleDecoder":57,"./dataDecoder/LimitUpLimitDownDecoder":58,"./dataDecoder/MMQuoteDecoder":59,"./dataDecoder/NethousePositionDecoder":60,"./dataDecoder/PricedataDecoder":61,"./dataDecoder/PurgeBookDecoder":62,"./dataDecoder/QuoteDecoder":63,"./dataDecoder/SymbolInfoDecoder":64,"./dataDecoder/SymbolStatusDecoder":65,"./dataDecoder/TradeDecoder":66,_process:114,buffer:104,timers:135}],42:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/ConnectResponseDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.ConnectResponse;return n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET),n.version=m["default"].version(e,t+d.VERSION_OFFSET),n.flowControlCheckInterval=m["default"].int32(e,t+d.FLOW_CONTROL_CHECK_INTERVAL_OFFSET),n.serverInstance=m["default"].serverInstance(e,t+d.SERVER_INSTANCE_OFFSET),n.conflationMs=m["default"].int32(e,t+d.CONFLATION_OFFSET),n.rejectExcessiveConnection=m["default"].bool(e,t+d.REJECT_EXCESSIVE_CONNECTION_OFFSET),n.maxEntitlementsPerSubscription=m["default"].int32(e,t+d.MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ConnectResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ConnectResponseDef":27,_process:114,buffer:104,timers:135}],43:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/ConnectionCloseDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.ConnectionClose;return n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ConnectionCloseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ConnectionCloseDef":28,_process:114,buffer:104,timers:135}],44:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/HeartbeatDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.Heartbeat;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/HeartbeatDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/HeartbeatDef":30,_process:114,buffer:104,timers:135}],45:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/InitialDataSentDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.InitialDataSent;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/InitialDataSentDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/InitialDataSentDef":31,_process:114,buffer:104,timers:135}],46:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/ResubscribeMessageDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.ResubscribeMessage;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ResubscribeMessageDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ResubscribeMessageDef":32,_process:114,buffer:104,timers:135}],47:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/SlowConnectionDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.SlowConnection;return n.timesExceeded=m["default"].int32(e,t+d.TIMES_EXCEED_OFFSET),n.maxExceed=m["default"].int32(e,t+d.MAX_EXCEED_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/SlowConnectionDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/SlowConnectionDef":33,_process:114,buffer:104,timers:135}],48:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/StatsResponseDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.StatsResponse;return n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET),n.numberOfSubscribedSymbolsL1=m["default"].int32(e,t+d.NUMBER_OF_SUBSCRIBED_L1_OFFSET),n.numberOfAvailableSymbolsL1=m["default"].int32(e,t+d.NUMBER_OF_AVAILABLE_L1_OFFSET),n.numberOfSubscribedSymbolsL2=m["default"].int32(e,t+d.NUMBER_OF_SUBSCRIBED_L2_OFFSET),n.numberOfAvailableSymbolsL2=m["default"].int32(e,t+d.NUMBER_OF_AVAILABLE_L2_OFFSET),n.numberOfOpenedConnections=m["default"].int32(e,t+d.NUMBER_OF_OPENED_CONNECTIONS),n.numberOfAvailableConnections=m["default"].int32(e,t+d.NUMBER_OF_AVAILABLE_CONNECTIONS),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/StatsResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/StatsResponseDef":35,_process:114,buffer:104,timers:135}],49:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(g("../../controlMessageDefinition/SubscribeResponseDef")),p=g("../../../streamer-api"),h=g("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c},_=g("../../QitchConstants");var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.control.SubscribeResponse;n.code=m["default"].int32(e,t+d.CODE_OFFSET),n.reason=m["default"].reason(e,t+d.REASON_OFFSET),n.requestId=m["default"].int32(e,t+d.REQUEST_ID_OFFSET);var r=m["default"].int32(e,t+d.NUMBER_OF_ENTITLEMENTS_OFFSET),i=m["default"].int32(e,t+d.NUMBER_OF_REJECTED_SYMBOLS_OFFSET),o=m["default"].int32(e,t+d.NUMBER_OF_INVALID_SYMBOLS_OFFSET);return n.entitlements=this._decodeEntitlements(e,t+d.FIXED_LENGTH,r),n.rejectedsymbols=this._decodeSymbolList(e,t+d.FIXED_LENGTH+r*_.ENTITLEMENT_LENGTH,i),n.invalidsymbols=this._decodeSymbolList(e,t+d.FIXED_LENGTH+r*_.ENTITLEMENT_LENGTH+i*_.SYMBOL_LENGTH,o),n},e.prototype._decodeEntitlements=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(m["default"].entitlement(e,t+i*_.ENTITLEMENT_LENGTH));return r},e.prototype._decodeSymbolList=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(m["default"].symbol(e,t+i*_.SYMBOL_LENGTH));return r},e}();T["default"]=E}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/SubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeResponseDef":37,_process:114,buffer:104,timers:135}],50:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(g("../../controlMessageDefinition/UnsubscribeResponseDef")),p=g("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c},m=g("../../QitchConstants"),_=g("../../../streamer-api");var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new _.messages.control.UnsubscribeResponse;n.code=h["default"].int32(e,t+d.CODE_OFFSET),n.reason=h["default"].reason(e,t+d.REASON_OFFSET),n.requestId=h["default"].int32(e,t+d.REQUEST_ID_OFFSET);var r=h["default"].int32(e,t+d.NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET);return n.unsubscribed=this._decodeEntitlements(e,t+d.FIXED_LENGTH,r),n},e.prototype._decodeEntitlements=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(h["default"].entitlement(e,t+i*m.ENTITLEMENT_LENGTH));return r},e}();T["default"]=E}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/UnsubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/UnsubscribeResponseDef":38,_process:114,buffer:104,timers:135}],51:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/BookDeleteDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.BookDelete;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.orderReference=m["default"].orderreference(e,t+d.ORDER_REFERENCE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/BookDeleteDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/BookDeleteDef":71,_process:114,buffer:104,timers:135}],52:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/BookOrderDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.BookOrder;n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.marketMakerID=m["default"].mmid(e,t+d.MMID_OFFSET),n.orderID=m["default"].orderIdLegacy(e,t+d.ORDERID_OFFSET),n.orderSide=m["default"].orderside(e,t+d.SIDE_OFFSET),n.price=m["default"].dec8double(e,t+d.PRICE_OFFSET),n.size=m["default"].int32(e,t+d.SIZE_OFFSET),n.lastUpdate=m["default"].timestamp(e,t+d.LASTUPDATE_OFFSET);var r=m["default"].int32(e,t+d.FLAGS_OFFSET);return n.flags=r,n.display=d.BookOrderFlags.isDisplay(r),n.orderChangeType=m["default"].bookOrderChangeType(e,t+d.CHANGE_TYPE_OFFSET),n.orderReference=m["default"].orderreference(e,t+d.ORDER_REFERENCE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/BookOrderDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/BookOrderDef":72,_process:114,buffer:104,timers:135}],53:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/DerivativeInfoDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.DerivativeInfo;return n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.rootSymbol=m["default"].symbol(e,t+d.ROOTSYMBOL_OFFSET),n.expiration=m["default"].timestamp(e,t+d.EXPIRATION_OFFSET),n.delivery=m["default"].timestamp(e,t+d.DELIVERY_OFFSET),n.openInterest=m["default"].int64(e,t+d.OPENINTEREST_OFFSET),n.contractSize=m["default"].int32(e,t+d.CONTRACTSIZE_OFFSET),n.callPutIndicator=m["default"].asciichar(e,t+d.CALLPUTINDICATOR_OFFSET),n.minTickSize=m["default"].dec8double(e,t+d.MINTICKSIZE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/DerivativeInfoDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/DerivativeInfoDef":73,_process:114,buffer:104,timers:135}],54:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/IVGreeksDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.IVGreeks;return n.locateCode=m["default"].locatecode(e,t+d.LOCATECODE_OFFSET),n.lastCalculation=m["default"].timestamp(e,t+d.LAST_CALCULATION_OFFSET),n.delta=m["default"].dec8double(e,t+d.DELTA_OFFSET),n.gamma=m["default"].dec8double(e,t+d.GAMMA_OFFSET),n.vega=m["default"].dec8double(e,t+d.VEGA_OFFSET),n.rho=m["default"].dec8double(e,t+d.RHO_OFFSET),n.theta=m["default"].dec8double(e,t+d.THETA_OFFSET),n.midIV=m["default"].dec8double(e,t+d.IMPLIED_VOLATILITY_OFFSET),n.midIVChange=m["default"].dec8double(e,t+d.IMPLIED_VOLATILITY_CHANGE_OFFSET),n.bidIV=m["default"].dec8double(e,t+d.BID_IMPLIED_VOLATILITY_OFFSET),n.askIV=m["default"].dec8double(e,t+d.ASK_IMPLIED_VOLATILITY_OFFSET),n.mark=m["default"].dec8double(e,t+d.MARK_OFFSET),n.intrinsicValue=m["default"].dec8double(e,t+d.INTRINSIC_VALUE_OFFSET),n.extrinsicValue=m["default"].dec8double(e,t+d.EXTRINSIC_VALUE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/IVGreeksDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/IVGreeksDef":74,_process:114,buffer:104,timers:135}],55:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/ImbalanceStatusDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.ImbalanceStatus;return n.locateCode=m["default"].locatecode(e,t+d.LOCATECODE_OFFSET),n.imbalanceType=m["default"].imbalancetype(e,t+d.IMBALANCE_TYPE_OFFSET),n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.referencePrice=m["default"].dec8double(e,t+d.REFERENCEPRICE_OFFSET),n.size=m["default"].int64(e,t+d.SIZE_OFFSET),n.side=m["default"].orderside(e,t+d.ORDERSIDE_OFFSET),n.pairedVolume=m["default"].int32(e,t+d.PAIREDVOLUME_OFFSET),n.nearIndicativePrice=m["default"].dec8double(e,t+d.NEARINDICATIVEPRICE_OFFSET),n.farIndicativePrice=m["default"].dec8double(e,t+d.FARINDICATIVEPRICE_OFFSET),n.priceVariation=m["default"].dec8double(e,t+d.PRICEVARIATION_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/ImbalanceStatusDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/ImbalanceStatusDef":75,_process:114,buffer:104,timers:135}],56:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0;var c=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(g("../../marketDataDefinition/IntervalDef")),d=g("../../../streamer-api"),p=_(g("../../Qitch")),h=_(g("jsbi")),m=_(g("bignumber.js"));function _(e){return e&&e.__esModule?e:{"default":e}}var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return c.TYPEID},e.prototype.decode=function(e,t){var n=new d.messages.market.Interval;return n.timestamp=p["default"].timestamp(e,t+c.TIMESTAMP_OFFSET),n.locateCode=p["default"].locatecode(e,t+c.SYMBOL_OFFSET),n.open=p["default"].dec8double(e,t+c.OPEN_OFFSET),n.low=p["default"].dec8double(e,t+c.LOW_OFFSET),n.high=p["default"].dec8double(e,t+c.HIGH_OFFSET),n.last=p["default"].dec8double(e,t+c.LAST_OFFSET),n.volume=p["default"].int64(e,t+c.VOLUME_OFFSET),n.startTime=p["default"].timestamp(e,t+c.STARTTIME_OFFSET),n.openTime=p["default"].timestamp(e,t+c.OPENTIME_OFFSET),n.lastTime=p["default"].timestamp(e,t+c.LASTTIME_OFFSET),n.tradeValue=p["default"].int64(e,t+c.TRADEVALUE_OFFSET),n.vwap=this._vwap(n),n},e.prototype._vwap=function(e){return null!=e.tradeValue&&null!=e.volume&&0!==h["default"].toNumber(e.volume)?new m["default"](e.tradeValue.toString()).dividedBy(e.volume):null},e}();T["default"]=E}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/IntervalDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/IntervalDef":76,_process:114,"bignumber.js":101,buffer:104,jsbi:111,timers:135}],57:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/LastSaleDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.LastSale;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.last=m["default"].dec8double(e,t+d.LAST_OFFSET),n.previousClose=m["default"].dec8double(e,t+d.PREVCLOSE_OFFSET),n.accumulatedVolume=m["default"].int64(e,t+d.ACCUMULATEDVOLUME_OFFSET),n.tick=m["default"].tick(e,t+d.TICK_OFFSET),n.change=this._change(n),n.percentChange=this._percentChange(n),n},e.prototype._change=function(e){return null!=e.last&&null!=e.previousClose?e.last.minus(e.previousClose):null},e.prototype._percentChange=function(e){return null==e.last||null==e.previousClose||e.previousClose.isEqualTo(0)?null:(e.last-e.previousClose)/e.previousClose*100},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/LastSaleDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/LastSaleDef":77,_process:114,buffer:104,timers:135}],58:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/LimitUpLimitDownDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.LimitUpLimitDown;n.locateCode=m["default"].int32(e,t+d.LOCATECODE_OFFSET),n.lowerLimit=m["default"].dec8double(e,t+d.LOWERLIMIT_OFFSET),n.effectiveTime=m["default"].timestamp(e,t+d.EFFECTIVETIME_OFFSET),n.upperLimit=m["default"].dec8double(e,t+d.UPPERLIMIT_OFFSET);var r=m["default"].sbyte(e,t+d.PRICEBANDINDICATOR_OFFSET);return n.bidNotExecutable=d.LimitUpLimitDownFlags.isBidNotExecutable(r),n.askNotExecutable=d.LimitUpLimitDownFlags.isAskNotExecutable(r),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/LimitUpLimitDownDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/LimitUpLimitDownDef":78,_process:114,buffer:104,timers:135}],59:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/MMQuoteDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.MMQuote;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.bidPrice=m["default"].dec8double(e,t+d.BIDPRICE_OFFSET),n.bidSize=m["default"].int32(e,t+d.BIDSIZE_OFFSET),n.askPrice=m["default"].dec8double(e,t+d.ASKPRICE_OFFSET),n.askSize=m["default"].int32(e,t+d.ASKSIZE_OFFSET),n.marketMakerID=m["default"].mmid(e,t+d.MMID_OFFSET),n.indicator=m["default"].asciichar(e,t+d.INDICATOR_OFFSET),n.bidChange=m["default"].dec8double(e,t+d.BIDCHANGE_OFFSET),n.askChange=m["default"].dec8double(e,t+d.ASKCHANGE_OFFSET),n.sharesPerSizeUnit=m["default"].int32(e,t+d.SHARESPERSIZEUNIT_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/MMQuoteDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/MMQuoteDef":79,_process:114,buffer:104,timers:135}],60:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/NethousePositionDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.NethousePosition;return n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.marketMakerID=m["default"].mmid(e,t+d.MMID_OFFSET),n.buyValue=m["default"].dec8double(e,t+d.BUYVALUE_OFFSET),n.buyVolume=m["default"].int64(e,t+d.BUYVOLUME_OFFSET),n.sellValue=m["default"].dec8double(e,t+d.SELLVALUE_OFFSET),n.sellVolume=m["default"].int64(e,t+d.SELLVOLUME_OFFSET),n.buyBlockValue=m["default"].dec8double(e,t+d.BUYBLOCKVALUE_OFFSET),n.buyBlockVolume=m["default"].int64(e,t+d.BUYBLOCKVOLUME_OFFSET),n.sellBlockValue=m["default"].dec8double(e,t+d.SELLBLOCKVALUE_OFFSET),n.sellBlockVolume=m["default"].int64(e,t+d.SELLBLOCKVOLUME_OFFSET),n.buyTransactions=m["default"].int32(e,t+d.BUYTRANSACTIONS_OFFSET),n.sellTransactions=m["default"].int32(e,t+d.SELLTRANSACTIONS_OFFSET),n.buyBlockTransactions=m["default"].int32(e,t+d.BUYBLOCKTRANSACTIONS_OFFSET),n.sellBlockTransactions=m["default"].int32(e,t+d.SELLBLOCKTRANSACTIONS_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/NethousePositionDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/NethousePositionDef":80,_process:114,buffer:104,timers:135}],61:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/PricedataDef")),p=E("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c},m=E("../../../streamer-api.js");var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new m.messages.market.PriceData;n.timestamp=h["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.locateCode=h["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.last=h["default"].dec8double(e,t+d.LAST_OFFSET),n.previousClose=h["default"].dec8double(e,t+d.PREVCLOSE_OFFSET),n.open=h["default"].dec8double(e,t+d.OPEN_OFFSET),n.high=h["default"].dec8double(e,t+d.HIGH_OFFSET),n.low=h["default"].dec8double(e,t+d.LOW_OFFSET),n.accumulatedVolume=h["default"].int64(e,t+d.ACCUMULATEDVOLUME_OFFSET),n.lastTradeTime=h["default"].timestamp(e,t+d.LASTTRADETIME_OFFSET),n.tick=h["default"].tick(e,t+d.TICK_OFFSET),n.lastTradeSize=h["default"].int32(e,t+d.LASTTRADESIZE_OFFSET),n.close=h["default"].dec8double(e,t+d.CLOSE_OFFSET),n.tradeCount=h["default"].int64(e,t+d.TRADECOUNT_OFFSET),n.accumulatedPrice=null,n.accumulatedTradeValue=h["default"].dec8double(e,t+d.ACCUMULATEDTRADEVALUE_OFFSET),n.change=this._change(n),n.percentChange=this._percentChange(n);var r=h["default"].sbyte(e,t+d.FLAGS_OFFSET);return n.annualHigh=d.PricedataFlags.isAnnualHigh(r),n.annualLow=d.PricedataFlags.isAnnualLow(r),n.vwap=h["default"].dec8double(e,t+d.VWAP_OFFSET),n.twap=h["default"].dec8double(e,t+d.TWAP_OFFSET),n.preMarketTradeTime=h["default"].timestamp(e,t+d.PREMARKETTRADETIME_OFFSET),n.preMarketLast=h["default"].dec8double(e,t+d.PREMARKETLASTPRICE_OFFSET),n.preMarketVolume=h["default"].int64(e,t+d.PREMARKETVOLUME_OFFSET),n.preMarketChange=h["default"].dec8double(e,t+d.PREMARKETCHANGE_OFFSET),n.preMarketPercentChange=this._premarketPercentChange(n),n.postMarketTradeTime=h["default"].timestamp(e,t+d.POSTMARKETTRADETIME_OFFSET),n.postMarketLast=h["default"].dec8double(e,t+d.POSTMARKETLASTPRICE_OFFSET),n.postMarketVolume=h["default"].int64(e,t+d.POSTMARKETVOLUME_OFFSET),n.postMarketChange=h["default"].dec8double(e,t+d.POSTMARKETCHANGE_OFFSET),n.postMarketPercentChange=this._postmarketPercentChange(n),n.lastTradeExcode=h["default"].excode(e,t+d.LASTTRADEEXCODE_OFFSET),n},e.prototype._change=function(e){return null!=e.last&&null!=e.previousClose?e.last.minus(e.previousClose):null},e.prototype._percentChange=function(e){return null==e.last||null==e.previousClose||e.previousClose.isEqualTo(0)?null:e.last.minus(e.previousClose).dividedBy(e.previousClose).multipliedBy(100)},e.prototype._premarketPercentChange=function(e){if(null!=e.preMarketChange){if(null!=e.close&&!e.close.isEqualTo(0))return e.preMarketChange.minus(e.close).dividedBy(e.close).multipliedBy(100);if(null!=e.previousClose&&!e.previousClose.isEqualTo(0))return e.preMarketChange.minus(e.previousClose).dividedBy(e.previousClose).multipliedBy(100)}return null},e.prototype._postmarketPercentChange=function(e){return null==e.postMarketLast||null==e.last||e.last.isEqualTo(0)?null:e.postMarketLast.minus(e.last).dividedBy(e.last).multipliedBy(100)},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/PricedataDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/PricedataDef":81,_process:114,buffer:104,timers:135}],62:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/PurgeBookDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.PurgeBook;return n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/PurgeBookDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/PurgeBookDef":82,_process:114,buffer:104,timers:135}],63:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/QuoteDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.Quote;return n.locateCode=m["default"].locatecode(e,t+d.SYMBOL_OFFSET),n.timestamp=m["default"].timestamp(e,t+d.TIMESTAMP_OFFSET),n.askCondition=m["default"].asciichar(e,t+d.ASKCONDITION_OFFSET),n.askExcode=m["default"].excode(e,t+d.ASKEXCODE_OFFSET),n.askPrice=m["default"].dec8double(e,t+d.ASKPRICE_OFFSET),n.askSize=m["default"].int32(e,t+d.ASKSIZE_OFFSET),n.bidCondition=m["default"].asciichar(e,t+d.BIDCONDITION_OFFSET),n.bidExcode=m["default"].excode(e,t+d.BIDEXCODE_OFFSET),n.bidPrice=m["default"].dec8double(e,t+d.BIDPRICE_OFFSET),n.bidSize=m["default"].int32(e,t+d.BIDSIZE_OFFSET),n.indicator=m["default"].asciichar(e,t+d.INDICATOR_OFFSET),n.sharesPerSizeUnit=m["default"].int32(e,t+d.SHARESPERSIZEUNIT_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/QuoteDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/QuoteDef":83,_process:114,buffer:104,timers:135}],64:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/SymbolInfoDef")),p=E("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c},m=E("../../../streamer-api.js");var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new m.messages.market.SymbolInfo;return n.symbol=h["default"].symbol(e,t+d.SYMBOL_OFFSET),n.locateCode=h["default"].locatecode(e,t+d.LOCATECODE_OFFSET),n.excode=h["default"].excode(e,t+d.EXCODE_OFFSET),n.instrumentType=h["default"].instrumenttype(e,t+d.INSTRUMENTTYPE_OFFSET),n.currencyId=h["default"].currencyid(e,t+d.CURRENCYID_OFFSET),n.haltStatus=h["default"].sbyte(e,t+d.HALTSTATUS_OFFSET),n.haltIndicator=h["default"].sbyte(e,t+d.HALTINDICATOR_OFFSET),n.regSHOStatus=h["default"].asciichar(e,t+d.REGSHOSTATUS_OFFSET),n.pqe=0<h["default"].sbyte(e,t+d.PQE_OFFSET),n.caveatEmptor=0<h["default"].sbyte(e,t+d.CAVEATEMPTOR_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/SymbolInfoDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/SymbolInfoDef":84,_process:114,buffer:104,timers:135}],65:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/SymbolStatusDef")),p=E("../../../streamer-api"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.decode=function(e,t){var n=new p.messages.market.SymbolStatus;return n.locateCode=m["default"].locatecode(e,t+d.LOCATE_CODE_OFFSET),n.haltStatus=m["default"].sbyte(e,t+d.HALTSTATUS_OFFSET),n.haltIndicator=m["default"].sbyte(e,t+d.HALTINDICATOR_OFFSET),n.regSHOStatus=m["default"].asciichar(e,t+d.REGSHOSTATUS_OFFSET),n.calculatedClosingPrice=m["default"].dec8double(e,t+d.CLOSINGPRICE_OFFSET),n.effectiveTime=m["default"].timestamp(e,t+d.EFFECTIVETIME_OFFSET),n.openingTime=m["default"].timestamp(e,t+d.OPENINGTIME_OFFSET),n.note=m["default"].note(e,t+d.NOTE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/SymbolStatusDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/SymbolStatusDef":85,_process:114,buffer:104,timers:135}],66:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=E("../../Qitch"),p=(c=d)&&c.__esModule?c:{"default":c},h=E("../../../streamer-api.js"),m=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../marketDataDefinition/TradeDef"));var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return m.TYPEID},e.prototype.decode=function(e,t){var n=new h.messages.market.Trade;return n.timestamp=p["default"].timestamp(e,t+m.TIMESTAMP_OFFSET),n.locateCode=p["default"].locatecode(e,t+m.SYMBOL_OFFSET),n.price=p["default"].dec8double(e,t+m.PRICE_OFFSET),n.size=p["default"].int32(e,t+m.SIZE_OFFSET),n.indicator=p["default"].asciichar(e,t+m.INDICATOR_OFFSET),n.tick=p["default"].tick(e,t+m.TICK_OFFSET),n.accumulatedVolume=p["default"].int64(e,t+m.ACCUMULATEDVOLUME_OFFSET),n.sequenceNumber=p["default"].int32(e,t+m.SEQUENCENUMBER_OFFSET),n.flags=p["default"].int32(e,t+m.FLAGS_OFFSET),n.buyerID=p["default"].mmid(e,t+m.BUYERMMID_OFFSET),n.sellerID=p["default"].mmid(e,t+m.SELLERMMID_OFFSET),n.rangeIndicator=p["default"].rangeindicator(e,t+m.RANGEINDICATOR_OFFSET),n.matchID=p["default"].int64(e,t+m.MATCHID_OFFSET),n.vwap=p["default"].dec8double(e,t+m.VWAP_OFFSET),n.excode=p["default"].excode(e,t+m.EXCODE_OFFSET),n},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/TradeDecoder.js","/lib/qitch/decoder/dataDecoder")},{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/TradeDef":86,_process:114,buffer:104,timers:135}],67:[function(O,e,v){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";v.__esModule=!0;var c=O("../../streamer-api"),d=b(O("../../SMessage")),p=O("../QitchConstants"),h=b(O("../BlockHeader")),m=O("../../streamer-utils"),_=b(O("../MessageHeader")),E=b(O("./controlMessageEncoder/StatsMessageEncoder")),g=b(O("./controlMessageEncoder/SubscribeMessageEncoder")),T=b(O("./controlMessageEncoder/FlowMessageEncoder"));function b(e){return e&&e.__esModule?e:{"default":e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S=function(){function e(){y(this,e),this.encoder=new w}return e.prototype.encode=function(e,t){if(null==e)throw"Argument cannot be null.";if(!e instanceof d["default"])throw"Wrong message type";var n=this.encoder.length(e.payload),r=p.BLOCK_HEADER_LENGTH+n,i=new ArrayBuffer(t+r),o=new Int8Array(i);return h["default"].lengthToBytes(o,t,n),h["default"].messageCountToBytes(o,t,1),h["default"].reservedToBytes(o,t,0),h["default"].sequenceToBytes(o,t,e.sequencenumber),this.encoder.encode(o,t+p.BLOCK_HEADER_LENGTH,e.payload)},e}(),w=function(){function e(){y(this,e),this[c.messages.MessageTypeNames.ctrl.STATS]=new E["default"],this[c.messages.MessageTypeNames.ctrl.FLOW]=new T["default"],this[c.messages.MessageTypeNames.ctrl.SUBSCRIBE]=new g["default"]}return e.prototype.length=function(e){var t=this[(0,m.messagetype)(e)];return null!==t?t.length(e)+p.MESSAGE_HEADER_LENGTH:0},e.prototype.encode=function(e,t,n){var r=this[(0,m.messagetype)(n)];return null!==r?(_["default"].lengthGetBytes(e,t,r.length(n)),_["default"].typeGetBytes(e,t,r.type()),r.encode(e,t+p.MESSAGE_HEADER_LENGTH,n)):e},e}();v["default"]=S}).call(this,O("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],O("timers").setImmediate,O("timers").clearImmediate,"/lib/qitch/encoder/QitchEncoder.js","/lib/qitch/encoder")},{"../../SMessage":5,"../../streamer-api":92,"../../streamer-utils":94,"../BlockHeader":19,"../MessageHeader":24,"../QitchConstants":26,"./controlMessageEncoder/FlowMessageEncoder":68,"./controlMessageEncoder/StatsMessageEncoder":69,"./controlMessageEncoder/SubscribeMessageEncoder":70,_process:114,buffer:104,timers:135}],68:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(_("../../controlMessageDefinition/FlowMessageDef")),p=_("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.length=function(e){return d.LENGTH},e.prototype.encode=function(e,t,n){return h["default"].putInt32(e,t+d.SEQUENCE_NUMBER_OFFSET,n.sequence),e},e}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/FlowMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")},{"../../Qitch":25,"../../controlMessageDefinition/FlowMessageDef":29,_process:114,buffer:104,timers:135}],69:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(_("../../controlMessageDefinition/StatsMessageDef")),p=_("../../Qitch"),h=(c=p)&&c.__esModule?c:{"default":c};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.length=function(e){return d.LENGTH},e.prototype.encode=function(e,t,n){return h["default"].putInt32(e,t+d.REQUEST_ID_OFFSET,n.sequenceNumber),e},e}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/StatsMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")},{"../../Qitch":25,"../../controlMessageDefinition/StatsMessageDef":34,_process:114,buffer:104,timers:135}],70:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c,d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}}(E("../../controlMessageDefinition/SubscribeMessageDef")),p=E("../../QitchConstants"),h=E("../../Qitch"),m=(c=h)&&c.__esModule?c:{"default":c};var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.type=function(){return d.TYPEID},e.prototype.length=function(e){var t=p.SYMBOL_LENGTH*e.symbols.length,n=p.MARKETDATATYPE_LENGTH*e.types.length;return d.FIXED_LENGTH+t+n},e.prototype.encode=function(e,t,n){var r=p.SYMBOL_LENGTH*n.symbols.length;return m["default"].putInt32(e,t+d.REQUEST_ID_OFFSET,n.id),m["default"].putAction(e,t+d.ACTION_OFFSET,n.action),m["default"].putMimetype(e,t+d.MIMETYPE_OFFSET,n.mimetype),m["default"].putBool(e,t+d.SKIP_HEAVY_INITIAL_LOAD_OFFSET,n.skipHeavyInitialLoad),m["default"].putConflation(e,t+d.CONFLATION_OFFSET,n.conflation),m["default"].putInt32(e,t+d.NUMBER_OF_SYMBOLS_OFFSET,n.symbols.length),m["default"].putByte(e,t+d.NUMBER_OF_TYPES_OFFSET,n.types.length),this._encodeSymbols(n,t+d.FIXED_LENGTH,e),this._encodeMarketdataTypes(n,t+d.FIXED_LENGTH+r,e),e},e.prototype._encodeSymbols=function(e,t,n){for(var r=0;r<e.symbols.length;r++)m["default"].putSymbol(n,t+r*p.SYMBOL_LENGTH,e.symbols[r])},e.prototype._encodeMarketdataTypes=function(e,t,n){for(var r=0;r<e.types.length;r++)m["default"].putMarketdatatype(n,t+r*p.MARKETDATATYPE_LENGTH,e.types[r])},e}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/SubscribeMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")},{"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeMessageDef":36,_process:114,buffer:104,timers:135}],71:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0,_.LENGTH=_.ORDER_REFERENCE_OFFSET=_.SYMBOL_OFFSET=_.TIMESTAMP_OFFSET=_.TYPEID=undefined;var c=m("../QitchConstants"),d=(_.TYPEID=5,_.TIMESTAMP_OFFSET=0),p=_.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=_.ORDER_REFERENCE_OFFSET=p+c.LOCATECODE_LENGTH;_.LENGTH=h+c.ORDER_REFERENCE_LENGTH}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/qitch/marketDataDefinition/BookDeleteDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],72:[function(O,e,v){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";v.__esModule=!0,v.BookOrderFlags=v.LENGTH=v.ORDER_REFERENCE_OFFSET=v.CHANGE_TYPE_OFFSET=v.FLAGS_OFFSET=v.LASTUPDATE_OFFSET=v.SIZE_OFFSET=v.PRICE_OFFSET=v.SIDE_OFFSET=v.ORDERID_OFFSET=v.MMID_OFFSET=v.SYMBOL_OFFSET=v.TIMESTAMP_OFFSET=v.TYPEID=undefined;var c=O("../QitchConstants");v.TYPEID=4;var d=v.TIMESTAMP_OFFSET=0,p=v.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=v.MMID_OFFSET=p+c.LOCATECODE_LENGTH,m=v.ORDERID_OFFSET=h+c.MMID_LENGTH,_=v.SIDE_OFFSET=m+c.ORDERID_LENGTH,E=v.PRICE_OFFSET=_+c.ORDERSIDE_LENGTH,g=v.SIZE_OFFSET=E+c.DOUBLE_LENGTH,T=v.LASTUPDATE_OFFSET=g+c.INT_LENGTH,b=v.FLAGS_OFFSET=T+c.TIMESTAMP_LENGTH,y=v.CHANGE_TYPE_OFFSET=b+c.INT_LENGTH,S=v.ORDER_REFERENCE_OFFSET=y+c.ASCIICHAR_LENGTH,w=(v.LENGTH=S+c.ORDER_REFERENCE_LENGTH,v.BookOrderFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isLotsOf=function(e){return 0<(e&t.prototype.LOTSOF_MASK)},t.isAllOrNone=function(e){return 0<(e&t.prototype.ALLORNONE_MASK)},t.isMinimumFillVolume=function(e){return 0<(e&t.prototype.MINIMUMFILLVOLUME_MASK)},t.isNonResident=function(e){return 0<(e&t.prototype.NONRESIDENT_MASK)},t.isCashSettlement=function(e){return 0<(e&t.prototype.CASHSETTLEMENT_MASK)},t.isCashTodaySettlement=function(e){return 0<(e&t.prototype.CASHTODAYSETTLEMENT_MASK)},t.isDelayedDateSettlement=function(e){return 0<(e&t.prototype.DELAYEDDATESETTLEMENT_MASK)},t.isDerivativeRelatedSettlement=function(e){return 0<(e&t.prototype.DERIVATIVERELATEDSETTLEMENT_MASK)},t.isNonNetSettlement=function(e){return 0<(e&t.prototype.NONNETSETTLEMENT_MASK)},t.isMarketOrder=function(e){return 0<(e&t.prototype.MARKETORDER_MASK)},t.isFirmQuote=function(e){return 0<(e&t.prototype.FIRMQUOTE_MASK)},t.isDisplay=function(e){return 0<(e&t.prototype.DISPLAY_MASK)},t.isMarketPrice=function(e){return 0<(e&t.prototype.PRICE_MARKET_MASK)},t.isOpeningPrice=function(e){return 0<(e&t.prototype.PRICE_OPENING_MASK)},t.isPriceMustBeFilled=function(e){return 0<(e&t.prototype.PRICE_MUSTBEFILLED_MASK)},t.isFutureSettlement=function(e){return 0<(e&t.prototype.FUTURESETTLEMENT_MASK)},t.isNextDaySettlement=function(e){return 0<(e&t.prototype.NEXTDAYSETTLEMENT_MASK)},t}());w.prototype.LOTSOF_MASK=1,w.prototype.ALLORNONE_MASK=2,w.prototype.MINIMUMFILLVOLUME_MASK=4,w.prototype.NONRESIDENT_MASK=8,w.prototype.CASHSETTLEMENT_MASK=16,w.prototype.CASHTODAYSETTLEMENT_MASK=32,w.prototype.DELAYEDDATESETTLEMENT_MASK=64,w.prototype.DERIVATIVERELATEDSETTLEMENT_MASK=128,w.prototype.NONNETSETTLEMENT_MASK=256,w.prototype.MARKETORDER_MASK=512,w.prototype.FIRMQUOTE_MASK=1024,w.prototype.DISPLAY_MASK=16777216,w.prototype.PRICE_MARKET_MASK=268435456,w.prototype.PRICE_OPENING_MASK=536870912,w.prototype.PRICE_MUSTBEFILLED_MASK=1073741824,w.prototype.FUTURESETTLEMENT_MASK=2048,w.prototype.NEXTDAYSETTLEMENT_MASK=4096}).call(this,O("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],O("timers").setImmediate,O("timers").clearImmediate,"/lib/qitch/marketDataDefinition/BookOrderDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],73:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0,y.LENGTH=y.MINTICKSIZE_OFFSET=y.CALLPUTINDICATOR_OFFSET=y.CONTRACTSIZE_OFFSET=y.OPENINTEREST_OFFSET=y.DELIVERY_OFFSET=y.EXPIRATION_OFFSET=y.ROOTSYMBOL_OFFSET=y.SYMBOL_OFFSET=y.TYPEID=undefined;var c=b("../QitchConstants"),d=(y.TYPEID=12,y.SYMBOL_OFFSET=0),p=y.ROOTSYMBOL_OFFSET=d+c.LOCATECODE_LENGTH,h=y.EXPIRATION_OFFSET=p+c.SYMBOL_LENGTH,m=y.DELIVERY_OFFSET=h+c.TIMESTAMP_LENGTH,_=y.OPENINTEREST_OFFSET=m+c.TIMESTAMP_LENGTH,E=y.CONTRACTSIZE_OFFSET=_+c.LONG_LENGTH,g=y.CALLPUTINDICATOR_OFFSET=E+c.INT_LENGTH,T=y.MINTICKSIZE_OFFSET=g+c.ASCIICHAR_LENGTH;y.LENGTH=T+c.DOUBLE_LENGTH}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/qitch/marketDataDefinition/DerivativeInfoDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],74:[function(I,e,A){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";A.__esModule=!0,A.LENGTH=A.EXTRINSIC_VALUE_OFFSET=A.INTRINSIC_VALUE_OFFSET=A.MARK_OFFSET=A.LAST_CALCULATION_OFFSET=A.ASK_IMPLIED_VOLATILITY_OFFSET=A.BID_IMPLIED_VOLATILITY_OFFSET=A.IMPLIED_VOLATILITY_CHANGE_OFFSET=A.IMPLIED_VOLATILITY_OFFSET=A.THETA_OFFSET=A.RHO_OFFSET=A.VEGA_OFFSET=A.GAMMA_OFFSET=A.DELTA_OFFSET=A.LOCATECODE_OFFSET=A.TYPEID=undefined;var c=I("../QitchConstants"),d=(A.TYPEID=15,A.LOCATECODE_OFFSET=0),p=A.DELTA_OFFSET=d+c.INT_LENGTH,h=A.GAMMA_OFFSET=p+c.DOUBLE_LENGTH,m=A.VEGA_OFFSET=h+c.DOUBLE_LENGTH,_=A.RHO_OFFSET=m+c.DOUBLE_LENGTH,E=A.THETA_OFFSET=_+c.DOUBLE_LENGTH,g=A.IMPLIED_VOLATILITY_OFFSET=E+c.DOUBLE_LENGTH,T=A.IMPLIED_VOLATILITY_CHANGE_OFFSET=g+c.DOUBLE_LENGTH,b=A.BID_IMPLIED_VOLATILITY_OFFSET=T+c.DOUBLE_LENGTH,y=A.ASK_IMPLIED_VOLATILITY_OFFSET=b+c.DOUBLE_LENGTH,S=A.LAST_CALCULATION_OFFSET=y+c.DOUBLE_LENGTH,w=A.MARK_OFFSET=S+c.TIMESTAMP_LENGTH,O=A.INTRINSIC_VALUE_OFFSET=w+c.DOUBLE_LENGTH,v=A.EXTRINSIC_VALUE_OFFSET=O+c.DOUBLE_LENGTH;A.LENGTH=v+c.DOUBLE_LENGTH}).call(this,I("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},I("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],I("timers").setImmediate,I("timers").clearImmediate,"/lib/qitch/marketDataDefinition/IVGreeksDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],75:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0,w.LENGTH=w.PRICEVARIATION_OFFSET=w.FARINDICATIVEPRICE_OFFSET=w.NEARINDICATIVEPRICE_OFFSET=w.PAIREDVOLUME_OFFSET=w.ORDERSIDE_OFFSET=w.SIZE_OFFSET=w.REFERENCEPRICE_OFFSET=w.TIMESTAMP_OFFSET=w.IMBALANCE_TYPE_OFFSET=w.LOCATECODE_OFFSET=w.TYPEID=undefined;var c=S("../QitchConstants"),d=(w.TYPEID=16,w.LOCATECODE_OFFSET=0),p=w.IMBALANCE_TYPE_OFFSET=d+c.LOCATECODE_LENGTH,h=w.TIMESTAMP_OFFSET=p+c.IMBALANCETYPE_LENGTH,m=w.REFERENCEPRICE_OFFSET=h+c.TIMESTAMP_LENGTH,_=w.SIZE_OFFSET=m+c.DOUBLE_LENGTH,E=w.ORDERSIDE_OFFSET=_+c.LONG_LENGTH,g=w.PAIREDVOLUME_OFFSET=E+c.ORDERSIDE_LENGTH,T=w.NEARINDICATIVEPRICE_OFFSET=g+c.INT_LENGTH,b=w.FARINDICATIVEPRICE_OFFSET=T+c.DOUBLE_LENGTH,y=w.PRICEVARIATION_OFFSET=b+c.DOUBLE_LENGTH;w.LENGTH=y+c.DOUBLE_LENGTH}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/qitch/marketDataDefinition/ImbalanceStatusDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],76:[function(w,e,O){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";O.__esModule=!0,O.LENGTH=O.TRADEVALUE_OFFSET=O.LASTTIME_OFFSET=O.OPENTIME_OFFSET=O.STARTTIME_OFFSET=O.VOLUME_OFFSET=O.LAST_OFFSET=O.HIGH_OFFSET=O.LOW_OFFSET=O.OPEN_OFFSET=O.SYMBOL_OFFSET=O.TIMESTAMP_OFFSET=O.TYPEID=undefined;var c=w("../QitchConstants"),d=(O.TYPEID=8,O.TIMESTAMP_OFFSET=0),p=O.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=O.OPEN_OFFSET=p+c.LOCATECODE_LENGTH,m=O.LOW_OFFSET=h+c.DOUBLE_LENGTH,_=O.HIGH_OFFSET=m+c.DOUBLE_LENGTH,E=O.LAST_OFFSET=_+c.DOUBLE_LENGTH,g=O.VOLUME_OFFSET=E+c.DOUBLE_LENGTH,T=O.STARTTIME_OFFSET=g+c.LONG_LENGTH,b=O.OPENTIME_OFFSET=T+c.TIMESTAMP_LENGTH,y=O.LASTTIME_OFFSET=b+c.TIMESTAMP_LENGTH,S=O.TRADEVALUE_OFFSET=y+c.TIMESTAMP_LENGTH;O.LENGTH=S+c.LONG_LENGTH}).call(this,w("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],w("timers").setImmediate,w("timers").clearImmediate,"/lib/qitch/marketDataDefinition/IntervalDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],77:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.LENGTH=T.TICK_OFFSET=T.ACCUMULATEDVOLUME_OFFSET=T.PREVCLOSE_OFFSET=T.LAST_OFFSET=T.SYMBOL_OFFSET=T.TIMESTAMP_OFFSET=T.TYPEID=undefined;var c=g("../QitchConstants"),d=(T.TYPEID=13,T.TIMESTAMP_OFFSET=0),p=T.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=T.LAST_OFFSET=p+c.LOCATECODE_LENGTH,m=T.PREVCLOSE_OFFSET=h+c.DOUBLE_LENGTH,_=T.ACCUMULATEDVOLUME_OFFSET=m+c.DOUBLE_LENGTH,E=T.TICK_OFFSET=_+c.LONG_LENGTH;T.LENGTH=E+c.TICK_LENGTH}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/marketDataDefinition/LastSaleDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],78:[function(g,e,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.__esModule=!0,T.LimitUpLimitDownFlags=T.LENGTH=T.UPPERLIMIT_OFFSET=T.LOWERLIMIT_OFFSET=T.EFFECTIVETIME_OFFSET=T.PRICEBANDINDICATOR_OFFSET=T.LOCATECODE_OFFSET=T.TYPEID=undefined;var c=g("../QitchConstants");T.TYPEID=14;var d=T.LOCATECODE_OFFSET=0,p=T.PRICEBANDINDICATOR_OFFSET=d+c.INT_LENGTH,h=T.EFFECTIVETIME_OFFSET=p+c.BYTE_LENGTH,m=T.LOWERLIMIT_OFFSET=h+c.TIMESTAMP_LENGTH,_=T.UPPERLIMIT_OFFSET=m+c.DOUBLE_LENGTH,E=(T.LENGTH=_+c.DOUBLE_LENGTH,T.LimitUpLimitDownFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isBidNotExecutable=function(e){return 0<(e&t.prototype.BID_NOT_EXECUTABLE)},t.isAskNotExecutable=function(e){return 0<(e&t.prototype.ASK_NOT_EXECUTABLE)},t}());E.prototype.BID_NOT_EXECUTABLE=1,E.prototype.ASK_NOT_EXECUTABLE=2}).call(this,g("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},g("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],g("timers").setImmediate,g("timers").clearImmediate,"/lib/qitch/marketDataDefinition/LimitUpLimitDownDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],79:[function(w,e,O){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";O.__esModule=!0,O.LENGTH=O.SHARESPERSIZEUNIT_OFFSET=O.ASKCHANGE_OFFSET=O.BIDCHANGE_OFFSET=O.INDICATOR_OFFSET=O.MMID_OFFSET=O.ASKSIZE_OFFSET=O.ASKPRICE_OFFSET=O.BIDSIZE_OFFSET=O.BIDPRICE_OFFSET=O.SYMBOL_OFFSET=O.TIMESTAMP_OFFSET=O.TYPEID=undefined;var c=w("../QitchConstants"),d=(O.TYPEID=7,O.TIMESTAMP_OFFSET=0),p=O.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=O.BIDPRICE_OFFSET=p+c.LOCATECODE_LENGTH,m=O.BIDSIZE_OFFSET=h+c.DOUBLE_LENGTH,_=O.ASKPRICE_OFFSET=m+c.INT_LENGTH,E=O.ASKSIZE_OFFSET=_+c.DOUBLE_LENGTH,g=O.MMID_OFFSET=E+c.INT_LENGTH,T=O.INDICATOR_OFFSET=g+c.MMID_LENGTH,b=O.BIDCHANGE_OFFSET=T+c.ASCIICHAR_LENGTH,y=O.ASKCHANGE_OFFSET=b+c.DOUBLE_LENGTH,S=O.SHARESPERSIZEUNIT_OFFSET=y+c.DOUBLE_LENGTH;O.LENGTH=S+c.INT_LENGTH}).call(this,w("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],w("timers").setImmediate,w("timers").clearImmediate,"/lib/qitch/marketDataDefinition/MMQuoteDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],80:[function(A,e,N){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";N.__esModule=!0,N.LENGTH=N.SELLBLOCKTRANSACTIONS_OFFSET=N.BUYBLOCKTRANSACTIONS_OFFSET=N.SELLTRANSACTIONS_OFFSET=N.BUYTRANSACTIONS_OFFSET=N.SELLBLOCKVOLUME_OFFSET=N.SELLBLOCKVALUE_OFFSET=N.BUYBLOCKVOLUME_OFFSET=N.BUYBLOCKVALUE_OFFSET=N.SELLVOLUME_OFFSET=N.SELLVALUE_OFFSET=N.BUYVOLUME_OFFSET=N.BUYVALUE_OFFSET=N.MMID_OFFSET=N.SYMBOL_OFFSET=N.TIMESTAMP_OFFSET=N.TYPEID=undefined;var c=A("../QitchConstants"),d=(N.TYPEID=9,N.TIMESTAMP_OFFSET=0),p=N.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=N.MMID_OFFSET=p+c.LOCATECODE_LENGTH,m=N.BUYVALUE_OFFSET=h+c.MMID_LENGTH,_=N.BUYVOLUME_OFFSET=m+c.DOUBLE_LENGTH,E=N.SELLVALUE_OFFSET=_+c.LONG_LENGTH,g=N.SELLVOLUME_OFFSET=E+c.DOUBLE_LENGTH,T=N.BUYBLOCKVALUE_OFFSET=g+c.LONG_LENGTH,b=N.BUYBLOCKVOLUME_OFFSET=T+c.DOUBLE_LENGTH,y=N.SELLBLOCKVALUE_OFFSET=b+c.LONG_LENGTH,S=N.SELLBLOCKVOLUME_OFFSET=y+c.DOUBLE_LENGTH,w=N.BUYTRANSACTIONS_OFFSET=S+c.LONG_LENGTH,O=N.SELLTRANSACTIONS_OFFSET=w+c.INT_LENGTH,v=N.BUYBLOCKTRANSACTIONS_OFFSET=O+c.INT_LENGTH,I=N.SELLBLOCKTRANSACTIONS_OFFSET=v+c.INT_LENGTH;N.LENGTH=I+c.INT_LENGTH}).call(this,A("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},A("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],A("timers").setImmediate,A("timers").clearImmediate,"/lib/qitch/marketDataDefinition/NethousePositionDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],81:[function(P,e,G){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";G.__esModule=!0,G.PricedataFlags=G.LENGTH=G.LASTTRADEEXCODE_OFFSET=G.POSTMARKETCHANGE_OFFSET=G.POSTMARKETVOLUME_OFFSET=G.POSTMARKETLASTPRICE_OFFSET=G.POSTMARKETTRADETIME_OFFSET=G.PREMARKETCHANGE_OFFSET=G.PREMARKETVOLUME_OFFSET=G.PREMARKETLASTPRICE_OFFSET=G.PREMARKETTRADETIME_OFFSET=G.TWAP_OFFSET=G.VWAP_OFFSET=G.FLAGS_OFFSET=G.ACCUMULATEDTRADEVALUE_OFFSET=G.TRADECOUNT_OFFSET=G.CLOSE_OFFSET=G.LASTTRADESIZE_OFFSET=G.TICK_OFFSET=G.LASTTRADETIME_OFFSET=G.ACCUMULATEDVOLUME_OFFSET=G.LOW_OFFSET=G.HIGH_OFFSET=G.OPEN_OFFSET=G.PREVCLOSE_OFFSET=G.LAST_OFFSET=G.SYMBOL_OFFSET=G.TIMESTAMP_OFFSET=G.TYPEID=undefined;var c=P("../QitchConstants");G.TYPEID=2;var d=G.TIMESTAMP_OFFSET=0,p=G.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=G.LAST_OFFSET=p+c.LOCATECODE_LENGTH,m=G.PREVCLOSE_OFFSET=h+c.DOUBLE_LENGTH,_=G.OPEN_OFFSET=m+c.DOUBLE_LENGTH,E=G.HIGH_OFFSET=_+c.DOUBLE_LENGTH,g=G.LOW_OFFSET=E+c.DOUBLE_LENGTH,T=G.ACCUMULATEDVOLUME_OFFSET=g+c.DOUBLE_LENGTH,b=G.LASTTRADETIME_OFFSET=T+c.LONG_LENGTH,y=G.TICK_OFFSET=b+c.TIMESTAMP_LENGTH,S=G.LASTTRADESIZE_OFFSET=y+c.TICK_LENGTH,w=G.CLOSE_OFFSET=S+c.INT_LENGTH,O=G.TRADECOUNT_OFFSET=w+c.DOUBLE_LENGTH,v=G.ACCUMULATEDTRADEVALUE_OFFSET=O+c.LONG_LENGTH,I=G.FLAGS_OFFSET=v+c.DOUBLE_LENGTH,A=G.VWAP_OFFSET=I+1,N=G.TWAP_OFFSET=A+c.DOUBLE_LENGTH,F=G.PREMARKETTRADETIME_OFFSET=N+c.TIMESTAMP_LENGTH,C=G.PREMARKETLASTPRICE_OFFSET=F+c.DOUBLE_LENGTH,M=G.PREMARKETVOLUME_OFFSET=C+c.LONG_LENGTH,L=G.PREMARKETCHANGE_OFFSET=M+c.DOUBLE_LENGTH,D=G.POSTMARKETTRADETIME_OFFSET=L+c.TIMESTAMP_LENGTH,R=G.POSTMARKETLASTPRICE_OFFSET=D+c.DOUBLE_LENGTH,B=G.POSTMARKETVOLUME_OFFSET=R+c.LONG_LENGTH,k=G.POSTMARKETCHANGE_OFFSET=B+c.DOUBLE_LENGTH,U=G.LASTTRADEEXCODE_OFFSET=k+c.DOUBLE_LENGTH,H=(G.LENGTH=U+c.EXCODE_LENGTH,G.PricedataFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isAnnualHigh=function(e){return 0<(e&t.prototype.ANNUALHIGH_MASK)},t.isAnnualLow=function(e){return 0<(e&t.prototype.ANNUALLOW_MASK)},t}());H.prototype.ANNUALHIGH_MASK=1,H.prototype.ANNUALLOW_MASK=2}).call(this,P("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},P("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],P("timers").setImmediate,P("timers").clearImmediate,"/lib/qitch/marketDataDefinition/PricedataDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],82:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.LENGTH=h.SYMBOL_OFFSET=h.TYPEID=undefined;var c=p("../QitchConstants"),d=(h.TYPEID=6,h.SYMBOL_OFFSET=0);h.LENGTH=d+c.LOCATECODE_LENGTH}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/qitch/marketDataDefinition/PurgeBookDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],83:[function(O,e,v){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";v.__esModule=!0,v.LENGTH=v.SHARESPERSIZEUNIT_OFFSET=v.INDICATOR_OFFSET=v.BIDSIZE_OFFSET=v.BIDPRICE_OFFSET=v.BIDEXCODE_OFFSET=v.BIDCONDITION_OFFSET=v.ASKSIZE_OFFSET=v.ASKPRICE_OFFSET=v.ASKEXCODE_OFFSET=v.ASKCONDITION_OFFSET=v.SYMBOL_OFFSET=v.TIMESTAMP_OFFSET=v.TYPEID=undefined;var c=O("../QitchConstants"),d=(v.TYPEID=1,v.TIMESTAMP_OFFSET=0),p=v.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=v.ASKCONDITION_OFFSET=p+c.LOCATECODE_LENGTH,m=v.ASKEXCODE_OFFSET=h+c.ASCIICHAR_LENGTH,_=v.ASKPRICE_OFFSET=m+c.EXCODE_LENGTH,E=v.ASKSIZE_OFFSET=_+c.DOUBLE_LENGTH,g=v.BIDCONDITION_OFFSET=E+c.INT_LENGTH,T=v.BIDEXCODE_OFFSET=g+c.ASCIICHAR_LENGTH,b=v.BIDPRICE_OFFSET=T+c.EXCODE_LENGTH,y=v.BIDSIZE_OFFSET=b+c.DOUBLE_LENGTH,S=v.INDICATOR_OFFSET=y+c.INT_LENGTH,w=v.SHARESPERSIZEUNIT_OFFSET=S+c.ASCIICHAR_LENGTH;v.LENGTH=w+c.INT_LENGTH}).call(this,O("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],O("timers").setImmediate,O("timers").clearImmediate,"/lib/qitch/marketDataDefinition/QuoteDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],84:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0,w.LENGTH=w.CAVEATEMPTOR_OFFSET=w.PQE_OFFSET=w.REGSHOSTATUS_OFFSET=w.HALTINDICATOR_OFFSET=w.HALTSTATUS_OFFSET=w.CURRENCYID_OFFSET=w.INSTRUMENTTYPE_OFFSET=w.EXCODE_OFFSET=w.LOCATECODE_OFFSET=w.SYMBOL_OFFSET=w.TYPEID=undefined;var c=S("../QitchConstants"),d=(w.TYPEID=10,w.SYMBOL_OFFSET=0),p=w.LOCATECODE_OFFSET=d+c.SYMBOL_LENGTH,h=w.EXCODE_OFFSET=p+c.LOCATECODE_LENGTH,m=w.INSTRUMENTTYPE_OFFSET=h+c.EXCODE_LENGTH,_=w.CURRENCYID_OFFSET=m+c.INSTRUMENTTYPE_LENGTH,E=w.HALTSTATUS_OFFSET=_+c.CURRENCYID_LENGTH,g=w.HALTINDICATOR_OFFSET=E+c.BYTE_LENGTH,T=w.REGSHOSTATUS_OFFSET=g+c.BYTE_LENGTH,b=w.PQE_OFFSET=T+c.ASCIICHAR_LENGTH,y=w.CAVEATEMPTOR_OFFSET=b+c.BYTE_LENGTH;w.LENGTH=y+c.BYTE_LENGTH}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/qitch/marketDataDefinition/SymbolInfoDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],85:[function(b,e,y){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";y.__esModule=!0,y.LENGTH=y.NOTE_OFFSET=y.OPENINGTIME_OFFSET=y.EFFECTIVETIME_OFFSET=y.CLOSINGPRICE_OFFSET=y.REGSHOSTATUS_OFFSET=y.HALTINDICATOR_OFFSET=y.HALTSTATUS_OFFSET=y.LOCATE_CODE_OFFSET=y.TYPEID=undefined;var c=b("../QitchConstants"),d=(y.TYPEID=11,y.LOCATE_CODE_OFFSET=0),p=y.HALTSTATUS_OFFSET=d+c.LOCATECODE_LENGTH,h=y.HALTINDICATOR_OFFSET=p+c.BYTE_LENGTH,m=y.REGSHOSTATUS_OFFSET=h+c.BYTE_LENGTH,_=y.CLOSINGPRICE_OFFSET=m+c.ASCIICHAR_LENGTH,E=y.EFFECTIVETIME_OFFSET=_+c.DOUBLE_LENGTH,g=y.OPENINGTIME_OFFSET=E+c.TIMESTAMP_LENGTH,T=y.NOTE_OFFSET=g+c.TIMESTAMP_LENGTH;y.LENGTH=T+c.NOTE_LENGTH}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],b("timers").setImmediate,b("timers").clearImmediate,"/lib/qitch/marketDataDefinition/SymbolStatusDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],86:[function(N,e,F){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";F.__esModule=!0,F.TradeFlags=F.LENGTH=F.EXCODE_OFFSET=F.VWAP_OFFSET=F.MATCHID_OFFSET=F.RANGEINDICATOR_OFFSET=F.SELLERMMID_OFFSET=F.BUYERMMID_OFFSET=F.FLAGS_OFFSET=F.SEQUENCENUMBER_OFFSET=F.ACCUMULATEDVOLUME_OFFSET=F.TICK_OFFSET=F.INDICATOR_OFFSET=F.SIZE_OFFSET=F.PRICE_OFFSET=F.SYMBOL_OFFSET=F.TIMESTAMP_OFFSET=F.TYPEID=undefined;var c=N("../QitchConstants");F.TYPEID=3;var d=F.TIMESTAMP_OFFSET=0,p=F.SYMBOL_OFFSET=d+c.TIMESTAMP_LENGTH,h=F.PRICE_OFFSET=p+c.LOCATECODE_LENGTH,m=F.SIZE_OFFSET=h+c.DOUBLE_LENGTH,_=F.INDICATOR_OFFSET=m+c.INT_LENGTH,E=F.TICK_OFFSET=_+c.ASCIICHAR_LENGTH,g=F.ACCUMULATEDVOLUME_OFFSET=E+c.TICK_LENGTH,T=F.SEQUENCENUMBER_OFFSET=g+c.LONG_LENGTH,b=F.FLAGS_OFFSET=T+c.INT_LENGTH,y=F.BUYERMMID_OFFSET=b+c.INT_LENGTH,S=F.SELLERMMID_OFFSET=y+c.MMID_LENGTH,w=F.RANGEINDICATOR_OFFSET=S+c.MMID_LENGTH,O=F.MATCHID_OFFSET=w+c.RANGEINDICATOR_LENGTH,v=F.VWAP_OFFSET=O+c.LONG_LENGTH,I=F.EXCODE_OFFSET=v+c.DOUBLE_LENGTH,A=(F.LENGTH=I+c.EXCODE_LENGTH,F.TradeFlags=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.isOpen=function(e){return 0<(e&t.prototype.OPEN_MASK)},t.isHigh=function(e){return 0<(e&t.prototype.HIGH_MASK)},t.isLow=function(e){return 0<(e&t.prototype.LOW_MASK)},t.isClose=function(e){return 0<(e&t.prototype.CLOSE_MASK)},t.isUpdateVolume=function(e){return 0<(e&t.prototype.UPDATEVOLUME_MASK)},t.isCancel=function(e){return 0<(e&t.prototype.CANCEL_MASK)},t.isFromBook=function(e){return 0<(e&t.prototype.FROMBOOK_MASK)},t.isATrade=function(e){return 0<(e&t.prototype.ISATRADE_MASK)},t.isIncrementVolume=function(e){return 0<(e&t.prototype.INCREMENTVOLUME_MASK)},t.isUpdateAfterHours=function(e){return 0<(e&t.prototype.UPDATEAFTERHOURS_MASK)},t.isUpdateLast=function(e){return 0<(e&t.prototype.UPDATELAST_MASK)},t.isAfterHoursTrade=function(e){return 0<(e&t.prototype.AFTERHOURSTRADE)},t.isIgnoreHighLow=function(e){return 0<(e&t.prototype.IGNOREHIGHLOW_MASK)},t.isParticipantOnly=function(e){return 0<(e&t.prototype.PARTICIPANTONLY_MAKS)},t.isBlockTrade=function(e){return 0<(e&t.prototype.BLOCKTRADE_MASK)},t.isIgnoreOpen=function(e){return 0<(e&t.prototype.IGNOREOPEN_MASK)},t.isTradeThroughExempt=function(e){return 0<(e&t.prototype.TRADETHROUGHEXEMPT)},t.isCorrection=function(e){return e&t.prototype.CORRECTION_MASK},t}());A.prototype.OPEN_MASK=1048576,A.prototype.HIGH_MASK=2097152,A.prototype.LOW_MASK=4194304,A.prototype.CLOSE_MASK=8388608,A.prototype.UPDATEVOLUME_MASK=16777216,A.prototype.CANCEL_MASK=33554432,A.prototype.FROMBOOK_MASK=67108864,A.prototype.ISATRADE_MASK=65536,A.prototype.INCREMENTVOLUME_MASK=131072,A.prototype.UPDATEAFTERHOURS_MASK=262144,A.prototype.UPDATELAST_MASK=524288,A.prototype.AFTERHOURSTRADE=4096,A.prototype.IGNOREHIGHLOW_MASK=8192,A.prototype.PARTICIPANTONLY_MAKS=16384,A.prototype.BLOCKTRADE_MASK=32768,A.prototype.IGNOREOPEN_MASK=256,A.prototype.TRADETHROUGHEXEMPT=512,A.prototype.CORRECTION_MASK=134217728}).call(this,N("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],N("timers").setImmediate,N("timers").clearImmediate,"/lib/qitch/marketDataDefinition/TradeDef.js","/lib/qitch/marketDataDefinition")},{"../QitchConstants":26,_process:114,buffer:104,timers:135}],87:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;var c,d=m("./v1/SMessageDecoder_1.js"),p=(c=d)&&c.__esModule?c:{"default":c};var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._1=new p["default"]}return e.prototype.decode=function(e){if(null==e)throw"Argument cannot be null.";if(0==e.length)throw"Argument cannot be empty string.";var t=e.charAt(0),n=this["_"+t];if(null!=n)return n.decode(e);throw"Unsupported message type '"+t+"'."},e}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/serialization/SMessageDecoder.js","/lib/serialization")},{"./v1/SMessageDecoder_1.js":89,_process:114,buffer:104,timers:135}],88:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;var c,d=m("./v1/SMessageEncoder_1.js"),p=(c=d)&&c.__esModule?c:{"default":c};var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._1=new p["default"]}return e.prototype.encode=function(e){if(null==e)throw"Argument cannot be null.";var t=this["_"+e.type];if(null!=t)return t.encode(e);throw"Unsupported message type '"+e.type+"'."},e}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/serialization/SMessageEncoder.js","/lib/serialization")},{"./v1/SMessageEncoder_1.js":90,_process:114,buffer:104,timers:135}],89:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;var c=p(m("../../SMessage.js")),d=p(m("./codec.js"));function p(e){return e&&e.__esModule?e:{"default":e}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.decode=function(e){if(null==e)throw"Argument cannot be null.";if(0==e.length)throw"Argument cannot be empty string.";var t=new c["default"];t.type=d["default"].TYPE;var n=Number(e.substr(d["default"].HEADERLENGTH_OFFSET,d["default"].USHORT_LENGTH_CHAR));t.sequencenumber=Number(e.substr(d["default"].SEQUENCENUMBER_OFFSET,d["default"].LONG_LENGTH_CHAR)),t.timestamp=Number(e.substr(d["default"].TIMESTAMP_OFFSET,d["default"].LONG_LENGTH_CHAR)),t.id=Number(e.substr(d["default"].ID_OFFSET,d["default"].USHORT_LENGTH_CHAR)),t.encoding=e.charAt(d["default"].ENCODING_OFFSET),t.mimetype=e.charAt(d["default"].MIMETYPE_OFFSET);var r=Number(e.substr(d["default"].PAYLOADLENGTH_OFFSET,d["default"].UINT_LENGTH_CHAR));return t.payload=e.substr(n,r),t},e}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/serialization/v1/SMessageDecoder_1.js","/lib/serialization/v1")},{"../../SMessage.js":5,"./codec.js":91,_process:114,buffer:104,timers:135}],90:[function(_,e,E){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";E.__esModule=!0;var c,d=_("../../message.js"),p=_("./codec.js"),h=(c=p)&&c.__esModule?c:{"default":c};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.encode=function(e){if(null==e)throw"Argument cannot be null.";var t=h["default"].TYPE;return t+=(0,d.lpad)(h["default"].HEADER_LENGTH_CHAR,h["default"].USHORT_LENGTH_CHAR),t+=(0,d.lpad)(e.sequencenumber,h["default"].LONG_LENGTH_CHAR),t+=(0,d.lpad)(e.timestamp,h["default"].LONG_LENGTH_CHAR),t+=(0,d.lpad)(e.id,h["default"].USHORT_LENGTH_CHAR),t+=e.encoding,t+=e.mimetype,t+=(0,d.lpad)(null!=e.payload?e.payload.length:0,h["default"].UINT_LENGTH_CHAR),null!=e.payload&&(t+=e.payload),t},e}();E["default"]=m}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/lib/serialization/v1/SMessageEncoder_1.js","/lib/serialization/v1")},{"../../message.js":17,"./codec.js":91,_process:114,buffer:104,timers:135}],91:[function(e,t,c){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";c.__esModule=!0,c["default"]=new function(){this.TYPE="1",this.USHORT_LENGTH_CHAR=5,this.USHORT_MIN=0,this.USHORT_MAX=65535,this.UINT_LENGTH_CHAR=10,this.UINT_MIN=0,this.UINT_MAX=4294967295,this.LONG_LENGTH_CHAR=20,this.LONG_MIN=Number.MIN_SAFE_INTEGER,this.LONG_MAX=Number.MAX_SAFE_INTEGER,this.TYPE_OFFSET=0,this.HEADERLENGTH_OFFSET=this.TYPE_OFFSET+1,this.SEQUENCENUMBER_OFFSET=this.HEADERLENGTH_OFFSET+this.USHORT_LENGTH_CHAR,this.TIMESTAMP_OFFSET=this.SEQUENCENUMBER_OFFSET+this.LONG_LENGTH_CHAR,this.ID_OFFSET=this.TIMESTAMP_OFFSET+this.LONG_LENGTH_CHAR,this.ENCODING_OFFSET=this.ID_OFFSET+this.USHORT_LENGTH_CHAR,this.MIMETYPE_OFFSET=this.ENCODING_OFFSET+1,this.PAYLOADLENGTH_OFFSET=this.MIMETYPE_OFFSET+1,this.HEADER_LENGTH_CHAR=this.PAYLOADLENGTH_OFFSET+this.UINT_LENGTH_CHAR}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/serialization/v1/codec.js","/lib/serialization/v1")},{_process:114,buffer:104,timers:135}],92:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;d.LIBRARY_NAME="JavaScript",d.VERSION="2.20.0";var c=d.messages={};c.control={},c.market={},c.JSON_TYPE_PROPERTY="@T",c.MessageTypeNames={ctrl:{HEARTBEAT:"C1",SUBSCRIBE:"C2",SUBSCRIBE_RESPONSE:"C3",UNSUBSCRIBE_RESPONSE:"C4",CONNECT_RESPONSE:"C5",CONNECTION_CLOSE:"C6",FLOW:"C7",SLOW_CONNECTION:"C8",INITIAL_DATA_SENT:"C9",RESUBSCRIBE_MESSAGE:"C10",STATS:"C12",STATS_RESPONSE:"C13",EXCHANGE_SUBSCRIBE:"C14",EXCHANGE_RESPONSE:"C15",EXCHANGE_UNSUBSCRIBE_RESPONSE:"C16"},data:{QUOTE:"D1",PRICEDATA:"D2",TRADE:"D3",BOOKORDER:"D4",BOOKDELETE:"D5",PURGEBOOK:"D6",MMQUOTE:"D7",INTERVAL:"D8",NETHOUSEPOSITION:"D9",SYMBOLINFO:"D10",SYMBOLSTATUS:"D11",DERIVATIVEINFO:"D12",LASTSALE:"D13",LIMITUPLIMITDOWN:"D14",IVGREEKS:"D15",IMBALANCESTATUS:"D16",ALERT:"D17"}},c.Message=function(){},c.Message.prototype.init=function(e){this[c.JSON_TYPE_PROPERTY]=e},c.control.CtrlMessage=function(){},c.control.CtrlMessage.prototype=new c.Message,c.control.Heartbeat=function(){this.init(c.MessageTypeNames.ctrl.HEARTBEAT),this.timestamp=null},c.control.Heartbeat.prototype=new c.control.CtrlMessage,c.control.StatsMessage=function(){this.init(c.MessageTypeNames.ctrl.STATS)},c.control.StatsMessage.prototype=new c.control.CtrlMessage,c.control.SubscribeMessage=function(){this.init(c.MessageTypeNames.ctrl.SUBSCRIBE),this.action=null,this.symbols=[],this.types=[],this.mimetype=null,this.conflation=null},c.control.SubscribeMessage.prototype=new c.control.CtrlMessage,c.control.ExchangeSubscribeMessage=function(){this.init(c.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE),this.action=null,this.exchange=null,this.mimetype=null,this.conflation=null},c.control.ExchangeSubscribeMessage.prototype=new c.control.CtrlMessage,c.control.BaseResponse=function(){this.code=null,this.reason=null},c.control.BaseResponse.prototype=new c.control.CtrlMessage,c.control.SubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE),this.entitlements=null,this.invalidsymbols=null,this.rejectedsymbols=null},c.control.SubscribeResponse.prototype=new c.control.BaseResponse,c.control.ExchangeSubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.EXCHANGE_RESPONSE)},c.control.ExchangeSubscribeResponse.prototype=new c.control.BaseResponse,c.control.UnsubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE),this.unsubscribed=null},c.control.UnsubscribeResponse.prototype=new c.control.BaseResponse,c.control.ExchangeUnsubscribeResponse=function(){this.init(c.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE)},c.control.ExchangeUnsubscribeResponse.prototype=new c.control.BaseResponse,c.control.StreamEntitlement=function(){this.symbol=null,this.marketdatatype=null,this.entitlement=null},c.control.ConnectResponse=function(){this.init(c.MessageTypeNames.ctrl.CONNECT_RESPONSE),this.version=null,this.flowControlCheckInterval=null,this.serverInstance=null,this.conflationMs=null},c.control.ConnectResponse.prototype=new c.control.BaseResponse,c.control.ConnectionClose=function(){this.init(c.MessageTypeNames.ctrl.CONNECTION_CLOSE),this.code=null,this.reason=null},c.control.ConnectionClose.prototype=new c.control.CtrlMessage,c.control.SlowConnection=function(){this.init(c.MessageTypeNames.ctrl.SLOW_CONNECTION),this.timesExceeded=null,this.maxExceed=null},c.control.SlowConnection.prototype=new c.control.CtrlMessage,c.control.FlowMessage=function(){this.init(c.MessageTypeNames.ctrl.FLOW),this.sequence=null},c.control.FlowMessage.prototype=new c.control.CtrlMessage,c.control.StatsResponse=function(){this.init(c.MessageTypeNames.ctrl.STATS_RESPONSE),this.numberOfSubscribedSymbolsL1=null,this.numberOfAvailableSymbolsL1=null,this.numberOfSubscribedSymbolsL2=null,this.numberOfAvailableSymbolsL2=null,this.numberOfOpenedConnections=null,this.numberOfAvailableConnections=null,this.numberOfSubscribedExchanges=null},c.control.StatsResponse.prototype=new c.control.BaseResponse,c.control.InitialDataSent=function(){this.init(c.MessageTypeNames.ctrl.INITIAL_DATA_SENT),this.timestamp=null},c.control.InitialDataSent.prototype=new c.control.CtrlMessage,c.control.ResubscribeMessage=function(){this.init(c.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE),this.timestamp=null},c.control.ResubscribeMessage.prototype=new c.control.CtrlMessage,c.control.StreamEntitlementType={RT:"Realtime",RTO:"Realtime CBOE ONE",RTN:"Realtime NASDAQ",RTB:"Realtime BATS",DL:"Delayed",DLO:"Delayed CBOE One",DLN:"Delayed NASDAQ",NA:"Not Entitled"},c.control.Action={SUBSCRIBE:"SUBSCRIBE",UNSUBSCRIBE:"UNSUBSCRIBE"},c.control.MarketdataType={QUOTE:"QUOTE",PRICEDATA:"PRICEDATA",TRADE:"TRADE",MMQUOTE:"MMQUOTE",ORDERBOOK:"ORDERBOOK",INTERVAL:"INTERVAL",NETHOUSEPOSITION:"NETHOUSEPOSITION",LASTSALE:"LASTSALE",BOOKORDER:"BOOKORDER",BOOKDELETE:"BOOKDELETE",PURGEBOOK:"PURGEBOOK",LIMITUPLIMITDOWN:"LIMITUPLIMITDOWN",IVGREEKS:"IVGREEKS",IMBALANCESTATUS:"IMBALANCESTATUS"},c.control.ResponseCodes={OK_CODE:200,OK_REASON:"OK",BADREQUEST_CODE:400,BADREQUEST_REASON:"Bad Request",UNAUTHORIZED_CODE:401,UNAUTHORIZED_REASON:"Unauthorized",TOOSLOW_CODE:450,TOOSLOW_REASON:"Too slow",DATA_SOURCE_RESET:454,DATA_SOURCE_RESET_REASON:"Data Source Was Reset",CONNECTION_LIMIT_EXCEEDED_CODE:452,CONNECTION_LIMIT_EXCEEDED_REASON:"Connection Limit Exceeded",INTERNALSERVERERROR_CODE:500,INTERNALSERVERERROR_REASON:"Internal Server Error"},c.market.DataMessage=function(){this.messageType=null},c.market.DataMessage.prototype=new c.Message,c.market.Quote=function(){this.init(c.MessageTypeNames.data.QUOTE)},c.market.Quote.prototype=new c.market.DataMessage,c.market.PriceData=function(){this.init(c.MessageTypeNames.data.PRICEDATA)},c.market.PriceData.prototype=new c.market.DataMessage,c.market.Trade=function(){this.init(c.MessageTypeNames.data.TRADE)},c.market.Trade.prototype=new c.market.DataMessage,c.market.MMQuote=function(){this.init(c.MessageTypeNames.data.MMQUOTE)},c.market.MMQuote.prototype=new c.market.DataMessage,c.market.PurgeBook=function(){this.init(c.MessageTypeNames.data.PURGEBOOK)},c.market.PurgeBook.prototype=new c.market.DataMessage,c.market.BookOrder=function(){this.init(c.MessageTypeNames.data.BOOKORDER)},c.market.BookOrder.prototype=new c.market.DataMessage,c.market.BookDelete=function(){this.init(c.MessageTypeNames.data.BOOKDELETE)},c.market.BookDelete.prototype=new c.market.DataMessage,c.market.Interval=function(){this.init(c.MessageTypeNames.data.INTERVAL)},c.market.Interval.prototype=new c.market.DataMessage,c.market.NethousePosition=function(){this.init(c.MessageTypeNames.data.NETHOUSEPOSITION)},c.market.NethousePosition.prototype=new c.market.DataMessage,c.market.SymbolInfo=function(){this.init(c.MessageTypeNames.data.SYMBOLINFO)},c.market.SymbolInfo.prototype=new c.market.DataMessage,c.market.SymbolStatus=function(){this.init(c.MessageTypeNames.data.SYMBOLSTATUS)},c.market.SymbolStatus.prototype=new c.market.DataMessage,c.market.DerivativeInfo=function(){this.init(c.MessageTypeNames.data.DERIVATIVEINFO)},c.market.DerivativeInfo.prototype=new c.market.DataMessage,c.market.IVGreeks=function(){this.init(c.MessageTypeNames.data.IVGREEKS)},c.market.IVGreeks.prototype=new c.market.DataMessage,c.market.LastSale=function(){this.init(c.MessageTypeNames.data.LASTSALE)},c.market.LastSale.prototype=new c.market.DataMessage,c.market.LimitUpLimitDown=function(){this.init(c.MessageTypeNames.data.LIMITUPLIMITDOWN)},c.market.LimitUpLimitDown.prototype=new c.market.DataMessage,c.market.ImbalanceStatus=function(){this.init(c.MessageTypeNames.data.IMBALANCESTATUS)},c.market.ImbalanceStatus.prototype=new c.market.DataMessage,c.market.Alert=function(){this.init(c.MessageTypeNames.data.ALERT)},c.market.Alert.prototype=new c.market.DataMessage,c.market.InstrumentType={1:"CASH",2:"BOND",3:"COMPOSITE",4:"FUTURE",5:"FUTURE_OPTION",6:"FOREX",7:"INDEX",8:"MUTUAL_FUND",9:"MONEY_MARKET_FUND",10:"MARKET_STAT",11:"EQUITY",12:"EQUITY_OPTION",13:"GOVT_BOND",14:"MUNI_BOND",15:"CORP_BOND",16:"ETF",17:"FUTURE_SPREAD",97:"OPTION_ROOT",98:"UNKNOWN",99:"RATE"},c.market.OrderSide={BUYSIDE:"B",SELLSIDE:"S"},c.market.ImbalanceType={0:"NONE",1:"MARKET",2:"MOC",3:"REGULATORY_IMBALANCE",4:"OPENING_IMBALANCE",5:"CLOSING_IMBALANCE",6:"IPO_IMBALANCE",7:"HALT_IMBALANCE",8:"EQUILIBRIUM"},c.market.OrderChangeType={A:"ADD",M:"MODIFY",C:"CANCEL",E:"EXECUTE"}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/streamer-api.js","/lib")},{_process:114,buffer:104,timers:135}],93:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,p("./polyfills");var c=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Object.assign(this,e)}return t.prototype.toString=function(){var e=this.type+"{",t=!0;for(var n in this)"type"!==n&&"function"!=typeof this[n]&&(t||(e+=", "),e+=n+": "+JSON.stringify(this[n]),t=!1);return e+="}"},t}(),d=h.event=function(e,t){return new c(Object.assign({type:e},t))};h.error=function(e,t){return d("error",Object.assign({description:e},t))},h.close=function(e){return d("close",e)}}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/streamer-events.js","/lib")},{"./polyfills":18,_process:114,buffer:104,timers:135}],94:[function(p,e,h){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";h.__esModule=!0,h.getMessageName=h.entitlement=h.isvalid=h.iscontrolmessage=h.isdatamessage=h.messagetype=undefined;var c,d=p("./streamer-api.js");h.messagetype=function(e){return null===e?null:e[d.messages.JSON_TYPE_PROPERTY]},h.isdatamessage=function(e){if(null===e)return!1;var t=h.messagetype(e);return null!==t&&t.startsWith("D")},h.iscontrolmessage=function(e){if(null===e)return!1;var t=h.messagetype(e);return null!==t&&t.startsWith("C")},h.isvalid=function(e,t){var n=t.invalidSymbols;if(null==n)return!0;for(var r=0;r<n.length;r++){if(n[r]===e)return!1}return!0},h.entitlement=function(e,t,n){var r=n.entitlements;if(null!=r)for(var i=0;i<r.length;i++){var o=r[i];if(o.symbol===e&&o.marketdatatype===t)return o.entitlement}return null},h.getMessageName=(c={},function(e){var t=e[d.messages.JSON_TYPE_PROPERTY];if(!c[t]){var n=d.messages.MessageTypeNames.ctrl;for(var r in n)if(n[r]===t)return c[t]=r;var i=d.messages.MessageTypeNames.data;for(var o in i)if(i[o]===t)return c[t]=o;return c[t]=t}return c[t]})}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/lib/streamer-utils.js","/lib")},{"./streamer-api.js":92,_process:114,buffer:104,timers:135}],95:[function(m,e,_){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";_.__esModule=!0;m("../message.js");var c,d=m("../EventSupport.js"),p=(c=d)&&c.__esModule?c:{"default":c};var h=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.socket=e,this.log=t,this.events=new p["default"](this)}return n.prototype.send=function(e,t){this.socket.push({trackMessageLength:!0,data:JSON.stringify(e)})},n.prototype.onMessage=function(e){var t=null;try{t=JSON.parse(e)}catch(o){return void this.log.error(o)}this.events.fire("sequence",t.seq);for(var n=t.data.length,r=0;r<n;r++){var i=t.data[r];i.__id=i.requestId,this.events.fire("message",i)}},n.prototype.on=function(e,t){return this.events.on(e,t)},n}();_["default"]=h}).call(this,m("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],m("timers").setImmediate,m("timers").clearImmediate,"/lib/transmission/JsonTransmitter.js","/lib/transmission")},{"../EventSupport.js":2,"../message.js":17,_process:114,buffer:104,timers:135}],96:[function(S,e,w){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";w.__esModule=!0;var c=b(S("../EventSupport.js")),d=b(S("../SMessage")),p=S("../qitch/decoder/QitchDecoder"),h=b(p),m=b(S("../qitch/encoder/QitchEncoder")),_=b(S("../UShortId.js")),E=S("../message.js"),g=b(S("../qitch/LocateCodeInjector")),T=S("../utils");function b(e){return e&&e.__esModule?e:{"default":e}}var y=function(){function r(e,t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.socket=e,!(t instanceof m["default"]))throw"Wrong encoder";this.encoder=t,this.log=n,this.events=new c["default"](this),this.decoder=new h["default"](r.prototype.DEFAULT_BUFFERSIZE),this.locateCodeInjector=new g["default"]}return r.prototype.send=function(e,t){var n=new d["default"];n.sequencenumber=e.sequenceNumber,n.timestamp=(new Date).getTime(),n.id=null!=t?t:_["default"].NULL,n.encoding=E.Encodings.NONE_CHAR,n.mimetype=E.MimeTypes.QITCH_CHAR,n.payload=e;var r={trackMessageLength:!1,data:this.encoder.encode(n,0)};this.socket.push(r)},r.prototype.onMessage=function(e){var t=void 0;t=e instanceof ArrayBuffer?e:(0,T.asciiStringToArrayBuffer)(e);var n=null;try{n=this.decoder.decode(new Int8Array(t))}catch(o){return void this.log.error(o)}if(null!=n)for(var r=0;r<n.length;r++)if(n[r]instanceof p.MessageBlock)for(var i=0;i<n[r].messages.length;i++)this._processMessage(n[r].messages[i]);else this._processMessage(n[r]);else this.log.debug("Couldn't decode message. Ignoring unsupported message")},r.prototype.on=function(e,t){return this.events.on(e,t)},r.prototype._processMessage=function(e){this.locateCodeInjector.injectLocateCode(e.decodedPayload),this.events.fire("sequence",e.sequencenumber),e.decodedPayload.__id=e.id,this.events.fire("message",e.decodedPayload)},r}();y.prototype.DEFAULT_BUFFERSIZE=4096,w["default"]=y}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],S("timers").setImmediate,S("timers").clearImmediate,"/lib/transmission/QitchTransmitter.js","/lib/transmission")},{"../EventSupport.js":2,"../SMessage":5,"../UShortId.js":9,"../message.js":17,"../qitch/LocateCodeInjector":23,"../qitch/decoder/QitchDecoder":41,"../qitch/encoder/QitchEncoder":67,"../utils":98,_process:114,buffer:104,timers:135}],97:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";g.__esModule=!0;var c=E("../message.js"),d=m(E("../SMessage.js")),p=m(E("../UShortId.js")),h=m(E("../EventSupport.js"));E("../formatting.js");function m(e){return e&&e.__esModule?e:{"default":e}}var _=function(){function i(e,t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.socket=e,this.encoder=t,this.decoder=n,this.log=r,this.events=new h["default"](this)}return i.prototype.send=function(e,t){var n=new d["default"];n.sequencenumber=e.sequenceNumber,n.timestamp=(new Date).getTime(),n.id=null!=t?t:p["default"].NULL,n.encoding=c.Encodings.NONE_CHAR,n.mimetype=c.MimeTypes.JSON_CHAR,n.payload=JSON.stringify(e);var r={trackMessageLength:!0,data:this.encoder.encode(n)};this.socket.push(r)},i.prototype.onMessage=function(e){var t=this.decoder.decode(e);if(this.events.fire("sequence",t.sequencenumber),t.encoding===c.Encodings.NONE_CHAR)if(t.mimetype===c.MimeTypes.JSON_CHAR){var n=null;try{n=JSON.parse(t.payload)}catch(r){return void this.log.error(r)}n.__id=t.id,this.events.fire("message",n)}else this.log.debug("Unhandled mimetype: "+t.mimeType+" - "+t.payload);else this.log.debug("Unhandled encoding: "+t.encoding+" - "+t.payload)},i.prototype.on=function(e,t){return this.events.on(e,t)},i}();g["default"]=_}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/lib/transmission/SMessageTransmitter.js","/lib/transmission")},{"../EventSupport.js":2,"../SMessage.js":5,"../UShortId.js":9,"../formatting.js":13,"../message.js":17,_process:114,buffer:104,timers:135}],98:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";d.__esModule=!0;d.forEachPartition=function(e,t,n){if(e)for(var r=0;r<e.length;r+=t){n(e.slice(r,r+t))}};var c=d.indexOf=function(e,t){for(var n=e.length,r=0;r<n;++r)if(t===e[r])return r;return-1};d.removeFromArray=function(e){for(var t,n,r=arguments.length<=1?0:arguments.length-1;0<r&&e.length;){var i;for(i=1+--r,t=arguments.length<=i?undefined:arguments[i];-1!==(n=c(e,t));)e.splice(n,1)}return e},d.asciiStringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return t}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/lib/utils.js","/lib")},{_process:114,buffer:104,timers:135}],99:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){c.exports=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/array-equal/index.js","/node_modules/array-equal")},{_process:114,buffer:104,timers:135}],100:[function(e,t,T){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";T.byteLength=function(e){var t=E(e),n=t[0],r=t[1];return 3*(n+r)/4-r},T.toByteArray=function(e){for(var t,n=E(e),r=n[0],i=n[1],o=new p((l=r,f=i,3*(l+f)/4-f)),s=0,a=0<i?r-4:r,u=0;u<a;u+=4)t=d[e.charCodeAt(u)]<<18|d[e.charCodeAt(u+1)]<<12|d[e.charCodeAt(u+2)]<<6|d[e.charCodeAt(u+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;var l,f;2===i&&(t=d[e.charCodeAt(u)]<<2|d[e.charCodeAt(u+1)]>>4,o[s++]=255&t);1===i&&(t=d[e.charCodeAt(u)]<<10|d[e.charCodeAt(u+1)]<<4|d[e.charCodeAt(u+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t);return o},T.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],o=0,s=n-r;o<s;o+=16383)i.push(g(e,o,s<o+16383?s:o+16383));1===r?(t=e[n-1],i.push(c[t>>2]+c[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"="));return i.join("")};for(var c=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,_=h.length;m<_;++m)c[m]=h[m],d[h.charCodeAt(m)]=m;function E(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function g(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(c[(i=r)>>18&63]+c[i>>12&63]+c[i>>6&63]+c[63&i]);return o.join("")}d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/base64-js/index.js","/node_modules/base64-js")},{_process:114,buffer:104,timers:135}],101:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){!function(t){"use strict";
35
35
  /*
36
36
  * bignumber.js v9.0.0
37
37
  * A JavaScript library for arbitrary-precision arithmetic.
@@ -77,11 +77,11 @@ L(460,"Websocket error")};o.onclose=function(e){if(y("websocket.onclose"),clearT
77
77
  * toString |
78
78
  * valueOf |
79
79
  *
80
- */var n,C=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,L=Math.ceil,D=Math.floor,R="[BigNumber Error] ",B=R+"Number primitive has more than 15 significant digits: ",k=1e14,U=14,H=9007199254740991,P=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],G=1e7,x=1e9;function j(e){var t=0|e;return 0<e||e===t?t:t-1}function q(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=U-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function V(e,t){var n,r,i=e.c,o=t.c,s=e.s,a=t.s,u=e.e,l=t.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=u==l,!i||!o)return r?0:!i^n?1:-1;if(!r)return l<u^n?1:-1;for(a=(u=i.length)<(l=o.length)?u:l,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return u==l?0:l<u^n?1:-1}function Y(e,t,n,r){if(e<t||n<e||e!==D(e))throw Error(R+(r||"Argument")+("number"==typeof e?e<t||n<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function K(e){var t=e.c.length-1;return j(e.e/U)==t&&e.c[t]%2!=0}function Q(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function X(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var g,c,d,n,l,s,a,u,f,p,r=A.prototype={constructor:A,toString:null,valueOf:null},h=new A(1),T=20,b=4,m=-7,_=21,E=-1e7,y=1e7,S=!1,i=1,w=0,O={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},v="0123456789abcdefghijklmnopqrstuvwxyz";function A(e,t){var n,r,i,o,s,a,u,l,f=this;if(!(f instanceof A))return new A(e,t);if(null==t){if(e&&!0===e._isBigNumber)return f.s=e.s,void(!e.c||e.e>y?f.c=f.e=null:e.e<E?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice()));if((a="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;10<=s;s/=10,o++);return void(y<o?f.c=f.e=null:(f.e=o,f.c=[e]))}l=String(e)}else{if(!C.test(l=String(e)))return d(f,l,a);f.s=45==l.charCodeAt(0)?(l=l.slice(1),-1):1}-1<(o=l.indexOf("."))&&(l=l.replace(".","")),0<(s=l.search(/e/i))?(o<0&&(o=s),o+=+l.slice(s+1),l=l.substring(0,s)):o<0&&(o=l.length)}else{if(Y(t,2,v.length,"Base"),10==t)return F(f=new A(e),T+f.e+1,b);if(l=String(e),a="number"==typeof e){if(0*e!=0)return d(f,l,a,t);if(f.s=1/e<0?(l=l.slice(1),-1):1,A.DEBUG&&15<l.replace(/^0\.0*|\./,"").length)throw Error(B+e)}else f.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1;for(n=v.slice(0,t),o=s=0,u=l.length;s<u;s++)if(n.indexOf(r=l.charAt(s))<0){if("."==r){if(o<s){o=u;continue}}else if(!i&&(l==l.toUpperCase()&&(l=l.toLowerCase())||l==l.toLowerCase()&&(l=l.toUpperCase()))){i=!0,s=-1,o=0;continue}return d(f,String(e),a,t)}a=!1,-1<(o=(l=c(l,t,10,f.s)).indexOf("."))?l=l.replace(".",""):o=l.length}for(s=0;48===l.charCodeAt(s);s++);for(u=l.length;48===l.charCodeAt(--u););if(l=l.slice(s,++u)){if(u-=s,a&&A.DEBUG&&15<u&&(H<e||e!==D(e)))throw Error(B+f.s*e);if((o=o-s-1)>y)f.c=f.e=null;else if(o<E)f.c=[f.e=0];else{if(f.e=o,f.c=[],s=(o+1)%U,o<0&&(s+=U),s<u){for(s&&f.c.push(+l.slice(0,s)),u-=U;s<u;)f.c.push(+l.slice(s,s+=U));s=U-(l=l.slice(s)).length}else s-=u;for(;s--;l+="0");f.c.push(+l)}}else f.c=[f.e=0]}function o(e,t,n,r){var i,o,s,a,u;if(null==n?n=b:Y(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)u=q(e.c),u=1==r||2==r&&(s<=m||_<=s)?Q(u,s):X(u,s,"0");else if(o=(e=F(new A(e),t,n)).e,a=(u=q(e.c)).length,1==r||2==r&&(t<=o||o<=m)){for(;a<t;u+="0",a++);u=Q(u,o)}else if(t-=s,u=X(u,o,"0"),a<o+1){if(0<--t)for(u+=".";t--;u+="0");}else if(0<(t+=o-a))for(o+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function I(e,t){for(var n,r=1,i=new A(e[0]);r<e.length;r++){if(!(n=new A(e[r])).s){i=n;break}t.call(i,n)&&(i=n)}return i}function N(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];10<=i;i/=10,r++);return(n=r+n*U-1)>y?e.c=e.e=null:n<E?e.c=[e.e=0]:(e.e=n,e.c=t),e}function F(e,t,n,r){var i,o,s,a,u,l,f,c=e.c,d=P;if(c){e:{for(i=1,a=c[0];10<=a;a/=10,i++);if((o=t-i)<0)o+=U,s=t,f=(u=c[l=0])/d[i-s-1]%10|0;else if((l=L((o+1)/U))>=c.length){if(!r)break e;for(;c.length<=l;c.push(0));u=f=0,s=(o%=U)-U+(i=1)}else{for(u=a=c[l],i=1;10<=a;a/=10,i++);f=(s=(o%=U)-U+i)<0?0:u/d[i-s-1]%10|0}if(r=r||t<0||null!=c[l+1]||(s<0?u:u%d[i-s-1]),r=n<4?(f||r)&&(0==n||n==(e.s<0?3:2)):5<f||5==f&&(4==n||r||6==n&&(0<o?0<s?u/d[i-s]:0:c[l-1])%10&1||n==(e.s<0?8:7)),t<1||!c[0])return c.length=0,r?(t-=e.e+1,c[0]=d[(U-t%U)%U],e.e=-t||0):c[0]=e.e=0,e;if(0==o?(c.length=l,a=1,l--):(c.length=l+1,a=d[U-o],c[l]=0<s?D(u/d[i-s]%d[s])*a:0),r)for(;;){if(0==l){for(o=1,s=c[0];10<=s;s/=10,o++);for(s=c[0]+=a,a=1;10<=s;s/=10,a++);o!=a&&(e.e++,c[0]==k&&(c[0]=1));break}if(c[l]+=a,c[l]!=k)break;c[l--]=0,a=1}for(o=c.length;0===c[--o];c.pop());}e.e>y?e.c=e.e=null:e.e<E&&(e.c=[e.e=0])}return e}function M(e){var t,n=e.e;return null===n?e.toString():(t=q(e.c),t=n<=m||_<=n?Q(t,n):X(t,n,"0"),e.s<0?"-"+t:t)}return A.clone=e,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(R+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(Y(n=e[t],0,x,t),T=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(Y(n=e[t],0,8,t),b=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(Y(n[0],-x,0,t),Y(n[1],0,x,t),m=n[0],_=n[1]):(Y(n,-x,x,t),m=-(_=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)Y(n[0],-x,-1,t),Y(n[1],1,x,t),E=n[0],y=n[1];else{if(Y(n,-x,x,t),!n)throw Error(R+t+" cannot be zero: "+n);E=-(y=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(R+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw S=!n,Error(R+"crypto unavailable");S=n}else S=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(Y(n=e[t],0,9,t),i=n),e.hasOwnProperty(t="POW_PRECISION")&&(Y(n=e[t],0,x,t),w=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(R+t+" not an object: "+n);O=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(R+t+" invalid: "+n);v=n}}return{DECIMAL_PLACES:T,ROUNDING_MODE:b,EXPONENTIAL_AT:[m,_],RANGE:[E,y],CRYPTO:S,MODULO_MODE:i,POW_PRECISION:w,FORMAT:O,ALPHABET:v}},A.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!A.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&-x<=i&&i<=x&&i===D(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%U)<1&&(t+=U),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||k<=n||n!==D(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(R+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return I(arguments,r.lt)},A.minimum=A.min=function(){return I(arguments,r.gt)},A.random=(n=9007199254740992,l=Math.random()*n&2097151?function(){return D(Math.random()*n)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,s=0,a=[],u=new A(h);if(null==e?e=T:Y(e,0,x),i=L(e/U),S)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)9e15<=(o=131072*t[s]+(t[s+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(a.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw S=!1,Error(R+"crypto unavailable");for(t=crypto.randomBytes(i*=7);s<i;)9e15<=(o=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])?crypto.randomBytes(7).copy(t,s):(a.push(o%1e14),s+=7);s=i/7}if(!S)for(;s<i;)(o=l())<9e15&&(a[s++]=o%1e14);for(i=a[--s],e%=U,i&&e&&(o=P[U-e],a[s]=D(i/o)*o);0===a[s];a.pop(),s--);if(s<0)a=[r=0];else{for(r=-1;0===a[0];a.splice(0,1),r-=U);for(s=1,o=a[0];10<=o;o/=10,s++);s<U&&(r-=U-s)}return u.e=r,u.c=a,u}),A.sum=function(){for(var e=1,t=arguments,n=new A(t[0]);e<t.length;)n=n.plus(t[e++]);return n},c=function(){var _="0123456789";function E(e,t,n,r){for(var i,o,s=[0],a=0,u=e.length;a<u;){for(o=s.length;o--;s[o]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(e,t,n,r,i){var o,s,a,u,l,f,c,d,p=e.indexOf("."),h=T,m=b;for(0<=p&&(u=w,w=0,e=e.replace(".",""),f=(d=new A(t)).pow(e.length-p),w=u,d.c=E(X(q(f.c),f.e,"0"),10,n,_),d.e=d.c.length),a=u=(c=E(e,t,n,i?(o=v,_):(o=_,v))).length;0==c[--u];c.pop());if(!c[0])return o.charAt(0);if(p<0?--a:(f.c=c,f.e=a,f.s=r,c=(f=g(f,d,h,m,n)).c,l=f.r,a=f.e),p=c[s=a+h+1],u=n/2,l=l||s<0||null!=c[s+1],l=m<4?(null!=p||l)&&(0==m||m==(f.s<0?3:2)):u<p||p==u&&(4==m||l||6==m&&1&c[s-1]||m==(f.s<0?8:7)),s<1||!c[0])e=l?X(o.charAt(1),-h,o.charAt(0)):o.charAt(0);else{if(c.length=s,l)for(--n;++c[--s]>n;)c[s]=0,s||(++a,c=[1].concat(c));for(u=c.length;!c[--u];);for(p=0,e="";p<=u;e+=o.charAt(c[p++]));e=X(e,a,o.charAt(0))}return e}}(),g=function(){function v(e,t,n){var r,i,o,s,a=0,u=e.length,l=t%G,f=t/G|0;for(e=e.slice();u--;)a=((i=l*(o=e[u]%G)+(r=f*o+(s=e[u]/G|0)*l)%G*G+a)/n|0)+(r/G|0)+f*s,e[u]=i%n;return a&&(e=[a].concat(e)),e}function I(e,t,n,r){var i,o;if(n!=r)o=r<n?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function N(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&1<e.length;e.splice(0,1));}return function(e,t,n,r,i){var o,s,a,u,l,f,c,d,p,h,m,_,E,g,T,b,y,S=e.s==t.s?1:-1,w=e.c,O=t.c;if(!(w&&w[0]&&O&&O[0]))return new A(e.s&&t.s&&(w?!O||w[0]!=O[0]:O)?w&&0==w[0]||!O?0*S:S/0:NaN);for(p=(d=new A(S)).c=[],S=n+(s=e.e-t.e)+1,i||(i=k,s=j(e.e/U)-j(t.e/U),S=S/U|0),a=0;O[a]==(w[a]||0);a++);if(O[a]>(w[a]||0)&&s--,S<0)p.push(1),u=!0;else{for(g=w.length,b=O.length,S+=2,1<(l=D(i/(O[a=0]+1)))&&(O=v(O,l,i),w=v(w,l,i),b=O.length,g=w.length),E=b,m=(h=w.slice(0,b)).length;m<b;h[m++]=0);y=O.slice(),y=[0].concat(y),T=O[0],O[1]>=i/2&&T++;do{if(l=0,(o=I(O,h,b,m))<0){if(_=h[0],b!=m&&(_=_*i+(h[1]||0)),1<(l=D(_/T)))for(i<=l&&(l=i-1),c=(f=v(O,l,i)).length,m=h.length;1==I(f,h,c,m);)l--,N(f,b<c?y:O,c,i),c=f.length,o=1;else 0==l&&(o=l=1),c=(f=O.slice()).length;if(c<m&&(f=[0].concat(f)),N(h,f,m,i),m=h.length,-1==o)for(;I(O,h,b,m)<1;)l++,N(h,b<m?y:O,m,i),m=h.length}else 0===o&&(l++,h=[0]);p[a++]=l,h[0]?h[m++]=w[E]||0:(h=[w[E]],m=1)}while((E++<g||null!=h[0])&&S--);u=null!=h[0],p[0]||p.splice(0,1)}if(i==k){for(a=1,S=p[0];10<=S;S/=10,a++);F(d,n+(d.e=a+s*U-1)+1,r,u)}else d.e=s,d.r=+u;return d}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,a=/^([^.]+)\.$/,u=/^\.([^.]+)$/,f=/^-?(Infinity|NaN)$/,p=/^\s*\+(?=[\w.])|^\s+|\s+$/g,d=function(e,t,n,r){var i,o=n?t:t.replace(p,"");if(f.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(s,function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t}),r&&(i=r,o=o.replace(a,"$1").replace(u,"0.$1")),t!=o))return new A(o,i);if(A.DEBUG)throw Error(R+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},r.absoluteValue=r.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},r.comparedTo=function(e,t){return V(this,new A(e,t))},r.decimalPlaces=r.dp=function(e,t){var n,r,i;if(null!=e)return Y(e,0,x),null==t?t=b:Y(t,0,8),F(new A(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-j(this.e/U))*U,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},r.dividedBy=r.div=function(e,t){return g(this,new A(e,t),T,b)},r.dividedToIntegerBy=r.idiv=function(e,t){return g(this,new A(e,t),0,1)},r.exponentiatedBy=r.pow=function(e,t){var n,r,i,o,s,a,u,l,f=this;if((e=new A(e)).c&&!e.isInteger())throw Error(R+"Exponent not an integer: "+M(e));if(null!=t&&(t=new A(t)),s=14<e.e,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return l=new A(Math.pow(+M(f),s?2-K(e):+M(e))),t?l.mod(t):l;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(r=!a&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(9<e.e&&(0<f.e||f.e<-1||(0==f.e?1<f.c[0]||s&&24e7<=f.c[1]:f.c[0]<8e13||s&&f.c[0]<=9999975e7)))return o=f.s<0&&K(e)?-0:0,-1<f.e&&(o=1/o),new A(a?1/o:o);w&&(o=L(w/U+2))}for(s?(n=new A(.5),a&&(e.s=1),u=K(e)):u=(i=Math.abs(+M(e)))%2,l=new A(h);;){if(u){if(!(l=l.times(f)).c)break;o?l.c.length>o&&(l.c.length=o):r&&(l=l.mod(t))}if(i){if(0===(i=D(i/2)))break;u=i%2}else if(F(e=e.times(n),e.e+1,1),14<e.e)u=K(e);else{if(0==(i=+M(e)))break;u=i%2}f=f.times(f),o?f.c&&f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}return r?l:(a&&(l=h.div(l)),t?l.mod(t):o?F(l,w,b,void 0):l)},r.integerValue=function(e){var t=new A(this);return null==e?e=b:Y(e,0,8),F(t,t.e+1,e)},r.isEqualTo=r.eq=function(e,t){return 0===V(this,new A(e,t))},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(e,t){return 0<V(this,new A(e,t))},r.isGreaterThanOrEqualTo=r.gte=function(e,t){return 1===(t=V(this,new A(e,t)))||0===t},r.isInteger=function(){return!!this.c&&j(this.e/U)>this.c.length-2},r.isLessThan=r.lt=function(e,t){return V(this,new A(e,t))<0},r.isLessThanOrEqualTo=r.lte=function(e,t){return-1===(t=V(this,new A(e,t)))||0===t},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return 0<this.s},r.isZero=function(){return!!this.c&&0==this.c[0]},r.minus=function(e,t){var n,r,i,o,s=this.s;if(t=(e=new A(e,t)).s,!s||!t)return new A(NaN);if(s!=t)return e.s=-t,this.plus(e);var a=this.e/U,u=e.e/U,l=this.c,f=e.c;if(!a||!u){if(!l||!f)return l?(e.s=-t,e):new A(f?this:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new A(l[0]?this:3==b?-0:0)}if(a=j(a),u=j(u),l=l.slice(),s=a-u){for((o=s<0)?(s=-s,i=l):(u=a,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=l.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(l[t]!=f[t]){o=l[t]<f[t];break}if(o&&(i=l,l=f,f=i,e.s=-e.s),0<(t=(r=f.length)-(n=l.length)))for(;t--;l[n++]=0);for(t=k-1;s<r;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=k}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--u);return l[0]?N(e,l,u):(e.s=3==b?-1:1,e.c=[e.e=0],e)},r.modulo=r.mod=function(e,t){var n,r;return e=new A(e,t),!this.c||!e.s||e.c&&!e.c[0]?new A(NaN):!e.c||this.c&&!this.c[0]?new A(this):(9==i?(r=e.s,e.s=1,n=g(this,e,0,3),e.s=r,n.s*=r):n=g(this,e,0,i),(e=this.minus(n.times(e))).c[0]||1!=i||(e.s=this.s),e)},r.multipliedBy=r.times=function(e,t){var n,r,i,o,s,a,u,l,f,c,d,p,h,m,_,E=this.c,g=(e=new A(e,t)).c;if(!(E&&g&&E[0]&&g[0]))return!this.s||!e.s||E&&!E[0]&&!g||g&&!g[0]&&!E?e.c=e.e=e.s=null:(e.s*=this.s,E&&g?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=j(this.e/U)+j(e.e/U),e.s*=this.s,(u=E.length)<(c=g.length)&&(h=E,E=g,g=h,i=u,u=c,c=i),i=u+c,h=[];i--;h.push(0));for(m=k,_=G,i=c;0<=--i;){for(n=0,d=g[i]%_,p=g[i]/_|0,o=i+(s=u);i<o;)n=((l=d*(l=E[--s]%_)+(a=p*l+(f=E[s]/_|0)*d)%_*_+h[o]+n)/m|0)+(a/_|0)+p*f,h[o--]=l%m;h[o]=n}return n?++r:h.splice(0,1),N(e,h,r)},r.negated=function(){var e=new A(this);return e.s=-e.s||null,e},r.plus=function(e,t){var n,r=this.s;if(t=(e=new A(e,t)).s,!r||!t)return new A(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/U,o=e.e/U,s=this.c,a=e.c;if(!i||!o){if(!s||!a)return new A(r/0);if(!s[0]||!a[0])return a[0]?e:new A(s[0]?this:0*r)}if(i=j(i),o=j(o),s=s.slice(),r=i-o){for(0<r?(o=i,n=a):(r=-r,n=s),n.reverse();r--;n.push(0));n.reverse()}for((r=s.length)-(t=a.length)<0&&(n=a,a=s,s=n,t=r),r=0;t;)r=(s[--t]=s[t]+a[t]+r)/k|0,s[t]=k===s[t]?0:s[t]%k;return r&&(s=[r].concat(s),++o),N(e,s,o)},r.precision=r.sd=function(e,t){var n,r,i;if(null!=e&&e!==!!e)return Y(e,1,x),null==t?t=b:Y(t,0,8),F(new A(this),e,t);if(!(n=this.c))return null;if(r=(i=n.length-1)*U+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];10<=i;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},r.shiftedBy=function(e){return Y(e,-H,H),this.times("1e"+e)},r.squareRoot=r.sqrt=function(){var e,t,n,r,i,o=this.c,s=this.s,a=this.e,u=T+4,l=new A("0.5");if(1!==s||!o||!o[0])return new A(!s||s<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(s=Math.sqrt(+M(this)))||s==1/0?(((t=q(o)).length+a)%2==0&&(t+="0"),s=Math.sqrt(+t),a=j((a+1)/2)-(a<0||a%2),n=new A(t=s==1/0?"1e"+a:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+a)):n=new A(s+""),n.c[0])for((s=(a=n.e)+u)<3&&(s=0);;)if(i=n,n=l.times(i.plus(g(this,i,u,1))),q(i.c).slice(0,s)===(t=q(n.c)).slice(0,s)){if(n.e<a&&--s,"9999"!=(t=t.slice(s-3,s+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(F(n,n.e+T+2,1),e=!n.times(n).eq(this));break}if(!r&&(F(i,i.e+T+2,0),i.times(i).eq(this))){n=i;break}u+=4,s+=4,r=1}return F(n,n.e+T+1,b,e)},r.toExponential=function(e,t){return null!=e&&(Y(e,0,x),e++),o(this,e,t,1)},r.toFixed=function(e,t){return null!=e&&(Y(e,0,x),e=e+this.e+1),o(this,e,t)},r.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=O;else if("object"!=typeof n)throw Error(R+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var i,o=r.split("."),s=+n.groupSize,a=+n.secondaryGroupSize,u=n.groupSeparator||"",l=o[0],f=o[1],c=this.s<0,d=c?l.slice(1):l,p=d.length;if(a&&(i=s,s=a,p-=a=i),0<s&&0<p){for(i=p%s||s,l=d.substr(0,i);i<p;i+=s)l+=u+d.substr(i,s);0<a&&(l+=u+d.slice(i)),c&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((a=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},r.toFraction=function(e){var t,n,r,i,o,s,a,u,l,f,c,d,p=this.c;if(null!=e&&(!(a=new A(e)).isInteger()&&(a.c||1!==a.s)||a.lt(h)))throw Error(R+"Argument "+(a.isInteger()?"out of range: ":"not an integer: ")+M(a));if(!p)return new A(this);for(t=new A(h),l=n=new A(h),r=u=new A(h),d=q(p),o=t.e=d.length-this.e-1,t.c[0]=P[(s=o%U)<0?U+s:s],e=!e||0<a.comparedTo(t)?0<o?t:l:a,s=y,y=1/0,a=new A(d),u.c[0]=0;f=g(a,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,l=u.plus(f.times(i=l)),u=i,t=a.minus(f.times(i=t)),a=i;return i=g(e.minus(n),r,0,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=this.s,c=g(l,r,o*=2,b).minus(this).abs().comparedTo(g(u,n,o,b).minus(this).abs())<1?[l,r]:[u,n],y=s,c},r.toNumber=function(){return+M(this)},r.toPrecision=function(e,t){return null!=e&&Y(e,1,x),o(this,e,t,2)},r.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=m||_<=i?Q(q(n.c),i):X(q(n.c),i,"0"):10===e?t=X(q((n=F(new A(n),T+i+1,b)).c),n.e,"0"):(Y(e,2,v.length,"Base"),t=c(X(q(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},r.valueOf=r.toJSON=function(){return M(this)},r._isBigNumber=!0,null!=t&&A.set(t),A}())["default"]=n.BigNumber=n,void 0!==c&&c.exports?c.exports=n:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=n)}(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/bignumber.js/bignumber.js","/node_modules/bignumber.js")},{_process:114,buffer:104,timers:135}],102:[function(e,t,n){(function(e,t,n,r,i,o,s,a,u,l,f){}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/browser-resolve/empty.js","/node_modules/browser-resolve")},{_process:114,buffer:104,timers:135}],103:[function(e,t,n){(function(e,t,n,r,i,o,s,a,u,l,f){}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/browserify/lib/_empty.js","/node_modules/browserify/lib")},{_process:114,buffer:104,timers:135}],104:[function(Y,e,K){(function(e,t,c,n,r,i,o,s,a,u,l){"use strict";var f=Y("base64-js"),d=Y("ieee754");K.Buffer=c,K.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},K.INSPECT_MAX_BYTES=50;var p=2147483647;function h(e){if(p<e)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=c.prototype,t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return E(e)}return m(e,t,n)}function m(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return q(e)||e&&q(e.buffer)?function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=t===undefined&&n===undefined?new Uint8Array(e):n===undefined?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=c.prototype,r}(e,t,n):"string"==typeof e?function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|b(e,t),r=h(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t):function(e){if(c.isBuffer(e)){var t=0|T(e.length),n=h(t);return 0===n.length||e.copy(n,0,0,t),n}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||V(e.length)?h(0):g(e);if("Buffer"===e.type&&Array.isArray(e.data))return g(e.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(e)}function _(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('"size" argument must not be negative')}function E(e){return _(e),h(e<0?0:0|T(e))}function g(e){for(var t=e.length<0?0:0|T(e.length),n=h(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function T(e){if(p<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return 0|e}function b(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return x(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(r!==undefined&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a/=s=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var f=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(a<n+u&&(n=a-u),o=n;0<=o;o--){for(var c=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){c=!1;break}if(c)return o}return-1}function O(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var o=t.length;o/2<r&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(V(a))return s;e[n+s]=a}return s}function v(e,t,n,r){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?f.fromByteArray(e):f.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,l=e[i],f=null,c=239<l?4:223<l?3:191<l?2:1;if(i+c<=n)switch(c){case 1:l<128&&(f=l);break;case 2:128==(192&(o=e[i+1]))&&127<(u=(31&l)<<6|63&o)&&(f=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&2047<(u=(15&l)<<12|(63&o)<<6|63&s)&&(u<55296||57343<u)&&(f=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)&&u<1114112&&(f=u)}null===f?(f=65533,c=1):65535<f&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=c}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}K.kMaxLength=p,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{get:function(){return this instanceof c?this.buffer:undefined}}),Object.defineProperty(c.prototype,"offset",{get:function(){return this instanceof c?this.byteOffset:undefined}}),"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,n){return m(e,t,n)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(e,t,n){return i=t,o=n,_(r=e),r<=0?h(r):i!==undefined?"string"==typeof o?h(r).fill(i,o):h(r).fill(i):h(r);var r,i,o},c.allocUnsafe=function(e){return E(e)},c.allocUnsafeSlow=function(e){return E(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(t===undefined)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(ArrayBuffer.isView(o)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?N(this,0,e):function(e,t,n){var r=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return F(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",t=K.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),r===undefined&&(r=0),i===undefined&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),f=0;f<a;++f)if(u[f]!==l[f]){o=u[f],s=l[f];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(t===undefined)r="utf8",n=this.length,t=0;else if(n===undefined&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,r===undefined&&(r="utf8")):(r=n,n=undefined)}var i=this.length-t;if((n===undefined||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o,s,a,u,l,f,c,d,p,h=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return d=t,p=n,j(G(e,(c=this).length-d),c,d,p);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return u=this,l=t,f=n,j(x(e),u,l,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=t,a=n,j(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,(o=this).length-s),o,s,a);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function C(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;++o)i+=P(e[o]);return i}function L(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,4),d.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,8),d.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=t===undefined?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=c.prototype,r},c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];0<r&&(i*=256);)o+=this[e+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),d.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),d.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),d.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),d.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;0<=--o&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;0<=o;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),r!==undefined&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:new c(e,r),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var H=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){var n;t=t||Infinity;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if(55295<(n=e.charCodeAt(s))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(s+1===r){-1<(t-=3)&&o.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function x(e){return f.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function q(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function V(e){return e!=e}}).call(this,Y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],Y("timers").setImmediate,Y("timers").clearImmediate,"/node_modules/buffer/index.js","/node_modules/buffer")},{_process:114,"base64-js":100,buffer:104,ieee754:109,timers:135}],105:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){c.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/builtin-status-codes/browser.js","/node_modules/builtin-status-codes")},{_process:114,buffer:104,timers:135}],106:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){function c(e){return Object.prototype.toString.call(e)}d.isArray=
80
+ */var n,M=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,L=Math.ceil,D=Math.floor,R="[BigNumber Error] ",B=R+"Number primitive has more than 15 significant digits: ",k=1e14,U=14,H=9007199254740991,P=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],G=1e7,x=1e9;function j(e){var t=0|e;return 0<e||e===t?t:t-1}function q(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=U-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function V(e,t){var n,r,i=e.c,o=t.c,s=e.s,a=t.s,u=e.e,l=t.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=u==l,!i||!o)return r?0:!i^n?1:-1;if(!r)return l<u^n?1:-1;for(a=(u=i.length)<(l=o.length)?u:l,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return u==l?0:l<u^n?1:-1}function Y(e,t,n,r){if(e<t||n<e||e!==D(e))throw Error(R+(r||"Argument")+("number"==typeof e?e<t||n<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function K(e){var t=e.c.length-1;return j(e.e/U)==t&&e.c[t]%2!=0}function Q(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function X(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var g,c,d,n,l,s,a,u,f,p,r=N.prototype={constructor:N,toString:null,valueOf:null},h=new N(1),T=20,b=4,m=-7,_=21,E=-1e7,y=1e7,S=!1,i=1,w=0,O={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},v="0123456789abcdefghijklmnopqrstuvwxyz";function N(e,t){var n,r,i,o,s,a,u,l,f=this;if(!(f instanceof N))return new N(e,t);if(null==t){if(e&&!0===e._isBigNumber)return f.s=e.s,void(!e.c||e.e>y?f.c=f.e=null:e.e<E?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice()));if((a="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;10<=s;s/=10,o++);return void(y<o?f.c=f.e=null:(f.e=o,f.c=[e]))}l=String(e)}else{if(!M.test(l=String(e)))return d(f,l,a);f.s=45==l.charCodeAt(0)?(l=l.slice(1),-1):1}-1<(o=l.indexOf("."))&&(l=l.replace(".","")),0<(s=l.search(/e/i))?(o<0&&(o=s),o+=+l.slice(s+1),l=l.substring(0,s)):o<0&&(o=l.length)}else{if(Y(t,2,v.length,"Base"),10==t)return F(f=new N(e),T+f.e+1,b);if(l=String(e),a="number"==typeof e){if(0*e!=0)return d(f,l,a,t);if(f.s=1/e<0?(l=l.slice(1),-1):1,N.DEBUG&&15<l.replace(/^0\.0*|\./,"").length)throw Error(B+e)}else f.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1;for(n=v.slice(0,t),o=s=0,u=l.length;s<u;s++)if(n.indexOf(r=l.charAt(s))<0){if("."==r){if(o<s){o=u;continue}}else if(!i&&(l==l.toUpperCase()&&(l=l.toLowerCase())||l==l.toLowerCase()&&(l=l.toUpperCase()))){i=!0,s=-1,o=0;continue}return d(f,String(e),a,t)}a=!1,-1<(o=(l=c(l,t,10,f.s)).indexOf("."))?l=l.replace(".",""):o=l.length}for(s=0;48===l.charCodeAt(s);s++);for(u=l.length;48===l.charCodeAt(--u););if(l=l.slice(s,++u)){if(u-=s,a&&N.DEBUG&&15<u&&(H<e||e!==D(e)))throw Error(B+f.s*e);if((o=o-s-1)>y)f.c=f.e=null;else if(o<E)f.c=[f.e=0];else{if(f.e=o,f.c=[],s=(o+1)%U,o<0&&(s+=U),s<u){for(s&&f.c.push(+l.slice(0,s)),u-=U;s<u;)f.c.push(+l.slice(s,s+=U));s=U-(l=l.slice(s)).length}else s-=u;for(;s--;l+="0");f.c.push(+l)}}else f.c=[f.e=0]}function o(e,t,n,r){var i,o,s,a,u;if(null==n?n=b:Y(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)u=q(e.c),u=1==r||2==r&&(s<=m||_<=s)?Q(u,s):X(u,s,"0");else if(o=(e=F(new N(e),t,n)).e,a=(u=q(e.c)).length,1==r||2==r&&(t<=o||o<=m)){for(;a<t;u+="0",a++);u=Q(u,o)}else if(t-=s,u=X(u,o,"0"),a<o+1){if(0<--t)for(u+=".";t--;u+="0");}else if(0<(t+=o-a))for(o+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function I(e,t){for(var n,r=1,i=new N(e[0]);r<e.length;r++){if(!(n=new N(e[r])).s){i=n;break}t.call(i,n)&&(i=n)}return i}function A(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];10<=i;i/=10,r++);return(n=r+n*U-1)>y?e.c=e.e=null:n<E?e.c=[e.e=0]:(e.e=n,e.c=t),e}function F(e,t,n,r){var i,o,s,a,u,l,f,c=e.c,d=P;if(c){e:{for(i=1,a=c[0];10<=a;a/=10,i++);if((o=t-i)<0)o+=U,s=t,f=(u=c[l=0])/d[i-s-1]%10|0;else if((l=L((o+1)/U))>=c.length){if(!r)break e;for(;c.length<=l;c.push(0));u=f=0,s=(o%=U)-U+(i=1)}else{for(u=a=c[l],i=1;10<=a;a/=10,i++);f=(s=(o%=U)-U+i)<0?0:u/d[i-s-1]%10|0}if(r=r||t<0||null!=c[l+1]||(s<0?u:u%d[i-s-1]),r=n<4?(f||r)&&(0==n||n==(e.s<0?3:2)):5<f||5==f&&(4==n||r||6==n&&(0<o?0<s?u/d[i-s]:0:c[l-1])%10&1||n==(e.s<0?8:7)),t<1||!c[0])return c.length=0,r?(t-=e.e+1,c[0]=d[(U-t%U)%U],e.e=-t||0):c[0]=e.e=0,e;if(0==o?(c.length=l,a=1,l--):(c.length=l+1,a=d[U-o],c[l]=0<s?D(u/d[i-s]%d[s])*a:0),r)for(;;){if(0==l){for(o=1,s=c[0];10<=s;s/=10,o++);for(s=c[0]+=a,a=1;10<=s;s/=10,a++);o!=a&&(e.e++,c[0]==k&&(c[0]=1));break}if(c[l]+=a,c[l]!=k)break;c[l--]=0,a=1}for(o=c.length;0===c[--o];c.pop());}e.e>y?e.c=e.e=null:e.e<E&&(e.c=[e.e=0])}return e}function C(e){var t,n=e.e;return null===n?e.toString():(t=q(e.c),t=n<=m||_<=n?Q(t,n):X(t,n,"0"),e.s<0?"-"+t:t)}return N.clone=e,N.ROUND_UP=0,N.ROUND_DOWN=1,N.ROUND_CEIL=2,N.ROUND_FLOOR=3,N.ROUND_HALF_UP=4,N.ROUND_HALF_DOWN=5,N.ROUND_HALF_EVEN=6,N.ROUND_HALF_CEIL=7,N.ROUND_HALF_FLOOR=8,N.EUCLID=9,N.config=N.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(R+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(Y(n=e[t],0,x,t),T=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(Y(n=e[t],0,8,t),b=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(Y(n[0],-x,0,t),Y(n[1],0,x,t),m=n[0],_=n[1]):(Y(n,-x,x,t),m=-(_=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)Y(n[0],-x,-1,t),Y(n[1],1,x,t),E=n[0],y=n[1];else{if(Y(n,-x,x,t),!n)throw Error(R+t+" cannot be zero: "+n);E=-(y=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(R+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw S=!n,Error(R+"crypto unavailable");S=n}else S=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(Y(n=e[t],0,9,t),i=n),e.hasOwnProperty(t="POW_PRECISION")&&(Y(n=e[t],0,x,t),w=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(R+t+" not an object: "+n);O=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(R+t+" invalid: "+n);v=n}}return{DECIMAL_PLACES:T,ROUNDING_MODE:b,EXPONENTIAL_AT:[m,_],RANGE:[E,y],CRYPTO:S,MODULO_MODE:i,POW_PRECISION:w,FORMAT:O,ALPHABET:v}},N.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!N.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&-x<=i&&i<=x&&i===D(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%U)<1&&(t+=U),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||k<=n||n!==D(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(R+"Invalid BigNumber: "+e)},N.maximum=N.max=function(){return I(arguments,r.lt)},N.minimum=N.min=function(){return I(arguments,r.gt)},N.random=(n=9007199254740992,l=Math.random()*n&2097151?function(){return D(Math.random()*n)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,s=0,a=[],u=new N(h);if(null==e?e=T:Y(e,0,x),i=L(e/U),S)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)9e15<=(o=131072*t[s]+(t[s+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(a.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw S=!1,Error(R+"crypto unavailable");for(t=crypto.randomBytes(i*=7);s<i;)9e15<=(o=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])?crypto.randomBytes(7).copy(t,s):(a.push(o%1e14),s+=7);s=i/7}if(!S)for(;s<i;)(o=l())<9e15&&(a[s++]=o%1e14);for(i=a[--s],e%=U,i&&e&&(o=P[U-e],a[s]=D(i/o)*o);0===a[s];a.pop(),s--);if(s<0)a=[r=0];else{for(r=-1;0===a[0];a.splice(0,1),r-=U);for(s=1,o=a[0];10<=o;o/=10,s++);s<U&&(r-=U-s)}return u.e=r,u.c=a,u}),N.sum=function(){for(var e=1,t=arguments,n=new N(t[0]);e<t.length;)n=n.plus(t[e++]);return n},c=function(){var _="0123456789";function E(e,t,n,r){for(var i,o,s=[0],a=0,u=e.length;a<u;){for(o=s.length;o--;s[o]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(e,t,n,r,i){var o,s,a,u,l,f,c,d,p=e.indexOf("."),h=T,m=b;for(0<=p&&(u=w,w=0,e=e.replace(".",""),f=(d=new N(t)).pow(e.length-p),w=u,d.c=E(X(q(f.c),f.e,"0"),10,n,_),d.e=d.c.length),a=u=(c=E(e,t,n,i?(o=v,_):(o=_,v))).length;0==c[--u];c.pop());if(!c[0])return o.charAt(0);if(p<0?--a:(f.c=c,f.e=a,f.s=r,c=(f=g(f,d,h,m,n)).c,l=f.r,a=f.e),p=c[s=a+h+1],u=n/2,l=l||s<0||null!=c[s+1],l=m<4?(null!=p||l)&&(0==m||m==(f.s<0?3:2)):u<p||p==u&&(4==m||l||6==m&&1&c[s-1]||m==(f.s<0?8:7)),s<1||!c[0])e=l?X(o.charAt(1),-h,o.charAt(0)):o.charAt(0);else{if(c.length=s,l)for(--n;++c[--s]>n;)c[s]=0,s||(++a,c=[1].concat(c));for(u=c.length;!c[--u];);for(p=0,e="";p<=u;e+=o.charAt(c[p++]));e=X(e,a,o.charAt(0))}return e}}(),g=function(){function v(e,t,n){var r,i,o,s,a=0,u=e.length,l=t%G,f=t/G|0;for(e=e.slice();u--;)a=((i=l*(o=e[u]%G)+(r=f*o+(s=e[u]/G|0)*l)%G*G+a)/n|0)+(r/G|0)+f*s,e[u]=i%n;return a&&(e=[a].concat(e)),e}function I(e,t,n,r){var i,o;if(n!=r)o=r<n?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function A(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&1<e.length;e.splice(0,1));}return function(e,t,n,r,i){var o,s,a,u,l,f,c,d,p,h,m,_,E,g,T,b,y,S=e.s==t.s?1:-1,w=e.c,O=t.c;if(!(w&&w[0]&&O&&O[0]))return new N(e.s&&t.s&&(w?!O||w[0]!=O[0]:O)?w&&0==w[0]||!O?0*S:S/0:NaN);for(p=(d=new N(S)).c=[],S=n+(s=e.e-t.e)+1,i||(i=k,s=j(e.e/U)-j(t.e/U),S=S/U|0),a=0;O[a]==(w[a]||0);a++);if(O[a]>(w[a]||0)&&s--,S<0)p.push(1),u=!0;else{for(g=w.length,b=O.length,S+=2,1<(l=D(i/(O[a=0]+1)))&&(O=v(O,l,i),w=v(w,l,i),b=O.length,g=w.length),E=b,m=(h=w.slice(0,b)).length;m<b;h[m++]=0);y=O.slice(),y=[0].concat(y),T=O[0],O[1]>=i/2&&T++;do{if(l=0,(o=I(O,h,b,m))<0){if(_=h[0],b!=m&&(_=_*i+(h[1]||0)),1<(l=D(_/T)))for(i<=l&&(l=i-1),c=(f=v(O,l,i)).length,m=h.length;1==I(f,h,c,m);)l--,A(f,b<c?y:O,c,i),c=f.length,o=1;else 0==l&&(o=l=1),c=(f=O.slice()).length;if(c<m&&(f=[0].concat(f)),A(h,f,m,i),m=h.length,-1==o)for(;I(O,h,b,m)<1;)l++,A(h,b<m?y:O,m,i),m=h.length}else 0===o&&(l++,h=[0]);p[a++]=l,h[0]?h[m++]=w[E]||0:(h=[w[E]],m=1)}while((E++<g||null!=h[0])&&S--);u=null!=h[0],p[0]||p.splice(0,1)}if(i==k){for(a=1,S=p[0];10<=S;S/=10,a++);F(d,n+(d.e=a+s*U-1)+1,r,u)}else d.e=s,d.r=+u;return d}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,a=/^([^.]+)\.$/,u=/^\.([^.]+)$/,f=/^-?(Infinity|NaN)$/,p=/^\s*\+(?=[\w.])|^\s+|\s+$/g,d=function(e,t,n,r){var i,o=n?t:t.replace(p,"");if(f.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(s,function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t}),r&&(i=r,o=o.replace(a,"$1").replace(u,"0.$1")),t!=o))return new N(o,i);if(N.DEBUG)throw Error(R+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},r.absoluteValue=r.abs=function(){var e=new N(this);return e.s<0&&(e.s=1),e},r.comparedTo=function(e,t){return V(this,new N(e,t))},r.decimalPlaces=r.dp=function(e,t){var n,r,i;if(null!=e)return Y(e,0,x),null==t?t=b:Y(t,0,8),F(new N(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-j(this.e/U))*U,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},r.dividedBy=r.div=function(e,t){return g(this,new N(e,t),T,b)},r.dividedToIntegerBy=r.idiv=function(e,t){return g(this,new N(e,t),0,1)},r.exponentiatedBy=r.pow=function(e,t){var n,r,i,o,s,a,u,l,f=this;if((e=new N(e)).c&&!e.isInteger())throw Error(R+"Exponent not an integer: "+C(e));if(null!=t&&(t=new N(t)),s=14<e.e,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return l=new N(Math.pow(+C(f),s?2-K(e):+C(e))),t?l.mod(t):l;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new N(NaN);(r=!a&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(9<e.e&&(0<f.e||f.e<-1||(0==f.e?1<f.c[0]||s&&24e7<=f.c[1]:f.c[0]<8e13||s&&f.c[0]<=9999975e7)))return o=f.s<0&&K(e)?-0:0,-1<f.e&&(o=1/o),new N(a?1/o:o);w&&(o=L(w/U+2))}for(s?(n=new N(.5),a&&(e.s=1),u=K(e)):u=(i=Math.abs(+C(e)))%2,l=new N(h);;){if(u){if(!(l=l.times(f)).c)break;o?l.c.length>o&&(l.c.length=o):r&&(l=l.mod(t))}if(i){if(0===(i=D(i/2)))break;u=i%2}else if(F(e=e.times(n),e.e+1,1),14<e.e)u=K(e);else{if(0==(i=+C(e)))break;u=i%2}f=f.times(f),o?f.c&&f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}return r?l:(a&&(l=h.div(l)),t?l.mod(t):o?F(l,w,b,void 0):l)},r.integerValue=function(e){var t=new N(this);return null==e?e=b:Y(e,0,8),F(t,t.e+1,e)},r.isEqualTo=r.eq=function(e,t){return 0===V(this,new N(e,t))},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(e,t){return 0<V(this,new N(e,t))},r.isGreaterThanOrEqualTo=r.gte=function(e,t){return 1===(t=V(this,new N(e,t)))||0===t},r.isInteger=function(){return!!this.c&&j(this.e/U)>this.c.length-2},r.isLessThan=r.lt=function(e,t){return V(this,new N(e,t))<0},r.isLessThanOrEqualTo=r.lte=function(e,t){return-1===(t=V(this,new N(e,t)))||0===t},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return 0<this.s},r.isZero=function(){return!!this.c&&0==this.c[0]},r.minus=function(e,t){var n,r,i,o,s=this.s;if(t=(e=new N(e,t)).s,!s||!t)return new N(NaN);if(s!=t)return e.s=-t,this.plus(e);var a=this.e/U,u=e.e/U,l=this.c,f=e.c;if(!a||!u){if(!l||!f)return l?(e.s=-t,e):new N(f?this:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new N(l[0]?this:3==b?-0:0)}if(a=j(a),u=j(u),l=l.slice(),s=a-u){for((o=s<0)?(s=-s,i=l):(u=a,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=l.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(l[t]!=f[t]){o=l[t]<f[t];break}if(o&&(i=l,l=f,f=i,e.s=-e.s),0<(t=(r=f.length)-(n=l.length)))for(;t--;l[n++]=0);for(t=k-1;s<r;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=k}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--u);return l[0]?A(e,l,u):(e.s=3==b?-1:1,e.c=[e.e=0],e)},r.modulo=r.mod=function(e,t){var n,r;return e=new N(e,t),!this.c||!e.s||e.c&&!e.c[0]?new N(NaN):!e.c||this.c&&!this.c[0]?new N(this):(9==i?(r=e.s,e.s=1,n=g(this,e,0,3),e.s=r,n.s*=r):n=g(this,e,0,i),(e=this.minus(n.times(e))).c[0]||1!=i||(e.s=this.s),e)},r.multipliedBy=r.times=function(e,t){var n,r,i,o,s,a,u,l,f,c,d,p,h,m,_,E=this.c,g=(e=new N(e,t)).c;if(!(E&&g&&E[0]&&g[0]))return!this.s||!e.s||E&&!E[0]&&!g||g&&!g[0]&&!E?e.c=e.e=e.s=null:(e.s*=this.s,E&&g?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=j(this.e/U)+j(e.e/U),e.s*=this.s,(u=E.length)<(c=g.length)&&(h=E,E=g,g=h,i=u,u=c,c=i),i=u+c,h=[];i--;h.push(0));for(m=k,_=G,i=c;0<=--i;){for(n=0,d=g[i]%_,p=g[i]/_|0,o=i+(s=u);i<o;)n=((l=d*(l=E[--s]%_)+(a=p*l+(f=E[s]/_|0)*d)%_*_+h[o]+n)/m|0)+(a/_|0)+p*f,h[o--]=l%m;h[o]=n}return n?++r:h.splice(0,1),A(e,h,r)},r.negated=function(){var e=new N(this);return e.s=-e.s||null,e},r.plus=function(e,t){var n,r=this.s;if(t=(e=new N(e,t)).s,!r||!t)return new N(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/U,o=e.e/U,s=this.c,a=e.c;if(!i||!o){if(!s||!a)return new N(r/0);if(!s[0]||!a[0])return a[0]?e:new N(s[0]?this:0*r)}if(i=j(i),o=j(o),s=s.slice(),r=i-o){for(0<r?(o=i,n=a):(r=-r,n=s),n.reverse();r--;n.push(0));n.reverse()}for((r=s.length)-(t=a.length)<0&&(n=a,a=s,s=n,t=r),r=0;t;)r=(s[--t]=s[t]+a[t]+r)/k|0,s[t]=k===s[t]?0:s[t]%k;return r&&(s=[r].concat(s),++o),A(e,s,o)},r.precision=r.sd=function(e,t){var n,r,i;if(null!=e&&e!==!!e)return Y(e,1,x),null==t?t=b:Y(t,0,8),F(new N(this),e,t);if(!(n=this.c))return null;if(r=(i=n.length-1)*U+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];10<=i;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},r.shiftedBy=function(e){return Y(e,-H,H),this.times("1e"+e)},r.squareRoot=r.sqrt=function(){var e,t,n,r,i,o=this.c,s=this.s,a=this.e,u=T+4,l=new N("0.5");if(1!==s||!o||!o[0])return new N(!s||s<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(s=Math.sqrt(+C(this)))||s==1/0?(((t=q(o)).length+a)%2==0&&(t+="0"),s=Math.sqrt(+t),a=j((a+1)/2)-(a<0||a%2),n=new N(t=s==1/0?"1e"+a:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+a)):n=new N(s+""),n.c[0])for((s=(a=n.e)+u)<3&&(s=0);;)if(i=n,n=l.times(i.plus(g(this,i,u,1))),q(i.c).slice(0,s)===(t=q(n.c)).slice(0,s)){if(n.e<a&&--s,"9999"!=(t=t.slice(s-3,s+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(F(n,n.e+T+2,1),e=!n.times(n).eq(this));break}if(!r&&(F(i,i.e+T+2,0),i.times(i).eq(this))){n=i;break}u+=4,s+=4,r=1}return F(n,n.e+T+1,b,e)},r.toExponential=function(e,t){return null!=e&&(Y(e,0,x),e++),o(this,e,t,1)},r.toFixed=function(e,t){return null!=e&&(Y(e,0,x),e=e+this.e+1),o(this,e,t)},r.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=O;else if("object"!=typeof n)throw Error(R+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var i,o=r.split("."),s=+n.groupSize,a=+n.secondaryGroupSize,u=n.groupSeparator||"",l=o[0],f=o[1],c=this.s<0,d=c?l.slice(1):l,p=d.length;if(a&&(i=s,s=a,p-=a=i),0<s&&0<p){for(i=p%s||s,l=d.substr(0,i);i<p;i+=s)l+=u+d.substr(i,s);0<a&&(l+=u+d.slice(i)),c&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((a=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},r.toFraction=function(e){var t,n,r,i,o,s,a,u,l,f,c,d,p=this.c;if(null!=e&&(!(a=new N(e)).isInteger()&&(a.c||1!==a.s)||a.lt(h)))throw Error(R+"Argument "+(a.isInteger()?"out of range: ":"not an integer: ")+C(a));if(!p)return new N(this);for(t=new N(h),l=n=new N(h),r=u=new N(h),d=q(p),o=t.e=d.length-this.e-1,t.c[0]=P[(s=o%U)<0?U+s:s],e=!e||0<a.comparedTo(t)?0<o?t:l:a,s=y,y=1/0,a=new N(d),u.c[0]=0;f=g(a,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,l=u.plus(f.times(i=l)),u=i,t=a.minus(f.times(i=t)),a=i;return i=g(e.minus(n),r,0,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=this.s,c=g(l,r,o*=2,b).minus(this).abs().comparedTo(g(u,n,o,b).minus(this).abs())<1?[l,r]:[u,n],y=s,c},r.toNumber=function(){return+C(this)},r.toPrecision=function(e,t){return null!=e&&Y(e,1,x),o(this,e,t,2)},r.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=m||_<=i?Q(q(n.c),i):X(q(n.c),i,"0"):10===e?t=X(q((n=F(new N(n),T+i+1,b)).c),n.e,"0"):(Y(e,2,v.length,"Base"),t=c(X(q(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},r.valueOf=r.toJSON=function(){return C(this)},r._isBigNumber=!0,null!=t&&N.set(t),N}())["default"]=n.BigNumber=n,void 0!==c&&c.exports?c.exports=n:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=n)}(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/bignumber.js/bignumber.js","/node_modules/bignumber.js")},{_process:114,buffer:104,timers:135}],102:[function(e,t,n){(function(e,t,n,r,i,o,s,a,u,l,f){}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/browser-resolve/empty.js","/node_modules/browser-resolve")},{_process:114,buffer:104,timers:135}],103:[function(e,t,n){(function(e,t,n,r,i,o,s,a,u,l,f){}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/browserify/lib/_empty.js","/node_modules/browserify/lib")},{_process:114,buffer:104,timers:135}],104:[function(Y,e,K){(function(e,t,c,n,r,i,o,s,a,u,l){"use strict";var f=Y("base64-js"),d=Y("ieee754");K.Buffer=c,K.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},K.INSPECT_MAX_BYTES=50;var p=2147483647;function h(e){if(p<e)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=c.prototype,t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return E(e)}return m(e,t,n)}function m(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return q(e)||e&&q(e.buffer)?function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=t===undefined&&n===undefined?new Uint8Array(e):n===undefined?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=c.prototype,r}(e,t,n):"string"==typeof e?function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|b(e,t),r=h(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t):function(e){if(c.isBuffer(e)){var t=0|T(e.length),n=h(t);return 0===n.length||e.copy(n,0,0,t),n}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||V(e.length)?h(0):g(e);if("Buffer"===e.type&&Array.isArray(e.data))return g(e.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(e)}function _(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('"size" argument must not be negative')}function E(e){return _(e),h(e<0?0:0|T(e))}function g(e){for(var t=e.length<0?0:0|T(e.length),n=h(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function T(e){if(p<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return 0|e}function b(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return x(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(r!==undefined&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a/=s=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var f=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(a<n+u&&(n=a-u),o=n;0<=o;o--){for(var c=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){c=!1;break}if(c)return o}return-1}function O(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var o=t.length;o/2<r&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(V(a))return s;e[n+s]=a}return s}function v(e,t,n,r){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?f.fromByteArray(e):f.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,l=e[i],f=null,c=239<l?4:223<l?3:191<l?2:1;if(i+c<=n)switch(c){case 1:l<128&&(f=l);break;case 2:128==(192&(o=e[i+1]))&&127<(u=(31&l)<<6|63&o)&&(f=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&2047<(u=(15&l)<<12|(63&o)<<6|63&s)&&(u<55296||57343<u)&&(f=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)&&u<1114112&&(f=u)}null===f?(f=65533,c=1):65535<f&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=c}return function(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=N));return n}(r)}K.kMaxLength=p,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{get:function(){return this instanceof c?this.buffer:undefined}}),Object.defineProperty(c.prototype,"offset",{get:function(){return this instanceof c?this.byteOffset:undefined}}),"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,n){return m(e,t,n)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(e,t,n){return i=t,o=n,_(r=e),r<=0?h(r):i!==undefined?"string"==typeof o?h(r).fill(i,o):h(r).fill(i):h(r);var r,i,o},c.allocUnsafe=function(e){return E(e)},c.allocUnsafeSlow=function(e){return E(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(t===undefined)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(ArrayBuffer.isView(o)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):function(e,t,n){var r=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return F(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",t=K.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),r===undefined&&(r=0),i===undefined&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),f=0;f<a;++f)if(u[f]!==l[f]){o=u[f],s=l[f];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(t===undefined)r="utf8",n=this.length,t=0;else if(n===undefined&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,r===undefined&&(r="utf8")):(r=n,n=undefined)}var i=this.length-t;if((n===undefined||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o,s,a,u,l,f,c,d,p,h=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return d=t,p=n,j(G(e,(c=this).length-d),c,d,p);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return u=this,l=t,f=n,j(x(e),u,l,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=t,a=n,j(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,(o=this).length-s),o,s,a);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;++o)i+=P(e[o]);return i}function L(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,4),d.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,8),d.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=t===undefined?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=c.prototype,r},c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];0<r&&(i*=256);)o+=this[e+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),d.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),d.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),d.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),d.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;0<=--o&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;0<=o;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),r!==undefined&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:new c(e,r),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var H=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){var n;t=t||Infinity;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if(55295<(n=e.charCodeAt(s))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(s+1===r){-1<(t-=3)&&o.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function x(e){return f.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function q(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function V(e){return e!=e}}).call(this,Y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],Y("timers").setImmediate,Y("timers").clearImmediate,"/node_modules/buffer/index.js","/node_modules/buffer")},{_process:114,"base64-js":100,buffer:104,ieee754:109,timers:135}],105:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){c.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/builtin-status-codes/browser.js","/node_modules/builtin-status-codes")},{_process:114,buffer:104,timers:135}],106:[function(e,t,d){(function(e,t,n,r,i,o,s,a,u,l,f){function c(e){return Object.prototype.toString.call(e)}d.isArray=
81
81
  // Copyright Joyent, Inc. and other Node contributors.
82
82
  function(e){return Array.isArray?Array.isArray(e):"[object Array]"===c(e)},d.isBoolean=function(e){return"boolean"==typeof e},d.isNull=function(e){return null===e},d.isNullOrUndefined=function(e){return null==e},d.isNumber=function(e){return"number"==typeof e},d.isString=function(e){return"string"==typeof e},d.isSymbol=function(e){return"symbol"==typeof e},d.isUndefined=function(e){return void 0===e},d.isRegExp=function(e){return"[object RegExp]"===c(e)},d.isObject=function(e){return"object"==typeof e&&null!==e},d.isDate=function(e){return"[object Date]"===c(e)},d.isError=function(e){return"[object Error]"===c(e)||e instanceof Error},d.isFunction=function(e){return"function"==typeof e},d.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},d.isBuffer=n.isBuffer}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/core-util-is/lib/util.js","/node_modules/core-util-is/lib")},{_process:114,buffer:104,timers:135}],107:[function(e,I,t){(function(e,t,n,r,i,o,s,a,u,l,f){
83
83
  // Copyright Joyent, Inc. and other Node contributors.
84
- var c=Object.create||function(e){var t=function(){};return t.prototype=e,new t},d=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},p=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function h(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=c(null),this._eventsCount=0),this._maxListeners=this._maxListeners||undefined}((I.exports=h).EventEmitter=h).prototype._events=undefined,h.prototype._maxListeners=undefined;var m,_=10;try{var E={};Object.defineProperty&&Object.defineProperty(E,"x",{value:0}),m=0===E.x}catch(v){m=!1}function g(e){return e._maxListeners===undefined?h.defaultMaxListeners:e._maxListeners}function T(e,t,n,r){var i,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=c(null),e._eventsCount=0),s){if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(i=g(e))&&0<i&&s.length>i){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",a.name,a.message)}}else s=o[t]=n,++e._eventsCount;return e}function b(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:undefined,target:e,type:t,listener:n},i=p.call(b,r);return i.listener=n,r.wrapFn=i}function S(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):O(i,i.length):[]}function w(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function O(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}m?Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return _},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');_=e}}):h.defaultMaxListeners=_,h.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},h.prototype.getMaxListeners=function(){return g(this)},h.prototype.emit=function(e){var t,n,r,i,o,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(a){if(1<arguments.length&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(n=s[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=O(e,r),o=0;o<r;++o)i[o].call(n)}(n,l,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=O(e,i),s=0;s<i;++s)o[s].call(n,r)}(n,l,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=O(e,o),a=0;a<o;++a)s[a].call(n,r,i)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=O(e,s),u=0;u<s;++u)a[u].call(n,r,i,o)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=O(e,i),s=0;s<i;++s)o[s].apply(n,r)}(n,l,this,i)}return!0},h.prototype.on=h.prototype.addListener=function(e,t){return T(this,e,t,!1)},h.prototype.prependListener=function(e,t){return T(this,e,t,!0)},h.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},h.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},h.prototype.removeListener=function(e,t){var n,r,i,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=c(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;0<=o;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,s||t)}return this},h.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=c(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=c(null):delete n[e]),this;if(0===arguments.length){var i,o=d(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=c(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},h.prototype.listeners=function(e){return S(this,e,!0)},h.prototype.rawListeners=function(e){return S(this,e,!1)},h.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):w.call(e,t)},h.prototype.listenerCount=w,h.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/events/events.js","/node_modules/events")},{_process:114,buffer:104,timers:135}],108:[function(_,E,e){(function(e,t,n,r,i,o,s,a,u,l,f){var c=_("http"),d=_("url"),p=E.exports;for(var h in c)c.hasOwnProperty(h)&&(p[h]=c[h]);function m(e){if("string"==typeof e&&(e=d.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}p.request=function(e,t){return e=m(e),c.request.call(this,e,t)},p.get=function(e,t){return e=m(e),c.get.call(this,e,t)}}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/node_modules/https-browserify/index.js","/node_modules/https-browserify")},{_process:114,buffer:104,http:120,timers:135,url:137}],109:[function(e,t,c){(function(e,t,n,r,i,o,s,a,u,l,f){c.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,f=-7,c=n?i-1:0,d=n?-1:1,p=e[t+c];for(c+=d,o=p&(1<<-f)-1,p>>=-f,f+=a;0<f;o=256*o+e[t+c],c+=d,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=r;0<f;s=256*s+e[t+c],c+=d,f-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:(p?-1:1)*Infinity;s+=Math.pow(2,r),o-=l}return(p?-1:1)*s*Math.pow(2,o-r)},c.write=function(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),2<=(t+=1<=s+c?d/u:d*Math.pow(2,1-c))*u&&(s++,u/=2),f<=s+c?(a=0,s=f):1<=s+c?(a=(t*u-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));8<=i;e[n+p]=255&a,p+=h,a/=256,i-=8);for(s=s<<i|a,l+=i;0<l;e[n+p]=255&s,p+=h,s/=256,l-=8);e[n+p-h]|=128*m}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/ieee754/index.js","/node_modules/ieee754")},{_process:114,buffer:104,timers:135}],110:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){"function"==typeof Object.create?c.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:c.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/inherits/inherits_browser.js","/node_modules/inherits")},{_process:114,buffer:104,timers:135}],111:[function(e,p,h){(function(e,t,n,r,i,o,s,a,u,l,f){var c,d;c=this,d=function(){"use strict";function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(i){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function t(e){var r="function"==typeof Map?new Map:void 0;return(t=function(e){function t(){return s(e,arguments,a(this).constructor)}if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f(t,e)})(e)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var e=function(e){var t,n,r,s=Math.abs,u=Math.max,w=Math.imul,T=Math.clz32;function v(e,t){var n;if(i(this,v),v.__kMaxLength<e)throw new RangeError("Maximum BigInt size exceeded");return(n=c(this,a(v).call(this,e))).sign=t,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(v,e),t=v,r=[{key:"BigInt",value:function(e){var t=Math.floor,n=Number.isFinite;if("number"==typeof e){if(0===e)return v.__zero();if((0|e)===e)return e<0?v.__oneDigit(-e,!0):v.__oneDigit(e,!1);if(!n(e)||t(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return v.__fromDouble(e)}if("string"==typeof e){var r=v.__fromString(e);if(null===r)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return r}if("boolean"==typeof e)return!0===e?v.__oneDigit(1,!1):v.__zero();if("object"===l(e)){if(e.constructor===v)return e;var i=v.__toPrimitive(e);return v.BigInt(i)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),i=T(r),o=32*t-i;if(1024<o)return e.sign?-Infinity:1/0;var s=o-1,a=r,u=t-1,l=i+1,f=32===l?0:a<<l;f>>>=12;var c=l-12,d=12<=l?0:a<<20+l,p=20+l;0<c&&0<u&&(u--,f|=(a=e.__digit(u))>>>32-c,d=a<<c,p=c),0<p&&0<u&&(u--,d|=(a=e.__digit(u))>>>32-p,p-=32);var h=v.__decideRounding(e,p,u,a);if((1===h||0===h&&1==(1&d))&&(0===(d=d+1>>>0)&&(0!=++f>>>20&&(f=0,1023<++s))))return e.sign?-Infinity:1/0;var m=e.sign?-2147483648:0;return s=s+1023<<20,v.__kBitConversionInts[1]=m|s|f,v.__kBitConversionInts[0]=d,v.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?v.__absoluteSubOne(e).__trim():v.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return v.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?v.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var n=t.__unsignedDigit(0);if(1===n)return e;if(v.__kMaxLengthBits<=n)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var r=1+(n>>>5),i=new v(r,e.sign&&0!=(1&n));i.__initializeDigits();var o=1<<(31&n);return i.__setDigit(r-1,o),i}var s=null,a=e;for(0!=(1&n)&&(s=e),n>>=1;0!==n;n>>=1)a=v.multiply(a,a),0!=(1&n)&&(s=null===s?a:v.multiply(s,a));return s}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new v(n,e.sign!==t.sign);r.__initializeDigits();for(var i=0;i<e.length;i++)v.__multiplyAccumulate(t,e.__digit(i),r,i);return r.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(v.__absoluteCompare(e,t)<0)return v.__zero();var n,r=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&i<=65535){if(1===i)return r===e.sign?e:v.unaryMinus(e);n=v.__absoluteDivSmall(e,i,null)}else n=v.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(v.__absoluteCompare(e,t)<0)return e;var n=t.__unsignedDigit(0);if(1===t.length&&n<=65535){if(1===n)return v.__zero();var r=v.__absoluteModSmall(e,n);return 0===r?v.__zero():v.__oneDigit(r,e.sign)}var i=v.__absoluteDivLarge(e,t,!1,!0);return i.sign=e.sign,i.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?v.__absoluteAdd(e,t,n):0<=v.__absoluteCompare(e,t)?v.__absoluteSub(e,t,n):v.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=v.__absoluteCompare(e,t)?v.__absoluteSub(e,t,n):v.__absoluteSub(t,e,!n):v.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?v.__rightShiftByAbsolute(e,t):v.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?v.__leftShiftByAbsolute(e,t):v.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return v.__compareToBigInt(e,t)<0}},{key:"lessThanOrEqual",value:function(e,t){return v.__compareToBigInt(e,t)<=0}},{key:"greaterThan",value:function(e,t){return 0<v.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=v.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:"notEqual",value:function(e,t){return!v.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return v.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var n=u(e.length,t.length)+1,r=v.__absoluteSubOne(e,n),i=v.__absoluteSubOne(t);return r=v.__absoluteOr(r,i,r),v.__absoluteAddOne(r,!0,r).__trim()}if(e.sign){var o=[t,e];e=o[0],t=o[1]}return v.__absoluteAndNot(e,v.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return v.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var n=u(e.length,t.length),r=v.__absoluteSubOne(e,n),i=v.__absoluteSubOne(t);return v.__absoluteXor(r,i,r).__trim()}var o=u(e.length,t.length)+1;if(e.sign){var s=[t,e];e=s[0],t=s[1]}var a=v.__absoluteSubOne(t,o);return a=v.__absoluteXor(a,e,a),v.__absoluteAddOne(a,!0,a).__trim()}},{key:"bitwiseOr",value:function(e,t){var n=u(e.length,t.length);if(!e.sign&&!t.sign)return v.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var r=v.__absoluteSubOne(e,n),i=v.__absoluteSubOne(t);return r=v.__absoluteAnd(r,i,r),v.__absoluteAddOne(r,!0,r).__trim()}if(e.sign){var o=[t,e];e=o[0],t=o[1]}var s=v.__absoluteSubOne(t,n);return s=v.__absoluteAndNot(s,e,s),v.__absoluteAddOne(s,!0,s).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0===e)return v.__zero();if(v.__kMaxLengthBits<=e)return t;var n=e+31>>>5;if(t.length<n)return t;var r=t.__unsignedDigit(n-1),i=1<<(31&e-1);if(t.length===n&&r<i)return t;if((r&i)!==i)return v.__truncateToNBits(e,t);if(!t.sign)return v.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(r&i-1)){for(var o=n-2;0<=o;o--)if(0!==t.__digit(o))return v.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&r===i?t:v.__truncateToNBits(e,t)}return v.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0===e)return v.__zero();if(t.sign){if(v.__kMaxLengthBits<e)throw new RangeError("BigInt too big");return v.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(v.__kMaxLengthBits<=e)return t;var n=e+31>>>5;if(t.length<n)return t;var r=31&e;if(t.length==n){if(0==r)return t;if(0==t.__digit(n-1)>>>r)return t}return v.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=v.__toPrimitive(e),t=v.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=v.__toNumeric(e),t=v.__toNumeric(t),v.__isBigInt(e)&&v.__isBigInt(t))return v.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return v.__compare(e,t,0)}},{key:"LE",value:function(e,t){return v.__compare(e,t,1)}},{key:"GT",value:function(e,t){return v.__compare(e,t,2)}},{key:"GE",value:function(e,t){return v.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(v.__isBigInt(e))return v.__isBigInt(t)?v.equal(e,t):v.EQ(t,e);if("number"==typeof e){if(v.__isBigInt(t))return v.__equalToNumber(t,e);if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else if("string"==typeof e){if(v.__isBigInt(t))return null!==(e=v.__fromString(e))&&v.equal(e,t);if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else if("boolean"==typeof e){if(v.__isBigInt(t))return v.__equalToNumber(t,+e);if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else if("symbol"===l(e)){if(v.__isBigInt(t))return!1;if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else{if("object"!==l(e))return e==t;if("object"===l(t)&&t.constructor!==v)return e==t;e=v.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!v.EQ(e,t)}},{key:"__zero",value:function(){return new v(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new v(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,r){if(0<t)return-1;var i;if(t<0)i=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),i=31}var o=1<<i;if(0==(r&o))return-1;if(0!=(r&(o-=1)))return 1;for(;0<n;)if(n--,0!==e.__digit(n))return 1;return 0}},{key:"__fromDouble",value:function(e){v.__kBitConversionDouble[0]=e;var t,n=(2047&v.__kBitConversionInts[1]>>>20)-1023,r=1+(n>>>5),i=new v(r,e<0),o=1048575&v.__kBitConversionInts[1]|1048576,s=v.__kBitConversionInts[0],a=31&n,u=0;if(a<20){var l=20-a;u=l+32,t=o>>>l,o=o<<32-l|s>>>l,s<<=32-l}else if(20===a)u=32,t=o,o=s;else{var f=a-20;t=o<<f|s>>>(u=32-f),o=s<<f}i.__setDigit(r-1,t);for(var c=r-2;0<=c;c--)0<u?(u-=32,t=o,o=s):t=0,i.__setDigit(c,t);return i.__trim()}},{key:"__isWhitespace",value:function(e){return!!(e<=13&&9<=e)||(e<=159?32==e:e<=131071?160==e||5760==e:e<=196607?(e&=131071)<=10||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0,r=e.length,i=0;if(i===r)return v.__zero();for(var o=e.charCodeAt(i);v.__isWhitespace(o);){if(++i===r)return v.__zero();o=e.charCodeAt(i)}if(43===o){if(++i===r)return null;o=e.charCodeAt(i),n=1}else if(45===o){if(++i===r)return null;o=e.charCodeAt(i),n=-1}if(0===t){if(t=10,48===o){if(++i===r)return v.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(t=16,++i===r)return null;o=e.charCodeAt(i)}else if(79===o||111===o){if(t=8,++i===r)return null;o=e.charCodeAt(i)}else if(66===o||98===o){if(t=2,++i===r)return null;o=e.charCodeAt(i)}}}else if(16===t&&48===o){if(++i===r)return v.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(++i===r)return null;o=e.charCodeAt(i)}}for(;48===o;){if(++i===r)return v.__zero();o=e.charCodeAt(i)}var s=r-i,a=v.__kMaxBitsPerChar[t],u=v.__kBitsPerCharTableMultiplier-1;if(1073741824/a<s)return null;var l=new v((a*s+u>>>v.__kBitsPerCharTableShift)+31>>>5,!1),f=t<10?t:10,c=10<t?t-10:0;if(0==(t&t-1)){a>>=v.__kBitsPerCharTableShift;var d=[],p=[],h=!1;do{for(var m,_=0,E=0;;){if(m=void 0,o-48>>>0<f)m=o-48;else{if(!((32|o)-97>>>0<c)){h=!0;break}m=(32|o)-87}if(E+=a,_=_<<a|m,++i===r){h=!0;break}if(o=e.charCodeAt(i),32<E+a)break}d.push(_),p.push(E)}while(!h);v.__fillFromParts(l,d,p)}else{l.__initializeDigits();var g=!1,T=0;do{for(var b,y=0,S=1;;){if(b=void 0,o-48>>>0<f)b=o-48;else{if(!((32|o)-97>>>0<c)){g=!0;break}b=(32|o)-87}var w=S*t;if(4294967295<w)break;if(S=w,y=y*t+b,T++,++i===r){g=!0;break}o=e.charCodeAt(i)}var O=a*T+(u=32*v.__kBitsPerCharTableMultiplier-1)>>>v.__kBitsPerCharTableShift+5;l.__inplaceMultiplyAdd(S,y,O)}while(!g)}for(;i!==r;){if(!v.__isWhitespace(o))return null;o=e.charCodeAt(i++)}return 0!==n&&10!==t?null:(l.sign=-1===n,l.__trim())}},{key:"__fillFromParts",value:function(e,t,n){for(var r=0,i=0,o=0,s=t.length-1;0<=s;s--){var a=t[s],u=n[s];i|=a<<o,32===(o+=u)?(e.__setDigit(r++,i),i=o=0):32<o&&(e.__setDigit(r++,i),i=a>>>u-(o-=32))}if(0!==i){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,i)}for(;r<e.length;r++)e.__setDigit(r,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var n=e.length,r=t-1,i=r=(15&(r=(51&(r=(85&r>>>1)+(85&r))>>>2)+(51&r))>>>4)+(15&r),o=t-1,s=e.__digit(n-1),a=0|(32*n-T(s)+i-1)/i;if(e.sign&&a++,268435456<a)throw new Error("string too long");for(var u=Array(a),l=a-1,f=0,c=0,d=0;d<n-1;d++){var p=e.__digit(d),h=(f|p<<c)&o;u[l--]=v.__kConversionChars[h];var m=i-c;for(f=p>>>m,c=32-m;i<=c;)u[l--]=v.__kConversionChars[f&o],f>>>=i,c-=i}var _=(f|s<<c)&o;for(u[l--]=v.__kConversionChars[_],f=s>>>i-c;0!==f;)u[l--]=v.__kConversionChars[f&o],f>>>=i;if(e.sign&&(u[l--]="-"),-1!==l)throw new Error("implementation bug");return u.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var r=e.length;if(0===r)return"";if(1===r){var i=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(i="-"+i),i}var o,s,a=32*r-T(e.__digit(r-1)),u=v.__kMaxBitsPerChar[t]-1,l=a*v.__kBitsPerCharTableMultiplier,f=(l=0|(l+=u-1)/u)+1>>1,c=v.exponentiate(v.__oneDigit(t,!1),v.__oneDigit(f,!1)),d=c.__unsignedDigit(0);if(1===c.length&&d<=65535){(o=new v(e.length,!1)).__initializeDigits();for(var p,h=0,m=2*e.length-1;0<=m;m--)p=h<<16|e.__halfDigit(m),o.__setHalfDigit(m,0|p/d),h=0|p%d;s=h.toString(t)}else{var _=v.__absoluteDivLarge(e,c,!0,!0);o=_.quotient;var E=_.remainder.__trim();s=v.__toStringGeneric(E,t,!0)}o.__trim();for(var g=v.__toStringGeneric(o,t,!0);s.length<f;)s="0"+s;return!1===n&&e.sign&&(g="-"+g),g+s}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var n=e.sign;if(n!==t.sign)return v.__unequalSign(n);var r=v.__absoluteCompare(e,t);return 0<r?v.__absoluteGreater(n):r<0?v.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,t){if(!0|t){var n=e.sign,r=t<0;if(n!==r)return v.__unequalSign(n);if(0===e.length){if(r)throw new Error("implementation bug");return 0===t?0:-1}if(1<e.length)return v.__absoluteGreater(n);var i=s(t),o=e.__unsignedDigit(0);return i<o?v.__absoluteGreater(n):o<i?v.__absoluteLess(n):0}return v.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function(e,t){if(t!=t)return t;if(t===1/0)return-1;if(t===-Infinity)return 1;var n=e.sign;if(n!==t<0)return v.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;v.__kBitConversionDouble[0]=t;var r=2047&v.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");var i=r-1023;if(i<0)return v.__absoluteGreater(n);var o=e.length,s=e.__digit(o-1),a=T(s),u=32*o-a,l=i+1;if(u<l)return v.__absoluteLess(n);if(l<u)return v.__absoluteGreater(n);var f=1048576|1048575&v.__kBitConversionInts[1],c=v.__kBitConversionInts[0],d=31-a;if(d!==(u-1)%31)throw new Error("implementation bug");var p,h=0;if(d<20){var m=20-d;h=m+32,p=f>>>m,f=f<<32-m|c>>>m,c<<=32-m}else if(20===d)h=32,p=f,f=c;else{var _=d-20;p=f<<_|c>>>(h=32-_),f=c<<_}if((p>>>=0)<(s>>>=0))return v.__absoluteGreater(n);if(s<p)return v.__absoluteLess(n);for(var E=o-2;0<=E;E--){0<h?(h-=32,p=f>>>0,f=c,c=0):p=0;var g=e.__unsignedDigit(E);if(p<g)return v.__absoluteGreater(n);if(g<p)return v.__absoluteLess(n)}if(0!==f||0!==c){if(0===h)throw new Error("implementation bug");return v.__absoluteLess(n)}return 0}},{key:"__equalToNumber",value:function(e,t){return t|0===t?0===t?0===e.length:1===e.length&&e.sign===t<0&&e.__unsignedDigit(0)===s(t):0===v.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return e<0;case 1:return e<=0;case 2:return 0<e;case 3:return 0<=e}throw new Error("unreachable")}},{key:"__compare",value:function(e,t,n){if(e=v.__toPrimitive(e),t=v.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return t<e;case 3:return t<=e}if(v.__isBigInt(e)&&"string"==typeof t)return null!==(t=v.__fromString(t))&&v.__comparisonResultToBool(v.__compareToBigInt(e,t),n);if("string"==typeof e&&v.__isBigInt(t))return null!==(e=v.__fromString(e))&&v.__comparisonResultToBool(v.__compareToBigInt(e,t),n);if(e=v.__toNumeric(e),t=v.__toNumeric(t),v.__isBigInt(e)){if(v.__isBigInt(t))return v.__comparisonResultToBool(v.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return v.__comparisonResultToBool(v.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(v.__isBigInt(t))return v.__comparisonResultToBool(v.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?e<t:1===n?e<=t:2===n?t<e:3===n?t<=e:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length<t.length)return v.__absoluteAdd(t,e,n);if(0===e.length)return e;if(0===t.length)return e.sign===n?e:v.unaryMinus(e);var r=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&r++;for(var i=new v(r,n),o=0,s=0;s<t.length;s++){var a=t.__digit(s),u=e.__digit(s),l=(65535&u)+(65535&a)+o,f=(u>>>16)+(a>>>16)+(l>>>16);o=f>>>16,i.__setDigit(s,65535&l|f<<16)}for(;s<e.length;s++){var c=e.__digit(s),d=(65535&c)+o,p=(c>>>16)+(d>>>16);o=p>>>16,i.__setDigit(s,65535&d|p<<16)}return s<i.length&&i.__setDigit(s,o),i.__trim()}},{key:"__absoluteSub",value:function(e,t,n){if(0===e.length)return e;if(0===t.length)return e.sign===n?e:v.unaryMinus(e);for(var r=new v(e.length,n),i=0,o=0;o<t.length;o++){var s=e.__digit(o),a=t.__digit(o),u=(65535&s)-(65535&a)-i,l=(s>>>16)-(a>>>16)-(i=1&u>>>16);i=1&l>>>16,r.__setDigit(o,65535&u|l<<16)}for(;o<e.length;o++){var f=e.__digit(o),c=(65535&f)-i,d=(f>>>16)-(i=1&c>>>16);i=1&d>>>16,r.__setDigit(o,65535&c|d<<16)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length;null===n?n=new v(r,t):n.sign=t;for(var i=!0,o=0;o<r;o++){var s=e.__digit(o),a=-1===s;i&&(s=0|s+1),i=a,n.__setDigit(o,s)}return i&&n.__setDigitGrow(r,1),n}},{key:"__absoluteSubOne",value:function(e,t){for(var n=e.length,r=new v(t=t||n,!1),i=!0,o=0;o<n;o++){var s=e.__digit(o),a=0===s;i&&(s=0|s-1),i=a,r.__setDigit(o,s)}for(var u=n;u<t;u++)r.__setDigit(u,0);return r}},{key:"__absoluteAnd",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){var s=e,a=o=r;e=t,r=i,t=s,i=a}var u=o;null===n?n=new v(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)&t.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteAndNot",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;r<i&&(o=r);var s=r;null===n?n=new v(s,!1):s=n.length;for(var a=0;a<o;a++)n.__setDigit(a,e.__digit(a)&~t.__digit(a));for(;a<r;a++)n.__setDigit(a,e.__digit(a));for(;a<s;a++)n.__setDigit(a,0);return n}},{key:"__absoluteOr",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){var s=e,a=o=r;e=t,r=i,t=s,i=a}var u=r;null===n?n=new v(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)|t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteXor",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){var s=e,a=o=r;e=t,r=i,t=s,i=a}var u=r;null===n?n=new v(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)^t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteCompare",value:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var r=e.length-1;0<=r&&e.__digit(r)===t.__digit(r);)r--;return r<0?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,r){if(0!==t){for(var i=65535&t,o=t>>>16,s=0,a=0,u=0,l=0;l<e.length;l++,r++){var f=n.__digit(r),c=65535&f,d=f>>>16,p=e.__digit(l),h=65535&p,m=p>>>16,_=w(h,i),E=w(h,o),g=w(m,i),T=w(m,o);s=(a=(E>>>16)+(g>>>16)+(65535&T)+(s=(d+=u+s+((c+=a+(65535&_))>>>16)+(_>>>16)+(65535&E)+(65535&g))>>>16))>>>16,a&=65535,u=T>>>16,f=65535&c|d<<16,n.__setDigit(r,f)}for(;0!==s||0!==a||0!==u;r++){var b=n.__digit(r),y=(65535&b)+a,S=(b>>>16)+(y>>>16)+u+s;u=a=0,s=S>>>16,b=65535&y|S<<16,n.__setDigit(r,b)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,r,i){for(var o=n,s=0,a=0;a<r;a++){var u=e.__digit(a),l=w(65535&u,t),f=(65535&l)+s+o;o=f>>>16;var c=w(u>>>16,t),d=(65535&c)+(l>>>16)+o;o=d>>>16,s=c>>>16,i.__setDigit(a,d<<16|65535&f)}if(i.length>r)for(i.__setDigit(r++,o+s);r<i.length;)i.__setDigit(r++,0);else if(0!==o+s)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t,n){null===n&&(n=new v(e.length,!1));for(var r=0,i=2*e.length-1;0<=i;i-=2){var o=(r<<16|e.__halfDigit(i))>>>0,s=0|o/t,a=0|(o=((r=0|o%t)<<16|e.__halfDigit(i-1))>>>0)/t;r=0|o%t,n.__setDigit(i>>>1,s<<16|a)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,r=2*e.length-1;0<=r;r--)n=0|((n<<16|e.__halfDigit(r))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,r){var i=t.__halfDigitLength(),o=t.length,s=e.__halfDigitLength()-i,a=null;n&&(a=new v(s+2>>>1,!1)).__initializeDigits();var u=new v(i+2>>>1,!1);u.__initializeDigits();var l=v.__clz16(t.__halfDigit(i-1));0<l&&(t=v.__specialLeftShift(t,l,0));for(var f=v.__specialLeftShift(e,l,1),c=t.__halfDigit(i-1),d=0,p=s;0<=p;p--){var h=65535,m=f.__halfDigit(p+i);if(m!==c){var _=(m<<16|f.__halfDigit(p+i-1))>>>0;h=0|_/c;for(var E=0|_%c,g=t.__halfDigit(i-2),T=f.__halfDigit(p+i-2);w(h,g)>>>0>(E<<16|T)>>>0&&(h--,!(65535<(E+=c))););}v.__internalMultiplyAdd(t,h,0,o,u);var b=f.__inplaceSub(u,p,i+1);0!==b&&(b=f.__inplaceAdd(t,p,i),f.__setHalfDigit(p+i,f.__halfDigit(p+i)+b),h--),n&&(1&p?d=h<<16:a.__setDigit(p>>>1,d|h))}return r?(f.__inplaceRightShift(l),n?{quotient:a,remainder:f}:f):n?a:void 0}},{key:"__clz16",value:function(e){return T(e)-16}},{key:"__specialLeftShift",value:function(e,t,n){var r=e.length,i=new v(r+n,!1);if(0===t){for(var o=0;o<r;o++)i.__setDigit(o,e.__digit(o));return 0<n&&i.__setDigit(r,0),i}for(var s,a=0,u=0;u<r;u++)s=e.__digit(u),i.__setDigit(u,s<<t|a),a=s>>>32-t;return 0<n&&i.__setDigit(r,a),i}},{key:"__leftShiftByAbsolute",value:function(e,t){var n=v.__toShiftAmount(t);if(n<0)throw new RangeError("BigInt too big");var r=n>>>5,i=31&n,o=e.length,s=0!==i&&0!=e.__digit(o-1)>>>32-i,a=o+r+(s?1:0),u=new v(a,e.sign);if(0===i){for(var l=0;l<r;l++)u.__setDigit(l,0);for(;l<a;l++)u.__setDigit(l,e.__digit(l-r))}else{for(var f=0,c=0;c<r;c++)u.__setDigit(c,0);for(var d,p=0;p<o;p++)d=e.__digit(p),u.__setDigit(p+r,d<<i|f),f=d>>>32-i;if(s)u.__setDigit(o+r,f);else if(0!==f)throw new Error("implementation bug")}return u.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,r=e.sign,i=v.__toShiftAmount(t);if(i<0)return v.__rightShiftByMaximum(r);var o=i>>>5,s=31&i,a=n-o;if(a<=0)return v.__rightShiftByMaximum(r);var u=!1;if(r)if(0!=(e.__digit(o)&(1<<s)-1))u=!0;else for(var l=0;l<o;l++)if(0!==e.__digit(l)){u=!0;break}u&&0===s&&(0==~e.__digit(n-1)&&a++);var f=new v(a,r);if(0===s)for(var c=o;c<n;c++)f.__setDigit(c-o,e.__digit(c));else{for(var d,p=e.__digit(o)>>>s,h=n-o-1,m=0;m<h;m++)d=e.__digit(m+o+1),f.__setDigit(m,d<<32-s|p),p=d>>>s;f.__setDigit(h,p)}return u&&(f=v.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?v.__oneDigit(1,!0):v.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return v.__kMaxLengthBits<t?-1:t}},{key:"__toPrimitive",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==l(e))return e;if(e.constructor===v)return e;var n=e[Symbol.toPrimitive];if(n){var r=n(t);if("object"!==l(r))return r;throw new TypeError("Cannot convert object to primitive value")}var i=e.valueOf;if(i){var o=i.call(e);if("object"!==l(o))return o}var s=e.toString;if(s){var a=s.call(e);if("object"!==l(a))return a}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return v.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"===l(e)&&e.constructor===v}},{key:"__truncateToNBits",value:function(e,t){for(var n=e+31>>>5,r=new v(n,t.sign),i=n-1,o=0;o<i;o++)r.__setDigit(o,t.__digit(o));var s=t.__digit(i);if(0!=(31&e)){var a=32-(31&e);s=s<<a>>>a}return r.__setDigit(i,s),r.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var r=Math.min,i=e+31>>>5,o=new v(i,n),s=0,a=i-1,u=0,l=r(a,t.length);s<l;s++){var f=t.__digit(s),c=0-(65535&f)-u,d=0-(f>>>16)-(u=1&c>>>16);u=1&d>>>16,o.__setDigit(s,65535&c|d<<16)}for(;s<a;s++)o.__setDigit(s,0|-u);var p,h=a<t.length?t.__digit(a):0,m=31&e;if(0===m){var _=0-(65535&h)-u;p=65535&_|0-(h>>>16)-(u=1&_>>>16)<<16}else{var E=32-m,g=1<<32-E,T=(65535&g)-(65535&(h=h<<E>>>E))-u;p=65535&T|(g>>>16)-(h>>>16)-(u=1&T>>>16)<<16,p&=g-1}return o.__setDigit(a,p),o.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}}],(n=[{key:"toDebugString",value:function(){var e=["BigInt["],t=!0,n=!1,r=void 0;try{for(var i,o,s=this[Symbol.iterator]();!(t=(i=s.next()).done);t=!0)o=i.value,e.push((o?(o>>>0).toString(16):o)+", ")}catch(e){n=!0,r=e}finally{try{t||null==s["return"]||s["return"]()}finally{if(n)throw r}}return e.push("]"),e.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(e<2||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?v.__toStringBasePowerOfTwo(this,e):v.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new v(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return T(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(e,t,n){n>this.length&&(n=this.length);for(var r=65535&e,i=e>>>16,o=0,s=65535&t,a=t>>>16,u=0;u<n;u++){var l=this.__digit(u),f=65535&l,c=l>>>16,d=w(f,r),p=w(f,i),h=w(c,r),m=w(c,i),_=s+(65535&d),E=a+o+(_>>>16)+(d>>>16)+(65535&p)+(65535&h);o=(s=(p>>>16)+(h>>>16)+(65535&m)+(E>>>16))>>>16,s&=65535,a=m>>>16,this.__setDigit(u,65535&_|E<<16)}if(0!==o||0!==s||0!==a)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var r,i=0,o=0;o<n;o++)i=(r=this.__halfDigit(t+o)+e.__halfDigit(o)+i)>>>16,this.__setHalfDigit(t+o,r);return i}},{key:"__inplaceSub",value:function(e,t,n){var r=0;if(1&t){t>>=1;for(var i=this.__digit(t),o=65535&i,s=0;s<n-1>>>1;s++){var a=e.__digit(s),u=(i>>>16)-(65535&a)-r;r=1&u>>>16,this.__setDigit(t+s,u<<16|65535&o),r=1&(o=(65535&(i=this.__digit(t+s+1)))-(a>>>16)-r)>>>16}var l=e.__digit(s),f=(i>>>16)-(65535&l)-r;if(r=1&f>>>16,this.__setDigit(t+s,f<<16|65535&o),t+s+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(r=1&(o=(65535&(i=this.__digit(t+s+1)))-(l>>>16)-r)>>>16,this.__setDigit(t+e.length,4294901760&i|65535&o))}else{t>>=1;for(var c=0;c<e.length-1;c++){var d=this.__digit(t+c),p=e.__digit(c),h=(65535&d)-(65535&p)-r,m=(d>>>16)-(p>>>16)-(r=1&h>>>16);r=1&m>>>16,this.__setDigit(t+c,m<<16|65535&h)}var _=this.__digit(t+c),E=e.__digit(c),g=(65535&_)-(65535&E)-r;r=1&g>>>16;var T=0;0==(1&n)&&(r=1&(T=(_>>>16)-(E>>>16)-r)>>>16),this.__setDigit(t+c,T<<16|65535&g)}return r}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,n=this.__digit(0)>>>e,r=this.length-1,i=0;i<r;i++)t=this.__digit(i+1),this.__setDigit(i,t<<32-e|n),n=t>>>e;this.__setDigit(r,n)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return this.__unsignedDigit(e-1)<=65535?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,r=this.__digit(n),i=1&e?65535&r|t<<16:4294901760&r|65535&t;this.__setDigit(n,i)}}])&&o(t.prototype,n),r&&o(t,r),v}(t(Array));return e.__kMaxLength=33554432,e.__kMaxLengthBits=e.__kMaxLength<<5,e.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],e.__kBitsPerCharTableShift=5,e.__kBitsPerCharTableMultiplier=1<<e.__kBitsPerCharTableShift,e.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e.__kBitConversionBuffer=new ArrayBuffer(8),e.__kBitConversionDouble=new Float64Array(e.__kBitConversionBuffer),e.__kBitConversionInts=new Int32Array(e.__kBitConversionBuffer),e},"object"==typeof h&&void 0!==p?p.exports=d():(c=c||self).JSBI=d()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/jsbi/dist/jsbi-umd.js","/node_modules/jsbi/dist")},{_process:114,buffer:104,timers:135}],112:[function(e,c,d){(function(e,s,t,n,r,i,o,a,u,l,f){(function(){var P={"function":!0,object:!0},e=P[typeof d]&&d&&!d.nodeType&&d,G=P[typeof window]&&window||this,t=e&&P[typeof c]&&c&&!c.nodeType&&"object"==typeof s&&s;function x(e,u){e||(e=G.Object()),u||(u=G.Object());var l=e.Number||G.Number,f=e.String||G.String,t=e.Object||G.Object,c=e.Date||G.Date,n=e.SyntaxError||G.SyntaxError,w=e.TypeError||G.TypeError,r=e.Math||G.Math,i=e.JSON||G.JSON;"object"==typeof i&&i&&(u.stringify=i.stringify,u.parse=i.parse);var O,v,I,o=t.prototype,N=o.toString,d=new c(-0xc782b5b800cec);try{d=-109252==d.getUTCFullYear()&&0===d.getUTCMonth()&&1===d.getUTCDate()&&10==d.getUTCHours()&&37==d.getUTCMinutes()&&6==d.getUTCSeconds()&&708==d.getUTCMilliseconds()}catch(H){}function p(e){if(p[e]!==I)return p[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=p("json-stringify")&&p("json-parse");else{var n,r='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var i=u.stringify,o="function"==typeof i&&d;if(o){(n=function(){return 1}).toJSON=n;try{o="0"===i(0)&&"0"===i(new l)&&'""'==i(new f)&&i(N)===I&&i(I)===I&&i()===I&&"1"===i(n)&&"[1]"==i([n])&&"[null]"==i([I])&&"null"==i(null)&&"[null,null,null]"==i([I,N,null])&&i({a:[n,!0,!1,null,"\0\b\n\f\r\t"]})==r&&"1"===i(null,n)&&"[\n 1,\n 2\n]"==i([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==i(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new c(-1))}catch(H){o=!1}}t=o}if("json-parse"==e){var s=u.parse;if("function"==typeof s)try{if(0===s("0")&&!s(!1)){var a=5==(n=s(r)).a.length&&1===n.a[0];if(a){try{a=!s('"\t"')}catch(H){}if(a)try{a=1!==s("01")}catch(H){}if(a)try{a=1!==s("1.")}catch(H){}}}}catch(H){a=!1}t=a}}return p[e]=!!t}if(!p("json")){var h="[object Function]",A="[object Number]",F="[object String]",M="[object Array]",a=p("bug-string-char-index");if(!d)var C=r.floor,s=[0,31,59,90,120,151,181,212,243,273,304,334],L=function(e,t){return s[t]+365*(e-1970)+C((e-1969+(t=+(1<t)))/4)-C((e-1901+t)/100)+C((e-1601+t)/400)};if((O=o.hasOwnProperty)||(O=function(e){var n,t={};return(t.__proto__=null,t.__proto__={toString:1},t).toString!=N?O=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(n=t.constructor,O=function(e){var t=(this.constructor||n).prototype;return e in this&&!(e in t&&this[e]===t[e])}),t=null,O.call(this,e)}),v=function(e,t){var n,s,r,i=0;for(r in(n=function(){this.valueOf=0}).prototype.valueOf=0,s=new n)O.call(s,r)&&i++;return n=s=null,i?v=2==i?function(e,t){var n,r={},i=N.call(e)==h;for(n in e)i&&"prototype"==n||O.call(r,n)||!(r[n]=1)||!O.call(e,n)||t(n)}:function(e,t){var n,r,i=N.call(e)==h;for(n in e)i&&"prototype"==n||!O.call(e,n)||(r="constructor"===n)||t(n);(r||O.call(e,n="constructor"))&&t(n)}:(s=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(e,t){var n,r,i=N.call(e)==h,o=!i&&"function"!=typeof e.constructor&&P[typeof e.hasOwnProperty]&&e.hasOwnProperty||O;for(n in e)i&&"prototype"==n||!o.call(e,n)||t(n);for(r=s.length;n=s[--r];o.call(e,n)&&t(n));}),v(e,t)},!p("json-stringify")){var m={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},D=function(e,t){return("000000"+(t||0)).slice(-e)},R=function(e){for(var t='"',n=0,r=e.length,i=!a||10<r,o=i&&(a?e.split(""):e);n<r;n++){var s=e.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=m[s];break;default:if(s<32){t+="\\u00"+D(2,s.toString(16));break}t+=i?o[n]:e.charAt(n)}}return t+'"'},B=function(e,t,n,r,i,o,s){var a,u,l,f,c,d,p,h,m,_,E,g,T,b,y,S;try{a=t[e]}catch(H){}if("object"==typeof a&&a)if("[object Date]"!=(u=N.call(a))||O.call(a,"toJSON"))"function"==typeof a.toJSON&&(u!=A&&u!=F&&u!=M||O.call(a,"toJSON"))&&(a=a.toJSON(e));else if(-1/0<a&&a<1/0){if(L){for(c=C(a/864e5),l=C(c/365.2425)+1970-1;L(l+1,0)<=c;l++);for(f=C((c-L(l,0))/30.42);L(l,f+1)<=c;f++);c=1+c-L(l,f),p=C((d=(a%864e5+864e5)%864e5)/36e5)%24,h=C(d/6e4)%60,m=C(d/1e3)%60,_=d%1e3}else l=a.getUTCFullYear(),f=a.getUTCMonth(),c=a.getUTCDate(),p=a.getUTCHours(),h=a.getUTCMinutes(),m=a.getUTCSeconds(),_=a.getUTCMilliseconds();a=(l<=0||1e4<=l?(l<0?"-":"+")+D(6,l<0?-l:l):D(4,l))+"-"+D(2,f+1)+"-"+D(2,c)+"T"+D(2,p)+":"+D(2,h)+":"+D(2,m)+"."+D(3,_)+"Z"}else a=null;if(n&&(a=n.call(t,e,a)),null===a)return"null";if("[object Boolean]"==(u=N.call(a)))return""+a;if(u==A)return-1/0<a&&a<1/0?""+a:"null";if(u==F)return R(""+a);if("object"==typeof a){for(b=s.length;b--;)if(s[b]===a)throw w();if(s.push(a),E=[],y=o,o+=i,u==M){for(T=0,b=a.length;T<b;T++)g=B(T,a,n,r,i,o,s),E.push(g===I?"null":g);S=E.length?i?"[\n"+o+E.join(",\n"+o)+"\n"+y+"]":"["+E.join(",")+"]":"[]"}else v(r||a,function(e){var t=B(e,a,n,r,i,o,s);t!==I&&E.push(R(e)+":"+(i?" ":"")+t)}),S=E.length?i?"{\n"+o+E.join(",\n"+o)+"\n"+y+"}":"{"+E.join(",")+"}":"{}";return s.pop(),S}};u.stringify=function(e,t,n){var r,i,o,s;if(P[typeof t]&&t)if((s=N.call(t))==h)i=t;else if(s==M){o={};for(var a,u=0,l=t.length;u<l;a=t[u++],((s=N.call(a))==F||s==A)&&(o[a]=1));}if(n)if((s=N.call(n))==A){if(0<(n-=n%1))for(r="",10<n&&(n=10);r.length<n;r+=" ");}else s==F&&(r=n.length<=10?n:n.slice(0,10));return B("",((a={})[""]=e,a),i,o,r,"",[])}}if(!p("json-parse")){var _,E,g=f.fromCharCode,T={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},b=function(){throw _=E=null,n()},y=function(){for(var e,t,n,r,i,o=E,s=o.length;_<s;)switch(i=o.charCodeAt(_)){case 9:case 10:case 13:case 32:_++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=a?o.charAt(_):o[_],_++,e;case 34:for(e="@",_++;_<s;)if((i=o.charCodeAt(_))<32)b();else if(92==i)switch(i=o.charCodeAt(++_)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=T[i],_++;break;case 117:for(t=++_,n=_+4;_<n;_++)48<=(i=o.charCodeAt(_))&&i<=57||97<=i&&i<=102||65<=i&&i<=70||b();e+=g("0x"+o.slice(t,_));break;default:b()}else{if(34==i)break;for(i=o.charCodeAt(_),t=_;32<=i&&92!=i&&34!=i;)i=o.charCodeAt(++_);e+=o.slice(t,_)}if(34==o.charCodeAt(_))return _++,e;b();default:if(t=_,45==i&&(r=!0,i=o.charCodeAt(++_)),48<=i&&i<=57){for(48==i&&(48<=(i=o.charCodeAt(_+1))&&i<=57)&&b(),r=!1;_<s&&(48<=(i=o.charCodeAt(_))&&i<=57);_++);if(46==o.charCodeAt(_)){for(n=++_;n<s&&(48<=(i=o.charCodeAt(n))&&i<=57);n++);n==_&&b(),_=n}if(101==(i=o.charCodeAt(_))||69==i){for(43!=(i=o.charCodeAt(++_))&&45!=i||_++,n=_;n<s&&(48<=(i=o.charCodeAt(n))&&i<=57);n++);n==_&&b(),_=n}return+o.slice(t,_)}if(r&&b(),"true"==o.slice(_,_+4))return _+=4,!0;if("false"==o.slice(_,_+5))return _+=5,!1;if("null"==o.slice(_,_+4))return _+=4,null;b()}return"$"},S=function(e){var t,n;if("$"==e&&b(),"string"==typeof e){if("@"==(a?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=y());n||(n=!0))n&&(","==e?"]"==(e=y())&&b():b()),","==e&&b(),t.push(S(e));return t}if("{"==e){for(t={};"}"!=(e=y());n||(n=!0))n&&(","==e?"}"==(e=y())&&b():b()),","!=e&&"string"==typeof e&&"@"==(a?e.charAt(0):e[0])&&":"==y()||b(),t[e.slice(1)]=S(y());return t}b()}return e},k=function(e,t,n){var r=U(e,t,n);r===I?delete e[t]:e[t]=r},U=function(e,t,n){var r,i=e[t];if("object"==typeof i&&i)if(N.call(i)==M)for(r=i.length;r--;)k(i,r,n);else v(i,function(e){k(i,e,n)});return n.call(e,t,i)};u.parse=function(e,t){var n,r;return _=0,E=""+e,n=S(y()),"$"!=y()&&b(),_=E=null,t&&N.call(t)==h?U(((r={})[""]=n,r),"",t):n}}}return u.runInContext=x,u}if(!t||t.global!==t&&t.window!==t&&t.self!==t||(G=t),e)x(G,e);else{var n=G.JSON,r=G.JSON3,i=!1,o=x(G,G.JSON3={noConflict:function(){return i||(i=!0,G.JSON=n,G.JSON3=r,n=r=null),o}});G.JSON={parse:o.parse,stringify:o.stringify}}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/json3/lib/json3.js","/node_modules/json3/lib")},{_process:114,buffer:104,timers:135}],113:[function(e,c,t){(function(a,e,t,n,r,i,o,s,u,l,f){"use strict";!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?c.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return a.nextTick(e);case 2:return a.nextTick(function(){e.call(null,t)});case 3:return a.nextTick(function(){e.call(null,t,n)});case 4:return a.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(s-1),o=0;o<i.length;)i[o++]=arguments[o];return a.nextTick(function(){e.apply(null,i)})}}}:c.exports=a}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/process-nextick-args/index.js","/node_modules/process-nextick-args")},{_process:114,buffer:104,timers:135}],114:[function(e,O,t){(function(e,t,n,r,i,o,s,a,u,l,f){var c,d;e=O.exports={};function p(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}function m(e){if(c===setTimeout)return setTimeout(e,0);if((c===p||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}!function(){try{c="function"==typeof setTimeout?setTimeout:p}catch(e){c=p}try{d="function"==typeof clearTimeout?clearTimeout:h}catch(e){d=h}}();var _,E=[],g=!1,T=-1;function b(){g&&_&&(g=!1,_.length?E=_.concat(E):T=-1,E.length&&y())}function y(){if(!g){var e=m(b);g=!0;for(var t=E.length;t;){for(_=E,E=[];++T<t;)_&&_[T].run();T=-1,t=E.length}_=null,g=!1,function(e){if(d===clearTimeout)return clearTimeout(e);if((d===h||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}(e)}}function S(e,t){this.fun=e,this.array=t}function w(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];E.push(new S(e,t)),1!==E.length||g||m(y)},S.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=w,e.addListener=w,e.once=w,e.off=w,e.removeListener=w,e.removeAllListeners=w,e.emit=w,e.prependListener=w,e.prependOnceListener=w,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/process/browser.js","/node_modules/process")},{_process:114,buffer:104,timers:135}],115:[function(e,L,D){(function(e,C,t,n,r,i,o,s,a,u,l){!function(e){var t="object"==typeof D&&D&&!D.nodeType&&D,n="object"==typeof L&&L&&!L.nodeType&&L,r="object"==typeof C&&C;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var i,o,E=2147483647,g=36,T=1,b=26,s=38,a=700,y=72,S=128,w="-",u=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-T,O=Math.floor,v=String.fromCharCode;function I(e){throw new RangeError(c[e])}function p(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function h(e,t){var n=e.split("@"),r="";return 1<n.length&&(r=n[0]+"@",e=n[1]),r+p((e=e.replace(f,".")).split("."),t).join(".")}function N(e){for(var t,n,r=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function A(e){return p(e,function(e){var t="";return 65535<e&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function F(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var r=0;for(e=n?O(e/a):e>>1,e+=O(e/t);d*b>>1<e;r+=g)e=O(e/d);return O(r+(d+1)*e/(e+s))}function m(e){var t,n,r,i,o,s,a,u,l,f,c,d=[],p=e.length,h=0,m=S,_=y;for((n=e.lastIndexOf(w))<0&&(n=0),r=0;r<n;++r)128<=e.charCodeAt(r)&&I("not-basic"),d.push(e.charCodeAt(r));for(i=0<n?n+1:0;i<p;){for(o=h,s=1,a=g;p<=i&&I("invalid-input"),c=e.charCodeAt(i++),(g<=(u=c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:g)||u>O((E-h)/s))&&I("overflow"),h+=u*s,!(u<(l=a<=_?T:_+b<=a?b:a-_));a+=g)s>O(E/(f=g-l))&&I("overflow"),s*=f;_=M(h-o,t=d.length+1,0==o),O(h/t)>E-m&&I("overflow"),m+=O(h/t),h%=t,d.splice(h++,0,m)}return A(d)}function _(e){var t,n,r,i,o,s,a,u,l,f,c,d,p,h,m,_=[];for(d=(e=N(e)).length,t=S,o=y,s=n=0;s<d;++s)(c=e[s])<128&&_.push(v(c));for(r=i=_.length,i&&_.push(w);r<d;){for(a=E,s=0;s<d;++s)t<=(c=e[s])&&c<a&&(a=c);for(a-t>O((E-n)/(p=r+1))&&I("overflow"),n+=(a-t)*p,t=a,s=0;s<d;++s)if((c=e[s])<t&&++n>E&&I("overflow"),c==t){for(u=n,l=g;!(u<(f=l<=o?T:o+b<=l?b:l-o));l+=g)m=u-f,h=g-f,_.push(v(F(f+m%h,0))),u=O(m/h);_.push(v(F(u,0))),o=M(n,p,r==i),n=0,++r}++n,++t}return _.join("")}if(i={version:"1.4.1",ucs2:{decode:N,encode:A},decode:m,encode:_,toASCII:function(e){return h(e,function(e){return l.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return h(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},t&&n)if(L.exports==t)n.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/punycode/punycode.js","/node_modules/punycode")},{_process:114,buffer:104,timers:135}],116:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){
84
+ var c=Object.create||function(e){var t=function(){};return t.prototype=e,new t},d=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},p=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function h(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=c(null),this._eventsCount=0),this._maxListeners=this._maxListeners||undefined}((I.exports=h).EventEmitter=h).prototype._events=undefined,h.prototype._maxListeners=undefined;var m,_=10;try{var E={};Object.defineProperty&&Object.defineProperty(E,"x",{value:0}),m=0===E.x}catch(v){m=!1}function g(e){return e._maxListeners===undefined?h.defaultMaxListeners:e._maxListeners}function T(e,t,n,r){var i,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]):(o=e._events=c(null),e._eventsCount=0),s){if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(i=g(e))&&0<i&&s.length>i){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",a.name,a.message)}}else s=o[t]=n,++e._eventsCount;return e}function b(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:undefined,target:e,type:t,listener:n},i=p.call(b,r);return i.listener=n,r.wrapFn=i}function S(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):O(i,i.length):[]}function w(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function O(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}m?Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return _},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');_=e}}):h.defaultMaxListeners=_,h.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},h.prototype.getMaxListeners=function(){return g(this)},h.prototype.emit=function(e){var t,n,r,i,o,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(a){if(1<arguments.length&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(n=s[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=O(e,r),o=0;o<r;++o)i[o].call(n)}(n,l,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=O(e,i),s=0;s<i;++s)o[s].call(n,r)}(n,l,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=O(e,o),a=0;a<o;++a)s[a].call(n,r,i)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=O(e,s),u=0;u<s;++u)a[u].call(n,r,i,o)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=O(e,i),s=0;s<i;++s)o[s].apply(n,r)}(n,l,this,i)}return!0},h.prototype.on=h.prototype.addListener=function(e,t){return T(this,e,t,!1)},h.prototype.prependListener=function(e,t){return T(this,e,t,!0)},h.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},h.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},h.prototype.removeListener=function(e,t){var n,r,i,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=c(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;0<=o;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,s||t)}return this},h.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=c(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=c(null):delete n[e]),this;if(0===arguments.length){var i,o=d(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=c(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},h.prototype.listeners=function(e){return S(this,e,!0)},h.prototype.rawListeners=function(e){return S(this,e,!1)},h.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):w.call(e,t)},h.prototype.listenerCount=w,h.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/events/events.js","/node_modules/events")},{_process:114,buffer:104,timers:135}],108:[function(_,E,e){(function(e,t,n,r,i,o,s,a,u,l,f){var c=_("http"),d=_("url"),p=E.exports;for(var h in c)c.hasOwnProperty(h)&&(p[h]=c[h]);function m(e){if("string"==typeof e&&(e=d.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}p.request=function(e,t){return e=m(e),c.request.call(this,e,t)},p.get=function(e,t){return e=m(e),c.get.call(this,e,t)}}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/node_modules/https-browserify/index.js","/node_modules/https-browserify")},{_process:114,buffer:104,http:120,timers:135,url:137}],109:[function(e,t,c){(function(e,t,n,r,i,o,s,a,u,l,f){c.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,f=-7,c=n?i-1:0,d=n?-1:1,p=e[t+c];for(c+=d,o=p&(1<<-f)-1,p>>=-f,f+=a;0<f;o=256*o+e[t+c],c+=d,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=r;0<f;s=256*s+e[t+c],c+=d,f-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:(p?-1:1)*Infinity;s+=Math.pow(2,r),o-=l}return(p?-1:1)*s*Math.pow(2,o-r)},c.write=function(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),2<=(t+=1<=s+c?d/u:d*Math.pow(2,1-c))*u&&(s++,u/=2),f<=s+c?(a=0,s=f):1<=s+c?(a=(t*u-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));8<=i;e[n+p]=255&a,p+=h,a/=256,i-=8);for(s=s<<i|a,l+=i;0<l;e[n+p]=255&s,p+=h,s/=256,l-=8);e[n+p-h]|=128*m}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/ieee754/index.js","/node_modules/ieee754")},{_process:114,buffer:104,timers:135}],110:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){"function"==typeof Object.create?c.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:c.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/inherits/inherits_browser.js","/node_modules/inherits")},{_process:114,buffer:104,timers:135}],111:[function(e,p,h){(function(e,t,n,r,i,o,s,a,u,l,f){var c,d;c=this,d=function(){"use strict";function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(i){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function t(e){var r="function"==typeof Map?new Map:void 0;return(t=function(e){function t(){return s(e,arguments,a(this).constructor)}if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f(t,e)})(e)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var e=function(e){var t,n,r,s=Math.abs,u=Math.max,w=Math.imul,T=Math.clz32;function v(e,t){var n;if(i(this,v),v.__kMaxLength<e)throw new RangeError("Maximum BigInt size exceeded");return(n=c(this,a(v).call(this,e))).sign=t,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(v,e),t=v,r=[{key:"BigInt",value:function(e){var t=Math.floor,n=Number.isFinite;if("number"==typeof e){if(0===e)return v.__zero();if((0|e)===e)return e<0?v.__oneDigit(-e,!0):v.__oneDigit(e,!1);if(!n(e)||t(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return v.__fromDouble(e)}if("string"==typeof e){var r=v.__fromString(e);if(null===r)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return r}if("boolean"==typeof e)return!0===e?v.__oneDigit(1,!1):v.__zero();if("object"===l(e)){if(e.constructor===v)return e;var i=v.__toPrimitive(e);return v.BigInt(i)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),i=T(r),o=32*t-i;if(1024<o)return e.sign?-Infinity:1/0;var s=o-1,a=r,u=t-1,l=i+1,f=32===l?0:a<<l;f>>>=12;var c=l-12,d=12<=l?0:a<<20+l,p=20+l;0<c&&0<u&&(u--,f|=(a=e.__digit(u))>>>32-c,d=a<<c,p=c),0<p&&0<u&&(u--,d|=(a=e.__digit(u))>>>32-p,p-=32);var h=v.__decideRounding(e,p,u,a);if((1===h||0===h&&1==(1&d))&&(0===(d=d+1>>>0)&&(0!=++f>>>20&&(f=0,1023<++s))))return e.sign?-Infinity:1/0;var m=e.sign?-2147483648:0;return s=s+1023<<20,v.__kBitConversionInts[1]=m|s|f,v.__kBitConversionInts[0]=d,v.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?v.__absoluteSubOne(e).__trim():v.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return v.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?v.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var n=t.__unsignedDigit(0);if(1===n)return e;if(v.__kMaxLengthBits<=n)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var r=1+(n>>>5),i=new v(r,e.sign&&0!=(1&n));i.__initializeDigits();var o=1<<(31&n);return i.__setDigit(r-1,o),i}var s=null,a=e;for(0!=(1&n)&&(s=e),n>>=1;0!==n;n>>=1)a=v.multiply(a,a),0!=(1&n)&&(s=null===s?a:v.multiply(s,a));return s}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new v(n,e.sign!==t.sign);r.__initializeDigits();for(var i=0;i<e.length;i++)v.__multiplyAccumulate(t,e.__digit(i),r,i);return r.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(v.__absoluteCompare(e,t)<0)return v.__zero();var n,r=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&i<=65535){if(1===i)return r===e.sign?e:v.unaryMinus(e);n=v.__absoluteDivSmall(e,i,null)}else n=v.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(v.__absoluteCompare(e,t)<0)return e;var n=t.__unsignedDigit(0);if(1===t.length&&n<=65535){if(1===n)return v.__zero();var r=v.__absoluteModSmall(e,n);return 0===r?v.__zero():v.__oneDigit(r,e.sign)}var i=v.__absoluteDivLarge(e,t,!1,!0);return i.sign=e.sign,i.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?v.__absoluteAdd(e,t,n):0<=v.__absoluteCompare(e,t)?v.__absoluteSub(e,t,n):v.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=v.__absoluteCompare(e,t)?v.__absoluteSub(e,t,n):v.__absoluteSub(t,e,!n):v.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?v.__rightShiftByAbsolute(e,t):v.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?v.__leftShiftByAbsolute(e,t):v.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return v.__compareToBigInt(e,t)<0}},{key:"lessThanOrEqual",value:function(e,t){return v.__compareToBigInt(e,t)<=0}},{key:"greaterThan",value:function(e,t){return 0<v.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=v.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:"notEqual",value:function(e,t){return!v.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return v.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var n=u(e.length,t.length)+1,r=v.__absoluteSubOne(e,n),i=v.__absoluteSubOne(t);return r=v.__absoluteOr(r,i,r),v.__absoluteAddOne(r,!0,r).__trim()}if(e.sign){var o=[t,e];e=o[0],t=o[1]}return v.__absoluteAndNot(e,v.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return v.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var n=u(e.length,t.length),r=v.__absoluteSubOne(e,n),i=v.__absoluteSubOne(t);return v.__absoluteXor(r,i,r).__trim()}var o=u(e.length,t.length)+1;if(e.sign){var s=[t,e];e=s[0],t=s[1]}var a=v.__absoluteSubOne(t,o);return a=v.__absoluteXor(a,e,a),v.__absoluteAddOne(a,!0,a).__trim()}},{key:"bitwiseOr",value:function(e,t){var n=u(e.length,t.length);if(!e.sign&&!t.sign)return v.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var r=v.__absoluteSubOne(e,n),i=v.__absoluteSubOne(t);return r=v.__absoluteAnd(r,i,r),v.__absoluteAddOne(r,!0,r).__trim()}if(e.sign){var o=[t,e];e=o[0],t=o[1]}var s=v.__absoluteSubOne(t,n);return s=v.__absoluteAndNot(s,e,s),v.__absoluteAddOne(s,!0,s).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0===e)return v.__zero();if(v.__kMaxLengthBits<=e)return t;var n=e+31>>>5;if(t.length<n)return t;var r=t.__unsignedDigit(n-1),i=1<<(31&e-1);if(t.length===n&&r<i)return t;if((r&i)!==i)return v.__truncateToNBits(e,t);if(!t.sign)return v.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(r&i-1)){for(var o=n-2;0<=o;o--)if(0!==t.__digit(o))return v.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&r===i?t:v.__truncateToNBits(e,t)}return v.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0===e)return v.__zero();if(t.sign){if(v.__kMaxLengthBits<e)throw new RangeError("BigInt too big");return v.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(v.__kMaxLengthBits<=e)return t;var n=e+31>>>5;if(t.length<n)return t;var r=31&e;if(t.length==n){if(0==r)return t;if(0==t.__digit(n-1)>>>r)return t}return v.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=v.__toPrimitive(e),t=v.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=v.__toNumeric(e),t=v.__toNumeric(t),v.__isBigInt(e)&&v.__isBigInt(t))return v.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return v.__compare(e,t,0)}},{key:"LE",value:function(e,t){return v.__compare(e,t,1)}},{key:"GT",value:function(e,t){return v.__compare(e,t,2)}},{key:"GE",value:function(e,t){return v.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(v.__isBigInt(e))return v.__isBigInt(t)?v.equal(e,t):v.EQ(t,e);if("number"==typeof e){if(v.__isBigInt(t))return v.__equalToNumber(t,e);if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else if("string"==typeof e){if(v.__isBigInt(t))return null!==(e=v.__fromString(e))&&v.equal(e,t);if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else if("boolean"==typeof e){if(v.__isBigInt(t))return v.__equalToNumber(t,+e);if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else if("symbol"===l(e)){if(v.__isBigInt(t))return!1;if("object"!==l(t))return e==t;t=v.__toPrimitive(t)}else{if("object"!==l(e))return e==t;if("object"===l(t)&&t.constructor!==v)return e==t;e=v.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!v.EQ(e,t)}},{key:"__zero",value:function(){return new v(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new v(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,r){if(0<t)return-1;var i;if(t<0)i=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),i=31}var o=1<<i;if(0==(r&o))return-1;if(0!=(r&(o-=1)))return 1;for(;0<n;)if(n--,0!==e.__digit(n))return 1;return 0}},{key:"__fromDouble",value:function(e){v.__kBitConversionDouble[0]=e;var t,n=(2047&v.__kBitConversionInts[1]>>>20)-1023,r=1+(n>>>5),i=new v(r,e<0),o=1048575&v.__kBitConversionInts[1]|1048576,s=v.__kBitConversionInts[0],a=31&n,u=0;if(a<20){var l=20-a;u=l+32,t=o>>>l,o=o<<32-l|s>>>l,s<<=32-l}else if(20===a)u=32,t=o,o=s;else{var f=a-20;t=o<<f|s>>>(u=32-f),o=s<<f}i.__setDigit(r-1,t);for(var c=r-2;0<=c;c--)0<u?(u-=32,t=o,o=s):t=0,i.__setDigit(c,t);return i.__trim()}},{key:"__isWhitespace",value:function(e){return!!(e<=13&&9<=e)||(e<=159?32==e:e<=131071?160==e||5760==e:e<=196607?(e&=131071)<=10||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0,r=e.length,i=0;if(i===r)return v.__zero();for(var o=e.charCodeAt(i);v.__isWhitespace(o);){if(++i===r)return v.__zero();o=e.charCodeAt(i)}if(43===o){if(++i===r)return null;o=e.charCodeAt(i),n=1}else if(45===o){if(++i===r)return null;o=e.charCodeAt(i),n=-1}if(0===t){if(t=10,48===o){if(++i===r)return v.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(t=16,++i===r)return null;o=e.charCodeAt(i)}else if(79===o||111===o){if(t=8,++i===r)return null;o=e.charCodeAt(i)}else if(66===o||98===o){if(t=2,++i===r)return null;o=e.charCodeAt(i)}}}else if(16===t&&48===o){if(++i===r)return v.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(++i===r)return null;o=e.charCodeAt(i)}}for(;48===o;){if(++i===r)return v.__zero();o=e.charCodeAt(i)}var s=r-i,a=v.__kMaxBitsPerChar[t],u=v.__kBitsPerCharTableMultiplier-1;if(1073741824/a<s)return null;var l=new v((a*s+u>>>v.__kBitsPerCharTableShift)+31>>>5,!1),f=t<10?t:10,c=10<t?t-10:0;if(0==(t&t-1)){a>>=v.__kBitsPerCharTableShift;var d=[],p=[],h=!1;do{for(var m,_=0,E=0;;){if(m=void 0,o-48>>>0<f)m=o-48;else{if(!((32|o)-97>>>0<c)){h=!0;break}m=(32|o)-87}if(E+=a,_=_<<a|m,++i===r){h=!0;break}if(o=e.charCodeAt(i),32<E+a)break}d.push(_),p.push(E)}while(!h);v.__fillFromParts(l,d,p)}else{l.__initializeDigits();var g=!1,T=0;do{for(var b,y=0,S=1;;){if(b=void 0,o-48>>>0<f)b=o-48;else{if(!((32|o)-97>>>0<c)){g=!0;break}b=(32|o)-87}var w=S*t;if(4294967295<w)break;if(S=w,y=y*t+b,T++,++i===r){g=!0;break}o=e.charCodeAt(i)}var O=a*T+(u=32*v.__kBitsPerCharTableMultiplier-1)>>>v.__kBitsPerCharTableShift+5;l.__inplaceMultiplyAdd(S,y,O)}while(!g)}for(;i!==r;){if(!v.__isWhitespace(o))return null;o=e.charCodeAt(i++)}return 0!==n&&10!==t?null:(l.sign=-1===n,l.__trim())}},{key:"__fillFromParts",value:function(e,t,n){for(var r=0,i=0,o=0,s=t.length-1;0<=s;s--){var a=t[s],u=n[s];i|=a<<o,32===(o+=u)?(e.__setDigit(r++,i),i=o=0):32<o&&(e.__setDigit(r++,i),i=a>>>u-(o-=32))}if(0!==i){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,i)}for(;r<e.length;r++)e.__setDigit(r,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var n=e.length,r=t-1,i=r=(15&(r=(51&(r=(85&r>>>1)+(85&r))>>>2)+(51&r))>>>4)+(15&r),o=t-1,s=e.__digit(n-1),a=0|(32*n-T(s)+i-1)/i;if(e.sign&&a++,268435456<a)throw new Error("string too long");for(var u=Array(a),l=a-1,f=0,c=0,d=0;d<n-1;d++){var p=e.__digit(d),h=(f|p<<c)&o;u[l--]=v.__kConversionChars[h];var m=i-c;for(f=p>>>m,c=32-m;i<=c;)u[l--]=v.__kConversionChars[f&o],f>>>=i,c-=i}var _=(f|s<<c)&o;for(u[l--]=v.__kConversionChars[_],f=s>>>i-c;0!==f;)u[l--]=v.__kConversionChars[f&o],f>>>=i;if(e.sign&&(u[l--]="-"),-1!==l)throw new Error("implementation bug");return u.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var r=e.length;if(0===r)return"";if(1===r){var i=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(i="-"+i),i}var o,s,a=32*r-T(e.__digit(r-1)),u=v.__kMaxBitsPerChar[t]-1,l=a*v.__kBitsPerCharTableMultiplier,f=(l=0|(l+=u-1)/u)+1>>1,c=v.exponentiate(v.__oneDigit(t,!1),v.__oneDigit(f,!1)),d=c.__unsignedDigit(0);if(1===c.length&&d<=65535){(o=new v(e.length,!1)).__initializeDigits();for(var p,h=0,m=2*e.length-1;0<=m;m--)p=h<<16|e.__halfDigit(m),o.__setHalfDigit(m,0|p/d),h=0|p%d;s=h.toString(t)}else{var _=v.__absoluteDivLarge(e,c,!0,!0);o=_.quotient;var E=_.remainder.__trim();s=v.__toStringGeneric(E,t,!0)}o.__trim();for(var g=v.__toStringGeneric(o,t,!0);s.length<f;)s="0"+s;return!1===n&&e.sign&&(g="-"+g),g+s}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var n=e.sign;if(n!==t.sign)return v.__unequalSign(n);var r=v.__absoluteCompare(e,t);return 0<r?v.__absoluteGreater(n):r<0?v.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,t){if(!0|t){var n=e.sign,r=t<0;if(n!==r)return v.__unequalSign(n);if(0===e.length){if(r)throw new Error("implementation bug");return 0===t?0:-1}if(1<e.length)return v.__absoluteGreater(n);var i=s(t),o=e.__unsignedDigit(0);return i<o?v.__absoluteGreater(n):o<i?v.__absoluteLess(n):0}return v.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function(e,t){if(t!=t)return t;if(t===1/0)return-1;if(t===-Infinity)return 1;var n=e.sign;if(n!==t<0)return v.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;v.__kBitConversionDouble[0]=t;var r=2047&v.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");var i=r-1023;if(i<0)return v.__absoluteGreater(n);var o=e.length,s=e.__digit(o-1),a=T(s),u=32*o-a,l=i+1;if(u<l)return v.__absoluteLess(n);if(l<u)return v.__absoluteGreater(n);var f=1048576|1048575&v.__kBitConversionInts[1],c=v.__kBitConversionInts[0],d=31-a;if(d!==(u-1)%31)throw new Error("implementation bug");var p,h=0;if(d<20){var m=20-d;h=m+32,p=f>>>m,f=f<<32-m|c>>>m,c<<=32-m}else if(20===d)h=32,p=f,f=c;else{var _=d-20;p=f<<_|c>>>(h=32-_),f=c<<_}if((p>>>=0)<(s>>>=0))return v.__absoluteGreater(n);if(s<p)return v.__absoluteLess(n);for(var E=o-2;0<=E;E--){0<h?(h-=32,p=f>>>0,f=c,c=0):p=0;var g=e.__unsignedDigit(E);if(p<g)return v.__absoluteGreater(n);if(g<p)return v.__absoluteLess(n)}if(0!==f||0!==c){if(0===h)throw new Error("implementation bug");return v.__absoluteLess(n)}return 0}},{key:"__equalToNumber",value:function(e,t){return t|0===t?0===t?0===e.length:1===e.length&&e.sign===t<0&&e.__unsignedDigit(0)===s(t):0===v.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return e<0;case 1:return e<=0;case 2:return 0<e;case 3:return 0<=e}throw new Error("unreachable")}},{key:"__compare",value:function(e,t,n){if(e=v.__toPrimitive(e),t=v.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return t<e;case 3:return t<=e}if(v.__isBigInt(e)&&"string"==typeof t)return null!==(t=v.__fromString(t))&&v.__comparisonResultToBool(v.__compareToBigInt(e,t),n);if("string"==typeof e&&v.__isBigInt(t))return null!==(e=v.__fromString(e))&&v.__comparisonResultToBool(v.__compareToBigInt(e,t),n);if(e=v.__toNumeric(e),t=v.__toNumeric(t),v.__isBigInt(e)){if(v.__isBigInt(t))return v.__comparisonResultToBool(v.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return v.__comparisonResultToBool(v.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(v.__isBigInt(t))return v.__comparisonResultToBool(v.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?e<t:1===n?e<=t:2===n?t<e:3===n?t<=e:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length<t.length)return v.__absoluteAdd(t,e,n);if(0===e.length)return e;if(0===t.length)return e.sign===n?e:v.unaryMinus(e);var r=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&r++;for(var i=new v(r,n),o=0,s=0;s<t.length;s++){var a=t.__digit(s),u=e.__digit(s),l=(65535&u)+(65535&a)+o,f=(u>>>16)+(a>>>16)+(l>>>16);o=f>>>16,i.__setDigit(s,65535&l|f<<16)}for(;s<e.length;s++){var c=e.__digit(s),d=(65535&c)+o,p=(c>>>16)+(d>>>16);o=p>>>16,i.__setDigit(s,65535&d|p<<16)}return s<i.length&&i.__setDigit(s,o),i.__trim()}},{key:"__absoluteSub",value:function(e,t,n){if(0===e.length)return e;if(0===t.length)return e.sign===n?e:v.unaryMinus(e);for(var r=new v(e.length,n),i=0,o=0;o<t.length;o++){var s=e.__digit(o),a=t.__digit(o),u=(65535&s)-(65535&a)-i,l=(s>>>16)-(a>>>16)-(i=1&u>>>16);i=1&l>>>16,r.__setDigit(o,65535&u|l<<16)}for(;o<e.length;o++){var f=e.__digit(o),c=(65535&f)-i,d=(f>>>16)-(i=1&c>>>16);i=1&d>>>16,r.__setDigit(o,65535&c|d<<16)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length;null===n?n=new v(r,t):n.sign=t;for(var i=!0,o=0;o<r;o++){var s=e.__digit(o),a=-1===s;i&&(s=0|s+1),i=a,n.__setDigit(o,s)}return i&&n.__setDigitGrow(r,1),n}},{key:"__absoluteSubOne",value:function(e,t){for(var n=e.length,r=new v(t=t||n,!1),i=!0,o=0;o<n;o++){var s=e.__digit(o),a=0===s;i&&(s=0|s-1),i=a,r.__setDigit(o,s)}for(var u=n;u<t;u++)r.__setDigit(u,0);return r}},{key:"__absoluteAnd",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){var s=e,a=o=r;e=t,r=i,t=s,i=a}var u=o;null===n?n=new v(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)&t.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteAndNot",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;r<i&&(o=r);var s=r;null===n?n=new v(s,!1):s=n.length;for(var a=0;a<o;a++)n.__setDigit(a,e.__digit(a)&~t.__digit(a));for(;a<r;a++)n.__setDigit(a,e.__digit(a));for(;a<s;a++)n.__setDigit(a,0);return n}},{key:"__absoluteOr",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){var s=e,a=o=r;e=t,r=i,t=s,i=a}var u=r;null===n?n=new v(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)|t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteXor",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){var s=e,a=o=r;e=t,r=i,t=s,i=a}var u=r;null===n?n=new v(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)^t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteCompare",value:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var r=e.length-1;0<=r&&e.__digit(r)===t.__digit(r);)r--;return r<0?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,r){if(0!==t){for(var i=65535&t,o=t>>>16,s=0,a=0,u=0,l=0;l<e.length;l++,r++){var f=n.__digit(r),c=65535&f,d=f>>>16,p=e.__digit(l),h=65535&p,m=p>>>16,_=w(h,i),E=w(h,o),g=w(m,i),T=w(m,o);s=(a=(E>>>16)+(g>>>16)+(65535&T)+(s=(d+=u+s+((c+=a+(65535&_))>>>16)+(_>>>16)+(65535&E)+(65535&g))>>>16))>>>16,a&=65535,u=T>>>16,f=65535&c|d<<16,n.__setDigit(r,f)}for(;0!==s||0!==a||0!==u;r++){var b=n.__digit(r),y=(65535&b)+a,S=(b>>>16)+(y>>>16)+u+s;u=a=0,s=S>>>16,b=65535&y|S<<16,n.__setDigit(r,b)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,r,i){for(var o=n,s=0,a=0;a<r;a++){var u=e.__digit(a),l=w(65535&u,t),f=(65535&l)+s+o;o=f>>>16;var c=w(u>>>16,t),d=(65535&c)+(l>>>16)+o;o=d>>>16,s=c>>>16,i.__setDigit(a,d<<16|65535&f)}if(i.length>r)for(i.__setDigit(r++,o+s);r<i.length;)i.__setDigit(r++,0);else if(0!==o+s)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t,n){null===n&&(n=new v(e.length,!1));for(var r=0,i=2*e.length-1;0<=i;i-=2){var o=(r<<16|e.__halfDigit(i))>>>0,s=0|o/t,a=0|(o=((r=0|o%t)<<16|e.__halfDigit(i-1))>>>0)/t;r=0|o%t,n.__setDigit(i>>>1,s<<16|a)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,r=2*e.length-1;0<=r;r--)n=0|((n<<16|e.__halfDigit(r))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,r){var i=t.__halfDigitLength(),o=t.length,s=e.__halfDigitLength()-i,a=null;n&&(a=new v(s+2>>>1,!1)).__initializeDigits();var u=new v(i+2>>>1,!1);u.__initializeDigits();var l=v.__clz16(t.__halfDigit(i-1));0<l&&(t=v.__specialLeftShift(t,l,0));for(var f=v.__specialLeftShift(e,l,1),c=t.__halfDigit(i-1),d=0,p=s;0<=p;p--){var h=65535,m=f.__halfDigit(p+i);if(m!==c){var _=(m<<16|f.__halfDigit(p+i-1))>>>0;h=0|_/c;for(var E=0|_%c,g=t.__halfDigit(i-2),T=f.__halfDigit(p+i-2);w(h,g)>>>0>(E<<16|T)>>>0&&(h--,!(65535<(E+=c))););}v.__internalMultiplyAdd(t,h,0,o,u);var b=f.__inplaceSub(u,p,i+1);0!==b&&(b=f.__inplaceAdd(t,p,i),f.__setHalfDigit(p+i,f.__halfDigit(p+i)+b),h--),n&&(1&p?d=h<<16:a.__setDigit(p>>>1,d|h))}return r?(f.__inplaceRightShift(l),n?{quotient:a,remainder:f}:f):n?a:void 0}},{key:"__clz16",value:function(e){return T(e)-16}},{key:"__specialLeftShift",value:function(e,t,n){var r=e.length,i=new v(r+n,!1);if(0===t){for(var o=0;o<r;o++)i.__setDigit(o,e.__digit(o));return 0<n&&i.__setDigit(r,0),i}for(var s,a=0,u=0;u<r;u++)s=e.__digit(u),i.__setDigit(u,s<<t|a),a=s>>>32-t;return 0<n&&i.__setDigit(r,a),i}},{key:"__leftShiftByAbsolute",value:function(e,t){var n=v.__toShiftAmount(t);if(n<0)throw new RangeError("BigInt too big");var r=n>>>5,i=31&n,o=e.length,s=0!==i&&0!=e.__digit(o-1)>>>32-i,a=o+r+(s?1:0),u=new v(a,e.sign);if(0===i){for(var l=0;l<r;l++)u.__setDigit(l,0);for(;l<a;l++)u.__setDigit(l,e.__digit(l-r))}else{for(var f=0,c=0;c<r;c++)u.__setDigit(c,0);for(var d,p=0;p<o;p++)d=e.__digit(p),u.__setDigit(p+r,d<<i|f),f=d>>>32-i;if(s)u.__setDigit(o+r,f);else if(0!==f)throw new Error("implementation bug")}return u.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,r=e.sign,i=v.__toShiftAmount(t);if(i<0)return v.__rightShiftByMaximum(r);var o=i>>>5,s=31&i,a=n-o;if(a<=0)return v.__rightShiftByMaximum(r);var u=!1;if(r)if(0!=(e.__digit(o)&(1<<s)-1))u=!0;else for(var l=0;l<o;l++)if(0!==e.__digit(l)){u=!0;break}u&&0===s&&(0==~e.__digit(n-1)&&a++);var f=new v(a,r);if(0===s)for(var c=o;c<n;c++)f.__setDigit(c-o,e.__digit(c));else{for(var d,p=e.__digit(o)>>>s,h=n-o-1,m=0;m<h;m++)d=e.__digit(m+o+1),f.__setDigit(m,d<<32-s|p),p=d>>>s;f.__setDigit(h,p)}return u&&(f=v.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?v.__oneDigit(1,!0):v.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return v.__kMaxLengthBits<t?-1:t}},{key:"__toPrimitive",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==l(e))return e;if(e.constructor===v)return e;var n=e[Symbol.toPrimitive];if(n){var r=n(t);if("object"!==l(r))return r;throw new TypeError("Cannot convert object to primitive value")}var i=e.valueOf;if(i){var o=i.call(e);if("object"!==l(o))return o}var s=e.toString;if(s){var a=s.call(e);if("object"!==l(a))return a}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return v.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"===l(e)&&e.constructor===v}},{key:"__truncateToNBits",value:function(e,t){for(var n=e+31>>>5,r=new v(n,t.sign),i=n-1,o=0;o<i;o++)r.__setDigit(o,t.__digit(o));var s=t.__digit(i);if(0!=(31&e)){var a=32-(31&e);s=s<<a>>>a}return r.__setDigit(i,s),r.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var r=Math.min,i=e+31>>>5,o=new v(i,n),s=0,a=i-1,u=0,l=r(a,t.length);s<l;s++){var f=t.__digit(s),c=0-(65535&f)-u,d=0-(f>>>16)-(u=1&c>>>16);u=1&d>>>16,o.__setDigit(s,65535&c|d<<16)}for(;s<a;s++)o.__setDigit(s,0|-u);var p,h=a<t.length?t.__digit(a):0,m=31&e;if(0===m){var _=0-(65535&h)-u;p=65535&_|0-(h>>>16)-(u=1&_>>>16)<<16}else{var E=32-m,g=1<<32-E,T=(65535&g)-(65535&(h=h<<E>>>E))-u;p=65535&T|(g>>>16)-(h>>>16)-(u=1&T>>>16)<<16,p&=g-1}return o.__setDigit(a,p),o.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}}],(n=[{key:"toDebugString",value:function(){var e=["BigInt["],t=!0,n=!1,r=void 0;try{for(var i,o,s=this[Symbol.iterator]();!(t=(i=s.next()).done);t=!0)o=i.value,e.push((o?(o>>>0).toString(16):o)+", ")}catch(e){n=!0,r=e}finally{try{t||null==s["return"]||s["return"]()}finally{if(n)throw r}}return e.push("]"),e.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(e<2||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?v.__toStringBasePowerOfTwo(this,e):v.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new v(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return T(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(e,t,n){n>this.length&&(n=this.length);for(var r=65535&e,i=e>>>16,o=0,s=65535&t,a=t>>>16,u=0;u<n;u++){var l=this.__digit(u),f=65535&l,c=l>>>16,d=w(f,r),p=w(f,i),h=w(c,r),m=w(c,i),_=s+(65535&d),E=a+o+(_>>>16)+(d>>>16)+(65535&p)+(65535&h);o=(s=(p>>>16)+(h>>>16)+(65535&m)+(E>>>16))>>>16,s&=65535,a=m>>>16,this.__setDigit(u,65535&_|E<<16)}if(0!==o||0!==s||0!==a)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var r,i=0,o=0;o<n;o++)i=(r=this.__halfDigit(t+o)+e.__halfDigit(o)+i)>>>16,this.__setHalfDigit(t+o,r);return i}},{key:"__inplaceSub",value:function(e,t,n){var r=0;if(1&t){t>>=1;for(var i=this.__digit(t),o=65535&i,s=0;s<n-1>>>1;s++){var a=e.__digit(s),u=(i>>>16)-(65535&a)-r;r=1&u>>>16,this.__setDigit(t+s,u<<16|65535&o),r=1&(o=(65535&(i=this.__digit(t+s+1)))-(a>>>16)-r)>>>16}var l=e.__digit(s),f=(i>>>16)-(65535&l)-r;if(r=1&f>>>16,this.__setDigit(t+s,f<<16|65535&o),t+s+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(r=1&(o=(65535&(i=this.__digit(t+s+1)))-(l>>>16)-r)>>>16,this.__setDigit(t+e.length,4294901760&i|65535&o))}else{t>>=1;for(var c=0;c<e.length-1;c++){var d=this.__digit(t+c),p=e.__digit(c),h=(65535&d)-(65535&p)-r,m=(d>>>16)-(p>>>16)-(r=1&h>>>16);r=1&m>>>16,this.__setDigit(t+c,m<<16|65535&h)}var _=this.__digit(t+c),E=e.__digit(c),g=(65535&_)-(65535&E)-r;r=1&g>>>16;var T=0;0==(1&n)&&(r=1&(T=(_>>>16)-(E>>>16)-r)>>>16),this.__setDigit(t+c,T<<16|65535&g)}return r}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,n=this.__digit(0)>>>e,r=this.length-1,i=0;i<r;i++)t=this.__digit(i+1),this.__setDigit(i,t<<32-e|n),n=t>>>e;this.__setDigit(r,n)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return this.__unsignedDigit(e-1)<=65535?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,r=this.__digit(n),i=1&e?65535&r|t<<16:4294901760&r|65535&t;this.__setDigit(n,i)}}])&&o(t.prototype,n),r&&o(t,r),v}(t(Array));return e.__kMaxLength=33554432,e.__kMaxLengthBits=e.__kMaxLength<<5,e.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],e.__kBitsPerCharTableShift=5,e.__kBitsPerCharTableMultiplier=1<<e.__kBitsPerCharTableShift,e.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e.__kBitConversionBuffer=new ArrayBuffer(8),e.__kBitConversionDouble=new Float64Array(e.__kBitConversionBuffer),e.__kBitConversionInts=new Int32Array(e.__kBitConversionBuffer),e},"object"==typeof h&&void 0!==p?p.exports=d():(c=c||self).JSBI=d()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/jsbi/dist/jsbi-umd.js","/node_modules/jsbi/dist")},{_process:114,buffer:104,timers:135}],112:[function(e,c,d){(function(e,s,t,n,r,i,o,a,u,l,f){(function(){var P={"function":!0,object:!0},e=P[typeof d]&&d&&!d.nodeType&&d,G=P[typeof window]&&window||this,t=e&&P[typeof c]&&c&&!c.nodeType&&"object"==typeof s&&s;function x(e,u){e||(e=G.Object()),u||(u=G.Object());var l=e.Number||G.Number,f=e.String||G.String,t=e.Object||G.Object,c=e.Date||G.Date,n=e.SyntaxError||G.SyntaxError,w=e.TypeError||G.TypeError,r=e.Math||G.Math,i=e.JSON||G.JSON;"object"==typeof i&&i&&(u.stringify=i.stringify,u.parse=i.parse);var O,v,I,o=t.prototype,A=o.toString,d=new c(-0xc782b5b800cec);try{d=-109252==d.getUTCFullYear()&&0===d.getUTCMonth()&&1===d.getUTCDate()&&10==d.getUTCHours()&&37==d.getUTCMinutes()&&6==d.getUTCSeconds()&&708==d.getUTCMilliseconds()}catch(H){}function p(e){if(p[e]!==I)return p[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=p("json-stringify")&&p("json-parse");else{var n,r='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var i=u.stringify,o="function"==typeof i&&d;if(o){(n=function(){return 1}).toJSON=n;try{o="0"===i(0)&&"0"===i(new l)&&'""'==i(new f)&&i(A)===I&&i(I)===I&&i()===I&&"1"===i(n)&&"[1]"==i([n])&&"[null]"==i([I])&&"null"==i(null)&&"[null,null,null]"==i([I,A,null])&&i({a:[n,!0,!1,null,"\0\b\n\f\r\t"]})==r&&"1"===i(null,n)&&"[\n 1,\n 2\n]"==i([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==i(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new c(-1))}catch(H){o=!1}}t=o}if("json-parse"==e){var s=u.parse;if("function"==typeof s)try{if(0===s("0")&&!s(!1)){var a=5==(n=s(r)).a.length&&1===n.a[0];if(a){try{a=!s('"\t"')}catch(H){}if(a)try{a=1!==s("01")}catch(H){}if(a)try{a=1!==s("1.")}catch(H){}}}}catch(H){a=!1}t=a}}return p[e]=!!t}if(!p("json")){var h="[object Function]",N="[object Number]",F="[object String]",C="[object Array]",a=p("bug-string-char-index");if(!d)var M=r.floor,s=[0,31,59,90,120,151,181,212,243,273,304,334],L=function(e,t){return s[t]+365*(e-1970)+M((e-1969+(t=+(1<t)))/4)-M((e-1901+t)/100)+M((e-1601+t)/400)};if((O=o.hasOwnProperty)||(O=function(e){var n,t={};return(t.__proto__=null,t.__proto__={toString:1},t).toString!=A?O=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(n=t.constructor,O=function(e){var t=(this.constructor||n).prototype;return e in this&&!(e in t&&this[e]===t[e])}),t=null,O.call(this,e)}),v=function(e,t){var n,s,r,i=0;for(r in(n=function(){this.valueOf=0}).prototype.valueOf=0,s=new n)O.call(s,r)&&i++;return n=s=null,i?v=2==i?function(e,t){var n,r={},i=A.call(e)==h;for(n in e)i&&"prototype"==n||O.call(r,n)||!(r[n]=1)||!O.call(e,n)||t(n)}:function(e,t){var n,r,i=A.call(e)==h;for(n in e)i&&"prototype"==n||!O.call(e,n)||(r="constructor"===n)||t(n);(r||O.call(e,n="constructor"))&&t(n)}:(s=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(e,t){var n,r,i=A.call(e)==h,o=!i&&"function"!=typeof e.constructor&&P[typeof e.hasOwnProperty]&&e.hasOwnProperty||O;for(n in e)i&&"prototype"==n||!o.call(e,n)||t(n);for(r=s.length;n=s[--r];o.call(e,n)&&t(n));}),v(e,t)},!p("json-stringify")){var m={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},D=function(e,t){return("000000"+(t||0)).slice(-e)},R=function(e){for(var t='"',n=0,r=e.length,i=!a||10<r,o=i&&(a?e.split(""):e);n<r;n++){var s=e.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=m[s];break;default:if(s<32){t+="\\u00"+D(2,s.toString(16));break}t+=i?o[n]:e.charAt(n)}}return t+'"'},B=function(e,t,n,r,i,o,s){var a,u,l,f,c,d,p,h,m,_,E,g,T,b,y,S;try{a=t[e]}catch(H){}if("object"==typeof a&&a)if("[object Date]"!=(u=A.call(a))||O.call(a,"toJSON"))"function"==typeof a.toJSON&&(u!=N&&u!=F&&u!=C||O.call(a,"toJSON"))&&(a=a.toJSON(e));else if(-1/0<a&&a<1/0){if(L){for(c=M(a/864e5),l=M(c/365.2425)+1970-1;L(l+1,0)<=c;l++);for(f=M((c-L(l,0))/30.42);L(l,f+1)<=c;f++);c=1+c-L(l,f),p=M((d=(a%864e5+864e5)%864e5)/36e5)%24,h=M(d/6e4)%60,m=M(d/1e3)%60,_=d%1e3}else l=a.getUTCFullYear(),f=a.getUTCMonth(),c=a.getUTCDate(),p=a.getUTCHours(),h=a.getUTCMinutes(),m=a.getUTCSeconds(),_=a.getUTCMilliseconds();a=(l<=0||1e4<=l?(l<0?"-":"+")+D(6,l<0?-l:l):D(4,l))+"-"+D(2,f+1)+"-"+D(2,c)+"T"+D(2,p)+":"+D(2,h)+":"+D(2,m)+"."+D(3,_)+"Z"}else a=null;if(n&&(a=n.call(t,e,a)),null===a)return"null";if("[object Boolean]"==(u=A.call(a)))return""+a;if(u==N)return-1/0<a&&a<1/0?""+a:"null";if(u==F)return R(""+a);if("object"==typeof a){for(b=s.length;b--;)if(s[b]===a)throw w();if(s.push(a),E=[],y=o,o+=i,u==C){for(T=0,b=a.length;T<b;T++)g=B(T,a,n,r,i,o,s),E.push(g===I?"null":g);S=E.length?i?"[\n"+o+E.join(",\n"+o)+"\n"+y+"]":"["+E.join(",")+"]":"[]"}else v(r||a,function(e){var t=B(e,a,n,r,i,o,s);t!==I&&E.push(R(e)+":"+(i?" ":"")+t)}),S=E.length?i?"{\n"+o+E.join(",\n"+o)+"\n"+y+"}":"{"+E.join(",")+"}":"{}";return s.pop(),S}};u.stringify=function(e,t,n){var r,i,o,s;if(P[typeof t]&&t)if((s=A.call(t))==h)i=t;else if(s==C){o={};for(var a,u=0,l=t.length;u<l;a=t[u++],((s=A.call(a))==F||s==N)&&(o[a]=1));}if(n)if((s=A.call(n))==N){if(0<(n-=n%1))for(r="",10<n&&(n=10);r.length<n;r+=" ");}else s==F&&(r=n.length<=10?n:n.slice(0,10));return B("",((a={})[""]=e,a),i,o,r,"",[])}}if(!p("json-parse")){var _,E,g=f.fromCharCode,T={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},b=function(){throw _=E=null,n()},y=function(){for(var e,t,n,r,i,o=E,s=o.length;_<s;)switch(i=o.charCodeAt(_)){case 9:case 10:case 13:case 32:_++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=a?o.charAt(_):o[_],_++,e;case 34:for(e="@",_++;_<s;)if((i=o.charCodeAt(_))<32)b();else if(92==i)switch(i=o.charCodeAt(++_)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=T[i],_++;break;case 117:for(t=++_,n=_+4;_<n;_++)48<=(i=o.charCodeAt(_))&&i<=57||97<=i&&i<=102||65<=i&&i<=70||b();e+=g("0x"+o.slice(t,_));break;default:b()}else{if(34==i)break;for(i=o.charCodeAt(_),t=_;32<=i&&92!=i&&34!=i;)i=o.charCodeAt(++_);e+=o.slice(t,_)}if(34==o.charCodeAt(_))return _++,e;b();default:if(t=_,45==i&&(r=!0,i=o.charCodeAt(++_)),48<=i&&i<=57){for(48==i&&(48<=(i=o.charCodeAt(_+1))&&i<=57)&&b(),r=!1;_<s&&(48<=(i=o.charCodeAt(_))&&i<=57);_++);if(46==o.charCodeAt(_)){for(n=++_;n<s&&(48<=(i=o.charCodeAt(n))&&i<=57);n++);n==_&&b(),_=n}if(101==(i=o.charCodeAt(_))||69==i){for(43!=(i=o.charCodeAt(++_))&&45!=i||_++,n=_;n<s&&(48<=(i=o.charCodeAt(n))&&i<=57);n++);n==_&&b(),_=n}return+o.slice(t,_)}if(r&&b(),"true"==o.slice(_,_+4))return _+=4,!0;if("false"==o.slice(_,_+5))return _+=5,!1;if("null"==o.slice(_,_+4))return _+=4,null;b()}return"$"},S=function(e){var t,n;if("$"==e&&b(),"string"==typeof e){if("@"==(a?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=y());n||(n=!0))n&&(","==e?"]"==(e=y())&&b():b()),","==e&&b(),t.push(S(e));return t}if("{"==e){for(t={};"}"!=(e=y());n||(n=!0))n&&(","==e?"}"==(e=y())&&b():b()),","!=e&&"string"==typeof e&&"@"==(a?e.charAt(0):e[0])&&":"==y()||b(),t[e.slice(1)]=S(y());return t}b()}return e},k=function(e,t,n){var r=U(e,t,n);r===I?delete e[t]:e[t]=r},U=function(e,t,n){var r,i=e[t];if("object"==typeof i&&i)if(A.call(i)==C)for(r=i.length;r--;)k(i,r,n);else v(i,function(e){k(i,e,n)});return n.call(e,t,i)};u.parse=function(e,t){var n,r;return _=0,E=""+e,n=S(y()),"$"!=y()&&b(),_=E=null,t&&A.call(t)==h?U(((r={})[""]=n,r),"",t):n}}}return u.runInContext=x,u}if(!t||t.global!==t&&t.window!==t&&t.self!==t||(G=t),e)x(G,e);else{var n=G.JSON,r=G.JSON3,i=!1,o=x(G,G.JSON3={noConflict:function(){return i||(i=!0,G.JSON=n,G.JSON3=r,n=r=null),o}});G.JSON={parse:o.parse,stringify:o.stringify}}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/json3/lib/json3.js","/node_modules/json3/lib")},{_process:114,buffer:104,timers:135}],113:[function(e,c,t){(function(a,e,t,n,r,i,o,s,u,l,f){"use strict";!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?c.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return a.nextTick(e);case 2:return a.nextTick(function(){e.call(null,t)});case 3:return a.nextTick(function(){e.call(null,t,n)});case 4:return a.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(s-1),o=0;o<i.length;)i[o++]=arguments[o];return a.nextTick(function(){e.apply(null,i)})}}}:c.exports=a}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/process-nextick-args/index.js","/node_modules/process-nextick-args")},{_process:114,buffer:104,timers:135}],114:[function(e,O,t){(function(e,t,n,r,i,o,s,a,u,l,f){var c,d;e=O.exports={};function p(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}function m(e){if(c===setTimeout)return setTimeout(e,0);if((c===p||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}!function(){try{c="function"==typeof setTimeout?setTimeout:p}catch(e){c=p}try{d="function"==typeof clearTimeout?clearTimeout:h}catch(e){d=h}}();var _,E=[],g=!1,T=-1;function b(){g&&_&&(g=!1,_.length?E=_.concat(E):T=-1,E.length&&y())}function y(){if(!g){var e=m(b);g=!0;for(var t=E.length;t;){for(_=E,E=[];++T<t;)_&&_[T].run();T=-1,t=E.length}_=null,g=!1,function(e){if(d===clearTimeout)return clearTimeout(e);if((d===h||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}(e)}}function S(e,t){this.fun=e,this.array=t}function w(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];E.push(new S(e,t)),1!==E.length||g||m(y)},S.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=w,e.addListener=w,e.once=w,e.off=w,e.removeListener=w,e.removeAllListeners=w,e.emit=w,e.prependListener=w,e.prependOnceListener=w,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/process/browser.js","/node_modules/process")},{_process:114,buffer:104,timers:135}],115:[function(e,L,D){(function(e,M,t,n,r,i,o,s,a,u,l){!function(e){var t="object"==typeof D&&D&&!D.nodeType&&D,n="object"==typeof L&&L&&!L.nodeType&&L,r="object"==typeof M&&M;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var i,o,E=2147483647,g=36,T=1,b=26,s=38,a=700,y=72,S=128,w="-",u=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-T,O=Math.floor,v=String.fromCharCode;function I(e){throw new RangeError(c[e])}function p(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function h(e,t){var n=e.split("@"),r="";return 1<n.length&&(r=n[0]+"@",e=n[1]),r+p((e=e.replace(f,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function N(e){return p(e,function(e){var t="";return 65535<e&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function F(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?O(e/a):e>>1,e+=O(e/t);d*b>>1<e;r+=g)e=O(e/d);return O(r+(d+1)*e/(e+s))}function m(e){var t,n,r,i,o,s,a,u,l,f,c,d=[],p=e.length,h=0,m=S,_=y;for((n=e.lastIndexOf(w))<0&&(n=0),r=0;r<n;++r)128<=e.charCodeAt(r)&&I("not-basic"),d.push(e.charCodeAt(r));for(i=0<n?n+1:0;i<p;){for(o=h,s=1,a=g;p<=i&&I("invalid-input"),c=e.charCodeAt(i++),(g<=(u=c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:g)||u>O((E-h)/s))&&I("overflow"),h+=u*s,!(u<(l=a<=_?T:_+b<=a?b:a-_));a+=g)s>O(E/(f=g-l))&&I("overflow"),s*=f;_=C(h-o,t=d.length+1,0==o),O(h/t)>E-m&&I("overflow"),m+=O(h/t),h%=t,d.splice(h++,0,m)}return N(d)}function _(e){var t,n,r,i,o,s,a,u,l,f,c,d,p,h,m,_=[];for(d=(e=A(e)).length,t=S,o=y,s=n=0;s<d;++s)(c=e[s])<128&&_.push(v(c));for(r=i=_.length,i&&_.push(w);r<d;){for(a=E,s=0;s<d;++s)t<=(c=e[s])&&c<a&&(a=c);for(a-t>O((E-n)/(p=r+1))&&I("overflow"),n+=(a-t)*p,t=a,s=0;s<d;++s)if((c=e[s])<t&&++n>E&&I("overflow"),c==t){for(u=n,l=g;!(u<(f=l<=o?T:o+b<=l?b:l-o));l+=g)m=u-f,h=g-f,_.push(v(F(f+m%h,0))),u=O(m/h);_.push(v(F(u,0))),o=C(n,p,r==i),n=0,++r}++n,++t}return _.join("")}if(i={version:"1.4.1",ucs2:{decode:A,encode:N},decode:m,encode:_,toASCII:function(e){return h(e,function(e){return l.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return h(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},t&&n)if(L.exports==t)n.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/punycode/punycode.js","/node_modules/punycode")},{_process:114,buffer:104,timers:135}],116:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){
85
85
  // Copyright Joyent, Inc. and other Node contributors.
86
86
  "use strict";c.exports=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a,u,l=e.length;0<s&&s<l&&(l=s);for(var f=0;f<l;++f){var c,d,p,h,m=e[f].replace(o,"%20"),_=m.indexOf(n);0<=_?(c=m.substr(0,_),d=m.substr(_+1)):(c=m,d=""),p=decodeURIComponent(c),h=decodeURIComponent(d),a=i,u=p,Object.prototype.hasOwnProperty.call(a,u)?E(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i};var E=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/querystring-es3/decode.js","/node_modules/querystring-es3")},{_process:114,buffer:104,timers:135}],117:[function(e,m,t){(function(e,t,n,r,i,o,s,a,u,l,f){
87
87
  // Copyright Joyent, Inc. and other Node contributors.
@@ -91,12 +91,12 @@ var c=Object.create||function(e){var t=function(){};return t.prototype=e,new t},
91
91
  // Copyright Joyent, Inc. and other Node contributors.
92
92
  "use strict";m.exports=p;var c=h("./_stream_transform"),d=h("core-util-is");function p(e){if(!(this instanceof p))return new p(e);c.call(this,e)}d.inherits=h("inherits"),d.inherits(p,c),p.prototype._transform=function(e,t,n){n(null,e)}}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_passthrough.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_transform":128,_process:114,buffer:104,"core-util-is":106,inherits:110,timers:135}],127:[function(x,j,e){(function(_,e,l,t,n,r,i,o,s,a,u){
93
93
  // Copyright Joyent, Inc. and other Node contributors.
94
- "use strict";var E=x("process-nextick-args");j.exports=v;var f,g=x("isarray");v.ReadableState=O;x("events").EventEmitter;var T=function(e,t){return e.listeners(t).length},c=x("./internal/streams/stream"),d=(l=x("safe-buffer").Buffer,e.Uint8Array||function(){});var p=x("core-util-is");p.inherits=x("inherits");var h=x("util"),b=void 0;b=h&&h.debuglog?h.debuglog("stream"):function(){};var m,y=x("./internal/streams/BufferList"),S=x("./internal/streams/destroy");p.inherits(v,c);var w=["error","close","destroy","pause","resume"];function O(e,t){e=e||{};var n=t instanceof(f=f||x("./_stream_duplex"));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=x("string_decoder/").StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function v(e){if(f=f||x("./_stream_duplex"),!(this instanceof v))return new v(e);this._readableState=new O(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function I(e,t,n,r,i){var o,s,a,u=e._readableState;null===t?(u.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}(e,u)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof d||"string"==typeof t||t===undefined||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(u,t)),o?e.emit("error",o):u.objectMode||t&&0<t.length?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===l.prototype||(s=t,t=l.from(s)),r?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):N(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?N(e,u,t,!1):L(e,u)):N(e,u,t,!1))):r||(u.reading=!1));return!(a=u).ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function N(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),L(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=S.destroy,v.prototype._undestroy=S.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},v.prototype.unshift=function(e){return I(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return m||(m=x("string_decoder/").StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};var A=8388608;function F(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(A<=(n=e)?n=A:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?E.nextTick(C,e):C(e))}function C(e){b("emit readable"),e.emit("readable"),k(e)}function L(e,t){t.readingMore||(t.readingMore=!0,E.nextTick(D,e,t))}function D(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(b("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){b("readable nexttick read 0"),e.read(0)}function B(e,t){t.reading||(b("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(s);break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(s);break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function H(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,E.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):M(this),null;if(0===(e=F(e,t))&&t.ended)return 0===t.length&&H(this),null;var r,i=t.needReadable;return b("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&b("length less than watermark",i=!0),t.ended||t.reading?b("reading or ended",i=!1):i&&(b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=F(n,t))),null===(r=0<e?U(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,b("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==_.stdout&&n!==_.stderr?s:m;function o(e,t){b("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,b("cleanup"),n.removeListener("close",p),n.removeListener("finish",h),n.removeListener("drain",u),n.removeListener("error",d),n.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",m),r.removeListener("data",c),l=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||u())}function s(){b("onend"),n.end()}i.endEmitted?E.nextTick(t):r.once("end",t),n.on("unpipe",o);var a,u=(a=r,function(){var e=a._readableState;b("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&T(a,"data")&&(e.flowing=!0,k(a))});n.on("drain",u);var l=!1;var f=!1;function c(e){b("ondata"),(f=!1)!==n.write(e)||f||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==G(i.pipes,n))&&!l&&(b("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function d(e){b("onerror",e),m(),n.removeListener("error",d),0===T(n,"error")&&n.emit("error",e)}function p(){n.removeListener("finish",h),m()}function h(){b("onfinish"),n.removeListener("close",p),m()}function m(){b("unpipe"),r.unpipe(n)}return r.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?g(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",d),n.once("close",p),n.once("finish",h),n.emit("pipe",r),i.flowing||(b("pipe resume"),r.resume()),n},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=G(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.addListener=v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&M(this):E.nextTick(R,this))}return n},v.prototype.resume=function(){var e,t,n=this._readableState;return n.flowing||(b("resume"),n.flowing=!0,e=this,(t=n).resumeScheduled||(t.resumeScheduled=!0,E.nextTick(B,e,t))),this},v.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){if(b("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){(b("wrapped data"),r.decoder&&(e=r.decoder.write(e)),!r.objectMode||null!==e&&e!==undefined)&&((r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause())))}),t)this[e]===undefined&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<w.length;o++)t.on(w[o],this.emit.bind(this,w[o]));return this._read=function(e){b("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=U}).call(this,x("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},x("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],x("timers").setImmediate,x("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_readable.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_duplex":125,"./internal/streams/BufferList":130,"./internal/streams/destroy":131,"./internal/streams/stream":132,_process:114,buffer:104,"core-util-is":106,events:107,inherits:110,isarray:124,"process-nextick-args":113,"safe-buffer":119,"string_decoder/":134,timers:135,util:102}],128:[function(_,E,e){(function(e,t,n,r,i,o,s,a,u,l,f){
94
+ "use strict";var E=x("process-nextick-args");j.exports=v;var f,g=x("isarray");v.ReadableState=O;x("events").EventEmitter;var T=function(e,t){return e.listeners(t).length},c=x("./internal/streams/stream"),d=(l=x("safe-buffer").Buffer,e.Uint8Array||function(){});var p=x("core-util-is");p.inherits=x("inherits");var h=x("util"),b=void 0;b=h&&h.debuglog?h.debuglog("stream"):function(){};var m,y=x("./internal/streams/BufferList"),S=x("./internal/streams/destroy");p.inherits(v,c);var w=["error","close","destroy","pause","resume"];function O(e,t){e=e||{};var n=t instanceof(f=f||x("./_stream_duplex"));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=x("string_decoder/").StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function v(e){if(f=f||x("./_stream_duplex"),!(this instanceof v))return new v(e);this._readableState=new O(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function I(e,t,n,r,i){var o,s,a,u=e._readableState;null===t?(u.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}(e,u)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof d||"string"==typeof t||t===undefined||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(u,t)),o?e.emit("error",o):u.objectMode||t&&0<t.length?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===l.prototype||(s=t,t=l.from(s)),r?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):A(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?A(e,u,t,!1):L(e,u)):A(e,u,t,!1))):r||(u.reading=!1));return!(a=u).ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function A(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),L(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=S.destroy,v.prototype._undestroy=S.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},v.prototype.unshift=function(e){return I(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return m||(m=x("string_decoder/").StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};var N=8388608;function F(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(N<=(n=e)?n=N:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?E.nextTick(M,e):M(e))}function M(e){b("emit readable"),e.emit("readable"),k(e)}function L(e,t){t.readingMore||(t.readingMore=!0,E.nextTick(D,e,t))}function D(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(b("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){b("readable nexttick read 0"),e.read(0)}function B(e,t){t.reading||(b("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(s);break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(s);break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function H(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,E.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):C(this),null;if(0===(e=F(e,t))&&t.ended)return 0===t.length&&H(this),null;var r,i=t.needReadable;return b("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&b("length less than watermark",i=!0),t.ended||t.reading?b("reading or ended",i=!1):i&&(b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=F(n,t))),null===(r=0<e?U(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,b("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==_.stdout&&n!==_.stderr?s:m;function o(e,t){b("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,b("cleanup"),n.removeListener("close",p),n.removeListener("finish",h),n.removeListener("drain",u),n.removeListener("error",d),n.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",m),r.removeListener("data",c),l=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||u())}function s(){b("onend"),n.end()}i.endEmitted?E.nextTick(t):r.once("end",t),n.on("unpipe",o);var a,u=(a=r,function(){var e=a._readableState;b("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&T(a,"data")&&(e.flowing=!0,k(a))});n.on("drain",u);var l=!1;var f=!1;function c(e){b("ondata"),(f=!1)!==n.write(e)||f||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==G(i.pipes,n))&&!l&&(b("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function d(e){b("onerror",e),m(),n.removeListener("error",d),0===T(n,"error")&&n.emit("error",e)}function p(){n.removeListener("finish",h),m()}function h(){b("onfinish"),n.removeListener("close",p),m()}function m(){b("unpipe"),r.unpipe(n)}return r.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?g(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",d),n.once("close",p),n.once("finish",h),n.emit("pipe",r),i.flowing||(b("pipe resume"),r.resume()),n},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=G(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.addListener=v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):E.nextTick(R,this))}return n},v.prototype.resume=function(){var e,t,n=this._readableState;return n.flowing||(b("resume"),n.flowing=!0,e=this,(t=n).resumeScheduled||(t.resumeScheduled=!0,E.nextTick(B,e,t))),this},v.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){if(b("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){(b("wrapped data"),r.decoder&&(e=r.decoder.write(e)),!r.objectMode||null!==e&&e!==undefined)&&((r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause())))}),t)this[e]===undefined&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<w.length;o++)t.on(w[o],this.emit.bind(this,w[o]));return this._read=function(e){b("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=U}).call(this,x("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},x("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],x("timers").setImmediate,x("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_readable.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_duplex":125,"./internal/streams/BufferList":130,"./internal/streams/destroy":131,"./internal/streams/stream":132,_process:114,buffer:104,"core-util-is":106,events:107,inherits:110,isarray:124,"process-nextick-args":113,"safe-buffer":119,"string_decoder/":134,timers:135,util:102}],128:[function(_,E,e){(function(e,t,n,r,i,o,s,a,u,l,f){
95
95
  // Copyright Joyent, Inc. and other Node contributors.
96
- "use strict";E.exports=p;var c=_("./_stream_duplex"),d=_("core-util-is");function p(e){if(!(this instanceof p))return new p(e);c.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){m(n,e,t)}):m(this,null,null)}function m(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}d.inherits=_("inherits"),d.inherits(p,c),p.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},p.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},p.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},p.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},p.prototype._destroy=function(e,t){var n=this;c.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_transform.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_duplex":125,_process:114,buffer:104,"core-util-is":106,inherits:110,timers:135}],129:[function(M,C,e){(function(e,t,E,n,r,i,o,s,a,u,l){
96
+ "use strict";E.exports=p;var c=_("./_stream_duplex"),d=_("core-util-is");function p(e){if(!(this instanceof p))return new p(e);c.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){m(n,e,t)}):m(this,null,null)}function m(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}d.inherits=_("inherits"),d.inherits(p,c),p.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},p.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},p.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},p.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},p.prototype._destroy=function(e,t){var n=this;c.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}}).call(this,_("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],_("timers").setImmediate,_("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_transform.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_duplex":125,_process:114,buffer:104,"core-util-is":106,inherits:110,timers:135}],129:[function(C,M,e){(function(e,t,E,n,r,i,o,s,a,u,l){
97
97
  // Copyright Joyent, Inc. and other Node contributors.
98
- "use strict";var g=M("process-nextick-args");function c(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}C.exports=w;var f,d=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?s:g.nextTick;w.WritableState=S;var p=M("core-util-is");p.inherits=M("inherits");var h={deprecate:M("util-deprecate")},m=M("./internal/streams/stream"),T=(E=M("safe-buffer").Buffer,t.Uint8Array||function(){});var _,b=M("./internal/streams/destroy");function y(){}function S(e,t){f=f||M("./_stream_duplex"),e=e||{};var n=t instanceof f;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(c=n,c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0,t)s=e,a=n,u=r,l=t,f=i,--a.pendingcb,u?(g.nextTick(f,l),g.nextTick(F,s,a),s._writableState.errorEmitted=!0,s.emit("error",l)):(f(l),s._writableState.errorEmitted=!0,s.emit("error",l),F(s,a));else{var o=N(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||I(e,n),r?d(v,e,n,o,i):v(e,n,o,i)}var s,a,u,l,f;var c}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function w(e){if(f=f||M("./_stream_duplex"),!(_.call(w,this)||this instanceof f))return new w(e);this._writableState=new S(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e["final"]&&(this._final=e["final"])),m.call(this)}function O(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function v(e,t,n,r){var i,o;n||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),F(e,t)}function I(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,a=!0;n;)(i[s]=n).isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,O(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(O(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),F(t,n)})}function F(e,t){var n,r,i=N(t);return i&&(n=e,(r=t).prefinished||r.finalCalled||("function"==typeof n._final?(r.pendingcb++,r.finalCalled=!0,g.nextTick(A,n,r)):(r.prefinished=!0,n.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}p.inherits(w,m),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!_.call(this,e)||this===w&&(e&&e._writableState instanceof S)}})):_=function(e){return e instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(e,t,n){var r,i,o,s,a,u,l,f,c,d,p,h=this._writableState,m=!1,_=!h.objectMode&&(r=e,E.isBuffer(r)||r instanceof T);return _&&!E.isBuffer(e)&&(i=e,e=E.from(i)),"function"==typeof t&&(n=t,t=null),_?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof n&&(n=y),h.ended?(c=this,d=n,p=new Error("write after end"),c.emit("error",p),g.nextTick(d,p)):(_||(o=this,s=h,u=n,f=!(l=!0),null===(a=e)?f=new TypeError("May not write null values to stream"):"string"==typeof a||a===undefined||s.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(o.emit("error",f),g.nextTick(u,f),l=!1),l))&&(h.pendingcb++,m=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=E.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,a,r,i,o);return u}(this,h,_,e,t,n)),m},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||I(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,F(e,t),n&&(t.finished?g.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=b.destroy,w.prototype._undestroy=b.undestroy,w.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,M("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},M("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],M("timers").setImmediate,M("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_writable.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_duplex":125,"./internal/streams/destroy":131,"./internal/streams/stream":132,_process:114,buffer:104,"core-util-is":106,inherits:110,"process-nextick-args":113,"safe-buffer":119,timers:135,"util-deprecate":139}],130:[function(d,p,e){(function(e,t,a,n,r,i,o,s,u,l,f){"use strict";a=d("safe-buffer").Buffer;var c=d("util");p.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return a.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,t.copy(n,r),s+=o.data.length,o=o.next;return i},e}(),c&&c.inspect&&c.inspect.custom&&(p.exports.prototype[c.inspect.custom]=function(){var e=c.inspect({length:this.length});return this.constructor.name+" "+e})}).call(this,d("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},d("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],d("timers").setImmediate,d("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/BufferList.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")},{_process:114,buffer:104,"safe-buffer":119,timers:135,util:102}],131:[function(p,h,e){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c=p("process-nextick-args");function d(e,t){e.emit("error",t)}h.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||c.nextTick(d,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(c.nextTick(d,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/destroy.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")},{_process:114,buffer:104,"process-nextick-args":113,timers:135}],132:[function(c,d,e){(function(e,t,n,r,i,o,s,a,u,l,f){d.exports=c("events").EventEmitter}).call(this,c("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],c("timers").setImmediate,c("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/stream-browser.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")},{_process:114,buffer:104,events:107,timers:135}],133:[function(c,d,p){(function(e,t,n,r,i,o,s,a,u,l,f){(((p=d.exports=c("./lib/_stream_readable.js")).Stream=p).Readable=p).Writable=c("./lib/_stream_writable.js"),p.Duplex=c("./lib/_stream_duplex.js"),p.Transform=c("./lib/_stream_transform.js"),p.PassThrough=c("./lib/_stream_passthrough.js")}).call(this,c("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],c("timers").setImmediate,c("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/readable-browser.js","/node_modules/stream-http/node_modules/readable-stream")},{"./lib/_stream_duplex.js":125,"./lib/_stream_passthrough.js":126,"./lib/_stream_readable.js":127,"./lib/_stream_transform.js":128,"./lib/_stream_writable.js":129,_process:114,buffer:104,timers:135}],134:[function(y,e,S){(function(e,t,n,r,i,o,s,a,u,l,f){
98
+ "use strict";var g=C("process-nextick-args");function c(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}M.exports=w;var f,d=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?s:g.nextTick;w.WritableState=S;var p=C("core-util-is");p.inherits=C("inherits");var h={deprecate:C("util-deprecate")},m=C("./internal/streams/stream"),T=(E=C("safe-buffer").Buffer,t.Uint8Array||function(){});var _,b=C("./internal/streams/destroy");function y(){}function S(e,t){f=f||C("./_stream_duplex"),e=e||{};var n=t instanceof f;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(c=n,c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0,t)s=e,a=n,u=r,l=t,f=i,--a.pendingcb,u?(g.nextTick(f,l),g.nextTick(F,s,a),s._writableState.errorEmitted=!0,s.emit("error",l)):(f(l),s._writableState.errorEmitted=!0,s.emit("error",l),F(s,a));else{var o=A(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||I(e,n),r?d(v,e,n,o,i):v(e,n,o,i)}var s,a,u,l,f;var c}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function w(e){if(f=f||C("./_stream_duplex"),!(_.call(w,this)||this instanceof f))return new w(e);this._writableState=new S(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e["final"]&&(this._final=e["final"])),m.call(this)}function O(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function v(e,t,n,r){var i,o;n||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),F(e,t)}function I(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,a=!0;n;)(i[s]=n).isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,O(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(O(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),F(t,n)})}function F(e,t){var n,r,i=A(t);return i&&(n=e,(r=t).prefinished||r.finalCalled||("function"==typeof n._final?(r.pendingcb++,r.finalCalled=!0,g.nextTick(N,n,r)):(r.prefinished=!0,n.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}p.inherits(w,m),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!_.call(this,e)||this===w&&(e&&e._writableState instanceof S)}})):_=function(e){return e instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(e,t,n){var r,i,o,s,a,u,l,f,c,d,p,h=this._writableState,m=!1,_=!h.objectMode&&(r=e,E.isBuffer(r)||r instanceof T);return _&&!E.isBuffer(e)&&(i=e,e=E.from(i)),"function"==typeof t&&(n=t,t=null),_?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof n&&(n=y),h.ended?(c=this,d=n,p=new Error("write after end"),c.emit("error",p),g.nextTick(d,p)):(_||(o=this,s=h,u=n,f=!(l=!0),null===(a=e)?f=new TypeError("May not write null values to stream"):"string"==typeof a||a===undefined||s.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(o.emit("error",f),g.nextTick(u,f),l=!1),l))&&(h.pendingcb++,m=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=E.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,a,r,i,o);return u}(this,h,_,e,t,n)),m},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||I(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,F(e,t),n&&(t.finished?g.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=b.destroy,w.prototype._undestroy=b.undestroy,w.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,C("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},C("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],C("timers").setImmediate,C("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_writable.js","/node_modules/stream-http/node_modules/readable-stream/lib")},{"./_stream_duplex":125,"./internal/streams/destroy":131,"./internal/streams/stream":132,_process:114,buffer:104,"core-util-is":106,inherits:110,"process-nextick-args":113,"safe-buffer":119,timers:135,"util-deprecate":139}],130:[function(d,p,e){(function(e,t,a,n,r,i,o,s,u,l,f){"use strict";a=d("safe-buffer").Buffer;var c=d("util");p.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return a.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,t.copy(n,r),s+=o.data.length,o=o.next;return i},e}(),c&&c.inspect&&c.inspect.custom&&(p.exports.prototype[c.inspect.custom]=function(){var e=c.inspect({length:this.length});return this.constructor.name+" "+e})}).call(this,d("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},d("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],d("timers").setImmediate,d("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/BufferList.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")},{_process:114,buffer:104,"safe-buffer":119,timers:135,util:102}],131:[function(p,h,e){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";var c=p("process-nextick-args");function d(e,t){e.emit("error",t)}h.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||c.nextTick(d,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(c.nextTick(d,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],p("timers").setImmediate,p("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/destroy.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")},{_process:114,buffer:104,"process-nextick-args":113,timers:135}],132:[function(c,d,e){(function(e,t,n,r,i,o,s,a,u,l,f){d.exports=c("events").EventEmitter}).call(this,c("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],c("timers").setImmediate,c("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/stream-browser.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")},{_process:114,buffer:104,events:107,timers:135}],133:[function(c,d,p){(function(e,t,n,r,i,o,s,a,u,l,f){(((p=d.exports=c("./lib/_stream_readable.js")).Stream=p).Readable=p).Writable=c("./lib/_stream_writable.js"),p.Duplex=c("./lib/_stream_duplex.js"),p.Transform=c("./lib/_stream_transform.js"),p.PassThrough=c("./lib/_stream_passthrough.js")}).call(this,c("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],c("timers").setImmediate,c("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/readable-browser.js","/node_modules/stream-http/node_modules/readable-stream")},{"./lib/_stream_duplex.js":125,"./lib/_stream_passthrough.js":126,"./lib/_stream_readable.js":127,"./lib/_stream_transform.js":128,"./lib/_stream_writable.js":129,_process:114,buffer:104,timers:135}],134:[function(y,e,S){(function(e,t,n,r,i,o,s,a,u,l,f){
99
99
  // Copyright Joyent, Inc. and other Node contributors.
100
100
  "use strict";var c=(n=y("safe-buffer").Buffer).isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===c||!c(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=m,this.end=_,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=E,this.end=g,t=3;break;default:return this.write=T,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function p(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function h(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return n!==undefined?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function m(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function _(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function E(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function T(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}(S.StringDecoder=d).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},d.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},d.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=p(t[r]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(0<=(i=p(t[r])))return 0<i&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(0<=(i=p(t[r])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},d.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}).call(this,y("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},y("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],y("timers").setImmediate,y("timers").clearImmediate,"/node_modules/stream-http/node_modules/string_decoder/lib/string_decoder.js","/node_modules/stream-http/node_modules/string_decoder/lib")},{_process:114,buffer:104,"safe-buffer":119,timers:135}],135:[function(E,e,g){(function(e,t,n,r,i,o,s,a,u,l,f){var c=E("process/browser.js").nextTick,d=Function.prototype.apply,p=Array.prototype.slice,h={},m=0;function _(e,t){this._id=e,this._clearFn=t}g.setTimeout=function(){return new _(d.call(setTimeout,window,arguments),clearTimeout)},g.setInterval=function(){return new _(d.call(setInterval,window,arguments),clearInterval)},g.clearTimeout=g.clearInterval=function(e){e.close()},_.prototype.unref=_.prototype.ref=function(){},_.prototype.close=function(){this._clearFn.call(window,this._id)},g.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},g.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},g._unrefActive=g.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},g.setImmediate="function"==typeof a?a:function(e){var t=m++,n=!(arguments.length<2)&&p.call(arguments,1);return h[t]=!0,c(function(){h[t]&&(n?e.apply(null,n):e.call(null),g.clearImmediate(t))}),t},g.clearImmediate="function"==typeof u?u:function(e){delete h[e]}}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],E("timers").setImmediate,E("timers").clearImmediate,"/node_modules/timers-browserify/main.js","/node_modules/timers-browserify")},{_process:114,buffer:104,"process/browser.js":114,timers:135}],136:[function(c,d,e){(function(e,t,i,n,r,o,s,a,u,l,f){i=c("buffer").Buffer;d.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(i.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}}).call(this,c("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],c("timers").setImmediate,c("timers").clearImmediate,"/node_modules/to-arraybuffer/index.js","/node_modules/to-arraybuffer")},{_process:114,buffer:104,timers:135}],137:[function(h,e,m){(function(e,t,n,r,i,o,s,a,u,l,f){
101
101
  // Copyright Joyent, Inc. and other Node contributors.
102
- "use strict";var D=h("punycode"),R=h("./util");function N(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}m.parse=p,m.resolve=function(e,t){return p(e,!1,!0).resolve(t)},m.resolveObject=function(e,t){return e?p(e,!1,!0).resolveObject(t):t},m.format=function(e){R.isString(e)&&(e=p(e));return e instanceof N?e.format():N.prototype.format.call(e)},m.Url=N;var B=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,k=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),U=["'"].concat(d),H=["%","/","?",";","#"].concat(U),P=["/","?","#"],G=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},q={javascript:!0,"javascript:":!0},V={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Y=h("querystring");function p(e,t,n){if(e&&R.isObject(e)&&e instanceof N)return e;var r=new N;return r.parse(e,t,n),r}N.prototype.parse=function(e,t,n){if(!R.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var s=e=o.join(i);if(s=s.trim(),!n&&1===e.split("#").length){var a=k.exec(s);if(a)return this.path=s,this.href=s,this.pathname=a[1],a[2]?(this.search=a[2],this.query=t?Y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=B.exec(s);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,s=s.substr(u.length)}if(n||u||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===s.substr(0,2);!f||u&&q[u]||(s=s.substr(2),this.slashes=!0)}if(!q[u]&&(f||u&&!V[u])){for(var c,d,p=-1,h=0;h<P.length;h++){-1!==(m=s.indexOf(P[h]))&&(-1===p||m<p)&&(p=m)}-1!==(d=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(c=s.slice(0,d),s=s.slice(d+1),this.auth=decodeURIComponent(c)),p=-1;for(h=0;h<H.length;h++){var m;-1!==(m=s.indexOf(H[h]))&&(-1===p||m<p)&&(p=m)}-1===p&&(p=s.length),this.host=s.slice(0,p),s=s.slice(p),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var E=this.hostname.split(/\./),g=(h=0,E.length);h<g;h++){var T=E[h];if(T&&!T.match(G)){for(var b="",y=0,S=T.length;y<S;y++)127<T.charCodeAt(y)?b+="x":b+=T[y];if(!b.match(G)){var w=E.slice(0,h),O=E.slice(h+1),v=T.match(x);v&&(w.push(v[1]),O.unshift(v[2])),O.length&&(s="/"+O.join(".")+s),this.hostname=w.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=D.toASCII(this.hostname));var I=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+I,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!j[l])for(h=0,g=U.length;h<g;h++){var A=U[h];if(-1!==s.indexOf(A)){var F=encodeURIComponent(A);F===A&&(F=escape(A)),s=s.split(A).join(F)}}var M=s.indexOf("#");-1!==M&&(this.hash=s.substr(M),s=s.slice(0,M));var C=s.indexOf("?");if(-1!==C?(this.search=s.substr(C),this.query=s.substr(C+1),t&&(this.query=Y.parse(this.query)),s=s.slice(0,C)):t&&(this.search="",this.query={}),s&&(this.pathname=s),V[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){I=this.pathname||"";var L=this.search||"";this.path=I+L}return this.href=this.format(),this},N.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&R.isObject(this.query)&&Object.keys(this.query).length&&(o=Y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||V[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},N.prototype.resolve=function(e){return this.resolveObject(p(e,!1,!0)).format()},N.prototype.resolveObject=function(e){if(R.isString(e)){var t=new N;t.parse(e,!1,!0),e=t}for(var n=new N,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var u=s[a];"protocol"!==u&&(n[u]=e[u])}return V[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!V[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var c=l[f];n[c]=e[c]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||q[e.protocol])n.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",h=n.search||"";n.path=p+h}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=_||m||n.host&&e.pathname,g=E,T=n.pathname&&n.pathname.split("/")||[],b=(d=e.pathname&&e.pathname.split("/")||[],n.protocol&&!V[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===T[0]?T[0]=n.host:T.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(""===d[0]||""===T[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,T=d;else if(d.length)T||(T=[]),T.pop(),T=T.concat(d),n.search=e.search,n.query=e.query;else if(!R.isNullOrUndefined(e.search)){if(b)n.hostname=n.host=T.shift(),(v=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift());return n.search=e.search,n.query=e.query,R.isNull(n.pathname)&&R.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!T.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var y=T.slice(-1)[0],S=(n.host||e.host||1<T.length)&&("."===y||".."===y)||""===y,w=0,O=T.length;0<=O;O--)"."===(y=T[O])?T.splice(O,1):".."===y?(T.splice(O,1),w++):w&&(T.splice(O,1),w--);if(!E&&!g)for(;w--;w)T.unshift("..");!E||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),S&&"/"!==T.join("/").substr(-1)&&T.push("");var v,I=""===T[0]||T[0]&&"/"===T[0].charAt(0);b&&(n.hostname=n.host=I?"":T.length?T.shift():"",(v=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift()));return(E=E||n.host&&T.length)&&!I&&T.unshift(""),T.length?n.pathname=T.join("/"):(n.pathname=null,n.path=null),R.isNull(n.pathname)&&R.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},N.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/node_modules/url/url.js","/node_modules/url")},{"./util":138,_process:114,buffer:104,punycode:115,querystring:118,timers:135}],138:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";c.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/url/util.js","/node_modules/url")},{_process:114,buffer:104,timers:135}],139:[function(e,d,t){(function(e,r,t,n,i,o,s,a,u,l,f){function c(e){try{if(!r.localStorage)return!1}catch(n){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}d.exports=function(e,t){if(c("noDeprecation"))return e;var n=!1;return function(){if(!n){if(c("throwDeprecation"))throw new Error(t);c("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/util-deprecate/browser.js","/node_modules/util-deprecate")},{_process:114,buffer:104,timers:135}],140:[function(l,e,f){(function(C,e,L,t,n,r,i,o,s,a,u){var D=l("url"),R=l("child_process").spawn,B=l("fs");f.XMLHttpRequest=function(){"use strict";var T,b,y=this,S=l("http"),w=l("https"),O={},r=!1,v={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},I={},N={},i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],s=["TRACE","TRACK","CONNECT"],A=!1,F=!1,o={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(e,t,n,r,i){if(this.abort(),F=!1,!(o=e)||-1!==s.indexOf(o))throw new Error("SecurityError: Request method not allowed");var o;O={method:e,url:t.toString(),async:"boolean"!=typeof n||n,user:r||null,password:i||null},M(this.OPENED)},this.setDisableHeaderCheck=function(e){r=e},this.setRequestHeader=function(e,t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(n=e,r||n&&-1===i.indexOf(n.toLowerCase())){var n;if(A)throw new Error("INVALID_STATE_ERR: send flag is true");e=N[e.toLowerCase()]||e,N[e.toLowerCase()]=e,I[e]=I[e]?I[e]+", "+t:t}else console.warn('Refused to set unsafe header "'+e+'"')},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&b&&b.headers&&b.headers[e.toLowerCase()]&&!F?b.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||F)return"";var e="";for(var t in b.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+b.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&N[e.toLowerCase()]?I[N[e.toLowerCase()]]:""},this.send=function(t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(A)throw new Error("INVALID_STATE_ERR: send has already been called");var i,n=!1,r=!1,o=D.parse(O.url);switch(o.protocol){case"https:":n=!0;case"http:":i=o.hostname;break;case"file:":r=!0;break;case undefined:case null:case"":i="localhost";break;default:throw new Error("Protocol not supported.")}if(r){if("GET"!==O.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(O.async)B.readFile(o.pathname,"utf8",function(e,t){e?y.handleError(e):(y.status=200,y.responseText=t,M(y.DONE))});else try{this.responseText=B.readFileSync(o.pathname,"utf8"),this.status=200,M(y.DONE)}catch(g){this.handleError(g)}}else{var s=o.port||(n?443:80),a=o.pathname+(o.search?o.search:"");for(var u in v)N[u.toLowerCase()]||(I[u]=v[u]);if(I.Host=i,n&&443===s||80===s||(I.Host+=":"+o.port),O.user){"undefined"==typeof O.password&&(O.password="");var l=new L(O.user+":"+O.password);I.Authorization="Basic "+l.toString("base64")}"GET"===O.method||"HEAD"===O.method?t=null:t?(I["Content-Length"]=L.isBuffer(t)?t.length:L.byteLength(t),I["Content-Type"]||(I["Content-Type"]="text/plain;charset=UTF-8")):"POST"===O.method&&(I["Content-Length"]=0);var f={host:i,port:s,path:a,method:O.method,headers:I,agent:!1,withCredentials:y.withCredentials};if(F=!1,O.async){var c=n?w.request:S.request;A=!0,y.dispatchEvent("readystatechange");var d=function(e){y.handleError(e)};T=c(f,function e(t){if(301!==(b=t).statusCode&&302!==b.statusCode&&303!==b.statusCode&&307!==b.statusCode)b.setEncoding("utf8"),M(y.HEADERS_RECEIVED),y.status=b.statusCode,b.on("data",function(e){e&&(y.responseText+=e),A&&M(y.LOADING)}),b.on("end",function(){A&&(M(y.DONE),A=!1)}),b.on("error",function(e){y.handleError(e)});else{O.url=b.headers.location;var n=D.parse(O.url);i=n.hostname;var r={hostname:n.hostname,port:n.port,path:n.path,method:303===b.statusCode?"GET":O.method,headers:I,withCredentials:y.withCredentials};(T=c(r,e).on("error",d)).end()}}).on("error",d),t&&T.write(t),T.end(),y.dispatchEvent("loadstart")}else{var p=".node-xmlhttprequest-content-"+C.pid,h=".node-xmlhttprequest-sync-"+C.pid;B.writeFileSync(h,"","utf8");for(var m="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(n?"s":"")+".request;var options = "+JSON.stringify(f)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+p+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+h+"');});response.on('error', function(error) {fs.writeFileSync('"+p+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+h+"');});}).on('error', function(error) {fs.writeFileSync('"+p+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+h+"');});"+(t?"req.write('"+JSON.stringify(t).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",_=R(C.argv[0],["-e",m]);B.existsSync(h););var E=JSON.parse(B.readFileSync(p,"utf8"));_.stdin.end(),B.unlinkSync(p),E.err?y.handleError(E.err):(b=E.data,y.status=E.data.statusCode,y.responseText=E.data.text,M(y.DONE))}}},this.handleError=function(e){this.status=0,this.statusText=e,this.responseText=e.stack,F=!0,M(this.DONE),this.dispatchEvent("error")},this.abort=function(){T&&(T.abort(),T=null),I=v,this.status=0,this.responseText="",this.responseXML="",F=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!A||this.readyState===this.DONE||(A=!1,M(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(e,t){e in o||(o[e]=[]),o[e].push(t)},this.removeEventListener=function(e,t){e in o&&(o[e]=o[e].filter(function(e){return e!==t}))},this.dispatchEvent=function(e){if("function"==typeof y["on"+e]&&y["on"+e](),e in o)for(var t=0,n=o[e].length;t<n;t++)o[e][t].call(y)};var M=function(e){e!=y.LOADING&&y.readyState===e||(y.readyState=e,(O.async||y.readyState<y.OPENED||y.readyState===y.DONE)&&y.dispatchEvent("readystatechange"),y.readyState!==y.DONE||F||(y.dispatchEvent("load"),y.dispatchEvent("loadend")))}}}).call(this,l("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],l("timers").setImmediate,l("timers").clearImmediate,"/node_modules/xmlhttprequest/lib/XMLHttpRequest.js","/node_modules/xmlhttprequest/lib")},{_process:114,buffer:104,child_process:103,fs:103,http:120,https:108,timers:135,url:137}],141:[function(e,d,t){(function(e,t,n,r,i,o,s,a,u,l,f){d.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)c.call(n,r)&&(e[r]=n[r])}return e};var c=Object.prototype.hasOwnProperty}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/xtend/immutable.js","/node_modules/xtend")},{_process:114,buffer:104,timers:135}]},{},[15])(15)});
102
+ "use strict";var D=h("punycode"),R=h("./util");function A(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}m.parse=p,m.resolve=function(e,t){return p(e,!1,!0).resolve(t)},m.resolveObject=function(e,t){return e?p(e,!1,!0).resolveObject(t):t},m.format=function(e){R.isString(e)&&(e=p(e));return e instanceof A?e.format():A.prototype.format.call(e)},m.Url=A;var B=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,k=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),U=["'"].concat(d),H=["%","/","?",";","#"].concat(U),P=["/","?","#"],G=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},q={javascript:!0,"javascript:":!0},V={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Y=h("querystring");function p(e,t,n){if(e&&R.isObject(e)&&e instanceof A)return e;var r=new A;return r.parse(e,t,n),r}A.prototype.parse=function(e,t,n){if(!R.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var s=e=o.join(i);if(s=s.trim(),!n&&1===e.split("#").length){var a=k.exec(s);if(a)return this.path=s,this.href=s,this.pathname=a[1],a[2]?(this.search=a[2],this.query=t?Y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=B.exec(s);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,s=s.substr(u.length)}if(n||u||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===s.substr(0,2);!f||u&&q[u]||(s=s.substr(2),this.slashes=!0)}if(!q[u]&&(f||u&&!V[u])){for(var c,d,p=-1,h=0;h<P.length;h++){-1!==(m=s.indexOf(P[h]))&&(-1===p||m<p)&&(p=m)}-1!==(d=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(c=s.slice(0,d),s=s.slice(d+1),this.auth=decodeURIComponent(c)),p=-1;for(h=0;h<H.length;h++){var m;-1!==(m=s.indexOf(H[h]))&&(-1===p||m<p)&&(p=m)}-1===p&&(p=s.length),this.host=s.slice(0,p),s=s.slice(p),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var E=this.hostname.split(/\./),g=(h=0,E.length);h<g;h++){var T=E[h];if(T&&!T.match(G)){for(var b="",y=0,S=T.length;y<S;y++)127<T.charCodeAt(y)?b+="x":b+=T[y];if(!b.match(G)){var w=E.slice(0,h),O=E.slice(h+1),v=T.match(x);v&&(w.push(v[1]),O.unshift(v[2])),O.length&&(s="/"+O.join(".")+s),this.hostname=w.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=D.toASCII(this.hostname));var I=this.port?":"+this.port:"",A=this.hostname||"";this.host=A+I,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!j[l])for(h=0,g=U.length;h<g;h++){var N=U[h];if(-1!==s.indexOf(N)){var F=encodeURIComponent(N);F===N&&(F=escape(N)),s=s.split(N).join(F)}}var C=s.indexOf("#");-1!==C&&(this.hash=s.substr(C),s=s.slice(0,C));var M=s.indexOf("?");if(-1!==M?(this.search=s.substr(M),this.query=s.substr(M+1),t&&(this.query=Y.parse(this.query)),s=s.slice(0,M)):t&&(this.search="",this.query={}),s&&(this.pathname=s),V[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){I=this.pathname||"";var L=this.search||"";this.path=I+L}return this.href=this.format(),this},A.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&R.isObject(this.query)&&Object.keys(this.query).length&&(o=Y.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||V[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},A.prototype.resolve=function(e){return this.resolveObject(p(e,!1,!0)).format()},A.prototype.resolveObject=function(e){if(R.isString(e)){var t=new A;t.parse(e,!1,!0),e=t}for(var n=new A,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var u=s[a];"protocol"!==u&&(n[u]=e[u])}return V[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!V[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var c=l[f];n[c]=e[c]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||q[e.protocol])n.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",h=n.search||"";n.path=p+h}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=_||m||n.host&&e.pathname,g=E,T=n.pathname&&n.pathname.split("/")||[],b=(d=e.pathname&&e.pathname.split("/")||[],n.protocol&&!V[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===T[0]?T[0]=n.host:T.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(""===d[0]||""===T[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,T=d;else if(d.length)T||(T=[]),T.pop(),T=T.concat(d),n.search=e.search,n.query=e.query;else if(!R.isNullOrUndefined(e.search)){if(b)n.hostname=n.host=T.shift(),(v=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift());return n.search=e.search,n.query=e.query,R.isNull(n.pathname)&&R.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!T.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var y=T.slice(-1)[0],S=(n.host||e.host||1<T.length)&&("."===y||".."===y)||""===y,w=0,O=T.length;0<=O;O--)"."===(y=T[O])?T.splice(O,1):".."===y?(T.splice(O,1),w++):w&&(T.splice(O,1),w--);if(!E&&!g)for(;w--;w)T.unshift("..");!E||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),S&&"/"!==T.join("/").substr(-1)&&T.push("");var v,I=""===T[0]||T[0]&&"/"===T[0].charAt(0);b&&(n.hostname=n.host=I?"":T.length?T.shift():"",(v=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift()));return(E=E||n.host&&T.length)&&!I&&T.unshift(""),T.length?n.pathname=T.join("/"):(n.pathname=null,n.path=null),R.isNull(n.pathname)&&R.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},A.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],h("timers").setImmediate,h("timers").clearImmediate,"/node_modules/url/url.js","/node_modules/url")},{"./util":138,_process:114,buffer:104,punycode:115,querystring:118,timers:135}],138:[function(e,c,t){(function(e,t,n,r,i,o,s,a,u,l,f){"use strict";c.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/url/util.js","/node_modules/url")},{_process:114,buffer:104,timers:135}],139:[function(e,d,t){(function(e,r,t,n,i,o,s,a,u,l,f){function c(e){try{if(!r.localStorage)return!1}catch(n){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}d.exports=function(e,t){if(c("noDeprecation"))return e;var n=!1;return function(){if(!n){if(c("throwDeprecation"))throw new Error(t);c("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/util-deprecate/browser.js","/node_modules/util-deprecate")},{_process:114,buffer:104,timers:135}],140:[function(l,e,f){(function(M,e,L,t,n,r,i,o,s,a,u){var D=l("url"),R=l("child_process").spawn,B=l("fs");f.XMLHttpRequest=function(){"use strict";var T,b,y=this,S=l("http"),w=l("https"),O={},r=!1,v={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},I={},A={},i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],s=["TRACE","TRACK","CONNECT"],N=!1,F=!1,o={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(e,t,n,r,i){if(this.abort(),F=!1,!(o=e)||-1!==s.indexOf(o))throw new Error("SecurityError: Request method not allowed");var o;O={method:e,url:t.toString(),async:"boolean"!=typeof n||n,user:r||null,password:i||null},C(this.OPENED)},this.setDisableHeaderCheck=function(e){r=e},this.setRequestHeader=function(e,t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(n=e,r||n&&-1===i.indexOf(n.toLowerCase())){var n;if(N)throw new Error("INVALID_STATE_ERR: send flag is true");e=A[e.toLowerCase()]||e,A[e.toLowerCase()]=e,I[e]=I[e]?I[e]+", "+t:t}else console.warn('Refused to set unsafe header "'+e+'"')},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&b&&b.headers&&b.headers[e.toLowerCase()]&&!F?b.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||F)return"";var e="";for(var t in b.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+b.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&A[e.toLowerCase()]?I[A[e.toLowerCase()]]:""},this.send=function(t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(N)throw new Error("INVALID_STATE_ERR: send has already been called");var i,n=!1,r=!1,o=D.parse(O.url);switch(o.protocol){case"https:":n=!0;case"http:":i=o.hostname;break;case"file:":r=!0;break;case undefined:case null:case"":i="localhost";break;default:throw new Error("Protocol not supported.")}if(r){if("GET"!==O.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(O.async)B.readFile(o.pathname,"utf8",function(e,t){e?y.handleError(e):(y.status=200,y.responseText=t,C(y.DONE))});else try{this.responseText=B.readFileSync(o.pathname,"utf8"),this.status=200,C(y.DONE)}catch(g){this.handleError(g)}}else{var s=o.port||(n?443:80),a=o.pathname+(o.search?o.search:"");for(var u in v)A[u.toLowerCase()]||(I[u]=v[u]);if(I.Host=i,n&&443===s||80===s||(I.Host+=":"+o.port),O.user){"undefined"==typeof O.password&&(O.password="");var l=new L(O.user+":"+O.password);I.Authorization="Basic "+l.toString("base64")}"GET"===O.method||"HEAD"===O.method?t=null:t?(I["Content-Length"]=L.isBuffer(t)?t.length:L.byteLength(t),I["Content-Type"]||(I["Content-Type"]="text/plain;charset=UTF-8")):"POST"===O.method&&(I["Content-Length"]=0);var f={host:i,port:s,path:a,method:O.method,headers:I,agent:!1,withCredentials:y.withCredentials};if(F=!1,O.async){var c=n?w.request:S.request;N=!0,y.dispatchEvent("readystatechange");var d=function(e){y.handleError(e)};T=c(f,function e(t){if(301!==(b=t).statusCode&&302!==b.statusCode&&303!==b.statusCode&&307!==b.statusCode)b.setEncoding("utf8"),C(y.HEADERS_RECEIVED),y.status=b.statusCode,b.on("data",function(e){e&&(y.responseText+=e),N&&C(y.LOADING)}),b.on("end",function(){N&&(C(y.DONE),N=!1)}),b.on("error",function(e){y.handleError(e)});else{O.url=b.headers.location;var n=D.parse(O.url);i=n.hostname;var r={hostname:n.hostname,port:n.port,path:n.path,method:303===b.statusCode?"GET":O.method,headers:I,withCredentials:y.withCredentials};(T=c(r,e).on("error",d)).end()}}).on("error",d),t&&T.write(t),T.end(),y.dispatchEvent("loadstart")}else{var p=".node-xmlhttprequest-content-"+M.pid,h=".node-xmlhttprequest-sync-"+M.pid;B.writeFileSync(h,"","utf8");for(var m="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(n?"s":"")+".request;var options = "+JSON.stringify(f)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+p+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+h+"');});response.on('error', function(error) {fs.writeFileSync('"+p+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+h+"');});}).on('error', function(error) {fs.writeFileSync('"+p+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+h+"');});"+(t?"req.write('"+JSON.stringify(t).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",_=R(M.argv[0],["-e",m]);B.existsSync(h););var E=JSON.parse(B.readFileSync(p,"utf8"));_.stdin.end(),B.unlinkSync(p),E.err?y.handleError(E.err):(b=E.data,y.status=E.data.statusCode,y.responseText=E.data.text,C(y.DONE))}}},this.handleError=function(e){this.status=0,this.statusText=e,this.responseText=e.stack,F=!0,C(this.DONE),this.dispatchEvent("error")},this.abort=function(){T&&(T.abort(),T=null),I=v,this.status=0,this.responseText="",this.responseXML="",F=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!N||this.readyState===this.DONE||(N=!1,C(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(e,t){e in o||(o[e]=[]),o[e].push(t)},this.removeEventListener=function(e,t){e in o&&(o[e]=o[e].filter(function(e){return e!==t}))},this.dispatchEvent=function(e){if("function"==typeof y["on"+e]&&y["on"+e](),e in o)for(var t=0,n=o[e].length;t<n;t++)o[e][t].call(y)};var C=function(e){e!=y.LOADING&&y.readyState===e||(y.readyState=e,(O.async||y.readyState<y.OPENED||y.readyState===y.DONE)&&y.dispatchEvent("readystatechange"),y.readyState!==y.DONE||F||(y.dispatchEvent("load"),y.dispatchEvent("loadend")))}}}).call(this,l("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],l("timers").setImmediate,l("timers").clearImmediate,"/node_modules/xmlhttprequest/lib/XMLHttpRequest.js","/node_modules/xmlhttprequest/lib")},{_process:114,buffer:104,child_process:103,fs:103,http:120,https:108,timers:135,url:137}],141:[function(e,d,t){(function(e,t,n,r,i,o,s,a,u,l,f){d.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)c.call(n,r)&&(e[r]=n[r])}return e};var c=Object.prototype.hasOwnProperty}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate,e("timers").clearImmediate,"/node_modules/xtend/immutable.js","/node_modules/xtend")},{_process:114,buffer:104,timers:135}]},{},[15])(15)});