victory-brush-container 36.4.1 → 36.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-brush-container.js +6210 -434
- package/dist/victory-brush-container.min.js +1 -1
- package/es/brush-helpers.js +2 -1
- package/es/index.d.ts +3 -3
- package/es/index.js +2 -1
- package/es/victory-brush-container.js +10 -9
- package/lib/brush-helpers.js +2 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +2 -1
- package/lib/victory-brush-container.js +10 -9
- package/package.json +4 -4
- package/src/brush-helpers.js +51 -50
- package/src/index.d.ts +3 -3
- package/src/index.js +1 -1
- package/src/victory-brush-container.js +18 -18
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={1124:(t,e,r)=>{var n=r(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,e,r)=>{var n=r(7168),o=r(6582),i=r(3867),a=r(9557),u=r(2726);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,r)=>{var n=r(441).Symbol;t.exports=n},5198:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7596:(t,e,r)=>{var n=r(999),o=r(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(6530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},528:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,r)=>{var n=r(3848),o=r(1754);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},641:(t,e,r)=>{var n=r(2630)();t.exports=n},5897:(t,e,r)=>{var n=r(641),o=r(2635);t.exports=function(t,e){return t&&n(t,e,o)}},166:(t,e,r)=>{var n=r(8422),o=r(8780);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1071:(t,e,r)=>{var n=r(7229),o=r(3387);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7229:(t,e,r)=>{var n=r(4281),o=r(2503),i=r(6001),a=r(8784),u=r(6686),c=r(7236),l=r(8752),s=r(4812),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),w=x?p:u(e),O=(g=g==f?y:g)==y,j=(w=w==f?y:w)==y,M=g==w;if(M&&l(t)){if(!l(e))return!1;m=!0,O=!1}if(M&&!O)return b||(b=new n),m||s(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=O&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return b||(b=new n),d(_,E,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9157:(t,e,r)=>{var n=r(4281),o=r(1071);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var y=new n;if(i)var h=i(f,p,s,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},1131:(t,e,r)=>{var n=r(4318),o=r(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,e,r)=>{var n=r(8418),o=r(4555),i=r(5362),a=r(7236),u=r(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},8418:(t,e,r)=>{var n=r(9157),o=r(9182),i=r(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4555:(t,e,r)=>{var n=r(1071),o=r(3795),i=r(3646),a=r(3266),u=r(1457),c=r(7375),l=r(8780);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7410:(t,e,r)=>{var n=r(6621),o=r(3646);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6621:(t,e,r)=>{var n=r(166),o=r(8116),i=r(8422);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,r)=>{var n=r(166);t.exports=function(t){return function(e){return n(e,t)}}},4569:(t,e,r)=>{var n=r(5362),o=r(4468),i=r(8756);t.exports=function(t,e){return i(o(t,e,n),t+"")}},8116:(t,e,r)=>{var n=r(7596),o=r(8422),i=r(4363),a=r(5973),u=r(8780);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var y=u(e[l]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(l!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}n(p,y,h),p=p[y]}return t}},454:(t,e,r)=>{var n=r(4690),o=r(6460),i=r(7236),a=r(2945),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},555:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},8422:(t,e,r)=>{var n=r(7236),o=r(3266),i=r(3879),a=r(1119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},6051:(t,e,r)=>{var n=r(7596),o=r(999);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},2544:(t,e,r)=>{var n=r(4569),o=r(3108);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3086:(t,e,r)=>{var n=r(8904),o=r(1580),i=r(2635);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},9346:(t,e,r)=>{var n=r(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,r)=>{var n=r(1124),o=r(4793),i=r(555);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var b=t[h],m=e[h];if(a)var x=l?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,r)=>{var n=r(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<s;){var b=t[p=l[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(v=!1)}return u.delete(t),u.delete(e),v}},3368:(t,e,r)=>{var n=r(5453),o=r(4468),i=r(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},6094:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},9182:(t,e,r)=>{var n=r(1457),o=r(2635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,r)=>{var n=r(8422),o=r(6981),i=r(7236),a=r(4363),u=r(9216),c=r(8780);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(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))}},1754:(t,e,r)=>{var n=r(4690),o=r(6981),i=r(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,r)=>{var n=r(7236),o=r(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,r)=>{var n=r(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},3867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},9557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},7375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,r)=>{t=r.nmd(t);var n=r(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4468:(t,e,r)=>{var n=r(5198),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},441:(t,e,r)=>{var n=r(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},8756:t=>{t.exports=function(t){return t}},3879:(t,e,r)=>{var n=r(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},6782:(t,e,r)=>{var n=r(7596),o=r(6051),i=r(2544),a=r(1580),u=r(5003),c=r(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5750:(t,e,r)=>{var n=r(5973),o=r(8148),i=r(8746),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,y,h=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(w,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||d&&t-h>=s}function w(){var t=o();if(g(t))return O(t);p=setTimeout(w,function(t){var r=e-(t-y);return d?u(r,s-(t-h)):r}(t))}function O(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,y=t,r){if(void 0===p)return x(y);if(d)return clearTimeout(p),p=setTimeout(w,e),m(y)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(d="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?f:O(o())},j}},7901:(t,e,r)=>{var n=r(4569),o=r(6530),i=r(3108),a=r(5850),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,r)=>{var n=r(3086)(r(8611));t.exports=n},8611:(t,e,r)=>{var n=r(528),o=r(8904),i=r(5225),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},5453:(t,e,r)=>{var n=r(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},3795:(t,e,r)=>{var n=r(166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},3646:(t,e,r)=>{var n=r(7),o=r(7383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,r)=>{var n=r(3839),o=r(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,e,r)=>{var n=r(4318),o=r(5973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2654:(t,e,r)=>{var n=r(1131),o=r(6535),i=r(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},3792:(t,e,r)=>{var n=r(999),o=r(5897),i=r(8904);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8148:(t,e,r)=>{var n=r(441);t.exports=function(){return n.Date.now()}},8423:(t,e,r)=>{var n=r(7410),o=r(3368)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},1651:(t,e,r)=>{var n=r(1712),o=r(4815),i=r(3266),a=r(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3259:(t,e,r)=>{var n=r(5750),o=r(5973);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,r)=>{var n=r(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,r)=>{var n=r(992);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8746:t=>{t.exports=function(t){return t}},1119:(t,e,r)=>{var n=r(454);t.exports=function(t){return null==t?"":n(t)}},556:(t,e,r)=>{var n=r(1119),o=0;t.exports=function(t){var e=++o;return n(t)+e}},459:(t,e,r)=>{"use strict";var n=r(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},216:(t,e,r)=>{t.exports=r(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Xt,VictoryBrushContainer:()=>ie,brushContainerMixin:()=>oe});var t=n(7901),e=n.n(t),r=n(6782),i=n.n(r),a=n(216),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){if(!t.nativeEvent||void 0===t.nativeEvent.identifier){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function b(t,e){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 r=function(t){return t.getScreenCTM().inverse()}(e=e||d(t));return{x:v(t.clientX,r,"x"),y:v(t.clientY,r,"y")}}function m(t,e){var r=t.scale,n=t.horizontal;return e=e||{x:r.x.domain(),y:r.y.domain()},{x:n?[r.y(e.y[0]),r.y(e.y[1])]:[r.x(e.x[0]),r.x(e.x[1])],y:n?[r.x(e.x[0]),r.x(e.x[1])]:[r.y(e.y[0]),r.y(e.y[1])]}}function x(t,e,r,n){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=r-a.x,c=n-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:e.x.invert(s),y:e.y.invert(l)}}return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)}}function g(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=x(t,i,e,n),u=x(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(3839),O=n.n(w),j=n(5973),M=n.n(j),P=n(556),D=n.n(P),_=n(2654),E=n.n(_),S=n(6786),A=n.n(S),R=function(t){var e=function(e,r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` 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,[r,n,o].concat(u))},r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r},B=function(){return null},T=function(){},k=function(t){return void 0===t?T:null===t?B:t.constructor},C=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},I=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<0)return new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number."))})),z=R((function(t,e,r){var n=t[e];if("number"!=typeof n||n%1!=0)return new Error("`".concat(e,"` in `").concat(r,"` must be an integer."))})),G=(R((function(t,e,r){var n=t[e];if("number"!=typeof n||n<=0)return new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n)||2!==n.length||n[1]===n[0])return new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),R((function(t,e,r){var n;if(n=t[e],!(O()(n)?O()(n.copy)&&O()(n.domain)&&O()(n.range):"string"==typeof n&&-1!==["linear","time","log","sqrt"].indexOf(n)))return new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."))})),R((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(!(n.length<2)){var o=k(n[0]),i=A()(n,(function(t){return o!==k(t)}));if(i){var a=C(n[0]),u=C(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}}})),R((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),R((function(t,e,r){if(t[e]&&!E()(t[e]))return new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression."))})),n(2635)),U=n.n(G);function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W(t,e){return W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},W(t,e)}function V(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return F(t)}function F(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=H(n);if(o){var r=H(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return V(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map={},e.index=1,e.portalUpdate=e.portalUpdate.bind(F(e)),e.portalRegister=e.portalRegister.bind(F(e)),e.portalDeregister=e.portalDeregister.bind(F(e)),e}return e=a,(r=[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,e){this.map[t]=e,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t],this.forceUpdate()}},{key:"getChildren",value:function(){var t=this;return U()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&N(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);q($,"displayName","Portal"),q($,"propTypes",{className:u().string,height:I,style:u().object,viewBox:u().string,width:I});var X=l().createContext({});X.displayName="PortalContext";const Y=X;var L,Z,J=0,K=0,Q=0,tt=0,et=0,rt=0,nt="object"==typeof performance&&performance.now?performance:Date,ot="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function it(){return et||(ot(at),et=nt.now()+rt)}function at(){et=0}function ut(){this._call=this._time=this._next=null}function ct(t,e,r){var n=new ut;return n.restart(t,e,r),n}function lt(){et=(tt=nt.now())+rt,J=K=0;try{!function(){it(),++J;for(var t,e=L;e;)(t=et-e._time)>=0&&e._call.call(void 0,t),e=e._next;--J}()}finally{J=0,function(){for(var t,e,r=L,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:L=e);Z=t,ft(n)}(),et=0}}function st(){var t=nt.now(),e=t-tt;e>1e3&&(rt-=e,tt=t)}function ft(t){J||(K&&(K=clearTimeout(K)),t-et>24?(t<1/0&&(K=setTimeout(lt,t-nt.now()-rt)),Q&&(Q=clearInterval(Q))):(Q||(tt=nt.now(),Q=setInterval(st,1e3)),J=1,ot(lt)))}function pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ut.prototype=ct.prototype={constructor:ut,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?it():+r)+(null==e?0:+e),this._next||Z===this||(Z?Z._next=this:L=this,Z=this),this._call=t,this._time=r,ft()},stop:function(){this._call&&(this._call=null,this._time=1/0,ft())}};var yt=function(){function t(){!function(t,e){if(!(t instanceof e))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 e,r;return e=t,(r=[{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(it()-t.startTime,t.duration)}))}},{key:"start",value:function(){this.timer||(this.timer=ct(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:it(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&pt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ht=l().createContext({transitionTimer:new yt,animationTimer:new yt});ht.displayName="TimerContext";const vt=ht;function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(8423),n(1651);var gt={startsWith:["data-","aria-"],exactMatch:[]},wt=function(t,e){return"function"==typeof t?t(e):t},Ot=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return gt.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return gt.exactMatch.includes(t)}(t))}(dt(t,1)[0])})).map((function(e){var r=dt(e,2),n=r[0],o=r[1];return[n,wt(o,t)]})))};function jt(){return jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jt.apply(this,arguments)}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){At(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _t(t,e){return _t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_t(t,e)}function Et(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},St(t)}function At(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_t(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=St(o);if(a){var r=St(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Et(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=M()(t)&&void 0!==t.containerId?t.containerId:D()("victory-container-"),e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=t&&O()(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}return r=c,(n=[{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 e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Pt(Pt(Pt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:s,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(Y.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",jt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",jt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),l().createElement("div",{style:b},l().cloneElement(u,Pt(Pt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=Ot(this.props),y=i()(Pt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&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:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Dt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);At(Rt,"displayName","VictoryContainer"),At(Rt,"role","container"),At(Rt,"propTypes",{"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:I,name:u().string,origin:u().shape({x:I,y:I}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:z,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:I}),At(Rt,"defaultProps",{className:"VictoryContainer",portalComponent:l().createElement($,null),portalZIndex:99,responsive:!0,role:"img"}),At(Rt,"contextType",vt);var Bt=["desc"];function Tt(){return Tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tt.apply(this,arguments)}const kt=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Bt);return e?l().createElement("rect",Tt({vectorEffect:"non-scaling-stroke"},r),l().createElement("desc",null,e)):l().createElement("rect",Tt({vectorEffect:"non-scaling-stroke"},r))};var Ct=n(3792),It=n.n(Ct),zt=n(3259),Gt=n.n(zt),Ut=n(8266),Nt=n.n(Ut);function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(r),!0).forEach((function(e){Ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ht(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $t={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=It()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=It()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=m(t,r),a=m(t,n);return{x1:"y"!==o?Math.min.apply(Math,Ht(a.x)):Math.min.apply(Math,Ht(i.x)),x2:"y"!==o?Math.max.apply(Math,Ht(a.x)):Math.max.apply(Math,Ht(i.x)),y1:"x"!==o?Math.min.apply(Math,Ht(a.y)):Math.min.apply(Math,Ht(i.y)),y2:"x"!==o?Math.max.apply(Math,Ht(a.y)):Math.max.apply(Math,Ht(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=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 e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||d(r),s=this.panBox(Vt(Vt(Vt({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),b(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return g(Vt(Vt({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,y=l.y2,h=r.x,v=r.y,d=o?o-h: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,y)-b:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-b:Math.max(p,y)}},constrainBox:function(t,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+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,e){var r=It()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||d(t),h=b(t,y),v=h.x,m=h.y;if(!this.withinBounds({x:v,y:m},p,o))return{};var x=e()({},r.brushDomain,a),g=Nt()(x,i)?r.currentDomain||x||a:x||a,w=this.getDomainBox(r,a,g),O=u&&this.getActiveHandles({x:v,y:m},r,w);return O?[{target:"parent",mutation:function(){return Vt({isSelecting:!0,domainBox:w,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(w,O))}}]:this.withinBounds({x:v,y:m},w)&&!Nt()(a,g)?[{target:"parent",mutation:function(){return Vt({isPanning:c,startX:v,startY:m,domainBox:w,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},w)}}]:l?[{target:"parent",mutation:function(){return Vt({isSelecting:u||"move"===f,domainBox:w,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:m},w,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=b(t,p),v=h.x,d=h.y;if(!c&&!l||f>0&&!this.hasMoved(Vt(Vt({},r),{},{x2:v,y2:d})))return{};if(l&&o){var m=r.startX,x=r.startY,w=this.panBox(r,{x:v,y:d}),j=this.constrainBox(w,a),M=g(Vt(Vt({},j),{},{scale:n,horizontal:s})),P=Vt({currentDomain:M,parentSVG:p,startX:w.x2>=a.x2||w.x1<=a.x1?m:v,startY:w.y2>=a.y2||w.y1<=a.y1?x:d},j);return O()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?d:r.y2},a),_=D.x,E=D.y,S=g({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return O()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&O()(s)&&s(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,O()(l)&&l(m,e()({},d,r)),O()(s)&&s(m,e()({},d,r)),O()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}};const Xt=Vt(Vt({},$t),{},{onMouseDown:$t.onMouseDown.bind($t),onGlobalMouseUp:$t.onGlobalMouseUp.bind($t),onGlobalMouseMove:Gt()($t.onGlobalMouseMove.bind($t),16,{leading:!0,trailing:!1})});function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){ne(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zt(t){return function(t){if(Array.isArray(t))return Jt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function te(t,e){return te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},te(t,e)}function ee(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function re(t){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},re(t)}function ne(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oe=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&te(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=re(o);if(a){var r=re(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ee(this,t)});function c(){return Kt(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Xt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Xt.getHandles(t,c),v=h.top,d=h.bottom,b=h.left,m=h.right,x=Math.abs(f-s)||1,g=Math.abs(y-p)||1,w=a.props&&a.props.style||{},O=e()({},w,o),j=this.getCursorPointers(t),M={style:O,width:x,height:n,cursor:j.yProps},P={style:O,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Nt()(o,n)?e()({},r,o):o,a=m(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Zt(l().Children.toArray(t.children)),Zt(this.getRect(t)))}}])&&Qt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),ne(r,"displayName","VictoryBrushContainer"),ne(r,"propTypes",Lt(Lt({},Rt.propTypes),{},{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func})),ne(r,"defaultProps",Lt(Lt({},Rt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(kt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(kt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0})),ne(r,"defaultEvents",(function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Xt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Xt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Xt.onGlobalMouseUp(e,r)}}}]})),r};const ie=oe(Rt)})(),o})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryBrushContainer=e(require("react")):t.VictoryBrushContainer=e(t.React)}(self,(t=>(()=>{var e={1124:(t,e,r)=>{var n=r(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return n(t)?t:[t]}},4281:(t,e,r)=>{var n=r(7168),o=r(6582),i=r(3867),a=r(9557),u=r(2726);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,e,r)=>{var n=r(441).Symbol;t.exports=n},5198:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7596:(t,e,r)=>{var n=r(999),o=r(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(6530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},528:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},314:(t,e,r)=>{var n=r(3848),o=r(1754);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},641:(t,e,r)=>{var n=r(2630)();t.exports=n},5897:(t,e,r)=>{var n=r(641),o=r(2635);t.exports=function(t,e){return t&&n(t,e,o)}},166:(t,e,r)=>{var n=r(8422),o=r(8780);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4318:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},7650:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},1071:(t,e,r)=>{var n=r(7229),o=r(3387);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7229:(t,e,r)=>{var n=r(4281),o=r(2503),i=r(6001),a=r(8784),u=r(6686),c=r(7236),l=r(8752),s=r(4812),f="[object Arguments]",p="[object Array]",y="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=c(t),x=c(e),g=m?p:u(t),O=x?p:u(e),w=(g=g==f?y:g)==y,j=(O=O==f?y:O)==y,M=g==O;if(M&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(M&&!w)return b||(b=new n),m||s(t)?o(t,e,r,v,d,b):i(t,e,g,r,v,d,b);if(!(1&r)){var P=w&&h.call(t,"__wrapped__"),D=j&&h.call(e,"__wrapped__");if(P||D){var _=P?t.value():t,E=D?e.value():e;return b||(b=new n),d(_,E,r,v,b)}}return!!M&&(b||(b=new n),a(t,e,r,v,d,b))}},9157:(t,e,r)=>{var n=r(4281),o=r(1071);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var y=new n;if(i)var h=i(f,p,s,t,e,y);if(!(void 0===h?o(p,f,3,i,y):h))return!1}}return!0}},1131:(t,e,r)=>{var n=r(4318),o=r(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},8904:(t,e,r)=>{var n=r(8418),o=r(4555),i=r(5362),a=r(7236),u=r(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},8418:(t,e,r)=>{var n=r(9157),o=r(9182),i=r(7375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4555:(t,e,r)=>{var n=r(1071),o=r(3795),i=r(3646),a=r(3266),u=r(1457),c=r(7375),l=r(8780);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7410:(t,e,r)=>{var n=r(6621),o=r(3646);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},6621:(t,e,r)=>{var n=r(166),o=r(8116),i=r(8422);t.exports=function(t,e,r){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=n(t,l);r(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4815:(t,e,r)=>{var n=r(166);t.exports=function(t){return function(e){return n(e,t)}}},4569:(t,e,r)=>{var n=r(5362),o=r(4468),i=r(8756);t.exports=function(t,e){return i(o(t,e,n),t+"")}},8116:(t,e,r)=>{var n=r(7596),o=r(8422),i=r(4363),a=r(5973),u=r(8780);t.exports=function(t,e,r,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var y=u(e[l]),h=r;if("__proto__"===y||"constructor"===y||"prototype"===y)return t;if(l!=f){var v=p[y];void 0===(h=c?c(v,y,p):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}n(p,y,h),p=p[y]}return t}},454:(t,e,r)=>{var n=r(4690),o=r(6460),i=r(7236),a=r(2945),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},6535:t=>{t.exports=function(t){return function(e){return t(e)}}},555:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},8422:(t,e,r)=>{var n=r(7236),o=r(3266),i=r(3879),a=r(1119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},6051:(t,e,r)=>{var n=r(7596),o=r(999);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},2544:(t,e,r)=>{var n=r(4569),o=r(3108);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,a)}return e}))}},2630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3086:(t,e,r)=>{var n=r(8904),o=r(1580),i=r(2635);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},9346:(t,e,r)=>{var n=r(4457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,e,r)=>{var n=r(1124),o=r(4793),i=r(555);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),y=c.get(e);if(p&&y)return p==e&&y==t;var h=-1,v=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var b=t[h],m=e[h];if(a)var x=l?a(m,b,h,e,t,c):a(b,m,h,t,e,c);if(void 0!==x){if(x)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||u(b,t,r,a,c)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!u(b,m,r,a,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},6001:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8784:(t,e,r)=>{var n=r(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var y=u.get(t),h=u.get(e);if(y&&h)return y==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var d=c;++f<s;){var b=t[p=l[f]],m=e[p];if(i)var x=c?i(m,b,p,e,t,u):i(b,m,p,t,e,u);if(!(void 0===x?b===m||a(b,m,r,i,u):x)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,O=e.constructor;g==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof O&&O instanceof O||(v=!1)}return u.delete(t),u.delete(e),v}},3368:(t,e,r)=>{var n=r(5453),o=r(4468),i=r(8756);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4414:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},6094:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},9182:(t,e,r)=>{var n=r(1457),o=r(2635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},4457:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},1407:(t,e,r)=>{var n=r(3717)(Object.getPrototypeOf,Object);t.exports=n},6686:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7383:(t,e,r)=>{var n=r(8422),o=r(6981),i=r(7236),a=r(4363),u=r(9216),c=r(8780);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(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))}},1754:(t,e,r)=>{var n=r(4690),o=r(6981),i=r(7236),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3108:t=>{t.exports=function(){return!1}},3266:(t,e,r)=>{var n=r(7236),o=r(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5003:t=>{t.exports=function(){return!1}},1457:(t,e,r)=>{var n=r(5973);t.exports=function(t){return t==t&&!n(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},3867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},9557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},2726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},7375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,e,r)=>{t=r.nmd(t);var n=r(4414),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4468:(t,e,r)=>{var n=r(5198),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},441:(t,e,r)=>{var n=r(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},8756:t=>{t.exports=function(t){return t}},3879:(t,e,r)=>{var n=r(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},8780:t=>{t.exports=function(t){return t}},6782:(t,e,r)=>{var n=r(7596),o=r(6051),i=r(2544),a=r(1580),u=r(5003),c=r(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var r in e)l.call(e,r)&&n(t,r,e[r])}));t.exports=s},5750:(t,e,r)=>{var n=r(5973),o=r(8148),i=r(8746),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,y,h=0,v=!1,d=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var r=c,n=l;return c=l=void 0,h=e,f=t.apply(n,r)}function x(t){return h=t,p=setTimeout(O,e),v?m(t):f}function g(t){var r=t-y;return void 0===y||r>=e||r<0||d&&t-h>=s}function O(){var t=o();if(g(t))return w(t);p=setTimeout(O,function(t){var r=e-(t-y);return d?u(r,s-(t-h)):r}(t))}function w(t){return p=void 0,b&&c?m(t):(c=l=void 0,f)}function j(){var t=o(),r=g(t);if(c=arguments,l=this,y=t,r){if(void 0===p)return x(y);if(d)return clearTimeout(p),p=setTimeout(O,e),m(y)}return void 0===p&&(p=setTimeout(O,e)),f}return e=i(e)||0,n(r)&&(v=!!r.leading,s=(d="maxWait"in r)?a(i(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=y=l=p=void 0},j.flush=function(){return void 0===p?f:w(o())},j}},7901:(t,e,r)=>{var n=r(4569),o=r(6530),i=r(3108),a=r(5850),u=Object.prototype,c=u.hasOwnProperty,l=n((function(t,e){t=Object(t);var r=-1,n=e.length,l=n>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(n=1);++r<n;)for(var s=e[r],f=a(s),p=-1,y=f.length;++p<y;){var h=f[p],v=t[h];(void 0===v||o(v,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},6530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6786:(t,e,r)=>{var n=r(3086)(r(8611));t.exports=n},8611:(t,e,r)=>{var n=r(528),o=r(8904),i=r(5225),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},5453:(t,e,r)=>{var n=r(314);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},3795:(t,e,r)=>{var n=r(166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},3646:(t,e,r)=>{var n=r(7),o=r(7383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5362:t=>{t.exports=function(t){return t}},6901:(t,e,r)=>{var n=r(7650);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var e=Array.isArray;t.exports=e},1580:(t,e,r)=>{var n=r(3839),o=r(9216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,e,r)=>{var n=r(4318),o=r(5973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5973:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,e,r)=>{var n=r(4318),o=r(1407),i=r(3387),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==s}},2654:(t,e,r)=>{var n=r(1131),o=r(6535),i=r(1782),a=i&&i.isRegExp,u=a?o(a):n;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,e,r)=>{var n=r(3717)(Object.keys,Object);t.exports=n},5850:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},3792:(t,e,r)=>{var n=r(999),o=r(5897),i=r(8904);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8148:(t,e,r)=>{var n=r(441);t.exports=function(){return n.Date.now()}},8423:(t,e,r)=>{var n=r(7410),o=r(3368)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},1651:(t,e,r)=>{var n=r(1712),o=r(4815),i=r(3266),a=r(8780);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3259:(t,e,r)=>{var n=r(5750),o=r(5973);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},992:(t,e,r)=>{var n=r(8746);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,e,r)=>{var n=r(992);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8746:t=>{t.exports=function(t){return t}},1119:(t,e,r)=>{var n=r(454);t.exports=function(t){return null==t?"":n(t)}},556:(t,e,r)=>{var n=r(1119),o=0;t.exports=function(t){var e=++o;return n(t)+e}},459:(t,e,r)=>{"use strict";var n=r(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},216:(t,e,r)=>{t.exports=r(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";n.r(o),n.d(o,{BrushHelpers:()=>Yt,VictoryBrushContainer:()=>ae,brushContainerMixin:()=>ie});var t=n(7901),e=n.n(t),r=n(6782),i=n.n(r),a=n(216),u=n.n(a),c=n(9787),l=n.n(c);function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function y(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.max.apply(Math,s(o))):Math.max.apply(Math,s(o))}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return p(o)?new Date(Math.min.apply(Math,s(o))):Math.min.apply(Math,s(o))}function v(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function d(t){return!(!t||void 0===t.identifier)}function b(t){if(!d(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function m(t,e){if(d(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var r=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,n=function(t){return t.getScreenCTM().inverse()}(e=e||b(r));return{x:v(r.clientX,n,"x"),y:v(r.clientY,n,"y")}}function x(t,e){var r=t.horizontal,n=t.scale,o=e||{x:n.x.domain(),y:n.y.domain()};return{x:r?[n.y(o.y[0]),n.y(o.y[1])]:[n.x(o.x[0]),n.x(o.x[1])],y:r?[n.x(o.x[0]),n.x(o.x[1])]:[n.y(o.y[0]),n.y(o.y[1])]}}function g(t,e,r,n){var o=t.polar,i=t.horizontal;if(o){var a=t.origin||{x:0,y:0},u=r-a.x,c=n-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:e.x.invert(s),y:e.y.invert(l)}}return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)}}function O(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=g(t,i,e,n),u=g(t,i,r,o),c=function(t,e){return[h([t,e]),y([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var w=n(3839),j=n.n(w),M=n(5973),P=n.n(M),D=n(556),_=n.n(D),E=n(2654),S=n.n(E),A=n(6786),R=n.n(A),B=(n(9636),n(6901)),T=n.n(B),C=["linear","time","log","sqrt"];var k=function(t){var e=function(e){return function(r,n,o){var i=r[n];if(null==i)return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return t.apply(void 0,[r,n,o].concat(u))}};return Object.assign(e(!1),{isRequired:e(!0)})},I=function(){return null},z=function(){},G=function(t){return void 0===t?z:null===t?I:t.constructor},U=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},N=k((function(t,e,r){var n=t[e];return"number"!=typeof n||n<0?new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number.")):null})),W=k((function(t,e,r){var n=t[e];return"number"!=typeof n||n%1!=0?new Error("`".concat(e,"` in `").concat(r,"` must be an integer.")):null})),V=(k((function(t,e,r){var n=t[e];return"number"!=typeof n||n<=0?new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero.")):null})),k((function(t,e,r){var n=t[e];return Array.isArray(n)&&2===n.length&&n[1]!==n[0]?null:new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),k((function(t,e,r){return("function"==typeof(n=t[e])?j()(n.copy)&&j()(n.domain)&&j()(n.range):"string"==typeof n&&T()(C,n))?null:new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."));var n})),k((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(n.length<2)return null;var o=G(n[0]),i=R()(n,(function(t){return o!==G(t)}));if(i){var a=U(n[0]),u=U(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}return null})),k((function(t,e){return t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length?new Error("Length of data and ".concat(e," arrays must match.")):null})),k((function(t,e,r){return t[e]&&!S()(t[e])?new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression.")):null})),n(2635)),F=n.n(V);function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function q(t,e){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},q(t,e)}function $(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}var Y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=X(n);if(o){var r=X(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return $(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,r){e.map[t]=r,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(r=[{key:"getChildren",value:function(){var t=this;return F()(this.map).map((function(e){var r=t.map[e];return r?l().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&H(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);Y.displayName="Portal",Y.propTypes={className:u().string,height:N,style:u().object,viewBox:u().string,width:N};var L=l().createContext({});L.displayName="PortalContext";var Z,J,K=0,Q=0,tt=0,et=0,rt=0,nt=0,ot="object"==typeof performance&&performance.now?performance:Date,it="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function at(){return rt||(it(ut),rt=ot.now()+nt)}function ut(){rt=0}function ct(){this._call=this._time=this._next=null}function lt(t,e,r){var n=new ct;return n.restart(t,e,r),n}function st(){rt=(et=ot.now())+nt,K=Q=0;try{!function(){at(),++K;for(var t,e=Z;e;)(t=rt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--K}()}finally{K=0,function(){for(var t,e,r=Z,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Z=e);J=t,pt(n)}(),rt=0}}function ft(){var t=ot.now(),e=t-et;e>1e3&&(nt-=e,et=t)}function pt(t){K||(Q&&(Q=clearTimeout(Q)),t-rt>24?(t<1/0&&(Q=setTimeout(st,t-ot.now()-nt)),tt&&(tt=clearInterval(tt))):(tt||(et=ot.now(),tt=setInterval(ft,1e3)),K=1,it(st)))}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}ct.prototype=lt.prototype={constructor:ct,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?at():+r)+(null==e?0:+e),this._next||J===this||(J?J._next=this:Z=this,J=this),this._call=t,this._time=r,pt()},stop:function(){this._call&&(this._call=null,this._time=1/0,pt())}};var ht=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(at()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=lt(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:at(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&yt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),vt=l().createContext({transitionTimer:new ht,animationTimer:new ht});vt.displayName="TimerContext";const dt=vt;function bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}n(8423),n(1651);var Ot={startsWith:["data-","aria-"],exactMatch:[]},wt=function(t,e){return"function"==typeof t?t(e):t},jt=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach((function(e){gt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return Ot.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Ot.exactMatch.includes(t)}(t))}(bt(t,1)[0])})).map((function(e){var r=bt(e,2),n=r[0],o=r[1];return[n,wt(o,t)]})))};function Mt(){return Mt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mt.apply(this,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(r),!0).forEach((function(e){_t(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Et(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},St(t,e)}function At(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rt(o);if(a){var r=Rt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return At(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return j()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=P()(t)&&void 0!==t.containerId?t.containerId:_()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return r=c,(n=[{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 e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Dt(Dt(Dt({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,r,n){var o=t.title,a=t.desc,u=t.portalComponent,c=t.className,s=t.width,f=t.height,p=t.portalZIndex,y=t.responsive,h=this.getChildren(t),v=y?{width:"100%",height:"100%"}:{width:s,height:f},d=i()({pointerEvents:"none",touchAction:"none",position:"relative"},v),b=i()({zIndex:p,position:"absolute",top:0,left:0},v),m=i()({pointerEvents:"all"},v),x=i()({overflow:"visible"},v),g={width:s,height:f,viewBox:r.viewBox,preserveAspectRatio:r.preserveAspectRatio,style:x};return l().createElement(L.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",Mt({style:e()({},n,d),className:c,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",Mt({},r,{style:m}),o?l().createElement("title",{id:this.getIdForElement("title")},o):null,a?l().createElement("desc",{id:this.getIdForElement("desc")},a):null,h),l().createElement("div",{style:b},l().cloneElement(u,Dt(Dt({},g),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,a=t.title,u=t.desc,c=t.tabIndex,l=t.preserveAspectRatio,s=t.role,f=n?this.props.style:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(this.props.style,["height","width"]),p=jt(this.props),y=i()(Dt({width:e,height:r,tabIndex:c,role:s,"aria-labelledby":[a&&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:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?l:void 0},p),o);return this.renderContainer(this.props,y,f)}}])&&Et(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(l().Component);Bt.displayName="VictoryContainer",Bt.role="container",Bt.propTypes={"aria-describedby":u().string,"aria-labelledby":u().string,children:u().oneOfType([u().arrayOf(u().node),u().node]),className:u().string,containerId:u().oneOfType([u().number,u().string]),containerRef:u().func,desc:u().string,events:u().object,height:N,name:u().string,origin:u().shape({x:N,y:N}),ouiaId:u().oneOfType([u().number,u().string]),ouiaSafe:u().bool,ouiaType:u().string,polar:u().bool,portalComponent:u().element,portalZIndex:W,preserveAspectRatio:u().string,responsive:u().bool,role:u().string,style:u().object,tabIndex:u().number,theme:u().object,title:u().string,width:N},Bt.defaultProps={className:"VictoryContainer",portalComponent:l().createElement(Y,null),portalZIndex:99,responsive:!0,role:"img"},Bt.contextType=dt;var Tt=["desc"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ct.apply(this,arguments)}var kt=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Tt);return e?l().createElement("rect",Ct({vectorEffect:"non-scaling-stroke"},r),l().createElement("desc",null,e)):l().createElement("rect",Ct({vectorEffect:"non-scaling-stroke"},r))},It=n(3792),zt=n.n(It),Gt=n(3259),Ut=n.n(Gt),Nt=n(8266),Wt=n.n(Nt);function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(r),!0).forEach((function(e){Ht(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ht(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t){return function(t){if(Array.isArray(t))return $t(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $t(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$t(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Xt={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=zt()(e,Number),o=n.x1,i=n.x2,a=n.y1,u=n.y2,c=zt()(t,Number),l=c.x,s=c.y;return l+(r=r?r/2:0)>=Math.min(o,i)&&l-r<=Math.max(o,i)&&s+r>=Math.min(a,u)&&s-r<=Math.max(a,u)},getDomainBox:function(t,r,n){var o=this.getDimension(t);r=e()({},r,t.domain),n=e()({},n,r);var i=x(t,r),a=x(t,n);return{x1:"y"!==o?Math.min.apply(Math,qt(a.x)):Math.min.apply(Math,qt(i.x)),x2:"y"!==o?Math.max.apply(Math,qt(a.x)):Math.max.apply(Math,qt(i.x)),y1:"x"!==o?Math.min.apply(Math,qt(a.y)):Math.min.apply(Math,qt(i.y)),y2:"x"!==o?Math.max.apply(Math,qt(a.y)):Math.max.apply(Math,qt(i.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(n,o),c=Math.max(n,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==r&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==r&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:l-f,y2:l+f},bottom:"x"!==r&&{x1:n,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,a=t.y2,u={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:a},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:a},top:{y1:Math.max(n,a),y2:Math.min(n,a),x1:r,x2:o},bottom:{y1:Math.min(n,a),y2:Math.max(n,a),x1:r,x2:o}};return e.reduce((function(t,e){return i()(t,u[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=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 e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||b(r),s=this.panBox(Ft(Ft(Ft({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),m(r,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return O(Ft(Ft({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:u,x2:"y"!==r?n:a,y2:"x"!==r?o:c}},panBox:function(t,r){var n=t.domain,o=t.startX,i=t.startY,a=this.getDimension(t),u=e()({},t.brushDomain,n),c=e()({},t.fullDomain,n),l=t.x1?t:this.getDomainBox(t,c,u),s=l.x1,f=l.x2,p=l.y1,y=l.y2,h=r.x,v=r.y,d=o?o-h: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,y)-b:Math.min(p,y),y2:"x"!==a?Math.max(p,y)-b:Math.max(p,y)}},constrainBox:function(t,e){var r=zt()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+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,e){var r=zt()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-r)>=i,c=Math.abs(n-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,r){var n=this;t.preventDefault();var o=r.handleWidth,i=r.cachedBrushDomain,a=r.domain,u=r.allowResize,c=r.allowDrag,l=r.allowDraw,s=this.getDimension(r),f=u||r.defaultBrushArea?r.defaultBrushArea:"move";if(!u&&!c)return{};var p=r.fullDomainBox||this.getDomainBox(r,a),y=r.parentSVG||b(t),h=m(t,y),v=h.x,d=h.y;if(!this.withinBounds({x:v,y:d},p,o))return{};var x=e()({},r.brushDomain,a),g=Wt()(x,i)?r.currentDomain||x||a:x||a,O=this.getDomainBox(r,a,g),w=u&&this.getActiveHandles({x:v,y:d},r,O);return w?[{target:"parent",mutation:function(){return Ft({isSelecting:!0,domainBox:O,fullDomainBox:p,cachedBrushDomain:x,currentDomain:g,parentSVG:y},n.getResizeMutation(O,w))}}]:this.withinBounds({x:v,y:d},O)&&!Wt()(a,g)?[{target:"parent",mutation:function(){return Ft({isPanning:c,startX:v,startY:d,domainBox:O,fullDomainBox:p,currentDomain:g,cachedBrushDomain:x,parentSVG:y},O)}}]:l?[{target:"parent",mutation:function(){return Ft({isSelecting:u||"move"===f,domainBox:O,fullDomainBox:p,parentSVG:y,cachedBrushDomain:x,cachedCurrentDomain:g,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:v,y:d},O,s))}}]:{}},onGlobalMouseMove:function(t,r){var n=r.scale,o=r.isPanning,i=r.isSelecting,a=r.fullDomainBox,u=r.onBrushDomainChange,c=r.allowResize,l=r.allowDrag,s=r.horizontal,f=r.mouseMoveThreshold,p=r.parentSVG,y=this.getDimension(r),h=m(t,p),v=h.x,d=h.y;if(!c&&!l||f>0&&!this.hasMoved(Ft(Ft({},r),{},{x2:v,y2:d})))return{};if(l&&o){var b=r.startX,x=r.startY,g=this.panBox(r,{x:v,y:d}),w=this.constrainBox(g,a),M=O(Ft(Ft({},w),{},{scale:n,horizontal:s})),P=Ft({currentDomain:M,parentSVG:p,startX:g.x2>=a.x2||g.x1<=a.x1?b:v,startY:g.y2>=a.y2||g.y1<=a.y1?x:d},w);return j()(u)&&u(M,e()({},P,r)),[{target:"parent",mutation:function(){return P}}]}if(c&&i){var D=this.constrainPoint({x:"y"!==y?v:r.x2,y:"x"!==y?d:r.y2},a),_=D.x,E=D.y,S=O({x2:_,y2:E,x1:r.x1,y1:r.y1,scale:n,horizontal:s}),A={x2:_,y2:E,currentDomain:S,parentSVG:p};return j()(u)&&u(S,e()({},A,r)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,r){if(!r.isPanning&&!r.isSelecting)return{};var n=r.x1,o=r.y1,i=r.x2,a=r.y2,u=r.isPanning,c=r.isSelecting,l=r.onBrushDomainChange,s=r.onBrushDomainChangeEnd,f=r.onBrushCleared,p=r.currentDomain,y=r.allowResize,h=r.allowDrag,v=y||r.defaultBrushArea?r.defaultBrushArea:"move",d={isPanning:!1,isSelecting:!1};if(!y&&(void 0===v||"none"===v)||n!==i&&o!==a)(h&&u||y&&c)&&j()(s)&&s(p,e()({},d,r));else{var b=r.cachedCurrentDomain||p,m=this.getDefaultBrushArea(r,b,t);d.currentDomain=m,j()(l)&&l(m,e()({},d,r)),j()(s)&&s(m,e()({},d,r)),j()(f)&&f(m,e()({},d,r))}return[{target:"parent",mutation:function(){return d}}]}};const Yt=Ft(Ft({},Xt),{},{onMouseDown:Xt.onMouseDown.bind(Xt),onGlobalMouseUp:Xt.onGlobalMouseUp.bind(Xt),onGlobalMouseMove:Ut()(Xt.onGlobalMouseMove.bind(Xt),16,{leading:!0,trailing:!1})});function Lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(r),!0).forEach((function(e){Jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kt(t){return function(t){if(Array.isArray(t))return Qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function te(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ee(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function re(t,e){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},re(t,e)}function ne(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function oe(t){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oe(t)}var ie=function(t){var r;return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&re(t,e)}(c,t);var r,n,o,a,u=(o=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=oe(o);if(a){var r=oe(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ne(this,t)});function c(){return te(this,c),u.apply(this,arguments)}return r=c,(n=[{key:"getSelectBox",value:function(t,r){var n=r.x,o=r.y,i=t.brushStyle,a=t.brushComponent,u=t.name,c=a.props&&a.props.style,s=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&o[0]!==o[1]?l().cloneElement(a,{key:"".concat(u,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(o[1]-o[0])||1,x:Math.min(n[0],n[1]),y:Math.min(o[0],o[1]),cursor:s,style:e()({},c,i)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,r){var n=t.handleWidth,o=t.handleStyle,a=t.handleComponent,u=t.name,c=Yt.getDomainBox(t,r),s=c.x1,f=c.x2,p=c.y1,y=c.y2,h=Yt.getHandles(t,c),v=h.top,d=h.bottom,b=h.left,m=h.right,x=Math.abs(f-s)||1,g=Math.abs(y-p)||1,O=a.props&&a.props.style||{},w=e()({},O,o),j=this.getCursorPointers(t),M={style:w,width:x,height:n,cursor:j.yProps},P={style:w,width:n,height:g,cursor:j.xProps},D={top:v&&i()({x:v.x1,y:v.y1},M),bottom:d&&i()({x:d.x1,y:d.y1},M),left:b&&i()({y:b.y1,x:b.x1},P),right:m&&i()({y:m.y1,x:m.x1},P)},_=["top","bottom","left","right"].reduce((function(t,e){return D[e]?t.concat(l().cloneElement(a,i()({key:"".concat(u,"-handle-").concat(e)},D[e]))):t}),[]);return _.length?_:null}},{key:"getRect",value:function(t){var r=t.currentDomain,n=t.cachedBrushDomain,o=e()({},t.brushDomain,t.domain),i=Wt()(o,n)?e()({},r,o):o,a=x(t,i),u=this.getSelectBox(t,a);return u?[u,this.getHandles(t,i)]:[]}},{key:"getChildren",value:function(t){return[].concat(Kt(l().Children.toArray(t.children)),Kt(this.getRect(t)))}}])&&ee(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t),r.displayName="VictoryBrushContainer",r.propTypes=Zt(Zt({},Bt.propTypes),{},{allowDrag:u().bool,allowDraw:u().bool,allowResize:u().bool,brushComponent:u().element,brushDimension:u().oneOf(["x","y"]),brushDomain:u().shape({x:u().array,y:u().array}),brushStyle:u().object,defaultBrushArea:u().oneOf(["all","disable","none","move"]),disable:u().bool,handleComponent:u().element,handleStyle:u().object,handleWidth:u().number,onBrushCleared:u().func,onBrushDomainChange:u().func,onBrushDomainChangeEnd:u().func}),r.defaultProps=Zt(Zt({},Bt.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:l().createElement(kt,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:l().createElement(kt,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),r.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:Yt.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:Yt.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Yt.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:Yt.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:Yt.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:Yt.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:Yt.onGlobalMouseUp(e,r)}}}]},r};const ae=ie(Bt)})(),o})()));
|
|
2
2
|
//# sourceMappingURL=victory-brush-container.min.js.map
|
package/es/brush-helpers.js
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -16,15 +16,15 @@ export interface VictoryBrushContainerProps extends VictoryContainerProps {
|
|
|
16
16
|
handleWidth?: number;
|
|
17
17
|
onBrushCleared?: (
|
|
18
18
|
domain: { x: DomainTuple; y: DomainTuple },
|
|
19
|
-
props: VictoryBrushContainerProps
|
|
19
|
+
props: VictoryBrushContainerProps,
|
|
20
20
|
) => void;
|
|
21
21
|
onBrushDomainChange?: (
|
|
22
22
|
domain: { x: DomainTuple; y: DomainTuple },
|
|
23
|
-
props: VictoryBrushContainerProps
|
|
23
|
+
props: VictoryBrushContainerProps,
|
|
24
24
|
) => void;
|
|
25
25
|
onBrushDomainChangeEnd?: (
|
|
26
26
|
domain: { x: DomainTuple; y: DomainTuple },
|
|
27
|
-
props: VictoryBrushContainerProps
|
|
27
|
+
props: VictoryBrushContainerProps,
|
|
28
28
|
) => void;
|
|
29
29
|
}
|
|
30
30
|
|
package/es/index.js
CHANGED
|
@@ -5,6 +5,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
|
|
8
10
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9
11
|
|
|
10
12
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -25,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
27
|
|
|
26
28
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
29
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
31
|
|
|
30
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
33
|
|
|
@@ -35,9 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
37
|
|
|
36
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
39
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
-
|
|
40
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
41
|
|
|
42
42
|
import PropTypes from "prop-types";
|
|
43
43
|
import React from "react";
|
|
@@ -182,7 +182,7 @@ export var brushContainerMixin = function (base) {
|
|
|
182
182
|
}]);
|
|
183
183
|
|
|
184
184
|
return VictoryBrushContainer;
|
|
185
|
-
}(base),
|
|
185
|
+
}(base), _class.displayName = "VictoryBrushContainer", _class.propTypes = _objectSpread(_objectSpread({}, VictoryContainer.propTypes), {}, {
|
|
186
186
|
allowDrag: PropTypes.bool,
|
|
187
187
|
allowDraw: PropTypes.bool,
|
|
188
188
|
allowResize: PropTypes.bool,
|
|
@@ -201,7 +201,7 @@ export var brushContainerMixin = function (base) {
|
|
|
201
201
|
onBrushCleared: PropTypes.func,
|
|
202
202
|
onBrushDomainChange: PropTypes.func,
|
|
203
203
|
onBrushDomainChangeEnd: PropTypes.func
|
|
204
|
-
})
|
|
204
|
+
}), _class.defaultProps = _objectSpread(_objectSpread({}, VictoryContainer.defaultProps), {}, {
|
|
205
205
|
allowDrag: true,
|
|
206
206
|
allowDraw: true,
|
|
207
207
|
allowResize: true,
|
|
@@ -218,7 +218,7 @@ export var brushContainerMixin = function (base) {
|
|
|
218
218
|
},
|
|
219
219
|
handleWidth: 8,
|
|
220
220
|
mouseMoveThreshold: 0
|
|
221
|
-
})
|
|
221
|
+
}), _class.defaultEvents = function (props) {
|
|
222
222
|
return [{
|
|
223
223
|
target: "parent",
|
|
224
224
|
eventHandlers: {
|
|
@@ -245,6 +245,7 @@ export var brushContainerMixin = function (base) {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
}];
|
|
248
|
-
}
|
|
248
|
+
}, _class;
|
|
249
249
|
};
|
|
250
|
-
export default brushContainerMixin(VictoryContainer);
|
|
250
|
+
export default brushContainerMixin(VictoryContainer);
|
|
251
|
+
//# sourceMappingURL=victory-brush-container.js.map
|
package/lib/brush-helpers.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -16,15 +16,15 @@ export interface VictoryBrushContainerProps extends VictoryContainerProps {
|
|
|
16
16
|
handleWidth?: number;
|
|
17
17
|
onBrushCleared?: (
|
|
18
18
|
domain: { x: DomainTuple; y: DomainTuple },
|
|
19
|
-
props: VictoryBrushContainerProps
|
|
19
|
+
props: VictoryBrushContainerProps,
|
|
20
20
|
) => void;
|
|
21
21
|
onBrushDomainChange?: (
|
|
22
22
|
domain: { x: DomainTuple; y: DomainTuple },
|
|
23
|
-
props: VictoryBrushContainerProps
|
|
23
|
+
props: VictoryBrushContainerProps,
|
|
24
24
|
) => void;
|
|
25
25
|
onBrushDomainChangeEnd?: (
|
|
26
26
|
domain: { x: DomainTuple; y: DomainTuple },
|
|
27
|
-
props: VictoryBrushContainerProps
|
|
27
|
+
props: VictoryBrushContainerProps,
|
|
28
28
|
) => void;
|
|
29
29
|
}
|
|
30
30
|
|
package/lib/index.js
CHANGED
|
@@ -30,4 +30,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
30
30
|
|
|
31
31
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
32
32
|
|
|
33
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -25,6 +25,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
25
25
|
|
|
26
26
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
27
|
|
|
28
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
+
|
|
28
30
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
29
31
|
|
|
30
32
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -45,7 +47,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
45
47
|
|
|
46
48
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
47
49
|
|
|
48
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
50
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
49
51
|
|
|
50
52
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
51
53
|
|
|
@@ -55,9 +57,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
55
57
|
|
|
56
58
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
57
59
|
|
|
58
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
59
|
-
|
|
60
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
60
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
61
61
|
|
|
62
62
|
var brushContainerMixin = function (base) {
|
|
63
63
|
var _class;
|
|
@@ -197,7 +197,7 @@ var brushContainerMixin = function (base) {
|
|
|
197
197
|
}]);
|
|
198
198
|
|
|
199
199
|
return VictoryBrushContainer;
|
|
200
|
-
}(base),
|
|
200
|
+
}(base), _class.displayName = "VictoryBrushContainer", _class.propTypes = _objectSpread(_objectSpread({}, _victoryCore.VictoryContainer.propTypes), {}, {
|
|
201
201
|
allowDrag: _propTypes.default.bool,
|
|
202
202
|
allowDraw: _propTypes.default.bool,
|
|
203
203
|
allowResize: _propTypes.default.bool,
|
|
@@ -216,7 +216,7 @@ var brushContainerMixin = function (base) {
|
|
|
216
216
|
onBrushCleared: _propTypes.default.func,
|
|
217
217
|
onBrushDomainChange: _propTypes.default.func,
|
|
218
218
|
onBrushDomainChangeEnd: _propTypes.default.func
|
|
219
|
-
})
|
|
219
|
+
}), _class.defaultProps = _objectSpread(_objectSpread({}, _victoryCore.VictoryContainer.defaultProps), {}, {
|
|
220
220
|
allowDrag: true,
|
|
221
221
|
allowDraw: true,
|
|
222
222
|
allowResize: true,
|
|
@@ -233,7 +233,7 @@ var brushContainerMixin = function (base) {
|
|
|
233
233
|
},
|
|
234
234
|
handleWidth: 8,
|
|
235
235
|
mouseMoveThreshold: 0
|
|
236
|
-
})
|
|
236
|
+
}), _class.defaultEvents = function (props) {
|
|
237
237
|
return [{
|
|
238
238
|
target: "parent",
|
|
239
239
|
eventHandlers: {
|
|
@@ -260,11 +260,12 @@ var brushContainerMixin = function (base) {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}];
|
|
263
|
-
}
|
|
263
|
+
}, _class;
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
exports.brushContainerMixin = brushContainerMixin;
|
|
267
267
|
|
|
268
268
|
var _default = brushContainerMixin(_victoryCore.VictoryContainer);
|
|
269
269
|
|
|
270
|
-
exports.default = _default;
|
|
270
|
+
exports.default = _default;
|
|
271
|
+
//# sourceMappingURL=victory-brush-container.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-brush-container",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.5.2",
|
|
4
4
|
"description": "Interactive Brush Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
23
|
"prop-types": "^15.8.1",
|
|
24
24
|
"react-fast-compare": "^3.2.0",
|
|
25
|
-
"victory-core": "^36.
|
|
25
|
+
"victory-core": "^36.5.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"react": "
|
|
28
|
+
"react": ">=16.6.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "def218e9749ecafc159ef458dd03a8b92e227666"
|
|
35
35
|
}
|