/*! For license information please see vendors~df0f15aa.bundle.js.LICENSE.txt */
(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[12],{1050:function(e,t,r){(t=e.exports=r(1051)).Stream=t,t.Readable=t,t.Writable=r(1055),t.Duplex=r(425),t.Transform=r(1056),t.PassThrough=r(1816),t.finished=r(774),t.pipeline=r(1817)},1051:function(e,t,r){"use strict";(function(t,n){var o;e.exports=S,S.ReadableState=P;r(325).EventEmitter;var i=function(e,t){return e.listeners(t).length},a=r(1052),c=r(148).Buffer,u=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,l=r(1811);s=l&&l.debuglog?l.debuglog("stream"):function(){};var f,p,y,b=r(1812),h=r(1053),d=r(1054).getHighWaterMark,m=r(424).codes,g=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,O=m.ERR_METHOD_NOT_IMPLEMENTED,j=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(58)(S,a);var w=h.errorOrDestroy,_=["error","close","destroy","pause","resume"];function P(e,t,n){o=o||r(425),e=e||{},"boolean"!=typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=d(this,e,"readableHighWaterMark",n),this.buffer=new b,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(326).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(o=o||r(425),!(this instanceof S))return new S(e);var t=this instanceof o;this._readableState=new P(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function E(e,t,r,n,o){s("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(s("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}(e,a);else if(o||(i=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),i)w(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)a.endEmitted?w(e,new j):k(e,a,t,!0);else if(a.ended)w(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):M(e,a)):k(e,a,t,!1)}else n||(a.reading=!1,M(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),M(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},S.prototype.unshift=function(e){return E(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=r(326).StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var x=1073741824;function R(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=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(D,e))}function D(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function M(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(s("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function C(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){s("readable nexttick read 0"),e.read(0)}function L(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function H(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(V,t,e))}function V(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return s("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):T(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&H(this),null;var n,o=t.needReadable;return s("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&s("length less than watermark",o=!0),t.ended||t.reading?s("reading or ended",o=!1):o&&(s("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&H(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){w(this,new O("_read()"))},S.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,s("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:d;function c(t,n){s("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,s("cleanup"),e.removeListener("close",b),e.removeListener("finish",h),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",d),r.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){s("onend"),e.end()}o.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",c);var l=function(e){return function(){var t=e._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,I(e))}}(r);e.on("drain",l);var f=!1;function p(t){s("ondata");var n=e.write(t);s("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!f&&(s("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function y(t){s("onerror",t),d(),e.removeListener("error",y),0===i(e,"error")&&w(e,t)}function b(){e.removeListener("finish",h),d()}function h(){s("onfinish"),e.removeListener("close",b),d()}function d(){s("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",y),e.once("close",b),e.once("finish",h),e.emit("pipe",r),o.flowing||(s("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={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,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,s("on readable",o.length,o.reading),o.length?T(this):o.reading||n.nextTick(N,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(C,this),r},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(C,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(L,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(s("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(s("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){s("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(1814)),p(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=F,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===y&&(y=r(1815)),y(S,e,t)})}).call(this,r(82),r(120))},1052:function(e,t,r){e.exports=r(325).EventEmitter},1053:function(e,t,r){"use strict";(function(t){function r(e,t){o(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(n,a):(a._writableState.errorEmitted=!0,t.nextTick(r,a,e)):t.nextTick(r,a,e):i?(t.nextTick(n,a),i(e)):t.nextTick(n,a)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(120))},1054:function(e,t,r){"use strict";var n=r(424).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},1055:function(e,t,r){"use strict";(function(t,n){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=S,S.WritableState=P;var a={deprecate:r(762)},c=r(1052),u=r(148).Buffer,s=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,f=r(1053),p=r(1054).getHighWaterMark,y=r(424).codes,b=y.ERR_INVALID_ARG_TYPE,h=y.ERR_METHOD_NOT_IMPLEMENTED,d=y.ERR_MULTIPLE_CALLBACK,m=y.ERR_STREAM_CANNOT_PIPE,g=y.ERR_STREAM_DESTROYED,v=y.ERR_STREAM_NULL_VALUES,O=y.ERR_STREAM_WRITE_AFTER_END,j=y.ERR_UNKNOWN_ENCODING,w=f.errorOrDestroy;function _(){}function P(e,t,a){i=i||r(425),e=e||{},"boolean"!=typeof a&&(a=t instanceof i),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,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 r=e._writableState,o=r.sync,i=r.writecb;if("function"!=typeof i)throw new d;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,o,i){--t.pendingcb,r?(n.nextTick(i,o),n.nextTick(D,e,t),e._writableState.errorEmitted=!0,w(e,o)):(i(o),e._writableState.errorEmitted=!0,w(e,o),D(e,t))}(e,r,o,t,i);else{var a=R(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),o?n.nextTick(k,e,r,a,i):k(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(e){var t=this instanceof(i=i||r(425));if(!t&&!l.call(S,this))return new S(e);this._writableState=new P(e,this,t),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)),c.call(this)}function E(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function k(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),D(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var c=0,u=!0;r;)i[c]=r,r.isBuf||(u=!1),r=r.next,c+=1;i.allBuffers=u,E(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,f=r.callback;if(E(e,t,!1,t.objectMode?1:s.length,s,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var r=R(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return r}r(58)(S,c),P.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(P.prototype,"buffer",{get:a.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]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===S&&(e&&e._writableState instanceof P)}})):l=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new m)},S.prototype.write=function(e,t,r){var o,i=this._writableState,a=!1,c=!i.objectMode&&(o=e,u.isBuffer(o)||o instanceof s);return c&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=_),i.ending?function(e,t){var r=new O;w(e,r),n.nextTick(t,r)}(this,r):(c||function(e,t,r,o){var i;return null===r?i=new v:"string"==typeof r||t.objectMode||(i=new b("chunk",["string","Buffer"],r)),!i||(w(e,i),n.nextTick(o,i),!1)}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var c=t.objectMode?1:n.length;t.length+=c;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,c,n,o,i);return s}(this,i,c,e,t,r)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new j(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new h("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,D(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(82),r(120))},1056:function(e,t,r){"use strict";e.exports=l;var n=r(424).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(425);function s(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:s.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",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush((function(t,r){p(e,t,r)}))}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new c;if(e._transformState.transforming)throw new a;return e.push(null)}r(58)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},1237:function(e,t,r){var n=r(1096),o=r(2031),i=r(2032),a=r(792),c=r(2034),u=r(1112),s=Date.prototype.getTime;function l(e,t,r){var y=r||{};return!!(y.strict?i(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?y.strict?i(e,t):e==t:function(e,t,r){var i,y;if(typeof e!=typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var b=a(e),h=a(t);if(b!==h)return!1;if(b||h)return e.source===t.source&&c(e)===c(t);if(u(e)&&u(t))return s.call(e)===s.call(t);var d=p(e),m=p(t);if(d!==m)return!1;if(d||m){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;try{var g=n(e),v=n(t)}catch(e){return!1}if(g.length!==v.length)return!1;for(g.sort(),v.sort(),i=g.length-1;i>=0;i--)if(g[i]!=v[i])return!1;for(i=g.length-1;i>=0;i--)if(!l(e[y=g[i]],t[y],r))return!1;return!0}(e,t,y))}function f(e){return null==e}function p(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=l},161:function(e,t,r){"use strict";r.r(t),r.d(t,"UNMOUNTED",(function(){return p})),r.d(t,"EXITED",(function(){return y})),r.d(t,"ENTERING",(function(){return b})),r.d(t,"ENTERED",(function(){return h})),r.d(t,"EXITING",(function(){return d}));var n=r(128),o=r(179),i=r(1),a=r.n(i),c=r(153),u=r.n(c),s=r(514),l=r(339),f=r(632),p="unmounted",y="exited",b="entering",h="entered",d="exiting",m=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=y,n.appearStatus=b):o=h:o=t.unmountOnExit||t.mountOnEnter?p:y,n.state={status:o},n.nextCallback=null,n}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===p?{status:y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==b&&r!==h&&(t=b):r!==b&&r!==h||(t=d)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===b){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);r&&Object(f.a)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===y&&this.setState({status:p})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[u.a.findDOMNode(this),n],i=o[0],a=o[1],c=this.getTimeouts(),l=n?c.appear:c.enter;!e&&!r||s.a.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:b},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!s.a.disabled?(this.props.onExit(n),this.safeSetState({status:d},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:y},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:y},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===p)return null;var t=this.props,r=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(n.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.a.Provider,{value:null},"function"==typeof r?r(e,o):a.a.cloneElement(a.a.Children.only(r),o))},t}(a.a.Component);function g(){}m.contextType=l.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=p,m.EXITED=y,m.ENTERING=b,m.ENTERED=h,m.EXITING=d,t.default=m},1812:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=r(148).Buffer,s=r(1813).inspect,l=s&&s.custom||"inspect";e.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}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,r,n,o=u.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,u.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return s(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},1814:function(e,t,r){"use strict";(function(t){var n;function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(774),a=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),s=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function y(e,t){return{value:e,done:t}}function b(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[l]=null,e[a]=null,e[c]=null,t(y(r,!1)))}}function h(e){t.nextTick(b,e)}var d=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((o(n={get stream(){return this[p]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[s])return Promise.resolve(y(void 0,!0));if(this[p].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(y(void 0,!0))}))}));var n,o=this[l];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[s]?r(y(void 0,!0)):t[f](r,n)}),n)}}(o,this));else{var i=this[p].read();if(null!==i)return Promise.resolve(y(i,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[p].destroy(null,(function(e){e?r(e):t(y(void 0,!0))}))}))})),n),d);e.exports=function(e){var t,r=Object.create(m,(o(t={},p,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,s,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var n=r[p].read();n?(r[l]=null,r[a]=null,r[c]=null,e(y(n,!1))):(r[a]=e,r[c]=t)},writable:!0}),t));return r[l]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[l]=null,r[a]=null,r[c]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[c]=null,n(y(void 0,!0))),r[s]=!0})),e.on("readable",h.bind(null,r)),r}}).call(this,r(120))},1815:function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},1816:function(e,t,r){"use strict";e.exports=o;var n=r(1056);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(58)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},1817:function(e,t,r){"use strict";var n;var o=r(424).codes,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function c(e){if(e)throw e}function u(e){e()}function s(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?c:e.pop():c}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var p=t.map((function(e,o){var i=o<t.length-1;return function(e,t,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var c=!1;e.on("close",(function(){c=!0})),void 0===n&&(n=r(774)),n(e,{readable:t,writable:o},(function(e){if(e)return i(e);c=!0,i()}));var u=!1;return function(t){if(!c&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new a("pipe"))}}(e,i,o>0,(function(e){l||(l=e),e&&p.forEach(u),i||(p.forEach(u),f(l))}))}));return t.reduce(s)}},2079:function(e,t,r){"use strict";r.d(t,"a",(function(){return wt})),r.d(t,"b",(function(){return Sr})),r.d(t,"d",(function(){return ra})),r.d(t,"e",(function(){return ha})),r.d(t,"f",(function(){return Ea})),r.d(t,"g",(function(){return Uc})),r.d(t,"h",(function(){return hl})),r.d(t,"i",(function(){return Pl})),r.d(t,"c",(function(){return ey}));var n=r(0),o=r.n(n),i=r(663),a=r(1),c=r.n(a),u=r(2271),s=r(346);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},l(e)}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=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(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j=o.a.oneOfType([o.a.string,o.a.shape({stiffness:o.a.number,nonAnimatedProps:o.a.arrayOf(o.a.string),damping:o.a.number}),o.a.bool]),w={animatedProps:o.a.arrayOf(o.a.string).isRequired,animation:j,onStart:o.a.func,onEnd:o.a.func};function _(e){var t=e.animatedProps,r=m(e,["animatedProps"]);return t.reduce((function(e,t){return Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]),e}),{})}var P=function(e){!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&&y(e,t)}(i,e);var t,r,n,o=b(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),O(h(t=o.call(this,e)),"_motionEndHandler",(function(){t.props.onEnd&&t.props.onEnd()})),O(h(t),"_renderChildren",(function(e){var r=e.i,n=t.props.children,o=t._interpolator,i=c.a.Children.only(n),a=o?o(r):o,u=a&&a.data||null;return u&&i.props._data&&(u=u.map((function(e,t){var r=i.props._data[t];return v(v({},e),{},{parent:r.parent,children:r.children})}))),c.a.cloneElement(i,v(v(v({},i.props),a),{},{data:u||i.props.data||null,_animation:Math.random()}))})),t._updateInterpolator(e),t}return t=i,r=[{key:"UNSAFE_componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=Object(u.a)(_(e),t?_(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.presets.noWobble;if("string"==typeof e)return s.presets[e]||s.presets.noWobble;var t=e.damping,r=e.stiffness;return v(v({},e),{},{damping:t||s.presets.noWobble.damping,stiffness:r||s.presets.noWobble.stiffness})}(this.props.animation),t={i:Object(s.spring)(1,e)},r=Math.random();return c.a.createElement(s.Motion,f({defaultStyle:{i:0},style:t,key:r},{onRest:this._motionEndHandler}),this._renderChildren)}}],r&&p(t.prototype,r),n&&p(t,n),i}(a.PureComponent);P.propTypes=w,P.displayName="Animation";var S,E=P,k=j,x=r(1243),R=r(2255),T=r(1235),D=r(2256),M=r(1236),A=r(2257),C=r(2258),N=r(1240),L=r(2280),I=r(263);function F(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||B(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){if(e){if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U="linear",X="ordinal",Y="category",K="literal",$="time",Z=(G(S={},U,x.a),G(S,X,R.a),G(S,Y,T.a),G(S,K,be),G(S,"log",D.a),G(S,$,M.b),G(S,"time-utc",A.a),S),J=["color","fill","opacity","stroke"];function Q(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function ee(e){if(!e)return null;var t=e.type,r=e.domain,n=e.range,o=r[0]===r[1]?0===r[0]?[-1,0]:[-r[0],r[0]]:r;if(t===K)return be(n[0]);var i=Z[t]().domain(o).range(n);return t===X&&(i.padding(.5),function(e){e.invert||(e.invert=function(t){var r=W(e.range(),2),n=r[0],o=r[1],i=Math.min(n,o),a=Math.max(n,o);if(t<i+e.padding()*e.step())return e.domain()[0];if(t>a-e.padding()*e.step())return e.domain()[e.domain().length-1];var c=Math.floor((t-i-e.padding()*e.step())/e.step());return e.domain()[c]})}(i)),i}function te(e,t,r,n){var o=e.reduce((function(e,n){var o=t(n),i=r(n);return ce(o)&&e.push(o),ce(i)&&e.push(i),e}),[]);return o.length?n!==X&&n!==Y?Object(C.a)(o):Object(N.a)(o).values():[]}function re(e,t,r,n,o){return r===K?{type:K,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:o}:void 0===t?null:{type:Y,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:o}}function ne(e,t){var r=t.domain,n=t.type,o=t.accessor,i=t.accessor0,a=function(e,t){var r=new Set(e.map(t));return Array.from(r)}(e,o),c=function(e,t,r,n){return n===$&&1===t.length?[r(e[0])].concat(q(t)):t}(e,a,i,n),u=function(e,t){var r=ee(t),n=0;if(r)for(var o,i,a=r(e[0]),c=1/0,u=1;u<e.length;u++)o=r(e[u]),(i=Math.abs(o-a))<c&&(c=i,n=u),a=o;return n}(c,t),s=[].concat(r);s[0]-=function(e){return e.length>1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(c),s[r.length-1]+=function(e){return e.length>1?(e[e.length-1]-e[e.length-2])/2:1===e.length?e[0]-.5:0}(c),"log"===n&&r[0]<=0&&(s[0]=Math.min(r[1]/10,1));var l=function(e,t,r,n){if(e.length>1){var o=Math.max(r,1);return Math.abs(n(e[o])-n(e[o-1]))}return 1===e.length?Math.abs(n(t[1])-n(t[0])):0}(c,s,u,ee(V(V({},t),{},{domain:s})));return{domain0:s[0],domainN:s[s.length-1],distance:l}}function oe(e,t){var r=function(e,t){var r,n=e[t],o=e["_".concat(t,"Value")],i=e["".concat(t,"Range")],a=e["".concat(t,"Distance")],c=void 0===a?0:a,u=e["".concat(t,"BaseValue")],s=e["".concat(t,"Type")],l=void 0===s?U:s,f=e["".concat(t,"NoFallBack")],p=e["get".concat(Q(t))],y=void 0===p?function(e){return e[t]}:p,b=e["get".concat(Q(t),"0")],h=void 0===b?function(e){return e["".concat(t,"0")]}:b,d=e["".concat(t,"Domain")];return f||void 0===n?(void 0!==u&&(d=function(e,t){var r=[].concat(e);return r[0]>t&&(r[0]=t),r[r.length-1]<t&&(r[r.length-1]=t),r}(d,u)),i&&d&&d.length?{domain:(r={domain:d,range:i,type:l,distance:c,attr:t,baseValue:u,accessor:y,accessor0:h}).domain,range:r.range,type:r.type,distance:r.distance,attr:r.attr,baseValue:r.baseValue,isValue:!1,accessor:r.accessor,accessor0:r.accessor0}:re(t,o,e["".concat(t,"Type")],y,h)):re(t,n,e["".concat(t,"Type")],y,h)}(e,t);if(!r)return null;if(!function(e,t){var r=t.attr,n=e._adjustBy,o=void 0===n?[]:n,i=e._adjustWhat;return(void 0===i?[]:i).length&&o.length&&-1!==o.indexOf(r)}(e,r))return r;var n=r.type;return n===X||n===Y?function(e){var t=ee(e),r=e.domain,n=e.range;return r.length>1?e.distance=Math.abs(t(r[1])-t(r[0])):e.distance=Math.abs(n[1]-n[0]),e}(r):function(e,t){var r=e._allData,n=e._adjustWhat,o=void 0===n?[]:n,i=t.domain.length,a=t.domain,c=a[0],u=a[i-1],s=t.distance;return r.forEach((function(e,r){if(-1!==o.indexOf(r)&&e&&e.length){var n=ne(e,t),i=n.domain0,a=n.domainN,l=n.distance;c=Math.min(c,i),u=Math.max(u,a),s=Math.max(s,l)}})),t.domain=[c].concat(q(a.slice(1,-1)),[u]),t.distance=s,t}(e,r)}function ie(e,t){return ee(oe(e,t))}function ae(e,t){return t(e.data?e.data:e)}function ce(e){return void 0!==e}function ue(e,t){var r=oe(e,t);if(r){var n=ee(r);return function(e){return n(ae(e,r.accessor))}}return null}function se(e,t){var r=oe(e,t);if(r){var n=r.domain,o=r.baseValue,i=void 0===o?n[0]:o,a=ee(r);return function(e){var t=ae(e,r.accessor0);return a(ce(t)?t:i)}}return null}function le(e,t){var r=oe(e,t);return r?(r.isValue||void 0!==e["_".concat(t,"Value")]||Object(I.b)("[React-vis] Cannot use data defined ".concat(t," for this ")+"series type. Using fallback value instead."),e["_".concat(t,"Value")]||r.range[0]):null}function fe(e){var t;return G(t={},"_".concat(e,"Value"),o.a.any),G(t,"".concat(e,"Domain"),o.a.array),G(t,"get".concat(Q(e)),o.a.func),G(t,"get".concat(Q(e),"0"),o.a.func),G(t,"".concat(e,"Range"),o.a.array),G(t,"".concat(e,"Type"),o.a.oneOf(Object.keys(Z))),G(t,"".concat(e,"Distance"),o.a.number),G(t,"".concat(e,"BaseValue"),o.a.any),t}function pe(e,t){var r={};return Object.keys(e).forEach((function(n){t.find((function(e){var t=0===n.indexOf(e),r=0===n.indexOf("_".concat(e)),o=0===n.indexOf("get".concat(Q(e)));return t||r||o}))&&(r[n]=e[n])})),r}function ye(e,t,r){var n={};return r.forEach((function(r){e["get".concat(Q(r))]||(n["get".concat(Q(r))]=function(e){return e[r]}),e["get".concat(Q(r),"0")]||(n["get".concat(Q(r),"0")]=function(e){return e["".concat(r,"0")]}),e["".concat(r,"Domain")]||(n["".concat(r,"Domain")]=te(t,e["get".concat(Q(r))]||n["get".concat(Q(r))],e["get".concat(Q(r),"0")]||n["get".concat(Q(r),"0")],e["".concat(r,"Type")]),e["".concat(r,"Padding")]&&(n["".concat(r,"Domain")]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var r=W(e,2),n=r[0],o=r[1],i=.01*t*(o-n);return[n-i,o+i]}(n["".concat(r,"Domain")],e["".concat(r,"Padding")])))})),n}function be(e){function t(t){return void 0===t?e:t}function r(){return t}return t.domain=r,t.range=r,t.unknown=r,t.copy=r,t}function he(e){return e?Object(L.b)(e).l>.57?"#222":"#fff":null}function de(e,t){var r=J.reduce((function(t,r){var n=e["".concat(r,"Domain")],o=e["".concat(r,"Range")],i=e["".concat(r,"Type")];return n&&o&&i?V(V({},t),{},G({},r,Z[i]().domain(n).range(o))):t}),{});return t.map((function(e){return J.reduce((function(t,n){if(e.props&&void 0!==e.props[n]){var o=e.props[n],i=r[n],a=i?i(o):o;return V(V({},t),{},G({},"_".concat(n,"Value"),a))}return t}),{})}))}var me=["Padding"].map((function(e){return new RegExp("".concat(e,"$"),"i")}));function ge(e){return Object.keys(e).reduce((function(t,r){return me.every((function(e){return!r.match(e)}))||(t[r]=e[r]),t}),{})}function ve(e){return ve="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},ve(e)}function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function je(e,t){return je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},je(e,t)}function we(e){var t=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(e){return!1}}();return function(){var r,n=Pe(e);if(t){var o=Pe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;return _e(e)}(this,r)}}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xe=Ee(Ee(Ee(Ee(Ee(Ee({},fe("x")),fe("y")),fe("size")),fe("opacity")),fe("color")),{},{width:o.a.number,height:o.a.number,data:o.a.arrayOf(o.a.oneOfType([o.a.object,o.a.array])),onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,onValueClick:o.a.func,onValueRightClick:o.a.func,onSeriesMouseOver:o.a.func,onSeriesMouseOut:o.a.func,onSeriesClick:o.a.func,onSeriesRightClick:o.a.func,onNearestX:o.a.func,onNearestXY:o.a.func,style:o.a.object,animation:k,stack:o.a.bool}),Re=function(e){!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&&je(e,t)}(a,e);var t,r,n,o=we(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ke(_e(e=o.call.apply(o,[this].concat(r))),"_seriesClickHandler",(function(t){var r=e.props.onSeriesClick;r&&r({event:t})})),ke(_e(e),"_seriesMouseOutHandler",(function(t){var r=e.props.onSeriesMouseOut;r&&r({event:t})})),ke(_e(e),"_seriesMouseOverHandler",(function(t){var r=e.props.onSeriesMouseOver;r&&r({event:t})})),ke(_e(e),"_seriesRightClickHandler",(function(t){var r=e.props.onSeriesRightClick;r&&r({event:t})})),ke(_e(e),"_valueClickHandler",(function(t,r){var n=e.props,o=n.onValueClick,i=n.onSeriesClick;o&&o(t,{event:r}),i&&i({event:r})})),ke(_e(e),"_valueMouseOutHandler",(function(t,r){var n=e.props,o=n.onValueMouseOut,i=n.onSeriesMouseOut;o&&o(t,{event:r}),i&&i({event:r})})),ke(_e(e),"_valueMouseOverHandler",(function(t,r){var n=e.props,o=n.onValueMouseOver,i=n.onSeriesMouseOver;o&&o(t,{event:r}),i&&i({event:r})})),ke(_e(e),"_valueRightClickHandler",(function(t,r){var n=e.props,o=n.onValueRightClick,i=n.onSeriesRightClick;o&&o(t,{event:r}),i&&i({event:r})})),e}return t=a,n=[{key:"getParentConfig",value:function(){return{}}},{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"onParentMouseMove",value:function(e){var t=this.props,r=t.onNearestX,n=t.onNearestXY,o=t.data;(r||n)&&o&&(n?this._handleNearestXY(e):this._handleNearestX(e))}},{key:"onParentTouchMove",value:function(e){e.preventDefault(),this.onParentMouseMove(e)}},{key:"onParentTouchStart",value:function(e){e.preventDefault()}},{key:"_getAttr0Functor",value:function(e){return se(this.props,e)}},{key:"_getAttributeFunctor",value:function(e){return ue(this.props,e)}},{key:"_getAttributeValue",value:function(e){return le(this.props,e)}},{key:"_getScaleDistance",value:function(e){var t=oe(this.props,e);return t?t.distance:0}},{key:"_getXYCoordinateInContainer",value:function(e){var t=this.props,r=t.marginTop,n=void 0===r?0:r,o=t.marginLeft,i=void 0===o?0:o,a=e.nativeEvent,c=e.currentTarget,u=c.getBoundingClientRect(),s=a.clientX,l=a.clientY;return"touchmove"===a.type&&(s=a.touches[0].pageX,l=a.touches[0].pageY),{x:s-u.left-c.clientLeft-i,y:l-u.top-c.clientTop-n}}},{key:"_handleNearestX",value:function(e){var t=this.props,r=t.onNearestX,n=t.data,o=Number.POSITIVE_INFINITY,i=null,a=null,c=this._getXYCoordinateInContainer(e),u=this._getAttributeFunctor("x");n.forEach((function(e,t){var r=u(e),n=Math.abs(c.x-r);n<o&&(o=n,i=e,a=t)})),i&&r(i,{innerX:u(i),index:a,event:e.nativeEvent})}},{key:"_handleNearestXY",value:function(e){var t=this.props,r=t.onNearestXY,n=t.data,o=this._getXYCoordinateInContainer(e),a=this._getAttributeFunctor("x"),c=this._getAttributeFunctor("y"),u=Object(i.a)().x(a).y(c)(n).find(o.x,o.y),s=u.data;s&&r(s,{innerX:u[0],innerY:u[1],index:u.index,event:e.nativeEvent})}}])&&Oe(t.prototype,r),n&&Oe(t,n),a}(a.PureComponent);Re.displayName="AbstractSeries",Re.propTypes=xe,Re.defaultProps={className:"",stack:!1,style:{}};var Te=Re,De=r(1159),Me=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],Ae=["#19CDD7","#DDB27C","#88572C","#FF991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],Ce=["#EF5D28","#FF9833"],Ne=[1,10],Le="literal",Ie=Me[0];function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(e){return e.type.prototype instanceof Te}function We(e){return c.a.Children.toArray(e).filter((function(e){return e&&qe(e)}))}function Be(e,t){var r=e.some((function(e){return e&&e.props.stack})),n={};return e.reduce((function(e,o){if(!o)return e.push(null),e;var i=o.type.displayName,a=o.props,c=a.data,u=a.cluster,s=void 0===u?"default":u,l=a.stack,f=function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.some((function(e){return e.radius&&e.angle}))}(e)?e.map((function(e){return He(He({},e),{},{x:e.radius*Math.cos(e.angle),y:e.radius*Math.sin(e.angle)})})):e}(c);if(!t||!f||!f.length||r&&!l)return e.push(f),e;var p="".concat(t,"0"),y="y"===t?"x":"y";return e.push(f.map((function(e){var r,o;n[s]||(n[s]={}),n[s][i]||(n[s][i]={});var a,c=n[s][i][e[y]];if(!c)return n[s][i][e[y]]=(Ve(a={},p,e[p]),Ve(a,t,e[t]),a),He({},e);var u=He(He({},e),{},(Ve(r={},p,c[t]),Ve(r,t,c[t]+e[t]-(e[p]||0)),r));return n[s][i][e[y]]=(Ve(o={},p,u[p]),Ve(o,t,u[t]),o),u}))),e}),[])}function ze(e){var t=[],r=function(e){var t={};return e.filter(qe).forEach((function(e){var r=e.type.displayName,n=e.props.cluster;t[r]||(t[r]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),t[r].clusters.add(n),t[r].sameTypeTotal++})),t}(e),n=0;return e.forEach((function(e){var o;if(qe(e)){var i=r[e.type.displayName],a=Me[n%Me.length];o=He(He({},i),{},{seriesIndex:n,_colorValue:a,_opacityValue:1}),i.sameTypeIndex++,n++,e.props.cluster&&(o.cluster=e.props.cluster,o.clusters=Array.from(i.clusters),o.sameTypeTotal=o.clusters.length,o.sameTypeIndex=o.clusters.indexOf(e.props.cluster))}t.push(o)})),t}function Ge(e){return e.reduce((function(e,t){return Math.max(t.radius,e)}),0)}var Ue=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function Xe(e){var t=e._stackBy,r=e.valuePosAttr,n=e.cluster,o=e.sameTypeTotal,i=void 0===o?1:o,a=e.sameTypeIndex,c=void 0===a?0:a;return t!==r||n||(i=1,c=0),{sameTypeTotal:i,sameTypeIndex:c}}function Ye(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((function(e){return e&&"string"==typeof e})).join(" ")}function Ke(e){return Ke="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},Ke(e)}function $e(){return $e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$e.apply(this,arguments)}function Ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t){return Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Je(e,t)}function Qe(e){var t=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(e){return!1}}();return function(){var r,n=et(e);if(t){var o=et(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ke(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},et(e)}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ot="rv-xy-plot__series rv-xy-plot__series--arc",it=["radius","angle"],at=rt(rt({},Te.defaultProps),{},{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});function ct(e){var t=e.radius,r=e.angle,n=e.angle0,o=-1*r+Math.PI/2,i=-1*n+Math.PI/2;return rt(rt({},e),{},{x:t*Math.cos(o),y:t*Math.sin(o),angle:o,angle0:i})}var ut=function(e){!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&&Je(e,t)}(i,e);var t,r,n,o=Qe(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=(t=o.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:r},t}return t=i,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({scaleProps:this._getAllScaleProps(e)})}},{key:"_getAllScaleProps",value:function(e){var t=this._getDefaultScaleProps(e),r=pe(e,it),n=ye(rt(rt({},t),r),e.data,it);return rt(rt(rt({},t),r),n)}},{key:"_getDefaultScaleProps",value:function(e){var t=e.innerWidth,r=e.innerHeight,n=Math.min(t/2,r/2);return{radiusRange:[0,n],_radiusValue:n,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,r=t.arcClassName,n=t.animation,o=t.className,a=t.center,u=t.data,s=t.disableSeries,l=t.hideSeries,f=t.marginLeft,p=t.marginTop,y=t.padAngle,b=t.style;if(!u)return null;if(n){var h=u.map((function(e){return rt({},e)}));return c.a.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},c.a.createElement(E,$e({},this.props,{animatedProps:Ue,data:h}),c.a.createElement(i,$e({},this.props,{animation:null,disableSeries:!0,data:h}))),c.a.createElement(i,$e({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var d=this.state.scaleProps,m=d.radiusDomain,g=ue(d,"radius"),v=se(d,"radius"),O=ue(d,"angle"),j=se(d,"angle"),w=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("opacity"),S=this._getAttributeFunctor("x"),k=this._getAttributeFunctor("y");return c.a.createElement("g",{className:Ye(ot,o),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:l?0:1,pointerEvents:s?"none":"all",transform:"translate(".concat(f+S(a),",").concat(p+k(a),")")},u.map((function(t,n){var o={innerRadius:m[1]===m[0]?0:v(t),outerRadius:g(t),startAngle:j(t)||0,endAngle:O(t)},i=Object(De.a)().padAngle(y),a=t.style||{},u=t.className||"";return c.a.createElement("path",{key:"path-".concat(n),style:rt(rt({opacity:P&&P(t),stroke:_&&_(t),fill:w&&w(t)},b),a),onClick:function(r){return e._valueClickHandler(ct(t),r)},onContextMenu:function(r){return e._valueRightClickHandler(ct(t),r)},onMouseOver:function(r){return e._valueMouseOverHandler(ct(t),r)},onMouseOut:function(r){return e._valueMouseOutHandler(ct(t),r)},className:"".concat(ot,"-path ").concat(r," ").concat(u),d:i(o)})})))}}])&&Ze(t.prototype,r),n&&Ze(t,n),i}(Te);ut.propTypes=rt(rt(rt(rt({},Te.propTypes),fe("radius")),fe("angle")),{},{center:o.a.shape({x:o.a.number,y:o.a.number}),arcClassName:o.a.string,padAngle:o.a.oneOfType([o.a.func,o.a.number])}),ut.defaultProps=at,ut.displayName="ArcSeries";var st=ut,lt=r(627),ft=r(243);function pt(e){return pt="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},pt(e)}function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){ht(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ht(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dt(){return dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dt.apply(this,arguments)}function mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function vt(e){var t=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(e){return!1}}();return function(){var r,n=Ot(e);if(t){var o=Ot(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===pt(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ot(e)}var jt=function(e){!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&&gt(e,t)}(i,e);var t,r,n,o=vt(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_renderArea",value:function(e,t,r,n,o,i){var a=lt.a();return null!==o&&("string"==typeof o&&ft[o]?a=a.curve(ft[o]):"function"==typeof o&&(a=a.curve(o))),(a=(a=a.defined(i)).x(t).y0(r).y1(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,n=e.curve,o=e.data,a=e.marginLeft,u=e.marginTop,s=e.style;if(this.props.nullAccessor&&Object(I.b)("nullAccessor has been renamed to getNull",!0),!o)return null;if(t)return c.a.createElement(E,dt({},this.props,{animatedProps:Ue}),c.a.createElement(i,dt({},this.props,{animation:null})));var l=this._getAttributeFunctor("x"),f=this._getAttributeFunctor("y"),p=this._getAttr0Functor("y"),y=this._getAttributeValue("stroke")||this._getAttributeValue("color"),b=this._getAttributeValue("fill")||this._getAttributeValue("color"),h=this._getAttributeValue("opacity"),d=Number.isFinite(h)?h:1,m=this.props.nullAccessor||this.props.getNull,g=this._renderArea(o,l,p,f,n,m);return c.a.createElement("path",{d:g,className:Ye("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(a,",").concat(u,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:bt({opacity:d,stroke:y,fill:b},s)})}}])&&mt(t.prototype,r),n&&mt(t,n),i}(Te);jt.displayName="AreaSeries",jt.propTypes=bt(bt({},Te.propTypes),{},{getNull:o.a.func}),jt.defaultProps=bt(bt({},Te.defaultProps),{},{getNull:function(){return!0}});var wt=jt;function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Et={style:o.a.shape({bottom:o.a.object,left:o.a.object,right:o.a.object,top:o.a.object}),marginTop:o.a.number,marginBottom:o.a.number,marginLeft:o.a.number,marginRight:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number},kt="rv-xy-plot__borders-bottom",xt="rv-xy-plot__borders",Rt="rv-xy-plot__borders-left",Tt="rv-xy-plot__borders-right",Dt="rv-xy-plot__borders-top";function Mt(e){var t=e.marginTop,r=e.marginBottom,n=e.marginLeft,o=e.marginRight,i=e.innerWidth,a=e.innerHeight,u=e.style,s=e.className,l=a+t+r,f=i+n+o;return c.a.createElement("g",{className:Ye(xt,s)},c.a.createElement("rect",{className:Ye(kt,"".concat(s,"-bottom")),style:Pt(Pt({},u.all),u.bottom),x:0,y:l-r,width:f,height:r}),c.a.createElement("rect",{className:Ye(Rt,"".concat(s,"-left")),style:Pt(Pt({},u.all),u.left),x:0,y:0,width:n,height:l}),c.a.createElement("rect",{className:Ye(Tt,"".concat(s,"-right")),style:Pt(Pt({},u.all),u.right),x:f-o,y:0,width:o,height:l}),c.a.createElement("rect",{className:Ye(Dt,"".concat(s,"-top")),style:Pt(Pt({},u.all),u.top),x:0,y:0,width:f,height:t}))}Mt.displayName="Borders",Mt.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},Mt.propTypes=Et,Mt.requiresSVG=!0;function At(e){return At="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},At(e)}function Ct(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nt(e,t){return Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nt(e,t)}function Lt(e){var t=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(e){return!1}}();return function(){var r,n=It(e);if(t){var o=It(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function It(e){return It=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},It(e)}var Ft=function(e){!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&&Nt(e,t)}(i,e);var t,r,n,o=Lt(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"render",value:function(){var e=this.props,t=e.innerHeight,r=e.innerWidth,n=e.marginBottom,o=e.marginLeft,i=e.marginRight,a=e.marginTop,u=e.className,s=e.includeMargin,l=e.style,f=e.text,p=(r+(s?o+i:0))*e.xPercent+(s?0:o),y=(t+(s?a+n:0))*e.yPercent+(s?a:0);return c.a.createElement("g",{transform:"translate(".concat(p,", ").concat(y,")"),className:Ye("rv-xy-plot__axis__title",u)},c.a.createElement("text",l,f))}}])&&Ct(t.prototype,r),n&&Ct(t,n),i}(c.a.PureComponent);Ft.displayName="ChartLabel",Ft.propTypes={className:o.a.string,includeMargin:o.a.bool,style:o.a.object,text:o.a.string.isRequired,xPercent:o.a.number.isRequired,yPercent:o.a.number.isRequired},Ft.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};var Ht=r(2061),Vt={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",VERTICAL:"vertical",HORIZONTAL:"horizontal"},qt={VERTICAL:"vertical",HORIZONTAL:"horizontal"};function Wt(e){return e<700?e>300?10:5:20}function Bt(e,t,r){return r||(e.ticks?e.ticks(t):e.domain())}function zt(e){return zt="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},zt(e)}function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(r),!0).forEach((function(t){Xt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(this,arguments)}function Kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $t(e,t){return $t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$t(e,t)}function Zt(e){var t=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(e){return!1}}();return function(){var r,n=Jt(e);if(t){var o=Jt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===zt(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Jt(e){return Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(e)}var Qt=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],er=function(e){!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&&$t(e,t)}(i,e);var t,r,n,o=Zt(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop;return{left:e.marginLeft,top:n,width:t,height:r,style:{},tickTotal:Wt(Math.min(t,r))}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.centerX,n=e.centerY;if(t)return c.a.createElement(E,Yt({},this.props,{animatedProps:Qt}),c.a.createElement(i,Yt({},this.props,{animation:null})));var o=Ut(Ut({},this._getDefaultProps()),this.props),a=o.tickTotal,u=o.tickValues,s=o.marginLeft,l=o.marginTop,f=o.rRange,p=o.style,y=ie(o,"x"),b=ie(o,"y"),h=Bt(y,a,u);return c.a.createElement("g",{transform:"translate(".concat(y(r)+s,",").concat(b(n)+l,")"),className:"rv-xy-plot__circular-grid-lines"},h.reduce((function(e,t,r){var n=y(t);return f&&(n<f[0]||n>f[1])?e:e.concat([c.a.createElement("circle",Yt({cx:0,cy:0,r:n},{key:r,className:"rv-xy-plot__circular-grid-lines__line",style:p}))])}),[]))}}])&&Kt(t.prototype,r),n&&Kt(t,n),i}(a.PureComponent);er.displayName="CircularGridLines",er.propTypes={centerX:o.a.number,centerY:o.a.number,width:o.a.number,height:o.a.number,top:o.a.number,left:o.a.number,rRange:o.a.arrayOf(o.a.number),style:o.a.object,tickValues:o.a.arrayOf(o.a.number),tickTotal:o.a.number,animation:k,marginTop:o.a.number,marginBottom:o.a.number,marginLeft:o.a.number,marginRight:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number},er.defaultProps={centerX:0,centerY:0},er.requiresSVG=!0;var tr=r(2269),rr=r(2270);function nr(e){return nr="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},nr(e)}function or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?or(Object(r),!0).forEach((function(t){ar(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ar(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sr(e,t){return sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sr(e,t)}function lr(e){var t=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(e){return!1}}();return function(){var r,n=fr(e);if(t){var o=fr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===nr(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}var pr=function(e){!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&&sr(e,t)}(i,e);var t,r,n,o=lr(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.bandwidth,n=e.className,o=e.colorRange,a=e.data,u=e.innerHeight,s=e.innerWidth,l=e.marginLeft,f=e.marginTop,p=e.style;if(!a||!s||!u)return null;if(t)return c.a.createElement(E,cr({},this.props,{animatedProps:Ue}),c.a.createElement(i,cr({},this.props,{animation:null})));var y=this._getAttributeFunctor("x"),b=this._getAttributeFunctor("y"),h=Object(tr.a)().x((function(e){return y(e)})).y((function(e){return b(e)})).size([s,u]).bandwidth(r)(a),d=Object(rr.a)(),m=function(e){return e.reduce((function(e,t){return{min:Math.min(e.min,t.value),max:Math.max(e.max,t.value)}}),{min:1/0,max:-1/0})}(h),g=m.min,v=m.max,O=Object(x.a)().domain([g,v]).range(o||Ce);return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--contour",n),transform:"translate(".concat(l,",").concat(f,")")},h.map((function(e,t){return c.a.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-".concat(t),d:d(e),style:ir({fill:O(e.value)},p)})})))}}])&&ur(t.prototype,r),n&&ur(t,n),i}(Te);pr.propTypes=ir(ir({},Te.propTypes),{},{animation:o.a.bool,bandwidth:o.a.number,className:o.a.string,marginLeft:o.a.number,marginTop:o.a.number,style:o.a.object}),pr.defaultProps=ir(ir({},Te.defaultProps),{},{bandwidth:40,style:{}});function yr(e){return yr="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},yr(e)}function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gr(e,t){return gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gr(e,t)}function vr(e){var t=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(e){return!1}}();return function(){var r,n=Or(e);if(t){var o=Or(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===yr(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Or(e){return Or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Or(e)}function jr(e){var t=_r(e);if(t)return{title:"x",value:F(t.x)}}function wr(e){return e.map((function(e,t){if(e)return{value:e.y,title:t}}))}function _r(e){return(e||[]).find((function(e){return Boolean(e)}))}var Pr=function(e){!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&&gr(e,t)}(a,e);var t,r,n,i=vr(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"defaultProps",get:function(){return{titleFormat:jr,itemsFormat:wr,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:o.a.string,values:o.a.arrayOf(o.a.oneOfType([o.a.number,o.a.string,o.a.object,o.a.bool])),series:o.a.object,innerWidth:o.a.number,innerHeight:o.a.number,marginLeft:o.a.number,marginTop:o.a.number,orientation:o.a.oneOf(["left","right"]),itemsFormat:o.a.func,titleFormat:o.a.func,style:o.a.shape({line:o.a.object,title:o.a.object,box:o.a.object})}}}],(r=[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,r=(0,e.itemsFormat)(t);return r?r.filter((function(e){return e})).map((function(e,t){return c.a.createElement("div",{className:"rv-crosshair__item",key:"item".concat(t)},c.a.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",c.a.createElement("span",{className:"rv-crosshair__item__value"},e.value))})):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,r=e.titleFormat,n=e.style,o=r(t);return o?c.a.createElement("div",{className:"rv-crosshair__title",key:"title",style:n.title},c.a.createElement("span",{className:"rv-crosshair__title__title"},o.title),": ",c.a.createElement("span",{className:"rv-crosshair__title__value"},o.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.values,o=e.marginTop,i=e.marginLeft,a=e.innerWidth,u=e.innerHeight,s=e.style,l=_r(n);if(!l)return null;var f=ue(this.props,"x")(l),p=this.props.orientation,y=i+f,b=o,h="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===p?f>a/2?"left":"right":p);return c.a.createElement("div",{className:Ye("rv-crosshair",r),style:{left:"".concat(y,"px"),top:"".concat(b,"px")}},c.a.createElement("div",{className:"rv-crosshair__line",style:hr({height:"".concat(u,"px")},s.line)}),c.a.createElement("div",{className:h},t||c.a.createElement("div",{className:"rv-crosshair__inner__content",style:s.box},c.a.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems()))))}}])&&mr(t.prototype,r),n&&mr(t,n),a}(a.PureComponent);Pr.displayName="Crosshair";var Sr=Pr;function Er(e){return Er="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},Er(e)}function kr(){return kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kr.apply(this,arguments)}function xr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rr(e,t){return Rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rr(e,t)}function Tr(e){var t=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(e){return!1}}();return function(){var r,n=Dr(e);if(t){var o=Dr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Er(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Dr(e){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dr(e)}function Mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(r),!0).forEach((function(t){Cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nr(e){return function(e){if(Array.isArray(e))return Lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ir={stroke:"blue",fill:"blue"};function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ir;switch(e){case"diamond":return c.a.createElement("polygon",{style:r,points:"0 0 ".concat(t/2," ").concat(t/2," 0 ").concat(t," ").concat(-t/2," ").concat(t/2," 0 0")});case"star":var n=Nr(new Array(5)).map((function(e,r){var n=r/5*Math.PI*2,o=n+Math.PI/10,i=n-Math.PI/10,a=t/2.61;return"\n        ".concat(Math.cos(i)*t," ").concat(Math.sin(i)*t,"\n        ").concat(Math.cos(o)*a," ").concat(Math.sin(o)*a,"\n      ")})).join(" ");return c.a.createElement("polygon",{points:n,x:"0",y:"0",height:t,width:t,style:r});case"square":return c.a.createElement("rect",{x:"".concat(-t/2),y:"".concat(-t/2),height:t,width:t,style:r});default:return c.a.createElement("circle",{cx:"0",cy:"0",r:t/2,style:r})}}var Hr=function(e){!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&&Rr(e,t)}(i,e);var t,r,n,o=Tr(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,o=t.customComponent,a=t.data,u=t.innerHeight,s=t.innerWidth,l=t.marginLeft,f=t.marginTop,p=t.style,y=t.size;if(!a||!s||!u)return null;if(r)return c.a.createElement(E,kr({},this.props,{animatedProps:Ue}),c.a.createElement(i,kr({},this.props,{animation:!1})));var b=this._getAttributeFunctor("x"),h=this._getAttributeFunctor("y"),d=a.map((function(t,r){var n={x:b(t),y:h(t)},i=function(e){var t=e.customComponent,r=e.defaultType,n=e.positionInPixels,o=e.positionFunctions,i=e.style,a=e.propsSize,c=t.size,u=Ar(Ar({},i),t.style||{}),s=t.customComponent;return s||"string"!=typeof r?s?"string"==typeof s?Fr(s||r,c,u):s(t,n,u,o):r(t,n,u,o):Fr(r,c||a,u)}({customComponent:t,positionInPixels:n,defaultType:o,positionFunctions:{x:b,y:h},style:p,propsSize:y});return c.a.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-".concat(r),transform:"translate(".concat(n.x,",").concat(n.y,")"),onMouseEnter:function(r){return e._valueMouseOverHandler(t,r)},onMouseLeave:function(r){return e._valueMouseOutHandler(t,r)}},i)}));return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper",n),transform:"translate(".concat(l,",").concat(f,")")},d)}}])&&xr(t.prototype,r),n&&xr(t,n),i}(Te);Hr.propTypes={animation:o.a.bool,className:o.a.string,customComponent:o.a.oneOfType([o.a.string,o.a.func]),data:o.a.arrayOf(o.a.shape({x:o.a.oneOfType([o.a.string,o.a.number]).isRequired,y:o.a.oneOfType([o.a.string,o.a.number]).isRequired})).isRequired,marginLeft:o.a.number,marginTop:o.a.number,style:o.a.object,size:o.a.number,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func},Hr.defaultProps=Ar(Ar({},Te.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});var Vr=r(2062);function qr(){return qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}function Wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(r),!0).forEach((function(t){zr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gr(e){var t=e.axisDomain,r=e.numberOfTicks,n=e.axisStart,o=e.axisEnd,i=e.tickValue,a=e.tickSize,u=e.style,s=function(e){var t=e.axisStart,r=e.axisEnd,n=e.numberOfTicks,o=e.axisDomain,i=function(e,t){if(e.x===t.x)return{left:e.y,right:t.y,slope:0,offset:e.x};var r=(e.y-t.y)/(e.x-t.x);return{left:e.x,right:t.x,slope:r,offset:e.y-r*e.x}}(t,r),a=i.left,c=i.right,u=i.slope,s=i.offset,l=(c-a)/n,f=Object(x.a)().domain([a,c]).range(o),p=t.x===r.x;return{slope:p?1/0:u,points:Object(Ht.a)(a,c+l,l).map((function(e){return p?{y:e,x:u*e+s,text:f(e)}:{x:e,y:u*e+s,text:f(e)}})).slice(0,n+1)}}({axisStart:n,axisEnd:o,numberOfTicks:r,axisDomain:t}),l=s.points,f=function(e,t){return e.x===t.x?t.y>e.y?Math.PI/2:3*Math.PI/2:Math.atan((t.y-e.y)/(t.x-e.x))}(n,o)+Math.PI/2;return l.map((function(e,t){var r=Br({x1:0,y1:0,x2:a*Math.cos(f),y2:a*Math.sin(f)},u.ticks),n=Br({x:a*Math.cos(f),y:a*Math.sin(f),textAnchor:"start"},u.text);return c.a.createElement("g",{key:t,transform:"translate(".concat(e.x,", ").concat(e.y,")"),className:"rv-xy-plot__axis__tick"},c.a.createElement("line",qr({},r,{className:"rv-xy-plot__axis__tick__line"})),c.a.createElement("text",qr({},n,{className:"rv-xy-plot__axis__tick__text"}),i(e.text)))}))}function Ur(e){return Ur="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},Ur(e)}function Xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(r),!0).forEach((function(t){Kr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $r(){return $r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$r.apply(this,arguments)}function Zr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jr(e,t){return Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jr(e,t)}function Qr(e){var t=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(e){return!1}}();return function(){var r,n=en(e);if(t){var o=en(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ur(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}var tn=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],rn=function(e){!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&&Jr(e,t)}(i,e);var t,r,n,o=Qr(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,n=e.marginLeft,o=e.marginTop,a=e.axisStart,u=e.axisEnd,s=e.axisDomain,l=e.numberOfTicks,f=e.tickValue,p=e.tickSize,y=e.style;if(t)return c.a.createElement(E,$r({},this.props,{animatedProps:tn}),c.a.createElement(i,$r({},this.props,{animation:null})));var b=this._getAttributeFunctor("x"),h=this._getAttributeFunctor("y");return c.a.createElement("g",{className:Ye("rv-xy-manipulable-axis rv-xy-plot__axis",r),transform:"translate(".concat(n,",").concat(o,")")},c.a.createElement("line",$r({},Yr({x1:b({x:a.x}),x2:b({x:u.x}),y1:h({y:a.y}),y2:h({y:u.y})},y.line),{className:"rv-xy-plot__axis__line"})),c.a.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},Gr({axisDomain:s,axisEnd:{x:b(u),y:h(u)},axisStart:{x:b(a),y:h(a)},numberOfTicks:l,tickValue:f,tickSize:p,style:y})))}}])&&Zr(t.prototype,r),n&&Zr(t,n),i}(Te),nn=Object(Vr.a)(".2r");rn.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return nn(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},rn.propTypes=Yr(Yr({},Te.propTypes),{},{axisDomain:o.a.arrayOf(o.a.number).isRequired,axisEnd:o.a.shape({x:o.a.oneOfType([o.a.number,o.a.string]),y:o.a.oneOfType([o.a.number,o.a.string])}).isRequired,axisStart:o.a.shape({x:o.a.oneOfType([o.a.number,o.a.string]),y:o.a.oneOfType([o.a.number,o.a.string])}).isRequired,className:o.a.string,numberOfTicks:o.a.number,tickValue:o.a.func,tickSize:o.a.number,style:o.a.shape({line:o.a.object,ticks:o.a.object,text:o.a.object})}),rn.displayName="DecorativeAxis";var on=rn;function an(e){var t=e.className;return c.a.createElement("defs",{className:Ye("rv-gradient-defs",t)},e.children)}an.displayName="GradientDefs",an.requiresSVG=!0,an.propTypes={className:o.a.string},an.defaultProps={className:""};function cn(e){return cn="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},cn(e)}function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?un(Object(r),!0).forEach((function(t){ln(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ln(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fn(){return fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fn.apply(this,arguments)}function pn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yn(e,t){return yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yn(e,t)}function bn(e){var t=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(e){return!1}}();return function(){var r,n=hn(e);if(t){var o=hn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===cn(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hn(e)}var dn=qt.VERTICAL,mn=qt.HORIZONTAL,gn={direction:o.a.oneOf([dn,mn]),attr:o.a.string.isRequired,width:o.a.number,height:o.a.number,top:o.a.number,left:o.a.number,style:o.a.object,tickValues:o.a.arrayOf(o.a.oneOfType([o.a.number,o.a.string])),tickTotal:o.a.number,animation:k,marginTop:o.a.number,marginBottom:o.a.number,marginLeft:o.a.number,marginRight:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number},vn={direction:dn},On=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],jn=function(e){!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&&yn(e,t)}(i,e);var t,r,n,o=bn(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop;return{left:e.marginLeft,top:n,width:t,height:r,tickTotal:Wt(e.direction===dn?t:r)}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className;if(t)return c.a.createElement(E,fn({},this.props,{animatedProps:On}),c.a.createElement(i,fn({},this.props,{animation:null})));var n=sn(sn({},this._getDefaultProps()),this.props),o=n.attr,a=n.direction,u=n.width,s=n.height,l=n.style,f=n.tickTotal,p=n.tickValues,y=n.top,b=n.left,h=a===dn,d=h?"y":"x",m=h?"x":"y",g=h?s:u,v=ie(n,o),O=Bt(v,f,p);return c.a.createElement("g",{transform:"translate(".concat(b,",").concat(y,")"),className:Ye("rv-xy-plot__grid-lines",r)},O.map((function(e,t){var r,n=v(e),o=(ln(r={},"".concat(m,"1"),n),ln(r,"".concat(m,"2"),n),ln(r,"".concat(d,"1"),0),ln(r,"".concat(d,"2"),g),r);return c.a.createElement("line",fn({},o,{key:t,className:"rv-xy-plot__grid-lines__line",style:l}))})))}}])&&pn(t.prototype,r),n&&pn(t,n),i}(a.PureComponent);jn.displayName="GridLines",jn.defaultProps=vn,jn.propTypes=gn,jn.requiresSVG=!0;var wn=jn;function _n(e){return _n="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},_n(e)}function Pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(r),!0).forEach((function(t){En(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function En(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kn(){return kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kn.apply(this,arguments)}function xn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rn(e,t){return Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rn(e,t)}function Tn(e){var t=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(e){return!1}}();return function(){var r,n=Dn(e);if(t){var o=Dn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===_n(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}var Mn=function(e){!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&&Rn(e,t)}(i,e);var t,r,n,o=Tn(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e||"y"===e}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,o=t.data,a=t.marginLeft,u=t.marginTop,s=t.style;if(!o)return null;if(r)return c.a.createElement(E,kn({},this.props,{animatedProps:Ue}),c.a.createElement(i,kn({},this.props,{animation:null})));var l=Sn({rectStyle:{}},s).rectStyle,f=this._getAttributeFunctor("x"),p=this._getAttributeFunctor("y"),y=this._getAttributeFunctor("opacity"),b=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),h=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),d=this._getScaleDistance("x"),m=this._getScaleDistance("y");return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--heatmap",n),transform:"translate(".concat(a,",").concat(u,")")},o.map((function(t,r){var n=Sn(Sn({style:Sn({stroke:h&&h(t),fill:b&&b(t),opacity:y&&y(t)},s)},l),{},{x:f(t)-d/2,y:p(t)-m/2,width:d,height:m,onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}});return c.a.createElement("rect",kn({key:r},n))})))}}])&&xn(t.prototype,r),n&&xn(t,n),i}(Te);Mn.propTypes=Sn({},Te.propTypes),Mn.displayName="HeatmapSeries";var An=r(1247);function Cn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(r),!0).forEach((function(t){Ln(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ln(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function In(e){return In="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},In(e)}function Fn(){return Fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fn.apply(this,arguments)}function Hn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vn(e,t){return Vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vn(e,t)}function qn(e){var t=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(e){return!1}}();return function(){var r,n=Wn(e);if(t){var o=Wn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===In(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Wn(e){return Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wn(e)}function Bn(e){return function(e){if(Array.isArray(e))return zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gn=function(e){!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&&Vn(e,t)}(i,e);var t,r,n,o=qn(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,o=t.colorRange,a=t.data,u=t.innerHeight,s=t.innerWidth,l=t.marginLeft,f=t.marginTop,p=t.radius,y=t.sizeHexagonsWithCount,b=t.style,h=t.xOffset,d=t.yOffset;if(!a)return null;if(r)return c.a.createElement(E,Fn({},this.props,{animatedProps:Ue}),c.a.createElement(i,Fn({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),g=this._getAttributeFunctor("y"),v=Object(An.a)().x((function(e){return m(e)+h})).y((function(e){return g(e)+d})).radius(p).size([s,u]),O=v.hexagon(),j=v(a),w=function(e,t){var r=e.countDomain;return r||[0,Math.max.apply(Math,Bn(t.map((function(e){return e.length}))))]}(this.props,j),_=Object(x.a)().domain(w).range(o),P=Object(x.a)().domain(w).range([0,p]);return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--hexbin",n),transform:"translate(".concat(l,",").concat(f,")")},j.map((function(t,r){var n={style:b,d:y?v.hexagon(P(t.length)):O,fill:_(t.length),transform:"translate(".concat(t.x,", ").concat(t.y,")"),onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}};return c.a.createElement("path",Fn({key:String(r)},n))})))}}])&&Hn(t.prototype,r),n&&Hn(t,n),i}(Te);Gn.propTypes=Nn(Nn({},Te.propTypes),{},{radius:o.a.number}),Gn.defaultProps={radius:20,colorRange:Ce,xOffset:0,yOffset:0},Gn.displayName="HexbinSeries";function Un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(r),!0).forEach((function(t){eo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yn(e){return Yn="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},Yn(e)}function Kn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $n(e,t){return $n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$n(e,t)}function Zn(e){var t=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(e){return!1}}();return function(){var r,n=Qn(e);if(t){var o=Qn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Yn(t)||"function"==typeof t))return t;return Jn(e)}(this,r)}}function Jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qn(e){return Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qn(e)}function eo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function to(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}var ro=function(e){!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&&$n(e,t)}(i,e);var t,r,n,o=Zn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return eo(Jn(e=o.call.apply(o,[this].concat(r))),"state",{dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null}),e}return t=i,(r=[{key:"_getDrawArea",value:function(e,t){var r=this.state,n=r.startLocX,o=r.startLocY,i=this.props,a=i.enableX,c=i.enableY,u=i.highlightWidth,s=i.highlightHeight,l=i.innerWidth,f=i.innerHeight,p=i.marginLeft,y=i.marginRight,b=i.marginBottom,h=i.marginTop,d=u||l+p+y,m=s||f+h+b;return{bottom:c?Math.max(o,t):m,right:a?Math.max(n,e):d,left:a?Math.min(e,n):0,top:c?Math.min(t,o):0}}},{key:"_getDragArea",value:function(e,t){var r=this.props,n=r.enableX,o=r.enableY,i=this.state,a=i.startLocX,c=i.startLocY,u=i.dragArea;return{bottom:u.bottom+(o?t-c:0),left:u.left+(n?e-a:0),right:u.right+(n?e-a:0),top:u.top+(o?t-c:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var r=this.props,n=r.enableX,o=r.enableY,i=this.state,a=i.dragArea,c=i.brushArea,u=c.left,s=c.right,l=c.top,f=c.bottom,p=a&&(e<u||e>s),y=a&&(t<l||t>f);return n&&o?p||y:n?p:!o||y}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,r=t.enableX,n=t.enableY,o=t.marginLeft,i=t.marginTop,a=ie(this.props,"x"),c=ie(this.props,"y");return r&&n?{bottom:c.invert(e.bottom),left:a.invert(e.left-o),right:a.invert(e.right-o),top:c.invert(e.top)}:n?{bottom:c.invert(e.bottom-i),top:c.invert(e.top-i)}:r?{left:a.invert(e.left-o),right:a.invert(e.right-o)}:{}}},{key:"startBrushing",value:function(e){var t=this,r=this.props,n=r.onBrushStart,o=r.onDragStart,i=r.drag,a=this.state.dragArea,c=to(e.nativeEvent),u=c.xLoc,s=c.yLoc,l=function(e,r){var n={bottom:s,left:u,right:u,top:s};t.setState({dragging:e,brushArea:a&&!r?a:n,brushing:!e,startLocX:u,startLocY:s})},f=this._clickedOutsideDrag(u,s);if(i&&!a||!i||f)return l(!1,f),void(n&&n(e));i&&a&&(l(!0,f),o&&o(e))}},{key:"stopBrushing",value:function(){var e=this.state,t=e.brushing,r=e.dragging,n=e.brushArea;if(t||r){var o=this.props,i=o.onBrushEnd,a=o.onDragEnd,c=o.drag,u=Math.abs(n.right-n.left)<5,s=Math.abs(n.top-n.bottom)<5||u;this.setState({brushing:!1,dragging:!1,brushArea:c?n:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:c&&!s&&n}),t&&i&&i(s?null:this._convertAreaToCoordinates(n)),c&&a&&a(s?null:this._convertAreaToCoordinates(n))}}},{key:"onBrush",value:function(e){var t=this.props,r=t.onBrush,n=t.onDrag,o=t.drag,i=this.state,a=i.brushing,c=i.dragging,u=to(e.nativeEvent),s=u.xLoc,l=u.yLoc;if(a){var f=this._getDrawArea(s,l);this.setState({brushArea:f}),r&&r(this._convertAreaToCoordinates(f))}if(o&&c){var p=this._getDragArea(s,l);this.setState({brushArea:p}),n&&n(this._convertAreaToCoordinates(p))}}},{key:"render",value:function(){var e=this,t=this.props,r=t.color,n=t.className,o=t.highlightHeight,i=t.highlightWidth,a=t.highlightX,u=t.highlightY,s=t.innerWidth,l=t.innerHeight,f=t.marginLeft,p=t.marginRight,y=t.marginTop,b=t.marginBottom,h=t.opacity,d=this.state.brushArea,m=d.left,g=d.right,v=d.top,O=d.bottom,j=0;a&&(j=ie(this.props,"x")(a));var w=0;u&&(w=ie(this.props,"y")(u));var _=i||f+p+s,P=o||y+b+l;return c.a.createElement("g",{transform:"translate(".concat(j,", ").concat(w,")"),className:Ye(n,"rv-highlight-container")},c.a.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(_,0),height:Math.max(P,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),c.a.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:h,fill:r,x:m,y:v,width:Math.min(Math.max(0,g-m),_),height:Math.min(Math.max(0,O-v),P)}))}}])&&Kn(t.prototype,r),n&&Kn(t,n),i}(Te);ro.displayName="HighlightOverlay",ro.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},ro.propTypes=Xn(Xn({},Te.propTypes),{},{enableX:o.a.bool,enableY:o.a.bool,highlightHeight:o.a.number,highlightWidth:o.a.number,highlightX:o.a.oneOfType([o.a.string,o.a.number]),highlightY:o.a.oneOfType([o.a.string,o.a.number]),onBrushStart:o.a.func,onDragStart:o.a.func,onBrush:o.a.func,onDrag:o.a.func,onBrushEnd:o.a.func,onDragEnd:o.a.func});var no=ro;function oo(e){return oo="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},oo(e)}function io(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ao(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?io(Object(r),!0).forEach((function(t){co(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function co(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function so(e,t){return so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},so(e,t)}function lo(e){var t=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(e){return!1}}();return function(){var r,n=fo(e);if(t){var o=fo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===oo(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}var po={AUTO:"auto",LEFT:"left",RIGHT:"right",LEFT_EDGE:"leftEdge",RIGHT_EDGE:"rightEdge",BOTTOM:"bottom",TOP:"top",BOTTOM_EDGE:"bottomEdge",TOP_EDGE:"topEdge"},yo={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function bo(e){return Object.keys(e).map((function(t){return{title:t,value:F(e[t])}}))}var ho=function(e){!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&&so(e,t)}(a,e);var t,r,n,i=lo(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"defaultProps",get:function(){return{format:bo,align:{horizontal:po.AUTO,vertical:po.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:o.a.number,marginLeft:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number,scales:o.a.object,value:o.a.object,format:o.a.func,style:o.a.object,className:o.a.string,align:o.a.shape({horizontal:o.a.oneOf([po.AUTO,po.LEFT,po.RIGHT,po.LEFT_EDGE,po.RIGHT_EDGE]),vertical:o.a.oneOf([po.AUTO,po.BOTTOM,po.TOP,po.BOTTOM_EDGE,po.TOP_EDGE])}),getAlignStyle:o.a.func,orientation:o.a.oneOf([yo.BOTTOM_LEFT,yo.BOTTOM_RIGHT,yo.TOP_LEFT,yo.TOP_RIGHT])}}}],(r=[{key:"_getAlign",value:function(e,t){var r=this.props,n=r.innerWidth,o=r.innerHeight,i=r.orientation,a=r.align,c=a.horizontal,u=a.vertical,s=i?this._mapOrientationToAlign(i):{horizontal:c,vertical:u};return c===po.AUTO&&(s.horizontal=e>n/2?po.LEFT:po.RIGHT),u===po.AUTO&&(s.vertical=t>o/2?po.TOP:po.BOTTOM),s}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation,r=t?"rv-hint--orientation-".concat(t):"";return"".concat(r," rv-hint--horizontalAlign-").concat(e.horizontal,"\n     rv-hint--verticalAlign-").concat(e.vertical)}},{key:"_getAlignStyle",value:function(e,t,r){return ao(ao({},this._getXCSS(e.horizontal,t)),this._getYCSS(e.vertical,r))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};var t=this.props,r=t.innerHeight;return{bottom:t.marginBottom+r-e}}},{key:"_getCSSLeft",value:function(e){return null==e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(null==e)return{right:0};var t=this.props,r=t.innerWidth;return{right:t.marginRight+r-e}}},{key:"_getCSSTop",value:function(e){return null==e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,r=e.getAlignStyle,n=ue(this.props,"x")(t),o=ue(this.props,"y")(t),i=this._getAlign(n,o);return{position:r?r(i,n,o):this._getAlignStyle(i,n,o),positionClassName:this._getAlignClassNames(i)}}},{key:"_getXCSS",value:function(e,t){switch(e){case po.LEFT_EDGE:return this._getCSSLeft(null);case po.RIGHT_EDGE:return this._getCSSRight(null);case po.LEFT:return this._getCSSRight(t);default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case po.TOP_EDGE:return this._getCSSTop(null);case po.BOTTOM_EDGE:return this._getCSSBottom(null);case po.BOTTOM:return this._getCSSTop(t);default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case yo.BOTTOM_LEFT:return{horizontal:po.LEFT,vertical:po.BOTTOM};case yo.BOTTOM_RIGHT:return{horizontal:po.RIGHT,vertical:po.BOTTOM};case yo.TOP_LEFT:return{horizontal:po.LEFT,vertical:po.TOP};case yo.TOP_RIGHT:return{horizontal:po.RIGHT,vertical:po.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,r=e.format,n=e.children,o=e.style,i=e.className,a=this._getPositionInfo(),u=a.position,s=a.positionClassName;return c.a.createElement("div",{className:Ye("rv-hint",s,i),style:ao(ao(ao({},o),u),{},{position:"absolute"})},n||c.a.createElement("div",{className:"rv-hint__content",style:o.content},r(t).map((function(e,t){return c.a.createElement("div",{key:"rv-hint".concat(t),style:o.row},c.a.createElement("span",{className:"rv-hint__title",style:o.title},e.title),": ",c.a.createElement("span",{className:"rv-hint__value",style:o.value},e.value))}))))}}])&&uo(t.prototype,r),n&&uo(t,n),a}(a.PureComponent);ho.displayName="Hint",ho.ORIENTATION=yo,ho.ALIGN=po;function mo(e){return mo="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},mo(e)}function go(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?go(Object(r),!0).forEach((function(t){Oo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jo(){return jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jo.apply(this,arguments)}function wo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _o(e,t){return _o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_o(e,t)}function Po(e){var t=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(e){return!1}}();return function(){var r,n=So(e);if(t){var o=So(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===mo(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},So(e)}var Eo=function(e){!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&&_o(e,t)}(a,e);var t,r,n,i=Po(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"propTypes",get:function(){return vo(vo({},Te.propTypes),{},{linePosAttr:o.a.string,valuePosAttr:o.a.string,lineSizeAttr:o.a.string,valueSizeAttr:o.a.string,cluster:o.a.string,barWidth:o.a.number})}},{key:"defaultProps",get:function(){return{barWidth:.85}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,o=t.data,i=t.linePosAttr,u=t.lineSizeAttr,s=t.marginLeft,l=t.marginTop,f=t.style,p=t.valuePosAttr,y=t.valueSizeAttr,b=t.barWidth;if(!o)return null;if(r)return c.a.createElement(E,jo({},this.props,{animatedProps:Ue}),c.a.createElement(a,jo({},this.props,{animation:null})));var h=Xe(this.props),d=h.sameTypeTotal,m=h.sameTypeIndex,g=this._getScaleDistance(i),v=this._getAttributeFunctor(i),O=this._getAttributeFunctor(p),j=this._getAttr0Functor(p),w=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("opacity"),S=g/2*b;return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--bar",n),transform:"translate(".concat(s,",").concat(l,")")},o.map((function(t,r){var n,o=2*S,a=v(t),s=o/d-(d-1)/d,l=a-S+s*m+m,b=(Oo(n={style:vo({opacity:P&&P(t),stroke:_&&_(t),fill:w&&w(t)},f)},i,l),Oo(n,u,s),Oo(n,p,Math.min(j(t),O(t))),Oo(n,y,Math.abs(-j(t)+O(t))),Oo(n,"onClick",(function(r){return e._valueClickHandler(t,r)})),Oo(n,"onContextMenu",(function(r){return e._valueRightClickHandler(t,r)})),Oo(n,"onMouseOver",(function(r){return e._valueMouseOverHandler(t,r)})),Oo(n,"onMouseOut",(function(r){return e._valueMouseOutHandler(t,r)})),n);return c.a.createElement("rect",jo({key:"".concat(r)},b))})))}}])&&wo(t.prototype,r),n&&wo(t,n),a}(Te);Eo.displayName="BarSeries";var ko=Eo;function xo(e){return xo="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},xo(e)}function Ro(){return Ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ro.apply(this,arguments)}function To(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Do(e,t){return Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Do(e,t)}function Mo(e){var t=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(e){return!1}}();return function(){var r,n=Ao(e);if(t){var o=Ao(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xo(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}var Co=function(e){!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&&Do(e,t)}(i,e);var t,r,n,o=Mo(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return c.a.createElement(ko,Ro({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&To(t.prototype,r),n&&To(t,n),i}(Te);Co.displayName="HorizontalBarSeries";function No(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?No(Object(r),!0).forEach((function(t){Io(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fo(e){return Fo="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},Fo(e)}function Ho(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vo(e,t){return Vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vo(e,t)}function qo(e){var t=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(e){return!1}}();return function(){var r,n=Wo(e);if(t){var o=Wo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Fo(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wo(e)}var Bo=function(e){!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&&Vo(e,t)}(i,e);var t,r,n,o=qo(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,o=e.lineSizeAttr,i=e.valuePosAttr,a=e.marginTop,c=e.marginBottom;if(r&&0!==r.length){var u=function(e,t){var r=oe(e,t);return r?r.distance:0}(e,n),s=ue(e,n),l=ue(e,i),f=se(e,i),p=ue(e,"fill")||ue(e,"color"),y=ue(e,"stroke")||ue(e,"color"),b=ue(e,"opacity"),h=u/2*.85,d=2*h,m=Xe(e),g=m.sameTypeTotal,v=m.sameTypeIndex;r.forEach((function(e){var r=s(e)-h,n=d/g-(g-1)/g,u=Object(L.c)(p(e)),m=Object(L.c)(y(e)),O=b(e)||1,j=r+n*v+v,w=Math.min(f(e),l(e)),_="x"===i?w:j,P="y"===i?w:j,S=Math.abs(-f(e)+l(e)),E="height"===o?n:S,k="width"===o?n:S;t.beginPath(),t.rect(_+c,P+a,k,E),t.fillStyle="rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", ").concat(O,")"),t.fill(),t.strokeStyle="rgba(".concat(m.r,", ").concat(m.g,", ").concat(m.b,", ").concat(O,")"),t.stroke()}))}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&Ho(t.prototype,r),n&&Ho(t,n),i}(Te);Bo.displayName="BarSeriesCanvas",Bo.defaultProps=Lo(Lo({},Te.defaultProps),{},{linePosAttr:o.a.string.isRequired,valuePosAttr:o.a.string.isRequired,lineSizeAttr:o.a.string.isRequired,valueSizeAttr:o.a.string.isRequired}),Bo.propTypes=Lo({},Te.propTypes);var zo=Bo;function Go(e){return Go="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},Go(e)}function Uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ko(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $o(e,t){return $o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$o(e,t)}function Zo(e){var t=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(e){return!1}}();return function(){var r,n=Jo(e);if(t){var o=Jo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Go(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Jo(e){return Jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jo(e)}var Qo=function(e){!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&&$o(e,t)}(i,e);var t,r,n,o=Zo(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){zo.renderLayer(Xo(Xo({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&Ko(t.prototype,r),n&&Ko(t,n),i}(Te);Qo.displayName="HorizontalBarSeriesCanvas",Qo.propTypes=Xo({},Te.propTypes);function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ti(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(r),!0).forEach((function(t){ri(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ei(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ri(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ni=qt.HORIZONTAL,oi=ti(ti({},wn.propTypes),{},{direction:o.a.oneOf([ni])}),ii={direction:ni,attr:"y"};function ai(e){return c.a.createElement(wn,e)}ai.displayName="HorizontalGridLines",ai.propTypes=oi,ai.defaultProps=ii,ai.requiresSVG=!0;function ci(e){return ci="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},ci(e)}function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function si(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(r),!0).forEach((function(t){li(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(){return fi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fi.apply(this,arguments)}function pi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yi(e,t){return yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yi(e,t)}function bi(e){var t=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(e){return!1}}();return function(){var r,n=hi(e);if(t){var o=hi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ci(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(e)}var di=function(e){!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&&yi(e,t)}(a,e);var t,r,n,i=bi(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"propTypes",get:function(){return si(si({},Te.propTypes),{},{linePosAttr:o.a.string,valuePosAttr:o.a.string,lineSizeAttr:o.a.string,valueSizeAttr:o.a.string})}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,o=t.data,i=t.linePosAttr,u=t.lineSizeAttr,s=t.marginLeft,l=t.marginTop,f=t.style,p=t.valuePosAttr,y=t.valueSizeAttr;if(!o)return null;if(r)return c.a.createElement(E,fi({},this.props,{animatedProps:Ue}),c.a.createElement(a,fi({},this.props,{animation:null})));var b=this._getAttributeFunctor(i),h=this._getAttr0Functor(i),d=this._getAttributeFunctor(p),m=this._getAttr0Functor(p),g=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),v=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),O=this._getAttributeFunctor("opacity");return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--rect",n),transform:"translate(".concat(s,",").concat(l,")")},o.map((function(t,r){var n,o=(li(n={style:si({opacity:O&&O(t),stroke:v&&v(t),fill:g&&g(t)},f)},i,h(t)),li(n,u,Math.abs(b(t)-h(t))),li(n,p,Math.min(m(t),d(t))),li(n,y,Math.abs(-m(t)+d(t))),li(n,"onClick",(function(r){return e._valueClickHandler(t,r)})),li(n,"onContextMenu",(function(r){return e._valueRightClickHandler(t,r)})),li(n,"onMouseOver",(function(r){return e._valueMouseOverHandler(t,r)})),li(n,"onMouseOut",(function(r){return e._valueMouseOutHandler(t,r)})),n);return c.a.createElement("rect",fi({key:String(r)},o))})))}}])&&pi(t.prototype,r),n&&pi(t,n),a}(Te);di.displayName="RectSeries";var mi=di;function gi(e){return gi="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},gi(e)}function vi(){return vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vi.apply(this,arguments)}function Oi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ji(e,t){return ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ji(e,t)}function wi(e){var t=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(e){return!1}}();return function(){var r,n=_i(e);if(t){var o=_i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===gi(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_i(e)}var Pi=function(e){!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&&ji(e,t)}(i,e);var t,r,n,o=wi(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return c.a.createElement(mi,vi({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&Oi(t.prototype,r),n&&Oi(t,n),i}(Te);Pi.displayName="HorizontalRectSeries";function Si(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(r),!0).forEach((function(t){ki(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Si(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(e){return xi="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},xi(e)}function Ri(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ti(e,t){return Ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ti(e,t)}function Di(e){var t=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(e){return!1}}();return function(){var r,n=Mi(e);if(t){var o=Mi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xi(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}var Ai=function(e){!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&&Ti(e,t)}(i,e);var t,r,n,o=Di(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,o=e.lineSizeAttr,i=e.marginLeft,a=e.marginTop,c=e.valuePosAttr;if(r&&0!==r.length){var u=ue(e,n),s=se(e,n),l=ue(e,c),f=se(e,c),p=ue(e,"fill")||ue(e,"color"),y=ue(e,"stroke")||ue(e,"color"),b=ue(e,"opacity");r.forEach((function(e){var r=Object(L.c)(p(e)),n=Object(L.c)(y(e)),h=b(e)||1,d=s(e),m=Math.min(f(e),l(e)),g="x"===c?m:d,v="y"===c?m:d,O=Math.abs(u(e)-s(e)),j=Math.abs(-f(e)+l(e)),w="height"===o?O:j,_="width"===o?O:j;t.beginPath(),t.rect(g+i,v+a,_,w),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(h,")"),t.fill(),t.strokeStyle="rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(h,")"),t.stroke()}))}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&Ri(t.prototype,r),n&&Ri(t,n),i}(Te);Ai.displayName="RectSeriesCanvas",Ai.defaultProps=Ei(Ei({},Te.defaultProps),{},{linePosAttr:o.a.string.isRequired,valuePosAttr:o.a.string.isRequired,lineSizeAttr:o.a.string.isRequired,valueSizeAttr:o.a.string.isRequired}),Ai.propTypes=Ei({},Te.propTypes);var Ci=Ai;function Ni(e){return Ni="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},Ni(e)}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(r),!0).forEach((function(t){Fi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vi(e,t){return Vi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vi(e,t)}function qi(e){var t=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(e){return!1}}();return function(){var r,n=Wi(e);if(t){var o=Wi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ni(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wi(e)}var Bi=function(e){!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&&Vi(e,t)}(i,e);var t,r,n,o=qi(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){Ci.renderLayer(Ii(Ii({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&Hi(t.prototype,r),n&&Hi(t,n),i}(Te);Bi.displayName="HorizontalRectSeriesCanvas",Bi.propTypes=Ii({},Te.propTypes);function zi(e){return zi="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},zi(e)}function Gi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(r),!0).forEach((function(t){Xi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yi(){return Yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yi.apply(this,arguments)}function Ki(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $i(e,t){return $i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$i(e,t)}function Zi(e){var t=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(e){return!1}}();return function(){var r,n=Ji(e);if(t){var o=Ji(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===zi(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ji(e)}var Qi=function(e,t){return e||(t?"start":"end")},ea=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},ta=function(e){!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&&$i(e,t)}(i,e);var t,r,n,o=Zi(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.allowOffsetToBeReversed,o=t.className,a=t.data,u=t._data,s=t.getLabel,l=t.marginLeft,f=t.marginTop,p=t.rotation,y=t.style,b=t.xRange,h=t.yRange,d=t.labelAnchorX,m=t.labelAnchorY;if(!a)return null;if(r)return c.a.createElement(E,Yi({},this.props,{animatedProps:Ue}),c.a.createElement(i,Yi({},this.props,{animation:null,_data:a})));var g=this._getAttributeFunctor("x"),v=this._getAttributeFunctor("y");return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--label",o),transform:"translate(".concat(l,",").concat(f,")"),style:y},a.reduce((function(t,r,o){var i=r.style,a=r.xOffset,l=r.yOffset;if(!s(r))return t;var f=g(r),y=v(r),O=f<(b[1]-b[0])/2,j=y<Math.abs(h[1]-h[0])/2,w=f+(n&&O?-1:1)*(a||0),_=y+(n&&j?-1:1)*(l||0),P=0===r.rotation||r.rotation?r.rotation:p,S=Ui({dominantBaseline:ea(m,j),className:"rv-xy-plot__series--label-text",onClick:function(t){return e._valueClickHandler(r,t)},onContextMenu:function(t){return e._valueRightClickHandler(r,t)},onMouseOver:function(t){return e._valueMouseOverHandler(r,t)},onMouseOut:function(t){return e._valueMouseOutHandler(r,t)},textAnchor:Qi(d,O),x:w,y:_,transform:"rotate(".concat(P,",").concat(w,",").concat(_,")")},i),E=s(u?u[o]:r);return t.concat([c.a.createElement("text",Yi({key:String(o)},S),E)])}),[]))}}])&&Ki(t.prototype,r),n&&Ki(t,n),i}(Te);ta.propTypes={animation:o.a.bool,allowOffsetToBeReversed:o.a.bool,className:o.a.string,data:o.a.arrayOf(o.a.shape({x:o.a.oneOfType([o.a.number,o.a.string]),y:o.a.oneOfType([o.a.number,o.a.string]),angle:o.a.number,radius:o.a.number,label:o.a.string,xOffset:o.a.number,yOffset:o.a.number,style:o.a.object})).isRequired,marginLeft:o.a.number,marginTop:o.a.number,rotation:o.a.number,style:o.a.object,xRange:o.a.arrayOf(o.a.number),yRange:o.a.arrayOf(o.a.number),labelAnchorX:o.a.string,labelAnchorY:o.a.string},ta.defaultProps=Ui(Ui({},Te.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),ta.displayName="LabelSeries";var ra=ta,na=r(439);function oa(e){return oa="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},oa(e)}function ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(r),!0).forEach((function(t){ca(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ua(){return ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}function sa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function la(e,t){return la=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},la(e,t)}function fa(e){var t=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(e){return!1}}();return function(){var r,n=pa(e);if(t){var o=pa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===oa(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pa(e)}var ya={dashed:"6, 2",solid:null},ba=function(e){!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&&la(e,t)}(i,e);var t,r,n,o=fa(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_renderLine",value:function(e,t,r,n,o){var i=na.a();return null!==n&&("string"==typeof n&&ft[n]?i=i.curve(ft[n]):"function"==typeof n&&(i=i.curve(n))),(i=(i=i.defined(o)).x(t).y(r))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,n=e.data;if(this.props.nullAccessor&&Object(I.b)("nullAccessor has been renamed to getNull",!0),!n)return null;if(t)return c.a.createElement(E,ua({},this.props,{animatedProps:Ue}),c.a.createElement(i,ua({},this.props,{animation:null})));var o=this.props,a=o.curve,u=o.marginLeft,s=o.marginTop,l=o.strokeDasharray,f=o.strokeStyle,p=o.strokeWidth,y=o.style,b=this._getAttributeFunctor("x"),h=this._getAttributeFunctor("y"),d=this._getAttributeValue("stroke")||this._getAttributeValue("color"),m=this._getAttributeValue("opacity"),g=Number.isFinite(m)?m:1,v=this.props.nullAccessor||this.props.getNull,O=this._renderLine(n,b,h,a,v);return c.a.createElement("path",{d:O,className:Ye("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(u,",").concat(s,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:aa({opacity:g,strokeDasharray:ya[f]||l,strokeWidth:p,stroke:d},y)})}}])&&sa(t.prototype,r),n&&sa(t,n),i}(Te);ba.displayName="LineSeries",ba.propTypes=aa(aa({},Te.propTypes),{},{strokeStyle:o.a.oneOf(Object.keys(ya)),curve:o.a.oneOfType([o.a.string,o.a.func]),getNull:o.a.func}),ba.defaultProps=aa(aa({},Te.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});var ha=ba;function da(e){return da="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},da(e)}function ma(){return ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ma.apply(this,arguments)}function ga(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(r),!0).forEach((function(t){Oa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ga(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ja(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wa(e,t){return wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wa(e,t)}function _a(e){var t=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(e){return!1}}();return function(){var r,n=Pa(e);if(t){var o=Pa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===da(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pa(e)}var Sa=function(e){!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&&wa(e,t)}(i,e);var t,r,n,o=_a(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_renderCircle",value:function(e,t,r,n,o){var i=this,a=o.fill,u=o.opacity,s=o.size,l=o.stroke,f=o.x,p=o.y,y={r:s?s(e):5,cx:f(e),cy:p(e),style:va({opacity:u?u(e):1,stroke:l&&l(e),fill:a&&a(e),strokeWidth:r||1},n),key:t,onClick:function(t){return i._valueClickHandler(e,t)},onContextMenu:function(t){return i._valueRightClickHandler(e,t)},onMouseOver:function(t){return i._valueMouseOverHandler(e,t)},onMouseOut:function(t){return i._valueMouseOutHandler(e,t)}};return c.a.createElement("circle",y)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,o=t.data,a=t.marginLeft,u=t.marginTop,s=t.strokeWidth,l=t.style;this.props.nullAccessor&&Object(I.b)("nullAccessor has been renamed to getNull",!0);var f=this.props.nullAccessor||this.props.getNull;if(!o)return null;if(r)return c.a.createElement(E,ma({},this.props,{animatedProps:Ue}),c.a.createElement(i,ma({},this.props,{animation:null})));var p={fill:this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),opacity:this._getAttributeFunctor("opacity"),size:this._getAttributeFunctor("size"),stroke:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),x:this._getAttributeFunctor("x"),y:this._getAttributeFunctor("y")};return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--mark",n),transform:"translate(".concat(a,",").concat(u,")")},o.map((function(t,r){return f(t)&&e._renderCircle(t,r,s,l,p)})))}}])&&ja(t.prototype,r),n&&ja(t,n),i}(Te);Sa.displayName="MarkSeries",Sa.propTypes=va(va({},Te.propTypes),{},{getNull:o.a.func,strokeWidth:o.a.number}),Sa.defaultProps={getNull:function(){return!0}};var Ea=Sa;function ka(e){return ka="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},ka(e)}function xa(){return xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xa.apply(this,arguments)}function Ra(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ta(e,t){return Ta=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ta(e,t)}function Da(e){var t=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(e){return!1}}();return function(){var r,n=Ma(e);if(t){var o=Ma(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ka(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){Na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var La=Ca(Ca({},ha.propTypes),{},{lineStyle:o.a.object,markStyle:o.a.object}),Ia=function(e){!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&&Ta(e,t)}(i,e);var t,r,n,o=Da(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"defaultProps",get:function(){return Ca(Ca({},ha.defaultProps),{},{lineStyle:{},markStyle:{}})}}],(r=[{key:"render",value:function(){var e=this.props,t=e.lineStyle,r=e.markStyle,n=e.style;return c.a.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},c.a.createElement(ha,xa({},this.props,{style:Ca(Ca({},n),t)})),c.a.createElement(Ea,xa({},this.props,{style:Ca(Ca({},n),r)})))}}])&&Ra(t.prototype,r),n&&Ra(t,n),i}(Te);Ia.displayName="LineMarkSeries",Ia.propTypes=La;var Fa=Ia;function Ha(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Va(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qa(e){return qa="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},qa(e)}function Wa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ba(e,t){return Ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ba(e,t)}function za(e){var t=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(e){return!1}}();return function(){var r,n=Ga(e);if(t){var o=Ga(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===qa(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ga(e)}var Ua=function(e){!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&&Ba(e,t)}(i,e);var t,r,n,o=za(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.marginLeft,o=e.marginTop,i=ue(e,"x"),a=ue(e,"y"),c=ue(e,"size")||function(){return 5},u=ue(e,"fill")||ue(e,"color"),s=ue(e,"stroke")||ue(e,"color"),l=ue(e,"opacity");r.forEach((function(e){var r=Object(L.c)(u(e)),f=Object(L.c)(s(e)),p=l(e)||1;t.beginPath(),t.arc(i(e)+n,a(e)+o,c(e),0,2*Math.PI),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(p,")"),t.fill(),t.strokeStyle="rgba(".concat(f.r,", ").concat(f.g,", ").concat(f.b,", ").concat(p,")"),t.stroke()}))}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&Wa(t.prototype,r),n&&Wa(t,n),i}(Te);Ua.displayName="MarkSeriesCanvas",Ua.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(r),!0).forEach((function(t){Va(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ha(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Te.propTypes);var Xa=Ua;function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ka(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(r),!0).forEach((function(t){$a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Za(e){return Za="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},Za(e)}function Ja(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qa(e,t){return Qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qa(e,t)}function ec(e){var t=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(e){return!1}}();return function(){var r,n=tc(e);if(t){var o=tc(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Za(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}var rc=function(e){!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&&Qa(e,t)}(i,e);var t,r,n,o=ec(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"renderLayer",value:function(e,t){var r=e.curve,n=e.data,o=e.marginLeft,i=e.marginTop,a=e.strokeWidth,c=e.strokeDasharray;if(n&&0!==n.length){var u=ue(e,"x"),s=ue(e,"y"),l=le(e,"stroke")||le(e,"color"),f=Object(L.c)(l),p=le(e,"opacity"),y=Number.isFinite(p)?p:1,b=na.a().x((function(e){return u(e)+o})).y((function(e){return s(e)+i}));"string"==typeof r&&ft[r]?b=b.curve(ft[r]):"function"==typeof r&&(b=b.curve(r)),t.beginPath(),t.strokeStyle="rgba(".concat(f.r,", ").concat(f.g,", ").concat(f.b,", ").concat(y,")"),t.lineWidth=a,c&&t.setLineDash(c),b.context(t)(n),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return c.a.createElement("div",null)}}])&&Ja(t.prototype,r),n&&Ja(t,n),i}(Te);rc.displayName="LineSeriesCanvas",rc.defaultProps=Ka(Ka({},Te.defaultProps),{},{strokeWidth:2}),rc.propTypes=Ka(Ka({},Te.propTypes),{},{strokeWidth:o.a.number});var nc=rc;function oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ic(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ac(e){return ac="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},ac(e)}function cc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uc(e,t){return uc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uc(e,t)}function sc(e){var t=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(e){return!1}}();return function(){var r,n=lc(e);if(t){var o=lc(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ac(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lc(e)}var fc=function(e){!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&&uc(e,t)}(i,e);var t,r,n,o=sc(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"renderLayer",value:function(e,t){nc.renderLayer(e,t),Xa.renderLayer(e,t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&cc(t.prototype,r),n&&cc(t,n),i}(Te);fc.displayName="LineMarkSeriesCanvas",fc.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(r),!0).forEach((function(t){ic(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Te.propTypes);function pc(e){return pc="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},pc(e)}function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hc(){return hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hc.apply(this,arguments)}function dc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mc(e,t){return mc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mc(e,t)}function gc(e){var t=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(e){return!1}}();return function(){var r,n=vc(e);if(t){var o=vc(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===pc(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vc(e)}var Oc=function(e,t,r){return"".concat(e.reduce((function(e,n,o){return"".concat(e," ").concat(o?"L":"M").concat(t(n)," ").concat(r(n))}),"")," Z")},jc=function(e){!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&&mc(e,t)}(i,e);var t,r,n,o=gc(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"propTypes",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(r),!0).forEach((function(t){bc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Te.propTypes)}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.color,o=t.className,a=t.data,u=t.marginLeft,s=t.marginTop,l=t.style;if(!a)return null;if(r)return c.a.createElement(E,hc({},this.props,{animatedProps:Ue}),c.a.createElement(i,hc({},this.props,{animation:null})));var f=this._getAttributeFunctor("x"),p=this._getAttributeFunctor("y");return c.a.createElement("path",{className:Ye("rv-xy-plot__series rv-xy-plot__series--polygon",o),onMouseOver:function(t){return e._seriesMouseOverHandler(a,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(a,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:n||"#12939A",style:l,d:Oc(a,f,p),transform:"translate(".concat(u,",").concat(s,")")})}}])&&dc(t.prototype,r),n&&dc(t,n),i}(Te);jc.displayName="PolygonSeries";var wc=jc;function _c(e){return _c="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},_c(e)}function Pc(){return Pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pc.apply(this,arguments)}function Sc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ec(e,t){return Ec=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ec(e,t)}function kc(e){var t=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(e){return!1}}();return function(){var r,n=xc(e);if(t){var o=xc(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===_c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xc(e)}var Rc=function(e){!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&&Ec(e,t)}(i,e);var t,r,n,o=kc(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return c.a.createElement(ko,Pc({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&Sc(t.prototype,r),n&&Sc(t,n),i}(Te);Rc.displayName="VerticalBarSeries";function Tc(e){return Tc="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},Tc(e)}function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(r),!0).forEach((function(t){Ac(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ac(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nc(e,t){return Nc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nc(e,t)}function Lc(e){var t=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(e){return!1}}();return function(){var r,n=Ic(e);if(t){var o=Ic(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Tc(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ic(e){return Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ic(e)}var Fc=function(e){!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&&Nc(e,t)}(i,e);var t,r,n,o=Lc(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){zo.renderLayer(Mc(Mc({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&Cc(t.prototype,r),n&&Cc(t,n),i}(Te);Fc.displayName="HorizontalBarSeriesCanvas",Fc.propTypes=Mc({},Te.propTypes);function Hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(r),!0).forEach((function(t){qc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wc=qt.VERTICAL,Bc=Vc(Vc({},wn.propTypes),{},{direction:o.a.oneOf([Wc])}),zc={direction:Wc,attr:"x"};function Gc(e){return c.a.createElement(wn,e)}Gc.displayName="VerticalGridLines",Gc.propTypes=Bc,Gc.defaultProps=zc,Gc.requiresSVG=!0;var Uc=Gc;function Xc(e){return Xc="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},Xc(e)}function Yc(){return Yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yc.apply(this,arguments)}function Kc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $c(e,t){return $c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$c(e,t)}function Zc(e){var t=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(e){return!1}}();return function(){var r,n=Jc(e);if(t){var o=Jc(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Xc(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jc(e)}var Qc=function(e){!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&&$c(e,t)}(i,e);var t,r,n,o=Zc(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return c.a.createElement(mi,Yc({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&Kc(t.prototype,r),n&&Kc(t,n),i}(Te);Qc.displayName="VerticalRectSeries";var eu=Qc;function tu(e){return tu="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},tu(e)}function ru(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ru(Object(r),!0).forEach((function(t){ou(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ru(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ou(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function au(e,t){return au=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},au(e,t)}function cu(e){var t=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(e){return!1}}();return function(){var r,n=uu(e);if(t){var o=uu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===tu(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function uu(e){return uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uu(e)}var su=function(e){!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&&au(e,t)}(i,e);var t,r,n,o=cu(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){Ci.renderLayer(nu(nu({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&iu(t.prototype,r),n&&iu(t,n),i}(Te);su.displayName="HorizontalRectSeriesCanvas",su.propTypes=nu({},Te.propTypes);function lu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(r),!0).forEach((function(t){pu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yu=function(e){return e};function bu(e){var t,r,n,o,a,u=e.className,s=e.extent,l=e.nodes,f=e.onBlur,p=e.onClick,y=e.onMouseUp,b=e.onMouseDown,h=e.onHover,d=e.polygonStyle,m=e.style,g=e.x,v=e.y,O=Object(i.a)().x(g||ue(e,"x")).y(v||ue(e,"y")).extent(s||(r=(t=e).innerWidth,n=t.innerHeight,o=t.marginLeft,a=t.marginTop,[[o,a],[r+o,n+a]])).polygons(l),j=function(e){return function(t){t.preventDefault();var r=function(e){var t=e.nativeEvent,r=t.pageX,n=t.pageY,o=document.elementFromPoint(r,n);if(!o)return-1;var i=o.parentNode;return Array.prototype.indexOf.call(i.childNodes,o)}(t);if(r>-1&&r<O.length){var n=O[r];e(n.data)}}};return c.a.createElement("g",{className:Ye(u,"rv-voronoi"),style:m,onTouchEnd:j(y),onTouchStart:j(b),onTouchMove:j(h),onTouchCancel:j(f)},O.map((function(e,t){return c.a.createElement("path",{className:"rv-voronoi__cell ".concat(e.data&&e.data.className||""),d:"M".concat(e.join("L"),"Z"),onClick:function(){return p(e.data)},onMouseUp:function(){return y(e.data)},onMouseDown:function(){return b(e.data)},onMouseOver:function(){return h(e.data)},onMouseOut:function(){return f(e.data)},fill:"none",style:fu(fu({pointerEvents:"all"},d),e.data&&e.data.style),key:t})})))}bu.requiresSVG=!0,bu.displayName="Voronoi",bu.defaultProps={className:"",onBlur:yu,onClick:yu,onHover:yu,onMouseDown:yu,onMouseUp:yu},bu.propTypes={className:o.a.string,extent:o.a.arrayOf(o.a.arrayOf(o.a.number)),nodes:o.a.arrayOf(o.a.object).isRequired,onBlur:o.a.func,onClick:o.a.func,onHover:o.a.func,onMouseDown:o.a.func,onMouseUp:o.a.func,x:o.a.func,y:o.a.func};var hu=bu;function du(e){return du="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},du(e)}function mu(){return mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mu.apply(this,arguments)}function gu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vu(e,t){return vu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vu(e,t)}function Ou(e){var t=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(e){return!1}}();return function(){var r,n=ju(e);if(t){var o=ju(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===du(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ju(e)}function wu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wu(Object(r),!0).forEach((function(t){Pu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Su=function(e){!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&&vu(e,t)}(i,e);var t,r,n,o=Ou(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,n=e.crossBarWidth,o=e.data,a=e.marginLeft,u=e.marginTop,s=e.strokeWidth,l=e.style;if(!o)return null;if(t)return c.a.createElement(E,mu({},this.props,{animatedProps:Ue}),c.a.createElement(i,mu({},this.props,{animation:null})));var f={crossBarWidth:n,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:s,style:l,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return c.a.createElement("g",{className:Ye("rv-xy-plot__series rv-xy-plot__series--whisker",r),transform:"translate(".concat(a,",").concat(u,")")},o.map(function(e){return function(t,r){var n=e.crossBarWidth,o=e.opacityFunctor,i=e.sizeFunctor,a=e.strokeFunctor,u=e.strokeWidth,s=e.style,l=e.valueClickHandler,f=e.valueMouseOutHandler,p=e.valueMouseOverHandler,y=e.valueRightClickHandler,b=e.xFunctor,h=e.yFunctor,d=i?i(t):0,m=b(t),g=h(t),v=b({x:t.x+t.xVariance/2}),O=b({x:t.x-t.xVariance/2}),j=h({y:t.y+t.yVariance/2}),w=h({y:t.y-t.yVariance/2}),_=v&&m+d<v,P=j&&g-d>j;if(!_&&!P)return null;var S=_u({opacity:o?o(t):1,stroke:a&&a(t),strokeWidth:u||1},s),E=n/2,k={x1:m+d,y1:g,x2:v,y2:g,style:S},x={x1:m-d,y1:g,x2:O,y2:g,style:S},R={x1:v,y1:g-E,x2:v,y2:g+E,style:S},T={x1:O,y1:g-E,x2:O,y2:g+E,style:S},D={x1:m,y1:g-d,x2:m,y2:j,style:S},M={x1:m,y1:g+d,x2:m,y2:w,style:S},A={x1:m-E,y1:j,x2:m+E,y2:j,style:S},C={x1:m-E,y1:w,x2:m+E,y2:w,style:S};return c.a.createElement("g",{className:"mark-whiskers",key:r,onClick:function(e){return l(t,e)},onContextMenu:function(e){return y(t,e)},onMouseOver:function(e){return p(t,e)},onMouseOut:function(e){return f(t,e)}},_?c.a.createElement("g",{className:"x-whiskers"},c.a.createElement("line",k),c.a.createElement("line",x),c.a.createElement("line",R),c.a.createElement("line",T)):null,P?c.a.createElement("g",{className:"y-whiskers"},c.a.createElement("line",D),c.a.createElement("line",M),c.a.createElement("line",A),c.a.createElement("line",C)):null)}}(f)))}}])&&gu(t.prototype,r),n&&gu(t,n),i}(Te);Su.displayName="WhiskerSeries",Su.propTypes=_u(_u({},Te.propTypes),{},{strokeWidth:o.a.number}),Su.defaultProps=_u(_u({},Te.defaultProps),{},{crossBarWidth:6,size:0,strokeWidth:1});var Eu=r(1237),ku=r.n(Eu);function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ru(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(r),!0).forEach((function(t){Tu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Du(e,t){var r=e.margin,n=e.width,o=e.height,i=Ru(Ru({},t),"number"==typeof r?{left:r,right:r,top:r,bottom:r}:r),a=i.left,c=void 0===a?0:a,u=i.top,s=void 0===u?0:u,l=i.right,f=void 0===l?0:l,p=i.bottom,y=void 0===p?0:p;return{marginLeft:c,marginTop:s,marginRight:f,marginBottom:y,innerHeight:o-y-s,innerWidth:n-c-f}}function Mu(e,t,r){var n=e/2-r,o=t/2-r;return{bottom:o,left:n,right:n,top:o}}var Au=o.a.oneOfType([o.a.shape({left:o.a.number,top:o.a.number,right:o.a.number,bottom:o.a.number}),o.a.number]),Cu={left:40,right:10,top:10,bottom:40};function Nu(e){return Nu="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},Nu(e)}function Lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Iu(e,t){return Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Iu(e,t)}function Fu(e){var t=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(e){return!1}}();return function(){var r,n=Hu(e);if(t){var o=Hu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Nu(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hu(e)}function Vu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(r),!0).forEach((function(t){Wu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bu(e,t,r,n,o){e.clearRect(0,0,r,t),n.forEach((function(t){var r=t.interpolator,n=t.newProps,i=t.animation?r?r(o/30):r:function(){return{}};t.renderLayer(qu(qu({},n),i),e)}))}var zu=function(e){!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&&Iu(e,t)}(i,e);var t,r,n,o=Fu(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,n=[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}],(r=[{key:"componentDidMount",value:function(){var e=this.canvas.getContext("2d");if(e){var t=this.props.pixelRatio;e&&(e.scale(t,t),this.drawChildren(null,this.props,e))}}},{key:"componentDidUpdate",value:function(e){this.drawChildren(e,this.props,this.canvas.getContext("2d"))}},{key:"drawChildren",value:function(e,t,r){var n=t.children,o=t.innerHeight,i=t.innerWidth,a=t.marginBottom,c=t.marginLeft,s=t.marginRight,l=t.marginTop;if(r){var f,p,y=n.find((function(e){return e.props.animation})),b=o+l+a,h=i+c+s,d=(f=t.children,p=e?e.children:[],f.map((function(e,t){var r=p[t]?p[t].props:{},n=e.props,o=_(qu(qu({},r),{},{animatedProps:Ue})),i=n?_(qu(qu({},n),{},{animatedProps:Ue})):null,a=Object(u.a)(o,i);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:a}})));y?function(e,t,r,n){var o=0,i=setInterval((function(){e?(Bu(e,t,r,n,o),o>30&&clearInterval(i),o+=1):clearInterval(i)}),1)}(r,b,h,d):Bu(r,b,h,d)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.innerHeight,n=t.innerWidth,o=t.marginBottom,i=t.marginLeft,a=t.marginRight,u=t.marginTop,s=t.pixelRatio,l=r+u+o,f=n+i+a;return c.a.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},c.a.createElement("canvas",{className:"rv-xy-canvas-element",height:l*s,width:f*s,style:{height:"".concat(l,"px"),width:"".concat(f,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&Lu(t.prototype,r),n&&Lu(t,n),i}(a.Component);zu.displayName="CanvasWrapper",zu.propTypes={marginBottom:o.a.number.isRequired,marginLeft:o.a.number.isRequired,marginRight:o.a.number.isRequired,marginTop:o.a.number.isRequired,innerHeight:o.a.number.isRequired,innerWidth:o.a.number.isRequired,pixelRatio:o.a.number.isRequired};var Gu=zu;function Uu(e){return Uu="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},Uu(e)}function Xu(e){return function(e){if(Array.isArray(e))return Yu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ku(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $u(e,t,r){return t&&Ku(e.prototype,t),r&&Ku(e,r),e}function Zu(e,t){return Zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zu(e,t)}function Ju(e){var t=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(e){return!1}}();return function(){var r,n=es(e);if(t){var o=es(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Uu(t)||"function"==typeof t))return t;return Qu(e)}(this,r)}}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},es(e)}function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(r),!0).forEach((function(t){ns(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ns(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var os=["x","y","radius","angle","color","fill","stroke","opacity","size"];function is(e){return e.map((function(e){return Array.isArray(e)?e.map((function(e){return rs(rs({},e),{},{parent:null})})):e}))}var as=function(e){!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&&Zu(e,t)}(r,e);var t=Ju(r);function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),ns(Qu(n=t.call(this,e)),"_clickHandler",(function(e){var t=n.props.onClick;t&&t(e)})),ns(Qu(n),"_doubleClickHandler",(function(e){var t=n.props.onDoubleClick;t&&t(e)})),ns(Qu(n),"_mouseDownHandler",(function(e){var t=n.props,r=t.onMouseDown,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseDown&&o.onParentMouseDown(e)}))})),ns(Qu(n),"_mouseEnterHandler",(function(e){var t=n.props,r=t.onMouseEnter,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseEnter&&o.onParentMouseEnter(e)}))})),ns(Qu(n),"_mouseLeaveHandler",(function(e){var t=n.props,r=t.onMouseLeave,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseLeave&&o.onParentMouseLeave(e)}))})),ns(Qu(n),"_mouseMoveHandler",(function(e){var t=n.props,r=t.onMouseMove,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseMove&&o.onParentMouseMove(e)}))})),ns(Qu(n),"_mouseUpHandler",(function(e){var t=n.props,r=t.onMouseUp,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentMouseUp&&o.onParentMouseUp(e)}))})),ns(Qu(n),"_touchCancelHandler",(function(e){var t=n.props.onTouchCancel;t&&t(e)})),ns(Qu(n),"_touchEndHandler",(function(e){var t=n.props.onTouchEnd;t&&t(e)})),ns(Qu(n),"_touchMoveHandler",(function(e){var t=n.props,r=t.onTouchMove,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentTouchMove&&o.onParentTouchMove(e)}))})),ns(Qu(n),"_touchStartHandler",(function(e){var t=n.props,r=t.onTouchStart,o=t.children;r&&r(e),We(o).forEach((function(t,r){var o=n["series".concat(r)];o&&o.onParentTouchStart&&o.onParentTouchStart(e)}))}));var o=e.stackBy,i=Be(We(e.children),o);return n.state={scaleMixins:n._getScaleMixins(i,e),data:i},n}return $u(r,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:k,className:o.a.string,dontCheckIfEmpty:o.a.bool,height:o.a.number.isRequired,margin:Au,onClick:o.a.func,onDoubleClick:o.a.func,onMouseDown:o.a.func,onMouseUp:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,onMouseMove:o.a.func,onTouchStart:o.a.func,onTouchMove:o.a.func,onTouchEnd:o.a.func,onTouchCancel:o.a.func,onWheel:o.a.func,stackBy:o.a.oneOf(os),style:o.a.object,width:o.a.number.isRequired}}}]),$u(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=Be(We(e.children),e.stackBy),r=this.state.scaleMixins,n=this._getScaleMixins(t,e);(function(e,t,r){var n=rs(rs({},e),{},{_allData:r?is(e._allData):e._allData}),o=rs(rs({},t),{},{_allData:r?is(t._allData):t._allData});return ku()(n,o)})(n,r,e.hasTreeStructure)||this.setState({scaleMixins:n,data:t})}},{key:"_getClonedChildComponents",value:function(){var e=this,t=this.props,r=this.props.animation,n=this.state,o=n.scaleMixins,i=n.data,a=Du(this.props,Cu),u=c.a.Children.toArray(this.props.children),s=ze(u),l=de(t,u);return u.map((function(t,n){var u=null;if(s[n]){var f=s[n].seriesIndex;u={data:i[f]}}return c.a.cloneElement(t,rs(rs(rs(rs(rs(rs(rs({},a),{},{animation:r},u&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(s[n].seriesIndex)]=t}}:{}),s[n]),o),t.props),l[n]),u))}))}},{key:"_getDefaultScaleProps",value:function(e){var t=Du(e,Cu),r=t.innerWidth,n=t.innerHeight,o=["color","fill","stroke"].reduce((function(t,r){var n="category"===e["".concat(r,"Type")]?Ae:Ce;return rs(rs({},t),{},ns({},"".concat(r,"Range"),n))}),{});return rs(rs({xRange:[0,r],yRange:[n,0]},o),{},{opacityType:Le,sizeRange:Ne})}},{key:"_getScaleMixins",value:function(e,t){var r,n=e.filter((function(e){return e})),o=(r=[]).concat.apply(r,Xu(n)),i=this._getDefaultScaleProps(t),a=ge(t),c=pe(t,os),u=ye(rs(rs(rs({},i),a),c),o,os),s=We(t.children),l={},f=new Set,p=new Set;return s.forEach((function(r,n){r&&e[n]&&os.forEach((function(e){var o=r.type.getParentConfig(e,r.props),i=o.isDomainAdjustmentNeeded,a=o.zeroBaseValue;if(i&&(f.add(e),p.add(n)),a){var c=t["".concat(e,"Domain")];l["".concat(e,"BaseValue")]=c?c[0]:0}}))})),rs(rs(rs(rs(rs({},i),l),c),u),{},{_allData:e,_adjustBy:Array.from(f),_adjustWhat:Array.from(p),_stackBy:t.stackBy})}},{key:"_isPlotEmpty",value:function(){var e=this.state.data;return!e||!e.length||!e.some((function(e){return e&&e.some((function(e){return e}))}))}},{key:"renderCanvasComponents",value:function(e){var t=e.filter((function(e){return e&&!e.type.requiresSVG&&e.type.isCanvas}));if(0===t.length)return null;var r=t[0].props,n=r.marginLeft,o=r.marginTop,i=r.marginBottom,a=r.marginRight,u=r.innerHeight,s=r.innerWidth;return c.a.createElement(Gu,{innerHeight:u,innerWidth:s,marginLeft:n,marginTop:o,marginBottom:i,marginRight:a},t)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.dontCheckIfEmpty,n=e.style,o=e.width,i=e.height,a=e.onWheel;if(!r&&this._isPlotEmpty())return c.a.createElement("div",{className:Ye("rv-xy-plot",t),style:rs({width:"".concat(o,"px"),height:"".concat(i,"px")},this.props.style)});var u=this._getClonedChildComponents();return c.a.createElement("div",{style:{width:"".concat(o,"px"),height:"".concat(i,"px")},className:Ye("rv-xy-plot",t)},c.a.createElement("svg",{className:"rv-xy-plot__inner",width:o,height:i,style:n,onClick:this._clickHandler,onDoubleClick:this._doubleClickHandler,onMouseDown:this._mouseDownHandler,onMouseUp:this._mouseUpHandler,onMouseMove:this._mouseMoveHandler,onMouseLeave:this._mouseLeaveHandler,onMouseEnter:this._mouseEnterHandler,onTouchStart:this._mouseDownHandler,onTouchMove:this._touchMoveHandler,onTouchEnd:this._touchEndHandler,onTouchCancel:this._touchCancelHandler,onWheel:a},u.filter((function(e){return e&&e.type.requiresSVG}))),this.renderCanvasComponents(u),u.filter((function(e){return e&&!e.type.requiresSVG&&!e.type.isCanvas})))}}]),r}(c.a.Component);as.displayName="XYPlot";var cs=as;function us(){return us=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},us.apply(this,arguments)}var ss=Vt.LEFT,ls=Vt.RIGHT,fs=Vt.TOP,ps=Vt.BOTTOM,ys={height:o.a.number.isRequired,style:o.a.object,orientation:o.a.oneOf([ss,ls,fs,ps]).isRequired,width:o.a.number.isRequired};function bs(e){var t,r=e.orientation,n=e.width,o=e.height,i=e.style;return t=r===ss?{x1:n,x2:n,y1:0,y2:o}:r===ls?{x1:0,x2:0,y1:0,y2:o}:r===fs?{x1:0,x2:n,y1:o,y2:o}:{x1:0,x2:n,y1:0,y2:0},c.a.createElement("line",us({},t,{className:"rv-xy-plot__axis__line",style:i}))}bs.defaultProps={style:{}},bs.displayName="AxisLine",bs.propTypes=ys;var hs=bs;function ds(e){return ds="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},ds(e)}function ms(){return ms=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ms.apply(this,arguments)}function gs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(r),!0).forEach((function(t){Os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function js(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ws(e,t){return ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ws(e,t)}function _s(e){var t=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(e){return!1}}();return function(){var r,n=Ps(e);if(t){var o=Ps(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ds(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ps(e)}var Ss=Vt.LEFT,Es=Vt.RIGHT,ks=Vt.TOP,xs=Vt.BOTTOM,Rs={height:o.a.number.isRequired,orientation:o.a.oneOf([Ss,Es,ks,xs]).isRequired,style:o.a.object,width:o.a.number.isRequired};var Ts=function(e){!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&&ws(e,t)}(i,e);var t,r,n,o=_s(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===Ss||e===ks}},{key:"_getTickContainerPropsGetterFn",value:function(){return this._isAxisVertical()?function(e){return{transform:"translate(0, ".concat(e,")")}}:function(e){return{transform:"translate(".concat(e,", 0)")}}}},{key:"_getTickLabelProps",value:function(){var e,t=this.props,r=t.orientation,n=t.tickLabelAngle,o=t.tickSize,i=t.tickSizeOuter,a=void 0===i?o:i,c=t.tickPadding,u=void 0===c?o:c;e=r===Ss||r===xs&&n?"end":r===Es||r===ks&&n?"start":"middle";var s=this._isAxisVertical(),l=(this._areTicksWrapped()?-1:1)*(a+u),f=(s?"translate(".concat(l,", 0)"):"translate(0, ".concat(l,")"))+(n?" rotate(".concat(n,")"):"");return{textAnchor:e,dy:r===ks||n?"0":r===xs?"0.72em":"0.32em",transform:f}}},{key:"_getTickLineProps",value:function(){var e,t=this.props,r=t.tickSize,n=t.tickSizeOuter,o=void 0===n?r:n,i=t.tickSizeInner,a=void 0===i?r:i,c=this._isAxisVertical(),u=c?"y":"x",s=c?"x":"y",l=this._areTicksWrapped()?-1:1;return Os(e={},"".concat(u,"1"),0),Os(e,"".concat(u,"2"),0),Os(e,"".concat(s,"1"),-l*a),Os(e,"".concat(s,"2"),l*o),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===Ss||e===Es}},{key:"render",value:function(){var e=this.props,t=e.attr,r=e.orientation,n=e.width,o=e.height,i=e.style,a=e.tickFormat,u=e.tickTotal,s=e.tickValues,l=r===Ss?n:0,f=r===ks?o:0,p=ie(this.props,t),y=Bt(p,u,s),b=function(e,t,r){return r||(e.tickFormat?e.tickFormat(t):function(e){return e})}(p,u,a),h=this._getTickContainerPropsGetterFn(),d=this._getTickLineProps(),m=this._getTickLabelProps(),g=y.map((function(e,t){var r=p(e),o=b(e,t,p,u),a=c.a.isValidElement(o)&&!["tspan","textPath"].includes(o.type),s=o&&"string"!=typeof o.type;return c.a.createElement("g",ms({key:t},h(r,0),{className:"rv-xy-plot__axis__tick",style:i}),c.a.createElement("line",ms({},d,{className:"rv-xy-plot__axis__tick__line",style:vs(vs({},i),i.line)})),a?c.a.cloneElement(o,s?vs(vs({},m),{},{containerWidth:n,tickCount:y.length}):void 0):c.a.createElement("text",ms({},m,{className:"rv-xy-plot__axis__tick__text",style:vs(vs({},i),i.text)}),o))}));return c.a.createElement("g",{transform:"translate(".concat(l,", ").concat(f,")"),className:"rv-xy-plot__axis__ticks"},g)}}])&&js(t.prototype,r),n&&js(t,n),i}(c.a.Component);Ts.defaultProps={style:{}},Ts.displayName="AxisTicks",Ts.propTypes=Rs,Ts.requiresSVG=!0;var Ds=Ts;function Ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function As(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(r),!0).forEach((function(t){Cs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ns=16,Ls=Vt.LEFT,Is=Vt.RIGHT,Fs=Vt.TOP,Hs=Vt.BOTTOM,Vs={width:o.a.number.isRequired,height:o.a.number.isRequired,orientation:o.a.oneOf([Ls,Is,Fs,Hs]).isRequired,style:o.a.object,title:o.a.string.isRequired};function qs(e){var t=e.orientation,r=e.position,n=e.width,o=e.height,i=e.style,a=e.title,u=t===Fs?o:0,s="translate(".concat(t===Ls?n:0,", ").concat(u,")"),l=function(e,t){var r;return Cs(r={},Ls,{end:{x:Ns,y:6,rotation:-90,textAnchor:"end"},middle:{x:Ns,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:Ns,y:t-6,rotation:-90,textAnchor:"start"}}),Cs(r,Is,{end:{x:-8,y:6,rotation:-90,textAnchor:"end"},middle:{x:-8,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:-8,y:t-6,rotation:-90,textAnchor:"start"}}),Cs(r,Fs,{start:{x:6,y:Ns,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:Ns,rotation:0,textAnchor:"middle"},end:{x:e-6,y:Ns,rotation:0,textAnchor:"end"}}),Cs(r,Hs,{start:{x:6,y:-6,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:-6,rotation:0,textAnchor:"middle"},end:{x:e-6,y:-6,rotation:0,textAnchor:"end"}}),r}(n,o)[t][r],f=l.x,p=l.y,y=l.rotation,b=l.textAnchor,h="translate(".concat(f,", ").concat(p,") rotate(").concat(y,")");return c.a.createElement("g",{transform:s,className:"rv-xy-plot__axis__title"},c.a.createElement("g",{style:As({textAnchor:b},i),transform:h},c.a.createElement("text",{style:i},a)))}qs.displayName="AxisTitle",qs.propTypes=Vs,qs.defaultProps={position:"end"};var Ws=qs;function Bs(e){return Bs="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},Bs(e)}function zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(r),!0).forEach((function(t){Us(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Us(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xs(){return Xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xs.apply(this,arguments)}function Ys(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ks(e,t){return Ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ks(e,t)}function $s(e){var t=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(e){return!1}}();return function(){var r,n=Zs(e);if(t){var o=Zs(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Bs(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Zs(e){return Zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zs(e)}var Js=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],Qs=Vt.LEFT,el=Vt.RIGHT,tl=Vt.TOP,rl=Vt.BOTTOM,nl={orientation:o.a.oneOf([Qs,el,tl,rl]),attr:o.a.string.isRequired,attrAxis:o.a.string,width:o.a.number,height:o.a.number,top:o.a.number,left:o.a.number,title:o.a.string,style:o.a.object,className:o.a.string,hideTicks:o.a.bool,hideLine:o.a.bool,on0:o.a.bool,tickLabelAngle:o.a.number,tickSize:o.a.number,tickSizeInner:o.a.number,tickSizeOuter:o.a.number,tickPadding:o.a.number,tickValues:o.a.arrayOf(o.a.oneOfType([o.a.number,o.a.string])),tickFormat:o.a.func,tickTotal:o.a.number,marginTop:o.a.number,marginBottom:o.a.number,marginLeft:o.a.number,marginRight:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number},ol={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:rl},il=function(e){!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&&Ks(e,t)}(i,e);var t,r,n,o=$s(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_getDefaultAxisProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop,o=e.marginBottom,i=e.marginLeft,a=e.marginRight,c=e.orientation;return c===rl?{tickTotal:Wt(t),top:r+n,left:i,width:t,height:o}:c===tl?{tickTotal:Wt(t),top:0,left:i,width:t,height:n}:c===Qs?{tickTotal:Wt(r),top:n,left:0,width:i,height:r}:{tickTotal:Wt(r),top:n,left:i+t,width:a,height:r}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?Js.filter((function(t){return e.nonAnimatedProps.indexOf(t)<0})):Js;return c.a.createElement(E,Xs({},this.props,{animatedProps:t}),c.a.createElement(i,Xs({},this.props,{animation:null})))}var r=Gs(Gs({},this._getDefaultAxisProps()),this.props),n=r.attrAxis,o=r.className,a=r.height,u=r.hideLine,s=r.hideTicks,l=r.left,f=r.marginTop,p=r.on0,y=r.orientation,b=r.position,h=r.style,d=r.title,m=r.top,g=r.width,v=[Qs,el].indexOf(y)>-1,O=v?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",j=l,w=m;if(p){var _=ie(r,n);v?j=_(0):w=f+_(0)}return c.a.createElement("g",{transform:"translate(".concat(j,",").concat(w,")"),className:Ye("rv-xy-plot__axis",O,o),style:h},!u&&c.a.createElement(hs,{height:a,width:g,orientation:y,style:Gs(Gs({},h),h.line)}),!s&&c.a.createElement(Ds,Xs({},r,{style:Gs(Gs({},h),h.ticks)})),d?c.a.createElement(Ws,{position:b,title:d,height:a,width:g,style:Gs(Gs({},h),h.title),orientation:y}):null)}}])&&Ys(t.prototype,r),n&&Ys(t,n),i}(a.PureComponent);il.displayName="Axis",il.propTypes=nl,il.defaultProps=ol,il.requiresSVG=!0;var al=il;function cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ul(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(r),!0).forEach((function(t){sl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ll=Vt.TOP,fl=Vt.BOTTOM,pl=ul(ul({},al.propTypes),{},{orientation:o.a.oneOf([ll,fl])}),yl={orientation:fl,attr:"x",attrAxis:"y"};function bl(e){return c.a.createElement(al,e)}bl.displayName="XAxis",bl.propTypes=pl,bl.defaultProps=yl,bl.requiresSVG=!0;var hl=bl;function dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(r),!0).forEach((function(t){gl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vl=Vt.LEFT,Ol=Vt.RIGHT,jl=ml(ml({},al.propTypes),{},{orientation:o.a.oneOf([vl,Ol])}),wl={orientation:vl,attr:"y",attrAxis:"x"};function _l(e){return c.a.createElement(al,e)}_l.displayName="YAxis",_l.propTypes=jl,_l.defaultProps=wl,_l.requiresSVG=!0;var Pl=_l,Sl={className:o.a.string,height:o.a.number,endColor:o.a.string,endTitle:o.a.oneOfType([o.a.number,o.a.string]).isRequired,midColor:o.a.string,midTitle:o.a.oneOfType([o.a.number,o.a.string]),startColor:o.a.string,startTitle:o.a.oneOfType([o.a.number,o.a.string]).isRequired,width:o.a.number},El={className:"",startColor:Ce[0],endColor:Ce[1]};function kl(e){var t=e.startColor,r=e.midColor,n=e.endColor,o=e.startTitle,i=e.midTitle,a=e.endTitle,u=e.height,s=e.width,l=e.className,f=[t];return r&&f.push(r),f.push(n),c.a.createElement("div",{className:Ye("rv-continuous-color-legend",l),style:{width:s,height:u}},c.a.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(f.join(","),")")}}),c.a.createElement("div",{className:"rv-legend-titles"},c.a.createElement("span",{className:"rv-legend-titles__left"},o),c.a.createElement("span",{className:"rv-legend-titles__right"},a),i?c.a.createElement("span",{className:"rv-legend-titles__center"},i):null))}kl.displayName="ContinuousColorLegend",kl.propTypes=Sl,kl.defaultProps=El;var xl={className:o.a.string,circlesTotal:o.a.number,endSize:o.a.number,endTitle:o.a.oneOfType([o.a.number,o.a.string]).isRequired,height:o.a.number,startSize:o.a.number,startTitle:o.a.oneOfType([o.a.number,o.a.string]).isRequired,width:o.a.number};function Rl(e){for(var t=e.startTitle,r=e.endTitle,n=e.startSize,o=e.endSize,i=e.circlesTotal,a=e.height,u=e.width,s=e.className,l=[],f=(o-n)/(i-1),p=0;p<i;p++){var y=f*p+n;l.push(c.a.createElement("div",{key:p,className:"rv-bubble",style:{width:y,height:y,borderRadius:y/2}})),l.push(" ")}return c.a.createElement("div",{className:Ye("rv-continuous-size-legend",s),style:{width:u,height:a}},c.a.createElement("div",{className:"rv-bubbles",style:{height:o}},l,c.a.createElement("div",{className:"rv-spacer"})),c.a.createElement("div",{className:"rv-legend-titles"},c.a.createElement("span",{className:"rv-legend-titles__left"},t),c.a.createElement("span",{className:"rv-legend-titles__right"},r)))}Rl.displayName="ContinuousSizeLegend",Rl.propTypes=xl,Rl.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};function Tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(r),!0).forEach((function(t){Ml(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ml(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Al={dashed:"6, 2",solid:null};function Cl(e){var t=e.color,r=e.strokeDasharray,n=e.strokeStyle,o=e.strokeWidth,i=e.disabled,a=e.onClick,u=e.orientation,s=e.onMouseEnter,l=e.onMouseLeave,f=e.title,p="rv-discrete-color-legend-item ".concat(u);i&&(p+=" disabled"),a&&(p+=" clickable");var y=Al[n]||r;return c.a.createElement("div",{className:p,onClick:a,onMouseEnter:s,onMouseLeave:l},c.a.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},c.a.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:Dl(Dl(Dl({},o?{strokeWidth:o}:{}),y?{strokeDasharray:y}:{}),{},{stroke:i?null:t})})),c.a.createElement("span",{className:"rv-discrete-color-legend-item__title"},f))}Cl.propTypes={color:o.a.string.isRequired,disabled:o.a.bool,title:o.a.oneOfType([o.a.string,o.a.element]).isRequired,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,orientation:o.a.oneOf(["vertical","horizontal"]).isRequired,strokeDasharray:o.a.string,strokeWidth:o.a.number,strokeStyle:o.a.oneOf(Object.keys(Al))},Cl.defaultProps={disabled:!1,strokeStyle:"solid"},Cl.displayName="DiscreteColorLegendItem";var Nl=Cl;function Ll(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(r),!0).forEach((function(t){Fl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ll(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hl(e){var t=e.className,r=e.colors,n=e.height,o=e.items,i=e.onItemClick,a=e.onItemMouseEnter,u=e.onItemMouseLeave,s=e.orientation,l=e.style,f=e.width;return c.a.createElement("div",{className:Ye("rv-discrete-color-legend",s,t),style:Il({width:f,height:n},l)},o.map((function(e,t){return c.a.createElement(Nl,{title:e.title?e.title:e,color:e.color?e.color:r[t%r.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:Boolean(e.disabled),orientation:s,key:t,onClick:i?function(r){return i(e,t,r)}:null,onMouseEnter:a?function(r){return a(e,t,r)}:null,onMouseLeave:a?function(r){return u(e,t,r)}:null})})))}Hl.displayName="DiscreteColorLegendItem",Hl.propTypes={className:o.a.string,items:o.a.arrayOf(o.a.oneOfType([o.a.shape({title:o.a.oneOfType([o.a.string,o.a.element]).isRequired,color:o.a.string,disabled:o.a.bool}),o.a.string.isRequired,o.a.element])).isRequired,onItemClick:o.a.func,onItemMouseEnter:o.a.func,onItemMouseLeave:o.a.func,height:o.a.number,width:o.a.number,orientation:o.a.oneOf(["vertical","horizontal"])},Hl.defaultProps={className:"",colors:Me,orientation:"vertical"};var Vl=Hl;function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(r),!0).forEach((function(t){Bl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zl=Wl(Wl({},Vl.propTypes),{},{searchText:o.a.string,onSearchChange:o.a.func,searchPlaceholder:o.a.string,searchFn:o.a.func}),Gl={className:"",searchText:"",searchFn:function(e,t){return e.filter((function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)}))}};function Ul(e){var t=e.className,r=e.colors,n=e.height,o=e.items,i=e.onItemClick,a=e.onItemMouseEnter,u=e.onItemMouseLeave,s=e.onSearchChange,l=e.orientation,f=e.searchFn,p=e.searchPlaceholder,y=e.searchText,b=e.width,h=s?function(e){var t=e.target.value;return s(t)}:null,d=f(o,y);return c.a.createElement("div",{className:Ye("rv-search-wrapper",t),style:{width:b,height:n}},c.a.createElement("form",{className:"rv-search-wrapper__form"},c.a.createElement("input",{type:"search",placeholder:p,className:"rv-search-wrapper__form__input",value:y,onChange:h})),c.a.createElement("div",{className:"rv-search-wrapper__contents"},c.a.createElement(Vl,{colors:r,items:d,onItemClick:i,onItemMouseEnter:a,onItemMouseLeave:u,orientation:l})))}Ul.propTypes=zl,Ul.defaultProps=Gl,Ul.displayName="SearchableDiscreteColorLegend";function Xl(e){return Xl="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},Xl(e)}function Yl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Kl(e,t){return Kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kl(e,t)}function $l(e){var t=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(e){return!1}}();return function(){var r,n=Jl(e);if(t){var o=Jl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Xl(t)||"function"==typeof t))return t;return Zl(e)}(this,r)}}function Zl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ql(Object(r),!0).forEach((function(t){tf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ql(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rf="rv-parallel-coordinates-chart",nf=Object(Vr.a)(".2r");function of(e){var t=e.domains,r=e.style;return t.map((function(e){return{x:e.name,y:1.1,label:e.name,style:r}}))}var af=function(e){!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&&Kl(e,t)}(i,e);var t,r,n,o=$l(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tf(Zl(e=o.call.apply(o,[this].concat(r))),"state",{brushFilters:{}}),e}return t=i,(r=[{key:"render",value:function(){var e=this,t=this.state.brushFilters,r=this.props,n=r.animation,o=r.brushing,i=r.className,a=r.children,u=r.colorRange,s=r.data,l=r.domains,f=r.height,p=r.hideInnerMostValues,y=r.margin,b=r.onMouseLeave,h=r.onMouseEnter,d=r.showMarks,m=r.style,g=r.tickFormat,v=r.width,O=function(e){var t=e.animation,r=e.domains,n=e.style,o=e.tickFormat;return r.map((function(e,r){var i=e.domain;return c.a.createElement(on,{animation:t,key:"".concat(r,"-axis"),axisStart:{x:e.name,y:0},axisEnd:{x:e.name,y:1},axisDomain:i,numberOfTicks:5,tickValue:function(t){return e.tickFormat?e.tickFormat(t):o(t)},style:n.axes})}))}({domains:l,animation:n,hideInnerMostValues:p,style:m,tickFormat:g}),j=function(e){var t=e.animation,r=e.brushFilters,n=e.colorRange,o=e.domains,i=e.data,a=e.style,u=e.showMarks,s=o.reduce((function(e,t){var r=t.domain;return e[t.name]=Object(x.a)().domain(r).range([0,1]),e}),{});return i.map((function(e,i){var l=!0,f=o.map((function(t){var n=t.getValue,o=t.name,i=s[o](n?n(e):e[o]),a=r[o];return a&&(i<a.min||i>a.max)&&(l=!1),{x:o,y:i}})),p="".concat(rf,"-line"),y="".concat(p," ").concat(rf,"-line-unselected"),b={animation:t,className:l?p:y,key:"".concat(i,"-polygon"),data:f,color:e.color||n[i%n.length],style:ef(ef({},a.lines),e.style||{})};return l||(b.style=ef(ef({},b.style),a.deselectedLineStyle)),u?c.a.createElement(Fa,b):c.a.createElement(ha,b)}))}({animation:n,brushFilters:t,colorRange:u,domains:l,data:s,showMarks:d,style:m}),w=c.a.createElement(ra,{animation:!0,key:i,className:"".concat(rf,"-label"),data:of({domains:l,style:m.labels})}),_=Du(this.props,Cu),P=_.marginLeft,S=_.marginRight;return c.a.createElement(cs,{height:f,width:v,margin:y,dontCheckIfEmpty:!0,className:Ye(i,rf),onMouseLeave:b,onMouseEnter:h,xType:"ordinal",yDomain:[0,1]},a,O.concat(j).concat(w),o&&l.map((function(r){var n=function(n){e.setState({brushFilters:ef(ef({},t),{},tf({},r.name,n?{min:n.bottom,max:n.top}:null))})};return c.a.createElement(no,{key:r.name,drag:!0,highlightX:r.name,onBrushEnd:n,onDragEnd:n,highlightWidth:(v-P-S)/l.length,enableX:!1})})))}}])&&Yl(t.prototype,r),n&&Yl(t,n),i}(a.Component);af.displayName="ParallelCoordinates",af.propTypes={animation:k,brushing:o.a.bool,className:o.a.string,colorType:o.a.string,colorRange:o.a.arrayOf(o.a.string),data:o.a.arrayOf(o.a.object).isRequired,domains:o.a.arrayOf(o.a.shape({name:o.a.string.isRequired,domain:o.a.arrayOf(o.a.number).isRequired,tickFormat:o.a.func})).isRequired,height:o.a.number.isRequired,margin:Au,style:o.a.shape({axes:o.a.object,labels:o.a.object,lines:o.a.object}),showMarks:o.a.bool,tickFormat:o.a.func,width:o.a.number.isRequired},af.defaultProps={className:"",colorType:"category",colorRange:Me,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:nf};function cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(r),!0).forEach((function(t){sf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lf="rv-radar-chart",ff=Object(Vr.a)(".2r");function pf(e){var t=1e-12;return Math.abs(e)<=t?e=0:e>0?Math.abs(e-.5)<=t&&(e=.5):e<0&&Math.abs(e+.5)<=t&&(e=-.5),e}function yf(e){var t=e.domains,r=e.startingAngle,n=e.style;return t.map((function(e,o){var i=e.name,a=o/t.length*Math.PI*2+r;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:i,style:n}}))}function bf(e){var t=e.animation,r=e.className,n=e.children,o=e.colorRange,i=e.data,a=e.domains,u=e.height,s=e.hideInnerMostValues,l=e.margin,f=e.onMouseLeave,p=e.onMouseEnter,y=e.startingAngle,b=e.style,h=e.tickFormat,d=e.width,m=e.renderAxesOverPolygons,g=e.onValueMouseOver,v=e.onValueMouseOut,O=e.onSeriesMouseOver,j=e.onSeriesMouseOut,w=function(e){var t=e.animation,r=e.domains,n=e.startingAngle,o=e.style,i=e.tickFormat,a=e.hideInnerMostValues;return r.map((function(e,u){var s=u/r.length*Math.PI*2+n,l=e.domain;return c.a.createElement(on,{animation:t,key:"".concat(u,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:pf(Math.cos(s)),y:pf(Math.sin(s))},axisDomain:l,numberOfTicks:5,tickValue:function(t){return a&&t===l[0]?"":e.tickFormat?e.tickFormat(t):i(t)},style:o.axes})}))}({domains:a,animation:t,hideInnerMostValues:s,startingAngle:y,style:b,tickFormat:h}),_=function(e){var t=e.animation,r=e.colorRange,n=e.domains,o=e.data,i=e.style,a=e.startingAngle,u=e.onSeriesMouseOver,s=e.onSeriesMouseOut,l=n.reduce((function(e,t){var r=t.domain;return e[t.name]=Object(x.a)().domain(r).range([0,1]),e}),{});return o.map((function(e,o){var f=n.map((function(t,r){var o=t.name,i=t.getValue,c=i?i(e):e[o],u=r/n.length*Math.PI*2+a,s=Math.max(l[o](c),0);return{x:s*Math.cos(u),y:s*Math.sin(u),name:e.name}}));return c.a.createElement(wc,{animation:t,className:"".concat(lf,"-polygon"),key:"".concat(o,"-polygon"),data:f,style:uf({stroke:e.color||e.stroke||r[o%r.length],fill:e.color||e.fill||r[o%r.length]},i.polygons),onSeriesMouseOver:u,onSeriesMouseOut:s})}))}({animation:t,colorRange:o,domains:a,data:i,startingAngle:y,style:b,onSeriesMouseOver:O,onSeriesMouseOut:j}),P=function(e){var t=e.animation,r=e.domains,n=e.data,o=e.startingAngle,i=e.style,a=e.onValueMouseOver,u=e.onValueMouseOut;if(a){var s=r.reduce((function(e,t){var r=t.domain;return e[t.name]=Object(x.a)().domain(r).range([0,1]),e}),{});return n.map((function(e,n){var l=r.map((function(t,n){var i=t.name,a=t.getValue,c=a?a(e):e[i],u=n/r.length*Math.PI*2+o,l=Math.max(s[i](c),0);return{x:l*Math.cos(u),y:l*Math.sin(u),domain:i,value:c,dataName:e.name}}));return c.a.createElement(Ea,{animation:t,className:"".concat(lf,"-polygonPoint"),key:"".concat(n,"-polygonPoint"),data:l,size:10,style:uf(uf({},i.polygons),{},{fill:"transparent",stroke:"transparent"}),onValueMouseOver:a,onValueMouseOut:u})}))}}({animation:t,colorRange:o,domains:a,data:i,startingAngle:y,style:b,onValueMouseOver:g,onValueMouseOut:v}),S=c.a.createElement(ra,{animation:t,key:r,className:"".concat(lf,"-label"),data:yf({domains:a,style:b.labels,startingAngle:y})});return c.a.createElement(cs,{height:u,width:d,margin:l,dontCheckIfEmpty:!0,className:Ye(r,lf),onMouseLeave:f,onMouseEnter:p,xDomain:[-1,1],yDomain:[-1,1]},n,!m&&w.concat(_).concat(S).concat(P),m&&_.concat(S).concat(w).concat(P))}bf.displayName="RadarChart",bf.propTypes={animation:k,className:o.a.string,colorType:o.a.string,colorRange:o.a.arrayOf(o.a.string),data:o.a.arrayOf(o.a.object).isRequired,domains:o.a.arrayOf(o.a.shape({name:o.a.string.isRequired,domain:o.a.arrayOf(o.a.number).isRequired,tickFormat:o.a.func})).isRequired,height:o.a.number.isRequired,hideInnerMostValues:o.a.bool,margin:Au,startingAngle:o.a.number,style:o.a.shape({axes:o.a.object,labels:o.a.object,polygons:o.a.object}),tickFormat:o.a.func,width:o.a.number.isRequired,renderAxesOverPolygons:o.a.bool,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,onSeriesMouseOver:o.a.func,onSeriesMouseOut:o.a.func},bf.defaultProps={className:"",colorType:"category",colorRange:Me,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:ff,renderAxesOverPolygons:!1};var hf=r(1169);function df(){return df=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},df.apply(this,arguments)}function mf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mf(Object(r),!0).forEach((function(t){vf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Of(e){var t=e.animation,r=e.className,n=e.children,o=e.colorType,i=e.data,a=e.getAngle,u=e.getLabel,s=e.getSubLabel,l=e.height,f=e.hideRootNode,p=e.innerRadius,y=e.labelsAboveChildren,b=e.labelsRadiusMultiplier,h=e.labelsStyle,d=e.margin,m=e.onMouseLeave,g=e.onMouseEnter,v=e.radius,O=e.showLabels,j=e.style,w=e.width,_=function(e){var t=e.data,r=e.getAngle;return Object(hf.a)().sort(null).value(r)(t).reverse().map((function(e,t){return gf(gf({},e.data),{},{angle0:e.startAngle,angle:e.endAngle,radius0:e.data.innerRadius||0,radius:e.data.radius||1,color:e.data.color||t})}))}({data:i,height:l,hideRootNode:f,width:w,getAngle:a}),P=Ge(_),S=gf(gf({colorType:o},e),{},{animation:t,radiusDomain:[0,P],data:_,radiusNoFallBack:!0,style:j,arcClassName:"rv-radial-chart__series--pie__slice"});v&&(S.radiusDomain=[0,1],S.radiusRange=[p||0,v],S.radiusType="linear");var E=v||function(e,t){return Math.min(e,t)/2-15}(w,l),k=Mu(w,l,E),x=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.1,n=t.getLabel,o=t.getSubLabel;return e.reduce((function(e,t){var i=t.angle,a=t.angle0,c=t.radius,u=(i+a)/2*-1+Math.PI/2,s=[];return n(t)&&s.push({angle:u,radius:c*r,label:n(t)}),o(t)&&s.push({angle:u,radius:c*r,label:o(t),style:{fontSize:10},yOffset:12}),e.concat(s)}),[])}(_,{getLabel:u,getSubLabel:s},b);return c.a.createElement(cs,{height:l,width:w,margin:gf(gf({},k),d),className:Ye(r,"rv-radial-chart"),onMouseLeave:m,onMouseEnter:g,xDomain:[-P,P],yDomain:[-P,P]},c.a.createElement(st,df({},S,{getAngle:function(e){return e.angle}})),O&&!y&&c.a.createElement(ra,{data:x,style:h}),n,O&&y&&c.a.createElement(ra,{data:x,style:h}))}Of.displayName="RadialChart",Of.propTypes={animation:k,className:o.a.string,colorType:o.a.string,data:o.a.arrayOf(o.a.shape({angle:o.a.number,className:o.a.string,label:o.a.string,radius:o.a.number,style:o.a.object})).isRequired,getAngle:o.a.func,getAngle0:o.a.func,padAngle:o.a.oneOfType([o.a.func,o.a.number]),getRadius:o.a.func,getRadius0:o.a.func,getLabel:o.a.func,height:o.a.number.isRequired,labelsAboveChildren:o.a.bool,labelsStyle:o.a.object,margin:Au,onValueClick:o.a.func,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,showLabels:o.a.bool,style:o.a.object,subLabel:o.a.func,width:o.a.number.isRequired},Of.defaultProps={className:"",colorType:"category",colorRange:Me,padAngle:0,getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},getRadius:function(e){return e.radius},getRadius0:function(e){return e.radius0},getLabel:function(e){return e.label},getSubLabel:function(e){return e.subLabel}};var jf=r(383);function wf(){return wf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wf.apply(this,arguments)}var _f=Me[1];function Pf(e){var t=e.animation,r=e.data,n=e.node,o=e.opacity,i=e.color,a=e.strokeWidth,u=e.style,s=e.onLinkClick,l=e.onLinkMouseOver,f=e.onLinkMouseOut;return t?c.a.createElement(E,wf({},e,{animatedProps:Ue}),c.a.createElement(Pf,wf({},e,{animation:null}))):c.a.createElement("path",wf({d:r},u,{className:"rv-sankey__link",opacity:Number.isFinite(o)?o:.7,stroke:i||_f,onClick:function(e){return s(n,e)},onMouseOver:function(e){return l(n,e)},onMouseOut:function(e){return f(n,e)},strokeWidth:a,fill:"none"}))}Pf.displayName="SankeyLink",Pf.requiresSVG=!0;var Sf=Pf;function Ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(r),!0).forEach((function(t){xf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rf(e){return function(e){if(Array.isArray(e))return Tf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Tf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Df(){return Df=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Df.apply(this,arguments)}var Mf=function(e){return e},Af={justify:jf.c,center:jf.b,left:jf.d,right:jf.f},Cf={top:20,left:20,right:20,bottom:20};function Nf(e){var t=e.align,r=e.animation,n=e.children,o=e.className,i=e.hasVoronoi,a=e.height,u=e.hideLabels,s=e.labelRotation,l=e.layout,f=e.links,p=e.linkOpacity,y=e.margin,b=e.nodePadding,h=e.nodes,d=e.nodeWidth,m=e.onValueClick,g=e.onValueMouseOver,v=e.onValueMouseOut,O=e.onLinkClick,j=e.onLinkMouseOver,w=e.onLinkMouseOut,_=e.style,P=e.width;if(0===h.length)return c.a.createElement(cs,Df({},e,{yType:"literal",className:Ye("rv-sankey",o)}));var S=Rf(new Array(h.length)).map((function(e,t){return kf({},h[t])})),E=Rf(new Array(f.length)).map((function(e,t){return kf({},f[t])})),k=Du({margin:y,height:a,width:P},Cf),x=k.marginLeft,R=k.marginTop,T=k.marginRight,D=k.marginBottom,M=Object(jf.a)().extent([[x,R],[P-T,a-D-R]]).nodeWidth(d).nodePadding(b).nodes(S).links(E).nodeAlign(Af[t]).iterations(l);M(S);var A=M.nodeWidth(),C=Object(jf.e)();return c.a.createElement(cs,Df({},e,{yType:"literal",className:Ye("rv-sankey",o)}),E.map((function(e,t){return c.a.createElement(Sf,{style:_.links,data:C(e),opacity:e.opacity||p,color:e.color,onLinkClick:O,onLinkMouseOver:j,onLinkMouseOut:w,strokeWidth:Math.max(e.width,1),node:e,nWidth:A,key:"link-".concat(t)})})),c.a.createElement(eu,{animation:r,className:Ye(o,"rv-sankey__node"),data:S.map((function(e){return kf(kf({},e),{},{y:e.y1-R,y0:e.y0-R,x:e.x1,x0:e.x0,color:e.color||Me[0],sourceLinks:null,targetLinks:null})})),style:_.rects,onValueClick:m,onValueMouseOver:g,onValueMouseOut:v,colorType:"literal"}),!u&&c.a.createElement(ra,{animation:r,className:o,rotation:s,labelAnchorY:"text-before-edge",data:S.map((function(e,t){return kf({x:e.x0+(e.x0<P/2?A+10:-10),y:(e.y0+e.y1)/2-R,label:e.name,style:kf({textAnchor:e.x0<P/2?"start":"end",dy:"-.5em"},_.labels)},h[t])}))}),i&&c.a.createElement(hu,{className:"rv-sankey__voronoi",extent:[[-x,-R],[P+T,a+D]],nodes:S,onClick:m,onHover:g,onBlur:v,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),n)}Nf.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:Cf,nodePadding:10,nodeWidth:10,onValueMouseOver:Mf,onValueClick:Mf,onValueMouseOut:Mf,onLinkClick:Mf,onLinkMouseOver:Mf,onLinkMouseOut:Mf,style:{links:{},rects:{},labels:{}}},Nf.propTypes={align:o.a.oneOf(["justify","left","right","center"]),className:o.a.string,hasVoronoi:o.a.bool,height:o.a.number.isRequired,hideLabels:o.a.bool,labelRotation:o.a.number,layout:o.a.number,links:o.a.arrayOf(o.a.shape({source:o.a.oneOfType([o.a.number,o.a.object]).isRequired,target:o.a.oneOfType([o.a.number,o.a.object]).isRequired})).isRequired,margin:Au,nodePadding:o.a.number,nodes:o.a.arrayOf(o.a.object).isRequired,nodeWidth:o.a.number,onValueMouseOver:o.a.func,onValueClick:o.a.func,onValueMouseOut:o.a.func,onLinkClick:o.a.func,onLinkMouseOver:o.a.func,onLinkMouseOut:o.a.func,style:o.a.shape({links:o.a.object,rects:o.a.object,labels:o.a.object}),width:o.a.number.isRequired};var Lf=r(2259),If=r(2268),Ff=r(2260);function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(r),!0).forEach((function(t){qf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wf="rv-sunburst",Bf=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesMouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"];var zf=function(){};function Gf(e){var t=e.getAngle,r=e.getAngle0,n=e.animation,o=e.className,i=e.children,a=e.data,u=e.height,s=e.hideRootNode,l=e.getLabel,f=e.width,p=e.getSize,y=e.colorType,b=function(e){var t=e.data,r=e.height,n=e.hideRootNode,o=e.width,i=e.getSize,a=Object(Lf.a)(),c=Object(If.a)(t).sum(i),u=Math.min(o,r)/2-10,s=Object(x.a)().range([0,2*Math.PI]),l=Object(Ff.a)().range([0,u]);return a(c).descendants().reduce((function(e,t,r){return n&&0===r?e:e.concat([Vf({angle0:Math.max(0,Math.min(2*Math.PI,s(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,s(t.x1))),radius0:Math.max(0,l(t.y0)),radius:Math.max(0,l(t.y1)),depth:t.depth,parent:t.parent},t.data)])}),[])}({data:a,height:u,hideRootNode:s,width:f,getSize:p}),h=Ge(b),d=Mu(f,u,h),m=function(e,t){var r=t.getAngle,n=t.getAngle0,o=t.getLabel,i=t.getRadius0;return e.filter(o).map((function(e){var t=-1*r(e)+Math.PI/2,o=(-1*n(e)+Math.PI/2+t)/2,a=!e.dontRotateLabel,c=-o/(2*Math.PI)*360;return Vf(Vf({},e),{},{children:null,angle:null,radius:null,x:i(e)*Math.cos(o),y:i(e)*Math.sin(o),style:Vf({textAnchor:c>90?"end":"start"},e.labelStyle),rotation:a?c>90?c+180:90===c?90:c:null})}))}(b,{getAngle:t,getAngle0:r,getLabel:l,getRadius0:function(e){return e.radius0}});return c.a.createElement(cs,{height:u,hasTreeStructure:!0,width:f,className:Ye(Wf,o),margin:d,xDomain:[-h,h],yDomain:[-h,h]},c.a.createElement(st,Vf(Vf({colorType:y},e),{},{animation:n,radiusDomain:[0,h],data:n?b.map((function(e,t){return Vf(Vf({},e),{},{parent:null,children:null,index:t})})):b,_data:n?b:null,arcClassName:"".concat(Wf,"__series--radial__arc")},Bf.reduce((function(t,r){var o,i=e[r];return t[r]=n?(o=i,function(e,t){return o?o(b[e.index],t):zf}):i,t}),{}))),m.length>0&&c.a.createElement(ra,{data:m,getLabel:l}),i)}Gf.displayName="Sunburst",Gf.propTypes={animation:k,getAngle:o.a.func,getAngle0:o.a.func,className:o.a.string,colorType:o.a.string,data:o.a.object.isRequired,height:o.a.number.isRequired,hideRootNode:o.a.bool,getLabel:o.a.func,onValueClick:o.a.func,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,getSize:o.a.func,width:o.a.number.isRequired,padAngle:o.a.oneOfType([o.a.func,o.a.number])},Gf.defaultProps={getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},className:"",colorType:"literal",getColor:function(e){return e.color},hideRootNode:!1,getLabel:function(e){return e.label},getSize:function(e){return e.size},padAngle:0};var Uf=r(525),Xf=r(2261),Yf=r(456),Kf=r(336),$f=r(2262),Zf=r(2263),Jf=r(2276),Qf=r(2264);function ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(r),!0).forEach((function(t){rp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function np(){return np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},np.apply(this,arguments)}var op=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function ip(e){var t=e.animation,r=e.getLabel,n=e.mode,o=e.node,i=e.onLeafClick,a=e.onLeafMouseOver,u=e.onLeafMouseOut,s=e.r,l=e.scales,f=e.x0,p=e.x1,y=e.y0,b=e.y1,h=e.style;if(t)return c.a.createElement(E,np({},e,{animatedProps:op}),c.a.createElement(ip,np({},e,{animation:null})));var d="circlePack"===n,m=l.color(o),g=l.opacity(o),v=he(m),O=r(o.data),j=tp(tp({top:d?y-s:y,left:d?f-s:f,width:d?2*s:p-f,height:d?2*s:b-y,background:m,opacity:g,color:v},h),o.data.style);return c.a.createElement("div",{className:"rv-treemap__leaf ".concat(d?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return a(o,e)},onMouseLeave:function(e){return u(o,e)},onClick:function(e){return i(o,e)},style:j},c.a.createElement("div",{className:"rv-treemap__leaf__content"},O))}ip.propTypes={animation:k,height:o.a.number.isRequired,mode:o.a.string,node:o.a.object.isRequired,onLeafClick:o.a.func,onLeafMouseOver:o.a.func,onLeafMouseOut:o.a.func,scales:o.a.object.isRequired,width:o.a.number.isRequired,r:o.a.number.isRequired,x0:o.a.number.isRequired,x1:o.a.number.isRequired,y0:o.a.number.isRequired,y1:o.a.number.isRequired};var ap=ip;function cp(){return cp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cp.apply(this,arguments)}function up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?up(Object(r),!0).forEach((function(t){lp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):up(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fp(e){var t=e.animation,r=e.className,n=e.height,o=e.hideRootNode,i=e.getLabel,a=e.mode,u=e.nodes,s=e.width,l=e.scales,f=e.style,p="circlePack"===a;return c.a.createElement("div",{className:Ye("rv-treemap",p&&"rv-treemap-circle-paked",r),style:{height:n,width:s}},u.map((function(r,n){if(o&&!n)return null;var a=sp(sp({animation:t,node:r,getLabel:i},e),{},{x0:p?r.x:r.x0,x1:p?r.x:r.x1,y0:p?r.y:r.y0,y1:p?r.y:r.y1,r:p?r.r:1,scales:l,style:f});return c.a.createElement(ap,cp({},a,{key:"leaf-".concat(n)}))})))}fp.displayName="TreemapDOM";var pp=fp;function yp(e){return yp="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},yp(e)}function bp(){return bp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bp.apply(this,arguments)}function hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(r),!0).forEach((function(t){mp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vp(e,t){return vp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vp(e,t)}function Op(e){var t=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(e){return!1}}();return function(){var r,n=jp(e);if(t){var o=jp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===yp(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jp(e)}var wp=function(e){!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&&vp(e,t)}(i,e);var t,r,n,o=Op(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"getCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,n=e.nodes,o=e.onLeafMouseOver,i=e.onLeafMouseOut,a=e.onLeafClick,u=e.scales,s=e.style,l=n.reduce((function(e,t,n){if(!n&&r)return e;var o=t.x,i=t.y,a=t.r;return{maxY:Math.max(i+a,e.maxY),minY:Math.min(i-a,e.minY),maxX:Math.max(o+1.2*a,e.maxX),minX:Math.min(o-1.2*a,e.minX),rows:e.rows.concat([{x:o,y:i,size:a,color:u.color(t)}])}}),{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),f=l.rows,p=l.minY,y=l.maxY,b=l.minX,h=l.maxX;return{updatedNodes:c.a.createElement(Ea,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:o,onSeriesMouseLeave:i,onSeriesClick:a,data:f,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:s}),minY:p,maxY:y,minX:b,maxX:h}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,n=e.nodes,o=e.onLeafMouseOver,i=e.onLeafMouseOut,a=e.onLeafClick,u=e.scales,s=e.style,l=u.color;return n.reduce((function(e,n,u){if(!u&&r)return e;var f=n.x0,p=n.x1,y=n.y1,b=n.y0,h=f,d=b,m=y-b,g=p-f;e.maxY=Math.max(d+m,e.maxY),e.minY=Math.min(d,e.minY),e.maxX=Math.max(h+g,e.maxX),e.minX=Math.min(h,e.minX);var v=[{x:h,y:d},{x:h,y:d+m},{x:h+g,y:d+m},{x:h+g,y:d}];return e.updatedNodes=e.updatedNodes.concat([c.a.createElement(wc,{animation:t,className:"rv-treemap__leaf",key:u,color:l(n),type:"literal",onSeriesMouseEnter:o,onSeriesMouseLeave:i,onSeriesClick:a,data:v,style:dp(dp({},s),n.style)})]),e}),{updatedNodes:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,n=e.mode,o=e.nodes,i=e.width,a="circlePack"===n,u=a?this.getCircularNodes():this.getNonCircularNodes(),s=u.minY,l=u.maxY,f=u.minX,p=u.maxX,y=u.updatedNodes,b=o.reduce((function(e,t){return t.data.title?e.concat(dp(dp({},t.data),{},{x:t.x0||t.x,y:t.y0||t.y,label:"".concat(t.data.title)})):e}),[]);return c.a.createElement(cs,bp({className:Ye("rv-treemap",a&&"rv-treemap-circle-paked",t),width:i,height:r,yDomain:[l,s],xDomain:[f,p],colorType:"literal",hasTreeStructure:!0},this.props),y,c.a.createElement(ra,{data:b}))}}])&&gp(t.prototype,r),n&&gp(t,n),i}(c.a.Component);wp.displayName="TreemapSVG";var _p=wp;function Pp(){return Pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(this,arguments)}function Sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ep(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(r),!0).forEach((function(t){kp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xp={squarify:Uf.a,resquarify:Xf.a,slice:Yf.a,dice:Kf.a,slicedice:$f.a,binary:Zf.a},Rp=function(e){return e},Tp=["opacity","color"];function Dp(e){var t=function(e){var t=e.data.children||[],r=Ep(Ep(Ep({},e),ye(e,t,Tp)),{},{_allData:t});return{opacity:ue(r,"opacity"),color:ue(r,"color")}}(e),r=Du(e,e.margin);var n=e.renderMode,o=function(){var t=r.innerWidth,n=r.innerHeight,o=e.data,i=e.mode,a=e.padding,c=e.sortFunction,u=e.getSize;if(!o)return[];if("partition"===i||"partition-pivot"===i){var s=Object(Lf.a)().size("partition-pivot"===i?[n,t]:[t,n]).padding(a)(Object(If.a)(o).sum(u).sort((function(e,t){return c(e,t,u)}))).descendants();return"partition-pivot"===i?s.map((function(e){return Ep(Ep({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})})):s}if("circlePack"===i)return Object(Jf.a)().size([t,n]).padding(a)(Object(If.a)(o).sum(u).sort((function(e,t){return c(e,t,u)}))).descendants();var l=xp[i];return Object(Qf.a)(l).tile(l).size([t,n]).padding(a)(Object(If.a)(o).sum(u).sort((function(e,t){return c(e,t,u)}))).descendants()}(),i="SVG"===n?_p:pp;return c.a.createElement(i,Pp({},e,{nodes:o,scales:t}))}Dp.displayName="Treemap",Dp.propTypes={animation:k,className:o.a.string,data:o.a.object.isRequired,height:o.a.number.isRequired,hideRootNode:o.a.bool,margin:Au,mode:o.a.oneOf(Object.keys(xp).concat(["circlePack","partition","partition-pivot"])),onLeafClick:o.a.func,onLeafMouseOver:o.a.func,onLeafMouseOut:o.a.func,useCirclePacking:o.a.bool,padding:o.a.number.isRequired,sortFunction:o.a.func,width:o.a.number.isRequired,getSize:o.a.func,getColor:o.a.func},Dp.defaultProps={className:"",colorRange:Ce,_colorValue:Ie,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:Rp,onLeafMouseOver:Rp,onLeafMouseOut:Rp,opacityType:Le,_opacityValue:1,padding:1,sortFunction:function(e,t,r){return r?r(e)-r(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};function Mp(e){var t=e.id,r=void 0===t?"content-area":t,n=e.innerWidth,o=e.innerHeight;return c.a.createElement("defs",null,c.a.createElement("clipPath",{id:r},c.a.createElement("rect",{x:0,y:0,width:n,height:o})))}Mp.requiresSVG=!0,Mp.displayName="ContentClipPath";var Ap=r(465),Cp=r.n(Ap);function Np(e){return Np="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},Np(e)}function Lp(){return Lp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lp.apply(this,arguments)}function Ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ip(Object(r),!0).forEach((function(t){Up(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Vp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qp(e,t,r){return t&&Vp(e.prototype,t),r&&Vp(e,r),e}function Wp(e,t){return Wp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wp(e,t)}function Bp(e){var t=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(e){return!1}}();return function(){var r,n=Gp(e);if(t){var o=Gp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Np(t)||"function"==typeof t))return t;return zp(e)}(this,r)}}function zp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gp(e){return Gp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gp(e)}function Up(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xp="container",Yp=[],Kp=null;function $p(){Cp.a.clearTimeout(Kp),Kp=Cp.a.setTimeout(Zp,100)}function Zp(){Yp.forEach((function(e){return e()}))}function Jp(e){return Yp.push(e),1===Yp.length&&Cp.a.addEventListener("resize",$p),function(){!function(e){var t=Yp.indexOf(e);t>-1&&Yp.splice(t,1)}(e),0===Yp.length&&(Cp.a.clearTimeout(Kp),Cp.a.removeEventListener("resize",$p))}}function Qp(e,t,r){var n,o=(n=function(n){!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&&Wp(e,t)}(i,n);var o=Bp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Up(zp(t=o.call(this,e)),"_onResize",(function(){var e=Object(I.a)(t[Xp]),r=e.offsetHeight,n=e.offsetWidth,o=t.state.height===r?{}:{height:r},i=t.state.width===n?{}:{width:n};t.setState(Fp(Fp({},o),i))})),t.state={height:0,width:0},t}return qp(i,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return Hp(t,["height","width"])}}]),qp(i,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=Jp(this._onResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var n=this,o=this.state,i=o.height,a=o.width,u=Fp(Fp({},this.props),{},{animation:0===i&&0===a?null:this.props.animation}),s=Fp(Fp({},r?{height:i}:{}),t?{width:a}:{});return c.a.createElement("div",{ref:function(e){return n[Xp]=e},style:{width:"100%",height:"100%"}},c.a.createElement(e,Lp({},s,u)))}}]),i}(c.a.Component),n);return o.displayName="Flexible".concat(function(e){return e.displayName||e.name||"Component"}(e)),o}var ey=Qp(cs,!0,!1);(function(e){Qp(e,!1,!0)})(cs),function(e){Qp(e,!0,!0)}(cs)},263:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return h}));var n=r(1);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i,a,c=r.n(n).a.version.split("."),u=(a=2,function(e){if(Array.isArray(e))return e}(i=c)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(i,a)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],l=u[1],f=Number(l)>13||Number(s)>13,p=function(e){return f?e:e&&e.getDOMNode()},y={},b={test:!0,production:!0};function h(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.process&&b.production||r&&y[t]||(console.warn(t),y[t]=!0)}}).call(this,r(82))},339:function(e,t,r){"use strict";var n=r(1),o=r.n(n);t.a=o.a.createContext(null)},424:function(e,t,r){"use strict";var n={};function o(e,t,r){r||(r=Error);var o=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);o.prototype.name=r.name,o.prototype.code=e,n[e]=o}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,a,c;if("string"==typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(u," ").concat(n," ").concat(i(t,"type"))}return c+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},425:function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=s;var o=r(1051),i=r(1055);r(58)(s,o);for(var a=n(i.prototype),c=0;c<a.length;c++){var u=a[c];s.prototype[u]||(s.prototype[u]=i.prototype[u])}function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||t.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(120))},514:function(e,t,r){"use strict";t.a={disabled:!1}},632:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e.scrollTop}},774:function(e,t,r){"use strict";var n=r(424).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||o);var a=r.readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||l()},s=t._writableState&&t._writableState.finished,l=function(){c=!1,s=!0,a||i.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){a=!1,f=!0,c||i.call(t)},y=function(e){i.call(t,e)},b=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):c&&!s?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},h=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?c&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",l),t.on("abort",b),t.req?h():t.on("request",h)),t.on("end",p),t.on("finish",l),!1!==r.error&&t.on("error",y),t.on("close",b),function(){t.removeListener("complete",l),t.removeListener("abort",b),t.removeListener("request",h),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("end",p),t.removeListener("error",y),t.removeListener("close",b)}}},883:function(e,t,r){"use strict";r.r(t),r.d(t,"CSSTransition",(function(){return b})),r.d(t,"ReplaceTransition",(function(){return x})),r.d(t,"SwitchTransition",(function(){return N})),r.d(t,"TransitionGroup",(function(){return P})),r.d(t,"Transition",(function(){return l.default})),r.d(t,"config",(function(){return L.a}));var n=r(67),o=r(128),i=r(179),a=r(1246),c=r(1179),u=r(1),s=r.n(u),l=r(161),f=r(632),p=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return Object(c.a)(e,t)}))},y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}Object(i.a)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&Object(f.a)(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return Object(a.a)(e,t)}))}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&p(e,n),o&&p(e,o),i&&p(e,i)},r.render=function(){var e=this.props,t=(e.classNames,Object(o.a)(e,["classNames"]));return s.a.createElement(l.default,Object(n.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.a.Component);y.defaultProps={classNames:""},y.propTypes={};var b=y,h=r(153),d=r.n(h),m=r(337),g=r(339);function v(e,t){var r=Object.create(null);return e&&u.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&Object(u.isValidElement)(e)?t(e):e}(e)})),r}function O(e,t,r){return null!=r[t]?r[t]:e.props[t]}function j(e,t,r){var n=v(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in t){if(o[u])for(n=0;n<o[u].length;n++){var s=o[u][n];c[o[u][n]]=r(s)}c[u]=r(u)}for(n=0;n<i.length;n++)c[i[n]]=r(i[n]);return c}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(Object(u.isValidElement)(a)){var c=i in t,s=i in n,l=t[i],f=Object(u.isValidElement)(l)&&!l.props.in;!s||c&&!f?s||!c||f?s&&c&&Object(u.isValidElement)(l)&&(o[i]=Object(u.cloneElement)(a,{onExited:r.bind(null,a),in:l.props.in,exit:O(a,"exit",e),enter:O(a,"enter",e)})):o[i]=Object(u.cloneElement)(a,{in:!1}):o[i]=Object(u.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:O(a,"exit",e),enter:O(a,"enter",e)})}})),o}var w=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},_=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Object(m.a)(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Object(i.a)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,v(r.children,(function(e){return Object(u.cloneElement)(e,{onExited:n.bind(null,e),in:!0,appear:O(e,"appear",r),enter:O(e,"enter",r),exit:O(e,"exit",r)})}))):j(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=v(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Object(n.a)({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Object(o.a)(e,["component","childFactory"]),i=this.state.contextValue,a=w(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?s.a.createElement(g.a.Provider,{value:i},a):s.a.createElement(g.a.Provider,{value:i},s.a.createElement(t,n,a))},t}(s.a.Component);_.propTypes={},_.defaultProps={component:"div",childFactory:function(e){return e}};var P=_,S=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}Object(i.a)(t,e);var r=t.prototype;return r.handleLifecycle=function(e,t,r){var n,o=this.props.children,i=s.a.Children.toArray(o)[t];if(i.props[e]&&(n=i.props)[e].apply(n,r),this.props[e]){var a=i.props.nodeRef?void 0:d.a.findDOMNode(this);this.props[e](a)}},r.render=function(){var e=this.props,t=e.children,r=e.in,n=Object(o.a)(e,["children","in"]),i=s.a.Children.toArray(t),a=i[0],c=i[1];return delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,s.a.createElement(P,n,r?s.a.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s.a.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s.a.Component);S.propTypes={};var E,k,x=S;var R="out-in",T="in-out",D=function(e,t,r){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),r()}},M=((E={})[R]=function(e){var t=e.current,r=e.changeState;return s.a.cloneElement(t,{in:!1,onExited:D(t,"onExited",(function(){r(l.ENTERING,null)}))})},E[T]=function(e){var t=e.current,r=e.changeState,n=e.children;return[t,s.a.cloneElement(n,{in:!0,onEntered:D(n,"onEntered",(function(){r(l.ENTERING)}))})]},E),A=((k={})[R]=function(e){var t=e.children,r=e.changeState;return s.a.cloneElement(t,{in:!0,onEntered:D(t,"onEntered",(function(){r(l.ENTERED,s.a.cloneElement(t,{in:!0}))}))})},k[T]=function(e){var t=e.current,r=e.children,n=e.changeState;return[s.a.cloneElement(t,{in:!1,onExited:D(t,"onExited",(function(){n(l.ENTERED,s.a.cloneElement(r,{in:!0}))}))}),s.a.cloneElement(r,{in:!0})]},k),C=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={status:l.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,r){void 0===r&&(r=t.state.current),t.setState({status:e,current:r})},t}Object(i.a)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===l.ENTERING&&e.mode===T?{status:l.ENTERING}:!t.current||(r=t.current,n=e.children,r===n||s.a.isValidElement(r)&&s.a.isValidElement(n)&&null!=r.key&&r.key===n.key)?{current:s.a.cloneElement(e.children,{in:!0})}:{status:l.EXITING};var r,n},r.render=function(){var e,t=this.props,r=t.children,n=t.mode,o=this.state,i=o.status,a=o.current,c={children:r,current:a,changeState:this.changeState,status:i};switch(i){case l.ENTERING:e=A[n](c);break;case l.EXITING:e=M[n](c);break;case l.ENTERED:e=a}return s.a.createElement(g.a.Provider,{value:{isMounting:!this.appeared}},e)},t}(s.a.Component);C.propTypes={},C.defaultProps={mode:R};var N=C,L=r(514)},951:function(e,t,r){"use strict";r.r(t),r.d(t,"ReactSVG",(function(){return h}));var n=r(1183),o=r.n(n),i=r(810),a=r.n(i),c=r(1184),u=r.n(c),s=r(1185),l=r(0),f=r(1),p=["afterInjection","beforeInjection","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","useRequestCache","wrapper"],y="http://www.w3.org/2000/svg",b="http://www.w3.org/1999/xlink",h=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}u()(t,e);var r=t.prototype;return r.renderSVG=function(){var e=this;if(this.reactWrapper instanceof Node){var t,r,n=this.props,o=n.beforeInjection,i=n.evalScripts,a=n.httpRequestWithCredentials,c=n.renumerateIRIElements,u=n.src,l=n.useRequestCache,f=this.props.afterInjection,p=this.props.wrapper;"svg"===p?((t=document.createElementNS(y,p)).setAttribute("xmlns",y),t.setAttribute("xmlns:xlink",b),r=document.createElementNS(y,p)):(t=document.createElement(p),r=document.createElement(p)),t.appendChild(r),r.dataset.src=u,this.nonReactWrapper=this.reactWrapper.appendChild(t);Object(s.a)(r,{afterEach:function(t,r){!t||(e.removeSVG(),e._isMounted)?e._isMounted&&e.setState((function(){return{hasError:!!t,isLoading:!1}}),(function(){f(t,r)})):f(t)},beforeEach:o,cacheRequests:l,evalScripts:i,httpRequestWithCredentials:a,renumerateIRIElements:c})}},r.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},r.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},r.componentDidUpdate=function(e){var t=this;(function(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1})(e,this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},r.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},r.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var r=e.loading;e.renumerateIRIElements,e.src,e.useRequestCache;var n=e.wrapper,i=a()(e,p),c=n;return f.createElement(c,o()({},i,{ref:this.refCallback},"svg"===n?{xmlns:y,xmlnsXlink:b}:{}),this.state.isLoading&&r&&f.createElement(r,null),this.state.hasError&&t&&f.createElement(t,null))},t}(f.Component);h.defaultProps={afterInjection:function(){},beforeInjection:function(){},evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,renumerateIRIElements:!0,useRequestCache:!0,wrapper:"div"},h.propTypes={afterInjection:l.func,beforeInjection:l.func,evalScripts:l.oneOf(["always","once","never"]),fallback:l.oneOfType([l.func,l.object,l.string]),httpRequestWithCredentials:l.bool,loading:l.oneOfType([l.func,l.object,l.string]),renumerateIRIElements:l.bool,src:l.string.isRequired,useRequestCache:l.bool,wrapper:l.oneOf(["div","span","svg"])}}}]);