victory-cursor-container
Advanced tools
Comparing version 34.1.0 to 34.1.1
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryCursorContainer=n(require("react")):e.VictoryCursorContainer=n(e.React)}(window,(function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=112)}([function(e,n,t){e.exports=t(59)()},function(n,t){n.exports=e},function(e,n,t){var r=t(11),o=t(55),a=t(56),i=t(14),u=t(32),c=t(8),l=Object.prototype.hasOwnProperty,f=a((function(e,n){if(u(n)||i(n))o(n,c(n),e);else for(var t in n)l.call(n,t)&&r(e,t,n[t])}));e.exports=f},function(e,n,t){var r=t(30),o=t(6);e.exports=function(e){if(!o(e))return!1;var n=r(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(e,n,t){var r=t(25),o=t(13),a=t(29),i=t(58),u=Object.prototype,c=u.hasOwnProperty,l=r((function(e,n){e=Object(e);var t=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&a(n[0],n[1],l)&&(r=1);++t<r;)for(var f=n[t],s=i(f),p=-1,y=s.length;++p<y;){var v=s[p],d=e[v];(void 0===d||o(d,u[v])&&!c.call(e,v))&&(e[v]=f[v])}return e}));e.exports=l},function(e,n){var t=Array.isArray;e.exports=t},function(e,n){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},function(e,n,t){var r=t(18);e.exports=function(e){if("string"==typeof e||r(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(e,n,t){var r=t(15)(Object.keys,Object);e.exports=r},function(e,n,t){var r=t(5),o=t(17),a=t(63),i=t(33);e.exports=function(e,n){return r(e)?e:o(e,n)?[e]:a(i(e))}},function(e,n,t){var r=t(13);e.exports=function(e,n){for(var t=e.length;t--;)if(r(e[t][0],n))return t;return-1}},function(e,n,t){var r=t(12),o=t(13),a=Object.prototype.hasOwnProperty;e.exports=function(e,n,t){var i=e[n];a.call(e,n)&&o(i,t)&&(void 0!==t||n in e)||r(e,n,t)}},function(e,n,t){var r=t(53);e.exports=function(e,n,t){"__proto__"==n&&r?r(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}},function(e,n){e.exports=function(e,n){return e===n||e!=e&&n!=n}},function(e,n,t){var r=t(3),o=t(31);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,n){e.exports=function(e,n){return function(t){return e(n(t))}}},function(e,n,t){var r=t(9),o=t(7);e.exports=function(e,n){for(var t=0,a=(n=r(n,e)).length;null!=e&&t<a;)e=e[o(n[t++])];return t&&t==a?e:void 0}},function(e,n,t){var r=t(5),o=t(18),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,n){if(r(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=n&&e in Object(n))}},function(e,n){e.exports=function(){return!1}},function(e,n){e.exports=function(){return!1}},function(e,n,t){var r=t(81),o=t(98),a=t(26),i=t(5),u=t(21);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):u(e)}},function(e,n,t){var r=t(76),o=t(77),a=t(17),i=t(7);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,n,t){var r=t(61),o=t(71)((function(e,n){return null==e?{}:r(e,n)}));e.exports=o},function(e,n,t){var r=t(12),o=t(78),a=t(20);e.exports=function(e,n){var t={};return n=a(n,3),o(e,(function(e,o,a){r(t,o,n(e,o,a))})),t}},function(e,n,t){var r=t(111),o=t(41),a=t(19),i=t(5),u=t(14),c=t(42),l=t(32),f=t(43),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||f(e)||a(e)))return!e.length;var n=o(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(l(e))return!r(e).length;for(var t in e)if(s.call(e,t))return!1;return!0}},function(e,n,t){var r=t(26),o=t(27),a=t(28);e.exports=function(e,n){return a(o(e,n,r),e+"")}},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(57),o=Math.max;e.exports=function(e,n,t){return n=o(void 0===n?e.length-1:n,0),function(){for(var a=arguments,i=-1,u=o(a.length-n,0),c=Array(u);++i<u;)c[i]=a[n+i];i=-1;for(var l=Array(n+1);++i<n;)l[i]=a[i];return l[n]=t(c),r(e,this,l)}}},function(e,n){e.exports=function(e){return e}},function(e,n){e.exports=function(){return!1}},function(e,n){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,n){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,n){e.exports=function(){return!1}},function(e,n,t){var r=t(65);e.exports=function(e){return null==e?"":r(e)}},function(e,n,t){var r=t(35).Symbol;e.exports=r},function(e,n,t){var r=t(36),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,n,t){(function(n){var t="object"==typeof n&&n&&n.Object===Object&&n;e.exports=t}).call(this,t(66))},function(e,n){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},function(e,n,t){var r=t(69),o=t(70);e.exports=function(e,n){return null!=e&&o(e,n,r)}},function(e,n,t){var r=t(83),o=t(84),a=t(85),i=t(86),u=t(87);function c(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=u,e.exports=c},function(e,n,t){var r=t(88),o=t(44);e.exports=function e(n,t,a,i,u){return n===t||(null==n||null==t||!o(n)&&!o(t)?n!=n&&t!=t:r(n,t,a,i,e,u))}},function(e,n){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,n){e.exports=function(){return!1}},function(e,n){e.exports=function(){return!1}},function(e,n){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,n,t){var r=t(6);e.exports=function(e){return e==e&&!r(e)}},function(e,n){e.exports=function(e,n){return function(t){return null!=t&&(t[e]===n&&(void 0!==n||e in Object(t)))}}},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(100),o=t(6);e.exports=function(e,n,t){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(t)&&(a="leading"in t?!!t.leading:a,i="trailing"in t?!!t.trailing:i),r(e,n,{leading:a,maxWait:n,trailing:i})}},function(e,n,t){var r=t(33),o=0;e.exports=function(e){var n=++o;return r(e)+n}},function(e,n,t){var r=t(102),o=t(103),a=t(104),i=a&&a.isRegExp,u=i?o(i):r;e.exports=u},function(e,n,t){var r=t(106)(t(107));e.exports=r},,function(e,n,t){var r=t(54),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,n){e.exports=function(e,n){return null==e?void 0:e[n]}},function(e,n,t){var r=t(11),o=t(12);e.exports=function(e,n,t,a){var i=!t;t||(t={});for(var u=-1,c=n.length;++u<c;){var l=n[u],f=a?a(t[l],e[l],l,t,e):void 0;void 0===f&&(f=e[l]),i?o(t,l,f):r(t,l,f)}return t}},function(e,n,t){var r=t(25),o=t(29);e.exports=function(e){return r((function(n,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,u=a>2?t[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(t[0],t[1],u)&&(i=a<3?void 0:i,a=1),n=Object(n);++r<a;){var c=t[r];c&&e(n,c,r,i)}return n}))}},function(e,n){e.exports=function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}},function(e,n){e.exports=function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}},function(e,n,t){"use strict";var r=t(60);function o(){}e.exports=function(){function e(e,n,t,o,a,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 n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return t.checkPropTypes=o,t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n,t){var r=t(62),o=t(38);e.exports=function(e,n){return r(e,n,(function(n,t){return o(e,t)}))}},function(e,n,t){var r=t(16),o=t(68),a=t(9);e.exports=function(e,n,t){for(var i=-1,u=n.length,c={};++i<u;){var l=n[i],f=r(e,l);t(f,l)&&o(c,a(l,e),f)}return c}},function(e,n,t){var r=t(64),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(o,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));e.exports=i},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(34),o=t(67),a=t(5),i=t(18),u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(n){if("string"==typeof n)return n;if(a(n))return o(n,e)+"";if(i(n))return c?c.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){e.exports=function(e,n){for(var t=-1,r=null==e?0:e.length,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}},function(e,n,t){var r=t(11),o=t(9),a=t(37),i=t(6),u=t(7);e.exports=function(e,n,t,c){if(!i(e))return e;for(var l=-1,f=(n=o(n,e)).length,s=f-1,p=e;null!=p&&++l<f;){var y=u(n[l]),v=t;if(l!=s){var d=p[y];void 0===(v=c?c(d,y,p):void 0)&&(v=i(d)?d:a(n[l+1])?[]:{})}r(p,y,v),p=p[y]}return e}},function(e,n){e.exports=function(e,n){return null!=e&&n in Object(e)}},function(e,n,t){var r=t(9),o=t(19),a=t(5),i=t(37),u=t(31),c=t(7);e.exports=function(e,n,t){for(var l=-1,f=(n=r(n,e)).length,s=!1;++l<f;){var p=c(n[l]);if(!(s=null!=e&&t(e,p)))break;e=e[p]}return s||++l!=f?s:!!(f=null==e?0:e.length)&&u(f)&&i(p,f)&&(a(e)||o(e))}},function(e,n,t){var r=t(72),o=t(27),a=t(28);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,n,t){var r=t(73);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,n,t){var r=t(74),o=t(75);e.exports=function e(n,t,a,i,u){var c=-1,l=n.length;for(a||(a=o),u||(u=[]);++c<l;){var f=n[c];t>0&&a(f)?t>1?e(f,t-1,a,i,u):r(u,f):i||(u[u.length]=f)}return u}},function(e,n){e.exports=function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}},function(e,n,t){var r=t(34),o=t(19),a=t(5),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,n){e.exports=function(e){return function(n){return null==n?void 0:n[e]}}},function(e,n,t){var r=t(16);e.exports=function(e){return function(n){return r(n,e)}}},function(e,n,t){var r=t(79),o=t(8);e.exports=function(e,n){return e&&r(e,n,o)}},function(e,n,t){var r=t(80)();e.exports=r},function(e,n){e.exports=function(e){return function(n,t,r){for(var o=-1,a=Object(n),i=r(n),u=i.length;u--;){var c=i[e?u:++o];if(!1===t(a[c],c,a))break}return n}}},function(e,n,t){var r=t(82),o=t(97),a=t(46);e.exports=function(e){var n=o(e);return 1==n.length&&n[0][2]?a(n[0][0],n[0][1]):function(t){return t===e||r(t,e,n)}}},function(e,n,t){var r=t(39),o=t(40);e.exports=function(e,n,t,a){var i=t.length,u=i,c=!a;if(null==e)return!u;for(e=Object(e);i--;){var l=t[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<u;){var f=(l=t[i])[0],s=e[f],p=l[1];if(c&&l[2]){if(void 0===s&&!(f in e))return!1}else{var y=new r;if(a)var v=a(s,p,f,e,n,y);if(!(void 0===v?o(p,s,3,a,y):v))return!1}}return!0}},function(e,n){e.exports=function(){this.__data__=[],this.size=0}},function(e,n,t){var r=t(10),o=Array.prototype.splice;e.exports=function(e){var n=this.__data__,t=r(n,e);return!(t<0)&&(t==n.length-1?n.pop():o.call(n,t,1),--this.size,!0)}},function(e,n,t){var r=t(10);e.exports=function(e){var n=this.__data__,t=r(n,e);return t<0?void 0:n[t][1]}},function(e,n,t){var r=t(10);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,n,t){var r=t(10);e.exports=function(e,n){var t=this.__data__,o=r(t,e);return o<0?(++this.size,t.push([e,n])):t[o][1]=n,this}},function(e,n,t){var r=t(39),o=t(89),a=t(94),i=t(95),u=t(41),c=t(5),l=t(42),f=t(43),s="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,n,t,y,v,d){var h=c(e),b=c(n),g=h?"[object Array]":u(e),m=b?"[object Array]":u(n),x=(g="[object Arguments]"==g?s:g)==s,O=(m="[object Arguments]"==m?s:m)==s,w=g==m;if(w&&l(e)){if(!l(n))return!1;h=!0,x=!1}if(w&&!x)return d||(d=new r),h||f(e)?o(e,n,t,y,v,d):a(e,n,g,t,y,v,d);if(!(1&t)){var j=x&&p.call(e,"__wrapped__"),P=O&&p.call(n,"__wrapped__");if(j||P){var T=j?e.value():e,E=P?n.value():n;return d||(d=new r),v(T,E,t,y,d)}}return!!w&&(d||(d=new r),i(e,n,t,y,v,d))}},function(e,n,t){var r=t(90),o=t(91),a=t(92);e.exports=function(e,n,t,i,u,c){var l=1&t,f=e.length,s=n.length;if(f!=s&&!(l&&s>f))return!1;var p=c.get(e);if(p&&c.get(n))return p==n;var y=-1,v=!0,d=2&t?new r:void 0;for(c.set(e,n),c.set(n,e);++y<f;){var h=e[y],b=n[y];if(i)var g=l?i(b,h,y,n,e,c):i(h,b,y,e,n,c);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(n,(function(e,n){if(!a(d,n)&&(h===e||u(h,e,t,i,c)))return d.push(n)}))){v=!1;break}}else if(h!==b&&!u(h,b,t,i,c)){v=!1;break}}return c.delete(e),c.delete(n),v}},function(e,n,t){var r=t(5);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,n){e.exports=function(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}},function(e,n,t){var r=t(93);e.exports=function(e,n){return!!(null==e?0:e.length)&&r(e,n,0)>-1}},function(e,n){e.exports=function(e,n,t){for(var r=t-1,o=e.length;++r<o;)if(e[r]===n)return r;return-1}},function(e,n){e.exports=function(e,n){return e===n||e!=e&&n!=n}},function(e,n,t){var r=t(96),o=Object.prototype.hasOwnProperty;e.exports=function(e,n,t,a,i,u){var c=1&t,l=r(e),f=l.length;if(f!=r(n).length&&!c)return!1;for(var s=f;s--;){var p=l[s];if(!(c?p in n:o.call(n,p)))return!1}var y=u.get(e);if(y&&u.get(n))return y==n;var v=!0;u.set(e,n),u.set(n,e);for(var d=c;++s<f;){var h=e[p=l[s]],b=n[p];if(a)var g=c?a(b,h,p,n,e,u):a(h,b,p,e,n,u);if(!(void 0===g?h===b||i(h,b,t,a,u):g)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var m=e.constructor,x=n.constructor;m!=x&&"constructor"in e&&"constructor"in n&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(v=!1)}return u.delete(e),u.delete(n),v}},function(e,n,t){var r=t(15)(Object.keys,Object);e.exports=r},function(e,n,t){var r=t(45),o=t(8);e.exports=function(e){for(var n=o(e),t=n.length;t--;){var a=n[t],i=e[a];n[t]=[a,i,r(i)]}return n}},function(e,n,t){var r=t(40),o=t(99),a=t(38),i=t(17),u=t(45),c=t(46),l=t(7);e.exports=function(e,n){return i(e)&&u(n)?c(l(e),n):function(t){var i=o(t,e);return void 0===i&&i===n?a(t,e):r(n,i,3)}}},function(e,n,t){var r=t(16);e.exports=function(e,n,t){var o=null==e?void 0:r(e,n);return void 0===o?t:o}},function(e,n,t){var r=t(6),o=t(101),a=t(47),i=Math.max,u=Math.min;e.exports=function(e,n,t){var c,l,f,s,p,y,v=0,d=!1,h=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(n){var t=c,r=l;return c=l=void 0,v=n,s=e.apply(r,t)}function m(e){return v=e,p=setTimeout(O,n),d?g(e):s}function x(e){var t=e-y;return void 0===y||t>=n||t<0||h&&e-v>=f}function O(){var e=o();if(x(e))return w(e);p=setTimeout(O,function(e){var t=n-(e-y);return h?u(t,f-(e-v)):t}(e))}function w(e){return p=void 0,b&&c?g(e):(c=l=void 0,s)}function j(){var e=o(),t=x(e);if(c=arguments,l=this,y=e,t){if(void 0===p)return m(y);if(h)return clearTimeout(p),p=setTimeout(O,n),g(y)}return void 0===p&&(p=setTimeout(O,n)),s}return n=a(n)||0,r(t)&&(d=!!t.leading,f=(h="maxWait"in t)?i(a(t.maxWait)||0,n):f,b="trailing"in t?!!t.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),v=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?s:w(o())},j}},function(e,n,t){var r=t(35);e.exports=function(){return r.Date.now()}},function(e,n,t){var r=t(30),o=t(44);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},function(e,n){e.exports=function(e){return function(n){return e(n)}}},function(e,n,t){(function(e){var r=t(36),o=n&&!n.nodeType&&n,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,t(105)(e))},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,t){var r=t(20),o=t(14),a=t(8);e.exports=function(e){return function(n,t,i){var u=Object(n);if(!o(n)){var c=r(t,3);n=a(n),t=function(e){return c(u[e],e,u)}}var l=e(n,t,i);return l>-1?u[c?n[l]:l]:void 0}}},function(e,n,t){var r=t(108),o=t(20),a=t(109),i=Math.max;e.exports=function(e,n,t){var u=null==e?0:e.length;if(!u)return-1;var c=null==t?0:a(t);return c<0&&(c=i(u+c,0)),r(e,o(n,3),c)}},function(e,n){e.exports=function(e,n,t,r){for(var o=e.length,a=t+(r?1:-1);r?a--:++a<o;)if(n(e[a],a,e))return a;return-1}},function(e,n,t){var r=t(110);e.exports=function(e){var n=r(e),t=n%1;return n==n?t?n-t:n:0}},function(e,n,t){var r=t(47);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,n,t){var r=t(15)(Object.keys,Object);e.exports=r},function(e,n,t){"use strict";t.r(n);var r=t(6),o=t.n(r),a=t(2),i=t.n(a),u=t(4),c=t.n(u),l=t(0),f=t.n(l),s=t(1),p=t.n(s),y=t(22),v=t.n(y),d=t(21),h=t.n(d),b=t(3),g=t.n(b);function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};for(var r in e)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function x(e){var n=function(e){return void 0!==e},t=e._x,r=e._x1,o=e._x0,a=e._voronoiX,i=e._y,u=e._y1,l=e._y0,f=e._voronoiY,s=n(r)?r:t,p=n(u)?u:i,y={x:n(a)?a:s,x0:n(o)?o:t,y:n(f)?f:p,y0:n(l)?l:i};return c()({},y,e)}function O(e){var n=e.padding,t="number"==typeof n?n:0,r="object"==typeof n?n:{};return{top:r.top||t,bottom:r.bottom||t,left:r.left||t,right:r.right||t}}function w(e,n){return g()(e)?e(n):e}function j(e){return"number"==typeof e?e*(Math.PI/180):e}function P(e){var n=O(e),t=n.left,r=n.right,o=n.top,a=n.bottom,i=e.width,u=e.height;return Math.min(i-t-r,u-o-a)/2}function T(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;var n=function(e){return e.reduce((function(e,t){var r=t.props||{};return e||r.horizontal||!r.children?e=e||r.horizontal:n(p.a.Children.toArray(r.children))}),!1)};return n(p.a.Children.toArray(e.children))}var E={omit:m,getPoint:x,scalePoint:function(e,n){var t=e.scale,r=e.polar,o=e.horizontal,a=x(n),i=e.origin||{x:0,y:0},u=o?t.y(a.y):t.x(a.x),c=o?t.y(a.y0):t.x(a.x0),l=o?t.x(a.x):t.y(a.y),f=o?t.x(a.x0):t.y(a.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:O,getStyles:function(e,n){if(!e)return c()({parent:{height:"100%",width:"100%"}},n);var t=e.data,r=e.labels,o=e.parent,a=n&&n.parent||{},i=n&&n.labels||{},u=n&&n.data||{};return{parent:c()({},o,a,{width:"100%",height:"100%"}),labels:c()({},r,i),data:c()({},t,u)}},evaluateProp:w,evaluateStyle:function(e,n){return e&&Object.keys(e).some((function(n){return g()(e[n])}))?Object.keys(e).reduce((function(t,r){return t[r]=w(e[r],n),t}),{}):e},degreesToRadians:j,radiansToDegrees:function(e){return"number"==typeof e?e/(Math.PI/180):e},getRadius:P,getPolarOrigin:function(e){var n=e.width,t=e.height,r=O(e),o=r.top,a=r.bottom,i=r.left,u=r.right,c=Math.min(n-i-u,t-o-a)/2,l=n/2+i-u,f=t/2+o-a;return{x:l+c>n?c+i-u:l,y:f+c>t?c+o-a:f}},getRange:function(e,n){return e.range&&e.range[n]?e.range[n]:e.range&&Array.isArray(e.range)?e.range:e.polar?function(e,n){return"x"===n?[j(e.startAngle||0),j(e.endAngle||360)]:[e.innerRadius||0,P(e)]}(e,n):function(e,n){var t="x"!==n,r=O(e);return t?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}(e,n)},createAccessor:function(e){return g()(e)?e:null==e?function(e){return e}:h()(e)},modifyProps:function(e,n,t){var r=m(e.theme&&e.theme[t]?e.theme[t]:{},["style"]),o=T(e),a=void 0===o?{}:{horizontal:o};return c()(a,e,r,n)},getCurrentAxis:function(e,n){return n?"x"===e?"y":"x":e},reduceChildren:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,n){return e.concat(n)},a=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(e,c,l){return e.reduce((function(e,r,f){var s=r.type&&r.type.role,y=r.props.name||"".concat(s,"-").concat(c[f]);if(r.props&&r.props.children){var d=i()({},r.props,v()(t,a)),h=r.type&&g()(r.type.getChildren)?r.type.getChildren(d):p.a.Children.toArray(r.props.children).map((function(e){var n=i()({},e.props,v()(d,a));return p.a.cloneElement(e,n)})),b=h.map((function(e,n){return"".concat(y,"-").concat(n)})),m=u(h,b,r);e=o(e,m)}else{var x=n(r,y,l);x&&(e=o(e,x))}return e}),r)},c=e.map((function(e,n){return n}));return u(e,c)},isHorizontal:T},A=t(49),C=t.n(A),_=t(50),k=t.n(_),S=t(51),D=t.n(S),M=function(e){0};var N=function(e){var n=function(n,t,r,o){var a=t[r];if(null==a)return n?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):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 e.apply(void 0,[t,r,o].concat(u))},t=n.bind(null,!1);return t.isRequired=n.bind(null,!0),t},R=function(){return null},I=function(){},z=function(e){return void 0===e?I:null===e?R:e.constructor},F=function(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).slice(8,-1)},V={deprecated:function(e,n){return function(t,r,o){var a=t[r];return null!=a&&M('"'.concat(r,'" property of "').concat(o,'" has been deprecated ').concat(n)),f.a.checkPropTypes(function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}({},r,e),t,r,o)}},allOfType:function(e){return N((function(n,t,r){for(var o=arguments.length,a=new Array(o>3?o-3:0),i=3;i<o;i++)a[i-3]=arguments[i];return e.reduce((function(e,o){return e||o.apply(void 0,[n,t,r].concat(a))}),void 0)}))},nonNegative:N((function(e,n,t){var r=e[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(t,"` must be a non-negative number."))})),integer:N((function(e,n,t){var r=e[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(t,"` must be an integer."))})),greaterThanZero:N((function(e,n,t){var r=e[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(t,"` must be a number greater than zero."))})),domain:N((function(e,n,t){var r=e[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(t,"` must be an array of two unique numeric values."))})),scale:N((function(e,n,t){var r,o=["linear","time","log","sqrt"],a=e[n];if(r=a,!(g()(r)?g()(r.copy)&&g()(r.domain)&&g()(r.range):"string"==typeof r&&-1!==o.indexOf(r)))return new Error("`".concat(n,"` in `").concat(t,"` must be a d3 scale."))})),homogeneousArray:N((function(e,n,t){var r=e[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(t,"` must be an array."));if(!(r.length<2)){var o=z(r[0]),a=D()(r,(function(e){return o!==z(e)}));if(a){var i=F(r[0]),u=F(a);return new Error("Expected `".concat(n,"` in `").concat(t,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:N((function(e,n){if(e[n]&&Array.isArray(e[n])&&e[n].length!==e.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),regExp:N((function(e,n,t){if(e[n]&&!k()(e[n]))return new Error("`".concat(n,"` in `").concat(t,"` must be a regular expression."))}))};function B(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?L(e):n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).map={},t.index=1,t.portalUpdate=t.portalUpdate.bind(L(t)),t.portalRegister=t.portalRegister.bind(L(t)),t.portalDeregister=t.portalDeregister.bind(L(t)),t}var t,r,o;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(e,n){this.map[e]=n,this.forceUpdate()}},{key:"portalDeregister",value:function(e){delete this.map[e],this.forceUpdate()}},{key:"getChildren",value:function(){var e=this;return Object.keys(this.map).map((function(n){var t=e.map[n];return t?p.a.cloneElement(t,{key:n}):t}))}},{key:"render",value:function(){return p.a.createElement("svg",this.props,this.getChildren())}}])&&B(t.prototype,r),o&&B(t,o),n}(p.a.Component);Object.defineProperty(U,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(U,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:f.a.string,height:V.nonNegative,style:f.a.object,viewBox:f.a.string,width:V.nonNegative}});var H=p.a.createContext({});H.displayName="PortalContext";var W,q,K=H,G=0,Y=0,Z=0,$=0,X=0,Q=0,J="object"==typeof performance&&performance.now?performance:Date,ee="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ne(){return X||(ee(te),X=J.now()+Q)}function te(){X=0}function re(){this._call=this._time=this._next=null}function oe(e,n,t){var r=new re;return r.restart(e,n,t),r}function ae(){X=($=J.now())+Q,G=Y=0;try{!function(){ne(),++G;for(var e,n=W;n;)(e=X-n._time)>=0&&n._call.call(null,e),n=n._next;--G}()}finally{G=0,function(){var e,n,t=W,r=1/0;for(;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:W=n);q=e,ue(r)}(),X=0}}function ie(){var e=J.now(),n=e-$;n>1e3&&(Q-=n,$=e)}function ue(e){G||(Y&&(Y=clearTimeout(Y)),e-X>24?(e<1/0&&(Y=setTimeout(ae,e-J.now()-Q)),Z&&(Z=clearInterval(Z))):(Z||($=J.now(),Z=setInterval(ie,1e3)),G=1,ee(ae)))}re.prototype=oe.prototype={constructor:re,restart:function(e,n,t){if("function"!=typeof e)throw new TypeError("callback is not a function");t=(null==t?ne():+t)+(null==n?0:+n),this._next||q===this||(q?q._next=this:W=this,q=this),this._call=e,this._time=t,ue()},stop:function(){this._call&&(this._call=null,this._time=1/0,ue())}};function ce(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var le=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=oe(this.loop)}var n,t,r;return n=e,(t=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(e){e.callback(ne()-e.startTime,e.duration)}))}},{key:"start",value:function(){this.timer.start()}},{key:"stop",value:function(){this.timer.stop()}},{key:"subscribe",value:function(e,n){return n=this.shouldAnimate?n:0,this.subscribers.push({startTime:ne(),callback:e,duration:n})}},{key:"unsubscribe",value:function(e){null!==e&&delete this.subscribers[e-1]}}])&&ce(n.prototype,t),r&&ce(n,r),e}(),fe=p.a.createContext({transitionTimer:new le,animationTimer:new le});fe.displayName="TimerContext";var se=fe;function pe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ye(){return(ye=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ve(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}var he=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=de(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).containerId=o()(e)&&void 0!==e.containerId?e.containerId:C()("victory-container-"),t.savePortalRef=function(e){return t.portalRef=e,e},t.portalUpdate=function(e,n){return t.portalRef.portalUpdate(e,n)},t.portalRegister=function(){return t.portalRef.portalRegister()},t.portalDeregister=function(e){return t.portalRef.portalDeregister(e)},t.saveContainerRef=e&&g()(e.containerRef)?e.containerRef:function(e){return t.containerRef=e,e},t.shouldHandleWheel=e&&e.events&&e.events.onWheel,t.shouldHandleWheel&&(t.handleWheel=function(e){return e.preventDefault()}),t}var t,r,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(e){return"".concat(this.containerId,"-").concat(e)}},{key:"getChildren",value:function(e){return e.children}},{key:"renderContainer",value:function(e,n,t){var r=e.title,o=e.desc,a=e.portalComponent,u=e.className,l=e.width,f=e.height,s=e.portalZIndex,y=e.responsive,v=this.getChildren(e),d=y?{width:"100%",height:"auto"}:{width:l,height:f},h=i()({pointerEvents:"none",touchAction:"none",position:"relative"},d),b=i()({zIndex:s,position:"absolute",top:0,left:0},d),g=i()({pointerEvents:"all"},d),m=i()({overflow:"visible"},d),x={width:l,height:f,viewBox:n.viewBox,style:m};return p.a.createElement(K.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},p.a.createElement("div",{style:c()({},t,h),className:u,ref:this.saveContainerRef},p.a.createElement("svg",ye({},n,{style:g}),r?p.a.createElement("title",{id:this.getIdForElement("title")},r):null,o?p.a.createElement("desc",{id:this.getIdForElement("desc")},o):null,v),p.a.createElement("div",{style:b},p.a.cloneElement(a,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){pe(e,n,t[n])}))}return e}({},x,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var e=this.props,n=e.width,t=e.height,r=e.responsive,o=e.events,a=e.title,u=e.desc,c=e.tabIndex,l=r?this.props.style:E.omit(this.props.style,["height","width"]),f=i()({width:n,height:t,tabIndex:c,role:"img","aria-labelledby":a?this.getIdForElement("title"):void 0,"aria-describedby":u?this.getIdForElement("desc"):void 0,viewBox:r?"0 0 ".concat(n," ").concat(t):void 0},o);return this.renderContainer(this.props,f,l)}}])&&ve(t.prototype,r),a&&ve(t,a),n}(p.a.Component);Object.defineProperty(he,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(he,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(he,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]),className:f.a.string,containerId:f.a.oneOfType([f.a.number,f.a.string]),containerRef:f.a.func,desc:f.a.string,events:f.a.object,height:V.nonNegative,name:f.a.string,origin:f.a.shape({x:V.nonNegative,y:V.nonNegative}),polar:f.a.bool,portalComponent:f.a.element,portalZIndex:V.integer,responsive:f.a.bool,style:f.a.object,tabIndex:f.a.number,theme:f.a.object,title:f.a.string,width:V.nonNegative}}),Object.defineProperty(he,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:p.a.createElement(U,null),portalZIndex:99,responsive:!0}}),Object.defineProperty(he,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:se});var be=t(24),ge=t.n(be);function me(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function xe(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}var we=function(e){function n(){return me(this,n),Oe(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var t,r,o;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(M("`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(e){return this.renderInPlace?e:(this.element=e,null)}},{key:"render",value:function(){var e=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,n=this.props.groupComponent,t=e&&e.props||{},r=t.groupComponent?{groupComponent:n,standalone:!1}:{},o=c()(r,t,E.omit(this.props,["children","groupComponent"])),a=e&&p.a.cloneElement(e,o);return this.renderPortal(a)}}])&&xe(t.prototype,r),o&&xe(t,o),n}(p.a.Component);function je(e,n){if(e.polar)return{};var t=function(e,n){n=n||{};var t=e.horizontal,r=e.style.labels||{},o=E.evaluateProp(r.padding,e)||0,a=n._y<0?-1:1;return{x:t?a*o:0,y:t?0:-1*a*o}}(e,n);return{dx:t.x,dy:t.y}}function Pe(e,n){var t=e.polar,r=E.scalePoint(e,n),o=r.x,a=r.y;if(t){var i=function(e,n){var t=e.style,r=_e(e,n),o=t.labels||{},a=E.evaluateProp(o.padding,e)||0,i=E.degreesToRadians(r);return{x:a*Math.cos(i),y:-a*Math.sin(i)}}(e,n);return{x:o+i.x,y:a+i.y}}return{x:o,y:a}}function Te(e){var n=e.labelComponent,t=e.labelPlacement,r=e.polar?"perpendicular":"vertical";return t||(n.props&&n.props.labelPlacement||r)}function Ee(e,n,t){return void 0!==(n=n||{}).label?n.label:Array.isArray(e.labels)?e.labels[t]:e.labels}function Ae(e,n){var t=Te(e);return"perpendicular"===t||"vertical"===t&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function Ce(e,n){var t=Te(e),r=function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}(n);return"parallel"===t||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function _e(e,n){var t=E.getPoint(n).x;return E.radiansToDegrees(e.scale.x(t))}Object.defineProperty(we,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(we,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(we,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:f.a.node,groupComponent:f.a.element}}),Object.defineProperty(we,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:p.a.createElement("g",null)}}),Object.defineProperty(we,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:K});var ke={getText:Ee,getPolarTextAnchor:Ae,getPolarVerticalAnchor:Ce,getPolarAngle:function(e,n){var t=e.labelPlacement,r=e.datum;if(!t||"vertical"===t)return 0;var o,a=void 0!==n?n:_e(e,r);return 0===a||180===a?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a),o+(a>90&&a<180||a>270?1:-1)*("perpendicular"===t?0:90)},getDegrees:_e,getProps:function(e,n){var t=e.scale,r=e.data,o=e.style,a=e.horizontal,i=e.polar,u=e.width,c=e.height,l=r[n],f=_e(e,l),s=i?Ae(e,f):function(e,n){n=n||{};var t=e.style,r=e.horizontal,o=n._y>=0?1:-1,a=t&&t.labels||{};return n.verticalAnchor||a.verticalAnchor?n.verticalAnchor||a.verticalAnchor:r?o>=0?"start":"end":"middle"}(e,l),p=i?Ce(e,f):function(e,n){var t=(n=n||{})._y>=0?1:-1,r=e.style&&e.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":t>=0?"end":"start"}(e,l),y=function(e,n){n=n||{};var t=e.style&&e.style.labels||{};return void 0===n.angle?t.angle:n.angle}(e,l),v=Ee(e,l,n),d=Te(e),h=Pe(e,l),b=h.x,g=h.y,m=je(e,l);return{angle:y,data:r,datum:l,horizontal:a,index:n,polar:i,scale:t,labelPlacement:d,text:v,textAnchor:s,verticalAnchor:p,x:b,y:g,dx:m.dx,dy:m.dy,width:u,height:c,style:o.labels}}},Se=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(t.length>0)return t.reduce((function(e,n){return[e,Se(n)].join(" ")}),Se(e)).trim();if(null==e||"string"==typeof e)return e;var o=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];o.push("".concat(a,"(").concat(i,")"))}return o.join(" ").trim()},De={toTransformString:Se,getColorScale:function(e){var n={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 e?n[e]:n.grayscale}},Me=function(e){return p.a.createElement("tspan",e)};var Ne=function(e){var n=e.children,t=e.title,r=e.desc,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["children","title","desc"]);return p.a.createElement("text",o,t&&p.a.createElement("title",null,t),r&&p.a.createElement("desc",null,r),n)};Ne.propTypes={children:f.a.node,desc:f.a.string,title:f.a.string};var Re=Ne;function Ie(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var ze={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Fe=function(e,n){return e.datum?E.scalePoint(e,e.datum)[n]:0},Ve=function(e){var n=e&&e.fontSize;if("number"==typeof n)return n;if(null==n)return ze.fontSize;if("string"==typeof n){var t=+n.replace("px","");return isNaN(t)?(M("fontSize should be expressed as a number of pixels"),ze.fontSize):t}return ze.fontSize},Be=function(e,n){return E.evaluateProp(e[n],e)},Le=function(e,n,t){return Array.isArray(e)?ge()(e)?t:n:e},Ue=function(e){var n=e.inline,t=e.className,r=e.title,o=e.events,a=e.direction,i=e.text,u=e.style,c=Be(e,"lineHeight"),l=e.textAnchor?E.evaluateProp(e.textAnchor,e):"start",f=e.dx?E.evaluateProp(e.dx,e):0,s=function(e,n){var t=Array.isArray(e.style)?e.style[0]:e.style;n=Le(n,n[0],1);var r=t.fontSize,o=e.dy?E.evaluateProp(e.dy,e):0,a=e.text.length,i=Be(e,"capHeight"),u=t.verticalAnchor||e.verticalAnchor;switch(u?E.evaluateProp(u,e):"middle"){case"end":return o+(i/2+(.5-a)*n)*r;case"middle":return o+(i/2+(.5-a/2)*n)*r;default:return o+(i/2+n/2)*r}}(e,c),y=function(e){var n=e.x,t=e.y,r=e.polar,o=e.style,a=r?ke.getPolarAngle(e):0,i=void 0===o.angle?e.angle:o.angle,u=void 0===i?a:i,c=e.transform||o.transform,l=c&&E.evaluateProp(c,e),f=u&&{rotate:[u,n,t]};return l||u?De.toTransformString(l,f):void 0}(e),v=void 0!==e.x?e.x:Fe(e,"x"),d=void 0!==e.y?e.y:Fe(e,"y"),h=i.map((function(t,r){var o=u[r]||u[0],a=u[r-1]||u[0],i=(o.fontSize+a.fontSize)/2,s=Le(c,(c[r]+(c[r-1]||c[0]))/2,1),y={key:"".concat(e.id,"-key-").concat(r),x:n?void 0:e.x,dx:f,dy:r&&!n?s*i:void 0,textAnchor:o.textAnchor||l,style:o,children:t};return p.a.cloneElement(e.tspanComponent,y)}));return p.a.cloneElement(e.textComponent,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){Ie(e,n,t[n])}))}return e}({},o,{direction:a,dx:f,dy:s,x:v,y:d,transform:y,className:t,title:r,desc:E.evaluateProp(e.desc,e),tabIndex:E.evaluateProp(e.tabIndex,e),id:e.id}),h)},He=function(e){var n=function(e,n){if(null!=e){if(Array.isArray(e))return e.map((function(e){return E.evaluateProp(e,n)}));var t=E.evaluateProp(e,n);if(null!=t)return Array.isArray(t)?t:"".concat(t).split("\n")}}(e.text,e),t=function(e,n){var t=function(e){e=e?c()({},e,ze):ze;var t=E.evaluateStyle(e,n);return i()({},t,{fontSize:Ve(t)})};return Array.isArray(e)&&!ge()(e)?e.map((function(e){return t(e)})):[t(e)]}(e.style,i()({},e,{text:n}));return i()({},e,{style:t,text:n})},We=function(e){if(null===(e=He(e)).text||void 0===e.text)return null;var n=Ue(e);return e.renderInPortal?p.a.createElement(we,null,n):n};We.displayName="VictoryLabel",We.role="label",We.defaultStyles=ze,We.propTypes={active:f.a.bool,angle:f.a.oneOfType([f.a.string,f.a.number]),capHeight:f.a.oneOfType([f.a.string,V.nonNegative,f.a.func]),className:f.a.string,data:f.a.array,datum:f.a.any,desc:f.a.oneOfType([f.a.string,f.a.func]),direction:f.a.oneOf(["rtl","ltr","inherit"]),dx:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),dy:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),events:f.a.object,id:f.a.oneOfType([f.a.number,f.a.string]),index:f.a.oneOfType([f.a.number,f.a.string]),inline:f.a.bool,labelPlacement:f.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:f.a.oneOfType([f.a.string,V.nonNegative,f.a.func,f.a.array]),origin:f.a.shape({x:V.nonNegative,y:V.nonNegative}),polar:f.a.bool,renderInPortal:f.a.bool,scale:f.a.shape({x:V.scale,y:V.scale}),style:f.a.oneOfType([f.a.object,f.a.array]),tabIndex:f.a.oneOfType([f.a.number,f.a.func]),text:f.a.oneOfType([f.a.string,f.a.number,f.a.func,f.a.array]),textAnchor:f.a.oneOfType([f.a.oneOf(["start","middle","end","inherit"]),f.a.func]),textComponent:f.a.element,title:f.a.string,transform:f.a.oneOfType([f.a.string,f.a.object,f.a.func]),tspanComponent:f.a.element,verticalAnchor:f.a.oneOfType([f.a.oneOf(["start","middle","end"]),f.a.func]),x:f.a.oneOfType([f.a.number,f.a.string]),y:f.a.oneOfType([f.a.number,f.a.string])},We.defaultProps={direction:"inherit",textComponent:p.a.createElement(Re,null),tspanComponent:p.a.createElement(Me,null),capHeight:.71,lineHeight:1};var qe=We,Ke={categories:f.a.oneOfType([f.a.arrayOf(f.a.string),f.a.shape({x:f.a.arrayOf(f.a.string),y:f.a.arrayOf(f.a.string)})]),data:f.a.oneOfType([f.a.array,f.a.object]),dataComponent:f.a.element,labelComponent:f.a.element,labels:f.a.oneOfType([f.a.func,f.a.array]),samples:V.nonNegative,sortKey:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),sortOrder:f.a.oneOf(["ascending","descending"]),style:f.a.shape({parent:f.a.object,data:f.a.object,labels:f.a.object}),x:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),y:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),y0:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)])},Ge={animate:f.a.oneOfType([f.a.bool,f.a.object]),containerComponent:f.a.element,domain:f.a.oneOfType([V.domain,f.a.shape({x:V.domain,y:V.domain})]),maxDomain:f.a.oneOfType([f.a.number,f.a.instanceOf(Date),f.a.shape({x:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)]),y:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)])})]),minDomain:f.a.oneOfType([f.a.number,f.a.instanceOf(Date),f.a.shape({x:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)]),y:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)])})]),domainPadding:f.a.oneOfType([f.a.shape({x:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),y:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)])}),f.a.number,f.a.arrayOf(f.a.number)]),eventKey:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string]),events:f.a.arrayOf(f.a.shape({target:f.a.oneOf(["data","labels","parent"]),eventKey:f.a.oneOfType([f.a.array,V.allOfType([V.integer,V.nonNegative]),f.a.string]),eventHandlers:f.a.object})),externalEventMutations:f.a.arrayOf(f.a.shape({callback:f.a.function,childName:f.a.oneOfType([f.a.string,f.a.array]),eventKey:f.a.oneOfType([f.a.array,V.allOfType([V.integer,V.nonNegative]),f.a.string]),mutation:f.a.function,target:f.a.oneOfType([f.a.string,f.a.array])})),groupComponent:f.a.element,height:V.nonNegative,name:f.a.string,origin:f.a.shape({x:f.a.number,y:f.a.number}),padding:f.a.oneOfType([f.a.number,f.a.shape({top:f.a.number,bottom:f.a.number,left:f.a.number,right:f.a.number})]),polar:f.a.bool,range:f.a.oneOfType([V.domain,f.a.shape({x:V.domain,y:V.domain})]),scale:f.a.oneOfType([V.scale,f.a.shape({x:V.scale,y:V.scale})]),sharedEvents:f.a.shape({events:f.a.array,getEventState:f.a.func}),singleQuadrantDomainPadding:f.a.oneOfType([f.a.bool,f.a.shape({x:f.a.oneOfType([f.a.bool]),y:f.a.oneOfType([f.a.bool])})]),standalone:f.a.bool,theme:f.a.object,width:V.nonNegative},Ye={active:f.a.bool,className:f.a.string,clipPath:f.a.string,data:f.a.oneOfType([f.a.array,f.a.object]),desc:f.a.oneOfType([f.a.string,f.a.func]),events:f.a.object,id:f.a.oneOfType([f.a.number,f.a.string]),index:f.a.oneOfType([f.a.number,f.a.string]),origin:f.a.shape({x:f.a.number,y:f.a.number}),polar:f.a.bool,role:f.a.string,scale:f.a.oneOfType([V.scale,f.a.shape({x:V.scale,y:V.scale})]),shapeRendering:f.a.string,style:f.a.object,tabIndex:f.a.oneOfType([f.a.number,f.a.func]),transform:f.a.string};function Ze(){return(Ze=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var $e=function(e){var n=e.desc,t=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["desc"]);return n?p.a.createElement("line",Ze({vectorEffect:"non-scaling-stroke"},t),p.a.createElement("desc",null,n)):p.a.createElement("line",Ze({vectorEffect:"non-scaling-stroke"},t))};function Xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){Qe(e,n,t[n])}))}return e}function Qe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Je=function(e){return p.a.cloneElement(e.lineComponent,Xe({},e.events,{style:E.evaluateStyle(i()({stroke:"black"},e.style),e),desc:E.evaluateProp(e.desc,e),tabIndex:E.evaluateProp(e.tabIndex,e),className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};Je.propTypes=Xe({},{baseProps:Ge,dataProps:Ke,primitiveProps:Ye}.primitiveProps,{datum:f.a.any,lineComponent:f.a.element,x1:f.a.number,x2:f.a.number,y1:f.a.number,y2:f.a.number}),Je.defaultProps={lineComponent:p.a.createElement($e,null),role:"presentation",shapeRendering:"auto"};var en=Je,nn=t(23),tn=t.n(nn),rn=t(48);function on(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function an(e){return Array.isArray(e)&&e.length>0}function un(e){return Array.isArray(e)&&e.some((function(e){return e instanceof Date}))}var cn={containsDates:un,containsNumbers:function(e){return Array.isArray(e)&&e.some((function(e){return"number"==typeof e}))},containsOnlyStrings:function(e){return an(e)&&e.every((function(e){return"string"==typeof e}))},containsStrings:function(e){return Array.isArray(e)&&e.some((function(e){return"string"==typeof e}))},getMaxValue:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.concat(t);return un(o)?new Date(Math.max.apply(Math,on(o))):Math.max.apply(Math,on(o))},getMinValue:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.concat(t);return un(o)?new Date(Math.min.apply(Math,on(o))):Math.min.apply(Math,on(o))},isArrayOfArrays:function(e){return an(e)&&e.every(Array.isArray)},removeUndefined:function(e){return e.filter((function(e){return void 0!==e}))}};function ln(e,n,t){var r=n.a,o=n.d,a=n.e,i=n.f;return"y"===t?o*e+i:r*e+a}function fn(e){if(!e.nativeEvent||void 0===e.nativeEvent.identifier){var n=function(e){return"svg"===e.nodeName?e:e.parentNode?n(e.parentNode):e};return n(e.target)}}function sn(e,n,t,r){var o=e.polar,a=e.horizontal;if(o){var i=e.origin||{x:0,y:0},u=t-i.x,c=r-i.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),f=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(f),y:n.y.invert(l)}}return{x:a?n.x.invert(r):n.x.invert(t),y:a?n.y.invert(t):n.y.invert(r)}}var pn={getParentSVG:fn,getSVGEventCoordinates:function(e,n){if(e.nativeEvent&&void 0!==e.nativeEvent.identifier)return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var t=function(e){return e.getScreenCTM().inverse()}(n=n||fn(e));return{x:ln(e.clientX,t,"x"),y:ln(e.clientY,t,"y")}},getDomainCoordinates:function(e,n){var t=e.scale,r=e.horizontal;return n=n||{x:t.x.domain(),y:t.y.domain()},{x:r?[t.y(n.y[0]),t.y(n.y[1])]:[t.x(n.x[0]),t.x(n.x[1])],y:r?[t.x(n.x[0]),t.x(n.x[1])]:[t.y(n.y[0]),t.y(n.y[1])]}},getDataCoordinates:sn,getBounds:function(e){var n=e.x1,t=e.x2,r=e.y1,o=e.y2,a=e.scale,i=sn(e,a,n,r),u=sn(e,a,t,o),c=function(e,n){return[cn.getMinValue([e,n]),cn.getMaxValue([e,n])]};return{x:c(i.x,u.x),y:c(i.y,u.y)}}};function yn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var vn={getDimension:function(e){var n=e.horizontal,t=e.cursorDimension;return n&&t?"x"===t?"y":"x":t},withinBounds:function(e,n){var t=tn()(n,Number),r=t.x1,o=t.x2,a=t.y1,i=t.y2,u=tn()(e,Number),c=u.x,l=u.y;return c>=Math.min(r,o)&&c<=Math.max(r,o)&&l>=Math.min(a,i)&&l<=Math.max(a,i)},onMouseMove:function(e,n){var t=n.onCursorChange,r=n.domain,o=this.getDimension(n),a=n.parentSVG||pn.getParentSVG(e),i=pn.getSVGEventCoordinates(e,a),u=pn.getDataCoordinates(n,n.scale,i.x,i.y),c=this.withinBounds(u,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]});(c||(u=null),g()(t))&&(c?t(o?u[o]:u,n):u!==n.cursorValue&&t(n.defaultCursorValue||null,n));return[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:u,parentSVG:a}}}]},onTouchEnd:function(e,n){var t=n.onCursorChange;return g()(n.onCursorChange)&&t(null,n),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}},dn=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){yn(e,n,t[n])}))}return e}({},vn,{onMouseMove:t.n(rn)()(vn.onMouseMove.bind(vn),32,{leading:!0,trailing:!1}),onTouchEnd:vn.onTouchEnd.bind(vn)});function hn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){gn(e,n,t[n])}))}return e}function bn(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function gn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function xn(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function On(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}var wn=function(e){var n,t;return t=n=function(e){function n(){return mn(this,n),On(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var t,r,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"getCursorPosition",value:function(e){var n=e.cursorValue,t=e.defaultCursorValue,r=e.domain,o=e.cursorDimension;return n||("number"==typeof t?gn({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o,t):t)}},{key:"getCursorLabelOffset",value:function(e){var n=e.cursorLabelOffset;return"number"==typeof n?{x:n,y:n}:n}},{key:"getPadding",value:function(e){if(void 0===e.padding){var n=e.children.find((function(e){return o()(e.props)&&void 0!==e.props.padding}));return E.getPadding(n.props)}return E.getPadding(e)}},{key:"getCursorElements",value:function(e){var n=e.scale,t=e.cursorLabelComponent,r=e.cursorLabel,o=e.cursorComponent,a=e.width,u=e.height,l=e.name,f=e.horizontal,s=dn.getDimension(e),y=this.getCursorPosition(e),v=this.getCursorLabelOffset(e);if(!y)return[];var d=[],h=this.getPadding(e),b={x:f?n.y(y.y):n.x(y.x),y:f?n.x(y.x):n.y(y.y)};if(r){var g=c()({active:!0},t.props,{x:b.x+v.x,y:b.y+v.y,datum:y,active:!0,key:"".concat(l,"-cursor-label")});d.push(p.a.cloneElement(t,c()({},g,{text:E.evaluateProp(r,g)})))}var m=i()({stroke:"black"},o.props.style);return"x"!==s&&void 0!==s||d.push(p.a.cloneElement(o,{key:"".concat(l,"-x-cursor"),x1:b.x,x2:b.x,y1:h.top,y2:u-h.bottom,style:m})),"y"!==s&&void 0!==s||d.push(p.a.cloneElement(o,{key:"".concat(l,"-y-cursor"),x1:h.left,x2:a-h.right,y1:b.y,y2:b.y,style:m})),d}},{key:"getChildren",value:function(e){return bn(p.a.Children.toArray(e.children)).concat(bn(this.getCursorElements(e)))}}])&&xn(t.prototype,r),a&&xn(t,a),n}(e),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryCursorContainer"}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:hn({},he.propTypes,{cursorDimension:f.a.oneOf(["x","y"]),cursorLabel:f.a.func,cursorLabelComponent:f.a.element,cursorLabelOffset:f.a.oneOfType([f.a.number,f.a.shape({x:f.a.number,y:f.a.number})]),defaultCursorValue:f.a.oneOfType([f.a.number,f.a.shape({x:f.a.number,y:f.a.number})]),disable:f.a.bool,onCursorChange:f.a.func})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:hn({},he.defaultProps,{cursorLabelComponent:p.a.createElement(qe,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:p.a.createElement(en,null)})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseLeave:function(){return[]},onTouchCancel:function(){return[]},onMouseMove:function(n,t){return e.disable?{}:dn.onMouseMove(n,t)},onTouchMove:function(n,t){return e.disable?{}:dn.onMouseMove(n,t)}}}]}}),t},jn=wn(he);t.d(n,"cursorContainerMixin",(function(){return wn})),t.d(n,"VictoryCursorContainer",(function(){return jn})),t.d(n,"CursorHelpers",(function(){return dn}))}])})); | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryCursorContainer=n(require("react")):e.VictoryCursorContainer=n(e.React)}(window,(function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=112)}([function(e,n,t){e.exports=t(59)()},function(n,t){n.exports=e},function(e,n,t){var r=t(11),o=t(55),a=t(56),i=t(14),u=t(31),c=t(8),l=Object.prototype.hasOwnProperty,f=a((function(e,n){if(u(n)||i(n))o(n,c(n),e);else for(var t in n)l.call(n,t)&&r(e,t,n[t])}));e.exports=f},function(e,n,t){var r=t(29),o=t(6);e.exports=function(e){if(!o(e))return!1;var n=r(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(e,n,t){var r=t(24),o=t(13),a=t(28),i=t(58),u=Object.prototype,c=u.hasOwnProperty,l=r((function(e,n){e=Object(e);var t=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&a(n[0],n[1],l)&&(r=1);++t<r;)for(var f=n[t],s=i(f),p=-1,y=s.length;++p<y;){var v=s[p],d=e[v];(void 0===d||o(d,u[v])&&!c.call(e,v))&&(e[v]=f[v])}return e}));e.exports=l},function(e,n){var t=Array.isArray;e.exports=t},function(e,n){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(15)(Object.keys,Object);e.exports=r},function(e,n,t){var r=t(5),o=t(17),a=t(63),i=t(33);e.exports=function(e,n){return r(e)?e:o(e,n)?[e]:a(i(e))}},function(e,n,t){var r=t(13);e.exports=function(e,n){for(var t=e.length;t--;)if(r(e[t][0],n))return t;return-1}},function(e,n,t){var r=t(12),o=t(13),a=Object.prototype.hasOwnProperty;e.exports=function(e,n,t){var i=e[n];a.call(e,n)&&o(i,t)&&(void 0!==t||n in e)||r(e,n,t)}},function(e,n,t){var r=t(53);e.exports=function(e,n,t){"__proto__"==n&&r?r(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}},function(e,n){e.exports=function(e,n){return e===n||e!=e&&n!=n}},function(e,n,t){var r=t(3),o=t(30);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,n){e.exports=function(e,n){return function(t){return e(n(t))}}},function(e,n,t){var r=t(9),o=t(7);e.exports=function(e,n){for(var t=0,a=(n=r(n,e)).length;null!=e&&t<a;)e=e[o(n[t++])];return t&&t==a?e:void 0}},function(e,n,t){var r=t(5),o=t(32),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,n){if(r(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=n&&e in Object(n))}},function(e,n){e.exports=function(){return!1}},function(e,n,t){var r=t(81),o=t(98),a=t(25),i=t(5),u=t(20);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):u(e)}},function(e,n,t){var r=t(76),o=t(77),a=t(17),i=t(7);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,n,t){var r=t(61),o=t(71)((function(e,n){return null==e?{}:r(e,n)}));e.exports=o},function(e,n,t){var r=t(12),o=t(78),a=t(19);e.exports=function(e,n){var t={};return n=a(n,3),o(e,(function(e,o,a){r(t,o,n(e,o,a))})),t}},function(e,n,t){var r=t(111),o=t(41),a=t(18),i=t(5),u=t(14),c=t(42),l=t(31),f=t(43),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||f(e)||a(e)))return!e.length;var n=o(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(l(e))return!r(e).length;for(var t in e)if(s.call(e,t))return!1;return!0}},function(e,n,t){var r=t(25),o=t(26),a=t(27);e.exports=function(e,n){return a(o(e,n,r),e+"")}},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(57),o=Math.max;e.exports=function(e,n,t){return n=o(void 0===n?e.length-1:n,0),function(){for(var a=arguments,i=-1,u=o(a.length-n,0),c=Array(u);++i<u;)c[i]=a[n+i];i=-1;for(var l=Array(n+1);++i<n;)l[i]=a[i];return l[n]=t(c),r(e,this,l)}}},function(e,n){e.exports=function(e){return e}},function(e,n){e.exports=function(){return!1}},function(e,n){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,n){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,n){e.exports=function(){return!1}},function(e,n){e.exports=function(){return!1}},function(e,n,t){var r=t(65);e.exports=function(e){return null==e?"":r(e)}},function(e,n,t){var r=t(35).Symbol;e.exports=r},function(e,n,t){var r=t(36),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,n,t){(function(n){var t="object"==typeof n&&n&&n.Object===Object&&n;e.exports=t}).call(this,t(66))},function(e,n){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},function(e,n,t){var r=t(69),o=t(70);e.exports=function(e,n){return null!=e&&o(e,n,r)}},function(e,n,t){var r=t(83),o=t(84),a=t(85),i=t(86),u=t(87);function c(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=u,e.exports=c},function(e,n,t){var r=t(88),o=t(44);e.exports=function e(n,t,a,i,u){return n===t||(null==n||null==t||!o(n)&&!o(t)?n!=n&&t!=t:r(n,t,a,i,e,u))}},function(e,n){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,n){e.exports=function(){return!1}},function(e,n){e.exports=function(){return!1}},function(e,n){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,n,t){var r=t(6);e.exports=function(e){return e==e&&!r(e)}},function(e,n){e.exports=function(e,n){return function(t){return null!=t&&(t[e]===n&&(void 0!==n||e in Object(t)))}}},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(100),o=t(6);e.exports=function(e,n,t){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(t)&&(a="leading"in t?!!t.leading:a,i="trailing"in t?!!t.trailing:i),r(e,n,{leading:a,maxWait:n,trailing:i})}},function(e,n,t){var r=t(33),o=0;e.exports=function(e){var n=++o;return r(e)+n}},function(e,n,t){var r=t(102),o=t(103),a=t(104),i=a&&a.isRegExp,u=i?o(i):r;e.exports=u},function(e,n,t){var r=t(106)(t(107));e.exports=r},,function(e,n,t){var r=t(54),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,n){e.exports=function(e,n){return null==e?void 0:e[n]}},function(e,n,t){var r=t(11),o=t(12);e.exports=function(e,n,t,a){var i=!t;t||(t={});for(var u=-1,c=n.length;++u<c;){var l=n[u],f=a?a(t[l],e[l],l,t,e):void 0;void 0===f&&(f=e[l]),i?o(t,l,f):r(t,l,f)}return t}},function(e,n,t){var r=t(24),o=t(28);e.exports=function(e){return r((function(n,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,u=a>2?t[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(t[0],t[1],u)&&(i=a<3?void 0:i,a=1),n=Object(n);++r<a;){var c=t[r];c&&e(n,c,r,i)}return n}))}},function(e,n){e.exports=function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}},function(e,n){e.exports=function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}},function(e,n,t){"use strict";var r=t(60);function o(){}e.exports=function(){function e(e,n,t,o,a,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 n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return t.checkPropTypes=o,t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n,t){var r=t(62),o=t(38);e.exports=function(e,n){return r(e,n,(function(n,t){return o(e,t)}))}},function(e,n,t){var r=t(16),o=t(68),a=t(9);e.exports=function(e,n,t){for(var i=-1,u=n.length,c={};++i<u;){var l=n[i],f=r(e,l);t(f,l)&&o(c,a(l,e),f)}return c}},function(e,n,t){var r=t(64),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(o,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));e.exports=i},function(e,n){e.exports=function(e){return e}},function(e,n,t){var r=t(34),o=t(67),a=t(5),i=t(32),u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(n){if("string"==typeof n)return n;if(a(n))return o(n,e)+"";if(i(n))return c?c.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){e.exports=function(e,n){for(var t=-1,r=null==e?0:e.length,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}},function(e,n,t){var r=t(11),o=t(9),a=t(37),i=t(6),u=t(7);e.exports=function(e,n,t,c){if(!i(e))return e;for(var l=-1,f=(n=o(n,e)).length,s=f-1,p=e;null!=p&&++l<f;){var y=u(n[l]),v=t;if(l!=s){var d=p[y];void 0===(v=c?c(d,y,p):void 0)&&(v=i(d)?d:a(n[l+1])?[]:{})}r(p,y,v),p=p[y]}return e}},function(e,n){e.exports=function(e,n){return null!=e&&n in Object(e)}},function(e,n,t){var r=t(9),o=t(18),a=t(5),i=t(37),u=t(30),c=t(7);e.exports=function(e,n,t){for(var l=-1,f=(n=r(n,e)).length,s=!1;++l<f;){var p=c(n[l]);if(!(s=null!=e&&t(e,p)))break;e=e[p]}return s||++l!=f?s:!!(f=null==e?0:e.length)&&u(f)&&i(p,f)&&(a(e)||o(e))}},function(e,n,t){var r=t(72),o=t(26),a=t(27);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,n,t){var r=t(73);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,n,t){var r=t(74),o=t(75);e.exports=function e(n,t,a,i,u){var c=-1,l=n.length;for(a||(a=o),u||(u=[]);++c<l;){var f=n[c];t>0&&a(f)?t>1?e(f,t-1,a,i,u):r(u,f):i||(u[u.length]=f)}return u}},function(e,n){e.exports=function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}},function(e,n,t){var r=t(34),o=t(18),a=t(5),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,n){e.exports=function(e){return function(n){return null==n?void 0:n[e]}}},function(e,n,t){var r=t(16);e.exports=function(e){return function(n){return r(n,e)}}},function(e,n,t){var r=t(79),o=t(8);e.exports=function(e,n){return e&&r(e,n,o)}},function(e,n,t){var r=t(80)();e.exports=r},function(e,n){e.exports=function(e){return function(n,t,r){for(var o=-1,a=Object(n),i=r(n),u=i.length;u--;){var c=i[e?u:++o];if(!1===t(a[c],c,a))break}return n}}},function(e,n,t){var r=t(82),o=t(97),a=t(46);e.exports=function(e){var n=o(e);return 1==n.length&&n[0][2]?a(n[0][0],n[0][1]):function(t){return t===e||r(t,e,n)}}},function(e,n,t){var r=t(39),o=t(40);e.exports=function(e,n,t,a){var i=t.length,u=i,c=!a;if(null==e)return!u;for(e=Object(e);i--;){var l=t[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<u;){var f=(l=t[i])[0],s=e[f],p=l[1];if(c&&l[2]){if(void 0===s&&!(f in e))return!1}else{var y=new r;if(a)var v=a(s,p,f,e,n,y);if(!(void 0===v?o(p,s,3,a,y):v))return!1}}return!0}},function(e,n){e.exports=function(){this.__data__=[],this.size=0}},function(e,n,t){var r=t(10),o=Array.prototype.splice;e.exports=function(e){var n=this.__data__,t=r(n,e);return!(t<0)&&(t==n.length-1?n.pop():o.call(n,t,1),--this.size,!0)}},function(e,n,t){var r=t(10);e.exports=function(e){var n=this.__data__,t=r(n,e);return t<0?void 0:n[t][1]}},function(e,n,t){var r=t(10);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,n,t){var r=t(10);e.exports=function(e,n){var t=this.__data__,o=r(t,e);return o<0?(++this.size,t.push([e,n])):t[o][1]=n,this}},function(e,n,t){var r=t(39),o=t(89),a=t(94),i=t(95),u=t(41),c=t(5),l=t(42),f=t(43),s="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,n,t,y,v,d){var h=c(e),b=c(n),g=h?"[object Array]":u(e),m=b?"[object Array]":u(n),x=(g="[object Arguments]"==g?s:g)==s,O=(m="[object Arguments]"==m?s:m)==s,w=g==m;if(w&&l(e)){if(!l(n))return!1;h=!0,x=!1}if(w&&!x)return d||(d=new r),h||f(e)?o(e,n,t,y,v,d):a(e,n,g,t,y,v,d);if(!(1&t)){var j=x&&p.call(e,"__wrapped__"),P=O&&p.call(n,"__wrapped__");if(j||P){var T=j?e.value():e,E=P?n.value():n;return d||(d=new r),v(T,E,t,y,d)}}return!!w&&(d||(d=new r),i(e,n,t,y,v,d))}},function(e,n,t){var r=t(90),o=t(91),a=t(92);e.exports=function(e,n,t,i,u,c){var l=1&t,f=e.length,s=n.length;if(f!=s&&!(l&&s>f))return!1;var p=c.get(e);if(p&&c.get(n))return p==n;var y=-1,v=!0,d=2&t?new r:void 0;for(c.set(e,n),c.set(n,e);++y<f;){var h=e[y],b=n[y];if(i)var g=l?i(b,h,y,n,e,c):i(h,b,y,e,n,c);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(n,(function(e,n){if(!a(d,n)&&(h===e||u(h,e,t,i,c)))return d.push(n)}))){v=!1;break}}else if(h!==b&&!u(h,b,t,i,c)){v=!1;break}}return c.delete(e),c.delete(n),v}},function(e,n,t){var r=t(5);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,n){e.exports=function(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}},function(e,n,t){var r=t(93);e.exports=function(e,n){return!!(null==e?0:e.length)&&r(e,n,0)>-1}},function(e,n){e.exports=function(e,n,t){for(var r=t-1,o=e.length;++r<o;)if(e[r]===n)return r;return-1}},function(e,n){e.exports=function(e,n){return e===n||e!=e&&n!=n}},function(e,n,t){var r=t(96),o=Object.prototype.hasOwnProperty;e.exports=function(e,n,t,a,i,u){var c=1&t,l=r(e),f=l.length;if(f!=r(n).length&&!c)return!1;for(var s=f;s--;){var p=l[s];if(!(c?p in n:o.call(n,p)))return!1}var y=u.get(e);if(y&&u.get(n))return y==n;var v=!0;u.set(e,n),u.set(n,e);for(var d=c;++s<f;){var h=e[p=l[s]],b=n[p];if(a)var g=c?a(b,h,p,n,e,u):a(h,b,p,e,n,u);if(!(void 0===g?h===b||i(h,b,t,a,u):g)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var m=e.constructor,x=n.constructor;m!=x&&"constructor"in e&&"constructor"in n&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(v=!1)}return u.delete(e),u.delete(n),v}},function(e,n,t){var r=t(15)(Object.keys,Object);e.exports=r},function(e,n,t){var r=t(45),o=t(8);e.exports=function(e){for(var n=o(e),t=n.length;t--;){var a=n[t],i=e[a];n[t]=[a,i,r(i)]}return n}},function(e,n,t){var r=t(40),o=t(99),a=t(38),i=t(17),u=t(45),c=t(46),l=t(7);e.exports=function(e,n){return i(e)&&u(n)?c(l(e),n):function(t){var i=o(t,e);return void 0===i&&i===n?a(t,e):r(n,i,3)}}},function(e,n,t){var r=t(16);e.exports=function(e,n,t){var o=null==e?void 0:r(e,n);return void 0===o?t:o}},function(e,n,t){var r=t(6),o=t(101),a=t(47),i=Math.max,u=Math.min;e.exports=function(e,n,t){var c,l,f,s,p,y,v=0,d=!1,h=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(n){var t=c,r=l;return c=l=void 0,v=n,s=e.apply(r,t)}function m(e){return v=e,p=setTimeout(O,n),d?g(e):s}function x(e){var t=e-y;return void 0===y||t>=n||t<0||h&&e-v>=f}function O(){var e=o();if(x(e))return w(e);p=setTimeout(O,function(e){var t=n-(e-y);return h?u(t,f-(e-v)):t}(e))}function w(e){return p=void 0,b&&c?g(e):(c=l=void 0,s)}function j(){var e=o(),t=x(e);if(c=arguments,l=this,y=e,t){if(void 0===p)return m(y);if(h)return clearTimeout(p),p=setTimeout(O,n),g(y)}return void 0===p&&(p=setTimeout(O,n)),s}return n=a(n)||0,r(t)&&(d=!!t.leading,f=(h="maxWait"in t)?i(a(t.maxWait)||0,n):f,b="trailing"in t?!!t.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),v=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?s:w(o())},j}},function(e,n,t){var r=t(35);e.exports=function(){return r.Date.now()}},function(e,n,t){var r=t(29),o=t(44);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},function(e,n){e.exports=function(e){return function(n){return e(n)}}},function(e,n,t){(function(e){var r=t(36),o=n&&!n.nodeType&&n,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,t(105)(e))},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,t){var r=t(19),o=t(14),a=t(8);e.exports=function(e){return function(n,t,i){var u=Object(n);if(!o(n)){var c=r(t,3);n=a(n),t=function(e){return c(u[e],e,u)}}var l=e(n,t,i);return l>-1?u[c?n[l]:l]:void 0}}},function(e,n,t){var r=t(108),o=t(19),a=t(109),i=Math.max;e.exports=function(e,n,t){var u=null==e?0:e.length;if(!u)return-1;var c=null==t?0:a(t);return c<0&&(c=i(u+c,0)),r(e,o(n,3),c)}},function(e,n){e.exports=function(e,n,t,r){for(var o=e.length,a=t+(r?1:-1);r?a--:++a<o;)if(n(e[a],a,e))return a;return-1}},function(e,n,t){var r=t(110);e.exports=function(e){var n=r(e),t=n%1;return n==n?t?n-t:n:0}},function(e,n,t){var r=t(47);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,n,t){var r=t(15)(Object.keys,Object);e.exports=r},function(e,n,t){"use strict";t.r(n);var r=t(6),o=t.n(r),a=t(2),i=t.n(a),u=t(4),c=t.n(u),l=t(0),f=t.n(l),s=t(1),p=t.n(s),y=t(21),v=t.n(y),d=t(20),h=t.n(d),b=t(3),g=t.n(b);function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};for(var r in e)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function x(e){var n=function(e){return void 0!==e},t=e._x,r=e._x1,o=e._x0,a=e._voronoiX,i=e._y,u=e._y1,l=e._y0,f=e._voronoiY,s=n(r)?r:t,p=n(u)?u:i,y={x:n(a)?a:s,x0:n(o)?o:t,y:n(f)?f:p,y0:n(l)?l:i};return c()({},y,e)}function O(e){var n=e.padding,t="number"==typeof n?n:0,r="object"==typeof n?n:{};return{top:r.top||t,bottom:r.bottom||t,left:r.left||t,right:r.right||t}}function w(e,n){return g()(e)?e(n):e}function j(e){return"number"==typeof e?e*(Math.PI/180):e}function P(e){var n=O(e),t=n.left,r=n.right,o=n.top,a=n.bottom,i=e.width,u=e.height;return Math.min(i-t-r,u-o-a)/2}function T(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;var n=function(e){return e.reduce((function(e,t){var r=t.props||{};return e||r.horizontal||!r.children?e=e||r.horizontal:n(p.a.Children.toArray(r.children))}),!1)};return n(p.a.Children.toArray(e.children))}var E={omit:m,getPoint:x,scalePoint:function(e,n){var t=e.scale,r=e.polar,o=e.horizontal,a=x(n),i=e.origin||{x:0,y:0},u=o?t.y(a.y):t.x(a.x),c=o?t.y(a.y0):t.x(a.x0),l=o?t.x(a.x):t.y(a.y),f=o?t.x(a.x0):t.y(a.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:O,getStyles:function(e,n){if(!e)return c()({parent:{height:"100%",width:"100%"}},n);var t=e.data,r=e.labels,o=e.parent,a=n&&n.parent||{},i=n&&n.labels||{},u=n&&n.data||{};return{parent:c()({},o,a,{width:"100%",height:"100%"}),labels:c()({},r,i),data:c()({},t,u)}},evaluateProp:w,evaluateStyle:function(e,n){return e&&Object.keys(e).some((function(n){return g()(e[n])}))?Object.keys(e).reduce((function(t,r){return t[r]=w(e[r],n),t}),{}):e},degreesToRadians:j,radiansToDegrees:function(e){return"number"==typeof e?e/(Math.PI/180):e},getRadius:P,getPolarOrigin:function(e){var n=e.width,t=e.height,r=O(e),o=r.top,a=r.bottom,i=r.left,u=r.right,c=Math.min(n-i-u,t-o-a)/2,l=n/2+i-u,f=t/2+o-a;return{x:l+c>n?c+i-u:l,y:f+c>t?c+o-a:f}},getRange:function(e,n){return e.range&&e.range[n]?e.range[n]:e.range&&Array.isArray(e.range)?e.range:e.polar?function(e,n){return"x"===n?[j(e.startAngle||0),j(e.endAngle||360)]:[e.innerRadius||0,P(e)]}(e,n):function(e,n){var t="x"!==n,r=O(e);return t?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}(e,n)},createAccessor:function(e){return g()(e)?e:null==e?function(e){return e}:h()(e)},modifyProps:function(e,n,t){var r=m(e.theme&&e.theme[t]?e.theme[t]:{},["style"]),o=T(e),a=void 0===o?{}:{horizontal:o};return c()(a,e,r,n)},getCurrentAxis:function(e,n){return n?"x"===e?"y":"x":e},reduceChildren:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,n){return e.concat(n)},a=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(e,c,l){return e.reduce((function(e,r,f){var s=r.type&&r.type.role,y=r.props.name||"".concat(s,"-").concat(c[f]);if(r.props&&r.props.children){var d=i()({},r.props,v()(t,a)),h=r.type&&g()(r.type.getChildren)?r.type.getChildren(d):p.a.Children.toArray(r.props.children).map((function(e){var n=i()({},e.props,v()(d,a));return p.a.cloneElement(e,n)})),b=h.map((function(e,n){return"".concat(y,"-").concat(n)})),m=u(h,b,r);e=o(e,m)}else{var x=n(r,y,l);x&&(e=o(e,x))}return e}),r)},c=e.map((function(e,n){return n}));return u(e,c)},isHorizontal:T},A=t(49),C=t.n(A),_=t(50),k=t.n(_),S=t(51),D=t.n(S),M=function(e){0};var N=function(e){var n=function(n,t,r,o){var a=t[r];if(null==a)return n?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):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 e.apply(void 0,[t,r,o].concat(u))},t=n.bind(null,!1);return t.isRequired=n.bind(null,!0),t},R=function(){return null},I=function(){},z=function(e){return void 0===e?I:null===e?R:e.constructor},F=function(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).slice(8,-1)},V={deprecated:function(e,n){return function(t,r,o){var a=t[r];return null!=a&&M('"'.concat(r,'" property of "').concat(o,'" has been deprecated ').concat(n)),f.a.checkPropTypes(function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}({},r,e),t,r,o)}},allOfType:function(e){return N((function(n,t,r){for(var o=arguments.length,a=new Array(o>3?o-3:0),i=3;i<o;i++)a[i-3]=arguments[i];return e.reduce((function(e,o){return e||o.apply(void 0,[n,t,r].concat(a))}),void 0)}))},nonNegative:N((function(e,n,t){var r=e[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(t,"` must be a non-negative number."))})),integer:N((function(e,n,t){var r=e[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(t,"` must be an integer."))})),greaterThanZero:N((function(e,n,t){var r=e[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(t,"` must be a number greater than zero."))})),domain:N((function(e,n,t){var r=e[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(t,"` must be an array of two unique numeric values."))})),scale:N((function(e,n,t){var r,o=["linear","time","log","sqrt"],a=e[n];if(r=a,!(g()(r)?g()(r.copy)&&g()(r.domain)&&g()(r.range):"string"==typeof r&&-1!==o.indexOf(r)))return new Error("`".concat(n,"` in `").concat(t,"` must be a d3 scale."))})),homogeneousArray:N((function(e,n,t){var r=e[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(t,"` must be an array."));if(!(r.length<2)){var o=z(r[0]),a=D()(r,(function(e){return o!==z(e)}));if(a){var i=F(r[0]),u=F(a);return new Error("Expected `".concat(n,"` in `").concat(t,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:N((function(e,n){if(e[n]&&Array.isArray(e[n])&&e[n].length!==e.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),regExp:N((function(e,n,t){if(e[n]&&!k()(e[n]))return new Error("`".concat(n,"` in `").concat(t,"` must be a regular expression."))}))};function B(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?L(e):n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).map={},t.index=1,t.portalUpdate=t.portalUpdate.bind(L(t)),t.portalRegister=t.portalRegister.bind(L(t)),t.portalDeregister=t.portalDeregister.bind(L(t)),t}var t,r,o;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(e,n){this.map[e]=n,this.forceUpdate()}},{key:"portalDeregister",value:function(e){delete this.map[e],this.forceUpdate()}},{key:"getChildren",value:function(){var e=this;return Object.keys(this.map).map((function(n){var t=e.map[n];return t?p.a.cloneElement(t,{key:n}):t}))}},{key:"render",value:function(){return p.a.createElement("svg",this.props,this.getChildren())}}])&&B(t.prototype,r),o&&B(t,o),n}(p.a.Component);Object.defineProperty(U,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(U,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:f.a.string,height:V.nonNegative,style:f.a.object,viewBox:f.a.string,width:V.nonNegative}});var H=p.a.createContext({});H.displayName="PortalContext";var W,q,K=H,G=0,Y=0,Z=0,$=0,X=0,Q=0,J="object"==typeof performance&&performance.now?performance:Date,ee="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ne(){return X||(ee(te),X=J.now()+Q)}function te(){X=0}function re(){this._call=this._time=this._next=null}function oe(e,n,t){var r=new re;return r.restart(e,n,t),r}function ae(){X=($=J.now())+Q,G=Y=0;try{!function(){ne(),++G;for(var e,n=W;n;)(e=X-n._time)>=0&&n._call.call(null,e),n=n._next;--G}()}finally{G=0,function(){var e,n,t=W,r=1/0;for(;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:W=n);q=e,ue(r)}(),X=0}}function ie(){var e=J.now(),n=e-$;n>1e3&&(Q-=n,$=e)}function ue(e){G||(Y&&(Y=clearTimeout(Y)),e-X>24?(e<1/0&&(Y=setTimeout(ae,e-J.now()-Q)),Z&&(Z=clearInterval(Z))):(Z||($=J.now(),Z=setInterval(ie,1e3)),G=1,ee(ae)))}re.prototype=oe.prototype={constructor:re,restart:function(e,n,t){if("function"!=typeof e)throw new TypeError("callback is not a function");t=(null==t?ne():+t)+(null==n?0:+n),this._next||q===this||(q?q._next=this:W=this,q=this),this._call=e,this._time=t,ue()},stop:function(){this._call&&(this._call=null,this._time=1/0,ue())}};function ce(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var le=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=oe(this.loop)}var n,t,r;return n=e,(t=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(e){e.callback(ne()-e.startTime,e.duration)}))}},{key:"start",value:function(){this.timer.start()}},{key:"stop",value:function(){this.timer.stop()}},{key:"subscribe",value:function(e,n){return n=this.shouldAnimate?n:0,this.subscribers.push({startTime:ne(),callback:e,duration:n})}},{key:"unsubscribe",value:function(e){null!==e&&delete this.subscribers[e-1]}}])&&ce(n.prototype,t),r&&ce(n,r),e}(),fe=p.a.createContext({transitionTimer:new le,animationTimer:new le});fe.displayName="TimerContext";var se=fe;function pe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ye(){return(ye=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ve(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}var he=function(e){function n(e){var t;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(t=de(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e))).containerId=o()(e)&&void 0!==e.containerId?e.containerId:C()("victory-container-"),t.savePortalRef=function(e){return t.portalRef=e,e},t.portalUpdate=function(e,n){return t.portalRef.portalUpdate(e,n)},t.portalRegister=function(){return t.portalRef.portalRegister()},t.portalDeregister=function(e){return t.portalRef.portalDeregister(e)},t.saveContainerRef=e&&g()(e.containerRef)?e.containerRef:function(e){return t.containerRef=e,e},t.shouldHandleWheel=e&&e.events&&e.events.onWheel,t.shouldHandleWheel&&(t.handleWheel=function(e){return e.preventDefault()}),t}var t,r,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(e){return"".concat(this.containerId,"-").concat(e)}},{key:"getChildren",value:function(e){return e.children}},{key:"renderContainer",value:function(e,n,t){var r=e.title,o=e.desc,a=e.portalComponent,u=e.className,l=e.width,f=e.height,s=e.portalZIndex,y=e.responsive,v=this.getChildren(e),d=y?{width:"100%",height:"auto"}:{width:l,height:f},h=i()({pointerEvents:"none",touchAction:"none",position:"relative"},d),b=i()({zIndex:s,position:"absolute",top:0,left:0},d),g=i()({pointerEvents:"all"},d),m=i()({overflow:"visible"},d),x={width:l,height:f,viewBox:n.viewBox,style:m};return p.a.createElement(K.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},p.a.createElement("div",{style:c()({},t,h),className:u,ref:this.saveContainerRef},p.a.createElement("svg",ye({},n,{style:g}),r?p.a.createElement("title",{id:this.getIdForElement("title")},r):null,o?p.a.createElement("desc",{id:this.getIdForElement("desc")},o):null,v),p.a.createElement("div",{style:b},p.a.cloneElement(a,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){pe(e,n,t[n])}))}return e}({},x,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var e=this.props,n=e.width,t=e.height,r=e.responsive,o=e.events,a=e.title,u=e.desc,c=e.tabIndex,l=r?this.props.style:E.omit(this.props.style,["height","width"]),f=i()({width:n,height:t,tabIndex:c,role:"img","aria-labelledby":a?this.getIdForElement("title"):void 0,"aria-describedby":u?this.getIdForElement("desc"):void 0,viewBox:r?"0 0 ".concat(n," ").concat(t):void 0},o);return this.renderContainer(this.props,f,l)}}])&&ve(t.prototype,r),a&&ve(t,a),n}(p.a.Component);Object.defineProperty(he,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(he,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(he,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]),className:f.a.string,containerId:f.a.oneOfType([f.a.number,f.a.string]),containerRef:f.a.func,desc:f.a.string,events:f.a.object,height:V.nonNegative,name:f.a.string,origin:f.a.shape({x:V.nonNegative,y:V.nonNegative}),polar:f.a.bool,portalComponent:f.a.element,portalZIndex:V.integer,responsive:f.a.bool,style:f.a.object,tabIndex:f.a.number,theme:f.a.object,title:f.a.string,width:V.nonNegative}}),Object.defineProperty(he,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:p.a.createElement(U,null),portalZIndex:99,responsive:!0}}),Object.defineProperty(he,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:se});var be=t(23),ge=t.n(be);function me(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function xe(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}var we=function(e){function n(){return me(this,n),Oe(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var t,r,o;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(M("`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(e){return this.renderInPlace?e:(this.element=e,null)}},{key:"render",value:function(){var e=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,n=this.props.groupComponent,t=e&&e.props||{},r=t.groupComponent?{groupComponent:n,standalone:!1}:{},o=c()(r,t,E.omit(this.props,["children","groupComponent"])),a=e&&p.a.cloneElement(e,o);return this.renderPortal(a)}}])&&xe(t.prototype,r),o&&xe(t,o),n}(p.a.Component);function je(e,n){if(e.polar)return{};var t=function(e,n){n=n||{};var t=e.horizontal,r=e.style.labels||{},o=E.evaluateProp(r.padding,e)||0,a=n._y<0?-1:1;return{x:t?a*o:0,y:t?0:-1*a*o}}(e,n);return{dx:t.x,dy:t.y}}function Pe(e,n){var t=e.polar,r=E.scalePoint(e,n),o=r.x,a=r.y;if(t){var i=function(e,n){var t=e.style,r=_e(e,n),o=t.labels||{},a=E.evaluateProp(o.padding,e)||0,i=E.degreesToRadians(r);return{x:a*Math.cos(i),y:-a*Math.sin(i)}}(e,n);return{x:o+i.x,y:a+i.y}}return{x:o,y:a}}function Te(e){var n=e.labelComponent,t=e.labelPlacement,r=e.polar?"perpendicular":"vertical";return t||(n.props&&n.props.labelPlacement||r)}function Ee(e,n,t){return void 0!==(n=n||{}).label?n.label:Array.isArray(e.labels)?e.labels[t]:e.labels}function Ae(e,n){var t=Te(e);return"perpendicular"===t||"vertical"===t&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function Ce(e,n){var t=Te(e),r=function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}(n);return"parallel"===t||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function _e(e,n){var t=E.getPoint(n).x;return E.radiansToDegrees(e.scale.x(t))}Object.defineProperty(we,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(we,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(we,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:f.a.node,groupComponent:f.a.element}}),Object.defineProperty(we,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:p.a.createElement("g",null)}}),Object.defineProperty(we,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:K});var ke={getText:Ee,getPolarTextAnchor:Ae,getPolarVerticalAnchor:Ce,getPolarAngle:function(e,n){var t=e.labelPlacement,r=e.datum;if(!t||"vertical"===t)return 0;var o,a=void 0!==n?n:_e(e,r);return 0===a||180===a?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a),o+(a>90&&a<180||a>270?1:-1)*("perpendicular"===t?0:90)},getDegrees:_e,getProps:function(e,n){var t=e.scale,r=e.data,o=e.style,a=e.horizontal,i=e.polar,u=e.width,c=e.height,l=r[n],f=_e(e,l),s=i?Ae(e,f):function(e,n){n=n||{};var t=e.style,r=e.horizontal,o=n._y>=0?1:-1,a=t&&t.labels||{};return n.verticalAnchor||a.verticalAnchor?n.verticalAnchor||a.verticalAnchor:r?o>=0?"start":"end":"middle"}(e,l),p=i?Ce(e,f):function(e,n){var t=(n=n||{})._y>=0?1:-1,r=e.style&&e.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":t>=0?"end":"start"}(e,l),y=function(e,n){n=n||{};var t=e.style&&e.style.labels||{};return void 0===n.angle?t.angle:n.angle}(e,l),v=Ee(e,l,n),d=Te(e),h=Pe(e,l),b=h.x,g=h.y,m=je(e,l);return{angle:y,data:r,datum:l,horizontal:a,index:n,polar:i,scale:t,labelPlacement:d,text:v,textAnchor:s,verticalAnchor:p,x:b,y:g,dx:m.dx,dy:m.dy,width:u,height:c,style:o.labels}}},Se=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(t.length>0)return t.reduce((function(e,n){return[e,Se(n)].join(" ")}),Se(e)).trim();if(null==e||"string"==typeof e)return e;var o=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];o.push("".concat(a,"(").concat(i,")"))}return o.join(" ").trim()},De={toTransformString:Se,getColorScale:function(e){var n={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 e?n[e]:n.grayscale}},Me=function(e){return p.a.createElement("tspan",e)};var Ne=function(e){var n=e.children,t=e.title,r=e.desc,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["children","title","desc"]);return p.a.createElement("text",o,t&&p.a.createElement("title",null,t),r&&p.a.createElement("desc",null,r),n)};Ne.propTypes={children:f.a.node,desc:f.a.string,title:f.a.string};var Re=Ne;function Ie(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var ze={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Fe=function(e,n){return e.datum?E.scalePoint(e,e.datum)[n]:0},Ve=function(e){var n=e&&e.fontSize;if("number"==typeof n)return n;if(null==n)return ze.fontSize;if("string"==typeof n){var t=+n.replace("px","");return isNaN(t)?(M("fontSize should be expressed as a number of pixels"),ze.fontSize):t}return ze.fontSize},Be=function(e,n){return E.evaluateProp(e[n],e)},Le=function(e,n,t){return Array.isArray(e)?ge()(e)?t:n:e},Ue=function(e){var n=e.inline,t=e.className,r=e.title,o=e.events,a=e.direction,i=e.text,u=e.style,c=Be(e,"lineHeight"),l=e.textAnchor?E.evaluateProp(e.textAnchor,e):"start",f=e.dx?E.evaluateProp(e.dx,e):0,s=function(e,n){var t=Array.isArray(e.style)?e.style[0]:e.style;n=Le(n,n[0],1);var r=t.fontSize,o=e.dy?E.evaluateProp(e.dy,e):0,a=e.text.length,i=Be(e,"capHeight"),u=t.verticalAnchor||e.verticalAnchor;switch(u?E.evaluateProp(u,e):"middle"){case"end":return o+(i/2+(.5-a)*n)*r;case"middle":return o+(i/2+(.5-a/2)*n)*r;default:return o+(i/2+n/2)*r}}(e,c),y=function(e){var n=e.x,t=e.y,r=e.polar,o=e.style,a=r?ke.getPolarAngle(e):0,i=void 0===o.angle?e.angle:o.angle,u=void 0===i?a:i,c=e.transform||o.transform,l=c&&E.evaluateProp(c,e),f=u&&{rotate:[u,n,t]};return l||u?De.toTransformString(l,f):void 0}(e),v=void 0!==e.x?e.x:Fe(e,"x"),d=void 0!==e.y?e.y:Fe(e,"y"),h=i.map((function(t,r){var o=u[r]||u[0],a=u[r-1]||u[0],i=(o.fontSize+a.fontSize)/2,s=Le(c,(c[r]+(c[r-1]||c[0]))/2,1),y={key:"".concat(e.id,"-key-").concat(r),x:n?void 0:e.x,dx:f,dy:r&&!n?s*i:void 0,textAnchor:o.textAnchor||l,style:o,children:t};return p.a.cloneElement(e.tspanComponent,y)}));return p.a.cloneElement(e.textComponent,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){Ie(e,n,t[n])}))}return e}({},o,{direction:a,dx:f,dy:s,x:v,y:d,transform:y,className:t,title:r,desc:E.evaluateProp(e.desc,e),tabIndex:E.evaluateProp(e.tabIndex,e),id:e.id}),h)},He=function(e){var n=function(e,n){if(null!=e){if(Array.isArray(e))return e.map((function(e){return E.evaluateProp(e,n)}));var t=E.evaluateProp(e,n);if(null!=t)return Array.isArray(t)?t:"".concat(t).split("\n")}}(e.text,e),t=function(e,n){var t=function(e){e=e?c()({},e,ze):ze;var t=E.evaluateStyle(e,n);return i()({},t,{fontSize:Ve(t)})};return Array.isArray(e)&&!ge()(e)?e.map((function(e){return t(e)})):[t(e)]}(e.style,i()({},e,{text:n}));return i()({},e,{style:t,text:n})},We=function(e){if(null===(e=He(e)).text||void 0===e.text)return null;var n=Ue(e);return e.renderInPortal?p.a.createElement(we,null,n):n};We.displayName="VictoryLabel",We.role="label",We.defaultStyles=ze,We.propTypes={active:f.a.bool,angle:f.a.oneOfType([f.a.string,f.a.number]),capHeight:f.a.oneOfType([f.a.string,V.nonNegative,f.a.func]),className:f.a.string,data:f.a.array,datum:f.a.any,desc:f.a.oneOfType([f.a.string,f.a.func]),direction:f.a.oneOf(["rtl","ltr","inherit"]),dx:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),dy:f.a.oneOfType([f.a.number,f.a.string,f.a.func]),events:f.a.object,id:f.a.oneOfType([f.a.number,f.a.string]),index:f.a.oneOfType([f.a.number,f.a.string]),inline:f.a.bool,labelPlacement:f.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:f.a.oneOfType([f.a.string,V.nonNegative,f.a.func,f.a.array]),origin:f.a.shape({x:V.nonNegative,y:V.nonNegative}),polar:f.a.bool,renderInPortal:f.a.bool,scale:f.a.shape({x:V.scale,y:V.scale}),style:f.a.oneOfType([f.a.object,f.a.array]),tabIndex:f.a.oneOfType([f.a.number,f.a.func]),text:f.a.oneOfType([f.a.string,f.a.number,f.a.func,f.a.array]),textAnchor:f.a.oneOfType([f.a.oneOf(["start","middle","end","inherit"]),f.a.func]),textComponent:f.a.element,title:f.a.string,transform:f.a.oneOfType([f.a.string,f.a.object,f.a.func]),tspanComponent:f.a.element,verticalAnchor:f.a.oneOfType([f.a.oneOf(["start","middle","end"]),f.a.func]),x:f.a.oneOfType([f.a.number,f.a.string]),y:f.a.oneOfType([f.a.number,f.a.string])},We.defaultProps={direction:"inherit",textComponent:p.a.createElement(Re,null),tspanComponent:p.a.createElement(Me,null),capHeight:.71,lineHeight:1};var qe=We,Ke={categories:f.a.oneOfType([f.a.arrayOf(f.a.string),f.a.shape({x:f.a.arrayOf(f.a.string),y:f.a.arrayOf(f.a.string)})]),data:f.a.oneOfType([f.a.array,f.a.object]),dataComponent:f.a.element,labelComponent:f.a.element,labels:f.a.oneOfType([f.a.func,f.a.array]),samples:V.nonNegative,sortKey:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),sortOrder:f.a.oneOf(["ascending","descending"]),style:f.a.shape({parent:f.a.object,data:f.a.object,labels:f.a.object}),x:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),y:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),y0:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)])},Ge={animate:f.a.oneOfType([f.a.bool,f.a.object]),containerComponent:f.a.element,domain:f.a.oneOfType([V.domain,f.a.shape({x:V.domain,y:V.domain})]),maxDomain:f.a.oneOfType([f.a.number,f.a.instanceOf(Date),f.a.shape({x:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)]),y:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)])})]),minDomain:f.a.oneOfType([f.a.number,f.a.instanceOf(Date),f.a.shape({x:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)]),y:f.a.oneOfType([f.a.number,f.a.instanceOf(Date)])})]),domainPadding:f.a.oneOfType([f.a.shape({x:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)]),y:f.a.oneOfType([f.a.number,f.a.arrayOf(f.a.number)])}),f.a.number,f.a.arrayOf(f.a.number)]),eventKey:f.a.oneOfType([f.a.func,V.allOfType([V.integer,V.nonNegative]),f.a.string]),events:f.a.arrayOf(f.a.shape({target:f.a.oneOf(["data","labels","parent"]),eventKey:f.a.oneOfType([f.a.array,V.allOfType([V.integer,V.nonNegative]),f.a.string]),eventHandlers:f.a.object})),externalEventMutations:f.a.arrayOf(f.a.shape({callback:f.a.function,childName:f.a.oneOfType([f.a.string,f.a.array]),eventKey:f.a.oneOfType([f.a.array,V.allOfType([V.integer,V.nonNegative]),f.a.string]),mutation:f.a.function,target:f.a.oneOfType([f.a.string,f.a.array])})),groupComponent:f.a.element,height:V.nonNegative,name:f.a.string,origin:f.a.shape({x:f.a.number,y:f.a.number}),padding:f.a.oneOfType([f.a.number,f.a.shape({top:f.a.number,bottom:f.a.number,left:f.a.number,right:f.a.number})]),polar:f.a.bool,range:f.a.oneOfType([V.domain,f.a.shape({x:V.domain,y:V.domain})]),scale:f.a.oneOfType([V.scale,f.a.shape({x:V.scale,y:V.scale})]),sharedEvents:f.a.shape({events:f.a.array,getEventState:f.a.func}),singleQuadrantDomainPadding:f.a.oneOfType([f.a.bool,f.a.shape({x:f.a.oneOfType([f.a.bool]),y:f.a.oneOfType([f.a.bool])})]),standalone:f.a.bool,theme:f.a.object,width:V.nonNegative},Ye={active:f.a.bool,className:f.a.string,clipPath:f.a.string,data:f.a.oneOfType([f.a.array,f.a.object]),desc:f.a.oneOfType([f.a.string,f.a.func]),events:f.a.object,id:f.a.oneOfType([f.a.number,f.a.string]),index:f.a.oneOfType([f.a.number,f.a.string]),origin:f.a.shape({x:f.a.number,y:f.a.number}),polar:f.a.bool,role:f.a.string,scale:f.a.oneOfType([V.scale,f.a.shape({x:V.scale,y:V.scale})]),shapeRendering:f.a.string,style:f.a.object,tabIndex:f.a.oneOfType([f.a.number,f.a.func]),transform:f.a.string};function Ze(){return(Ze=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var $e=function(e){var n=e.desc,t=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["desc"]);return n?p.a.createElement("line",Ze({vectorEffect:"non-scaling-stroke"},t),p.a.createElement("desc",null,n)):p.a.createElement("line",Ze({vectorEffect:"non-scaling-stroke"},t))};function Xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){Qe(e,n,t[n])}))}return e}function Qe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Je=function(e){return p.a.cloneElement(e.lineComponent,Xe({},e.events,{style:E.evaluateStyle(i()({stroke:"black"},e.style),e),desc:E.evaluateProp(e.desc,e),tabIndex:E.evaluateProp(e.tabIndex,e),className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};Je.propTypes=Xe({},{baseProps:Ge,dataProps:Ke,primitiveProps:Ye}.primitiveProps,{datum:f.a.any,lineComponent:f.a.element,x1:f.a.number,x2:f.a.number,y1:f.a.number,y2:f.a.number}),Je.defaultProps={lineComponent:p.a.createElement($e,null),role:"presentation",shapeRendering:"auto"};var en=Je,nn=t(22),tn=t.n(nn),rn=t(48);function on(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function an(e){return Array.isArray(e)&&e.length>0}function un(e){return Array.isArray(e)&&e.some((function(e){return e instanceof Date}))}var cn={containsDates:un,containsNumbers:function(e){return Array.isArray(e)&&e.some((function(e){return"number"==typeof e}))},containsOnlyStrings:function(e){return an(e)&&e.every((function(e){return"string"==typeof e}))},containsStrings:function(e){return Array.isArray(e)&&e.some((function(e){return"string"==typeof e}))},getMaxValue:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.concat(t);return un(o)?new Date(Math.max.apply(Math,on(o))):Math.max.apply(Math,on(o))},getMinValue:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.concat(t);return un(o)?new Date(Math.min.apply(Math,on(o))):Math.min.apply(Math,on(o))},isArrayOfArrays:function(e){return an(e)&&e.every(Array.isArray)},removeUndefined:function(e){return e.filter((function(e){return void 0!==e}))}};function ln(e,n,t){var r=n.a,o=n.d,a=n.e,i=n.f;return"y"===t?o*e+i:r*e+a}function fn(e){if(!e.nativeEvent||void 0===e.nativeEvent.identifier){var n=function(e){return"svg"===e.nodeName?e:e.parentNode?n(e.parentNode):e};return n(e.target)}}function sn(e,n,t,r){var o=e.polar,a=e.horizontal;if(o){var i=e.origin||{x:0,y:0},u=t-i.x,c=r-i.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),f=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(f),y:n.y.invert(l)}}return{x:a?n.x.invert(r):n.x.invert(t),y:a?n.y.invert(t):n.y.invert(r)}}var pn={getParentSVG:fn,getSVGEventCoordinates:function(e,n){if(e.nativeEvent&&void 0!==e.nativeEvent.identifier)return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var t=function(e){return e.getScreenCTM().inverse()}(n=n||fn(e));return{x:ln(e.clientX,t,"x"),y:ln(e.clientY,t,"y")}},getDomainCoordinates:function(e,n){var t=e.scale,r=e.horizontal;return n=n||{x:t.x.domain(),y:t.y.domain()},{x:r?[t.y(n.y[0]),t.y(n.y[1])]:[t.x(n.x[0]),t.x(n.x[1])],y:r?[t.x(n.x[0]),t.x(n.x[1])]:[t.y(n.y[0]),t.y(n.y[1])]}},getDataCoordinates:sn,getBounds:function(e){var n=e.x1,t=e.x2,r=e.y1,o=e.y2,a=e.scale,i=sn(e,a,n,r),u=sn(e,a,t,o),c=function(e,n){return[cn.getMinValue([e,n]),cn.getMaxValue([e,n])]};return{x:c(i.x,u.x),y:c(i.y,u.y)}}};function yn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var vn={getDimension:function(e){var n=e.horizontal,t=e.cursorDimension;return n&&t?"x"===t?"y":"x":t},withinBounds:function(e,n){var t=tn()(n,Number),r=t.x1,o=t.x2,a=t.y1,i=t.y2,u=tn()(e,Number),c=u.x,l=u.y;return c>=Math.min(r,o)&&c<=Math.max(r,o)&&l>=Math.min(a,i)&&l<=Math.max(a,i)},onMouseMove:function(e,n){var t=n.onCursorChange,r=n.domain,o=this.getDimension(n),a=n.parentSVG||pn.getParentSVG(e),i=pn.getSVGEventCoordinates(e,a),u=pn.getDataCoordinates(n,n.scale,i.x,i.y),c=this.withinBounds(u,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]});(c||(u=null),g()(t))&&(c?t(o?u[o]:u,n):u!==n.cursorValue&&t(n.defaultCursorValue||null,n));return[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:u,parentSVG:a}}}]},onTouchEnd:function(e,n){var t=n.onCursorChange;return g()(n.onCursorChange)&&t(null,n),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}},dn=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){yn(e,n,t[n])}))}return e}({},vn,{onMouseMove:t.n(rn)()(vn.onMouseMove.bind(vn),32,{leading:!0,trailing:!1}),onTouchEnd:vn.onTouchEnd.bind(vn)});function hn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){gn(e,n,t[n])}))}return e}function bn(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function gn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function xn(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function On(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}var wn=function(e){var n,t;return t=n=function(e){function n(){return mn(this,n),On(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var t,r,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),t=n,(r=[{key:"getCursorPosition",value:function(e){var n=e.cursorValue,t=e.defaultCursorValue,r=e.domain,o=e.cursorDimension;return n||("number"==typeof t?gn({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o,t):t)}},{key:"getCursorLabelOffset",value:function(e){var n=e.cursorLabelOffset;return"number"==typeof n?{x:n,y:n}:n}},{key:"getPadding",value:function(e){if(void 0===e.padding){var n=e.children.find((function(e){return o()(e.props)&&void 0!==e.props.padding}));return E.getPadding(n.props)}return E.getPadding(e)}},{key:"getCursorElements",value:function(e){var n=e.scale,t=e.cursorLabelComponent,r=e.cursorLabel,o=e.cursorComponent,a=e.width,u=e.height,l=e.name,f=e.horizontal,s=dn.getDimension(e),y=this.getCursorPosition(e),v=this.getCursorLabelOffset(e);if(!y)return[];var d=[],h=this.getPadding(e),b={x:f?n.y(y.y):n.x(y.x),y:f?n.x(y.x):n.y(y.y)};if(r){var g=c()({active:!0},t.props,{x:b.x+v.x,y:b.y+v.y,datum:y,active:!0,key:"".concat(l,"-cursor-label")});d.push(p.a.cloneElement(t,c()({},g,{text:E.evaluateProp(r,g)})))}var m=i()({stroke:"black"},o.props.style);return"x"!==s&&void 0!==s||d.push(p.a.cloneElement(o,{key:"".concat(l,"-x-cursor"),x1:b.x,x2:b.x,y1:h.top,y2:u-h.bottom,style:m})),"y"!==s&&void 0!==s||d.push(p.a.cloneElement(o,{key:"".concat(l,"-y-cursor"),x1:h.left,x2:a-h.right,y1:b.y,y2:b.y,style:m})),d}},{key:"getChildren",value:function(e){return bn(p.a.Children.toArray(e.children)).concat(bn(this.getCursorElements(e)))}}])&&xn(t.prototype,r),a&&xn(t,a),n}(e),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryCursorContainer"}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:hn({},he.propTypes,{cursorDimension:f.a.oneOf(["x","y"]),cursorLabel:f.a.func,cursorLabelComponent:f.a.element,cursorLabelOffset:f.a.oneOfType([f.a.number,f.a.shape({x:f.a.number,y:f.a.number})]),defaultCursorValue:f.a.oneOfType([f.a.number,f.a.shape({x:f.a.number,y:f.a.number})]),disable:f.a.bool,onCursorChange:f.a.func})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:hn({},he.defaultProps,{cursorLabelComponent:p.a.createElement(qe,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:p.a.createElement(en,null)})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return[{target:"parent",eventHandlers:{onMouseLeave:function(){return[]},onTouchCancel:function(){return[]},onMouseMove:function(n,t){return e.disable?{}:dn.onMouseMove(n,t)},onTouchMove:function(n,t){return e.disable?{}:dn.onMouseMove(n,t)}}}]}}),t},jn=wn(he);t.d(n,"cursorContainerMixin",(function(){return wn})),t.d(n,"VictoryCursorContainer",(function(){return jn})),t.d(n,"CursorHelpers",(function(){return dn}))}])})); | ||
//# sourceMappingURL=victory-cursor-container.min.js.map |
{ | ||
"name": "victory-cursor-container", | ||
"version": "34.1.0", | ||
"version": "34.1.1", | ||
"description": "Interactive Cursor Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^34.1.0" | ||
"victory-core": "^34.1.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
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
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
1131788
Updatedvictory-core@^34.1.1