victory-tooltip
Advanced tools
Comparing version 34.1.1 to 34.1.3
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryTooltip=e(require("react")):t.VictoryTooltip=e(t.React)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=113)}([function(t,e,n){t.exports=n(93)()},function(t,e,n){var r=n(22),a=n(91),o=n(92),i=n(23),u=n(47),c=n(16),l=Object.prototype.hasOwnProperty,f=o((function(t,e){if(u(e)||i(e))a(e,c(e),t);else for(var n in e)l.call(e,n)&&r(t,n,e[n])}));t.exports=f},function(e,n){e.exports=t},function(t,e,n){var r=n(42),a=n(14),o=n(45),i=n(88),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&o(e[0],e[1],l)&&(r=1);++n<r;)for(var f=e[n],s=i(f),p=-1,y=s.length;++p<y;){var d=s[p],v=t[d];(void 0===v||a(v,u[d])&&!c.call(t,d))&&(t[d]=f[d])}return t}));t.exports=l},function(t,e,n){var r=n(21),a=n(11);t.exports=function(t){if(!a(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(21),a=n(86),o=n(15),i=Function.prototype,u=Object.prototype,c=i.toString,l=u.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=a(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(14);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(5),a=n(18),o=n(73),i=n(35);t.exports=function(t,e){return r(t)?t:a(t,e)?[t]:o(i(t))}},function(t,e,n){var r=n(54),a=n(71),o=n(20),i=n(5),u=n(24);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?i(t)?a(t[0],t[1]):r(t):u(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(12),a=n(8);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(5),a=n(7),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!a(t))||(i.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(t){return t}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(46),a=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var i=t[e];o.call(t,e)&&a(i,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(4),a=n(40);t.exports=function(t){return null!=t&&a(t.length)&&!r(t)}},function(t,e,n){var r=n(80),a=n(81),o=n(18),i=n(8);t.exports=function(t){return o(t)?r(i(t)):a(t)}},function(t,e,n){var r=n(95),a=n(98)((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},function(t,e,n){var r=n(112),a=n(30),o=n(19),i=n(5),u=n(23),c=n(31),l=n(47),f=n(32),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||o(t)))return!t.length;var e=a(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e,n){var r=n(56),a=n(57),o=n(58),i=n(59),u=n(60);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=i,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(61),a=n(15);t.exports=function t(e,n,o,i,u){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:r(e,n,o,i,t,u))}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(11);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(75);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(76).Symbol;t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(77))},function(t,e,n){var r=n(78),a=n(79);t.exports=function(t,e){return null!=t&&a(t,e,r)}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(20),a=n(43),o=n(44);t.exports=function(t,e){return o(a(t,e,r),t+"")}},function(t,e,n){var r=n(87),a=Math.max;t.exports=function(t,e,n){return e=a(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,u=a(o.length-e,0),c=Array(u);++i<u;)c[i]=o[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=o[i];return l[e]=n(c),r(t,this,l)}}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(89);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(53),a=n(5);t.exports=function(t,e,n,o){return null==t?[]:(a(e)||(e=null==e?[]:[e]),a(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},function(t,e,n){var r=n(35),a=0;t.exports=function(t){var e=++a;return r(t)+e}},function(t,e,n){var r=n(103),a=n(41),o=n(104),i=o&&o.isRegExp,u=i?a(i):r;t.exports=u},function(t,e,n){var r=n(106)(n(107));t.exports=r},,function(t,e,n){var r=n(27),a=n(13),o=n(82),i=n(83),u=n(41),c=n(84),l=n(20);t.exports=function(t,e,n){var f=-1;e=r(e.length?e:[l],u(a));var s=o(t,(function(t,n,a){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return i(s,(function(t,e){return c(t,e,n)}))}},function(t,e,n){var r=n(55),a=n(70),o=n(34);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(28),a=n(29);t.exports=function(t,e,n,o){var i=n.length,u=i,c=!o;if(null==t)return!u;for(t=Object(t);i--;){var l=n[i];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<u;){var f=(l=n[i])[0],s=t[f],p=l[1];if(c&&l[2]){if(void 0===s&&!(f in t))return!1}else{var y=new r;if(o)var d=o(s,p,f,t,e,y);if(!(void 0===d?a(p,s,3,o,y):d))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(9),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(9);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(9);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(9);t.exports=function(t,e){var n=this.__data__,a=r(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},function(t,e,n){var r=n(28),a=n(62),o=n(67),i=n(68),u=n(30),c=n(5),l=n(31),f=n(32),s="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,d,v){var h=c(t),g=c(e),b=h?"[object Array]":u(t),m=g?"[object Array]":u(e),x=(b="[object Arguments]"==b?s:b)==s,O=(m="[object Arguments]"==m?s:m)==s,P=b==m;if(P&&l(t)){if(!l(e))return!1;h=!0,x=!1}if(P&&!x)return v||(v=new r),h||f(t)?a(t,e,n,y,d,v):o(t,e,b,n,y,d,v);if(!(1&n)){var A=x&&p.call(t,"__wrapped__"),j=O&&p.call(e,"__wrapped__");if(A||j){var T=A?t.value():t,k=j?e.value():e;return v||(v=new r),d(T,k,n,y,v)}}return!!P&&(v||(v=new r),i(t,e,n,y,d,v))}},function(t,e,n){var r=n(63),a=n(64),o=n(65);t.exports=function(t,e,n,i,u,c){var l=1&n,f=t.length,s=e.length;if(f!=s&&!(l&&s>f))return!1;var p=c.get(t);if(p&&c.get(e))return p==e;var y=-1,d=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++y<f;){var h=t[y],g=e[y];if(i)var b=l?i(g,h,y,e,t,c):i(h,g,y,t,e,c);if(void 0!==b){if(b)continue;d=!1;break}if(v){if(!a(e,(function(t,e){if(!o(v,e)&&(h===t||u(h,t,n,i,c)))return v.push(e)}))){d=!1;break}}else if(h!==g&&!u(h,g,n,i,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},function(t,e,n){var r=n(5);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(66);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(69),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,i,u){var c=1&n,l=r(t),f=l.length;if(f!=r(e).length&&!c)return!1;for(var s=f;s--;){var p=l[s];if(!(c?p in e:a.call(e,p)))return!1}var y=u.get(t);if(y&&u.get(e))return y==e;var d=!0;u.set(t,e),u.set(e,t);for(var v=c;++s<f;){var h=t[p=l[s]],g=e[p];if(o)var b=c?o(g,h,p,e,t,u):o(h,g,p,t,e,u);if(!(void 0===b?h===g||i(h,g,n,o,u):b)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(33),a=n(16);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],i=t[o];e[n]=[o,i,r(i)]}return e}},function(t,e,n){var r=n(29),a=n(72),o=n(38),i=n(18),u=n(33),c=n(34),l=n(8);t.exports=function(t,e){return i(t)&&u(e)?c(l(t),e):function(n){var i=a(n,t);return void 0===i&&i===e?o(n,t):r(e,i,3)}}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){var a=null==t?void 0:r(t,e);return void 0===a?n:a}},function(t,e,n){var r=n(74),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,r,a){e.push(r?a.replace(o,"$1"):n||t)})),e}));t.exports=i},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(36),a=n(27),o=n(5),i=n(7),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(i(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(37),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();t.exports=o},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(12),a=n(19),o=n(5),i=n(39),u=n(40),c=n(8);t.exports=function(t,e,n){for(var l=-1,f=(e=r(e,t)).length,s=!1;++l<f;){var p=c(e[l]);if(!(s=null!=t&&n(t,p)))break;t=t[p]}return s||++l!=f?s:!!(f=null==t?0:t.length)&&u(f)&&i(p,f)&&(o(t)||a(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(17);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(85);t.exports=function(t,e,n){for(var a=-1,o=t.criteria,i=e.criteria,u=o.length,c=n.length;++a<u;){var l=r(o[a],i[a]);if(l)return a>=c?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(t!==e){var n=void 0!==t,a=null===t,o=t==t,i=r(t),u=void 0!==e,c=null===e,l=e==e,f=r(e);if(!c&&!f&&!i&&t>e||i&&u&&l&&!c&&!f||a&&u&&l||!n&&l||!o)return 1;if(!a&&!i&&!f&&t<e||f&&n&&o&&!a&&!i||c&&n&&o||!u&&o||!l)return-1}return 0}},function(t,e,n){var r=n(10)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(90),a=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(22),a=n(46);t.exports=function(t,e,n,o){var i=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var l=e[u],f=o?o(n[l],t[l],l,n,t):void 0;void 0===f&&(f=t[l]),i?a(n,l,f):r(n,l,f)}return n}},function(t,e,n){var r=n(42),a=n(45);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&a(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,i)}return e}))}},function(t,e,n){"use strict";var r=n(94);function a(){}t.exports=function(){function t(t,e,n,a,o,i){if(i!==r){var u=new Error("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");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=a,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(96),a=n(38);t.exports=function(t,e){return r(t,e,(function(e,n){return a(t,n)}))}},function(t,e,n){var r=n(17),a=n(97),o=n(12);t.exports=function(t,e,n){for(var i=-1,u=e.length,c={};++i<u;){var l=e[i],f=r(t,l);n(f,l)&&a(c,o(l,t),f)}return c}},function(t,e,n){var r=n(22),a=n(12),o=n(39),i=n(11),u=n(8);t.exports=function(t,e,n,c){if(!i(t))return t;for(var l=-1,f=(e=a(e,t)).length,s=f-1,p=t;null!=p&&++l<f;){var y=u(e[l]),d=n;if(l!=s){var v=p[y];void 0===(d=c?c(v,y,p):void 0)&&(d=i(v)?v:o(e[l+1])?[]:{})}r(p,y,d),p=p[y]}return t}},function(t,e,n){var r=n(99),a=n(43),o=n(44);t.exports=function(t){return o(a(t,void 0,r),t+"")}},function(t,e,n){var r=n(100);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(101),a=n(102);t.exports=function t(e,n,o,i,u){var c=-1,l=e.length;for(o||(o=a),u||(u=[]);++c<l;){var f=e[c];n>0&&o(f)?n>1?t(f,n-1,o,i,u):r(u,f):i||(u[u.length]=f)}return u}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}},function(t,e,n){var r=n(36),a=n(19),o=n(5),i=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||a(t)||!!(i&&t&&t[i])}},function(t,e,n){var r=n(21),a=n(15);t.exports=function(t){return a(t)&&"[object RegExp]"==r(t)}},function(t,e,n){(function(t){var r=n(37),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=u}).call(this,n(105)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(13),a=n(23),o=n(16);t.exports=function(t){return function(e,n,i){var u=Object(e);if(!a(e)){var c=r(n,3);e=o(e),n=function(t){return c(u[t],t,u)}}var l=t(e,n,i);return l>-1?u[c?e[l]:l]:void 0}}},function(t,e,n){var r=n(108),a=n(13),o=n(109),i=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var c=null==n?0:o(n);return c<0&&(c=i(u+c,0)),r(t,a(e,3),c)}},function(t,e){t.exports=function(t,e,n,r){for(var a=t.length,o=n+(r?1:-1);r?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(110);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(111);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(11),a=n(7),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):i.test(t)?NaN:+t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(48),a=n.n(r),o=n(6),i=n.n(o),u=n(49),c=n.n(u),l=n(3),f=n.n(l),s=n(1),p=n.n(s),y=n(2),d=n.n(y),v=n(0),h=n.n(v),g=n(25),b=n.n(g),m=n(24),x=n.n(m),O=n(4),P=n.n(O);function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function j(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,a=t._x0,o=t._voronoiX,i=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=e(r)?r:n,p=e(u)?u:i,y={x:e(o)?o:s,x0:e(a)?a:n,y:e(l)?l:p,y0:e(c)?c:i};return f()({},y,t)}function T(t){var e=t.padding,n="number"==typeof e?e:0,r="object"==typeof e?e:{};return{top:r.top||n,bottom:r.bottom||n,left:r.left||n,right:r.right||n}}function k(t,e){return P()(t)?t(e):t}function w(t){return"number"==typeof t?t*(Math.PI/180):t}function S(t){var e=T(t),n=e.left,r=e.right,a=e.top,o=e.bottom,i=t.width,u=t.height;return Math.min(i-n-r,u-a-o)/2}function E(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:e(d.a.Children.toArray(r.children))}),!1)};return e(d.a.Children.toArray(t.children))}var C={omit:A,getPoint:j,scalePoint:function(t,e){var n=t.scale,r=t.polar,a=t.horizontal,o=j(e),i=t.origin||{x:0,y:0},u=a?n.y(o.y):n.x(o.x),c=a?n.y(o.y0):n.x(o.x0),l=a?n.x(o.x):n.y(o.y),f=a?n.x(o.x0):n.y(o.y0);return{x:r?l*Math.cos(u)+i.x:u,x0:r?f*Math.cos(c)+i.x:c,y:r?-l*Math.sin(u)+i.y:l,y0:r?-f*Math.sin(c)+i.x:f}},getPadding:T,getStyles:function(t,e){if(!t)return f()({parent:{height:"100%",width:"100%"}},e);var n=t.data,r=t.labels,a=t.parent,o=e&&e.parent||{},i=e&&e.labels||{},u=e&&e.data||{};return{parent:f()({},a,o,{width:"100%",height:"100%"}),labels:f()({},r,i),data:f()({},n,u)}},evaluateProp:k,evaluateStyle:function(t,e){return t&&Object.keys(t).some((function(e){return P()(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=k(t[r],e),n}),{}):t},degreesToRadians:w,radiansToDegrees:function(t){return"number"==typeof t?t/(Math.PI/180):t},getRadius:S,getPolarOrigin:function(t){var e=t.width,n=t.height,r=T(t),a=r.top,o=r.bottom,i=r.left,u=r.right,c=Math.min(e-i-u,n-a-o)/2,l=e/2+i-u,f=n/2+a-o;return{x:l+c>e?c+i-u:l,y:f+c>n?c+a-o:f}},getRange:function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[w(t.startAngle||0),w(t.endAngle||360)]:[t.innerRadius||0,S(t)]}(t,e):function(t,e){var n="x"!==e,r=T(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)},createAccessor:function(t){return P()(t)?t:null==t?function(t){return t}:x()(t)},modifyProps:function(t,e,n){var r=A(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),a=E(t),o=void 0===a?{}:{horizontal:a};return f()(o,t,r,e)},getCurrentAxis:function(t,e){return e?"x"===t?"y":"x":t},reduceChildren:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],i=function(t,u,c){return t.reduce((function(t,r,l){var f=r.type&&r.type.role,s=r.props.name||"".concat(f,"-").concat(u[l]);if(r.props&&r.props.children){var y=p()({},r.props,b()(n,o)),v=r.type&&P()(r.type.getChildren)?r.type.getChildren(y):d.a.Children.toArray(r.props.children).map((function(t){var e=p()({},t.props,b()(y,o));return d.a.cloneElement(t,e)})),h=v.map((function(t,e){return"".concat(s,"-").concat(e)})),g=i(v,h,r);t=a(t,g)}else{var m=e(r,s,c);m&&(t=a(t,m))}return t}),r)},u=t.map((function(t,e){return e}));return i(t,u)},isHorizontal:E};function _(t,e){if(t.polar)return{};var n=function(t,e){e=e||{};var n=t.horizontal,r=t.style.labels||{},a=C.evaluateProp(r.padding,t)||0,o=e._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}(t,e);return{dx:n.x,dy:n.y}}function D(t,e){var n=t.polar,r=C.scalePoint(t,e),a=r.x,o=r.y;if(n){var i=function(t,e){var n=t.style,r=F(t,e),a=n.labels||{},o=C.evaluateProp(a.padding,t)||0,i=C.degreesToRadians(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:a+i.x,y:o+i.y}}return{x:a,y:o}}function L(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||(e.props&&e.props.labelPlacement||r)}function z(t,e,n){return void 0!==(e=e||{}).label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels}function W(t,e){var n=L(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function N(t,e){var n=L(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function F(t,e){var n=C.getPoint(e).x;return C.radiansToDegrees(t.scale.x(n))}var M={getText:z,getPolarTextAnchor:W,getPolarVerticalAnchor:N,getPolarAngle:function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var a,o=void 0!==e?e:F(t,r);return 0===o||180===o?a=90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)},getDegrees:F,getProps:function(t,e){var n=t.scale,r=t.data,a=t.style,o=t.horizontal,i=t.polar,u=t.width,c=t.height,l=r[e],f=F(t,l),s=i?W(t,f):function(t,e){e=e||{};var n=t.style,r=t.horizontal,a=e._y>=0?1:-1,o=n&&n.labels||{};return e.verticalAnchor||o.verticalAnchor?e.verticalAnchor||o.verticalAnchor:r?a>=0?"start":"end":"middle"}(t,l),p=i?N(t,f):function(t,e){var n=(e=e||{})._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.verticalAnchor||r.verticalAnchor?e.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"}(t,l),y=function(t,e){e=e||{};var n=t.style&&t.style.labels||{};return void 0===e.angle?n.angle:e.angle}(t,l),d=z(t,l,e),v=L(t),h=D(t,l),g=h.x,b=h.y,m=_(t,l);return{angle:y,data:r,datum:l,horizontal:o,index:e,polar:i,scale:n,labelPlacement:v,text:d,textAnchor:s,verticalAnchor:p,x:g,y:b,dx:m.dx,dy:m.dy,width:u,height:c,style:a.labels}}},R=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],I={width:350,height:350,padding:50},H={fontFamily:"'Roboto', 'Helvetica Neue', Helvetica, sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:"#455A64",stroke:"transparent",strokeWidth:0},B=p()({textAnchor:"middle"},H),q={area:p()({style:{data:{fill:"#212121"},labels:H}},I),axis:p()({style:{axis:{fill:"transparent",stroke:"#90A4AE",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},B,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#ECEFF1",strokeDasharray:"10, 5",strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"#90A4AE",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},tickLabels:p()({},H,{fill:"#455A64"})}},I),bar:p()({style:{data:{fill:"#455A64",padding:8,strokeWidth:0},labels:H}},I),boxplot:p()({style:{max:{padding:8,stroke:"#455A64",strokeWidth:1},maxLabels:H,median:{padding:8,stroke:"#455A64",strokeWidth:1},medianLabels:H,min:{padding:8,stroke:"#455A64",strokeWidth:1},minLabels:H,q1:{padding:8,fill:"#455A64"},q1Labels:H,q3:{padding:8,fill:"#455A64"},q3Labels:H},boxWidth:20},I),candlestick:p()({style:{data:{stroke:"#455A64"},labels:H},candleColors:{positive:"#ffffff",negative:"#455A64"}},I),chart:I,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:H}},I),group:p()({colorScale:R},I),legend:{colorScale:R,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:H,title:p()({},H,{padding:5})}},line:p()({style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:H}},I),pie:p()({colorScale:R,style:{data:{padding:8,stroke:"#ECEFF1",strokeWidth:1},labels:p()({},H,{padding:20})}},I),scatter:p()({style:{data:{fill:"#455A64",opacity:1,stroke:"transparent",strokeWidth:0},labels:H}},I),stack:p()({colorScale:R},I),tooltip:{style:p()({},H,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},H,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},I)},V=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],G={width:450,height:300,padding:50,colorScale:V},K={fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:"#252525",stroke:"transparent"},$=p()({textAnchor:"middle"},K),U={material:q,grayscale:{area:p()({style:{data:{fill:"#252525"},labels:K}},G),axis:p()({style:{axis:{fill:"transparent",stroke:"#252525",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},$,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:K}},G),bar:p()({style:{data:{fill:"#252525",padding:8,strokeWidth:0},labels:K}},G),boxplot:p()({style:{max:{padding:8,stroke:"#252525",strokeWidth:1},maxLabels:K,median:{padding:8,stroke:"#252525",strokeWidth:1},medianLabels:K,min:{padding:8,stroke:"#252525",strokeWidth:1},minLabels:K,q1:{padding:8,fill:"#969696"},q1Labels:K,q3:{padding:8,fill:"#969696"},q3Labels:K},boxWidth:20},G),candlestick:p()({style:{data:{stroke:"#252525",strokeWidth:1},labels:K},candleColors:{positive:"#ffffff",negative:"#252525"}},G),chart:G,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:K}},G),group:p()({colorScale:V},G),legend:{colorScale:V,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:K,title:p()({},K,{padding:5})}},line:p()({style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:K}},G),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:p()({},K,{padding:20})},colorScale:V,width:400,height:400,padding:50},scatter:p()({style:{data:{fill:"#252525",stroke:"transparent",strokeWidth:0},labels:K}},G),stack:p()({colorScale:V},G),tooltip:{style:p()({},K,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},K,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},G)}};function Z(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Y={"American Typewriter":2.09,Baskerville:2.51,Georgia:2.27,"Hoefler Text":2.39,Palatino:2.26,"Times New Roman":2.48,Arial:2.26,"Gill Sans":2.47,"Gill Sans 300":2.58,"Helvetica Neue":2.24,"Lucida Grande":2.05,Tahoma:2.25,"Trebuchet MS":2.2,Verdana:1.96,"Courier New":1.67,cursive:1.84,fantasy:2.09,monospace:1.81,serif:2.04,"sans-serif":1.89},Q={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},X={em:1,ex:.5},J=2.1675,tt=1.25,et=1.05,nt=1.15,rt=.2,at={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ot=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},it=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},ut=function(t,e){var n=t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/);return Q.hasOwnProperty(n)?r*Q[n]:X.hasOwnProperty(n)?(e?r*e:r*at.fontSize)*X[n]:r},ct=function(t,e){var n,r,a=Array.isArray(t)?t[e]:t,o=f()({},a,at);return p()({},o,{characterConstant:o.characterConstant||(n=o.fontFamily,r=n.split(",")[0].replace(/'|"/g,""),Y[r]||J),letterSpacing:ut(o.letterSpacing,o.fontSize),fontSize:"number"==typeof o.fontSize?o.fontSize:ut(String(o.fontSize))})},lt=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:ot(t).reduce((function(t,n,r){var a=ct(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?a.fontSize*nt:a.fontSize,i=0===r?0:a.fontSize*rt;return t+a.lineHeight*(o+i)}),0)}(t,e),a=function(t,e){if(void 0===t||""===t||null===t)return 0;var n=ot(t).map((function(t,n){var r=t.toString().length,a=ct(e,n);return r*a.fontSize/a.characterConstant+a.letterSpacing*Math.max(r-1,0)}));return Math.max.apply(Math,Z(n))}(t,e),o=n?it(a,r,n):a,i=n?it(r,a,n):r;return{width:o*tt,height:i*et}},ft=function(t){0},st=d.a.createContext({});st.displayName="PortalContext";var pt=st;function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var ht=function(t){function e(){return yt(this,e),vt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(ft("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place"),this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},a=f()(r,n,C.omit(this.props,["children","groupComponent"])),o=t&&d.a.cloneElement(t,a);return this.renderPortal(o)}}])&&dt(n.prototype,r),a&&dt(n,a),e}(d.a.Component);Object.defineProperty(ht,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(ht,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(ht,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:h.a.node,groupComponent:h.a.element}}),Object.defineProperty(ht,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(ht,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:pt});var gt=n(50),bt=n.n(gt),mt=n(51),xt=n.n(mt);var Ot=function(t){var e=function(e,n,r,a){var o=n[r];if(null==o)return e?new Error("Required `".concat(r,"` was not specified in `").concat(a,"`.")):null;for(var i=arguments.length,u=new Array(i>4?i-4:0),c=4;c<i;c++)u[c-4]=arguments[c];return t.apply(void 0,[n,r,a].concat(u))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},Pt=function(){return null},At=function(){},jt=function(t){return void 0===t?At:null===t?Pt:t.constructor},Tt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},kt={deprecated:function(t,e){return function(n,r,a){var o=n[r];return null!=o&&ft('"'.concat(r,'" property of "').concat(a,'" has been deprecated ').concat(e)),h.a.checkPropTypes(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},r,t),n,r,a)}},allOfType:function(t){return Ot((function(e,n,r){for(var a=arguments.length,o=new Array(a>3?a-3:0),i=3;i<a;i++)o[i-3]=arguments[i];return t.reduce((function(t,a){return t||a.apply(void 0,[e,n,r].concat(o))}),void 0)}))},nonNegative:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`".concat(e,"` in `").concat(n,"` must be a non-negative number."))})),integer:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!=0)return new Error("`".concat(e,"` in `").concat(n,"` must be an integer."))})),greaterThanZero:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`".concat(e,"` in `").concat(n,"` must be a number greater than zero."))})),domain:Ot((function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(e,"` in `").concat(n,"` must be an array of two unique numeric values."))})),scale:Ot((function(t,e,n){var r,a=["linear","time","log","sqrt"],o=t[e];if(r=o,!(P()(r)?P()(r.copy)&&P()(r.domain)&&P()(r.range):"string"==typeof r&&-1!==a.indexOf(r)))return new Error("`".concat(e,"` in `").concat(n,"` must be a d3 scale."))})),homogeneousArray:Ot((function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`".concat(e,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var a=jt(r[0]),o=xt()(r,(function(t){return a!==jt(t)}));if(o){var i=Tt(r[0]),u=Tt(o);return new Error("Expected `".concat(e,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:Ot((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),regExp:Ot((function(t,e,n){if(t[e]&&!bt()(t[e]))return new Error("`".concat(e,"` in `").concat(n,"` must be a regular expression."))}))},wt=n(26),St=n.n(wt),Et=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Et(e)].join(" ")}),Et(t)).trim();if(null==t||"string"==typeof t)return t;var a=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];a.push("".concat(o,"(").concat(i,")"))}return a.join(" ").trim()},Ct={toTransformString:Et,getColorScale:function(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}},_t=function(t){return d.a.createElement("tspan",t)};var Dt=function(t){var e=t.children,n=t.title,r=t.desc,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["children","title","desc"]);return d.a.createElement("text",a,n&&d.a.createElement("title",null,n),r&&d.a.createElement("desc",null,r),e)};Dt.propTypes={children:h.a.node,desc:h.a.string,title:h.a.string};var Lt=Dt;function zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wt={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Nt=function(t,e){return t.datum?C.scalePoint(t,t.datum)[e]:0},Ft=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Wt.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?(ft("fontSize should be expressed as a number of pixels"),Wt.fontSize):n}return Wt.fontSize},Mt=function(t,e){return C.evaluateProp(t[e],t)},Rt=function(t,e,n){return Array.isArray(t)?St()(t)?n:e:t},It=function(t){var e=t.inline,n=t.className,r=t.title,a=t.events,o=t.direction,i=t.text,u=t.style,c=Mt(t,"lineHeight"),l=t.textAnchor?C.evaluateProp(t.textAnchor,t):"start",f=t.dx?C.evaluateProp(t.dx,t):0,s=function(t,e){var n=Array.isArray(t.style)?t.style[0]:t.style;e=Rt(e,e[0],1);var r=n.fontSize,a=t.dy?C.evaluateProp(t.dy,t):0,o=t.text.length,i=Mt(t,"capHeight"),u=n.verticalAnchor||t.verticalAnchor;switch(u?C.evaluateProp(u,t):"middle"){case"end":return a+(i/2+(.5-o)*e)*r;case"middle":return a+(i/2+(.5-o/2)*e)*r;default:return a+(i/2+e/2)*r}}(t,c),p=function(t){var e=t.x,n=t.y,r=t.polar,a=t.style,o=r?M.getPolarAngle(t):0,i=void 0===a.angle?t.angle:a.angle,u=void 0===i?o:i,c=t.transform||a.transform,l=c&&C.evaluateProp(c,t),f=u&&{rotate:[u,e,n]};return l||u?Ct.toTransformString(l,f):void 0}(t),y=void 0!==t.x?t.x:Nt(t,"x"),v=void 0!==t.y?t.y:Nt(t,"y"),h=i.map((function(n,r){var a=u[r]||u[0],o=u[r-1]||u[0],i=(a.fontSize+o.fontSize)/2,s=Rt(c,(c[r]+(c[r-1]||c[0]))/2,1),p={key:"".concat(t.id,"-key-").concat(r),x:e?void 0:t.x,dx:f,dy:r&&!e?s*i:void 0,textAnchor:a.textAnchor||l,style:a,children:n};return d.a.cloneElement(t.tspanComponent,p)}));return d.a.cloneElement(t.textComponent,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){zt(t,e,n[e])}))}return t}({},a,{direction:o,dx:f,dy:s,x:y,y:v,transform:p,className:n,title:r,desc:C.evaluateProp(t.desc,t),tabIndex:C.evaluateProp(t.tabIndex,t),id:t.id}),h)},Ht=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return C.evaluateProp(t,e)}));var n=C.evaluateProp(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){var n=function(t){t=t?f()({},t,Wt):Wt;var n=C.evaluateStyle(t,e);return p()({},n,{fontSize:Ft(n)})};return Array.isArray(t)&&!St()(t)?t.map((function(t){return n(t)})):[n(t)]}(t.style,p()({},t,{text:e}));return p()({},t,{style:n,text:e})},Bt=function(t){if(null===(t=Ht(t)).text||void 0===t.text)return null;var e=It(t);return t.renderInPortal?d.a.createElement(ht,null,e):e};Bt.displayName="VictoryLabel",Bt.role="label",Bt.defaultStyles=Wt,Bt.propTypes={active:h.a.bool,angle:h.a.oneOfType([h.a.string,h.a.number]),capHeight:h.a.oneOfType([h.a.string,kt.nonNegative,h.a.func]),className:h.a.string,data:h.a.array,datum:h.a.any,desc:h.a.oneOfType([h.a.string,h.a.func]),direction:h.a.oneOf(["rtl","ltr","inherit"]),dx:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),inline:h.a.bool,labelPlacement:h.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:h.a.oneOfType([h.a.string,kt.nonNegative,h.a.func,h.a.array]),origin:h.a.shape({x:kt.nonNegative,y:kt.nonNegative}),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:kt.scale,y:kt.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),tabIndex:h.a.oneOfType([h.a.number,h.a.func]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),textAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end","inherit"]),h.a.func]),textComponent:h.a.element,title:h.a.string,transform:h.a.oneOfType([h.a.string,h.a.object,h.a.func]),tspanComponent:h.a.element,verticalAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end"]),h.a.func]),x:h.a.oneOfType([h.a.number,h.a.string]),y:h.a.oneOfType([h.a.number,h.a.string])},Bt.defaultProps={direction:"inherit",textComponent:d.a.createElement(Lt,null),tspanComponent:d.a.createElement(_t,null),capHeight:.71,lineHeight:1};var qt=Bt,Vt={categories:h.a.oneOfType([h.a.arrayOf(h.a.string),h.a.shape({x:h.a.arrayOf(h.a.string),y:h.a.arrayOf(h.a.string)})]),data:h.a.oneOfType([h.a.array,h.a.object]),dataComponent:h.a.element,labelComponent:h.a.element,labels:h.a.oneOfType([h.a.func,h.a.array]),samples:kt.nonNegative,sortKey:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),sortOrder:h.a.oneOf(["ascending","descending"]),style:h.a.shape({parent:h.a.object,data:h.a.object,labels:h.a.object}),x:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y0:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)])},Gt={animate:h.a.oneOfType([h.a.bool,h.a.object]),containerComponent:h.a.element,domain:h.a.oneOfType([kt.domain,h.a.shape({x:kt.domain,y:kt.domain})]),maxDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),minDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),domainPadding:h.a.oneOfType([h.a.shape({x:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)]),y:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)])}),h.a.number,h.a.arrayOf(h.a.number)]),eventKey:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string]),events:h.a.arrayOf(h.a.shape({target:h.a.oneOf(["data","labels","parent"]),eventKey:h.a.oneOfType([h.a.array,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string]),eventHandlers:h.a.object})),externalEventMutations:h.a.arrayOf(h.a.shape({callback:h.a.function,childName:h.a.oneOfType([h.a.string,h.a.array]),eventKey:h.a.oneOfType([h.a.array,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string]),mutation:h.a.function,target:h.a.oneOfType([h.a.string,h.a.array])})),groupComponent:h.a.element,height:kt.nonNegative,name:h.a.string,origin:h.a.shape({x:h.a.number,y:h.a.number}),padding:h.a.oneOfType([h.a.number,h.a.shape({top:h.a.number,bottom:h.a.number,left:h.a.number,right:h.a.number})]),polar:h.a.bool,range:h.a.oneOfType([kt.domain,h.a.shape({x:kt.domain,y:kt.domain})]),scale:h.a.oneOfType([kt.scale,h.a.shape({x:kt.scale,y:kt.scale})]),sharedEvents:h.a.shape({events:h.a.array,getEventState:h.a.func}),singleQuadrantDomainPadding:h.a.oneOfType([h.a.bool,h.a.shape({x:h.a.oneOfType([h.a.bool]),y:h.a.oneOfType([h.a.bool])})]),standalone:h.a.bool,theme:h.a.object,width:kt.nonNegative},Kt={active:h.a.bool,className:h.a.string,clipPath:h.a.string,data:h.a.oneOfType([h.a.array,h.a.object]),desc:h.a.oneOfType([h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),origin:h.a.shape({x:h.a.number,y:h.a.number}),polar:h.a.bool,role:h.a.string,scale:h.a.oneOfType([kt.scale,h.a.shape({x:kt.scale,y:kt.scale})]),shapeRendering:h.a.string,style:h.a.object,tabIndex:h.a.oneOfType([h.a.number,h.a.func]),transform:h.a.string};var $t=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["desc"]);return e?d.a.createElement("path",n,d.a.createElement("desc",null,e)):d.a.createElement("path",n)};function Ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Zt(t,e,n[e])}))}return t}function Zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yt=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,u=t.center,c="left"===r?1:-1,l=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(u)&&u.x,p=i()(u)&&u.y,y=s-c*(a/2),d=s+c*(a/2),v=p+o/2,h=p-o/2,g=c*(l-y)>0?0:t.pointerLength,b="left"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(y,", ").concat(p-e/2,"\n L ").concat(g?l:y,", ").concat(g?f:p+e/2,"\n L ").concat(y,", ").concat(p+e/2,"\n L ").concat(y,", ").concat(v-n,"\n A ").concat(m," ").concat(y+c*n,", ").concat(v,"\n L ").concat(d-c*n,", ").concat(v,"\n A ").concat(m," ").concat(d,", ").concat(v-n,"\n L ").concat(d,", ").concat(h+n,"\n A ").concat(m," ").concat(d-c*n,", ").concat(h,"\n L ").concat(y+c*n,", ").concat(h,"\n A ").concat(m," ").concat(y,", ").concat(h+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,u=t.center,c="bottom"===r?1:-1,l=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(u)&&u.x,p=i()(u)&&u.y,y=p+c*(o/2),d=p-c*(o/2),v=s+a/2,h=s-a/2,g=c*(f-y)<0?0:t.pointerLength,b="bottom"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(s-e/2,", ").concat(y,"\n L ").concat(g?l:s+e/2,", ").concat(g?f:y,"\n L ").concat(s+e/2,", ").concat(y,"\n L ").concat(v-n,", ").concat(y,"\n A ").concat(m," ").concat(v,", ").concat(y-c*n,"\n L ").concat(v,", ").concat(d+c*n,"\n A ").concat(m," ").concat(v-n,", ").concat(d,"\n L ").concat(h+n,", ").concat(d,"\n A ").concat(m," ").concat(h,", ").concat(d+c*n,"\n L ").concat(h,", ").concat(y-c*n,"\n A ").concat(m," ").concat(h+n,", ").concat(y,"\n z")}(t)},Qt=function(t){return d.a.cloneElement(t.pathComponent,Ut({},t.events,{style:C.evaluateStyle(t.style,t),d:Yt(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};Qt.propTypes=Ut({},{baseProps:Gt,dataProps:Vt,primitiveProps:Kt}.primitiveProps,{center:h.a.shape({x:h.a.number,y:h.a.number}),cornerRadius:h.a.number,datum:h.a.object,dx:h.a.number,dy:h.a.number,height:h.a.number,orientation:h.a.oneOf(["top","bottom","left","right"]),pathComponent:h.a.element,pointerLength:h.a.number,pointerWidth:h.a.number,width:h.a.number,x:h.a.number,y:h.a.number}),Qt.defaultProps={pathComponent:d.a.createElement($t,null),role:"presentation",shapeRendering:"auto"};var Xt=Qt;function Jt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var ne={cornerRadius:5,pointerLength:10,pointerWidth:10},re=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ee(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).id=void 0===t.id?c()("tooltip-"):t.id,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var r=n?"right":"top",a=n?"left":"bottom";return e&&e.y<0?a:r}},{key:"getPolarOrientation",value:function(t,e){var n=M.getDegrees(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||U.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return f()({},t,n)})):f()({},t.style,n),a=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?f()({},t.flyoutStyle,a):a,i=Array.isArray(r)?r.map((function(e){return C.evaluateStyle(e,t)})):C.evaluateStyle(r,t);return{style:i,flyoutStyle:C.evaluateStyle(o,p()({},t,{style:i}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.horizontal,n=t.pointerLength,r=t.pointerWidth,a=t.cornerRadius,o=t.centerOffset,u=t.dx,c=t.dy,l=C.evaluateProp(t.active,t),f=C.evaluateProp(t.text,p()({},t,{active:l})),s=this.getStyles(p()({},t,{active:l,text:f})),y=s.style,d=s.flyoutStyle,v=C.evaluateProp(t.orientation,p()({},t,{active:l,text:f,style:y,flyoutStyle:d}))||this.getDefaultOrientation(t),h=lt(f,y),g=this.getDimensions(p()({},t,{style:y,flyoutStyle:d,active:l,text:f,orientation:v}),h),b=g.flyoutHeight,m=g.flyoutWidth,x=p()({},t,{active:l,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m}),O=i()(o)&&void 0!==o.x?C.evaluateProp(o.x,x):0,P=i()(o)&&void 0!==o.y?C.evaluateProp(o.y,x):0,A=d&&d.padding||0,j=e?A:0,T=e?0:A;return p()({},t,{active:l,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m,centerOffset:{x:O,y:P},dx:void 0!==u?C.evaluateProp(u,x):j,dy:void 0!==c?C.evaluateProp(c,x):T,cornerRadius:C.evaluateProp(a,x),pointerLength:C.evaluateProp(n,x),pointerWidth:C.evaluateProp(r,x)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,a={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:lt(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,a=t.datum;if(!e||!n||"vertical"===n)return 0;var o,i=M.getDegrees(t,a);return 0===i||180===i?o="top"===r&&180===i?270:90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,a=t.y,o=n.width,i=n.height,u=[0,e.width],c=[0,e.height],l=[r-o/2,r+o/2],f=[a-i/2,a+i/2],s=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],p=[f[0]<c[0]?c[0]-f[0]:0,f[1]>c[1]?f[1]-c[1]:0];return{x:Math.round(r+s[0]-s[1]),y:Math.round(a+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,a=t.dx,o=t.dy,u=t.pointerLength,c=t.orientation,l=t.constrainToVisibleArea,f=t.centerOffset,s=e.height,p=e.width,y="left"===c?-1:1,d="bottom"===c?-1:1,v={x:"left"===c||"right"===c?n+y*(u+p/2+y*a):n+a,y:"top"===c||"bottom"===c?r-d*(u+s/2-d*o):r+o},h=i()(t.center)&&void 0!==t.center.x?t.center.x:v.x,g=i()(t.center)&&void 0!==t.center.y?t.center.y:v.y,b={x:h+f.x,y:g+f.y};return l?this.constrainTooltip(b,t,e):b}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,Jt(e).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,a,o,i=t.orientation,u=t.pointerLength,c=t.pointerWidth,l=t.style,f=t.flyoutHeight,s=t.flyoutWidth,p=this.getLabelPadding(l),y=C.evaluateProp(t.cornerRadius,t);return{flyoutHeight:f?C.evaluateProp(f,t):(a=e.height+p,o="top"===i||"bottom"===i?2*y:2*y+c,Math.max(o,a)+p/2),flyoutWidth:s?C.evaluateProp(s,t):(n=e.width+p,r="left"===i||"right"===i?2*y+u:2*y,Math.max(r,n)+p)}}},{key:"getLabelProps",value:function(t,e){var n,r=e.flyoutCenter,a=e.style,o=e.labelSize,i=e.dy,u=e.dx,c=t.text,l=t.datum,s=t.activePoints,p=t.labelComponent,y=t.index,d=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle";return f()({},p.props,{key:"".concat(this.id,"-label-").concat(y),text:c,datum:l,activePoints:s,textAnchor:d,dy:i,dx:u,style:a,x:d&&"middle"!==d?(n="end"===d?-1:1,r.x-n*(o.width/2)):r.x,y:r.y,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,u=e.x+n.width/2,c=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:u<t.x?t.x-u:-1},{side:"left",val:i>t.x?i-t.x:-1}];return a()(c,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,a=e.flyoutCenter,o=t.x,i=t.y,u=t.dx,c=t.dy,l=t.datum,s=t.activePoints,p=t.index,y=t.pointerLength,d=t.pointerWidth,v=t.cornerRadius,h=t.events,g=t.flyoutComponent,b=C.evaluateProp(t.pointerOrientation,t);return f()({},g.props,{x:o,y:i,dx:u,dy:c,datum:l,activePoints:s,index:p,pointerLength:y,pointerWidth:d,cornerRadius:v,events:h,orientation:b||this.getPointerOrientation({x:o,y:i},a,n),key:"".concat(this.id,"-tooltip-").concat(p),width:n.width,height:n.height,style:r,center:a})}},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,r=e.labelComponent,a=e.groupComponent,o=e.active,i=e.renderInPortal;if(!o)return i?d.a.createElement(ht,null,null):null;var u=this.getCalculatedValues(e),c=[d.a.cloneElement(n,this.getFlyoutProps(e,u)),d.a.cloneElement(r,this.getLabelProps(e,u))],l=d.a.cloneElement(a,{role:"presentation",transform:u.transform},c);return i?d.a.createElement(ht,null,l):l}},{key:"render",value:function(){var t=C.modifyProps(this.props,ne,"tooltip");return this.renderTooltip(t)}}])&&te(n.prototype,r),o&&te(n,o),e}(d.a.Component);Object.defineProperty(re,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryTooltip"}),Object.defineProperty(re,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{activateData:h.a.bool,active:h.a.oneOfType([h.a.bool,h.a.func]),activePoints:h.a.array,angle:h.a.number,center:h.a.shape({x:kt.nonNegative,y:kt.nonNegative}),centerOffset:h.a.shape({x:h.a.oneOfType([h.a.number,h.a.func]),y:h.a.oneOfType([h.a.number,h.a.func])}),constrainToVisibleArea:h.a.bool,cornerRadius:h.a.oneOfType([kt.nonNegative,h.a.func]),data:h.a.array,datum:h.a.object,dx:h.a.oneOfType([h.a.number,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.func]),events:h.a.object,flyoutComponent:h.a.element,flyoutHeight:h.a.oneOfType([kt.nonNegative,h.a.func]),flyoutStyle:h.a.object,flyoutWidth:h.a.oneOfType([kt.nonNegative,h.a.func]),groupComponent:h.a.element,height:h.a.number,horizontal:h.a.bool,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),labelComponent:h.a.element,orientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerLength:h.a.oneOfType([kt.nonNegative,h.a.func]),pointerOrientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerWidth:h.a.oneOfType([kt.nonNegative,h.a.func]),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:kt.scale,y:kt.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),theme:h.a.object,width:h.a.number,x:h.a.number,y:h.a.number}}),Object.defineProperty(re,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{active:!1,renderInPortal:!0,labelComponent:d.a.createElement(qt,null),flyoutComponent:d.a.createElement(Xt,null),groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(re,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){return[{target:"data",eventHandlers:{onMouseOver:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onTouchStart:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onMouseOut:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]},onTouchEnd:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]}}}]}}),n.d(e,"VictoryTooltip",(function(){return re})),n.d(e,"Flyout",(function(){return Xt}))}])})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryTooltip=e(require("react")):t.VictoryTooltip=e(t.React)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=113)}([function(t,e,n){t.exports=n(93)()},function(t,e,n){var r=n(22),a=n(91),o=n(92),i=n(23),u=n(47),c=n(16),l=Object.prototype.hasOwnProperty,f=o((function(t,e){if(u(e)||i(e))a(e,c(e),t);else for(var n in e)l.call(e,n)&&r(t,n,e[n])}));t.exports=f},function(e,n){e.exports=t},function(t,e,n){var r=n(42),a=n(14),o=n(45),i=n(88),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&o(e[0],e[1],l)&&(r=1);++n<r;)for(var f=e[n],s=i(f),p=-1,y=s.length;++p<y;){var d=s[p],v=t[d];(void 0===v||a(v,u[d])&&!c.call(t,d))&&(t[d]=f[d])}return t}));t.exports=l},function(t,e,n){var r=n(21),a=n(11);t.exports=function(t){if(!a(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(21),a=n(86),o=n(15),i=Function.prototype,u=Object.prototype,c=i.toString,l=u.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=a(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(14);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(5),a=n(18),o=n(73),i=n(35);t.exports=function(t,e){return r(t)?t:a(t,e)?[t]:o(i(t))}},function(t,e,n){var r=n(54),a=n(71),o=n(20),i=n(5),u=n(24);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?i(t)?a(t[0],t[1]):r(t):u(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(12),a=n(8);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(5),a=n(7),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!a(t))||(i.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(t){return t}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(46),a=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var i=t[e];o.call(t,e)&&a(i,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(4),a=n(40);t.exports=function(t){return null!=t&&a(t.length)&&!r(t)}},function(t,e,n){var r=n(80),a=n(81),o=n(18),i=n(8);t.exports=function(t){return o(t)?r(i(t)):a(t)}},function(t,e,n){var r=n(95),a=n(98)((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},function(t,e,n){var r=n(112),a=n(30),o=n(19),i=n(5),u=n(23),c=n(31),l=n(47),f=n(32),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||o(t)))return!t.length;var e=a(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e,n){var r=n(56),a=n(57),o=n(58),i=n(59),u=n(60);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=i,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(61),a=n(15);t.exports=function t(e,n,o,i,u){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:r(e,n,o,i,t,u))}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(11);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(75);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(76).Symbol;t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(77))},function(t,e,n){var r=n(78),a=n(79);t.exports=function(t,e){return null!=t&&a(t,e,r)}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(20),a=n(43),o=n(44);t.exports=function(t,e){return o(a(t,e,r),t+"")}},function(t,e,n){var r=n(87),a=Math.max;t.exports=function(t,e,n){return e=a(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,u=a(o.length-e,0),c=Array(u);++i<u;)c[i]=o[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=o[i];return l[e]=n(c),r(t,this,l)}}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(89);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(53),a=n(5);t.exports=function(t,e,n,o){return null==t?[]:(a(e)||(e=null==e?[]:[e]),a(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},function(t,e,n){var r=n(35),a=0;t.exports=function(t){var e=++a;return r(t)+e}},function(t,e,n){var r=n(103),a=n(41),o=n(104),i=o&&o.isRegExp,u=i?a(i):r;t.exports=u},function(t,e,n){var r=n(106)(n(107));t.exports=r},,function(t,e,n){var r=n(27),a=n(13),o=n(82),i=n(83),u=n(41),c=n(84),l=n(20);t.exports=function(t,e,n){var f=-1;e=r(e.length?e:[l],u(a));var s=o(t,(function(t,n,a){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return i(s,(function(t,e){return c(t,e,n)}))}},function(t,e,n){var r=n(55),a=n(70),o=n(34);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(28),a=n(29);t.exports=function(t,e,n,o){var i=n.length,u=i,c=!o;if(null==t)return!u;for(t=Object(t);i--;){var l=n[i];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<u;){var f=(l=n[i])[0],s=t[f],p=l[1];if(c&&l[2]){if(void 0===s&&!(f in t))return!1}else{var y=new r;if(o)var d=o(s,p,f,t,e,y);if(!(void 0===d?a(p,s,3,o,y):d))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(9),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(9);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(9);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(9);t.exports=function(t,e){var n=this.__data__,a=r(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},function(t,e,n){var r=n(28),a=n(62),o=n(67),i=n(68),u=n(30),c=n(5),l=n(31),f=n(32),s="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,d,v){var h=c(t),g=c(e),b=h?"[object Array]":u(t),m=g?"[object Array]":u(e),x=(b="[object Arguments]"==b?s:b)==s,O=(m="[object Arguments]"==m?s:m)==s,P=b==m;if(P&&l(t)){if(!l(e))return!1;h=!0,x=!1}if(P&&!x)return v||(v=new r),h||f(t)?a(t,e,n,y,d,v):o(t,e,b,n,y,d,v);if(!(1&n)){var A=x&&p.call(t,"__wrapped__"),j=O&&p.call(e,"__wrapped__");if(A||j){var T=A?t.value():t,k=j?e.value():e;return v||(v=new r),d(T,k,n,y,v)}}return!!P&&(v||(v=new r),i(t,e,n,y,d,v))}},function(t,e,n){var r=n(63),a=n(64),o=n(65);t.exports=function(t,e,n,i,u,c){var l=1&n,f=t.length,s=e.length;if(f!=s&&!(l&&s>f))return!1;var p=c.get(t);if(p&&c.get(e))return p==e;var y=-1,d=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++y<f;){var h=t[y],g=e[y];if(i)var b=l?i(g,h,y,e,t,c):i(h,g,y,t,e,c);if(void 0!==b){if(b)continue;d=!1;break}if(v){if(!a(e,(function(t,e){if(!o(v,e)&&(h===t||u(h,t,n,i,c)))return v.push(e)}))){d=!1;break}}else if(h!==g&&!u(h,g,n,i,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},function(t,e,n){var r=n(5);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(66);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(69),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,i,u){var c=1&n,l=r(t),f=l.length;if(f!=r(e).length&&!c)return!1;for(var s=f;s--;){var p=l[s];if(!(c?p in e:a.call(e,p)))return!1}var y=u.get(t);if(y&&u.get(e))return y==e;var d=!0;u.set(t,e),u.set(e,t);for(var v=c;++s<f;){var h=t[p=l[s]],g=e[p];if(o)var b=c?o(g,h,p,e,t,u):o(h,g,p,t,e,u);if(!(void 0===b?h===g||i(h,g,n,o,u):b)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(33),a=n(16);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],i=t[o];e[n]=[o,i,r(i)]}return e}},function(t,e,n){var r=n(29),a=n(72),o=n(38),i=n(18),u=n(33),c=n(34),l=n(8);t.exports=function(t,e){return i(t)&&u(e)?c(l(t),e):function(n){var i=a(n,t);return void 0===i&&i===e?o(n,t):r(e,i,3)}}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){var a=null==t?void 0:r(t,e);return void 0===a?n:a}},function(t,e,n){var r=n(74),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,r,a){e.push(r?a.replace(o,"$1"):n||t)})),e}));t.exports=i},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(36),a=n(27),o=n(5),i=n(7),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(i(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(37),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();t.exports=o},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(12),a=n(19),o=n(5),i=n(39),u=n(40),c=n(8);t.exports=function(t,e,n){for(var l=-1,f=(e=r(e,t)).length,s=!1;++l<f;){var p=c(e[l]);if(!(s=null!=t&&n(t,p)))break;t=t[p]}return s||++l!=f?s:!!(f=null==t?0:t.length)&&u(f)&&i(p,f)&&(o(t)||a(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(17);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(85);t.exports=function(t,e,n){for(var a=-1,o=t.criteria,i=e.criteria,u=o.length,c=n.length;++a<u;){var l=r(o[a],i[a]);if(l)return a>=c?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(t!==e){var n=void 0!==t,a=null===t,o=t==t,i=r(t),u=void 0!==e,c=null===e,l=e==e,f=r(e);if(!c&&!f&&!i&&t>e||i&&u&&l&&!c&&!f||a&&u&&l||!n&&l||!o)return 1;if(!a&&!i&&!f&&t<e||f&&n&&o&&!a&&!i||c&&n&&o||!u&&o||!l)return-1}return 0}},function(t,e,n){var r=n(10)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(90),a=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(22),a=n(46);t.exports=function(t,e,n,o){var i=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var l=e[u],f=o?o(n[l],t[l],l,n,t):void 0;void 0===f&&(f=t[l]),i?a(n,l,f):r(n,l,f)}return n}},function(t,e,n){var r=n(42),a=n(45);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&a(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,i)}return e}))}},function(t,e,n){"use strict";var r=n(94);function a(){}t.exports=function(){function t(t,e,n,a,o,i){if(i!==r){var u=new Error("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");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=a,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(96),a=n(38);t.exports=function(t,e){return r(t,e,(function(e,n){return a(t,n)}))}},function(t,e,n){var r=n(17),a=n(97),o=n(12);t.exports=function(t,e,n){for(var i=-1,u=e.length,c={};++i<u;){var l=e[i],f=r(t,l);n(f,l)&&a(c,o(l,t),f)}return c}},function(t,e,n){var r=n(22),a=n(12),o=n(39),i=n(11),u=n(8);t.exports=function(t,e,n,c){if(!i(t))return t;for(var l=-1,f=(e=a(e,t)).length,s=f-1,p=t;null!=p&&++l<f;){var y=u(e[l]),d=n;if(l!=s){var v=p[y];void 0===(d=c?c(v,y,p):void 0)&&(d=i(v)?v:o(e[l+1])?[]:{})}r(p,y,d),p=p[y]}return t}},function(t,e,n){var r=n(99),a=n(43),o=n(44);t.exports=function(t){return o(a(t,void 0,r),t+"")}},function(t,e,n){var r=n(100);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(101),a=n(102);t.exports=function t(e,n,o,i,u){var c=-1,l=e.length;for(o||(o=a),u||(u=[]);++c<l;){var f=e[c];n>0&&o(f)?n>1?t(f,n-1,o,i,u):r(u,f):i||(u[u.length]=f)}return u}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}},function(t,e,n){var r=n(36),a=n(19),o=n(5),i=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||a(t)||!!(i&&t&&t[i])}},function(t,e,n){var r=n(21),a=n(15);t.exports=function(t){return a(t)&&"[object RegExp]"==r(t)}},function(t,e,n){(function(t){var r=n(37),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=u}).call(this,n(105)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(13),a=n(23),o=n(16);t.exports=function(t){return function(e,n,i){var u=Object(e);if(!a(e)){var c=r(n,3);e=o(e),n=function(t){return c(u[t],t,u)}}var l=t(e,n,i);return l>-1?u[c?e[l]:l]:void 0}}},function(t,e,n){var r=n(108),a=n(13),o=n(109),i=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var c=null==n?0:o(n);return c<0&&(c=i(u+c,0)),r(t,a(e,3),c)}},function(t,e){t.exports=function(t,e,n,r){for(var a=t.length,o=n+(r?1:-1);r?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(110);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(111);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(11),a=n(7),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):i.test(t)?NaN:+t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(48),a=n.n(r),o=n(6),i=n.n(o),u=n(49),c=n.n(u),l=n(3),f=n.n(l),s=n(1),p=n.n(s),y=n(2),d=n.n(y),v=n(0),h=n.n(v),g=n(25),b=n.n(g),m=n(24),x=n.n(m),O=n(4),P=n.n(O);function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function j(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,a=t._x0,o=t._voronoiX,i=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=e(r)?r:n,p=e(u)?u:i,y={x:e(o)?o:s,x0:e(a)?a:n,y:e(l)?l:p,y0:e(c)?c:i};return f()({},y,t)}function T(t){var e=t.padding,n="number"==typeof e?e:0,r="object"==typeof e?e:{};return{top:r.top||n,bottom:r.bottom||n,left:r.left||n,right:r.right||n}}function k(t,e){return P()(t)?t(e):t}function w(t){return"number"==typeof t?t*(Math.PI/180):t}function S(t){var e=T(t),n=e.left,r=e.right,a=e.top,o=e.bottom,i=t.width,u=t.height;return Math.min(i-n-r,u-a-o)/2}function E(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:e(d.a.Children.toArray(r.children))}),!1)};return e(d.a.Children.toArray(t.children))}var C={omit:A,getPoint:j,scalePoint:function(t,e){var n=t.scale,r=t.polar,a=t.horizontal,o=j(e),i=t.origin||{x:0,y:0},u=a?n.y(o.y):n.x(o.x),c=a?n.y(o.y0):n.x(o.x0),l=a?n.x(o.x):n.y(o.y),f=a?n.x(o.x0):n.y(o.y0);return{x:r?l*Math.cos(u)+i.x:u,x0:r?f*Math.cos(c)+i.x:c,y:r?-l*Math.sin(u)+i.y:l,y0:r?-f*Math.sin(c)+i.x:f}},getPadding:T,getStyles:function(t,e){if(!t)return f()({parent:{height:"100%",width:"100%"}},e);var n=t.data,r=t.labels,a=t.parent,o=e&&e.parent||{},i=e&&e.labels||{},u=e&&e.data||{};return{parent:f()({},a,o,{width:"100%",height:"100%"}),labels:f()({},r,i),data:f()({},n,u)}},evaluateProp:k,evaluateStyle:function(t,e){return t&&Object.keys(t).some((function(e){return P()(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=k(t[r],e),n}),{}):t},degreesToRadians:w,radiansToDegrees:function(t){return"number"==typeof t?t/(Math.PI/180):t},getRadius:S,getPolarOrigin:function(t){var e=t.width,n=t.height,r=T(t),a=r.top,o=r.bottom,i=r.left,u=r.right,c=Math.min(e-i-u,n-a-o)/2,l=e/2+i-u,f=n/2+a-o;return{x:l+c>e?c+i-u:l,y:f+c>n?c+a-o:f}},getRange:function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[w(t.startAngle||0),w(t.endAngle||360)]:[t.innerRadius||0,S(t)]}(t,e):function(t,e){var n="x"!==e,r=T(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)},createAccessor:function(t){return P()(t)?t:null==t?function(t){return t}:x()(t)},modifyProps:function(t,e,n){var r=A(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),a=E(t),o=void 0===a?{}:{horizontal:a};return f()(o,t,r,e)},getCurrentAxis:function(t,e){return e?"x"===t?"y":"x":t},reduceChildren:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],i=function(t,u,c){return t.reduce((function(t,r,l){var f=r.type&&r.type.role,s=r.props.name||"".concat(f,"-").concat(u[l]);if(r.props&&r.props.children){var y=p()({},r.props,b()(n,o)),v=r.type&&"stack"===r.type.role&&P()(r.type.getChildren)?r.type.getChildren(y):d.a.Children.toArray(r.props.children).map((function(t){var e=p()({},t.props,b()(y,o));return d.a.cloneElement(t,e)})),h=v.map((function(t,e){return"".concat(s,"-").concat(e)})),g=i(v,h,r);t=a(t,g)}else{var m=e(r,s,c);m&&(t=a(t,m))}return t}),r)},u=t.map((function(t,e){return e}));return i(t,u)},isHorizontal:E};function _(t,e){if(t.polar)return{};var n=function(t,e){e=e||{};var n=t.horizontal,r=t.style.labels||{},a=C.evaluateProp(r.padding,t)||0,o=e._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}(t,e);return{dx:n.x,dy:n.y}}function D(t,e){var n=t.polar,r=C.scalePoint(t,e),a=r.x,o=r.y;if(n){var i=function(t,e){var n=t.style,r=F(t,e),a=n.labels||{},o=C.evaluateProp(a.padding,t)||0,i=C.degreesToRadians(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:a+i.x,y:o+i.y}}return{x:a,y:o}}function L(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||(e.props&&e.props.labelPlacement||r)}function z(t,e,n){return void 0!==(e=e||{}).label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels}function W(t,e){var n=L(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function N(t,e){var n=L(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function F(t,e){var n=C.getPoint(e).x;return C.radiansToDegrees(t.scale.x(n))}var M={getText:z,getPolarTextAnchor:W,getPolarVerticalAnchor:N,getPolarAngle:function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var a,o=void 0!==e?e:F(t,r);return 0===o||180===o?a=90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)},getDegrees:F,getProps:function(t,e){var n=t.scale,r=t.data,a=t.style,o=t.horizontal,i=t.polar,u=t.width,c=t.height,l=r[e],f=F(t,l),s=i?W(t,f):function(t,e){e=e||{};var n=t.style,r=t.horizontal,a=e._y>=0?1:-1,o=n&&n.labels||{};return e.verticalAnchor||o.verticalAnchor?e.verticalAnchor||o.verticalAnchor:r?a>=0?"start":"end":"middle"}(t,l),p=i?N(t,f):function(t,e){var n=(e=e||{})._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.verticalAnchor||r.verticalAnchor?e.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"}(t,l),y=function(t,e){e=e||{};var n=t.style&&t.style.labels||{};return void 0===e.angle?n.angle:e.angle}(t,l),d=z(t,l,e),v=L(t),h=D(t,l),g=h.x,b=h.y,m=_(t,l);return{angle:y,data:r,datum:l,horizontal:o,index:e,polar:i,scale:n,labelPlacement:v,text:d,textAnchor:s,verticalAnchor:p,x:g,y:b,dx:m.dx,dy:m.dy,width:u,height:c,style:a.labels}}},R=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],I={width:350,height:350,padding:50},H={fontFamily:"'Roboto', 'Helvetica Neue', Helvetica, sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:"#455A64",stroke:"transparent",strokeWidth:0},B=p()({textAnchor:"middle"},H),q={area:p()({style:{data:{fill:"#212121"},labels:H}},I),axis:p()({style:{axis:{fill:"transparent",stroke:"#90A4AE",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},B,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#ECEFF1",strokeDasharray:"10, 5",strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"#90A4AE",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},tickLabels:p()({},H,{fill:"#455A64"})}},I),bar:p()({style:{data:{fill:"#455A64",padding:8,strokeWidth:0},labels:H}},I),boxplot:p()({style:{max:{padding:8,stroke:"#455A64",strokeWidth:1},maxLabels:H,median:{padding:8,stroke:"#455A64",strokeWidth:1},medianLabels:H,min:{padding:8,stroke:"#455A64",strokeWidth:1},minLabels:H,q1:{padding:8,fill:"#455A64"},q1Labels:H,q3:{padding:8,fill:"#455A64"},q3Labels:H},boxWidth:20},I),candlestick:p()({style:{data:{stroke:"#455A64"},labels:H},candleColors:{positive:"#ffffff",negative:"#455A64"}},I),chart:I,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:H}},I),group:p()({colorScale:R},I),legend:{colorScale:R,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:H,title:p()({},H,{padding:5})}},line:p()({style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:H}},I),pie:p()({colorScale:R,style:{data:{padding:8,stroke:"#ECEFF1",strokeWidth:1},labels:p()({},H,{padding:20})}},I),scatter:p()({style:{data:{fill:"#455A64",opacity:1,stroke:"transparent",strokeWidth:0},labels:H}},I),stack:p()({colorScale:R},I),tooltip:{style:p()({},H,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},H,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},I)},V=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],G={width:450,height:300,padding:50,colorScale:V},K={fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:"#252525",stroke:"transparent"},$=p()({textAnchor:"middle"},K),U={material:q,grayscale:{area:p()({style:{data:{fill:"#252525"},labels:K}},G),axis:p()({style:{axis:{fill:"transparent",stroke:"#252525",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},$,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:K}},G),bar:p()({style:{data:{fill:"#252525",padding:8,strokeWidth:0},labels:K}},G),boxplot:p()({style:{max:{padding:8,stroke:"#252525",strokeWidth:1},maxLabels:K,median:{padding:8,stroke:"#252525",strokeWidth:1},medianLabels:K,min:{padding:8,stroke:"#252525",strokeWidth:1},minLabels:K,q1:{padding:8,fill:"#969696"},q1Labels:K,q3:{padding:8,fill:"#969696"},q3Labels:K},boxWidth:20},G),candlestick:p()({style:{data:{stroke:"#252525",strokeWidth:1},labels:K},candleColors:{positive:"#ffffff",negative:"#252525"}},G),chart:G,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:K}},G),group:p()({colorScale:V},G),legend:{colorScale:V,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:K,title:p()({},K,{padding:5})}},line:p()({style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:K}},G),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:p()({},K,{padding:20})},colorScale:V,width:400,height:400,padding:50},scatter:p()({style:{data:{fill:"#252525",stroke:"transparent",strokeWidth:0},labels:K}},G),stack:p()({colorScale:V},G),tooltip:{style:p()({},K,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},K,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},G)}};function Z(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Y={"American Typewriter":2.09,Baskerville:2.51,Georgia:2.27,"Hoefler Text":2.39,Palatino:2.26,"Times New Roman":2.48,Arial:2.26,"Gill Sans":2.47,"Gill Sans 300":2.58,"Helvetica Neue":2.24,"Lucida Grande":2.05,Tahoma:2.25,"Trebuchet MS":2.2,Verdana:1.96,"Courier New":1.67,cursive:1.84,fantasy:2.09,monospace:1.81,serif:2.04,"sans-serif":1.89},Q={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},X={em:1,ex:.5},J=2.1675,tt=1.25,et=1.05,nt=1.15,rt=.2,at={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ot=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},it=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},ut=function(t,e){var n=t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/);return Q.hasOwnProperty(n)?r*Q[n]:X.hasOwnProperty(n)?(e?r*e:r*at.fontSize)*X[n]:r},ct=function(t,e){var n,r,a=Array.isArray(t)?t[e]:t,o=f()({},a,at);return p()({},o,{characterConstant:o.characterConstant||(n=o.fontFamily,r=n.split(",")[0].replace(/'|"/g,""),Y[r]||J),letterSpacing:ut(o.letterSpacing,o.fontSize),fontSize:"number"==typeof o.fontSize?o.fontSize:ut(String(o.fontSize))})},lt=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:ot(t).reduce((function(t,n,r){var a=ct(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?a.fontSize*nt:a.fontSize,i=0===r?0:a.fontSize*rt;return t+a.lineHeight*(o+i)}),0)}(t,e),a=function(t,e){if(void 0===t||""===t||null===t)return 0;var n=ot(t).map((function(t,n){var r=t.toString().length,a=ct(e,n);return r*a.fontSize/a.characterConstant+a.letterSpacing*Math.max(r-1,0)}));return Math.max.apply(Math,Z(n))}(t,e),o=n?it(a,r,n):a,i=n?it(r,a,n):r;return{width:o*tt,height:i*et}},ft=function(t){0},st=d.a.createContext({});st.displayName="PortalContext";var pt=st;function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var ht=function(t){function e(){return yt(this,e),vt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(ft("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place"),this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},a=f()(r,n,C.omit(this.props,["children","groupComponent"])),o=t&&d.a.cloneElement(t,a);return this.renderPortal(o)}}])&&dt(n.prototype,r),a&&dt(n,a),e}(d.a.Component);Object.defineProperty(ht,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(ht,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(ht,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:h.a.node,groupComponent:h.a.element}}),Object.defineProperty(ht,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(ht,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:pt});var gt=n(50),bt=n.n(gt),mt=n(51),xt=n.n(mt);var Ot=function(t){var e=function(e,n,r,a){var o=n[r];if(null==o)return e?new Error("Required `".concat(r,"` was not specified in `").concat(a,"`.")):null;for(var i=arguments.length,u=new Array(i>4?i-4:0),c=4;c<i;c++)u[c-4]=arguments[c];return t.apply(void 0,[n,r,a].concat(u))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},Pt=function(){return null},At=function(){},jt=function(t){return void 0===t?At:null===t?Pt:t.constructor},Tt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},kt={deprecated:function(t,e){return function(n,r,a){var o=n[r];return null!=o&&ft('"'.concat(r,'" property of "').concat(a,'" has been deprecated ').concat(e)),h.a.checkPropTypes(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},r,t),n,r,a)}},allOfType:function(t){return Ot((function(e,n,r){for(var a=arguments.length,o=new Array(a>3?a-3:0),i=3;i<a;i++)o[i-3]=arguments[i];return t.reduce((function(t,a){return t||a.apply(void 0,[e,n,r].concat(o))}),void 0)}))},nonNegative:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`".concat(e,"` in `").concat(n,"` must be a non-negative number."))})),integer:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!=0)return new Error("`".concat(e,"` in `").concat(n,"` must be an integer."))})),greaterThanZero:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`".concat(e,"` in `").concat(n,"` must be a number greater than zero."))})),domain:Ot((function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(e,"` in `").concat(n,"` must be an array of two unique numeric values."))})),scale:Ot((function(t,e,n){var r,a=["linear","time","log","sqrt"],o=t[e];if(r=o,!(P()(r)?P()(r.copy)&&P()(r.domain)&&P()(r.range):"string"==typeof r&&-1!==a.indexOf(r)))return new Error("`".concat(e,"` in `").concat(n,"` must be a d3 scale."))})),homogeneousArray:Ot((function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`".concat(e,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var a=jt(r[0]),o=xt()(r,(function(t){return a!==jt(t)}));if(o){var i=Tt(r[0]),u=Tt(o);return new Error("Expected `".concat(e,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:Ot((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),regExp:Ot((function(t,e,n){if(t[e]&&!bt()(t[e]))return new Error("`".concat(e,"` in `").concat(n,"` must be a regular expression."))}))},wt=n(26),St=n.n(wt),Et=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Et(e)].join(" ")}),Et(t)).trim();if(null==t||"string"==typeof t)return t;var a=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];a.push("".concat(o,"(").concat(i,")"))}return a.join(" ").trim()},Ct={toTransformString:Et,getColorScale:function(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}},_t=function(t){return d.a.createElement("tspan",t)};var Dt=function(t){var e=t.children,n=t.title,r=t.desc,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["children","title","desc"]);return d.a.createElement("text",a,n&&d.a.createElement("title",null,n),r&&d.a.createElement("desc",null,r),e)};Dt.propTypes={children:h.a.node,desc:h.a.string,title:h.a.string};var Lt=Dt;function zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wt={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Nt=function(t,e){return t.datum?C.scalePoint(t,t.datum)[e]:0},Ft=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Wt.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?(ft("fontSize should be expressed as a number of pixels"),Wt.fontSize):n}return Wt.fontSize},Mt=function(t,e){return C.evaluateProp(t[e],t)},Rt=function(t,e,n){return Array.isArray(t)?St()(t)?n:e:t},It=function(t){var e=t.inline,n=t.className,r=t.title,a=t.events,o=t.direction,i=t.text,u=t.style,c=Mt(t,"lineHeight"),l=t.textAnchor?C.evaluateProp(t.textAnchor,t):"start",f=t.dx?C.evaluateProp(t.dx,t):0,s=function(t,e){var n=Array.isArray(t.style)?t.style[0]:t.style;e=Rt(e,e[0],1);var r=n.fontSize,a=t.dy?C.evaluateProp(t.dy,t):0,o=t.text.length,i=Mt(t,"capHeight"),u=n.verticalAnchor||t.verticalAnchor;switch(u?C.evaluateProp(u,t):"middle"){case"end":return a+(i/2+(.5-o)*e)*r;case"middle":return a+(i/2+(.5-o/2)*e)*r;default:return a+(i/2+e/2)*r}}(t,c),p=function(t){var e=t.x,n=t.y,r=t.polar,a=t.style,o=r?M.getPolarAngle(t):0,i=void 0===a.angle?t.angle:a.angle,u=void 0===i?o:i,c=t.transform||a.transform,l=c&&C.evaluateProp(c,t),f=u&&{rotate:[u,e,n]};return l||u?Ct.toTransformString(l,f):void 0}(t),y=void 0!==t.x?t.x:Nt(t,"x"),v=void 0!==t.y?t.y:Nt(t,"y"),h=i.map((function(n,r){var a=u[r]||u[0],o=u[r-1]||u[0],i=(a.fontSize+o.fontSize)/2,s=Rt(c,(c[r]+(c[r-1]||c[0]))/2,1),p={key:"".concat(t.id,"-key-").concat(r),x:e?void 0:t.x,dx:f,dy:r&&!e?s*i:void 0,textAnchor:a.textAnchor||l,style:a,children:n};return d.a.cloneElement(t.tspanComponent,p)}));return d.a.cloneElement(t.textComponent,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){zt(t,e,n[e])}))}return t}({},a,{direction:o,dx:f,dy:s,x:y,y:v,transform:p,className:n,title:r,desc:C.evaluateProp(t.desc,t),tabIndex:C.evaluateProp(t.tabIndex,t),id:t.id}),h)},Ht=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return C.evaluateProp(t,e)}));var n=C.evaluateProp(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){var n=function(t){t=t?f()({},t,Wt):Wt;var n=C.evaluateStyle(t,e);return p()({},n,{fontSize:Ft(n)})};return Array.isArray(t)&&!St()(t)?t.map((function(t){return n(t)})):[n(t)]}(t.style,p()({},t,{text:e}));return p()({},t,{style:n,text:e})},Bt=function(t){if(null===(t=Ht(t)).text||void 0===t.text)return null;var e=It(t);return t.renderInPortal?d.a.createElement(ht,null,e):e};Bt.displayName="VictoryLabel",Bt.role="label",Bt.defaultStyles=Wt,Bt.propTypes={active:h.a.bool,angle:h.a.oneOfType([h.a.string,h.a.number]),capHeight:h.a.oneOfType([h.a.string,kt.nonNegative,h.a.func]),className:h.a.string,data:h.a.array,datum:h.a.any,desc:h.a.oneOfType([h.a.string,h.a.func]),direction:h.a.oneOf(["rtl","ltr","inherit"]),dx:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),inline:h.a.bool,labelPlacement:h.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:h.a.oneOfType([h.a.string,kt.nonNegative,h.a.func,h.a.array]),origin:h.a.shape({x:kt.nonNegative,y:kt.nonNegative}),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:kt.scale,y:kt.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),tabIndex:h.a.oneOfType([h.a.number,h.a.func]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),textAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end","inherit"]),h.a.func]),textComponent:h.a.element,title:h.a.string,transform:h.a.oneOfType([h.a.string,h.a.object,h.a.func]),tspanComponent:h.a.element,verticalAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end"]),h.a.func]),x:h.a.oneOfType([h.a.number,h.a.string]),y:h.a.oneOfType([h.a.number,h.a.string])},Bt.defaultProps={direction:"inherit",textComponent:d.a.createElement(Lt,null),tspanComponent:d.a.createElement(_t,null),capHeight:.71,lineHeight:1};var qt=Bt,Vt={categories:h.a.oneOfType([h.a.arrayOf(h.a.string),h.a.shape({x:h.a.arrayOf(h.a.string),y:h.a.arrayOf(h.a.string)})]),data:h.a.oneOfType([h.a.array,h.a.object]),dataComponent:h.a.element,labelComponent:h.a.element,labels:h.a.oneOfType([h.a.func,h.a.array]),samples:kt.nonNegative,sortKey:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),sortOrder:h.a.oneOf(["ascending","descending"]),style:h.a.shape({parent:h.a.object,data:h.a.object,labels:h.a.object}),x:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y0:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)])},Gt={animate:h.a.oneOfType([h.a.bool,h.a.object]),containerComponent:h.a.element,domain:h.a.oneOfType([kt.domain,h.a.shape({x:kt.domain,y:kt.domain})]),maxDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),minDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),domainPadding:h.a.oneOfType([h.a.shape({x:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)]),y:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)])}),h.a.number,h.a.arrayOf(h.a.number)]),eventKey:h.a.oneOfType([h.a.func,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string]),events:h.a.arrayOf(h.a.shape({target:h.a.oneOf(["data","labels","parent"]),eventKey:h.a.oneOfType([h.a.array,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string]),eventHandlers:h.a.object})),externalEventMutations:h.a.arrayOf(h.a.shape({callback:h.a.function,childName:h.a.oneOfType([h.a.string,h.a.array]),eventKey:h.a.oneOfType([h.a.array,kt.allOfType([kt.integer,kt.nonNegative]),h.a.string]),mutation:h.a.function,target:h.a.oneOfType([h.a.string,h.a.array])})),groupComponent:h.a.element,height:kt.nonNegative,name:h.a.string,origin:h.a.shape({x:h.a.number,y:h.a.number}),padding:h.a.oneOfType([h.a.number,h.a.shape({top:h.a.number,bottom:h.a.number,left:h.a.number,right:h.a.number})]),polar:h.a.bool,range:h.a.oneOfType([kt.domain,h.a.shape({x:kt.domain,y:kt.domain})]),scale:h.a.oneOfType([kt.scale,h.a.shape({x:kt.scale,y:kt.scale})]),sharedEvents:h.a.shape({events:h.a.array,getEventState:h.a.func}),singleQuadrantDomainPadding:h.a.oneOfType([h.a.bool,h.a.shape({x:h.a.oneOfType([h.a.bool]),y:h.a.oneOfType([h.a.bool])})]),standalone:h.a.bool,theme:h.a.object,width:kt.nonNegative},Kt={active:h.a.bool,className:h.a.string,clipPath:h.a.string,data:h.a.oneOfType([h.a.array,h.a.object]),desc:h.a.oneOfType([h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),origin:h.a.shape({x:h.a.number,y:h.a.number}),polar:h.a.bool,role:h.a.string,scale:h.a.oneOfType([kt.scale,h.a.shape({x:kt.scale,y:kt.scale})]),shapeRendering:h.a.string,style:h.a.object,tabIndex:h.a.oneOfType([h.a.number,h.a.func]),transform:h.a.string};var $t=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["desc"]);return e?d.a.createElement("path",n,d.a.createElement("desc",null,e)):d.a.createElement("path",n)};function Ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Zt(t,e,n[e])}))}return t}function Zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yt=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,u=t.center,c="left"===r?1:-1,l=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(u)&&u.x,p=i()(u)&&u.y,y=s-c*(a/2),d=s+c*(a/2),v=p+o/2,h=p-o/2,g=c*(l-y)>0?0:t.pointerLength,b="left"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(y,", ").concat(p-e/2,"\n L ").concat(g?l:y,", ").concat(g?f:p+e/2,"\n L ").concat(y,", ").concat(p+e/2,"\n L ").concat(y,", ").concat(v-n,"\n A ").concat(m," ").concat(y+c*n,", ").concat(v,"\n L ").concat(d-c*n,", ").concat(v,"\n A ").concat(m," ").concat(d,", ").concat(v-n,"\n L ").concat(d,", ").concat(h+n,"\n A ").concat(m," ").concat(d-c*n,", ").concat(h,"\n L ").concat(y+c*n,", ").concat(h,"\n A ").concat(m," ").concat(y,", ").concat(h+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,u=t.center,c="bottom"===r?1:-1,l=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(u)&&u.x,p=i()(u)&&u.y,y=p+c*(o/2),d=p-c*(o/2),v=s+a/2,h=s-a/2,g=c*(f-y)<0?0:t.pointerLength,b="bottom"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(s-e/2,", ").concat(y,"\n L ").concat(g?l:s+e/2,", ").concat(g?f:y,"\n L ").concat(s+e/2,", ").concat(y,"\n L ").concat(v-n,", ").concat(y,"\n A ").concat(m," ").concat(v,", ").concat(y-c*n,"\n L ").concat(v,", ").concat(d+c*n,"\n A ").concat(m," ").concat(v-n,", ").concat(d,"\n L ").concat(h+n,", ").concat(d,"\n A ").concat(m," ").concat(h,", ").concat(d+c*n,"\n L ").concat(h,", ").concat(y-c*n,"\n A ").concat(m," ").concat(h+n,", ").concat(y,"\n z")}(t)},Qt=function(t){return d.a.cloneElement(t.pathComponent,Ut({},t.events,{style:C.evaluateStyle(t.style,t),d:Yt(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};Qt.propTypes=Ut({},{baseProps:Gt,dataProps:Vt,primitiveProps:Kt}.primitiveProps,{center:h.a.shape({x:h.a.number,y:h.a.number}),cornerRadius:h.a.number,datum:h.a.object,dx:h.a.number,dy:h.a.number,height:h.a.number,orientation:h.a.oneOf(["top","bottom","left","right"]),pathComponent:h.a.element,pointerLength:h.a.number,pointerWidth:h.a.number,width:h.a.number,x:h.a.number,y:h.a.number}),Qt.defaultProps={pathComponent:d.a.createElement($t,null),role:"presentation",shapeRendering:"auto"};var Xt=Qt;function Jt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var ne={cornerRadius:5,pointerLength:10,pointerWidth:10},re=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ee(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).id=void 0===t.id?c()("tooltip-"):t.id,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var r=n?"right":"top",a=n?"left":"bottom";return e&&e.y<0?a:r}},{key:"getPolarOrientation",value:function(t,e){var n=M.getDegrees(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||U.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return f()({},t,n)})):f()({},t.style,n),a=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?f()({},t.flyoutStyle,a):a,i=Array.isArray(r)?r.map((function(e){return C.evaluateStyle(e,t)})):C.evaluateStyle(r,t);return{style:i,flyoutStyle:C.evaluateStyle(o,p()({},t,{style:i}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.horizontal,n=t.pointerLength,r=t.pointerWidth,a=t.cornerRadius,o=t.centerOffset,u=t.dx,c=t.dy,l=C.evaluateProp(t.active,t),f=C.evaluateProp(t.text,p()({},t,{active:l})),s=this.getStyles(p()({},t,{active:l,text:f})),y=s.style,d=s.flyoutStyle,v=C.evaluateProp(t.orientation,p()({},t,{active:l,text:f,style:y,flyoutStyle:d}))||this.getDefaultOrientation(t),h=lt(f,y),g=this.getDimensions(p()({},t,{style:y,flyoutStyle:d,active:l,text:f,orientation:v}),h),b=g.flyoutHeight,m=g.flyoutWidth,x=p()({},t,{active:l,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m}),O=i()(o)&&void 0!==o.x?C.evaluateProp(o.x,x):0,P=i()(o)&&void 0!==o.y?C.evaluateProp(o.y,x):0,A=d&&d.padding||0,j=e?A:0,T=e?0:A;return p()({},t,{active:l,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m,centerOffset:{x:O,y:P},dx:void 0!==u?C.evaluateProp(u,x):j,dy:void 0!==c?C.evaluateProp(c,x):T,cornerRadius:C.evaluateProp(a,x),pointerLength:C.evaluateProp(n,x),pointerWidth:C.evaluateProp(r,x)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,a={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:lt(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,a=t.datum;if(!e||!n||"vertical"===n)return 0;var o,i=M.getDegrees(t,a);return 0===i||180===i?o="top"===r&&180===i?270:90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,a=t.y,o=n.width,i=n.height,u=[0,e.width],c=[0,e.height],l=[r-o/2,r+o/2],f=[a-i/2,a+i/2],s=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],p=[f[0]<c[0]?c[0]-f[0]:0,f[1]>c[1]?f[1]-c[1]:0];return{x:Math.round(r+s[0]-s[1]),y:Math.round(a+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,a=t.dx,o=t.dy,u=t.pointerLength,c=t.orientation,l=t.constrainToVisibleArea,f=t.centerOffset,s=e.height,p=e.width,y="left"===c?-1:1,d="bottom"===c?-1:1,v={x:"left"===c||"right"===c?n+y*(u+p/2+y*a):n+a,y:"top"===c||"bottom"===c?r-d*(u+s/2-d*o):r+o},h=i()(t.center)&&void 0!==t.center.x?t.center.x:v.x,g=i()(t.center)&&void 0!==t.center.y?t.center.y:v.y,b={x:h+f.x,y:g+f.y};return l?this.constrainTooltip(b,t,e):b}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,Jt(e).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,a,o,i=t.orientation,u=t.pointerLength,c=t.pointerWidth,l=t.style,f=t.flyoutHeight,s=t.flyoutWidth,p=this.getLabelPadding(l),y=C.evaluateProp(t.cornerRadius,t);return{flyoutHeight:f?C.evaluateProp(f,t):(a=e.height+p,o="top"===i||"bottom"===i?2*y:2*y+c,Math.max(o,a)+p/2),flyoutWidth:s?C.evaluateProp(s,t):(n=e.width+p,r="left"===i||"right"===i?2*y+u:2*y,Math.max(r,n)+p)}}},{key:"getLabelProps",value:function(t,e){var n,r=e.flyoutCenter,a=e.style,o=e.labelSize,i=e.dy,u=e.dx,c=t.text,l=t.datum,s=t.activePoints,p=t.labelComponent,y=t.index,d=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle";return f()({},p.props,{key:"".concat(this.id,"-label-").concat(y),text:c,datum:l,activePoints:s,textAnchor:d,dy:i,dx:u,style:a,x:d&&"middle"!==d?(n="end"===d?-1:1,r.x-n*(o.width/2)):r.x,y:r.y,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,u=e.x+n.width/2,c=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:u<t.x?t.x-u:-1},{side:"left",val:i>t.x?i-t.x:-1}];return a()(c,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,a=e.flyoutCenter,o=t.x,i=t.y,u=t.dx,c=t.dy,l=t.datum,s=t.activePoints,p=t.index,y=t.pointerLength,d=t.pointerWidth,v=t.cornerRadius,h=t.events,g=t.flyoutComponent,b=C.evaluateProp(t.pointerOrientation,t);return f()({},g.props,{x:o,y:i,dx:u,dy:c,datum:l,activePoints:s,index:p,pointerLength:y,pointerWidth:d,cornerRadius:v,events:h,orientation:b||this.getPointerOrientation({x:o,y:i},a,n),key:"".concat(this.id,"-tooltip-").concat(p),width:n.width,height:n.height,style:r,center:a})}},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,r=e.labelComponent,a=e.groupComponent,o=e.active,i=e.renderInPortal;if(!o)return i?d.a.createElement(ht,null,null):null;var u=this.getCalculatedValues(e),c=[d.a.cloneElement(n,this.getFlyoutProps(e,u)),d.a.cloneElement(r,this.getLabelProps(e,u))],l=d.a.cloneElement(a,{role:"presentation",transform:u.transform},c);return i?d.a.createElement(ht,null,l):l}},{key:"render",value:function(){var t=C.modifyProps(this.props,ne,"tooltip");return this.renderTooltip(t)}}])&&te(n.prototype,r),o&&te(n,o),e}(d.a.Component);Object.defineProperty(re,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryTooltip"}),Object.defineProperty(re,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{activateData:h.a.bool,active:h.a.oneOfType([h.a.bool,h.a.func]),activePoints:h.a.array,angle:h.a.number,center:h.a.shape({x:kt.nonNegative,y:kt.nonNegative}),centerOffset:h.a.shape({x:h.a.oneOfType([h.a.number,h.a.func]),y:h.a.oneOfType([h.a.number,h.a.func])}),constrainToVisibleArea:h.a.bool,cornerRadius:h.a.oneOfType([kt.nonNegative,h.a.func]),data:h.a.array,datum:h.a.object,dx:h.a.oneOfType([h.a.number,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.func]),events:h.a.object,flyoutComponent:h.a.element,flyoutHeight:h.a.oneOfType([kt.nonNegative,h.a.func]),flyoutStyle:h.a.object,flyoutWidth:h.a.oneOfType([kt.nonNegative,h.a.func]),groupComponent:h.a.element,height:h.a.number,horizontal:h.a.bool,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),labelComponent:h.a.element,orientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerLength:h.a.oneOfType([kt.nonNegative,h.a.func]),pointerOrientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerWidth:h.a.oneOfType([kt.nonNegative,h.a.func]),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:kt.scale,y:kt.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),theme:h.a.object,width:h.a.number,x:h.a.number,y:h.a.number}}),Object.defineProperty(re,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{active:!1,renderInPortal:!0,labelComponent:d.a.createElement(qt,null),flyoutComponent:d.a.createElement(Xt,null),groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(re,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){return[{target:"data",eventHandlers:{onMouseOver:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onTouchStart:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onMouseOut:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]},onTouchEnd:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]}}}]}}),n.d(e,"VictoryTooltip",(function(){return re})),n.d(e,"Flyout",(function(){return Xt}))}])})); | ||
//# sourceMappingURL=victory-tooltip.min.js.map |
{ | ||
"name": "victory-tooltip", | ||
"version": "34.1.1", | ||
"version": "34.1.3", | ||
"description": "Tooltip Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^34.1.1" | ||
"victory-core": "^34.1.3" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1193129
8470
Updatedvictory-core@^34.1.3