New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

victory-brush-container

Package Overview
Dependencies
Maintainers
2
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-brush-container - npm Package Compare versions

Comparing version 35.4.12 to 35.5.0

2

dist/victory-brush-container.min.js

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryBrushContainer=n(require("react")):t.VictoryBrushContainer=n(t.React)}(window,(function(t){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=111)}([function(t,n,e){t.exports=e(56)()},function(n,e){n.exports=t},function(t,n,e){var r=e(22),o=e(13),i=e(26),a=e(50),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&i(n[0],n[1],l)&&(r=1);++e<r;)for(var s=n[e],f=a(s),p=-1,h=f.length;++p<h;){var y=f[p],v=t[y];(void 0===v||o(v,u[y])&&!c.call(t,y))&&(t[y]=s[y])}return t}));t.exports=l},function(t,n,e){var r=e(28),o=e(7);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){var r=e(14),o=e(53),i=e(54),a=e(27),u=e(55),c=e(5),l=Object.prototype.hasOwnProperty,s=i((function(t,n){if(u(n)||a(n))o(n,c(n),t);else for(var e in n)l.call(n,e)&&r(t,e,n[e])}));t.exports=s},function(t,n,e){var r=e(30)(Object.keys,Object);t.exports=r},function(t,n){var e=Array.isArray;t.exports=e},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,e){var r=e(19);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(t,n,e){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;t.exports=function(t,n){try{return function t(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var u,c,l,s=r(n),f=r(e);if(s&&f){if((c=n.length)!=e.length)return!1;for(u=c;0!=u--;)if(!t(n[u],e[u]))return!1;return!0}if(s!=f)return!1;var p=n instanceof Date,h=e instanceof Date;if(p!=h)return!1;if(p&&h)return n.getTime()==e.getTime();var y=n instanceof RegExp,v=e instanceof RegExp;if(y!=v)return!1;if(y&&v)return n.toString()==e.toString();var d=o(n);if((c=d.length)!==o(e).length)return!1;for(u=c;0!=u--;)if(!i.call(e,d[u]))return!1;if(a&&n instanceof Element&&e instanceof Element)return n===e;for(u=c;0!=u--;)if(!("_owner"===(l=d[u])&&n.$$typeof||t(n[l],e[l])))return!1;return!0}return n!=n&&e!=e}(t,n)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},function(t,n,e){var r=e(15),o=e(58),i=e(16);t.exports=function(t,n){var e={};return n=i(n,3),o(t,(function(t,o,i){r(e,o,n(t,o,i))})),e}},function(t,n,e){var r=e(13);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},function(t,n,e){var r=e(6),o=e(18),i=e(83),a=e(36);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(15),o=e(13),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},function(t,n,e){var r=e(51);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},function(t,n,e){var r=e(61),o=e(81),i=e(23),a=e(6),u=e(20);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},function(t,n,e){var r=e(12),o=e(8);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?t:void 0}},function(t,n,e){var r=e(6),o=e(19),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=n&&t in Object(n))}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(90),o=e(91),i=e(18),a=e(8);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,n,e){var r=e(94),o=e(97)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},function(t,n,e){var r=e(23),o=e(24),i=e(25);t.exports=function(t,n){return i(o(t,n,r),t+"")}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(49),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),c=Array(u);++a<u;)c[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=e(c),r(t,this,l)}}},function(t,n){t.exports=function(t){return t}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(3),o=e(29);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,n){t.exports=function(t,n){return function(e){return t(n(e))}}},function(t,n,e){var r=e(63),o=e(64),i=e(65),a=e(66),u=e(67);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,e){var r=e(68),o=e(33);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n,e){var r=e(7);t.exports=function(t){return t==t&&!r(t)}},function(t,n){t.exports=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}}},function(t,n,e){var r=e(85);t.exports=function(t){return null==t?"":r(t)}},function(t,n,e){var r=e(38).Symbol;t.exports=r},function(t,n,e){var r=e(39),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e(86))},function(t,n,e){var r=e(88),o=e(89);t.exports=function(t,n){return null!=t&&o(t,n,r)}},function(t,n){t.exports=function(){return!1}},function(t,n){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(92),o=e(7);t.exports=function(t,n,e){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(e)&&(i="leading"in e?!!e.leading:i,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:i,maxWait:n,trailing:a})}},function(t,n,e){var r=e(36),o=0;t.exports=function(t){var n=++o;return r(t)+n}},function(t,n,e){var r=e(102),o=e(103),i=e(104),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},function(t,n,e){var r=e(106)(e(107));t.exports=r},,function(t,n){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},function(t,n,e){var r=e(52),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,e){var r=e(14),o=e(15);t.exports=function(t,n,e,i){var a=!e;e||(e={});for(var u=-1,c=n.length;++u<c;){var l=n[u],s=i?i(e[l],t[l],l,e,t):void 0;void 0===s&&(s=t[l]),a?o(e,l,s):r(e,l,s)}return e}},function(t,n,e){var r=e(22),o=e(26);t.exports=function(t){return r((function(n,e){var r=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),n=Object(n);++r<i;){var c=e[r];c&&t(n,c,r,a)}return n}))}},function(t,n){t.exports=function(){return!1}},function(t,n,e){"use strict";var r=e(57);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,a){if(a!==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 t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n,e){var r=e(59),o=e(5);t.exports=function(t,n){return t&&r(t,n,o)}},function(t,n,e){var r=e(60)();t.exports=r},function(t,n){t.exports=function(t){return function(n,e,r){for(var o=-1,i=Object(n),a=r(n),u=a.length;u--;){var c=a[t?u:++o];if(!1===e(i[c],c,i))break}return n}}},function(t,n,e){var r=e(62),o=e(80),i=e(35);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},function(t,n,e){var r=e(31),o=e(32);t.exports=function(t,n,e,i){var a=e.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=e[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=e[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new r;if(i)var y=i(f,p,s,t,n,h);if(!(void 0===y?o(p,f,3,i,h):y))return!1}}return!0}},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,e){var r=e(11),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0)&&(e==n.length-1?n.pop():o.call(n,e,1),--this.size,!0)}},function(t,n,e){var r=e(11);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},function(t,n,e){var r=e(11);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,n,e){var r=e(11);t.exports=function(t,n){var e=this.__data__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},function(t,n,e){var r=e(31),o=e(69),i=e(74),a=e(75),u=e(77),c=e(6),l=e(78),s=e(79),f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,h,y,v){var d=c(t),b=c(n),m=d?"[object Array]":u(t),g=b?"[object Array]":u(n),x=(m="[object Arguments]"==m?f:m)==f,w=(g="[object Arguments]"==g?f:g)==f,O=m==g;if(O&&l(t)){if(!l(n))return!1;d=!0,x=!1}if(O&&!x)return v||(v=new r),d||s(t)?o(t,n,e,h,y,v):i(t,n,m,e,h,y,v);if(!(1&e)){var j=x&&p.call(t,"__wrapped__"),M=w&&p.call(n,"__wrapped__");if(j||M){var P=j?t.value():t,D=M?n.value():n;return v||(v=new r),y(P,D,e,h,v)}}return!!O&&(v||(v=new r),a(t,n,e,h,y,v))}},function(t,n,e){var r=e(70),o=e(71),i=e(72);t.exports=function(t,n,e,a,u,c){var l=1&e,s=t.length,f=n.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t);if(p&&c.get(n))return p==n;var h=-1,y=!0,v=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++h<s;){var d=t[h],b=n[h];if(a)var m=l?a(b,d,h,n,t,c):a(d,b,h,t,n,c);if(void 0!==m){if(m)continue;y=!1;break}if(v){if(!o(n,(function(t,n){if(!i(v,n)&&(d===t||u(d,t,e,a,c)))return v.push(n)}))){y=!1;break}}else if(d!==b&&!u(d,b,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},function(t,n,e){var r=e(6);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},function(t,n,e){var r=e(73);t.exports=function(t,n){return!!(null==t?0:t.length)&&r(t,n,0)>-1}},function(t,n){t.exports=function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(76),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,a,u){var c=1&e,l=r(t),s=l.length;if(s!=r(n).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in n:o.call(n,p)))return!1}var h=u.get(t);if(h&&u.get(n))return h==n;var y=!0;u.set(t,n),u.set(n,t);for(var v=c;++f<s;){var d=t[p=l[f]],b=n[p];if(i)var m=c?i(b,d,p,n,t,u):i(d,b,p,t,n,u);if(!(void 0===m?d===b||a(d,b,e,i,u):m)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var g=t.constructor,x=n.constructor;g==x||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof x&&x instanceof x||(y=!1)}return u.delete(t),u.delete(n),y}},function(t,n,e){var r=e(30)(Object.keys,Object);t.exports=r},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(){return!1}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(34),o=e(5);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,a,r(a)]}return n}},function(t,n,e){var r=e(32),o=e(82),i=e(40),a=e(18),u=e(34),c=e(35),l=e(8);t.exports=function(t,n){return a(t)&&u(n)?c(l(t),n):function(e){var a=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},function(t,n,e){var r=e(17);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},function(t,n,e){var r=e(84),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$1"):e||t)})),n}));t.exports=a},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(37),o=e(87),i=e(6),a=e(19),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},function(t,n){t.exports=function(t,n){return null!=t&&n in Object(t)}},function(t,n,e){var r=e(12),o=e(41),i=e(6),a=e(42),u=e(29),c=e(8);t.exports=function(t,n,e){for(var l=-1,s=(n=r(n,t)).length,f=!1;++l<s;){var p=c(n[l]);if(!(f=null!=t&&e(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},function(t,n){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},function(t,n,e){var r=e(17);t.exports=function(t){return function(n){return r(n,t)}}},function(t,n,e){var r=e(7),o=e(93),i=e(43),a=Math.max,u=Math.min;t.exports=function(t,n,e){var c,l,s,f,p,h,y=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(n){var e=c,r=l;return c=l=void 0,y=n,f=t.apply(r,e)}function g(t){return y=t,p=setTimeout(w,n),v?m(t):f}function x(t){var e=t-h;return void 0===h||e>=n||e<0||d&&t-y>=s}function w(){var t=o();if(x(t))return O(t);p=setTimeout(w,function(t){var e=n-(t-h);return d?u(e,s-(t-y)):e}(t))}function O(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),e=x(t);if(c=arguments,l=this,h=t,e){if(void 0===p)return g(h);if(d)return clearTimeout(p),p=setTimeout(w,n),m(h)}return void 0===p&&(p=setTimeout(w,n)),f}return n=i(n)||0,r(e)&&(v=!!e.leading,s=(d="maxWait"in e)?a(i(e.maxWait)||0,n):s,b="trailing"in e?!!e.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),y=0,c=h=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},function(t,n,e){var r=e(38);t.exports=function(){return r.Date.now()}},function(t,n,e){var r=e(95),o=e(40);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},function(t,n,e){var r=e(17),o=e(96),i=e(12);t.exports=function(t,n,e){for(var a=-1,u=n.length,c={};++a<u;){var l=n[a],s=r(t,l);e(s,l)&&o(c,i(l,t),s)}return c}},function(t,n,e){var r=e(14),o=e(12),i=e(42),a=e(7),u=e(8);t.exports=function(t,n,e,c){if(!a(t))return t;for(var l=-1,s=(n=o(n,t)).length,f=s-1,p=t;null!=p&&++l<s;){var h=u(n[l]),y=e;if(l!=f){var v=p[h];void 0===(y=c?c(v,h,p):void 0)&&(y=a(v)?v:i(n[l+1])?[]:{})}r(p,h,y),p=p[h]}return t}},function(t,n,e){var r=e(98),o=e(24),i=e(25);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,n,e){var r=e(99);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,n,e){var r=e(100),o=e(101);t.exports=function t(n,e,i,a,u){var c=-1,l=n.length;for(i||(i=o),u||(u=[]);++c<l;){var s=n[c];e>0&&i(s)?e>1?t(s,e-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(t,n){t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}},function(t,n,e){var r=e(37),o=e(41),i=e(6),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,n,e){var r=e(28),o=e(33);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,e){(function(t){var r=e(39),o=n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,e(105)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){var r=e(16),o=e(27),i=e(5);t.exports=function(t){return function(n,e,a){var u=Object(n);if(!o(n)){var c=r(e,3);n=i(n),e=function(t){return c(u[t],t,u)}}var l=t(n,e,a);return l>-1?u[c?n[l]:l]:void 0}}},function(t,n,e){var r=e(108),o=e(16),i=e(109),a=Math.max;t.exports=function(t,n,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),r(t,o(n,3),c)}},function(t,n){t.exports=function(t,n,e,r){for(var o=t.length,i=e+(r?1:-1);r?i--:++i<o;)if(n(t[i],i,t))return i;return-1}},function(t,n,e){var r=e(110);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},function(t,n,e){var r=e(43);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,n,e){"use strict";e.r(n),e.d(n,"brushContainerMixin",(function(){return Lt})),e.d(n,"VictoryBrushContainer",(function(){return $t})),e.d(n,"BrushHelpers",(function(){return Ut}));var r=e(2),o=e.n(r),i=e(4),a=e.n(i),u=e(0),c=e.n(u),l=e(1),s=e.n(l);function f(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function p(t){return Array.isArray(t)&&t.length>0}function h(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}var y={containsDates:h,containsNumbers:function(t){return Array.isArray(t)&&t.some((function(t){return"number"==typeof t}))},containsOnlyStrings:function(t){return p(t)&&t.every((function(t){return"string"==typeof t}))},containsStrings:function(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))},getMaxValue:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return h(o)?new Date(Math.max.apply(Math,f(o))):Math.max.apply(Math,f(o))},getMinValue:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return h(o)?new Date(Math.min.apply(Math,f(o))):Math.min.apply(Math,f(o))},isArrayOfArrays:function(t){return p(t)&&t.every(Array.isArray)},removeUndefined:function(t){return t.filter((function(t){return void 0!==t}))}};function v(t,n,e){var r=n.a,o=n.d,i=n.e,a=n.f;return"y"===e?o*t+a:r*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var n=function(t){return"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t};return n(t.target)}}function b(t,n,e,r){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=e-a.x,c=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(s),y:n.y.invert(l)}}return{x:i?n.x.invert(r):n.x.invert(e),y:i?n.y.invert(e):n.y.invert(r)}}var m={getParentSVG:d,getSVGEventCoordinates:function(t,n){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var e=function(t){return t.getScreenCTM().inverse()}(n=n||d(t));return{x:v(t.clientX,e,"x"),y:v(t.clientY,e,"y")}},getDomainCoordinates:function(t,n){var e=t.scale,r=t.horizontal;return n=n||{x:e.x.domain(),y:e.y.domain()},{x:r?[e.y(n.y[0]),e.y(n.y[1])]:[e.x(n.x[0]),e.x(n.x[1])],y:r?[e.x(n.x[0]),e.x(n.x[1])]:[e.y(n.y[0]),e.y(n.y[1])]}},getDataCoordinates:b,getBounds:function(t){var n=t.x1,e=t.x2,r=t.y1,o=t.y2,i=t.scale,a=b(t,i,n,r),u=b(t,i,e,o),c=function(t,n){return[y.getMinValue([t,n]),y.getMaxValue([t,n])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}},g=e(3),x=e.n(g),w=e(7),O=e.n(w),j=e(45),M=e.n(j),P=e(46),D=e.n(P),_=e(47),E=e.n(_),A=function(t){0};var S=function(t){var n=function(n,e,r,o){var i=e[r];if(null==i)return n?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[e,r,o].concat(u))},e=n.bind(null,!1);return e.isRequired=n.bind(null,!0),e},C=function(){return null},T=function(){},k=function(t){return void 0===t?T:null===t?C:t.constructor},B=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},R={deprecated:function(t,n){return function(e,r,o){var i=e[r];return null!=i&&A('"'.concat(r,'" property of "').concat(o,'" has been deprecated ').concat(n)),c.a.checkPropTypes(function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}({},r,t),e,r,o)}},allOfType:function(t){return S((function(n,e,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[n,e,r].concat(i))}),void 0)}))},nonNegative:S((function(t,n,e){var r=t[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number."))})),integer:S((function(t,n,e){var r=t[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(e,"` must be an integer."))})),greaterThanZero:S((function(t,n,e){var r=t[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero."))})),domain:S((function(t,n,e){var r=t[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))})),scale:S((function(t,n,e){var r,o=["linear","time","log","sqrt"],i=t[n];if(r=i,!(x()(r)?x()(r.copy)&&x()(r.domain)&&x()(r.range):"string"==typeof r&&-1!==o.indexOf(r)))return new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),homogeneousArray:S((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(!(r.length<2)){var o=k(r[0]),i=E()(r,(function(t){return o!==k(t)}));if(i){var a=B(r[0]),u=B(i);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:S((function(t,n){if(t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),regExp:S((function(t,n,e){if(t[n]&&!D()(t[n]))return new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression."))}))},I=e(5),G=e.n(I);function z(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var V=function(t){function n(t){var e;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(e=function(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?N(t):n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).map={},e.index=1,e.portalUpdate=e.portalUpdate.bind(N(e)),e.portalRegister=e.portalRegister.bind(N(e)),e.portalDeregister=e.portalDeregister.bind(N(e)),e}var e,r,o;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),e=n,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,n){this.map[t]=n,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t],this.forceUpdate()}},{key:"getChildren",value:function(){var t=this;return G()(this.map).map((function(n){var e=t.map[n];return e?s.a.cloneElement(e,{key:n}):e}))}},{key:"render",value:function(){return s.a.createElement("svg",this.props,this.getChildren())}}])&&z(e.prototype,r),o&&z(e,o),n}(s.a.Component);Object.defineProperty(V,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(V,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:c.a.string,height:R.nonNegative,style:c.a.object,viewBox:c.a.string,width:R.nonNegative}});var U=s.a.createContext({});U.displayName="PortalContext";var W,F,H=U,q=0,X=0,Y=0,L=0,$=0,Z=0,J="object"==typeof performance&&performance.now?performance:Date,K="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Q(){return $||(K(tt),$=J.now()+Z)}function tt(){$=0}function nt(){this._call=this._time=this._next=null}function et(t,n,e){var r=new nt;return r.restart(t,n,e),r}function rt(){$=(L=J.now())+Z,q=X=0;try{!function(){Q(),++q;for(var t,n=W;n;)(t=$-n._time)>=0&&n._call.call(null,t),n=n._next;--q}()}finally{q=0,function(){var t,n,e=W,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:W=n);F=t,it(r)}(),$=0}}function ot(){var t=J.now(),n=t-L;n>1e3&&(Z-=n,L=t)}function it(t){q||(X&&(X=clearTimeout(X)),t-$>24?(t<1/0&&(X=setTimeout(rt,t-J.now()-Z)),Y&&(Y=clearInterval(Y))):(Y||(L=J.now(),Y=setInterval(ot,1e3)),q=1,K(rt)))}function at(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}nt.prototype=et.prototype={constructor:nt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Q():+e)+(null==n?0:+n),this._next||F===this||(F?F._next=this:W=this,F=this),this._call=t,this._time=e,it()},stop:function(){this._call&&(this._call=null,this._time=1/0,it())}};var ut=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var n,e,r;return n=t,(e=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(Q()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=et(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,n){n=this.shouldAnimate?n:0;var e=this.subscribers.push({startTime:Q(),callback:t,duration:n});return this.activeSubscriptions++,this.start(),e}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&at(n.prototype,e),r&&at(n,r),t}(),ct=s.a.createContext({transitionTimer:new ut,animationTimer:new ut});ct.displayName="TimerContext";var lt=ct,st=e(21),ft=e.n(st),pt=e(20),ht=e.n(pt);function yt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function vt(t){var n=function(t){return void 0!==t},e=t._x,r=t._x1,i=t._x0,a=t._voronoiX,u=t._y,c=t._y1,l=t._y0,s=t._voronoiY,f=n(r)?r:e,p=n(c)?c:u,h={x:n(a)?a:f,x0:n(i)?i:e,y:n(s)?s:p,y0:n(l)?l:u};return o()({},h,t)}function dt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function bt(t){return"tooltip"===(t&&t.type&&t.type.role)}function mt(t,n){return x()(t)?t(n):t}function gt(t){return"number"==typeof t?t*(Math.PI/180):t}function xt(t){var n=dt(t),e=n.left,r=n.right,o=n.top,i=n.bottom,a=t.width,u=t.height;return Math.min(a-e-r,u-o-i)/2}function wt(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var n=function(t){return t.reduce((function(t,e){var r=e.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:n(s.a.Children.toArray(r.children))}),!1)};return n(s.a.Children.toArray(t.children))}var Ot={omit:yt,getPoint:vt,scalePoint:function(t,n){var e=t.scale,r=t.polar,o=t.horizontal,i=vt(n),a=t.origin||{x:0,y:0},u=o?e.y(i.y):e.x(i.x),c=o?e.y(i.y0):e.x(i.x0),l=o?e.x(i.x):e.y(i.y),s=o?e.x(i.x0):e.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}},getPadding:dt,getDefaultStyles:function(t,n){var e=t.theme,r=void 0===e?{}:e,i=t.labelComponent,a=r[n]&&r[n].style||{};if(!bt(i))return a;var u=r.tooltip&&r.tooltip.style||{},c=o()({},u,a.labels);return o()({},{labels:c},a)},getStyles:function(t,n){if(!t)return o()({parent:{height:"100%",width:"100%"}},n);var e=t.data,r=t.labels,i=t.parent,a=n&&n.parent||{},u=n&&n.labels||{},c=n&&n.data||{};return{parent:o()({},i,a,{width:"100%",height:"100%"}),labels:o()({},r,u),data:o()({},e,c)}},evaluateProp:mt,evaluateStyle:function(t,n){return t&&G()(t).some((function(n){return x()(t[n])}))?G()(t).reduce((function(e,r){return e[r]=mt(t[r],n),e}),{}):t},degreesToRadians:gt,radiansToDegrees:function(t){return"number"==typeof t?t/(Math.PI/180):t},getRadius:xt,getPolarOrigin:function(t){var n=t.width,e=t.height,r=dt(t),o=r.top,i=r.bottom,a=r.left,u=r.right,c=Math.min(n-a-u,e-o-i)/2,l=n/2+a-u,s=e/2+o-i;return{x:l+c>n?c+a-u:l,y:s+c>e?c+o-i:s}},getRange:function(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[gt(t.startAngle||0),gt(t.endAngle||360)]:[t.innerRadius||0,xt(t)]}(t,n):function(t,n){var e="x"!==n,r=dt(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)},createAccessor:function(t){return x()(t)?t:null==t?function(t){return t}:ht()(t)},modifyProps:function(t,n,e){var r=yt(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=wt(t),a=void 0===i?{}:{horizontal:i};return o()(a,t,r,n)},getCurrentAxis:function(t,n){return n?"x"===t?"y":"x":t},reduceChildren:function(t,n){var e=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(t,n){return t.concat(n)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(t,c,l){return t.reduce((function(t,r,f){var p=r.type&&r.type.role,h=r.props.name||"".concat(p,"-").concat(c[f]);if(r.props&&r.props.children){var y=a()({},r.props,ft()(e,i)),v=r.type&&"stack"===r.type.role&&x()(r.type.getChildren)?r.type.getChildren(y):s.a.Children.toArray(r.props.children).map((function(t){var n=a()({},t.props,ft()(y,i));return s.a.cloneElement(t,n)})),d=v.map((function(t,n){return"".concat(h,"-").concat(n)})),b=u(v,d,r);t=o(t,b)}else{var m=n(r,h,l);m&&(t=o(t,m))}return t}),r)},c=t.map((function(t,n){return n}));return u(t,c)},isHorizontal:wt,isTooltip:bt};function jt(){return(jt=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function Mt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Pt(t,n,e[n])}))}return t}function Pt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Dt(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _t(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}var Et=function(t){function n(t){var e;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(e=_t(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).containerId=O()(t)&&void 0!==t.containerId?t.containerId:M()("victory-container-"),e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,n){return e.portalRef.portalUpdate(t,n)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=t&&x()(t.containerRef)?t.containerRef:function(t){return e.containerRef=t,t},e.shouldHandleWheel=t&&t.events&&t.events.onWheel,e.shouldHandleWheel&&(e.handleWheel=function(t){return t.preventDefault()}),e}var e,r,i;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),e=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(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var n=t.ouiaId,e=t.ouiaSafe,r=t.ouiaType;return Mt({},n&&{"data-ouia-component-id":n},r&&{"data-ouia-component-type":r},void 0!==e&&{"data-ouia-safe":e})}},{key:"renderContainer",value:function(t,n,e){var r=t.title,i=t.desc,u=t.portalComponent,c=t.className,l=t.width,f=t.height,p=t.portalZIndex,h=t.responsive,y=this.getChildren(t),v=h?{width:"100%",height:"100%"}:{width:l,height:f},d=a()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=a()({zIndex:p,position:"absolute",top:0,left:0},v),m=a()({pointerEvents:"all"},v),g=a()({overflow:"visible"},v),x={width:l,height:f,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:g};return s.a.createElement(H.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},s.a.createElement("div",jt({style:o()({},e,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),s.a.createElement("svg",jt({},n,{style:m}),r?s.a.createElement("title",{id:this.getIdForElement("title")},r):null,i?s.a.createElement("desc",{id:this.getIdForElement("desc")},i):null,y),s.a.createElement("div",{style:b},s.a.cloneElement(u,Mt({},x,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,n=t.width,e=t.height,r=t.responsive,o=t.events,i=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=r?this.props.style:Ot.omit(this.props.style,["height","width"]),p=a()({width:n,height:e,tabIndex:c,role:s,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(n," ").concat(e):void 0,preserveAspectRatio:r?l:void 0},o);return this.renderContainer(this.props,p,f)}}])&&Dt(e.prototype,r),i&&Dt(e,i),n}(s.a.Component);function At(){return(At=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}Object.defineProperty(Et,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(Et,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(Et,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-describedby":c.a.string,"aria-labelledby":c.a.string,children:c.a.oneOfType([c.a.arrayOf(c.a.node),c.a.node]),className:c.a.string,containerId:c.a.oneOfType([c.a.number,c.a.string]),containerRef:c.a.func,desc:c.a.string,events:c.a.object,height:R.nonNegative,name:c.a.string,origin:c.a.shape({x:R.nonNegative,y:R.nonNegative}),ouiaId:c.a.oneOfType([c.a.number,c.a.string]),ouiaSafe:c.a.bool,ouiaType:c.a.string,polar:c.a.bool,portalComponent:c.a.element,portalZIndex:R.integer,preserveAspectRatio:c.a.string,responsive:c.a.bool,role:c.a.string,style:c.a.object,tabIndex:c.a.number,theme:c.a.object,title:c.a.string,width:R.nonNegative}}),Object.defineProperty(Et,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:s.a.createElement(V,null),portalZIndex:99,responsive:!0,role:"img"}}),Object.defineProperty(Et,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:lt});var St=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,["desc"]);return n?s.a.createElement("rect",At({vectorEffect:"non-scaling-stroke"},e),s.a.createElement("desc",null,n)):s.a.createElement("rect",At({vectorEffect:"non-scaling-stroke"},e))},Ct=e(10),Tt=e.n(Ct),kt=e(44),Bt=e.n(kt),Rt=e(9),It=e.n(Rt);function Gt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){zt(t,n,e[n])}))}return t}function zt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Nt(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Vt={getDimension:function(t){var n=t.horizontal,e=t.brushDimension;return n&&e?"x"===e?"y":"x":e},withinBounds:function(t,n,e){var r=Tt()(n,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=Tt()(t,Number),l=c.x,s=c.y;return l+(e=e?e/2:0)>=Math.min(o,i)&&l-e<=Math.max(o,i)&&s+e>=Math.min(a,u)&&s-e<=Math.max(a,u)},getDomainBox:function(t,n,e){var r=this.getDimension(t);n=o()({},n,t.domain),e=o()({},e,n);var i=m.getDomainCoordinates(t,n),a=m.getDomainCoordinates(t,e);return{x1:"y"!==r?Math.min.apply(Math,Nt(a.x)):Math.min.apply(Math,Nt(i.x)),x2:"y"!==r?Math.max.apply(Math,Nt(a.x)):Math.max.apply(Math,Nt(i.x)),y1:"x"!==r?Math.min.apply(Math,Nt(a.y)):Math.min.apply(Math,Nt(i.y)),y2:"x"!==r?Math.max.apply(Math,Nt(a.y)):Math.max.apply(Math,Nt(i.y))}},getHandles:function(t,n){var e=this.getDimension(t),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==e&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==e&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==e&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==e&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,n,e){var r=this,o=this.getHandles(n,e),i=["top","bottom","left","right"].reduce((function(n,e){return n=o[e]&&r.withinBounds(t,o[e])?n.concat(e):n}),[]);return i.length&&i},getResizeMutation:function(t,n){var e=t.x1,r=t.y1,o=t.x2,i=t.y2,u={left:{x1:Math.max(e,o),x2:Math.min(e,o),y1:r,y2:i},right:{x1:Math.min(e,o),x2:Math.max(e,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:e,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:e,x2:o}};return n.reduce((function(t,n){return a()(t,u[n])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,n,e){var r=t.defaultBrushArea,o=t.domain,i=t.fullDomain,a=t.scale,u=t.horizontal;if("none"===r)return this.getMinimumDomain();if("disable"===r)return n;if("move"===r){var c=this.getDomainBox(t,i,n),l=t.parentSVG||m.getParentSVG(e),s=this.panBox(Gt({},t,c,{brushDomain:n,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),m.getSVGEventCoordinates(e,l)),f=t.fullDomainBox||this.getDomainBox(t,i),p=this.constrainBox(s,f);return m.getBounds(Gt({},p,{scale:a,horizontal:u}))}return o},getSelectionMutation:function(t,n,e){var r=t.x,o=t.y,i=n.x1,a=n.x2,u=n.y1,c=n.y2;return{x1:"y"!==e?r:i,y1:"x"!==e?o:u,x2:"y"!==e?r:a,y2:"x"!==e?o:c}},panBox:function(t,n){var e=t.domain,r=t.startX,i=t.startY,a=this.getDimension(t),u=o()({},t.brushDomain,e),c=o()({},t.fullDomain,e),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,h=l.y2,y=n.x,v=n.y,d=r?r-y:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-d:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-d:Math.max(s,f),y1:"x"!==a?Math.min(p,h)-b:Math.min(p,h),y2:"x"!==a?Math.max(p,h)-b:Math.max(p,h)}},constrainBox:function(t,n){var e=Tt()(n,Number),r=e.x1,o=e.y1,i=e.x2,a=e.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,r),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<r?r+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,n){var e=Tt()(n,Number),r=e.x1,o=e.y1,i=e.x2,a=e.y2;return{x:Math.min(Math.max(t.x,r),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var n=t.x1,e=t.x2,r=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(n-e)>=i,c=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,n){var e=this;t.preventDefault();var r=n.handleWidth,i=n.cachedBrushDomain,a=n.domain,u=n.allowResize,c=n.allowDrag,l=n.allowDraw,s=this.getDimension(n);if(!u&&!c)return{};var f=n.fullDomainBox||this.getDomainBox(n,a),p=n.parentSVG||m.getParentSVG(t),h=m.getSVGEventCoordinates(t,p),y=h.x,v=h.y;if(!this.withinBounds({x:y,y:v},f,r))return{};var d=o()({},n.brushDomain,a),b=It()(d,i)?n.currentDomain||d||a:d||a,g=this.getDomainBox(n,a,b),x=u&&this.getActiveHandles({x:y,y:v},n,g);return x?[{target:"parent",mutation:function(){return Gt({isSelecting:!0,domainBox:g,fullDomainBox:f,cachedBrushDomain:d,currentDomain:b,parentSVG:p},e.getResizeMutation(g,x))}}]:this.withinBounds({x:y,y:v},g)&&!It()(a,b)?[{target:"parent",mutation:function(){return Gt({isPanning:c,startX:y,startY:v,domainBox:g,fullDomainBox:f,currentDomain:b,cachedBrushDomain:d,parentSVG:p},g)}}]:l?[{target:"parent",mutation:function(){return Gt({isSelecting:u,domainBox:g,fullDomainBox:f,parentSVG:p,cachedBrushDomain:d,cachedCurrentDomain:b,currentDomain:e.getMinimumDomain()},e.getSelectionMutation({x:y,y:v},g,s))}}]:{}},onGlobalMouseMove:function(t,n){var e=n.scale,r=n.isPanning,i=n.isSelecting,a=n.fullDomainBox,u=n.onBrushDomainChange,c=n.allowResize,l=n.allowDrag,s=n.horizontal,f=n.mouseMoveThreshold,p=n.parentSVG,h=this.getDimension(n),y=m.getSVGEventCoordinates(t,p),v=y.x,d=y.y;if(!c&&!l||f>0&&!this.hasMoved(Gt({},n,{x2:v,y2:d})))return{};if(l&&r){var b=n.startX,g=n.startY,w=this.panBox(n,{x:v,y:d}),O=this.constrainBox(w,a),j=m.getBounds(Gt({},O,{scale:e,horizontal:s})),M=Gt({currentDomain:j,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?b:v,startY:w.y2>=a.y2||w.y1<=a.y1?g:d},O);return x()(u)&&u(j,o()({},M,n)),[{target:"parent",mutation:function(){return M}}]}if(c&&i){var P=this.constrainPoint({x:"y"!==h?v:n.x2,y:"x"!==h?d:n.y2},a),D=P.x,_=P.y,E=m.getBounds({x2:D,y2:_,x1:n.x1,y1:n.y1,scale:e,horizontal:s}),A={x2:D,y2:_,currentDomain:E,parentSVG:p};return x()(u)&&u(E,o()({},A,n)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,n){if(!n.isPanning&&!n.isSelecting)return{};var e=n.x1,r=n.y1,i=n.x2,a=n.y2,u=n.isPanning,c=n.isSelecting,l=n.onBrushDomainChange,s=n.onBrushDomainChangeEnd,f=n.onBrushCleared,p=n.currentDomain,h=n.allowResize,y=n.allowDrag,v=n.defaultBrushArea,d={isPanning:!1,isSelecting:!1};if(!h&&!(void 0!==v&&"none"!==v)||e!==i&&r!==a)(y&&u||h&&c)&&x()(s)&&s(p,o()({},d,n));else{var b=n.cachedCurrentDomain||p,m=this.getDefaultBrushArea(n,b,t);d.currentDomain=m,x()(l)&&l(m,o()({},d,n)),x()(s)&&s(m,o()({},d,n)),x()(f)&&f(m,o()({},d,n))}return[{target:"parent",mutation:function(){return d}}]}},Ut=Gt({},Vt,{onMouseDown:Vt.onMouseDown.bind(Vt),onGlobalMouseUp:Vt.onGlobalMouseUp.bind(Vt),onGlobalMouseMove:Bt()(Vt.onGlobalMouseMove.bind(Vt),16,{leading:!0,trailing:!1})});function Wt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Ft(t,n,e[n])}))}return t}function Ft(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Ht(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function qt(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Xt(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yt(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}var Lt=function(t){var n,e;return e=n=function(t){function n(){return qt(this,n),Yt(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var e,r,i;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),e=n,(r=[{key:"getSelectBox",value:function(t,n){var e=n.x,r=n.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,l=t.allowDrag||t.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?s.a.cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(e[1]-e[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(e[0],e[1]),y:Math.min(r[0],r[1]),cursor:l,style:o()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var n={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(n.xProps="move",n.yProps="move"):t.allowResize||t.allowDrag||(n.xProps="auto",n.yProps="auto"),n}},{key:"getHandles",value:function(t,n){var e=t.handleWidth,r=t.handleStyle,i=t.handleComponent,u=t.name,c=Ut.getDomainBox(t,n),l=c.x1,f=c.x2,p=c.y1,h=c.y2,y=Ut.getHandles(t,c),v=y.top,d=y.bottom,b=y.left,m=y.right,g=Math.abs(f-l)||1,x=Math.abs(h-p)||1,w=i.props&&i.props.style||{},O=o()({},w,r),j=this.getCursorPointers(t),M={style:O,width:g,height:e,cursor:j.yProps},P={style:O,width:e,height:x,cursor:j.xProps},D={top:v&&a()({x:v.x1,y:v.y1},M),bottom:d&&a()({x:d.x1,y:d.y1},M),left:b&&a()({y:b.y1,x:b.x1},P),right:m&&a()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,n){return t=D[n]?t.concat(s.a.cloneElement(i,a()({key:"".concat(u,"-handle-").concat(n)},D[n]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var n=t.currentDomain,e=t.cachedBrushDomain,r=o()({},t.brushDomain,t.domain),i=It()(r,e)?o()({},n,r):r,a=m.getDomainCoordinates(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return Ht(s.a.Children.toArray(t.children)).concat(Ht(this.getRect(t)))}}])&&Xt(e.prototype,r),i&&Xt(e,i),n}(t),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryBrushContainer"}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Wt({},Et.propTypes,{allowDrag:c.a.bool,allowDraw:c.a.bool,allowResize:c.a.bool,brushComponent:c.a.element,brushDimension:c.a.oneOf(["x","y"]),brushDomain:c.a.shape({x:c.a.array,y:c.a.array}),brushStyle:c.a.object,defaultBrushArea:c.a.oneOf(["all","disable","none","move"]),disable:c.a.bool,handleComponent:c.a.element,handleStyle:c.a.object,handleWidth:c.a.number,onBrushCleared:c.a.func,onBrushDomainChange:c.a.func,onBrushDomainChangeEnd:c.a.func})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Wt({},Et.defaultProps,{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:s.a.createElement(St,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:s.a.createElement(St,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(n,e){return t.disable?{}:Ut.onMouseDown(n,e)},onTouchStart:function(n,e){return t.disable?{}:Ut.onMouseDown(n,e)},onGlobalMouseMove:function(n,e){return t.disable||!e.isPanning&&!e.isSelecting?{}:Ut.onGlobalMouseMove(n,e)},onGlobalTouchMove:function(n,e){return t.disable||!e.isPanning&&!e.isSelecting?{}:Ut.onGlobalMouseMove(n,e)},onGlobalMouseUp:function(n,e){return t.disable?{}:Ut.onGlobalMouseUp(n,e)},onGlobalTouchEnd:function(n,e){return t.disable?{}:Ut.onGlobalMouseUp(n,e)},onGlobalTouchCancel:function(n,e){return t.disable?{}:Ut.onGlobalMouseUp(n,e)}}}]}}),e},$t=Lt(Et)}])}));
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryBrushContainer=n(require("react")):t.VictoryBrushContainer=n(t.React)}(window,(function(t){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=111)}([function(t,n,e){t.exports=e(56)()},function(n,e){n.exports=t},function(t,n,e){var r=e(21),o=e(13),i=e(25),a=e(50),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&i(n[0],n[1],l)&&(r=1);++e<r;)for(var s=n[e],f=a(s),p=-1,h=f.length;++p<h;){var y=f[p],v=t[y];(void 0===v||o(v,u[y])&&!c.call(t,y))&&(t[y]=s[y])}return t}));t.exports=l},function(t,n,e){var r=e(27),o=e(7);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){var r=e(14),o=e(53),i=e(54),a=e(26),u=e(55),c=e(5),l=Object.prototype.hasOwnProperty,s=i((function(t,n){if(u(n)||a(n))o(n,c(n),t);else for(var e in n)l.call(n,e)&&r(t,e,n[e])}));t.exports=s},function(t,n,e){var r=e(29)(Object.keys,Object);t.exports=r},function(t,n){var e=Array.isArray;t.exports=e},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n){t.exports=function(t){return t}},function(t,n,e){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;t.exports=function(t,n){try{return function t(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var u,c,l,s=r(n),f=r(e);if(s&&f){if((c=n.length)!=e.length)return!1;for(u=c;0!=u--;)if(!t(n[u],e[u]))return!1;return!0}if(s!=f)return!1;var p=n instanceof Date,h=e instanceof Date;if(p!=h)return!1;if(p&&h)return n.getTime()==e.getTime();var y=n instanceof RegExp,v=e instanceof RegExp;if(y!=v)return!1;if(y&&v)return n.toString()==e.toString();var d=o(n);if((c=d.length)!==o(e).length)return!1;for(u=c;0!=u--;)if(!i.call(e,d[u]))return!1;if(a&&n instanceof Element&&e instanceof Element)return n===e;for(u=c;0!=u--;)if(!("_owner"===(l=d[u])&&n.$$typeof||t(n[l],e[l])))return!1;return!0}return n!=n&&e!=e}(t,n)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},function(t,n,e){var r=e(15),o=e(58),i=e(16);t.exports=function(t,n){var e={};return n=i(n,3),o(t,(function(t,o,i){r(e,o,n(t,o,i))})),e}},function(t,n,e){var r=e(13);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},function(t,n,e){var r=e(6),o=e(18),i=e(83),a=e(36);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(15),o=e(13),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},function(t,n,e){var r=e(51);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},function(t,n,e){var r=e(61),o=e(81),i=e(22),a=e(6),u=e(19);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},function(t,n,e){var r=e(12),o=e(8);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?t:void 0}},function(t,n,e){var r=e(6),o=e(35),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=n&&t in Object(n))}},function(t,n,e){var r=e(90),o=e(91),i=e(18),a=e(8);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,n,e){var r=e(94),o=e(97)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},function(t,n,e){var r=e(22),o=e(23),i=e(24);t.exports=function(t,n){return i(o(t,n,r),t+"")}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(49),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),c=Array(u);++a<u;)c[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=e(c),r(t,this,l)}}},function(t,n){t.exports=function(t){return t}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(3),o=e(28);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,n){t.exports=function(t,n){return function(e){return t(n(e))}}},function(t,n,e){var r=e(63),o=e(64),i=e(65),a=e(66),u=e(67);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,e){var r=e(68),o=e(32);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n,e){var r=e(7);t.exports=function(t){return t==t&&!r(t)}},function(t,n){t.exports=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(85);t.exports=function(t){return null==t?"":r(t)}},function(t,n,e){var r=e(38).Symbol;t.exports=r},function(t,n,e){var r=e(39),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e(86))},function(t,n,e){var r=e(88),o=e(89);t.exports=function(t,n){return null!=t&&o(t,n,r)}},function(t,n){t.exports=function(){return!1}},function(t,n){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(92),o=e(7);t.exports=function(t,n,e){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(e)&&(i="leading"in e?!!e.leading:i,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:i,maxWait:n,trailing:a})}},function(t,n,e){var r=e(36),o=0;t.exports=function(t){var n=++o;return r(t)+n}},function(t,n,e){var r=e(102),o=e(103),i=e(104),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},function(t,n,e){var r=e(106)(e(107));t.exports=r},,function(t,n){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},function(t,n,e){var r=e(52),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,e){var r=e(14),o=e(15);t.exports=function(t,n,e,i){var a=!e;e||(e={});for(var u=-1,c=n.length;++u<c;){var l=n[u],s=i?i(e[l],t[l],l,e,t):void 0;void 0===s&&(s=t[l]),a?o(e,l,s):r(e,l,s)}return e}},function(t,n,e){var r=e(21),o=e(25);t.exports=function(t){return r((function(n,e){var r=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),n=Object(n);++r<i;){var c=e[r];c&&t(n,c,r,a)}return n}))}},function(t,n){t.exports=function(){return!1}},function(t,n,e){"use strict";var r=e(57);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,a){if(a!==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 t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n,e){var r=e(59),o=e(5);t.exports=function(t,n){return t&&r(t,n,o)}},function(t,n,e){var r=e(60)();t.exports=r},function(t,n){t.exports=function(t){return function(n,e,r){for(var o=-1,i=Object(n),a=r(n),u=a.length;u--;){var c=a[t?u:++o];if(!1===e(i[c],c,i))break}return n}}},function(t,n,e){var r=e(62),o=e(80),i=e(34);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},function(t,n,e){var r=e(30),o=e(31);t.exports=function(t,n,e,i){var a=e.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=e[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=e[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new r;if(i)var y=i(f,p,s,t,n,h);if(!(void 0===y?o(p,f,3,i,h):y))return!1}}return!0}},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,e){var r=e(11),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0)&&(e==n.length-1?n.pop():o.call(n,e,1),--this.size,!0)}},function(t,n,e){var r=e(11);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},function(t,n,e){var r=e(11);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,n,e){var r=e(11);t.exports=function(t,n){var e=this.__data__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},function(t,n,e){var r=e(30),o=e(69),i=e(74),a=e(75),u=e(77),c=e(6),l=e(78),s=e(79),f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,h,y,v){var d=c(t),b=c(n),m=d?"[object Array]":u(t),g=b?"[object Array]":u(n),x=(m="[object Arguments]"==m?f:m)==f,w=(g="[object Arguments]"==g?f:g)==f,O=m==g;if(O&&l(t)){if(!l(n))return!1;d=!0,x=!1}if(O&&!x)return v||(v=new r),d||s(t)?o(t,n,e,h,y,v):i(t,n,m,e,h,y,v);if(!(1&e)){var j=x&&p.call(t,"__wrapped__"),M=w&&p.call(n,"__wrapped__");if(j||M){var P=j?t.value():t,D=M?n.value():n;return v||(v=new r),y(P,D,e,h,v)}}return!!O&&(v||(v=new r),a(t,n,e,h,y,v))}},function(t,n,e){var r=e(70),o=e(71),i=e(72);t.exports=function(t,n,e,a,u,c){var l=1&e,s=t.length,f=n.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t);if(p&&c.get(n))return p==n;var h=-1,y=!0,v=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++h<s;){var d=t[h],b=n[h];if(a)var m=l?a(b,d,h,n,t,c):a(d,b,h,t,n,c);if(void 0!==m){if(m)continue;y=!1;break}if(v){if(!o(n,(function(t,n){if(!i(v,n)&&(d===t||u(d,t,e,a,c)))return v.push(n)}))){y=!1;break}}else if(d!==b&&!u(d,b,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},function(t,n,e){var r=e(6);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},function(t,n,e){var r=e(73);t.exports=function(t,n){return!!(null==t?0:t.length)&&r(t,n,0)>-1}},function(t,n){t.exports=function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(76),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,a,u){var c=1&e,l=r(t),s=l.length;if(s!=r(n).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in n:o.call(n,p)))return!1}var h=u.get(t);if(h&&u.get(n))return h==n;var y=!0;u.set(t,n),u.set(n,t);for(var v=c;++f<s;){var d=t[p=l[f]],b=n[p];if(i)var m=c?i(b,d,p,n,t,u):i(d,b,p,t,n,u);if(!(void 0===m?d===b||a(d,b,e,i,u):m)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var g=t.constructor,x=n.constructor;g==x||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof x&&x instanceof x||(y=!1)}return u.delete(t),u.delete(n),y}},function(t,n,e){var r=e(29)(Object.keys,Object);t.exports=r},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(){return!1}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(33),o=e(5);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,a,r(a)]}return n}},function(t,n,e){var r=e(31),o=e(82),i=e(40),a=e(18),u=e(33),c=e(34),l=e(8);t.exports=function(t,n){return a(t)&&u(n)?c(l(t),n):function(e){var a=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},function(t,n,e){var r=e(17);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},function(t,n,e){var r=e(84),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$1"):e||t)})),n}));t.exports=a},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(37),o=e(87),i=e(6),a=e(35),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},function(t,n){t.exports=function(t,n){return null!=t&&n in Object(t)}},function(t,n,e){var r=e(12),o=e(41),i=e(6),a=e(42),u=e(28),c=e(8);t.exports=function(t,n,e){for(var l=-1,s=(n=r(n,t)).length,f=!1;++l<s;){var p=c(n[l]);if(!(f=null!=t&&e(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},function(t,n){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},function(t,n,e){var r=e(17);t.exports=function(t){return function(n){return r(n,t)}}},function(t,n,e){var r=e(7),o=e(93),i=e(43),a=Math.max,u=Math.min;t.exports=function(t,n,e){var c,l,s,f,p,h,y=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(n){var e=c,r=l;return c=l=void 0,y=n,f=t.apply(r,e)}function g(t){return y=t,p=setTimeout(w,n),v?m(t):f}function x(t){var e=t-h;return void 0===h||e>=n||e<0||d&&t-y>=s}function w(){var t=o();if(x(t))return O(t);p=setTimeout(w,function(t){var e=n-(t-h);return d?u(e,s-(t-y)):e}(t))}function O(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),e=x(t);if(c=arguments,l=this,h=t,e){if(void 0===p)return g(h);if(d)return clearTimeout(p),p=setTimeout(w,n),m(h)}return void 0===p&&(p=setTimeout(w,n)),f}return n=i(n)||0,r(e)&&(v=!!e.leading,s=(d="maxWait"in e)?a(i(e.maxWait)||0,n):s,b="trailing"in e?!!e.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),y=0,c=h=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},function(t,n,e){var r=e(38);t.exports=function(){return r.Date.now()}},function(t,n,e){var r=e(95),o=e(40);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},function(t,n,e){var r=e(17),o=e(96),i=e(12);t.exports=function(t,n,e){for(var a=-1,u=n.length,c={};++a<u;){var l=n[a],s=r(t,l);e(s,l)&&o(c,i(l,t),s)}return c}},function(t,n,e){var r=e(14),o=e(12),i=e(42),a=e(7),u=e(8);t.exports=function(t,n,e,c){if(!a(t))return t;for(var l=-1,s=(n=o(n,t)).length,f=s-1,p=t;null!=p&&++l<s;){var h=u(n[l]),y=e;if(l!=f){var v=p[h];void 0===(y=c?c(v,h,p):void 0)&&(y=a(v)?v:i(n[l+1])?[]:{})}r(p,h,y),p=p[h]}return t}},function(t,n,e){var r=e(98),o=e(23),i=e(24);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,n,e){var r=e(99);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,n,e){var r=e(100),o=e(101);t.exports=function t(n,e,i,a,u){var c=-1,l=n.length;for(i||(i=o),u||(u=[]);++c<l;){var s=n[c];e>0&&i(s)?e>1?t(s,e-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(t,n){t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}},function(t,n,e){var r=e(37),o=e(41),i=e(6),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,n,e){var r=e(27),o=e(32);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,e){(function(t){var r=e(39),o=n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,e(105)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){var r=e(16),o=e(26),i=e(5);t.exports=function(t){return function(n,e,a){var u=Object(n);if(!o(n)){var c=r(e,3);n=i(n),e=function(t){return c(u[t],t,u)}}var l=t(n,e,a);return l>-1?u[c?n[l]:l]:void 0}}},function(t,n,e){var r=e(108),o=e(16),i=e(109),a=Math.max;t.exports=function(t,n,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),r(t,o(n,3),c)}},function(t,n){t.exports=function(t,n,e,r){for(var o=t.length,i=e+(r?1:-1);r?i--:++i<o;)if(n(t[i],i,t))return i;return-1}},function(t,n,e){var r=e(110);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},function(t,n,e){var r=e(43);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,n,e){"use strict";e.r(n),e.d(n,"brushContainerMixin",(function(){return Lt})),e.d(n,"VictoryBrushContainer",(function(){return $t})),e.d(n,"BrushHelpers",(function(){return Ut}));var r=e(2),o=e.n(r),i=e(4),a=e.n(i),u=e(0),c=e.n(u),l=e(1),s=e.n(l);function f(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function p(t){return Array.isArray(t)&&t.length>0}function h(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}var y={containsDates:h,containsNumbers:function(t){return Array.isArray(t)&&t.some((function(t){return"number"==typeof t}))},containsOnlyStrings:function(t){return p(t)&&t.every((function(t){return"string"==typeof t}))},containsStrings:function(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))},getMaxValue:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return h(o)?new Date(Math.max.apply(Math,f(o))):Math.max.apply(Math,f(o))},getMinValue:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return h(o)?new Date(Math.min.apply(Math,f(o))):Math.min.apply(Math,f(o))},isArrayOfArrays:function(t){return p(t)&&t.every(Array.isArray)},removeUndefined:function(t){return t.filter((function(t){return void 0!==t}))}};function v(t,n,e){var r=n.a,o=n.d,i=n.e,a=n.f;return"y"===e?o*t+a:r*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var n=function(t){return"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t};return n(t.target)}}function b(t,n,e,r){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=e-a.x,c=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(s),y:n.y.invert(l)}}return{x:i?n.x.invert(r):n.x.invert(e),y:i?n.y.invert(e):n.y.invert(r)}}var m={getParentSVG:d,getSVGEventCoordinates:function(t,n){if(t.nativeEvent&&void 0!==t.nativeEvent.identifier)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};t=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;var e=function(t){return t.getScreenCTM().inverse()}(n=n||d(t));return{x:v(t.clientX,e,"x"),y:v(t.clientY,e,"y")}},getDomainCoordinates:function(t,n){var e=t.scale,r=t.horizontal;return n=n||{x:e.x.domain(),y:e.y.domain()},{x:r?[e.y(n.y[0]),e.y(n.y[1])]:[e.x(n.x[0]),e.x(n.x[1])],y:r?[e.x(n.x[0]),e.x(n.x[1])]:[e.y(n.y[0]),e.y(n.y[1])]}},getDataCoordinates:b,getBounds:function(t){var n=t.x1,e=t.x2,r=t.y1,o=t.y2,i=t.scale,a=b(t,i,n,r),u=b(t,i,e,o),c=function(t,n){return[y.getMinValue([t,n]),y.getMaxValue([t,n])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}},g=e(3),x=e.n(g),w=e(7),O=e.n(w),j=e(45),M=e.n(j),P=e(46),D=e.n(P),_=e(47),A=e.n(_),E=function(t){0};var S=function(t){var n=function(n,e,r,o){var i=e[r];if(null==i)return n?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>4?a-4:0),c=4;c<a;c++)u[c-4]=arguments[c];return t.apply(void 0,[e,r,o].concat(u))},e=n.bind(null,!1);return e.isRequired=n.bind(null,!0),e},C=function(){return null},T=function(){},B=function(t){return void 0===t?T:null===t?C:t.constructor},R=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},k={deprecated:function(t,n){return function(e,r,o){var i=e[r];return null!=i&&E('"'.concat(r,'" property of "').concat(o,'" has been deprecated ').concat(n)),c.a.checkPropTypes(function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}({},r,t),e,r,o)}},allOfType:function(t){return S((function(n,e,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[n,e,r].concat(i))}),void 0)}))},nonNegative:S((function(t,n,e){var r=t[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number."))})),integer:S((function(t,n,e){var r=t[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(e,"` must be an integer."))})),greaterThanZero:S((function(t,n,e){var r=t[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero."))})),domain:S((function(t,n,e){var r=t[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))})),scale:S((function(t,n,e){var r,o=["linear","time","log","sqrt"],i=t[n];if(r=i,!(x()(r)?x()(r.copy)&&x()(r.domain)&&x()(r.range):"string"==typeof r&&-1!==o.indexOf(r)))return new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),homogeneousArray:S((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(!(r.length<2)){var o=B(r[0]),i=A()(r,(function(t){return o!==B(t)}));if(i){var a=R(r[0]),u=R(i);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:S((function(t,n){if(t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),regExp:S((function(t,n,e){if(t[n]&&!D()(t[n]))return new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression."))}))},I=e(5),z=e.n(I);function G(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var V=function(t){function n(t){var e;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(e=function(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?N(t):n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).map={},e.index=1,e.portalUpdate=e.portalUpdate.bind(N(e)),e.portalRegister=e.portalRegister.bind(N(e)),e.portalDeregister=e.portalDeregister.bind(N(e)),e}var e,r,o;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),e=n,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,n){this.map[t]=n,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t],this.forceUpdate()}},{key:"getChildren",value:function(){var t=this;return z()(this.map).map((function(n){var e=t.map[n];return e?s.a.cloneElement(e,{key:n}):e}))}},{key:"render",value:function(){return s.a.createElement("svg",this.props,this.getChildren())}}])&&G(e.prototype,r),o&&G(e,o),n}(s.a.Component);Object.defineProperty(V,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"Portal"}),Object.defineProperty(V,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:c.a.string,height:k.nonNegative,style:c.a.object,viewBox:c.a.string,width:k.nonNegative}});var U=s.a.createContext({});U.displayName="PortalContext";var W,F,H=U,q=0,X=0,Y=0,L=0,$=0,Z=0,J="object"==typeof performance&&performance.now?performance:Date,K="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Q(){return $||(K(tt),$=J.now()+Z)}function tt(){$=0}function nt(){this._call=this._time=this._next=null}function et(t,n,e){var r=new nt;return r.restart(t,n,e),r}function rt(){$=(L=J.now())+Z,q=X=0;try{!function(){Q(),++q;for(var t,n=W;n;)(t=$-n._time)>=0&&n._call.call(null,t),n=n._next;--q}()}finally{q=0,function(){var t,n,e=W,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:W=n);F=t,it(r)}(),$=0}}function ot(){var t=J.now(),n=t-L;n>1e3&&(Z-=n,L=t)}function it(t){q||(X&&(X=clearTimeout(X)),t-$>24?(t<1/0&&(X=setTimeout(rt,t-J.now()-Z)),Y&&(Y=clearInterval(Y))):(Y||(L=J.now(),Y=setInterval(ot,1e3)),q=1,K(rt)))}function at(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}nt.prototype=et.prototype={constructor:nt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Q():+e)+(null==n?0:+n),this._next||F===this||(F?F._next=this:W=this,F=this),this._call=t,this._time=e,it()},stop:function(){this._call&&(this._call=null,this._time=1/0,it())}};var ut=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=null,this.activeSubscriptions=0}var n,e,r;return n=t,(e=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach((function(t){t.callback(Q()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=et(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,n){n=this.shouldAnimate?n:0;var e=this.subscribers.push({startTime:Q(),callback:t,duration:n});return this.activeSubscriptions++,this.start(),e}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&at(n.prototype,e),r&&at(n,r),t}(),ct=s.a.createContext({transitionTimer:new ut,animationTimer:new ut});ct.displayName="TimerContext";var lt=ct,st=e(20),ft=e.n(st),pt=e(19),ht=e.n(pt);function yt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function vt(t){var n=function(t){return void 0!==t},e=t._x,r=t._x1,i=t._x0,a=t._voronoiX,u=t._y,c=t._y1,l=t._y0,s=t._voronoiY,f=n(r)?r:e,p=n(c)?c:u,h={x:n(a)?a:f,x0:n(i)?i:e,y:n(s)?s:p,y0:n(l)?l:u};return o()({},h,t)}function dt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function bt(t){return"tooltip"===(t&&t.type&&t.type.role)}function mt(t,n){return x()(t)?t(n):t}function gt(t){return"number"==typeof t?t*(Math.PI/180):t}function xt(t){var n=dt(t),e=n.left,r=n.right,o=n.top,i=n.bottom,a=t.width,u=t.height;return Math.min(a-e-r,u-o-i)/2}function wt(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var n=function(t){return t.reduce((function(t,e){var r=e.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:n(s.a.Children.toArray(r.children))}),!1)};return n(s.a.Children.toArray(t.children))}var Ot={omit:yt,getPoint:vt,scalePoint:function(t,n){var e=t.scale,r=t.polar,o=t.horizontal,i=vt(n),a=t.origin||{x:0,y:0},u=o?e.y(i.y):e.x(i.x),c=o?e.y(i.y0):e.x(i.x0),l=o?e.x(i.x):e.y(i.y),s=o?e.x(i.x0):e.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}},getPadding:dt,getDefaultStyles:function(t,n){var e=t.theme,r=void 0===e?{}:e,i=t.labelComponent,a=r[n]&&r[n].style||{};if(!bt(i))return a;var u=r.tooltip&&r.tooltip.style||{},c=o()({},u,a.labels);return o()({},{labels:c},a)},getStyles:function(t,n){if(!t)return o()({parent:{height:"100%",width:"100%"}},n);var e=t.data,r=t.labels,i=t.parent,a=n&&n.parent||{},u=n&&n.labels||{},c=n&&n.data||{};return{parent:o()({},i,a,{width:"100%",height:"100%"}),labels:o()({},r,u),data:o()({},e,c)}},evaluateProp:mt,evaluateStyle:function(t,n){return t&&z()(t).some((function(n){return x()(t[n])}))?z()(t).reduce((function(e,r){return e[r]=mt(t[r],n),e}),{}):t},degreesToRadians:gt,radiansToDegrees:function(t){return"number"==typeof t?t/(Math.PI/180):t},getRadius:xt,getPolarOrigin:function(t){var n=t.width,e=t.height,r=dt(t),o=r.top,i=r.bottom,a=r.left,u=r.right,c=Math.min(n-a-u,e-o-i)/2,l=n/2+a-u,s=e/2+o-i;return{x:l+c>n?c+a-u:l,y:s+c>e?c+o-i:s}},getRange:function(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[gt(t.startAngle||0),gt(t.endAngle||360)]:[t.innerRadius||0,xt(t)]}(t,n):function(t,n){var e="x"!==n,r=dt(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)},createAccessor:function(t){return x()(t)?t:null==t?function(t){return t}:ht()(t)},modifyProps:function(t,n,e){var r=yt(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=wt(t),a=void 0===i?{}:{horizontal:i};return o()(a,t,r,n)},getCurrentAxis:function(t,n){return n?"x"===t?"y":"x":t},reduceChildren:function(t,n){var e=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(t,n){return t.concat(n)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],u=function(t,c,l){return t.reduce((function(t,r,f){var p=r.type&&r.type.role,h=r.props.name||"".concat(p,"-").concat(c[f]);if(r.props&&r.props.children){var y=a()({},r.props,ft()(e,i)),v=r.type&&"stack"===r.type.role&&x()(r.type.getChildren)?r.type.getChildren(y):s.a.Children.toArray(r.props.children).map((function(t){var n=a()({},t.props,ft()(y,i));return s.a.cloneElement(t,n)})),d=v.map((function(t,n){return"".concat(h,"-").concat(n)})),b=u(v,d,r);t=o(t,b)}else{var m=n(r,h,l);m&&(t=o(t,m))}return t}),r)},c=t.map((function(t,n){return n}));return u(t,c)},isHorizontal:wt,isTooltip:bt};function jt(){return(jt=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function Mt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Pt(t,n,e[n])}))}return t}function Pt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Dt(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _t(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}var At=function(t){function n(t){var e;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(e=_t(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).containerId=O()(t)&&void 0!==t.containerId?t.containerId:M()("victory-container-"),e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,n){return e.portalRef.portalUpdate(t,n)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=t&&x()(t.containerRef)?t.containerRef:function(t){return e.containerRef=t,t},e.shouldHandleWheel=t&&t.events&&t.events.onWheel,e.shouldHandleWheel&&(e.handleWheel=function(t){return t.preventDefault()}),e}var e,r,i;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),e=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(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var n=t.ouiaId,e=t.ouiaSafe,r=t.ouiaType;return Mt({},n&&{"data-ouia-component-id":n},r&&{"data-ouia-component-type":r},void 0!==e&&{"data-ouia-safe":e})}},{key:"renderContainer",value:function(t,n,e){var r=t.title,i=t.desc,u=t.portalComponent,c=t.className,l=t.width,f=t.height,p=t.portalZIndex,h=t.responsive,y=this.getChildren(t),v=h?{width:"100%",height:"100%"}:{width:l,height:f},d=a()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=a()({zIndex:p,position:"absolute",top:0,left:0},v),m=a()({pointerEvents:"all"},v),g=a()({overflow:"visible"},v),x={width:l,height:f,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:g};return s.a.createElement(H.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},s.a.createElement("div",jt({style:o()({},e,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),s.a.createElement("svg",jt({},n,{style:m}),r?s.a.createElement("title",{id:this.getIdForElement("title")},r):null,i?s.a.createElement("desc",{id:this.getIdForElement("desc")},i):null,y),s.a.createElement("div",{style:b},s.a.cloneElement(u,Mt({},x,{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,n=t.width,e=t.height,r=t.responsive,o=t.events,i=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=r?this.props.style:Ot.omit(this.props.style,["height","width"]),p=a()({width:n,height:e,tabIndex:c,role:s,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(n," ").concat(e):void 0,preserveAspectRatio:r?l:void 0},o);return this.renderContainer(this.props,p,f)}}])&&Dt(e.prototype,r),i&&Dt(e,i),n}(s.a.Component);function Et(){return(Et=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}Object.defineProperty(At,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryContainer"}),Object.defineProperty(At,"role",{configurable:!0,enumerable:!0,writable:!0,value:"container"}),Object.defineProperty(At,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{"aria-describedby":c.a.string,"aria-labelledby":c.a.string,children:c.a.oneOfType([c.a.arrayOf(c.a.node),c.a.node]),className:c.a.string,containerId:c.a.oneOfType([c.a.number,c.a.string]),containerRef:c.a.func,desc:c.a.string,events:c.a.object,height:k.nonNegative,name:c.a.string,origin:c.a.shape({x:k.nonNegative,y:k.nonNegative}),ouiaId:c.a.oneOfType([c.a.number,c.a.string]),ouiaSafe:c.a.bool,ouiaType:c.a.string,polar:c.a.bool,portalComponent:c.a.element,portalZIndex:k.integer,preserveAspectRatio:c.a.string,responsive:c.a.bool,role:c.a.string,style:c.a.object,tabIndex:c.a.number,theme:c.a.object,title:c.a.string,width:k.nonNegative}}),Object.defineProperty(At,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{className:"VictoryContainer",portalComponent:s.a.createElement(V,null),portalZIndex:99,responsive:!0,role:"img"}}),Object.defineProperty(At,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:lt});var St=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,["desc"]);return n?s.a.createElement("rect",Et({vectorEffect:"non-scaling-stroke"},e),s.a.createElement("desc",null,n)):s.a.createElement("rect",Et({vectorEffect:"non-scaling-stroke"},e))},Ct=e(10),Tt=e.n(Ct),Bt=e(44),Rt=e.n(Bt),kt=e(9),It=e.n(kt);function zt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Gt(t,n,e[n])}))}return t}function Gt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Nt(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Vt={getDimension:function(t){var n=t.horizontal,e=t.brushDimension;return n&&e?"x"===e?"y":"x":e},withinBounds:function(t,n,e){var r=Tt()(n,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=Tt()(t,Number),l=c.x,s=c.y;return l+(e=e?e/2:0)>=Math.min(o,i)&&l-e<=Math.max(o,i)&&s+e>=Math.min(a,u)&&s-e<=Math.max(a,u)},getDomainBox:function(t,n,e){var r=this.getDimension(t);n=o()({},n,t.domain),e=o()({},e,n);var i=m.getDomainCoordinates(t,n),a=m.getDomainCoordinates(t,e);return{x1:"y"!==r?Math.min.apply(Math,Nt(a.x)):Math.min.apply(Math,Nt(i.x)),x2:"y"!==r?Math.max.apply(Math,Nt(a.x)):Math.max.apply(Math,Nt(i.x)),y1:"x"!==r?Math.min.apply(Math,Nt(a.y)):Math.min.apply(Math,Nt(i.y)),y2:"x"!==r?Math.max.apply(Math,Nt(a.y)):Math.max.apply(Math,Nt(i.y))}},getHandles:function(t,n){var e=this.getDimension(t),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==e&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==e&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==e&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==e&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,n,e){var r=this,o=this.getHandles(n,e),i=["top","bottom","left","right"].reduce((function(n,e){return n=o[e]&&r.withinBounds(t,o[e])?n.concat(e):n}),[]);return i.length&&i},getResizeMutation:function(t,n){var e=t.x1,r=t.y1,o=t.x2,i=t.y2,u={left:{x1:Math.max(e,o),x2:Math.min(e,o),y1:r,y2:i},right:{x1:Math.min(e,o),x2:Math.max(e,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:e,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:e,x2:o}};return n.reduce((function(t,n){return a()(t,u[n])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,n,e){var r=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return n;if("move"===u){var c=this.getDomainBox(t,o,n),l=t.parentSVG||m.getParentSVG(e),s=this.panBox(zt({},t,c,{brushDomain:n,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),m.getSVGEventCoordinates(e,l)),f=t.fullDomainBox||this.getDomainBox(t,o),p=this.constrainBox(s,f);return m.getBounds(zt({},p,{scale:i,horizontal:a}))}return r},getSelectionMutation:function(t,n,e){var r=t.x,o=t.y,i=n.x1,a=n.x2,u=n.y1,c=n.y2;return{x1:"y"!==e?r:i,y1:"x"!==e?o:u,x2:"y"!==e?r:a,y2:"x"!==e?o:c}},panBox:function(t,n){var e=t.domain,r=t.startX,i=t.startY,a=this.getDimension(t),u=o()({},t.brushDomain,e),c=o()({},t.fullDomain,e),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,h=l.y2,y=n.x,v=n.y,d=r?r-y:0,b=i?i-v:0;return{x1:"y"!==a?Math.min(s,f)-d:Math.min(s,f),x2:"y"!==a?Math.max(s,f)-d:Math.max(s,f),y1:"x"!==a?Math.min(p,h)-b:Math.min(p,h),y2:"x"!==a?Math.max(p,h)-b:Math.max(p,h)}},constrainBox:function(t,n){var e=Tt()(n,Number),r=e.x1,o=e.y1,i=e.x2,a=e.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,r),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<r?r+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,n){var e=Tt()(n,Number),r=e.x1,o=e.y1,i=e.x2,a=e.y2;return{x:Math.min(Math.max(t.x,r),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var n=t.x1,e=t.x2,r=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(n-e)>=i,c=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,n){var e=this;t.preventDefault();var r=n.handleWidth,i=n.cachedBrushDomain,a=n.domain,u=n.allowResize,c=n.allowDrag,l=n.allowDraw,s=this.getDimension(n),f=u||n.defaultBrushArea?n.defaultBrushArea:"move";if(!u&&!c)return{};var p=n.fullDomainBox||this.getDomainBox(n,a),h=n.parentSVG||m.getParentSVG(t),y=m.getSVGEventCoordinates(t,h),v=y.x,d=y.y;if(!this.withinBounds({x:v,y:d},p,r))return{};var b=o()({},n.brushDomain,a),g=It()(b,i)?n.currentDomain||b||a:b||a,x=this.getDomainBox(n,a,g),w=u&&this.getActiveHandles({x:v,y:d},n,x);return w?[{target:"parent",mutation:function(){return zt({isSelecting:!0,domainBox:x,fullDomainBox:p,cachedBrushDomain:b,currentDomain:g,parentSVG:h},e.getResizeMutation(x,w))}}]:this.withinBounds({x:v,y:d},x)&&!It()(a,g)?[{target:"parent",mutation:function(){return zt({isPanning:c,startX:v,startY:d,domainBox:x,fullDomainBox:p,currentDomain:g,cachedBrushDomain:b,parentSVG:h},x)}}]:l?[{target:"parent",mutation:function(){return zt({isSelecting:u||"move"===f,domainBox:x,fullDomainBox:p,parentSVG:h,cachedBrushDomain:b,cachedCurrentDomain:g,currentDomain:e.getMinimumDomain()},e.getSelectionMutation({x:v,y:d},x,s))}}]:{}},onGlobalMouseMove:function(t,n){var e=n.scale,r=n.isPanning,i=n.isSelecting,a=n.fullDomainBox,u=n.onBrushDomainChange,c=n.allowResize,l=n.allowDrag,s=n.horizontal,f=n.mouseMoveThreshold,p=n.parentSVG,h=this.getDimension(n),y=m.getSVGEventCoordinates(t,p),v=y.x,d=y.y;if(!c&&!l||f>0&&!this.hasMoved(zt({},n,{x2:v,y2:d})))return{};if(l&&r){var b=n.startX,g=n.startY,w=this.panBox(n,{x:v,y:d}),O=this.constrainBox(w,a),j=m.getBounds(zt({},O,{scale:e,horizontal:s})),M=zt({currentDomain:j,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?b:v,startY:w.y2>=a.y2||w.y1<=a.y1?g:d},O);return x()(u)&&u(j,o()({},M,n)),[{target:"parent",mutation:function(){return M}}]}if(c&&i){var P=this.constrainPoint({x:"y"!==h?v:n.x2,y:"x"!==h?d:n.y2},a),D=P.x,_=P.y,A=m.getBounds({x2:D,y2:_,x1:n.x1,y1:n.y1,scale:e,horizontal:s}),E={x2:D,y2:_,currentDomain:A,parentSVG:p};return x()(u)&&u(A,o()({},E,n)),[{target:"parent",mutation:function(){return E}}]}return{}},onGlobalMouseUp:function(t,n){if(!n.isPanning&&!n.isSelecting)return{};var e=n.x1,r=n.y1,i=n.x2,a=n.y2,u=n.isPanning,c=n.isSelecting,l=n.onBrushDomainChange,s=n.onBrushDomainChangeEnd,f=n.onBrushCleared,p=n.currentDomain,h=n.allowResize,y=n.allowDrag,v=h||n.defaultBrushArea?n.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!h&&!(void 0!==v&&"none"!==v)||e!==i&&r!==a)(y&&u||h&&c)&&x()(s)&&s(p,o()({},d,n));else{var b=n.cachedCurrentDomain||p,m=this.getDefaultBrushArea(n,b,t);d.currentDomain=m,x()(l)&&l(m,o()({},d,n)),x()(s)&&s(m,o()({},d,n)),x()(f)&&f(m,o()({},d,n))}return[{target:"parent",mutation:function(){return d}}]}},Ut=zt({},Vt,{onMouseDown:Vt.onMouseDown.bind(Vt),onGlobalMouseUp:Vt.onGlobalMouseUp.bind(Vt),onGlobalMouseMove:Rt()(Vt.onGlobalMouseMove.bind(Vt),16,{leading:!0,trailing:!1})});function Wt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Ft(t,n,e[n])}))}return t}function Ft(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Ht(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function qt(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Xt(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yt(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}var Lt=function(t){var n,e;return e=n=function(t){function n(){return qt(this,n),Yt(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}var e,r,i;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,t),e=n,(r=[{key:"getSelectBox",value:function(t,n){var e=n.x,r=n.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,l=t.allowDrag||t.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?s.a.cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(e[1]-e[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(e[0],e[1]),y:Math.min(r[0],r[1]),cursor:l,style:o()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var n={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(n.xProps="move",n.yProps="move"):t.allowResize||t.allowDrag||(n.xProps="auto",n.yProps="auto"),n}},{key:"getHandles",value:function(t,n){var e=t.handleWidth,r=t.handleStyle,i=t.handleComponent,u=t.name,c=Ut.getDomainBox(t,n),l=c.x1,f=c.x2,p=c.y1,h=c.y2,y=Ut.getHandles(t,c),v=y.top,d=y.bottom,b=y.left,m=y.right,g=Math.abs(f-l)||1,x=Math.abs(h-p)||1,w=i.props&&i.props.style||{},O=o()({},w,r),j=this.getCursorPointers(t),M={style:O,width:g,height:e,cursor:j.yProps},P={style:O,width:e,height:x,cursor:j.xProps},D={top:v&&a()({x:v.x1,y:v.y1},M),bottom:d&&a()({x:d.x1,y:d.y1},M),left:b&&a()({y:b.y1,x:b.x1},P),right:m&&a()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,n){return t=D[n]?t.concat(s.a.cloneElement(i,a()({key:"".concat(u,"-handle-").concat(n)},D[n]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var n=t.currentDomain,e=t.cachedBrushDomain,r=o()({},t.brushDomain,t.domain),i=It()(r,e)?o()({},n,r):r,a=m.getDomainCoordinates(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return Ht(s.a.Children.toArray(t.children)).concat(Ht(this.getRect(t)))}}])&&Xt(e.prototype,r),i&&Xt(e,i),n}(t),Object.defineProperty(n,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryBrushContainer"}),Object.defineProperty(n,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:Wt({},At.propTypes,{allowDrag:c.a.bool,allowDraw:c.a.bool,allowResize:c.a.bool,brushComponent:c.a.element,brushDimension:c.a.oneOf(["x","y"]),brushDomain:c.a.shape({x:c.a.array,y:c.a.array}),brushStyle:c.a.object,defaultBrushArea:c.a.oneOf(["all","disable","none","move"]),disable:c.a.bool,handleComponent:c.a.element,handleStyle:c.a.object,handleWidth:c.a.number,onBrushCleared:c.a.func,onBrushDomainChange:c.a.func,onBrushDomainChangeEnd:c.a.func})}),Object.defineProperty(n,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:Wt({},At.defaultProps,{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:s.a.createElement(St,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:s.a.createElement(St,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})}),Object.defineProperty(n,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(n,e){return t.disable?{}:Ut.onMouseDown(n,e)},onTouchStart:function(n,e){return t.disable?{}:Ut.onMouseDown(n,e)},onGlobalMouseMove:function(n,e){return t.disable||!e.isPanning&&!e.isSelecting?{}:Ut.onGlobalMouseMove(n,e)},onGlobalTouchMove:function(n,e){return t.disable||!e.isPanning&&!e.isSelecting?{}:Ut.onGlobalMouseMove(n,e)},onGlobalMouseUp:function(n,e){return t.disable?{}:Ut.onGlobalMouseUp(n,e)},onGlobalTouchEnd:function(n,e){return t.disable?{}:Ut.onGlobalMouseUp(n,e)},onGlobalTouchCancel:function(n,e){return t.disable?{}:Ut.onGlobalMouseUp(n,e)}}}]}}),e},$t=Lt(At)}])}));
//# sourceMappingURL=victory-brush-container.min.js.map

@@ -149,7 +149,8 @@ import _mapValues from "lodash/mapValues";

getDefaultBrushArea: function (targetProps, cachedDomain, evt) {
var defaultBrushArea = targetProps.defaultBrushArea,
domain = targetProps.domain,
var domain = targetProps.domain,
fullDomain = targetProps.fullDomain,
scale = targetProps.scale,
horizontal = targetProps.horizontal;
horizontal = targetProps.horizontal,
allowResize = targetProps.allowResize;
var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;

@@ -279,3 +280,4 @@ if (defaultBrushArea === "none") {

allowDraw = targetProps.allowDraw;
var brushDimension = this.getDimension(targetProps); // Don't trigger events for static brushes
var brushDimension = this.getDimension(targetProps);
var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea; // Don't trigger events for static brushes

@@ -352,3 +354,3 @@ if (!allowResize && !allowDrag) {

return _objectSpread({
isSelecting: allowResize,
isSelecting: allowResize || defaultBrushArea === "move",
domainBox: domainBox,

@@ -480,4 +482,4 @@ fullDomainBox: fullDomainBox,

allowResize = targetProps.allowResize,
allowDrag = targetProps.allowDrag,
defaultBrushArea = targetProps.defaultBrushArea;
allowDrag = targetProps.allowDrag;
var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
var defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none";

@@ -484,0 +486,0 @@ var mutatedProps = {

@@ -167,7 +167,8 @@ "use strict";

getDefaultBrushArea: function (targetProps, cachedDomain, evt) {
var defaultBrushArea = targetProps.defaultBrushArea,
domain = targetProps.domain,
var domain = targetProps.domain,
fullDomain = targetProps.fullDomain,
scale = targetProps.scale,
horizontal = targetProps.horizontal;
horizontal = targetProps.horizontal,
allowResize = targetProps.allowResize;
var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;

@@ -297,3 +298,4 @@ if (defaultBrushArea === "none") {

allowDraw = targetProps.allowDraw;
var brushDimension = this.getDimension(targetProps); // Don't trigger events for static brushes
var brushDimension = this.getDimension(targetProps);
var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea; // Don't trigger events for static brushes

@@ -370,3 +372,3 @@ if (!allowResize && !allowDrag) {

return _objectSpread({
isSelecting: allowResize,
isSelecting: allowResize || defaultBrushArea === "move",
domainBox: domainBox,

@@ -499,4 +501,4 @@ fullDomainBox: fullDomainBox,

allowResize = targetProps.allowResize,
allowDrag = targetProps.allowDrag,
defaultBrushArea = targetProps.defaultBrushArea;
allowDrag = targetProps.allowDrag;
var defaultBrushArea = !allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
var defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none";

@@ -503,0 +505,0 @@ var mutatedProps = {

{
"name": "victory-brush-container",
"version": "35.4.12",
"version": "35.5.0",
"description": "Interactive Brush Component for Victory",

@@ -5,0 +5,0 @@ "keywords": [

@@ -87,3 +87,5 @@ import { Selection } from "victory-core";

getDefaultBrushArea(targetProps, cachedDomain, evt) {
const { defaultBrushArea, domain, fullDomain, scale, horizontal } = targetProps;
const { domain, fullDomain, scale, horizontal, allowResize } = targetProps;
const defaultBrushArea =
!allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
if (defaultBrushArea === "none") {

@@ -190,3 +192,4 @@ return this.getMinimumDomain();

const brushDimension = this.getDimension(targetProps);
const defaultBrushArea =
!allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
// Don't trigger events for static brushes

@@ -259,3 +262,3 @@ if (!allowResize && !allowDrag) {

mutation: () => ({
isSelecting: allowResize,
isSelecting: allowResize || defaultBrushArea === "move",
domainBox,

@@ -369,6 +372,6 @@ fullDomainBox,

allowResize,
allowDrag,
defaultBrushArea
allowDrag
} = targetProps;
const defaultBrushArea =
!allowResize && !targetProps.defaultBrushArea ? "move" : targetProps.defaultBrushArea;
const defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none";

@@ -375,0 +378,0 @@ const mutatedProps = { isPanning: false, isSelecting: false };

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc