@cryptofi/core-ui 2.0.6 → 2.0.7
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var Dr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
|
|
|
28
28
|
object-assign
|
|
29
29
|
(c) Sindre Sorhus
|
|
30
30
|
@license MIT
|
|
31
|
-
*/function N_(){if(x_)return w_;x_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return w_=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},w_}function R_(){if(S_)return O_;S_=1;return O_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function L_(){return j_?__:(j_=1,__=Function.call.bind(Object.prototype.hasOwnProperty))}function B_(){if(A_)return P_;A_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=R_(),r={},n=L_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(n(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},P_=i}function z_(){if(k_)return M_;k_=1;var t=I_(),e=N_(),r=R_(),n=L_(),i=B_(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),M_=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(a),arrayOf:function(t){return v((function(e,n,i,o,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:v((function(t,e,r,n,i){var o=t[e];return c(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:v((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return v((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new h("Invalid "+i+" `"+o+"` of type `"+(((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:v((function(t,e,r,n,i){return m(t[e])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return v((function(e,i,o,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return v((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return v((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return v((function(e,n,i,o,a){var c=e[n],u=b(c);if("object"!==u)return new h("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return v((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var v=d(l,p,a,c,u+"."+p,r);if(v)return v}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function v(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var v=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 v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=l+":"+c;!e[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[y]=!0,n++)}}return null==a[c]?i?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return v((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new h("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},M_}function $_(){if(E_)return C_;E_=1;var t=R_();function e(){}function r(){}return r.resetWarningCache=e,C_=function(){function n(e,r,n,i,o,a){if(a!==t){var c=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 c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}function F_(){if(T_)return v_.exports;if(T_=1,"production"!==process.env.NODE_ENV){var t=I_();v_.exports=z_()(t.isElement,true)}else v_.exports=$_()();return v_.exports}var H_=br(F_()),U_=Object.getOwnPropertyNames,V_=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty;function Z_(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function q_(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function Y_(t){return U_(t).concat(V_(t))}var X_=Object.hasOwn||function(t,e){return W_.call(t,e)};function K_(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var G_="_owner",J_=Object.getOwnPropertyDescriptor,Q_=Object.keys;function tj(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function ej(t,e){return K_(t.getTime(),e.getTime())}function rj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,p=f[0],d=f[1],h=i.value,v=h[0],y=h[1];l||o[s]||!(l=r.equals(p,v,c,s,t,e,r)&&r.equals(d,y,p,v,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function nj(t,e,r){var n,i=Q_(t),o=i.length;if(Q_(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===G_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!X_(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function ij(t,e,r){var n,i,o,a=Y_(t),c=a.length;if(Y_(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===G_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!X_(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=J_(t,n),o=J_(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function oj(t,e){return K_(t.valueOf(),e.valueOf())}function aj(t,e){return t.source===e.source&&t.flags===e.flags}function cj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function uj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var lj="[object Arguments]",sj="[object Boolean]",fj="[object Date]",pj="[object Map]",dj="[object Number]",hj="[object Object]",vj="[object RegExp]",yj="[object Set]",gj="[object String]",mj=Array.isArray,bj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,wj=Object.assign,xj=Object.prototype.toString.call.bind(Object.prototype.toString);var Oj=Sj();function Sj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?ij:tj,areDatesEqual:ej,areMapsEqual:n?Z_(rj,ij):rj,areObjectsEqual:n?ij:nj,arePrimitiveWrappersEqual:oj,areRegExpsEqual:aj,areSetsEqual:n?Z_(cj,ij):cj,areTypedArraysEqual:n?ij:uj};if(r&&(i=wj({},i,r(i))),e){var o=q_(i.areArraysEqual),a=q_(i.areMapsEqual),c=q_(i.areObjectsEqual),u=q_(i.areSetsEqual);i=wj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(mj(t))return e(t,l,s);if(null!=bj&&bj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=xj(t);return p===fj?r(t,l,s):p===vj?a(t,l,s):p===pj?n(t,l,s):p===yj?c(t,l,s):p===hj?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):p===lj?i(t,l,s):(p===sj||p===dj||p===gj)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:c})}function _j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function jj(t){return jj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jj(t)}function Pj(t){return function(t){if(Array.isArray(t))return 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)return;if("string"==typeof t)return Aj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Aj(t,e)}(t)||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 Aj(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 Mj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Pj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void _j(r.bind(null,a),o):(r(o),void _j(r.bind(null,a)))}"object"===jj(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function kj(t){return kj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kj(t)}function Cj(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 Ej(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cj(Object(r),!0).forEach((function(e){Tj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==kj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==kj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===kj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Sj({strict:!0}),Sj({circular:!0}),Sj({circular:!0,strict:!0}),Sj({createInternalComparator:function(){return K_}}),Sj({strict:!0,createInternalComparator:function(){return K_}}),Sj({circular:!0,createInternalComparator:function(){return K_}}),Sj({circular:!0,createInternalComparator:function(){return K_},strict:!0});var Dj=function(t){return t},Ij=function(t,e){return Object.keys(e).reduce((function(r,n){return Ej(Ej({},r),{},Tj({},n,t(n,e[n])))}),{})},Nj=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Rj="production"!==process.env.NODE_ENV,Lj=function(t,e,r,n,i,o,a,c){if(Rj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Bj(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||$j(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 zj(t){return function(t){if(Array.isArray(t))return Fj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||$j(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 $j(t,e){if(t){if("string"==typeof t)return Fj(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)?Fj(t,e):void 0}}function Fj(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 Hj=1e-4,Uj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Vj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Wj=function(t,e){return function(r){var n=Uj(t,e);return Vj(n,r)}},Zj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Bj(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else Lj(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Lj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Wj(n,o),d=Wj(i,a),h=(s=n,f=o,function(t){var e=Uj(s,f),r=[].concat(zj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Vj(r,t)}),v=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=h(n);if(Math.abs(o-r)<Hj||a<Hj)return d(n);n=(e=n-o/a)>1?1:e<0?0:e}return d(n)};return v.isStepper=!1,v},qj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Zj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Hj&&Math.abs(o)<Hj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Zj(n);Lj(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Lj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Yj(t){return Yj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yj(t)}function Xj(t){return function(t){if(Array.isArray(t))return eP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tP(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 Kj(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 Gj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kj(Object(r),!0).forEach((function(e){Jj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Yj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qj(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||tP(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 tP(t,e){if(t){if("string"==typeof t)return eP(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)?eP(t,e):void 0}}function eP(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 rP=function(t,e,r){return t+(e-t)*r},nP=function(t){return t.from!==t.to},iP=function t(e,r,n){var i=Ij((function(t,r){if(nP(r)){var n=Qj(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return Gj(Gj({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Ij((function(t,e){return nP(e)?Gj(Gj({},e),{},{velocity:rP(e.velocity,i[t].velocity,n),from:rP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},oP=function(t,e,r,n,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Gj(Gj({},r),{},Jj({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Gj(Gj({},r),{},Jj({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=iP(r,f,o),i(Gj(Gj(Gj({},t),e),Ij((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(nP).length&&(p=requestAnimationFrame(d))}:function(o){u||(u=o);var a=(o-u)/n,c=Ij((function(t,e){return rP.apply(void 0,Xj(e).concat([r(a)]))}),s);if(i(Gj(Gj(Gj({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=Ij((function(t,e){return rP.apply(void 0,Xj(e).concat([r(1)]))}),s);i(Gj(Gj(Gj({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function aP(t){return aP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aP(t)}var cP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function uP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function lP(t){return function(t){if(Array.isArray(t))return sP(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)return;if("string"==typeof t)return sP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sP(t,e)}(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 sP(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 fP(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 pP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fP(Object(r),!0).forEach((function(e){dP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dP(t,e,r){return(e=vP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hP(t,e,r){return e&&function(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,vP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vP(t){var e=function(t,e){if("object"!==aP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==aP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===aP(e)?e:String(e)}function yP(t,e){return yP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yP(t,e)}function gP(t){var e=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}}();return function(){var r,n=wP(t);if(e){var i=wP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mP(this,r)}}function mP(t,e){if(e&&("object"===aP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bP(t)}function bP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wP(t){return wP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wP(t)}var xP=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&&yP(t,e)}(r,dt);var e=gP(r);function r(t,n){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=(i=e.call(this,t,n)).props,a=o.isActive,c=o.attributeName,u=o.from,l=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(bP(i)),i.changeStyle=i.changeStyle.bind(bP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:l}),mP(i);if(s&&s.length)i.state={style:s[0].style};else if(u){if("function"==typeof f)return i.state={style:u},mP(i);i.state={style:c?dP({},c,u):u}}else i.state={style:{}};return i}return hP(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(Oj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?dP({},i,s):s};(i&&u[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(pP(pP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?dP({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=oP(r,n,qj(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(lP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(lP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var d=Nj(p,o,c),h=pP(pP(pP({},f.style),u),{},{transition:d});return[].concat(lP(t),[h,o,s]).filter(Dj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Mj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=n?dP({},n,i):i,p=Nj(Object.keys(f),r,o);s.start([a,e,pP(pP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=uP(t,cP),o=pt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return xt(t,pP(pP({},i),{},{style:pP(pP({},n),a),className:o}))};return 1===o?c(pt.only(e)):st.createElement("div",null,pt.map(e,(function(t){return c(t)})))}}]),r}();function OP(t){return OP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OP(t)}function SP(){return SP=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},SP.apply(this,arguments)}function _P(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return jP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jP(t,e)}(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 jP(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 PP(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 AP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?PP(Object(r),!0).forEach((function(e){MP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function MP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=OP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=OP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}xP.displayName="Animate",xP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},xP.propTypes={from:H_.oneOfType([H_.object,H_.string]),to:H_.oneOfType([H_.object,H_.string]),attributeName:H_.string,duration:H_.number,begin:H_.number,easing:H_.oneOfType([H_.string,H_.func]),steps:H_.arrayOf(H_.shape({duration:H_.number.isRequired,style:H_.object.isRequired,easing:H_.oneOfType([H_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),H_.func]),properties:H_.arrayOf("string"),onAnimationEnd:H_.func})),children:H_.oneOfType([H_.node,H_.func]),isActive:H_.bool,canBegin:H_.bool,onAnimationEnd:H_.func,shouldReAnimate:H_.bool,onAnimationStart:H_.func,onAnimationReStart:H_.func};var kP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},CP=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},EP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},TP=function(t){var e=AP(AP({},EP),t),r=vt(),n=_P(gt(-1),2),i=n[0],o=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=zn("recharts-rectangle",f);return y?st.createElement(xP,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return st.createElement(xP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:v,easing:p},st.createElement("path",SP({},yc(e,!0),{className:g,d:kP(a,c,n,o,s),ref:r})))})):st.createElement("path",SP({},yc(e,!0),{className:g,d:kP(a,c,u,l,s)}))};function DP(){return DP=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},DP.apply(this,arguments)}var IP=function(t){var e=t.cx,r=t.cy,n=t.r,i=zn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?st.createElement("circle",DP({},yc(t,!1),tc(t),{className:i,cx:e,cy:r,r:n})):null};function NP(t){return NP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NP(t)}var RP=["x","y","top","left","width","height","className"];function LP(){return LP=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},LP.apply(this,arguments)}function BP(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 zP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=NP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=NP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==NP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $P(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var FP,HP,UP,VP,WP=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},ZP=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?BP(Object(r),!0).forEach((function(e){zP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:p},$P(t,RP));return za(r)&&za(i)&&za(s)&&za(p)&&za(a)&&za(u)?st.createElement("path",LP({},yc(h,!0),{className:zn("recharts-cross",d),d:WP(r,i,s,p,a,u)})):null};var qP,YP,XP=function(){if(VP)return UP;VP=1;var t=Fo(),e=function(){if(HP)return FP;HP=1;var t=Op()(Object.getPrototypeOf,Object);return FP=t}(),r=Ho(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return UP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var u=a.call(i,"constructor")&&i.constructor;return"function"==typeof u&&u instanceof u&&o.call(u)==c}}(),KP=br(XP);var GP=br(function(){if(YP)return qP;YP=1;var t=Fo(),e=Ho();return qP=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function JP(t){return JP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JP(t)}function QP(){return QP=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},QP.apply(this,arguments)}function tA(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return eA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eA(t,e)}(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 eA(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 rA(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 nA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rA(Object(r),!0).forEach((function(e){iA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=JP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=JP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oA,aA,cA,uA,lA,sA,fA,pA,dA=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},hA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vA=function(t){var e=nA(nA({},hA),t),r=vt(),n=tA(gt(-1),2),i=n[0],o=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var y=zn("recharts-trapezoid",f);return v?st.createElement(xP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return st.createElement(xP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},st.createElement("path",QP({},yc(e,!0),{className:y,d:dA(c,u,n,o,a),ref:r})))})):st.createElement("g",null,st.createElement("path",QP({},yc(e,!0),{className:y,d:dA(a,c,u,l,s)})))},yA=["option","shapeType","propTransformer","activeClassName","isActive"];function gA(t){return gA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gA(t)}function mA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bA(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 wA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bA(Object(r),!0).forEach((function(e){xA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=gA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OA(t,e){return wA(wA({},e),t)}function SA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return st.createElement(TP,r);case"trapezoid":return st.createElement(vA,r);case"sector":return st.createElement(r_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.createElement(sl,r);break;default:return null}}function _A(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?OA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=mA(t,yA);if(ft(r))e=xt(r,wA(wA({},l),function(t){return ft(t)?t.props:t}(r)));else if(xa(r))e=r(l);else if(KP(r)&&!GP(r)){var s=o(r,l);e=st.createElement(SA,{shapeType:n,elementProps:s})}else{var f=l;e=st.createElement(SA,{shapeType:n,elementProps:f})}return u?st.createElement(Uc,{className:c},e):e}function jA(t,e){return null!=e&&"trapezoids"in t.props}function PA(t,e){return null!=e&&"sectors"in t.props}function AA(t,e){return null!=e&&"points"in t.props}function MA(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function kA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function CA(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function EA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return jA(t,e)?r="trapezoids":PA(t,e)?r="sectors":AA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return jA(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:PA(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:AA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=ux(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return jA(t,e)?r=MA:PA(t,e)?r=kA:AA(t,e)&&(r=CA),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function TA(){if(uA)return cA;uA=1;var t=cv(),e=1/0;return cA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function DA(){if(sA)return lA;sA=1;var t=function(){if(aA)return oA;aA=1;var t=Math.ceil,e=Math.max;return oA=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),u=Array(c);c--;)u[o?c:++a]=r,r+=i;return u}}(),e=ah(),r=TA();return lA=function(n){return function(i,o,a){return a&&"number"!=typeof a&&e(i,o,a)&&(o=a=void 0),i=r(i),void 0===o?(o=i,i=0):o=r(o),a=void 0===a?i<o?1:-1:r(a),t(i,o,a,n)}}}var IA=function(){if(pA)return fA;pA=1;var t=DA()();return fA=t}(),NA=br(IA);function RA(t){return RA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RA(t)}function LA(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 BA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LA(Object(r),!0).forEach((function(e){zA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=RA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==RA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $A=["Webkit","Moz","O","ms"];function FA(t){return FA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FA(t)}function HA(){return HA=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},HA.apply(this,arguments)}function UA(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 VA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?UA(Object(r),!0).forEach((function(e){KA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function WA(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,GA(n.key),n)}}function ZA(t,e,r){return e=YA(e),function(t,e){if(e&&("object"===FA(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)}(t,qA()?Reflect.construct(e,r||[],YA(t).constructor):e.apply(t,r))}function qA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qA=function(){return!!t})()}function YA(t){return YA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},YA(t)}function XA(t,e){return XA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},XA(t,e)}function KA(t,e,r){return(e=GA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function GA(t){var e=function(t,e){if("object"!=FA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=FA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==FA(e)?e:e+""}var JA,QA,tM,eM,rM=function(t){return t.changedTouches&&!!t.changedTouches.length},nM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),KA(r=ZA(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),KA(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),KA(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),KA(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),KA(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),KA(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),KA(r,"handleSlideDragStart",(function(t){var e=rM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&XA(t,e)}(e,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=zO(r[t],i,t);return xa(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-i,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=rM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,u+l-s-a):v<0&&(v=Math.max(v,u-a)),h[n]=a+v;var y=this.getIndex(h),g=y.startIndex,m=y.endIndex;this.setState(KA(KA({},n,a+v),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(i>o?g%p==0:m%p==0)||i<o&&m===t||"endX"===n&&(i>o?m%p==0:g%p==0)||i>o&&m===t)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(KA({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return st.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=pt.only(a);return u?st.cloneElement(u,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,v=Math.max(t,this.props.x),y=VA(VA({},yc(this.props,!1)),{},{x:v,y:c,width:u,height:l}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[h])||void 0===i?void 0:i.name);return st.createElement(Uc,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,y))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return st.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return st.createElement(Uc,{className:"recharts-brush-texts"},st.createElement(ey,HA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),st.createElement(ey,HA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,v=l.isTravellerFocused;if(!e||!e.length||!za(i)||!za(o)||!za(a)||!za(c)||a<=0||c<=0)return null;var y,g,m,b,w=zn("recharts-brush",r),x=1===st.Children.count(n),O=(g="none",m=(y="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=$A.reduce((function(t,e){return BA(BA({},t),{},zA({},e+m,g))}),{}))[y]=g,b);return st.createElement(Uc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||v||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return st.isValidElement(t)?st.cloneElement(t,r):xa(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return VA({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Cy().domain(NA(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&WA(r.prototype,n),i&&WA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();KA(nM,"displayName","Brush"),KA(nM,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var iM,oM,aM,cM,uM=function(){if(eM)return tM;eM=1;var t=bs(),e=Lp(),r=function(){if(QA)return JA;QA=1;var t=Jd();return JA=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=Lo(),i=ah();return tM=function(o,a,c){var u=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),u(o,e(a,3))}}(),lM=br(uM),sM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var fM,pM,dM,hM,vM,yM,gM=function(){if(cM)return aM;cM=1;var t=function(){if(oM)return iM;oM=1;var t=nh();return iM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},iM}(),e=Gd(),r=Lp();return aM=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},aM}(),mM=br(gM);var bM=function(){if(yM)return vM;yM=1;var t=(pM||(pM=1,fM=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}),fM),e=function(){if(hM)return dM;hM=1;var t=Jd();return dM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=Lp(),n=Lo(),i=ah();return vM=function(o,a,c){var u=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),u(o,r(a,3))}}(),wM=br(bM),xM=["x","y"];function OM(t){return OM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OM(t)}function SM(){return SM=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},SM.apply(this,arguments)}function _M(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 jM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_M(Object(r),!0).forEach((function(e){PM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=OM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=OM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function MM(t,e){var r=t.x,n=t.y,i=AM(t,xM),o="".concat(r),a=parseInt(o,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),p=parseInt(f,10);return jM(jM(jM(jM(jM({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function kM(t){return st.createElement(_A,SM({shapeType:"rectangle",propTransformer:MM,activeClassName:"recharts-active-bar"},t))}var CM,EM=["value","background"];function TM(t){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TM(t)}function DM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function IM(){return IM=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},IM.apply(this,arguments)}function NM(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 RM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NM(Object(r),!0).forEach((function(e){HM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LM(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,UM(n.key),n)}}function BM(t,e,r){return e=$M(e),function(t,e){if(e&&("object"===TM(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)}(t,zM()?Reflect.construct(e,r||[],$M(t).constructor):e.apply(t,r))}function zM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zM=function(){return!!t})()}function $M(t){return $M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$M(t)}function FM(t,e){return FM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FM(t,e)}function HM(t,e,r){return(e=UM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UM(t){var e=function(t,e){if("object"!=TM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=TM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==TM(e)?e:e+""}var VM=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return HM(t=BM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),HM(t,"id",Ha("recharts-bar-")),HM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),HM(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FM(t,e)}(e,dt),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=yc(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=RM(RM(RM({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.createElement(Uc,IM({className:"recharts-bar-rectangle"},ec(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),st.createElement(kM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return st.createElement(xP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=Wa(r.x,t.x),a=Wa(r.y,t.y),c=Wa(r.width,t.width),u=Wa(r.height,t.height);return RM(RM({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=Wa(0,t.height)(i);return RM(RM({},t),{},{y:t.y+t.height-s,height:s})}var f=Wa(0,t.width)(i);return RM(RM({},t),{},{width:f})}));return st.createElement(Uc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&ux(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=yc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=DM(e,EM);if(!a)return null;var u=RM(RM(RM(RM(RM({},c),{},{fill:"#eee"},a),o),ec(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return st.createElement(kM,IM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=fc(r.children,AO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:zO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Uc,s,c.map((function(t){return st.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=zn("recharts-bar",n),v=i&&i.allowDataOverflow,y=o&&o.allowDataOverflow,g=v||y,m=ga(p)?this.id:p;return st.createElement(Uc,{className:h},v||y?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.createElement("rect",{x:v?a:a-u/2,y:y?c:c-l/2,width:v?u:2*u,height:y?l:2*l}))):null,st.createElement(Uc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&qS.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&LM(r.prototype,n),i&&LM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function WM(t){return WM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WM(t)}function ZM(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,KM(n.key),n)}}function qM(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 YM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qM(Object(r),!0).forEach((function(e){XM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function XM(t,e,r){return(e=KM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KM(t){var e=function(t,e){if("object"!=WM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WM(e)?e:e+""}CM=VM,HM(VM,"displayName","Bar"),HM(VM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Nh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),HM(VM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!d)return null;var h=e.layout,v=r.type.defaultProps,y=void 0!==v?RM(RM({},v),r.props):r.props,g=y.dataKey,m=y.children,b=y.minPointSize,w="horizontal"===h?a:o,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:w}),S=fc(m,mv),_=f.map((function(t,e){var n,f,p,v,y,m;l?n=function(t,e){if(!e||2!==e.length||!za(e[0])||!za(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!za(t[0])||t[0]<r)&&(i[0]=r),(!za(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],x):(n=zO(t,g),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?dO(0,"minPointSize callback function received a value with type of ".concat(OM(r),". Currently only numbers are supported.")):dO()),e)}}(b,CM.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=JO({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,v=d.size;var M=P-A;if(y=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:v,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var k=La(y||w)*(Math.abs(w)-Math.abs(y));p-=k,y+=k}}else{var C=[o.scale(n[0]),o.scale(n[1])],E=C[0],T=C[1];if(f=E,p=JO({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:t,index:e}),v=T-E,y=d.size,m={x:o.x,y:p,width:o.width,height:y},Math.abs(w)>0&&Math.abs(v)<Math.abs(w))v+=La(v||w)*(Math.abs(w)-Math.abs(v))}return RM(RM(RM({},t),{},{x:f,y:p,width:v,height:y,value:l?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[oS(r,t)],tooltipPosition:{x:f+v/2,y:p+y/2}})}));return RM({data:_,layout:h},p)}));var GM=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!pc(u,VM);return l.reduce((function(o,a){var u,l,p,d,h,v=e[a],y=v.orientation,g=v.domain,m=v.padding,b=void 0===m?{}:m,w=v.mirror,x=v.reversed,O="".concat(y).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=g[1]-g[0],_=1/0,j=v.categoricalDomain.sort(qa);if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(u=P*A/2),"no-gap"===v.padding){var M=Ua(t.barCategoryGap,P*A),k=P*A/2;u=k-M-(k-M)/A*M}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:v.range,x&&(l=[l[1],l[0]]);var C=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:My(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Jg(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Cy(),realScaleType:"point"}:"category"===i?{scale:My(),realScaleType:"band"}:{scale:Jg(),realScaleType:"linear"};if(wa(n)){var c="scale".concat(Kc(n));return{scale:(Uw[c]||Cy)(),realScaleType:Uw[c]?c:"point"}}return xa(n)?{scale:n}:{scale:Cy(),realScaleType:"point"}}(v,i,f),E=C.scale,T=C.realScaleType;E.domain(g).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-YO,o=Math.max(n[0],n[1])+YO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(E);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=lO(u,i,a);return t.domain([rx(l),Kw(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:sO(s,i,a)}}return null}(E,YM(YM({},v),{},{realScaleType:T}));"xAxis"===n?(h="top"===y&&!w||"bottom"===y&&w,p=r.left,d=s[O]-h*v.height):"yAxis"===n&&(h="left"===y&&!w||"right"===y&&w,p=s[O]-h*v.width,d=r.top);var I=YM(YM(YM({},v),D),{},{realScaleType:T,x:p,y:d,scale:E,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=nS(I,D),v.hide||"xAxis"!==n?v.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,YM(YM({},o),{},XM({},a,I))}),{})},JM=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},QM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&ZM(e.prototype,r),n&&ZM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();XM(QM,"EPS",1e-4);var tk=function(t){var e=Object.keys(t).reduce((function(e,r){return YM(YM({},e),{},XM({},r,QM.create(t[r])))}),{});return YM(YM({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return mM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return wM(t,(function(t,r){return e[r].isInRange(t)}))}})};var ek,rk,nk,ik,ok,ak,ck,uk,lk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function sk(){if(ak)return ok;ak=1;var t=Bp(),e=Lp(),r=function(){if(ik)return nk;ik=1;var t=TA();return nk=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return ok=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(i,e(o,3),u)},ok}!function(){if(uk)return ck;uk=1;var t=function(){if(rk)return ek;rk=1;var t=Lp(),e=_p(),r=jp();return ek=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var u=t(o,3);i=r(i),o=function(t){return u(c[t],t,c)}}var l=n(i,o,a);return l>-1?c[u?i[l]:l]:void 0}}}(),e=t(sk());ck=e}();var fk=br(ia())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function pk(t){return pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pk(t)}var dk=_t(void 0),hk=_t(void 0),vk=_t(void 0),yk=_t({}),gk=_t(void 0),mk=_t(0),bk=_t(0),wk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=fk(i);return st.createElement(dk.Provider,{value:r},st.createElement(hk.Provider,{value:n},st.createElement(yk.Provider,{value:i},st.createElement(vk.Provider,{value:l},st.createElement(gk.Provider,{value:o},st.createElement(mk.Provider,{value:u},st.createElement(bk.Provider,{value:c},a)))))))};function xk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Ok=function(t){var e=St(dk);null==e&&("production"!==process.env.NODE_ENV?dO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?dO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(pk(t),"]. ").concat(xk(e))):dO()),r},Sk=function(t){var e=St(hk);null==e&&("production"!==process.env.NODE_ENV?dO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?dO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(pk(t),"]. ").concat(xk(e))):dO()),r},_k=function(){return St(bk)},jk=function(){return St(mk)};function Pk(t){return Pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pk(t)}function Ak(t,e,r){return e&&function(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,Nk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mk(t,e,r){return e=Ck(e),function(t,e){if(e&&("object"===Pk(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)}(t,kk()?Reflect.construct(e,r||[],Ck(t).constructor):e.apply(t,r))}function kk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(kk=function(){return!!t})()}function Ck(t){return Ck=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ck(t)}function Ek(t,e){return Ek=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ek(t,e)}function Tk(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 Dk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tk(Object(r),!0).forEach((function(e){Ik(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ik(t,e,r){return(e=Nk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nk(t){var e=function(t,e){if("object"!=Pk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Pk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Pk(e)?e:e+""}function Rk(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lk(t,e)}(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 Lk(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 Bk(){return Bk=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},Bk.apply(this,arguments)}function zk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=St(gk),s=Ok(i),f=Sk(o),p=St(vk);if(!l||!p)return null;Wc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,p=i.height;if(r){var d=u.y,h=t.y.apply(d,{position:o});if(sM(u,"discard")&&!t.y.isInRange(h))return null;var v=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?v.reverse():v}if(e){var y=u.x,g=t.x.apply(y,{position:o});if(sM(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+p},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:o})}));return sM(u,"discard")&&lM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(tk({x:s.scale,y:f.scale}),$a(e),$a(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=Rk(d,2),v=h[0],y=v.x,g=v.y,m=h[1],b=m.x,w=m.y,x=Dk(Dk({clipPath:sM(t,"hidden")?"url(#".concat(l,")"):void 0},yc(t,!0)),{},{x1:y,y1:g,x2:b,y2:w});return st.createElement(Uc,{className:zn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement("line",Bk({},e,{className:"recharts-reference-line-line"}))}(a,x),CS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return JM({x:e,y:r},{x:n,y:i})}({x1:y,y1:g,x2:b,y2:w})))}var $k=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ek(t,e)}(e,st.Component),Ak(e,[{key:"render",value:function(){return st.createElement(zk,this.props)}}])}();function Fk(){return Fk=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},Fk.apply(this,arguments)}function Hk(t){return Hk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hk(t)}function Uk(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 Vk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uk(Object(r),!0).forEach((function(e){Kk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wk(t,e,r){return e&&function(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,Gk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zk(t,e,r){return e=Yk(e),function(t,e){if(e&&("object"===Hk(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)}(t,qk()?Reflect.construct(e,r||[],Yk(t).constructor):e.apply(t,r))}function qk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qk=function(){return!!t})()}function Yk(t){return Yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yk(t)}function Xk(t,e){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xk(t,e)}function Kk(t,e,r){return(e=Gk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gk(t){var e=function(t,e){if("object"!=Hk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Hk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Hk(e)?e:e+""}Ik($k,"displayName","ReferenceLine"),Ik($k,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Jk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Zk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xk(t,e)}(e,st.Component),Wk(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=$a(r),u=$a(n);if(Wc(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=tk({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return sM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,v=Vk(Vk({clipPath:sM(this.props,"hidden")?"url(#".concat(a,")"):void 0},yc(this.props,!0)),{},{cx:s,cy:f});return st.createElement(Uc,{className:zn("recharts-reference-dot",h)},e.renderDot(d,v),CS.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();function Qk(){return Qk=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},Qk.apply(this,arguments)}function tC(t){return tC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tC(t)}function eC(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 rC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eC(Object(r),!0).forEach((function(e){uC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nC(t,e,r){return e&&function(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,lC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iC(t,e,r){return e=aC(e),function(t,e){if(e&&("object"===tC(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)}(t,oC()?Reflect.construct(e,r||[],aC(t).constructor):e.apply(t,r))}function oC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oC=function(){return!!t})()}function aC(t){return aC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},aC(t)}function cC(t,e){return cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cC(t,e)}function uC(t,e,r){return(e=lC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lC(t){var e=function(t,e){if("object"!=tC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=tC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==tC(e)?e:e+""}Kk(Jk,"displayName","ReferenceDot"),Kk(Jk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Kk(Jk,"renderDot",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement(IP,Fk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var sC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),iC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cC(t,e)}(e,st.Component),nC(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,u=t.clipPathId;Wc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=$a(r),s=$a(n),f=$a(i),p=$a(o),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=tk({x:l.scale,y:s.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!sM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?JM(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var v=sM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return st.createElement(Uc,{className:zn("recharts-reference-area",a)},e.renderRect(d,rC(rC({clipPath:v},yc(this.props,!0)),h)),CS.renderCallByParent(this.props,h))}}])}();function fC(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function pC(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function dC(t){return dC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dC(t)}function hC(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 vC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hC(Object(r),!0).forEach((function(e){yC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=dC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=dC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gC(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(za(u)||Nh)return function(t,e){return fC(t,e+1)}(i,"number"==typeof u&&za(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?Pv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var i=xa(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return lk(n,r)}(Pv(i,{fontSize:e,letterSpacing:r}),h,f):Pv(i,{fontSize:e,letterSpacing:r})[d]},y=i.length>=2?La(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,y,d);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:fC(n,s)};var o,a=l,p=function(){return void 0===o&&(o=r(e,a)),o},d=e.coordinate,h=0===l||pC(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+i),l+=s)};s<=a.length;)if(o=p())return o.v;return[]}(y,g,v,i,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=vC(vC({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),pC(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=vC(vC({},s),{},{isShow:!0}))}for(var d=o?c-1:c,h=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=vC(vC({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=vC(vC({},o),{},{tickCoord:o.coordinate});pC(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=vC(vC({},o),{},{isShow:!0}))},v=0;v<d;v++)h(v);return a}(y,g,v,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=vC(vC({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=vC(vC({},l),{},{tickCoord:l.coordinate});pC(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=vC(vC({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(y,g,v,i,a),p.filter((function(t){return t.isShow})))}uC(sC,"displayName","ReferenceArea"),uC(sC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),uC(sC,"renderRect",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement(TP,Qk({},e,{className:"recharts-reference-area-rect"}))}));var mC=["viewBox"],bC=["viewBox"],wC=["ticks"];function xC(t){return xC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xC(t)}function OC(){return OC=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},OC.apply(this,arguments)}function SC(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 _C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SC(Object(r),!0).forEach((function(e){EC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function PC(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,TC(n.key),n)}}function AC(t,e,r){return e=kC(e),function(t,e){if(e&&("object"===xC(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)}(t,MC()?Reflect.construct(e,r||[],kC(t).constructor):e.apply(t,r))}function MC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(MC=function(){return!!t})()}function kC(t){return kC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kC(t)}function CC(t,e){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CC(t,e)}function EC(t,e,r){return(e=TC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TC(t){var e=function(t,e){if("object"!=xC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=xC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==xC(e)?e:e+""}var DC=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=AC(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CC(t,e)}(e,jt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=jC(t,mC),i=this.props,o=i.viewBox,a=jC(i,bC);return!Ya(r,o)||!Ya(n,a)||!Ya(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,v=c.tickMargin,y=h?-1:1,g=t.tickSize||d,m=za(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=l+ +!h*f)-y*g)-y*v,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!h*s)-y*g)-y*v,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +h*s)+y*g)+y*v,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +h*f)+y*g)+y*v,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=_C(_C(_C({},yc(this.props,!1)),yc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=_C(_C({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=_C(_C({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return st.createElement("line",OC({},u,{className:zn("recharts-cartesian-axis-line",ha(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=gC(_C(_C({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=yc(this.props,!1),v=yc(u,!1),y=_C(_C({},h),{},{fill:"none"},yc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=_C(_C(_C(_C({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},v),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return st.createElement(Uc,OC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},ec(i.props,t,r)),a&&st.createElement("line",OC({},y,o,{className:zn("recharts-cartesian-axis-tick-line",ha(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(xa(l)?l(t.value,r):t.value).concat(s||"")))}));return st.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=jC(c,wC),s=u;return xa(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:st.createElement(Uc,{className:zn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),CS.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement(ey,OC({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&PC(r.prototype,n),i&&PC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();EC(DC,"displayName","CartesianAxis"),EC(DC,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var IC=["type","layout","connectNulls","ref"],NC=["key"];function RC(t){return RC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RC(t)}function LC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function BC(){return BC=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},BC.apply(this,arguments)}function zC(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 $C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zC(Object(r),!0).forEach((function(e){YC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function FC(t){return function(t){if(Array.isArray(t))return HC(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)return;if("string"==typeof t)return HC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HC(t,e)}(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 HC(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 UC(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,XC(n.key),n)}}function VC(t,e,r){return e=ZC(e),function(t,e){if(e&&("object"===RC(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)}(t,WC()?Reflect.construct(e,r||[],ZC(t).constructor):e.apply(t,r))}function WC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(WC=function(){return!!t})()}function ZC(t){return ZC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZC(t)}function qC(t,e){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qC(t,e)}function YC(t,e,r){return(e=XC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XC(t){var e=function(t,e){if("object"!=RC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==RC(e)?e:e+""}var KC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return YC(t=VC(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),YC(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),YC(t,"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(FC(i.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(FC(e.repeat(i,a)),FC(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),YC(t,"id",Ha("recharts-line-")),YC(t,"pathRef",(function(e){t.mainCurve=e})),YC(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),YC(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qC(t,e)}(e,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=fc(r.children,AO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:zO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Uc,l,c.map((function(t){return st.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=yc(this.props,!1),l=yc(o,!0),s=a.map((function(t,r){var n=$C($C($C({key:"dot-".concat(r),r:3},u),l),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:c,payload:t.payload,points:a});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Uc,BC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=LC(i,IC),l=$C($C($C({},yc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return st.createElement(h_,BC({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,v=h.prevPoints,y=h.totalLength;return st.createElement(xP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=Wa(n.x,t.x),o=Wa(n.y,t.y);return $C($C({},t),{},{x:i(a),y:o(a)})}if(f){var u=Wa(2*p,t.x),l=Wa(d/2,t.y);return $C($C({},t),{},{x:u(a),y:l(a)})}return $C($C({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=Wa(0,y)(a);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,y,h)}else l=r.generateSimpleStrokeDasharray(y,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!ux(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=zn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=ga(d)?this.id:d,x=null!==(t=yc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(vc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Uc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:l-M/2,y:u-M/2,width:s+M,height:f+M}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(b,w),(v||n)&&this.renderDots(b,A,w),(!p||h)&&qS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(FC(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(FC(n),FC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(xa(t))r=t(e);else{var n=e.key,i=LC(e,NC),o=zn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.createElement(IP,BC({key:n},i,{className:o}))}return r}}],n&&UC(r.prototype,n),i&&UC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();YC(KC,"displayName","Line"),YC(KC,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Nh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),YC(KC,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return $C({points:u.map((function(t,e){var u=zO(t,a);return"horizontal"===s?{x:GO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:ga(u)?null:n.scale(u),value:u,payload:t}:{x:ga(u)?null:r.scale(u),y:GO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var GC,JC=["layout","type","stroke","connectNulls","isRange","ref"],QC=["key"];function tE(t){return tE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tE(t)}function eE(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function rE(){return rE=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},rE.apply(this,arguments)}function nE(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 iE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nE(Object(r),!0).forEach((function(e){sE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oE(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,fE(n.key),n)}}function aE(t,e,r){return e=uE(e),function(t,e){if(e&&("object"===tE(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)}(t,cE()?Reflect.construct(e,r||[],uE(t).constructor):e.apply(t,r))}function cE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(cE=function(){return!!t})()}function uE(t){return uE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},uE(t)}function lE(t,e){return lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lE(t,e)}function sE(t,e,r){return(e=fE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fE(t){var e=function(t,e){if("object"!=tE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=tE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==tE(e)?e:e+""}var pE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return sE(t=aE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),sE(t,"id",Ha("recharts-area-")),sE(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),xa(e)&&e()})),sE(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),xa(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lE(t,e)}(e,dt),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=yc(this.props,!1),f=yc(c,!0),p=u.map((function(t,r){var n=iE(iE(iE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Uc,rE({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),u=Kw(n.map((function(t){return t.y||0})));return za(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Kw(r.map((function(t){return t.y||0}))),u)),za(u)?st.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),u=Kw(n.map((function(t){return t.x||0})));return za(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Kw(r.map((function(t){return t.x||0}))),u)),za(u)?st.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=eE(i,JC);return st.createElement(Uc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(h_,rE({},yc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(h_,rE({},yc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&st.createElement(h_,rE({},yc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return st.createElement(xP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,u=p.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=Wa(n.x,t.x),o=Wa(n.y,t.y);return iE(iE({},t),{},{x:i(a),y:o(a)})}return t}));return c=za(o)&&"number"==typeof o?Wa(d,o)(a):ga(o)||Na(o)?Wa(d,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],i=Wa(n.x,t.x),o=Wa(n.y,t.y);return iE(iE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return st.createElement(Uc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.createElement(Uc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!ux(c,n)||!ux(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=zn("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=ga(d)?this.id:d,x=null!==(t=yc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(vc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Uc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,v?null:this.renderArea(b,w),(n||v)&&this.renderDots(b,A,w),(!p||h)&&qS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&oE(r.prototype,n),i&&oE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function dE(t){return dE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dE(t)}function hE(t,e,r){return e&&function(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,wE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vE(t,e,r){return e=gE(e),function(t,e){if(e&&("object"===dE(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)}(t,yE()?Reflect.construct(e,r||[],gE(t).constructor):e.apply(t,r))}function yE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yE=function(){return!!t})()}function gE(t){return gE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gE(t)}function mE(t,e){return mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mE(t,e)}function bE(t,e,r){return(e=wE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wE(t){var e=function(t,e){if("object"!=dE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=dE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==dE(e)?e:e+""}function xE(){return xE=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},xE.apply(this,arguments)}function OE(t){var e=t.xAxisId,r=_k(),n=jk(),i=Ok(e);return null==i?null:st.createElement(DC,xE({},i,{className:zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return WO(t,!0)}}))}GC=pE,sE(pE,"displayName","Area"),sE(pE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Nh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),sE(pE,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(za(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),sE(pE,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,v=s&&s.length,y=GC.getBaseValue(r,n,i,o),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;v?r=s[f+e]:(r=zO(t,l),Array.isArray(r)?m=!0:r=[y,r]);var n=null==r[1]||v&&null==zO(t,l);return g?{x:GO({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:GO({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=v||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(y):i.scale(y),iE({points:b,baseLine:e,layout:h,isRange:m},d)})),sE(pE,"renderDotItem",(function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(xa(t))r=t(e);else{var n=zn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=eE(e,QC);r=st.createElement(IP,rE({},o,{key:i,className:n}))}return r}));var SE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),vE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mE(t,e)}(e,st.Component),hE(e,[{key:"render",value:function(){return st.createElement(OE,this.props)}}])}();function _E(t){return _E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_E(t)}function jE(t,e,r){return e&&function(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,EE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function PE(t,e,r){return e=ME(e),function(t,e){if(e&&("object"===_E(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)}(t,AE()?Reflect.construct(e,r||[],ME(t).constructor):e.apply(t,r))}function AE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(AE=function(){return!!t})()}function ME(t){return ME=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ME(t)}function kE(t,e){return kE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kE(t,e)}function CE(t,e,r){return(e=EE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function EE(t){var e=function(t,e){if("object"!=_E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=_E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==_E(e)?e:e+""}function TE(){return TE=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},TE.apply(this,arguments)}bE(SE,"displayName","XAxis"),bE(SE,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var DE=function(t){var e=t.yAxisId,r=_k(),n=jk(),i=Sk(e);return null==i?null:st.createElement(DC,TE({},i,{className:zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return WO(t,!0)}}))},IE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),PE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kE(t,e)}(e,st.Component),jE(e,[{key:"render",value:function(){return st.createElement(DE,this.props)}}])}();function NE(t){return function(t){if(Array.isArray(t))return RE(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)return;if("string"==typeof t)return RE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RE(t,e)}(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 RE(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}CE(IE,"displayName","YAxis"),CE(IE,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var LE,BE=function(t,e,r,n,i){var o=fc(t,$k),a=fc(t,Jk),c=[].concat(NE(o),NE(a)),u=fc(t,sC),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&sM(e.props,"extendDomain")&&za(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&sM(e.props,"extendDomain")&&za(e.props[p])&&za(e.props[d])){var n=e.props[p],i=e.props[d];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return za(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},zE={exports:{}};var $E=(LE||(LE=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,i);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(zE)),zE.exports),FE=new(br($E)),HE="recharts.syncMouseEvents";function UE(t){return UE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UE(t)}function VE(t,e,r){return e&&function(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,ZE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function WE(t,e,r){return(e=ZE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZE(t){var e=function(t,e){if("object"!=UE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==UE(e)?e:e+""}var qE=function(){return VE((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),WE(this,"activeIndex",0),WE(this,"coordinateList",[]),WE(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function YE(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[pS(e,r,n,i),pS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function XE(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return YE(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=pS(c,u,l,f),d=pS(c,u,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}function KE(t){return KE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KE(t)}function GE(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 JE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GE(Object(r),!0).forEach((function(e){QE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function QE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=KE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tT(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!h||!a||!c||"ScatterChart"!==d&&"axis"!==o)return null;var v=h_;if("ScatterChart"===d)n=c,v=ZP;else if("BarChart"===d)n=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,l,f),v=TP;else if("radial"===p){var y=YE(c),g=y.cx,m=y.cy,b=y.radius;n={cx:g,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},v=r_}else n={points:XE(p,c,l)},v=h_;var w=JE(JE(JE(JE({stroke:"#ccc",pointerEvents:"none"},l),n),yc(h,!1)),{},{payload:u,payloadIndex:s,className:zn("recharts-tooltip-cursor",h.className)});return ft(h)?xt(h,w):Ot(v,w)}var eT=["item"],rT=["children","className","width","height","style","compact","title","desc"];function nT(t){return nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nT(t)}function iT(){return iT=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},iT.apply(this,arguments)}function oT(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||dT(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 aT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function cT(t,e,r){return e&&function(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,mT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uT(t,e,r){return e=sT(e),function(t,e){if(e&&("object"===nT(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)}(t,lT()?Reflect.construct(e,r||[],sT(t).constructor):e.apply(t,r))}function lT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lT=function(){return!!t})()}function sT(t){return sT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sT(t)}function fT(t,e){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fT(t,e)}function pT(t){return function(t){if(Array.isArray(t))return hT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||dT(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 dT(t,e){if(t){if("string"==typeof t)return hT(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)?hT(t,e):void 0}}function hT(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 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 yT(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){gT(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 gT(t,e,r){return(e=mT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mT(t){var e=function(t,e){if("object"!=nT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=nT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nT(e)?e:e+""}var bT={xAxis:["bottom","top"],yAxis:["left","right"]},wT={width:"100%",height:"100%"},xT={x:0,y:0};function OT(t){return t}var ST=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(pT(t),pT(r)):t}),[]);return o.length>0?o:t&&t.length&&za(n)&&za(i)?t.slice(n,i+1):[]};function _T(t){return"number"===t?[0,"auto"]:void 0}var jT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=ST(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=Za(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(pT(i),[oS(c,l)]):i}),[])},PT=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(La(s-l)!==La(f-s)){var d=[];if(La(f-s)===La(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var v=f+c[1]-c[0];d[0]=Math.min(s,(v+s)/2),d[1]=Math.max(s,(v+s)/2)}var y=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>y[0]&&t<=y[1]||t>=d[0]&&t<=d[1]){o=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=jT(t,e,l,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return yT(yT(yT({},n),pS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return yT(yT(yT({},n),pS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return xT}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},AT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=VO(l,i);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?yT(yT({},r.type.defaultProps),r.props):r.props,v=h.type,y=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[o];if(e[O])return e;var S,_,j,P=ST(t.data,{graphicalItems:n.filter((function(t){var e;return(o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o])===O})),dataStartIndex:c,dataEndIndex:u}),A=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&za(n)&&za(i))return!0}return!1})(h.domain,g,v)&&(S=rS(h.domain,null,g),!p||"number"!==v&&"auto"===b||(j=$O(P,y,"category")));var M=_T(v);if(!S||0===S.length){var k,C=null!==(k=h.domain)&&void 0!==k?k:M;if(y){if(S=$O(P,y,v),"category"===v&&p){var E=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&E?(_=S,S=NA(0,A)):m||(S=iS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(pT(t),[e])}),[]))}else if("category"===v)S=m?S.filter((function(t){return""!==t&&!ga(t)})):iS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||ga(e)?t:[].concat(pT(t),[e])}),[]);else if("number"===v){var T=function(t,e,r,n,i){var o=e.map((function(e){return HO(t,e,r,i,n)})).filter((function(t){return!ga(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!i)})),y,i,l);T&&(S=T)}!p||"number"!==v&&"auto"===b||(j=$O(P,y,"category"))}else S=p?NA(0,A):a&&a[O]&&a[O].hasStack&&"number"===v?"expand"===f?[0,1]:QO(a[O].stackGroups,c,u):UO(P,n.filter((function(t){var e=o in t.props?t.props[o]:t.type.defaultProps[o],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),v,l,!0);if("number"===v)S=BE(s,S,O,i,w),C&&(S=rS(C,S,g));else if("category"===v&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return yT(yT({},e),{},gT({},O,yT(yT({},h),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:l})))}),{})},MT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=fc(l,i),p={};return f&&f.length?p=AT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=ST(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=VO(l,i),h=-1;return r.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?yT(yT({},e.type.defaultProps),e.props):e.props)[o],g=_T("number");return t[y]?t:(h++,d?v=NA(0,p):a&&a[y]&&a[y].hasStack?(v=QO(a[y].stackGroups,c,u),v=BE(s,v,y,i)):(v=rS(g,UO(f,r.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===y&&!i})),"number",l),n.defaultProps.allowDataOverflow),v=BE(s,v,y,i)),yT(yT({},t),{},gT({},y,yT(yT({axisType:i},n.defaultProps),{},{hide:!0,orientation:ha(bT,"".concat(i,".").concat(h%2),null),domain:v,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},kT=function(t){var e=t.children,r=t.defaultShowTooltip,n=pc(e,nM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},CT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ET=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=pc(l,nM),p=pc(l,Yd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:yT(yT({},t),{},gT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:yT(yT({},t),{},gT({},n,ha(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),v=yT(yT({},h),d),y=v.bottom;f&&(v.bottom+=f.props.height||nM.defaultProps.height),p&&e&&(v=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=TO({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&za(t[p]))return LO(LO({},t),{},BO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&za(t[d]))return LO(LO({},t),{},BO({},d,t[d]+(f||0)))}return t}(v,0,r,e));var g=c-v.left-v.right,m=u-v.top-v.bottom;return yT(yT({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(m,0)})},TT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},DT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,o=t.validateTooltipEventTypes,a=void 0===o?["axis"]:o,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=CT(s),v=h.numericAxisName,y=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=cc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=ST(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?yT(yT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(v,"Id")],_=w["".concat(y,"Id")],j=c.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?dO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):dO());var u=a[c];return yT(yT({},t),{},gT(gT({},n.axisType,u),"".concat(n.axisType,"Ticks"),WO(u)))}),{}),P=j[y],A=j["".concat(y,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?LO(LO({},t.type.defaultProps),t.props):t.props).stackId;if($a(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null}(r,n[S].stackGroups),k=cc(r.type).indexOf("Bar")>=0,C=nS(P,A),E=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),c=0,u=a.length;c<u;c++)for(var l=i[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,v=d.cateAxisId,y=h.filter((function(t){return cc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,m=void 0!==g?LO(LO({},g),y[0].props):y[0].props,b=m.barSize,w=m[v];o[w]||(o[w]=[]);var x=ga(b)?e:b;o[w].push({item:y[0],stackList:y.slice(1),barSize:ga(x)?void 0:Ua(x,r,0)})}}return o}({barSize:l,stackGroups:n,totalSize:TT(j,y)});if(k){var D,I,N=ga(O)?d:O,R=null!==(D=null!==(I=nS(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;E=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=Ua(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(IO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var v=Ua(r,n,0,!0);n-2*v-(c-1)*l<=0&&(l=0);var y=(n-2*v-(c-1)*l)/c;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;u=o.reduce((function(t,e,r){var n=[].concat(IO(t),[{item:e.item,position:{offset:v+(y+l)*r+(y-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[_],maxBarSize:N}),R!==C&&(E=E.map((function(t){return yT(yT({},t),{},{position:yT(yT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:yT(yT({},z(yT(yT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:E,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},gT(gT(gT({key:r.key||"item-".concat(h)},v,j[v]),y,j[y]),"animationId",o)),childIndex:(L=r,B=t.children,sc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!dc({props:i}))return null;var s=i.children,p=i.layout,d=i.stackOffset,h=i.data,v=i.reverseStackOrder,y=CT(p),g=y.numericAxisName,m=y.cateAxisName,b=fc(s,r),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?LO(LO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],u=t[c]||{hasStack:!1,stackGroups:{}};if($a(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[Ha("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return LO(LO({},t),{},BO({},c,u))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return LO(LO({},e),{},BO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:KO(t,a.items,i)}))}),{})),LO(LO({},e),{},BO({},o,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,v),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return yT(yT({},t),{},gT({},r,MT(i,yT(yT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=ET(yT(yT({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Va(j),{tooltipTicks:_=WO(S,!1,!0),orderedTooltipTicks:uh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:nS(S,_)}),A=f(i,yT(yT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return yT(yT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=function(t){function r(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),gT(o=uT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),gT(o,"accessibilityManager",new qE),gT(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(yT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},yT(yT({},o.state),{},{legendBBox:t}))))}})),gT(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),gT(o,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return yT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),gT(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=yT(yT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;xa(n)&&n(r,t)}})),gT(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?yT(yT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;xa(n)&&n(r,t)})),gT(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),gT(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),gT(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),gT(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;xa(r)&&r(e,t)})),gT(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&ac[e]?ac[e]:null}(t),n=ha(o.props,"".concat(r));r&&xa(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),gT(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=yT(yT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;xa(n)&&n(r,t)}})),gT(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),gT(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),gT(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),gT(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&FE.emit(HE,o.props.syncId,t,o.eventEmitterSymbol)})),gT(o,"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(yT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var v=0;v<h.length;v++)if(h[v].value===t.activeLabel){s=v;break}}var y=yT(yT({},d),{},{x:d.left,y:d.top}),g=Math.min(u,y.x+y.width),m=Math.min(l,y.y+y.height),b=h[s]&&h[s].value,w=jT(o.state,o.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:xT;o.setState(yT(yT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),gT(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,d=o.props.layout,h=t.key||"_recharts-cursor";return st.createElement(tT,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),gT(o,"renderPolarAxis",(function(t,e,r){var n=ha(t,"type.axisType"),i=ha(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?yT(yT({},a),t.props):t.props,u=i&&i[c["".concat(n,"Id")]];return xt(t,yT(yT({},u),{},{className:zn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:WO(u,!0)}))})),gT(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Va(c),s=Va(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return xt(t,{polarAngles:Array.isArray(n)?n:WO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:WO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),gT(o,"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),l=TO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=aT(l,eT);return xt(s,yT(yT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),gT(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=pc(r,ov);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return xt(i,{viewBox:yT(yT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),gT(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return xt(t,{key:t.key||"_recharts-brush",onChange:qO(o.handleBrushChange,t.props.onChange),data:n,x:za(t.props.x)?t.props.x:a.left,y:za(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:za(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),gT(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return xt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),gT(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?yT(yT({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=yT(yT({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:FO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},yc(s,!1)),tc(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,yT(yT({},f),{},{cx:i.x,cy:i.y}),"".concat(u,"-basePoint-").concat(o))):a&&c.push(null),c})),gT(o,"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=pc(o.props.children,ov),p=n.props,d=p.points,h=p.isRange,v=p.baseLine,y=void 0!==n.item.type.defaultProps?yT(yT({},n.item.type.defaultProps),n.item.props):n.item.props,g=y.activeDot,m=y.hide,b=y.activeBar,w=y.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:qO(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:qO(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:qO(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=xt(t,yT(yT({},n.props),O));if(x){if(!(l>=0)){var _,j=(null!==(_=o.getItemByXY(o.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=yT(yT(yT({},n.props),O),{},{activeIndex:M});return[xt(A,k),null,null]}var C,E;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());C=Za(d,T,s),E=h&&v&&Za(v,T,s)}else C=null==d?void 0:d[l],E=h&&v&&v[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[xt(t,yT(yT(yT({},n.props),O),{},{activeIndex:D})),null,null]}if(!ga(C))return[S].concat(pT(o.renderActivePoints({item:n,activePoint:C,basePoint:E,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),gT(o,"renderCustomized",(function(t,e,r){return xt(t,yT(yT({key:"recharts-customized-".concat(r)},o.props),o.state))})),gT(o,"renderMap",{CartesianGrid:{handler:OT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:OT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:OT},YAxis:{handler:OT},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ha("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=sv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fT(t,e)}(r,jt),cT(r,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=pc(e,ov);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=jT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=yT(yT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){gc([pc(t.children,ov)],[pc(this.props.children,ov)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=pc(this.props.children,ov);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap,f=this.getTooltipEventType(),p=PT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&l&&s){var d=Va(l).scale,h=Va(s).scale,v=d&&d.invert?d.invert(o.chartX):null,y=h&&h.invert?h.invert(o.chartY):null;return yT(yT({},o),{},{xValue:v,yValue:y},p)}return p?yT(yT({},o),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Va(u);return vS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=pc(t,ov),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),yT(yT({},tc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){FE.on(HE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){FE.removeListener(HE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===cc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return st.createElement("defs",null,st.createElement("clipPath",{id:t},st.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=oT(e,2),n=r[0],i=r[1];return yT(yT({},t),{},gT({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=oT(e,2),n=r[0],i=r[1];return yT(yT({},t),{},gT({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?yT(yT({},u.type.defaultProps),u.props):u.props,s=cc(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return CP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return vS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(jA(a,n)||PA(a,n)||AA(a,n)){var d=EA({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:yT(yT({},a),{},{childIndex:h}),payload:AA(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!dc(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=aT(n,rT),d=yc(p,!1);if(l)return st.createElement(wk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement(Sc,iT({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),bc(i,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return st.createElement(wk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement("div",iT({className:zn("recharts-wrapper",o),style:yT({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),st.createElement(Sc,iT({},d,{width:a,height:c,title:s,desc:f,style:wT}),this.renderClipPath(),bc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();gT(d,"displayName",e),gT(d,"defaultProps",yT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),gT(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=kT(t);return yT(yT(yT({},d),{},{updateId:0},p(yT(yT({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Ya(l,e.prevMargin)){var h=kT(t),v={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=yT(yT({},PT(e,n,c)),{},{updateId:e.updateId+1}),g=yT(yT(yT({},h),v),y);return yT(yT(yT({},g),p(yT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!gc(i,e.prevChildren)){var m,b,w,x,O=pc(i,nM),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,_=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,j=S!==s||_!==f,P=!ga(n)&&!j?e.updateId:e.updateId+1;return yT(yT({updateId:P},p(yT(yT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),gT(d,"renderActiveDot",(function(t,e,r){var n;return n=ft(t)?xt(t,e):xa(t)?t(e):st.createElement(IP,e),st.createElement(Uc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.createElement(d,iT({},t,{ref:e}))}));return h.displayName=d.displayName,h},IT=DT({chartName:"LineChart",GraphicalChild:KC,axisComponents:[{axisType:"xAxis",AxisComp:SE},{axisType:"yAxis",AxisComp:IE}],formatAxisMap:GM}),NT=DT({chartName:"AreaChart",GraphicalChild:pE,axisComponents:[{axisType:"xAxis",AxisComp:SE},{axisType:"yAxis",AxisComp:IE}],formatAxisMap:GM});const RT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const u=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:u,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:qr.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:o}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(o.value||0):o.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:qr.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:qr.coolElegance(),strokeWidth:"2"})]}):e(r,{})},LT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Fr({data:r,dataKey:n}),d=Ln(),h=Ln(),v=s?Wr({arr:r||[],n:s}):r;let y,g;v?.length?(g=p?qr.mint():qr.coolElegance(),y=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=qr.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:v?.length?"crosshair":"default",...f};return e(gv,{width:i,minHeight:o,id:d,children:t(NT,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(IE,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(pE,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>RT({labelFormatter:l,formatter:u,...t}),dot:!1}),v?.length&&e(ov,{cursor:!1,content:()=>null})]})})},BT=({isCloseable:t,onClick:r})=>{const n=l({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:qr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},zT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:qr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),$T=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":qr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),FT=({children:t,...r})=>e(v,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:qr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),HT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=gt(0);return n.length>=1&&e(FT,{children:t(y,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(y,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Lt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},UT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ft,{...i}):r?e(ye,{...i}):null},VT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...v}=r,g=l?l(u):void 0;return t(m,{as:y,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(y,{onClick:h,w:"full",alignItems:"center",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(UT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...v}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(y,{w:"full",children:s&&e(x,{size:n,children:s})})]})},WT=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(h,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${i}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${i}.300 !important`}},fontSize:"12px",...o,children:n})})),ZT=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[u,l]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{document.body.classList.contains("show-outlines")&&l(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[o]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(WT,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),d(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),d(!0)}},isDisabled:!n,...h,children:[p?"Hide":"Show"," React Query console"]}),t(WT,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...h,_after:i?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[i?"Disable":"Enable"," refetch intervals"]}),e(WT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(WT,{onClick:()=>{l(!u),document.body.classList.toggle("show-outlines")},...h,children:[u?"Hide":"Show"," outlines"]}),t(WT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},qT=({data:r,heading:n,uiColor:i,buttons:o})=>t(y,{flexDir:"column",children:[t(y,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(y,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:o})]}),0===r.length&&e(p,{w:"full",textAlign:"center",children:"No data"}),e(j,{columns:2,gap:1,children:r.map((r=>t(Pt,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),YT=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:u,onClose:l}=P(),[s,f]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?l():u())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,l,u]),bt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose:l,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(C,{}),e(E,{children:e(y,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(y,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:l})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:l,isOpen:c,hideButton:s,onOpen:u})]})},XT=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,authBypassEnabled:u})=>{const l=!i||c||u,[d,v]=gt(!1);return bt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&v(!0)}),[]),e(s,{children:!n&&t(D,{position:"fixed",top:"4",right:"4",zIndex:"1000",bgColor:"blackAlpha.800",borderRadius:"md",transition:"background-color 0.25s",className:"dev-console",_hover:{bgColor:"blackAlpha.900"},children:[l&&e(D,{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1"}),e(f,{label:t(y,{flexDir:"column",gap:"0.5",padding:"1",fontFamily:"mono",fontSize:"12px",children:[u&&e(p,{children:"• Auth bypass enabled"}),c&&e(p,{children:"• System override applied"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!l&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(h,{"aria-label":"Open",size:"sm",onClick:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:d?"☆":"⚙"})})]})})},KT=({uiColor:r})=>t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Links"}),t(I,{listStyleType:"disc",listStylePosition:"inside",children:[e(N,{children:e(R,{href:"https://api.cryptofi-dev.com/v2/docs",target:"api-docs",textTransform:"uppercase",children:"CWS API Documentation"})}),e(N,{children:e(R,{href:"https://cryptofi-core-ui.vercel.app/?path=/docs/intro--docs",target:"storybook",textTransform:"uppercase",children:"Core UI Storybook"})})]})]}),GT=({enableRefetch:t,status:r})=>{let n="inherit";return!1===t&&r?n="gray.500":r||(n="red.600"),e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:n,fontFamily:"body",children:r?"✔":"✘"})})})},JT=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var QT=function(){return QT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},QT.apply(this,arguments)};function tD(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function eD(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var rD=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},nD={k:1e3,m:1e6,b:1e9},iD=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,v=void 0===h?"":h,y=t.transformRawValue,g=(void 0===y?function(t){return t}:y)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(rD(v),")")).test(g),w=RegExp("(\\d+)-?".concat(rD(v))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(rD(e),"g");return t.replace(r,"")}(v?x?g.replace(x,"").concat(O):g.replace(v,""):g,n),_=function(t,e){var r=rD(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,eD([n,o],m,!0)),j=_;if(!d){if(m.some((function(t){return t===_.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(rD(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=nD[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(_,o);P&&(j=String(P))}var A=b&&f?"-":"";if(o&&j.includes(o)){var M=_.split(o),k=M[0],C=M[1],E=l&&C?C.slice(0,l):C,T=c?"".concat(o).concat(E):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},oD=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(rD(n)).concat(rD(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},aD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(rD(a),"?"):"","\\d")).test(e),s="."!==r?cD(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,d=f.currency,h=tD(f,["locale","currency"]),v=QT(QT({},h),{minimumFractionDigits:i||0,maximumFractionDigits:20}),y=(n?new Intl.NumberFormat(p,QT(QT({},v),d&&{style:"currency",currency:d})):new Intl.NumberFormat(void 0,v)).formatToParts(Number(s)),g=uD(y,t),m=oD(g,QT({},t)),b=e.slice(-1)===r?r:"",w=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&w&&r&&(g=g.includes(r)?g.replace(RegExp("(\\d+)(".concat(rD(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!u?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),u&&b?"".concat(g).concat(b).concat(u):m&&b?g.replace(m,"".concat(b).concat(m)):m&&u?g.replace(m,"".concat(b).concat(u)):[g,b,u].join("")},cD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(rD(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},uD=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?eD(eD([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:eD(eD([],t,!0),[l],!1):"group"===u?c?t:eD(eD([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:eD(eD([],t,!0),[void 0!==i?i:l],!1):eD(eD([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},lD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},sD=function(t){return RegExp(/\d/,"gi").test(t)},fD=ht((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,v=t.value,y=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,_=t.min,j=t.max,P=t.disableGroupSeparators,A=void 0!==P&&P,M=t.disableAbbreviations,k=void 0!==M&&M,C=t.decimalSeparator,E=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,R=t.onKeyUp,L=t.transformRawValue,B=t.formatValueOnBlur,z=void 0===B||B,$=tD(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&sD(C))throw new Error("decimalSeparator cannot be a number");if(E&&sD(E))throw new Error("groupSeparator cannot be a number");var F=wt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=tD(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,QT(QT({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?QT(QT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?QT(QT({},t),{groupSeparator:e.value}):"decimal"===e.type?QT(QT({},t),{decimalSeparator:e.value}):t}),lD)}(O)}),[O]),H=C||F.decimalSeparator||"",U=E||F.groupSeparator||"";if(H&&U&&H===U&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:H,groupSeparator:U,disableGroupSeparators:A,intlConfig:O,prefix:w||F.prefix,suffix:x},W={decimalSeparator:H,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||F.prefix,transformRawValue:L},Z=gt((function(){return null!=f?aD(QT(QT({},V),{decimalScale:b,value:String(f)})):null!=v?aD(QT(QT({},V),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],X=gt(!1),K=X[0],G=X[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],it=gt(null),ot=it[0],at=it[1],ct=vt(null);yt(e,(function(){return ct.current}));var ut=function(t,e){G(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=iD(QT({value:n},W));if(!(h&&o.replace(/-/g,"").length>h)){if(""===o||"-"===o||o===H)return y&&y(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=H?o.replace(H,"."):o,u=parseFloat(a),l=aD(QT({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(l),y)y(o,c,{float:u,formatted:l,value:o})}};bt((function(){null==v&&null==f&&Y("")}),[f,v]),bt((function(){K&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,K,rt]);var lt=QT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ut(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=iD(QT({value:e},W));if("-"===r||r===H||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,H,g),i=function(t,e,r){if(void 0===r||""===e||void 0===e||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,H,void 0!==b?b:g),o=H?i.replace(H,"."):i,a=parseFloat(o),u=aD(QT(QT({},V),{value:i}));y&&z&&y(i,c,{float:a,formatted:u,value:i}),Y(u),I&&I(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(at(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),tt(q.length);var r=null!=v?String(v):void 0,n=H&&r?r.replace(H,"."):r,i=parseFloat(null!=n?n:iD(QT({value:q},W)))||0,a="ArrowUp"===e?i+S:i-S;if(void 0!==_&&a<Number(_)||!o&&a<0)return;if(void 0!==j&&a>Number(j))return;var c=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ut(String(c?a.toFixed(c):a).replace(".",H))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=oD(q,{groupSeparator:U,decimalSeparator:H});if(n&&r&&r>q.length-n.length&&ct.current){var i=q.length-n.length;ct.current.setSelectionRange(i,i)}}R&&R(t)},placeholder:m,disabled:d,value:null==v||"-"===q||H&&q===H?q:aD(QT(QT({},V),{decimalScale:K?void 0:b,value:String(v)})),ref:ct},$);if(l){var ft=l;return st.createElement(ft,QT({},lt))}return st.createElement("input",QT({},lt))}));fD.displayName="CurrencyInput";const pD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:v,rightAddon:y,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Hr(i),j=f?f(l):void 0,P="currency"===w?{as:fD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:o,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:i,children:s}),t(L,{size:i,children:[h&&e(B,{children:h}),v&&e(z,{w:"auto",ml:"1em",children:v}),e($,{size:i,spellCheck:u,paddingLeft:v&&"2.5em",paddingRight:g&&"2.5em",type:"currency"===w?"text":w,...j,...P,...S,ref:n||j?.ref}),g&&e(F,{w:"auto",mr:"1em",children:g}),y&&e(H,{children:y})]}),p&&e(x,{size:i,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var dD=t=>null==t;var hD=t=>!dD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),vD=t=>{const e=t.constructor&&t.constructor.prototype;return hD(e)&&e.hasOwnProperty("isPrototypeOf")},yD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function gD(t){let e;const r=Array.isArray(t),n="undefined"!=typeof FileList&&t instanceof FileList;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(yD&&(t instanceof Blob||n)||!r&&!hD(t))return t;if(e=r?[]:{},r||vD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=gD(t[r]));else e=t}return e}var mD=t=>Array.isArray(t)?t.filter(Boolean):[],bD=t=>void 0===t,wD=(t,e,r)=>{if(!e||!hD(t))return r;const n=mD(e.split(/[,[\].]+?/)).reduce(((t,e)=>dD(t)?t:t[e]),t);return bD(n)||n===t?bD(t[e])?r:t[e]:n},xD=t=>"boolean"==typeof t,OD=t=>/^\w*$/.test(t),SD=t=>mD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),_D=(t,e,r)=>{let n=-1;const i=OD(e)?[e]:SD(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=hD(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}};const jD="onBlur",PD="onChange",AD="onSubmit",MD="onTouched",kD="all",CD="max",ED="min",TD="maxLength",DD="minLength",ID="pattern",ND="required",RD="validate",LD=st.createContext(null);var BD=t=>"string"==typeof t,zD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},$D=t=>Array.isArray(t)?t:[t],FD=t=>hD(t)&&!Object.keys(t).length;function HD(t,e){const r=Array.isArray(e)?e:OD(e)?[e]:SD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=bD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(hD(n)&&FD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!bD(t[e]))return!1;return!0}(n))&&HD(t,r.slice(0,-1)),t}var UD=t=>t instanceof RegExp,VD=t=>({isOnSubmit:!t||t===AD,isOnBlur:t===jD,isOnChange:t===PD,isOnAll:t===kD,isOnTouch:t===MD});const WD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=wD(t,r);if(n){const{_f:t,...i}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r))return!0;if(t.ref&&e(t.ref,t.name))return!0;if(WD(i,e))break}else if(hD(i)&&WD(i,e))break}}};var ZD=(t,e,r)=>{const n=$D(wD(t,r));return _D(n,"root",e[r]),_D(t,r,n),t},qD=t=>BD(t);function YD(t,e,r="validate"){if(qD(t)||Array.isArray(t)&&t.every(qD)||xD(t)&&!t)return{type:r,message:qD(t)?t:"",ref:e}}var XD=t=>hD(t)&&!UD(t)?t:{value:t,message:""},KD=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:u,maxLength:l,minLength:s,min:f,max:p,pattern:d,validate:h,name:v,valueAsNumber:y,mount:g}=t._f,m=wD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(xD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(y||(t=>"file"===t.type)(a))&&bD(a.value)&&bD(m)||(t=>{if(!yD)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(a)&&""===a.value||""===m||Array.isArray(m)&&!m.length,S=zD.bind(null,v,n,x),_=(t,e,r,n=TD,i=DD)=>{const o=t?e:r;x[v]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=qD(u)?{value:!!u,message:u}:XD(u);if(t&&(x[v]={type:ND,message:e,ref:b,...S(ND,e)},!n))return w(e),x}if(!(O||dD(f)&&dD(p))){let t,e;const r=XD(p),i=XD(f);if(dD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,u="week"==a.type;BD(r.value)&&m&&(t=c?o(m)>o(r.value):u?m>r.value:n>new Date(r.value)),BD(i.value)&&m&&(e=c?o(m)<o(i.value):u?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);dD(r.value)||(t=n>r.value),dD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,CD,ED),!n))return w(x[v].message),x}if((l||s)&&!O&&(BD(m)||Array.isArray(m))){const t=XD(l),e=XD(s),r=!dD(t.value)&&m.length>+t.value,i=!dD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[v].message),x}if(d&&!O&&BD(m)){const{value:t,message:e}=XD(d);if(UD(t)&&!m.match(t)&&(x[v]={type:ID,message:e,ref:a,...S(ID,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=YD(await h(m,r),b);if(t&&(x[v]={...t,...S(RD,t.message)},!n))return w(t.message),x}else if(hD(h)){let t={};for(const e in h){if(!FD(t)&&!n)break;const i=YD(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!FD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},GD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},JD=(t,e,r={})=>r.shouldFocus||bD(r.shouldFocus)?r.focusName||`${t}.${bD(r.focusIndex)?e:r.focusIndex}.`:"",QD=(t,e)=>[...t,...$D(e)],tI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function eI(t,e,r){return[...t.slice(0,e),...$D(r),...t.slice(e)]}var rI=(t,e,r)=>Array.isArray(t)?(bD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],nI=(t,e)=>[...$D(e),...$D(t)];var iI=(t,e)=>bD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return mD(n).length?n:[]}(t,$D(e).sort(((t,e)=>t-e))),oI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},aI=(t,e,r)=>(t[e]=r,t);function cI(t){const e=st.useContext(LD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,u]=st.useState(r._getFieldArray(n)),l=st.useRef(r._getFieldArray(n).map(GD)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),st.useEffect((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=wD(t,f.current);Array.isArray(e)&&(u(e),l.current=e.map(GD))}}}).unsubscribe),[r]);const d=st.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return st.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!VD(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!VD(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=wD(t.errors,n),i=wD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?_D(r._formState.errors,n,e):HD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=wD(r._fields,n);!t||!t._f||VD(r._options.reValidateMode).isOnSubmit&&VD(r._options.mode).isOnSubmit||KD(t,r._names.disabled,r._formValues,r._options.criteriaMode===kD,r._options.shouldUseNativeValidation).then((t=>!FD(t)&&r._subjects.state.next({errors:ZD(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:gD(r._formValues)}),r._names.focus&&WD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._setValid(),p.current=!1}),[c,n,r]),st.useEffect((()=>(!wD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=wD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);oI(i,t,e),oI(l.current,t,e),d(i),u(i),r._setFieldArray(n,i,oI,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);rI(i,t,e),rI(l.current,t,e),d(i),u(i),r._setFieldArray(n,i,rI,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const i=$D(gD(t)),o=nI(r._getFieldArray(n),i);r._names.focus=JD(n,0,e),l.current=nI(l.current,i.map(GD)),d(o),u(o),r._setFieldArray(n,o,nI,{argA:tI(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const i=$D(gD(t)),o=QD(r._getFieldArray(n),i);r._names.focus=JD(n,o.length-1,e),l.current=QD(l.current,i.map(GD)),d(o),u(o),r._setFieldArray(n,o,QD,{argA:tI(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=iI(r._getFieldArray(n),t);l.current=iI(l.current,t),d(e),u(e),!Array.isArray(wD(r._fields,n))&&_D(r._fields,n,void 0),r._setFieldArray(n,e,iI,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,i)=>{const o=$D(gD(e)),a=eI(r._getFieldArray(n),t,o);r._names.focus=JD(n,t,i),l.current=eI(l.current,t,o.map(GD)),d(a),u(a),r._setFieldArray(n,a,eI,{argA:t,argB:tI(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const i=gD(e),o=aI(r._getFieldArray(n),t,i);l.current=[...o].map(((e,r)=>e&&r!==t?l.current[r]:GD())),d(o),u([...o]),r._setFieldArray(n,o,aI,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=$D(gD(t));l.current=e.map(GD),d([...e]),u([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[i]:l.current[e]||GD()})))),[c,i])}}const uI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=cI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[u.map(((n,o)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(pD,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},lI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Fr({data:r,dataKey:n}),d=Ln(),h=s?Wr({arr:r||[],n:s}):r;let v,y;h?.length?(y=p?qr.mint():qr.heroicRed(),v=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=qr.coolElegance(),v=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(gv,{width:i,minHeight:o,id:d,children:t(IT,{data:v,style:g,children:[e(IE,{domain:["dataMin","dataMax"],hide:!0}),e(KC,{isAnimationActive:c,type:a,dataKey:n,stroke:y,strokeWidth:"2",activeDot:t=>RT({labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(ov,{cursor:!1,content:()=>null})]})})},sI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:Kr},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!Ur(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:i}),e(Y,{isDisabled:l}),e(X,{...d,children:a}),o&&e(K,{borderTop:"solid 1px",borderColor:qr.coolElegance(),justifyContent:"flex-start",children:o})]})]})},fI=t=>{const{isActive:r,children:n,href:i,...o}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${qr.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&qr.coolElegance(),textDecoration:"none"},...o,children:n},i)};var pI,dI={exports:{}};var hI,vI=(pI||(pI=1,hI=dI,function(t,e){hI.exports=e(st)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var c=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 c.name="Invariant Violation",c}}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:o,resetWarningCache:i};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.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.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})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),o=n.n(r);function a(){return a=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},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,i=t.page,o=t.selected,c=t.activeClassName,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,v=t.ariaLabel||"Page "+i+(p?" "+p:""),y=null;return o&&(y="page",v=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":v,"aria-current":y,onKeyPress:s},l(s)),d(i)))};c.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const u=c;function l(){return l=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},l.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,i=t.breakClassName,o=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,u=i||"break";return e().createElement("li",{className:u},e().createElement("a",l({className:o,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(){return h=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},h.apply(this,arguments)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=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&&v(t,e)}(c,t);var r,n,i,o,a=(i=c,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=g(i);if(o){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),m(y(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),m(y(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),m(y(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),m(y(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(y(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(y(r),"handleClick",(function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,c=i.isNext,u=void 0!==c&&c,l=i.isBreak,s=void 0!==l&&l,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,v=n;if(h){var y=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===y)return;Number.isInteger(y)&&(v=y)}void 0!==v&&r.handlePageChange(v)})),m(y(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(y(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(y(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(y(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,i=n.nextPageRel,o=n.prevPageRel,a=n.selectedPageRel;return e-1===t?o:e===t?a:e+1===t?i:void 0})),m(y(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var d=0;d<o;d++)t.push(r.getPageElement(d));else{var h=i/2,v=i-h;p>o-i/2?h=i-(v=o-p):p<i/2&&(v=i-(h=p));var y,g,m=function(t){return r.getPageElement(t)},b=[];for(y=0;y<o;y++){var w=y+1;if(w<=a)b.push({type:"page",index:y,display:m(y)});else if(w>o-a)b.push({type:"page",index:y,display:m(y)});else if(y>=p-h&&y<=p+(0===p&&i>1?v-1:v))b.push({type:"page",index:y,display:m(y)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=y<p?s.backward:s.forward;g=e().createElement(f,{key:y,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,y),getEventListener:r.getEventListener}),b.push({type:"break",index:y,display:g})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:m(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,i=t.pageCount,o=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(i)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(i,"). Did you forget a Math.ceil()?")),void 0!==e&&e>i-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(i-1,").")),void 0!==o&&o>i-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(o," > ").concat(i-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,i=e.hrefAllControls;if(r)return i||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,i=n.pageClassName,o=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,i=r.disabledLinkClassName,o=r.pageCount,a=r.className,c=r.containerClassName,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,v=r.nextLabel,y=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===o-1,S="".concat(p(l)).concat(x?" ".concat(p(n)):""),_="".concat(p(y)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(i)):""),P="".concat(p(g)).concat(O?" ".concat(p(i)):""),A=x?"true":"false",M=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",h({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",h({className:P,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":M,"aria-label":m,rel:b},this.getEventListener(this.handleNextPage)),v)))}}])&&function(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)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);m(b,"propTypes",{pageCount:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().string}),m(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),i})()))),dI.exports);const yI=n(br(vI)),gI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(y,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(yI,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:i,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:o,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:qr.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},mI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=gt([]),[l,s]=gt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},bI=({children:t,isEnabled:r=!0,...n})=>{const i=r?At`
|
|
31
|
+
*/function N_(){if(x_)return w_;x_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return w_=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},w_}function R_(){if(S_)return O_;S_=1;return O_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function L_(){return j_?__:(j_=1,__=Function.call.bind(Object.prototype.hasOwnProperty))}function B_(){if(A_)return P_;A_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=R_(),r={},n=L_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(n(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},P_=i}function z_(){if(k_)return M_;k_=1;var t=I_(),e=N_(),r=R_(),n=L_(),i=B_(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),M_=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(a),arrayOf:function(t){return v((function(e,n,i,o,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:v((function(t,e,r,n,i){var o=t[e];return c(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:v((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return v((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new h("Invalid "+i+" `"+o+"` of type `"+(((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:v((function(t,e,r,n,i){return m(t[e])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return v((function(e,i,o,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return v((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return v((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return v((function(e,n,i,o,a){var c=e[n],u=b(c);if("object"!==u)return new h("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return v((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var v=d(l,p,a,c,u+"."+p,r);if(v)return v}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function v(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var v=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 v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=l+":"+c;!e[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[y]=!0,n++)}}return null==a[c]?i?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return v((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new h("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},M_}function $_(){if(E_)return C_;E_=1;var t=R_();function e(){}function r(){}return r.resetWarningCache=e,C_=function(){function n(e,r,n,i,o,a){if(a!==t){var c=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 c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}function F_(){if(T_)return v_.exports;if(T_=1,"production"!==process.env.NODE_ENV){var t=I_();v_.exports=z_()(t.isElement,true)}else v_.exports=$_()();return v_.exports}var H_=br(F_()),U_=Object.getOwnPropertyNames,V_=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty;function Z_(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function q_(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function Y_(t){return U_(t).concat(V_(t))}var X_=Object.hasOwn||function(t,e){return W_.call(t,e)};function K_(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var G_="_owner",J_=Object.getOwnPropertyDescriptor,Q_=Object.keys;function tj(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function ej(t,e){return K_(t.getTime(),e.getTime())}function rj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,p=f[0],d=f[1],h=i.value,v=h[0],y=h[1];l||o[s]||!(l=r.equals(p,v,c,s,t,e,r)&&r.equals(d,y,p,v,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function nj(t,e,r){var n,i=Q_(t),o=i.length;if(Q_(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===G_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!X_(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function ij(t,e,r){var n,i,o,a=Y_(t),c=a.length;if(Y_(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===G_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!X_(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=J_(t,n),o=J_(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function oj(t,e){return K_(t.valueOf(),e.valueOf())}function aj(t,e){return t.source===e.source&&t.flags===e.flags}function cj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function uj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var lj="[object Arguments]",sj="[object Boolean]",fj="[object Date]",pj="[object Map]",dj="[object Number]",hj="[object Object]",vj="[object RegExp]",yj="[object Set]",gj="[object String]",mj=Array.isArray,bj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,wj=Object.assign,xj=Object.prototype.toString.call.bind(Object.prototype.toString);var Oj=Sj();function Sj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?ij:tj,areDatesEqual:ej,areMapsEqual:n?Z_(rj,ij):rj,areObjectsEqual:n?ij:nj,arePrimitiveWrappersEqual:oj,areRegExpsEqual:aj,areSetsEqual:n?Z_(cj,ij):cj,areTypedArraysEqual:n?ij:uj};if(r&&(i=wj({},i,r(i))),e){var o=q_(i.areArraysEqual),a=q_(i.areMapsEqual),c=q_(i.areObjectsEqual),u=q_(i.areSetsEqual);i=wj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(mj(t))return e(t,l,s);if(null!=bj&&bj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=xj(t);return p===fj?r(t,l,s):p===vj?a(t,l,s):p===pj?n(t,l,s):p===yj?c(t,l,s):p===hj?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):p===lj?i(t,l,s):(p===sj||p===dj||p===gj)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:c})}function _j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function jj(t){return jj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jj(t)}function Pj(t){return function(t){if(Array.isArray(t))return 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)return;if("string"==typeof t)return Aj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Aj(t,e)}(t)||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 Aj(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 Mj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Pj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void _j(r.bind(null,a),o):(r(o),void _j(r.bind(null,a)))}"object"===jj(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function kj(t){return kj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kj(t)}function Cj(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 Ej(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cj(Object(r),!0).forEach((function(e){Tj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==kj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==kj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===kj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Sj({strict:!0}),Sj({circular:!0}),Sj({circular:!0,strict:!0}),Sj({createInternalComparator:function(){return K_}}),Sj({strict:!0,createInternalComparator:function(){return K_}}),Sj({circular:!0,createInternalComparator:function(){return K_}}),Sj({circular:!0,createInternalComparator:function(){return K_},strict:!0});var Dj=function(t){return t},Ij=function(t,e){return Object.keys(e).reduce((function(r,n){return Ej(Ej({},r),{},Tj({},n,t(n,e[n])))}),{})},Nj=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Rj="production"!==process.env.NODE_ENV,Lj=function(t,e,r,n,i,o,a,c){if(Rj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Bj(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||$j(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 zj(t){return function(t){if(Array.isArray(t))return Fj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||$j(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 $j(t,e){if(t){if("string"==typeof t)return Fj(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)?Fj(t,e):void 0}}function Fj(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 Hj=1e-4,Uj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Vj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Wj=function(t,e){return function(r){var n=Uj(t,e);return Vj(n,r)}},Zj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Bj(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else Lj(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Lj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Wj(n,o),d=Wj(i,a),h=(s=n,f=o,function(t){var e=Uj(s,f),r=[].concat(zj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Vj(r,t)}),v=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=h(n);if(Math.abs(o-r)<Hj||a<Hj)return d(n);n=(e=n-o/a)>1?1:e<0?0:e}return d(n)};return v.isStepper=!1,v},qj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Zj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Hj&&Math.abs(o)<Hj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Zj(n);Lj(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Lj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Yj(t){return Yj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yj(t)}function Xj(t){return function(t){if(Array.isArray(t))return eP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tP(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 Kj(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 Gj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kj(Object(r),!0).forEach((function(e){Jj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Yj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qj(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||tP(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 tP(t,e){if(t){if("string"==typeof t)return eP(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)?eP(t,e):void 0}}function eP(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 rP=function(t,e,r){return t+(e-t)*r},nP=function(t){return t.from!==t.to},iP=function t(e,r,n){var i=Ij((function(t,r){if(nP(r)){var n=Qj(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return Gj(Gj({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Ij((function(t,e){return nP(e)?Gj(Gj({},e),{},{velocity:rP(e.velocity,i[t].velocity,n),from:rP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},oP=function(t,e,r,n,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Gj(Gj({},r),{},Jj({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Gj(Gj({},r),{},Jj({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=iP(r,f,o),i(Gj(Gj(Gj({},t),e),Ij((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(nP).length&&(p=requestAnimationFrame(d))}:function(o){u||(u=o);var a=(o-u)/n,c=Ij((function(t,e){return rP.apply(void 0,Xj(e).concat([r(a)]))}),s);if(i(Gj(Gj(Gj({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=Ij((function(t,e){return rP.apply(void 0,Xj(e).concat([r(1)]))}),s);i(Gj(Gj(Gj({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function aP(t){return aP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aP(t)}var cP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function uP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function lP(t){return function(t){if(Array.isArray(t))return sP(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)return;if("string"==typeof t)return sP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sP(t,e)}(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 sP(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 fP(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 pP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fP(Object(r),!0).forEach((function(e){dP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dP(t,e,r){return(e=vP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hP(t,e,r){return e&&function(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,vP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vP(t){var e=function(t,e){if("object"!==aP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==aP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===aP(e)?e:String(e)}function yP(t,e){return yP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yP(t,e)}function gP(t){var e=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}}();return function(){var r,n=wP(t);if(e){var i=wP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return mP(this,r)}}function mP(t,e){if(e&&("object"===aP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bP(t)}function bP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wP(t){return wP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wP(t)}var xP=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&&yP(t,e)}(r,dt);var e=gP(r);function r(t,n){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=(i=e.call(this,t,n)).props,a=o.isActive,c=o.attributeName,u=o.from,l=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(bP(i)),i.changeStyle=i.changeStyle.bind(bP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:l}),mP(i);if(s&&s.length)i.state={style:s[0].style};else if(u){if("function"==typeof f)return i.state={style:u},mP(i);i.state={style:c?dP({},c,u):u}}else i.state={style:{}};return i}return hP(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(Oj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?dP({},i,s):s};(i&&u[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(pP(pP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?dP({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=oP(r,n,qj(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(lP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(lP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var d=Nj(p,o,c),h=pP(pP(pP({},f.style),u),{},{transition:d});return[].concat(lP(t),[h,o,s]).filter(Dj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Mj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=n?dP({},n,i):i,p=Nj(Object.keys(f),r,o);s.start([a,e,pP(pP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=uP(t,cP),o=pt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return xt(t,pP(pP({},i),{},{style:pP(pP({},n),a),className:o}))};return 1===o?c(pt.only(e)):st.createElement("div",null,pt.map(e,(function(t){return c(t)})))}}]),r}();function OP(t){return OP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OP(t)}function SP(){return SP=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},SP.apply(this,arguments)}function _P(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return jP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jP(t,e)}(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 jP(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 PP(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 AP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?PP(Object(r),!0).forEach((function(e){MP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function MP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=OP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=OP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}xP.displayName="Animate",xP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},xP.propTypes={from:H_.oneOfType([H_.object,H_.string]),to:H_.oneOfType([H_.object,H_.string]),attributeName:H_.string,duration:H_.number,begin:H_.number,easing:H_.oneOfType([H_.string,H_.func]),steps:H_.arrayOf(H_.shape({duration:H_.number.isRequired,style:H_.object.isRequired,easing:H_.oneOfType([H_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),H_.func]),properties:H_.arrayOf("string"),onAnimationEnd:H_.func})),children:H_.oneOfType([H_.node,H_.func]),isActive:H_.bool,canBegin:H_.bool,onAnimationEnd:H_.func,shouldReAnimate:H_.bool,onAnimationStart:H_.func,onAnimationReStart:H_.func};var kP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},CP=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},EP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},TP=function(t){var e=AP(AP({},EP),t),r=vt(),n=_P(gt(-1),2),i=n[0],o=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=zn("recharts-rectangle",f);return y?st.createElement(xP,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return st.createElement(xP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:v,easing:p},st.createElement("path",SP({},yc(e,!0),{className:g,d:kP(a,c,n,o,s),ref:r})))})):st.createElement("path",SP({},yc(e,!0),{className:g,d:kP(a,c,u,l,s)}))};function DP(){return DP=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},DP.apply(this,arguments)}var IP=function(t){var e=t.cx,r=t.cy,n=t.r,i=zn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?st.createElement("circle",DP({},yc(t,!1),tc(t),{className:i,cx:e,cy:r,r:n})):null};function NP(t){return NP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NP(t)}var RP=["x","y","top","left","width","height","className"];function LP(){return LP=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},LP.apply(this,arguments)}function BP(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 zP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=NP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=NP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==NP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $P(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var FP,HP,UP,VP,WP=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},ZP=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?BP(Object(r),!0).forEach((function(e){zP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:p},$P(t,RP));return za(r)&&za(i)&&za(s)&&za(p)&&za(a)&&za(u)?st.createElement("path",LP({},yc(h,!0),{className:zn("recharts-cross",d),d:WP(r,i,s,p,a,u)})):null};var qP,YP,XP=function(){if(VP)return UP;VP=1;var t=Fo(),e=function(){if(HP)return FP;HP=1;var t=Op()(Object.getPrototypeOf,Object);return FP=t}(),r=Ho(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return UP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var u=a.call(i,"constructor")&&i.constructor;return"function"==typeof u&&u instanceof u&&o.call(u)==c}}(),KP=br(XP);var GP=br(function(){if(YP)return qP;YP=1;var t=Fo(),e=Ho();return qP=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function JP(t){return JP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JP(t)}function QP(){return QP=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},QP.apply(this,arguments)}function tA(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return eA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eA(t,e)}(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 eA(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 rA(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 nA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rA(Object(r),!0).forEach((function(e){iA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=JP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=JP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oA,aA,cA,uA,lA,sA,fA,pA,dA=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},hA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vA=function(t){var e=nA(nA({},hA),t),r=vt(),n=tA(gt(-1),2),i=n[0],o=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var y=zn("recharts-trapezoid",f);return v?st.createElement(xP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return st.createElement(xP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},st.createElement("path",QP({},yc(e,!0),{className:y,d:dA(c,u,n,o,a),ref:r})))})):st.createElement("g",null,st.createElement("path",QP({},yc(e,!0),{className:y,d:dA(a,c,u,l,s)})))},yA=["option","shapeType","propTransformer","activeClassName","isActive"];function gA(t){return gA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gA(t)}function mA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bA(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 wA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bA(Object(r),!0).forEach((function(e){xA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=gA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OA(t,e){return wA(wA({},e),t)}function SA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return st.createElement(TP,r);case"trapezoid":return st.createElement(vA,r);case"sector":return st.createElement(r_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.createElement(sl,r);break;default:return null}}function _A(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?OA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=mA(t,yA);if(ft(r))e=xt(r,wA(wA({},l),function(t){return ft(t)?t.props:t}(r)));else if(xa(r))e=r(l);else if(KP(r)&&!GP(r)){var s=o(r,l);e=st.createElement(SA,{shapeType:n,elementProps:s})}else{var f=l;e=st.createElement(SA,{shapeType:n,elementProps:f})}return u?st.createElement(Uc,{className:c},e):e}function jA(t,e){return null!=e&&"trapezoids"in t.props}function PA(t,e){return null!=e&&"sectors"in t.props}function AA(t,e){return null!=e&&"points"in t.props}function MA(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function kA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function CA(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function EA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return jA(t,e)?r="trapezoids":PA(t,e)?r="sectors":AA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return jA(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:PA(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:AA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=ux(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return jA(t,e)?r=MA:PA(t,e)?r=kA:AA(t,e)&&(r=CA),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function TA(){if(uA)return cA;uA=1;var t=cv(),e=1/0;return cA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function DA(){if(sA)return lA;sA=1;var t=function(){if(aA)return oA;aA=1;var t=Math.ceil,e=Math.max;return oA=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),u=Array(c);c--;)u[o?c:++a]=r,r+=i;return u}}(),e=ah(),r=TA();return lA=function(n){return function(i,o,a){return a&&"number"!=typeof a&&e(i,o,a)&&(o=a=void 0),i=r(i),void 0===o?(o=i,i=0):o=r(o),a=void 0===a?i<o?1:-1:r(a),t(i,o,a,n)}}}var IA=function(){if(pA)return fA;pA=1;var t=DA()();return fA=t}(),NA=br(IA);function RA(t){return RA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RA(t)}function LA(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 BA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LA(Object(r),!0).forEach((function(e){zA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=RA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==RA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $A=["Webkit","Moz","O","ms"];function FA(t){return FA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FA(t)}function HA(){return HA=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},HA.apply(this,arguments)}function UA(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 VA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?UA(Object(r),!0).forEach((function(e){KA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function WA(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,GA(n.key),n)}}function ZA(t,e,r){return e=YA(e),function(t,e){if(e&&("object"===FA(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)}(t,qA()?Reflect.construct(e,r||[],YA(t).constructor):e.apply(t,r))}function qA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qA=function(){return!!t})()}function YA(t){return YA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},YA(t)}function XA(t,e){return XA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},XA(t,e)}function KA(t,e,r){return(e=GA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function GA(t){var e=function(t,e){if("object"!=FA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=FA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==FA(e)?e:e+""}var JA,QA,tM,eM,rM=function(t){return t.changedTouches&&!!t.changedTouches.length},nM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),KA(r=ZA(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),KA(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),KA(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),KA(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),KA(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),KA(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),KA(r,"handleSlideDragStart",(function(t){var e=rM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&XA(t,e)}(e,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=zO(r[t],i,t);return xa(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-i,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=rM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,u+l-s-a):v<0&&(v=Math.max(v,u-a)),h[n]=a+v;var y=this.getIndex(h),g=y.startIndex,m=y.endIndex;this.setState(KA(KA({},n,a+v),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(i>o?g%p==0:m%p==0)||i<o&&m===t||"endX"===n&&(i>o?m%p==0:g%p==0)||i>o&&m===t)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(KA({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return st.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=pt.only(a);return u?st.cloneElement(u,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,v=Math.max(t,this.props.x),y=VA(VA({},yc(this.props,!1)),{},{x:v,y:c,width:u,height:l}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[h])||void 0===i?void 0:i.name);return st.createElement(Uc,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,y))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return st.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return st.createElement(Uc,{className:"recharts-brush-texts"},st.createElement(ey,HA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),st.createElement(ey,HA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,v=l.isTravellerFocused;if(!e||!e.length||!za(i)||!za(o)||!za(a)||!za(c)||a<=0||c<=0)return null;var y,g,m,b,w=zn("recharts-brush",r),x=1===st.Children.count(n),O=(g="none",m=(y="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=$A.reduce((function(t,e){return BA(BA({},t),{},zA({},e+m,g))}),{}))[y]=g,b);return st.createElement(Uc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||v||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return st.isValidElement(t)?st.cloneElement(t,r):xa(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return VA({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Cy().domain(NA(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&WA(r.prototype,n),i&&WA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();KA(nM,"displayName","Brush"),KA(nM,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var iM,oM,aM,cM,uM=function(){if(eM)return tM;eM=1;var t=bs(),e=Lp(),r=function(){if(QA)return JA;QA=1;var t=Jd();return JA=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=Lo(),i=ah();return tM=function(o,a,c){var u=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),u(o,e(a,3))}}(),lM=br(uM),sM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var fM,pM,dM,hM,vM,yM,gM=function(){if(cM)return aM;cM=1;var t=function(){if(oM)return iM;oM=1;var t=nh();return iM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},iM}(),e=Gd(),r=Lp();return aM=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},aM}(),mM=br(gM);var bM=function(){if(yM)return vM;yM=1;var t=(pM||(pM=1,fM=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}),fM),e=function(){if(hM)return dM;hM=1;var t=Jd();return dM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=Lp(),n=Lo(),i=ah();return vM=function(o,a,c){var u=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),u(o,r(a,3))}}(),wM=br(bM),xM=["x","y"];function OM(t){return OM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OM(t)}function SM(){return SM=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},SM.apply(this,arguments)}function _M(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 jM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_M(Object(r),!0).forEach((function(e){PM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=OM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=OM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function MM(t,e){var r=t.x,n=t.y,i=AM(t,xM),o="".concat(r),a=parseInt(o,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),p=parseInt(f,10);return jM(jM(jM(jM(jM({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function kM(t){return st.createElement(_A,SM({shapeType:"rectangle",propTransformer:MM,activeClassName:"recharts-active-bar"},t))}var CM,EM=["value","background"];function TM(t){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TM(t)}function DM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function IM(){return IM=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},IM.apply(this,arguments)}function NM(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 RM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NM(Object(r),!0).forEach((function(e){HM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LM(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,UM(n.key),n)}}function BM(t,e,r){return e=$M(e),function(t,e){if(e&&("object"===TM(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)}(t,zM()?Reflect.construct(e,r||[],$M(t).constructor):e.apply(t,r))}function zM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zM=function(){return!!t})()}function $M(t){return $M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$M(t)}function FM(t,e){return FM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FM(t,e)}function HM(t,e,r){return(e=UM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UM(t){var e=function(t,e){if("object"!=TM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=TM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==TM(e)?e:e+""}var VM=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return HM(t=BM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),HM(t,"id",Ha("recharts-bar-")),HM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),HM(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FM(t,e)}(e,dt),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=yc(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=RM(RM(RM({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.createElement(Uc,IM({className:"recharts-bar-rectangle"},ec(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),st.createElement(kM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return st.createElement(xP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=Wa(r.x,t.x),a=Wa(r.y,t.y),c=Wa(r.width,t.width),u=Wa(r.height,t.height);return RM(RM({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=Wa(0,t.height)(i);return RM(RM({},t),{},{y:t.y+t.height-s,height:s})}var f=Wa(0,t.width)(i);return RM(RM({},t),{},{width:f})}));return st.createElement(Uc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&ux(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=yc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=DM(e,EM);if(!a)return null;var u=RM(RM(RM(RM(RM({},c),{},{fill:"#eee"},a),o),ec(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return st.createElement(kM,IM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=fc(r.children,AO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:zO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Uc,s,c.map((function(t){return st.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=zn("recharts-bar",n),v=i&&i.allowDataOverflow,y=o&&o.allowDataOverflow,g=v||y,m=ga(p)?this.id:p;return st.createElement(Uc,{className:h},v||y?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.createElement("rect",{x:v?a:a-u/2,y:y?c:c-l/2,width:v?u:2*u,height:y?l:2*l}))):null,st.createElement(Uc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&qS.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&LM(r.prototype,n),i&&LM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function WM(t){return WM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WM(t)}function ZM(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,KM(n.key),n)}}function qM(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 YM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qM(Object(r),!0).forEach((function(e){XM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function XM(t,e,r){return(e=KM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KM(t){var e=function(t,e){if("object"!=WM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WM(e)?e:e+""}CM=VM,HM(VM,"displayName","Bar"),HM(VM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Nh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),HM(VM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!d)return null;var h=e.layout,v=r.type.defaultProps,y=void 0!==v?RM(RM({},v),r.props):r.props,g=y.dataKey,m=y.children,b=y.minPointSize,w="horizontal"===h?a:o,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:w}),S=fc(m,mv),_=f.map((function(t,e){var n,f,p,v,y,m;l?n=function(t,e){if(!e||2!==e.length||!za(e[0])||!za(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!za(t[0])||t[0]<r)&&(i[0]=r),(!za(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],x):(n=zO(t,g),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?dO(0,"minPointSize callback function received a value with type of ".concat(OM(r),". Currently only numbers are supported.")):dO()),e)}}(b,CM.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=JO({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,v=d.size;var M=P-A;if(y=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:v,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var k=La(y||w)*(Math.abs(w)-Math.abs(y));p-=k,y+=k}}else{var C=[o.scale(n[0]),o.scale(n[1])],E=C[0],T=C[1];if(f=E,p=JO({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:t,index:e}),v=T-E,y=d.size,m={x:o.x,y:p,width:o.width,height:y},Math.abs(w)>0&&Math.abs(v)<Math.abs(w))v+=La(v||w)*(Math.abs(w)-Math.abs(v))}return RM(RM(RM({},t),{},{x:f,y:p,width:v,height:y,value:l?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[oS(r,t)],tooltipPosition:{x:f+v/2,y:p+y/2}})}));return RM({data:_,layout:h},p)}));var GM=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!pc(u,VM);return l.reduce((function(o,a){var u,l,p,d,h,v=e[a],y=v.orientation,g=v.domain,m=v.padding,b=void 0===m?{}:m,w=v.mirror,x=v.reversed,O="".concat(y).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=g[1]-g[0],_=1/0,j=v.categoricalDomain.sort(qa);if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(u=P*A/2),"no-gap"===v.padding){var M=Ua(t.barCategoryGap,P*A),k=P*A/2;u=k-M-(k-M)/A*M}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:v.range,x&&(l=[l[1],l[0]]);var C=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:My(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Jg(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Cy(),realScaleType:"point"}:"category"===i?{scale:My(),realScaleType:"band"}:{scale:Jg(),realScaleType:"linear"};if(wa(n)){var c="scale".concat(Kc(n));return{scale:(Uw[c]||Cy)(),realScaleType:Uw[c]?c:"point"}}return xa(n)?{scale:n}:{scale:Cy(),realScaleType:"point"}}(v,i,f),E=C.scale,T=C.realScaleType;E.domain(g).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-YO,o=Math.max(n[0],n[1])+YO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(E);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=lO(u,i,a);return t.domain([rx(l),Kw(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:sO(s,i,a)}}return null}(E,YM(YM({},v),{},{realScaleType:T}));"xAxis"===n?(h="top"===y&&!w||"bottom"===y&&w,p=r.left,d=s[O]-h*v.height):"yAxis"===n&&(h="left"===y&&!w||"right"===y&&w,p=s[O]-h*v.width,d=r.top);var I=YM(YM(YM({},v),D),{},{realScaleType:T,x:p,y:d,scale:E,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=nS(I,D),v.hide||"xAxis"!==n?v.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,YM(YM({},o),{},XM({},a,I))}),{})},JM=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},QM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&ZM(e.prototype,r),n&&ZM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();XM(QM,"EPS",1e-4);var tk=function(t){var e=Object.keys(t).reduce((function(e,r){return YM(YM({},e),{},XM({},r,QM.create(t[r])))}),{});return YM(YM({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return mM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return wM(t,(function(t,r){return e[r].isInRange(t)}))}})};var ek,rk,nk,ik,ok,ak,ck,uk,lk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function sk(){if(ak)return ok;ak=1;var t=Bp(),e=Lp(),r=function(){if(ik)return nk;ik=1;var t=TA();return nk=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return ok=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(i,e(o,3),u)},ok}!function(){if(uk)return ck;uk=1;var t=function(){if(rk)return ek;rk=1;var t=Lp(),e=_p(),r=jp();return ek=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var u=t(o,3);i=r(i),o=function(t){return u(c[t],t,c)}}var l=n(i,o,a);return l>-1?c[u?i[l]:l]:void 0}}}(),e=t(sk());ck=e}();var fk=br(ia())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function pk(t){return pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pk(t)}var dk=_t(void 0),hk=_t(void 0),vk=_t(void 0),yk=_t({}),gk=_t(void 0),mk=_t(0),bk=_t(0),wk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=fk(i);return st.createElement(dk.Provider,{value:r},st.createElement(hk.Provider,{value:n},st.createElement(yk.Provider,{value:i},st.createElement(vk.Provider,{value:l},st.createElement(gk.Provider,{value:o},st.createElement(mk.Provider,{value:u},st.createElement(bk.Provider,{value:c},a)))))))};function xk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Ok=function(t){var e=St(dk);null==e&&("production"!==process.env.NODE_ENV?dO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?dO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(pk(t),"]. ").concat(xk(e))):dO()),r},Sk=function(t){var e=St(hk);null==e&&("production"!==process.env.NODE_ENV?dO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):dO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?dO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(pk(t),"]. ").concat(xk(e))):dO()),r},_k=function(){return St(bk)},jk=function(){return St(mk)};function Pk(t){return Pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pk(t)}function Ak(t,e,r){return e&&function(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,Nk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mk(t,e,r){return e=Ck(e),function(t,e){if(e&&("object"===Pk(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)}(t,kk()?Reflect.construct(e,r||[],Ck(t).constructor):e.apply(t,r))}function kk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(kk=function(){return!!t})()}function Ck(t){return Ck=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ck(t)}function Ek(t,e){return Ek=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ek(t,e)}function Tk(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 Dk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tk(Object(r),!0).forEach((function(e){Ik(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ik(t,e,r){return(e=Nk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nk(t){var e=function(t,e){if("object"!=Pk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Pk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Pk(e)?e:e+""}function Rk(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lk(t,e)}(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 Lk(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 Bk(){return Bk=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},Bk.apply(this,arguments)}function zk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=St(gk),s=Ok(i),f=Sk(o),p=St(vk);if(!l||!p)return null;Wc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,p=i.height;if(r){var d=u.y,h=t.y.apply(d,{position:o});if(sM(u,"discard")&&!t.y.isInRange(h))return null;var v=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?v.reverse():v}if(e){var y=u.x,g=t.x.apply(y,{position:o});if(sM(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+p},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:o})}));return sM(u,"discard")&&lM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(tk({x:s.scale,y:f.scale}),$a(e),$a(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=Rk(d,2),v=h[0],y=v.x,g=v.y,m=h[1],b=m.x,w=m.y,x=Dk(Dk({clipPath:sM(t,"hidden")?"url(#".concat(l,")"):void 0},yc(t,!0)),{},{x1:y,y1:g,x2:b,y2:w});return st.createElement(Uc,{className:zn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement("line",Bk({},e,{className:"recharts-reference-line-line"}))}(a,x),CS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return JM({x:e,y:r},{x:n,y:i})}({x1:y,y1:g,x2:b,y2:w})))}var $k=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ek(t,e)}(e,st.Component),Ak(e,[{key:"render",value:function(){return st.createElement(zk,this.props)}}])}();function Fk(){return Fk=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},Fk.apply(this,arguments)}function Hk(t){return Hk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hk(t)}function Uk(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 Vk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uk(Object(r),!0).forEach((function(e){Kk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wk(t,e,r){return e&&function(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,Gk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zk(t,e,r){return e=Yk(e),function(t,e){if(e&&("object"===Hk(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)}(t,qk()?Reflect.construct(e,r||[],Yk(t).constructor):e.apply(t,r))}function qk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qk=function(){return!!t})()}function Yk(t){return Yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yk(t)}function Xk(t,e){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xk(t,e)}function Kk(t,e,r){return(e=Gk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gk(t){var e=function(t,e){if("object"!=Hk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Hk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Hk(e)?e:e+""}Ik($k,"displayName","ReferenceLine"),Ik($k,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Jk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Zk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xk(t,e)}(e,st.Component),Wk(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=$a(r),u=$a(n);if(Wc(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=tk({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return sM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,v=Vk(Vk({clipPath:sM(this.props,"hidden")?"url(#".concat(a,")"):void 0},yc(this.props,!0)),{},{cx:s,cy:f});return st.createElement(Uc,{className:zn("recharts-reference-dot",h)},e.renderDot(d,v),CS.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();function Qk(){return Qk=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},Qk.apply(this,arguments)}function tC(t){return tC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tC(t)}function eC(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 rC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eC(Object(r),!0).forEach((function(e){uC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nC(t,e,r){return e&&function(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,lC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iC(t,e,r){return e=aC(e),function(t,e){if(e&&("object"===tC(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)}(t,oC()?Reflect.construct(e,r||[],aC(t).constructor):e.apply(t,r))}function oC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oC=function(){return!!t})()}function aC(t){return aC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},aC(t)}function cC(t,e){return cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cC(t,e)}function uC(t,e,r){return(e=lC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lC(t){var e=function(t,e){if("object"!=tC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=tC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==tC(e)?e:e+""}Kk(Jk,"displayName","ReferenceDot"),Kk(Jk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Kk(Jk,"renderDot",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement(IP,Fk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var sC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),iC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cC(t,e)}(e,st.Component),nC(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,u=t.clipPathId;Wc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=$a(r),s=$a(n),f=$a(i),p=$a(o),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=tk({x:l.scale,y:s.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!sM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?JM(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var v=sM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return st.createElement(Uc,{className:zn("recharts-reference-area",a)},e.renderRect(d,rC(rC({clipPath:v},yc(this.props,!0)),h)),CS.renderCallByParent(this.props,h))}}])}();function fC(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function pC(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function dC(t){return dC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dC(t)}function hC(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 vC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hC(Object(r),!0).forEach((function(e){yC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=dC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=dC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gC(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(za(u)||Nh)return function(t,e){return fC(t,e+1)}(i,"number"==typeof u&&za(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?Pv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var i=xa(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return lk(n,r)}(Pv(i,{fontSize:e,letterSpacing:r}),h,f):Pv(i,{fontSize:e,letterSpacing:r})[d]},y=i.length>=2?La(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,y,d);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:fC(n,s)};var o,a=l,p=function(){return void 0===o&&(o=r(e,a)),o},d=e.coordinate,h=0===l||pC(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+i),l+=s)};s<=a.length;)if(o=p())return o.v;return[]}(y,g,v,i,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=vC(vC({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),pC(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=vC(vC({},s),{},{isShow:!0}))}for(var d=o?c-1:c,h=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=vC(vC({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=vC(vC({},o),{},{tickCoord:o.coordinate});pC(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=vC(vC({},o),{},{isShow:!0}))},v=0;v<d;v++)h(v);return a}(y,g,v,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=vC(vC({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=vC(vC({},l),{},{tickCoord:l.coordinate});pC(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=vC(vC({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(y,g,v,i,a),p.filter((function(t){return t.isShow})))}uC(sC,"displayName","ReferenceArea"),uC(sC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),uC(sC,"renderRect",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement(TP,Qk({},e,{className:"recharts-reference-area-rect"}))}));var mC=["viewBox"],bC=["viewBox"],wC=["ticks"];function xC(t){return xC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xC(t)}function OC(){return OC=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},OC.apply(this,arguments)}function SC(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 _C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SC(Object(r),!0).forEach((function(e){EC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function PC(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,TC(n.key),n)}}function AC(t,e,r){return e=kC(e),function(t,e){if(e&&("object"===xC(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)}(t,MC()?Reflect.construct(e,r||[],kC(t).constructor):e.apply(t,r))}function MC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(MC=function(){return!!t})()}function kC(t){return kC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kC(t)}function CC(t,e){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CC(t,e)}function EC(t,e,r){return(e=TC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TC(t){var e=function(t,e){if("object"!=xC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=xC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==xC(e)?e:e+""}var DC=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=AC(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CC(t,e)}(e,jt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=jC(t,mC),i=this.props,o=i.viewBox,a=jC(i,bC);return!Ya(r,o)||!Ya(n,a)||!Ya(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,v=c.tickMargin,y=h?-1:1,g=t.tickSize||d,m=za(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=l+ +!h*f)-y*g)-y*v,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!h*s)-y*g)-y*v,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +h*s)+y*g)+y*v,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +h*f)+y*g)+y*v,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=_C(_C(_C({},yc(this.props,!1)),yc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=_C(_C({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=_C(_C({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return st.createElement("line",OC({},u,{className:zn("recharts-cartesian-axis-line",ha(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=gC(_C(_C({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=yc(this.props,!1),v=yc(u,!1),y=_C(_C({},h),{},{fill:"none"},yc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=_C(_C(_C(_C({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},v),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return st.createElement(Uc,OC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},ec(i.props,t,r)),a&&st.createElement("line",OC({},y,o,{className:zn("recharts-cartesian-axis-tick-line",ha(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(xa(l)?l(t.value,r):t.value).concat(s||"")))}));return st.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=jC(c,wC),s=u;return xa(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:st.createElement(Uc,{className:zn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),CS.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return st.isValidElement(t)?st.cloneElement(t,e):xa(t)?t(e):st.createElement(ey,OC({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&PC(r.prototype,n),i&&PC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();EC(DC,"displayName","CartesianAxis"),EC(DC,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var IC=["type","layout","connectNulls","ref"],NC=["key"];function RC(t){return RC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RC(t)}function LC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function BC(){return BC=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},BC.apply(this,arguments)}function zC(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 $C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zC(Object(r),!0).forEach((function(e){YC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function FC(t){return function(t){if(Array.isArray(t))return HC(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)return;if("string"==typeof t)return HC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HC(t,e)}(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 HC(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 UC(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,XC(n.key),n)}}function VC(t,e,r){return e=ZC(e),function(t,e){if(e&&("object"===RC(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)}(t,WC()?Reflect.construct(e,r||[],ZC(t).constructor):e.apply(t,r))}function WC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(WC=function(){return!!t})()}function ZC(t){return ZC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZC(t)}function qC(t,e){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qC(t,e)}function YC(t,e,r){return(e=XC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XC(t){var e=function(t,e){if("object"!=RC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==RC(e)?e:e+""}var KC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return YC(t=VC(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),YC(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),YC(t,"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(FC(i.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(FC(e.repeat(i,a)),FC(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),YC(t,"id",Ha("recharts-line-")),YC(t,"pathRef",(function(e){t.mainCurve=e})),YC(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),YC(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qC(t,e)}(e,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=fc(r.children,AO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:zO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Uc,l,c.map((function(t){return st.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=yc(this.props,!1),l=yc(o,!0),s=a.map((function(t,r){var n=$C($C($C({key:"dot-".concat(r),r:3},u),l),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:c,payload:t.payload,points:a});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Uc,BC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=LC(i,IC),l=$C($C($C({},yc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return st.createElement(h_,BC({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,v=h.prevPoints,y=h.totalLength;return st.createElement(xP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=Wa(n.x,t.x),o=Wa(n.y,t.y);return $C($C({},t),{},{x:i(a),y:o(a)})}if(f){var u=Wa(2*p,t.x),l=Wa(d/2,t.y);return $C($C({},t),{},{x:u(a),y:l(a)})}return $C($C({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=Wa(0,y)(a);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,y,h)}else l=r.generateSimpleStrokeDasharray(y,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!ux(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=zn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=ga(d)?this.id:d,x=null!==(t=yc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(vc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Uc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:l-M/2,y:u-M/2,width:s+M,height:f+M}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(b,w),(v||n)&&this.renderDots(b,A,w),(!p||h)&&qS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(FC(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(FC(n),FC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(xa(t))r=t(e);else{var n=e.key,i=LC(e,NC),o=zn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.createElement(IP,BC({key:n},i,{className:o}))}return r}}],n&&UC(r.prototype,n),i&&UC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();YC(KC,"displayName","Line"),YC(KC,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Nh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),YC(KC,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return $C({points:u.map((function(t,e){var u=zO(t,a);return"horizontal"===s?{x:GO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:ga(u)?null:n.scale(u),value:u,payload:t}:{x:ga(u)?null:r.scale(u),y:GO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var GC,JC=["layout","type","stroke","connectNulls","isRange","ref"],QC=["key"];function tE(t){return tE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tE(t)}function eE(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function rE(){return rE=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},rE.apply(this,arguments)}function nE(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 iE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nE(Object(r),!0).forEach((function(e){sE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oE(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,fE(n.key),n)}}function aE(t,e,r){return e=uE(e),function(t,e){if(e&&("object"===tE(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)}(t,cE()?Reflect.construct(e,r||[],uE(t).constructor):e.apply(t,r))}function cE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(cE=function(){return!!t})()}function uE(t){return uE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},uE(t)}function lE(t,e){return lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lE(t,e)}function sE(t,e,r){return(e=fE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fE(t){var e=function(t,e){if("object"!=tE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=tE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==tE(e)?e:e+""}var pE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return sE(t=aE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),sE(t,"id",Ha("recharts-area-")),sE(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),xa(e)&&e()})),sE(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),xa(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lE(t,e)}(e,dt),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=yc(this.props,!1),f=yc(c,!0),p=u.map((function(t,r){var n=iE(iE(iE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Uc,rE({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),u=Kw(n.map((function(t){return t.y||0})));return za(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Kw(r.map((function(t){return t.y||0}))),u)),za(u)?st.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),u=Kw(n.map((function(t){return t.x||0})));return za(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Kw(r.map((function(t){return t.x||0}))),u)),za(u)?st.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=eE(i,JC);return st.createElement(Uc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(h_,rE({},yc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(h_,rE({},yc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&st.createElement(h_,rE({},yc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return st.createElement(xP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,u=p.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=Wa(n.x,t.x),o=Wa(n.y,t.y);return iE(iE({},t),{},{x:i(a),y:o(a)})}return t}));return c=za(o)&&"number"==typeof o?Wa(d,o)(a):ga(o)||Na(o)?Wa(d,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],i=Wa(n.x,t.x),o=Wa(n.y,t.y);return iE(iE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return st.createElement(Uc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.createElement(Uc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!ux(c,n)||!ux(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=zn("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=ga(d)?this.id:d,x=null!==(t=yc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(vc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Uc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,v?null:this.renderArea(b,w),(n||v)&&this.renderDots(b,A,w),(!p||h)&&qS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&oE(r.prototype,n),i&&oE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function dE(t){return dE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dE(t)}function hE(t,e,r){return e&&function(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,wE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vE(t,e,r){return e=gE(e),function(t,e){if(e&&("object"===dE(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)}(t,yE()?Reflect.construct(e,r||[],gE(t).constructor):e.apply(t,r))}function yE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yE=function(){return!!t})()}function gE(t){return gE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gE(t)}function mE(t,e){return mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mE(t,e)}function bE(t,e,r){return(e=wE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wE(t){var e=function(t,e){if("object"!=dE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=dE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==dE(e)?e:e+""}function xE(){return xE=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},xE.apply(this,arguments)}function OE(t){var e=t.xAxisId,r=_k(),n=jk(),i=Ok(e);return null==i?null:st.createElement(DC,xE({},i,{className:zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return WO(t,!0)}}))}GC=pE,sE(pE,"displayName","Area"),sE(pE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Nh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),sE(pE,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(za(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),sE(pE,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,v=s&&s.length,y=GC.getBaseValue(r,n,i,o),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;v?r=s[f+e]:(r=zO(t,l),Array.isArray(r)?m=!0:r=[y,r]);var n=null==r[1]||v&&null==zO(t,l);return g?{x:GO({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:GO({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=v||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(y):i.scale(y),iE({points:b,baseLine:e,layout:h,isRange:m},d)})),sE(pE,"renderDotItem",(function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(xa(t))r=t(e);else{var n=zn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=eE(e,QC);r=st.createElement(IP,rE({},o,{key:i,className:n}))}return r}));var SE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),vE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mE(t,e)}(e,st.Component),hE(e,[{key:"render",value:function(){return st.createElement(OE,this.props)}}])}();function _E(t){return _E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_E(t)}function jE(t,e,r){return e&&function(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,EE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function PE(t,e,r){return e=ME(e),function(t,e){if(e&&("object"===_E(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)}(t,AE()?Reflect.construct(e,r||[],ME(t).constructor):e.apply(t,r))}function AE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(AE=function(){return!!t})()}function ME(t){return ME=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ME(t)}function kE(t,e){return kE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kE(t,e)}function CE(t,e,r){return(e=EE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function EE(t){var e=function(t,e){if("object"!=_E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=_E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==_E(e)?e:e+""}function TE(){return TE=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},TE.apply(this,arguments)}bE(SE,"displayName","XAxis"),bE(SE,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var DE=function(t){var e=t.yAxisId,r=_k(),n=jk(),i=Sk(e);return null==i?null:st.createElement(DC,TE({},i,{className:zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return WO(t,!0)}}))},IE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),PE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kE(t,e)}(e,st.Component),jE(e,[{key:"render",value:function(){return st.createElement(DE,this.props)}}])}();function NE(t){return function(t){if(Array.isArray(t))return RE(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)return;if("string"==typeof t)return RE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RE(t,e)}(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 RE(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}CE(IE,"displayName","YAxis"),CE(IE,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var LE,BE=function(t,e,r,n,i){var o=fc(t,$k),a=fc(t,Jk),c=[].concat(NE(o),NE(a)),u=fc(t,sC),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&sM(e.props,"extendDomain")&&za(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&sM(e.props,"extendDomain")&&za(e.props[p])&&za(e.props[d])){var n=e.props[p],i=e.props[d];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return za(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},zE={exports:{}};var $E=(LE||(LE=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,i);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(zE)),zE.exports),FE=new(br($E)),HE="recharts.syncMouseEvents";function UE(t){return UE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UE(t)}function VE(t,e,r){return e&&function(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,ZE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function WE(t,e,r){return(e=ZE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZE(t){var e=function(t,e){if("object"!=UE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==UE(e)?e:e+""}var qE=function(){return VE((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),WE(this,"activeIndex",0),WE(this,"coordinateList",[]),WE(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function YE(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[pS(e,r,n,i),pS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function XE(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return YE(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=pS(c,u,l,f),d=pS(c,u,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}function KE(t){return KE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KE(t)}function GE(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 JE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GE(Object(r),!0).forEach((function(e){QE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function QE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=KE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tT(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!h||!a||!c||"ScatterChart"!==d&&"axis"!==o)return null;var v=h_;if("ScatterChart"===d)n=c,v=ZP;else if("BarChart"===d)n=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,l,f),v=TP;else if("radial"===p){var y=YE(c),g=y.cx,m=y.cy,b=y.radius;n={cx:g,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},v=r_}else n={points:XE(p,c,l)},v=h_;var w=JE(JE(JE(JE({stroke:"#ccc",pointerEvents:"none"},l),n),yc(h,!1)),{},{payload:u,payloadIndex:s,className:zn("recharts-tooltip-cursor",h.className)});return ft(h)?xt(h,w):Ot(v,w)}var eT=["item"],rT=["children","className","width","height","style","compact","title","desc"];function nT(t){return nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nT(t)}function iT(){return iT=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},iT.apply(this,arguments)}function oT(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,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||dT(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 aT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function cT(t,e,r){return e&&function(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,mT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uT(t,e,r){return e=sT(e),function(t,e){if(e&&("object"===nT(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)}(t,lT()?Reflect.construct(e,r||[],sT(t).constructor):e.apply(t,r))}function lT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lT=function(){return!!t})()}function sT(t){return sT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sT(t)}function fT(t,e){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fT(t,e)}function pT(t){return function(t){if(Array.isArray(t))return hT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||dT(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 dT(t,e){if(t){if("string"==typeof t)return hT(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)?hT(t,e):void 0}}function hT(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 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 yT(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){gT(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 gT(t,e,r){return(e=mT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mT(t){var e=function(t,e){if("object"!=nT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=nT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nT(e)?e:e+""}var bT={xAxis:["bottom","top"],yAxis:["left","right"]},wT={width:"100%",height:"100%"},xT={x:0,y:0};function OT(t){return t}var ST=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(pT(t),pT(r)):t}),[]);return o.length>0?o:t&&t.length&&za(n)&&za(i)?t.slice(n,i+1):[]};function _T(t){return"number"===t?[0,"auto"]:void 0}var jT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=ST(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=Za(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(pT(i),[oS(c,l)]):i}),[])},PT=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(La(s-l)!==La(f-s)){var d=[];if(La(f-s)===La(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var v=f+c[1]-c[0];d[0]=Math.min(s,(v+s)/2),d[1]=Math.max(s,(v+s)/2)}var y=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>y[0]&&t<=y[1]||t>=d[0]&&t<=d[1]){o=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=jT(t,e,l,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return yT(yT(yT({},n),pS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return yT(yT(yT({},n),pS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return xT}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},AT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=VO(l,i);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?yT(yT({},r.type.defaultProps),r.props):r.props,v=h.type,y=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[o];if(e[O])return e;var S,_,j,P=ST(t.data,{graphicalItems:n.filter((function(t){var e;return(o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o])===O})),dataStartIndex:c,dataEndIndex:u}),A=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&za(n)&&za(i))return!0}return!1})(h.domain,g,v)&&(S=rS(h.domain,null,g),!p||"number"!==v&&"auto"===b||(j=$O(P,y,"category")));var M=_T(v);if(!S||0===S.length){var k,C=null!==(k=h.domain)&&void 0!==k?k:M;if(y){if(S=$O(P,y,v),"category"===v&&p){var E=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&E?(_=S,S=NA(0,A)):m||(S=iS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(pT(t),[e])}),[]))}else if("category"===v)S=m?S.filter((function(t){return""!==t&&!ga(t)})):iS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||ga(e)?t:[].concat(pT(t),[e])}),[]);else if("number"===v){var T=function(t,e,r,n,i){var o=e.map((function(e){return HO(t,e,r,i,n)})).filter((function(t){return!ga(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!i)})),y,i,l);T&&(S=T)}!p||"number"!==v&&"auto"===b||(j=$O(P,y,"category"))}else S=p?NA(0,A):a&&a[O]&&a[O].hasStack&&"number"===v?"expand"===f?[0,1]:QO(a[O].stackGroups,c,u):UO(P,n.filter((function(t){var e=o in t.props?t.props[o]:t.type.defaultProps[o],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),v,l,!0);if("number"===v)S=BE(s,S,O,i,w),C&&(S=rS(C,S,g));else if("category"===v&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return yT(yT({},e),{},gT({},O,yT(yT({},h),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:l})))}),{})},MT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=fc(l,i),p={};return f&&f.length?p=AT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=ST(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=VO(l,i),h=-1;return r.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?yT(yT({},e.type.defaultProps),e.props):e.props)[o],g=_T("number");return t[y]?t:(h++,d?v=NA(0,p):a&&a[y]&&a[y].hasStack?(v=QO(a[y].stackGroups,c,u),v=BE(s,v,y,i)):(v=rS(g,UO(f,r.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===y&&!i})),"number",l),n.defaultProps.allowDataOverflow),v=BE(s,v,y,i)),yT(yT({},t),{},gT({},y,yT(yT({axisType:i},n.defaultProps),{},{hide:!0,orientation:ha(bT,"".concat(i,".").concat(h%2),null),domain:v,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},kT=function(t){var e=t.children,r=t.defaultShowTooltip,n=pc(e,nM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},CT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ET=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=pc(l,nM),p=pc(l,Yd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:yT(yT({},t),{},gT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:yT(yT({},t),{},gT({},n,ha(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),v=yT(yT({},h),d),y=v.bottom;f&&(v.bottom+=f.props.height||nM.defaultProps.height),p&&e&&(v=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=TO({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&za(t[p]))return LO(LO({},t),{},BO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&za(t[d]))return LO(LO({},t),{},BO({},d,t[d]+(f||0)))}return t}(v,0,r,e));var g=c-v.left-v.right,m=u-v.top-v.bottom;return yT(yT({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(m,0)})},TT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},DT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,o=t.validateTooltipEventTypes,a=void 0===o?["axis"]:o,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=CT(s),v=h.numericAxisName,y=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=cc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=ST(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?yT(yT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(v,"Id")],_=w["".concat(y,"Id")],j=c.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?dO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):dO());var u=a[c];return yT(yT({},t),{},gT(gT({},n.axisType,u),"".concat(n.axisType,"Ticks"),WO(u)))}),{}),P=j[y],A=j["".concat(y,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?LO(LO({},t.type.defaultProps),t.props):t.props).stackId;if($a(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null}(r,n[S].stackGroups),k=cc(r.type).indexOf("Bar")>=0,C=nS(P,A),E=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),c=0,u=a.length;c<u;c++)for(var l=i[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,v=d.cateAxisId,y=h.filter((function(t){return cc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,m=void 0!==g?LO(LO({},g),y[0].props):y[0].props,b=m.barSize,w=m[v];o[w]||(o[w]=[]);var x=ga(b)?e:b;o[w].push({item:y[0],stackList:y.slice(1),barSize:ga(x)?void 0:Ua(x,r,0)})}}return o}({barSize:l,stackGroups:n,totalSize:TT(j,y)});if(k){var D,I,N=ga(O)?d:O,R=null!==(D=null!==(I=nS(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;E=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=Ua(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(IO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var v=Ua(r,n,0,!0);n-2*v-(c-1)*l<=0&&(l=0);var y=(n-2*v-(c-1)*l)/c;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;u=o.reduce((function(t,e,r){var n=[].concat(IO(t),[{item:e.item,position:{offset:v+(y+l)*r+(y-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[_],maxBarSize:N}),R!==C&&(E=E.map((function(t){return yT(yT({},t),{},{position:yT(yT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:yT(yT({},z(yT(yT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:E,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},gT(gT(gT({key:r.key||"item-".concat(h)},v,j[v]),y,j[y]),"animationId",o)),childIndex:(L=r,B=t.children,sc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!dc({props:i}))return null;var s=i.children,p=i.layout,d=i.stackOffset,h=i.data,v=i.reverseStackOrder,y=CT(p),g=y.numericAxisName,m=y.cateAxisName,b=fc(s,r),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?LO(LO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],u=t[c]||{hasStack:!1,stackGroups:{}};if($a(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[Ha("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return LO(LO({},t),{},BO({},c,u))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return LO(LO({},e),{},BO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:KO(t,a.items,i)}))}),{})),LO(LO({},e),{},BO({},o,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,v),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return yT(yT({},t),{},gT({},r,MT(i,yT(yT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=ET(yT(yT({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Va(j),{tooltipTicks:_=WO(S,!1,!0),orderedTooltipTicks:uh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:nS(S,_)}),A=f(i,yT(yT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return yT(yT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=function(t){function r(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),gT(o=uT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),gT(o,"accessibilityManager",new qE),gT(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(yT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},yT(yT({},o.state),{},{legendBBox:t}))))}})),gT(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),gT(o,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return yT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),gT(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=yT(yT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;xa(n)&&n(r,t)}})),gT(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?yT(yT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;xa(n)&&n(r,t)})),gT(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),gT(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),gT(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),gT(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;xa(r)&&r(e,t)})),gT(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&ac[e]?ac[e]:null}(t),n=ha(o.props,"".concat(r));r&&xa(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),gT(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=yT(yT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;xa(n)&&n(r,t)}})),gT(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),gT(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),gT(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),gT(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;xa(e)&&e(o.getMouseInfo(t),t)})),gT(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&FE.emit(HE,o.props.syncId,t,o.eventEmitterSymbol)})),gT(o,"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(yT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var v=0;v<h.length;v++)if(h[v].value===t.activeLabel){s=v;break}}var y=yT(yT({},d),{},{x:d.left,y:d.top}),g=Math.min(u,y.x+y.width),m=Math.min(l,y.y+y.height),b=h[s]&&h[s].value,w=jT(o.state,o.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:xT;o.setState(yT(yT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),gT(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,d=o.props.layout,h=t.key||"_recharts-cursor";return st.createElement(tT,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),gT(o,"renderPolarAxis",(function(t,e,r){var n=ha(t,"type.axisType"),i=ha(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?yT(yT({},a),t.props):t.props,u=i&&i[c["".concat(n,"Id")]];return xt(t,yT(yT({},u),{},{className:zn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:WO(u,!0)}))})),gT(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Va(c),s=Va(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return xt(t,{polarAngles:Array.isArray(n)?n:WO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:WO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),gT(o,"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),l=TO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=aT(l,eT);return xt(s,yT(yT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),gT(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=pc(r,ov);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return xt(i,{viewBox:yT(yT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),gT(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return xt(t,{key:t.key||"_recharts-brush",onChange:qO(o.handleBrushChange,t.props.onChange),data:n,x:za(t.props.x)?t.props.x:a.left,y:za(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:za(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),gT(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return xt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),gT(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?yT(yT({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=yT(yT({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:FO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},yc(s,!1)),tc(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,yT(yT({},f),{},{cx:i.x,cy:i.y}),"".concat(u,"-basePoint-").concat(o))):a&&c.push(null),c})),gT(o,"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=pc(o.props.children,ov),p=n.props,d=p.points,h=p.isRange,v=p.baseLine,y=void 0!==n.item.type.defaultProps?yT(yT({},n.item.type.defaultProps),n.item.props):n.item.props,g=y.activeDot,m=y.hide,b=y.activeBar,w=y.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:qO(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:qO(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:qO(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=xt(t,yT(yT({},n.props),O));if(x){if(!(l>=0)){var _,j=(null!==(_=o.getItemByXY(o.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=yT(yT(yT({},n.props),O),{},{activeIndex:M});return[xt(A,k),null,null]}var C,E;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());C=Za(d,T,s),E=h&&v&&Za(v,T,s)}else C=null==d?void 0:d[l],E=h&&v&&v[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[xt(t,yT(yT(yT({},n.props),O),{},{activeIndex:D})),null,null]}if(!ga(C))return[S].concat(pT(o.renderActivePoints({item:n,activePoint:C,basePoint:E,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),gT(o,"renderCustomized",(function(t,e,r){return xt(t,yT(yT({key:"recharts-customized-".concat(r)},o.props),o.state))})),gT(o,"renderMap",{CartesianGrid:{handler:OT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:OT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:OT},YAxis:{handler:OT},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ha("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=sv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fT(t,e)}(r,jt),cT(r,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=pc(e,ov);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=jT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=yT(yT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){gc([pc(t.children,ov)],[pc(this.props.children,ov)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=pc(this.props.children,ov);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap,f=this.getTooltipEventType(),p=PT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&l&&s){var d=Va(l).scale,h=Va(s).scale,v=d&&d.invert?d.invert(o.chartX):null,y=h&&h.invert?h.invert(o.chartY):null;return yT(yT({},o),{},{xValue:v,yValue:y},p)}return p?yT(yT({},o),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Va(u);return vS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=pc(t,ov),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),yT(yT({},tc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){FE.on(HE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){FE.removeListener(HE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===cc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return st.createElement("defs",null,st.createElement("clipPath",{id:t},st.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=oT(e,2),n=r[0],i=r[1];return yT(yT({},t),{},gT({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=oT(e,2),n=r[0],i=r[1];return yT(yT({},t),{},gT({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?yT(yT({},u.type.defaultProps),u.props):u.props,s=cc(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return CP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return vS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(jA(a,n)||PA(a,n)||AA(a,n)){var d=EA({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:yT(yT({},a),{},{childIndex:h}),payload:AA(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!dc(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=aT(n,rT),d=yc(p,!1);if(l)return st.createElement(wk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement(Sc,iT({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),bc(i,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return st.createElement(wk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement("div",iT({className:zn("recharts-wrapper",o),style:yT({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),st.createElement(Sc,iT({},d,{width:a,height:c,title:s,desc:f,style:wT}),this.renderClipPath(),bc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();gT(d,"displayName",e),gT(d,"defaultProps",yT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),gT(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=kT(t);return yT(yT(yT({},d),{},{updateId:0},p(yT(yT({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Ya(l,e.prevMargin)){var h=kT(t),v={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=yT(yT({},PT(e,n,c)),{},{updateId:e.updateId+1}),g=yT(yT(yT({},h),v),y);return yT(yT(yT({},g),p(yT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!gc(i,e.prevChildren)){var m,b,w,x,O=pc(i,nM),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,_=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,j=S!==s||_!==f,P=!ga(n)&&!j?e.updateId:e.updateId+1;return yT(yT({updateId:P},p(yT(yT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),gT(d,"renderActiveDot",(function(t,e,r){var n;return n=ft(t)?xt(t,e):xa(t)?t(e):st.createElement(IP,e),st.createElement(Uc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.createElement(d,iT({},t,{ref:e}))}));return h.displayName=d.displayName,h},IT=DT({chartName:"LineChart",GraphicalChild:KC,axisComponents:[{axisType:"xAxis",AxisComp:SE},{axisType:"yAxis",AxisComp:IE}],formatAxisMap:GM}),NT=DT({chartName:"AreaChart",GraphicalChild:pE,axisComponents:[{axisType:"xAxis",AxisComp:SE},{axisType:"yAxis",AxisComp:IE}],formatAxisMap:GM});const RT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const u=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:u,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:qr.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:o}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(o.value||0):o.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:qr.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:qr.coolElegance(),strokeWidth:"2"})]}):e(r,{})},LT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Fr({data:r,dataKey:n}),d=Ln(),h=Ln(),v=s?Wr({arr:r||[],n:s}):r;let y,g;v?.length?(g=p?qr.mint():qr.coolElegance(),y=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=qr.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:v?.length?"crosshair":"default",...f};return e(gv,{width:i,minHeight:o,id:d,children:t(NT,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(IE,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(pE,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>RT({labelFormatter:l,formatter:u,...t}),dot:!1}),v?.length&&e(ov,{cursor:!1,content:()=>null})]})})},BT=({isCloseable:t,onClick:r})=>{const n=l({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:qr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},zT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:qr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),$T=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":qr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),FT=({children:t,...r})=>e(v,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:qr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),HT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=gt(0);return n.length>=1&&e(FT,{children:t(y,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(y,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Lt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},UT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ft,{...i}):r?e(ye,{...i}):null},VT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...v}=r,g=l?l(u):void 0;return t(m,{as:y,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(y,{onClick:h,w:"full",alignItems:"center",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(UT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...v}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(y,{w:"full",children:s&&e(x,{size:n,children:s})})]})},WT=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(h,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${i}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${i}.300 !important`}},fontSize:"12px",...o,children:n})})),ZT=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[u,l]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{document.body.classList.contains("show-outlines")&&l(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[o]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(WT,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),d(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),d(!0)}},isDisabled:!n,...h,children:[p?"Hide":"Show"," React Query console"]}),t(WT,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...h,_after:i?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[i?"Disable":"Enable"," refetch intervals"]}),e(WT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(WT,{onClick:()=>{l(!u),document.body.classList.toggle("show-outlines")},...h,children:[u?"Hide":"Show"," outlines"]}),t(WT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},qT=({data:r,heading:n,uiColor:i,buttons:o})=>t(y,{flexDir:"column",children:[t(y,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(y,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:o})]}),0===r.length&&e(p,{w:"full",textAlign:"center",children:"No data"}),e(j,{columns:2,gap:1,children:r.map((r=>t(Pt,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),YT=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:u,onClose:l}=P(),[s,f]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?l():u())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,l,u]),bt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose:l,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(C,{}),e(E,{children:e(y,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(y,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:l})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:l,isOpen:c,hideButton:s,onOpen:u})]})},XT=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,hasFiOverride:u,authBypassEnabled:l})=>{const d=!i||c||u||l,[v,g]=gt(!1);return bt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&g(!0)}),[]),e(s,{children:!n&&t(D,{position:"fixed",top:"4",right:"4",zIndex:"1000",bgColor:"blackAlpha.800",borderRadius:"md",transition:"background-color 0.25s",className:"dev-console",_hover:{bgColor:"blackAlpha.900"},children:[d&&e(D,{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1"}),e(f,{label:t(y,{flexDir:"column",gap:"0.5",padding:"1",fontFamily:"mono",fontSize:"12px",children:[l&&e(p,{children:"• Auth bypass enabled"}),c&&e(p,{children:"• System override applied"}),u&&e(p,{children:"• FI config override applied"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!d&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(h,{"aria-label":"Open",size:"sm",onClick:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:v?"☆":"⚙"})})]})})},KT=({uiColor:r})=>t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Links"}),t(I,{listStyleType:"disc",listStylePosition:"inside",children:[e(N,{children:e(R,{href:"https://api.cryptofi-dev.com/v2/docs",target:"api-docs",textTransform:"uppercase",children:"CWS API Documentation"})}),e(N,{children:e(R,{href:"https://cryptofi-core-ui.vercel.app/?path=/docs/intro--docs",target:"storybook",textTransform:"uppercase",children:"Core UI Storybook"})})]})]}),GT=({enableRefetch:t,status:r})=>{let n="inherit";return!1===t&&r?n="gray.500":r||(n="red.600"),e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:n,fontFamily:"body",children:r?"✔":"✘"})})})},JT=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var QT=function(){return QT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},QT.apply(this,arguments)};function tD(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function eD(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var rD=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},nD={k:1e3,m:1e6,b:1e9},iD=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,v=void 0===h?"":h,y=t.transformRawValue,g=(void 0===y?function(t){return t}:y)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(rD(v),")")).test(g),w=RegExp("(\\d+)-?".concat(rD(v))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(rD(e),"g");return t.replace(r,"")}(v?x?g.replace(x,"").concat(O):g.replace(v,""):g,n),_=function(t,e){var r=rD(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,eD([n,o],m,!0)),j=_;if(!d){if(m.some((function(t){return t===_.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(rD(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=nD[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(_,o);P&&(j=String(P))}var A=b&&f?"-":"";if(o&&j.includes(o)){var M=_.split(o),k=M[0],C=M[1],E=l&&C?C.slice(0,l):C,T=c?"".concat(o).concat(E):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},oD=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(rD(n)).concat(rD(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},aD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(rD(a),"?"):"","\\d")).test(e),s="."!==r?cD(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,d=f.currency,h=tD(f,["locale","currency"]),v=QT(QT({},h),{minimumFractionDigits:i||0,maximumFractionDigits:20}),y=(n?new Intl.NumberFormat(p,QT(QT({},v),d&&{style:"currency",currency:d})):new Intl.NumberFormat(void 0,v)).formatToParts(Number(s)),g=uD(y,t),m=oD(g,QT({},t)),b=e.slice(-1)===r?r:"",w=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&w&&r&&(g=g.includes(r)?g.replace(RegExp("(\\d+)(".concat(rD(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!u?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),u&&b?"".concat(g).concat(b).concat(u):m&&b?g.replace(m,"".concat(b).concat(m)):m&&u?g.replace(m,"".concat(b).concat(u)):[g,b,u].join("")},cD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(rD(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},uD=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?eD(eD([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:eD(eD([],t,!0),[l],!1):"group"===u?c?t:eD(eD([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:eD(eD([],t,!0),[void 0!==i?i:l],!1):eD(eD([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},lD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},sD=function(t){return RegExp(/\d/,"gi").test(t)},fD=ht((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,v=t.value,y=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,_=t.min,j=t.max,P=t.disableGroupSeparators,A=void 0!==P&&P,M=t.disableAbbreviations,k=void 0!==M&&M,C=t.decimalSeparator,E=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,R=t.onKeyUp,L=t.transformRawValue,B=t.formatValueOnBlur,z=void 0===B||B,$=tD(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&sD(C))throw new Error("decimalSeparator cannot be a number");if(E&&sD(E))throw new Error("groupSeparator cannot be a number");var F=wt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=tD(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,QT(QT({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?QT(QT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?QT(QT({},t),{groupSeparator:e.value}):"decimal"===e.type?QT(QT({},t),{decimalSeparator:e.value}):t}),lD)}(O)}),[O]),H=C||F.decimalSeparator||"",U=E||F.groupSeparator||"";if(H&&U&&H===U&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:H,groupSeparator:U,disableGroupSeparators:A,intlConfig:O,prefix:w||F.prefix,suffix:x},W={decimalSeparator:H,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||F.prefix,transformRawValue:L},Z=gt((function(){return null!=f?aD(QT(QT({},V),{decimalScale:b,value:String(f)})):null!=v?aD(QT(QT({},V),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],X=gt(!1),K=X[0],G=X[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],it=gt(null),ot=it[0],at=it[1],ct=vt(null);yt(e,(function(){return ct.current}));var ut=function(t,e){G(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=iD(QT({value:n},W));if(!(h&&o.replace(/-/g,"").length>h)){if(""===o||"-"===o||o===H)return y&&y(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=H?o.replace(H,"."):o,u=parseFloat(a),l=aD(QT({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(l),y)y(o,c,{float:u,formatted:l,value:o})}};bt((function(){null==v&&null==f&&Y("")}),[f,v]),bt((function(){K&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,K,rt]);var lt=QT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ut(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=iD(QT({value:e},W));if("-"===r||r===H||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,H,g),i=function(t,e,r){if(void 0===r||""===e||void 0===e||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,H,void 0!==b?b:g),o=H?i.replace(H,"."):i,a=parseFloat(o),u=aD(QT(QT({},V),{value:i}));y&&z&&y(i,c,{float:a,formatted:u,value:i}),Y(u),I&&I(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(at(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),tt(q.length);var r=null!=v?String(v):void 0,n=H&&r?r.replace(H,"."):r,i=parseFloat(null!=n?n:iD(QT({value:q},W)))||0,a="ArrowUp"===e?i+S:i-S;if(void 0!==_&&a<Number(_)||!o&&a<0)return;if(void 0!==j&&a>Number(j))return;var c=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ut(String(c?a.toFixed(c):a).replace(".",H))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=oD(q,{groupSeparator:U,decimalSeparator:H});if(n&&r&&r>q.length-n.length&&ct.current){var i=q.length-n.length;ct.current.setSelectionRange(i,i)}}R&&R(t)},placeholder:m,disabled:d,value:null==v||"-"===q||H&&q===H?q:aD(QT(QT({},V),{decimalScale:K?void 0:b,value:String(v)})),ref:ct},$);if(l){var ft=l;return st.createElement(ft,QT({},lt))}return st.createElement("input",QT({},lt))}));fD.displayName="CurrencyInput";const pD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:v,rightAddon:y,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Hr(i),j=f?f(l):void 0,P="currency"===w?{as:fD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:o,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:i,children:s}),t(L,{size:i,children:[h&&e(B,{children:h}),v&&e(z,{w:"auto",ml:"1em",children:v}),e($,{size:i,spellCheck:u,paddingLeft:v&&"2.5em",paddingRight:g&&"2.5em",type:"currency"===w?"text":w,...j,...P,...S,ref:n||j?.ref}),g&&e(F,{w:"auto",mr:"1em",children:g}),y&&e(H,{children:y})]}),p&&e(x,{size:i,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var dD=t=>null==t;var hD=t=>!dD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),vD=t=>{const e=t.constructor&&t.constructor.prototype;return hD(e)&&e.hasOwnProperty("isPrototypeOf")},yD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function gD(t){let e;const r=Array.isArray(t),n="undefined"!=typeof FileList&&t instanceof FileList;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(yD&&(t instanceof Blob||n)||!r&&!hD(t))return t;if(e=r?[]:{},r||vD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=gD(t[r]));else e=t}return e}var mD=t=>Array.isArray(t)?t.filter(Boolean):[],bD=t=>void 0===t,wD=(t,e,r)=>{if(!e||!hD(t))return r;const n=mD(e.split(/[,[\].]+?/)).reduce(((t,e)=>dD(t)?t:t[e]),t);return bD(n)||n===t?bD(t[e])?r:t[e]:n},xD=t=>"boolean"==typeof t,OD=t=>/^\w*$/.test(t),SD=t=>mD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),_D=(t,e,r)=>{let n=-1;const i=OD(e)?[e]:SD(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=hD(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}};const jD="onBlur",PD="onChange",AD="onSubmit",MD="onTouched",kD="all",CD="max",ED="min",TD="maxLength",DD="minLength",ID="pattern",ND="required",RD="validate",LD=st.createContext(null);var BD=t=>"string"==typeof t,zD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},$D=t=>Array.isArray(t)?t:[t],FD=t=>hD(t)&&!Object.keys(t).length;function HD(t,e){const r=Array.isArray(e)?e:OD(e)?[e]:SD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=bD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(hD(n)&&FD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!bD(t[e]))return!1;return!0}(n))&&HD(t,r.slice(0,-1)),t}var UD=t=>t instanceof RegExp,VD=t=>({isOnSubmit:!t||t===AD,isOnBlur:t===jD,isOnChange:t===PD,isOnAll:t===kD,isOnTouch:t===MD});const WD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=wD(t,r);if(n){const{_f:t,...i}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r))return!0;if(t.ref&&e(t.ref,t.name))return!0;if(WD(i,e))break}else if(hD(i)&&WD(i,e))break}}};var ZD=(t,e,r)=>{const n=$D(wD(t,r));return _D(n,"root",e[r]),_D(t,r,n),t},qD=t=>BD(t);function YD(t,e,r="validate"){if(qD(t)||Array.isArray(t)&&t.every(qD)||xD(t)&&!t)return{type:r,message:qD(t)?t:"",ref:e}}var XD=t=>hD(t)&&!UD(t)?t:{value:t,message:""},KD=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:u,maxLength:l,minLength:s,min:f,max:p,pattern:d,validate:h,name:v,valueAsNumber:y,mount:g}=t._f,m=wD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(xD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(y||(t=>"file"===t.type)(a))&&bD(a.value)&&bD(m)||(t=>{if(!yD)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(a)&&""===a.value||""===m||Array.isArray(m)&&!m.length,S=zD.bind(null,v,n,x),_=(t,e,r,n=TD,i=DD)=>{const o=t?e:r;x[v]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=qD(u)?{value:!!u,message:u}:XD(u);if(t&&(x[v]={type:ND,message:e,ref:b,...S(ND,e)},!n))return w(e),x}if(!(O||dD(f)&&dD(p))){let t,e;const r=XD(p),i=XD(f);if(dD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,u="week"==a.type;BD(r.value)&&m&&(t=c?o(m)>o(r.value):u?m>r.value:n>new Date(r.value)),BD(i.value)&&m&&(e=c?o(m)<o(i.value):u?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);dD(r.value)||(t=n>r.value),dD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,CD,ED),!n))return w(x[v].message),x}if((l||s)&&!O&&(BD(m)||Array.isArray(m))){const t=XD(l),e=XD(s),r=!dD(t.value)&&m.length>+t.value,i=!dD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[v].message),x}if(d&&!O&&BD(m)){const{value:t,message:e}=XD(d);if(UD(t)&&!m.match(t)&&(x[v]={type:ID,message:e,ref:a,...S(ID,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=YD(await h(m,r),b);if(t&&(x[v]={...t,...S(RD,t.message)},!n))return w(t.message),x}else if(hD(h)){let t={};for(const e in h){if(!FD(t)&&!n)break;const i=YD(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!FD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},GD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},JD=(t,e,r={})=>r.shouldFocus||bD(r.shouldFocus)?r.focusName||`${t}.${bD(r.focusIndex)?e:r.focusIndex}.`:"",QD=(t,e)=>[...t,...$D(e)],tI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function eI(t,e,r){return[...t.slice(0,e),...$D(r),...t.slice(e)]}var rI=(t,e,r)=>Array.isArray(t)?(bD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],nI=(t,e)=>[...$D(e),...$D(t)];var iI=(t,e)=>bD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return mD(n).length?n:[]}(t,$D(e).sort(((t,e)=>t-e))),oI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},aI=(t,e,r)=>(t[e]=r,t);function cI(t){const e=st.useContext(LD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,u]=st.useState(r._getFieldArray(n)),l=st.useRef(r._getFieldArray(n).map(GD)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),st.useEffect((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=wD(t,f.current);Array.isArray(e)&&(u(e),l.current=e.map(GD))}}}).unsubscribe),[r]);const d=st.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return st.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!VD(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!VD(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=wD(t.errors,n),i=wD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?_D(r._formState.errors,n,e):HD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=wD(r._fields,n);!t||!t._f||VD(r._options.reValidateMode).isOnSubmit&&VD(r._options.mode).isOnSubmit||KD(t,r._names.disabled,r._formValues,r._options.criteriaMode===kD,r._options.shouldUseNativeValidation).then((t=>!FD(t)&&r._subjects.state.next({errors:ZD(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:gD(r._formValues)}),r._names.focus&&WD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._setValid(),p.current=!1}),[c,n,r]),st.useEffect((()=>(!wD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=wD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);oI(i,t,e),oI(l.current,t,e),d(i),u(i),r._setFieldArray(n,i,oI,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);rI(i,t,e),rI(l.current,t,e),d(i),u(i),r._setFieldArray(n,i,rI,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const i=$D(gD(t)),o=nI(r._getFieldArray(n),i);r._names.focus=JD(n,0,e),l.current=nI(l.current,i.map(GD)),d(o),u(o),r._setFieldArray(n,o,nI,{argA:tI(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const i=$D(gD(t)),o=QD(r._getFieldArray(n),i);r._names.focus=JD(n,o.length-1,e),l.current=QD(l.current,i.map(GD)),d(o),u(o),r._setFieldArray(n,o,QD,{argA:tI(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=iI(r._getFieldArray(n),t);l.current=iI(l.current,t),d(e),u(e),!Array.isArray(wD(r._fields,n))&&_D(r._fields,n,void 0),r._setFieldArray(n,e,iI,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,i)=>{const o=$D(gD(e)),a=eI(r._getFieldArray(n),t,o);r._names.focus=JD(n,t,i),l.current=eI(l.current,t,o.map(GD)),d(a),u(a),r._setFieldArray(n,a,eI,{argA:t,argB:tI(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const i=gD(e),o=aI(r._getFieldArray(n),t,i);l.current=[...o].map(((e,r)=>e&&r!==t?l.current[r]:GD())),d(o),u([...o]),r._setFieldArray(n,o,aI,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=$D(gD(t));l.current=e.map(GD),d([...e]),u([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[i]:l.current[e]||GD()})))),[c,i])}}const uI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=cI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[u.map(((n,o)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(pD,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},lI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Fr({data:r,dataKey:n}),d=Ln(),h=s?Wr({arr:r||[],n:s}):r;let v,y;h?.length?(y=p?qr.mint():qr.heroicRed(),v=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=qr.coolElegance(),v=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(gv,{width:i,minHeight:o,id:d,children:t(IT,{data:v,style:g,children:[e(IE,{domain:["dataMin","dataMax"],hide:!0}),e(KC,{isAnimationActive:c,type:a,dataKey:n,stroke:y,strokeWidth:"2",activeDot:t=>RT({labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(ov,{cursor:!1,content:()=>null})]})})},sI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:Kr},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!Ur(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:i}),e(Y,{isDisabled:l}),e(X,{...d,children:a}),o&&e(K,{borderTop:"solid 1px",borderColor:qr.coolElegance(),justifyContent:"flex-start",children:o})]})]})},fI=t=>{const{isActive:r,children:n,href:i,...o}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${qr.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&qr.coolElegance(),textDecoration:"none"},...o,children:n},i)};var pI,dI={exports:{}};var hI,vI=(pI||(pI=1,hI=dI,function(t,e){hI.exports=e(st)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var c=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 c.name="Invariant Violation",c}}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:o,resetWarningCache:i};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.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.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})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),o=n.n(r);function a(){return a=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},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,i=t.page,o=t.selected,c=t.activeClassName,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,v=t.ariaLabel||"Page "+i+(p?" "+p:""),y=null;return o&&(y="page",v=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":v,"aria-current":y,onKeyPress:s},l(s)),d(i)))};c.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const u=c;function l(){return l=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},l.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,i=t.breakClassName,o=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,u=i||"break";return e().createElement("li",{className:u},e().createElement("a",l({className:o,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(){return h=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},h.apply(this,arguments)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=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&&v(t,e)}(c,t);var r,n,i,o,a=(i=c,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=g(i);if(o){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),m(y(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),m(y(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),m(y(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),m(y(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(y(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(y(r),"handleClick",(function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,c=i.isNext,u=void 0!==c&&c,l=i.isBreak,s=void 0!==l&&l,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,v=n;if(h){var y=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===y)return;Number.isInteger(y)&&(v=y)}void 0!==v&&r.handlePageChange(v)})),m(y(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(y(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(y(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(y(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,i=n.nextPageRel,o=n.prevPageRel,a=n.selectedPageRel;return e-1===t?o:e===t?a:e+1===t?i:void 0})),m(y(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var d=0;d<o;d++)t.push(r.getPageElement(d));else{var h=i/2,v=i-h;p>o-i/2?h=i-(v=o-p):p<i/2&&(v=i-(h=p));var y,g,m=function(t){return r.getPageElement(t)},b=[];for(y=0;y<o;y++){var w=y+1;if(w<=a)b.push({type:"page",index:y,display:m(y)});else if(w>o-a)b.push({type:"page",index:y,display:m(y)});else if(y>=p-h&&y<=p+(0===p&&i>1?v-1:v))b.push({type:"page",index:y,display:m(y)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=y<p?s.backward:s.forward;g=e().createElement(f,{key:y,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,y),getEventListener:r.getEventListener}),b.push({type:"break",index:y,display:g})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:m(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,i=t.pageCount,o=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(i)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(i,"). Did you forget a Math.ceil()?")),void 0!==e&&e>i-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(i-1,").")),void 0!==o&&o>i-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(o," > ").concat(i-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,i=e.hrefAllControls;if(r)return i||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,i=n.pageClassName,o=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,i=r.disabledLinkClassName,o=r.pageCount,a=r.className,c=r.containerClassName,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,v=r.nextLabel,y=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===o-1,S="".concat(p(l)).concat(x?" ".concat(p(n)):""),_="".concat(p(y)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(i)):""),P="".concat(p(g)).concat(O?" ".concat(p(i)):""),A=x?"true":"false",M=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",h({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",h({className:P,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":M,"aria-label":m,rel:b},this.getEventListener(this.handleNextPage)),v)))}}])&&function(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)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);m(b,"propTypes",{pageCount:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().string}),m(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),i})()))),dI.exports);const yI=n(br(vI)),gI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(y,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(yI,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:i,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:o,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:qr.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},mI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=gt([]),[l,s]=gt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},bI=({children:t,isEnabled:r=!0,...n})=>{const i=r?At`
|
|
32
32
|
text-wrap: balance;
|
|
33
33
|
text-wrap: pretty;
|
|
34
34
|
`:void 0;return e(D,{css:i,...n,children:t})},wI=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:p,...d}=r,h=Hr(i),v=l?l(u):void 0;return t(m,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:i,children:p}),e(G,{icon:e(Rt,{}),size:i,...v,...d,children:n}),s&&e(x,{size:i,children:s}),f&&e(U,{fontSize:h,children:f})]})},xI=Mt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),OI=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?qr.sonicSilver():"brand.500";return e(y,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(y,{width:t,height:t,animation:`${xI} 2000ms infinite linear`,children:e(Pe,{boxSize:t,__css:{path:{fill:i}}})})})},SI=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[u,l]=gt(!0);return u?t(J,{className:"cf-tag",...c,children:[o&&e(Q,{as:o}),e(tt,{children:n}),i&&e(et,{as:i}),a&&e(rt,{onClick:()=>{a(),l(!1)}})]}):null},_I=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,u;switch(a){case"error":u=kt;break;case"success":u=Ft;break;case"warning":u=ae,c="yellow";break;case"loading":c="brand",u=ut;break;default:c="brand",u=ae}return t(nt,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(it,{children:e(u,{size:"sm"})}),t(D,{children:[e(ot,{children:n}),e(at,{children:r})]})]}),o&&e(ct,{onClick:i})]})},jI=({icon:r,header:n,coloredText:i,values:o,children:a,useCard:c=!0})=>{const u=t(y,{gap:4,alignItems:"flex-start",justifyContent:"space-between",children:[t(y,{gap:4,alignItems:"flex-start",children:[r&&e(y,{backgroundColor:qr.lighthouse(),borderRadius:"md",padding:2,alignItems:"center",justifyContent:"center",height:"fit-content",children:e(r,{boxSize:3})}),t(y,{direction:"column",flex:"1",children:[t(y,{alignItems:"center",marginY:1,children:[e(p,{fontWeight:"500",fontSize:"sm",marginRight:2,children:n}),i&&e(p,{fontSize:"sm",children:i})]}),e(y,{gap:4,children:o.map(((r,n)=>t(y,{direction:"column",children:[e(p,{fontSize:"lg",fontWeight:"600",children:r.value}),r.description&&e(p,{fontSize:"xs",color:"#6e6e6e",children:r.description})]},n)))})]})]}),a]});return c?e(FT,{padding:3,children:u}):u},PI=({children:t,label:r})=>{const n=r?e(y,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},AI=()=>{const t=l({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}};var MI,kI={exports:{}},CI=kI.exports;
|