text: !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=152)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=Q.default;return t}function i(e){return(e>0)-(e<0)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[e],n=t.length;return function(e,r){if(0===n)return w(e)?e:r;for(var o=0;null!=e&&o<n;)e=e[t[o++]];return o===n?e:r}}function s(e){return"function"===typeof e?e:function(){return e}}function c(e,t,n){var r=(0,K.bisector)(n).left(e,t);r=Math.max(r-1,0);var o=Math.min(r+1,e.length-1),a=n(e[r]);return a>=t&&a<=t&&(o=r),{left:r,right:o}}function l(e){return 180*e/Math.PI}function f(e){return e*Math.PI/180}function d(e,t){var n=J(e)?e:[e],r=n.map(function(e){return e-t}).reduce(function(e,t){return Math.abs(e)<Math.abs(t)?e:t});return t+r}function p(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function h(e){return e?{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}:{}}function y(e,t,n,r){for(var o=0,a=e.length-1;a-o>1;){var i=Math.round((o+a)/2);n(e[i])<=t?o=i:a=i}return n(e[o]).valueOf()===t.valueOf()&&(a=o),n(e[a]).valueOf()===t.valueOf()&&(o=a),n(e[o])<t&&n(e[a])<t&&(o=a),n(e[o])>t&&n(e[a])>t&&(a=o),{left:o,right:a}}function v(e,t,n,r){var o=y(e,t,n,r),a=o.left,i=o.right;if(a===i)return e[a];var u=Math.abs(n(e[a])-t)<Math.abs(n(e[i])-t)?e[a]:e[i];return r&&console.log(e[a],e[i],u,a,i),u}function b(e,t){if(!t||!e)return e?e[0]:void 0;for(var n=void 0,r=0;r<e.length;r++)if(n=e[r],w(t(n)))return n}function g(e,t){return t&&e?e.map(t).slice(1):e?e.slice(1):void 0}function m(e,t){if(!t||!e){var n=e?e.length:0;return n?e[n-1]:void 0}for(var r=void 0,o=e.length-1;o>=0;o--)if(r=e[o],w(t(r)))return r}function w(e){return null!==e&&"undefined"!=typeof e}function _(e){return!w(e)}function O(e){return w(e)&&"object"===("undefined"===typeof e?"undefined":F(e))&&!Array.isArray(e)}function x(e,t){var n=t.target,r=n.getBoundingClientRect(),o=e.clientX-r.left-n.clientLeft,a=e.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(a)]}function k(e,t){var n=e.currentTarget,r=t||n.getBoundingClientRect(),o=e.clientX-r.left-n.clientLeft,a=e.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(a)]}function C(e,t){e.forEach(function(e){e.setTransform(1,0,0,1,0,0),e.clearRect(-1,-1,e.canvas.width+2,e.canvas.height+2),e.scale(t,t)})}function P(e){return e.charAt(0).toUpperCase()+e.substring(1)}function S(e,t){var n=e.replace("#","");if(e.indexOf("#")>-1&&(3===n.length||6===n.length)){var r=3===n.length?1:2;return"rgba("+parseInt(n.substring(0,1*r),16)+", "+parseInt(n.substring(1*r,2*r),16)+", "+parseInt(n.substring(2*r,3*r),16)+", "+t+")"}return e}function E(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}function j(e,t){return e.reduce(function(e,n){var r=t(n),a=R(r,2),i=a[0],u=a[1];return N({},e,o({},i,u))},{})}function T(e,t){e=Object(e);var n={};return Object.keys(e).forEach(function(r){n[r]=t(e[r],r,e)}),n}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.default,n=Object.keys(e),r=new Array(n.length);return n.forEach(function(n,o){r[o]=t(e[n],n,e)}),r}function A(e,t,n){return w(e)&&e.length>t?e.slice(0,t).concat(n).concat(e.slice(t+1)):e}function D(e,t){var n=Object(e);Object.keys(n).forEach(function(e){return t(n[e],e,n)})}Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=t.first=t.overlayColors=t.TOUCHEND=t.TOUCHMOVE=t.MOUSEUP=t.MOUSEMOVE=t.MOUSELEAVE=t.MOUSEENTER=t.yes=t.PureComponent=t.accumulatingWindow=t.mappedSlidingWindow=t.shallowEqual=t.noop=t.identity=t.slidingWindow=t.merge=t.zipper=t.rebind=void 0;var N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),F="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},I=n(323);Object.defineProperty(t,"rebind",{enumerable:!0,get:function(){return r(I).default}});var W=n(143);Object.defineProperty(t,"zipper",{enumerable:!0,get:function(){return r(W).default}});var B=n(324);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return r(B).default}});var q=n(325);Object.defineProperty(t,"slidingWindow",{enumerable:!0,get:function(){return r(q).default}});var z=n(37);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return r(z).default}});var H=n(38);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return r(H).default}});var L=n(144);Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return r(L).default}});var U=n(326);Object.defineProperty(t,"mappedSlidingWindow",{enumerable:!0,get:function(){return r(U).default}});var V=n(327);Object.defineProperty(t,"accumulatingWindow",{enumerable:!0,get:function(){return r(V).default}});var Y=n(328);Object.defineProperty(t,"PureComponent",{enumerable:!0,get:function(){return r(Y).default}});var G=n(329);Object.keys(G).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}})});var X=n(330);Object.keys(X).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}})}),t.getLogger=a,t.sign=i,t.path=u,t.functor=s,t.getClosestItemIndexes2=c,t.degrees=l,t.radians=f,t.getClosestValue=d,t.d3Window=p,t.getTouchProps=h,t.getClosestItemIndexes=y,t.getClosestItem=v,t.head=b,t.tail=g,t.last=m,t.isDefined=w,t.isNotDefined=_,t.isObject=O,t.touchPosition=x,t.mousePosition=k,t.clearCanvas=C,t.capitalizeFirst=P,t.hexToRGBA=S,t.findItem=E,t.toObject=j,t.mapValue=T,t.mapObject=M,t.replaceAtIndex=A,t.forOwn=D;var Z=n(21),K=n(3),Q=r(H),$=r(z),J=(t.yes=function(){return!0},t.MOUSEENTER="mouseenter.interaction",t.MOUSELEAVE="mouseleave.interaction",t.MOUSEMOVE="mousemove.pan",t.MOUSEUP="mouseup.pan",t.TOUCHMOVE="touchmove.pan",t.TOUCHEND="touchend.pan touchcancel.pan",t.overlayColors=(0,Z.scaleOrdinal)(Z.schemeCategory10),t.first=b,t.isArray=Array.isArray)},function(e,t,n){"use strict";e.exports=n(159)},function(e,t,n){e.exports=n(170)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(89);n.d(t,"bisect",function(){return r.c}),n.d(t,"bisectRight",function(){return r.b}),n.d(t,"bisectLeft",function(){return r.a});var o=n(22);n.d(t,"ascending",function(){return o.a});var a=n(90);n.d(t,"bisector",function(){return a.a});var i=n(173);n.d(t,"cross",function(){return i.a});var u=n(174);n.d(t,"descending",function(){return u.a});var s=n(92);n.d(t,"deviation",function(){return s.a});var c=n(94);n.d(t,"extent",function(){return c.a});var l=n(175);n.d(t,"histogram",function(){return l.a});var f=n(178);n.d(t,"thresholdFreedmanDiaconis",function(){return f.a});var d=n(179);n.d(t,"thresholdScott",function(){return d.a});var p=n(98);n.d(t,"thresholdSturges",function(){return p.a});var h=n(180);n.d(t,"max",function(){return h.a});var y=n(181);n.d(t,"mean",function(){return y.a});var v=n(182);n.d(t,"median",function(){return v.a});var b=n(183);n.d(t,"merge",function(){return b.a});var g=n(99);n.d(t,"min",function(){return g.a});var m=n(91);n.d(t,"pairs",function(){return m.a});var w=n(184);n.d(t,"permute",function(){return w.a});var _=n(56);n.d(t,"quantile",function(){return _.a});var O=n(96);n.d(t,"range",function(){return O.a});var x=n(185);n.d(t,"scan",function(){return x.a});var k=n(186);n.d(t,"shuffle",function(){return k.a});var C=n(187);n.d(t,"sum",function(){return C.a});var P=n(97);n.d(t,"ticks",function(){return P.a}),n.d(t,"tickIncrement",function(){return P.b}),n.d(t,"tickStep",function(){return P.c});var S=n(100);n.d(t,"transpose",function(){return S.a});var E=n(93);n.d(t,"variance",function(){return E.a});var j=n(188);n.d(t,"zip",function(){return j.a})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in o)return o.value;var i=o.get;if(void 0!==i)return i.call(r)},f=n(2),d=r(f),p=n(5),h=r(p),y=n(0),v=["drag","dragend"],b=function(e){function t(e,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preCanvasDraw=r.preCanvasDraw.bind(r),r.postCanvasDraw=r.postCanvasDraw.bind(r),r.shouldTypeProceed=r.shouldTypeProceed.bind(r),r.preEvaluate=r.preEvaluate.bind(r),r}return i(t,e),c(t,[{key:"preCanvasDraw",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"preCanvasDraw",this).call(this,e,n),e.save();var r=this.context,o=r.margin,a=r.ratio,i=n.chartConfig,u=.5*a+i.origin[0]+o.left,s=.5*a+i.origin[1]+o.top,c=n.chartConfig,f=c.width,d=c.height,p=this.props,h=p.clip,y=p.edgeClip;e.setTransform(1,0,0,1,0,0),e.scale(a,a),y&&(e.beginPath(),e.rect(-1,s-10,f+o.left+o.right+1,d+20),e.clip()),e.translate(u,s),h&&(e.beginPath(),e.rect(-1,-1,f+1,d+1),e.clip())}},{key:"postCanvasDraw",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"postCanvasDraw",this).call(this,e,n),e.restore()}},{key:"updateMoreProps",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateMoreProps",this).call(this,e);var n=e.chartConfig;if(n){var r=this.context.chartId,o=n.filter(function(e){return e.id===r})[0];this.moreProps.chartConfig=o}if((0,y.isDefined)(this.moreProps.chartConfig)){var a=s(this.moreProps.chartConfig.origin,2),i=a[0],u=a[1];if((0,y.isDefined)(e.mouseXY)){var c=s(e.mouseXY,2),f=c[0],d=c[1];this.moreProps.mouseXY=[f-i,d-u]}if((0,y.isDefined)(e.startPos)){var p=s(e.startPos,2),h=p[0],v=p[1];this.moreProps.startPos=[h-i,v-u]}}}},{key:"preEvaluate",value:function(){}},{key:"shouldTypeProceed",value:function(e,t){return!("mousemove"!==e&&"click"!==e||!this.props.disablePan)||(-1!==v.indexOf(e)||!(0,y.isDefined)(t)||!(0,y.isDefined)(t.currentCharts)||t.currentCharts.indexOf(this.context.chartId)>-1)}}]),t}(h.default);b.propTypes=h.default.propTypes,b.defaultProps=h.default.defaultProps,b.contextTypes=u({},h.default.contextTypes,{canvasOriginX:d.default.number,canvasOriginY:d.default.number,chartId:d.default.oneOfType([d.default.number,d.default.string]).isRequired,chartConfig:d.default.object.isRequired,ratio:d.default.number.isRequired}),t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.axes}function s(e){return e.mouseCoord}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.getAxisCanvas=u,t.getMouseCanvas=s;var f=n(1),d=r(f),p=n(2),h=r(p),y=n(0),v={mouseleave:"mousemove",panend:"pan",pinchzoom:"pan",mousedown:"mousemove",click:"mousemove",contextmenu:"mousemove",dblclick:"mousemove",dragstart:"drag",dragend:"drag",dragcancel:"drag"},b=function(e){function t(e,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));r.drawOnCanvas=r.drawOnCanvas.bind(r),r.getMoreProps=r.getMoreProps.bind(r),r.listener=r.listener.bind(r),r.draw=r.draw.bind(r),r.updateMoreProps=r.updateMoreProps.bind(r),r.evaluateType=r.evaluateType.bind(r),r.isHover=r.isHover.bind(r),r.preCanvasDraw=r.preCanvasDraw.bind(r),r.postCanvasDraw=r.postCanvasDraw.bind(r),r.getPanConditions=r.getPanConditions.bind(r),r.shouldTypeProceed=r.shouldTypeProceed.bind(r),r.preEvaluate=r.preEvaluate.bind(r);var i=n.generateSubscriptionId;return r.suscriberId=i(),r.moreProps={},r.state={updateCount:0},r}return i(t,e),l(t,[{key:"updateMoreProps",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.moreProps[n]=e[n]})}},{key:"shouldTypeProceed",value:function(){return!0}},{key:"preEvaluate",value:function(){}},{key:"listener",value:function(e,t,n,r){(0,y.isDefined)(t)&&this.updateMoreProps(t),this.evaluationInProgress=!0,this.evaluateType(e,r),this.evaluationInProgress=!1}},{key:"evaluateType",value:function(e,t){var n=v[e]||e;if(this.props.drawOn.indexOf(n)>-1&&(this.preEvaluate(e,this.moreProps,t),this.shouldTypeProceed(e,this.moreProps)))switch(e){case"zoom":case"mouseenter":case"mouseleave":break;case"contextmenu":this.props.onContextMenu&&this.props.onContextMenu(this.getMoreProps(),t),this.moreProps.hovering&&this.props.onContextMenuWhenHover&&this.props.onContextMenuWhenHover(this.getMoreProps(),t);break;case"mousedown":this.props.onMouseDown&&this.props.onMouseDown(this.getMoreProps(),t);break;case"click":var r=this.getMoreProps();this.moreProps.hovering?this.props.onClickWhenHover(r,t):this.props.onClickOutside(r,t),this.props.onClick&&this.props.onClick(r,t);break;case"mousemove":var o=this.moreProps.hovering;this.moreProps.hovering=this.isHover(t);var a=this.context,i=a.amIOnTop,u=a.setCursorClass;this.moreProps.hovering&&!this.props.selected&&!o&&(0,y.isDefined)(this.props.onHover)?(u("react-stockcharts-pointer-cursor"),this.iSetTheCursorClass=!0):this.moreProps.hovering&&this.props.selected&&i(this.suscriberId)?(u(this.props.interactiveCursorClass),this.iSetTheCursorClass=!0):o&&!this.moreProps.hovering&&this.iSetTheCursorClass&&(this.iSetTheCursorClass=!1,u(null));var s=this.getMoreProps();this.moreProps.hovering&&!o&&this.props.onHover&&this.props.onHover(s,t),o&&!this.moreProps.hovering&&this.props.onUnHover&&this.props.onUnHover(s,t),this.props.onMouseMove&&this.props.onMouseMove(s,t);break;case"dblclick":var c=this.getMoreProps();this.props.onDoubleClick&&this.props.onDoubleClick(c,t),this.moreProps.hovering&&this.props.onDoubleClickWhenHover&&this.props.onDoubleClickWhenHover(c,t);break;case"pan":this.moreProps.hovering=!1,this.props.onPan&&this.props.onPan(this.getMoreProps(),t);break;case"panend":this.props.onPanEnd&&this.props.onPanEnd(this.getMoreProps(),t);break;case"dragstart":this.moreProps.hovering&&this.props.selected&&(0,this.context.amIOnTop)(this.suscriberId)&&(this.dragInProgress=!0,this.props.onDragStart(this.getMoreProps(),t)),this.someDragInProgress=!0;break;case"drag":this.dragInProgress&&this.props.onDrag&&this.props.onDrag(this.getMoreProps(),t);break;case"dragend":this.dragInProgress&&this.props.onDragComplete&&this.props.onDragComplete(this.getMoreProps(),t),this.dragInProgress=!1,this.someDragInProgress=!1;break;case"dragcancel":(this.dragInProgress||this.iSetTheCursorClass)&&(0,this.context.setCursorClass)(null)}}},{key:"isHover",value:function(e){return!!(0,y.isDefined)(this.props.isHover)&&this.props.isHover(this.getMoreProps(),e)}},{key:"getPanConditions",value:function(){return{draggable:!(!this.props.selected||!this.moreProps.hovering),panEnabled:!this.props.disablePan}}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},t=e.trigger,n=e.force,r=v[t]||t;if(this.props.drawOn.indexOf(r)>-1||this.props.selected||n){var o=this.context.chartCanvasType,a=this.props.canvasDraw;if((0,y.isNotDefined)(a)||"svg"===o){var i=this.state.updateCount;this.setState({updateCount:i+1})}else this.drawOnCanvas()}}},{key:"componentWillMount",value:function(){var e=this.context,t=e.subscribe,n=e.chartId,r=this.props,o=r.clip,a=r.edgeClip;t(this.suscriberId,{chartId:n,clip:o,edgeClip:a,listener:this.listener,draw:this.draw,getPanConditions:this.getPanConditions}),this.componentWillReceiveProps(this.props,this.context)}},{key:"componentWillUnmount",value:function(){(0,this.context.unsubscribe)(this.suscriberId)}},{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.context.chartCanvasType,n=this.props,r=n.canvasDraw,o=n.selected,a=n.interactiveCursorClass;if(e.selected!==o){(0,this.context.setCursorClass)(o&&this.moreProps.hovering?a:null)}(0,y.isDefined)(r)&&!this.evaluationInProgress&&"svg"!==t&&this.drawOnCanvas()}},{key:"componentWillReceiveProps",value:function(e,t){var n=t.xScale,r=t.plotData,o=t.chartConfig,a=t.getMutableState;this.props.debug(t),this.moreProps=c({},this.moreProps,a(),{xScale:n,plotData:r,chartConfig:o})}},{key:"getMoreProps",value:function(){var e=this.context,t=e.xScale,n=e.plotData,r=e.chartConfig,o=e.morePropsDecorator,a=e.xAccessor,i=e.displayXAccessor,u=e.width,s=e.height,l=this.context,f=l.chartId,d=l.fullData,p=c({xScale:t,plotData:n,chartConfig:r,xAccessor:a,displayXAccessor:i,width:u,height:s,chartId:f,fullData:d},this.moreProps);return(o||y.identity)(p)}},{key:"preCanvasDraw",value:function(){}},{key:"postCanvasDraw",value:function(){}},{key:"drawOnCanvas",value:function(){var e=this.props,t=e.canvasDraw,n=e.canvasToDraw,r=this.context.getCanvasContexts,o=this.getMoreProps(),a=n(r());this.preCanvasDraw(a,o),t(a,o),this.postCanvasDraw(a,o)}},{key:"render",value:function(){var e=this.context,t=e.chartCanvasType,n=e.chartId,r=this.props,o=r.canvasDraw,a=r.clip,i=r.svgDraw;if((0,y.isDefined)(o)&&"svg"!==t)return null;var u=(0,y.isDefined)(n)?"-"+n:"",s=a?{clipPath:"url(#chart-area-clip"+u+")"}:null;return d.default.createElement("g",{style:s},i(this.getMoreProps()))}}]),t}(f.Component);b.propTypes={svgDraw:h.default.func.isRequired,canvasDraw:h.default.func,drawOn:h.default.array.isRequired,clip:h.default.bool.isRequired,edgeClip:h.default.bool.isRequired,interactiveCursorClass:h.default.string,selected:h.default.bool.isRequired,disablePan:h.default.bool.isRequired,canvasToDraw:h.default.func.isRequired,isHover:h.default.func,onClick:h.default.func,onClickWhenHover:h.default.func,onClickOutside:h.default.func,onPan:h.default.func,onPanEnd:h.default.func,onDragStart:h.default.func,onDrag:h.default.func,onDragComplete:h.default.func,onDoubleClick:h.default.func,onDoubleClickWhenHover:h.default.func,onContextMenu:h.default.func,onContextMenuWhenHover:h.default.func,onMouseMove:h.default.func,onMouseDown:h.default.func,onHover:h.default.func,onUnHover:h.default.func,debug:h.default.func},b.defaultProps={svgDraw:(0,y.functor)(null),draw:[],canvasToDraw:function(e){return e.mouseCoord},clip:!0,edgeClip:!1,selected:!1,disablePan:!1,onClickWhenHover:y.noop,onClickOutside:y.noop,onDragStart:y.noop,onMouseMove:y.noop,onMouseDown:y.noop,debug:y.noop},b.contextTypes={width:h.default.number.isRequired,height:h.default.number.isRequired,margin:h.default.object.isRequired,chartId:h.default.oneOfType([h.default.number,h.default.string]),getCanvasContexts:h.default.func,chartCanvasType:h.default.string,xScale:h.default.func.isRequired,xAccessor:h.default.func.isRequired,displayXAccessor:h.default.func.isRequired,plotData:h.default.array.isRequired,fullData:h.default.array.isRequired,chartConfig:h.default.oneOfType([h.default.array,h.default.object]).isRequired,morePropsDecorator:h.default.func,generateSubscriptionId:h.default.func,getMutableState:h.default.func.isRequired,amIOnTop:h.default.func.isRequired,subscribe:h.default.func.isRequired,unsubscribe:h.default.func.isRequired,setCursorClass:h.default.func.isRequired},t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BollingerBand={windowSize:20,sourcePath:"close",multiplier:2,movingAverageType:"sma"},t.ATR={windowSize:14},t.ForceIndex={sourcePath:"close",volumePath:"volume"},t.SmoothedForceIndex={sourcePath:"close",volumePath:"volume",smoothingType:"ema",smoothingWindow:13},t.Change={sourcePath:"close"},t.Compare={basePath:"close",mainKeys:["open","high","low","close"],compareKeys:[]},t.ElderRay={windowSize:13,sourcePath:"close",movingAverageType:"sma"},t.ElderImpulse={sourcePath:"close"},t.SAR={accelerationFactor:.02,maxAccelerationFactor:.2},t.MACD={fast:12,slow:26,signal:9,sourcePath:"close"},t.FullStochasticOscillator={windowSize:12,kWindowSize:3,dWindowSize:3},t.RSI={windowSize:14,sourcePath:"close"},t.EMA={sourcePath:"close",windowSize:10},t.SMA={sourcePath:"close",windowSize:10},t.WMA={sourcePath:"close",windowSize:10},t.TMA={sourcePath:"close",windowSize:10},t.Kagi={reversalType:"ATR",windowSize:14,reversal:2,sourcePath:"close"},t.Renko={reversalType:"ATR",windowSize:14,fixedBrickSize:2,sourcePath:"high/low"},t.PointAndFigure={boxSize:.5,reversal:3,sourcePath:"high/low"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(){}var t=o++,n=void 0,a=void 0,i=void 0,u=void 0,s=void 0;return e.id=function(n){return arguments.length?(t=n,e):t},e.accessor=function(t){return arguments.length?(n=t,e):n},e.stroke=function(n){return arguments.length?(a=n,e):a||(a=(0,r.overlayColors)(t))},e.fill=function(n){return arguments.length?(i=n,e):i||(i=(0,r.overlayColors)(t))},e.echo=function(t){return arguments.length?(u=t,e):u},e.type=function(t){return arguments.length?(s=t,e):s},e};var r=n(0),o=0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(40);Object.defineProperty(t,"ema",{enumerable:!0,get:function(){return r(o).default}});var a=n(150);Object.defineProperty(t,"sma",{enumerable:!0,get:function(){return r(a).default}});var i=n(399);Object.defineProperty(t,"wma",{enumerable:!0,get:function(){return r(i).default}});var u=n(400);Object.defineProperty(t,"tma",{enumerable:!0,get:function(){return r(u).default}});var s=n(401);Object.defineProperty(t,"bollingerband",{enumerable:!0,get:function(){return r(s).default}});var c=n(402);Object.defineProperty(t,"heikinAshi",{enumerable:!0,get:function(){return r(c).default}});var l=n(403);Object.defineProperty(t,"kagi",{enumerable:!0,get:function(){return r(l).default}});var f=n(404);Object.defineProperty(t,"pointAndFigure",{enumerable:!0,get:function(){return r(f).default}});var d=n(405);Object.defineProperty(t,"renko",{enumerable:!0,get:function(){return r(d).default}});var p=n(406);Object.defineProperty(t,"macd",{enumerable:!0,get:function(){return r(p).default}});var h=n(407);Object.defineProperty(t,"rsi",{enumerable:!0,get:function(){return r(h).default}});var y=n(408);Object.defineProperty(t,"sto",{enumerable:!0,get:function(){return r(y).default}});var v=n(83);Object.defineProperty(t,"atr",{enumerable:!0,get:function(){return r(v).default}});var b=n(151);Object.defineProperty(t,"forceIndex",{enumerable:!0,get:function(){return r(b).default}});var g=n(409);Object.defineProperty(t,"smoothedForceIndex",{enumerable:!0,get:function(){return r(g).default}});var m=n(410);Object.defineProperty(t,"elderRay",{enumerable:!0,get:function(){return r(m).default}});var w=n(411);Object.defineProperty(t,"sar",{enumerable:!0,get:function(){return r(w).default}});var _=n(412);Object.defineProperty(t,"compare",{enumerable:!0,get:function(){return r(_).default}});var O=n(413);Object.defineProperty(t,"change",{enumerable:!0,get:function(){return r(O).default}})},function(e,t,n){"use strict";function r(e){var t=_.a;return t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[e],n=t.length;return function(e,r){if(0===n)return d(e)?e:r;for(var o=0;null!=e&&o<n;)e=e[t[o++]];return o===n?e:r}}function a(e){return"function"===typeof e?e:function(){return e}}function i(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function u(e){return e?{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}:{}}function s(e,t,n,r){for(var o=0,a=e.length-1;a-o>1;){var i=Math.round((o+a)/2);n(e[i])<=t?o=i:a=i}return n(e[o]).valueOf()===t.valueOf()&&(a=o),n(e[a]).valueOf()===t.valueOf()&&(o=a),n(e[o])<t&&n(e[a])<t&&(o=a),n(e[o])>t&&n(e[a])>t&&(a=o),{left:o,right:a}}function c(e,t,n,r){var o=s(e,t,n,r),a=o.left,i=o.right;if(a===i)return e[a];var u=Math.abs(n(e[a])-t)<Math.abs(n(e[i])-t)?e[a]:e[i];return r&&console.log(e[a],e[i],u,a,i),u}function l(e,t){if(!t||!e)return e?e[0]:void 0;for(var n=void 0,r=0;r<e.length;r++)if(n=e[r],d(t(n)))return n}function f(e,t){if(!t||!e){var n=e?e.length:0;return n?e[n-1]:void 0}for(var r=void 0,o=e.length-1;o>=0;o--)if(r=e[o],d(t(r)))return r}function d(e){return null!==e&&"undefined"!=typeof e}function p(e){return!d(e)}function h(e){return d(e)&&"object"===("undefined"===typeof e?"undefined":C(e))&&!Array.isArray(e)}function y(e,t){var n=t.target,r=n.getBoundingClientRect(),o=e.clientX-r.left-n.clientLeft,a=e.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(a)]}function v(e,t){var n=e.currentTarget,r=t||n.getBoundingClientRect(),o=e.clientX-r.left-n.clientLeft,a=e.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(a)]}function b(e,t){e.forEach(function(e){e.setTransform(1,0,0,1,0,0),e.clearRect(-1,-1,e.canvas.width+2,e.canvas.height+2),e.scale(t,t)})}function g(e,t){var n=e.replace("#","");if(e.indexOf("#")>-1&&(3===n.length||6===n.length)){var r=3===n.length?1:2;return"rgba("+parseInt(n.substring(0,1*r),16)+", "+parseInt(n.substring(1*r,2*r),16)+", "+parseInt(n.substring(2*r,3*r),16)+", "+t+")"}return e}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.a,n=Object.keys(e),r=new Array(n.length);return n.forEach(function(n,o){r[o]=t(e[n],n,e)}),r}t.m=r,t.y=o,t.j=a,t.h=i,n.d(t,"a",function(){return P}),n.d(t,"b",function(){return S}),n.d(t,"c",function(){return E}),n.d(t,"d",function(){return j}),n.d(t,"f",function(){return T}),n.d(t,"e",function(){return M}),t.n=u,t.l=s,t.k=c,t.o=l,n.d(t,"i",function(){return A}),t.u=f,t.r=d,t.s=p,t.t=h,t.A=y,t.w=v,t.g=b,t.p=g,t.v=m;var w=n(21),_=(n(3),n(25)),O=n(26),x=(n(248),n(119));n.d(t,"B",function(){return x.a});n(249),n(250);n.d(t,"q",function(){return O.a}),n.d(t,"x",function(){return _.a});var k=n(120);n.d(t,"z",function(){return k.a});var C=(n(251),n(252),n(65),n(253),n(254),Object.assign,function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}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}),P="mouseenter.interaction",S="mouseleave.interaction",E="mousemove.pan",j="mouseup.pan",T="touchmove.pan",M="touchend.pan touchcancel.pan",A=(Object(w.scaleOrdinal)(w.schemeCategory10),l);Array.isArray},function(e,t,n){"use strict";function r(e,t,n,i){function u(t){return e(t=new Date(+t)),t}return u.floor=u,u.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},u.round=function(e){var t=u(e),n=u.ceil(e);return e-t<n-e?t:n},u.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},u.range=function(n,r,o){var a=[];if(n=u.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do{a.push(new Date(+n))}while(t(n,o),e(n),n<r);return a},u.filter=function(n){return r(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(u.count=function(t,r){return o.setTime(+t),a.setTime(+r),e(o),e(a),Math.floor(n(o,a))},u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?u.filter(i?function(t){return i(t)%e===0}:function(t){return u.count(0,t)%e===0}):u:null}),u}t.a=r;var o=new Date,a=new Date},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(208);n.d(t,"formatDefaultLocale",function(){return r.a}),n.d(t,"format",function(){return r.b}),n.d(t,"formatPrefix",function(){return r.c});var o=n(111);n.d(t,"formatLocale",function(){return o.a});var a=n(112);n.d(t,"formatSpecifier",function(){return a.a});var i=n(214);n.d(t,"precisionFixed",function(){return i.a});var u=n(215);n.d(t,"precisionPrefix",function(){return u.a});var s=n(216);n.d(t,"precisionRound",function(){return s.a})},function(e,t,n){"use strict";function r(e,t){this._groups=e,this._parents=t}function o(){return new r([[document.documentElement]],N)}n.d(t,"c",function(){return N}),t.a=r;var a=n(261),i=n(262),u=n(263),s=n(264),c=n(125),l=n(266),f=n(267),d=n(268),p=n(269),h=n(270),y=n(271),v=n(272),b=n(273),g=n(274),m=n(275),w=n(276),_=n(127),O=n(277),x=n(278),k=n(279),C=n(280),P=n(281),S=n(282),E=n(283),j=n(284),T=n(285),M=n(286),A=n(71),D=n(287),N=[null];r.prototype=o.prototype={constructor:r,select:a.a,selectAll:i.a,filter:u.a,data:s.a,enter:c.b,exit:l.a,merge:f.a,order:d.a,sort:p.a,call:h.a,nodes:y.a,node:v.a,size:b.a,empty:g.a,each:m.a,attr:w.a,style:_.a,property:O.a,classed:x.a,text:k.a,html:C.a,raise:P.a,lower:S.a,append:E.a,insert:j.a,remove:T.a,datum:M.a,on:A.b,dispatch:D.a},t.b=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(189);n.d(t,"nest",function(){return r.a});var o=n(190);n.d(t,"set",function(){return o.a});var a=n(57);n.d(t,"map",function(){return a.a});var i=n(191);n.d(t,"keys",function(){return i.a});var u=n(192);n.d(t,"values",function(){return u.a});var s=n(193);n.d(t,"entries",function(){return s.a})},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i}),n.d(t,"e",function(){return u});var r=1e3,o=6e4,a=36e5,i=864e5,u=6048e5},function(e,t,n){"use strict";var r=n(59);n.d(t,"a",function(){return r.e}),n.d(t,"f",function(){return r.g}),n.d(t,"d",function(){return r.f});var o=n(195);n.d(t,"e",function(){return o.a}),n.d(t,"c",function(){return o.b});var a=n(196);n.d(t,"b",function(){return a.a})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){return l.default.createElement("text",u({fontFamily:this.props.fontFamily,fontSize:this.props.fontSize},this.props,{className:"react-stockcharts-tooltip"}),this.props.children)}}]),t}(c.Component);p.propTypes={fontFamily:d.default.string.isRequired,fontSize:d.default.number.isRequired,children:d.default.node.isRequired},p.defaultProps={fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:11},t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return u.default.createElement("tspan",a({className:"react-stockcharts-tooltip-label"},e),e.children)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),u=r(i),s=n(2),c=r(s);o.propTypes={children:c.default.node.isRequired,fill:c.default.string.isRequired},o.defaultProps={fill:"#4682B4"},t.default=o},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=Array.prototype,o=r.map,a=r.slice},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";function r(e,t){return t.currentItem}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(172);n.d(t,"scaleBand",function(){return r.a}),n.d(t,"scalePoint",function(){return r.b});var o=n(194);n.d(t,"scaleIdentity",function(){return o.a});var a=n(30);n.d(t,"scaleLinear",function(){return a.a});var i=n(217);n.d(t,"scaleLog",function(){return i.a});var u=n(101);n.d(t,"scaleOrdinal",function(){return u.a}),n.d(t,"scaleImplicit",function(){return u.b});var s=n(218);n.d(t,"scalePow",function(){return s.a}),n.d(t,"scaleSqrt",function(){return s.b});var c=n(219);n.d(t,"scaleQuantile",function(){return c.a});var l=n(220);n.d(t,"scaleQuantize",function(){return l.a});var f=n(221);n.d(t,"scaleThreshold",function(){return f.a});var d=n(116);n.d(t,"scaleTime",function(){return d.b});var p=n(237);n.d(t,"scaleUtc",function(){return p.a});var h=n(238);n.d(t,"schemeCategory10",function(){return h.a});var y=n(239);n.d(t,"schemeCategory20b",function(){return y.a});var v=n(240);n.d(t,"schemeCategory20c",function(){return v.a});var b=n(241);n.d(t,"schemeCategory20",function(){return b.a});var g=n(242);n.d(t,"interpolateCubehelixDefault",function(){return g.a});var m=n(243);n.d(t,"interpolateRainbow",function(){return m.b}),n.d(t,"interpolateWarm",function(){return m.c}),n.d(t,"interpolateCool",function(){return m.a});var w=n(244);n.d(t,"interpolateViridis",function(){return w.a}),n.d(t,"interpolateMagma",function(){return w.c}),n.d(t,"interpolateInferno",function(){return w.b}),n.d(t,"interpolatePlasma",function(){return w.d});var _=n(245);n.d(t,"scaleSequential",function(){return _.a})},function(e,t,n){"use strict";t.a=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}},function(e,t,n){"use strict";var r=n(58);n.d(t,"a",function(){return r.a});var o=(n(106),n(61),n(104),n(107),n(42));n.d(t,"c",function(){return o.a});var a=(n(108),n(197));n.d(t,"d",function(){return a.a});var i=(n(109),n(198),n(201),n(103),n(202),n(203),n(204),n(205));n.d(t,"b",function(){return i.a});n(206)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64);n.d(t,"timeFormatDefaultLocale",function(){return r.a}),n.d(t,"timeFormat",function(){return r.b}),n.d(t,"timeParse",function(){return r.c}),n.d(t,"utcFormat",function(){return r.d}),n.d(t,"utcParse",function(){return r.e});var o=n(117);n.d(t,"timeFormatLocale",function(){return o.a});var a=n(118);n.d(t,"isoFormat",function(){return a.a});var i=n(236);n.d(t,"isoParse",function(){return i.a})},function(e,t,n){"use strict";t.a=function(){}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(46),y=n(4),v=r(y),b=n(5),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n.isHover=n.isHover.bind(n),n}return i(t,e),c(t,[{key:"isHover",value:function(e){var t=this.props,n=t.highlightOnHover,r=t.yAccessor,o=t.hoverTolerance;if(!n)return!1;var a=e.mouseXY,i=e.currentItem,u=e.xScale,c=e.plotData,l=e.chartConfig,f=l.yScale,d=l.origin,p=e.xAccessor,h=s(a,2),y=h[0],v=h[1],b=o,m=(0,g.getClosestItemIndexes)(c,u.invert(y),p),w=m.left,_=m.right;if(w===_){var O=f(r(i))+d[1],x=u(p(i))+d[0];return Math.pow(y-x,2)+Math.pow(v-O,2)<Math.pow(b,2)}var k=c[w],C=c[_],P=u(p(k))+d[0],S=f(r(k))+d[1],E=u(p(C))+d[0],j=f(r(C))+d[1],T=(j-S)/(E-P),M=-1*T*P+S,A=Math.round(T*y+M);return v>=A-b&&v<=A+b}},{key:"drawOnCanvas",value:function(e,t){var n=this.props,r=n.yAccessor,o=n.stroke,a=n.strokeWidth,i=n.hoverStrokeWidth,u=n.defined,s=n.strokeDasharray,c=n.interpolation,l=this.props.connectNulls,f=t.xAccessor,d=t.xScale,p=t.chartConfig.yScale,y=t.plotData,v=t.hovering;e.lineWidth=v?i:a,e.strokeStyle=o,e.setLineDash((0,g.getStrokeDasharray)(s).split(","));var b=(0,h.line)().x(function(e){return d(f(e))}).y(function(e){return p(r(e))});(0,g.isDefined)(c)&&b.curve(c),l||b.defined(function(e){return u(r(e))}),e.beginPath(),b.context(e)(y),e.stroke()}},{key:"renderSVG",value:function(e){var t=this.props,n=t.yAccessor,r=t.stroke,o=t.strokeWidth,a=t.hoverStrokeWidth,i=t.defined,u=t.strokeDasharray,s=this.props.connectNulls,c=this.props.interpolation,l=e.xAccessor,d=e.xScale,p=e.chartConfig.yScale,y=e.plotData,v=e.hovering,b=(0,h.line)().x(function(e){return d(l(e))}).y(function(e){return p(n(e))});(0,g.isDefined)(c)&&b.curve(c),s||b.defined(function(e){return i(n(e))});var m=b(y),w=this.props,_=w.fill,O=w.className;return f.default.createElement("path",{className:O+" "+(r?"":" line-stroke"),d:m,stroke:r,strokeWidth:v?a:o,strokeDasharray:(0,g.getStrokeDasharray)(u),fill:_})}},{key:"render",value:function(){var e=this.props.highlightOnHover,t=e?{isHover:this.isHover,drawOn:["mousemove","pan"],canvasToDraw:b.getMouseCanvas}:{drawOn:["pan"],canvasToDraw:b.getAxisCanvas};return f.default.createElement(v.default,u({svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,onClickWhenHover:this.props.onClick,onDoubleClickWhenHover:this.props.onDoubleClick,onContextMenuWhenHover:this.props.onContextMenu},t))}}]),t}(l.Component);m.propTypes={className:p.default.string,strokeWidth:p.default.number,stroke:p.default.string,hoverStrokeWidth:p.default.number,fill:p.default.string,defined:p.default.func,hoverTolerance:p.default.number,strokeDasharray:p.default.oneOf(g.strokeDashTypes),highlightOnHover:p.default.bool,onClick:p.default.func,onDoubleClick:p.default.func,onContextMenu:p.default.func,yAccessor:p.default.func,connectNulls:p.default.bool,interpolation:p.default.func},m.defaultProps={className:"line ",strokeWidth:1,hoverStrokeWidth:4,fill:"none",stroke:"#4682B4",strokeDasharray:"Solid",defined:function(e){return!isNaN(e)},hoverTolerance:6,highlightOnHover:!1,connectNulls:!1,onClick:function(e){console.log("Click",e)},onDoubleClick:function(e){console.log("Double Click",e)},onContextMenu:function(e){console.log("Right Click",e)}},t.default=m},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";function r(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(a.ticks)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Object(s.a)(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,u=o.length-1,s=o[i],c=o[u];return c<s&&(r=s,s=c,c=r,r=i,i=u,u=r),r=Object(a.tickIncrement)(s,c,n),r>0?(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,r=Object(a.tickIncrement)(s,c,n)):r<0&&(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,r=Object(a.tickIncrement)(s,c,n)),r>0?(o[i]=Math.floor(s/r)*r,o[u]=Math.ceil(c/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[u]=Math.floor(c*r)/r,t(o)),e},e}function o(){var e=Object(u.b)(u.c,i.c);return e.copy=function(){return Object(u.a)(e,o())},r(e)}t.b=r,t.a=o;var a=n(3),i=n(23),u=n(43),s=n(207)},function(e,t,n){"use strict";function r(e,t){return function(n){return e+n*t}}function o(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function a(e,t){var n=t-e;return n?r(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(s.a)(isNaN(e)?t:e)}function i(e){return 1===(e=+e)?u:function(t,n){return n-t?o(t,n,e):Object(s.a)(isNaN(t)?n:t)}}function u(e,t){var n=t-e;return n?r(e,n):Object(s.a)(isNaN(e)?t:e)}t.c=a,t.b=i,t.a=u;var s=n(105)},function(e,t,n){"use strict";t.a=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}},function(e,t,n){"use strict";var r=n(299);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e){return e>1?0:e<-1?p:Math.acos(e)}function o(e){return e>=1?h:e<=-1?-h:Math.asin(e)}n.d(t,"a",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return u}),n.d(t,"h",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"k",function(){return l}),n.d(t,"l",function(){return f}),n.d(t,"f",function(){return d}),n.d(t,"j",function(){return p}),n.d(t,"g",function(){return h}),n.d(t,"m",function(){return y}),t.b=r,t.c=o;var a=Math.abs,i=Math.atan2,u=Math.cos,s=Math.max,c=Math.min,l=Math.sin,f=Math.sqrt,d=1e-12,p=Math.PI,h=p/2,y=2*p},function(e,t,n){"use strict";t.a=function(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],u=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<u;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(e,t,n){"use strict";t.a=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n,r,o,a,i){return"horizontal"===e?{x1:0,y1:n(o),x2:a,y2:n(o)}:{x1:t(r),y1:0,x2:t(r),y2:i}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(0),y=n(4),v=r(y),b=n(5),g=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),c(t,[{key:"drawOnCanvas",value:function(e,t){var n=this.props,r=n.type,o=n.stroke,a=n.strokeWidth,i=n.opacity,s=n.strokeDasharray,c=this.props,l=c.yValue,f=c.xValue,d=t.xScale,p=t.chartConfig,y=p.yScale,v=p.width,b=p.height;e.beginPath(),e.strokeStyle=(0,h.hexToRGBA)(o,i),e.lineWidth=a;var g=u(r,d,y,f,l,v,b),m=g.x1,w=g.y1,_=g.x2,O=g.y2;e.setLineDash((0,h.getStrokeDasharray)(s).split(",")),e.moveTo(m,w),e.lineTo(_,O),e.stroke()}},{key:"render",value:function(){return f.default.createElement(v.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:b.getAxisCanvas,drawOn:["pan"]})}},{key:"renderSVG",value:function(e){var t=e.width,n=e.height,r=e.xScale,o=e.chartConfig.yScale,a=this.props.className,i=this.props,c=i.type,l=i.stroke,d=i.strokeWidth,p=i.opacity,y=i.strokeDasharray,v=this.props,b=v.yValue,g=v.xValue,m=u(c,r,o,g,b,t,n);return f.default.createElement("line",s({className:a,strokeDasharray:(0,h.getStrokeDasharray)(y),stroke:l,strokeWidth:d,opacity:p},m))}}]),t}(l.Component);g.propTypes={className:p.default.string,type:p.default.oneOf(["vertical","horizontal"]),stroke:p.default.string,strokeWidth:p.default.number,strokeDasharray:p.default.oneOf(h.strokeDashTypes),opacity:p.default.number.isRequired,yValue:function(e,t){return"vertical"===e.type&&(0,h.isDefined)(e[t])?new Error("Do not define `yValue` when type is `vertical`, define the `xValue` prop"):"horizontal"===e.type&&(0,h.isNotDefined)(e[t])?new Error("when type = `horizontal` `yValue` is required"):void 0},xValue:function(e,t){return"horizontal"===e.type&&(0,h.isDefined)(e[t])?new Error("Do not define `xValue` when type is `horizontal`, define the `yValue` prop"):"vertical"===e.type&&(0,h.isNotDefined)(e[t])?new Error("when type = `vertical` `xValue` is required"):void 0}},g.defaultProps={className:"line ",type:"horizontal",stroke:"#000000",opacity:.5,strokeWidth:1,strokeDasharray:"Solid"},t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.windowSize,a=n.sourcePath,i=(0,o.path)(a),u=2/(r+1),s=void 0,c=0,l=0;return e.map(function(e,t){var n=i(e,t);if((0,o.isNotDefined)(s)&&(0,o.isNotDefined)(n))return void l++;if(t<r+l-1)return void(c+=n);if(t===r+l-1){c+=n;var a=c/r;return s=a,a}var f=n*u+(1-u)*s;return s=f,f})}var t=a.EMA;return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},a.EMA,n),e):t},e};var o=n(0),a=n(6)},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t-=e,function(n){return e+t*n}}},function(e,t,n){"use strict";function r(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Object(p.a)(t)}function o(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}function a(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}function i(e,t,n,r){var o=e[0],a=e[1],i=t[0],u=t[1];return a<o?(o=n(a,o),i=r(u,i)):(o=n(o,a),i=r(i,u)),function(e){return i(o(e))}}function u(e,t,n,r){var o=Math.min(e.length,t.length)-1,a=new Array(o),i=new Array(o),u=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<o;)a[u]=n(e[u],e[u+1]),i[u]=r(t[u],t[u+1]);return function(t){var n=Object(l.bisect)(e,t,1,o)-1;return i[n](a[n](t))}}function s(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function c(e,t){function n(){return c=Math.min(v.length,b.length)>2?u:i,l=p=null,s}function s(t){return(l||(l=c(v,b,m?o(e):e,g)))(+t)}var c,l,p,v=y,b=y,g=f.a,m=!1;return s.invert=function(e){return(p||(p=c(b,v,r,m?a(t):t)))(+e)},s.domain=function(e){return arguments.length?(v=d.a.call(e,h.a),n()):v.slice()},s.range=function(e){return arguments.length?(b=d.b.call(e),n()):b.slice()},s.rangeRound=function(e){return b=d.b.call(e),g=f.d,n()},s.clamp=function(e){return arguments.length?(m=!!e,n()):m},s.interpolate=function(e){return arguments.length?(g=e,n()):g},n()}t.c=r,t.a=s,t.b=c;var l=n(3),f=n(23),d=n(18),p=n(62),h=n(110),y=[0,1]},function(e,t,n){"use strict";var r=n(63);t.a=function(e){return e=Object(r.a)(Math.abs(e)),e?e[1]:NaN}},function(e,t,n){"use strict";var r=(n(10),n(222));n.d(t,"c",function(){return r.a}),n.d(t,"n",function(){return r.a});var o=n(223);n.d(t,"g",function(){return o.a}),n.d(t,"r",function(){return o.a});var a=n(224);n.d(t,"d",function(){return a.a});var i=n(225);n.d(t,"b",function(){return i.a});var u=n(226);n.d(t,"a",function(){return u.a});var s=n(227);n.d(t,"j",function(){return s.b}),n.d(t,"h",function(){return s.b}),n.d(t,"e",function(){return s.a}),n.d(t,"i",function(){return s.c});var c=n(228);n.d(t,"f",function(){return c.a});var l=n(229);n.d(t,"k",function(){return l.a});var f=n(230);n.d(t,"o",function(){return f.a});var d=n(231);n.d(t,"m",function(){return d.a});var p=n(232);n.d(t,"l",function(){return p.a});var h=n(233);n.d(t,"u",function(){return h.b}),n.d(t,"s",function(){return h.b}),n.d(t,"p",function(){return h.a}),n.d(t,"t",function(){return h.c});var y=n(234);n.d(t,"q",function(){return y.a});var v=n(235);n.d(t,"v",function(){return v.a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(298);n.d(t,"arc",function(){return r.a});var o=n(129);n.d(t,"area",function(){return o.a});var a=n(75);n.d(t,"line",function(){return a.a});var i=n(300);n.d(t,"pie",function(){return i.a});var u=n(303);n.d(t,"areaRadial",function(){return u.a}),n.d(t,"radialArea",function(){return u.a});var s=n(131);n.d(t,"lineRadial",function(){return s.a}),n.d(t,"radialLine",function(){return s.a});var c=n(132);n.d(t,"pointRadial",function(){return c.a});var l=n(304);n.d(t,"linkHorizontal",function(){return l.a}),n.d(t,"linkVertical",function(){return l.c}),n.d(t,"linkRadial",function(){return l.b});var f=n(305);n.d(t,"symbol",function(){return f.a}),n.d(t,"symbols",function(){return f.b});var d=n(134);n.d(t,"symbolCircle",function(){return d.a});var p=n(135);n.d(t,"symbolCross",function(){return p.a});var h=n(136);n.d(t,"symbolDiamond",function(){return h.a});var y=n(138);n.d(t,"symbolSquare",function(){return y.a});var v=n(137);n.d(t,"symbolStar",function(){return v.a});var b=n(139);n.d(t,"symbolTriangle",function(){return b.a});var g=n(140);n.d(t,"symbolWye",function(){return g.a});var m=n(306);n.d(t,"curveBasisClosed",function(){return m.a});var w=n(307);n.d(t,"curveBasisOpen",function(){return w.a});var _=n(49);n.d(t,"curveBasis",function(){return _.b});var O=n(308);n.d(t,"curveBundle",function(){return O.a});var x=n(141);n.d(t,"curveCardinalClosed",function(){return x.b});var k=n(142);n.d(t,"curveCardinalOpen",function(){return k.b});var C=n(50);n.d(t,"curveCardinal",function(){return C.b});var P=n(309);n.d(t,"curveCatmullRomClosed",function(){return P.a});var S=n(310);n.d(t,"curveCatmullRomOpen",function(){return S.a});var E=n(77);n.d(t,"curveCatmullRom",function(){return E.a});var j=n(311);n.d(t,"curveLinearClosed",function(){return j.a});var T=n(47);n.d(t,"curveLinear",function(){return T.a});var M=n(312);n.d(t,"curveMonotoneX",function(){return M.a}),n.d(t,"curveMonotoneY",function(){return M.b});var A=n(313);n.d(t,"curveNatural",function(){return A.a});var D=n(314);n.d(t,"curveStep",function(){return D.a}),n.d(t,"curveStepAfter",function(){return D.b}),n.d(t,"curveStepBefore",function(){return D.c});var N=n(315);n.d(t,"stack",function(){return N.a});var R=n(316);n.d(t,"stackOffsetExpand",function(){return R.a});var F=n(317);n.d(t,"stackOffsetDiverging",function(){return F.a});var I=n(35);n.d(t,"stackOffsetNone",function(){return I.a});var W=n(318);n.d(t,"stackOffsetSilhouette",function(){return W.a});var B=n(319);n.d(t,"stackOffsetWiggle",function(){return B.a});var q=n(78);n.d(t,"stackOrderAscending",function(){return q.a});var z=n(320);n.d(t,"stackOrderDescending",function(){return z.a});var H=n(321);n.d(t,"stackOrderInsideOut",function(){return H.a});var L=n(36);n.d(t,"stackOrderNone",function(){return L.a});var U=n(322);n.d(t,"stackOrderReverse",function(){return U.a})},function(e,t,n){"use strict";function r(e){this._context=e}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";t.a=function(){}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function o(e){this._context=e}t.c=r,t.a=o,o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.b=function(e){return new o(e)}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function o(e,t){this._context=e,this._k=(1-t)/6}t.c=r,t.a=o,o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.b=function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(){function e(e){return t.map(function(t,n){var r=e.map(function(e){var n=[0,e[t]];return n.data=e,n});return r.key=t,r.index=n,r})}var t=[];return e.keys=function(n){return arguments.length?(t=n,e):t},e}function s(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:S.identity,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:j,u=n.xScale,s=n.chartConfig.yScale;p(t,e,f(t,r,n.plotData,u,s,o,i,a))}function c(e){return Array.isArray(e)?e:[e]}function l(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:S.identity,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:j,i=t.xScale,u=t.chartConfig.yScale;return d(e,f(e,n,t.plotData,i,u,r,a,o))}function f(e,t,n,r,o,a,i,u){var s=e.yAccessor,l=e.swapScales,f=c(l?e.xAccessor:s);return h(e,l?s:t,f,l?o:r,l?r:o,n,a,l?i:u)}function d(e,t){var n=e.opacity;return t.map(function(e,t){return e.width<=1?g.default.createElement("line",{key:t,className:e.className,stroke:e.fill,x1:e.x,y1:e.y,x2:e.x,y2:e.y+e.height}):g.default.createElement("rect",{key:t,className:e.className,stroke:e.stroke,fill:e.fill,x:e.x,y:e.y,width:e.width,fillOpacity:n,height:e.height})})}function p(e,t,n){var r=e.stroke;(0,_.nest)().key(function(e){return e.fill}).entries(n).forEach(function(n){var o=n.key,a=n.values;(0,S.head)(a).width>1&&(t.strokeStyle=o);var i=(0,S.head)(a).width<=1?o:(0,S.hexToRGBA)(o,e.opacity);t.fillStyle=i,a.forEach(function(e){e.width<=1?t.fillRect(e.x-.5,e.y,1,e.height):(t.fillRect(e.x,e.y,e.width,e.height),r&&t.strokeRect(e.x,e.y,e.width,e.height))})})}function h(e,t,n,r,o,a){var i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:u,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:S.identity,c=e.baseAt,l=e.className,f=e.fill,d=e.stroke,p=e.spaceBetweenBar,h=void 0===p?0:p,v=(0,S.functor)(l),b=(0,S.functor)(f),g=(0,S.functor)(c),m=(0,S.functor)(e.width),w=m(e,{xScale:r,xAccessor:t,plotData:a}),_=Math.round(w),x=(_-h*(n.length-1))/n.length,k=1===_?0:.5*w,C=a.map(function(e){var r={appearance:{},x:t(e)};return n.forEach(function(t,n){var o="y"+n;r[o]=t(e);var a={className:v(e,n),stroke:d?b(e,n):"none",fill:b(e,n)};r.appearance[o]=a}),r}),P=n.map(function(e,t){return"y"+t}),E=i().keys(P)(C),j=E.map(function(e,t){var n=e.key;return e.map(function(e){var r=[e[0],e[1]];return r.data={x:e.data.x,i:t,appearance:e.data.appearance[n]},r})});return s((0,O.merge)(j).map(function(e){var t=o(e[1]),n=g(r,o,e.data)-o(e[1]-e[0]);return n<0&&(t+=n,n=-n),y({},e.data.appearance,{x:Math.round(r(e.data.x)-w/2),y:t,groupOffset:Math.round(k-(e.data.i>0?(x+h)*e.data.i:0)),groupWidth:Math.round(x),offset:Math.round(k),height:n,width:_})}).filter(function(e){return!isNaN(e.y)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.rotateXY=void 0;var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.identityStack=u,t.drawOnCanvasHelper=s,t.svgHelper=l,t.getBarsSVG2=d,t.drawOnCanvas2=p,t.getBars=h;var b=n(1),g=r(b),m=n(2),w=r(m),_=n(13),O=n(3),x=n(46),k=n(4),C=r(k),P=n(5),S=n(0),E=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),v(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor;s(e,this.props,t,n,x.stack)}},{key:"renderSVG",value:function(e){var t=e.xAccessor;return g.default.createElement("g",null,l(this.props,e,t,x.stack))}},{key:"render",value:function(){var e=this.props.clip;return g.default.createElement(C.default,{clip:e,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:P.getAxisCanvas,drawOn:["pan"]})}}]),t}(b.Component);E.propTypes={baseAt:w.default.oneOfType([w.default.number,w.default.func]).isRequired,direction:w.default.oneOf(["up","down"]).isRequired,stroke:w.default.bool.isRequired,width:w.default.oneOfType([w.default.number,w.default.func]).isRequired,opacity:w.default.number.isRequired,fill:w.default.oneOfType([w.default.func,w.default.string]).isRequired,className:w.default.oneOfType([w.default.func,w.default.string]).isRequired,clip:w.default.bool.isRequired},E.defaultProps={baseAt:function(e,t){return(0,S.head)(t.range())},direction:"up",className:"bar",stroke:!0,fill:"#4682B4",opacity:.5,width:S.plotDataLengthBarWidth,clip:!0,swapScales:!1};var j=t.rotateXY=function(e){return e.map(function(e){return y({},e,{x:e.y,y:e.x,height:e.width,width:e.height})})};t.default=E},function(e,t,n){"use strict";function r(e){var t=e.className,n=o(e);if(null===n)return null;var r=void 0,a=void 0,i=void 0;if((0,s.isDefined)(n.line)&&(r=u.default.createElement("line",{className:"react-stockcharts-cross-hair",opacity:n.line.opacity,stroke:n.line.stroke,x1:n.line.x1,y1:n.line.y1,x2:n.line.x2,y2:n.line.y2})),(0,s.isDefined)(n.coordinateBase)){var c=n.coordinateBase,l=c.rectWidth,f=c.rectHeight,d=c.arrowWidth,p="left"===n.orient?"M0,0L0,"+f+"L"+l+","+f+"L"+(l+d)+",10L"+l+",0L0,0L0,0":"M0,"+d+"L"+d+","+f+"L"+(l+d)+","+f+"L"+(l+d)+",0L"+d+",0L0,"+d;a="left"===n.orient||"right"===n.orient?u.default.createElement("g",{transform:"translate("+n.coordinateBase.edgeXRect+","+n.coordinateBase.edgeYRect+")"},u.default.createElement("path",{d:p,key:1,className:"react-stockchart-text-background",height:f,width:l,fill:n.coordinateBase.fill,opacity:n.coordinateBase.opacity})):u.default.createElement("rect",{key:1,className:"react-stockchart-text-background",x:n.coordinateBase.edgeXRect,y:n.coordinateBase.edgeYRect,height:f,width:l,fill:n.coordinateBase.fill,opacity:n.coordinateBase.opacity}),i=u.default.createElement("text",{key:2,x:n.coordinate.edgeXText,y:n.coordinate.edgeYText,textAnchor:n.coordinate.textAnchor,fontFamily:n.coordinate.fontFamily,fontSize:n.coordinate.fontSize,dy:".32em",fill:n.coordinate.textFill},n.coordinate.displayCoordinate)}return u.default.createElement("g",{className:t},r,a,i)}function o(e){var t=e.coordinate,n=e.show,r=e.type,o=e.orient,a=e.edgeAt,i=e.hideLine,u=e.fill,c=e.opacity,l=e.fontFamily,f=e.fontSize,d=e.textFill,p=e.lineStroke,h=e.lineOpacity,y=e.arrowWidth,v=e.rectWidth,b=e.rectHeight,g=e.x1,m=e.y1,w=e.x2,_=e.y2,O=e.dx;if(!n)return null;var x=void 0,k=void 0,C=void 0,P=void 0;"horizontal"===r?(x=O+("right"===o?a+1:a-v-y-1),k=m-b/2,C=O+("right"===o?a+v/2+y:a-v/2-y),P=m):(x=g-v/2,k="bottom"===o?a:a-b,C=g,P="bottom"===o?a+b/2:a-b/2);var S=void 0,E=void 0;return(0,s.isDefined)(t)&&(S={edgeXRect:x,edgeYRect:k,rectHeight:b,rectWidth:v,fill:u,opacity:c,arrowWidth:y},E={edgeXText:C,edgeYText:P,textAnchor:"middle",fontFamily:l,fontSize:f,textFill:d,displayCoordinate:t}),{coordinateBase:S,coordinate:E,line:i?void 0:{opacity:h,stroke:p,x1:g,y1:m,x2:w,y2:_},orient:o}}function a(e,t){var n=o(t);if(null!==n){if((0,s.isDefined)(n.coordinateBase)){var r=n.coordinateBase,a=r.rectWidth,i=r.rectHeight,u=r.arrowWidth;e.fillStyle=(0,s.hexToRGBA)(n.coordinateBase.fill,n.coordinateBase.opacity);var c=n.coordinateBase.edgeXRect,l=n.coordinateBase.edgeYRect;e.beginPath(),"right"===n.orient?(e.moveTo(c,l+i/2),e.lineTo(c+u,l),e.lineTo(c+a+u,l),e.lineTo(c+a+u,l+i),e.lineTo(c+u,l+i),e.closePath()):"left"===n.orient?(e.moveTo(c,l),e.lineTo(c+a,l),e.lineTo(c+a+u,l+i/2),e.lineTo(c+a,l+i),e.lineTo(c,l+i),e.closePath()):e.rect(c,l,a,i),e.fill(),e.font=n.coordinate.fontSize+"px "+n.coordinate.fontFamily,e.fillStyle=n.coordinate.textFill,e.textAlign="middle"===n.coordinate.textAnchor?"center":n.coordinate.textAnchor,e.textBaseline="middle",e.fillText(n.coordinate.displayCoordinate,n.coordinate.edgeXText,n.coordinate.edgeYText)}(0,s.isDefined)(n.line)&&(e.strokeStyle=(0,s.hexToRGBA)(n.line.stroke,n.line.opacity),e.beginPath(),e.moveTo(n.line.x1,n.line.y1),e.lineTo(n.line.x2,n.line.y2),e.stroke())}}Object.defineProperty(t,"__esModule",{value:!0}),t.renderSVG=r,t.drawOnCanvas=a;var i=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(0)},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,s=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)a.call(n,l)&&(s[l]=n[l]);if(o){u=o(n);for(var f=0;f<u.length;f++)i.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(e,t,n){"use strict";function r(e,t,n,r,a,i,u,s){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,u,s],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(160)},function(e,t,n){"use strict";var r=n(29);t.a=function(e,t,n){if(null==n&&(n=r.a),o=e.length){if((t=+t)<=0||o<2)return+n(e[0],0,e);if(t>=1)return+n(e[o-1],o-1,e);var o,a=(o-1)*t,i=Math.floor(a),u=+n(e[i],i,e);return u+(+n(e[i+1],i+1,e)-u)*(a-i)}}},function(e,t,n){"use strict";function r(){}function o(e,t){var n=new r;if(e instanceof r)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var o,a=-1,i=e.length;if(null==t)for(;++a<i;)n.set(a,e[a]);else for(;++a<i;)n.set(t(o=e[a],a,e),o)}else if(e)for(var u in e)n.set(u,e[u]);return n}n.d(t,"b",function(){return a});var a="$";r.prototype=o.prototype={constructor:r,has:function(e){return a+e in this},get:function(e){return this[a+e]},set:function(e,t){return this[a+e]=t,this},remove:function(e){var t=a+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===a&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===a&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===a&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===a&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===a&&++e;return e},empty:function(){for(var e in this)if(e[0]===a)return!1;return!0},each:function(e){for(var t in this)t[0]===a&&e(this[t],t.slice(1),this)}},t.a=o},function(e,t,n){"use strict";var r=n(15),o=n(103),a=n(106),i=n(107),u=n(42),s=n(108),c=n(109),l=n(105);t.a=function(e,t){var n,f=typeof t;return null==t||"boolean"===f?Object(l.a)(t):("number"===f?u.a:"string"===f?(n=Object(r.a)(t))?(t=n,o.a):c.a:t instanceof r.a?o.a:t instanceof Date?i.a:Array.isArray(t)?a.a:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?s.a:u.a)(e,t)}},function(e,t,n){"use strict";function r(){}function o(e){var t;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(t=parseInt(t[1],16),new c(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=O.exec(e))?a(parseInt(t[1],16)):(t=x.exec(e))?new c(t[1],t[2],t[3],1):(t=k.exec(e))?new c(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=C.exec(e))?i(t[1],t[2],t[3],t[4]):(t=P.exec(e))?i(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=S.exec(e))?l(t[1],t[2]/100,t[3]/100,1):(t=E.exec(e))?l(t[1],t[2]/100,t[3]/100,t[4]):j.hasOwnProperty(e)?a(j[e]):"transparent"===e?new c(NaN,NaN,NaN,0):null}function a(e){return new c(e>>16&255,e>>8&255,255&e,1)}function i(e,t,n,r){return r<=0&&(e=t=n=NaN),new c(e,t,n,r)}function u(e){return e instanceof r||(e=o(e)),e?(e=e.rgb(),new c(e.r,e.g,e.b,e.opacity)):new c}function s(e,t,n,r){return 1===arguments.length?u(e):new c(e,t,n,null==r?1:r)}function c(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function l(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new p(e,t,n,r)}function f(e){if(e instanceof p)return new p(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=o(e)),!e)return new p;if(e instanceof p)return e;e=e.rgb();var t=e.r/255,n=e.g/255,a=e.b/255,i=Math.min(t,n,a),u=Math.max(t,n,a),s=NaN,c=u-i,l=(u+i)/2;return c?(s=t===u?(n-a)/c+6*(n<a):n===u?(a-t)/c+2:(t-n)/c+4,c/=l<.5?u+i:2-u-i,s*=60):c=l>0&&l<1?0:s,new p(s,c,l,e.opacity)}function d(e,t,n,r){return 1===arguments.length?f(e):new p(e,t,n,null==r?1:r)}function p(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function h(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t.a=r,n.d(t,"d",function(){return v}),n.d(t,"c",function(){return b}),t.e=o,t.h=u,t.g=s,t.b=c,t.f=d;var y=n(60),v=.7,b=1/v,g="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,O=/^#([0-9a-f]{6})$/,x=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),k=new RegExp("^rgb\\("+[w,w,w]+"\\)$"),C=new RegExp("^rgba\\("+[g,g,g,m]+"\\)$"),P=new RegExp("^rgba\\("+[w,w,w,m]+"\\)$"),S=new RegExp("^hsl\\("+[m,w,w]+"\\)$"),E=new RegExp("^hsla\\("+[m,w,w,m]+"\\)$"),j={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(y.a)(r,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(y.a)(c,s,Object(y.b)(r,{brighter:function(e){return e=null==e?b:Math.pow(b,e),new c(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?v:Math.pow(v,e),new c(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Object(y.a)(p,d,Object(y.b)(r,{brighter:function(e){return e=null==e?b:Math.pow(b,e),new p(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?v:Math.pow(v,e),new p(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new c(h(e>=240?e-240:e+120,o,r),h(e,o,r),h(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}t.b=r,t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";function r(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}t.a=r,t.b=function(e){var t=e.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[o],i=e[o+1],u=o>0?e[o-1]:2*a-i,s=o<t-1?e[o+2]:2*i-a;return r((n-o/t)*t,u,a,i,s)}}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";t.a=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}},function(e,t,n){"use strict";function r(e){return o=Object(c.a)(e),a=o.format,i=o.parse,u=o.utcFormat,s=o.utcParse,o}n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return s}),t.a=r;var o,a,i,u,s,c=n(117);r({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=(n.n(i),n(120)),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"shouldComponentUpdate",value:function(e,t,n){return!Object(u.a)(this.props,e)||!Object(u.a)(this.state,t)||!Object(u.a)(this.context,n)}}]),t}(i.Component);t.a=c},function(e,t,n){"use strict";function r(e,t){var n=e.width,r=e.height;return{availableWidth:n,availableHeight:r,width:t.width||n,height:t.height||r}}function o(e){return function(t){var n=e(t);return Object(g.t)(n)?Object(g.v)(n):n}}function a(e,t){return d.a.Children.map(t,function(t){if(t.type.toString()===b.a.toString()){var n=w({},b.a.defaultProps,t.props),o=n.id,a=n.origin,i=n.padding,s=n.yExtents,c=n.yScale,l=n.flipYScale,f=n.yExtentsCalculator,d=r(e,n),p=d.width,h=d.height,y=d.availableWidth,v=d.availableHeight,_=n.yPan,O=n.yPanEnabled,x=void 0!==O&&O,k=Object(g.r)(s)?(Array.isArray(s)?s:[s]).map(g.j):void 0;if(Array.isArray(s)&&2===s.length){var C=m(s,2),P=C[0],S=C[1];"number"==typeof P&&"number"==typeof S&&c.domain([P,S])}return{id:o,origin:Object(g.j)(a)(y,v),padding:i,yExtents:k,yExtentsCalculator:f,flipYScale:l,yScale:u(c.copy(),h,i,l),yPan:_,yPanEnabled:x,width:p,height:h}}}).filter(function(e){return Object(g.r)(e)})}function i(e,t){return e.filter(function(e){var n=e.origin[1],r=n+e.height;return t[1]>n&&t[1]<r}).map(function(e){return e.id})}function u(e,t,n,r){if(e.rangeRoundPoints||Object(g.s)(e.invert)){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");e.rangeRoundPoints&&e.rangeRoundPoints(r?[0,t]:[t,0],n),e.rangeRound&&e.range(r?[0,t]:[t,0]).padding(n)}else{var o=isNaN(n)?n:{top:n,bottom:n},a=o.top,i=o.bottom;e.range(r?[a,t-i]:[t-i,a])}return e}function s(e,t,n){var r=e.map(function(e){return n.map(o(e))}),a=v()(r);return t.invert?Object(p.extent)(a):Object(h.set)(a).values()}function c(e,t,n,r,o){var a=t.plotData,i=t.xAccessor,c=t.displayXAccessor,l=t.fullData,f=e.map(function(e){var t=e.yExtentsCalculator,o=e.yExtents,u=e.yScale;return{realYDomain:Object(g.r)(t)?t({plotData:a,xDomain:n,xAccessor:i,displayXAccessor:c,fullData:l}):s(o,u,a),yDomainDY:Object(g.r)(r)?u.range().map(function(e){return e-r}).map(u.invert):u.domain(),prevYDomain:u.domain()}});return Object(g.B)().combine(function(e,t){var n=t.realYDomain,r=t.yDomainDY,a=t.prevYDomain,i=e.id,s=e.padding,c=e.height,l=e.yScale,f=e.yPan,d=e.flipYScale,p=e.yPanEnabled,h=void 0!==p&&p,y=!Object(g.r)(o)||o.indexOf(i)>-1,v=f&&h?y?r:a:n;return w({},e,{yScale:u(l.copy().domain(v),c,s,d),realYDomain:n})})(e,f)}function l(e,t,n,r){var o=void 0,a=void 0;if(e.invert)o=e.invert(n[0]),a=Object(g.k)(r,o,t);else{var i=e.range().map(function(e,t){return{x:Math.abs(e-n[0]),idx:t}}).reduce(function(e,t){return e.x<t.x?e:t});a=Object(g.r)(i)?r[i.idx]:r[0]}return a}t.d=a,t.b=i,t.a=c,t.c=l;var f=n(1),d=n.n(f),p=n(3),h=n(13),y=n(256),v=n.n(y),b=n(121),g=n(9),m=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===i.b&&t.documentElement.namespaceURI===i.b?t.createElement(e):t.createElementNS(n,e)}}function o(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var a=n(68),i=n(69);t.a=function(e){var t=Object(a.a)(e);return(t.local?o:r)(t)}},function(e,t,n){"use strict";var r=n(69);t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";n.d(t,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";t.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";var r=n(71);t.a=function(){for(var e,t=r.c;e=t.sourceEvent;)t=e;return t}},function(e,t,n){"use strict";function r(e,t,n){return e=o(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function o(e,t,n){return function(r){var o=l;l=r;try{e.call(this,this.__data__,t,n)}finally{l=o}}}function a(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function i(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function u(e,t,n){var a=c.hasOwnProperty(e.type)?r:o;return function(r,o,i){var u,s=this.__on,c=a(t,o,i);if(s)for(var l=0,f=s.length;l<f;++l)if((u=s[l]).type===e.type&&u.name===e.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=n),void(u.value=t);this.addEventListener(e.type,c,n),u={type:e.type,name:e.name,value:t,listener:c,capture:n},s?s.push(u):this.__on=[u]}}function s(e,t,n,r){var o=l;e.sourceEvent=l,l=e;try{return t.apply(n,r)}finally{l=o}}n.d(t,"c",function(){return l}),t.a=s;var c={},l=null;if("undefined"!==typeof document){"onmouseenter"in document.documentElement||(c={mouseenter:"mouseover",mouseleave:"mouseout"})}t.b=function(e,t,n){var r,o,s=a(e+""),c=s.length;{if(!(arguments.length<2)){for(l=t?u:i,null==n&&(n=!1),r=0;r<c;++r)this.each(l(s[r],t,n));return this}var l=this.node().__on;if(l)for(var f,d=0,p=l.length;d<p;++d)for(r=0,f=l[d];r<c;++r)if((o=s[r]).type===f.type&&o.name===f.name)return f.value}}},function(e,t,n){"use strict";t.a=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}},function(e,t,n){"use strict";function r(){}t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){"use strict";var r=n(33),o=n(19),a=n(47),i=n(76);t.a=function(){function e(e){var o,a,i,f=e.length,d=!1;for(null==s&&(l=c(i=Object(r.a)())),o=0;o<=f;++o)!(o<f&&u(a=e[o],o,e))===d&&((d=!d)?l.lineStart():l.lineEnd()),d&&l.point(+t(a,o,e),+n(a,o,e));if(i)return l=null,i+""||null}var t=i.a,n=i.b,u=Object(o.a)(!0),s=null,c=a.a,l=null;return e.x=function(n){return arguments.length?(t="function"===typeof n?n:Object(o.a)(+n),e):t},e.y=function(t){return arguments.length?(n="function"===typeof t?t:Object(o.a)(+t),e):n},e.defined=function(t){return arguments.length?(u="function"===typeof t?t:Object(o.a)(!!t),e):u},e.curve=function(t){return arguments.length?(c=t,null!=s&&(l=c(s)),e):c},e.context=function(t){return arguments.length?(null==t?s=l=null:l=c(s=t),e):s},e}},function(e,t,n){"use strict";function r(e){return e[0]}function o(e){return e[1]}t.a=r,t.b=o},function(e,t,n){"use strict";function r(e,t,n){var r=e._x1,o=e._y1,i=e._x2,u=e._y2;if(e._l01_a>a.f){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>a.f){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*l+e._x1*e._l23_2a-t*e._l12_2a)/f,u=(u*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,o,i,u,e._x2,e._y2)}function o(e,t){this._context=e,this._alpha=t}t.b=r;var a=n(34),i=n(50);o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.a=function e(t){function n(e){return t?new o(e,t):new i.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}t.b=r;var o=n(36);t.a=function(e){var t=e.map(r);return Object(o.a)(e).sort(function(e,n){return t[e]-t[n]})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n){n.beginPath();var r=(0,g.first)(e),o=s(r,2),a=o[0],i=o[1];n.moveTo(a,i);var u=void 0;for(u=0;u<t.length;u++){var c=s(t[u],2),l=c[0],f=c[1];n.lineTo(l,f)}for(u=e.length-1;u>=0;u--){var d=s(e[u],2),p=d[0],h=d[1];n.lineTo(p,h)}n.closePath(),n.fill()}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(46),y=n(4),v=r(y),b=n(5),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),c(t,[{key:"drawOnCanvas",value:function(e,t){var n=this.props,r=n.yAccessor,o=n.defined,a=n.base,i=this.props,s=i.fill,c=i.stroke,l=i.opacity,f=t.xScale,d=t.chartConfig.yScale,p=t.plotData,h=t.xAccessor,y=(0,g.functor)(a);e.fillStyle=(0,g.hexToRGBA)(s,l),e.strokeStyle=c;for(var v=[],b=[],m=0;m<p.length;m++){var w=p[m];if(o(r(w),m)){var _=[f(h(w)),d(r(w)),y(d,w)],O=_[0],x=_[1],k=_[2];v.push([O,k]),b.push([O,x])}else v.length&&(u(v,b,e),v=[],b=[])}v.length&&u(v,b,e)}},{key:"renderSVG",value:function(e){var t=this.props,n=t.yAccessor,r=t.defined,o=t.base,a=this.props,i=a.stroke,u=a.fill,s=a.className,c=a.opacity,l=e.xScale,d=e.chartConfig.yScale,p=e.plotData,y=e.xAccessor,v=(0,g.functor)(o),b=(0,h.area)().defined(function(e){return r(n(e))}).x(function(e){return l(y(e))}).y0(v.bind(null,d)).y1(function(e){return d(n(e))}),m=b(p),w=s.concat((0,g.isDefined)(i)?"":" line-stroke");return f.default.createElement("path",{d:m,stroke:i,fill:u,className:w,opacity:c})}},{key:"render",value:function(){return f.default.createElement(v.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:b.getAxisCanvas,drawOn:["pan"]})}}]),t}(l.Component);m.propTypes={className:p.default.string,yAccessor:p.default.func.isRequired,stroke:p.default.string,fill:p.default.string,opacity:p.default.number,defined:p.default.func,base:p.default.oneOfType([p.default.func,p.default.number])},m.defaultProps={className:"line ",fill:"none",opacity:1,defined:function(e){return!isNaN(e)},base:function(e){return(0,g.first)(e.range())}},t.default=m},function(e,t,n){"use strict";t.a=function(){return 1e-6*(Math.random()-.5)}},function(e,t,n){"use strict";t.a=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}},function(e,t,n){"use strict";function r(){return m||(O(o),m=_.now()+w)}function o(){m=0}function a(){this._call=this._time=this._next=null}function i(e,t,n){var r=new a;return r.restart(e,t,n),r}function u(){r(),++h;for(var e,t=d;t;)(e=m-t._time)>=0&&t._call.call(null,e),t=t._next;--h}function s(){m=(g=_.now())+w,h=y=0;try{u()}finally{h=0,l(),m=0}}function c(){var e=_.now(),t=e-g;t>b&&(w-=t,g=e)}function l(){for(var e,t,n=d,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:d=t);p=e,f(r)}function f(e){if(!h){y&&(y=clearTimeout(y));e-m>24?(e<1/0&&(y=setTimeout(s,e-_.now()-w)),v&&(v=clearInterval(v))):(v||(g=_.now(),v=setInterval(c,b)),h=1,O(s))}}t.b=r,t.a=a,t.c=i;var d,p,h=0,y=0,v=0,b=1e3,g=0,m=0,w=0,_="object"===typeof performance&&performance.now?performance:Date,O="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};a.prototype=i.prototype={constructor:a,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==t?0:+t),this._next||p===this||(p?p._next=this:d=this,p=this),this._call=e,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var r=t,a=r.windowSize,u=(0,i.slidingWindow)().windowSize(2).source(n).undefinedValue(function(e){return e.high-e.low}).accumulator(function(e){var t=e[0],n=e[1];return Math.max(n.high-n.low,n.high-t.close,n.low-t.close)}),s=void 0;return(0,i.slidingWindow)().skipInitial(1).windowSize(a).accumulator(function(e){var t=(0,i.last)(e),n=(0,i.isDefined)(s)?(s*(a-1)+t)/a:(0,o.sum)(e)/a;return s=n,n})(u(e))}var t=a.ATR,n=function(e){return{open:e.open,high:e.high,low:e.low,close:e.close}};return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},a.ATR,n),e):t},e.source=function(t){return arguments.length?(n=t,e):n},e};var o=n(3),a=n(6),i=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.themes={light:{BollingerBand:{stroke:{top:"#964B00",middle:"#000000",bottom:"#964B00"},fill:"#4682B4"},ElderImpulse:{stroke:{up:"#6BA583",down:"#FF0000",neutral:"#0000FF"}},MACD:{fill:{divergence:"#4682B4"},stroke:{macd:"#FF0000",signal:"#00F300"}},FullStochasticOscillator:{stroke:{top:"#37a600",middle:"#b8ab00",bottom:"#37a600",dLine:"#17becf",kLine:"#ff7f0e"}}},dark:{BollingerBand:{stroke:{top:"#964B00",middle:"#FF6600",bottom:"#964B00"},fill:"#4682B4"},ElderImpulse:{stroke:{up:"#6BA583",down:"#FF0000",neutral:"#0000FF"}},MACD:{fill:{divergence:"#FF6600"},stroke:{macd:"#ea2bff",signal:"#74d400"}},FullStochasticOscillator:{stroke:{top:"#37a600",middle:"#b8ab00",bottom:"#37a600",dLine:"#ea2bff",kLine:"#74d400"}}}};t.BollingerBand=r.light.BollingerBand,t.ElderImpulse=r.light.ElderImpulse,t.MACD=r.light.MACD,t.FullStochasticOscillator=r.light.FullStochasticOscillator},function(e,t,n){"use strict";function r(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function o(e,t){var n=r(e);return function(r,o){return t(n(r),o,e)}}function a(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}var i={},u={},s=34,c=10,l=13;t.a=function(e){function t(e,t){var a,i,u=n(e,function(e,n){if(a)return a(e,n-1);i=e,a=t?o(e,t):r(e)});return u.columns=i,u}function n(e,t){function n(){if(p)return u;if(h)return h=!1,i;var t,n,r=f;if(e.charCodeAt(r)===s){for(;f++<a&&e.charCodeAt(f)!==s||e.charCodeAt(++f)===s;);return(t=f)>=a?p=!0:(n=e.charCodeAt(f++))===c?h=!0:n===l&&(h=!0,e.charCodeAt(f)===c&&++f),e.slice(r+1,t-1).replace(/""/g,'"')}for(;f<a;){if((n=e.charCodeAt(t=f++))===c)h=!0;else if(n===l)h=!0,e.charCodeAt(f)===c&&++f;else if(n!==v)continue;return e.slice(r,t)}return p=!0,e.slice(r,a)}var r,o=[],a=e.length,f=0,d=0,p=a<=0,h=!1;for(e.charCodeAt(a-1)===c&&--a,e.charCodeAt(a-1)===l&&--a;(r=n())!==u;){for(var y=[];r!==i&&r!==u;)y.push(r),r=n();t&&null==(y=t(y,d++))||o.push(y)}return o}function f(t,n){return null==n&&(n=a(t)),[n.map(h).join(e)].concat(t.map(function(t){return n.map(function(e){return h(t[e])}).join(e)})).join("\n")}function d(e){return e.map(p).join("\n")}function p(t){return t.map(h).join(e)}function h(e){return null==e?"":y.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}var y=new RegExp('["'+e+"\n\r]"),v=e.charCodeAt(0);return{parse:t,parseRows:n,format:f,formatRows:d}}},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return b=e,g}}function a(e,t){try{return e(t)}catch(e){return b=e,g}}function i(e,t,n){try{e(t,n)}catch(e){return b=e,g}}function u(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&y(e,this)}function s(e,t,n){return new e.constructor(function(o,a){var i=new u(r);i.then(o,a),c(e,new h(t,n,i))})}function c(e,t){for(;3===e._83;)e=e._18;if(u._47&&u._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);l(e,t)}function l(e,t){v(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?f(t.promise,e._18):d(t.promise,e._18));var r=a(n,e._18);r===g?d(t.promise,b):f(t.promise,r)})}function f(e,t){if(t===e)return d(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===g)return d(e,b);if(n===e.then&&t instanceof u)return e._83=3,e._18=t,void p(e);if("function"===typeof n)return void y(n.bind(t),e)}e._83=1,e._18=t,p(e)}function d(e,t){e._83=2,e._18=t,u._71&&u._71(e,t),p(e)}function p(e){if(1===e._75&&(c(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)c(e,e._38[t]);e._38=null}}function h(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function y(e,t){var n=!1,r=i(e,function(e){n||(n=!0,f(t,e))},function(e){n||(n=!0,d(t,e))});n||r!==g||(n=!0,d(t,b))}var v=n(155),b=null,g={};e.exports=u,u._47=null,u._71=null,u._44=r,u.prototype.then=function(e,t){if(this.constructor!==u)return s(this,e,t);var n=new u(r);return c(this,new h(e,t,n)),n}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return u});var r=n(22),o=n(90),a=Object(o.a)(r.a),i=a.right,u=a.left;t.c=i},function(e,t,n){"use strict";function r(e){return function(t,n){return Object(o.a)(e(t),n)}}var o=n(22);t.a=function(e){return 1===e.length&&(e=r(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)<0?r=a+1:o=a}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)>0?o=a:r=a+1}return r}}}},function(e,t,n){"use strict";function r(e,t){return[e,t]}t.b=r,t.a=function(e,t){null==t&&(t=r);for(var n=0,o=e.length-1,a=e[0],i=new Array(o<0?0:o);n<o;)i[n]=t(a,a=e[++n]);return i}},function(e,t,n){"use strict";var r=n(93);t.a=function(e,t){var n=Object(r.a)(e,t);return n?Math.sqrt(n):n}},function(e,t,n){"use strict";var r=n(29);t.a=function(e,t){var n,o,a=e.length,i=0,u=-1,s=0,c=0;if(null==t)for(;++u<a;)isNaN(n=Object(r.a)(e[u]))||(o=n-s,s+=o/++i,c+=o*(n-s));else for(;++u<a;)isNaN(n=Object(r.a)(t(e[u],u,e)))||(o=n-s,s+=o/++i,c+=o*(n-s));if(i>1)return c/(i-1)}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,o,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=o=n;++i<a;)null!=(n=e[i])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=o=n;++i<a;)null!=(n=t(e[i],i,e))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]}},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r=Array.prototype,o=r.slice,a=r.map},function(e,t,n){"use strict";t.a=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}},function(e,t,n){"use strict";function r(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),s=r/Math.pow(10,o);return o>=0?(s>=a?10:s>=i?5:s>=u?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(s>=a?10:s>=i?5:s>=u?2:1)}function o(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),s=r/o;return s>=a?o*=10:s>=i?o*=5:s>=u&&(o*=2),t<e?-o:o}t.b=r,t.c=o;var a=Math.sqrt(50),i=Math.sqrt(10),u=Math.sqrt(2);t.a=function(e,t,n){var o,a,i,u,s=-1;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((o=t<e)&&(a=e,e=t,t=a),0===(u=r(e,t,n))||!isFinite(u))return[];if(u>0)for(e=Math.ceil(e/u),t=Math.floor(t/u),i=new Array(a=Math.ceil(t-e+1));++s<a;)i[s]=(e+s)*u;else for(e=Math.floor(e*u),t=Math.ceil(t*u),i=new Array(a=Math.ceil(e-t+1));++s<a;)i[s]=(e-s)/u;return o&&i.reverse(),i}},function(e,t,n){"use strict";t.a=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<o;)null!=(n=e[a])&&r>n&&(r=n)}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<o;)null!=(n=t(e[a],a,e))&&r>n&&(r=n);return r}},function(e,t,n){"use strict";function r(e){return e.length}var o=n(99);t.a=function(e){if(!(i=e.length))return[];for(var t=-1,n=Object(o.a)(e,r),a=new Array(n);++t<n;)for(var i,u=-1,s=a[t]=new Array(i);++u<i;)s[u]=e[u][t];return a}},function(e,t,n){"use strict";function r(e){function t(t){var r=t+"",o=n.get(r);if(!o){if(s!==i)return s;n.set(r,o=u.push(t))}return e[(o-1)%e.length]}var n=Object(o.map)(),u=[],s=i;return e=null==e?[]:a.b.call(e),t.domain=function(e){if(!arguments.length)return u.slice();u=[],n=Object(o.map)();for(var r,a,i=-1,s=e.length;++i<s;)n.has(a=(r=e[i])+"")||n.set(a,u.push(r));return t},t.range=function(n){return arguments.length?(e=a.b.call(n),t):e.slice()},t.unknown=function(e){return arguments.length?(s=e,t):s},t.copy=function(){return r().domain(u).range(e).unknown(s)},t}n.d(t,"b",function(){return i}),t.a=r;var o=n(13),a=n(18),i={name:"implicit"}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=Math.PI/180,o=180/Math.PI},function(e,t,n){"use strict";function r(e){return function(t){var n,r,a=t.length,i=new Array(a),u=new Array(a),s=new Array(a);for(n=0;n<a;++n)r=Object(o.f)(t[n]),i[n]=r.r||0,u[n]=r.g||0,s[n]=r.b||0;return i=e(i),u=e(u),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=u(e),r.b=s(e),r+""}}}var o=n(15),a=n(61),i=n(104),u=n(31);t.a=function e(t){function n(e,t){var n=r((e=Object(o.f)(e)).r,(t=Object(o.f)(t)).r),a=r(e.g,t.g),i=r(e.b,t.b),s=Object(u.a)(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=i(t),e.opacity=s(t),e+""}}var r=Object(u.b)(t);return n.gamma=e,n}(1);r(a.b),r(i.a)},function(e,t,n){"use strict";var r=n(61);t.a=function(e){var t=e.length;return function(n){var o=Math.floor(((n%=1)<0?++n:n)*t),a=e[(o+t-1)%t],i=e[o%t],u=e[(o+1)%t],s=e[(o+2)%t];return Object(r.a)((n-o/t)*t,a,i,u,s)}}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";var r=n(58);t.a=function(e,t){var n,o=t?t.length:0,a=e?Math.min(o,e.length):0,i=new Array(o),u=new Array(o);for(n=0;n<a;++n)i[n]=Object(r.a)(e[n],t[n]);for(;n<o;++n)u[n]=t[n];return function(e){for(n=0;n<a;++n)u[n]=i[n](e);return u}}},function(e,t,n){"use strict";t.a=function(e,t){var n=new Date;return e=+e,t-=e,function(r){return n.setTime(e+t*r),n}}},function(e,t,n){"use strict";var r=n(58);t.a=function(e,t){var n,o={},a={};null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={});for(n in t)n in e?o[n]=Object(r.a)(e[n],t[n]):a[n]=t[n];return function(e){for(n in o)a[n]=o[n](e);return a}}},function(e,t,n){"use strict";function r(e){return function(){return e}}function o(e){return function(t){return e(t)+""}}var a=n(42),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u=new RegExp(i.source,"g");t.a=function(e,t){var n,s,c,l=i.lastIndex=u.lastIndex=0,f=-1,d=[],p=[];for(e+="",t+="";(n=i.exec(e))&&(s=u.exec(t));)(c=s.index)>l&&(c=t.slice(l,c),d[f]?d[f]+=c:d[++f]=c),(n=n[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,p.push({i:f,x:Object(a.a)(n,s)})),l=u.lastIndex;return l<t.length&&(c=t.slice(l),d[f]?d[f]+=c:d[++f]=c),d.length<2?p[0]?o(p[0].x):r(t):(t=p.length,function(e){for(var n,r=0;r<t;++r)d[(n=p[r]).i]=n.x(e);return d.join("")})}},function(e,t,n){"use strict";t.a=function(e){return+e}},function(e,t,n){"use strict";var r=n(44),o=n(209),a=n(210),i=n(112),u=n(113),s=n(114),c=n(213),l=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){function t(e){function t(e){var t,a,i,u=w,d=_;if("c"===m)d=O(e)+d,e="";else{e=+e;var y=e<0;if(e=O(Math.abs(e),g),y&&0===+e&&(y=!1),u=(y?"("===o?o:"-":"-"===o||"("===o?"":o)+u,d=d+("s"===m?l[8+s.b/3]:"")+(y&&"("===o?")":""),x)for(t=-1,a=e.length;++t<a;)if(48>(i=e.charCodeAt(t))||i>57){d=(46===i?p+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}b&&!c&&(e=f(e,1/0));var k=u.length+e.length+d.length,C=k<v?new Array(v-k+1).join(n):"";switch(b&&c&&(e=f(C+e,C.length?v-d.length:1/0),C=""),r){case"<":e=u+e+d+C;break;case"=":e=u+C+e+d;break;case"^":e=C.slice(0,k=C.length>>1)+u+e+d+C.slice(k);break;default:e=C+u+e+d}return h(e)}e=Object(i.a)(e);var n=e.fill,r=e.align,o=e.sign,a=e.symbol,c=e.zero,v=e.width,b=e.comma,g=e.precision,m=e.type,w="$"===a?d[0]:"#"===a&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===a?d[1]:/[%p]/.test(m)?y:"",O=u.a[m],x=!m||/[defgprs%]/.test(m);return g=null==g?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),t.toString=function(){return e+""},t}function n(e,n){var o=t((e=Object(i.a)(e),e.type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),u=Math.pow(10,-a),s=l[8+a/3];return function(e){return o(u*e)+s}}var f=e.grouping&&e.thousands?Object(o.a)(e.grouping,e.thousands):c.a,d=e.currency,p=e.decimal,h=e.numerals?Object(a.a)(e.numerals):c.a,y=e.percent||"%";return{format:t,formatPrefix:n}}},function(e,t,n){"use strict";function r(e){return new o(e)}function o(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",u=t[4]||"",s=!!t[5],c=t[6]&&+t[6],l=!!t[7],f=t[8]&&+t[8].slice(1),d=t[9]||"";"n"===d?(l=!0,d="g"):a.a[d]||(d=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=u,this.zero=s,this.width=c,this.comma=l,this.precision=f,this.type=d}t.a=r;var a=n(113),i=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type}},function(e,t,n){"use strict";var r=n(211),o=n(114),a=n(212);t.a={"":r.a,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Object(a.a)(100*e,t)},r:a.a,s:o.a,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return r});var r,o=n(63);t.a=function(e,t){var n=Object(o.a)(e,t);if(!n)return e+"";var a=n[0],i=n[1],u=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=a.length;return u===s?a:u>s?a+new Array(u-s+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+Object(o.a)(e,Math.max(0,t+u-1))[0]}},function(e,t,n){"use strict";t.a=function(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}},function(e,t,n){"use strict";function r(e){return new Date(e)}function o(e){return e instanceof Date?+e:+new Date(+e)}function a(e,t,n,s,c,w,_,O,x){function k(r){return(_(r)<r?j:w(r)<r?T:c(r)<r?M:s(r)<r?A:t(r)<r?n(r)<r?D:N:e(r)<r?R:F)(r)}function C(t,n,r,o){if(null==t&&(t=10),"number"===typeof t){var a=Math.abs(r-n)/t,u=Object(i.bisector)(function(e){return e[2]}).right(I,a);u===I.length?(o=Object(i.tickStep)(n/m,r/m,t),t=e):u?(u=I[a/I[u-1][2]<I[u][2]/a?u-1:u],o=u[1],t=u[0]):(o=Object(i.tickStep)(n,r,t),t=O)}return null==o?t:t.every(o)}var P=Object(f.b)(f.c,u.c),S=P.invert,E=P.domain,j=x(".%L"),T=x(":%S"),M=x("%I:%M"),A=x("%I %p"),D=x("%a %d"),N=x("%b %d"),R=x("%B"),F=x("%Y"),I=[[_,1,p],[_,5,5*p],[_,15,15*p],[_,30,30*p],[w,1,h],[w,5,5*h],[w,15,15*h],[w,30,30*h],[c,1,y],[c,3,3*y],[c,6,6*y],[c,12,12*y],[s,1,v],[s,2,2*v],[n,1,b],[t,1,g],[t,3,3*g],[e,1,m]];return P.invert=function(e){return new Date(S(e))},P.domain=function(e){return arguments.length?E(l.a.call(e,o)):E().map(r)},P.ticks=function(e,t){var n,r=E(),o=r[0],a=r[r.length-1],i=a<o;return i&&(n=o,o=a,a=n),n=C(e,o,a,t),n=n?n.range(o,a+1):[],i?n.reverse():n},P.tickFormat=function(e,t){return null==t?k:x(t)},P.nice=function(e,t){var n=E();return(e=C(e,n[0],n[n.length-1],t))?E(Object(d.a)(n,e)):P},P.copy=function(){return Object(f.a)(P,a(e,t,n,s,c,w,_,O,x))},P}t.a=a;var i=n(3),u=n(23),s=n(45),c=n(24),l=n(18),f=n(43),d=n(115),p=1e3,h=60*p,y=60*h,v=24*y,b=7*v,g=30*v,m=365*v;t.b=function(){return a(s.k,s.f,s.j,s.a,s.b,s.d,s.g,s.c,c.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}},function(e,t,n){"use strict";function r(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function o(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function a(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function i(e){function t(e,t){return function(n){var r,o,a,i=[],u=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++u<c;)37===e.charCodeAt(u)&&(i.push(e.slice(s,u)),null!=(o=he[r=e.charAt(++u)])?r=e.charAt(++u):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),s=u+1);return i.push(e.slice(s,u)),i.join("")}}function n(e,t){return function(n){var r,u,s=a(1900),c=i(s,e,n+="",0);if(c!=n.length)return null;if("Q"in s)return new Date(s.Q);if("p"in s&&(s.H=s.H%12+12*s.p),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(r=o(a(s.y)),u=r.getUTCDay(),r=u>4||0===u?pe.p.ceil(r):Object(pe.p)(r),r=pe.l.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(r=t(a(s.y)),u=r.getDay(),r=u>4||0===u?pe.e.ceil(r):Object(pe.e)(r),r=pe.a.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),u="Z"in s?o(a(s.y)).getUTCDay():t(a(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(u+5)%7:s.w+7*s.U-(u+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,o(s)):t(s)}}function i(e,t,n,r){for(var o,a,i=0,u=t.length,s=n.length;i<u;){if(r>=s)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=Qe[o in he?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function u(e,t,n){var r=Be.exec(t.slice(n));return r?(e.p=qe[r[0].toLowerCase()],n+r[0].length):-1}function s(e,t,n){var r=Le.exec(t.slice(n));return r?(e.w=Ue[r[0].toLowerCase()],n+r[0].length):-1}function ye(e,t,n){var r=ze.exec(t.slice(n));return r?(e.w=He[r[0].toLowerCase()],n+r[0].length):-1}function ve(e,t,n){var r=Ge.exec(t.slice(n));return r?(e.m=Xe[r[0].toLowerCase()],n+r[0].length):-1}function be(e,t,n){var r=Ve.exec(t.slice(n));return r?(e.m=Ye[r[0].toLowerCase()],n+r[0].length):-1}function ge(e,t,n){return i(e,Me,t,n)}function me(e,t,n){return i(e,Ae,t,n)}function we(e,t,n){return i(e,De,t,n)}function _e(e){return Fe[e.getDay()]}function Oe(e){return Re[e.getDay()]}function xe(e){return We[e.getMonth()]}function ke(e){return Ie[e.getMonth()]}function Ce(e){return Ne[+(e.getHours()>=12)]}function Pe(e){return Fe[e.getUTCDay()]}function Se(e){return Re[e.getUTCDay()]}function Ee(e){return We[e.getUTCMonth()]}function je(e){return Ie[e.getUTCMonth()]}function Te(e){return Ne[+(e.getUTCHours()>=12)]}var Me=e.dateTime,Ae=e.date,De=e.time,Ne=e.periods,Re=e.days,Fe=e.shortDays,Ie=e.months,We=e.shortMonths,Be=c(Ne),qe=l(Ne),ze=c(Re),He=l(Re),Le=c(Fe),Ue=l(Fe),Ve=c(Ie),Ye=l(Ie),Ge=c(We),Xe=l(We),Ze={a:_e,A:Oe,b:xe,B:ke,c:null,d:T,e:T,f:R,H:M,I:A,j:D,L:N,m:F,M:I,p:Ce,Q:fe,s:de,S:W,u:B,U:q,V:z,w:H,W:L,x:null,X:null,y:U,Y:V,Z:Y,"%":le},Ke={a:Pe,A:Se,b:Ee,B:je,c:null,d:G,e:G,f:$,H:X,I:Z,j:K,L:Q,m:J,M:ee,p:Te,Q:fe,s:de,S:te,u:ne,U:re,V:oe,w:ae,W:ie,x:null,X:null,y:ue,Y:se,Z:ce,"%":le},Qe={a:s,A:ye,b:ve,B:be,c:ge,d:w,e:w,f:P,H:O,I:O,j:_,L:C,m:m,M:x,p:u,Q:E,s:j,S:k,u:d,U:p,V:h,w:f,W:y,x:me,X:we,y:b,Y:v,Z:g,"%":S};return Ze.x=t(Ae,Ze),Ze.X=t(De,Ze),Ze.c=t(Me,Ze),Ke.x=t(Ae,Ke),Ke.X=t(De,Ke),Ke.c=t(Me,Ke),{format:function(e){var n=t(e+="",Ze);return n.toString=function(){return e},n},parse:function(e){var t=n(e+="",r);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",Ke);return n.toString=function(){return e},n},utcParse:function(e){var t=n(e,o);return t.toString=function(){return e},t}}}function u(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function s(e){return e.replace(be,"\\$&")}function c(e){return new RegExp("^(?:"+e.map(s).join("|")+")","i")}function l(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function f(e,t,n){var r=ye.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function d(e,t,n){var r=ye.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function p(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function h(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function y(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function v(e,t,n){var r=ye.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function b(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function g(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function m(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function w(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _(e,t,n){var r=ye.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function O(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function x(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function k(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function C(e,t,n){var r=ye.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function P(e,t,n){var r=ye.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function S(e,t,n){var r=ve.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function E(e,t,n){var r=ye.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function j(e,t,n){var r=ye.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function T(e,t){return u(e.getDate(),t,2)}function M(e,t){return u(e.getHours(),t,2)}function A(e,t){return u(e.getHours()%12||12,t,2)}function D(e,t){return u(1+pe.a.count(Object(pe.k)(e),e),t,3)}function N(e,t){return u(e.getMilliseconds(),t,3)}function R(e,t){return N(e,t)+"000"}function F(e,t){return u(e.getMonth()+1,t,2)}function I(e,t){return u(e.getMinutes(),t,2)}function W(e,t){return u(e.getSeconds(),t,2)}function B(e){var t=e.getDay();return 0===t?7:t}function q(e,t){return u(pe.h.count(Object(pe.k)(e),e),t,2)}function z(e,t){var n=e.getDay();return e=n>=4||0===n?Object(pe.i)(e):pe.i.ceil(e),u(pe.i.count(Object(pe.k)(e),e)+(4===Object(pe.k)(e).getDay()),t,2)}function H(e){return e.getDay()}function L(e,t){return u(pe.e.count(Object(pe.k)(e),e),t,2)}function U(e,t){return u(e.getFullYear()%100,t,2)}function V(e,t){return u(e.getFullYear()%1e4,t,4)}function Y(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+u(t/60|0,"0",2)+u(t%60,"0",2)}function G(e,t){return u(e.getUTCDate(),t,2)}function X(e,t){return u(e.getUTCHours(),t,2)}function Z(e,t){return u(e.getUTCHours()%12||12,t,2)}function K(e,t){return u(1+pe.l.count(Object(pe.v)(e),e),t,3)}function Q(e,t){return u(e.getUTCMilliseconds(),t,3)}function $(e,t){return Q(e,t)+"000"}function J(e,t){return u(e.getUTCMonth()+1,t,2)}function ee(e,t){return u(e.getUTCMinutes(),t,2)}function te(e,t){return u(e.getUTCSeconds(),t,2)}function ne(e){var t=e.getUTCDay();return 0===t?7:t}function re(e,t){return u(pe.s.count(Object(pe.v)(e),e),t,2)}function oe(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(pe.t)(e):pe.t.ceil(e),u(pe.t.count(Object(pe.v)(e),e)+(4===Object(pe.v)(e).getUTCDay()),t,2)}function ae(e){return e.getUTCDay()}function ie(e,t){return u(pe.p.count(Object(pe.v)(e),e),t,2)}function ue(e,t){return u(e.getUTCFullYear()%100,t,2)}function se(e,t){return u(e.getUTCFullYear()%1e4,t,4)}function ce(){return"+0000"}function le(){return"%"}function fe(e){return+e}function de(e){return Math.floor(+e/1e3)}t.a=i;var pe=n(45),he={"-":"",_:" ",0:"0"},ye=/^\s*\d+/,ve=/^%/,be=/[\\^$*+?|[\]().{}]/g},function(e,t,n){"use strict";function r(e){return e.toISOString()}n.d(t,"b",function(){return a});var o=n(64),a="%Y-%m-%dT%H:%M:%S.%LZ",i=Date.prototype.toISOString?r:Object(o.d)(a);t.a=i},function(e,t,n){"use strict";function r(){function e(){var e=arguments.length;if(!e)return[];var r=Object(o.min)(arguments,t),a=void 0,i=new Array(r);for(a=-1;++a<r;){for(var u=-1,s=i[a]=new Array(e);++u<e;)s[u]=arguments[u][a];i[a]=n.apply(this,i[a])}return i}function t(e){return e.length}var n=a.a;return e.combine=function(t){return arguments.length?(n=t,e):n},e}t.a=r;var o=n(3),a=n(26)},function(e,t,n){"use strict";function r(e){return"[object Date]"===Object.prototype.toString.call(e)}function o(e,t){return r(e)&&r(t)?e.getTime()===t.getTime():e===t}function a(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n=0,r=0,a=void 0;for(a in t)if(r++,t.hasOwnProperty(a)&&!e.hasOwnProperty(a)||!o(e[a],t[a]))return!1;for(a in e)n++;return n===r}t.a=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=n.n(i),s=n(2),c=n.n(s),l=n(21),f=n(65),d=n(9),p=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e){function t(e,n){r(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return a.yScale=a.yScale.bind(a),a.listener=a.listener.bind(a),a}return a(t,e),h(t,[{key:"componentWillMount",value:function(){var e=this.props.id;(0,this.context.subscribe)("chart_"+e,{listener:this.listener})}},{key:"componentWillUnmount",value:function(){var e=this.props.id;(0,this.context.unsubscribe)("chart_"+e)}},{key:"listener",value:function(e,t,n,r){var o=this.props,a=o.id,i=o.onContextMenu;if("contextmenu"===e){t.currentCharts.indexOf(a)>-1&&i(t,r)}}},{key:"yScale",value:function(){var e=this;return this.context.chartConfig.filter(function(t){return t.id===e.props.id})[0].yScale.copy()}},{key:"getChildContext",value:function(){var e=this.props.id,t=this.context.chartConfig.filter(function(t){return t.id===e})[0];return{chartId:e,chartConfig:t}}},{key:"render",value:function(){var e=this,t=this.context.chartConfig.filter(function(t){return t.id===e.props.id})[0].origin,n=p(t,2),r=n[0],o=n[1];return u.a.createElement("g",{transform:"translate("+r+", "+o+")"},this.props.children)}}]),t}(f.a);y.propTypes={height:c.a.number,width:c.a.number,origin:c.a.oneOfType([c.a.array,c.a.func]),id:c.a.oneOfType([c.a.number,c.a.string]).isRequired,yExtents:c.a.oneOfType([c.a.array,c.a.func]),yExtentsCalculator:function(e,t,n){if(Object(d.s)(e.yExtents)&&"function"!==typeof e.yExtentsCalculator)return new Error("yExtents or yExtentsCalculator must be present on "+n+". Validation failed.")},onContextMenu:c.a.func,yScale:c.a.func,flipYScale:c.a.bool,padding:c.a.oneOfType([c.a.number,c.a.shape({top:c.a.number,bottom:c.a.number})]),children:c.a.node},y.defaultProps={id:0,origin:[0,0],padding:0,yScale:Object(l.scaleLinear)(),flipYScale:!1,yPan:!0,onContextMenu:d.x},y.contextTypes={chartConfig:c.a.array,subscribe:c.a.func.isRequired,unsubscribe:c.a.func.isRequired},y.childContextTypes={chartConfig:c.a.object.isRequired,chartId:c.a.oneOfType([c.a.number,c.a.string]).isRequired},t.a=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(67);n.d(t,"creator",function(){return r.a});var o=n(258);n.d(t,"local",function(){return o.a});var a=n(123);n.d(t,"matcher",function(){return a.a});var i=n(259);n.d(t,"mouse",function(){return i.a});var u=n(68);n.d(t,"namespace",function(){return u.a});var s=n(69);n.d(t,"namespaces",function(){return s.a});var c=n(260);n.d(t,"select",function(){return c.a});var l=n(288);n.d(t,"selectAll",function(){return l.a});var f=n(12);n.d(t,"selection",function(){return f.b});var d=n(73);n.d(t,"selector",function(){return d.a});var p=n(124);n.d(t,"selectorAll",function(){return p.a});var h=n(127);n.d(t,"style",function(){return h.b});var y=n(289);n.d(t,"touch",function(){return y.a});var v=n(290);n.d(t,"touches",function(){return v.a});var b=n(74);n.d(t,"window",function(){return b.a});var g=n(71);n.d(t,"event",function(){return g.c}),n.d(t,"customEvent",function(){return g.a})},function(e,t,n){"use strict";var r=function(e){return function(){return this.matches(e)}};if("undefined"!==typeof document){var o=document.documentElement;if(!o.matches){var a=o.webkitMatchesSelector||o.msMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector;r=function(e){return function(){return a.call(this,e)}}}}t.a=r},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";function r(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}t.a=r;var o=n(126),a=n(12);t.b=function(){return new a.a(this._enter||this._groups.map(o.a),this._parents)},r.prototype={constructor:r,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}},function(e,t,n){"use strict";t.a=function(e){return new Array(e.length)}},function(e,t,n){"use strict";function r(e){return function(){this.style.removeProperty(e)}}function o(e,t,n){return function(){this.style.setProperty(e,t,n)}}function a(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function i(e,t){return e.style.getPropertyValue(t)||Object(u.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.b=i;var u=n(74);t.a=function(e,t,n){return arguments.length>1?this.each((null==t?r:"function"===typeof t?a:o)(e,t,null==n?"":n)):i(this.node(),e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=n.n(i),s=n(2),c=n.n(s),l=n(9),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p={mouseleave:"mousemove",panend:"pan",pinchzoom:"pan",mousedown:"mousemove",click:"mousemove",contextmenu:"mousemove",dblclick:"mousemove",dragstart:"drag",dragend:"drag",dragcancel:"drag"},h=function(e){function t(e,n){r(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));a.drawOnCanvas=a.drawOnCanvas.bind(a),a.getMoreProps=a.getMoreProps.bind(a),a.listener=a.listener.bind(a),a.draw=a.draw.bind(a),a.updateMoreProps=a.updateMoreProps.bind(a),a.evaluateType=a.evaluateType.bind(a),a.isHover=a.isHover.bind(a),a.preCanvasDraw=a.preCanvasDraw.bind(a),a.postCanvasDraw=a.postCanvasDraw.bind(a),a.getPanConditions=a.getPanConditions.bind(a),a.shouldTypeProceed=a.shouldTypeProceed.bind(a),a.preEvaluate=a.preEvaluate.bind(a);var i=n.generateSubscriptionId;return a.suscriberId=i(),a.moreProps={},a.state={updateCount:0},a}return a(t,e),d(t,[{key:"updateMoreProps",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.moreProps[n]=e[n]})}},{key:"shouldTypeProceed",value:function(){return!0}},{key:"preEvaluate",value:function(){}},{key:"listener",value:function(e,t,n,r){Object(l.r)(t)&&this.updateMoreProps(t),this.evaluationInProgress=!0,this.evaluateType(e,r),this.evaluationInProgress=!1}},{key:"evaluateType",value:function(e,t){var n=p[e]||e;if(this.props.drawOn.indexOf(n)>-1&&(this.preEvaluate(e,this.moreProps,t),this.shouldTypeProceed(e,this.moreProps)))switch(e){case"zoom":case"mouseenter":case"mouseleave":break;case"contextmenu":this.props.onContextMenu&&this.props.onContextMenu(this.getMoreProps(),t),this.moreProps.hovering&&this.props.onContextMenuWhenHover&&this.props.onContextMenuWhenHover(this.getMoreProps(),t);break;case"mousedown":this.props.onMouseDown&&this.props.onMouseDown(this.getMoreProps(),t);break;case"click":var r=this.getMoreProps();this.moreProps.hovering?this.props.onClickWhenHover(r,t):this.props.onClickOutside(r,t),this.props.onClick&&this.props.onClick(r,t);break;case"mousemove":var o=this.moreProps.hovering;this.moreProps.hovering=this.isHover(t);var a=this.context,i=a.amIOnTop,u=a.setCursorClass;this.moreProps.hovering&&!this.props.selected&&!o&&Object(l.r)(this.props.onHover)?(u("react-stockcharts-pointer-cursor"),this.iSetTheCursorClass=!0):this.moreProps.hovering&&this.props.selected&&i(this.suscriberId)?(u(this.props.interactiveCursorClass),this.iSetTheCursorClass=!0):o&&!this.moreProps.hovering&&this.iSetTheCursorClass&&(this.iSetTheCursorClass=!1,u(null));var s=this.getMoreProps();this.moreProps.hovering&&!o&&this.props.onHover&&this.props.onHover(s,t),o&&!this.moreProps.hovering&&this.props.onUnHover&&this.props.onUnHover(s,t),this.props.onMouseMove&&this.props.onMouseMove(s,t);break;case"dblclick":var c=this.getMoreProps();this.props.onDoubleClick&&this.props.onDoubleClick(c,t),this.moreProps.hovering&&this.props.onDoubleClickWhenHover&&this.props.onDoubleClickWhenHover(c,t);break;case"pan":this.moreProps.hovering=!1,this.props.onPan&&this.props.onPan(this.getMoreProps(),t);break;case"panend":this.props.onPanEnd&&this.props.onPanEnd(this.getMoreProps(),t);break;case"dragstart":this.moreProps.hovering&&this.props.selected&&(0,this.context.amIOnTop)(this.suscriberId)&&(this.dragInProgress=!0,this.props.onDragStart(this.getMoreProps(),t)),this.someDragInProgress=!0;break;case"drag":this.dragInProgress&&this.props.onDrag&&this.props.onDrag(this.getMoreProps(),t);break;case"dragend":this.dragInProgress&&this.props.onDragComplete&&this.props.onDragComplete(this.getMoreProps(),t),this.dragInProgress=!1,this.someDragInProgress=!1;break;case"dragcancel":(this.dragInProgress||this.iSetTheCursorClass)&&(0,this.context.setCursorClass)(null)}}},{key:"isHover",value:function(e){return!!Object(l.r)(this.props.isHover)&&this.props.isHover(this.getMoreProps(),e)}},{key:"getPanConditions",value:function(){return{draggable:!(!this.props.selected||!this.moreProps.hovering),panEnabled:!this.props.disablePan}}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},t=e.trigger,n=e.force,r=p[t]||t;if(this.props.drawOn.indexOf(r)>-1||this.props.selected||n){var o=this.context.chartCanvasType,a=this.props.canvasDraw;if(Object(l.s)(a)||"svg"===o){var i=this.state.updateCount;this.setState({updateCount:i+1})}else this.drawOnCanvas()}}},{key:"componentWillMount",value:function(){var e=this.context,t=e.subscribe,n=e.chartId,r=this.props,o=r.clip,a=r.edgeClip;t(this.suscriberId,{chartId:n,clip:o,edgeClip:a,listener:this.listener,draw:this.draw,getPanConditions:this.getPanConditions}),this.componentWillReceiveProps(this.props,this.context)}},{key:"componentWillUnmount",value:function(){(0,this.context.unsubscribe)(this.suscriberId)}},{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.context.chartCanvasType,n=this.props,r=n.canvasDraw,o=n.selected,a=n.interactiveCursorClass;if(e.selected!==o){(0,this.context.setCursorClass)(o&&this.moreProps.hovering?a:null)}Object(l.r)(r)&&!this.evaluationInProgress&&"svg"!==t&&this.drawOnCanvas()}},{key:"componentWillReceiveProps",value:function(e,t){var n=t.xScale,r=t.plotData,o=t.chartConfig,a=t.getMutableState;this.props.debug(t),this.moreProps=f({},this.moreProps,a(),{xScale:n,plotData:r,chartConfig:o})}},{key:"getMoreProps",value:function(){var e=this.context,t=e.xScale,n=e.plotData,r=e.chartConfig,o=e.morePropsDecorator,a=e.xAccessor,i=e.displayXAccessor,u=e.width,s=e.height,c=this.context,d=c.chartId,p=c.fullData,h=f({xScale:t,plotData:n,chartConfig:r,xAccessor:a,displayXAccessor:i,width:u,height:s,chartId:d,fullData:p},this.moreProps);return(o||l.q)(h)}},{key:"preCanvasDraw",value:function(){}},{key:"postCanvasDraw",value:function(){}},{key:"drawOnCanvas",value:function(){var e=this.props,t=e.canvasDraw,n=e.canvasToDraw,r=this.context.getCanvasContexts,o=this.getMoreProps(),a=n(r());this.preCanvasDraw(a,o),t(a,o),this.postCanvasDraw(a,o)}},{key:"render",value:function(){var e=this.context,t=e.chartCanvasType,n=e.chartId,r=this.props,o=r.canvasDraw,a=r.clip,i=r.svgDraw;if(Object(l.r)(o)&&"svg"!==t)return null;var s=Object(l.r)(n)?"-"+n:"",c=a?{clipPath:"url(#chart-area-clip"+s+")"}:null;return u.a.createElement("g",{style:c},i(this.getMoreProps()))}}]),t}(i.Component);h.propTypes={svgDraw:c.a.func.isRequired,canvasDraw:c.a.func,drawOn:c.a.array.isRequired,clip:c.a.bool.isRequired,edgeClip:c.a.bool.isRequired,interactiveCursorClass:c.a.string,selected:c.a.bool.isRequired,disablePan:c.a.bool.isRequired,canvasToDraw:c.a.func.isRequired,isHover:c.a.func,onClick:c.a.func,onClickWhenHover:c.a.func,onClickOutside:c.a.func,onPan:c.a.func,onPanEnd:c.a.func,onDragStart:c.a.func,onDrag:c.a.func,onDragComplete:c.a.func,onDoubleClick:c.a.func,onDoubleClickWhenHover:c.a.func,onContextMenu:c.a.func,onContextMenuWhenHover:c.a.func,onMouseMove:c.a.func,onMouseDown:c.a.func,onHover:c.a.func,onUnHover:c.a.func,debug:c.a.func},h.defaultProps={svgDraw:Object(l.j)(null),draw:[],canvasToDraw:function(e){return e.mouseCoord},clip:!0,edgeClip:!1,selected:!1,disablePan:!1,onClickWhenHover:l.x,onClickOutside:l.x,onDragStart:l.x,onMouseMove:l.x,onMouseDown:l.x,debug:l.x},h.contextTypes={width:c.a.number.isRequired,height:c.a.number.isRequired,margin:c.a.object.isRequired,chartId:c.a.oneOfType([c.a.number,c.a.string]),getCanvasContexts:c.a.func,chartCanvasType:c.a.string,xScale:c.a.func.isRequired,xAccessor:c.a.func.isRequired,displayXAccessor:c.a.func.isRequired,plotData:c.a.array.isRequired,fullData:c.a.array.isRequired,chartConfig:c.a.oneOfType([c.a.array,c.a.object]).isRequired,morePropsDecorator:c.a.func,generateSubscriptionId:c.a.func,getMutableState:c.a.func.isRequired,amIOnTop:c.a.func.isRequired,subscribe:c.a.func.isRequired,unsubscribe:c.a.func.isRequired,setCursorClass:c.a.func.isRequired},t.a=h},function(e,t,n){"use strict";var r=n(33),o=n(19),a=n(47),i=n(75),u=n(76);t.a=function(){function e(e){var t,o,a,i,u,y=e.length,v=!1,b=new Array(y),g=new Array(y);for(null==d&&(h=p(u=Object(r.a)())),t=0;t<=y;++t){if(!(t<y&&f(i=e[t],t,e))===v)if(v=!v)o=t,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),a=t-1;a>=o;--a)h.point(b[a],g[a]);h.lineEnd(),h.areaEnd()}v&&(b[t]=+n(i,t,e),g[t]=+c(i,t,e),h.point(s?+s(i,t,e):b[t],l?+l(i,t,e):g[t]))}if(u)return h=null,u+""||null}function t(){return Object(i.a)().defined(f).curve(p).context(d)}var n=u.a,s=null,c=Object(o.a)(0),l=u.b,f=Object(o.a)(!0),d=null,p=a.a,h=null;return e.x=function(t){return arguments.length?(n="function"===typeof t?t:Object(o.a)(+t),s=null,e):n},e.x0=function(t){return arguments.length?(n="function"===typeof t?t:Object(o.a)(+t),e):n},e.x1=function(t){return arguments.length?(s=null==t?null:"function"===typeof t?t:Object(o.a)(+t),e):s},e.y=function(t){return arguments.length?(c="function"===typeof t?t:Object(o.a)(+t),l=null,e):c},e.y0=function(t){return arguments.length?(c="function"===typeof t?t:Object(o.a)(+t),e):c},e.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:Object(o.a)(+t),e):l},e.lineX0=e.lineY0=function(){return t().x(n).y(c)},e.lineY1=function(){return t().x(n).y(l)},e.lineX1=function(){return t().x(s).y(c)},e.defined=function(t){return arguments.length?(f="function"===typeof t?t:Object(o.a)(!!t),e):f},e.curve=function(t){return arguments.length?(p=t,null!=d&&(h=p(d)),e):p},e.context=function(t){return arguments.length?(null==t?d=h=null:h=p(d=t),e):d},e}},function(e,t,n){"use strict";function r(e){this._curve=e}function o(e){function t(t){return new r(e(t))}return t._curve=e,t}n.d(t,"a",function(){return i}),t.b=o;var a=n(47),i=o(a.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},function(e,t,n){"use strict";function r(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Object(o.b)(e)):t()._curve},e}t.b=r;var o=n(130),a=n(75);t.a=function(){return r(Object(a.a)().curve(o.a))}},function(e,t,n){"use strict";t.a=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.prototype.slice},function(e,t,n){"use strict";var r=n(34);t.a={draw:function(e,t){var n=Math.sqrt(t/r.j);e.moveTo(n,0),e.arc(0,0,n,0,r.m)}}},function(e,t,n){"use strict";t.a={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}}},function(e,t,n){"use strict";var r=Math.sqrt(1/3),o=2*r;t.a={draw:function(e,t){var n=Math.sqrt(t/o),a=n*r;e.moveTo(0,-n),e.lineTo(a,0),e.lineTo(0,n),e.lineTo(-a,0),e.closePath()}}},function(e,t,n){"use strict";var r=n(34),o=Math.sin(r.j/10)/Math.sin(7*r.j/10),a=Math.sin(r.m/10)*o,i=-Math.cos(r.m/10)*o;t.a={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),o=a*n,u=i*n;e.moveTo(0,-n),e.lineTo(o,u);for(var s=1;s<5;++s){var c=r.m*s/5,l=Math.cos(c),f=Math.sin(c);e.lineTo(f*n,-l*n),e.lineTo(l*o-f*u,f*o+l*u)}e.closePath()}}},function(e,t,n){"use strict";t.a={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}}},function(e,t,n){"use strict";var r=Math.sqrt(3);t.a={draw:function(e,t){var n=-Math.sqrt(t/(3*r));e.moveTo(0,2*n),e.lineTo(-r*n,-n),e.lineTo(r*n,-n),e.closePath()}}},function(e,t,n){"use strict";var r=-.5,o=Math.sqrt(3)/2,a=1/Math.sqrt(12),i=3*(a/2+1);t.a={draw:function(e,t){var n=Math.sqrt(t/i),u=n/2,s=n*a,c=u,l=n*a+n,f=-c,d=l;e.moveTo(u,s),e.lineTo(c,l),e.lineTo(f,d),e.lineTo(r*u-o*s,o*u+r*s),e.lineTo(r*c-o*l,o*c+r*l),e.lineTo(r*f-o*d,o*f+r*d),e.lineTo(r*u+o*s,r*s-o*u),e.lineTo(r*c+o*l,r*l-o*c),e.lineTo(r*f+o*d,r*d-o*f),e.closePath()}}},function(e,t,n){"use strict";function r(e,t){this._context=e,this._k=(1-t)/6}t.a=r;var o=n(48),a=n(50);r.prototype={areaStart:o.a,areaEnd:o.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Object(a.c)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.b=function e(t){function n(e){return new r(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._k=(1-t)/6}t.a=r;var o=n(50);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(o.c)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.b=function e(t){function n(e){return new r(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(){function e(){var e=arguments.length;if(!e)return[];var r=(0,o.min)(arguments,t),a=void 0,i=new Array(r);for(a=-1;++a<r;){for(var u=-1,s=i[a]=new Array(e);++u<e;)s[u]=arguments[u][a];i[a]=n.apply(this,i[a])}return i}function t(e){return e.length}var n=i.default;return e.combine=function(t){return arguments.length?(n=t,e):n},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(3),a=n(37),i=function(e){return e&&e.__esModule?e:{default:e}}(a)},function(e,t,n){"use strict";function r(e){return"[object Date]"===Object.prototype.toString.call(e)}function o(e,t){return r(e)&&r(t)?e.getTime()===t.getTime():e===t}function a(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n=0,r=0,a=void 0;for(a in t)if(r++,t.hasOwnProperty(a)&&!e.hasOwnProperty(a)||!o(e[a],t[a]))return!1;for(a in e)n++;return n===r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=e.baseAt,r=e.fill,o=e.stroke,a=e.yAccessor,i=t.xScale,u=t.xAccessor,s=t.plotData,c=t.chartConfig.yScale,l=(0,g.functor)(r),f=(0,g.functor)(n),d=(0,g.functor)(e.width),p=d(e,{xScale:i,xAccessor:u,plotData:s}),h=Math.floor(.5*p);return s.map(function(e){var t=a(e),n=c(t),r=Math.round(i(u(e)))-h,s=f(i,c,e)-c(t);return s<0&&(n+=s,s=-s),{x:r,y:Math.round(n),height:Math.round(s),width:2*h,fill:l(e,0),stroke:o?l(e,0):"none"}})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(4),h=r(p),y=n(5),v=n(51),b=r(v),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),s(t,[{key:"drawOnCanvas",value:function(e,t){if(this.props.swapScales){var n=t.xAccessor;(0,v.drawOnCanvasHelper)(e,this.props,t,n,v.identityStack)}else{var r=u(this.props,t);(0,v.drawOnCanvas2)(this.props,e,r)}}},{key:"renderSVG",value:function(e){if(this.props.swapScales){var t=e.xAccessor;return l.default.createElement("g",null,(0,v.svgHelper)(this.props,e,t,v.identityStack))}var n=u(this.props,e);return l.default.createElement("g",null,(0,v.getBarsSVG2)(this.props,n))}},{key:"render",value:function(){var e=this.props.clip;return l.default.createElement(h.default,{clip:e,svgDraw:this.renderSVG,canvasToDraw:y.getAxisCanvas,canvasDraw:this.drawOnCanvas,drawOn:["pan"]})}}]),t}(c.Component);m.propTypes={baseAt:d.default.oneOfType([d.default.number,d.default.func]),stroke:d.default.bool,width:d.default.oneOfType([d.default.number,d.default.func]),yAccessor:d.default.func.isRequired,opacity:d.default.number,fill:d.default.oneOfType([d.default.func,d.default.string]),className:d.default.oneOfType([d.default.func,d.default.string]),clip:d.default.bool,swapScales:d.default.bool},m.defaultProps=b.default.defaultProps,t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=e.orient,r=e.innerTickSize,o=e.tickFormat,a=e.tickPadding,i=e.tickLabelFill,u=e.tickStrokeWidth,s=e.tickStrokeDasharray,c=e.fontSize,l=e.fontFamily,f=e.showTicks,d=e.flexTicks,p=e.ticks,h=e.tickValues,b=e.tickStroke,g=e.tickStrokeOpacity,m=e.tickInterval,w=void 0;if((0,j.isDefined)(h))w=h;else if((0,j.isDefined)(m)){var _=t.domain(),k=v(_,2),C=k[0],P=k[1];w=(0,x.range)(C,P,m)}else w=(0,j.isDefined)(t.ticks)?t.ticks(p,d):t.domain();var S=t.tickFormat?t.tickFormat(p):j.identity,E=(0,j.isNotDefined)(o)?S:function(e){return S(e)?o(e):""},T="top"===n||"left"===n?-1:1,M=Math.max(r,0)+a,A=void 0,D=void 0,N=void 0,R=void 0;if("bottom"===n||"top"===n){if(D=T<0?"0em":".71em",N=T<0?0:.71*c,R="middle",A=w.map(function(e){var n=t(e);return{value:e,x1:n,y1:0,x2:n,y2:T*r,labelX:n,labelY:T*M}}),f&&d){for(var F=A.map(function(e){return{id:e.value,value:e.value,fy:e.y2,origX:e.x1}}),I=(0,O.forceSimulation)(F).force("x",(0,O.forceX)(function(e){return e.origX}).strength(1)).force("collide",(0,O.forceCollide)(22)).stop(),W=0;W<100;++W)I.tick();var B=(0,j.zipper)().combine(function(e,t){return Math.abs(t.x-t.origX)>.01?y({},e,{x2:t.x,labelX:t.x}):e});A=B(A,F)}}else A=w.map(function(e){var n=t(e);return{value:e,x1:0,y1:n,x2:T*r,y2:n,labelX:T*M,labelY:n}}),D=".32em",N=.32*c,R=T<0?"end":"start";return{ticks:A,scale:t,tickStroke:b,tickLabelFill:i||b,tickStrokeOpacity:g,tickStrokeWidth:u,tickStrokeDasharray:s,dy:D,canvas_dy:N,textAnchor:R,fontSize:c,fontFamily:l,format:E}}function s(e,t){var n=e.orient,r=e.outerTickSize,o=e.domainClassName,a=e.fill,i=e.stroke,u=e.strokeWidth,s=e.opacity,c="top"===n||"left"===n?-1:1,l=void 0;return l="bottom"===n||"top"===n?"M"+t[0]+","+c*r+"V0H"+t[1]+"V"+c*r:"M"+c*r+","+t[0]+"H0V"+t[1]+"H"+c*r,m.default.createElement("path",{className:o,d:l,fill:a,opacity:s,stroke:i,strokeWidth:u})}function c(e,t,n){var r=t.orient,o=t.outerTickSize,a=t.stroke,i=t.strokeWidth,u=t.opacity,s="top"===r||"left"===r?-1:1,c="bottom"===r||"top"===r;e.lineWidth=i,e.strokeStyle=(0,j.hexToRGBA)(a,u),e.beginPath(),c?(e.moveTo((0,j.first)(n),s*o),e.lineTo((0,j.first)(n),0),e.lineTo((0,j.last)(n),0),e.lineTo((0,j.last)(n),s*o)):(e.moveTo(s*o,(0,j.first)(n)),e.lineTo(0,(0,j.first)(n)),e.lineTo(0,(0,j.last)(n)),e.lineTo(s*o,(0,j.last)(n))),e.stroke()}function l(e){var t=e.tickStroke,n=e.tickStrokeOpacity,r=e.tickStrokeDasharray,o=e.tickStrokeWidth,a=e.textAnchor,i=e.fontSize,u=e.fontFamily,s=e.x1,c=e.y1,l=e.x2,f=e.y2,d=e.labelX,p=e.labelY,h=e.dy;return m.default.createElement("g",{className:"tick"},m.default.createElement("line",{shapeRendering:"crispEdges",opacity:n,stroke:t,strokeWidth:o,strokeDasharray:(0,j.getStrokeDasharray)(r),x1:s,y1:c,x2:l,y2:f}),m.default.createElement("text",{dy:h,x:d,y:p,fill:t,fontSize:i,fontFamily:u,textAnchor:a},e.children))}function f(e,t){var n=u(e,t),r=n.tickStroke,o=n.tickStrokeOpacity,a=n.tickStrokeWidth,i=n.tickStrokeDasharray,s=n.textAnchor,c=n.fontSize,f=n.fontFamily,d=n.ticks,p=n.format,h=n.dy;return m.default.createElement("g",null,d.map(function(e,t){return m.default.createElement(l,{key:t,tickStroke:r,tickStrokeWidth:a,tickStrokeOpacity:o,tickStrokeDasharray:i,dy:h,x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,labelX:e.labelX,labelY:e.labelY,textAnchor:s,fontSize:c,fontFamily:f},p(e.value))}))}function d(e,t){var n=t.tickStroke,r=t.tickStrokeOpacity,o=t.tickLabelFill,a=t.textAnchor,i=t.fontSize,u=t.fontFamily,s=t.ticks;e.strokeStyle=(0,j.hexToRGBA)(n,r),e.fillStyle=n,s.forEach(function(n){p(e,n,t)}),e.font=i+"px "+u,e.fillStyle=o,e.textAlign="middle"===a?"center":a,s.forEach(function(n){h(e,n,t)})}function p(e,t,n){var r=n.tickStrokeWidth,o=n.tickStrokeDasharray;e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=r,e.setLineDash((0,j.getStrokeDasharray)(o).split(",")),e.stroke()}function h(e,t,n){var r=n.canvas_dy,o=n.format;e.beginPath(),e.fillText(o(t.value),t.labelX,t.labelY+r)}Object.defineProperty(t,"__esModule",{value:!0});var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(1),m=r(g),w=n(2),_=r(w),O=n(351),x=n(3),k=n(4),C=r(k),P=n(5),S=n(377),E=r(S),j=n(0),T=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n.saveNode=n.saveNode.bind(n),n.getMoreProps=n.getMoreProps.bind(n),n}return i(t,e),b(t,[{key:"saveNode",value:function(e){this.node=e}},{key:"getMoreProps",value:function(){return this.node.getMoreProps()}},{key:"drawOnCanvas",value:function(e,t){var n=this.props,r=n.showDomain,o=n.showTicks,a=n.transform,i=n.range,s=n.getScale;if(e.save(),e.translate(a[0],a[1]),r&&c(e,this.props,i),o){d(e,u(this.props,s(t)))}e.restore()}},{key:"renderSVG",value:function(e){var t=this.props.className,n=this.props,r=n.showDomain,o=n.showTicks,a=n.range,i=n.getScale,u=o?f(this.props,i(e)):null,c=r?s(this.props,a):null;return m.default.createElement("g",{className:t},u,c)}},{key:"render",value:function(){var e=this.props,t=e.bg,n=e.axisZoomCallback,r=e.zoomCursorClassName,o=e.zoomEnabled,a=e.getScale,i=e.inverted,u=this.props,s=u.transform,c=u.getMouseDelta,l=u.edgeClip,f=this.props,d=f.onContextMenu,p=f.onDoubleClick,h=o?m.default.createElement(E.default,{bg:t,getScale:a,getMoreProps:this.getMoreProps,getMouseDelta:c,axisZoomCallback:n,zoomCursorClassName:r,inverted:i,onContextMenu:d,onDoubleClick:p}):null;return m.default.createElement("g",{transform:"translate("+s[0]+", "+s[1]+")"},h,m.default.createElement(C.default,{ref:this.saveNode,canvasToDraw:P.getAxisCanvas,clip:!1,edgeClip:l,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,drawOn:["pan"]}))}}]),t}(g.Component);T.propTypes={innerTickSize:_.default.number,outerTickSize:_.default.number,tickFormat:_.default.func,tickPadding:_.default.number,tickSize:_.default.number,ticks:_.default.number,tickValues:_.default.array,tickInterval:_.default.number,showDomain:_.default.bool,showTicks:_.default.bool,className:_.default.string,axisZoomCallback:_.default.func,zoomEnabled:_.default.bool,inverted:_.default.bool,zoomCursorClassName:_.default.string,transform:_.default.arrayOf(_.default.number).isRequired,range:_.default.arrayOf(_.default.number).isRequired,getMouseDelta:_.default.func.isRequired,getScale:_.default.func.isRequired,bg:_.default.object.isRequired,edgeClip:_.default.bool.isRequired,onContextMenu:_.default.func,onDoubleClick:_.default.func},T.defaultProps={zoomEnabled:!1,zoomCursorClassName:"",edgeClip:!1},l.propTypes={children:_.default.string.isRequired,x1:_.default.number.isRequired,y1:_.default.number.isRequired,x2:_.default.number.isRequired,y2:_.default.number.isRequired,labelX:_.default.number.isRequired,labelY:_.default.number.isRequired,dy:_.default.string.isRequired,tickStroke:_.default.string,tickStrokeWidth:_.default.number,tickStrokeOpacity:_.default.number,tickStrokeDasharray:_.default.oneOf(j.strokeDashTypes),textAnchor:_.default.string,fontSize:_.default.number,fontFamily:_.default.string},t.default=T},function(e,t,n){"use strict";var r=n(354);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e){return e.x}function o(e){return e.y}t.b=r,t.c=o;var a=n(369),i=n(13),u=n(371),s=Math.PI*(3-Math.sqrt(5));t.a=function(e){function t(){n(),b.call("tick",c),l<f&&(v.stop(),b.call("end",c))}function n(){var t,n,r=e.length;for(l+=(p-l)*d,y.each(function(e){e(l)}),t=0;t<r;++t)n=e[t],null==n.fx?n.x+=n.vx*=h:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=h:(n.y=n.fy,n.vy=0)}function r(){for(var t,n=0,r=e.length;n<r;++n){if(t=e[n],t.index=n,isNaN(t.x)||isNaN(t.y)){var o=10*Math.sqrt(n),a=n*s;t.x=o*Math.cos(a),t.y=o*Math.sin(a)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function o(t){return t.initialize&&t.initialize(e),t}var c,l=1,f=.001,d=1-Math.pow(f,1/300),p=0,h=.6,y=Object(i.map)(),v=Object(u.a)(t),b=Object(a.a)("tick","end");return null==e&&(e=[]),r(),c={tick:n,restart:function(){return v.restart(t),c},stop:function(){return v.stop(),c},nodes:function(t){return arguments.length?(e=t,r(),y.each(o),c):e},alpha:function(e){return arguments.length?(l=+e,c):l},alphaMin:function(e){return arguments.length?(f=+e,c):f},alphaDecay:function(e){return arguments.length?(d=+e,c):+d},alphaTarget:function(e){return arguments.length?(p=+e,c):p},velocityDecay:function(e){return arguments.length?(h=1-e,c):1-h},force:function(e,t){return arguments.length>1?(null==t?y.remove(e):y.set(e,o(t)),c):y.get(e)},find:function(t,n,r){var o,a,i,u,s,c=0,l=e.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)u=e[c],o=t-u.x,a=n-u.y,(i=o*o+a*a)<r&&(s=u,r=i);return s},on:function(e,t){return arguments.length>1?(b.on(e,t),c):b.on(e)}}}},function(e,t,n){"use strict";function r(e,t){function n(e){return d(e)}var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,u.scaleLinear)();if((0,s.isNotDefined)(e))throw new Error("Use the discontinuousTimeScaleProvider to create financeDiscontinuousScale");return n.invert=function(e){var t=d.invert(e);return Math.round(1e4*t)/1e4},n.domain=function(e){return arguments.length?(d.domain(e),n):d.domain()},n.range=function(e){return arguments.length?(d.range(e),n):d.range()},n.rangeRound=function(e){return d.range(e)},n.clamp=function(e){return arguments.length?(d.clamp(e),n):d.clamp()},n.interpolate=function(e){return arguments.length?(d.interpolate(e),n):d.interpolate()},n.ticks=function(t,n){for(var r=d.ticks(t),u=(0,a.map)(),c=d.domain(),f=o(c,2),p=f[0],h=f[1],y=Math.max(Math.ceil(p),(0,s.head)(e).index)+Math.abs((0,s.head)(e).index),v=Math.min(Math.floor(h),(0,s.last)(e).index)+Math.abs((0,s.head)(e).index),b=Math.ceil((v-y)/(h-p)*r.length),g=l;g>=0;g--){for(var m=u.get(g),w=(0,s.isNotDefined)(m)?[]:m.slice(),_=y;_<=v;_++)e[_].level===g&&w.push(e[_]);u.set(g,w)}for(var O=[],x=l;x>=0&&!(u.get(x).length+O.length>1.5*b);x--)O=O.concat(u.get(x).map(function(e){return e.index}));var k=O.sort(i.ascending);if(!n&&v-y>k.length){for(var C=(0,a.set)(k),P=Math.abs((0,s.head)(e).index),S=Math.ceil(1.5*(r.length>0?((0,s.last)(r)-(0,s.head)(r))/r.length/4:1)),E=0;E<k.length-1;E++)for(var j=E+1;j<k.length;j++)k[j]-k[E]<=S&&C.remove(e[k[E]+P].level>=e[k[j]+P].level?k[j]:k[E]);return C.values().map(function(e){return parseInt(e,10)})}return k},n.ticksv1=function(n){for(var r=d.domain(),i=o(r,2),u=i[0],l=i[1],p=Math.max(Math.ceil(u),(0,s.head)(e).index)+Math.abs((0,s.head)(e).index),h=Math.min(Math.floor(l),(0,s.last)(e).index)+Math.abs((0,s.head)(e).index),y=(h-p)/(l-u)*n,v=Math.round((h-p+1)*t/y),b=f(c,v),g=c[b].level,m=d.ticks(n),w=[],_=p;_<h+1;_++)e[_].level>=g&&w.push(e[_].index);for(var O=(0,a.set)(w),x=Math.abs((0,s.head)(e).index),k=Math.ceil(1.5*(m.length>0?((0,s.last)(m)-(0,s.head)(m))/m.length/4:1)),C=0;C<w.length-1;C++)for(var P=C+1;P<w.length;P++)w[P]-w[C]<k&&O.remove(e[w[C]+x].level>=e[w[P]+x].level?w[P]:w[C]);return O.values().map(function(e){return parseInt(e,10)})},n.tickFormat=function(){return function(t){var n=Math.abs((0,s.head)(e).index),r=e[t+n];return(0,r.format)(r.date)}},n.nice=function(e){return d.nice(e),n},n.copy=function(){return r(e,t,d.copy())},n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=r;var a=n(13),i=n(3),u=n(21),s=n(0),c=[{target:5e3,level:0},{target:5e4,level:1},{target:1e5,level:2},{target:28e4,level:3},{target:55e4,level:4},{target:11e5,level:5},{target:21e5,level:6},{target:43e5,level:7},{target:59e5,level:8},{target:12e6,level:9},{target:58e6,level:10},{target:89e6,level:11},{target:11e7,level:12},{target:78e7,level:13},{target:16e8,level:14},{target:62e8,level:15},{target:1e21,level:16}],l=17,f=(0,i.bisector)(function(e){return e.target}).left},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.windowSize,i=n.sourcePath;return(0,a.slidingWindow)().windowSize(r).sourcePath(i).accumulator(function(e){return(0,o.mean)(e)})(e)}var t=i.SMA;return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},i.SMA,n),e):t},e};var o=n(3),a=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(){function e(e){var n=t,r=n.sourcePath,i=n.volumePath,u=(0,a.path)(r),s=(0,a.path)(i);return(0,a.slidingWindow)().windowSize(2).accumulator(function(e){var t=o(e,2),n=t[0],r=t[1];return(u(r)-u(n))*s(r)})(e)}var t=i.ForceIndex;return e.undefinedLength=function(){return 2},e.options=function(n){return arguments.length?(t=r({},i.ForceIndex,n),e):t},e};var a=n(0),i=n(6)},function(e,t,n){n(153),e.exports=n(158)},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(154).enable(),window.Promise=n(156)),n(157),Object.assign=n(53)},function(e,t,n){"use strict";function r(){c=!1,u._47=null,u._71=null}function o(e){function t(t){(e.allRejections||i(f[t].error,e.whitelist||s))&&(f[t].displayId=l++,e.onUnhandled?(f[t].logged=!0,e.onUnhandled(f[t].displayId,f[t].error)):(f[t].logged=!0,a(f[t].displayId,f[t].error)))}function n(t){f[t].logged&&(e.onHandled?e.onHandled(f[t].displayId,f[t].error):f[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+f[t].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+f[t].displayId+".")))}e=e||{},c&&r(),c=!0;var o=0,l=0,f={};u._47=function(e){2===e._83&&f[e._56]&&(f[e._56].logged?n(e._56):clearTimeout(f[e._56].timeout),delete f[e._56])},u._71=function(e,n){0===e._75&&(e._56=o++,f[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),i(n,s)?100:2e3),logged:!1})}}function a(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn("  "+e)})}function i(e,t){return t.some(function(t){return e instanceof t})}var u=n(86),s=[ReferenceError,TypeError,RangeError],c=!1;t.disable=r,t.enable=o},function(e,t,n){"use strict";(function(t){function n(e){i.length||(a(),u=!0),i[i.length]=e}function r(){for(;s<i.length;){var e=s;if(s+=1,i[e].call(),s>c){for(var t=0,n=i.length-s;t<n;t++)i[t]=i[t+s];i.length-=s,s=0}}i.length=0,s=0,u=!1}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var a,i=[],u=!1,s=0,c=1024,l="undefined"!==typeof t?t:self,f=l.MutationObserver||l.WebKitMutationObserver;a="function"===typeof f?function(e){var t=1,n=new f(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):o(r),n.requestFlush=a,n.makeRequestCallFromTimer=o}).call(t,n(87))},function(e,t,n){"use strict";function r(e){var t=new o(o._44);return t._83=1,t._18=e,t}var o=n(86);e.exports=o;var a=r(!0),i=r(!1),u=r(null),s=r(void 0),c=r(0),l=r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return u;if(void 0===e)return s;if(!0===e)return a;if(!1===e)return i;if(0===e)return c;if(""===e)return l;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return r(e)},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(i,u){if(u&&("object"===typeof u||"function"===typeof u)){if(u instanceof o&&u.then===o.prototype.then){for(;3===u._83;)u=u._18;return 1===u._83?r(i,u._18):(2===u._83&&n(u._18),void u.then(function(e){r(i,e)},n))}var s=u.then;if("function"===typeof s){return void new o(s.bind(u)).then(function(e){r(i,e)},n)}}t[i]=u,0===--a&&e(t)}if(0===t.length)return e([]);for(var a=t.length,i=0;i<t.length;i++)r(i,t[i])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return b.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function a(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function i(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function u(e){var t=new FileReader,n=i(t);return t.readAsArrayBuffer(e),n}function s(e){var t=new FileReader,n=i(t);return t.readAsText(e),n}function c(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(b.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(b.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(b.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(b.arrayBuffer&&b.blob&&m(e))this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!b.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=l(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):b.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},b.blob&&(this.blob=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?a(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return s(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},b.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e){var t=e.toUpperCase();return _.indexOf(t)>-1?t:e}function p(e,t){t=t||{};var n=t.body;if(e instanceof p){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function y(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var b={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(b.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},b.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];v.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=p,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,r){var o=new p(e,t),a=new XMLHttpRequest;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:y(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;n(new v(t,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&b.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),u=n.n(i),s=n(55),c=(n.n(s),n(169)),l=n(438),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(e){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return a(t,e),f(t,[{key:"componentDidMount",value:function(){var e=this,t={Candlestick:[!0,{stroke:["#6BA583","#DB0000"],wick:["#6BA583","#DB0000"],fill:["#6BA583","#DB0000"]}],"Heikin Ashi":[!1],Kagi:[!1],Line:[!1],Area:[!1]},n={sma:[!0,[10,20,30]],ema:[!1,[10,20,30]],smaVolume:[!0,[10]],macd:[!0,{fast:12,slow:26,signal:9},{macd:"#FF0000",signal:"#00F300"},{divergence:"#CC0000"}],bb:[!1,{top:"#964B00",middle:"#000000",bottom:"#964B00"},"#4682B4"]};Object(l.a)().then(function(r){e.setState({data:r,typeSettings:t,indicatorSettings:n})})}},{key:"handleTypeChange",value:function(e){var t=JSON.parse(JSON.stringify(this.state.typeSettings));Object.keys(t).forEach(function(e){t[e][0]=!1}),t[e.target.value][0]=!0,this.setState({typeSettings:t})}},{key:"handleIndicatorChange",value:function(e){var t=JSON.parse(JSON.stringify(this.state.indicatorSettings));switch(e.target.value){case"SMA":t.sma[0]=!0,t.ema[0]=!1;break;case"EMA":t.sma[0]=!1,t.ema[0]=!0;break;case"MACD":t.macd[0]=!0;break;case"BOLL":t.bb[0]=!0}this.setState({indicatorSettings:t})}},{key:"render",value:function(){return null==this.state?u.a.createElement("div",null,"Loading..."):u.a.createElement("div",null,u.a.createElement(c.a,{typeSettings:this.state.typeSettings,indicatorSettings:this.state.indicatorSettings,data:this.state.data}))}}]),t}(u.a.Component);Object(s.render)(u.a.createElement(d,null),document.getElementById("price_history"))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||w}function a(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||w}function i(){}function u(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||w}function s(e,t,n,r,o,a,i){return{$$typeof:P,type:e,key:t,ref:n,props:i,_owner:a}}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function l(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function d(e,t,n,o){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===j)return n(o,e,""===t?"."+p(e,0):t),1;var i=0;if(t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){a=e[u];var s=t+p(a,u);i+=d(a,s,n,o)}else if("function"===typeof(s=E&&e[E]||e["@@iterator"]))for(e=s.call(e),u=0;!(a=e.next()).done;)a=a.value,s=t+p(a,u++),i+=d(a,s,n,o);else"object"===a&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return i}function p(e,t){return"object"===typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function h(e,t){e.func.call(e.context,t,e.count++)}function y(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,m.thatReturnsArgument):null!=e&&(s.isValidElement(e)&&(e=s.cloneAndReplaceKey(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+n)),r.push(e))}function v(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(T,"$&/")+"/"),t=l(t,a,r,o),null==e||d(e,"",y,t),f(t)}var b=n(53),g=n(88);n(54);var m=n(41),w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=o.prototype;var _=a.prototype=new i;_.constructor=a,b(_,o.prototype),_.isPureReactComponent=!0;var O=u.prototype=new i;O.constructor=u,b(O,o.prototype),O.unstable_isAsyncReactComponent=!0,O.render=function(){return this.props.children};var x={Component:o,PureComponent:a,AsyncComponent:u},k={current:null},C=Object.prototype.hasOwnProperty,P="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,S={key:!0,ref:!0,__self:!0,__source:!0};s.createElement=function(e,t,n){var r,o={},a=null,i=null,u=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)C.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var f=Array(l),d=0;d<l;d++)f[d]=arguments[d+2];o.children=f}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return s(e,a,i,u,c,k.current,o)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){return s(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},s.cloneElement=function(e,t,n){var r=b({},e.props),o=e.key,a=e.ref,i=e._self,u=e._source,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(f in t)C.call(t,f)&&!S.hasOwnProperty(f)&&(r[f]=void 0===t[f]&&void 0!==l?l[f]:t[f])}var f=arguments.length-2;if(1===f)r.children=n;else if(1<f){l=Array(f);for(var d=0;d<f;d++)l[d]=arguments[d+2];r.children=l}return s(e.type,o,a,i,u,c,r)},s.isValidElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===P};var E="function"===typeof Symbol&&Symbol.iterator,j="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,T=/\/+/g,M=[],A={forEach:function(e,t,n){if(null==e)return e;t=l(null,null,t,n),null==e||d(e,"",h,t),f(t)},map:function(e,t,n){if(null==e)return e;var r=[];return v(e,r,null,t,n),r},count:function(e){return null==e?0:d(e,"",m.thatReturnsNull,null)},toArray:function(e){var t=[];return v(e,t,null,m.thatReturnsArgument),t}};e.exports={Children:{map:A.map,forEach:A.forEach,count:A.count,toArray:A.toArray,only:function(e){return s.isValidElement(e)||r("143"),e}},Component:x.Component,PureComponent:x.PureComponent,unstable_AsyncComponent:x.AsyncComponent,createElement:s.createElement,cloneElement:s.cloneElement,isValidElement:s.isValidElement,createFactory:s.createFactory,version:"16.0.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:k,assign:b}}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function a(){if(Et)for(var e in jt){var t=jt[e],n=Et.indexOf(e);if(-1<n||r("96",e),!Tt.plugins[n]){t.extractEvents||r("97",e),Tt.plugins[n]=t,n=t.eventTypes;for(var o in n){var a=void 0,u=n[o],s=t,c=o;Tt.eventNameDispatchConfigs.hasOwnProperty(c)&&r("99",c),Tt.eventNameDispatchConfigs[c]=u;var l=u.phasedRegistrationNames;if(l){for(a in l)l.hasOwnProperty(a)&&i(l[a],s,c);a=!0}else u.registrationName?(i(u.registrationName,s,c),a=!0):a=!1;a||r("98",o,e)}}}}function i(e,t,n){Tt.registrationNameModules[e]&&r("100",e),Tt.registrationNameModules[e]=t,Tt.registrationNameDependencies[e]=t.eventTypes[n].dependencies}function u(e,t){return(e&t)===t}function s(e){for(var t;t=e._renderedComponent;)e=t;return e}function c(e,t){e=s(e),e._hostNode=t,t[Vt]=e}function l(e,t){if(!(e._flags&Lt.hasCachedChildNodes)){var n=e._renderedChildren;t=t.firstChild;var o;e:for(o in n)if(n.hasOwnProperty(o)){var a=n[o],i=s(a)._domID;if(0!==i){for(;null!==t;t=t.nextSibling){var u=t,l=i;if(u.nodeType===qt&&u.getAttribute(Ht)===""+l||u.nodeType===zt&&u.nodeValue===" react-text: "+l+" "||u.nodeType===zt&&u.nodeValue===" react-empty: "+l+" "){c(a,t);continue e}}r("32",i)}}e._flags|=Lt.hasCachedChildNodes}}function f(e){if(e[Vt])return e[Vt];for(var t=[];!e[Vt];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=e[Vt];if(n.tag===Wt||n.tag===Bt)return n;for(;e&&(n=e[Vt]);e=t.pop()){var r=n;t.length&&l(n,e)}return r}function d(e){if("function"===typeof e.getName)return e.getName();if("number"===typeof e.tag){if("string"===typeof(e=e.type))return e;if("function"===typeof e)return e.displayName||e.name}return null}function p(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if((t.effectTag&nn)!==tn)return 1;for(;t.return;)if(t=t.return,(t.effectTag&nn)!==tn)return 1}return t.tag===$t?2:3}function h(e){2!==p(e)&&r("188")}function y(e){var t=e.alternate;if(!t)return t=p(e),3===t&&r("188"),1===t?null:e;for(var n=e,o=t;;){var a=n.return,i=a?a.alternate:null;if(!a||!i)break;if(a.child===i.child){for(var u=a.child;u;){if(u===n)return h(a),e;if(u===o)return h(a),t;u=u.sibling}r("188")}if(n.return!==o.return)n=a,o=i;else{u=!1;for(var s=a.child;s;){if(s===n){u=!0,n=a,o=i;break}if(s===o){u=!0,o=a,n=i;break}s=s.sibling}if(!u){for(s=i.child;s;){if(s===n){u=!0,n=i,o=a;break}if(s===o){u=!0,o=i,n=a;break}s=s.sibling}u||r("189")}}n.alternate!==o&&r("190")}return n.tag!==$t&&r("188"),n.stateNode.current===n?e:t}function v(e,t,n,r,o,a,i,u,s){on._hasCaughtError=!1,on._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){on._caughtError=e,on._hasCaughtError=!0}}function b(){if(on._hasRethrowError){var e=on._rethrowError;throw on._rethrowError=null,on._hasRethrowError=!1,e}}function g(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=un.getNodeFromInstance(r),an.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function m(e){if(e=sn.getInstanceFromNode(e))if("number"===typeof e.tag){cn&&"function"===typeof cn.restoreControlledState||r("194");var t=sn.getFiberCurrentPropsFromNode(e.stateNode);cn.restoreControlledState(e.stateNode,e.type,t)}else"function"!==typeof e.restoreControlledState&&r("195"),e.restoreControlledState()}function w(e,t,n,r,o,a){return e(t,n,r,o,a)}function _(e,t){return e(t)}function O(e,t){return _(e,t)}function x(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===yn?e.parentNode:e}function k(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n=t;if("number"===typeof n.tag){for(;n.return;)n=n.return;n=n.tag!==vn?null:n.stateNode.containerInfo}else{for(;n._hostParent;)n=n._hostParent;n=Gt.getNodeFromInstance(n).parentNode}if(!n)break;e.ancestors.push(t),t=Gt.getClosestInstanceFromNode(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],gn._handleTopLevel(e.topLevelType,t,e.nativeEvent,x(e.nativeEvent))}function C(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function P(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function S(e,t){e&&(sn.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))}function E(e){return S(e,!0)}function j(e){return S(e,!1)}function T(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||"button"!==t&&"input"!==t&&"select"!==t&&"textarea"!==t);default:return!1}}function M(e,t){if(!vt.canUseDOM||t&&!("addEventListener"in document))return!1;t="on"+e;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n="function"===typeof n[t]),!n&&Pt&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function A(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function D(e){if(xn[e])return xn[e];if(!On[e])return e;var t,n=On[e];for(t in n)if(n.hasOwnProperty(t)&&t in kn)return xn[e]=n[t];return""}function N(e){return Object.prototype.hasOwnProperty.call(e,En)||(e[En]=Sn++,Pn[e[En]]={}),Pn[e[En]]}function R(e){return!!qn.hasOwnProperty(e)||!Bn.hasOwnProperty(e)&&(Wn.test(e)?qn[e]=!0:(Bn[e]=!0,!1))}function F(){return null}function I(e){var t="";return yt.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function W(e,t,n){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r)}else{for(n=""+n,t=null,r=0;r<e.length;r++){if(e[r].value===n)return void(e[r].selected=!0);null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function B(e,t){t&&($n[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!==typeof t.style&&r("62",""))}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"===typeof n.get&&"function"===typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function H(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function L(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===rr)return void(n.nodeValue=t)}e.textContent=t}function U(e,t){ur(t,e.nodeType===ar||e.nodeType===ir?e:e.ownerDocument)}function V(e,t){return e!==Ar&&e!==Mr||t!==Ar&&t!==Mr?e===Tr&&t!==Tr?-255:e!==Tr&&t===Tr?255:e-t:0}function Y(){return{first:null,last:null,hasForceUpdate:!1,callbackList:null}}function G(e,t,n,r){null!==n?n.next=t:(t.next=e.first,e.first=t),null!==r?t.next=r:e.last=t}function X(e,t){t=t.priorityLevel;var n=null;if(null!==e.last&&0>=V(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=V(e.priorityLevel,t);)n=e,e=e.next;return n}function Z(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=Y()),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=Y()):e=null,Rr=r,Fr=e!==r?e:null;var o=Rr;n=Fr;var a=X(o,t),i=null!==a?a.next:o.first;return null===n?(G(o,t,a,i),null):(r=X(n,t),e=null!==r?r.next:n.first,G(o,t,a,i),i===e&&null!==i||a===r&&null!==a?(null===r&&(n.first=t),null===e&&(n.last=null),null):(t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},G(n,t,r,e),t))}function K(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function Q(e,t,n){e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function $(e){return e.tag===Hr&&null!=e.type.childContextTypes}function J(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var a in n)a in o||r("108",d(e)||"Unknown",a);return bt({},t,n)}function ee(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=co,this.lastEffect=this.firstEffect=this.nextEffect=null,this.pendingWorkPriority=uo,this.alternate=null}function te(e,t,n){var o=void 0;return"function"===typeof e?(o=e.prototype&&e.prototype.isReactComponent?new ee(Jr,t,n):new ee($r,t,n),o.type=e):"string"===typeof e?(o=new ee(to,t,n),o.type=e):"object"===typeof e&&null!==e&&"number"===typeof e.tag?o=e:r("130",null==e?e:typeof e,""),o}function ne(e){return null===e||"undefined"===typeof e?null:(e=zo&&e[zo]||e["@@iterator"],"function"===typeof e?e:null)}function re(e,t){var n=t.ref;if(null!==n&&"function"!==typeof n){if(t._owner){t=t._owner;var o=void 0;t&&("number"===typeof t.tag?(t.tag!==Ao&&r("110"),o=t.stateNode):o=t.getPublicInstance()),o||r("147",n);var a=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===a?e.ref:(e=function(e){var t=o.refs===wt?o.refs={}:o.refs;null===e?delete t[a]:t[a]=e},e._stringRef=a,e)}"string"!==typeof n&&r("148"),t._owner||r("149",n)}return n}function oe(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ae(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=qo}}function o(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(t,n){return e?(t=xo(t,n),t.index=0,t.sibling=null,t):(t.pendingWorkPriority=n,t.effectTag=Wo,t.index=0,t.sibling=null,t)}function u(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index,r<n?(e.effectTag=Bo,n):r):(e.effectTag=Bo,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=Bo),e}function c(e,t,n,r){return null===t||t.tag!==Do?(n=Po(n,e.internalContextTag,r),n.return=e,n):(t=i(t,r),t.pendingProps=n,t.return=e,t)}function l(e,t,n,r){return null===t||t.type!==n.type?(r=ko(n,e.internalContextTag,r),r.ref=re(t,n),r.return=e,r):(r=i(t,r),r.ref=re(t,n),r.pendingProps=n.props,r.return=e,r)}function f(e,t,n,r){return null===t||t.tag!==Ro?(n=So(n,e.internalContextTag,r),n.return=e,n):(t=i(t,r),t.pendingProps=n,t.return=e,t)}function d(e,t,n,r){return null===t||t.tag!==Fo?(t=Eo(n,e.internalContextTag,r),t.type=n.value,t.return=e,t):(t=i(t,r),t.type=n.value,t.return=e,t)}function p(e,t,n,r){return null===t||t.tag!==No||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(n=jo(n,e.internalContextTag,r),n.return=e,n):(t=i(t,r),t.pendingProps=n.children||[],t.return=e,t)}function h(e,t,n,r){return null===t||t.tag!==Io?(n=Co(n,e.internalContextTag,r),n.return=e,n):(t=i(t,r),t.pendingProps=n,t.return=e,t)}function y(e,t,n){if("string"===typeof t||"number"===typeof t)return t=Po(""+t,e.internalContextTag,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case Ho:return n=ko(t,e.internalContextTag,n),n.ref=re(null,t),n.return=e,n;case wo:return t=So(t,e.internalContextTag,n),t.return=e,t;case _o:return n=Eo(t,e.internalContextTag,n),n.type=t.value,n.return=e,n;case Oo:return t=jo(t,e.internalContextTag,n),t.return=e,t}if(To(t)||ne(t))return t=Co(t,e.internalContextTag,n),t.return=e,t;oe(e,t)}return null}function v(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case Ho:return n.key===o?l(e,t,n,r):null;case wo:return n.key===o?f(e,t,n,r):null;case _o:return null===o?d(e,t,n,r):null;case Oo:return n.key===o?p(e,t,n,r):null}if(To(n)||ne(n))return null!==o?null:h(e,t,n,r);oe(e,n)}return null}function b(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,c(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case Ho:return e=e.get(null===r.key?n:r.key)||null,l(t,e,r,o);case wo:return e=e.get(null===r.key?n:r.key)||null,f(t,e,r,o);case _o:return e=e.get(n)||null,d(t,e,r,o);case Oo:return e=e.get(null===r.key?n:r.key)||null,p(t,e,r,o)}if(To(r)||ne(r))return e=e.get(n)||null,h(t,e,r,o);oe(t,r)}return null}function g(e,r,i,s){for(var c=null,l=null,f=r,d=r=0,p=null;null!==f&&d<i.length;d++){f.index>d?(p=f,f=null):p=f.sibling;var h=v(e,f,i[d],s);if(null===h){null===f&&(f=p);break}t&&f&&null===h.alternate&&n(e,f),r=u(h,r,d),null===l?c=h:l.sibling=h,l=h,f=p}if(d===i.length)return o(e,f),c;if(null===f){for(;d<i.length;d++)(f=y(e,i[d],s))&&(r=u(f,r,d),null===l?c=f:l.sibling=f,l=f);return c}for(f=a(e,f);d<i.length;d++)(p=b(f,e,d,i[d],s))&&(t&&null!==p.alternate&&f.delete(null===p.key?d:p.key),r=u(p,r,d),null===l?c=p:l.sibling=p,l=p);return t&&f.forEach(function(t){return n(e,t)}),c}function m(e,i,s,c){var l=ne(s);"function"!==typeof l&&r("150"),null==(s=l.call(s))&&r("151");for(var f=l=null,d=i,p=i=0,h=null,g=s.next();null!==d&&!g.done;p++,g=s.next()){d.index>p?(h=d,d=null):h=d.sibling;var m=v(e,d,g.value,c);if(null===m){d||(d=h);break}t&&d&&null===m.alternate&&n(e,d),i=u(m,i,p),null===f?l=m:f.sibling=m,f=m,d=h}if(g.done)return o(e,d),l;if(null===d){for(;!g.done;p++,g=s.next())null!==(g=y(e,g.value,c))&&(i=u(g,i,p),null===f?l=g:f.sibling=g,f=g);return l}for(d=a(e,d);!g.done;p++,g=s.next())null!==(g=b(d,e,p,g.value,c))&&(t&&null!==g.alternate&&d.delete(null===g.key?p:g.key),i=u(g,i,p),null===f?l=g:f.sibling=g,f=g);return t&&d.forEach(function(t){return n(e,t)}),l}return function(e,t,a,u){var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case Ho:e:{var l=a.key;for(c=t;null!==c;){if(c.key===l){if(c.type===a.type){o(e,c.sibling),t=i(c,u),t.ref=re(c,a),t.pendingProps=a.props,t.return=e,e=t;break e}o(e,c);break}n(e,c),c=c.sibling}u=ko(a,e.internalContextTag,u),u.ref=re(t,a),u.return=e,e=u}return s(e);case wo:e:{for(c=a.key;null!==t;){if(t.key===c){if(t.tag===Ro){o(e,t.sibling),t=i(t,u),t.pendingProps=a,t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}a=So(a,e.internalContextTag,u),a.return=e,e=a}return s(e);case _o:e:{if(null!==t){if(t.tag===Fo){o(e,t.sibling),t=i(t,u),t.type=a.value,t.return=e,e=t;break e}o(e,t)}t=Eo(a,e.internalContextTag,u),t.type=a.value,t.return=e,e=t}return s(e);case Oo:e:{for(c=a.key;null!==t;){if(t.key===c){if(t.tag===No&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){o(e,t.sibling),t=i(t,u),t.pendingProps=a.children||[],t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}a=jo(a,e.internalContextTag,u),a.return=e,e=a}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==t&&t.tag===Do?(o(e,t.sibling),t=i(t,u),t.pendingProps=a,t.return=e,e=t):(o(e,t),a=Po(a,e.internalContextTag,u),a.return=e,e=a),s(e);if(To(a))return g(e,t,a,u);if(ne(a))return m(e,t,a,u);if(c&&oe(e,a),"undefined"===typeof a)switch(e.tag){case Ao:case Mo:a=e.type,r("152",a.displayName||a.name||"Component")}return o(e,t)}}function ie(e,t,n,o){function a(e,t){t.updater=i,e.stateNode=t,Xt.set(t,e)}var i={isMounted:oa,enqueueSetState:function(n,r,o){n=Xt.get(n);var a=t(n,!1);Jo(n,r,void 0===o?null:o,a),e(n,a)},enqueueReplaceState:function(n,r,o){n=Xt.get(n);var a=t(n,!1);ea(n,r,void 0===o?null:o,a),e(n,a)},enqueueForceUpdate:function(n,r){n=Xt.get(n);var o=t(n,!1);ta(n,void 0===r?null:r,o),e(n,o)}};return{adoptClassInstance:a,constructClassInstance:function(e,t){var n=e.type,r=Qo(e),o=$o(e),i=o?Ko(e,r):wt;return t=new n(t,i),a(e,t),o&&Zo(e,r,i),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,a=o.state||null,u=e.pendingProps;u||r("158");var s=Qo(e);o.props=u,o.state=a,o.refs=wt,o.context=Ko(e,s),Sr.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=Xo),"function"===typeof o.componentWillMount&&(s=o.state,o.componentWillMount(),s!==o.state&&i.enqueueReplaceState(o,o.state,null),null!==(s=e.updateQueue)&&(o.state=na(n,e,s,o,a,u,t))),"function"===typeof o.componentDidMount&&(e.effectTag|=Go)},updateClassInstance:function(e,t,a){var u=t.stateNode;u.props=t.memoizedProps,u.state=t.memoizedState;var s=t.memoizedProps,c=t.pendingProps;c||null==(c=s)&&r("159");var l=u.context,f=Qo(t);if(f=Ko(t,f),"function"!==typeof u.componentWillReceiveProps||s===c&&l===f||(l=u.state,u.componentWillReceiveProps(c,f),u.state!==l&&i.enqueueReplaceState(u,u.state,null)),l=t.memoizedState,a=null!==t.updateQueue?na(e,t,t.updateQueue,u,l,c,a):l,!(s!==c||l!==a||ra()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!==typeof u.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=Go),!1;var d=c;if(null===s||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)d=!0;else{var p=t.stateNode,h=t.type;d="function"===typeof p.shouldComponentUpdate?p.shouldComponentUpdate(d,a,f):!h.prototype||!h.prototype.isPureReactComponent||(!_t(s,d)||!_t(l,a))}return d?("function"===typeof u.componentWillUpdate&&u.componentWillUpdate(c,a,f),"function"===typeof u.componentDidUpdate&&(t.effectTag|=Go)):("function"!==typeof u.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=Go),n(t,c),o(t,a)),u.props=c,u.state=a,u.context=f,d}}}function ue(e,t,n,o,a){function i(e,t,n){u(e,t,n,t.pendingWorkPriority)}function u(e,t,n,r){t.child=null===e?aa(t,t.child,n,r):e.child===t.child?ia(t,t.child,n,r):ua(t,t.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=Da)}function c(e,t,n,r){if(s(e,t),!n)return r&&ya(t,!1),f(e,t);n=t.stateNode,Na.current=t;var o=n.render();return t.effectTag|=ja,i(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ya(t,!0),t.child}function l(e){var t=e.stateNode;t.pendingContext?ha(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ha(e,t.context,!1),b(e,t.containerInfo)}function f(e,t){return sa(e,t),t.child}function d(e,t){switch(t.tag){case ma:l(t);break;case ga:pa(t);break;case Oa:b(t,t.stateNode.containerInfo)}return null}var p=e.shouldSetTextContent,h=e.useSyncScheduling,y=e.shouldDeprioritizeSubtree,v=t.pushHostContext,b=t.pushHostContainer,g=n.enterHydrationState,m=n.resetHydrationState,w=n.tryToClaimNextHydratableInstance;e=ie(o,a,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var _=e.adoptClassInstance,O=e.constructClassInstance,x=e.mountClassInstance,k=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===Sa||t.pendingWorkPriority>n)return d(e,t);switch(t.tag){case va:null!==e&&r("155");var o=t.type,a=t.pendingProps,u=fa(t);return u=la(t,u),o=o(a,u),t.effectTag|=ja,"object"===typeof o&&null!==o&&"function"===typeof o.render?(t.tag=ga,a=pa(t),_(t,o),x(t,n),t=c(e,t,!0,a)):(t.tag=ba,i(e,t,o),t.memoizedProps=a,t=t.child),t;case ba:e:{if(a=t.type,n=t.pendingProps,o=t.memoizedProps,da())null===n&&(n=o);else if(null===n||o===n){t=f(e,t);break e}o=fa(t),o=la(t,o),a=a(n,o),t.effectTag|=ja,i(e,t,a),t.memoizedProps=n,t=t.child}return t;case ga:return a=pa(t),o=void 0,null===e?t.stateNode?r("153"):(O(t,t.pendingProps),x(t,n),o=!0):o=k(e,t,n),c(e,t,o,a);case ma:return l(t),o=t.updateQueue,null!==o?(a=t.memoizedState,o=ca(e,t,o,null,a,null,n),a===o?(m(),t=f(e,t)):(a=o.element,null!==e&&null!==e.child||!g(t)?(m(),i(e,t,a)):(t.effectTag|=Ta,t.child=aa(t,t.child,a,n)),t.memoizedState=o,t=t.child)):(m(),t=f(e,t)),t;case wa:v(t),null===e&&w(t),a=t.type;var C=t.memoizedProps;return o=t.pendingProps,null===o&&null===(o=C)&&r("154"),u=null!==e?e.memoizedProps:null,da()||null!==o&&C!==o?(C=o.children,p(a,o)?C=null:u&&p(a,u)&&(t.effectTag|=Ma),s(e,t),n!==Ea&&!h&&y(a,o)?(t.pendingWorkPriority=Ea,t=null):(i(e,t,C),t.memoizedProps=o,t=t.child)):t=f(e,t),t;case _a:return null===e&&w(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case ka:t.tag=xa;case xa:return n=t.pendingProps,da()?null===n&&null===(n=e&&e.memoizedProps)&&r("154"):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),a=n.children,o=t.pendingWorkPriority,t.stateNode=null===e?aa(t,t.stateNode,a,o):e.child===t.child?ia(t,t.stateNode,a,o):ua(t,t.stateNode,a,o),t.memoizedProps=n,t.stateNode;case Ca:return null;case Oa:e:{if(b(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,a=t.pendingProps,da())null===a&&null==(a=e&&e.memoizedProps)&&r("154");else if(null===a||t.memoizedProps===a){t=f(e,t);break e}null===e?t.child=ua(t,t.child,a,n):i(e,t,a),t.memoizedProps=a,t=t.child}return t;case Pa:e:{if(n=t.pendingProps,da())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=f(e,t);break e}i(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case ga:pa(t);break;case ma:l(t);break;default:r("157")}return t.effectTag|=Aa,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===Sa||t.pendingWorkPriority>n?d(e,t):(t.firstEffect=null,t.lastEffect=null,u(e,t,null,n),t.tag===ga&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function se(e,t,n){var o=e.createInstance,a=e.createTextInstance,i=e.appendInitialChild,u=e.finalizeInitialChildren,s=e.prepareUpdate,c=t.getRootHostContainer,l=t.popHostContext,f=t.getHostContext,d=t.popHostContainer,p=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,y=n.popHydrationState;return{completeWork:function(e,t,n){var v=t.pendingProps;switch(null===v?v=t.memoizedProps:t.pendingWorkPriority===$a&&n!==$a||(t.pendingProps=null),t.tag){case Ba:return null;case qa:return Fa(t),null;case za:return d(t),Ia(t),v=t.stateNode,v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),null!==e&&null!==e.child||(y(t),t.effectTag&=~Za),null;case Ha:l(t),n=c();var b=t.type;if(null!==e&&null!=t.stateNode){var g=e.memoizedProps,m=t.stateNode,w=f();v=s(m,b,g,v,n,w),(t.updateQueue=v)&&(t.effectTag|=Qa),e.ref!==t.ref&&(t.effectTag|=Ka)}else{if(!v)return null===t.stateNode&&r("166"),null;if(e=f(),y(t))p(t,n,e)&&(t.effectTag|=Qa);else{e=o(b,v,n,e,t);e:for(g=t.child;null!==g;){if(g.tag===Ha||g.tag===La)i(e,g.stateNode);else if(g.tag!==Ua&&null!==g.child){g=g.child;continue}if(g===t)break e;for(;null===g.sibling;){if(null===g.return||g.return===t)break e;g=g.return}g=g.sibling}u(e,b,v,n)&&(t.effectTag|=Qa),t.stateNode=e}null!==t.ref&&(t.effectTag|=Ka)}return null;case La:if(e&&null!=t.stateNode)e.memoizedProps!==v&&(t.effectTag|=Qa);else{if("string"!==typeof v)return null===t.stateNode&&r("166"),null;e=c(),n=f(),y(t)?h(t)&&(t.effectTag|=Qa):t.stateNode=a(v,e,n,t)}return null;case Va:(v=t.memoizedProps)||r("165"),t.tag=Ya,n=[];e:for((b=t.stateNode)&&(b.return=t);null!==b;){if(b.tag===Ha||b.tag===La||b.tag===Ua)r("164");else if(b.tag===Ga)n.push(b.type);else if(null!==b.child){b.child.return=b,b=b.child;continue}for(;null===b.sibling;){if(null===b.return||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}return b=v.handler,v=b(v.props,n),t.child=Ra(t,null!==e?e.child:null,v,t.pendingWorkPriority),t.child;case Ya:return t.tag=Va,null;case Ga:case Xa:return null;case Ua:return t.effectTag|=Qa,d(t),null;case Wa:r("167");default:r("156")}}}}function ce(e){return function(t){try{return e(t)}catch(e){}}}function le(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){return e.tag===oi||e.tag===ri||e.tag===ii}function a(e){for(var t=e;;)if(u(t),null!==t.child&&t.tag!==ii)t.child.return=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function i(e){for(var t=e,n=!1,o=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case oi:o=n.stateNode,i=!1;break e;case ri:case ii:o=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===oi||t.tag===ai)a(t),i?b(o,t.stateNode):v(o,t.stateNode);else if(t.tag===ii?o=t.stateNode.containerInfo:u(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,t.tag===ii&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function u(e){switch("function"===typeof ci&&ci(e),e.tag){case ni:n(e);var r=e.stateNode;if("function"===typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case oi:n(e);break;case ui:a(e.stateNode);break;case ii:i(e)}}var s=e.commitMount,c=e.commitUpdate,l=e.resetTextContent,f=e.commitTextUpdate,d=e.appendChild,p=e.appendChildToContainer,h=e.insertBefore,y=e.insertInContainerBefore,v=e.removeChild,b=e.removeChildFromContainer,g=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(o(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var a=t=void 0;switch(n.tag){case oi:t=n.stateNode,a=!1;break;case ri:case ii:t=n.stateNode.containerInfo,a=!0;break;default:r("161")}n.effectTag&pi&&(l(t),n.effectTag&=~pi);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==oi&&n.tag!==ai;){if(n.effectTag&li)continue t;if(null===n.child||n.tag===ii)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&li)){n=n.stateNode;break e}}for(var i=e;;){if(i.tag===oi||i.tag===ai)n?a?y(t,i.stateNode,n):h(t,i.stateNode,n):a?p(t,i.stateNode):d(t,i.stateNode);else if(i.tag!==ii&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){i(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case ni:break;case oi:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&c(n,i,a,e,o,t)}break;case ai:null===t.stateNode&&r("162"),n=t.memoizedProps,f(t.stateNode,null!==e?e.memoizedProps:n,n);break;case ri:case ii:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case ni:var n=t.stateNode;if(t.effectTag&fi)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t.effectTag&di&&null!==t.updateQueue&&si(t,t.updateQueue,n);break;case ri:e=t.updateQueue,null!==e&&si(t,e,t.child&&t.child.stateNode);break;case oi:n=t.stateNode,null===e&&t.effectTag&fi&&s(n,t.type,t.memoizedProps,t);break;case ai:case ii:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case oi:t(g(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function fe(e){function t(e){return e===bi&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,a=hi(bi),i=hi(bi),u=hi(bi);return{getHostContext:function(){return t(a.current)},getRootHostContainer:function(){return t(u.current)},popHostContainer:function(e){yi(a,e),yi(i,e),yi(u,e)},popHostContext:function(e){i.current===e&&(yi(a,e),yi(i,e))},pushHostContainer:function(e,t){vi(u,t,e),t=o(t),vi(i,e,e),vi(a,t,e)},pushHostContext:function(e){var r=t(u.current),o=t(a.current);r=n(o,e.type,r),o!==r&&(vi(i,e,e),vi(a,r,e))},resetHostContainer:function(){a.current=bi,u.current=bi}}}function de(e){function t(e,t){var n=xi();n.stateNode=t,n.return=e,n.effectTag=_i,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case gi:return i(t,e.type,e.pendingProps);case mi:return u(t,e.pendingProps);default:return!1}}function o(e){for(e=e.return;null!==e&&e.tag!==gi&&e.tag!==wi;)e=e.return;h=e}var a=e.shouldSetTextContent,i=e.canHydrateInstance,u=e.canHydrateTextInstance,s=e.getNextHydratableSibling,c=e.getFirstHydratableChild,l=e.hydrateInstance,f=e.hydrateTextInstance,d=e.didNotHydrateInstance,p=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(i&&u&&s&&c&&l&&f&&d&&p&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var h=null,y=null,v=!1;return{enterHydrationState:function(e){return y=c(e.stateNode.containerInfo),h=e,v=!0},resetHydrationState:function(){y=h=null,v=!1},tryToClaimNextHydratableInstance:function(e){if(v){var r=y;if(r){if(!n(e,r)){if(!(r=s(r))||!n(e,r))return e.effectTag|=Oi,v=!1,void(h=e);t(h,y)}e.stateNode=r,h=e,y=c(r)}else e.effectTag|=Oi,v=!1,h=e}},prepareToHydrateHostInstance:function(e,t,n){return t=l(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==h)return!1;if(!v)return o(e),v=!0,!1;var n=e.type;if(e.tag!==gi||"head"!==n&&"body"!==n&&!a(n,e.memoizedProps))for(n=y;n;)t(e,n),n=s(n);return o(e),y=h?s(e.stateNode):null,!0}}}function pe(e){function t(){for(;null!==Y&&Y.current.pendingWorkPriority===Ti;){Y.isScheduled=!1;var e=Y.nextScheduledRoot;if(Y.nextScheduledRoot=null,Y===G)return G=Y=null,L=Ti,null;Y=e}e=Y;for(var t=null,n=Ti;null!==e;)e.current.pendingWorkPriority!==Ti&&(n===Ti||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(L=n,Ci(),Qi(),O(),H=Si(t.current,n),t!==oe&&(re=0,oe=t)):(L=Ti,oe=H=null)}function n(n){ee=!0,V=null;var o=n.stateNode;if(o.current===n&&r("177"),L!==Mi&&L!==Ai||re++,Pi.current=null,n.effectTag>Ii)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var a=n.firstEffect}else a=n;else a=n.firstEffect;for(R(),U=a;null!==U;){var i=!1,u=void 0;try{for(;null!==U;){var s=U.effectTag;if(s&Hi&&e.resetTextContent(U.stateNode),s&Vi){var c=U.alternate;null!==c&&A(c)}switch(s&~(Li|Ui|Hi|Vi|Ii)){case Wi:S(U),U.effectTag&=~Wi;break;case qi:S(U),U.effectTag&=~Wi,j(U.alternate,U);break;case Bi:j(U.alternate,U);break;case zi:te=!0,E(U),te=!1}U=U.nextEffect}}catch(e){i=!0,u=e}i&&(null===U&&r("178"),f(U,u),null!==U&&(U=U.nextEffect))}for(F(),o.current=n,U=a;null!==U;){o=!1,a=void 0;try{for(;null!==U;){var l=U.effectTag;if(l&(Bi|Li)&&T(U.alternate,U),l&Vi&&M(U),l&Ui)switch(i=U,u=void 0,null!==Z&&(u=Z.get(i),Z.delete(i),null==u&&null!==i.alternate&&(i=i.alternate,u=Z.get(i),Z.delete(i))),null==u&&r("184"),i.tag){case Zi:i.stateNode.componentDidCatch(u.error,{componentStack:u.componentStack});break;case Yi:null===$&&($=u.error);break;default:r("157")}var d=U.nextEffect;U.nextEffect=null,U=d}}catch(e){o=!0,a=e}o&&(null===U&&r("178"),f(U,a),null!==U&&(U=U.nextEffect))}ee=!1,"function"===typeof ji&&ji(n.stateNode),Q&&(Q.forEach(b),Q=null),t()}function o(e){for(;;){var t=P(e.alternate,e,L),n=e.return,r=e.sibling,o=e;if(!(o.pendingWorkPriority!==Ti&&o.pendingWorkPriority>L)){for(var a=Ki(o),i=o.child;null!==i;)a=Ei(a,i.pendingWorkPriority),i=i.sibling;o.pendingWorkPriority=a}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),e.effectTag>Ii&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){V=e;break}e=n}return null}function a(e){var t=k(e.alternate,e,L);return null===t&&(t=o(e)),Pi.current=null,t}function i(e){var t=C(e.alternate,e,L);return null===t&&(t=o(e)),Pi.current=null,t}function u(e){l(Ri,e)}function s(){if(null!==Z&&0<Z.size&&L===Ai)for(;null!==H;){var e=H;if(null===(H=null!==Z&&(Z.has(e)||null!==e.alternate&&Z.has(e.alternate))?i(H):a(H))&&(null===V&&r("179"),I=Ai,n(V),I=L,null===Z||0===Z.size||L!==Ai))break}}function c(e,o){if(null!==V?(I=Ai,n(V),s()):null===H&&t(),!(L===Ti||L>e)){I=L;e:for(;;){if(L<=Ai)for(;null!==H&&!(null===(H=a(H))&&(null===V&&r("179"),I=Ai,n(V),I=L,s(),L===Ti||L>e||L>Ai)););else if(null!==o)for(;null!==H&&!B;)if(1<o.timeRemaining()){if(null===(H=a(H)))if(null===V&&r("179"),1<o.timeRemaining()){if(I=Ai,n(V),I=L,s(),L===Ti||L>e||L<Di)break}else B=!0}else B=!0;switch(L){case Mi:case Ai:if(L<=e)continue e;break e;case Di:case Ni:case Ri:if(null===o)break e;if(!B&&L<=e)continue e;break e;case Ti:break e;default:r("181")}}}}function l(e,t){W&&r("182"),W=!0;var n=I,o=!1,a=null;try{c(e,t)}catch(e){o=!0,a=e}for(;o;){if(J){$=a;break}var s=H;if(null===s)J=!0;else{var l=f(s,a);if(null===l&&r("183"),!J){try{o=l,a=e,l=t;for(var d=o;null!==s;){switch(s.tag){case Zi:ki(s);break;case Gi:_(s);break;case Yi:w(s);break;case Xi:w(s)}if(s===d||s.alternate===d)break;s=s.return}H=i(o),c(a,l)}catch(e){o=!0,a=e;continue}break}}}if(I=n,null!==t&&(X=!1),L>Ai&&!X&&(D(u),X=!0),e=$,J=B=W=!1,oe=K=Z=$=null,re=0,null!==e)throw e}function f(e,t){var n=Pi.current=null,r=!1,o=!1,a=null;if(e.tag===Yi)n=e,p(e)&&(J=!0);else for(var i=e.return;null!==i&&null===n;){if(i.tag===Zi?"function"===typeof i.stateNode.componentDidCatch&&(r=!0,a=d(i),n=i,o=!0):i.tag===Yi&&(n=i),p(i)){if(te||null!==Q&&(Q.has(i)||null!==i.alternate&&Q.has(i.alternate)))return null;n=null,o=!1}i=i.return}if(null!==n){null===K&&(K=new Set),K.add(n);var u="";i=e;do{e:switch(i.tag){case po:case ho:case yo:case vo:var s=i._debugOwner,c=i._debugSource,l=d(i),f=null;s&&(f=d(s)),s=c,l="\n    in "+(l||"Unknown")+(s?" (at "+s.fileName.replace(/^.*[\\\/]/,"")+":"+s.lineNumber+")":f?" (created by "+f+")":"");break e;default:l=""}u+=l,i=i.return}while(i);i=u,e=d(e),null===Z&&(Z=new Map),t={componentName:e,componentStack:i,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:a,willRetry:o},Z.set(n,t);try{console.error(t.error)}catch(e){console.error(e)}return ee?(null===Q&&(Q=new Set),Q.add(n)):b(n),n}return null===$&&($=t),null}function p(e){return null!==K&&(K.has(e)||null!==e.alternate&&K.has(e.alternate))}function h(e,t){return y(e,t,!1)}function y(e,t){re>ne&&(J=!0,r("185")),!W&&t<=L&&(H=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===Ti||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===Ti||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==Yi)break;var o=e.stateNode;if(t===Ti||o.isScheduled||(o.isScheduled=!0,G?G.nextScheduledRoot=o:Y=o,G=o),!W)switch(t){case Mi:z?l(Mi,null):l(Ai,null);break;case Ai:q||r("186");break;default:X||(D(u),X=!0)}}e=e.return}}function v(e,t){var n=I;return n===Ti&&(n=!N||e.internalContextTag&Fi||t?Ni:Mi),n===Mi&&(W||q)?Ai:n}function b(e){y(e,Ai,!0)}var g=fe(e),m=de(e),w=g.popHostContainer,_=g.popHostContext,O=g.resetHostContainer,x=ue(e,g,m,h,v),k=x.beginWork,C=x.beginFailedWork,P=se(e,g,m).completeWork;g=le(e,f);var S=g.commitPlacement,E=g.commitDeletion,j=g.commitWork,T=g.commitLifeCycles,M=g.commitAttachRef,A=g.commitDetachRef,D=e.scheduleDeferredCallback,N=e.useSyncScheduling,R=e.prepareForCommit,F=e.resetAfterCommit,I=Ti,W=!1,B=!1,q=!1,z=!1,H=null,L=Ti,U=null,V=null,Y=null,G=null,X=!1,Z=null,K=null,Q=null,$=null,J=!1,ee=!1,te=!1,ne=1e3,re=0,oe=null;return{scheduleUpdate:h,getPriorityContext:v,batchedUpdates:function(e,t){var n=q;q=!0;try{return e(t)}finally{q=n,W||q||l(Ai,null)}},unbatchedUpdates:function(e){var t=z,n=q;z=q,q=!1;try{return e()}finally{q=n,z=t}},flushSync:function(e){var t=q,n=I;q=!0,I=Mi;try{return e()}finally{q=t,I=n,W&&r("187"),l(Ai,null)}},deferredUpdates:function(e){var t=I;I=Ni;try{return e()}finally{I=t}}}}function he(){r("196")}function ye(e){return e?(e=Xt.get(e),"number"===typeof e.tag?he(e):e._processChildContext(e._context)):wt}function ve(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function be(e,t){var n=ve(e);e=0;for(var r;n;){if(n.nodeType===au){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ve(n)}}function ge(){return!iu&&vt.canUseDOM&&(iu="textContent"in document.documentElement?"textContent":"innerText"),iu}function me(){r("211")}function we(){r("212")}function _e(e){if(null==e)return null;if(e.nodeType===fu)return e;var t=Xt.get(e);if(t)return"number"===typeof t.tag?me(t):we(t);"function"===typeof e.render?r("188"):r("213",Object.keys(e))}function Oe(e){if(void 0!==e._hostParent)return e._hostParent;if("number"===typeof e.tag){do{e=e.return}while(e&&e.tag!==du);if(e)return e}return null}function xe(e,t){for(var n=0,r=e;r;r=Oe(r))n++;r=0;for(var o=t;o;o=Oe(o))r++;for(;0<n-r;)e=Oe(e),n--;for(;0<r-n;)t=Oe(t),r--;for(;n--;){if(e===t||e===t.alternate)return e;e=Oe(e),t=Oe(t)}return null}function ke(e,t,n){(t=hu(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function Ce(e){e&&e.dispatchConfig.phasedRegistrationNames&&pu.traverseTwoPhase(e._targetInst,ke,e)}function Pe(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?pu.getParentInstance(t):null,pu.traverseTwoPhase(t,ke,e)}}function Se(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=hu(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function Ee(e){e&&e.dispatchConfig.registrationName&&Se(e._targetInst,null,e)}function je(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?mt.thatReturnsTrue:mt.thatReturnsFalse,this.isPropagationStopped=mt.thatReturnsFalse,this}function Te(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Me(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Ae(e){e.eventPool=[],e.getPooled=Te,e.release=Me}function De(e,t,n,r){return je.call(this,e,t,n,r)}function Ne(e,t,n,r){return je.call(this,e,t,n,r)}function Re(e,t){switch(e){case"topKeyUp":return-1!==_u.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Fe(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function Ie(e,t){switch(e){case"topCompositionEnd":return Fe(t);case"topKeyPress":return 32!==t.which?null:(Tu=!0,Eu);case"topTextInput":return e=t.data,e===Eu&&Tu?null:e;default:return null}}function We(e,t){if(Mu)return"topCompositionEnd"===e||!Ou&&Re(e,t)?(e=gu.getData(),gu.reset(),Mu=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return Su?null:t.data;default:return null}}function Be(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Du[e.type]:"textarea"===t}function qe(e,t,n){return e=je.getPooled(Nu.change,e,t,n),e.type="change",dn.enqueueStateRestore(n),yu.accumulateTwoPhaseDispatches(e),e}function ze(e){_n.enqueueEvents(e),_n.processEventQueue(!1)}function He(e){var t=Gt.getNodeFromInstance(e);if(Jn.updateValueIfChanged(t))return e}function Le(e,t){if("topChange"===e)return t}function Ue(){Ru&&(Ru.detachEvent("onpropertychange",Ve),Fu=Ru=null)}function Ve(e){"value"===e.propertyName&&He(Fu)&&(e=qe(Fu,e,x(e)),hn.batchedUpdates(ze,e))}function Ye(e,t,n){"topFocus"===e?(Ue(),Ru=t,Fu=n,Ru.attachEvent("onpropertychange",Ve)):"topBlur"===e&&Ue()}function Ge(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return He(Fu)}function Xe(e,t){if("topClick"===e)return He(t)}function Ze(e,t){if("topInput"===e||"topChange"===e)return He(t)}function Ke(e,t,n,r){return je.call(this,e,t,n,r)}function Qe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Bu[e])&&!!t[e]}function $e(){return Qe}function Je(e,t,n,r){return je.call(this,e,t,n,r)}function et(e,t){if(Xu||null==Vu||Vu!==kt())return null;var n=Vu;return"selectionStart"in n&&lu.hasSelectionCapabilities(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,Gu&&_t(Gu,n)?null:(Gu=n,e=je.getPooled(Uu.select,Yu,e,t),e.type="select",e.target=Vu,yu.accumulateTwoPhaseDispatches(e),e)}function tt(e,t,n,r){return je.call(this,e,t,n,r)}function nt(e,t,n,r){return je.call(this,e,t,n,r)}function rt(e,t,n,r){return je.call(this,e,t,n,r)}function ot(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function at(e,t,n,r){return je.call(this,e,t,n,r)}function it(e,t,n,r){return je.call(this,e,t,n,r)}function ut(e,t,n,r){return je.call(this,e,t,n,r)}function st(e,t,n,r){return je.call(this,e,t,n,r)}function ct(e,t,n,r){return je.call(this,e,t,n,r)}function lt(e){return e[1].toUpperCase()}function ft(e){return!(!e||e.nodeType!==ps&&e.nodeType!==vs&&e.nodeType!==bs&&(e.nodeType!==ys||" react-mount-point-unstable "!==e.nodeValue))}function dt(e){return!(!(e=e?e.nodeType===vs?e.documentElement:e.firstChild:null)||e.nodeType!==ps||!e.hasAttribute(gs))}function pt(e,t,n,o,a){ft(n)||r("200");var i=n._reactRootContainer;if(i)Rs.updateContainer(t,i,e,a);else{if(!o&&!dt(n))for(o=void 0;o=n.lastChild;)n.removeChild(o);var u=Rs.createContainer(n);i=n._reactRootContainer=u,Rs.unbatchedUpdates(function(){Rs.updateContainer(t,u,e,a)})}return Rs.getPublicRootInstance(i)}function ht(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return ft(t)||r("200"),mo.createPortal(e,t,null,n)}var yt=n(1);n(54);var vt=n(161),bt=n(53),gt=n(162),mt=n(41),wt=n(88),_t=n(163),Ot=n(164),xt=n(167),kt=n(168);yt||r("227");var Ct,Pt,St={Namespaces:{html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},getIntrinsicNamespace:o,getChildNamespace:function(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?o(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}},Et=null,jt={},Tt={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){Et&&r("101"),Et=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];jt.hasOwnProperty(t)&&jt[t]===o||(jt[t]&&r("102",t),jt[t]=o,n=!0)}n&&a()}},Mt=Tt,At={children:!0,dangerouslySetInnerHTML:!0,autoFocus:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,style:!0},Dt={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=Dt,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},a=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var i in n){Nt.properties.hasOwnProperty(i)&&r("48",i);var s=i.toLowerCase(),c=n[i];s={attributeName:s,attributeNamespace:null,propertyName:i,mutationMethod:null,mustUseProperty:u(c,t.MUST_USE_PROPERTY),hasBooleanValue:u(c,t.HAS_BOOLEAN_VALUE),hasNumericValue:u(c,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:u(c,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:u(c,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:u(c,t.HAS_STRING_BOOLEAN_VALUE)},1>=s.hasBooleanValue+s.hasNumericValue+s.hasOverloadedBooleanValue||r("50",i),a.hasOwnProperty(i)&&(s.attributeName=a[i]),o.hasOwnProperty(i)&&(s.attributeNamespace=o[i]),e.hasOwnProperty(i)&&(s.mutationMethod=e[i]),Nt.properties[i]=s}}},Nt={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(Nt.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return Nt.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return Nt.properties.hasOwnProperty(e)?Nt.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(Nt.isReservedProp(e))return!0;var t=Nt.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:"data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e},isReservedProp:function(e){return At.hasOwnProperty(e)},injection:Dt},Rt=Nt,Ft={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},It={ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11},Wt=Ft.HostComponent,Bt=Ft.HostText,qt=It.ELEMENT_NODE,zt=It.COMMENT_NODE,Ht=Rt.ID_ATTRIBUTE_NAME,Lt={hasCachedChildNodes:1},Ut=Math.random().toString(36).slice(2),Vt="__reactInternalInstance$"+Ut,Yt="__reactEventHandlers$"+Ut,Gt={getClosestInstanceFromNode:f,getInstanceFromNode:function(e){var t=e[Vt];return t?t.tag===Wt||t.tag===Bt?t:t._hostNode===e?t:null:(t=f(e),null!=t&&t._hostNode===e?t:null)},getNodeFromInstance:function(e){if(e.tag===Wt||e.tag===Bt)return e.stateNode;if(void 0===e._hostNode&&r("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||r("34"),e=e._hostParent;for(;t.length;e=t.pop())l(e,e._hostNode);return e._hostNode},precacheChildNodes:l,precacheNode:c,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Vt],e._hostNode=null)},precacheFiberNode:function(e,t){t[Vt]=e},getFiberCurrentPropsFromNode:function(e){return e[Yt]||null},updateFiberProps:function(e,t){e[Yt]=t}},Xt={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},Zt={ReactCurrentOwner:yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},Kt={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},Qt=Ft.HostComponent,$t=Ft.HostRoot,Jt=Ft.HostPortal,en=Ft.HostText,tn=Kt.NoEffect,nn=Kt.Placement,rn={isFiberMounted:function(e){return 2===p(e)},isMounted:function(e){return!!(e=Xt.get(e))&&2===p(e)},findCurrentFiberUsingSlowPath:y,findCurrentHostFiber:function(e){if(!(e=y(e)))return null;for(var t=e;;){if(t.tag===Qt||t.tag===en)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){if(!(e=y(e)))return null;for(var t=e;;){if(t.tag===Qt||t.tag===en)return t;if(t.child&&t.tag!==Jt)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}},on={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!==typeof e.invokeGuardedCallback&&r("197"),v=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,a,i,u,s){v.apply(on,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,u,s){if(on.invokeGuardedCallback.apply(this,arguments),on.hasCaughtError()){var c=on.clearCaughtError();on._hasRethrowError||(on._hasRethrowError=!0,on._rethrowError=c)}},rethrowCaughtError:function(){return b.apply(on,arguments)},hasCaughtError:function(){return on._hasCaughtError},clearCaughtError:function(){if(on._hasCaughtError){var e=on._caughtError;return on._caughtError=null,on._hasCaughtError=!1,e}r("198")}},an=on,un={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)&&r("103"),e.currentTarget=t?un.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)g(e,t,n[o],r[o]);else n&&g(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(e){e:{var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r])){t=n[r];break e}}else if(t&&t(e,n)){t=n;break e}t=null}return e._dispatchInstances=null,e._dispatchListeners=null,t},hasDispatches:function(e){return!!e._dispatchListeners},getFiberCurrentPropsFromNode:function(e){return Ct.getFiberCurrentPropsFromNode(e)},getInstanceFromNode:function(e){return Ct.getInstanceFromNode(e)},getNodeFromInstance:function(e){return Ct.getNodeFromInstance(e)},injection:{injectComponentTree:function(e){Ct=e}}},sn=un,cn=null,ln=null,fn=null,dn={injection:{injectFiberControlledHostComponent:function(e){cn=e}},enqueueStateRestore:function(e){ln?fn?fn.push(e):fn=[e]:ln=e},restoreStateIfNeeded:function(){if(ln){var e=ln,t=fn;if(fn=ln=null,m(e),t)for(e=0;e<t.length;e++)m(t[e])}}},pn=!1,hn={batchedUpdates:function(e,t){if(pn)return w(O,e,t);pn=!0;try{return w(O,e,t)}finally{pn=!1,dn.restoreStateIfNeeded()}},injection:{injectStackBatchedUpdates:function(e){w=e},injectFiberBatchedUpdates:function(e){_=e}}},yn=It.TEXT_NODE,vn=Ft.HostRoot,bn=[],gn={_enabled:!0,_handleTopLevel:null,setHandleTopLevel:function(e){gn._handleTopLevel=e},setEnabled:function(e){gn._enabled=!!e},isEnabled:function(){return gn._enabled},trapBubbledEvent:function(e,t,n){return n?gt.listen(n,t,gn.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?gt.capture(n,t,gn.dispatchEvent.bind(null,e)):null},dispatchEvent:function(e,t){if(gn._enabled){var n=x(t);if(n=Gt.getClosestInstanceFromNode(n),null===n||"number"!==typeof n.tag||rn.isFiberMounted(n)||(n=null),bn.length){var r=bn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{hn.batchedUpdates(k,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>bn.length&&bn.push(e)}}}},mn=gn,wn=null,_n={injection:{injectEventPluginOrder:Mt.injectEventPluginOrder,injectEventPluginsByName:Mt.injectEventPluginsByName},getListener:function(e,t){if("number"===typeof e.tag){var n=e.stateNode;if(!n)return null;var o=sn.getFiberCurrentPropsFromNode(n);if(!o)return null;if(n=o[t],T(t,e.type,o))return null}else{if("string"===typeof(o=e._currentElement)||"number"===typeof o||!e._rootNodeID)return null;if(e=o.props,n=e[t],T(t,o.type,e))return null}return n&&"function"!==typeof n&&r("231",t,typeof n),n},extractEvents:function(e,t,n,r){for(var o,a=Mt.plugins,i=0;i<a.length;i++){var u=a[i];u&&(u=u.extractEvents(e,t,n,r))&&(o=C(o,u))}return o},enqueueEvents:function(e){e&&(wn=C(wn,e))},processEventQueue:function(e){var t=wn;wn=null,e?P(t,E):P(t,j),wn&&r("95"),an.rethrowCaughtError()}};vt.canUseDOM&&(Pt=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var On={animationend:A("Animation","AnimationEnd"),animationiteration:A("Animation","AnimationIteration"),animationstart:A("Animation","AnimationStart"),transitionend:A("Transition","TransitionEnd")},xn={},kn={};vt.canUseDOM&&(kn=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);var Cn={topAbort:"abort",topAnimationEnd:D("animationend")||"animationend",topAnimationIteration:D("animationiteration")||"animationiteration",topAnimationStart:D("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:D("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},Pn={},Sn=0,En="_reactListenersID"+(""+Math.random()).slice(2),jn=bt({},{handleTopLevel:function(e,t,n,r){e=_n.extractEvents(e,t,n,r),_n.enqueueEvents(e),_n.processEventQueue(!1)}},{setEnabled:function(e){mn&&mn.setEnabled(e)},isEnabled:function(){return!(!mn||!mn.isEnabled())},listenTo:function(e,t){var n=N(t);e=Mt.registrationNameDependencies[e];for(var r=0;r<e.length;r++){var o=e[r];n.hasOwnProperty(o)&&n[o]||("topWheel"===o?M("wheel")?mn.trapBubbledEvent("topWheel","wheel",t):M("mousewheel")?mn.trapBubbledEvent("topWheel","mousewheel",t):mn.trapBubbledEvent("topWheel","DOMMouseScroll",t):"topScroll"===o?mn.trapCapturedEvent("topScroll","scroll",t):"topFocus"===o||"topBlur"===o?(mn.trapCapturedEvent("topFocus","focus",t),mn.trapCapturedEvent("topBlur","blur",t),n.topBlur=!0,n.topFocus=!0):"topCancel"===o?(M("cancel",!0)&&mn.trapCapturedEvent("topCancel","cancel",t),n.topCancel=!0):"topClose"===o?(M("close",!0)&&mn.trapCapturedEvent("topClose","close",t),n.topClose=!0):Cn.hasOwnProperty(o)&&mn.trapBubbledEvent(o,Cn[o],t),n[o]=!0)}},isListeningToAllDependencies:function(e,t){t=N(t),e=Mt.registrationNameDependencies[e];for(var n=0;n<e.length;n++){var r=e[n];if(!t.hasOwnProperty(r)||!t[r])return!1}return!0},trapBubbledEvent:function(e,t,n){return mn.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return mn.trapCapturedEvent(e,t,n)}}),Tn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mn=["Webkit","ms","Moz","O"];Object.keys(Tn).forEach(function(e){Mn.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]})});var An={isUnitlessNumber:Tn,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}},Dn=An.isUnitlessNumber,Nn=!1;if(vt.canUseDOM){var Rn=document.createElement("div").style;try{Rn.font=""}catch(e){Nn=!0}}var Fn,In={createDangerousStringForStyles:function(){},setValueForStyles:function(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,a=t[n];if(o=null==a||"boolean"===typeof a||""===a?"":r||"number"!==typeof a||0===a||Dn.hasOwnProperty(o)&&Dn[o]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),r)e.setProperty(n,o);else if(o)e[n]=o;else if(r=Nn&&An.shorthandPropertyExpansions[n])for(var i in r)e[i]="";else e[n]=""}}},Wn=new RegExp("^["+Rt.ATTRIBUTE_NAME_START_CHAR+"]["+Rt.ATTRIBUTE_NAME_CHAR+"]*$"),Bn={},qn={},zn={setAttributeForID:function(e,t){e.setAttribute(Rt.ID_ATTRIBUTE_NAME,t)},setAttributeForRoot:function(e){e.setAttribute(Rt.ROOT_ATTRIBUTE_NAME,"")},getValueForProperty:function(){},getValueForAttribute:function(){},setValueForProperty:function(e,t,n){var r=Rt.getPropertyInfo(t);if(r&&Rt.shouldSetAttribute(t,n)){var o=r.mutationMethod;o?o(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?zn.deleteValueForProperty(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else zn.setValueForAttribute(e,t,Rt.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){R(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=Rt.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Hn=zn,Ln=Zt.ReactDebugCurrentFrame,Un={current:null,phase:null,resetCurrentFiber:function(){Ln.getCurrentStack=null,Un.current=null,Un.phase=null},setCurrentFiber:function(e,t){Ln.getCurrentStack=F,Un.current=e,Un.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:F},Vn=Un,Yn={getHostProps:function(e,t){var n=t.value,r=t.checked;return bt({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Hn.setValueForProperty(e,"checked",n||!1),n=t.value,null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))},postMountWrapper:function(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)},restoreControlledState:function(e,t){Yn.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=Gt.getFiberCurrentPropsFromNode(o);a||r("90"),Yn.updateWrapper(o,a)}}}}},Gn=Yn,Xn={validateProps:function(){},postMountWrapper:function(e,t){null!=t.value&&e.setAttribute("value",t.value)},getHostProps:function(e,t){return e=bt({children:void 0},t),(t=I(t.children))&&(e.children=t),e}},Zn={getHostProps:function(e,t){return bt({},t,{value:void 0})},initWrapperState:function(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}},postMountWrapper:function(e,t){e.multiple=!!t.multiple;var n=t.value;null!=n?W(e,!!t.multiple,n):null!=t.defaultValue&&W(e,!!t.multiple,t.defaultValue)},postUpdateWrapper:function(e,t){e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!t.multiple;var r=t.value;null!=r?W(e,!!t.multiple,r):n!==!!t.multiple&&(null!=t.defaultValue?W(e,!!t.multiple,t.defaultValue):W(e,!!t.multiple,t.multiple?[]:""))},restoreControlledState:function(e,t){var n=t.value;null!=n&&W(e,!!t.multiple,n)}},Kn={getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),bt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})},initWrapperState:function(e,t){var n=t.value,o=n;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&r("92"),Array.isArray(t)&&(1>=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n=""),o=n),e._wrapperState={initialValue:""+o}},updateWrapper:function(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Kn.updateWrapper(e,t)}},Qn=Kn,$n=bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Jn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=z(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}},er=St.Namespaces,tr=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==er.svg||"innerHTML"in e)e.innerHTML=t;else for(Fn=Fn||document.createElement("div"),Fn.innerHTML="<svg>"+t+"</svg>",t=Fn.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),nr=/["'&<>]/,rr=It.TEXT_NODE;vt.canUseDOM&&("textContent"in document.documentElement||(L=function(e,t){if(e.nodeType===rr)e.nodeValue=t;else{if("boolean"===typeof t||"number"===typeof t)t=""+t;else{t=""+t;var n=nr.exec(t);if(n){var r,o="",a=0;for(r=n.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#x27;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}a!==r&&(o+=t.substring(a,r)),a=r+1,o+=n}t=a!==r?o+t.substring(a,r):o}}tr(e,t)}}));var or=L,ar=(Vn.getCurrentFiberOwnerName,It.DOCUMENT_NODE),ir=It.DOCUMENT_FRAGMENT_NODE,ur=jn.listenTo,sr=Mt.registrationNameModules,cr=St.Namespaces.html,lr=St.getIntrinsicNamespace,fr={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},dr={createElement:function(e,t,n,r){return n=n.nodeType===ar?n:n.ownerDocument,r===cr&&(r=lr(e)),r===cr?"script"===e?(e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e},createTextNode:function(e,t){return(t.nodeType===ar?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(e,t,n,r){var o=H(t,n);switch(t){case"iframe":case"object":jn.trapBubbledEvent("topLoad","load",e);var a=n;break;case"video":case"audio":for(a in fr)fr.hasOwnProperty(a)&&jn.trapBubbledEvent(a,fr[a],e);a=n;break;case"source":jn.trapBubbledEvent("topError","error",e),a=n;break;case"img":case"image":jn.trapBubbledEvent("topError","error",e),jn.trapBubbledEvent("topLoad","load",e),a=n;break;case"form":jn.trapBubbledEvent("topReset","reset",e),jn.trapBubbledEvent("topSubmit","submit",e),a=n;break;case"details":jn.trapBubbledEvent("topToggle","toggle",e),a=n;break;case"input":Gn.initWrapperState(e,n),a=Gn.getHostProps(e,n),jn.trapBubbledEvent("topInvalid","invalid",e),U(r,"onChange");break;case"option":Xn.validateProps(e,n),a=Xn.getHostProps(e,n);break;case"select":Zn.initWrapperState(e,n),a=Zn.getHostProps(e,n),jn.trapBubbledEvent("topInvalid","invalid",e),U(r,"onChange");break;case"textarea":Qn.initWrapperState(e,n),a=Qn.getHostProps(e,n),jn.trapBubbledEvent("topInvalid","invalid",e),U(r,"onChange");break;default:a=n}B(t,a);var i,u=a;for(i in u)if(u.hasOwnProperty(i)){var s=u[i];"style"===i?In.setValueForStyles(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&tr(e,s):"children"===i?"string"===typeof s?or(e,s):"number"===typeof s&&or(e,""+s):"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?null!=s&&U(r,i):o?Hn.setValueForAttribute(e,i,s):null!=s&&Hn.setValueForProperty(e,i,s))}switch(t){case"input":Jn.track(e),Gn.postMountWrapper(e,n);break;case"textarea":Jn.track(e),Qn.postMountWrapper(e,n);break;case"option":Xn.postMountWrapper(e,n);break;case"select":Zn.postMountWrapper(e,n);break;default:"function"===typeof a.onClick&&(e.onclick=mt)}},diffProperties:function(e,t,n,r,o){var a=null;switch(t){case"input":n=Gn.getHostProps(e,n),r=Gn.getHostProps(e,r),a=[];break;case"option":n=Xn.getHostProps(e,n),r=Xn.getHostProps(e,r),a=[];break;case"select":n=Zn.getHostProps(e,n),r=Zn.getHostProps(e,r),a=[];break;case"textarea":n=Qn.getHostProps(e,n),r=Qn.getHostProps(e,r),a=[];break;default:"function"!==typeof n.onClick&&"function"===typeof r.onClick&&(e.onclick=mt)}B(t,r);var i,u;e=null;for(i in n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(u in t=n[i])t.hasOwnProperty(u)&&(e||(e={}),e[u]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?a||(a=[]):(a=a||[]).push(i,null));for(i in r){var s=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&s!==t&&(null!=s||null!=t))if("style"===i)if(t){for(u in t)!t.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(e||(e={}),e[u]="");for(u in s)s.hasOwnProperty(u)&&t[u]!==s[u]&&(e||(e={}),e[u]=s[u])}else e||(a||(a=[]),a.push(i,e)),e=s;else"dangerouslySetInnerHTML"===i?(s=s?s.__html:void 0,t=t?t.__html:void 0,null!=s&&t!==s&&(a=a||[]).push(i,""+s)):"children"===i?t===s||"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(i,""+s):"suppressContentEditableWarning"!==i&&(sr.hasOwnProperty(i)?(null!=s&&U(o,i),a||t===s||(a=[])):(a=a||[]).push(i,s))}return e&&(a=a||[]).push("style",e),a},updateProperties:function(e,t,n,r,o){H(n,r),r=H(n,o);for(var a=0;a<t.length;a+=2){var i=t[a],u=t[a+1];"style"===i?In.setValueForStyles(e,u):"dangerouslySetInnerHTML"===i?tr(e,u):"children"===i?or(e,u):r?null!=u?Hn.setValueForAttribute(e,i,u):Hn.deleteValueForAttribute(e,i):null!=u?Hn.setValueForProperty(e,i,u):Hn.deleteValueForProperty(e,i)}switch(n){case"input":Gn.updateWrapper(e,o),Jn.updateValueIfChanged(e);break;case"textarea":Qn.updateWrapper(e,o);break;case"select":Zn.postUpdateWrapper(e,o)}},diffHydratedProperties:function(e,t,n,r,o){switch(t){case"iframe":case"object":jn.trapBubbledEvent("topLoad","load",e);break;case"video":case"audio":for(var a in fr)fr.hasOwnProperty(a)&&jn.trapBubbledEvent(a,fr[a],e);break;case"source":jn.trapBubbledEvent("topError","error",e);break;case"img":case"image":jn.trapBubbledEvent("topError","error",e),jn.trapBubbledEvent("topLoad","load",e);break;case"form":jn.trapBubbledEvent("topReset","reset",e),jn.trapBubbledEvent("topSubmit","submit",e);break;case"details":jn.trapBubbledEvent("topToggle","toggle",e);break;case"input":Gn.initWrapperState(e,n),jn.trapBubbledEvent("topInvalid","invalid",e),U(o,"onChange");break;case"option":Xn.validateProps(e,n);break;case"select":Zn.initWrapperState(e,n),jn.trapBubbledEvent("topInvalid","invalid",e),U(o,"onChange");break;case"textarea":Qn.initWrapperState(e,n),jn.trapBubbledEvent("topInvalid","invalid",e),U(o,"onChange")}B(t,n),r=null;for(var i in n)n.hasOwnProperty(i)&&(a=n[i],"children"===i?"string"===typeof a?e.textContent!==a&&(r=["children",a]):"number"===typeof a&&e.textContent!==""+a&&(r=["children",""+a]):sr.hasOwnProperty(i)&&null!=a&&U(o,i));switch(t){case"input":Jn.track(e),Gn.postMountWrapper(e,n);break;case"textarea":Jn.track(e),Qn.postMountWrapper(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&(e.onclick=mt)}return r},diffHydratedText:function(e,t){return e.nodeValue!==t},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":Gn.restoreControlledState(e,n);break;case"textarea":Qn.restoreControlledState(e,n);break;case"select":Zn.restoreControlledState(e,n)}}},pr=void 0;if(vt.canUseDOM)if("function"!==typeof requestIdleCallback){var hr=null,yr=null,vr=!1,br=!1,gr=0,mr=33,wr=33,_r={timeRemaining:"object"===typeof performance&&"function"===typeof performance.now?function(){return gr-performance.now()}:function(){return gr-Date.now()}},Or="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){e.source===window&&e.data===Or&&(vr=!1,e=yr,yr=null,null!==e&&e(_r))},!1);var xr=function(e){br=!1;var t=e-gr+wr;t<wr&&mr<wr?(8>t&&(t=8),wr=t<mr?mr:t):mr=t,gr=e+wr,vr||(vr=!0,window.postMessage(Or,"*")),t=hr,hr=null,null!==t&&t(e)};pr=function(e){return yr=e,br||(br=!0,requestAnimationFrame(xr)),0}}else pr=requestIdleCallback;else pr=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0}})}),0};var kr,Cr,Pr={rIC:pr},Sr={enableAsyncSubtreeAPI:!0},Er={NoWork:0,SynchronousPriority:1,TaskPriority:2,HighPriority:3,LowPriority:4,OffscreenPriority:5},jr=Kt.Callback,Tr=Er.NoWork,Mr=Er.SynchronousPriority,Ar=Er.TaskPriority,Dr=Ft.ClassComponent,Nr=Ft.HostRoot,Rr=void 0,Fr=void 0,Ir={addUpdate:function(e,t,n,r){Z(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},addReplaceUpdate:function(e,t,n,r){Z(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},addForceUpdate:function(e,t,n){Z(e,{priorityLevel:n,partialState:null,callback:t,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},getUpdatePriority:function(e){var t=e.updateQueue;return null===t||e.tag!==Dr&&e.tag!==Nr?Tr:null!==t.first?t.first.priorityLevel:Tr},addTopLevelUpdate:function(e,t,n,r){var o=null===t.element;t={priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:o,next:null},e=Z(e,t),o&&(o=Rr,n=Fr,null!==o&&null!==t.next&&(t.next=null,o.last=t),null!==n&&null!==e&&null!==e.next&&(e.next=null,n.last=t))},beginUpdateQueue:function(e,t,n,r,o,a,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={first:n.first,last:n.last,callbackList:null,hasForceUpdate:!1}),e=n.callbackList;for(var u=n.hasForceUpdate,s=!0,c=n.first;null!==c&&0>=V(c.priorityLevel,i);){n.first=c.next,null===n.first&&(n.last=null);var l;c.isReplace?(o=K(c,r,o,a),s=!0):(l=K(c,r,o,a))&&(o=s?bt({},o,l):bt(o,l),s=!1),c.isForced&&(u=!0),null===c.callback||c.isTopLevelUnmount&&null!==c.next||(e=null!==e?e:[],e.push(c.callback),t.effectTag|=jr),c=c.next}return n.callbackList=e,n.hasForceUpdate=u,null!==n.first||null!==e||u||(t.updateQueue=null),o},commitCallbacks:function(e,t,n){if(null!==(e=t.callbackList))for(t.callbackList=null,t=0;t<e.length;t++){var o=e[t];"function"!==typeof o&&r("191",o),o.call(n)}}},Wr=[],Br=-1,qr={createCursor:function(e){return{current:e}},isEmpty:function(){return-1===Br},pop:function(e){0>Br||(e.current=Wr[Br],Wr[Br]=null,Br--)},push:function(e,t){Br++,Wr[Br]=e.current,e.current=t},reset:function(){for(;-1<Br;)Wr[Br]=null,Br--}},zr=rn.isFiberMounted,Hr=Ft.ClassComponent,Lr=Ft.HostRoot,Ur=qr.createCursor,Vr=qr.pop,Yr=qr.push,Gr=Ur(wt),Xr=Ur(!1),Zr=wt,Kr={getUnmaskedContext:function(e){return $(e)?Zr:Gr.current},cacheContext:Q,getMaskedContext:function(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&Q(e,t,a),a},hasContextChanged:function(){return Xr.current},isContextConsumer:function(e){return e.tag===Hr&&null!=e.type.contextTypes},isContextProvider:$,popContextProvider:function(e){$(e)&&(Vr(Xr,e),Vr(Gr,e))},popTopLevelContextObject:function(e){Vr(Xr,e),Vr(Gr,e)},pushTopLevelContextObject:function(e,t,n){null!=Gr.cursor&&r("168"),Yr(Gr,t,e),Yr(Xr,n,e)},processChildContext:J,pushContextProvider:function(e){if(!$(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||wt,Zr=Gr.current,Yr(Gr,t,e),Yr(Xr,Xr.current,e),!0},invalidateContextProvider:function(e,t){var n=e.stateNode;if(n||r("169"),t){var o=J(e,Zr);n.__reactInternalMemoizedMergedChildContext=o,Vr(Xr,e),Vr(Gr,e),Yr(Gr,o,e)}else Vr(Xr,e);Yr(Xr,t,e)},resetContext:function(){Zr=wt,Gr.current=wt,Xr.current=!1},findCurrentUnmaskedContext:function(e){for(zr(e)&&e.tag===Hr?void 0:r("170");e.tag!==Lr;){if($(e))return e.stateNode.__reactInternalMemoizedMergedChildContext;(e=e.return)||r("171")}return e.stateNode.context}},Qr={NoContext:0,AsyncUpdates:1},$r=Ft.IndeterminateComponent,Jr=Ft.ClassComponent,eo=Ft.HostRoot,to=Ft.HostComponent,no=Ft.HostText,ro=Ft.HostPortal,oo=Ft.CoroutineComponent,ao=Ft.YieldComponent,io=Ft.Fragment,uo=Er.NoWork,so=Qr.NoContext,co=Kt.NoEffect,lo={createWorkInProgress:function(e,t){var n=e.alternate;return null===n?(n=new ee(e.tag,e.key,e.internalContextTag),n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.effectTag=co,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.pendingWorkPriority=t,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n},createHostRootFiber:function(){return new ee(eo,null,so)},createFiberFromElement:function(e,t,n){return t=te(e.type,e.key,t),t.pendingProps=e.props,t.pendingWorkPriority=n,t},createFiberFromFragment:function(e,t,n){return t=new ee(io,null,t),t.pendingProps=e,t.pendingWorkPriority=n,t},createFiberFromText:function(e,t,n){return t=new ee(no,null,t),t.pendingProps=e,t.pendingWorkPriority=n,t},createFiberFromElementType:te,createFiberFromHostInstanceForDeletion:function(){var e=new ee(to,null,so);return e.type="DELETED",e},createFiberFromCoroutine:function(e,t,n){return t=new ee(oo,e.key,t),t.type=e.handler,t.pendingProps=e,t.pendingWorkPriority=n,t},createFiberFromYield:function(e,t){return new ee(ao,null,t)},createFiberFromPortal:function(e,t,n){return t=new ee(ro,e.key,t),t.pendingProps=e.children||[],t.pendingWorkPriority=n,t.stateNode={containerInfo:e.containerInfo,implementation:e.implementation},t},largerPriority:function(e,t){return e!==uo&&(t===uo||t>e)?e:t}},fo=lo.createHostRootFiber,po=Ft.IndeterminateComponent,ho=Ft.FunctionalComponent,yo=Ft.ClassComponent,vo=Ft.HostComponent;"function"===typeof Symbol&&Symbol.for?(kr=Symbol.for("react.coroutine"),Cr=Symbol.for("react.yield")):(kr=60104,Cr=60105);var bo={createCoroutine:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:kr,key:null==r?null:""+r,children:e,handler:t,props:n}},createYield:function(e){return{$$typeof:Cr,value:e}},isCoroutine:function(e){return"object"===typeof e&&null!==e&&e.$$typeof===kr},isYield:function(e){return"object"===typeof e&&null!==e&&e.$$typeof===Cr},REACT_YIELD_TYPE:Cr,REACT_COROUTINE_TYPE:kr},go="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.portal")||60106,mo={createPortal:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:go,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},isPortal:function(e){return"object"===typeof e&&null!==e&&e.$$typeof===go},REACT_PORTAL_TYPE:go},wo=bo.REACT_COROUTINE_TYPE,_o=bo.REACT_YIELD_TYPE,Oo=mo.REACT_PORTAL_TYPE,xo=lo.createWorkInProgress,ko=lo.createFiberFromElement,Co=lo.createFiberFromFragment,Po=lo.createFiberFromText,So=lo.createFiberFromCoroutine,Eo=lo.createFiberFromYield,jo=lo.createFiberFromPortal,To=Array.isArray,Mo=Ft.FunctionalComponent,Ao=Ft.ClassComponent,Do=Ft.HostText,No=Ft.HostPortal,Ro=Ft.CoroutineComponent,Fo=Ft.YieldComponent,Io=Ft.Fragment,Wo=Kt.NoEffect,Bo=Kt.Placement,qo=Kt.Deletion,zo="function"===typeof Symbol&&Symbol.iterator,Ho="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Lo=ae(!0,!0),Uo=ae(!1,!0),Vo=ae(!1,!1),Yo={reconcileChildFibers:Lo,reconcileChildFibersInPlace:Uo,mountChildFibersInPlace:Vo,cloneChildFibers:function(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=xo(e,e.pendingWorkPriority);for(n.pendingProps=e.pendingProps,t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=xo(e,e.pendingWorkPriority),n.pendingProps=e.pendingProps,n.return=t;n.sibling=null}}},Go=Kt.Update,Xo=Qr.AsyncUpdates,Zo=Kr.cacheContext,Ko=Kr.getMaskedContext,Qo=Kr.getUnmaskedContext,$o=Kr.isContextConsumer,Jo=Ir.addUpdate,ea=Ir.addReplaceUpdate,ta=Ir.addForceUpdate,na=Ir.beginUpdateQueue,ra=Kr.hasContextChanged,oa=rn.isMounted,aa=Yo.mountChildFibersInPlace,ia=Yo.reconcileChildFibers,ua=Yo.reconcileChildFibersInPlace,sa=Yo.cloneChildFibers,ca=Ir.beginUpdateQueue,la=Kr.getMaskedContext,fa=Kr.getUnmaskedContext,da=Kr.hasContextChanged,pa=Kr.pushContextProvider,ha=Kr.pushTopLevelContextObject,ya=Kr.invalidateContextProvider,va=Ft.IndeterminateComponent,ba=Ft.FunctionalComponent,ga=Ft.ClassComponent,ma=Ft.HostRoot,wa=Ft.HostComponent,_a=Ft.HostText,Oa=Ft.HostPortal,xa=Ft.CoroutineComponent,ka=Ft.CoroutineHandlerPhase,Ca=Ft.YieldComponent,Pa=Ft.Fragment,Sa=Er.NoWork,Ea=Er.OffscreenPriority,ja=Kt.PerformedWork,Ta=Kt.Placement,Ma=Kt.ContentReset,Aa=Kt.Err,Da=Kt.Ref,Na=Zt.ReactCurrentOwner,Ra=Yo.reconcileChildFibers,Fa=Kr.popContextProvider,Ia=Kr.popTopLevelContextObject,Wa=Ft.IndeterminateComponent,Ba=Ft.FunctionalComponent,qa=Ft.ClassComponent,za=Ft.HostRoot,Ha=Ft.HostComponent,La=Ft.HostText,Ua=Ft.HostPortal,Va=Ft.CoroutineComponent,Ya=Ft.CoroutineHandlerPhase,Ga=Ft.YieldComponent,Xa=Ft.Fragment,Za=Kt.Placement,Ka=Kt.Ref,Qa=Kt.Update,$a=Er.OffscreenPriority,Ja=null,ei=null,ti={injectInternals:function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.supportsFiber)return!0;try{var n=t.inject(e);Ja=ce(function(e){return t.onCommitFiberRoot(n,e)}),ei=ce(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0},onCommitRoot:function(e){"function"===typeof Ja&&Ja(e)},onCommitUnmount:function(e){"function"===typeof ei&&ei(e)}},ni=Ft.ClassComponent,ri=Ft.HostRoot,oi=Ft.HostComponent,ai=Ft.HostText,ii=Ft.HostPortal,ui=Ft.CoroutineComponent,si=Ir.commitCallbacks,ci=ti.onCommitUnmount,li=Kt.Placement,fi=Kt.Update,di=Kt.Callback,pi=Kt.ContentReset,hi=qr.createCursor,yi=qr.pop,vi=qr.push,bi={},gi=Ft.HostComponent,mi=Ft.HostText,wi=Ft.HostRoot,_i=Kt.Deletion,Oi=Kt.Placement,xi=lo.createFiberFromHostInstanceForDeletion,ki=Kr.popContextProvider,Ci=qr.reset,Pi=Zt.ReactCurrentOwner,Si=lo.createWorkInProgress,Ei=lo.largerPriority,ji=ti.onCommitRoot,Ti=Er.NoWork,Mi=Er.SynchronousPriority,Ai=Er.TaskPriority,Di=Er.HighPriority,Ni=Er.LowPriority,Ri=Er.OffscreenPriority,Fi=Qr.AsyncUpdates,Ii=Kt.PerformedWork,Wi=Kt.Placement,Bi=Kt.Update,qi=Kt.PlacementAndUpdate,zi=Kt.Deletion,Hi=Kt.ContentReset,Li=Kt.Callback,Ui=Kt.Err,Vi=Kt.Ref,Yi=Ft.HostRoot,Gi=Ft.HostComponent,Xi=Ft.HostPortal,Zi=Ft.ClassComponent,Ki=Ir.getUpdatePriority,Qi=Kr.resetContext;ye._injectFiber=function(e){he=e};var $i=Ir.addTopLevelUpdate,Ji=Kr.findCurrentUnmaskedContext,eu=Kr.isContextProvider,tu=Kr.processChildContext,nu=Ft.HostComponent,ru=rn.findCurrentHostFiber,ou=rn.findCurrentHostFiberWithNoPortals;ye._injectFiber(function(e){var t=Ji(e);return eu(e)?tu(e,t,!1):t});var au=It.TEXT_NODE,iu=null,uu={getOffsets:function(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,a=t.focusOffset,i=t.getRangeAt(0);try{i.startContainer.nodeType,i.endContainer.nodeType}catch(e){return null}t=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset?0:i.toString().length;var u=i.cloneRange();return u.selectNodeContents(e),u.setEnd(i.startContainer,i.startOffset),e=u.startContainer===u.endContainer&&u.startOffset===u.endOffset?0:u.toString().length,i=e+t,t=document.createRange(),t.setStart(n,r),t.setEnd(o,a),n=t.collapsed,{start:n?i:e,end:n?e:i}},setOffsets:function(e,t){if(window.getSelection){var n=window.getSelection(),r=e[ge()].length,o=Math.min(t.start,r);if(t=void 0===t.end?o:Math.min(t.end,r),!n.extend&&o>t&&(r=t,t=o,o=r),r=be(e,o),e=be(e,t),r&&e){var a=document.createRange();a.setStart(r.node,r.offset),n.removeAllRanges(),o>t?(n.addRange(a),n.extend(e.node,e.offset)):(a.setEnd(e.node,e.offset),n.addRange(a))}}}},su=It.ELEMENT_NODE,cu={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=kt();return{focusedElem:e,selectionRange:cu.hasSelectionCapabilities(e)?cu.getSelection(e):null}},restoreSelection:function(e){var t=kt(),n=e.focusedElem;if(e=e.selectionRange,t!==n&&Ot(document.documentElement,n)){for(cu.hasSelectionCapabilities(n)&&cu.setSelection(n,e),t=[],e=n;e=e.parentNode;)e.nodeType===su&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(xt(n),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}},getSelection:function(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:uu.getOffsets(e))||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):uu.setOffsets(e,t)}},lu=cu,fu=It.ELEMENT_NODE;_e._injectFiber=function(e){me=e},_e._injectStack=function(e){we=e};var du=Ft.HostComponent,pu={isAncestor:function(e,t){for(;t;){if(e===t||e===t.alternate)return!0;t=Oe(t)}return!1},getLowestCommonAncestor:xe,getParentInstance:function(e){return Oe(e)},traverseTwoPhase:function(e,t,n){for(var r=[];e;)r.push(e),e=Oe(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)},traverseEnterLeave:function(e,t,n,r,o){for(var a=e&&t?xe(e,t):null,i=[];e&&e!==a;)i.push(e),e=Oe(e);for(e=[];t&&t!==a;)e.push(t),t=Oe(t);for(t=0;t<i.length;t++)n(i[t],"bubbled",r);for(t=e.length;0<t--;)n(e[t],"captured",o)}},hu=_n.getListener,yu={accumulateTwoPhaseDispatches:function(e){P(e,Ce)},accumulateTwoPhaseDispatchesSkipTarget:function(e){P(e,Pe)},accumulateDirectDispatches:function(e){P(e,Ee)},accumulateEnterLeaveDispatches:function(e,t,n,r){pu.traverseEnterLeave(n,r,Se,e,t)}},vu={_root:null,_startText:null,_fallbackText:null},bu={initialize:function(e){return vu._root=e,vu._startText=bu.getText(),!0},reset:function(){vu._root=null,vu._startText=null,vu._fallbackText=null},getData:function(){if(vu._fallbackText)return vu._fallbackText;var e,t,n=vu._startText,r=n.length,o=bu.getText(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return vu._fallbackText=o.slice(e,1<t?1-t:void 0),vu._fallbackText},getText:function(){return"value"in vu._root?vu._root.value:vu._root[ge()]}},gu=bu,mu="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),wu={type:null,target:null,currentTarget:mt.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};bt(je.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=mt.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=mt.thatReturnsTrue)},persist:function(){this.isPersistent=mt.thatReturnsTrue},isPersistent:mt.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<mu.length;t++)this[mu[t]]=null}}),je.Interface=wu,je.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;bt(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=bt({},this.Interface,t),e.augmentClass=this.augmentClass,Ae(e)},Ae(je),je.augmentClass(De,{data:null}),je.augmentClass(Ne,{data:null});var _u=[9,13,27,32],Ou=vt.canUseDOM&&"CompositionEvent"in window,xu=null;vt.canUseDOM&&"documentMode"in document&&(xu=document.documentMode);var ku;if(ku=vt.canUseDOM&&"TextEvent"in window&&!xu){var Cu=window.opera;ku=!("object"===typeof Cu&&"function"===typeof Cu.version&&12>=parseInt(Cu.version(),10))}var Pu=ku,Su=vt.canUseDOM&&(!Ou||xu&&8<xu&&11>=xu),Eu=String.fromCharCode(32),ju={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Tu=!1,Mu=!1,Au={eventTypes:ju,extractEvents:function(e,t,n,r){var o;if(Ou)e:{switch(e){case"topCompositionStart":var a=ju.compositionStart;break e;case"topCompositionEnd":a=ju.compositionEnd;break e;case"topCompositionUpdate":a=ju.compositionUpdate;break e}a=void 0}else Mu?Re(e,n)&&(a=ju.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(a=ju.compositionStart);return a?(Su&&(Mu||a!==ju.compositionStart?a===ju.compositionEnd&&Mu&&(o=gu.getData()):Mu=gu.initialize(r)),a=De.getPooled(a,t,n,r),o?a.data=o:null!==(o=Fe(n))&&(a.data=o),yu.accumulateTwoPhaseDispatches(a),o=a):o=null,(e=Pu?Ie(e,n):We(e,n))?(t=Ne.getPooled(ju.beforeInput,t,n,r),t.data=e,yu.accumulateTwoPhaseDispatches(t)):t=null,[o,t]}},Du={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Nu={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Ru=null,Fu=null,Iu=!1;vt.canUseDOM&&(Iu=M("input")&&(!document.documentMode||9<document.documentMode));var Wu={eventTypes:Nu,_isInputEventSupported:Iu,extractEvents:function(e,t,n,r){var o=t?Gt.getNodeFromInstance(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var i=Le;else if(Be(o))if(Iu)i=Ze;else{i=Ge;var u=Ye}else!(a=o.nodeName)||"input"!==a.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type||(i=Xe);if(i&&(i=i(e,t)))return qe(i,n,r);u&&u(e,o,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&(e=""+o.value,o.getAttribute("value")!==e&&o.setAttribute("value",e))}};je.augmentClass(Ke,{view:function(e){return e.view?e.view:(e=x(e),e.window===e?e:(e=e.ownerDocument)?e.defaultView||e.parentWindow:window)},detail:function(e){return e.detail||0}});var Bu={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};Ke.augmentClass(Je,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:$e,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var qu={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},zu={eventTypes:qu,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?Gt.getClosestInstanceFromNode(t):null):e=null,e===t)return null;var a=null==e?o:Gt.getNodeFromInstance(e);o=null==t?o:Gt.getNodeFromInstance(t);var i=Je.getPooled(qu.mouseLeave,e,n,r);return i.type="mouseleave",i.target=a,i.relatedTarget=o,n=Je.getPooled(qu.mouseEnter,t,n,r),n.type="mouseenter",n.target=o,n.relatedTarget=a,yu.accumulateEnterLeaveDispatches(i,n,e,t),[i,n]}},Hu=It.DOCUMENT_NODE,Lu=vt.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Uu={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},Vu=null,Yu=null,Gu=null,Xu=!1,Zu=jn.isListeningToAllDependencies,Ku={eventTypes:Uu,extractEvents:function(e,t,n,r){var o=r.window===r?r.document:r.nodeType===Hu?r:r.ownerDocument;if(!o||!Zu("onSelect",o))return null;switch(o=t?Gt.getNodeFromInstance(t):window,e){case"topFocus":(Be(o)||"true"===o.contentEditable)&&(Vu=o,Yu=t,Gu=null);break;case"topBlur":Gu=Yu=Vu=null;break;case"topMouseDown":Xu=!0;break;case"topContextMenu":case"topMouseUp":return Xu=!1,et(n,r);case"topSelectionChange":if(Lu)break;case"topKeyDown":case"topKeyUp":return et(n,r)}return null}};je.augmentClass(tt,{animationName:null,elapsedTime:null,pseudoElement:null}),je.augmentClass(nt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ke.augmentClass(rt,{relatedTarget:null});var Qu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$u={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};Ke.augmentClass(at,{key:function(e){if(e.key){var t=Qu[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=ot(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?$u[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:$e,charCode:function(e){return"keypress"===e.type?ot(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ot(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Je.augmentClass(it,{dataTransfer:null}),Ke.augmentClass(ut,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:$e}),je.augmentClass(st,{propertyName:null,elapsedTime:null,pseudoElement:null}),Je.augmentClass(ct,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var Ju={},es={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;t="top"+t,n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t]},Ju[e]=n,es[t]=n});var ts={eventTypes:Ju,extractEvents:function(e,t,n,o){var a=es[e];if(!a)return null;switch(e){case"topAbort":case"topCancel":case"topCanPlay":case"topCanPlayThrough":case"topClose":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topToggle":case"topVolumeChange":case"topWaiting":var i=je;break;case"topKeyPress":if(0===ot(n))return null;case"topKeyDown":case"topKeyUp":i=at;break;case"topBlur":case"topFocus":i=rt;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=Je;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=it;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=ut;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=tt;break;case"topTransitionEnd":i=st;break;case"topScroll":i=Ke;break;case"topWheel":i=ct;break;case"topCopy":case"topCut":case"topPaste":i=nt}return i||r("86",e),e=i.getPooled(a,t,n,o),yu.accumulateTwoPhaseDispatches(e),e}};mn.setHandleTopLevel(jn.handleTopLevel),_n.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),sn.injection.injectComponentTree(Gt),_n.injection.injectEventPluginsByName({SimpleEventPlugin:ts,EnterLeaveEventPlugin:zu,ChangeEventPlugin:Wu,SelectEventPlugin:Ku,BeforeInputEventPlugin:Au});var ns=Rt.injection.MUST_USE_PROPERTY,rs=Rt.injection.HAS_BOOLEAN_VALUE,os=Rt.injection.HAS_NUMERIC_VALUE,as=Rt.injection.HAS_POSITIVE_NUMERIC_VALUE,is=Rt.injection.HAS_STRING_BOOLEAN_VALUE,us={Properties:{allowFullScreen:rs,allowTransparency:is,async:rs,autoPlay:rs,capture:rs,checked:ns|rs,cols:as,contentEditable:is,controls:rs,default:rs,defer:rs,disabled:rs,download:Rt.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:is,formNoValidate:rs,hidden:rs,loop:rs,multiple:ns|rs,muted:ns|rs,noValidate:rs,open:rs,playsInline:rs,readOnly:rs,required:rs,reversed:rs,rows:as,rowSpan:os,scoped:rs,seamless:rs,selected:ns|rs,size:as,start:os,span:as,spellCheck:is,style:0,itemScope:rs,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:is},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},ss=Rt.injection.HAS_STRING_BOOLEAN_VALUE,cs={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},ls={Properties:{autoReverse:ss,externalResourcesRequired:ss,preserveAlpha:ss},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:cs.xlink,xlinkArcrole:cs.xlink,xlinkHref:cs.xlink,xlinkRole:cs.xlink,xlinkShow:cs.xlink,xlinkTitle:cs.xlink,xlinkType:cs.xlink,xmlBase:cs.xml,xmlLang:cs.xml,xmlSpace:cs.xml}},fs=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(fs,lt);ls.Properties[t]=0,ls.DOMAttributeNames[t]=e}),Rt.injection.injectDOMPropertyConfig(us),Rt.injection.injectDOMPropertyConfig(ls);var ds=ti.injectInternals,ps=It.ELEMENT_NODE,hs=It.TEXT_NODE,ys=It.COMMENT_NODE,vs=It.DOCUMENT_NODE,bs=It.DOCUMENT_FRAGMENT_NODE,gs=Rt.ROOT_ATTRIBUTE_NAME,ms=St.getChildNamespace,ws=dr.createElement,_s=dr.createTextNode,Os=dr.setInitialProperties,xs=dr.diffProperties,ks=dr.updateProperties,Cs=dr.diffHydratedProperties,Ps=dr.diffHydratedText,Ss=dr.warnForDeletedHydratableElement,Es=dr.warnForDeletedHydratableText,js=dr.warnForInsertedHydratedElement,Ts=dr.warnForInsertedHydratedText,Ms=Gt.precacheFiberNode,As=Gt.updateFiberProps;dn.injection.injectFiberControlledHostComponent(dr),_e._injectFiber(function(e){return Rs.findHostInstance(e)});var Ds=null,Ns=null,Rs=function(e){var t=e.getPublicInstance;e=pe(e);var n=e.scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=fo();return e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null},t.stateNode=e},updateContainer:function(e,t,o,a){var i=t.current;o=ye(o),null===t.context?t.context=o:t.pendingContext=o,t=a,a=r(i,Sr.enableAsyncSubtreeAPI&&null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent),e={element:e},$i(i,e,void 0===t?null:t,a),n(i,a)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case nu:return t(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){return e=ru(e),null===e?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return e=ou(e),null===e?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===vs)e=(e=e.documentElement)?e.namespaceURI:ms(null,"");else{var t=e.nodeType===ys?e.parentNode:e;e=t.namespaceURI||null,t=t.tagName,e=ms(e,t)}return e},getChildHostContext:function(e,t){return ms(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){Ds=jn.isEnabled(),Ns=lu.getSelectionInformation(),jn.setEnabled(!1)},resetAfterCommit:function(){lu.restoreSelection(Ns),Ns=null,jn.setEnabled(Ds),Ds=null},createInstance:function(e,t,n,r,o){return e=ws(e,t,n,r),Ms(o,e),As(e,t),e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){Os(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return xs(e,t,n,r,o)},commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){As(e,o),ks(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=""},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=_s(e,t),Ms(r,e),e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===ys?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===ys?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===ys?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===ps&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return""!==t&&e.nodeType===hs},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==ps&&e.nodeType!==hs;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==ps&&e.nodeType!==hs;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,a){return Ms(a,e),As(e,n),Cs(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return Ms(n,e),Ps(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?Ss(e,t):Es(e,t)},didNotFindHydratableInstance:function(e,t,n){js(e,t,n)},didNotFindHydratableTextInstance:function(e,t){Ts(e,t)},scheduleDeferredCallback:Pr.rIC,useSyncScheduling:!0});hn.injection.injectFiberBatchedUpdates(Rs.batchedUpdates);var Fs={createPortal:ht,hydrate:function(e,t,n){return pt(null,e,t,!0,n)},render:function(e,t,n){return pt(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return null!=e&&Xt.has(e)||r("38"),pt(e,t,n,!1,o)},unmountComponentAtNode:function(e){return ft(e)||r("40"),!!e._reactRootContainer&&(Rs.unbatchedUpdates(function(){pt(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},findDOMNode:_e,unstable_createPortal:ht,unstable_batchedUpdates:hn.batchedUpdates,unstable_deferredUpdates:Rs.deferredUpdates,flushSync:Rs.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:_n,EventPluginRegistry:Mt,EventPropagators:yu,ReactControlledComponent:dn,ReactDOMComponentTree:Gt,ReactDOMEventListener:mn}};ds({findFiberByHostInstance:Gt.getClosestInstanceFromNode,findHostInstanceByFiber:Rs.findHostInstance,bundleType:0,version:"16.0.0",rendererPackageName:"react-dom"}),e.exports=Fs},function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";var r=n(41),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!a.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(165);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(166);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"===typeof n.Node?e instanceof n.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=n.n(i),s=n(2),c=n.n(s),l=(n(21),n(45),n(11)),f=n(24),d=n(246),p=n(296),h=(n.n(p),n(349)),y=(n.n(h),n(379)),v=(n.n(y),n(386)),b=(n.n(v),n(388)),g=(n.n(b),n(397)),m=(n.n(g),n(432)),w=(n.n(m),n(0)),_=(n.n(w),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),O=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e.data;return n.state={calculators:n.getCalculators(e)},n}return a(t,e),_(t,[{key:"getCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.indicatorSettings,n={};return n.sma=t.sma[1].map(function(e,t){var n="sma"+t;return Object(g.sma)().options({windowSize:e}).merge(function(e,t){e[n]=t}).accessor(function(e){return e[n]})}),n.ema=t.ema[1].map(function(e,t){var n="ema"+t;return Object(g.ema)().options({windowSize:e}).merge(function(e,t){e[n]=t}).accessor(function(e){return e[n]})}),n.smaVolume=t.smaVolume[1].map(function(e,t){var n="smaVolume"+t;return Object(g.sma)().options({windowSize:e,sourcePath:"volume"}).merge(function(e,t){e[n]=t}).accessor(function(e){return e[n]}).stroke("#4682B4").fill("#4682B4")}),n.bb=Object(g.bollingerBand)().merge(function(e,t){e.bb=t}).accessor(function(e){return e.bb}),n.macd=Object(g.macd)().options({fast:t.macd[1].fast,slow:t.macd[1].slow,signal:t.macd[1].signal}).merge(function(e,t){e.macd=t}).accessor(function(e){return e.macd}),n}},{key:"getChart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.typeSettings,n=null,r=null,o=null;for(var a in t)if(t[a][0]){n=a,r=t[n];break}switch(n){case"Candlestick":o=u.a.createElement(p.CandlestickSeries,{stroke:function(e){return r[1].stroke[e.close>e.open?0:1]},wickStroke:function(e){return r[1].stroke[e.close>e.open?0:1]},fill:function(e){return r[1].stroke[e.close>e.open?0:1]}});break;case"Heikin Ashi":o=u.a.createElement(p.CandlestickSeries,null);break;case"Kagi":o=u.a.createElement(p.KagiSeries,null);break;case"Line":o=u.a.createElement(p.LineSeries,{yAccessor:function(e){return e.close}});break;case"Area":o=u.a.createElement(p.AreaSeries,{yAccessor:function(e){return e.close}});break;default:o=u.a.createElement(p.CandlestickSeries,null)}return o}},{key:"getIndicator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.indicatorSettings,n=this.state.calculators,r=[];if(t.sma[0]&&(r=r.concat(n.sma.map(function(e,t){return u.a.createElement(p.LineSeries,{key:"sma"+t,yAccessor:e.accessor(),stroke:e.stroke()})})),r=r.concat(n.sma.map(function(e,t){return u.a.createElement(y.CurrentCoordinate,{key:"csma"+t,yAccessor:e.accessor(),fill:e.stroke()})}))),t.ema[0]&&(r=r.concat(n.ema.map(function(e,t){return u.a.createElement(p.LineSeries,{key:"ema"+t,yAccessor:e.accessor(),stroke:e.stroke()})})),r=r.concat(n.ema.map(function(e,t){return u.a.createElement(y.CurrentCoordinate,{key:"cema"+t,yAccessor:e.accessor(),fill:e.stroke()})}))),t.bb[0]){var o=t.bb;r.push(u.a.createElement(p.BollingerSeries,{key:"bb",yAccessor:function(e){return e.bb},stroke:o[1],fill:o[2]}))}return r}},{key:"getIndicatorTooltip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.indicatorSettings,n=this.state.calculators,r=[];return t.sma[0]&&(r=r.concat(n.sma.map(function(e){return Object.assign({yAccessor:e.accessor(),type:e.type(),stroke:e.stroke()},e.options())}))),t.ema[0]&&(r=r.concat(n.ema.map(function(e){return Object.assign({yAccessor:e.accessor(),type:e.type(),stroke:e.stroke()},e.options())}))),r.length?u.a.createElement(b.MovingAverageTooltip,{onClick:function(e){return console.log(e)},origin:[-38,15],options:r}):null}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.indicatorSettings,r=(e.typeSettings,e.width),o=e.ratio,a=this.state.calculators,i=t;for(var s in n)n[s][0]&&(i=a[s]instanceof Array?a[s].reduce(function(e,t){return t(e)},i):a[s](i));var c=Object(v.discontinuousTimeScaleProviderBuilder)().indexCalculator(),g=c(i),m=g.index,w=Object(v.discontinuousTimeScaleProviderBuilder)().withIndex(m),_=w(i),O=_.data,x=_.xScale,k=_.xAccessor,C=_.displayXAccessor;return u.a.createElement(d.b,{ratio:o,width:r,height:600,margin:{left:70,right:70,top:20,bottom:30},seriesName:"MSFT",type:"hybrid",data:O,xScale:x,xAccessor:k,displayXAccessor:C},u.a.createElement(d.a,{id:1,height:400,yExtents:function(e){return[e.high,e.low]},padding:{top:10,bottom:20}},u.a.createElement(h.XAxis,{axisAt:"bottom",orient:"bottom",showTicks:!1,outerTickSize:0}),u.a.createElement(h.YAxis,{axisAt:"right",orient:"right",ticks:5}),u.a.createElement(y.MouseCoordinateY,{at:"right",orient:"right",displayFormat:Object(l.format)(".2f")}),u.a.createElement(y.EdgeIndicator,{itemType:"last",orient:"right",edgeAt:"right",yAccessor:function(e){return e.close},fill:function(e){return e.close>e.open?"#6BA583":"#FF0000"}}),this.getChart(this.props),this.getIndicator(this.props),this.getIndicatorTooltip(this.props),u.a.createElement(b.OHLCTooltip,{origin:[-40,0]})),u.a.createElement(d.a,{id:2,height:150,yExtents:function(e){return e.volume},origin:function(e,t){return[0,t-300]}},u.a.createElement(y.MouseCoordinateY,{at:"left",orient:"left",displayFormat:Object(l.format)(".4s")}),u.a.createElement(p.BarSeries,{yAccessor:function(e){return e.volume},fill:function(e){return e.close>e.open?"#6BA583":"#DB0000"}}),u.a.createElement(p.LineSeries,{yAccessor:a.smaVolume[0].accessor(),stroke:a.smaVolume[0].stroke()})),u.a.createElement(d.a,{id:3,height:150,yExtents:a.macd.accessor(),origin:function(e,t){return[0,t-150]},padding:{top:10,bottom:10}},u.a.createElement(h.XAxis,{axisAt:"bottom",orient:"bottom"}),u.a.createElement(h.YAxis,{axisAt:"right",orient:"right",ticks:2}),u.a.createElement(y.MouseCoordinateX,{at:"bottom",orient:"bottom",displayFormat:Object(f.timeFormat)("%Y-%m-%d")}),u.a.createElement(y.MouseCoordinateY,{at:"right",orient:"right",displayFormat:Object(l.format)(".2f")}),u.a.createElement(p.MACDSeries,Object.assign({yAccessor:function(e){return e.macd}},{stroke:n.macd[2],fill:n.macd[3]})),u.a.createElement(b.MACDTooltip,{origin:[-38,15],yAccessor:function(e){return e.macd},options:a.macd.options(),appearance:{stroke:n.macd[2],fill:n.macd[3]}})),u.a.createElement(y.CrossHairCursor,null))}}]),t}(u.a.Component);O.propTypes={data:c.a.array.isRequired,width:c.a.number.isRequired,ratio:c.a.number.isRequired,type:c.a.oneOf(["Candlestick","Heikin Ashi","Kagi","Line","Area"]).isRequired},O.defaultProps={type:"Candlestick"},O=Object(m.fitWidth)(O),t.a=O},function(e,t,n){"use strict";var r=n(41),o=n(54),a=n(171);e.exports=function(){function e(e,t,n,r,i,u){u!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(){function e(){var e=a().length,r=c[1]<c[0],o=c[r-0],u=c[1-r];t=(u-o)/Math.max(1,e-f+2*d),l&&(t=Math.floor(t)),o+=(u-o-t*(e-f))*p,n=t*(1-f),l&&(o=Math.round(o),n=Math.round(n));var h=Object(i.range)(e).map(function(e){return o+t*e});return s(r?h.reverse():h)}var t,n,o=Object(u.a)().unknown(void 0),a=o.domain,s=o.range,c=[0,1],l=!1,f=0,d=0,p=.5;return delete o.unknown,o.domain=function(t){return arguments.length?(a(t),e()):a()},o.range=function(t){return arguments.length?(c=[+t[0],+t[1]],e()):c.slice()},o.rangeRound=function(t){return c=[+t[0],+t[1]],l=!0,e()},o.bandwidth=function(){return n},o.step=function(){return t},o.round=function(t){return arguments.length?(l=!!t,e()):l},o.padding=function(t){return arguments.length?(f=d=Math.max(0,Math.min(1,t)),e()):f},o.paddingInner=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),e()):f},o.paddingOuter=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d},o.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),e()):p},o.copy=function(){return r().domain(a()).range(c).round(l).paddingInner(f).paddingOuter(d).align(p)},e()}function o(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return o(t())},e}function a(){return o(r().paddingInner(1))}t.a=r,t.b=a;var i=n(3),u=n(101)},function(e,t,n){"use strict";var r=n(91);t.a=function(e,t,n){var o,a,i,u,s=e.length,c=t.length,l=new Array(s*c);for(null==n&&(n=r.b),o=i=0;o<s;++o)for(u=e[o],a=0;a<c;++a,++i)l[i]=n(u,t[a]);return l}},function(e,t,n){"use strict";t.a=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}},function(e,t,n){"use strict";var r=n(95),o=n(89),a=n(176),i=n(94),u=n(177),s=n(96),c=n(97),l=n(98);t.a=function(){function e(e){var r,a,i=e.length,u=new Array(i);for(r=0;r<i;++r)u[r]=t(e[r],r,e);var l=n(u),d=l[0],p=l[1],h=f(u,d,p);Array.isArray(h)||(h=Object(c.c)(d,p,h),h=Object(s.a)(Math.ceil(d/h)*h,Math.floor(p/h)*h,h));for(var y=h.length;h[0]<=d;)h.shift(),--y;for(;h[y-1]>p;)h.pop(),--y;var v,b=new Array(y+1);for(r=0;r<=y;++r)v=b[r]=[],v.x0=r>0?h[r-1]:d,v.x1=r<y?h[r]:p;for(r=0;r<i;++r)a=u[r],d<=a&&a<=p&&b[Object(o.c)(h,a,0,y)].push(e[r]);return b}var t=u.a,n=i.a,f=l.a;return e.value=function(n){return arguments.length?(t="function"===typeof n?n:Object(a.a)(n),e):t},e.domain=function(t){return arguments.length?(n="function"===typeof t?t:Object(a.a)([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(f="function"===typeof t?t:Array.isArray(t)?Object(a.a)(r.b.call(t)):Object(a.a)(t),e):f},e}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(95),o=n(22),a=n(29),i=n(56);t.a=function(e,t,n){return e=r.a.call(e,a.a).sort(o.a),Math.ceil((n-t)/(2*(Object(i.a)(e,.75)-Object(i.a)(e,.25))*Math.pow(e.length,-1/3)))}},function(e,t,n){"use strict";var r=n(92);t.a=function(e,t,n){return Math.ceil((n-t)/(3.5*Object(r.a)(e)*Math.pow(e.length,-1/3)))}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<o;)null!=(n=e[a])&&n>r&&(r=n)}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<o;)null!=(n=t(e[a],a,e))&&n>r&&(r=n);return r}},function(e,t,n){"use strict";var r=n(29);t.a=function(e,t){var n,o=e.length,a=o,i=-1,u=0;if(null==t)for(;++i<o;)isNaN(n=Object(r.a)(e[i]))?--a:u+=n;else for(;++i<o;)isNaN(n=Object(r.a)(t(e[i],i,e)))?--a:u+=n;if(a)return u/a}},function(e,t,n){"use strict";var r=n(22),o=n(29),a=n(56);t.a=function(e,t){var n,i=e.length,u=-1,s=[];if(null==t)for(;++u<i;)isNaN(n=Object(o.a)(e[u]))||s.push(n);else for(;++u<i;)isNaN(n=Object(o.a)(t(e[u],u,e)))||s.push(n);return Object(a.a)(s.sort(r.a),.5)}},function(e,t,n){"use strict";t.a=function(e){for(var t,n,r,o=e.length,a=-1,i=0;++a<o;)i+=e[a].length;for(n=new Array(i);--o>=0;)for(r=e[o],t=r.length;--t>=0;)n[--i]=r[t];return n}},function(e,t,n){"use strict";t.a=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}},function(e,t,n){"use strict";var r=n(22);t.a=function(e,t){if(n=e.length){var n,o,a=0,i=0,u=e[i];for(null==t&&(t=r.a);++a<n;)(t(o=e[a],u)<0||0!==t(u,u))&&(u=o,i=a);return 0===t(u,u)?i:void 0}}},function(e,t,n){"use strict";t.a=function(e,t,n){for(var r,o,a=(null==n?e.length:n)-(t=null==t?0:+t);a;)o=Math.random()*a--|0,r=e[a+t],e[a+t]=e[o+t],e[o+t]=r;return e}},function(e,t,n){"use strict";t.a=function(e,t){var n,r=e.length,o=-1,a=0;if(null==t)for(;++o<r;)(n=+e[o])&&(a+=n);else for(;++o<r;)(n=+t(e[o],o,e))&&(a+=n);return a}},function(e,t,n){"use strict";var r=n(100);t.a=function(){return Object(r.a)(arguments)}},function(e,t,n){"use strict";function r(){return{}}function o(e,t,n){e[t]=n}function a(){return Object(u.a)()}function i(e,t,n){e.set(t,n)}var u=n(57);t.a=function(){function e(t,r,o,a){if(r>=l.length)return null!=n&&t.sort(n),null!=s?s(t):t;for(var i,c,f,d=-1,p=t.length,h=l[r++],y=Object(u.a)(),v=o();++d<p;)(f=y.get(i=h(c=t[d])+""))?f.push(c):y.set(i,[c]);return y.each(function(t,n){a(v,n,e(t,r,o,a))}),v}function t(e,n){if(++n>l.length)return e;var r,o=f[n-1];return null!=s&&n>=l.length?r=e.entries():(r=[],e.each(function(e,o){r.push({key:o,values:t(e,n)})})),null!=o?r.sort(function(e,t){return o(e.key,t.key)}):r}var n,s,c,l=[],f=[];return c={object:function(t){return e(t,0,r,o)},map:function(t){return e(t,0,a,i)},entries:function(n){return t(e(n,0,a,i),0)},key:function(e){return l.push(e),c},sortKeys:function(e){return f[l.length-1]=e,c},sortValues:function(e){return n=e,c},rollup:function(e){return s=e,c}}}},function(e,t,n){"use strict";function r(){}function o(e,t){var n=new r;if(e instanceof r)e.each(function(e){n.add(e)});else if(e){var o=-1,a=e.length;if(null==t)for(;++o<a;)n.add(e[o]);else for(;++o<a;)n.add(t(e[o],o,e))}return n}var a=n(57),i=a.a.prototype;r.prototype=o.prototype={constructor:r,has:i.has,add:function(e){return e+="",this[a.b+e]=e,this},remove:i.remove,clear:i.clear,values:i.keys,size:i.size,empty:i.empty,each:i.each},t.a=o},function(e,t,n){"use strict";t.a=function(e){var t=[];for(var n in e)t.push(n);return t}},function(e,t,n){"use strict";t.a=function(e){var t=[];for(var n in e)t.push(e[n]);return t}},function(e,t,n){"use strict";t.a=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t}},function(e,t,n){"use strict";function r(){function e(e){return+e}var t=[0,1];return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=o.a.call(n,i.a),e):t.slice()},e.copy=function(){return r().domain(t)},Object(a.b)(e)}t.a=r;var o=n(18),a=n(30),i=n(110)},function(e,t,n){"use strict";function r(e){if(e instanceof a)return new a(e.l,e.a,e.b,e.opacity);if(e instanceof d){var t=e.h*y.a;return new a(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof h.b||(e=Object(h.h)(e));var n=c(e.r),r=c(e.g),o=c(e.b),u=i((.4124564*n+.3575761*r+.1804375*o)/v),s=i((.2126729*n+.7151522*r+.072175*o)/b);return new a(116*s-16,500*(u-s),200*(s-i((.0193339*n+.119192*r+.9503041*o)/g)),e.opacity)}function o(e,t,n,o){return 1===arguments.length?r(e):new a(e,t,n,null==o?1:o)}function a(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function i(e){return e>O?Math.pow(e,1/3):e/_+m}function u(e){return e>w?e*e*e:_*(e-m)}function s(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function c(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function l(e){if(e instanceof d)return new d(e.h,e.c,e.l,e.opacity);e instanceof a||(e=r(e));var t=Math.atan2(e.b,e.a)*y.b;return new d(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function f(e,t,n,r){return 1===arguments.length?l(e):new d(e,t,n,null==r?1:r)}function d(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}t.a=o,t.b=f;var p=n(60),h=n(59),y=n(102),v=.95047,b=1,g=1.08883,m=4/29,w=6/29,_=3*w*w,O=w*w*w;Object(p.a)(a,o,Object(p.b)(h.a,{brighter:function(e){return new a(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new a(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=b*u(e),t=v*u(t),n=g*u(n),new h.b(s(3.2404542*t-1.5371385*e-.4985314*n),s(-.969266*t+1.8760108*e+.041556*n),s(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Object(p.a)(d,f,Object(p.b)(h.a,{brighter:function(e){return new d(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new d(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(e,t,n){"use strict";function r(e){if(e instanceof a)return new a(e.h,e.s,e.l,e.opacity);e instanceof u.b||(e=Object(u.h)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(v*r+h*t-y*n)/(v+h-y),i=r-o,c=(p*(n-o)-f*i)/d,l=Math.sqrt(c*c+i*i)/(p*o*(1-o)),b=l?Math.atan2(c,i)*s.b-120:NaN;return new a(b<0?b+360:b,l,o,e.opacity)}function o(e,t,n,o){return 1===arguments.length?r(e):new a(e,t,n,null==o?1:o)}function a(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}t.a=o;var i=n(60),u=n(59),s=n(102),c=-.14861,l=1.78277,f=-.29227,d=-.90649,p=1.97294,h=p*d,y=p*l,v=l*f-d*c;Object(i.a)(a,o,Object(i.b)(u.a,{brighter:function(e){return e=null==e?u.c:Math.pow(u.c,e),new a(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?u.d:Math.pow(u.d,e),new a(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*s.a,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new u.b(255*(t+n*(c*r+l*o)),255*(t+n*(f*r+d*o)),255*(t+n*(p*r)),this.opacity)}}))},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t-=e,function(n){return Math.round(e+t*n)}}},function(e,t,n){"use strict";function r(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}function i(e,r,a,i,u,s){if(e!==a||r!==i){var c=u.push("translate(",null,t,null,n);s.push({i:c-4,x:Object(o.a)(e,a)},{i:c-2,x:Object(o.a)(r,i)})}else(a||i)&&u.push("translate("+a+t+i+n)}function u(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Object(o.a)(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}function s(e,t,n,i){e!==t?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Object(o.a)(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}function c(e,t,n,r,i,u){if(e!==n||t!==r){var s=i.push(a(i)+"scale(",null,",",null,")");u.push({i:s-4,x:Object(o.a)(e,n)},{i:s-2,x:Object(o.a)(t,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}return function(t,n){var r=[],o=[];return t=e(t),n=e(n),i(t.translateX,t.translateY,n.translateX,n.translateY,r,o),u(t.rotate,n.rotate,r,o),s(t.skewX,n.skewX,r,o),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,o),t=n=null,function(e){for(var t,n=-1,a=o.length;++n<a;)r[(t=o[n]).i]=t.x(e);return r.join("")}}}var o=n(42),a=n(199);r(a.a,"px, ","px)","deg)"),r(a.b,", ",")",")")},function(e,t,n){"use strict";function r(e){return"none"===e?c.b:(a||(a=document.createElement("DIV"),i=document.documentElement,u=document.defaultView),a.style.transform=e,e=u.getComputedStyle(i.appendChild(a),null).getPropertyValue("transform"),i.removeChild(a),e=e.slice(7,-1).split(","),Object(c.a)(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function o(e){return null==e?c.b:(s||(s=document.createElementNS("http://www.w3.org/2000/svg","g")),s.setAttribute("transform",e),(e=s.transform.baseVal.consolidate())?(e=e.matrix,Object(c.a)(e.a,e.b,e.c,e.d,e.e,e.f)):c.b)}t.a=r,t.b=o;var a,i,u,s,c=n(200)},function(e,t,n){"use strict";n.d(t,"b",function(){return o});var r=180/Math.PI,o={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};t.a=function(e,t,n,o,a,i){var u,s,c;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(c=e*n+t*o)&&(n-=e*c,o-=t*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<t*n&&(e=-e,t=-t,c=-c,u=-u),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*r,skewX:Math.atan(c)*r,scaleX:u,scaleY:s}}},function(e,t,n){"use strict";Math.SQRT2},function(e,t,n){"use strict";function r(e){return function(t,n){var r=e((t=Object(o.d)(t)).h,(n=Object(o.d)(n)).h),i=Object(a.a)(t.s,n.s),u=Object(a.a)(t.l,n.l),s=Object(a.a)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=u(e),t.opacity=s(e),t+""}}}var o=n(15),a=n(31);r(a.c),r(a.a)},function(e,t,n){"use strict";n(15),n(31)},function(e,t,n){"use strict";function r(e){return function(t,n){var r=e((t=Object(o.c)(t)).h,(n=Object(o.c)(n)).h),i=Object(a.a)(t.c,n.c),u=Object(a.a)(t.l,n.l),s=Object(a.a)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=u(e),t.opacity=s(e),t+""}}}var o=n(15),a=n(31);r(a.c),r(a.a)},function(e,t,n){"use strict";function r(e){return function t(n){function r(t,r){var i=e((t=Object(o.b)(t)).h,(r=Object(o.b)(r)).h),u=Object(a.a)(t.s,r.s),s=Object(a.a)(t.l,r.l),c=Object(a.a)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=u(e),t.l=s(Math.pow(e,n)),t.opacity=c(e),t+""}}return n=+n,r.gamma=t,r}(1)}n.d(t,"a",function(){return i});var o=n(15),a=n(31),i=(r(a.c),r(a.a))},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(3),o=n(11);t.a=function(e,t,n){var a,i=e[0],u=e[e.length-1],s=Object(r.tickStep)(i,u,null==t?10:t);switch(n=Object(o.formatSpecifier)(null==n?",f":n),n.type){case"s":var c=Math.max(Math.abs(i),Math.abs(u));return null!=n.precision||isNaN(a=Object(o.precisionPrefix)(s,c))||(n.precision=a),Object(o.formatPrefix)(n,c);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=Object(o.precisionRound)(s,Math.max(Math.abs(i),Math.abs(u))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=Object(o.precisionFixed)(s))||(n.precision=a-2*("%"===n.type))}return Object(o.format)(n)}},function(e,t,n){"use strict";function r(e){return o=Object(u.a)(e),a=o.format,i=o.formatPrefix,o}n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),t.a=r;var o,a,i,u=n(111);r({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},function(e,t,n){"use strict";t.a=function(e,t){return function(n,r){for(var o=n.length,a=[],i=0,u=e[0],s=0;o>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(n.substring(o-=u,o+u)),!((s+=u+1)>r));)u=e[i=(i+1)%e.length];return a.reverse().join(t)}}},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}},function(e,t,n){"use strict";t.a=function(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,a=-1;o<r;++o)switch(e[o]){case".":a=n=o;break;case"0":0===a&&(a=o),n=o;break;case"e":break e;default:a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(n+1):e}},function(e,t,n){"use strict";var r=n(63);t.a=function(e,t){var n=Object(r.a)(e,t);if(!n)return e+"";var o=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+o:o.length>a+1?o.slice(0,a+1)+"."+o.slice(a+1):o+new Array(a-o.length+2).join("0")}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(44);t.a=function(e){return Math.max(0,-Object(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(44);t.a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(t)/3)))-Object(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(44);t.a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Object(r.a)(t)-Object(r.a)(e))+1}},function(e,t,n){"use strict";function r(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:Object(d.a)(t)}function o(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function a(e){return isFinite(e)?+("1e"+e):e<0?0:e}function i(e){return 10===e?a:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function u(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function s(e){return function(t){return-e(-t)}}function c(){function e(){return d=u(a),y=i(a),n()[0]<0&&(d=s(d),y=s(y)),t}var t=Object(h.b)(r,o).domain([1,10]),n=t.domain,a=10,d=u(10),y=i(10);return t.base=function(t){return arguments.length?(a=+t,e()):a},t.domain=function(t){return arguments.length?(n(t),e()):n()},t.ticks=function(e){var t,r=n(),o=r[0],i=r[r.length-1];(t=i<o)&&(f=o,o=i,i=f);var u,s,c,f=d(o),p=d(i),h=null==e?10:+e,v=[];if(!(a%1)&&p-f<h){if(f=Math.round(f)-1,p=Math.round(p)+1,o>0){for(;f<p;++f)for(s=1,u=y(f);s<a;++s)if(!((c=u*s)<o)){if(c>i)break;v.push(c)}}else for(;f<p;++f)for(s=a-1,u=y(f);s>=1;--s)if(!((c=u*s)<o)){if(c>i)break;v.push(c)}}else v=Object(l.ticks)(f,p,Math.min(p-f,h)).map(y);return t?v.reverse():v},t.tickFormat=function(e,n){if(null==n&&(n=10===a?".0e":","),"function"!==typeof n&&(n=Object(f.format)(n)),e===1/0)return n;null==e&&(e=10);var r=Math.max(1,a*e/t.ticks().length);return function(e){var t=e/y(Math.round(d(e)));return t*a<a-.5&&(t*=a),t<=r?n(e):""}},t.nice=function(){return n(Object(p.a)(n(),{floor:function(e){return y(Math.floor(d(e)))},ceil:function(e){return y(Math.ceil(d(e)))}}))},t.copy=function(){return Object(h.a)(t,c().base(a))},t}t.a=c;var l=n(3),f=n(11),d=n(62),p=n(115),h=n(43)},function(e,t,n){"use strict";function r(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function o(){function e(e,t){return(t=r(t,n)-(e=r(e,n)))?function(o){return(r(o,n)-e)/t}:Object(i.a)(t)}function t(e,t){return t=r(t,n)-(e=r(e,n)),function(o){return r(e+t*o,1/n)}}var n=1,a=Object(s.b)(e,t),c=a.domain;return a.exponent=function(e){return arguments.length?(n=+e,c(c())):n},a.copy=function(){return Object(s.a)(a,o().exponent(n))},Object(u.b)(a)}function a(){return o().exponent(.5)}t.a=o,t.b=a;var i=n(62),u=n(30),s=n(43)},function(e,t,n){"use strict";function r(){function e(){var e=0,r=Math.max(1,i.length);for(u=new Array(r-1);++e<r;)u[e-1]=Object(o.quantile)(n,e/r);return t}function t(e){if(!isNaN(e=+e))return i[Object(o.bisect)(u,e)]}var n=[],i=[],u=[];return t.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:[t>0?u[t-1]:n[0],t<u.length?u[t]:n[n.length-1]]},t.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var r,a=0,i=t.length;a<i;++a)null==(r=t[a])||isNaN(r=+r)||n.push(r);return n.sort(o.ascending),e()},t.range=function(t){return arguments.length?(i=a.b.call(t),e()):i.slice()},t.quantiles=function(){return u.slice()},t.copy=function(){return r().domain(n).range(i)},t}t.a=r;var o=n(3),a=n(18)},function(e,t,n){"use strict";function r(){function e(e){if(e<=e)return l[Object(o.bisect)(c,e,0,s)]}function t(){var t=-1;for(c=new Array(s);++t<s;)c[t]=((t+1)*u-(t-s)*n)/(s+1);return e}var n=0,u=1,s=1,c=[.5],l=[0,1];return e.domain=function(e){return arguments.length?(n=+e[0],u=+e[1],t()):[n,u]},e.range=function(e){return arguments.length?(s=(l=a.b.call(e)).length-1,t()):l.slice()},e.invertExtent=function(e){var t=l.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,c[0]]:t>=s?[c[s-1],u]:[c[t-1],c[t]]},e.copy=function(){return r().domain([n,u]).range(l)},Object(i.b)(e)}t.a=r;var o=n(3),a=n(18),i=n(30)},function(e,t,n){"use strict";function r(){function e(e){if(e<=e)return n[Object(o.bisect)(t,e,0,i)]}var t=[.5],n=[0,1],i=1;return e.domain=function(r){return arguments.length?(t=a.b.call(r),i=Math.min(t.length,n.length-1),e):t.slice()},e.range=function(r){return arguments.length?(n=a.b.call(r),i=Math.min(t.length,n.length-1),e):n.slice()},e.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},e.copy=function(){return r().domain(t).range(n)},e}t.a=r;var o=n(3),a=n(18)},function(e,t,n){"use strict";var r=n(10),o=Object(r.a)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Object(r.a)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):o:null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){e.setTime(Math.floor(e/o.d)*o.d)},function(e,t){e.setTime(+e+t*o.d)},function(e,t){return(t-e)/o.d},function(e){return e.getUTCSeconds()});t.a=a;a.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){e.setTime(Math.floor(e/o.c)*o.c)},function(e,t){e.setTime(+e+t*o.c)},function(e,t){return(t-e)/o.c},function(e){return e.getMinutes()});t.a=a;a.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){var t=e.getTimezoneOffset()*o.c%o.b;t<0&&(t+=o.b),e.setTime(Math.floor((+e-t)/o.b)*o.b+t)},function(e,t){e.setTime(+e+t*o.b)},function(e,t){return(t-e)/o.b},function(e){return e.getHours()});t.a=a;a.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.c)/o.a},function(e){return e.getDate()-1});t.a=a;a.range},function(e,t,n){"use strict";function r(e){return Object(o.a)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.c)/a.e})}n.d(t,"b",function(){return i}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return l});var o=n(10),a=n(14),i=r(0),u=r(1),s=r(2),c=r(3),l=r(4),f=r(5),d=r(6);i.range,u.range,s.range,c.range,l.range,f.range,d.range},function(e,t,n){"use strict";var r=n(10),o=Object(r.a)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()});t.a=o;o.range},function(e,t,n){"use strict";var r=n(10),o=Object(r.a)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.a=o;o.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*o.c)},function(e,t){return(t-e)/o.c},function(e){return e.getUTCMinutes()});t.a=a;a.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*o.b)},function(e,t){return(t-e)/o.b},function(e){return e.getUTCHours()});t.a=a;a.range},function(e,t,n){"use strict";var r=n(10),o=n(14),a=Object(r.a)(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/o.a},function(e){return e.getUTCDate()-1});t.a=a;a.range},function(e,t,n){"use strict";function r(e){return Object(o.a)(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/a.e})}n.d(t,"b",function(){return i}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return l});var o=n(10),a=n(14),i=r(0),u=r(1),s=r(2),c=r(3),l=r(4),f=r(5),d=r(6);i.range,u.range,s.range,c.range,l.range,f.range,d.range},function(e,t,n){"use strict";var r=n(10),o=Object(r.a)(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()});t.a=o;o.range},function(e,t,n){"use strict";var r=n(10),o=Object(r.a)(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.a=o;o.range},function(e,t,n){"use strict";function r(e){var t=new Date(e);return isNaN(t)?null:t}var o=n(118),a=n(64),i=+new Date("2000-01-01T00:00:00.000Z")?r:Object(a.e)(o.b);t.a=i},function(e,t,n){"use strict";var r=n(116),o=n(24),a=n(45);t.a=function(){return Object(r.a)(a.v,a.q,a.u,a.l,a.m,a.o,a.r,a.n,o.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}},function(e,t,n){"use strict";var r=n(32);t.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(e,t,n){"use strict";var r=n(32);t.a=Object(r.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(e,t,n){"use strict";var r=n(32);t.a=Object(r.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(e,t,n){"use strict";var r=n(32);t.a=Object(r.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(e,t,n){"use strict";var r=n(15),o=n(23);t.a=Object(o.b)(Object(r.b)(300,.5,0),Object(r.b)(-240,.5,1))},function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return i});var r=n(15),o=n(23),a=Object(o.b)(Object(r.b)(-100,.75,.35),Object(r.b)(80,1.5,.8)),i=Object(o.b)(Object(r.b)(260,.75,.35),Object(r.b)(80,1.5,.8)),u=Object(r.b)();t.b=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return u.h=360*e-100,u.s=1.5-1.5*t,u.l=.8-.9*t,u+""}},function(e,t,n){"use strict";function r(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}n.d(t,"c",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return u});var o=n(32);t.a=r(Object(o.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var a=r(Object(o.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),i=r(Object(o.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),u=r(Object(o.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(e,t,n){"use strict";function r(e){function t(t){var r=(t-n)/(a-n);return e(i?Math.max(0,Math.min(1,r)):r)}var n=0,a=1,i=!1;return t.domain=function(e){return arguments.length?(n=+e[0],a=+e[1],t):[n,a]},t.clamp=function(e){return arguments.length?(i=!!e,t):i},t.interpolator=function(n){return arguments.length?(e=n,t):e},t.copy=function(){return r(e).domain([n,a]).clamp(i)},Object(o.b)(t)}t.a=r;var o=n(30)},function(e,t,n){"use strict";var r=n(247);n.d(t,"b",function(){return r.a});var o=n(121);n.d(t,"a",function(){return o.a});n(293),n(128),n(294),n(295)},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){return!A.every(function(n){return Object(x.z)(e[n],t[n])})}function s(e){var t="\n\t.react-stockcharts-avoid-interaction {\n\t\tpointer-events: none;\n\t}\n\t.react-stockcharts-enable-interaction {\n\t\tpointer-events: all;\n\t}\n\t.react-stockcharts-tooltip {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}\n\t.react-stockcharts-default-cursor {\n\t\tcursor: default;\n\t}\n\t.react-stockcharts-move-cursor {\n\t\tcursor: move;\n\t}\n\t.react-stockcharts-pointer-cursor {\n\t\tcursor: pointer;\n\t}\n\t.react-stockcharts-ns-resize-cursor {\n\t\tcursor: ns-resize;\n\t}\n\t.react-stockcharts-ew-resize-cursor {\n\t\tcursor: ew-resize;\n\t}";return m.a.createElement("style",{type:"text/css"},e?"\n\t.react-stockcharts-grabbing-cursor {\n\t\tpointer-events: all;\n\t\tcursor: -moz-grabbing;\n\t\tcursor: -webkit-grabbing;\n\t\tcursor: grabbing;\n\t}\n\t.react-stockcharts-crosshair-cursor {\n\t\tpointer-events: all;\n\t\tcursor: crosshair;\n\t}\n\t.react-stockcharts-tooltip-hover {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}"+t:t)}function c(e){return{height:e.height-e.margin.top-e.margin.bottom,width:e.width-e.margin.left-e.margin.right}}function l(e){return e?-1:1}function f(e){var t=e.data,n=e.plotFull,r=e.xScale,o=e.clamp,a=e.pointsPerPxThreshold,i=e.xAccessor,u=e.displayXAccessor,s=e.minPointsPerPxThreshold,c=Object(x.r)(n)?n:i===x.q,l=Object(E.a)({xAccessor:i,xScale:r,useWholeData:c,clamp:o,pointsPerPxThreshold:a,minPointsPerPxThreshold:s});return{xAccessor:i,displayXAccessor:u||i,xScale:r,fullData:t,filterData:l}}function d(e){var t=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],h(e)),n=t.xAccessor,r=t.displayXAccessor,o=t.fullData,a=t.plotData,i=t.xScale,u=e.postCalculator,s=e.children,l=u(a),f=c(e),d=Object(C.a)(Object(C.d)(f,s),{plotData:l,xAccessor:n,displayXAccessor:r,fullData:o},i.domain());return M({},t,{xScale:i,plotData:l,chartConfig:d})}function p(e,t,n,r){var o=e.fullData,a=e.xScale,i=e.xAccessor,u=e.displayXAccessor,s=e.filterData,f=Object(x.u)(o),d=t.domain(),p=T(d,2),h=p[0],v=p[1],b=n.postCalculator,g=n.children,m=n.padding,w=n.flipXScale,_=l(w),O=c(n),k=y(a,O,m,_),P=void 0;if(!r||v>=i(f))P=s(o,[h,v],i,k).plotData,k.domain([h,v]);else if(r&&v<i(f)){var S=t(i(f))-t.range()[1],E=t.range().map(function(e){return e+S}).map(t.invert),j=T(E,2),M=j[0],A=j[1];P=s(o,[M,A],i,k).plotData,k.domain([M,A])}var D=b(P);return{xScale:k,xAccessor:i,chartConfig:Object(C.a)(Object(C.d)(O,g),{plotData:D,xAccessor:i,displayXAccessor:u,fullData:o},k.domain()),plotData:D,fullData:o,filterData:s}}function h(e){var t=e.xAccessor,n=e.xExtents,r=e.data,o=e.padding,a=e.flipXScale,i=l(a),u=c(e),s="function"===typeof n?n(r):Object(O.extent)(n.map(function(e){return Object(x.j)(e)}).map(function(e){return e(r,t)})),d=f(e),p=d.xAccessor,h=d.displayXAccessor,v=d.xScale,b=d.fullData,g=d.filterData,m=y(v,u,o,i),w=g(b,s,t,m),_=w.plotData,k=w.domain;return{plotData:_,xScale:m.domain(k),xAccessor:p,displayXAccessor:h,fullData:b,filterData:g}}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e.rangeRoundPoints){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");e.rangeRoundPoints([0,t.width],n)}else if(e.padding){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");e.range([0,t.width]),e.padding(n/2)}else{var o=isNaN(n)?n:{left:n,right:n},a=o.left,i=o.right;r>0?e.range([a,t.width-i]):e.range([t.width-i,a])}return e}function v(e){var t=e.touch1Pos,n=e.touch2Pos;return{topLeft:[Math.min(t[0],n[0]),Math.min(t[1],n[1])],bottomRight:[Math.max(t[0],n[0]),Math.max(t[1],n[1])]}}function b(e,t,n){return!isNaN(e(t(Object(x.i)(n))))&&Object(x.r)(e.invert)}var g=n(1),m=n.n(g),w=n(2),_=n.n(w),O=n(3),x=n(9),k=n(255),C=n(66),P=n(257),S=n(291),E=n(292),j=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A=(Object(x.m)("ChartCanvas"),["seriesName"]),D=function(e){function t(){o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.getDataInfo=e.getDataInfo.bind(e),e.getCanvasContexts=e.getCanvasContexts.bind(e),e.handleMouseMove=e.handleMouseMove.bind(e),e.handleMouseEnter=e.handleMouseEnter.bind(e),e.handleMouseLeave=e.handleMouseLeave.bind(e),e.handleZoom=e.handleZoom.bind(e),e.handlePinchZoom=e.handlePinchZoom.bind(e),e.handlePinchZoomEnd=e.handlePinchZoomEnd.bind(e),e.handlePan=e.handlePan.bind(e),e.handlePanEnd=e.handlePanEnd.bind(e),e.handleClick=e.handleClick.bind(e),e.handleMouseDown=e.handleMouseDown.bind(e),e.handleDoubleClick=e.handleDoubleClick.bind(e),e.handleContextMenu=e.handleContextMenu.bind(e),e.handleDragStart=e.handleDragStart.bind(e),e.handleDrag=e.handleDrag.bind(e),e.handleDragEnd=e.handleDragEnd.bind(e),e.panHelper=e.panHelper.bind(e),e.pinchZoomHelper=e.pinchZoomHelper.bind(e),e.xAxisZoom=e.xAxisZoom.bind(e),e.yAxisZoom=e.yAxisZoom.bind(e),e.resetYDomain=e.resetYDomain.bind(e),e.calculateStateForDomain=e.calculateStateForDomain.bind(e),e.generateSubscriptionId=e.generateSubscriptionId.bind(e),e.draw=e.draw.bind(e),e.redraw=e.redraw.bind(e),e.getAllPanConditions=e.getAllPanConditions.bind(e),e.subscriptions=[],e.subscribe=e.subscribe.bind(e),e.unsubscribe=e.unsubscribe.bind(e),e.amIOnTop=e.amIOnTop.bind(e),e.saveEventCaptureNode=e.saveEventCaptureNode.bind(e),e.saveCanvasContainerNode=e.saveCanvasContainerNode.bind(e),e.setCursorClass=e.setCursorClass.bind(e),e.getMutableState=e.getMutableState.bind(e),e.interactiveState=[],e.panInProgress=!1,e.state={},e.mutableState={},e.lastSubscriptionId=0,e}return i(t,e),j(t,[{key:"saveEventCaptureNode",value:function(e){this.eventCaptureNode=e}},{key:"saveCanvasContainerNode",value:function(e){this.canvasContainerNode=e}},{key:"getMutableState",value:function(){return this.mutableState}},{key:"getDataInfo",value:function(){return M({},this.state,{fullData:this.fullData})}},{key:"getCanvasContexts",value:function(){if(this.canvasContainerNode)return this.canvasContainerNode.getCanvasContexts()}},{key:"generateSubscriptionId",value:function(){return++this.lastSubscriptionId}},{key:"clearBothCanvas",value:function(){var e=this.getCanvasContexts();e&&e.axes&&Object(x.g)([e.axes,e.mouseCoord],this.props.ratio)}},{key:"clearMouseCanvas",value:function(){var e=this.getCanvasContexts();e&&e.mouseCoord&&Object(x.g)([e.mouseCoord],this.props.ratio)}},{key:"clearThreeCanvas",value:function(){var e=this.getCanvasContexts();e&&e.axes&&Object(x.g)([e.axes,e.mouseCoord,e.bg],this.props.ratio)}},{key:"subscribe",value:function(e,t){var n=t.getPanConditions,r=void 0===n?Object(x.j)({draggable:!1,panEnabled:!0}):n;this.subscriptions=this.subscriptions.concat(M({id:e},t,{getPanConditions:r}))}},{key:"unsubscribe",value:function(e){this.subscriptions=this.subscriptions.filter(function(t){return t.id!==e})}},{key:"getAllPanConditions",value:function(){return this.subscriptions.map(function(e){return e.getPanConditions()})}},{key:"setCursorClass",value:function(e){this.eventCaptureNode.setCursorClass(e)}},{key:"amIOnTop",value:function(e){var t=this.subscriptions.filter(function(e){return e.getPanConditions().draggable});return t.length>0&&Object(x.u)(t).id===e}},{key:"handleContextMenu",value:function(e,t){var n=this.state,r=n.xAccessor,o=n.chartConfig,a=n.plotData,i=n.xScale,u=Object(C.b)(o,e),s=Object(C.c)(i,r,e,a);this.triggerEvent("contextmenu",{mouseXY:e,currentItem:s,currentCharts:u},t)}},{key:"calculateStateForDomain",value:function(e){var t=this.state,n=t.xAccessor,r=t.displayXAccessor,o=t.xScale,a=t.chartConfig,i=t.plotData,u=this.state.filterData,s=this.fullData,c=this.props.postCalculator,l=u(s,e,n,o,i,o.domain()),f=l.plotData,d=l.domain,p=c(f),h=o.copy().domain(d);return{xScale:h,plotData:p,chartConfig:Object(C.a)(a,{plotData:p,xAccessor:n,displayXAccessor:r,fullData:s},h.domain())}}},{key:"pinchZoomHelper",value:function(e,t){var n=e.xScale,r=this.state,o=r.xScale,a=r.chartConfig,i=r.plotData,u=r.xAccessor,s=r.displayXAccessor,c=this.state.filterData,l=this.fullData,f=this.props.postCalculator,d=v(e),p=d.topLeft,h=d.bottomRight,y=v(t),b=y.topLeft,g=y.bottomRight,m=n.range()[1],w=Math.round(-(h[0]*b[0]-p[0]*g[0])/(p[0]-h[0])),_=Math.round(m+((m-h[0])*(m-b[0])-(m-p[0])*(m-g[0]))/(m-p[0]-(m-h[0]))),O=Math.round(-w*p[0]/(-w+b[0])),x=Math.round(m-(_-m)*(m-p[0])/(_+(m-b[0]))),k=[O,x].map(n.invert),P=c(l,k,u,n,i,o.domain()),S=P.plotData,E=P.domain,j=f(S),T=o.copy().domain(E),M=t.touch1Pos;return{chartConfig:Object(C.a)(a,{plotData:j,xAccessor:u,displayXAccessor:s,fullData:l},T.domain()),xScale:T,plotData:j,mouseXY:M,currentItem:Object(C.c)(T,u,M,j)}}},{key:"cancelDrag",value:function(){this.eventCaptureNode.cancelDrag(),this.triggerEvent("dragcancel")}},{key:"handlePinchZoom",value:function(e,t,n){var r=this;if(!this.waitingForAnimationFrame){this.waitingForAnimationFrame=!0;var o=this.pinchZoomHelper(e,t);this.triggerEvent("pinchzoom",o,n),this.finalPinch=t,requestAnimationFrame(function(){r.clearBothCanvas(),r.draw({trigger:"pinchzoom"}),r.waitingForAnimationFrame=!1})}}},{key:"handlePinchZoomEnd",value:function(e,t){var n=this.state.xAccessor;if(this.finalPinch){var r=this.pinchZoomHelper(e,this.finalPinch),o=r.xScale;this.triggerEvent("pinchzoom",r,t),this.finalPinch=null,this.clearThreeCanvas();var a=this.fullData,i=Object(x.i)(a),u=Object(x.i)(o.domain()),s=n(i),c=this.props.onLoadMore;this.setState(r,function(){u<s&&c(u,s)})}}},{key:"handleZoom",value:function(e,t,n){if(!this.panInProgress){var r=this.state,o=r.xAccessor,a=r.xScale,i=r.plotData,u=this.props,s=u.zoomMultiplier,c=u.zoomAnchor,l=this.fullData,f=c({xScale:a,xAccessor:o,mouseXY:t,plotData:i,fullData:l}),d=a(f),p=e>0?1*s:1/s,h=a.range().map(function(e){return d+(e-d)*p}).map(a.invert),y=this.calculateStateForDomain(h),v=y.xScale,b=y.plotData,g=y.chartConfig,m=Object(C.c)(v,o,t,b),w=Object(C.b)(g,t);this.clearThreeCanvas();var _=Object(x.i)(l),O=Object(x.i)(v.domain()),k=o(_),P=this.props.onLoadMore;this.mutableState={mouseXY:t,currentItem:m,currentCharts:w},this.triggerEvent("zoom",{xScale:v,plotData:b,chartConfig:g,mouseXY:t,currentCharts:w,currentItem:m,show:!0},n),this.setState({xScale:v,plotData:b,chartConfig:g},function(){O<k&&P(O,k)})}}},{key:"xAxisZoom",value:function(e){var t=this.calculateStateForDomain(e),n=t.xScale,r=t.plotData,o=t.chartConfig;this.clearThreeCanvas();var a=this.state.xAccessor,i=this.fullData,u=Object(x.i)(i),s=Object(x.i)(n.domain()),c=a(u),l=this.props.onLoadMore;this.setState({xScale:n,plotData:r,chartConfig:o},function(){s<c&&l(s,c)})}},{key:"yAxisZoom",value:function(e,t){this.clearThreeCanvas();var n=this.state.chartConfig,r=n.map(function(n){if(n.id===e){var r=n.yScale;return M({},n,{yScale:r.copy().domain(t),yPanEnabled:!0})}return n});this.setState({chartConfig:r})}},{key:"triggerEvent",value:function(e,t,n){var r=this;this.subscriptions.forEach(function(o){var a=M({},r.state,{fullData:r.fullData,subscriptions:r.subscriptions});o.listener(e,t,a,n)})}},{key:"draw",value:function(e){this.subscriptions.forEach(function(t){Object(x.r)(t.draw)&&t.draw(e)})}},{key:"redraw",value:function(){this.clearThreeCanvas(),this.draw({force:!0})}},{key:"panHelper",value:function(e,t,n,r){var o=this.state,a=o.xAccessor,i=o.displayXAccessor,u=o.chartConfig,s=this.state.filterData,c=this.fullData,l=this.props.postCalculator,f=e[0]-n[0],d=e[1]-n[1];if(Object(x.s)(t.invert))throw new Error("xScale provided does not have an invert() method.You are likely using an ordinal scale. This scale does not support zoom, pan");var p=t.range().map(function(e){return e-f}).map(t.invert),h=s(c,p,a,t,this.hackyWayToStopPanBeyondBounds__plotData,this.hackyWayToStopPanBeyondBounds__domain),y=h.plotData,v=h.domain,b=t.copy().domain(v),g=l(y),m=Object(C.c)(b,a,e,g),w=Object(C.a)(u,{plotData:g,xAccessor:a,displayXAccessor:i,fullData:c},b.domain(),d,r);return{xScale:b,plotData:g,chartConfig:w,mouseXY:e,currentCharts:Object(C.b)(w,e),currentItem:m}}},{key:"handlePan",value:function(e,t,n,r,o){var a=this;if(!this.waitingForPanAnimationFrame){this.waitingForPanAnimationFrame=!0,this.hackyWayToStopPanBeyondBounds__plotData=this.hackyWayToStopPanBeyondBounds__plotData||this.state.plotData,this.hackyWayToStopPanBeyondBounds__domain=this.hackyWayToStopPanBeyondBounds__domain||this.state.xScale.domain();var i=this.panHelper(e,t,n,r);this.hackyWayToStopPanBeyondBounds__plotData=i.plotData,this.hackyWayToStopPanBeyondBounds__domain=i.xScale.domain(),this.panInProgress=!0,this.triggerEvent("pan",i,o),this.mutableState={mouseXY:i.mouseXY,currentItem:i.currentItem,currentCharts:i.currentCharts},requestAnimationFrame(function(){a.waitingForPanAnimationFrame=!1,a.clearBothCanvas(),a.draw({trigger:"pan"})})}}},{key:"handleMouseDown",value:function(e,t,n){this.triggerEvent("mousedown",this.mutableState,n)}},{key:"handleMouseEnter",value:function(e){this.triggerEvent("mouseenter",{show:!0},e)}},{key:"handleMouseMove",value:function(e,t,n){var r=this;if(!this.waitingForAnimationFrame){this.waitingForAnimationFrame=!0;var o=this.state,a=o.chartConfig,i=o.plotData,u=o.xScale,s=o.xAccessor,c=Object(C.b)(a,e),l=Object(C.c)(u,s,e,i);this.triggerEvent("mousemove",{show:!0,mouseXY:e,prevMouseXY:this.prevMouseXY,currentItem:l,currentCharts:c},n),this.prevMouseXY=e,this.mutableState={mouseXY:e,currentItem:l,currentCharts:c},requestAnimationFrame(function(){r.clearMouseCanvas(),r.draw({trigger:"mousemove"}),r.waitingForAnimationFrame=!1})}}},{key:"handleMouseLeave",value:function(e){this.triggerEvent("mouseleave",{show:!1},e),this.clearMouseCanvas(),this.draw({trigger:"mouseleave"})}},{key:"handleDragStart",value:function(e,t){var n=e.startPos;this.triggerEvent("dragstart",{startPos:n},t)}},{key:"handleDrag",value:function(e,t){var n=this,r=e.startPos,o=e.mouseXY,a=this.state,i=a.chartConfig,u=a.plotData,s=a.xScale,c=a.xAccessor,l=Object(C.b)(i,o),f=Object(C.c)(s,c,o,u);this.triggerEvent("drag",{startPos:r,mouseXY:o,currentItem:f,currentCharts:l},t),this.mutableState={mouseXY:o,currentItem:f,currentCharts:l},requestAnimationFrame(function(){n.clearMouseCanvas(),n.draw({trigger:"drag"})})}},{key:"handleDragEnd",value:function(e,t){var n=this,r=e.mouseXY;this.triggerEvent("dragend",{mouseXY:r},t),requestAnimationFrame(function(){n.clearMouseCanvas(),n.draw({trigger:"dragend"})})}},{key:"handleClick",value:function(e,t){var n=this;this.triggerEvent("click",this.mutableState,t),requestAnimationFrame(function(){n.clearMouseCanvas(),n.draw({trigger:"click"})})}},{key:"handleDoubleClick",value:function(e,t){this.triggerEvent("dblclick",{},t)}},{key:"handlePanEnd",value:function(e,t,n,r,o){var a=this,i=this.panHelper(e,t,n,r);this.hackyWayToStopPanBeyondBounds__plotData=null,this.hackyWayToStopPanBeyondBounds__domain=null,this.panInProgress=!1;var u=i.xScale,s=i.plotData,c=i.chartConfig;this.triggerEvent("panend",i,o),requestAnimationFrame(function(){var e=a.state.xAccessor,t=a.fullData,n=Object(x.i)(t),r=Object(x.i)(u.domain()),o=e(n),i=a.props.onLoadMore;a.clearThreeCanvas(),a.setState({xScale:u,plotData:s,chartConfig:c},function(){r<o&&i(r,o)})})}},{key:"getChildContext",value:function(){var e=c(this.props);return{fullData:this.fullData,plotData:this.state.plotData,width:e.width,height:e.height,chartConfig:this.state.chartConfig,xScale:this.state.xScale,xAccessor:this.state.xAccessor,displayXAccessor:this.state.displayXAccessor,chartCanvasType:this.props.type,margin:this.props.margin,ratio:this.props.ratio,xAxisZoom:this.xAxisZoom,yAxisZoom:this.yAxisZoom,getCanvasContexts:this.getCanvasContexts,redraw:this.redraw,subscribe:this.subscribe,unsubscribe:this.unsubscribe,generateSubscriptionId:this.generateSubscriptionId,getMutableState:this.getMutableState,amIOnTop:this.amIOnTop,setCursorClass:this.setCursorClass}}},{key:"componentWillMount",value:function(){var e=d(this.props,!0),t=e.fullData,n=r(e,["fullData"]);this.setState(n),this.fullData=t}},{key:"componentWillReceiveProps",value:function(e){var t=u(this.props,e),n=b(this.state.xScale,this.state.xAccessor,this.state.plotData),o=void 0;if(n&&!t&&Object(x.z)(this.props.xExtents,e.xExtents)){var a=this.state.xScale.domain(),i=T(a,2),s=i[0],c=i[1],l=Object(x.u)(this.fullData),h=f(e),y=h.xAccessor,v=y(l)<=c&&y(l)>=s;o=p(h,this.state.xScale,e,v)}else o=d(e);var g=o,m=g.fullData,w=r(g,["fullData"]),_=this.state.chartConfig;this.panInProgress||(t||w.chartConfig.forEach(function(e){var t=_.filter(function(t){return t.id===e.id});t.length>0&&t[0].yPanEnabled&&(e.yScale.domain(t[0].yScale.domain()),e.yPanEnabled=t[0].yPanEnabled)}),this.clearThreeCanvas(),this.setState(w)),this.fullData=m}},{key:"resetYDomain",value:function(e){var t=this.state.chartConfig,n=!1,r=t.map(function(t){return!Object(x.s)(e)&&t.id!==e||Object(x.z)(t.yScale.domain(),t.realYDomain)?t:(n=!0,M({},t,{yScale:t.yScale.domain(t.realYDomain),yPanEnabled:!1}))});n&&(this.clearThreeCanvas(),this.setState({chartConfig:r}))}},{key:"shouldComponentUpdate",value:function(){return!this.panInProgress}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.height,r=e.width,o=e.margin,a=e.className,i=e.zIndex,u=e.defaultFocus,l=e.ratio,f=e.mouseMoveEvent,d=e.panEvent,p=e.zoomEvent,h=this.props,y=h.useCrossHairStyleCursor,v=h.onSelect,g=this.state,w=g.plotData,_=g.xScale,O=g.xAccessor,x=g.chartConfig,k=c(this.props),C=b(_,O,w),E=s(y&&C);return m.a.createElement("div",{style:{position:"relative",width:r,height:n},className:a,onClick:v},m.a.createElement(S.a,{ref:this.saveCanvasContainerNode,type:t,ratio:l,width:r,height:n,zIndex:i}),m.a.createElement("svg",{className:a,width:r,height:n,style:{position:"absolute",zIndex:i+5}},E,m.a.createElement("defs",null,m.a.createElement("clipPath",{id:"chart-area-clip"},m.a.createElement("rect",{x:"0",y:"0",width:k.width,height:k.height})),x.map(function(e,t){return m.a.createElement("clipPath",{key:t,id:"chart-area-clip-"+e.id},m.a.createElement("rect",{x:"0",y:"0",width:e.width,height:e.height}))})),m.a.createElement("g",{transform:"translate("+(o.left+.5)+", "+(o.top+.5)+")"},m.a.createElement(P.a,{ref:this.saveEventCaptureNode,mouseMove:f&&C,zoom:p&&C,pan:d&&C,width:k.width,height:k.height,chartConfig:x,xScale:_,xAccessor:O,focus:u,getAllPanConditions:this.getAllPanConditions,onContextMenu:this.handleContextMenu,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onDragStart:this.handleDragStart,onDrag:this.handleDrag,onDragComplete:this.handleDragEnd,onZoom:this.handleZoom,onPinchZoom:this.handlePinchZoom,onPinchZoomEnd:this.handlePinchZoomEnd,onPan:this.handlePan,onPanEnd:this.handlePanEnd}),m.a.createElement("g",{className:"react-stockcharts-avoid-interaction"},this.props.children))))}}]),t}(g.Component);D.propTypes={width:_.a.number.isRequired,height:_.a.number.isRequired,margin:_.a.object,ratio:_.a.number.isRequired,type:_.a.oneOf(["svg","hybrid"]),pointsPerPxThreshold:_.a.number,minPointsPerPxThreshold:_.a.number,data:_.a.array.isRequired,xAccessor:_.a.func,xExtents:_.a.oneOfType([_.a.array,_.a.func]),zoomAnchor:_.a.func,className:_.a.string,seriesName:_.a.string.isRequired,zIndex:_.a.number,children:_.a.node.isRequired,xScale:_.a.func.isRequired,postCalculator:_.a.func,flipXScale:_.a.bool,useCrossHairStyleCursor:_.a.bool,padding:_.a.oneOfType([_.a.number,_.a.shape({left:_.a.number,right:_.a.number})]),defaultFocus:_.a.bool,zoomMultiplier:_.a.number,onLoadMore:_.a.func,displayXAccessor:function(e,t){if(Object(x.s)(e[t]))console.warn("`displayXAccessor` is not defined, will use the value from `xAccessor` as `displayXAccessor`. This might be ok if you do not use a discontinuous scale but if you do, provide a `displayXAccessor` prop to `ChartCanvas`");else if("function"!==typeof e[t])return new Error("displayXAccessor has to be a function")},mouseMoveEvent:_.a.bool,panEvent:_.a.bool,clamp:_.a.bool,zoomEvent:_.a.bool,onSelect:_.a.func},D.defaultProps={margin:{top:20,right:30,bottom:30,left:80},type:"hybrid",pointsPerPxThreshold:2,minPointsPerPxThreshold:.01,className:"react-stockchart",zIndex:1,xExtents:[O.min,O.max],postCalculator:x.q,padding:0,xAccessor:x.q,flipXScale:!1,useCrossHairStyleCursor:!0,defaultFocus:!0,onLoadMore:x.x,onSelect:x.x,mouseMoveEvent:!0,panEvent:!0,zoomEvent:!0,zoomMultiplier:1.1,clamp:!1,zoomAnchor:k.a},D.childContextTypes={plotData:_.a.array,fullData:_.a.array,chartConfig:_.a.arrayOf(_.a.shape({id:_.a.number.isRequired,origin:_.a.arrayOf(_.a.number).isRequired,padding:_.a.oneOfType([_.a.number,_.a.shape({top:_.a.number,bottom:_.a.number})]),yExtents:_.a.arrayOf(_.a.func),yExtentsProvider:_.a.func,yScale:_.a.func.isRequired,mouseCoordinates:_.a.shape({at:_.a.string,format:_.a.func}),width:_.a.number.isRequired,height:_.a.number.isRequired})).isRequired,xScale:_.a.func.isRequired,xAccessor:_.a.func.isRequired,displayXAccessor:_.a.func.isRequired,width:_.a.number.isRequired,height:_.a.number.isRequired,chartCanvasType:_.a.oneOf(["svg","hybrid"]).isRequired,margin:_.a.object.isRequired,ratio:_.a.number.isRequired,getCanvasContexts:_.a.func,xAxisZoom:_.a.func,yAxisZoom:_.a.func,amIOnTop:_.a.func,redraw:_.a.func,subscribe:_.a.func,unsubscribe:_.a.func,setCursorClass:_.a.func,generateSubscriptionId:_.a.func,getMutableState:_.a.func},D.ohlcv=function(e){return{date:e.date,open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}},t.a=D},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(26),n(119),n(25),n(9)},function(e,t,n){"use strict";n(25),n(9)},function(e,t,n){"use strict";n(25),n(26),n(9)},function(e,t,n){"use strict";n(25),n(26),n(9)},function(e,t,n){"use strict";n(9)},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(e){var t=e.xScale,n=e.xAccessor,r=e.mouseXY,a=e.plotData;e.fullData;return n(Object(o.c)(t,n,r,a))}t.a=r;var o=n(66);n(9),function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}}()},function(e,t,n){(function(t){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function r(e,t,a,i,u){var s=-1,c=e.length;for(a||(a=o),u||(u=[]);++s<c;){var l=e[s];t>0&&a(l)?t>1?r(l,t-1,a,i,u):n(u,l):i||(u[u.length]=l)}return u}function o(e){return S(e)||i(e)||!!(P&&e&&e[P])}function a(e){return(e?e.length:0)?r(e,p):[]}function i(e){return s(e)&&O.call(e,"callee")&&(!C.call(e,"callee")||x.call(e)==y)}function u(e){return null!=e&&l(e.length)&&!c(e)}function s(e){return d(e)&&u(e)}function c(e){var t=f(e)?x.call(e):"";return t==v||t==b}function l(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function d(e){return!!e&&"object"==typeof e}var p=1/0,h=9007199254740991,y="[object Arguments]",v="[object Function]",b="[object GeneratorFunction]",g="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,w=g||m||Function("return this")(),_=Object.prototype,O=_.hasOwnProperty,x=_.toString,k=w.Symbol,C=_.propertyIsEnumerable,P=k?k.isConcatSpreadable:void 0,S=Array.isArray;e.exports=a}).call(t,n(87))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=n(1),s=n.n(u),c=n(2),l=n.n(c),f=n(122),d=n(9),p=n(66),h=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleEnter=n.handleEnter.bind(n),n.handleLeave=n.handleLeave.bind(n),n.handleWheel=n.handleWheel.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleMouseDown=n.handleMouseDown.bind(n),n.handlePanEnd=n.handlePanEnd.bind(n),n.handlePan=n.handlePan.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handlePinchZoom=n.handlePinchZoom.bind(n),n.handlePinchZoomEnd=n.handlePinchZoomEnd.bind(n),n.handleClick=n.handleClick.bind(n),n.handleRightClick=n.handleRightClick.bind(n),n.handleDrag=n.handleDrag.bind(n),n.handleDragEnd=n.handleDragEnd.bind(n),n.setCursorClass=n.setCursorClass.bind(n),n.saveNode=n.saveNode.bind(n),n.mouseInside=!1,n.mouseInteraction=!0,n.state={panInProgress:!1},n}return i(t,e),y(t,[{key:"saveNode",value:function(e){this.node=e}},{key:"componentWillMount",value:function(){this.focus=this.props.focus}},{key:"componentDidMount",value:function(){this.node&&Object(f.select)(this.node).on(d.a,this.handleEnter).on(d.b,this.handleLeave)}},{key:"componentDidUpdate",value:function(){this.componentDidMount()}},{key:"componentWillUnmount",value:function(){this.node&&Object(f.select)(this.node).on(d.a,null).on(d.b,null)}},{key:"handleEnter",value:function(){var e=f.event,t=this.props.onMouseEnter;if(this.mouseInside=!0,!this.state.panInProgress&&!this.state.dragInProgress){var n=Object(d.h)(this.node);Object(f.select)(n).on(d.c,this.handleMouseMove)}t(e)}},{key:"handleLeave",value:function(e){var t=this.props.onMouseLeave;if(this.mouseInside=!1,!this.state.panInProgress&&!this.state.dragInProgress){var n=Object(d.h)(this.node);Object(f.select)(n).on(d.c,null)}t(e)}},{key:"handleWheel",value:function(e){var t=this.props,n=t.zoom,r=t.onZoom;if(n&&this.focus&&0!==e.deltaY){e.preventDefault();var o=Object(d.w)(e);r(e.deltaY>0?1:-1,o,e)}}},{key:"handleMouseMove",value:function(){var e=f.event,t=this.props,n=t.onMouseMove,r=t.mouseMove;if(this.mouseInteraction&&r&&!this.state.panInProgress){n(Object(f.mouse)(this.node),"mouse",e)}}},{key:"handleClick",value:function(e){var t=this,n=Object(d.w)(e),r=this.props,o=r.onClick,a=r.onDoubleClick;this.panHappened||this.dragHappened||(this.clicked?(a(n,e),this.clicked=!1):(o(n,e),this.clicked=!0,setTimeout(function(){t.clicked&&(t.clicked=!1)},400)))}},{key:"handleRightClick",value:function(e){e.stopPropagation(),e.preventDefault();var t=this.props,n=t.onContextMenu,r=t.onPanEnd,o=Object(d.w)(e,this.node.getBoundingClientRect());if(Object(d.r)(this.state.panStart)){var a=this.state.panStart,i=a.panStartXScale,u=a.panOrigin,s=a.chartsToPan;this.panHappened&&r(o,i,u,s,e);var c=Object(d.h)(this.node);Object(f.select)(c).on(d.c,null).on(d.d,null),this.setState({panInProgress:!1,panStart:null})}n(o,e)}},{key:"handleDrag",value:function(){var e=f.event;if(this.props.onDrag){this.dragHappened=!0;var t=Object(f.mouse)(this.node);this.props.onDrag({startPos:this.state.dragStartPosition,mouseXY:t},e)}}},{key:"cancelDrag",value:function(){var e=Object(d.h)(this.node);Object(f.select)(e).on(d.c,this.mouseInside?this.handleMouseMove:null).on(d.d,null),this.setState({dragInProgress:!1}),this.mouseInteraction=!0}},{key:"handleDragEnd",value:function(){var e=f.event,t=Object(f.mouse)(this.node),n=Object(d.h)(this.node);Object(f.select)(n).on(d.c,this.mouseInside?this.handleMouseMove:null).on(d.d,null),this.dragHappened&&this.props.onDragComplete({mouseXY:t},e),this.setState({dragInProgress:!1}),this.mouseInteraction=!0}},{key:"handleMouseDown",value:function(e){if(0===e.button){var t=this.props,n=t.pan,r=t.xScale,o=t.chartConfig,a=t.onMouseDown,i=this.props.getAllPanConditions;if(this.panHappened=!1,this.dragHappened=!1,this.focus=!0,!this.state.panInProgress&&this.mouseInteraction){var u=Object(d.w)(e),s=Object(p.b)(o,u),c=i().reduce(function(e,t){return{draggable:e.draggable||t.draggable,panEnabled:e.panEnabled&&t.panEnabled}},{draggable:!1,panEnabled:n}),l=c.panEnabled,h=c.draggable,y=l&&!h;if(y){this.setState({panInProgress:y,panStart:{panStartXScale:r,panOrigin:u,chartsToPan:s}});var v=Object(d.h)(this.node);Object(f.select)(v).on(d.c,this.handlePan).on(d.d,this.handlePanEnd)}else if(h){this.setState({panInProgress:!1,dragInProgress:!0,panStart:null,dragStartPosition:u}),this.props.onDragStart({startPos:u},e);var b=Object(d.h)(this.node);Object(f.select)(b).on(d.c,this.handleDrag).on(d.d,this.handleDragEnd)}a(u,s,e)}e.preventDefault()}}},{key:"handlePan",value:function(){var e=f.event,t=this.props,n=t.pan,r=t.onPan;if(n&&r&&Object(d.r)(this.state.panStart)){this.panHappened=!0;var o=this.state.panStart,a=o.panStartXScale,i=o.panOrigin,u=o.chartsToPan,s=this.mouseInteraction?Object(f.mouse)(this.node):Object(f.touches)(this.node)[0];this.lastNewPos=s,r(s,a,i,u,e)}}},{key:"handlePanEnd",value:function(){var e=f.event,t=this.props,n=t.pan,r=t.onPanEnd;if(Object(d.r)(this.state.panStart)){var o=this.state.panStart,a=o.panStartXScale,i=o.panOrigin,u=o.chartsToPan,s=Object(d.h)(this.node);Object(f.select)(s).on(d.c,this.mouseInside?this.handleMouseMove:null).on(d.d,null).on(d.f,null).on(d.e,null),this.panHappened&&n&&r&&r(this.lastNewPos,a,i,u,e),this.setState({panInProgress:!1,panStart:null})}}},{key:"handleTouchStart",value:function(e){this.mouseInteraction=!1;var t=this.props,n=t.pan,r=t.chartConfig,o=t.onMouseMove,a=this.props,i=a.xScale,u=a.onPanEnd;if(1===e.touches.length){this.panHappened=!1;var s=Object(d.A)(Object(d.n)(e.touches[0]),e);if(n){var c=Object(p.b)(r,s);this.setState({panInProgress:!0,panStart:{panStartXScale:i,panOrigin:s,chartsToPan:c}}),o(s,"touch",e);var l=Object(d.h)(this.node);Object(f.select)(l).on(d.f,this.handlePan,!1).on(d.e,this.handlePanEnd,!1)}}else if(2===e.touches.length){var h=this.state,y=h.panInProgress,v=h.panStart;if(y&&n&&u){var b=v.panStartXScale,g=v.panOrigin,m=v.chartsToPan,w=Object(d.h)(this.node);Object(f.select)(w).on(d.c,this.mouseInside?this.handleMouseMove:null).on(d.d,null).on(d.f,this.handlePinchZoom,!1).on(d.e,this.handlePinchZoomEnd,!1);var _=Object(d.A)(Object(d.n)(e.touches[0]),e),O=Object(d.A)(Object(d.n)(e.touches[1]),e);this.panHappened&&n&&u&&u(this.lastNewPos,b,g,m,e),this.setState({panInProgress:!1,pinchZoomStart:{xScale:i,touch1Pos:_,touch2Pos:O,range:i.range(),chartsToPan:m}})}}}},{key:"handlePinchZoom",value:function(){var e=f.event,t=Object(f.touches)(this.node),n=h(t,2),o=n[0],a=n[1],i=this.props,u=i.xScale,s=i.zoom,c=i.onPinchZoom,l=this.state.pinchZoomStart,d=(l.chartsToPan,r(l,["chartsToPan"]));s&&c&&c(d,{touch1Pos:o,touch2Pos:a,xScale:u},e)}},{key:"handlePinchZoomEnd",value:function(){var e=f.event,t=Object(d.h)(this.node);Object(f.select)(t).on(d.f,null).on(d.e,null);var n=this.props,o=n.zoom,a=n.onPinchZoomEnd,i=this.state.pinchZoomStart,u=(i.chartsToPan,r(i,["chartsToPan"]));o&&a&&a(u,e),this.setState({pinchZoomStart:null})}},{key:"setCursorClass",value:function(e){e!==this.state.cursorOverrideClass&&this.setState({cursorOverrideClass:e})}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,r=null!=this.state.cursorOverrideClass?this.state.cursorOverrideClass:this.state.panInProgress?"react-stockcharts-grabbing-cursor":"react-stockcharts-crosshair-cursor";return s.a.createElement("rect",{ref:this.saveNode,className:r,width:n,height:t,style:{opacity:0},onWheel:this.handleWheel,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onContextMenu:this.handleRightClick,onTouchStart:this.handleTouchStart})}}]),t}(u.Component);v.propTypes={mouseMove:l.a.bool.isRequired,zoom:l.a.bool.isRequired,pan:l.a.bool.isRequired,panSpeedMultiplier:l.a.number.isRequired,focus:l.a.bool.isRequired,width:l.a.number.isRequired,height:l.a.number.isRequired,chartConfig:l.a.array,xScale:l.a.func.isRequired,xAccessor:l.a.func.isRequired,getAllPanConditions:l.a.func.isRequired,onMouseMove:l.a.func,onMouseEnter:l.a.func,onMouseLeave:l.a.func,onZoom:l.a.func,onPinchZoom:l.a.func,onPinchZoomEnd:l.a.func.isRequired,onPan:l.a.func,onPanEnd:l.a.func,onDragStart:l.a.func,onDrag:l.a.func,onDragComplete:l.a.func,onClick:l.a.func,onDoubleClick:l.a.func,onContextMenu:l.a.func,onMouseDown:l.a.func,children:l.a.node},v.defaultProps={mouseMove:!1,zoom:!1,pan:!1,panSpeedMultiplier:1,focus:!1,onDragComplete:d.x},t.a=v},function(e,t,n){"use strict";function r(){return new o}function o(){this._="@"+(++a).toString(36)}t.a=r;var a=0;o.prototype=r.prototype={constructor:o,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}}},function(e,t,n){"use strict";var r=n(70),o=n(72);t.a=function(e){var t=Object(r.a)();return t.changedTouches&&(t=t.changedTouches[0]),Object(o.a)(e,t)}},function(e,t,n){"use strict";var r=n(12);t.a=function(e){return"string"===typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";var r=n(12),o=n(73);t.a=function(e){"function"!==typeof e&&(e=Object(o.a)(e));for(var t=this._groups,n=t.length,a=new Array(n),i=0;i<n;++i)for(var u,s,c=t[i],l=c.length,f=a[i]=new Array(l),d=0;d<l;++d)(u=c[d])&&(s=e.call(u,u.__data__,d,c))&&("__data__"in u&&(s.__data__=u.__data__),f[d]=s);return new r.a(a,this._parents)}},function(e,t,n){"use strict";var r=n(12),o=n(124);t.a=function(e){"function"!==typeof e&&(e=Object(o.a)(e));for(var t=this._groups,n=t.length,a=[],i=[],u=0;u<n;++u)for(var s,c=t[u],l=c.length,f=0;f<l;++f)(s=c[f])&&(a.push(e.call(s,s.__data__,f,c)),i.push(s));return new r.a(a,i)}},function(e,t,n){"use strict";var r=n(12),o=n(123);t.a=function(e){"function"!==typeof e&&(e=Object(o.a)(e));for(var t=this._groups,n=t.length,a=new Array(n),i=0;i<n;++i)for(var u,s=t[i],c=s.length,l=a[i]=[],f=0;f<c;++f)(u=s[f])&&e.call(u,u.__data__,f,s)&&l.push(u);return new r.a(a,this._parents)}},function(e,t,n){"use strict";function r(e,t,n,r,o,a){for(var u,s=0,c=t.length,l=a.length;s<l;++s)(u=t[s])?(u.__data__=a[s],r[s]=u):n[s]=new i.a(e,a[s]);for(;s<c;++s)(u=t[s])&&(o[s]=u)}function o(e,t,n,r,o,a,u){var c,l,f,d={},p=t.length,h=a.length,y=new Array(p);for(c=0;c<p;++c)(l=t[c])&&(y[c]=f=s+u.call(l,l.__data__,c,t),f in d?o[c]=l:d[f]=l);for(c=0;c<h;++c)f=s+u.call(e,a[c],c,a),(l=d[f])?(r[c]=l,l.__data__=a[c],d[f]=null):n[c]=new i.a(e,a[c]);for(c=0;c<p;++c)(l=t[c])&&d[y[c]]===l&&(o[c]=l)}var a=n(12),i=n(125),u=n(265),s="$";t.a=function(e,t){if(!e)return b=new Array(this.size()),p=-1,this.each(function(e){b[++p]=e}),b;var n=t?o:r,i=this._parents,s=this._groups;"function"!==typeof e&&(e=Object(u.a)(e));for(var c=s.length,l=new Array(c),f=new Array(c),d=new Array(c),p=0;p<c;++p){var h=i[p],y=s[p],v=y.length,b=e.call(h,h&&h.__data__,p,i),g=b.length,m=f[p]=new Array(g),w=l[p]=new Array(g);n(h,y,m,w,d[p]=new Array(v),b,t);for(var _,O,x=0,k=0;x<g;++x)if(_=m[x]){for(x>=k&&(k=x+1);!(O=w[k])&&++k<g;);_._next=O||null}}return l=new a.a(l,i),l._enter=f,l._exit=d,l}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";var r=n(126),o=n(12);t.a=function(){return new o.a(this._exit||this._groups.map(r.a),this._parents)}},function(e,t,n){"use strict";var r=n(12);t.a=function(e){for(var t=this._groups,n=e._groups,o=t.length,a=n.length,i=Math.min(o,a),u=new Array(o),s=0;s<i;++s)for(var c,l=t[s],f=n[s],d=l.length,p=u[s]=new Array(d),h=0;h<d;++h)(c=l[h]||f[h])&&(p[h]=c);for(;s<o;++s)u[s]=t[s];return new r.a(u,this._parents)}},function(e,t,n){"use strict";t.a=function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this}},function(e,t,n){"use strict";function r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var o=n(12);t.a=function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=r);for(var n=this._groups,a=n.length,i=new Array(a),u=0;u<a;++u){for(var s,c=n[u],l=c.length,f=i[u]=new Array(l),d=0;d<l;++d)(s=c[d])&&(f[d]=s);f.sort(t)}return new o.a(i,this._parents).order()}},function(e,t,n){"use strict";t.a=function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}},function(e,t,n){"use strict";t.a=function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}},function(e,t,n){"use strict";t.a=function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null}},function(e,t,n){"use strict";t.a=function(){var e=0;return this.each(function(){++e}),e}},function(e,t,n){"use strict";t.a=function(){return!this.node()}},function(e,t,n){"use strict";t.a=function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,u=a.length;i<u;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this}},function(e,t,n){"use strict";function r(e){return function(){this.removeAttribute(e)}}function o(e){return function(){this.removeAttributeNS(e.space,e.local)}}function a(e,t){return function(){this.setAttribute(e,t)}}function i(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function u(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function s(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var c=n(68);t.a=function(e,t){var n=Object(c.a)(e);if(arguments.length<2){var l=this.node();return n.local?l.getAttributeNS(n.space,n.local):l.getAttribute(n)}return this.each((null==t?n.local?o:r:"function"===typeof t?n.local?s:u:n.local?i:a)(n,t))}},function(e,t,n){"use strict";function r(e){return function(){delete this[e]}}function o(e,t){return function(){this[e]=t}}function a(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}t.a=function(e,t){return arguments.length>1?this.each((null==t?r:"function"===typeof t?a:o)(e,t)):this.node()[e]}},function(e,t,n){"use strict";function r(e){return e.trim().split(/^|\s+/)}function o(e){return e.classList||new a(e)}function a(e){this._node=e,this._names=r(e.getAttribute("class")||"")}function i(e,t){for(var n=o(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function u(e,t){for(var n=o(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function s(e){return function(){i(this,e)}}function c(e){return function(){u(this,e)}}function l(e,t){return function(){(t.apply(this,arguments)?i:u)(this,e)}}a.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}},t.a=function(e,t){var n=r(e+"");if(arguments.length<2){for(var a=o(this.node()),i=-1,u=n.length;++i<u;)if(!a.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?l:t?s:c)(n,t))}},function(e,t,n){"use strict";function r(){this.textContent=""}function o(e){return function(){this.textContent=e}}function a(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}t.a=function(e){return arguments.length?this.each(null==e?r:("function"===typeof e?a:o)(e)):this.node().textContent}},function(e,t,n){"use strict";function r(){this.innerHTML=""}function o(e){return function(){this.innerHTML=e}}function a(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}t.a=function(e){return arguments.length?this.each(null==e?r:("function"===typeof e?a:o)(e)):this.node().innerHTML}},function(e,t,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}t.a=function(){return this.each(r)}},function(e,t,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}t.a=function(){return this.each(r)}},function(e,t,n){"use strict";var r=n(67);t.a=function(e){var t="function"===typeof e?e:Object(r.a)(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}},function(e,t,n){"use strict";function r(){return null}var o=n(67),a=n(73);t.a=function(e,t){var n="function"===typeof e?e:Object(o.a)(e),i=null==t?r:"function"===typeof t?t:Object(a.a)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}},function(e,t,n){"use strict";function r(){var e=this.parentNode;e&&e.removeChild(this)}t.a=function(){return this.each(r)}},function(e,t,n){"use strict";t.a=function(e){return arguments.length?this.property("__data__",e):this.node().__data__}},function(e,t,n){"use strict";function r(e,t,n){var r=Object(i.a)(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function o(e,t){return function(){return r(this,e,t)}}function a(e,t){return function(){return r(this,e,t.apply(this,arguments))}}var i=n(74);t.a=function(e,t){return this.each(("function"===typeof t?a:o)(e,t))}},function(e,t,n){"use strict";var r=n(12);t.a=function(e){return"string"===typeof e?new r.a([document.querySelectorAll(e)],[document.documentElement]):new r.a([null==e?[]:e],r.c)}},function(e,t,n){"use strict";var r=n(70),o=n(72);t.a=function(e,t,n){arguments.length<3&&(n=t,t=Object(r.a)().changedTouches);for(var a,i=0,u=t?t.length:0;i<u;++i)if((a=t[i]).identifier===n)return Object(o.a)(e,a);return null}},function(e,t,n){"use strict";var r=n(70),o=n(72);t.a=function(e,t){null==t&&(t=Object(r.a)().touches);for(var n=0,a=t?t.length:0,i=new Array(a);n<a;++n)i[n]=Object(o.a)(e,t[n]);return i}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=n.n(i),s=n(2),c=n.n(s),l=n(9),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Object(l.m)("CanvasContainer"),p=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setDrawCanvas=n.setDrawCanvas.bind(n),n.drawCanvas={},n}return a(t,e),f(t,[{key:"setDrawCanvas",value:function(e){Object(l.r)(e)?this.drawCanvas[e.id]=e.getContext("2d"):this.drawCanvas={}}},{key:"getCanvasContexts",value:function(){if(Object(l.r)(this.drawCanvas.axes))return this.drawCanvas}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,r=e.type,o=e.zIndex,a=e.ratio;return"svg"===r?null:(d("using ratio ",a),u.a.createElement("div",{style:{position:"absolute",zIndex:o}},u.a.createElement("canvas",{id:"bg",ref:this.setDrawCanvas,width:n*a,height:t*a,style:{position:"absolute",width:n,height:t}}),u.a.createElement("canvas",{id:"axes",ref:this.setDrawCanvas,width:n*a,height:t*a,style:{position:"absolute",width:n,height:t}}),u.a.createElement("canvas",{id:"mouseCoord",ref:this.setDrawCanvas,width:n*a,height:t*a,style:{position:"absolute",width:n,height:t}})))}}]),t}(i.Component);p.propTypes={width:c.a.number.isRequired,height:c.a.number.isRequired,type:c.a.string.isRequired,zIndex:c.a.number,ratio:c.a.number.isRequired},t.a=p},function(e,t,n){"use strict";function r(e,t,n,r,a){function i(e,i,f,d,p,h){if(t)return{plotData:e,domain:i};var y=Object(c.i)(i),v=Object(c.u)(i),b=s(e,y,v,f),g=[Math.max(y,f(Object(c.i)(e))),Math.min(v,f(Object(c.u)(e)))],m=f===f?n?g:i:[f(Object(c.i)(b)),f(Object(c.u)(b))],w=d.copy().domain(m),_=Math.floor(w(f(Object(c.u)(b)))-w(f(Object(c.i)(b)))),O=void 0,x=void 0,k=Object(c.u)(w.range())-Object(c.i)(w.range());if(l("Trying to show "+b.length+" in "+_+"px, I can show up to "+u(_,r)+" in that width. Also FYI the entire chart width is "+k+"px and pointsPerPxThreshold is "+r),o(_,b.length,r,a))O=b,x=m,l("AND IT WORKED");else{O=p||b.slice(b.length-u(_,r)),x=h||[f(Object(c.i)(O)),f(Object(c.u)(O))];var C=w.copy().domain(x),P=Math.floor(C(f(Object(c.u)(O)))-C(f(Object(c.i)(O))));l("and ouch, that is too much, so instead showing "+O.length+" in "+P+"px")}return{plotData:O,domain:x}}return i}function o(e,t,n,r){return t>a(e,r)&&t<i(e,n)}function a(e,t){return Math.max(1,Math.ceil(e*t))}function i(e,t){return Math.floor(e*t)}function u(e,t){return Math.floor(.97*i(e,t))}function s(e,t,n,r){var o=Object(c.l)(e,t,r).right,a=Object(c.l)(e,n,r).left;return e.slice(o,a+1)}var c=n(9),l=Object(c.m)("evaluator");t.a=function(e){var t=e.xAccessor,n=e.xScale,o=e.useWholeData,a=e.clamp,i=e.pointsPerPxThreshold,u=e.minPointsPerPxThreshold;return r(t,o||Object(c.s)(n.invert),a,i,u)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),u=n.n(i),s=n(128),c=n(9),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in o)return o.value;var i=o.get;if(void 0!==i)return i.call(r)},h=["drag","dragend"],y=function(e){function t(e,n){r(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return a.preCanvasDraw=a.preCanvasDraw.bind(a),a.postCanvasDraw=a.postCanvasDraw.bind(a),a.shouldTypeProceed=a.shouldTypeProceed.bind(a),a.preEvaluate=a.preEvaluate.bind(a),a}return a(t,e),d(t,[{key:"preCanvasDraw",value:function(e,n){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"preCanvasDraw",this).call(this,e,n),e.save();var r=this.context,o=r.margin,a=r.ratio,i=n.chartConfig,u=.5*a+i.origin[0]+o.left,s=.5*a+i.origin[1]+o.top,c=n.chartConfig,l=c.width,f=c.height,d=this.props,h=d.clip,y=d.edgeClip;e.setTransform(1,0,0,1,0,0),e.scale(a,a),y&&(e.beginPath(),e.rect(-1,s-10,l+o.left+o.right+1,f+20),e.clip()),e.translate(u,s),h&&(e.beginPath(),e.rect(-1,-1,l+1,f+1),e.clip())}},{key:"postCanvasDraw",value:function(e,n){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"postCanvasDraw",this).call(this,e,n),e.restore()}},{key:"updateMoreProps",value:function(e){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateMoreProps",this).call(this,e);var n=e.chartConfig;if(n){var r=this.context.chartId,o=n.filter(function(e){return e.id===r})[0];this.moreProps.chartConfig=o}if(Object(c.r)(this.moreProps.chartConfig)){var a=f(this.moreProps.chartConfig.origin,2),i=a[0],u=a[1];if(Object(c.r)(e.mouseXY)){var s=f(e.mouseXY,2),l=s[0],d=s[1];this.moreProps.mouseXY=[l-i,d-u]}if(Object(c.r)(e.startPos)){var h=f(e.startPos,2),y=h[0],v=h[1];this.moreProps.startPos=[y-i,v-u]}}}},{key:"preEvaluate",value:function(){}},{key:"shouldTypeProceed",value:function(e,t){return!("mousemove"!==e&&"click"!==e||!this.props.disablePan)||(-1!==h.indexOf(e)||!Object(c.r)(t)||!Object(c.r)(t.currentCharts)||t.currentCharts.indexOf(this.context.chartId)>-1)}}]),t}(s.a);y.propTypes=s.a.propTypes,y.defaultProps=s.a.defaultProps,y.contextTypes=l({},s.a.contextTypes,{canvasOriginX:u.a.number,canvasOriginY:u.a.number,chartId:u.a.oneOfType([u.a.number,u.a.string]).isRequired,chartConfig:u.a.object.isRequired,ratio:u.a.number.isRequired})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=n.n(i),s=n(2),c=n.n(s),l=n(65),f=n(9),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"componentDidMount",value:function(){if("svg"!==this.context.chartCanvasType&&Object(f.r)(this.context.getCanvasContexts)){var e=this.context.getCanvasContexts();e&&t.drawOnCanvas(e.bg,this.props,this.context,this.props.children)}}},{key:"componentDidUpdate",value:function(){this.componentDidMount()}},{key:"render",value:function(){if("svg"!==this.context.chartCanvasType)return null;var e=this.props,t=e.x,n=e.y,r=e.fill,o=e.opacity,a=e.stroke,i=e.strokeOpacity,s=e.fontFamily,c=e.fontSize,l=e.textAnchor,f={x:t,y:n,fill:r,opacity:o,stroke:a,strokeOpacity:i,fontFamily:s,fontSize:c,textAnchor:l};return u.a.createElement("text",f,"this.props.children(interval)")}}]),t}(l.a);p.drawOnCanvas=function(e,t,n,r){var o=n.interval;e.clearRect(-1,-1,e.canvas.width+2,e.canvas.height+2),e.save(),e.setTransform(1,0,0,1,0,0),e.translate(.5,.5);var a=t.x,i=t.y,u=t.fill,s=t.opacity,c=t.stroke,l=t.strokeOpacity,d=t.fontFamily,p=t.fontSize,h=t.textAnchor,y=r(o);e.strokeStyle=Object(f.p)(c,l),e.font=p+"px "+d,e.fillStyle=Object(f.p)(u,s),e.textAlign="middle"===h?"center":h,"none"!==c&&e.strokeText(y,a,i),e.fillText(y,a,i),e.restore()},p.propTypes={x:c.a.number.isRequired,y:c.a.number.isRequired,fontFamily:c.a.string,fontSize:c.a.number.isRequired,fill:c.a.string,stroke:c.a.string,opacity:c.a.number,strokeOpacity:c.a.number,textAnchor:c.a.string,children:c.a.func},p.defaultProps={opacity:.3,fill:"#9E7523",stroke:"#9E7523",strokeOpacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12,textAnchor:"middle"},p.contextTypes={interval:c.a.string.isRequired,getCanvasContexts:c.a.func,chartCanvasType:c.a.string}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),u=n.n(i),s=n(2),c=n.n(s),l=n(23),f=n(9),d=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleZoomOut=n.handleZoomOut.bind(n),n.handleZoomIn=n.handleZoomIn.bind(n),n.zoom=n.zoom.bind(n),n}return a(t,e),p(t,[{key:"zoom",value:function(e){var t=this,n=this.context,r=n.xAxisZoom,o=n.xScale,a=n.plotData,i=n.xAccessor,u=o(i(Object(f.u)(a))),s=this.props.zoomMultiplier,c=e>0?1*s:1/s,p=o.domain(),h=d(p,2),y=h[0],v=h[1],b=o.range().map(function(e){return u+(e-u)*c}).map(o.invert),g=d(b,2),m=g[0],w=g[1],_=Object(l.c)(y,m),O=Object(l.c)(v,w),x=[.25,.3,.5,.6,.75,1].map(function(e){return[_(e),O(e)]});this.interval=setInterval(function(){r(x.shift()),0===x.length&&clearInterval(t.interval)},10)}},{key:"handleZoomOut",value:function(){this.zoom(1)}},{key:"handleZoomIn",value:function(){this.zoom(-1)}},{key:"render",value:function(){var e=this.context.chartConfig,t=e.width,n=e.height,r=this.props,o=r.size,a=r.heightFromBase,i=r.rx,s=r.ry,c=this.props,l=c.stroke,f=c.fill,d=c.strokeWidth,p=c.fillOpacity,h=this.props,y=h.fontSize,v=h.textDy,b=h.textFill,g=t/2,m=n-a;return u.a.createElement("g",{className:"react-stockcharts-zoom-button"},u.a.createElement("rect",{x:g-o-1,y:m,rx:i,ry:s,height:o,width:o,fill:f,fillOpacity:p,stroke:l,strokeWidth:d}),u.a.createElement("text",{x:g-o/2-1,y:m+o/2,dy:v,textAnchor:"middle",fontSize:y,fill:b},"-"),u.a.createElement("rect",{x:g+1,y:m,rx:i,ry:s,height:o,width:o,fill:f,fillOpacity:p,stroke:l,strokeWidth:d}),u.a.createElement("text",{x:g+o/2+1,y:m+o/2,dy:v,textAnchor:"middle",fontSize:y,fill:b},"+"),u.a.createElement("rect",{className:"react-stockcharts-enable-interaction",onClick:this.handleZoomOut,x:g-o-1,y:m,rx:i,ry:s,height:o,width:o,fill:"none"}),u.a.createElement("rect",{className:"react-stockcharts-enable-interaction",onClick:this.handleZoomIn,x:g+1,y:m,rx:i,ry:s,height:o,width:o,fill:"none"}))}}]),t}(i.Component);h.propTypes={zoomMultiplier:c.a.number.isRequired,size:c.a.number.isRequired,heightFromBase:c.a.number.isRequired,rx:c.a.number.isRequired,ry:c.a.number.isRequired,stroke:c.a.string.isRequired,strokeWidth:c.a.number.isRequired,fill:c.a.string.isRequired,fillOpacity:c.a.number.isRequired,fontSize:c.a.number.isRequired,textDy:c.a.string.isRequired,textFill:c.a.string.isRequired},h.defaultProps={size:20,heightFromBase:50,rx:3,ry:3,stroke:"#000000",strokeWidth:1,fill:"#D6D6D6",fillOpacity:1,fontSize:16,textDy:".3em",textFill:"#000000",zoomMultiplier:1.5},h.contextTypes={xScale:c.a.func.isRequired,chartConfig:c.a.object.isRequired,plotData:c.a.array.isRequired,xAccessor:c.a.func.isRequired,xAxisZoom:c.a.func.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(297);Object.defineProperty(t,"AreaSeries",{enumerable:!0,get:function(){return r(o).default}});var a=n(79);Object.defineProperty(t,"AreaOnlySeries",{enumerable:!0,get:function(){return r(a).default}});var i=n(331);Object.defineProperty(t,"ScatterSeries",{enumerable:!0,get:function(){return r(i).default}});var u=n(332);Object.defineProperty(t,"CircleMarker",{enumerable:!0,get:function(){return r(u).default}});var s=n(333);Object.defineProperty(t,"TriangleMarker",{enumerable:!0,get:function(){return r(s).default}});var c=n(334);Object.defineProperty(t,"SquareMarker",{enumerable:!0,get:function(){return r(c).default}});var l=n(27);Object.defineProperty(t,"LineSeries",{enumerable:!0,get:function(){return r(l).default}});var f=n(335);Object.defineProperty(t,"CandlestickSeries",{enumerable:!0,get:function(){return r(f).default}});var d=n(336);Object.defineProperty(t,"OHLCSeries",{enumerable:!0,get:function(){return r(d).default}});var p=n(145);Object.defineProperty(t,"BarSeries",{enumerable:!0,get:function(){return r(p).default}});var h=n(51);Object.defineProperty(t,"StackedBarSeries",{enumerable:!0,get:function(){return r(h).default}});var y=n(337);Object.defineProperty(t,"GroupedBarSeries",{enumerable:!0,get:function(){return r(y).default}});var v=n(338);Object.defineProperty(t,"KagiSeries",{enumerable:!0,get:function(){return r(v).default}});var b=n(339);Object.defineProperty(t,"PointAndFigureSeries",{enumerable:!0,get:function(){return r(b).default}});var g=n(340);Object.defineProperty(t,"RenkoSeries",{enumerable:!0,get:function(){return r(g).default}});var m=n(341);Object.defineProperty(t,"MACDSeries",{enumerable:!0,get:function(){return r(m).default}});var w=n(342);Object.defineProperty(t,"BollingerSeries",{enumerable:!0,get:function(){return r(w).default}});var _=n(343);Object.defineProperty(t,"RSISeries",{enumerable:!0,get:function(){return r(_).default}});var O=n(344);Object.defineProperty(t,"StochasticSeries",{enumerable:!0,get:function(){return r(O).default}});var x=n(345);Object.defineProperty(t,"ElderRaySeries",{enumerable:!0,get:function(){return r(x).default}});var k=n(347);Object.defineProperty(t,"VolumeProfileSeries",{enumerable:!0,get:function(){return r(k).default}});var C=n(39);Object.defineProperty(t,"StraightLine",{enumerable:!0,get:function(){return r(C).default}});var P=n(348);Object.defineProperty(t,"SARSeries",{enumerable:!0,get:function(){return r(P).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.yAccessor,n=e.baseAt,r=e.className,o=e.opacity,a=e.stroke,u=e.strokeWidth,s=e.fill;return i.default.createElement("g",{className:r},i.default.createElement(l.default,{yAccessor:t,stroke:a,fill:"none",strokeWidth:u,hoverHighlight:!1}),i.default.createElement(d.default,{yAccessor:t,base:n,stroke:"none",fill:s,opacity:o}))}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(2),s=r(u),c=n(27),l=r(c),f=n(79),d=r(f);o.propTypes={stroke:s.default.string,strokeWidth:s.default.number,fill:s.default.string.isRequired,opacity:s.default.number.isRequired,className:s.default.string,yAccessor:s.default.func.isRequired,baseAt:s.default.func},o.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-area"},t.default=o},function(e,t,n){"use strict";function r(e){return e.innerRadius}function o(e){return e.outerRadius}function a(e){return e.startAngle}function i(e){return e.endAngle}function u(e){return e&&e.padAngle}function s(e,t,n,r,o,a,i,u){var s=n-e,c=r-t,l=i-o,f=u-a,d=(l*(t-a)-f*(e-o))/(f*s-l*c);return[e+d*s,t+d*c]}function c(e,t,n,r,o,a,i){var u=e-n,s=t-r,c=(i?a:-a)/Object(d.l)(u*u+s*s),l=c*s,f=-c*u,p=e+l,h=t+f,y=n+l,v=r+f,b=(p+y)/2,g=(h+v)/2,m=y-p,w=v-h,_=m*m+w*w,O=o-a,x=p*v-y*h,k=(w<0?-1:1)*Object(d.l)(Object(d.h)(0,O*O*_-x*x)),C=(x*w-m*k)/_,P=(-x*m-w*k)/_,S=(x*w+m*k)/_,E=(-x*m+w*k)/_,j=C-b,T=P-g,M=S-b,A=E-g;return j*j+T*T>M*M+A*A&&(C=S,P=E),{cx:C,cy:P,x01:-l,y01:-f,x11:C*(o/O-1),y11:P*(o/O-1)}}var l=n(33),f=n(19),d=n(34);t.a=function(){function e(){var e,r,o=+t.apply(this,arguments),a=+n.apply(this,arguments),i=y.apply(this,arguments)-d.g,u=v.apply(this,arguments)-d.g,f=Object(d.a)(u-i),m=u>i;if(g||(g=e=Object(l.a)()),a<o&&(r=a,a=o,o=r),a>d.f)if(f>d.m-d.f)g.moveTo(a*Object(d.e)(i),a*Object(d.k)(i)),g.arc(0,0,a,i,u,!m),o>d.f&&(g.moveTo(o*Object(d.e)(u),o*Object(d.k)(u)),g.arc(0,0,o,u,i,m));else{var w,_,O=i,x=u,k=i,C=u,P=f,S=f,E=b.apply(this,arguments)/2,j=E>d.f&&(h?+h.apply(this,arguments):Object(d.l)(o*o+a*a)),T=Object(d.i)(Object(d.a)(a-o)/2,+p.apply(this,arguments)),M=T,A=T;if(j>d.f){var D=Object(d.c)(j/o*Object(d.k)(E)),N=Object(d.c)(j/a*Object(d.k)(E));(P-=2*D)>d.f?(D*=m?1:-1,k+=D,C-=D):(P=0,k=C=(i+u)/2),(S-=2*N)>d.f?(N*=m?1:-1,O+=N,x-=N):(S=0,O=x=(i+u)/2)}var R=a*Object(d.e)(O),F=a*Object(d.k)(O),I=o*Object(d.e)(C),W=o*Object(d.k)(C);if(T>d.f){var B=a*Object(d.e)(x),q=a*Object(d.k)(x),z=o*Object(d.e)(k),H=o*Object(d.k)(k);if(f<d.j){var L=P>d.f?s(R,F,z,H,B,q,I,W):[I,W],U=R-L[0],V=F-L[1],Y=B-L[0],G=q-L[1],X=1/Object(d.k)(Object(d.b)((U*Y+V*G)/(Object(d.l)(U*U+V*V)*Object(d.l)(Y*Y+G*G)))/2),Z=Object(d.l)(L[0]*L[0]+L[1]*L[1]);M=Object(d.i)(T,(o-Z)/(X-1)),A=Object(d.i)(T,(a-Z)/(X+1))}}S>d.f?A>d.f?(w=c(z,H,R,F,a,A,m),_=c(B,q,I,W,a,A,m),g.moveTo(w.cx+w.x01,w.cy+w.y01),A<T?g.arc(w.cx,w.cy,A,Object(d.d)(w.y01,w.x01),Object(d.d)(_.y01,_.x01),!m):(g.arc(w.cx,w.cy,A,Object(d.d)(w.y01,w.x01),Object(d.d)(w.y11,w.x11),!m),g.arc(0,0,a,Object(d.d)(w.cy+w.y11,w.cx+w.x11),Object(d.d)(_.cy+_.y11,_.cx+_.x11),!m),g.arc(_.cx,_.cy,A,Object(d.d)(_.y11,_.x11),Object(d.d)(_.y01,_.x01),!m))):(g.moveTo(R,F),g.arc(0,0,a,O,x,!m)):g.moveTo(R,F),o>d.f&&P>d.f?M>d.f?(w=c(I,W,B,q,o,-M,m),_=c(R,F,z,H,o,-M,m),g.lineTo(w.cx+w.x01,w.cy+w.y01),M<T?g.arc(w.cx,w.cy,M,Object(d.d)(w.y01,w.x01),Object(d.d)(_.y01,_.x01),!m):(g.arc(w.cx,w.cy,M,Object(d.d)(w.y01,w.x01),Object(d.d)(w.y11,w.x11),!m),g.arc(0,0,o,Object(d.d)(w.cy+w.y11,w.cx+w.x11),Object(d.d)(_.cy+_.y11,_.cx+_.x11),m),g.arc(_.cx,_.cy,M,Object(d.d)(_.y11,_.x11),Object(d.d)(_.y01,_.x01),!m))):g.arc(0,0,o,C,k,m):g.lineTo(I,W)}else g.moveTo(0,0);if(g.closePath(),e)return g=null,e+""||null}var t=r,n=o,p=Object(f.a)(0),h=null,y=a,v=i,b=u,g=null;return e.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+y.apply(this,arguments)+ +v.apply(this,arguments))/2-d.j/2;return[Object(d.e)(r)*e,Object(d.k)(r)*e]},e.innerRadius=function(n){return arguments.length?(t="function"===typeof n?n:Object(f.a)(+n),e):t},e.outerRadius=function(t){return arguments.length?(n="function"===typeof t?t:Object(f.a)(+t),e):n},e.cornerRadius=function(t){return arguments.length?(p="function"===typeof t?t:Object(f.a)(+t),e):p},e.padRadius=function(t){return arguments.length?(h=null==t?null:"function"===typeof t?t:Object(f.a)(+t),e):h},e.startAngle=function(t){return arguments.length?(y="function"===typeof t?t:Object(f.a)(+t),e):y},e.endAngle=function(t){return arguments.length?(v="function"===typeof t?t:Object(f.a)(+t),e):v},e.padAngle=function(t){return arguments.length?(b="function"===typeof t?t:Object(f.a)(+t),e):b},e.context=function(t){return arguments.length?(g=null==t?null:t,e):g},e}},function(e,t,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new r}var a=Math.PI,i=2*a,u=i-1e-6;r.prototype=o.prototype={constructor:r,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,u=this._y1,s=n-e,c=r-t,l=i-e,f=u-t,d=l*l+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(f*s-c*l)>1e-6&&o){var p=n-i,h=r-u,y=s*s+c*c,v=p*p+h*h,b=Math.sqrt(y),g=Math.sqrt(d),m=o*Math.tan((a-Math.acos((y+d-v)/(2*b*g)))/2),w=m/g,_=m/b;Math.abs(w-1)>1e-6&&(this._+="L"+(e+w*l)+","+(t+w*f)),this._+="A"+o+","+o+",0,0,"+ +(f*p>l*h)+","+(this._x1=e+_*s)+","+(this._y1=t+_*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,s){e=+e,t=+t,n=+n;var c=n*Math.cos(r),l=n*Math.sin(r),f=e+c,d=t+l,p=1^s,h=s?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),n&&(h<0&&(h=h%i+i),h>u?this._+="A"+n+","+n+",0,1,"+p+","+(e-c)+","+(t-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=a)+","+p+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.a=o},function(e,t,n){"use strict";var r=n(19),o=n(301),a=n(302),i=n(34);t.a=function(){function e(e){var r,o,a,f,d,p=e.length,h=0,y=new Array(p),v=new Array(p),b=+s.apply(this,arguments),g=Math.min(i.m,Math.max(-i.m,c.apply(this,arguments)-b)),m=Math.min(Math.abs(g)/p,l.apply(this,arguments)),w=m*(g<0?-1:1);for(r=0;r<p;++r)(d=v[y[r]=r]=+t(e[r],r,e))>0&&(h+=d);for(null!=n?y.sort(function(e,t){return n(v[e],v[t])}):null!=u&&y.sort(function(t,n){return u(e[t],e[n])}),r=0,a=h?(g-p*w)/h:0;r<p;++r,b=f)o=y[r],d=v[o],f=b+(d>0?d*a:0)+w,v[o]={data:e[o],index:r,value:d,startAngle:b,endAngle:f,padAngle:m};return v}var t=a.a,n=o.a,u=null,s=Object(r.a)(0),c=Object(r.a)(i.m),l=Object(r.a)(0);return e.value=function(n){return arguments.length?(t="function"===typeof n?n:Object(r.a)(+n),e):t},e.sortValues=function(t){return arguments.length?(n=t,u=null,e):n},e.sort=function(t){return arguments.length?(u=t,n=null,e):u},e.startAngle=function(t){return arguments.length?(s="function"===typeof t?t:Object(r.a)(+t),e):s},e.endAngle=function(t){return arguments.length?(c="function"===typeof t?t:Object(r.a)(+t),e):c},e.padAngle=function(t){return arguments.length?(l="function"===typeof t?t:Object(r.a)(+t),e):l},e}},function(e,t,n){"use strict";t.a=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";var r=n(130),o=n(129),a=n(131);t.a=function(){var e=Object(o.a)().curve(r.a),t=e.curve,n=e.lineX0,i=e.lineX1,u=e.lineY0,s=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Object(a.b)(n())},delete e.lineX0,e.lineEndAngle=function(){return Object(a.b)(i())},delete e.lineX1,e.lineInnerRadius=function(){return Object(a.b)(u())},delete e.lineY0,e.lineOuterRadius=function(){return Object(a.b)(s())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Object(r.b)(e)):t()._curve},e}},function(e,t,n){"use strict";function r(e){return e.source}function o(e){return e.target}function a(e){function t(){var t,r=p.a.call(arguments),o=n.apply(this,r),c=a.apply(this,r);if(s||(s=t=Object(d.a)()),e(s,+i.apply(this,(r[0]=o,r)),+u.apply(this,r),+i.apply(this,(r[0]=c,r)),+u.apply(this,r)),t)return s=null,t+""||null}var n=r,a=o,i=y.a,u=y.b,s=null;return t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(e){return arguments.length?(a=e,t):a},t.x=function(e){return arguments.length?(i="function"===typeof e?e:Object(h.a)(+e),t):i},t.y=function(e){return arguments.length?(u="function"===typeof e?e:Object(h.a)(+e),t):u},t.context=function(e){return arguments.length?(s=null==e?null:e,t):s},t}function i(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function u(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function s(e,t,n,r,o){var a=Object(v.a)(t,n),i=Object(v.a)(t,n=(n+o)/2),u=Object(v.a)(r,n),s=Object(v.a)(r,o);e.moveTo(a[0],a[1]),e.bezierCurveTo(i[0],i[1],u[0],u[1],s[0],s[1])}function c(){return a(i)}function l(){return a(u)}function f(){var e=a(s);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}t.a=c,t.c=l,t.b=f;var d=n(33),p=n(133),h=n(19),y=n(76),v=n(132)},function(e,t,n){"use strict";n.d(t,"b",function(){return d});var r=n(33),o=n(134),a=n(135),i=n(136),u=n(137),s=n(138),c=n(139),l=n(140),f=n(19),d=[o.a,a.a,i.a,s.a,u.a,c.a,l.a];t.a=function(){function e(){var e;if(a||(a=e=Object(r.a)()),t.apply(this,arguments).draw(a,+n.apply(this,arguments)),e)return a=null,e+""||null}var t=Object(f.a)(o.a),n=Object(f.a)(64),a=null;return e.type=function(n){return arguments.length?(t="function"===typeof n?n:Object(f.a)(n),e):t},e.size=function(t){return arguments.length?(n="function"===typeof t?t:Object(f.a)(+t),e):n},e.context=function(t){return arguments.length?(a=null==t?null:t,e):a},e}},function(e,t,n){"use strict";function r(e){this._context=e}var o=n(48),a=n(49);r.prototype={areaStart:o.a,areaEnd:o.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Object(a.c)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e){this._context=e}var o=n(49);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Object(o.c)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e,t){this._basis=new o.a(e),this._beta=t}var o=n(49);r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],a=t[0],i=e[n]-o,u=t[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(o+r*i),this._beta*t[s]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},t.a=function e(t){function n(e){return 1===t?new o.a(e):new r(e,t)}return n.beta=function(t){return e(+t)},n}(.85)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._alpha=t}var o=n(141),a=n(48),i=n(77);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Object(i.b)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.a=function e(t){function n(e){return t?new r(e,t):new o.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._alpha=t}var o=n(142),a=n(77);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(a.b)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.a=function e(t){function n(e){return t?new r(e,t):new o.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";function r(e){this._context=e}var o=n(48);r.prototype={areaStart:o.a,areaEnd:o.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e){return e<0?-1:1}function o(e,t,n){var o=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(o||a<0&&-0),u=(n-e._y1)/(a||o<0&&-0),s=(i*a+u*o)/(o+a);return(r(i)+r(u))*Math.min(Math.abs(i),Math.abs(u),.5*Math.abs(s))||0}function a(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function i(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,o+u*t,a-u,i-u*n,a,i)}function u(e){this._context=e}function s(e){this._context=new c(e)}function c(e){this._context=e}function l(e){return new u(e)}function f(e){return new s(e)}t.a=l,t.b=f,u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:i(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,i(this,a(this,n=o(this,e,t)),n);break;default:i(this,this._t0,n=o(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(u.prototype)).point=function(e,t){u.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}}},function(e,t,n){"use strict";function r(e){this._context=e}function o(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=o(e),a=o(t),i=0,u=1;u<n;++i,++u)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[u],t[u]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function o(e){return new r(e,0)}function a(e){return new r(e,1)}t.c=o,t.b=a,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},t.a=function(e){return new r(e,.5)}},function(e,t,n){"use strict";function r(e,t){return e[t]}var o=n(133),a=n(19),i=n(35),u=n(36);t.a=function(){function e(e){var r,o,a=t.apply(this,arguments),i=e.length,u=a.length,l=new Array(u);for(r=0;r<u;++r){for(var f,d=a[r],p=l[r]=new Array(i),h=0;h<i;++h)p[h]=f=[0,+c(e[h],d,h,e)],f.data=e[h];p.key=d}for(r=0,o=n(l);r<u;++r)l[o[r]].index=r;return s(l,o),l}var t=Object(a.a)([]),n=u.a,s=i.a,c=r;return e.keys=function(n){return arguments.length?(t="function"===typeof n?n:Object(a.a)(o.a.call(n)),e):t},e.value=function(t){return arguments.length?(c="function"===typeof t?t:Object(a.a)(+t),e):c},e.order=function(t){return arguments.length?(n=null==t?u.a:"function"===typeof t?t:Object(a.a)(o.a.call(t)),e):n},e.offset=function(t){return arguments.length?(s=null==t?i.a:t,e):s},e}},function(e,t,n){"use strict";var r=n(35);t.a=function(e,t){if((o=e.length)>0){for(var n,o,a,i=0,u=e[0].length;i<u;++i){for(a=n=0;n<o;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<o;++n)e[n][i][1]/=a}Object(r.a)(e,t)}}},function(e,t,n){"use strict";t.a=function(e,t){if((u=e.length)>1)for(var n,r,o,a,i,u,s=0,c=e[t[0]].length;s<c;++s)for(a=i=0,n=0;n<u;++n)(o=(r=e[t[n]][s])[1]-r[0])>=0?(r[0]=a,r[1]=a+=o):o<0?(r[1]=i,r[0]=i+=o):r[0]=a}},function(e,t,n){"use strict";var r=n(35);t.a=function(e,t){if((n=e.length)>0){for(var n,o=0,a=e[t[0]],i=a.length;o<i;++o){for(var u=0,s=0;u<n;++u)s+=e[u][o][1]||0;a[o][1]+=a[o][0]=-s/2}Object(r.a)(e,t)}}},function(e,t,n){"use strict";var r=n(35);t.a=function(e,t){if((a=e.length)>0&&(o=(n=e[t[0]]).length)>0){for(var n,o,a,i=0,u=1;u<o;++u){for(var s=0,c=0,l=0;s<a;++s){for(var f=e[t[s]],d=f[u][1]||0,p=f[u-1][1]||0,h=(d-p)/2,y=0;y<s;++y){var v=e[t[y]];h+=(v[u][1]||0)-(v[u-1][1]||0)}c+=d,l+=h*d}n[u-1][1]+=n[u-1][0]=i,c&&(i-=l/c)}n[u-1][1]+=n[u-1][0]=i,Object(r.a)(e,t)}}},function(e,t,n){"use strict";var r=n(78);t.a=function(e){return Object(r.a)(e).reverse()}},function(e,t,n){"use strict";var r=n(36),o=n(78);t.a=function(e){var t,n,a=e.length,i=e.map(o.b),u=Object(r.a)(e).sort(function(e,t){return i[t]-i[e]}),s=0,c=0,l=[],f=[];for(t=0;t<a;++t)n=u[t],s<c?(s+=i[n],l.push(n)):(c+=i[n],f.push(n));return f.reverse().concat(l)}},function(e,t,n){"use strict";var r=n(36);t.a=function(e){return Object(r.a)(e).reverse()}},function(e,t,n){"use strict";function r(e,t,n){var r=t[n];if("function"!==typeof r)throw new Error("Attempt to rebind "+n+" which isn't a function on the source object");return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=r.apply(t,o);return i===t?e:i}}function o(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var i=!0,u=!1,s=void 0;try{for(var c,l=o[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var f=c.value;e[f]=r(e,t,f)}}catch(e){u=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(u)throw s}}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){return(0,u.default)().combine(function(e,t){var o=n&&(0,l.isNotDefined)(t)?e:r(e,t);return(0,l.isNotDefined)(o)?e:o})(e,t(e))}var t=a.default,n=!0,r=c.default;return e.algorithm=function(n){return arguments.length?(t=n,e):t},e.merge=function(t){return arguments.length?(r=t,e):r},e.skipUndefined=function(t){return arguments.length?(n=t,e):n},e};var o=n(37),a=r(o),i=n(143),u=r(i),s=n(38),c=r(s),l=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=void 0,t=10,n=o.default,r=void 0,i=void 0,u=0,s=void 0,c=function(o){var c=i||(0,a.path)(r),l=(0,a.functor)(t).apply(this,arguments),f=o.slice(u,l+u).map(c),d=0,p=(0,a.functor)(e);return o.map(function(e,t){return t<u+l-1?p(c(e),t,s):(t>=u+l&&(f.shift(),f.push(c(e,t))),n(f,t,d++,s))})};return c.undefinedValue=function(t){return arguments.length?(e=t,c):e},c.windowSize=function(e){return arguments.length?(t=e,c):t},c.misc=function(e){return arguments.length?(s=e,c):s},c.accumulator=function(e){return arguments.length?(n=e,c):n},c.skipInitial=function(e){return arguments.length?(u=e,c):u},c.sourcePath=function(e){return arguments.length?(r=e,c):r},c.source=function(e){return arguments.length?(i=e,c):i},c};var r=n(38),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=void 0,t=10,n=a.default,r=u.default,o=0,i=function(a){var i=(0,s.functor)(t).apply(this,arguments),u=[],c=0,l=(0,s.functor)(e),f=[];return a.forEach(function(e,t){var a=void 0;if(t<o+i-1)return a=l(e,t),f.push(a),void u.push(a);t>=o+i&&u.shift(),u.push(r(e,t)),a=n(u,t,c++),f.push(a),u.pop(),u.push(a)}),f};return i.undefinedValue=function(t){return arguments.length?(e=t,i):e},i.windowSize=function(e){return arguments.length?(t=e,i):t},i.accumulator=function(e){return arguments.length?(n=e,i):n},i.skipInitial=function(e){return arguments.length?(o=e,i):o},i.source=function(e){return arguments.length?(r=e,i):r},i};var o=n(38),a=r(o),i=n(37),u=r(i),s=n(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,s.functor)(!1),t=a.default,n=u.default,r=!1,o=!1,i=function(a){var i=r?void 0:[],u=[],s=0,c=0;for(c=0;c<a.length;c++){var l=a[c];e(l,c)?(i&&i.length>0&&u.push(t(i,c,s++)),i=[n(l)]):i&&i.push(n(l))}return o||u.push(t(i,c,s)),u};return i.accumulateTill=function(t){return arguments.length?(e=(0,s.functor)(t),i):e},i.accumulator=function(e){return arguments.length?(t=e,i):t},i.value=function(e){return arguments.length?(n=e,i):n},i.discardTillStart=function(e){return arguments.length?(r=e,i):r},i.discardTillEnd=function(e){return arguments.length?(o=e,i):o},i};var o=n(38),a=r(o),i=n(37),u=r(i),s=n(0)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),s=n(144),c=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e,t,n){return!(0,c.default)(this.props,e)||!(0,c.default)(this.state,t)||!(0,c.default)(this.context,n)}}]),t}(u.Component);t.default=l},function(e,t,n){"use strict";function r(e,t){var n=e.widthRatio,r=void 0===n?.8:n,o=t.xScale,i=t.xAccessor,u=t.plotData;return Math.abs((o(i((0,a.last)(u)))-o(i((0,a.head)(u))))/(u.length-1))*r}function o(e){return function(t,n){var r=t.widthRatio,o=void 0===r?.8:r,i=n.xScale,u=n.xAccessor,s=n.plotData,c=u((0,a.head)(s));return Math.abs(i(e.offset(c,1))-i(c))*o}}Object.defineProperty(t,"__esModule",{value:!0}),t.plotDataLengthBarWidth=r,t.timeIntervalBarWidth=o;var a=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.strokeDashTypes=["Solid","ShortDash","ShortDot","ShortDashDot","ShortDashDotDot","Dot","Dash","LongDash","DashDot","LongDashDot","LongDashDotDot"],t.getStrokeDasharray=function(e){switch(e){default:case"Solid":return"none";case"ShortDash":return"6, 2";case"ShortDot":return"2, 2";case"ShortDashDot":return"6, 2, 2, 2";case"ShortDashDotDot":return"6, 2, 2, 2, 2, 2";case"Dot":return"2, 6";case"Dash":return"8, 6";case"LongDash":return"16, 6";case"DashDot":return"8, 6, 2, 6";case"LongDashDot":return"16, 6, 2, 6";case"LongDashDotDot":return"16, 6, 2, 6, 2, 6"}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n){var r=e.yAccessor,o=e.markerProvider,a=e.markerProps,i=e.marker,u=t.xScale,s=t.chartConfig.yScale,l=t.plotData;if(!o&&!i)throw new Error("required prop, either marker or markerProvider missing");return l.map(function(e){o&&(i=o(e));var t=c({},i.defaultProps,a),l=(0,m.functor)(t.fill),f=(0,m.functor)(t.stroke);return{x:u(n(e)),y:s(r(e)),fill:(0,m.hexToRGBA)(l(e),t.opacity),stroke:f(e),datum:e,marker:i}})}function s(e,t,n){var r=t.markerProps;(0,y.nest)().key(function(e){return e.fill}).key(function(e){return e.stroke}).entries(n).forEach(function(t){var n=t.key,o=t.values;"none"!==n&&(e.fillStyle=n),o.forEach(function(t){t.values.forEach(function(t){var o=t.marker;o.drawOnCanvas(c({},o.defaultProps,r,{fill:n}),t,e)})})})}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),d=r(f),p=n(2),h=r(p),y=n(13),v=n(4),b=r(v),g=n(5),m=n(0),w=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),l(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor,r=u(this.props,t,n);s(e,this.props,r)}},{key:"renderSVG",value:function(e){var t=this.props,n=t.className,r=t.markerProps,o=e.xAccessor,a=u(this.props,e,o);return d.default.createElement("g",{className:n},a.map(function(e,t){var n=e.marker;return d.default.createElement(n,c({key:t},r,{point:e}))}))}},{key:"render",value:function(){return d.default.createElement(b.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:g.getAxisCanvas,drawOn:["pan"]})}}]),t}(f.Component);w.propTypes={className:h.default.string,yAccessor:h.default.func.isRequired,marker:h.default.func,markerProvider:h.default.func,markerProps:h.default.object},w.defaultProps={className:"react-stockcharts-scatter"},t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.stroke,r=e.strokeWidth,o=e.opacity,a=e.fill,u=e.point,s=e.r,l=(0,c.functor)(s)(u.datum);return i.default.createElement("circle",{className:t,cx:u.x,cy:u.y,stroke:n,strokeWidth:r,fillOpacity:o,fill:a,r:l})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(2),s=r(u),c=n(0);o.propTypes={stroke:s.default.string,fill:s.default.string.isRequired,opacity:s.default.number.isRequired,point:s.default.shape({x:s.default.number.isRequired,y:s.default.number.isRequired,datum:s.default.object.isRequired}).isRequired,className:s.default.string,strokeWidth:s.default.number,r:s.default.oneOfType([s.default.number,s.default.func]).isRequired},o.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-marker-circle"},o.drawOnCanvas=function(e,t,n){var r=e.stroke,a=e.fill,i=e.opacity,u=e.strokeWidth;n.strokeStyle=r,n.lineWidth=u,"none"!==a&&(n.fillStyle=(0,c.hexToRGBA)(a,i)),o.drawOnCanvasWithNoStateChange(e,t,n)},o.drawOnCanvasWithNoStateChange=function(e,t,n){var r=e.r,o=(0,c.functor)(r)(t.datum);n.moveTo(t.x,t.y),n.beginPath(),n.arc(t.x,t.y,o,0,2*Math.PI,!1),n.stroke(),n.fill()},t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.stroke,r=e.strokeWidth,o=e.opacity,i=e.fill,s=e.point,c=e.width,f=(0,l.functor)(c)(s.datum),d=s.x,p=s.y,h=a(f),y=h.innerOpposite,v=h.innerHypotenuse,b="\n\t\t"+d+" "+(p-v)+",\n\t\t"+(d+f/2)+" "+(p+y)+",\n\t\t"+(d-f/2)+" "+(p+y)+"\n\t";return u.default.createElement("polygon",{className:t,points:b,stroke:n,strokeWidth:r,fillOpacity:o,fill:i})}function a(e){var t=e/2*(1/Math.cos(30*Math.PI/180));return{innerOpposite:e/2*(1/Math.tan(60*Math.PI/180)),innerHypotenuse:t}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),u=r(i),s=n(2),c=r(s),l=n(0);o.propTypes={stroke:c.default.string,fill:c.default.string.isRequired,opacity:c.default.number.isRequired,point:c.default.shape({x:c.default.number.isRequired,y:c.default.number.isRequired,datum:c.default.object.isRequired}).isRequired,className:c.default.string,strokeWidth:c.default.number,width:c.default.oneOfType([c.default.number,c.default.func]).isRequired},o.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-marker-triangle"},o.drawOnCanvas=function(e,t,n){var r=e.stroke,a=e.fill,i=e.opacity,u=e.strokeWidth;n.strokeStyle=r,n.lineWidth=u,"none"!==a&&(n.fillStyle=(0,l.hexToRGBA)(a,i)),o.drawOnCanvasWithNoStateChange(e,t,n)},o.drawOnCanvasWithNoStateChange=function(e,t,n){var r=e.width,o=(0,l.functor)(r)(t.datum),i=t.x,u=t.y,s=a(o),c=s.innerOpposite,f=s.innerHypotenuse;n.beginPath(),n.moveTo(i,u-f),n.lineTo(i+o/2,u+c),n.lineTo(i-o/2,u+c),n.stroke(),n.fill()},t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.stroke,r=e.strokeWidth,o=e.opacity,a=e.fill,u=e.point,s=e.width,l=(0,c.functor)(s)(u.datum),f=u.x-l/2,d=u.y-l/2;return i.default.createElement("rect",{className:t,x:f,y:d,stroke:n,strokeWidth:r,fillOpacity:o,fill:a,width:l,height:l})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),u=n(2),s=r(u),c=n(0);o.propTypes={stroke:s.default.string,fill:s.default.string.isRequired,opacity:s.default.number.isRequired,point:s.default.shape({x:s.default.number.isRequired,y:s.default.number.isRequired,datum:s.default.object.isRequired}).isRequired,className:s.default.string,strokeWidth:s.default.number,width:s.default.oneOfType([s.default.number,s.default.func]).isRequired},o.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-marker-rect"},o.drawOnCanvas=function(e,t,n){var r=e.stroke,a=e.fill,i=e.opacity,u=e.strokeWidth;n.strokeStyle=r,n.lineWidth=u,"none"!==a&&(n.fillStyle=(0,c.hexToRGBA)(a,i)),o.drawOnCanvasWithNoStateChange(e,t,n)},o.drawOnCanvasWithNoStateChange=function(e,t,n){var r=e.width,o=(0,c.functor)(r)(t.datum),a=t.x-o/2,i=t.y-o/2;n.beginPath(),n.rect(a,i,o,o),n.stroke(),n.fill()},t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.map(function(e,t){var n=e.wick;return h.default.createElement("path",{key:t,className:e.className,stroke:n.stroke,d:"M"+n.x+","+n.y1+" L"+n.x+","+n.y2+" M"+n.x+","+n.y3+" L"+n.x+","+n.y4})})}function s(e,t){var n=e.opacity,r=e.candleStrokeWidth;return t.map(function(e,t){return e.width<=1?h.default.createElement("line",{className:e.className,key:t,x1:e.x,y1:e.y,x2:e.x,y2:e.y+e.height,stroke:e.fill}):0===e.height?h.default.createElement("line",{key:t,x1:e.x,y1:e.y,x2:e.x+e.width,y2:e.y+e.height,stroke:e.fill}):h.default.createElement("rect",{key:t,className:e.className,fillOpacity:n,x:e.x,y:e.y,width:e.width,height:e.height,fill:e.fill,stroke:e.stroke,strokeWidth:r})})}function c(e,t,n){var r=t.opacity,o=t.candleStrokeWidth,a=n.xScale,i=n.chartConfig.yScale,u=n.plotData,s=n.xAccessor,c=l(t,s,a,i,u);(0,d.nest)().key(function(e){return e.wick.stroke}).entries(c).forEach(function(t){var n=t.key,r=t.values;e.strokeStyle=n,e.fillStyle=n,r.forEach(function(t){var n=t.wick;e.fillRect(n.x-.5,n.y1,1,n.y2-n.y1),e.fillRect(n.x-.5,n.y3,1,n.y4-n.y3)})}),(0,d.nest)().key(function(e){return e.stroke}).key(function(e){return e.fill}).entries(c).forEach(function(t){var n=t.key,a=t.values;"none"!==n&&(e.strokeStyle=n,e.lineWidth=o),a.forEach(function(t){var o=t.key,a=t.values,i=(0,w.head)(a).width<=1?o:(0,w.hexToRGBA)(o,r);e.fillStyle=i,a.forEach(function(t){t.width<=1?(e.fillStyle=e.strokeStyle,e.fillRect(t.x-.5,t.y,1,t.height)):0===t.height?(e.fillStyle=e.strokeStyle,e.fillRect(t.x,t.y-.5,t.width,1)):(e.fillRect(t.x,t.y,t.width,t.height),"none"!==n&&e.strokeRect(t.x,t.y,t.width,t.height))})})})}function l(e,t,n,r,o){for(var a=e.wickStroke,i=(0,w.functor)(a),u=e.classNames,s=e.fill,c=e.stroke,l=e.yAccessor,f=(0,w.functor)(u),d=(0,w.functor)(s),p=(0,w.functor)(c),h=(0,w.functor)(e.width),y=h(e,{xScale:n,xAccessor:t,plotData:o}),v=.5*y,b=v>.7?Math.round(v):Math.floor(v),g=[],m=0;m<o.length;m++){var _=o[m];if((0,w.isDefined)(l(_).close)){var O=Math.round(n(t(_))),x=l(_),k=Math.round(r(Math.max(x.open,x.close))),C=Math.round(Math.abs(r(x.open)-r(x.close)));g.push({x:O-b,y:k,wick:{stroke:i(x),x:O,y1:Math.round(r(x.high)),y2:k,y3:k+C,y4:Math.round(r(x.low))},height:C,width:2*b,className:f(x),fill:d(x),stroke:p(x),direction:x.close-x.open})}}return g}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(13),p=n(1),h=r(p),y=n(2),v=r(y),b=n(4),g=r(b),m=n(5),w=n(0),_=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),f(t,[{key:"drawOnCanvas",value:function(e,t){c(e,this.props,t)}},{key:"renderSVG",value:function(e){var t=this.props,n=t.className,r=t.wickClassName,o=t.candleClassName,a=e.xScale,i=e.chartConfig.yScale,c=e.plotData,f=e.xAccessor,d=l(this.props,f,a,i,c);return h.default.createElement("g",{className:n},h.default.createElement("g",{className:r,key:"wicks"},u(d)),h.default.createElement("g",{className:o,key:"candles"},s(this.props,d)))}},{key:"render",value:function(){var e=this.props.clip;return h.default.createElement(g.default,{clip:e,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:m.getAxisCanvas,drawOn:["pan"]})}}]),t}(p.Component);_.propTypes={className:v.default.string,wickClassName:v.default.string,candleClassName:v.default.string,widthRatio:v.default.number,width:v.default.oneOfType([v.default.number,v.default.func]),classNames:v.default.oneOfType([v.default.func,v.default.string]),fill:v.default.oneOfType([v.default.func,v.default.string]),stroke:v.default.oneOfType([v.default.func,v.default.string]),wickStroke:v.default.oneOfType([v.default.func,v.default.string]),yAccessor:v.default.func,clip:v.default.bool},_.defaultProps={className:"react-stockcharts-candlestick",wickClassName:"react-stockcharts-candlestick-wick",candleClassName:"react-stockcharts-candlestick-candle",yAccessor:function(e){return{open:e.open,high:e.high,low:e.low,close:e.close}},classNames:function(e){return e.close>e.open?"up":"down"},width:w.plotDataLengthBarWidth,wickStroke:"#000000",fill:function(e){return e.close>e.open?"#6BA583":"#FF0000"},stroke:"#000000",candleStrokeWidth:.5,widthRatio:.8,opacity:.5,clip:!0},t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=t.strokeWidth,r=t.bars,o=(0,l.nest)().key(function(e){return e.stroke}).entries(r);e.lineWidth=n,o.forEach(function(t){var n=t.key,r=t.values;e.strokeStyle=n,r.forEach(function(t){e.beginPath(),e.moveTo(t.x,t.y1),e.lineTo(t.x,t.y2),e.moveTo(t.openX1,t.openY),e.lineTo(t.openX2,t.openY),e.moveTo(t.closeX1,t.closeY),e.lineTo(t.closeX2,t.closeY),e.stroke()})})}function s(e,t,n,r,o,a){var i=e.classNames,u=e.stroke,s=(0,g.functor)(u),c=(0,g.functor)(i),l=r(t(a[a.length-1]))-r(t(a[0])),f=Math.max(1,Math.round(l/(a.length-1)/2)-1.5),d=Math.min(f,6),p=a.filter(function(e){return(0,g.isDefined)(n(e).close)}).map(function(e){var a=n(e),i=Math.round(r(t(e))),u=o(a.high),l=o(a.low),p=i-f,h=i+d/2,y=o(a.open),v=i-d/2,b=i+f,g=o(a.close),m=c(e);return{x:i,y1:u,y2:l,openX1:p,openX2:h,openY:y,closeX1:v,closeX2:b,closeY:g,stroke:s(e),className:m}});return{barWidth:f,strokeWidth:d,bars:p}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(13),f=n(1),d=r(f),p=n(2),h=r(p),y=n(4),v=r(y),b=n(5),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),c(t,[{key:"drawOnCanvas",value:function(e,t){var n=this.props.yAccessor,r=t.xAccessor,o=t.xScale,a=t.chartConfig.yScale,i=t.plotData;u(e,s(this.props,r,n,o,a,i))}},{key:"render",value:function(){var e=this.props.clip;return d.default.createElement(v.default,{svgDraw:this.renderSVG,canvasToDraw:b.getAxisCanvas,canvasDraw:this.drawOnCanvas,clip:e,drawOn:["pan"]})}},{key:"renderSVG",value:function(e){var t=this.props,n=t.className,r=t.yAccessor,o=e.xAccessor,a=e.xScale,i=e.chartConfig.yScale,u=e.plotData,c=s(this.props,o,r,a,i,u),l=c.strokeWidth,f=c.bars;return d.default.createElement("g",{className:n},f.map(function(e,t){return d.default.createElement("path",{key:t,className:e.className,stroke:e.stroke,strokeWidth:l,d:"M"+e.openX1+" "+e.openY+" L"+e.openX2+" "+e.openY+" M"+e.x+" "+e.y1+" L"+e.x+" "+e.y2+" M"+e.closeX1+" "+e.closeY+" L"+e.closeX2+" "+e.closeY})}))}}]),t}(f.Component);m.propTypes={className:h.default.string,classNames:h.default.oneOfType([h.default.func,h.default.string]).isRequired,stroke:h.default.oneOfType([h.default.func,h.default.string]).isRequired,yAccessor:h.default.func.isRequired,clip:h.default.bool.isRequired},m.defaultProps={className:"react-stockcharts-ohlc",yAccessor:function(e){return{open:e.open,high:e.high,low:e.low,close:e.close}},classNames:function(e){return(0,g.isDefined)(e.absoluteChange)?e.absoluteChange>0?"up":"down":"firstbar"},stroke:function(e){return(0,g.isDefined)(e.absoluteChange)?e.absoluteChange>0?"#6BA583":"#FF0000":"#000000"},clip:!0},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.map(function(e){return s({},e,{x:e.x+e.offset-e.groupOffset,width:e.groupWidth})})}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(4),y=r(h),v=n(5),b=n(51),g=r(b),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),c(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor;(0,b.drawOnCanvasHelper)(e,this.props,t,n,b.identityStack,u)}},{key:"renderSVG",value:function(e){var t=e.xAccessor;return f.default.createElement("g",{className:"react-stockcharts-grouped-bar-series"},(0,b.svgHelper)(this.props,e,t,b.identityStack,u))}},{key:"render",value:function(){return f.default.createElement(y.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:v.getAxisCanvas,drawOn:["pan"]})}}]),t}(l.Component);m.propTypes={baseAt:p.default.oneOfType([p.default.number,p.default.func]).isRequired,direction:p.default.oneOf(["up","down"]).isRequired,stroke:p.default.bool.isRequired,widthRatio:p.default.number.isRequired,opacity:p.default.number.isRequired,fill:p.default.oneOfType([p.default.func,p.default.string]).isRequired,className:p.default.oneOfType([p.default.func,p.default.string]).isRequired,yAccessor:p.default.arrayOf(p.default.func)},m.defaultProps=s({},g.default.defaultProps,{widthRatio:.8,spaceBetweenBar:5}),t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n,r){var o=t.stroke,a=t.strokeWidth,i=t.currentValueStroke,u=n.xScale,c=n.chartConfig.yScale,l=n.plotData,f=s(l,r),d=!0;f.forEach(function(t){e.strokeStyle=o[t.type],e.lineWidth=a,e.beginPath();var n=void 0;t.plot.forEach(function(t){var r=[u(t[0]),c(t[1])],o=r[0],a=r[1];d?(e.moveTo(o,a),d=!1):((0,g.isDefined)(n)&&e.lineTo(n,a),e.lineTo(o,a)),n=o}),e.stroke()});var p=f[f.length-1].plot,h=p[p.length-1];e.beginPath(),e.lineWidth=1;var y=[u(h[0]),c(h[2]),c(h[3])],v=y[0],b=y[1],m=y[2];e.moveTo(v,b),e.lineTo(v+10,b),e.stroke(),e.beginPath(),e.strokeStyle=i,e.moveTo(v-10,m),e.lineTo(v,m),e.stroke()}function s(e,t){for(var n=[],r={},o=e[0],a=t(o),i=0;i<e.length;i++)o=e[i],(0,g.isNotDefined)(o.close)||((0,g.isNotDefined)(r.type)&&(r.type=o.startAs),(0,g.isNotDefined)(r.plot)&&(r.plot=[]),a=t(o),r.plot.push([a,o.open]),(0,g.isDefined)(o.changeTo)&&(r.plot.push([a,o.changePoint]),r.added=!0,n.push(r),r={type:o.changeTo,plot:[],added:!1},r.plot.push([a,o.changePoint])));return r.added||(r.plot.push([a,o.close,o.current,o.reverseAt]),n.push(r)),n}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(46),y=n(4),v=r(y),b=n(5),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),c(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor;u(e,this.props,t,n)}},{key:"render",value:function(){return f.default.createElement(v.default,{svgDraw:this.renderSVG,canvasToDraw:b.getAxisCanvas,canvasDraw:this.drawOnCanvas,drawOn:["pan"]})}},{key:"renderSVG",value:function(e){var t=e.xAccessor,n=e.xScale,r=e.chartConfig.yScale,o=e.plotData,a=this.props,i=a.className,u=a.stroke,c=a.fill,l=a.strokeWidth,d=s(o,t).map(function(e,t){var o=(0,h.line)().x(function(e){return n(e[0])}).y(function(e){return r(e[1])}).curve(h.curveStepBefore);return o(e.plot),f.default.createElement("path",{key:t,d:o(e.plot),className:e.type,stroke:u[e.type],fill:c[e.type],strokeWidth:l})});return f.default.createElement("g",{className:i},d)}}]),t}(l.Component);m.propTypes={className:p.default.string,stroke:p.default.object,fill:p.default.object,strokeWidth:p.default.number.isRequired},m.defaultProps={className:"react-stockcharts-kagi",strokeWidth:2,stroke:{yang:"#6BA583",yin:"#E60000"},fill:{yang:"none",yin:"none"},currentValueStroke:"#000000"},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n){var r=t.stroke,o=t.fill,a=t.strokeWidth;e.lineWidth=a,n.forEach(function(t){var n=c(t.offset,2),a=n[0],i=n[1];t.boxes.forEach(function(n){if(t.direction>0)e.fillStyle=o.up,e.strokeStyle=r.up,e.beginPath(),e.moveTo(a,i+n.open),e.lineTo(a+n.columnWidth,i+n.close),e.moveTo(a,i+n.close),e.lineTo(a+n.columnWidth,i+n.open),e.stroke();else{e.fillStyle=o.down,e.strokeStyle=r.down,e.beginPath();var u=a+n.columnWidth/2,s=i+n.open+n.boxHeight/2,c=n.columnWidth/2,l=n.boxHeight/2;e.ellipse(u,s,c,l,0,0,2*Math.PI),e.stroke()}})}),e.stroke()}function s(e,t,n,r){for(var o=e(t(r[r.length-1]))-e(t(r[0])),a=o/(r.length-1),i=void 0,u=0;(0,g.isNotDefined)(i)&&(0,g.isDefined)(r[u].close);)i=r[u].boxes[0],u++;var s=Math.abs(n(i.open)-n(i.close));return r.filter(function(e){return(0,g.isDefined)(e.close)}).map(function(r){var o=r.boxes.map(function(e){return{columnWidth:a,boxHeight:s,open:n(e.open),close:n(e.close)}}),i=e(t(r))-a/2;return{boxes:o,direction:r.direction,offset:[i,0]}})}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),d=r(f),p=n(2),h=r(p),y=n(4),v=r(y),b=n(5),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),l(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor,r=t.xScale,o=t.chartConfig.yScale,a=t.plotData,i=s(r,n,o,a);u(e,this.props,i)}},{key:"render",value:function(){var e=this.props.clip;return d.default.createElement(v.default,{clip:e,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:b.getAxisCanvas,drawOn:["pan"]})}},{key:"renderSVG",value:function(e){var t=e.xAccessor,n=e.xScale,r=e.chartConfig.yScale,o=e.plotData,a=this.props,i=a.stroke,u=a.fill,c=a.strokeWidth,l=a.className,f=s(n,t,r,o);return d.default.createElement("g",{className:l},f.map(function(e,t){return d.default.createElement("g",{key:t,className:e.className,transform:"translate("+e.offset[0]+", "+e.offset[1]+")"},e.boxes.map(function(n,r){return e.direction>0?d.default.createElement("g",{key:t+"-"+r},d.default.createElement("line",{className:"up",strokeWidth:c,stroke:i.up,fill:u.up,x1:0,y1:n.open,x2:n.columnWidth,y2:n.close}),d.default.createElement("line",{className:"up",strokeWidth:c,stroke:i.up,fill:u.up,x1:0,y1:n.close,x2:n.columnWidth,y2:n.open})):d.default.createElement("ellipse",{key:t+"-"+r,className:"down",strokeWidth:c,stroke:i.down,fill:u.down,cx:n.columnWidth/2,cy:(n.open+n.close)/2,rx:n.columnWidth/2,ry:n.boxHeight/2})}))}))}}]),t}(f.Component);m.propTypes={className:h.default.string,strokeWidth:h.default.number.isRequired,stroke:h.default.object.isRequired,fill:h.default.object.isRequired,clip:h.default.bool.isRequired},m.defaultProps={className:"react-stockcharts-point-and-figure",strokeWidth:1,stroke:{up:"#6BA583",down:"#FF0000"},fill:{up:"none",down:"none"},clip:!0},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){t.forEach(function(t){e.beginPath(),e.strokeStyle=t.stroke,e.fillStyle=t.fill,e.rect(t.x,t.y,t.width,t.height),e.closePath(),e.fill()})}function s(e,t,n,r,o,a){var i=e.classNames,u=e.fill,s=n(r(t[t.length-1]))-n(r(t[0])),c=s/(t.length-1);return t.filter(function(e){return(0,b.isDefined)(a(e).close)}).map(function(e){var t=a(e),s=n(r(e))-.5*c,l=o(Math.max(t.open,t.close)),f=Math.abs(o(t.open)-o(t.close));return{className:t.open<=t.close?i.up:i.down,fill:e.fullyFormed?t.open<=t.close?u.up:u.down:u.partial,x:s,y:l,height:f,width:c}})}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(4),y=r(h),v=n(5),b=n(0),g=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),c(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor,r=t.xScale,o=t.chartConfig.yScale,a=t.plotData,i=this.props.yAccessor;u(e,s(this.props,a,r,n,o,i))}},{key:"render",value:function(){var e=this.props.clip;return f.default.createElement(y.default,{clip:e,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:v.getAxisCanvas,drawOn:["pan"]})}},{key:"renderSVG",value:function(e){var t=e.xAccessor,n=e.xScale,r=e.chartConfig.yScale,o=e.plotData,a=this.props.yAccessor,i=s(this.props,o,n,t,r,a).map(function(e,t){return f.default.createElement("rect",{key:t,className:e.className,fill:e.fill,x:e.x,y:e.y,width:e.width,height:e.height})});return f.default.createElement("g",null,f.default.createElement("g",{className:"candle"},i))}}]),t}(l.Component);g.propTypes={classNames:p.default.shape({up:p.default.string,down:p.default.string}),stroke:p.default.shape({up:p.default.string,down:p.default.string}),fill:p.default.shape({up:p.default.string,down:p.default.string,partial:p.default.string}),yAccessor:p.default.func.isRequired,clip:p.default.bool.isRequired},g.defaultProps={classNames:{up:"up",down:"down"},stroke:{up:"none",down:"none"},fill:{up:"#6BA583",down:"#E60000",partial:"#4682B4"},yAccessor:function(e){return{open:e.open,high:e.high,low:e.low,close:e.close}},clip:!0},t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=n(145),p=r(d),h=n(27),y=r(h),v=n(39),b=r(v),g=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.yAccessorForMACD=n.yAccessorForMACD.bind(n),n.yAccessorForSignal=n.yAccessorForSignal.bind(n),n.yAccessorForDivergence=n.yAccessorForDivergence.bind(n),n.yAccessorForDivergenceBase=n.yAccessorForDivergenceBase.bind(n),n}return i(t,e),u(t,[{key:"yAccessorForMACD",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).macd}},{key:"yAccessorForSignal",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).signal}},{key:"yAccessorForDivergence",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).divergence}},{key:"yAccessorForDivergenceBase",value:function(e,t){return t(0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.opacity,r=e.divergenceStroke,o=this.props,a=o.stroke,i=o.fill,u=this.props.clip,s=this.props,l=s.zeroLineStroke,f=s.zeroLineOpacity;return c.default.createElement("g",{className:t},c.default.createElement(p.default,{baseAt:this.yAccessorForDivergenceBase,className:"macd-divergence",widthRatio:.5,stroke:r,fill:i.divergence,opacity:n,clip:u,yAccessor:this.yAccessorForDivergence}),c.default.createElement(y.default,{yAccessor:this.yAccessorForMACD,stroke:a.macd,fill:"none"}),c.default.createElement(y.default,{yAccessor:this.yAccessorForSignal,stroke:a.signal,fill:"none"}),c.default.createElement(b.default,{stroke:l,opacity:f,yValue:0}))}}]),t}(s.Component);g.propTypes={className:f.default.string,yAccessor:f.default.func.isRequired,opacity:f.default.number,divergenceStroke:f.default.bool,zeroLineStroke:f.default.string,zeroLineOpacity:f.default.number,clip:f.default.bool.isRequired,stroke:f.default.shape({macd:f.default.string.isRequired,signal:f.default.string.isRequired}).isRequired,fill:f.default.shape({divergence:f.default.string.isRequired}).isRequired},g.defaultProps={className:"react-stockcharts-macd-series",zeroLineStroke:"#000000",zeroLineOpacity:.3,opacity:.6,divergenceStroke:!1,clip:!0},t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=n(27),p=r(d),h=n(79),y=r(h),v=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.yAccessorForTop=n.yAccessorForTop.bind(n),n.yAccessorForMiddle=n.yAccessorForMiddle.bind(n),n.yAccessorForBottom=n.yAccessorForBottom.bind(n),n.yAccessorForScalledBottom=n.yAccessorForScalledBottom.bind(n),n}return i(t,e),u(t,[{key:"yAccessorForTop",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).top}},{key:"yAccessorForMiddle",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).middle}},{key:"yAccessorForBottom",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).bottom}},{key:"yAccessorForScalledBottom",value:function(e,t){var n=this.props.yAccessor;return e(n(t)&&n(t).bottom)}},{key:"render",value:function(){var e=this.props,t=e.areaClassName,n=e.className,r=e.opacity,o=this.props,a=o.stroke,i=o.fill;return c.default.createElement("g",{className:n},c.default.createElement(p.default,{yAccessor:this.yAccessorForTop,stroke:a.top,fill:"none"}),c.default.createElement(p.default,{yAccessor:this.yAccessorForMiddle,stroke:a.middle,fill:"none"}),c.default.createElement(p.default,{yAccessor:this.yAccessorForBottom,stroke:a.bottom,fill:"none"}),c.default.createElement(y.default,{className:t,yAccessor:this.yAccessorForTop,base:this.yAccessorForScalledBottom,stroke:"none",fill:i,opacity:r}))}}]),t}(s.Component);v.propTypes={yAccessor:f.default.func.isRequired,className:f.default.string,areaClassName:f.default.string,opacity:f.default.number,type:f.default.string,stroke:f.default.shape({top:f.default.string.isRequired,middle:f.default.string.isRequired,bottom:f.default.string.isRequired}).isRequired,fill:f.default.string.isRequired},v.defaultProps={className:"react-stockcharts-bollinger-band-series",areaClassName:"react-stockcharts-bollinger-band-series-area",opacity:.2},t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=n(27),p=r(d),h=n(39),y=r(h),v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.stroke,r=this.props.yAccessor,o=this.props,a=o.overSold,i=o.middle,u=o.overBought;return c.default.createElement("g",{className:t},c.default.createElement(p.default,{className:t,yAccessor:r,stroke:n.line,fill:"none"}),c.default.createElement(y.default,{stroke:n.top,opacity:.3,yValue:a}),c.default.createElement(y.default,{stroke:n.middle,opacity:.3,yValue:i}),c.default.createElement(y.default,{stroke:n.bottom,opacity:.3,yValue:u}))}}]),t}(s.Component);v.propTypes={className:f.default.string,yAccessor:f.default.func.isRequired,stroke:f.default.shape({line:f.default.string.isRequired,top:f.default.string.isRequired,middle:f.default.string.isRequired,bottom:f.default.string.isRequired}).isRequired,overSold:f.default.number.isRequired,middle:f.default.number.isRequired,overBought:f.default.number.isRequired},v.defaultProps={className:"react-stockcharts-rsi-series",stroke:{line:"#000000",top:"#964B00",middle:"#000000",bottom:"#964B00"},overSold:70,middle:50,overBought:30},t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=n(27),p=r(d),h=n(39),y=r(h),v=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.yAccessorForD=n.yAccessorForD.bind(n),n.yAccessorForK=n.yAccessorForK.bind(n),n}return i(t,e),u(t,[{key:"yAccessorForD",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).D}},{key:"yAccessorForK",value:function(e){var t=this.props.yAccessor;return t(e)&&t(e).K}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.stroke,r=e.refLineOpacity,o=this.props,a=o.overSold,i=o.middle,u=o.overBought;return c.default.createElement("g",{className:t},c.default.createElement(p.default,{yAccessor:this.yAccessorForD,stroke:n.dLine,fill:"none"}),c.default.createElement(p.default,{yAccessor:this.yAccessorForK,stroke:n.kLine,fill:"none"}),c.default.createElement(y.default,{stroke:n.top,opacity:r,yValue:a}),c.default.createElement(y.default,{stroke:n.middle,opacity:r,yValue:i}),c.default.createElement(y.default,{stroke:n.bottom,opacity:r,yValue:u}))}}]),t}(s.Component);v.propTypes={className:f.default.string,yAccessor:f.default.func.isRequired,stroke:f.default.shape({top:f.default.string.isRequired,middle:f.default.string.isRequired,bottom:f.default.string.isRequired,dLine:f.default.string.isRequired,kLine:f.default.string.isRequired}).isRequired,overSold:f.default.number.isRequired,middle:f.default.number.isRequired,overBought:f.default.number.isRequired,refLineOpacity:f.default.number.isRequired},v.defaultProps={className:"react-stockcharts-stochastic-series",stroke:{top:"#964B00",middle:"#000000",bottom:"#964B00",dLine:"#EA2BFF",kLine:"#74D400"},overSold:80,middle:50,overBought:20,refLineOpacity:.3},t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=n(346),p=r(d),h=n(39),y=r(h),v=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.fillForEachBar=n.fillForEachBar.bind(n),n.yAccessorTop=n.yAccessorTop.bind(n),n.yAccessorBullTop=n.yAccessorBullTop.bind(n),n.yAccessorBearTop=n.yAccessorBearTop.bind(n),n.yAccessorBullBottom=n.yAccessorBullBottom.bind(n),n.yAccessorBearBottom=n.yAccessorBearBottom.bind(n),n.yAccessorForBarBase=n.yAccessorForBarBase.bind(n),n}return i(t,e),u(t,[{key:"yAccessorTop",value:function(e){var t=this.props.yAccessor;return t(e)&&Math.max(t(e).bullPower,0)}},{key:"yAccessorBullTop",value:function(e){var t=this.props.yAccessor;return t(e)&&(t(e).bullPower>0?t(e).bullPower:void 0)}},{key:"yAccessorBearTop",value:function(e){var t=this.props.yAccessor;return t(e)&&(t(e).bearPower>0?t(e).bearPower:void 0)}},{key:"yAccessorBullBottom",value:function(e){var t=this.props.yAccessor;return t(e)&&(t(e).bullPower<0?0:void 0)}},{key:"yAccessorBearBottom",value:function(e){var t=this.props.yAccessor;return t(e)&&(t(e).bullPower<0||t(e).bullPower*t(e).bearPower<0?Math.min(0,t(e).bullPower):void 0)}},{key:"yAccessorForBarBase",value:function(e,t,n){var r=this.props.yAccessor;return t(r(n)&&Math.min(r(n).bearPower,0))}},{key:"fillForEachBar",value:function(e,t){var n=this.props,r=n.bullPowerFill,o=n.bearPowerFill;return t%2===0?r:o}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.opacity,r=e.stroke,o=e.straightLineStroke,a=e.straightLineOpacity,i=e.widthRatio,u=this.props.clip;return c.default.createElement("g",{className:t},c.default.createElement(p.default,{baseAt:this.yAccessorForBarBase,className:"react-stockcharts-elderray-bar",stroke:r,fill:this.fillForEachBar,opacity:n,widthRatio:i,clip:u,yAccessor:[this.yAccessorBullTop,this.yAccessorBearTop,this.yAccessorBullBottom,this.yAccessorBearBottom]}),c.default.createElement(y.default,{className:"react-stockcharts-elderray-straight-line",yValue:0,stroke:o,opacity:a}))}}]),t}(s.Component);v.propTypes={className:f.default.string,yAccessor:f.default.func,opacity:f.default.number,stroke:f.default.bool,bullPowerFill:f.default.string,bearPowerFill:f.default.string,straightLineStroke:f.default.string,straightLineOpacity:f.default.number,widthRatio:f.default.number,clip:f.default.bool.isRequired},v.defaultProps={className:"react-stockcharts-elderray-series",straightLineStroke:"#000000",straightLineOpacity:.3,opacity:.5,stroke:!0,bullPowerFill:"#6BA583",bearPowerFill:"#FF0000",widthRatio:.8,clip:!0},t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n,r,o,a){var i=e.baseAt,u=e.className,s=e.fill,l=e.stroke,f=e.widthRatio,d=(0,g.functor)(u),p=(0,g.functor)(s),h=(0,g.functor)(i),y=Math.abs(r(t((0,g.last)(a)))-r(t((0,g.first)(a)))),v=y/(a.length-1)*f,b=Math.round(v),m=1===b?0:.5*v,w=a.map(function(e){for(var a=n.map(function(n,a){var i=n(e);if(!(0,g.isNotDefined)(i)){var u=t(e),s=Math.round(r(u))-m,c=o(i);return{width:b,x:s,y:c,className:d(e,a),stroke:l?p(e,a):"none",fill:p(e,a),i:a}}}).filter(function(e){return(0,g.isDefined)(e)}),i=h(r,o,e),u=void 0,s=a.length-1;s>=0;s--)u=i-a[s].y,u<0&&(a[s].y=i,u*=-1),a[s].height=u,i=a[s].y;return a});return(0,c.merge)(w)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3),l=n(1),f=r(l),d=n(2),p=r(d),h=n(4),y=r(h),v=n(5),b=n(51),g=n(0),m=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),s(t,[{key:"drawOnCanvas",value:function(e,t){var n=this.props.yAccessor,r=t.xAccessor,o=t.xScale,a=t.chartConfig.yScale,i=t.plotData,s=u(this.props,r,n,o,a,i);(0,b.drawOnCanvas2)(this.props,e,s)}},{key:"renderSVG",value:function(e){var t=this.props.yAccessor,n=e.xAccessor,r=e.xScale,o=e.chartConfig.yScale,a=e.plotData,i=u(this.props,n,t,r,o,a);return f.default.createElement("g",{className:"react-stockcharts-bar-series"},(0,b.getBarsSVG2)(this.props,i))}},{key:"render",value:function(){var e=this.props.clip;return f.default.createElement(y.default,{svgDraw:this.renderSVG,canvasToDraw:v.getAxisCanvas,canvasDraw:this.drawOnCanvas,clip:e,drawOn:["pan"]})}}]),t}(l.Component);m.propTypes={baseAt:p.default.oneOfType([p.default.number,p.default.func]).isRequired,direction:p.default.oneOf(["up","down"]).isRequired,stroke:p.default.bool.isRequired,widthRatio:p.default.number.isRequired,opacity:p.default.number.isRequired,fill:p.default.oneOfType([p.default.func,p.default.string]).isRequired,className:p.default.oneOfType([p.default.func,p.default.string]).isRequired,xAccessor:p.default.func,yAccessor:p.default.arrayOf(p.default.func),xScale:p.default.func,yScale:p.default.func,plotData:p.default.array,clip:p.default.bool.isRequired},m.defaultProps={baseAt:function(e,t){return(0,g.first)(t.range())},direction:"up",className:"bar",stroke:!1,fill:"#4682B4",opacity:1,widthRatio:.5,clip:!0},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t,n,r){var o=t.xScale,a=t.chartConfig.yScale,i=t.plotData,u=e.sessionStart,s=e.bySession,l=e.partialStartOK,f=e.partialEndOK,d=e.bins,p=e.maxProfileWidthPercent,h=e.source,y=e.volume,m=e.absoluteChange,w=e.orient,_=e.fill,x=e.stroke,k=(0,O.accumulatingWindow)().discardTillStart(!l).discardTillEnd(!f).accumulateTill(function(e,t){return u({d:e,i:t,plotData:i})}).accumulator(O.identity),C=i.length>1?o(n(i[1]))-o(n((0,O.head)(i))):0,P=s?k(i):[i],S=P.map(function(e){var t=s?o(n((0,O.head)(e))):0,i=s?o(n((0,O.last)(e))):r,u=i-t+C,l=(0,v.histogram)().value(h).thresholds(d),f=(0,b.nest)().key(function(e){return e.direction}).sortKeys("right"===w?v.descending:v.ascending).rollup(function(e){return(0,v.sum)(e,function(e){return e.volume})}),k=l(e),P=k.map(function(e){return e.map(function(e){return m(e)>0?{direction:"up",volume:y(e)}:{direction:"down",volume:y(e)}})}).map(function(e){return f.entries(e)}),S=P.map(function(e){return(0,v.sum)(e.map(function(e){return e.value}))}),E=function(e){return(0,O.head)(e.range())},j="right"===w?[t,t+u*p/100]:[i,i-u*(100-p)/100],T=c(j,2),M=T[0],A=T[1],D=(0,g.scaleLinear)().domain([0,(0,v.max)(S)]).range([M,A]),N=P.map(function(e){var t=(0,v.sum)(e,function(e){return e.value}),n=D(t),r=E(D)-n;return{x:r<0?n+r:n,ws:e.map(function(e){return{type:e.key,width:e.value*Math.abs(r)/t}}),totalVolumeX:n}}),R=(0,v.zip)(k,N).map(function(e){var t=c(e,2),n=t[0],o=t[1],i=o.x,u=o.ws,s=u[0]||{type:"up",width:0},l=u[1]||{type:"down",width:0};return{y:a(n.x1),height:a(n.x1)-a(n.x0),x:i,width:r,w1:s.width,w2:l.width,stroke1:(0,O.functor)(x)(s),stroke2:(0,O.functor)(x)(l),fill1:(0,O.functor)(_)(s),fill2:(0,O.functor)(_)(l)}});return{rects:R,sessionBg:{x:t,y:(0,O.last)(R).y,height:(0,O.head)(R).y-(0,O.last)(R).y+(0,O.head)(R).height,width:u}}});return{rects:(0,v.merge)(S.map(function(e){return e.rects})),sessionBg:S.map(function(e){return e.sessionBg})}}function s(e,t,n,r){var o=t.opacity,a=t.sessionBackGround,i=t.sessionBackGroundOpacity;t.showSessionBackground&&(e.fillStyle=(0,O.hexToRGBA)(a,i),r.forEach(function(t){var n=t.x,r=t.y,o=t.height,a=t.width;e.beginPath(),e.rect(n,r,a,o),e.closePath(),e.fill()})),n.forEach(function(t){var n=t.x,r=t.y,a=t.height,i=t.w1,u=t.w2,s=t.stroke1,c=t.stroke2,l=t.fill1,f=t.fill2;i>0&&(e.fillStyle=(0,O.hexToRGBA)(l,o),"none"!==s&&(e.strokeStyle=s),e.beginPath(),e.rect(n,r,i,a),e.closePath(),e.fill(),"none"!==s&&e.stroke()),u>0&&(e.fillStyle=(0,O.hexToRGBA)(f,o),"none"!==c&&(e.strokeStyle=c),e.beginPath(),e.rect(n+i,r,u,a),e.closePath(),e.fill(),"none"!==c&&e.stroke())})}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(1),p=r(d),h=n(2),y=r(h),v=n(3),b=n(13),g=n(21),m=n(4),w=r(m),_=n(5),O=n(0),x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),f(t,[{key:"drawOnCanvas",value:function(e,t){var n=t.xAccessor,r=t.width,o=u(this.props,t,n,r),a=o.rects,i=o.sessionBg;s(e,this.props,a,i)}},{key:"render",value:function(){return p.default.createElement(w.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:_.getAxisCanvas,drawOn:["pan"]})}},{key:"renderSVG",value:function(e){var t=this.props,n=t.className,r=t.opacity,o=this.props,a=o.showSessionBackground,i=o.sessionBackGround,s=o.sessionBackGroundOpacity,c=e.xAccessor,f=e.width,d=u(this.props,e,c,f),h=d.rects,y=d.sessionBg,v=a?y.map(function(e,t){return p.default.createElement("rect",l({key:t},e,{opacity:s,fill:i}))}):null;return p.default.createElement("g",{className:n},v,h.map(function(e,t){return p.default.createElement("g",{key:t},p.default.createElement("rect",{x:e.x,y:e.y,width:e.w1,height:e.height,fill:e.fill1,stroke:e.stroke1,fillOpacity:r}),p.default.createElement("rect",{x:e.x+e.w1,y:e.y,width:e.w2,height:e.height,fill:e.fill2,stroke:e.stroke2,fillOpacity:r}))}))}}]),t}(d.Component);x.propTypes={className:y.default.string,opacity:y.default.number,showSessionBackground:y.default.bool,sessionBackGround:y.default.string,sessionBackGroundOpacity:y.default.number},x.defaultProps={opacity:.5,className:"line ",bins:20,maxProfileWidthPercent:50,source:function(e){return e.close},volume:function(e){return e.volume},absoluteChange:function(e){return e.absoluteChange},bySession:!1,sessionStart:function(e){var t=e.d;e.i,e.plotData;return t.idx.startOfMonth},orient:"left",fill:function(e){return"up"===e.type?"#6BA583":"#FF0000"},stroke:"#FFFFFF",showSessionBackground:!1,sessionBackGround:"#4682B4",sessionBackGroundOpacity:.3,partialStartOK:!1,partialEndOK:!0},t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(4),h=r(p),y=n(5),v=n(0),b=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n.isHover=n.isHover.bind(n),n}return i(t,e),s(t,[{key:"isHover",value:function(e){var t=e.mouseXY,n=e.currentItem,r=e.chartConfig.yScale,o=this.props.yAccessor,a=t[1],i=r(o(n));return a<i+5&&a>i-5}},{key:"drawOnCanvas",value:function(e,t){var n=this.props,r=n.yAccessor,o=n.fill,a=n.opacity,i=t.xAccessor,u=t.plotData,s=t.xScale,c=t.chartConfig.yScale,l=t.hovering,f=s(i((0,v.last)(u)))-s(i((0,v.first)(u))),d=f/u.length*.5/2,p=Math.max(.5,d/2)+(l?2:0),h=Math.min(2,Math.max(.5,d))+0;u.forEach(function(t){var n=s(i(t)),u=c(r(t)),l=r(t)>t.close?o.falling:o.rising;e.fillStyle=(0,v.hexToRGBA)(l,a),e.strokeStyle=l,e.beginPath(),e.ellipse(n,u,p,h,0,0,2*Math.PI),e.closePath(),e.fill(),e.stroke()})}},{key:"renderSVG",value:function(e){var t=this.props,n=t.className,r=t.yAccessor,o=e.xAccessor,a=e.plotData,i=e.xScale,u=e.chartConfig.yScale;return l.default.createElement("g",{className:n},a.map(function(e,t){return l.default.createElement("circle",{key:t,cx:i(o(e)),cy:u(r(e)),r:3,fill:"green"})}))}},{key:"render",value:function(){var e=this.props.highlightOnHover,t=e?{isHover:this.isHover,drawOn:["mousemove","pan"],canvasToDraw:y.getMouseCanvas}:{drawOn:["pan"],canvasToDraw:y.getAxisCanvas};return l.default.createElement(h.default,u({svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,onClickWhenHover:this.props.onClick,onDoubleClickWhenHover:this.props.onDoubleClick,onContextMenuWhenHover:this.props.onContextMenu},t))}}]),t}(c.Component);b.propTypes={className:d.default.string,fill:d.default.object.isRequired,yAccessor:d.default.func.isRequired,opacity:d.default.number.isRequired,onClick:d.default.func,onDoubleClick:d.default.func,onContextMenu:d.default.func,highlightOnHover:d.default.bool},b.defaultProps={className:"react-stockcharts-sar",fill:{falling:"#4682B4",rising:"#15EC2E"},highlightOnHover:!0,opacity:.2,onClick:function(e){console.log("Click",e)},onDoubleClick:function(e){console.log("Double Click",e)},onContextMenu:function(e){console.log("Right Click",e)}},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(350);Object.defineProperty(t,"XAxis",{enumerable:!0,get:function(){return r(o).default}});var a=n(378);Object.defineProperty(t,"YAxis",{enumerable:!0,get:function(){return r(a).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=e.axisAt,r=e.xZoomHeight,o=e.orient,a=t.chartConfig,i=a.width,u=a.height,s=void 0,c=i,l=r;s="top"===n?0:"bottom"===n?u:"middle"===n?u/2:n;var f="top"===o?-r:0;return{transform:[0,s],range:[0,i],getScale:function(e){return e.xScale},bg:{x:0,y:f,h:l,w:c}}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(146),y=r(h),v=function(e){function t(e,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.axisZoomCallback=r.axisZoomCallback.bind(r),r}return i(t,e),c(t,[{key:"axisZoomCallback",value:function(e){(0,this.context.xAxisZoom)(e)}},{key:"render",value:function(){var e=this.props.showTicks,t=u(this.props,this.context);return f.default.createElement(y.default,s({},this.props,t,{x:!0,zoomEnabled:this.props.zoomEnabled&&e,axisZoomCallback:this.axisZoomCallback,zoomCursorClassName:"react-stockcharts-ew-resize-cursor"}))}}]),t}(l.Component);v.propTypes={axisAt:p.default.oneOfType([p.default.oneOf(["top","bottom","middle"]),p.default.number]).isRequired,orient:p.default.oneOf(["top","bottom"]).isRequired,innerTickSize:p.default.number,outerTickSize:p.default.number,tickFormat:p.default.func,tickPadding:p.default.number,tickSize:p.default.number,ticks:p.default.number,tickValues:p.default.array,showTicks:p.default.bool,className:p.default.string,zoomEnabled:p.default.bool,onContextMenu:p.default.func,onDoubleClick:p.default.func},v.defaultProps={showGrid:!1,showTicks:!0,showDomain:!0,className:"react-stockcharts-x-axis",ticks:10,outerTickSize:0,fill:"none",stroke:"#000000",strokeWidth:1,opacity:1,domainClassName:"react-stockcharts-axis-domain",innerTickSize:5,tickPadding:6,tickStroke:"#000000",tickStrokeOpacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12,xZoomHeight:25,zoomEnabled:!0,getMouseDelta:function(e,t){return e[0]-t[0]}},v.contextTypes={chartConfig:p.default.object.isRequired,xAxisZoom:p.default.func.isRequired},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(352);n.d(t,"forceCenter",function(){return r.a});var o=n(353);n.d(t,"forceCollide",function(){return o.a});var a=n(367);n.d(t,"forceLink",function(){return a.a});var i=n(368);n.d(t,"forceManyBody",function(){return i.a});var u=n(374);n.d(t,"forceRadial",function(){return u.a});var s=n(148);n.d(t,"forceSimulation",function(){return s.a});var c=n(375);n.d(t,"forceX",function(){return c.a});var l=n(376);n.d(t,"forceY",function(){return l.a})},function(e,t,n){"use strict";t.a=function(e,t){function n(){var n,o,a=r.length,i=0,u=0;for(n=0;n<a;++n)o=r[n],i+=o.x,u+=o.y;for(i=i/a-e,u=u/a-t,n=0;n<a;++n)o=r[n],o.x-=i,o.y-=u}var r;return null==e&&(e=0),null==t&&(t=0),n.initialize=function(e){r=e},n.x=function(t){return arguments.length?(e=+t,n):e},n.y=function(e){return arguments.length?(t=+e,n):t},n}},function(e,t,n){"use strict";function r(e){return e.x+e.vx}function o(e){return e.y+e.vy}var a=n(28),i=n(80),u=n(147);t.a=function(e){function t(){function e(e,t,n,r,o){var a=e.data,u=e.r,c=y+u;{if(!a)return t>p+c||r<p-c||n>h+c||o<h-c;if(a.index>s.index){var l=p-a.x-a.vx,d=h-a.y-a.vy,b=l*l+d*d;b<c*c&&(0===l&&(l=Object(i.a)(),b+=l*l),0===d&&(d=Object(i.a)(),b+=d*d),b=(c-(b=Math.sqrt(b)))/b*f,s.vx+=(l*=b)*(c=(u*=u)/(v+u)),s.vy+=(d*=b)*c,a.vx-=l*(c=1-c),a.vy-=d*c)}}}for(var t,a,s,p,h,y,v,b=c.length,g=0;g<d;++g)for(a=Object(u.a)(c,r,o).visitAfter(n),t=0;t<b;++t)s=c[t],y=l[s.index],v=y*y,p=s.x+s.vx,h=s.y+s.vy,a.visit(e)}function n(e){if(e.data)return e.r=l[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function s(){if(c){var t,n,r=c.length;for(l=new Array(r),t=0;t<r;++t)n=c[t],l[n.index]=+e(n,t,c)}}var c,l,f=1,d=1;return"function"!==typeof e&&(e=Object(a.a)(null==e?1:+e)),t.initialize=function(e){c=e,s()},t.iterations=function(e){return arguments.length?(d=+e,t):d},t.strength=function(e){return arguments.length?(f=+e,t):f},t.radius=function(n){return arguments.length?(e="function"===typeof n?n:Object(a.a)(+n),s(),t):e},t}},function(e,t,n){"use strict";function r(e,t,n){var r=new o(null==t?v.b:t,null==n?b.b:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function o(e,t,n,r,o,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=a,this._root=void 0}function a(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}t.a=r;var i=n(355),u=n(356),s=n(357),c=n(358),l=n(359),f=n(360),d=n(361),p=n(362),h=n(363),y=n(364),v=n(365),b=n(366),g=r.prototype=o.prototype;g.copy=function(){var e,t,n=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=a(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=a(t));return n},g.add=i.b,g.addAll=i.a,g.cover=u.a,g.data=s.a,g.extent=c.a,g.find=l.a,g.remove=f.a,g.removeAll=f.b,g.root=d.a,g.size=p.a,g.visit=h.a,g.visitAfter=y.a,g.x=v.a,g.y=b.a},function(e,t,n){"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,a,i,u,s,c,l,f,d,p=e._root,h={data:r},y=e._x0,v=e._y0,b=e._x1,g=e._y1;if(!p)return e._root=h,e;for(;p.length;)if((c=t>=(a=(y+b)/2))?y=a:b=a,(l=n>=(i=(v+g)/2))?v=i:g=i,o=p,!(p=p[f=l<<1|c]))return o[f]=h,e;if(u=+e._x.call(null,p.data),s=+e._y.call(null,p.data),t===u&&n===s)return h.next=p,o?o[f]=h:e._root=h,e;do{o=o?o[f]=new Array(4):e._root=new Array(4),(c=t>=(a=(y+b)/2))?y=a:b=a,(l=n>=(i=(v+g)/2))?v=i:g=i}while((f=l<<1|c)===(d=(s>=i)<<1|u>=a));return o[d]=p,o[f]=h,e}function o(e){var t,n,o,a,i=e.length,u=new Array(i),s=new Array(i),c=1/0,l=1/0,f=-1/0,d=-1/0;for(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(u[n]=o,s[n]=a,o<c&&(c=o),o>f&&(f=o),a<l&&(l=a),a>d&&(d=a));for(f<c&&(c=this._x0,f=this._x1),d<l&&(l=this._y0,d=this._y1),this.cover(c,l).cover(f,d),n=0;n<i;++n)r(this,u[n],s[n],e[n]);return this}t.a=o,t.b=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)}},function(e,t,n){"use strict";t.a=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,a=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{if(!(n>e||e>o||r>t||t>a))return this;var i,u,s=o-n,c=this._root;switch(u=(t<(r+a)/2)<<1|e<(n+o)/2){case 0:do{i=new Array(4),i[u]=c,c=i}while(s*=2,o=n+s,a=r+s,e>o||t>a);break;case 1:do{i=new Array(4),i[u]=c,c=i}while(s*=2,n=o-s,a=r+s,n>e||t>a);break;case 2:do{i=new Array(4),i[u]=c,c=i}while(s*=2,o=n+s,r=a-s,e>o||r>t);break;case 3:do{i=new Array(4),i[u]=c,c=i}while(s*=2,n=o-s,r=a-s,n>e||r>t)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=o,this._y1=a,this}},function(e,t,n){"use strict";t.a=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e}},function(e,t,n){"use strict";t.a=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}},function(e,t,n){"use strict";var r=n(81);t.a=function(e,t,n){var o,a,i,u,s,c,l,f=this._x0,d=this._y0,p=this._x1,h=this._y1,y=[],v=this._root;for(v&&y.push(new r.a(v,f,d,p,h)),null==n?n=1/0:(f=e-n,d=t-n,p=e+n,h=t+n,n*=n);c=y.pop();)if(!(!(v=c.node)||(a=c.x0)>p||(i=c.y0)>h||(u=c.x1)<f||(s=c.y1)<d))if(v.length){var b=(a+u)/2,g=(i+s)/2;y.push(new r.a(v[3],b,g,u,s),new r.a(v[2],a,g,b,s),new r.a(v[1],b,i,u,g),new r.a(v[0],a,i,b,g)),(l=(t>=g)<<1|e>=b)&&(c=y[y.length-1],y[y.length-1]=y[y.length-1-l],y[y.length-1-l]=c)}else{var m=e-+this._x.call(null,v.data),w=t-+this._y.call(null,v.data),_=m*m+w*w;if(_<n){var O=Math.sqrt(n=_);f=e-O,d=t-O,p=e+O,h=t+O,o=v.data}}return o}},function(e,t,n){"use strict";function r(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}t.b=r,t.a=function(e){if(isNaN(a=+this._x.call(null,e))||isNaN(i=+this._y.call(null,e)))return this;var t,n,r,o,a,i,u,s,c,l,f,d,p=this._root,h=this._x0,y=this._y0,v=this._x1,b=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a>=(u=(h+v)/2))?h=u:v=u,(l=i>=(s=(y+b)/2))?y=s:b=s,t=p,!(p=p[f=l<<1|c]))return this;if(!p.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[f]=o:delete t[f],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[d]=p:this._root=p),this):(this._root=o,this)}},function(e,t,n){"use strict";t.a=function(){return this._root}},function(e,t,n){"use strict";t.a=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e}},function(e,t,n){"use strict";var r=n(81);t.a=function(e){var t,n,o,a,i,u,s=[],c=this._root;for(c&&s.push(new r.a(c,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(c=t.node,o=t.x0,a=t.y0,i=t.x1,u=t.y1)&&c.length){var l=(o+i)/2,f=(a+u)/2;(n=c[3])&&s.push(new r.a(n,l,f,i,u)),(n=c[2])&&s.push(new r.a(n,o,f,l,u)),(n=c[1])&&s.push(new r.a(n,l,a,i,f)),(n=c[0])&&s.push(new r.a(n,o,a,l,f))}return this}},function(e,t,n){"use strict";var r=n(81);t.a=function(e){var t,n=[],o=[];for(this._root&&n.push(new r.a(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var a=t.node;if(a.length){var i,u=t.x0,s=t.y0,c=t.x1,l=t.y1,f=(u+c)/2,d=(s+l)/2;(i=a[0])&&n.push(new r.a(i,u,s,f,d)),(i=a[1])&&n.push(new r.a(i,f,s,c,d)),(i=a[2])&&n.push(new r.a(i,u,d,f,l)),(i=a[3])&&n.push(new r.a(i,f,d,c,l))}o.push(t)}for(;t=o.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this}},function(e,t,n){"use strict";function r(e){return e[0]}t.b=r,t.a=function(e){return arguments.length?(this._x=e,this):this._x}},function(e,t,n){"use strict";function r(e){return e[1]}t.b=r,t.a=function(e){return arguments.length?(this._y=e,this):this._y}},function(e,t,n){"use strict";function r(e){return e.index}function o(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var a=n(28),i=n(80),u=n(13);t.a=function(e){function t(e){return 1/Math.min(h[e.source.index],h[e.target.index])}function n(t){for(var n=0,r=e.length;n<m;++n)for(var o,a,u,s,c,l,p,h=0;h<r;++h)o=e[h],a=o.source,u=o.target,s=u.x+u.vx-a.x-a.vx||Object(i.a)(),c=u.y+u.vy-a.y-a.vy||Object(i.a)(),l=Math.sqrt(s*s+c*c),l=(l-d[h])/l*t*f[h],s*=l,c*=l,u.vx-=s*(p=y[h]),u.vy-=c*p,a.vx+=s*(p=1-p),a.vy+=c*p}function s(){if(p){var t,n,r=p.length,a=e.length,i=Object(u.map)(p,v);for(t=0,h=new Array(r);t<a;++t)n=e[t],n.index=t,"object"!==typeof n.source&&(n.source=o(i,n.source)),"object"!==typeof n.target&&(n.target=o(i,n.target)),h[n.source.index]=(h[n.source.index]||0)+1,h[n.target.index]=(h[n.target.index]||0)+1;for(t=0,y=new Array(a);t<a;++t)n=e[t],y[t]=h[n.source.index]/(h[n.source.index]+h[n.target.index]);f=new Array(a),c(),d=new Array(a),l()}}function c(){if(p)for(var t=0,n=e.length;t<n;++t)f[t]=+b(e[t],t,e)}function l(){if(p)for(var t=0,n=e.length;t<n;++t)d[t]=+g(e[t],t,e)}var f,d,p,h,y,v=r,b=t,g=Object(a.a)(30),m=1;return null==e&&(e=[]),n.initialize=function(e){p=e,s()},n.links=function(t){return arguments.length?(e=t,s(),n):e},n.id=function(e){return arguments.length?(v=e,n):v},n.iterations=function(e){return arguments.length?(m=+e,n):m},n.strength=function(e){return arguments.length?(b="function"===typeof e?e:Object(a.a)(+e),c(),n):b},n.distance=function(e){return arguments.length?(g="function"===typeof e?e:Object(a.a)(+e),l(),n):g},n}},function(e,t,n){"use strict";var r=n(28),o=n(80),a=n(147),i=n(148);t.a=function(){function e(e){var t,r=s.length,o=Object(a.a)(s,i.b,i.c).visitAfter(n);for(l=e,t=0;t<r;++t)c=s[t],o.visit(u)}function t(){if(s){var e,t,n=s.length;for(f=new Array(n),e=0;e<n;++e)t=s[e],f[t.index]=+d(t,e,s)}}function n(e){var t,n,r,o,a,i=0,u=0;if(e.length){for(r=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(i+=t.value,u+=n,r+=n*t.x,o+=n*t.y);e.x=r/u,e.y=o/u}else{t=e,t.x=t.data.x,t.y=t.data.y;do{i+=f[t.data.index]}while(t=t.next)}e.value=i}function u(e,t,n,r){if(!e.value)return!0;var a=e.x-c.x,i=e.y-c.y,u=r-t,s=a*a+i*i;if(u*u/y<s)return s<h&&(0===a&&(a=Object(o.a)(),s+=a*a),0===i&&(i=Object(o.a)(),s+=i*i),s<p&&(s=Math.sqrt(p*s)),c.vx+=a*e.value*l/s,c.vy+=i*e.value*l/s),!0;if(!(e.length||s>=h)){(e.data!==c||e.next)&&(0===a&&(a=Object(o.a)(),s+=a*a),0===i&&(i=Object(o.a)(),s+=i*i),s<p&&(s=Math.sqrt(p*s)));do{e.data!==c&&(u=f[e.data.index]*l/s,c.vx+=a*u,c.vy+=i*u)}while(e=e.next)}}var s,c,l,f,d=Object(r.a)(-30),p=1,h=1/0,y=.81;return e.initialize=function(e){s=e,t()},e.strength=function(n){return arguments.length?(d="function"===typeof n?n:Object(r.a)(+n),t(),e):d},e.distanceMin=function(t){return arguments.length?(p=t*t,e):Math.sqrt(p)},e.distanceMax=function(t){return arguments.length?(h=t*t,e):Math.sqrt(h)},e.theta=function(t){return arguments.length?(y=t*t,e):Math.sqrt(y)},e}},function(e,t,n){"use strict";var r=n(370);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r)throw new Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function a(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function i(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function u(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=s,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}var s={value:function(){}};o.prototype=r.prototype={constructor:o,on:function(e,t){var n,r=this._,o=a(e+"",r),s=-1,c=o.length;{if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++s<c;)if(n=(e=o[s]).type)r[n]=u(r[n],e.name,t);else if(null==t)for(n in r)r[n]=u(r[n],e.name,null);return this}for(;++s<c;)if((n=(e=o[s]).type)&&(n=i(r[n],e.name)))return n}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),a=0;a<n;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,a=r.length;o<a;++o)r[o].value.apply(t,n)}},t.a=r},function(e,t,n){"use strict";var r=n(82);n.d(t,"a",function(){return r.c});n(372),n(373)},function(e,t,n){"use strict";n(82)},function(e,t,n){"use strict";n(82)},function(e,t,n){"use strict";var r=n(28);t.a=function(e,t,n){function o(e){for(var r=0,o=i.length;r<o;++r){var a=i[r],c=a.x-t||1e-6,l=a.y-n||1e-6,f=Math.sqrt(c*c+l*l),d=(s[r]-f)*u[r]*e/f;a.vx+=c*d,a.vy+=l*d}}function a(){if(i){var t,n=i.length;for(u=new Array(n),s=new Array(n),t=0;t<n;++t)s[t]=+e(i[t],t,i),u[t]=isNaN(s[t])?0:+c(i[t],t,i)}}var i,u,s,c=Object(r.a)(.1);return"function"!==typeof e&&(e=Object(r.a)(+e)),null==t&&(t=0),null==n&&(n=0),o.initialize=function(e){i=e,a()},o.strength=function(e){return arguments.length?(c="function"===typeof e?e:Object(r.a)(+e),a(),o):c},o.radius=function(t){return arguments.length?(e="function"===typeof t?t:Object(r.a)(+t),a(),o):e},o.x=function(e){return arguments.length?(t=+e,o):t},o.y=function(e){return arguments.length?(n=+e,o):n},o}},function(e,t,n){"use strict";var r=n(28);t.a=function(e){function t(e){for(var t,n=0,r=o.length;n<r;++n)t=o[n],t.vx+=(i[n]-t.x)*a[n]*e}function n(){if(o){var t,n=o.length;for(a=new Array(n),i=new Array(n),t=0;t<n;++t)a[t]=isNaN(i[t]=+e(o[t],t,o))?0:+u(o[t],t,o)}}var o,a,i,u=Object(r.a)(.1);return"function"!==typeof e&&(e=Object(r.a)(null==e?0:+e)),t.initialize=function(e){o=e,n()},t.strength=function(e){return arguments.length?(u="function"===typeof e?e:Object(r.a)(+e),n(),t):u},t.x=function(o){return arguments.length?(e="function"===typeof o?o:Object(r.a)(+o),n(),t):e},t}},function(e,t,n){"use strict";var r=n(28);t.a=function(e){function t(e){for(var t,n=0,r=o.length;n<r;++n)t=o[n],t.vy+=(i[n]-t.y)*a[n]*e}function n(){if(o){var t,n=o.length;for(a=new Array(n),i=new Array(n),t=0;t<n;++t)a[t]=isNaN(i[t]=+e(o[t],t,o))?0:+u(o[t],t,o)}}var o,a,i,u=Object(r.a)(.1);return"function"!==typeof e&&(e=Object(r.a)(null==e?0:+e)),t.initialize=function(e){o=e,n()},t.strength=function(e){return arguments.length?(u="function"===typeof e?e:Object(r.a)(+e),n(),t):u},t.y=function(o){return arguments.length?(e="function"===typeof o?o:Object(r.a)(+o),n(),t):e},t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=n(122),p=n(3),h=n(0),y=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleDragStartMouse=n.handleDragStartMouse.bind(n),n.handleDragStartTouch=n.handleDragStartTouch.bind(n),n.handleDrag=n.handleDrag.bind(n),n.handleDragEnd=n.handleDragEnd.bind(n),n.handleRightClick=n.handleRightClick.bind(n),n.saveNode=n.saveNode.bind(n),n.state={startPosition:null},n}return i(t,e),u(t,[{key:"saveNode",value:function(e){this.node=e}},{key:"handleRightClick",value:function(e){e.stopPropagation(),e.preventDefault();var t=this.props.onContextMenu,n=(0,h.mousePosition)(e,this.node.getBoundingClientRect());(0,d.select)((0,h.d3Window)(this.node)).on(h.MOUSEMOVE,null).on(h.MOUSEUP,null),this.setState({startPosition:null}),t(n,e),this.contextMenuClicked=!0}},{key:"handleDragStartMouse",value:function(e){this.mouseInteraction=!0;var t=this.props,n=t.getScale,r=t.getMoreProps,o=n(r());if(this.dragHappened=!1,o.invert){(0,d.select)((0,h.d3Window)(this.node)).on(h.MOUSEMOVE,this.handleDrag,!1).on(h.MOUSEUP,this.handleDragEnd,!1);var a=(0,h.mousePosition)(e);this.setState({startPosition:{startXY:a,startScale:o}})}e.preventDefault()}},{key:"handleDragStartTouch",value:function(e){this.mouseInteraction=!1;var t=this.props,n=t.getScale,r=t.getMoreProps,o=n(r());if(this.dragHappened=!1,1===e.touches.length&&o.invert){(0,d.select)((0,h.d3Window)(this.node)).on(h.TOUCHMOVE,this.handleDrag).on(h.TOUCHEND,this.handleDragEnd);var a=(0,h.touchPosition)((0,h.getTouchProps)(e.touches[0]),e);this.setState({startPosition:{startXY:a,startScale:o}})}}},{key:"handleDrag",value:function(){var e=this.state.startPosition,t=this.props,n=t.getMouseDelta,r=t.inverted;if(this.dragHappened=!0,(0,h.isDefined)(e)){var o=e.startScale,a=e.startXY,i=this.mouseInteraction?(0,d.mouse)(this.node):(0,d.touches)(this.node)[0],u=n(a,i),s=(0,p.mean)(o.range()),c=o.range().map(function(e){return r?e-(0,h.sign)(e-s)*u:e+(0,h.sign)(e-s)*u}),l=c.map(o.invert);if((0,h.sign)((0,h.last)(o.range())-(0,h.first)(o.range()))===(0,h.sign)((0,h.last)(c)-(0,h.first)(c))){(0,this.props.axisZoomCallback)(l)}}}},{key:"handleDragEnd",value:function(){var e=this;if(!this.dragHappened)if(this.clicked){var t=d.event,n=this.mouseInteraction?(0,d.mouse)(this.node):(0,d.touches)(this.node)[0],r=this.props.onDoubleClick;r(n,t)}else this.clicked=!0,setTimeout(function(){e.clicked=!1},300);(0,d.select)((0,h.d3Window)(this.node)).on(h.MOUSEMOVE,null).on(h.MOUSEUP,null).on(h.TOUCHMOVE,null).on(h.TOUCHEND,null),this.setState({startPosition:null})}},{key:"render",value:function(){var e=this.props,t=e.bg,n=e.zoomCursorClassName,r=(0,h.isDefined)(this.state.startPosition)?n:"react-stockcharts-default-cursor";return c.default.createElement("rect",{className:"react-stockcharts-enable-interaction "+r,ref:this.saveNode,x:t.x,y:t.y,opacity:0,height:t.h,width:t.w,onContextMenu:this.handleRightClick,onMouseDown:this.handleDragStartMouse,onTouchStart:this.handleDragStartTouch})}}]),t}(s.Component);y.propTypes={innerTickSize:f.default.number,outerTickSize:f.default.number,tickFormat:f.default.func,tickPadding:f.default.number,tickSize:f.default.number,ticks:f.default.number,tickValues:f.default.array,showDomain:f.default.bool,showTicks:f.default.bool,className:f.default.string,axisZoomCallback:f.default.func,inverted:f.default.bool,bg:f.default.object.isRequired,zoomCursorClassName:f.default.string.isRequired,getMoreProps:f.default.func.isRequired,getScale:f.default.func.isRequired,getMouseDelta:f.default.func.isRequired,onDoubleClick:f.default.func.isRequired,onContextMenu:f.default.func.isRequired},y.defaultProps={onDoubleClick:h.noop,onContextMenu:h.noop,inverted:!0},t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=e.axisAt,r=e.yZoomWidth,o=e.orient,a=t.chartConfig,i=a.width,u=a.height,s=void 0,c=r,l=u;s="left"===n?0:"right"===n?i:"middle"===n?i/2:n;var f="left"===o?-r:0;return{transform:[s,0],range:[0,u],getScale:function(e){return e.chartConfig.yScale},bg:{x:f,y:0,h:l,w:c},zoomEnabled:t.chartConfig.yPan}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),d=r(f),p=n(2),h=r(p),y=n(146),v=r(y),b=function(e){function t(e,n){a(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.axisZoomCallback=r.axisZoomCallback.bind(r),r}return u(t,e),l(t,[{key:"axisZoomCallback",value:function(e){var t=this.context,n=t.chartId;(0,t.yAxisZoom)(n,e)}},{key:"render",value:function(){var e=s(this.props,this.context),t=e.zoomEnabled,n=o(e,["zoomEnabled"]);return d.default.createElement(v.default,c({},this.props,n,{zoomEnabled:this.props.zoomEnabled&&t,edgeClip:!0,axisZoomCallback:this.axisZoomCallback,zoomCursorClassName:"react-stockcharts-ns-resize-cursor"}))}}]),t}(f.Component);b.propTypes={axisAt:h.default.oneOfType([h.default.oneOf(["left","right","middle"]),h.default.number]).isRequired,orient:h.default.oneOf(["left","right"]).isRequired,innerTickSize:h.default.number,outerTickSize:h.default.number,tickFormat:h.default.func,tickPadding:h.default.number,tickSize:h.default.number,ticks:h.default.number,yZoomWidth:h.default.number,tickValues:h.default.array,showTicks:h.default.bool,className:h.default.string,zoomEnabled:h.default.bool,onContextMenu:h.default.func,onDoubleClick:h.default.func},b.defaultProps={showGrid:!1,showTicks:!0,showDomain:!0,className:"react-stockcharts-y-axis",ticks:10,outerTickSize:0,domainClassName:"react-stockcharts-axis-domain",fill:"none",stroke:"#FFFFFF",strokeWidth:1,opacity:1,innerTickSize:5,tickPadding:6,tickStroke:"#000000",tickStrokeOpacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12,yZoomWidth:40,zoomEnabled:!0,getMouseDelta:function(e,t){return e[1]-t[1]}},b.contextTypes={yAxisZoom:h.default.func.isRequired,chartId:h.default.oneOfType([h.default.number,h.default.string]).isRequired,chartConfig:h.default.object.isRequired},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(380);Object.defineProperty(t,"EdgeIndicator",{enumerable:!0,get:function(){return r(o).default}});var a=n(381);Object.defineProperty(t,"CurrentCoordinate",{enumerable:!0,get:function(){return r(a).default}});var i=n(382);Object.defineProperty(t,"MouseCoordinateX",{enumerable:!0,get:function(){return r(i).default}});var u=n(383);Object.defineProperty(t,"MouseCoordinateY",{enumerable:!0,get:function(){return r(u).default}});var s=n(384);Object.defineProperty(t,"CrossHairCursor",{enumerable:!0,get:function(){return r(s).default}});var c=n(385);Object.defineProperty(t,"PriceCoordinate",{enumerable:!0,get:function(){return r(c).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=e.itemType,r=e.yAccessor,o=t.plotData,a="first"===n?(0,_.first)(o,r):(0,_.last)(o,r);return(0,_.isDefined)(a)?s(e,t,a):null}function s(e,t,n){var r=e.type,o=e.displayFormat,a=e.edgeAt,i=e.yAxisPad,u=e.orient,s=e.yAccessor,l=e.fill,f=e.textFill,d=e.rectHeight,p=e.rectWidth,h=e.arrowWidth,y=e.fontFamily,v=e.fontSize,b=t.xScale,g=t.chartConfig.yScale,m=t.xAccessor,w=s(n),O=m(n),x=Math.round(b(O)),k=Math.round(g(w)),C=b.range(),P=c(C,2),S=P[0],E=P[1],j="left"===a?S-i:E+i;return{coordinate:o(w),show:!0,type:r,orient:u,edgeAt:j,fill:(0,_.functor)(l)(n),fontFamily:y,fontSize:v,textFill:(0,_.functor)(f)(n),rectHeight:d,rectWidth:p,arrowWidth:h,x1:x,y1:k,x2:j,y2:k}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(1),p=r(d),h=n(2),y=r(h),v=n(11),b=n(52),g=n(4),m=r(g),w=n(5),_=n(0),O=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),f(t,[{key:"drawOnCanvas",value:function(e,t){var n=u(this.props,t),r=l({},this.props,n);(0,b.drawOnCanvas)(e,r)}},{key:"renderSVG",value:function(e){var t=u(this.props,e),n=l({},this.props,t);return(0,b.renderSVG)(n)}},{key:"render",value:function(){return p.default.createElement(m.default,{edgeClip:!0,clip:!1,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:w.getAxisCanvas,drawOn:["pan"]})}}]),t}(d.Component);O.propTypes={yAccessor:y.default.func,type:y.default.oneOf(["horizontal"]),className:y.default.string,fill:y.default.oneOfType([y.default.string,y.default.func]),textFill:y.default.oneOfType([y.default.string,y.default.func]),itemType:y.default.oneOf(["first","last"]).isRequired,orient:y.default.oneOf(["left","right"]),edgeAt:y.default.oneOf(["left","right"]),displayFormat:y.default.func,rectHeight:y.default.number,rectWidth:y.default.number,arrowWidth:y.default.number},O.defaultProps={className:"react-stockcharts-edgeindicator",type:"horizontal",orient:"left",edgeAt:"left",textFill:"#FFFFFF",displayFormat:(0,v.format)(".2f"),yAxisPad:0,rectHeight:20,rectWidth:50,arrowWidth:10,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,dx:0,hideLine:!1,fill:"#8a8a8a",opacity:1,lineStroke:"#000000",lineOpacity:.3},t.default=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=e.fill,r=e.yAccessor,o=e.r,a=t.show,i=t.xScale,u=t.chartConfig.yScale,s=t.currentItem,c=t.xAccessor;if(!a||(0,y.isNotDefined)(s))return null;var l=c(s),f=r(s);return(0,y.isNotDefined)(f)?null:{x:Math.round(i(l)),y:Math.round(u(f)),r:o,fill:n}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(4),h=r(p),y=n(0),v=n(5),b=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),s(t,[{key:"drawOnCanvas",value:function(e,t){var n=u(this.props,t);if(!n)return null;e.fillStyle=n.fill,e.beginPath(),e.arc(n.x,n.y,n.r,0,2*Math.PI,!1),e.fill()}},{key:"renderSVG",value:function(e){var t=this.props.className,n=u(this.props,e);return n?l.default.createElement("circle",{className:t,cx:n.x,cy:n.y,r:n.r,fill:n.fill}):null}},{key:"render",value:function(){return l.default.createElement(h.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:v.getMouseCanvas,drawOn:["mousemove","pan"]})}}]),t}(c.Component);b.propTypes={yAccessor:d.default.func,r:d.default.number.isRequired,className:d.default.string},b.defaultProps={r:3,className:"react-stockcharts-current-coordinate"},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=t.xAccessor,r=t.displayXAccessor,o=t.show,a=t.currentItem,i=t.xScale,u=t.mouseXY,s=t.chartConfig.height;if((0,b.isNotDefined)(a))return null;var c=e.snapX,l=e.orient,f=e.at,d=e.rectWidth,p=e.rectHeight,h=e.displayFormat,y=e.fill,v=e.opacity,g=e.fontFamily,m=e.fontSize,w=e.textFill,_=c?i(n(a)):u[0],O="bottom"===f?s:0;return{coordinate:h(c?r(a):i.invert(_)),show:o,type:"vertical",orient:l,edgeAt:O,hideLine:!0,fill:y,opacity:v,fontFamily:g,fontSize:m,textFill:w,rectWidth:d,rectHeight:p,arrowWidth:0,x1:_,x2:_,y1:0,y2:s}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(52),h=n(4),y=r(h),v=n(5),b=n(0),g=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),s(t,[{key:"drawOnCanvas",value:function(e,t){var n=u(this.props,t);if((0,b.isNotDefined)(n))return null;(0,p.drawOnCanvas)(e,n)}},{key:"renderSVG",value:function(e){var t=u(this.props,e);return(0,b.isNotDefined)(t)?null:(0,p.renderSVG)(t)}},{key:"render",value:function(){return l.default.createElement(y.default,{svgDraw:this.renderSVG,clip:!1,canvasDraw:this.drawOnCanvas,canvasToDraw:v.getMouseCanvas,drawOn:["mousemove","pan","drag"]})}}]),t}(c.Component);g.propTypes={displayFormat:d.default.func.isRequired,yAxisPad:d.default.number,rectWidth:d.default.number,rectHeight:d.default.number,orient:d.default.oneOf(["bottom","top","left","right"]),at:d.default.oneOf(["bottom","top","left","right"]),fill:d.default.string,opacity:d.default.number,fontFamily:d.default.string,fontSize:d.default.number,textFill:d.default.string,snapX:d.default.bool},g.defaultProps={yAxisPad:0,rectWidth:80,rectHeight:20,orient:"bottom",at:"bottom",fill:"#525252",opacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,textFill:"#FFFFFF",snapX:!0},t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=t.chartId,r=t.width,o=t.show,a=t.currentCharts,i=t.chartConfig.yScale,u=t.mouseXY;if((0,b.isNotDefined)(u))return null;if(a.indexOf(n)<0)return null;var s=e.orient,c=e.at,l=e.rectWidth,f=e.rectHeight,d=e.displayFormat,p=e.dx,h=e.fill,y=e.opacity,v=e.fontFamily,g=e.fontSize,m=e.textFill,w=e.arrowWidth,_=r,O="right"===c?r:0,x=u[1];return{coordinate:d(i.invert(x)),show:o,type:"horizontal",orient:s,edgeAt:O,hideLine:!0,fill:h,opacity:y,fontFamily:v,fontSize:g,textFill:m,rectWidth:l,rectHeight:f,arrowWidth:w,dx:p,x1:0,x2:_,y1:x,y2:x}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(52),h=n(4),y=r(h),v=n(5),b=n(0),g=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),s(t,[{key:"drawOnCanvas",value:function(e,t){var n=u(this.props,t);if((0,b.isNotDefined)(n))return null;(0,p.drawOnCanvas)(e,n)}},{key:"renderSVG",value:function(e){var t=u(this.props,e);return(0,b.isNotDefined)(t)?null:(0,p.renderSVG)(t)}},{key:"render",value:function(){return l.default.createElement(y.default,{clip:!1,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:v.getMouseCanvas,drawOn:["mousemove","pan","drag"]})}}]),t}(c.Component);g.propTypes={displayFormat:d.default.func.isRequired,yAxisPad:d.default.number,rectWidth:d.default.number,rectHeight:d.default.number,orient:d.default.oneOf(["bottom","top","left","right"]),at:d.default.oneOf(["bottom","top","left","right"]),dx:d.default.number,fill:d.default.string,opacity:d.default.number,fontFamily:d.default.string,fontSize:d.default.number,textFill:d.default.string},g.defaultProps={yAxisPad:0,rectWidth:50,rectHeight:20,orient:"left",at:"left",dx:0,arrowWidth:10,fill:"#525252",opacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,textFill:"#FFFFFF"},t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=t.mouseXY,r=t.xScale,o=t.currentItem,a=t.show,i=t.height,u=t.width,s=t.xAccessor,c=e.snapX,l=e.stroke,f=e.opacity,d=e.strokeDasharray;if(!a||(0,b.isNotDefined)(o))return null;var p={x1:0,x2:u,y1:n[1],y2:n[1],stroke:l,strokeDasharray:d,opacity:f},h=c?Math.round(r(s(o))):n[0];return[p,{x1:h,x2:h,y1:0,y2:i,stroke:l,strokeDasharray:d,opacity:f}]}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),d=r(f),p=n(2),h=r(p),y=n(5),v=r(y),b=n(0),g=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return u(t,e),l(t,[{key:"drawOnCanvas",value:function(e,t){var n=s(this.props,t);if((0,b.isDefined)(n)){var r=this.context,o=r.margin,a=r.ratio,i=.5*a+o.left,u=.5*a+o.top;e.save(),e.setTransform(1,0,0,1,0,0),e.scale(a,a),e.translate(i,u),n.forEach(function(t){var n=(0,b.getStrokeDasharray)(t.strokeDasharray).split(",").map(function(e){return+e});e.strokeStyle=(0,b.hexToRGBA)(t.stroke,t.opacity),e.setLineDash(n),e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}),e.restore()}}},{key:"renderSVG",value:function(e){var t=this.props.className,n=s(this.props,e);return(0,b.isNotDefined)(n)?null:d.default.createElement("g",{className:"react-stockcharts-crosshair "+t},n.map(function(e,t){var n=e.strokeDasharray,r=o(e,["strokeDasharray"]);return d.default.createElement("line",c({key:t,strokeDasharray:(0,b.getStrokeDasharray)(n)},r))}))}},{key:"render",value:function(){return d.default.createElement(v.default,{svgDraw:this.renderSVG,clip:!1,canvasDraw:this.drawOnCanvas,canvasToDraw:y.getMouseCanvas,drawOn:["mousemove","pan","drag"]})}}]),t}(f.Component);g.propTypes={className:h.default.string,strokeDasharray:h.default.oneOf(b.strokeDashTypes)},g.contextTypes={margin:h.default.object.isRequired,ratio:h.default.number.isRequired},g.defaultProps={stroke:"#000000",opacity:.3,strokeDasharray:"ShortDash",snapX:!0},t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=t.width,r=t.chartConfig.yScale,o=r.domain()[0],a=r.domain()[1],i=r.range()[0],u=r.range()[1],s=(o-a)/(i-u),c=e.orient,l=e.at,f=e.rectWidth,d=e.rectHeight,p=e.displayFormat,h=e.dx,y=e.price,v=e.fill,b=e.opacity,g=e.fontFamily,m=e.fontSize,w=e.textFill,_=e.arrowWidth,O=e.lineOpacity,x=e.lineStroke,k=n,C="right"===l?n:0,P=0,S=void 0;y<a+5||y>o-5?(P=y/s+(i-o/s),S=!0):S=!1;return{coordinate:p(r.invert(P)),show:S,type:"horizontal",orient:c,edgeAt:C,hideLine:!1,lineOpacity:O,lineStroke:x,fill:v,opacity:b,fontFamily:g,fontSize:m,textFill:w,rectWidth:f,rectHeight:d,arrowWidth:_,dx:h,x1:0,x2:k,y1:P,y2:P}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(52),h=n(4),y=r(h),v=n(5),b=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(t,e),s(t,[{key:"drawOnCanvas",value:function(e,t){var n=u(this.props,t);(0,p.drawOnCanvas)(e,n)}},{key:"renderSVG",value:function(e){var t=u(this.props,e);return(0,p.renderSVG)(t)}},{key:"render",value:function(){return l.default.createElement(y.default,{clip:!1,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:v.getAxisCanvas,drawOn:["pan"]})}}]),t}(c.Component);b.propTypes={displayFormat:d.default.func.isRequired,yAxisPad:d.default.number,rectWidth:d.default.number,rectHeight:d.default.number,orient:d.default.oneOf(["bottom","top","left","right"]),at:d.default.oneOf(["bottom","top","left","right"]),price:d.default.number,dx:d.default.number,arrowWidth:d.default.number,fill:d.default.string,opacity:d.default.number,lineOpacity:d.default.number,lineStroke:d.default.string,fontFamily:d.default.string,fontSize:d.default.number,textFill:d.default.string},b.defaultProps={yAxisPad:0,rectWidth:50,rectHeight:20,orient:"left",at:"left",price:0,dx:0,arrowWidth:0,fill:"#BAB8b8",opacity:1,lineOpacity:.2,lineStroke:"#000000",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,textFill:"#FFFFFF"},t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(t,n){return{data:t,xScale:e,xAccessor:n,displayXAccessor:n}}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(387);Object.defineProperty(t,"discontinuousTimeScaleProvider",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(t,"discontinuousTimeScaleProviderBuilder",{enumerable:!0,get:function(){return a.discontinuousTimeScaleProviderBuilder}});var i=n(149);Object.defineProperty(t,"financeDiscontinuousScale",{enumerable:!0,get:function(){return r(i).default}}),t.defaultScaleProvider=o},function(e,t,n){"use strict";function r(e,t,n){return d.map(function(r,o){return{level:d.length-o-1,format:r(e,t,n)}}).find(function(e){return!!e.format})}function o(e,t,n){return function(r){var o=e(t);return{index:h.source(o).misc(n)(r)}}}function a(){var e=0,t=f.identity,n=function(e){return e.date},r=function(e){return e.idx},a=function(e,t){return u({},e,{idx:t})},i=void 0,c=void 0,d=function(d){var p=i,h=c;if((0,f.isNotDefined)(p)){var y=o(t,n,e)(d);p=y.index,h=y.interval}var v=p.map(function(e){var t=e.format;return u({},e,{date:new Date(e.date),format:(0,s.timeFormat)(t)})}),b=(0,l.default)(v,h);return{data:(0,f.zipper)().combine(a)(d,v),xScale:b,xAccessor:function(e){return e&&r(e).index},displayXAccessor:t(n)}};return d.initialIndex=function(t){return arguments.length?(e=t,d):e},d.inputDateAccessor=function(e){return arguments.length?(n=e,d):n},d.indexAccessor=function(e){return arguments.length?(r=e,d):r},d.indexMutator=function(e){return arguments.length?(a=e,d):a},d.withIndex=function(e){return arguments.length?(i=e,d):i},d.withInterval=function(e){return arguments.length?(c=e,d):c},d.utc=function(){return t=function(e){return function(t){var n=e(t),r=60*n.getTimezoneOffset()*1e3;return new Date(n.getTime()+r)}},d},d.indexCalculator=function(){return o(t,n,e)},d}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.discontinuousTimeScaleProviderBuilder=a;var s=n(24),c=n(149),l=function(e){return e&&e.__esModule?e:{default:e}}(c),f=n(0),d=[function(e,t,n){return e.startOfYear&&t.getFullYear()%2===0&&"%Y"},function(e,t,n){return e.startOfYear&&"%Y"},function(e,t,n){return e.startOfQuarter&&"%b %Y"},function(e,t,n){return e.startOfMonth&&"%b"},function(e,t,n){return e.startOfWeek&&"%d %b"},function(e,t,n){return e.startOfDay&&n%2===0&&"%a %d"},function(e,t,n){return e.startOfDay&&"%a %d"},function(e,t,n){return e.startOfHalfDay&&"%_I %p"},function(e,t,n){return e.startOfQuarterDay&&"%_I %p"},function(e,t,n){return e.startOfEighthOfADay&&"%_I %p"},function(e,t,n){return e.startOfHour&&t.getHours()%2===0&&"%_I %p"},function(e,t,n){return e.startOfHour&&"%_I %p"},function(e,t,n){return e.startOf30Minutes&&"%I:%M %p"},function(e,t,n){return e.startOf15Minutes&&"%I:%M %p"},function(e,t,n){return e.startOf5Minutes&&"%I:%M %p"},function(e,t,n){return e.startOfMinute&&"%I:%M %p"},function(e,t,n){return e.startOf30Seconds&&"%I:%M:%S %p"},function(e,t,n){return"%I:%M:%S %p"}],p=(0,f.slidingWindow)().windowSize(2).undefinedValue(function(e,t,n){var o=n,a={date:e.getTime(),startOf30Seconds:!1,startOfMinute:!1,startOf5Minutes:!1,startOf15Minutes:!1,startOf30Minutes:!1,startOfHour:!1,startOfEighthOfADay:!1,startOfQuarterDay:!1,startOfHalfDay:!1,startOfDay:!0,startOfWeek:!1,startOfMonth:!1,startOfQuarter:!1,startOfYear:!1},i=r(a,e,o);return u({},a,{index:o},i)}),h=p.accumulator(function(e,t,n,o){var a=i(e,2),s=a[0],c=a[1],l=c.getSeconds()%30===0,f=c.getMinutes()!==s.getMinutes(),d=f&&c.getMinutes()%5<=s.getMinutes()%5,p=f&&c.getMinutes()%15<=s.getMinutes()%15,h=f&&c.getMinutes()%30<=s.getMinutes()%30,y=c.getHours()!==s.getHours(),v=y&&c.getHours()%3===0,b=y&&c.getHours()%6===0,g=y&&c.getHours()%12===0,m=c.getDay()!==s.getDay(),w=c.getDay()<s.getDay(),_=c.getMonth()!==s.getMonth(),O=_&&c.getMonth()%3<=s.getMonth()%3,x=c.getYear()!==s.getYear(),k={date:c.getTime(),startOf30Seconds:l,startOfMinute:f,startOf5Minutes:d,startOf15Minutes:p,startOf30Minutes:h,startOfHour:y,startOfEighthOfADay:v,startOfQuarterDay:b,startOfHalfDay:g,startOfDay:m,startOfWeek:w,startOfMonth:_,startOfQuarter:O,startOfYear:x},C=r(k,c,t);return u({},k,{index:t+o},C)});t.default=a()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(389);Object.defineProperty(t,"MACDTooltip",{enumerable:!0,get:function(){return r(o).default}});var a=n(390);Object.defineProperty(t,"OHLCTooltip",{enumerable:!0,get:function(){return r(a).default}});var i=n(391);Object.defineProperty(t,"SingleValueTooltip",{enumerable:!0,get:function(){return r(i).default}});var u=n(392);Object.defineProperty(t,"MovingAverageTooltip",{enumerable:!0,get:function(){return r(u).default}});var s=n(393);Object.defineProperty(t,"BollingerBandTooltip",{enumerable:!0,get:function(){return r(s).default}});var c=n(394);Object.defineProperty(t,"RSITooltip",{enumerable:!0,get:function(){return r(c).default}});var l=n(395);Object.defineProperty(t,"StochasticTooltip",{enumerable:!0,get:function(){return r(l).default}});var f=n(396);Object.defineProperty(t,"HoverTooltip",{enumerable:!0,get:function(){return r(f).default}});var d=n(16);Object.defineProperty(t,"ToolTipText",{enumerable:!0,get:function(){return r(d).default}});var p=n(17);Object.defineProperty(t,"ToolTipTSpanLabel",{enumerable:!0,get:function(){return r(p).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(11),l=n(1),f=r(l),d=n(2),p=r(d),h=n(20),y=r(h),v=n(4),b=r(v),g=n(16),m=r(g),w=n(17),_=r(w),O=n(0),x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),s(t,[{key:"renderSVG",value:function(e){var t=this.props,n=t.onClick,r=t.fontFamily,o=t.fontSize,a=t.displayFormat,i=t.className,s=this.props,c=s.yAccessor,l=s.options,d=s.appearance,p=s.labelFill,h=this.props.displayValuesFor,y=e.chartConfig,v=y.width,b=y.height,g=h(this.props,e),w=g&&c(g),x=w&&w.macd&&a(w.macd)||"n/a",k=w&&w.signal&&a(w.signal)||"n/a",C=w&&w.divergence&&a(w.divergence)||"n/a",P=this.props.origin,S=(0,O.functor)(P),E=S(v,b),j=u(E,2),T=j[0],M=j[1];return f.default.createElement("g",{className:i,transform:"translate("+T+", "+M+")",onClick:n},f.default.createElement(m.default,{x:0,y:0,fontFamily:r,fontSize:o},f.default.createElement(_.default,{fill:p},"MACD ("),f.default.createElement("tspan",{fill:d.stroke.macd},l.slow),f.default.createElement(_.default,{fill:p},", "),f.default.createElement("tspan",{fill:d.stroke.macd},l.fast),f.default.createElement(_.default,{fill:p},"): "),f.default.createElement("tspan",{fill:d.stroke.macd},x),f.default.createElement(_.default,{fill:p}," Signal ("),f.default.createElement("tspan",{fill:d.stroke.signal},l.signal),f.default.createElement(_.default,{fill:p},"): "),f.default.createElement("tspan",{fill:d.stroke.signal},k),f.default.createElement(_.default,{fill:p}," Divergence: "),f.default.createElement("tspan",{fill:d.fill.divergence},C)))}},{key:"render",value:function(){return f.default.createElement(b.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(l.Component);x.propTypes={origin:p.default.oneOfType([p.default.array,p.default.func]).isRequired,className:p.default.string,fontFamily:p.default.string,fontSize:p.default.number,labelFill:p.default.string,yAccessor:p.default.func.isRequired,options:p.default.shape({slow:p.default.number.isRequired,fast:p.default.number.isRequired,signal:p.default.number.isRequired}).isRequired,appearance:p.default.shape({stroke:{macd:p.default.string.isRequired,signal:p.default.string.isRequired}.isRequired,fill:p.default.shape({divergence:p.default.string.isRequired}).isRequired}).isRequired,displayFormat:p.default.func.isRequired,displayValuesFor:p.default.func,onClick:p.default.func},x.defaultProps={origin:[0,0],displayFormat:(0,c.format)(".2f"),displayValuesFor:y.default,className:"react-stockcharts-tooltip"},t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(11),h=n(24),y=n(20),v=r(y),b=n(4),g=r(b),m=n(0),w=n(16),_=r(w),O=n(17),x=r(O),k=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),s(t,[{key:"renderSVG",value:function(e){var t=this.props,n=t.className,r=t.textFill,o=t.labelFill,a=this.props,i=a.onClick,s=a.fontFamily,c=a.fontSize,f=this.props.displayValuesFor,d=this.props,p=d.xDisplayFormat,h=d.accessor,y=d.volumeFormat,v=d.ohlcFormat,b=e.chartConfig,g=b.width,w=b.height,O=e.displayXAccessor,k=f(this.props,e),C=void 0,P=void 0,S=void 0,E=void 0,j=void 0,T=void 0;if(C=P=S=E=j=T="n/a",(0,m.isDefined)(k)&&(0,m.isDefined)(h(k))){var M=h(k);T=(0,m.isDefined)(M.volume)?y(M.volume):"n/a",C=p(O(M)),P=v(M.open),S=v(M.high),E=v(M.low),j=v(M.close)}var A=this.props.origin,D=(0,m.functor)(A),N=D(g,w),R=u(N,2),F=R[0],I=R[1];return l.default.createElement("g",{className:"react-stockcharts-tooltip-hover "+n,transform:"translate("+F+", "+I+")",onClick:i},l.default.createElement(_.default,{x:0,y:0,fontFamily:s,fontSize:c},l.default.createElement(x.default,{fill:o,key:"label",x:0,dy:"5"},"Date: "),l.default.createElement("tspan",{key:"value",fill:r},C),l.default.createElement(x.default,{fill:o,key:"label_O"}," O: "),l.default.createElement("tspan",{key:"value_O",fill:r},P),l.default.createElement(x.default,{fill:o,key:"label_H"}," H: "),l.default.createElement("tspan",{key:"value_H",fill:r},S),l.default.createElement(x.default,{fill:o,key:"label_L"}," L: "),l.default.createElement("tspan",{key:"value_L",fill:r},E),l.default.createElement(x.default,{fill:o,key:"label_C"}," C: "),l.default.createElement("tspan",{key:"value_C",fill:r},j),l.default.createElement(x.default,{fill:o,key:"label_Vol"}," Vol: "),l.default.createElement("tspan",{key:"value_Vol",fill:r},T)))}},{key:"render",value:function(){return l.default.createElement(g.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(c.Component);k.propTypes={className:d.default.string,accessor:d.default.func,xDisplayFormat:d.default.func,ohlcFormat:d.default.func,origin:d.default.oneOfType([d.default.array,d.default.func]),fontFamily:d.default.string,fontSize:d.default.number,onClick:d.default.func,displayValuesFor:d.default.func,volumeFormat:d.default.func,textFill:d.default.string,labelFill:d.default.string},k.defaultProps={accessor:function(e){return{date:e.date,open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}},xDisplayFormat:(0,h.timeFormat)("%Y-%m-%d"),volumeFormat:(0,p.format)(".4s"),ohlcFormat:(0,p.format)(".2f"),displayValuesFor:v.default,origin:[0,0]},t.default=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(11),h=n(20),y=r(h),v=n(4),b=r(v),g=n(16),m=r(g),w=n(17),_=r(w),O=n(0),x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),s(t,[{key:"renderSVG",value:function(e){var t=this.props,n=t.onClick,r=t.fontFamily,o=t.fontSize,a=t.labelFill,i=t.valueFill,s=t.className,c=this.props,f=c.xDisplayFormat,d=c.yDisplayFormat,p=c.xLabel,h=c.yLabel,y=c.xAccessor,v=c.yAccessor,b=this.props.displayValuesFor,g=e.chartConfig,w=g.width,x=g.height,k=b(this.props,e),C=(0,O.isDefined)(k)&&(0,O.isDefined)(y(k))?f(y(k)):"n/a",P=(0,O.isDefined)(k)&&(0,O.isDefined)(v(k))?d(v(k)):"n/a",S=this.props.origin,E=(0,O.functor)(S),j=E(w,x),T=u(j,2),M=T[0],A=T[1];return l.default.createElement("g",{className:s,transform:"translate("+M+", "+A+")",onClick:n},l.default.createElement(m.default,{x:0,y:0,fontFamily:r,fontSize:o},p?l.default.createElement(_.default,{x:0,dy:"5",fill:a},p+": "):null,p?l.default.createElement("tspan",{fill:i},C+" "):null,l.default.createElement(_.default,{fill:a},h+": "),l.default.createElement("tspan",{fill:i},P)))}},{key:"render",value:function(){return l.default.createElement(b.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(c.Component);x.propTypes={xDisplayFormat:d.default.func,yDisplayFormat:d.default.func.isRequired,xLabel:d.default.string,yLabel:d.default.oneOfType([d.default.string,d.default.func]).isRequired,labelFill:d.default.string.isRequired,valueFill:d.default.string,origin:d.default.oneOfType([d.default.array,d.default.func]).isRequired,className:d.default.string,fontFamily:d.default.string,fontSize:d.default.number,onClick:d.default.func,displayValuesFor:d.default.func,xAccessor:d.default.func,yAccessor:d.default.func},x.defaultProps={origin:[0,0],labelFill:"#4682B4",valueFill:"#000000",yDisplayFormat:(0,p.format)(".2f"),displayValuesFor:y.default,xAccessor:O.noop,yAccessor:O.identity,className:"react-stockcharts-tooltip"},t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),f=r(l),d=n(2),p=r(d),h=n(11),y=n(20),v=r(y),b=n(4),g=r(b),m=n(16),w=r(m),_=n(17),O=r(_),x=n(0),k=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return i(t,e),c(t,[{key:"handleClick",value:function(e){var t=this.props,n=t.onClick,r=t.forChart,o=t.options;n(s({chartId:r},o),e)}},{key:"render",value:function(){var e=this.props,t=e.textFill,n=e.labelFill,r="translate("+this.props.origin[0]+", "+this.props.origin[1]+")";return f.default.createElement("g",{transform:r},f.default.createElement("line",{x1:0,y1:2,x2:0,y2:28,stroke:this.props.color,strokeWidth:"4px"}),f.default.createElement(w.default,{x:5,y:11,fontFamily:this.props.fontFamily,fontSize:this.props.fontSize},f.default.createElement(O.default,{fill:n},this.props.displayName),f.default.createElement("tspan",{x:"5",dy:"15",fill:t},this.props.value)),f.default.createElement("rect",{x:0,y:0,width:55,height:30,onClick:this.handleClick,fill:"none",stroke:"none"}))}}]),t}(l.Component);k.propTypes={origin:p.default.array.isRequired,color:p.default.string.isRequired,displayName:p.default.string.isRequired,value:p.default.string.isRequired,onClick:p.default.func,fontFamily:p.default.string,textFill:p.default.string,labelFill:p.default.string,fontSize:p.default.number,forChart:p.default.oneOfType([p.default.number,p.default.string]).isRequired,options:p.default.object.isRequired};var C=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),c(t,[{key:"renderSVG",value:function(e){var t=this.props.displayValuesFor,n=e.chartId,r=e.chartConfig,o=this.props,a=o.className,i=o.onClick,s=o.width,c=o.fontFamily,l=o.fontSize,d=o.textFill,p=o.labelFill,h=this.props,y=h.origin,v=h.displayFormat,b=h.options,g=e.chartConfig.height,m=t(this.props,e),w=r,_=(0,x.functor)(y),O=_(s,g),C=u(O,2),P=C[0],S=C[1],E=u(w.origin,2),j=E[0],T=E[1];return f.default.createElement("g",{transform:"translate("+(j+P)+", "+(T+S)+")",className:a},b.map(function(e,t){var r=m&&e.yAccessor(m),o=e.type+" ("+e.windowSize+")",a=r?v(r):"n/a";return f.default.createElement(k,{key:t,origin:[s*t,0],color:e.stroke,displayName:o,value:a,options:e,forChart:n,onClick:i,fontFamily:c,fontSize:l,textFill:d,labelFill:p})}))}},{key:"render",value:function(){return f.default.createElement(g.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(l.Component);C.propTypes={className:p.default.string,displayFormat:p.default.func.isRequired,origin:p.default.array.isRequired,displayValuesFor:p.default.func,onClick:p.default.func,textFill:p.default.string,labelFill:p.default.string,fontFamily:p.default.string,fontSize:p.default.number,width:p.default.number,options:p.default.arrayOf(p.default.shape({yAccessor:p.default.func.isRequired,type:p.default.string.isRequired,stroke:p.default.string.isRequired,windowSize:p.default.number.isRequired,echo:p.default.any}))},C.defaultProps={className:"react-stockcharts-tooltip react-stockcharts-moving-average-tooltip",displayFormat:(0,h.format)(".2f"),displayValuesFor:v.default,origin:[0,10],width:65},t.default=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),l=r(c),f=n(2),d=r(f),p=n(11),h=n(20),y=r(h),v=n(4),b=r(v),g=n(0),m=n(16),w=r(m),_=n(17),O=r(_),x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),s(t,[{key:"renderSVG",value:function(e){var t=this.props,n=t.onClick,r=t.displayFormat,o=t.yAccessor,a=t.options,i=t.textFill,s=t.labelFill,c=this.props.displayValuesFor,f=e.chartConfig,d=f.width,p=f.height,h=c(this.props,e),y=void 0,v=void 0,b=void 0;if(y=v=b="n/a",(0,g.isDefined)(h)&&(0,g.isDefined)(o(h))){var m=o(h);y=r(m.top),v=r(m.middle),b=r(m.bottom)}var _=this.props.origin,x=(0,g.functor)(_),k=x(d,p),C=u(k,2),P=C[0],S=C[1],E=a.sourcePath,j=a.windowSize,T=a.multiplier,M=a.movingAverageType,A="BB("+E+", "+j+", "+T+", "+M+"): ",D=y+", "+v+", "+b;return l.default.createElement("g",{transform:"translate("+P+", "+S+")",className:this.props.className,onClick:n},l.default.createElement(w.default,{x:0,y:0,fontFamily:this.props.fontFamily,fontSize:this.props.fontSize},l.default.createElement(O.default,{fill:s},A),l.default.createElement("tspan",{fill:i},D)))}},{key:"render",value:function(){return l.default.createElement(b.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(c.Component);x.propTypes={className:d.default.string,yAccessor:d.default.func.isRequired,displayValuesFor:d.default.func,displayFormat:d.default.func.isRequired,origin:d.default.array.isRequired,onClick:d.default.func,options:d.default.shape({sourcePath:d.default.string.isRequired,windowSize:d.default.number.isRequired,multiplier:d.default.number.isRequired,movingAverageType:d.default.string.isRequired}).isRequired,textFill:d.default.string,labelFill:d.default.string,fontFamily:d.default.string,fontSize:d.default.number},x.defaultProps={className:"react-stockcharts-tooltip react-stockcharts-bollingerband-tooltip",displayFormat:(0,p.format)(".2f"),displayValuesFor:y.default,origin:[0,10]},t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(11),l=n(1),f=r(l),d=n(2),p=r(d),h=n(20),y=r(h),v=n(4),b=r(v),g=n(0),m=n(16),w=r(m),_=n(17),O=r(_),x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),s(t,[{key:"renderSVG",value:function(e){var t=this.props,n=t.onClick,r=t.fontFamily,o=t.fontSize,a=t.yAccessor,i=t.displayFormat,s=t.className,c=this.props,l=c.options,d=c.labelFill,p=c.textFill,h=this.props.displayValuesFor,y=e.chartConfig,v=y.width,b=y.height,m=h(this.props,e),_=(0,g.isDefined)(m)&&a(m),x=_&&i(_)||"n/a",k=this.props.origin,C=(0,g.functor)(k),P=C(v,b),S=u(P,2),E=S[0],j=S[1],T="RSI ("+l.windowSize+"): ";return f.default.createElement("g",{className:s,transform:"translate("+E+", "+j+")",onClick:n},f.default.createElement(w.default,{x:0,y:0,fontFamily:r,fontSize:o},f.default.createElement(O.default,{fill:d},T),f.default.createElement("tspan",{fill:p},x)))}},{key:"render",value:function(){return f.default.createElement(b.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(l.Component);x.propTypes={origin:p.default.oneOfType([p.default.array,p.default.func]).isRequired,options:p.default.shape({windowSize:p.default.number.isRequired}).isRequired,className:p.default.string,fontFamily:p.default.string,fontSize:p.default.number,onClick:p.default.func,yAccessor:p.default.func.isRequired,displayFormat:p.default.func.isRequired,displayValuesFor:p.default.func,textFill:p.default.string,labelFill:p.default.string},x.defaultProps={displayFormat:(0,c.format)(".2f"),displayValuesFor:y.default,origin:[0,0],className:"react-stockcharts-tooltip"},t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(11),l=n(1),f=r(l),d=n(2),p=r(d),h=n(20),y=r(h),v=n(4),b=r(v),g=n(0),m=n(16),w=r(m),_=n(17),O=r(_),x=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n}return i(t,e),s(t,[{key:"renderSVG",value:function(e){var t=this.props,n=t.onClick,r=t.fontFamily,o=t.fontSize,a=t.yAccessor,i=t.displayFormat,s=t.label,c=this.props,l=c.className,d=c.options,p=c.appearance,h=c.labelFill,y=this.props.displayValuesFor,v=e.chartConfig,b=v.width,m=v.height,_=y(this.props,e),x=p.stroke,k=_&&a(_),C=k&&k.K&&i(k.K)||"n/a",P=k&&k.D&&i(k.D)||"n/a",S=this.props.origin,E=(0,g.functor)(S),j=E(b,m),T=u(j,2),M=T[0],A=T[1];return f.default.createElement("g",{className:l,transform:"translate("+M+", "+A+")",onClick:n},f.default.createElement(w.default,{x:0,y:0,fontFamily:r,fontSize:o},f.default.createElement(O.default,{fill:h},s+" %K("),f.default.createElement("tspan",{fill:x.kLine},d.windowSize+", "+d.kWindowSize),f.default.createElement(O.default,{fill:h},"): "),f.default.createElement("tspan",{fill:x.kLine},C),f.default.createElement(O.default,{fill:h}," %D ("),f.default.createElement("tspan",{fill:x.dLine},d.dWindowSize),f.default.createElement(O.default,{fill:h},"): "),f.default.createElement("tspan",{fill:x.dLine},P)))}},{key:"render",value:function(){return f.default.createElement(b.default,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),t}(l.Component);x.propTypes={origin:p.default.oneOfType([p.default.array,p.default.func]).isRequired,className:p.default.string,fontFamily:p.default.string,fontSize:p.default.number,labelFill:p.default.string,onClick:p.default.func,yAccessor:p.default.func.isRequired,options:p.default.shape({windowSize:p.default.number.isRequired,kWindowSize:p.default.number.isRequired,dWindowSize:p.default.number.isRequired}).isRequired,appearance:p.default.shape({stroke:{dLine:p.default.string.isRequired,kLine:p.default.string.isRequired}.isRequired}).isRequired,displayFormat:p.default.func.isRequired,displayValuesFor:p.default.func,label:p.default.string.isRequired},x.defaultProps={displayFormat:(0,c.format)(".2f"),displayValuesFor:y.default,origin:[0,0],className:"react-stockcharts-tooltip",label:"STO"},t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=e.fill,r=e.stroke,o=e.opacity,a=t.height,i=t.width;return O.default.createElement("rect",{height:a,width:i,fill:n,opacity:o,stroke:r})}function c(e,t){for(var n=e.fontFamily,r=e.fontSize,o=e.fontFill,a=[],i=A+.9*r,u=0;u<t.y.length;u++){var s=t.y[u],c=i+r*(u+1);a.push(O.default.createElement("tspan",{key:"L-"+u,x:M,y:c,fill:s.stroke},s.label)),a.push(O.default.createElement("tspan",{key:u},": ")),a.push(O.default.createElement("tspan",{key:"V-"+u},s.value))}return O.default.createElement("text",{fontFamily:n,fontSize:r,fill:o},O.default.createElement("tspan",{x:M,y:i},t.x),a)}function l(e,t,n){var r=t.width,o=t.height,a=e.fill,i=e.stroke,u=e.opacity;n.fillStyle=(0,E.hexToRGBA)(a,u),n.strokeStyle=i,n.beginPath(),n.rect(0,0,r,o),n.fill(),n.stroke()}function f(e,t,n){var r=e.fontFamily,o=e.fontSize,a=e.fontFill,i=A+.9*o;n.font=o+"px "+r,n.fillStyle=a,n.textAlign="left",n.fillText(t.x,M,i);for(var u=0;u<t.y.length;u++){var s=t.y[u],c=i+o*(u+1);n.fillStyle=s.stroke||a,n.fillText(s.label,M,c),n.fillStyle=a,n.fillText(": "+s.value,M+n.measureText(s.label).width,c)}}function d(e,t,n,r,o){var a=n.margin,i=n.ratio,u=t.bgFill,s=t.bgOpacity,c=t.backgroundShapeCanvas,l=t.tooltipCanvas,f=.5*i+a.left,d=.5*i+a.top;e.save(),e.setTransform(1,0,0,1,0,0),e.scale(i,i),e.translate(f,d);var p=r.x,h=r.y,y=r.content,v=r.centerX,b=r.pointWidth,g=r.bgSize;e.fillStyle=(0,E.hexToRGBA)(u,s),e.beginPath(),e.rect(v-b/2,0,b,o),e.fill(),e.translate(p,h),c(t,g,e),l(t,y,e),e.restore()}function p(e,t,n){var r=e.fontFamily,o=e.fontSize,a=e.fontFill;if((0,E.isNotDefined)(n)){var i=document.createElement("canvas");n=i.getContext("2d")}n.font=o+"px "+r,n.fillStyle=a,n.textAlign="left";var u=function(e){return{width:n.measureText(e).width,height:o}},s=t.y.map(function(e){var t=e.label,n=e.value;return u(t+": "+n)}).reduce(function(e,t){return h(e,t)},u(String(t.x))),c=s.width,l=s.height;return{width:c+2*M,height:l+2*A}}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return{width:Math.max.apply(Math,o(t.map(function(e){return e.width}))),height:(0,S.sum)(t,function(e){return e.height})}}function y(e,t,n,r){return e<r/2?e+n/2+T:e-t.width-n/2-T}function v(e,t){return e-t.height<=0?e+T:e-t.height-T}function b(e,t,n,r){var o=e.chartId,a=e.yAccessor,i=t.mouseXY,u=t.xAccessor,s=t.currentItem,c=t.xScale,l=t.chartConfig,f=t.width,d=(0,E.last)(i),p=u(s),h=Math.round(c(p));if((0,E.isDefined)(o)&&(0,E.isDefined)(a)&&(0,E.isDefined)(l)&&(0,E.isDefined)(l.findIndex)){var b=a(s),g=l.findIndex(function(e){return e.id===o});d=Math.round(l[g].yScale(b))}return h=y(h,n,r,f),d=v(d,n),[h,d]}function g(e,t,n){var r=t.show,o=t.xScale,a=t.currentItem,i=t.plotData,u=e.origin,s=e.tooltipContent,c=t.xAccessor,l=t.displayXAccessor;if(r&&!(0,E.isNotDefined)(a)){var f=c(a);if(r&&!(0,E.isNotDefined)(f)){var d=s({currentItem:a,xAccessor:l}),h=o(f),y=Math.abs(o(c((0,E.last)(i)))-o(c((0,E.first)(i))))/(i.length-1),v=p(e,d,n),b=u(e,t,v,y),g=m(b,2);return{x:g[0],y:g[1],content:d,centerX:h,pointWidth:y,bgSize:v}}}}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=n(1),O=r(_),x=n(2),k=r(x),C=n(5),P=r(C),S=n(3),E=n(0),j=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return u(t,e),w(t,[{key:"drawOnCanvas",value:function(e,t){var n=g(this.props,t,e),r=t.height;if((0,E.isNotDefined)(n))return null;d(e,this.props,this.context,n,r)}},{key:"render",value:function(){return O.default.createElement(P.default,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,drawOn:["mousemove","pan"]})}},{key:"renderSVG",value:function(e){var t=g(this.props,e);if((0,E.isNotDefined)(t))return null;var n=this.props,r=n.bgFill,o=n.bgOpacity,a=n.backgroundShapeSVG,i=n.tooltipSVG,u=this.props,s=u.bgheight,c=u.bgwidth,l=e.height,f=t.x,d=t.y,p=t.content,h=t.centerX,y=t.pointWidth,v=t.bgSize,b=(0,E.isDefined)(c)&&(0,E.isDefined)(s)?{width:c,height:s}:v;return O.default.createElement("g",null,O.default.createElement("rect",{x:h-y/2,y:0,width:y,height:l,fill:r,opacity:o}),O.default.createElement("g",{className:"react-stockcharts-tooltip-content",transform:"translate("+f+", "+d+")"},a(this.props,b),i(this.props,p)))}}]),t}(_.Component);j.propTypes={chartId:k.default.oneOfType([k.default.number,k.default.string]),yAccessor:k.default.func,tooltipSVG:k.default.func,backgroundShapeSVG:k.default.func,bgwidth:k.default.number,bgheight:k.default.number,bgFill:k.default.string.isRequired,bgOpacity:k.default.number.isRequired,tooltipContent:k.default.func.isRequired,origin:k.default.oneOfType([k.default.array,k.default.func]).isRequired,fontFamily:k.default.string,fontSize:k.default.number},j.contextTypes={margin:k.default.object.isRequired,ratio:k.default.number.isRequired},j.defaultProps={tooltipSVG:c,tooltipCanvas:f,origin:b,fill:"#D4E2FD",bgFill:"#D4E2FD",bgOpacity:.5,stroke:"#9B9BFF",fontFill:"#000000",opacity:.8,backgroundShapeSVG:s,backgroundShapeCanvas:l,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12};var T=5,M=10,A=10;t.default=j},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptionsForAppearance=t.defaultOptionsForComputation=t.compare=t.elderImpulse=t.change=t.elderRay=t.sar=t.forceIndex=t.stochasticOscillator=t.atr=t.rsi=t.macd=t.renko=t.pointAndFigure=t.kagi=t.heikinAshi=t.bollingerBand=t.tma=t.wma=t.sma=t.ema=void 0;var a=n(398);Object.defineProperty(t,"ema",{enumerable:!0,get:function(){return o(a).default}});var i=n(414);Object.defineProperty(t,"sma",{enumerable:!0,get:function(){return o(i).default}});var u=n(415);Object.defineProperty(t,"wma",{enumerable:!0,get:function(){return o(u).default}});var s=n(416);Object.defineProperty(t,"tma",{enumerable:!0,get:function(){return o(s).default}});var c=n(417);Object.defineProperty(t,"bollingerBand",{enumerable:!0,get:function(){return o(c).default}});var l=n(418);Object.defineProperty(t,"heikinAshi",{enumerable:!0,get:function(){return o(l).default}});var f=n(419);Object.defineProperty(t,"kagi",{enumerable:!0,get:function(){return o(f).default}});var d=n(420);Object.defineProperty(t,"pointAndFigure",{enumerable:!0,get:function(){return o(d).default}});var p=n(421);Object.defineProperty(t,"renko",{enumerable:!0,get:function(){return o(p).default}});var h=n(422);Object.defineProperty(t,"macd",{enumerable:!0,get:function(){return o(h).default}});var y=n(423);Object.defineProperty(t,"rsi",{enumerable:!0,get:function(){return o(y).default}});var v=n(424);Object.defineProperty(t,"atr",{enumerable:!0,get:function(){return o(v).default}});var b=n(425);Object.defineProperty(t,"stochasticOscillator",{enumerable:!0,get:function(){return o(b).default}});var g=n(426);Object.defineProperty(t,"forceIndex",{enumerable:!0,get:function(){return o(g).default}});var m=n(427);Object.defineProperty(t,"sar",{enumerable:!0,get:function(){return o(m).default}});var w=n(428);Object.defineProperty(t,"elderRay",{enumerable:!0,get:function(){return o(w).default}});var _=n(429);Object.defineProperty(t,"change",{enumerable:!0,get:function(){return o(_).default}});var O=n(430);Object.defineProperty(t,"elderImpulse",{enumerable:!0,get:function(){return o(O).default}});var x=n(431);Object.defineProperty(t,"compare",{enumerable:!0,get:function(){return o(x).default}});var k=n(6),C=r(k),P=n(84),S=r(P);t.defaultOptionsForComputation=C,t.defaultOptionsForAppearance=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.ema}),t=(0,o.ema)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.ema=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options","undefinedLength"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="EMA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.windowSize,i=n.sourcePath,u=r*(r+1)/2;return(0,a.slidingWindow)().windowSize(r).sourcePath(i).accumulator(function(e){return(0,o.sum)(e,function(e,t){return(t+1)*e})/u})(e)}var t=i.WMA;return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},i.WMA,n),e):t},e};var o=n(3),a=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.windowSize,i=n.sourcePath,u=Math.floor(r/2),s=r%2===0?u*(u+1):(u+1)*(u+1);return(0,a.slidingWindow)().windowSize(r).sourcePath(i).accumulator(function(e){return(0,o.sum)(e,function(e,t){return t<u?(t+1)*e:(r-t)*e})/s})(e)}var t=i.TMA;return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},i.TMA,n),e):t},e};var o=n(3),a=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.windowSize,a=n.multiplier,s=n.movingAverageType,c=n.sourcePath,l=(0,u.path)(c),f="ema"===s?(0,i.default)().options({windowSize:r,sourcePath:c}):(0,u.slidingWindow)().windowSize(r).accumulator(function(e){return(0,o.mean)(e)}).sourcePath(c);return(0,u.slidingWindow)().windowSize(r).accumulator(function(e){var t=(0,u.last)(e).mean,n=(0,o.deviation)(e,function(e){return l(e.datum)});return{top:t+a*n,middle:t,bottom:t-a*n}})((0,u.zipper)().combine(function(e,t){return{datum:e,mean:t}})(e,f(e)))}var t=s.BollingerBand;return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},s.BollingerBand,n),e):t},e};var o=n(3),a=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(0),s=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(){function e(e){return(0,o.mappedSlidingWindow)().windowSize(2).undefinedValue(function(e){var t=e.open,n=e.high,r=e.low,o=e.close;return o=(t+n+r+o)/4,{open:t,high:n,low:r,close:o}}).accumulator(function(e){var t=r(e,2),n=t[0],o=t[1],a=(o.open+o.high+o.low+o.close)/4,i=(n.open+n.close)/2;return{open:i,high:Math.max(i,o.high,a),low:Math.min(i,o.low,a),close:a}})(e)}var t=o.identity;return e.source=function(n){return arguments.length?(t=n,e):t},e};var o=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var u=t,s=u.reversalType,c=u.windowSize,l=u.reversal,f=u.sourcePath,d=(0,o.path)(f),p=void 0;if("ATR"===s){var h=(0,i.default)().options({windowSize:c});(0,o.merge)().algorithm(h).merge(function(e,t){e["atr"+c]=t})(e),p=function(e){return e["atr"+c]}}else p=(0,o.functor)(l);var y=[],v=void 0,b=void 0,g=void 0,m={};return e.forEach(function(e){(0,o.isNotDefined)(m.from)&&(a(m,n(e)),m.from=n(e),m.open||(m.open=e.open),m.high=e.high,m.low=e.low,m.close||(m.close=d(e)),m.startOfYear=e.startOfYear,m.startOfQuarter=e.startOfQuarter,m.startOfMonth=e.startOfMonth,m.startOfWeek=e.startOfWeek),m.startOfYear||(m.startOfYear=e.startOfYear,m.startOfYear&&(m.date=e.date)),m.startOfQuarter||(m.startOfQuarter=e.startOfQuarter,m.startOfQuarter&&!m.startOfYear&&(m.date=e.date)),m.startOfMonth||(m.startOfMonth=e.startOfMonth,m.startOfMonth&&!m.startOfQuarter&&(m.date=e.date)),m.startOfWeek||(m.startOfWeek=e.startOfWeek,m.startOfWeek&&!m.startOfMonth&&(m.date=e.date)),m.volume=(m.volume||0)+e.volume,m.high=Math.max(m.high,e.high),m.low=Math.min(m.low,e.low),m.to=n(e);var t=d(e)-m.close;if(m.close>=m.open&&t>0||m.close<m.open&&t<0)m.close=d(e),b&&m.close<b&&(m.changePoint=b,"yin"!==m.startAs&&(m.changeTo="yin")),v&&m.close>v&&(m.changePoint=v,"yang"!==m.startAs&&(m.changeTo="yang"));else if(m.close>=m.open&&t<0&&Math.abs(t)>p(e)||m.close<m.open&&t>0&&Math.abs(t)>p(e)){var i=m.close;g=(m.close-m.open)/Math.abs(m.close-m.open);var u=void 0,s=void 0;g<0?((0,o.isNotDefined)(v)&&(v=m.open),b=m.close,d(e)>v&&(u=v,s="yang")):((0,o.isNotDefined)(b)&&(b=m.open),v=m.close,d(e)<b&&(u=b,s="yin")),(0,o.isNotDefined)(m.startAs)&&(m.startAs=g>0?"yang":"yin");var c=m.changeTo||m.startAs;m.added=!0,y.push(m),g*=-1,m=r({},m),m.open=i,m.close=d(e),m.startAs=c,m.changePoint=u,m.changeTo=s,m.added=!1,m.from=void 0,m.volume=0}m.current=d(e);var l=m.close-m.open;l=0===l?1:l/Math.abs(l),m.reverseAt=l>0?m.close-p(e):m.open-p(e)}),m.added||y.push(m),y}var t=u.Kagi,n=function(e){return e.date},a=function(e,t){e.date=t};return e.options=function(n){return arguments.length?(t=r({},u.Kagi,n),e):t},e.dateMutator=function(t){return arguments.length?(a=t,e):a},e.dateAccessor=function(t){return arguments.length?(n=t,e):n},e};var o=n(0),a=n(83),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(6)},function(e,t,n){"use strict";function r(e,t,n){var r={open:e.open,fromDate:t(e),toDate:t(e),startOfYear:e.startOfYear,startOfQuarter:e.startOfQuarter,startOfMonth:e.startOfMonth,startOfWeek:e.startOfWeek};return n(r,t(e)),r}function o(e,t,n){return e.forEach(function(e){e.startOfYear=!1,e.startOfQuarter=!1,e.startOfMonth=!1,e.startOfWeek=!1,e.boxes.forEach(function(r){(0,i.isNotDefined)(e.open)&&(e.open=r.open),e.close=r.close,e.high=Math.max(e.open,e.close),e.low=Math.min(e.open,e.close),(0,i.isNotDefined)(e.fromDate)&&(e.fromDate=r.fromDate),(0,i.isNotDefined)(e.date)&&(e.date=r.date),e.toDate=r.toDate,r.startOfYear&&(e.startOfYear=e.startOfYear||r.startOfYear,e.startOfQuarter=r.startOfQuarter,e.startOfMonth=r.startOfMonth,e.startOfWeek=r.startOfWeek,n(e,t(r))),!0!==e.startOfQuarter&&r.startOfQuarter&&(e.startOfQuarter=r.startOfQuarter,e.startOfMonth=r.startOfMonth,e.startOfWeek=r.startOfWeek,n(e,t(r))),!0!==e.startOfMonth&&r.startOfMonth&&(e.startOfMonth=r.startOfMonth,e.startOfWeek=r.startOfWeek,n(e,t(r))),!0!==e.startOfWeek&&r.startOfWeek&&(e.startOfWeek=r.startOfWeek,n(e,t(r)))})}),e}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var a=t,u=a.reversal,s=a.boxSize,c=a.sourcePath,l="high/low"===c?function(e){return{high:e.high,low:e.low}}:function(e){return{high:e.close,low:e.close}},f=l,d=[],p={boxes:[],open:e[0].open},h=r(e[0],n,i);return d.push(p),e.forEach(function(e){if(p.volume=(p.volume||0)+e.volume,h.startOfYear||(h.startOfYear=e.startOfYear,h.startOfYear&&i(h,n(e))),h.startOfYear||h.startOfQuarter||(h.startOfQuarter=e.startOfQuarter,h.startOfQuarter&&!h.startOfYear&&i(h,n(e))),h.startOfQuarter||h.startOfMonth||(h.startOfMonth=e.startOfMonth,h.startOfMonth&&!h.startOfQuarter&&i(h,n(e))),h.startOfMonth||h.startOfWeek||(h.startOfWeek=e.startOfWeek,h.startOfWeek&&!h.startOfMonth&&i(h,n(e))),1===d.length&&0===p.boxes.length){var t=Math.max(f(e).high-p.open,0),o=Math.abs(Math.min(p.open-f(e).low,0));if(p.direction=t>o?1:-1,s*u<t||s*u<o){h.toDate=n(e),h.open=p.open;for(var a=p.direction>0?Math.floor(t/s):Math.floor(o/s),c=0;c<a;c++){h.close=h.open+p.direction*s;var l=h.close;p.boxes.push(h),h=r(h,n,i),h.open=l}h.fromDate=n(e),h.date=n(e)}}else{var y=Math.max(f(e).high-h.open,0),v=Math.abs(Math.min(f(e).low-h.open,0));if(p.direction>0&&y>s||p.direction<0&&v>s){h.close=h.open+p.direction*s,h.toDate=n(e);var b=h.close;p.boxes.push(h),h=r(e,n,i),h.open=b,h.fromDate=n(e),i(h,n(e))}else if(p.direction>0&&v>s*u||p.direction<0&&y>s*u){h.open=h.open+-1*p.direction*s,h.toDate=n(e),i(h,n(e)),p={boxes:[],volume:0,direction:-1*p.direction};for(var g=p.direction>0?Math.floor(y/s):Math.floor(v/s),m=0;m<g;m++){h.close=h.open+p.direction*s;var w=h.close;p.boxes.push(h),h=r(e,n,i),h.open=w}d.push(p)}}}),o(d,n,i),d}var t=u.PointAndFigure,n=function(e){return e.date},i=function(e,t){e.date=t};return e.options=function(n){return arguments.length?(t=a({},u.PointAndFigure,n),e):t},e.dateMutator=function(t){return arguments.length?(i=t,e):i},e.dateAccessor=function(t){return arguments.length?(n=t,e):n},e};var i=n(0),u=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var r=t,u=r.reversalType,s=r.fixedBrickSize,c=r.sourcePath,l=r.windowSize,f="high/low"===c?function(e){return{high:e.high,low:e.low}}:function(e){return{high:e.close,low:e.close}},d=f,p=void 0;if("ATR"===u){var h=(0,i.default)().options({windowSize:l});(0,o.merge)().algorithm(h).merge(function(e,t){e["atr"+l]=t})(e),p=function(e){return e["atr"+l]}}else p=(0,o.functor)(s);var y=[],v=0,b=e[v].open,g=e[v].open,m={},w=0;return e.forEach(function(t,r){(0,o.isNotDefined)(m.from)&&(m.high=t.high,m.low=t.low,m.startOfYear=t.startOfYear,m.startOfQuarter=t.startOfQuarter,m.startOfMonth=t.startOfMonth,m.startOfWeek=t.startOfWeek,m.from=r,m.fromDate=n(t),a(m,n(t))),m.volume=(m.volume||0)+t.volume;var i=b-d(t).high,u=b-d(t).low,s=g-d(t).high,c=g-d(t).low,l=Math.min(Math.abs(i),Math.abs(u),Math.abs(s),Math.abs(c));if(m.high=Math.max(m.high,t.high),m.low=Math.min(m.low,t.low),m.startOfYear||(m.startOfYear=t.startOfYear,m.startOfYear&&a(m,n(t))),m.startOfQuarter||(m.startOfQuarter=t.startOfQuarter,m.startOfQuarter&&!m.startOfYear&&a(m,n(t))),m.startOfMonth||(m.startOfMonth=t.startOfMonth,m.startOfMonth&&!m.startOfQuarter&&a(m,n(t))),m.startOfWeek||(m.startOfWeek=t.startOfWeek,m.startOfWeek&&!m.startOfMonth&&a(m,n(t))),p(t)){var f=Math.floor(l/p(t));if(m.open=Math.abs(i)<Math.abs(s)||Math.abs(u)<Math.abs(c)?b:g,f>=1){var h=0;for(h=0;h<f;h++){m.close=m.open<d(t).high?m.open+p(t):m.open-p(t),w=m.close>m.open?1:-1,m.direction=w,m.to=r,m.toDate=n(t),m.fullyFormed=!0,y.push(m),b=m.close,g=m.open;var _={high:m.high,low:m.low,open:m.close,startOfYear:!1,startOfMonth:!1,startOfQuarter:!1,startOfWeek:!1};m=_,m.from=r,m.fromDate=n(t),a(m,n(t)),m.volume=(m.volume||0)+t.volume}v=v+h-1,m={}}else r===e.length-1&&(m.close=w>0?d(t).high:d(t).low,m.to=r,m.toDate=n(t),a(m,n(t)),m.fullyFormed=!1,y.push(m))}}),y}var t=u.Renko,n=function(e){return e.date},a=function(e,t){e.date=t};return e.options=function(n){return arguments.length?(t=r({},u.Renko,n),e):t},e.dateMutator=function(t){return arguments.length?(a=t,e):a},e.dateAccessor=function(t){return arguments.length?(n=t,e):n},e};var o=n(0),a=n(83),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.fast,o=n.slow,u=n.signal,s=n.sourcePath,c=(0,a.default)().options({windowSize:r,sourcePath:s}),l=(0,a.default)().options({windowSize:o,sourcePath:s}),f=(0,a.default)().options({windowSize:u,sourcePath:void 0}),d=(0,i.zipper)().combine(function(e,t){return(0,i.isDefined)(e)&&(0,i.isDefined)(t)?e-t:void 0}),p=d(c(e),l(e)),h=new Array(o),y=h.concat(f(p.slice(o)));return(0,i.zipper)().combine(function(e,t){return{macd:e,signal:t,divergence:(0,i.isDefined)(e)&&(0,i.isDefined)(t)?e-t:void 0}})(p,y)}var t=u.MACD;return e.undefinedLength=function(){var e=t;return e.slow+e.signal-1},e.options=function(n){return arguments.length?(t=r({},u.MACD,n),e):t},e};var o=n(40),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(0),u=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var n=t,r=n.windowSize,i=n.sourcePath,u=(0,a.path)(i),s=void 0,c=void 0;return(0,a.slidingWindow)().windowSize(r).accumulator(function(e){var t=(0,a.isDefined)(s)?(s*(r-1)+(0,a.last)(e).gain)/r:(0,o.mean)(e,function(e){return e.gain}),n=(0,a.isDefined)(c)?(c*(r-1)+(0,a.last)(e).loss)/r:(0,o.mean)(e,function(e){return e.loss}),i=t/n,u=100-100/(1+i);return s=t,c=n,u})((0,a.slidingWindow)().windowSize(2).undefinedValue(function(){return[0,0]}).accumulator(function(e){var t=e[0],n=e[1],r=u(n)-u(t);return{gain:Math.max(r,0),loss:Math.abs(Math.min(r,0))}})(e))}var t=i.RSI;return e.undefinedLength=function(){return t.windowSize-1},e.options=function(n){return arguments.length?(t=r({},i.RSI,n),e):t},e};var o=n(3),a=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var r=t,i=r.windowSize,u=r.kWindowSize,s=r.dWindowSize,c=function(e){return n(e).high},l=function(e){return n(e).low},f=function(e){return n(e).close},d=(0,a.slidingWindow)().windowSize(i).accumulator(function(e){var t=(0,o.max)(e,c),n=(0,o.min)(e,l);return(f((0,a.last)(e))-n)/(t-n)*100}),p=(0,a.slidingWindow)().skipInitial(i-1).windowSize(u).accumulator(function(e){return(0,o.mean)(e)}),h=(0,a.slidingWindow)().skipInitial(i-1+u-1).windowSize(s).accumulator(function(e){return(0,o.mean)(e)}),y=(0,a.zipper)().combine(function(e,t){return{K:e,D:t}}),v=p(d(e));return y(v,h(v))}var t=i.FullStochasticOscillator,n=function(e){return{open:e.open,high:e.high,low:e.low,close:e.close}};return e.undefinedLength=function(){var e=t;return e.windowSize+e.kWindowSize+e.dWindowSize},e.source=function(t){return arguments.length?(n=t,e):n},e.options=function(n){return arguments.length?(t=r({},i.FullStochasticOscillator,n),e):t},e};var o=n(3),a=n(0),i=n(6)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var o=r,a=o.smoothingType,i=o.smoothingWindow,u=r,c=u.sourcePath,f=u.volumePath,d=t.options({sourcePath:c,volumePath:f}),p=d(e),h="ema"===a?(0,s.default)():(0,l.default)(),y=h.options({windowSize:i,sourcePath:void 0}),v=y(p);return n(p,v)}var t=(0,i.default)(),n=(0,f.zipper)().combine(function(e,t){return{force:e,smoothed:t}}),r=d.SmoothedForceIndex;return e.undefinedLength=function(){var e=r,n=e.smoothingWindow;return t.undefinedLength()+n-1},e.options=function(t){return arguments.length?(r=o({},d.SmoothedForceIndex,t),e):r},e};var a=n(151),i=r(a),u=n(40),s=r(u),c=n(150),l=r(c),f=n(0),d=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){function e(e){var r=t,a=r.windowSize,u=r.sourcePath,c=r.movingAverageType,l="ema"===c?(0,i.default)().options({windowSize:a,sourcePath:u}):(0,s.slidingWindow)().windowSize(a).accumulator(function(e){return(0,o.mean)(e)}).sourcePath(u);return(0,s.zipper)().combine(function(e,t){return{bullPower:(0,s.isDefined)(t)?n(e).high-t:void 0,bearPower:(0,s.isDefined)(t)?n(e).low-t:void 0}})(e,l(e))}var t=u.ElderRay,n=function(e){return{open:e.open,high:e.high,low:e.low,close:e.close}};return e.undefinedLength=function(){return t.windowSize-1},e.ohlc=function(t){return arguments.length?(n=t,e):n},e.options=function(n){return arguments.length?(t=r({},u.ElderRay,n),e):t},e};var o=n(3),a=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(6),s=n(0)},function(e,t,n){"use strict";function r(e,t){return{risingSar:e.risingSar+e.af*(e.risingEp-e.risingSar),fallingSar:e.fallingSar-e.af*(e.fallingSar-e.fallingEp),risingEp:Math.max(e.risingEp,t.high),fallingEp:Math.min(e.fallingEp,t.low)}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(){function e(e){var n=t,u=n.accelerationFactor,s=n.maxAccelerationFactor;return(0,i.mappedSlidingWindow)().windowSize(2).undefinedValue(function(e){var t=e.high,n=e.low;return{risingSar:n,risingEp:t,fallingSar:t,fallingEp:n,af:u}}).accumulator(function(e){var t=a(e,2),n=t[0],c=t[1],l=r(n,c),f=l.risingSar,d=l.fallingSar,p=l.risingEp,h=l.fallingEp;if((0,i.isNotDefined)(n.use)&&f>c.low&&d<c.high)return{risingSar:f,fallingSar:d,risingEp:p,fallingEp:h};var y=(0,i.isDefined)(n.use)?"rising"===n.use?f>c.low?"falling":"rising":d<c.high?"rising":"falling":f>c.low?"falling":"rising",v=n.use===y?{af:Math.min(s,n.af+u),fallingEp:h,risingEp:p,fallingSar:d,risingSar:f}:{af:u,fallingEp:c.low,risingEp:c.high,fallingSar:Math.max(n.risingEp,c.high),risingSar:Math.min(n.fallingEp,c.low)},b=c.date,g=c.high,m=c.low;return o({date:b,high:g,low:m},v,{use:y,sar:"falling"===y?v.fallingSar:v.risingSar})})(e).map(function(e){return e.sar})}var t=u.SAR;return e.undefinedLength=function(){return 1},e.options=function(n){return arguments.length?(t=o({},u.SAR,n),e):t},e};var i=n(0),u=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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};t.default=function(){function e(e){var n=t,r=n.basePath,i=n.mainKeys,u=n.compareKeys,s=(0,a.path)(r),c=(0,a.head)(e),l=s(c),f={};return e.map(function(e){var t={};return i.forEach(function(n){"object"===o(e[n])?(t[n]={},Object.keys(e[n]).forEach(function(r){t[n][r]=(e[n][r]-l)/l})):t[n]=(e[n]-l)/l}),u.forEach(function(n){(0,a.isDefined)(e[n])&&(0,a.isNotDefined)(f[n])&&(f[n]=e[n]),(0,a.isDefined)(e[n])&&(0,a.isDefined)(f[n])&&(t[n]=(e[n]-f[n])/f[n])}),t})}var t=i.Change;return e.options=function(n){return arguments.length?(t=r({},i.Change,n),e):t},e};var a=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(){function e(e){var n=t,r=n.sourcePath;return(0,a.slidingWindow)().windowSize(2).sourcePath(r).accumulator(function(e){var t=o(e,2),n=t[0],r=t[1],a=r-n;return{absoluteChange:a,percentChange:100*a/n}})(e)}var t=i.Change;return e.undefinedLength=function(){return 1},e.options=function(n){return arguments.length?(t=r({},i.Change,n),e):t},e};var a=n(0),i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.sma}),t=(0,o.sma)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.sma=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"undefinedLength"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="SMA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.wma}),t=(0,o.wma)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.wma=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"undefinedLength"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="WMA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.tma}),t=(0,o.tma)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.tma=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"undefinedLength"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="TMA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,a.default)().type(u),t=(0,i.bollingerband)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.bollingerBand=t}),o=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(o,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(o,t,"options"),(0,r.rebind)(o,n,"merge","skipUndefined"),o};var r=n(0),o=n(7),a=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(8),u="BollingerBand"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=(0,i.default)().type(s).accessor(function(e){return e.ha}),t=(0,o.heikinAshi)(),n=(0,u.merge)().algorithm(t).merge(function(e,t){return r({},e,t)}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+s+" before calculating");return n(r)}return t(r)};return(0,u.rebind)(a,e,"accessor","stroke","fill","echo","type"),(0,u.rebind)(a,n,"merge"),a};var o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(0),s="HeikinAshi"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u),t=(0,o.kagi)(),n=t;return(0,r.rebind)(n,e,"id","stroke","fill","echo","type"),(0,r.rebind)(n,t,"dateAccessor","dateMutator"),(0,r.rebind)(n,t,"options"),n};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="Kagi"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u),t=(0,o.pointAndFigure)(),n=t;return(0,r.rebind)(n,e,"id","stroke","fill","echo","type"),(0,r.rebind)(n,t,"dateAccessor","dateMutator"),(0,r.rebind)(n,t,"options"),n};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="PointAndFigure"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u),t=(0,o.renko)(),n=t;return(0,r.rebind)(n,e,"id","stroke","fill","echo","type"),(0,r.rebind)(n,t,"dateAccessor","dateMutator"),(0,r.rebind)(n,t,"options"),n};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="Renko"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(s).fill(u.MACD.fill).stroke(u.MACD.stroke).accessor(function(e){return e.macd}),t=(0,o.macd)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.macd=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+s+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options","undefinedLength"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(84),s="MACD"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.rsi}),t=(0,o.rsi)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.rsi=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options","undefinedLength"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="RSI"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u),t=(0,o.atr)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.atr=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="ATR"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u),t=(0,o.sto)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.sto=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options","undefinedLength"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="STO"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.forceIndex}),t=(0,o.forceIndex)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.forceIndex=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="ForceIndex"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.sar}),t=(0,o.sar)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.sar=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","echo","type"),(0,r.rebind)(a,t,"undefinedLength"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="SMA"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.elderRay}),t=(0,o.elderRay)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.elderRay=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="ElderRay"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u),t=(0,o.change)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.absoluteChange=t.absoluteChange,e.percentChange=t.percentChange}),a=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge?n(e):t(e)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge","skipUndefined"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="Change"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(){var e=void 0,t=void 0,n=(0,u.default)().type(s).stroke(a.ElderImpulse.stroke).fill(void 0),i=(0,o.slidingWindow)().windowSize(2).undefinedValue("neutral").accumulator(function(n){var a=r(n,2),i=a[0],u=a[1];if((0,o.isNotDefined)(e))throw new Error("macdSource not defined for "+s+" calculator");if((0,o.isNotDefined)(t))throw new Error("emaSource not defined for "+s+" calculator");if((0,o.isDefined)(e(i))&&(0,o.isDefined)(t(i))){var c=e(i).divergence,l=e(u).divergence,f=t(i),d=t(u);if(l>=c&&d>=f)return"up";if(l<=c&&d<=f)return"down"}return"neutral"}),c=(0,o.merge)().algorithm(i).merge(function(e,t){e.elderImpulse=t}),l=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge?c(e):i(e)};return l.macdSource=function(t){return arguments.length?(e=t,l):e},l.emaSource=function(e){return arguments.length?(t=e,l):t},(0,o.rebind)(l,n,"id","echo","type","stroke"),(0,o.rebind)(l,c,"merge","skipUndefined"),l};var o=n(0),a=n(84),i=n(7),u=function(e){return e&&e.__esModule?e:{default:e}}(i),s="ElderImpulse"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,i.default)().type(u).accessor(function(e){return e.compare}),t=(0,o.compare)(),n=(0,r.merge)().algorithm(t).merge(function(e,t){e.compare=t}),a=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!e.accessor())throw new Error("Set an accessor to "+u+" before calculating");return n(r)}return t(r)};return(0,r.rebind)(a,e,"id","accessor","stroke","fill","echo","type"),(0,r.rebind)(a,t,"options"),(0,r.rebind)(a,n,"merge"),a};var r=n(0),o=n(8),a=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(a),u="Compare"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(433);Object.defineProperty(t,"TypeChooser",{enumerable:!0,get:function(){return r(o).default}});var a=n(434);Object.defineProperty(t,"SaveChartAsImage",{enumerable:!0,get:function(){return r(a).default}});var i=n(436);Object.defineProperty(t,"fitWidth",{enumerable:!0,get:function(){return r(i).default}});var u=n(437);Object.defineProperty(t,"fitDimensions",{enumerable:!0,get:function(){return r(u).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),l=n(2),f=r(l),d=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={type:n.props.type},n.handleTypeChange=n.handleTypeChange.bind(n),n}return i(t,e),u(t,[{key:"handleTypeChange",value:function(e){this.setState({type:e.target.value})}},{key:"render",value:function(){return c.default.createElement("div",null,c.default.createElement("label",null,"Type: "),c.default.createElement("select",{name:"type",id:"type",onChange:this.handleTypeChange,value:this.state.type},c.default.createElement("option",{value:"svg"},"svg"),c.default.createElement("option",{value:"hybrid"},"canvas + svg")),c.default.createElement("div",{style:this.props.style},this.props.children(this.state.type)))}}]),t}(s.Component);d.propTypes={type:f.default.oneOf(["svg","hybrid"]),children:f.default.func.isRequired,style:f.default.object.isRequired},d.defaultProps={type:"hybrid",style:{}},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(435),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(0),i={save:function(e,t,n,r){o.default.svgAsDataUri(t.getElementsByTagName("svg")[0],{},function(o){var i=new Image;i.onload=function(){var o=e.createElement("canvas");o.width=i.width,o.height=i.height;var u=o.getContext("2d");(0,a.isDefined)(n)&&(u.fillStyle=n,u.fillRect(0,0,o.width,o.height));for(var s=t.getElementsByTagName("canvas"),c=0;c<s.length;c++){var l=s[c];if((0,a.isDefined)(l)){var f=l.parentNode.parentNode.getBoundingClientRect(),d=l.getBoundingClientRect();u.drawImage(l,d.left-f.left,d.top-f.top)}}u.drawImage(i,0,0),r(o.toDataURL("image/png"))},i.src=o})},saveWithWhiteBG:function(e,t,n){return this.saveWithBG(e,t,"white",n)},saveWithDarkBG:function(e,t,n){return this.saveWithBG(e,t,"#303030",n)},saveWithBG:function(e,t,n,r){return this.save(e,t,n,r)},saveChartAsImage:function(e){this.saveWithWhiteBG(document,e,function(e){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download","Chart.png"),document.body.appendChild(t),t.addEventListener("click",function(){t.parentNode.removeChild(t)}),t.click()})}};t.default=i},function(e,t,n){var r;!function(){function o(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){if(!o(e))throw new Error("an HTMLElement or SVGElement is required; got "+e)}function i(e){return e&&0==e.lastIndexOf("http",0)&&-1==e.lastIndexOf(window.location.host)}function u(e,t){a(e);var n=e.querySelectorAll("image"),r=n.length,o=function(){0===r&&t()};o();for(var u=0;u<n.length;u++)!function(e){var t=e.getAttributeNS("http://www.w3.org/1999/xlink","href");if(t&&i(t.value))return void console.warn("Cannot render embedded images linking to external hosts: "+t.value);var n=document.createElement("canvas"),a=n.getContext("2d"),u=new Image;u.crossOrigin="anonymous",t=t||e.getAttribute("href"),t?(u.src=t,u.onload=function(){n.width=u.width,n.height=u.height,a.drawImage(u,0,0),e.setAttributeNS("http://www.w3.org/1999/xlink","href",n.toDataURL("image/png")),r--,o()},u.onerror=function(){console.log("Could not load "+t),r--,o()}):(r--,o())}(n[u])}function s(e,t,n){function r(e){if(e.length>0){var t=e.pop();!function(t){function n(){var e=s.response,n=o(e);i(t,n)}function a(e){console.warn("Failed to load font from: "+t.url),console.warn(e),u+=t.text+"\n",r()}function i(t,n){var o='url("data:'+t.format+";base64,"+n+'")';u+=t.text.replace(t.fontUrlRegexp,o)+"\n",setTimeout(function(){r(e)},0)}var s=new XMLHttpRequest;s.addEventListener("load",n),s.addEventListener("error",a),s.addEventListener("abort",a),s.open("GET",t.url),s.responseType="arraybuffer",s.send()}(t)}else n(u)}function o(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);return window.btoa(t)}for(var a=t.selectorRemap,i=t.modifyStyle,u="",s=[],c=document.styleSheets,l=0;l<c.length;l++){try{var f=c[l].cssRules}catch(e){console.warn("Stylesheet could not be loaded: "+c[l].href);continue}if(null!=f)for(var d,p=0;p<f.length;p++,d=null){var h=f[p];if("undefined"!=typeof h.style){var y;try{y=h.selectorText}catch(e){console.warn('The following CSS rule has an invalid selector: "'+h+'"',e)}try{y&&(d=e.querySelector(y)||e.parentNode.querySelector(y))}catch(e){console.warn('Invalid CSS selector "'+y+'"',e)}if(d){var v=a?a(h.selectorText):h.selectorText,b=i?i(h.style.cssText):h.style.cssText;u+=v+" { "+b+" }\n"}else if(h.cssText.match(/^@font-face/)){var g=/url\(["']?(.+?)["']?\)/,m=h.cssText.match(g),w=m&&m[1]||"",_=w.match(/^data:/);_&&(w=""),w?(w.startsWith("../")?w=c[l].href+"/../"+w:w.startsWith("./")&&(w=c[l].href+"/."+w),s.push({text:h.cssText,fontUrlRegexp:g,format:function(e){for(var t={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},n=Object.keys(t),r=0;r<n.length;++r){var o=n[r];if(e.indexOf("."+o)>0)return t[o]}return console.error("Unknown font format for "+e+"; Fonts may not be working correctly"),"application/octet-stream"}(w),url:w})):u+=h.cssText+"\n"}}}}r(s)}function c(e,t,n){var r=e.viewBox&&e.viewBox.baseVal&&e.viewBox.baseVal[n]||null!==t.getAttribute(n)&&!t.getAttribute(n).match(/%$/)&&parseInt(t.getAttribute(n))||e.getBoundingClientRect()[n]||parseInt(t.style[n])||parseInt(window.getComputedStyle(e).getPropertyValue(n));return"undefined"===typeof r||null===r||isNaN(parseFloat(r))?0:r}function l(e){return e=encodeURIComponent(e),e=e.replace(/%([0-9A-F]{2})/g,function(e,t){var n=String.fromCharCode("0x"+t);return"%"===n?"%25":n}),decodeURIComponent(e)}function f(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return new Blob([r],{type:n})}var d="undefined"!=typeof t&&t||{}||this;d.prepareSvg=function(e,t,n){a(e),t=t||{},t.scale=t.scale||1,t.responsive=t.responsive||!1;var r="http://www.w3.org/2000/xmlns/";u(e,function(){function o(e){var t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML="<![CDATA[\n"+e+"\n]]>";var r=document.createElement("defs");if(r.appendChild(t),l.insertBefore(r,l.firstChild),n){var o=u.innerHTML;o=o.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href'),n(o,a,i)}}var a,i,u=document.createElement("div"),l=e.cloneNode(!0);if("svg"==e.tagName)a=t.width||c(e,l,"width"),i=t.height||c(e,l,"height");else{if(!e.getBBox)return void console.error("Attempted to render non-SVG element",e);var f=e.getBBox();a=f.x+f.width,i=f.y+f.height,l.setAttribute("transform",l.getAttribute("transform").replace(/translate\(.*?\)/,""));var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.appendChild(l),l=d}l.setAttribute("version","1.1"),l.getAttribute("xmlns")||l.setAttributeNS(r,"xmlns","http://www.w3.org/2000/svg"),l.getAttribute("xmlns:xlink")||l.setAttributeNS(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),t.responsive?(l.removeAttribute("width"),l.removeAttribute("height"),l.setAttribute("preserveAspectRatio","xMinYMin meet")):(l.setAttribute("width",a*t.scale),l.setAttribute("height",i*t.scale)),l.setAttribute("viewBox",[t.left||0,t.top||0,a,i].join(" "));for(var p=l.querySelectorAll("foreignObject > *"),h=0;h<p.length;h++)p[h].getAttribute("xmlns")||p[h].setAttributeNS(r,"xmlns","http://www.w3.org/1999/xhtml");u.appendChild(l),s(e,t,o)})},d.svgAsDataUri=function(e,t,n){d.prepareSvg(e,t,function(e){var t="data:image/svg+xml;base64,"+window.btoa(l('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+e));n&&n(t)})},d.svgAsPngUri=function(e,t,n){a(e),t=t||{},t.encoderType=t.encoderType||"image/png",t.encoderOptions=t.encoderOptions||.8;var r=function(e,r,o){var a=document.createElement("canvas"),i=a.getContext("2d");a.width=r,a.height=o,t.canvg?t.canvg(a,e):i.drawImage(e,0,0),t.backgroundColor&&(i.globalCompositeOperation="destination-over",i.fillStyle=t.backgroundColor,i.fillRect(0,0,a.width,a.height));var u;try{u=a.toDataURL(t.encoderType,t.encoderOptions)}catch(e){if("undefined"!==typeof SecurityError&&e instanceof SecurityError||"SecurityError"==e.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw e}n(u)};t.canvg?d.prepareSvg(e,t,r):d.svgAsDataUri(e,t,function(e){var t=new Image;t.onload=function(){r(t,t.width,t.height)},t.onerror=function(){console.error("There was an error loading the data URI as an image on the following SVG\n",window.atob(e.slice(26)),"\n","Open the following link to see browser's diagnosis\n",e)},t.src=e})},d.download=function(e,t){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(f(t),e);else{var n=document.createElement("a");if("download"in n){n.download=e,n.style.display="none",document.body.appendChild(n);try{var r=f(t),o=URL.createObjectURL(r);n.href=o,n.onclick=function(){requestAnimationFrame(function(){URL.revokeObjectURL(o)})}}catch(e){console.warn("This browser does not support object URLs. Falling back to string URL."),n.href=t}n.click(),document.body.removeChild(n)}else window.open(t,"_temp","menubar=no,toolbar=no,status=no")}},d.saveSvg=function(e,t,n){a(e),n=n||{},d.svgAsDataUri(e,n,function(e){d.download(t,e)})},d.saveSvgAsPng=function(e,t,n){a(e),n=n||{},d.svgAsPngUri(e,n,function(e){d.download(t,e)})},void 0!==(r=function(){return d}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.displayName||e.name||"Series"}function s(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=function(r){function u(e){o(this,u);var t=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return t.handleWindowResize=t.handleWindowResize.bind(t),t.getWrappedInstance=t.getWrappedInstance.bind(t),t.saveNode=t.saveNode.bind(t),t.setTestCanvas=t.setTestCanvas.bind(t),t.state={},t}return i(u,r),l(u,[{key:"saveNode",value:function(e){this.node=e}},{key:"setTestCanvas",value:function(e){this.testCanvas=e}},{key:"getRatio",value:function(){if((0,y.isDefined)(this.testCanvas)){var e=this.testCanvas.getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}return 1}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize);var e=this.node,t=e.parentNode.clientWidth;this.setState({width:Math.max(t,n),ratio:this.getRatio()})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"handleWindowResize",value:function(){var e=h.default.findDOMNode(this.node),t=e.parentNode.clientWidth;t>n&&this.setState({width:t})}},{key:"getWrappedInstance",value:function(){return this.node}},{key:"render",value:function(){var n=t?{ref:this.saveNode}:{};return this.state.width?d.default.createElement(e,c({width:this.state.width,ratio:this.state.ratio},this.props,n)):d.default.createElement("div",n,d.default.createElement("canvas",{ref:this.setTestCanvas}))}}]),u}(f.Component);return r.displayName="fitWidth("+u(e)+")",r}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var f=n(1),d=r(f),p=n(55),h=r(p),y=n(0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return e.displayName||e.name||"Series"}function s(e){function t(e){var t=e.parentNode.clientWidth,n=e.parentNode.clientHeight;return{width:(0,y.isDefined)(g)?g:Math.max(t,s),height:(0,y.isDefined)(m)?m:Math.max(n,v)}}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.minWidth,s=void 0===r?100:r,p=n.minHeight,v=void 0===p?100:p,b=n.ratio,g=n.width,m=n.height,w=function(n){function r(e){o(this,r);var t=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.handleWindowResize=t.handleWindowResize.bind(t),t.getWrappedInstance=t.getWrappedInstance.bind(t),t.saveNode=t.saveNode.bind(t),t.setTestCanvas=t.setTestCanvas.bind(t),t.state={},t}return i(r,n),l(r,[{key:"saveNode",value:function(e){this.node=e}},{key:"setTestCanvas",value:function(e){this.testCanvas=e}},{key:"getRatio",value:function(){if((0,y.isDefined)(this.testCanvas)){var e=this.testCanvas.getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}return 1}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize);var e=t(this.node);this.setState(c({},e,{ratio:(0,y.isDefined)(b)?b:this.getRatio()}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"handleWindowResize",value:function(){var e=h.default.findDOMNode(this.node);this.setState(t(e))}},{key:"getWrappedInstance",value:function(){return this.node}},{key:"render",value:function(){var t={ref:this.saveNode};return this.state.width?d.default.createElement(e,c({height:this.state.height,width:this.state.width,ratio:this.state.ratio},this.props,t)):d.default.createElement("div",t,d.default.createElement("canvas",{ref:this.setTestCanvas}))}}]),r}(f.Component);return w.displayName="fitDimensions("+u(e)+")",w}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var f=n(1),d=r(f),p=n(55),h=r(p),y=n(0)},function(e,t,n){"use strict";function r(){return fetch("http://btc.kkpoker.com:8090/frontend/htdocs/includes/ajax.graph.php?timeframe=1d&currency=usd").then(function(e){return e.text()}).then(function(e){return JSON.parse(e).map(function(e){return{date:new Date(+e[0]),open:e[1]*(1+.1*(Math.random()-.5)),high:e[1]*(1+.1*Math.random()),low:e[1]*(1+.1*(Math.random()-1)),close:e[1],volume:e[1]*Math.random()*.5}})})}t.a=r;var o=(n(439),n(24));Object(o.timeParse)("%Y-%m-%d")},function(e,t,n){"use strict";n(85),n(440),n(441)},function(e,t,n){"use strict";var r=n(85),o=Object(r.a)(",");o.parse,o.parseRows,o.format,o.formatRows},function(e,t,n){"use strict";var r=n(85),o=Object(r.a)("\t");o.parse,o.parseRows,o.format,o.formatRows}]);
  //# sourceMappingURL=main.8827bbf9.js.map