diff --git a/asset-manifest.json b/asset-manifest.json index 1c25fa6..9b30fc5 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,14 +1,14 @@ { "files": { "main.css": "/augmented-tbc-design/static/css/main.ed579467.chunk.css", - "main.js": "/augmented-tbc-design/static/js/main.a7473c04.chunk.js", - "main.js.map": "/augmented-tbc-design/static/js/main.a7473c04.chunk.js.map", + "main.js": "/augmented-tbc-design/static/js/main.ba7919ce.chunk.js", + "main.js.map": "/augmented-tbc-design/static/js/main.ba7919ce.chunk.js.map", "runtime~main.js": "/augmented-tbc-design/static/js/runtime~main.e0588710.js", "runtime~main.js.map": "/augmented-tbc-design/static/js/runtime~main.e0588710.js.map", - "static/js/2.2e1d1a59.chunk.js": "/augmented-tbc-design/static/js/2.2e1d1a59.chunk.js", - "static/js/2.2e1d1a59.chunk.js.map": "/augmented-tbc-design/static/js/2.2e1d1a59.chunk.js.map", + "static/js/2.dc6af9b8.chunk.js": "/augmented-tbc-design/static/js/2.dc6af9b8.chunk.js", + "static/js/2.dc6af9b8.chunk.js.map": "/augmented-tbc-design/static/js/2.dc6af9b8.chunk.js.map", "index.html": "/augmented-tbc-design/index.html", - "precache-manifest.ecabc7800154cc60bff4b61aa35e020a.js": "/augmented-tbc-design/precache-manifest.ecabc7800154cc60bff4b61aa35e020a.js", + "precache-manifest.33911706d217651b0ec61231507275f1.js": "/augmented-tbc-design/precache-manifest.33911706d217651b0ec61231507275f1.js", "service-worker.js": "/augmented-tbc-design/service-worker.js", "static/css/main.ed579467.chunk.css.map": "/augmented-tbc-design/static/css/main.ed579467.chunk.css.map" } diff --git a/index.html b/index.html index 8a1b33c..a4801b8 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Augmented Bonding Curve Design
\ No newline at end of file +Augmented Bonding Curve Design
\ No newline at end of file diff --git a/precache-manifest.ecabc7800154cc60bff4b61aa35e020a.js b/precache-manifest.33911706d217651b0ec61231507275f1.js similarity index 53% rename from precache-manifest.ecabc7800154cc60bff4b61aa35e020a.js rename to precache-manifest.33911706d217651b0ec61231507275f1.js index f76025f..302a572 100644 --- a/precache-manifest.ecabc7800154cc60bff4b61aa35e020a.js +++ b/precache-manifest.33911706d217651b0ec61231507275f1.js @@ -1,19 +1,19 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ { - "revision": "590e34ff36147ab8397a1d5e11c7e051", + "revision": "03b03a3a076f9f1cc5a2b6245950ff95", "url": "/augmented-tbc-design/index.html" }, { - "revision": "9bbf8f81421d26d037a2", + "revision": "35be65b2f4cf8e399b8d", "url": "/augmented-tbc-design/static/css/main.ed579467.chunk.css" }, { - "revision": "c2e5c25bd603d785abae", - "url": "/augmented-tbc-design/static/js/2.2e1d1a59.chunk.js" + "revision": "0fb397e8f6daa44f859d", + "url": "/augmented-tbc-design/static/js/2.dc6af9b8.chunk.js" }, { - "revision": "9bbf8f81421d26d037a2", - "url": "/augmented-tbc-design/static/js/main.a7473c04.chunk.js" + "revision": "35be65b2f4cf8e399b8d", + "url": "/augmented-tbc-design/static/js/main.ba7919ce.chunk.js" }, { "revision": "bbaf5adc59b3ad16792b", diff --git a/service-worker.js b/service-worker.js index ab0e03e..9a3b278 100644 --- a/service-worker.js +++ b/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/augmented-tbc-design/precache-manifest.ecabc7800154cc60bff4b61aa35e020a.js" + "/augmented-tbc-design/precache-manifest.33911706d217651b0ec61231507275f1.js" ); self.addEventListener('message', (event) => { diff --git a/static/js/2.2e1d1a59.chunk.js b/static/js/2.2e1d1a59.chunk.js deleted file mode 100644 index 3e58b07..0000000 --- a/static/js/2.2e1d1a59.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(window["webpackJsonpaugmented-tbc-design"]=window["webpackJsonpaugmented-tbc-design"]||[]).push([[2],[function(e,t,n){e.exports=n(222)()},function(e,t,n){"use strict";e.exports=n(217)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){var t,n,o="";if(e)if("object"===typeof e)if(e.push)for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,u=t.withTheme,p=void 0!==u&&u,d=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var v=d,y=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:d||n.displayName,classNamePrefix:v},h)),m=a.a.forwardRef(function(e,t){e.classes;var u,c=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),h=y(e),v=l;return("string"===typeof d||p)&&(u=Object(f.a)()||i,d&&(v=s({theme:u,name:d,props:l})),p&&!v.theme&&(v.theme=u)),a.a.createElement(n,Object(r.a)({ref:c||t,classes:h},v))});return c()(m,n),m}},d=n(38);t.a=function(e,t){return p(e,Object(r.a)({defaultTheme:d.a},t))}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0?1:-1},N=function(e){return w()(e)&&e.indexOf("%")===e.length-1},R=function(e){return P()(e)&&!M()(e)},I=function(e){return R(e)||w()(e)},D=0,L=function(e){var t=++D;return"".concat(e||"").concat(t)},z=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!R(e)&&!w()(e))return r;if(N(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return M()(n)&&(n=r),o&&n>t&&(n=t),n},F=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},B=function(e,t){return R(e)&&R(t)?function(n){return e+n*(t-e)}:function(){return t}},W=function(e,t,n){return e&&e.length?e.find(function(e){return e&&j()(e,t)===n}):null};function U(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $={"aria-current":p.a.string,"aria-details":p.a.any,"aria-disabled":p.a.any,"aria-hidden":p.a.any,"aria-invalid":p.a.any,"aria-keyshortcuts":p.a.any,"aria-label":p.a.any,"aria-roledescription":p.a.any,"aria-autocomplete":p.a.any,"aria-checked":p.a.any,"aria-expanded":p.a.any,"aria-haspopup":p.a.any,"aria-level":p.a.any,"aria-modal":p.a.any,"aria-multiline":p.a.any,"aria-multiselectable":p.a.any,"aria-orientation":p.a.any,"aria-placeholder":p.a.any,"aria-pressed":p.a.any,"aria-readonly":p.a.any,"aria-required":p.a.any,"aria-selected":p.a.any,"aria-sort":p.a.any,"aria-valuemax":p.a.any,"aria-valuemin":p.a.any,"aria-valuenow":p.a.any,"aria-valuetext":p.a.any,"aria-atomic":p.a.any,"aria-busy":p.a.any,"aria-live":p.a.any,"aria-relevant":p.a.any,"aria-dropeffect":p.a.any,"aria-grabbed":p.a.any,"aria-activedescendant":p.a.any,"aria-colcount":p.a.any,"aria-colindex":p.a.any,"aria-colspan":p.a.any,"aria-controls":p.a.any,"aria-describedby":p.a.any,"aria-errormessage":p.a.any,"aria-flowto":p.a.any,"aria-labelledby":p.a.any,"aria-owns":p.a.any,"aria-posinset":p.a.any,"aria-rowcount":p.a.any,"aria-rowindex":p.a.any,"aria-rowspan":p.a.any,"aria-setsize":p.a.any,alignmentBaseline:p.a.string,angle:p.a.number,baselineShift:p.a.string,clip:p.a.string,clipPath:p.a.string,clipRule:p.a.string,color:p.a.string,colorInterpolation:p.a.string,colorInterpolationFilters:p.a.string,colorProfile:p.a.string,colorRendering:p.a.string,cursor:p.a.string,direction:p.a.oneOf(["ltr","rtl","inherit"]),display:p.a.string,dominantBaseline:p.a.string,enableBackground:p.a.string,fill:p.a.string,fillOpacity:p.a.oneOfType([p.a.string,p.a.number]),fillRule:p.a.oneOf(["nonzero","evenodd","inherit"]),filter:p.a.string,floodColor:p.a.string,floodOpacity:p.a.oneOfType([p.a.string,p.a.number]),font:p.a.string,fontFamily:p.a.string,fontSize:p.a.oneOfType([p.a.number,p.a.string]),fontSizeAdjust:p.a.oneOfType([p.a.number,p.a.string]),fontStretch:p.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:p.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:p.a.oneOf(["normal","small-caps","inherit"]),fontWeight:p.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:p.a.string,glyphOrientationVertical:p.a.string,imageRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:p.a.oneOfType([p.a.number,p.a.string]),letterSpacing:p.a.oneOfType([p.a.number,p.a.string]),lightingColor:p.a.string,lineHeight:p.a.oneOfType([p.a.number,p.a.string]),markerEnd:p.a.string,markerMid:p.a.string,markerStart:p.a.string,mask:p.a.string,opacity:p.a.oneOfType([p.a.number,p.a.string]),overflow:p.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:p.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:p.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:p.a.string,stopOpacity:p.a.oneOfType([p.a.number,p.a.string]),stroke:p.a.oneOfType([p.a.number,p.a.string]),strokeDasharray:p.a.string,strokeDashoffset:p.a.oneOfType([p.a.number,p.a.string]),strokeLinecap:p.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:p.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:p.a.oneOfType([p.a.number,p.a.string]),strokeOpacity:p.a.oneOfType([p.a.number,p.a.string]),strokeWidth:p.a.oneOfType([p.a.number,p.a.string]),textAnchor:p.a.oneOf(["start","middle","end","inherit"]),textDecoration:p.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:p.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:p.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:p.a.oneOfType([p.a.number,p.a.string]),writingMode:p.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:p.a.string,role:p.a.string,focusable:p.a.string,tabIndex:p.a.string,style:p.a.object,width:p.a.number,height:p.a.number,dx:p.a.number,dy:p.a.number,x:p.a.number,y:p.a.number,r:p.a.number,radius:p.a.oneOfType([p.a.number,p.a.array])},H={onClick:p.a.func,onMouseDown:p.a.func,onMouseUp:p.a.func,onMouseOver:p.a.func,onMouseMove:p.a.func,onMouseOut:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onTouchEnd:p.a.func,onTouchMove:p.a.func,onTouchStart:p.a.func,onTouchCancel:p.a.func},q={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},G=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],X=["none"],K=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},Y=function(e,t){var n=[],r=[];return r=E()(t)?t.map(function(e){return K(e)}):[K(t)],s.a.Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)}),n},Q=function(e,t){var n=Y(e,t);return n&&n[0]},Z=function(e){if(!e||a()(e))return null;var t=s.a.isValidElement(e)?e.props:e;if(!O()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&$[r]&&(n||(n={}),n[r]=t[r]);return n},J=function(e,t){return function(n){return e(t,n),null}},ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||a()(e))return null;var r=s.a.isValidElement(e)?e.props:e;if(!O()(r))return null;var o=null;for(var i in r)({}).hasOwnProperty.call(r,i)&&H[i]&&(o||(o={}),o[i]=t||(n?J(r[i],r):r[i]));return o},te=function(e,t,n){return function(r){return e(t,n,r),null}},ne=function(e,t,n){if(!O()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&H[o]&&a()(e[o])&&(r||(r={}),r[o]=te(e[o],t,n));return r},re=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!R(n)||n<=0||!R(r)||r<=0)},oe=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},ie=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ae=function(e,t){if(b()(e)&&b()(t))return!0;if(!b()(e)&&!b()(t)){var n=e.props||{},r=n.children,o=V(n,["children"]),i=t.props||{},a=i.children,u=V(i,["children"]);return r&&a?d(o,u)&&ue(r,a):!r&&!a&&d(o,u)}return!1},ue=function e(t,n){if(t===n)return!0;if(l.Children.count(t)!==l.Children.count(n))return!1;var r=l.Children.count(t);if(0===r)return!0;if(1===r)return ae(E()(t)?t[0]:t,E()(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[K(e.type)]){var i=K(e.type),a=t[i],u=a.handler,c=a.once;if(c&&!r[i]||!c){var l=u(e,i,o);E()(l)?n=[n].concat(U(l)):n.push(l),r[i]=!0}}}),n},le=function(e){var t=e&&e.type;return t&&q[t]?q[t]:null},se=function(e,t){var n=-1;return l.Children.forEach(t,function(t,r){t===e&&(n=r)}),n};function fe(){return(fe=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var de={width:p.a.number.isRequired,height:p.a.number.isRequired,viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),className:p.a.string,style:p.a.object,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function he(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,u=pe(e,["children","width","height","viewBox","className","style"]),c=o||{width:n,height:r,x:0,y:0},l=m()("recharts-surface",i),f=Z(u);return s.a.createElement("svg",fe({},f,{className:l,width:n,height:r,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height),version:"1.1"}),t)}he.propTypes=de;var ve=he,ye=Math.PI,me=2*ye,ge=me-1e-6;function be(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xe(){return new be}be.prototype=xe.prototype={constructor:be,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-e,c=r-t,l=i-e,s=a-t,f=l*l+s*s;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(s*u-c*l)>1e-6&&o){var p=n-i,d=r-a,h=u*u+c*c,v=p*p+d*d,y=Math.sqrt(h),m=Math.sqrt(f),g=o*Math.tan((ye-Math.acos((h+f-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*s)),this._+="A"+o+","+o+",0,0,"+ +(s*p>l*d)+","+(this._x1=e+x*u)+","+(this._y1=t+x*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=e+a,l=t+u,s=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%me+me),f>ge?this._+="A"+n+","+n+",0,1,"+s+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=ye)+","+s+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var we=xe,_e=function(e){return function(){return e}},Oe=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),ke=Math.PI,Ee=2*ke;function Se(e){this._context=e}Se.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var je=function(e){return new Se(e)};function Te(e){return e[0]}function Me(e){return e[1]}var Ce=function(){var e=Te,t=Me,n=_e(!0),r=null,o=je,i=null;function a(a){var u,c,l,s=a.length,f=!1;for(null==r&&(i=o(l=we())),u=0;u<=s;++u)!(u=s;--f)u.point(y[f],m[f]);u.lineEnd(),u.areaEnd()}v&&(y[l]=+e(p,l,c),m[l]=+n(p,l,c),u.point(t?+t(p,l,c):y[l],r?+r(p,l,c):m[l]))}if(d)return u=null,d+""||null}function l(){return Ce().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"===typeof n?n:_e(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:_e(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:_e(+e),c):t},c.y=function(e){return arguments.length?(n="function"===typeof e?e:_e(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"===typeof e?e:_e(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:_e(+e),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(n)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"===typeof e?e:_e(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(u=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=u=null:u=a(i=e),c):i},c};Ne(je);function Ae(e){this._curve=e}function Ne(e){function t(t){return new Ae(e(t))}return t._curve=e,t}Ae.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Re=Array.prototype.slice;var Ie={draw:function(e,t){var n=Math.sqrt(t/ke);e.moveTo(n,0),e.arc(0,0,n,0,Ee)}},De={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Le=Math.sqrt(1/3),ze=2*Le,Fe={draw:function(e,t){var n=Math.sqrt(t/ze),r=n*Le;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Be=Math.sin(ke/10)/Math.sin(7*ke/10),We=Math.sin(Ee/10)*Be,Ue=-Math.cos(Ee/10)*Be,Ve={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=We*n,o=Ue*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Ee*i/5,u=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*o,c*r+u*o)}e.closePath()}},$e={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},He=Math.sqrt(3),qe={draw:function(e,t){var n=-Math.sqrt(t/(3*He));e.moveTo(0,2*n),e.lineTo(-He*n,-n),e.lineTo(He*n,-n),e.closePath()}},Ge=Math.sqrt(3)/2,Xe=1/Math.sqrt(12),Ke=3*(Xe/2+1),Ye={draw:function(e,t){var n=Math.sqrt(t/Ke),r=n/2,o=n*Xe,i=r,a=n*Xe+n,u=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(u,c),e.lineTo(-.5*r-Ge*o,Ge*r+-.5*o),e.lineTo(-.5*i-Ge*a,Ge*i+-.5*a),e.lineTo(-.5*u-Ge*c,Ge*u+-.5*c),e.lineTo(-.5*r+Ge*o,-.5*o-Ge*r),e.lineTo(-.5*i+Ge*a,-.5*a-Ge*i),e.lineTo(-.5*u+Ge*c,-.5*c-Ge*u),e.closePath()}},Qe=function(){};function Ze(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Je(e){this._context=e}Je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ze(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function et(e){this._context=e}et.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tt(e){this._context=e}tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ze(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nt(e,t){this._basis=new Je(e),this._beta=t}nt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,u=t[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(o+r*a),this._beta*t[c]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new Je(e):new nt(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function rt(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ot(e,t){this._context=e,this._k=(1-t)/6}ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:rt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:rt(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new ot(e,t)}return n.tension=function(t){return e(+t)},n})(0);function it(e,t){this._context=e,this._k=(1-t)/6}it.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:rt(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new it(e,t)}return n.tension=function(t){return e(+t)},n})(0);function at(e,t){this._context=e,this._k=(1-t)/6}at.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rt(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new at(e,t)}return n.tension=function(t){return e(+t)},n})(0);function ut(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Oe){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Oe){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*l+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/s}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function ct(e,t){this._context=e,this._alpha=t}ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ut(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new ct(e,t):new ot(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function lt(e,t){this._context=e,this._alpha=t}lt.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ut(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new lt(e,t):new it(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function st(e,t){this._context=e,this._alpha=t}st.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ut(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new st(e,t):new at(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ft(e){this._context=e}ft.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function pt(e){return e<0?-1:1}function dt(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(pt(i)+pt(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function ht(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function vt(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,o+u*t,i-u,a-u*n,i,a)}function yt(e){this._context=e}function mt(e){this._context=new gt(e)}function gt(e){this._context=e}function bt(e){this._context=e}function xt(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var _t=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],u=a.length;i=0;)n[t]=t;return n};function kt(e,t){return e[t]}var Et,St,jt;function Tt(e){return(Tt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(){return(Ct=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,u=r.margin,c=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),en({},t,n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},function(){r&&r(o)})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,u=t.paylodUniqBy,c=t.payload,l=en({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),i);return s.a.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(Zt,t)}(n,en({},this.props,{payload:cn(u,c)})))}}])&&nn(n.prototype,r),o&&nn(n,o),t}(),Kt.displayName="Legend",Kt.propTypes={content:p.a.oneOfType([p.a.element,p.a.func]),wrapperStyle:p.a.object,chartWidth:p.a.number,chartHeight:p.a.number,width:p.a.number,height:p.a.number,iconSize:p.a.number,iconType:p.a.oneOf(ln),layout:p.a.oneOf(["horizontal","vertical"]),align:p.a.oneOf(["center","left","right"]),verticalAlign:p.a.oneOf(["top","bottom","middle"]),margin:p.a.shape({top:p.a.number,left:p.a.number,bottom:p.a.number,right:p.a.number}),payload:p.a.arrayOf(p.a.shape({value:p.a.any,id:p.a.any,type:p.a.oneOf(G)})),paylodUniqBy:p.a.oneOfType([p.a.func,p.a.bool]),formatter:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onClick:p.a.func,onBBoxUpdate:p.a.func},Kt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},Xt=Yt))||Xt,fn=n(28),pn=n.n(fn),dn=n(39),hn=n.n(dn);function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;hn()(function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):hn()(r)})}function yn(e){return(yn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gn(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=mn(r),i=o[0],a=o.slice(1);return"number"===typeof i?void vn(n.bind(null,a),i):(n(i),void vn(n.bind(null,a)))}"object"===yn(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var bn=n(115),xn=n.n(bn);function wn(e){return(wn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _n(e,t){if(e===t)return!0;if("object"!==wn(e)||null===e||"object"!==wn(t)||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=hasOwnProperty.bind(t),i=0;i=0&&e<=1});var u=Fn(r,i),c=Fn(o,a),l=Bn(r,i),s=function(e){return e>1?1:e<0?0:e},f=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=u(n)-t,i=l(n);if(Math.abs(o-t)<1e-4||i<1e-4)return c(n);n=s(n-o/i)}return c(n)};return f.isStepper=!1,f},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,u=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},Vn=n(174),$n=n.n(Vn);function Hn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rr(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,p=l||Object.keys(c);if("function"===typeof u||"spring"===u)return rr(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:u}),i]);var d=In(p,i,u),h=or({},f.style,c,{transition:d});return rr(e).concat([h,i,s]).filter(An)},[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=gn());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,u=e.onAnimationEnd,c=e.steps,l=e.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?ir({},r,o):o,p=In(Object.keys(f),n,i);s.start([a,t,or({},f,{transition:p}),n,u])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,nr(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=l.Children.count(t),i=Rn(this.state.style);if("function"===typeof t)return t(i);if(!n||0===o)return t;var a=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(l.cloneElement)(e,or({},r,{style:or({},o,i),className:a}))};return 1===o?a(l.Children.only(t)):s.a.createElement("div",null,l.Children.map(t,function(e){return a(e)}))}}])&&ar(n.prototype,r),o&&ar(n,o),t}(),Yn.displayName="Animate",Yn.propTypes={from:p.a.oneOfType([p.a.object,p.a.string]),to:p.a.oneOfType([p.a.object,p.a.string]),attributeName:p.a.string,duration:p.a.number,begin:p.a.number,easing:p.a.oneOfType([p.a.string,p.a.func]),steps:p.a.arrayOf(p.a.shape({duration:p.a.number.isRequired,style:p.a.object.isRequired,easing:p.a.oneOfType([p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),p.a.func]),properties:p.a.arrayOf("string"),onAnimationEnd:p.a.func})),children:p.a.oneOfType([p.a.node,p.a.func]),isActive:p.a.bool,canBegin:p.a.bool,onAnimationEnd:p.a.func,shouldReAnimate:p.a.bool,onAnimationStart:p.a.func,onAnimationReStart:p.a.func},Yn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Kn=Qn))||Kn,pr=n(85);function dr(e){return(dr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hr(){return(hr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(P()(t.duration)&&t.duration>0?t.duration:0)},0):P()(n)?n:0},_r=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,i=o.payload,u=o.isAnimationActive,l=o.animationDuration,f=o.animationEasing,p=o.filterNull,d=function(e,t){return!0===e?c()(t,Zr):a()(e)?c()(t,e):t}(o.paylodUniqBy,p&&i&&i.length?i.filter(function(e){return!b()(e.value)}):i),h=d&&d.length,v=this.props,y=v.content,g=v.viewBox,x=v.coordinate,w=v.position,_=v.active,O=v.offset,k=Hr({pointerEvents:"none",visibility:_&&h?"visible":"hidden",position:"absolute",top:0},v.wrapperStyle);if(w&&R(w.x)&&R(w.y))t=w.x,n=w.y;else{var E=this.state,S=E.boxWidth,j=E.boxHeight;S>0&&j>0&&x?(t=w&&R(w.x)?w.x:Math.max(x.x+S+O>g.x+g.width?x.x-S-O:x.x+O,g.x),n=w&&R(w.y)?w.y:Math.max(x.y+j+O>g.y+g.height?x.y-j-O:x.y+O,g.y)):k.visibility="hidden"}k=Hr({},k,Rn({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),u&&_&&(k=Hr({},k,Rn({transition:"transform ".concat(l,"ms ").concat(f)})));var T=m()(Qr,(qr(e={},"".concat(Qr,"-right"),R(t)&&x&&R(x.x)&&t>=x.x),qr(e,"".concat(Qr,"-left"),R(t)&&x&&R(x.x)&&t=x.y),qr(e,"".concat(Qr,"-top"),R(n)&&x&&R(x.y)&&n0?ro()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&so(e,t)}(t,l["Component"]),n=t,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,o=r.aspect,i=r.width,a=r.height,u=(r.minWidth,r.minHeight,r.maxHeight),c=r.children;N(i)||N(a);var l=N(i)?t:i,f=N(a)?n:a;return o&&o>0&&(l?f=l/o:f&&(l=f*o),u&&f>u&&(f=u)),s.a.cloneElement(c,{width:l,height:f})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,o=t.width,i=t.height,a=t.maxHeight,u=t.id,c=t.className,l={width:o,height:i,minWidth:n,minHeight:r,maxHeight:a};return s.a.createElement("div",{id:u,className:m()("recharts-responsive-container",c),style:l,ref:function(t){e.container=t}},this.renderChart(),s.a.createElement(io.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&uo(n.prototype,r),o&&uo(n,o),t}();fo.displayName="ResponsiveContainer",fo.propTypes={aspect:p.a.number,width:p.a.oneOfType([p.a.string,p.a.number]),height:p.a.oneOfType([p.a.string,p.a.number]),minHeight:p.a.oneOfType([p.a.string,p.a.number]),minWidth:p.a.oneOfType([p.a.string,p.a.number]),maxHeight:p.a.oneOfType([p.a.string,p.a.number]),children:p.a.node.isRequired,debounce:p.a.number,id:p.a.oneOfType([p.a.string,p.a.number]),className:p.a.oneOfType([p.a.string,p.a.number])},fo.defaultProps={width:"100%",height:"100%",debounce:0};var po=fo,ho=n(176),vo=n.n(ho);function yo(){return(yo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var go={className:p.a.string,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function bo(e){var t=e.children,n=e.className,r=mo(e,["children","className"]),o=m()("recharts-layer",n);return s.a.createElement("g",yo({className:o},r),t)}bo.propTypes=go;var xo=bo,wo=n(87),_o=n.n(wo);function Oo(e){for(var t=1;t=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i},"")},Co=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||oe())return{width:0,height:0};var n="".concat(e),r=Mo(t),o="".concat(n,"-").concat(r);if(So.widthCache[o])return So.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i));var a=Oo({},jo,t);Object.keys(a).map(function(e){return i.style[e]=a[e],e}),i.textContent=n;var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return So.widthCache[o]=c,++So.cacheCount>2e3&&(So.cacheCount=0,So.widthCache={}),c}catch(l){return{width:0,height:0}}};function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ao(e){return(Ao="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function No(){return(No=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Io(e,t){for(var n=0;nt?1:e>=t?0:NaN},Yo=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ko(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Qo=Yo(Ko),Zo=Qo.right,Jo=(Qo.left,Zo);var ei=function(e){return null===e?NaN:+e},ti=Array.prototype,ni=(ti.slice,ti.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++u=0?(i>=ri?10:i>=oi?5:i>=ii?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=ri?10:i>=oi?5:i>=ii?2:1)}function ci(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=ri?o*=10:i>=oi?o*=5:i>=ii&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function si(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function fi(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function pi(){}function di(e,t){var n=new pi;if(e instanceof pi)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Ai.exec(e))?Wi(parseInt(t[1],16)):(t=Ni.exec(e))?new Hi(t[1],t[2],t[3],1):(t=Ri.exec(e))?new Hi(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ii.exec(e))?Ui(t[1],t[2],t[3],t[4]):(t=Di.exec(e))?Ui(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Li.exec(e))?Gi(t[1],t[2]/100,t[3]/100,1):(t=zi.exec(e))?Gi(t[1],t[2]/100,t[3]/100,t[4]):Fi.hasOwnProperty(e)?Wi(Fi[e]):"transparent"===e?new Hi(NaN,NaN,NaN,0):null}function Wi(e){return new Hi(e>>16&255,e>>8&255,255&e,1)}function Ui(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hi(e,t,n,r)}function Vi(e){return e instanceof ji||(e=Bi(e)),e?new Hi((e=e.rgb()).r,e.g,e.b,e.opacity):new Hi}function $i(e,t,n,r){return 1===arguments.length?Vi(e):new Hi(e,t,n,null==r?1:r)}function Hi(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function qi(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Gi(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ki(e,t,n,r)}function Xi(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ki)return new Ki(e.h,e.s,e.l,e.opacity);if(e instanceof ji||(e=Bi(e)),!e)return new Ki;if(e instanceof Ki)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=t===i?(n-r)/u+6*(n0&&c<1?0:a,new Ki(a,u,c,e.opacity)}(e):new Ki(e,t,n,null==r?1:r)}function Ki(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Yi(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ei(ji,Bi,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Ei(Hi,$i,Si(ji,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Hi(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Hi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+qi(this.r)+qi(this.g)+qi(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Ei(Ki,Xi,Si(ji,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ki(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ki(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Hi(Yi(e>=240?e-240:e+120,o,r),Yi(e,o,r),Yi(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Qi=Math.PI/180,Zi=180/Math.PI,Ji=.96422,ea=1,ta=.82521,na=4/29,ra=6/29,oa=3*ra*ra,ia=ra*ra*ra;function aa(e){if(e instanceof ca)return new ca(e.l,e.a,e.b,e.opacity);if(e instanceof va)return ya(e);e instanceof Hi||(e=Vi(e));var t,n,r=pa(e.r),o=pa(e.g),i=pa(e.b),a=la((.2225045*r+.7168786*o+.0606169*i)/ea);return r===o&&o===i?t=n=a:(t=la((.4360747*r+.3850649*o+.1430804*i)/Ji),n=la((.0139322*r+.0971045*o+.7141733*i)/ta)),new ca(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ua(e,t,n,r){return 1===arguments.length?aa(e):new ca(e,t,n,null==r?1:r)}function ca(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function la(e){return e>ia?Math.pow(e,1/3):e/oa+na}function sa(e){return e>ra?e*e*e:oa*(e-na)}function fa(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pa(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function da(e){if(e instanceof va)return new va(e.h,e.c,e.l,e.opacity);if(e instanceof ca||(e=aa(e)),0===e.a&&0===e.b)return new va(NaN,0180||n<-180?n-360*Math.round(n/360):n):Ta(isNaN(e)?t:e)}function Pa(e){return 1===(e=+e)?Aa:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ta(isNaN(t)?n:t)}}function Aa(e,t){var n=t-e;return n?Ma(e,n):Ta(isNaN(e)?t:e)}var Na=function e(t){var n=Pa(t);function r(e,t){var r=n((e=$i(e)).r,(t=$i(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Aa(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ra(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,u=ri&&(o=t.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Ia(n,r)})),i=La.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Ia(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,u,c),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Ia(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,u,c),function(e,t,n,r,i,a){if(e!==n||t!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:Ia(e,n)},{i:u-2,x:Ia(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,u,c),i=a=null,function(e){for(var t,n=-1,r=c.length;++nr&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function ru(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?ou:ru,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),u,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(u,a.map(e),Ia)))(n)))},f.domain=function(e){return arguments.length?(a=bi.call(e,Za),l===eu||(l=nu(a)),s()):a.slice()},f.range=function(e){return arguments.length?(u=xi.call(e),s()):u.slice()},f.rangeRound=function(e){return u=xi.call(e),c=Va,s()},f.clamp=function(e){return arguments.length?(l=e?nu(a):eu,f):l!==eu},f.interpolate=function(e){return arguments.length?(c=e,s()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,s()}}function uu(e,t){return au()(e,t)}var cu=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},lu=function(e){return(e=cu(Math.abs(e)))?e[1]:NaN},su=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fu(e){return new pu(e)}function pu(e){if(!(t=su.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}fu.prototype=pu.prototype,pu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var du,hu,vu,yu,mu=function(e){e:for(var t,n=e.length,r=1,o=-1;r0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e},gu=function(e,t){var n=cu(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},bu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return gu(100*e,t)},r:gu,s:function(e,t){var n=cu(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(du=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+cu(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},xu=function(e){return e},wu=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];hu=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(e.substring(o-=u,o+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return i.reverse().join(n)}):xu,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):xu,u=e.percent||"%";function c(e){var t=(e=fu(e)).fill,n=e.align,c=e.sign,l=e.symbol,s=e.zero,f=e.width,p=e.comma,d=e.precision,h=e.trim,v=e.type;"n"===v?(p=!0,v="g"):bu[v]||(null==d&&(d=12),h=!0,v="g"),(s||"0"===t&&"="===n)&&(s=!0,t="0",n="=");var y="$"===l?o[0]:"#"===l&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",m="$"===l?o[1]:/[%p]/.test(v)?u:"",g=bu[v],b=/[defgprs%]/.test(v);function x(e){var o,u,l,x=y,w=m;if("c"===v)w=g(e)+w,e="";else{var _=(e=+e)<0;if(e=g(Math.abs(e),d),h&&(e=mu(e)),_&&0===+e&&(_=!1),x=(_?"("===c?c:"-":"-"===c||"("===c?"":c)+x,w=("s"===v?wu[8+du/3]:"")+w+(_&&"("===c?")":""),b)for(o=-1,u=e.length;++o(l=e.charCodeAt(o))||l>57){w=(46===l?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}p&&!s&&(e=r(e,1/0));var O=x.length+e.length+w.length,k=O>1)+x+e+w+k.slice(O);break;default:e=k+x+e+w}return a(e)}return d=null==d?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),x.toString=function(){return e+""},x}return{format:c,formatPrefix:function(e,t){var n=c(((e=fu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(lu(t)/3))),o=Math.pow(10,-r),i=wu[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),vu=hu.format,yu=hu.formatPrefix;var _u=function(e,t,n,r){var o,i=ci(e,t,n);switch((r=fu(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lu(t)/3)))-lu(Math.abs(e)))}(i,a))||(r.precision=o),yu(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lu(t)-lu(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-lu(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return vu(r)};function Ou(e){var t=e.domain;return e.ticks=function(e){var n=t();return ai(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return _u(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,u=o[i],c=o[a];return c0?r=ui(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=ui(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[i]=Math.floor(u/r)*r,o[a]=Math.ceil(c/r)*r,t(o)):r<0&&(o[i]=Math.ceil(u*r)/r,o[a]=Math.floor(c*r)/r,t(o)),e},e}function ku(){var e=uu(eu,eu);return e.copy=function(){return iu(e,ku())},si.apply(e,arguments),Ou(e)}function Eu(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=bi.call(t,Za),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Eu(e).unknown(t)},e=arguments.length?bi.call(e,Za):[0,1],Ou(n)}var Su=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;pc)break;v.push(f)}}else for(;p=1;--s)if(!((f=l*s)c)break;v.push(f)}}else v=ai(p,d,Math.min(d-p,h)).map(n);return r?v.reverse():v},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!==typeof o&&(o=vu(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?r[o-1]:t[0],o=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return qu().domain([t,n]).range(i).unknown(e)},si.apply(Ou(a),arguments)}function Gu(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Jo(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=xi.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=xi.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Gu().domain(t).range(n).unknown(e)},si.apply(o,arguments)}var Xu=new Date,Ku=new Date;function Yu(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return u;do{u.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return Xu.setTime(+t),Ku.setTime(+r),e(Xu),e(Ku),Math.floor(n(Xu,Ku))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var Qu=Yu(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Qu.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Yu(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Qu:null};var Zu=Qu,Ju=(Qu.range,6e4),ec=6048e5,tc=Yu(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),nc=tc,rc=(tc.range,Yu(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*Ju)},function(e,t){return(t-e)/Ju},function(e){return e.getMinutes()})),oc=rc,ic=(rc.range,Yu(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Ju)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),ac=ic,uc=(ic.range,Yu(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ju)/864e5},function(e){return e.getDate()-1})),cc=uc;uc.range;function lc(e){return Yu(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ju)/ec})}var sc=lc(0),fc=lc(1),pc=lc(2),dc=lc(3),hc=lc(4),vc=lc(5),yc=lc(6),mc=(sc.range,fc.range,pc.range,dc.range,hc.range,vc.range,yc.range,Yu(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()})),gc=mc,bc=(mc.range,Yu(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));bc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Yu(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var xc=bc,wc=(bc.range,Yu(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ju)},function(e,t){return(t-e)/Ju},function(e){return e.getUTCMinutes()})),_c=wc,Oc=(wc.range,Yu(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})),kc=Oc,Ec=(Oc.range,Yu(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})),Sc=Ec;Ec.range;function jc(e){return Yu(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/ec})}var Tc=jc(0),Mc=jc(1),Cc=jc(2),Pc=jc(3),Ac=jc(4),Nc=jc(5),Rc=jc(6),Ic=(Tc.range,Mc.range,Cc.range,Pc.range,Ac.range,Nc.range,Rc.range,Yu(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),Dc=Ic,Lc=(Ic.range,Yu(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}));Lc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Yu(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var zc=Lc;Lc.range;function Fc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Bc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wc(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Uc,Vc,$c,Hc,qc={"-":"",_:" ",0:"0"},Gc=/^\s*\d+/,Xc=/^%/,Kc=/[\\^$*+?|[\]().{}]/g;function Yc(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function ul(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cl(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ll(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sl(e,t,n){var r=Gc.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dl(e,t,n){var r=Gc.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hl(e,t,n){var r=Gc.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vl(e,t,n){var r=Gc.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yl(e,t,n){var r=Xc.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ml(e,t,n){var r=Gc.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gl(e,t,n){var r=Gc.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function bl(e,t){return Yc(e.getDate(),t,2)}function xl(e,t){return Yc(e.getHours(),t,2)}function wl(e,t){return Yc(e.getHours()%12||12,t,2)}function _l(e,t){return Yc(1+cc.count(xc(e),e),t,3)}function Ol(e,t){return Yc(e.getMilliseconds(),t,3)}function kl(e,t){return Ol(e,t)+"000"}function El(e,t){return Yc(e.getMonth()+1,t,2)}function Sl(e,t){return Yc(e.getMinutes(),t,2)}function jl(e,t){return Yc(e.getSeconds(),t,2)}function Tl(e){var t=e.getDay();return 0===t?7:t}function Ml(e,t){return Yc(sc.count(xc(e),e),t,2)}function Cl(e,t){var n=e.getDay();return e=n>=4||0===n?hc(e):hc.ceil(e),Yc(hc.count(xc(e),e)+(4===xc(e).getDay()),t,2)}function Pl(e){return e.getDay()}function Al(e,t){return Yc(fc.count(xc(e),e),t,2)}function Nl(e,t){return Yc(e.getFullYear()%100,t,2)}function Rl(e,t){return Yc(e.getFullYear()%1e4,t,4)}function Il(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Yc(t/60|0,"0",2)+Yc(t%60,"0",2)}function Dl(e,t){return Yc(e.getUTCDate(),t,2)}function Ll(e,t){return Yc(e.getUTCHours(),t,2)}function zl(e,t){return Yc(e.getUTCHours()%12||12,t,2)}function Fl(e,t){return Yc(1+Sc.count(zc(e),e),t,3)}function Bl(e,t){return Yc(e.getUTCMilliseconds(),t,3)}function Wl(e,t){return Bl(e,t)+"000"}function Ul(e,t){return Yc(e.getUTCMonth()+1,t,2)}function Vl(e,t){return Yc(e.getUTCMinutes(),t,2)}function $l(e,t){return Yc(e.getUTCSeconds(),t,2)}function Hl(e){var t=e.getUTCDay();return 0===t?7:t}function ql(e,t){return Yc(Tc.count(zc(e),e),t,2)}function Gl(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ac(e):Ac.ceil(e),Yc(Ac.count(zc(e),e)+(4===zc(e).getUTCDay()),t,2)}function Xl(e){return e.getUTCDay()}function Kl(e,t){return Yc(Mc.count(zc(e),e),t,2)}function Yl(e,t){return Yc(e.getUTCFullYear()%100,t,2)}function Ql(e,t){return Yc(e.getUTCFullYear()%1e4,t,4)}function Zl(){return"+0000"}function Jl(){return"%"}function es(e){return+e}function ts(e){return Math.floor(+e/1e3)}!function(e){Uc=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,u=e.months,c=e.shortMonths,l=Zc(o),s=Jc(o),f=Zc(i),p=Jc(i),d=Zc(a),h=Jc(a),v=Zc(u),y=Jc(u),m=Zc(c),g=Jc(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:bl,e:bl,f:kl,H:xl,I:wl,j:_l,L:Ol,m:El,M:Sl,p:function(e){return o[+(e.getHours()>=12)]},Q:es,s:ts,S:jl,u:Tl,U:Ml,V:Cl,w:Pl,W:Al,x:null,X:null,y:Nl,Y:Rl,Z:Il,"%":Jl},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:Dl,e:Dl,f:Wl,H:Ll,I:zl,j:Fl,L:Bl,m:Ul,M:Vl,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:es,s:ts,S:$l,u:Hl,U:ql,V:Gl,w:Xl,W:Kl,x:null,X:null,y:Yl,Y:Ql,Z:Zl,"%":Jl},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:ll,e:ll,f:vl,H:fl,I:fl,j:sl,L:hl,m:cl,M:pl,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:ml,s:gl,S:dl,u:tl,U:nl,V:rl,w:el,W:ol,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:al,Y:il,Z:ul,"%":yl};function _(e,t){return function(n){var r,o,i,a=[],u=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Bc(Wc(i.y))).getUTCDay(),r=o>4||0===o?Mc.ceil(r):Mc(r),r=Sc.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Wc(i.y))).getDay(),r=o>4||0===o?fc.ceil(r):fc(r),r=cc.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Bc(Wc(i.y)).getUTCDay():t(Wc(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Bc(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,u=t.length,c=n.length;a=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in qc?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",Fc);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e,Bc);return t.toString=function(){return e},t}}}(e),Vc=Uc.format,Uc.parse,$c=Uc.utcFormat,Hc=Uc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||$c("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Hc("%Y-%m-%dT%H:%M:%S.%LZ");var ns=1e3,rs=60*ns,os=60*rs,is=24*os,as=7*is,us=30*is,cs=365*is;function ls(e){return new Date(e)}function ss(e){return e instanceof Date?+e:+new Date(+e)}function fs(e,t,n,r,o,i,a,u,c){var l=uu(eu,eu),s=l.invert,f=l.domain,p=c(".%L"),d=c(":%S"),h=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),m=c("%b %d"),g=c("%B"),b=c("%Y"),x=[[a,1,ns],[a,5,5*ns],[a,15,15*ns],[a,30,30*ns],[i,1,rs],[i,5,5*rs],[i,15,15*rs],[i,30,30*rs],[o,1,os],[o,3,3*os],[o,6,6*os],[o,12,12*os],[r,1,is],[r,2,2*is],[n,1,as],[t,1,us],[t,3,3*us],[e,1,cs]];function w(u){return(a(u)1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware;if(void 0!==e){if(n){var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{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}}]),e}();Xs.EPS=1e-4;var Ks,Ys,Qs,Zs=function(){function e(t){Us(this,e),this.scales=Ws()(t,Xs.create),Object.assign(this,this.scales)}return $s(e,null,[{key:"create",value:function(e){return new this(e)}}]),$s(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return Ws()(e,function(e,t){return r[t].apply(e,{bandAware:n})})}},{key:"isInRange",value:function(e){var t=this.scales;return Fs()(e,function(e,n){return t[n].isInRange(e)})}}]),e}();function Js(e){return(Js="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ef(){return(ef=Object.assign||function(e){for(var t=1;t=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var s=[],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(e+c*s[0],",").concat(t)),i+="L ".concat(e+n-c*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+u*s[1])),i+="L ".concat(e+n,",").concat(t+r-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(e+n-c*s[2],",").concat(t+r)),i+="L ".concat(e+c*s[3],",").concat(t+r),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+u*p,"\n L ").concat(e+n,",").concat(t+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-u*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Of=v((sf=lf=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:p,animationEasing:f,isActive:v},function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return s.a.createElement(Tr,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},s.a.createElement("path",hf({},Z(e.props),ee(e.props),{className:y,d:_f(o,i,n,r,a),ref:function(t){e.node=t}})))}):s.a.createElement("path",hf({},Z(this.props),ee(this.props),{className:y,d:_f(n,r,o,i,a)}))}}])&&vf(n.prototype,r),o&&vf(n,o),t}(),lf.displayName="Rectangle",lf.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lf(e,t){for(var n=0;n=0});if(i&&i.length){var a=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=qf(t,n,0),o=E()(r)?[Ho()(r),Vo()(r)]:[r,r],i=a.reduce(function(e,n){var r=qf(t,n,0),i=o[0]-Math.abs(E()(r)?r[0]:r),a=o[1]+Math.abs(E()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},Qf=function(e,t,n,r){var o=t.map(function(t){var o=t.props.dataKey;return"number"===n&&o&&Yf(e,t,o)||Gf(e,o,n,r)});if("number"===n)return o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return o.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:ki(),realScaleType:"point"}:"category"===o?{scale:Oi(),realScaleType:"band"}:{scale:ku(),realScaleType:"linear"};if(w()(n)){var c="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[c]||ki)(),realScaleType:r[c]?c:"point"}}return a()(n)?{scale:n}:{scale:ki(),realScaleType:"point"}},rp=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),u=e(t[n-1]);(ai||ui)&&e.domain([t[0],t[n-1]])}},op={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=o,e[a][n][1]=o+u,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+u,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=2){for(var n=Cr()(t,function(e){return e.coordinate}),r=1/0,o=1,i=n.length;oi&&(c=2*Math.PI-c),{radius:a,angle:bp(c),angleInRadian:c}},_p=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},Op=function(e,t){var n=e.x,r=e.y,o=wp({x:n,y:r},t),i=o.radius,a=o.angle,u=t.innerRadius,c=t.outerRadius;if(ic)return!1;if(0===i)return!0;var l,s=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d=f&&d<=p}else{for(;d>f;)d-=360;for(;d=p&&d<=f}return l?yp({},t,{radius:i,angle:_p(d,t)}):null};function kp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===i?(r=h+w*u,o=y):"insideEnd"===i?(r=v-w*u,o=!y):"end"===i&&(r=v+w*u,o=y),o=x<=0?o:!o;var _=xp(l,f,g,r),O=xp(l,f,g,r+359*(o?1:-1)),k="M".concat(_.x,",").concat(_.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(O.x,",").concat(O.y),E=b()(e.id)?L("recharts-radial-line-"):e.id;return s.a.createElement("text",Ep({},n,{dominantBaseline:"central",className:m()("recharts-radial-bar-label",c)}),s.a.createElement("defs",null,s.a.createElement("path",{id:E,d:k})),s.a.createElement("textPath",{xlinkHref:"#".concat(E)},t))},Ap=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,u=t.outerRadius,c=(t.startAngle+t.endAngle)/2;if("outside"===r){var l=xp(o,i,u+n,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=xp(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},Np=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,a=t.width,u=t.height,c=u>=0?1:-1;return"top"===r?{x:o+a/2,y:i-c*n,textAnchor:"middle",verticalAnchor:c>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+u+c*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+c*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+u-c*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+c*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+c*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+u-c*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+u-c*n,textAnchor:"end",verticalAnchor:"end"}:O()(r)&&(R(r.x)||N(r.x))&&(R(r.y)||N(r.y))?{x:o+z(r.x,a),y:i+z(r.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+u/2,textAnchor:"middle",verticalAnchor:"middle"}},Rp=function(e){return R(e.cx)};function Ip(e){var t,n=e.viewBox,r=e.position,o=e.value,i=e.children,u=e.content,c=e.className,f=void 0===c?"":c;if(!n||b()(o)&&b()(i)&&!Object(l.isValidElement)(u)&&!a()(u))return null;if(Object(l.isValidElement)(u))return Object(l.cloneElement)(u,e);if(a()(u)){if(t=u(e),Object(l.isValidElement)(t))return t}else t=Cp(e);var p=Rp(n),d=Z(e);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return Pp(e,t,d);var h=p?Ap(e):Np(e);return s.a.createElement(Wo,Ep({className:m()("recharts-label",f)},d,h),t)}Ip.displayName="Label",Ip.defaultProps={offset:5},Ip.propTypes=Mp;var Dp=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,u=e.radius,c=e.innerRadius,l=e.outerRadius,s=e.x,f=e.y,p=e.top,d=e.left,h=e.width,v=e.height,y=e.clockWise;if(R(h)&&R(v)){if(R(s)&&R(f))return{x:s,y:f,width:h,height:v};if(R(p)&&R(d))return{x:p,y:d,width:h,height:v}}return R(s)&&R(f)?{x:s,y:f,width:0,height:0}:R(t)&&R(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},Lp=function(e,t){return e?!0===e?s.a.createElement(Ip,{key:"label-implicit",viewBox:t}):I(e)?s.a.createElement(Ip,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===Ip?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):s.a.createElement(Ip,{key:"label-implicit",content:e,viewBox:t}):a()(e)?s.a.createElement(Ip,{key:"label-implicit",content:e,viewBox:t}):O()(e)?s.a.createElement(Ip,Ep({viewBox:t},e,{key:"label-implicit"})):null:null};Ip.parseViewBox=Dp,Ip.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Dp(e),i=Y(r,Ip).map(function(e,n){return Object(l.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});if(!n)return i;var a=Lp(e.label,t||o);return[a].concat(kp(i))};var zp,Fp,Bp,Wp=Ip;function Up(e){return(Up="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vp(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function od(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rd={id:p.a.string,data:p.a.arrayOf(p.a.object),valueAccessor:p.a.func,clockWise:p.a.bool,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func])},Id={valueAccessor:function(e){return E()(e.value)?Td()(e.value):e.value}};function Dd(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=Nd(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?s.a.createElement(xo,{className:"recharts-label-list"},t.map(function(e,t){var u=b()(r)?n(e,t):qf(e&&e.payload,r),c=b()(i)?{}:{id:"".concat(i,"-").concat(t)};return s.a.createElement(Wp,Cd({},Z(e),a,c,{index:t,value:u,viewBox:Wp.parseViewBox(b()(o)?e:Pd({},e,{clockWise:o})),key:"label-".concat(t)}))})):null}Dd.propTypes=Rd,Dd.displayName="LabelList";var Ld=function(e,t){return e?!0===e?s.a.createElement(Dd,{key:"labelList-implicit",data:t}):s.a.isValidElement(e)||a()(e)?s.a.createElement(Dd,{key:"labelList-implicit",data:t,content:e}):O()(e)?s.a.createElement(Dd,Cd({data:t},e,{key:"labelList-implicit"})):null:null};Dd.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Y(r,Dd).map(function(e,n){return Object(l.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});if(!n)return o;var i=Ld(e.label,t);return[i].concat(Md(o))},Dd.defaultProps=Id;var zd,Fd,Bd,Wd=Dd;function Ud(e){return(Ud="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vd(){return(Vd=Object.assign||function(e){for(var t=1;t0||!pn()(u,r)||!pn()(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,u=e.xAxis,c=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,v=1===r.length,y=m()("recharts-area",o),g=u&&u.allowDataOverflow||c&&c.allowDataOverflow,x=b()(d)?this.id:d;return s.a.createElement(xo,{className:y},g?s.a.createElement("defs",null,s.a.createElement("clipPath",{id:"clipPath-".concat(x)},s.a.createElement("rect",{x:a,y:i,width:l,height:parseInt(f,10)}))):null,v?null:this.renderArea(g,x),(n||v)&&this.renderDots(g,x),(!p||h)&&Wd.renderCallByParent(this.props,r))}}])&&qd(n.prototype,r),o&&qd(n,o),t}(),Fd.displayName="Area",Fd.propTypes=$d({},$,H,{className:p.a.string,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]).isRequired,type:p.a.oneOfType([p.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),p.a.func]),unit:p.a.oneOfType([p.a.string,p.a.number]),name:p.a.oneOfType([p.a.string,p.a.number]),yAxisId:p.a.oneOfType([p.a.string,p.a.number]),xAxisId:p.a.oneOfType([p.a.string,p.a.number]),yAxis:p.a.object,xAxis:p.a.object,stackId:p.a.oneOfType([p.a.number,p.a.string]),legendType:p.a.oneOf(G),tooltipType:p.a.oneOf(X),connectNulls:p.a.bool,activeDot:p.a.oneOfType([p.a.object,p.a.element,p.a.func,p.a.bool]),dot:p.a.oneOfType([p.a.func,p.a.element,p.a.object,p.a.bool]),label:p.a.oneOfType([p.a.func,p.a.element,p.a.object,p.a.bool]),hide:p.a.bool,layout:p.a.oneOf(["horizontal","vertical"]),baseLine:p.a.oneOfType([p.a.number,p.a.array]),isRange:p.a.bool,points:p.a.arrayOf(p.a.shape({x:p.a.number,y:p.a.number,value:p.a.oneOfType([p.a.number,p.a.array])})),onAnimationStart:p.a.func,onAnimationEnd:p.a.func,animationId:p.a.number,isAnimationActive:p.a.bool,animationBegin:p.a.number,animationDuration:p.a.number,animationEasing:p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:p.a.string}),Fd.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!oe(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Fd.getBaseValue=function(e,t,n){var r=e.layout,o=e.baseValue;if(R(o))return o;var i="horizontal"===r?n:t,a=i.scale.domain();if("number"===i.type){var u=Math.max(a[0],a[1]),c=Math.min(a[0],a[1]);return"dataMin"===o?c:"dataMax"===o?u:u<0?u:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===o?a[0]:"dataMax"===o?a[1]:a[0]},Fd.getComposedData=function(e){var t,n=e.props,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,u=e.bandSize,c=e.dataKey,l=e.stackedData,s=e.dataStartIndex,f=e.displayedData,p=e.offset,d=n.layout,h=l&&l.length,v=Jd.getBaseValue(n,r,o),y=!1,m=f.map(function(e,t){var n;return h?n=l[s+t]:(n=qf(e,c),E()(n)?y=!0:n=[v,n]),"horizontal"===d?{x:up({axis:r,ticks:i,bandSize:u,entry:e,index:t}),y:b()(n[1])?null:o.scale(n[1]),value:n,payload:e}:{x:b()(n[1])?null:r.scale(n[1]),y:up({axis:o,ticks:a,bandSize:u,entry:e,index:t}),value:n,payload:e}});return t=h||y?m.map(function(e){return"horizontal"===d?{x:e.x,y:b()(j()(e,"value[0]"))?null:o.scale(j()(e,"value[0]"))}:{x:b()(j()(e,"value[0]"))?null:r.scale(j()(e,"value[0]")),y:e.y}}):"horizontal"===d?o.scale(v):r.scale(v),$d({points:m,baseLine:t,layout:d,isRange:y},p)},Fd.renderDotItem=function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(Ls,Vd({},t,{className:"recharts-area-dot"}))},zd=Bd))||zd,eh=Jd;function th(e){return(th="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nh(e,t){for(var n=0;n180),",").concat(+(i>u),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=xp(t,n,r,i),p=xp(t,n,r,u);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(t,",").concat(n," Z");return s},Hh=v((Rh=Nh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bh(this,Wh(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uh(e,t)}(t,l["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,f=e.className;if(o0&&Math.abs(c-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,s=A(l-c),f=Vh({cx:t,cy:n,radius:o,angle:c,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,d=f.lineTangency,h=f.theta,v=Vh({cx:t,cy:n,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:u}),y=v.circleTangency,m=v.lineTangency,g=v.theta,b=Math.abs(c-l)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):$h({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var w=Vh({cx:t,cy:n,radius:r,angle:c,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),_=w.circleTangency,O=w.lineTangency,k=w.theta,E=Vh({cx:t,cy:n,radius:r,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),S=E.circleTangency,j=E.lineTangency,T=E.theta,M=Math.abs(c-l)-k-T;if(M<0)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(O.x,",").concat(O.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(v,h/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:c,endAngle:l}):$h({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l}),s.a.createElement("path",zh({},Z(this.props),ee(this.props),{className:d,d:p}))}}])&&Fh(n.prototype,r),o&&Fh(n,o),t}(),Nh.displayName="Sector",Nh.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qh(e,t){for(var n=0;n=2?A(y[1].coordinate-y[0].coordinate):1;if(1===b?(n="width"===v?f:p,r="width"===v?f+d:p+h):(n="width"===v?f+d:p+h,r="width"===v?f:p),t){var x=o[g-1],w=a()(i)?i(x.value):x.value,_=Co(w)[v]+m,O=b*(x.coordinate+b*_/2-r);y[g-1]=x=Xh({},x,{tickCoord:O>0?x.coordinate-O*b:x.coordinate}),b*(x.tickCoord-b*_/2-n)>=0&&b*(x.tickCoord+b*_/2-r)<=0&&(r=x.tickCoord-b*(_/2+l),y[g-1]=Xh({},x,{isShow:!0}))}for(var k=t?g-1:g,E=0;E=0&&b*(S.tickCoord+b*T/2-r)<=0&&(n=S.tickCoord+b*(T/2+l),y[E]=Xh({},S,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,u=e.orientation,c=e.minTickGap,l=e.unit,s=i.x,f=i.y,p=i.width,d=i.height,h="top"===u||"bottom"===u?"width":"height",v=l&&"width"===h?Co(l)[h]:0,y=(r||[]).slice(),m=y.length,g=m>=2?A(y[1].coordinate-y[0].coordinate):1;1===g?(t="width"===h?s:f,n="width"===h?s+p:f+d):(t="width"===h?s+p:f+d,n="width"===h?s:f);for(var b=m-1;b>=0;b--){var x=y[b],w=a()(o)?o(x.value):x.value,_=Co(w)[h]+v;if(b===m-1){var O=g*(x.coordinate+g*_/2-n);y[b]=x=Xh({},x,{tickCoord:O>0?x.coordinate-O*g:x.coordinate})}else y[b]=x=Xh({},x,{tickCoord:x.coordinate});g*(x.tickCoord-g*_/2-t)>=0&&g*(x.tickCoord+g*_/2-n)<=0&&(n=x.tickCoord-g*(_/2+c),y[b]=Xh({},x,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(Wo,Gh({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=Yh(e,["viewBox"]),o=this.props,i=o.viewBox,a=Yh(o,["viewBox"]);return!d(n,i)||!d(r,a)||!d(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,u=this.props,c=u.x,l=u.y,s=u.width,f=u.height,p=u.orientation,d=u.tickSize,h=u.mirror,v=u.tickMargin,y=h?-1:1,m=e.tickSize||d,g=R(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=l+!h*f)-y*m)-y*v,i=g;break;case"left":r=o=e.coordinate,i=(t=(n=c+!h*s)-y*m)-y*v,a=g;break;case"right":r=o=e.coordinate,i=(t=(n=c+h*s)+y*m)+y*v,a=g;break;default:t=n=e.coordinate,a=(r=(o=l+h*f)+y*m)+y*v,i=g}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,u=e.mirror,c=Xh({},Z(this.props),{fill:"none"},Z(a));if("top"===i||"bottom"===i){var l="top"===i&&!u||"bottom"===i&&u;c=Xh({},c,{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f="left"===i&&!u||"right"===i&&u;c=Xh({},c,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s.a.createElement("line",Gh({className:"recharts-cartesian-axis-line"},c))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,u=r.tick,c=r.tickFormatter,l=r.unit,f=t.getTicks(Xh({},this.props,{ticks:e})),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Z(this.props),v=Z(u),y=Xh({},h,{fill:"none"},Z(o)),m=f.map(function(e,t){var r=n.getTickLineCoord(e),m=r.line,g=r.tick,b=Xh({textAnchor:p,verticalAnchor:d},h,{stroke:"none",fill:i},v,g,{index:t,payload:e,visibleTicksCount:f.length});return s.a.createElement(xo,Gh({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},ne(n.props,e,t)),o&&s.a.createElement("line",Gh({className:"recharts-cartesian-axis-tick-line"},y,m)),u&&n.constructor.renderTickItem(u,b,"".concat(a()(c)?c(e.value):e.value).concat(l||"")))});return s.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,l=Yh(u,["ticks"]),f=c;return a()(o)&&(f=c&&c.length>0?o(this.props):o(l)),n<=0||r<=0||!f||!f.length?null:s.a.createElement(xo,{className:m()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(f),Wp.renderCallByParent(this.props))}}])&&Qh(n.prototype,r),o&&Qh(n,o),t}();tv.displayName="CartesianAxis",tv.propTypes=Xh({},$,H,{className:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number,orientation:p.a.oneOf(["top","bottom","left","right"]),viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),tick:p.a.oneOfType([p.a.bool,p.a.func,p.a.object,p.a.element]),axisLine:p.a.oneOfType([p.a.bool,p.a.object]),tickLine:p.a.oneOfType([p.a.bool,p.a.object]),mirror:p.a.bool,tickMargin:p.a.number.isRequired,minTickGap:p.a.number,ticks:p.a.array,tickSize:p.a.number,stroke:p.a.string,tickFormatter:p.a.func,ticksGenerator:p.a.func,interval:p.a.oneOfType([p.a.number,p.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),tv.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 nv=tv;function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ov,iv,av,uv=["Webkit","Moz","O","ms"],cv=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=uv.reduce(function(e,r){return function(e){for(var t=1;t0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(vv(vv(n)),"startX"),endX:n.handleTravellerDragStart.bind(vv(vv(n)),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hv(e,t)}(t,l["Component"]),n=t,o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,u=n.updateId;(e.data!==r||e.updateId!==u)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(t,n),u=Math.max(t,n),c=this.constructor.getIndexInRange(this.scaleValues,a),l=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:c-c%o,endIndex:l===i?i:l-l%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=qf(n[e],o,e);return a()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+u-c-o,a+u-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,u=this.state[o],c=this.props,l=c.x,s=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,v={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+s-f-u):y<0&&(y=Math.max(y,l-u)),v[o]=u+y;var m=this.getIndex(v),g=m.startIndex,b=m.endIndex;this.setState((fv(t={},o,u+y),fv(t,"brushMoveStartX",e.pageX),t),function(){p&&function(){var e=h.length-1;return"startX"===o&&(i>a?g%d===0:b%d===0)||ia?b%d===0:g%d===0)||i>a&&b===e}()&&p(m)})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,u=e.travellerWidth,c=n.length;return this.scale=ki().domain(_h()(0,c)).range([i,i+a-u]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,u=e.padding,c=l.Children.only(a);return c?s.a.cloneElement(c,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,u=Math.floor(r+i/2)-1,c=Math.max(e,this.props.x);return s.a.createElement(xo,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},s.a.createElement("rect",{x:c,y:r,width:o,height:i,fill:a,stroke:"none"}),s.a.createElement("line",{x1:c+1,y1:u,x2:c+o-1,y2:u,fill:"none",stroke:"#fff"}),s.a.createElement("line",{x1:c+1,y1:u+2,x2:c+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return s.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:a};return s.a.createElement(xo,{className:"recharts-brush-texts"},s.a.createElement(Wo,sv({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+o/2},f),this.getTextOfTick(t)),s.a.createElement(Wo,sv({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,u=e.height,c=this.state,l=c.startX,f=c.endX,p=c.isTextActive,d=c.isSlideMoving,h=c.isTravellerMoving;if(!t||!t.length||!R(o)||!R(i)||!R(a)||!R(u)||a<=0||u<=0)return null;var v=m()("recharts-brush",n),y=1===s.a.Children.count(r),g=cv("userSelect","none");return s.a.createElement(xo,{className:v,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(l,f),this.renderTraveller(l,"startX"),this.renderTraveller(f,"endX"),(p||d||h)&&this.renderText())}}])&&pv(n.prototype,r),o&&pv(n,o),t}(),iv.displayName="Brush",iv.propTypes={className:p.a.string,fill:p.a.string,stroke:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number.isRequired,travellerWidth:p.a.number,gap:p.a.number,padding:p.a.shape({top:p.a.number,right:p.a.number,bottom:p.a.number,left:p.a.number}),dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]),data:p.a.array,startIndex:p.a.number,endIndex:p.a.number,tickFormatter:p.a.func,children:p.a.node,onChange:p.a.func,updateId:p.a.oneOfType([p.a.string,p.a.number]),leaveTimeOut:p.a.number},iv.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3},ov=av))||ov,mv=n(181),gv=new(n.n(mv).a);gv.setMaxListeners&&gv.setMaxListeners(10);var bv="recharts.syncMouseEvents";function xv(e){return(xv="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _v(){return(_v=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Jf(nv.getTicks(kv({},nv.defaultProps,t,{ticks:ep(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Jf(nv.getTicks(kv({},nv.defaultProps,t,{ticks:ep(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return ep(e,!0)},n.tooltipTicksGenerator=function(e){var t=F(e),n=ep(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Cr()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:hp(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,u=r.offset;if(!e||!e.props.cursor||!o||!i)return null;var c,s=n.props.layout,f=Sd;if("ScatterChart"===t)c=i,f=Ih;else if("BarChart"===t)c=n.getCursorRectangle(),f=Of;else if("radial"===s){var p=n.getCursorPoints(),d=p.cx,h=p.cy,v=p.radius;c={cx:d,cy:h,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:v,outerRadius:v},f=Hh}else c={points:n.getCursorPoints()},f=Sd;var y=e.key||"_recharts-cursor",m=kv({stroke:"#ccc",pointerEvents:"none"},u,c,Z(e.props.cursor),{payload:a,key:y,className:"recharts-tooltip-cursor"});return Object(l.isValidElement)(e.props.cursor)?Object(l.cloneElement)(e.props.cursor,m):Object(l.createElement)(f,m)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return Object(l.cloneElement)(e,kv({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:ep(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=n.props,u=a.width,c=a.height,s=F(r),f=xh()(o,function(e){return Fs()(e.domain,Number.isFinite)})||F(o),p=e.props||{};return Object(l.cloneElement)(e,{key:e.key||"grid",x:R(p.x)?p.x:i.left,y:R(p.y)?p.y:i.top,width:R(p.width)?p.width:i.width,height:R(p.height)?p.height:i.height,xAxis:s,yAxis:f,offset:i,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=F(r),a=F(o),u=a.cx,c=a.cy,s=a.innerRadius,f=a.outerRadius;return Object(l.cloneElement)(e,{polarAngles:ep(a,!0).map(function(e){return e.coordinate}),polarRadius:ep(i,!0).map(function(e){return e.coordinate}),cx:u,cy:c,innerRadius:s,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,u=i.dataStartIndex,c=i.dataEndIndex,s=i.updateId;return Object(l.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:tp(n.handleBrushChange,null,e.props.onChange),data:o,x:R(e.props.x)?e.props.x:a.left,y:R(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:R(e.props.width)?e.props.width:a.width,startIndex:u,endIndex:c,updateId:"brush-".concat(s)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=Mv(Mv(n)).clipPathId,i=n.state,a=i.xAxisMap,u=i.yAxisMap,c=i.offset,s=e.props,f=s.xAxisId,p=s.yAxisId;return Object(l.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:u[p],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i,a,u=Object(l.cloneElement)(e,o.props),c=n.state,s=c.isTooltipActive,f=c.tooltipAxis,p=c.activeTooltipIndex,d=c.activeLabel,h=n.props.children,v=Q(h,to),y=o.props,m=y.points,g=y.isRange,x=y.baseLine,w=o.item.props,_=w.activeDot;if(!w.hide&&s&&v&&_&&p>=0&&(f.dataKey&&!f.allowDuplicatedCategory?(i=W(m,"payload.".concat(f.dataKey),d),a=g&&x&&W(x,"payload.".concat(f.dataKey),d)):(i=m[p],a=g&&x&&x[p]),!b()(i)))return[u].concat(Ov(n.renderActivePoints({item:o,activePoint:i,basePoint:a,childIndex:p,isRange:g})));return g?[u,null,null]:[u,null]},n.renderCustomized=function(e){return Object(l.cloneElement)(e,kv({},n.props,n.state))};var o=n.constructor.createDefaultState(e);return n.state=kv({},o,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(kv({props:e},o,{updateId:0}))),n.uniqueChartId=b()(e.id)?L("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=kh()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var f,p,h;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tv(e,t)}(r,l["Component"]),f=r,h=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(l.isValidElement)(e)?Object(l.cloneElement)(e,t):a()(e)?e(t):s.a.createElement(Ls,t),s.a.createElement(xo,{className:"recharts-active-dot",key:t.key},n)}}],(p=[{key:"componentDidMount",value:function(){b()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,u=n.layout,c=n.stackOffset,l=n.margin,s=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===u&&e.stackOffset===c&&d(e.margin,l)){if(!ue(e.children,o)){var f=b()(e.data)?s+1:s;this.setState(function(n){return kv({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(kv({props:e},n,{updateId:f})))})}}else{var p=this.constructor.createDefaultState(e);this.setState(kv({},p,{updateId:s+1},this.updateStateOfAxisMapsOffsetAndStackGroups(kv({props:e},p,{updateId:s+1}))))}b()(this.props.syncId)&&!b()(e.syncId)&&this.addListener(),!b()(this.props.syncId)&&b()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){b()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,l=e.children,s="".concat(r,"Id"),f=Y(l,o),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,u=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,s=e.layout,f=e.children,p=e.stackOffset,d=Zf(s,i);return r.reduce(function(t,r){var h=r.props,v=h.type,y=h.dataKey,m=h.allowDataOverflow,g=h.allowDuplicatedCategory,x=h.scale,w=h.ticks,_=r.props[a],O=n.constructor.getDisplayedData(e,{graphicalItems:o.filter(function(e){return e.props[a]===_}),dataStartIndex:c,dataEndIndex:l}),k=O.length;if(!t[_]){var S,j,T;if(y){if(S=Gf(O,y,v),"category"===v&&d){var M=function(e){if(!E()(e))return!1;for(var t=e.length,n={},r=0;r=0?e:Ov(e).concat([t])},[]))}else if("category"===v)S=g?S.filter(function(e){return""!==e&&!b()(e)}):vp(r.props.domain,S,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:Ov(e).concat([t])},[]);else if("number"===v){var C=function(e,t,n,r){var o=t.map(function(t){return Yf(e,t,n,r)}).filter(function(e){return!b()(e)});return o&&o.length?o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(O,o.filter(function(e){return e.props[a]===_&&!e.props.hide}),y,i);C&&(S=C)}!d||"number"!==v&&"auto"===x||(T=Gf(O,y,"category"))}else S=d?_h()(0,k):u&&u[_]&&u[_].hasStack&&"number"===v?"expand"===p?[0,1]:sp(u[_].stackGroups,c,l):Qf(O,o.filter(function(e){return e.props[a]===_&&!e.props.hide}),v,!0);return"number"===v&&(S=lp(f,S,_,i,w),r.props.domain&&(S=dp(r.props.domain,S,m))),kv({},t,Ev({},_,kv({},r.props,{axisType:i,domain:S,categoricalDomain:T,duplicateDomain:j,originalDomain:r.props.domain,isCategorial:d,layout:s})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,s=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),p=f.length,d=Zf(l,o),h=-1;return n.reduce(function(e,t){var v,y=t.props[i];return e[y]?e:(h++,d?v=_h()(0,p):a&&a[y]&&a[y].hasStack?(v=sp(a[y].stackGroups,u,c),v=lp(s,v,y,o)):(v=dp(r.defaultProps.domain,Qf(f,n.filter(function(e){return e.props[i]===y&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),v=lp(s,v,y,o)),kv({},e,Ev({},y,kv({axisType:o},r.defaultProps,{hide:!0,orientation:Cv[o]&&Cv[o][h%2],domain:v,originalDomain:r.defaultProps.domain,isCategorial:d,layout:l}))))},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find(function(e){return e&&e.index===t});if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return kv({},n,xp(n.cx,n.cy,a,i),{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return kv({},n,xp(n.cx,n.cy,u,c),{angle:c,radius:u})}return Pv}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,i=r.xAxisMap,a=r.yAxisMap;if("axis"!==o&&i&&a){var u=F(i).scale,c=F(a).scale;return kv({},t,{xValue:u&&u.invert?u.invert(t.chartX):null,yValue:c&&c.invert?c.invert(t.chartY):null})}var l=this.state,s=l.orderedTooltipTicks,f=l.tooltipAxis,p=l.tooltipTicks,d=function(e,t,n,r){var o=-1,i=t.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,u=0;u0?n[u-1].coordinate:n[i-1].coordinate,l=n[u].coordinate,s=u>=i-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if(A(l-c)!==A(s-l)){var p=[];if(A(s-l)===A(a[1]-a[0])){f=s;var d=l+a[1]-a[0];p[0]=Math.min(d,(d+c)/2),p[1]=Math.max(d,(d+c)/2)}else{f=c;var h=s+a[1]-a[0];p[0]=Math.min(l,(h+l)/2),p[1]=Math.max(l,(h+l)/2)}var v=[Math.min(l,(f+l)/2),Math.max(l,(f+l)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){o=n[u].index;break}}else{var y=Math.min(c,s),m=Math.max(c,s);if(e>(y+l)/2&&e<=(m+l)/2){o=n[u].index;break}}}else for(var g=0;g0&&g(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===i-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){o=t[g].index;break}}else o=0;return o}(this.calculateTooltipPos(n),s,p,f);if(d>=0&&p){var h=p[d]&&p[d].value;return kv({},t,{activeTooltipIndex:d,activeLabel:h,activePayload:this.getTooltipContent(d,h),activeCoordinate:this.getActiveCoordinate(s,d,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,u=r.props,c=u.dataKey,l=u.name,s=u.unit,f=u.formatter,p=u.data,d=u.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?W(p||i,o.dataKey,t):i[e])?Ov(n).concat([kv({},Z(r),{dataKey:c,unit:s,formatter:f,name:l||c,color:Xf(r),value:qf(a,c),type:d,payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,a=t.offset,u=t.updateId,c=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,v=this.constructor.getAxisNameByLayout(f),y=v.numericAxisName,m=v.cateAxisName,g=this.constructor.hasBar(r),x=g&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,u=i.length;a=0});if(v&&v.length){var y=v[0].props.barSize,m=v[0].props[h];o[m]||(o[m]=[]),o[m].push({item:v[0],stackList:v.slice(1),barSize:b()(y)?t:y})}}return o}({barSize:s,stackGroups:o}),w=[];return r.forEach(function(r,s){var v,_=n.constructor.getDisplayedData(e,{dataStartIndex:c,dataEndIndex:l},r),O=r.props,k=O.dataKey,E=O.maxBarSize,S=r.props["".concat(y,"Id")],j=r.props["".concat(m,"Id")],T=i.reduce(function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=i&&i[a];return kv({},e,(Ev(o={},n.axisType,u),Ev(o,"".concat(n.axisType,"Ticks"),ep(u)),o))},{}),M=T[m],C=T["".concat(m,"Ticks")],P=o&&o[S]&&o[S].hasStack&&function(e,t){var n=e.props.stackId;if(I(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null}(r,o[S].stackGroups),A=hp(M,C),N=b()(E)?h:E,R=g&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,u=i.length;if(u<1)return null;var c,l=z(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var s=!1,f=r/u,p=i.reduce(function(e,t){return e+t.barSize||0},0);(p+=(u-1)*l)>=r&&(p-=(u-1)*l,l=0),p>=r&&f>0&&(s=!0,p=u*(f*=.9));var d={offset:((r-p)/2>>0)-l,size:0};c=i.reduce(function(e,t){var n=Vf(e).concat([{item:t.item,position:{offset:d.offset+d.size+l,size:s?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:d})}),n},[])}else{var h=z(n,r,0,!0);r-2*h-(u-1)*l<=0&&(l=0);var v=(r-2*h-(u-1)*l)/u;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;c=i.reduce(function(e,t,n){var r=Vf(e).concat([{item:t.item,position:{offset:h+(v+l)*n+(v-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},[])}return c}({barGap:p,barCategoryGap:d,bandSize:A,sizeList:x[j],maxBarSize:N}),D=r&&r.type&&r.type.getComposedData;D&&w.push({props:kv({},D(kv({},T,{displayedData:_,props:e,dataKey:k,item:r,bandSize:A,barPosition:R,offset:a,stackedData:P,layout:f,dataStartIndex:c,dataEndIndex:l,onItemMouseLeave:tp(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:tp(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(v={key:r.key||"item-".concat(s)},Ev(v,y,T[y]),Ev(v,m,T[m]),Ev(v,"animationId",u),v)),childIndex:se(r,e.children),item:r})}),w}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,u=i.offset;if("horizontal"===o)n=e=a.x,t=u.top,r=u.top+u.height;else if("vertical"===o)r=t=a.y,e=u.left,n=u.left+u.width;else if(!b()(a.cx)||!b()(a.cy)){if("centric"!==o){var c=a.cx,l=a.cy,s=a.radius,f=a.startAngle,p=a.endAngle;return{points:[xp(c,l,s,f),xp(c,l,s,p)],cx:c,cy:l,radius:s,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,v=a.innerRadius,y=a.outerRadius,m=a.angle,g=xp(d,h,v,m),x=xp(d,h,y,m);e=g.x,t=g.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var u=F(i);return Op({x:e,y:t},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Q(e,to)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return kv({},ee(this.props,this.handleOuterEvent),t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,a=e.dataStartIndex,u=e.dataEndIndex,l=e.updateId;if(!re({props:o}))return null;var s=o.children,f=o.layout,p=o.stackOffset,d=o.data,h=o.reverseStackOrder,v=this.constructor.getAxisNameByLayout(f),y=v.numericAxisName,m=v.cateAxisName,g=Y(s,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce(function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],u=e[a]||{hasStack:!1,stackGroups:{}};if(I(i)){var c=u.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),u.hasStack=!0,u.stackGroups[i]=c}else u.stackGroups[L("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return $f({},e,Hf({},a,u))},{});return Object.keys(a).reduce(function(t,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(t,i){var a=u.stackGroups[i];return $f({},t,Hf({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:ip(e,a.items,o)}))},{})),$f({},t,Hf({},i,u))},{})}(d,g,"".concat(y,"Id"),"".concat(m,"Id"),p,h),x=i.reduce(function(e,t){return kv({},e,Ev({},"".concat(t.axisType,"Map"),r.getAxisMap(o,kv({},t,{graphicalItems:g,stackGroups:t.axisType===y&&b,dataStartIndex:a,dataEndIndex:u}))))},{}),w=this.calculateOffset(kv({},x,{props:o,graphicalItems:g}));Object.keys(x).forEach(function(e){x[e]=c(o,x[e],w,e.replace("Map",""),t)});var _=x["".concat(m,"Map")],O=this.tooltipTicksGenerator(_),k=this.getFormatItems(o,kv({},x,{dataStartIndex:a,dataEndIndex:u,updateId:l,graphicalItems:g,stackGroups:b,offset:w}));return kv({formatedGraphicalItems:k,graphicalItems:g,offset:w,stackGroups:b},O,x)}},{key:"addListener",value:function(){gv.on(bv,this.handleReceiveSyncEvent),gv.setMaxListeners&&gv._maxListeners&&gv.setMaxListeners(gv._maxListeners+1)}},{key:"removeListener",value:function(){gv.removeListener(bv,this.handleReceiveSyncEvent),gv.setMaxListeners&&gv._maxListeners&&gv.setMaxListeners(gv._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,u=t.width,c=t.height,l=t.children,s=t.margin||{},f=Q(l,yv),p=Q(l,sn),d=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:kv({},e,Ev({},r,e[r]+n.width))},{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:kv({},e,Ev({},r,e[r]+n.height))},{top:s.top||0,bottom:s.bottom||0}),v=kv({},h,d),y=v.bottom;return f&&(v.bottom+=f.props.height||yv.defaultProps.height),p&&this.legendInstance&&(v=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,u=n.margin,c=i-(u.left||0)-(u.right||0),l=a-(u.top||0)-(u.bottom||0),s=Kf({children:o,items:t,legendWidth:c,legendHeight:l}),f=e;if(s){var p=r||{},d=s.align,h=s.verticalAlign,v=s.layout;("vertical"===v||"horizontal"===v&&"center"===h)&&R(e[d])&&(f=$f({},e,Hf({},d,f[d]+(p.width||0)))),("horizontal"===v||"vertical"===v&&"center"===d)&&R(e[h])&&(f=$f({},e,Hf({},h,f[h]+(p.height||0))))}return f}(v,n,t,this.legendInstance.getBBox())),kv({brushBottom:y},v,{width:u-v.left-v.right,height:c-v.top-v.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;b()(t)||gv.emit(bv,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o=0})},v.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?Ov(e).concat(Ov(n)):e},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var u=e.data;return u&&u.length&&R(o)&&R(i)?u.slice(o,i+1):[]},v}({chartName:"AreaChart",GraphicalChild:eh,axisComponents:[{axisType:"xAxis",AxisComp:lh},{axisType:"yAxis",AxisComp:gh}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,u=e.layout,c=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return c.reduce(function(e,i){var a,c,s,f,p=t[i],d=p.orientation,h=p.domain,v=p.padding,y=void 0===v?{}:v,m=p.mirror,g=p.reversed,b="".concat(d).concat(m?"Mirror":"");a="xAxis"===r?[n.left+(y.left||0),n.left+n.width-(y.right||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0),n.top+n.height-(y.bottom||0)]:p.range,g&&(a=[a[1],a[0]]);var x=np(p,o),w=x.scale,_=x.realScaleType;w.domain(h).range(a),rp(w);var O=ap(w,Hs({},p,{realScaleType:_}));"xAxis"===r?(f="top"===d&&!m||"bottom"===d&&m,c=n.left,s=l[b]-f*p.height):"yAxis"===r&&(f="left"===d&&!m||"right"===d&&m,c=l[b]-f*p.width,s=n.top);var k=Hs({},p,O,{realScaleType:_,x:c,y:s,scale:w,width:"xAxis"===r?n.width:p.width,height:"yAxis"===r?n.height:p.height});return k.bandSize=hp(k,O),p.hide||"xAxis"!==r?p.hide||(l[b]+=(f?-1:1)*k.width):l[b]+=(f?-1:1)*k.height,Hs({},e,qs({},i,k))},{})}});n.d(t,"d",function(){return sn}),n.d(t,"g",function(){return to}),n.d(t,"f",function(){return po}),n.d(t,"e",function(){return ed}),n.d(t,"c",function(){return dd}),n.d(t,"a",function(){return eh}),n.d(t,"h",function(){return lh}),n.d(t,"i",function(){return gh}),n.d(t,"b",function(){return Av})},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});n(15);function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return en?n:e}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb(".concat(n.map(function(e){return parseInt(e,16)}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,u=r*Math.min(a,1-a),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-u*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),i({type:l,values:s})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,i(e)}function l(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function s(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return i(e)}},function(e,t,n){"use strict";t.a=function(e){return e&&e.ownerDocument||document}},,,function(e,t,n){var r=n(153);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(140),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function u(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}(e))}function c(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach(function(t){r[t]=i(e[t],n)}),u(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=i(t[o],n)}),r}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):c(e,t,n):i(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var s=l;e.exports=s},function(e,t,n){var r=n(103);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(168),o=n(385),i=n(51);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(281),o=n(334),i=n(51),a=n(10),u=n(343);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(36),o=n(10),i=n(33),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(60),o=n(279),i=n(280),a="[object Null]",u="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?u:a:c&&c in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(184),o=Object(r.a)();t.a=o},function(e,t,n){(function(t){for(var r=n(352),o="undefined"===typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],l=0;!u&&l1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=u},function(e,t,n){"use strict";function r(e,t){for(var n=0;n0?r:n)(e)}},function(e,t,n){var r=n(283),o=n(284),i=n(285),a=n(286),u=n(287);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0?r:e)-l/100).concat(u,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},s)}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(224),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var u=c(t),v=c(n),y=0;y0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,n=this.getSeparators(),r=n.decimalSeparator,o=this.getNumberRegex(!0),a="-"===e[0];a&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var u=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==u&&(e="".concat(e.substring(0,u),".").concat(e.substring(u+1,e.length).replace(new RegExp((0,i.escapeRegExp)(r),"g"),""))),a&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,a=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!a||0===o||t||r?"":"|"+(0,i.escapeRegExp)(a)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props.thousandSeparator;return!0===t&&(t=","),{decimalSeparator:e,thousandSeparator:t}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,n=void 0===t?" ":t;return"string"===typeof n?n:n[e]||" "}},{key:"getValueObject",value:function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(r,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(n," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,n){(0,i.setCaretPosition)(e,t),setTimeout(function(){e.value===n&&(0,i.setCaretPosition)(e,t)},0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,a=r.suffix,u=r.format;if(""===e)return 0;if(t=(0,i.clamp)(t,0,e.length),!u){var c="-"===e[0];return(0,i.clamp)(t,o.length+(c?1:0),e.length-a.length)}if("function"===typeof u)return t;if("#"===u[t]&&(0,i.charIsNumber)(e[t]))return t;if("#"===u[t-1]&&(0,i.charIsNumber)(e[t-1]))return t;var l=u.indexOf("#"),s=u.lastIndexOf("#");t=(0,i.clamp)(t,l,s+1);for(var f=u.substring(t,u.length).indexOf("#"),p=t,d=t+(-1===f?0:f);p>l&&("#"!==u[p]||!(0,i.charIsNumber)(e[p]));)p-=1;return!(0,i.charIsNumber)(e[d])||"left"===n&&t!==l||t-p0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.format,r=t.allowEmptyFormatting,o=e;return o=""!==e||r?"-"!==e||n?"string"===typeof n?this.formatWithPattern(o):"function"===typeof n?n(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,a=t.allowEmptyFormatting,u=this.props,c=u.value,l=void 0===c?e:c,s=u.isNumericString,f=!l&&0!==l;return f&&a&&(l=""),f&&!a?"":("number"===typeof l&&(l=l.toString(),s=!0),"Infinity"===l&&s&&(l=""),s&&!n&&"number"===typeof r&&(l=(0,i.roundToPrecision)(l,r,o)),s?this.formatNumString(l):this.formatInput(l))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var n=this.props,r=n.format,o=n.prefix,i=n.suffix,a=n.decimalScale,u=n.fixedDecimalScale,c=this.getSeparators().decimalSeparator;return"string"===typeof r&&"#"!==r[e]||!(r||!(e=t.length-i.length||a&&u&&t[e]===c))}},{key:"checkIfFormatGotDeleted",value:function(e,t,n){for(var r=e;rt.length||!n.length||v===y||0===p&&d===t.length||p===m&&d===g)return n;if(this.checkIfFormatGotDeleted(v,y,t)&&(n=t),!o){var b=this.removeFormatting(n),x=(0,i.splitDecimal)(b,a),w=x.beforeDecimal,_=x.afterDecimal,O=x.addNegation,k=e1&&void 0!==arguments[1]?arguments[1]:i.noop,r=e.formattedValue,o=e.input,a=e.numAsString,u=e.caretPos,c=this.props.onValueChange,l=this.state.value;if(o){if(!u){var s=e.inputValue||o.value,f=(0,i.getCurrentCaretPosition)(o);u=this.getCaretPosition(s,r,f)}o.value=r,this.setPatchedCaretPosition(o,u,r)}void 0===a&&(a=this.removeFormatting(r)),r!==l?this.setState({value:r,numAsString:a},function(){c(t.getValueObject(r,a)),n()}):n()}},{key:"onChange",value:function(e){e.persist();var t=e.target,n=t.value,r=this.state,o=this.props,a=o.isAllowed,u=r.value||"",c=(0,i.getCurrentCaretPosition)(t);n=this.correctInputValue(c,u,n);var l=this.formatInput(n)||"",s=this.removeFormatting(l);a(this.getValueObject(l,s))||(l=u),this.updateValue({formattedValue:l,numAsString:s,inputValue:n,input:t},function(){o.onChange(e)})}},{key:"onBlur",value:function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,a=n.numAsString,u=n.value;if(this.focusedElm=null,!r){a=(0,i.fixLeadingZero)(a);var c=this.formatNumString(a);if(c!==u)return e.persist(),void this.updateValue({formattedValue:c,numAsString:a},function(){o(e)})}o(e)}},{key:"onKeyDown",value:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value,u=void 0===a?"":a,c=this.props,l=c.decimalScale,s=c.fixedDecimalScale,f=c.prefix,p=c.suffix,d=c.format,h=c.onKeyDown,v=(c.onValueChange,void 0!==l&&s),y=this.getNumberRegex(!1,v),m=new RegExp("-"),g="string"===typeof d;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:i},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===i){var b=t,x=g?d.indexOf("#"):f.length,w=g?d.lastIndexOf("#")+1:u.length-p.length;if("ArrowLeft"===r||"ArrowRight"===r){var _="ArrowLeft"===r?"left":"right";b=this.correctCaretPosition(u,t,_)}else if("Delete"!==r||y.test(u[t])||m.test(u[t])){if("Backspace"===r&&!y.test(u[t]))if(o<=x+1&&"-"===u[0]&&"undefined"===typeof d){var O=u.substring(1);e.persist(),this.updateValue({formattedValue:O,caretPos:b,input:n})}else if(!m.test(u[t])){for(;!y.test(u[b-1])&&b>x;)b--;b=this.correctCaretPosition(u,b,"left")}}else for(;!y.test(u[b])&&bw)&&(e.preventDefault(),this.setPatchedCaretPosition(n,b,u)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,b,u),this.props.onKeyDown(e)}else h(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,i=void 0===o?"":o;if(n===r){var a=this.correctCaretPosition(i,n);a!==n&&this.setPatchedCaretPosition(t,a,i)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,setTimeout(function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,i=n.value,a=void 0===i?"":i,u=t.correctCaretPosition(a,r);u===r||0===r&&o===a.length||t.setPatchedCaretPosition(n,u,a),t.props.onFocus(e)},0)}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.displayType,r=e.customInput,a=e.renderText,u=e.getInputRef,l=this.state.value,s=(0,i.omit)(this.props,d),f=c({},s,{type:t,value:l,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===n)return a?a(l)||null:o.default.createElement("span",c({},s,{ref:u}),l);if(r){var p=r;return o.default.createElement(p,f)}return o.default.createElement("input",c({},f,{ref:u}))}}])&&l(n.prototype,r),a&&l(n,a),t}();v.propTypes=d,v.defaultProps=h;var y=v;t.default=y,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(185),o=n(38);function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;iu)throw r=0,new Error("Call stack overflow for "+l);if(""===e)throw new Error(i+"(): '"+l+"' must contain a non-whitespace string");var s=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=c.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var u=o("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+e+"' must contain a non-whitespace string");var l=n(u.body,"",t);i+=u.pre+l,a=u.post}return i+a}(e,l));if(s.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var f=s[0]||"";"%"===f&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var p,d=e.replace(new RegExp(f,"gi"),"");try{p=a.eval(d)}catch(h){return i+"("+e+")"}return"%"===f&&(p*=100),(i.length||"%"===f)&&(p=Math.round(p*t)/t),p+=f}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(65),o=n(127),i=n(91),a=Object.defineProperty;t.f=n(47)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(46);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(256),o=n(96);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(13),o=n(96),i=n(35),a=n(99),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),s=function(e,t,n){var o={},u=i(function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()}),c=o[e]=u?t(f):a[e];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},f=s.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=s},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(40)(n(26),"Map");e.exports=r},function(e,t,n){var r=n(297),o=n(304),i=n(306),a=n(307),u=n(308);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(10),o=n(50),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(20),o=n(379),i=n(167),a="Expected a function",u=Math.max,c=Math.min;e.exports=function(e,t,n){var l,s,f,p,d,h,v=0,y=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=l,r=s;return l=s=void 0,v=t,p=e.apply(r,n)}function x(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-v>=f}function w(){var e=o();if(x(e))return _(e);d=setTimeout(w,function(e){var n=t-(e-h);return m?c(n,f-(e-v)):n}(e))}function _(e){return d=void 0,g&&l?b(e):(l=s=void 0,p)}function O(){var e=o(),n=x(e);if(l=arguments,s=this,h=e,n){if(void 0===d)return function(e){return v=e,d=setTimeout(w,t),y?b(e):p}(h);if(m)return clearTimeout(d),d=setTimeout(w,t),b(h)}return void 0===d&&(d=setTimeout(w,t)),p}return t=i(t)||0,r(n)&&(y=!!n.leading,f=(m="maxWait"in n)?u(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),O.cancel=function(){void 0!==d&&clearTimeout(d),v=0,l=h=s=d=void 0},O.flush=function(){return void 0===d?p:_(o())},O}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,c,"next",e)}function c(e){r(a,o,i,u,c,"throw",e)}u(void 0)})}}n.d(t,"a",function(){return o})},function(e,t,n){var r=n(36),o=n(354),i=n(33),a="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,s=c.hasOwnProperty,f=l.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(t,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(388)},function(e,t,n){var r=n(392),o=n(160),i=n(32);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,u,c=a(e),l=1;l-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(255),o=n(129),i=n(95),a=n(91),u=n(66),c=n(127),l=Object.getOwnPropertyDescriptor;t.f=n(47)?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(n){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(66),o=n(95),i=n(258)(!1),a=n(137)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),c=0,l=[];for(n in u)n!=a&&r(u,n)&&l.push(n);for(;t.length>c;)r(u,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(132)("keys"),o=n(131);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(94);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(46),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(48))},function(e,t,n){var r=n(68),o=n(288),i=n(289),a=n(290),u=n(291),c=n(292);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,e.exports=l},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(104),o=n(144),i=n(105),a=1,u=2;e.exports=function(e,t,n,c,l,s){var f=n&a,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var v=-1,y=!0,m=n&u?new r:void 0;for(s.set(e,t),s.set(t,e);++v-1}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function d(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var h=(0,a.polyfill)(p);t.default=h},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?u="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var c=e.displayName||e.name,l="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(0))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(0)),o=u(n(1)),i=n(162),a=n(373);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=s(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(f);t.default=p,e.exports=t.default},function(e,t,n){var r=n(145),o=n(374);e.exports=function e(t,n,i,a,u){var c=-1,l=t.length;for(i||(i=o),u||(u=[]);++c0&&i(s)?n>1?e(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(e,t,n){var r=n(74),o=n(49);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},function(e,t,n){var r=n(20),o=n(50),i=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||l.test(e)?s(e.slice(2),n?2:8):u.test(e)?i:+e}},function(e,t,n){var r=n(50);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o(u=(a=Math.ceil(p/y))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=l.length)-(i=s.length)<0&&(i=u,r=s,s=l,l=r),n=0;i;)n=(l[--i]=l[i]+s[i]+n)/v|0,l[i]%=v;for(n&&(l.unshift(n),++o),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=o,c?M(t,p):t}function x(e,t,n){if(e!==~~e||en)throw Error(s+e)}function w(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;te.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*y;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return _(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return M(_(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return k(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(c=!1,t=_(j(n,a),j(e,a),a),c=!0,M(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?C(t,e):b(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(c=!1,t=_(n,e,0,1).times(e),c=!0,n.minus(t)):M(new r(n),o)},g.naturalExponential=g.exp=function(){return O(this)},g.naturalLogarithm=g.ln=function(){return j(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):C(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=k(o)+1,n=(r=o.d.length-1)*y+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,i,a,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(l+"NaN")}for(e=k(u),c=!1,0==(o=Math.sqrt(+u))||o==1/0?(((t=w(u.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"1e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(_(u,i,a+2)).times(.5),w(i.d).slice(0,a)===(t=w(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(M(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return c=!0,M(r,n)},g.times=g.mul=function(e){var t,n,r,o,i,a,u,l,s,f=this,p=f.constructor,d=f.d,h=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,(l=d.length)<(s=h.length)&&(i=d,d=h,h=i,a=l,l=s,s=a),i=[],r=a=l+s;r--;)i.push(0);for(r=s;--r>=0;){for(t=0,o=l+r;o>r;)u=i[o]+h[r]*d[o-r-1]+t,i[o--]=u%v|0,t=u/v|0;i[o]=(i[o]+t)%v|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,c?M(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),M(n,e+k(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=P(r,!0):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=P(r=M(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?P(o):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=P((r=M(new i(o),e+k(o)+1,t)).abs(),!1,e+k(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return M(new t(e),k(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,a,u,s=this,f=s.constructor,d=+(e=new f(e));if(!e.s)return new f(i);if(!(s=new f(s)).s){if(e.s<1)throw Error(l+"Infinity");return s}if(s.eq(i))return s;if(r=f.precision,e.eq(i))return M(s,r);if(u=(t=e.e)>=(n=e.d.length-1),a=s.s,u){if((n=d<0?-d:d)<=9007199254740991){for(o=new f(i),t=Math.ceil(r/y+4),c=!1;n%2&&A((o=o.times(s)).d,t),0!==(n=p(n/2));)A((s=s.times(s)).d,t);return c=!0,e.s<0?new f(i).div(o):M(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,c=!1,o=e.times(j(s,r+12)),c=!0,(o=O(o)).s=a,o},g.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=P(o,(n=k(o))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,a),void 0===t?t=i.rounding:x(t,0,8),r=P(o=M(new i(o),e,t),e<=(n=k(o))||n<=i.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),M(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=k(e),n=e.constructor;return P(e,t<=n.toExpNeg||t>=n.toExpPos)};var _=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%v|0,r=n/v|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var u,c,s,f,p,d,h,m,g,b,x,w,_,O,E,S,j,T,C=r.constructor,P=r.s==o.s?1:-1,A=r.d,N=o.d;if(!r.s)return new C(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,j=N.length,E=A.length,m=(h=new C(P)).d=[],s=0;N[s]==(A[s]||0);)++s;if(N[s]>(A[s]||0)&&--c,(w=null==i?i=C.precision:a?i+(k(r)-k(o))+1:i)<0)return new C(0);if(w=w/y+2|0,s=0,1==j)for(f=0,N=N[0],w++;(s1&&(N=e(N,f),A=e(A,f),j=N.length,E=A.length),O=j,b=(g=A.slice(0,j)).length;b=v/2&&++S;do{f=0,(u=t(N,g,j,b))<0?(x=g[0],j!=b&&(x=x*v+(g[1]||0)),(f=x/S|0)>1?(f>=v&&(f=v-1),1==(u=t(p=e(N,f),g,d=p.length,b=g.length))&&(f--,n(p,j16)throw Error(f+k(e));if(!e.s)return new p(i);for(null==t?(c=!1,u=h):u=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(u+=Math.log(d(2,s))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=u;;){if(r=M(r.times(e),u),n=n.times(++l),w((a=o.plus(_(r,n,u))).d).slice(0,u)===w(o.d).slice(0,u)){for(;s--;)o=M(o.times(o),u);return p.precision=h,null==t?(c=!0,M(o,h)):o}o=a}}function k(e){for(var t=e.e*y,n=e.d[0];n>=10;n/=10)t++;return t}function E(e,t,n){if(t>e.LN10.sd())throw c=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return M(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function j(e,t){var n,r,o,a,u,s,f,p,d,h=1,v=e,y=v.d,m=v.constructor,g=m.precision;if(v.s<1)throw Error(l+(v.s?"NaN":"-Infinity"));if(v.eq(i))return new m(0);if(null==t?(c=!1,p=g):p=t,v.eq(10))return null==t&&(c=!0),E(m,p);if(p+=10,m.precision=p,r=(n=w(y)).charAt(0),a=k(v),!(Math.abs(a)<15e14))return f=E(m,p+2,g).times(a+""),v=j(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=g,null==t?(c=!0,M(v,g)):v;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((v=v.times(e)).d)).charAt(0),h++;for(a=k(v),r>1?(v=new m("0."+n),a++):v=new m(r+"."+n.slice(1)),s=u=v=_(v.minus(i),v.plus(i),p),d=M(v.times(v),p),o=3;;){if(u=M(u.times(d),p),w((f=s.plus(_(u,new m(o),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(E(m,p+2,g).times(a+""))),s=_(s,new m(h),p),m.precision=g,null==t?(c=!0,M(s,g)):s;s=f,o+=2}}function T(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=p(n/y),e.d=[],r=(n+1)%y,n<0&&(r+=y),rm||e.e<-m))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function M(e,t,n){var r,o,i,a,u,l,s,h,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=y,o=t,s=g[h=0];else{if((h=Math.ceil((r+1)/y))>=(i=g.length))return e;for(s=i=g[h],a=1;i>=10;i/=10)a++;o=(r%=y)-y+a}if(void 0!==n&&(u=s/(i=d(10,a-o-1))%10|0,l=t<0||void 0!==g[h+1]||s%i,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?o>0?s/d(10,a-o):0:g[h-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return l?(i=k(e),g.length=1,t=t-i-1,g[0]=d(10,(y-t%y)%y),e.e=p(-t/y)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=h,i=1,h--):(g.length=h+1,i=d(10,y-r),g[h]=o>0?(s/d(10,a-o)%d(10,o)|0)*i:0),l)for(;;){if(0==h){(g[0]+=i)==v&&(g[0]=1,++e.e);break}if(g[h]+=i,g[h]!=v)break;g[h--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(c&&(e.e>m||e.e<-m))throw Error(f+k(e));return e}function C(e,t){var n,r,o,i,a,u,l,s,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),c?M(t,h):t;if(l=e.d,p=t.d,r=t.e,s=e.e,l=l.slice(),a=s-r){for((f=a<0)?(n=l,a=-a,u=p.length):(n=p,r=s,u=l.length),a>(o=Math.max(Math.ceil(h/y),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=l.length)<(u=p.length))&&(u=o),o=0;o0;--o)l[u++]=0;for(o=p.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+S(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,n&&(r=n-a)>0&&(i+=S(r))):o>=a?(i+=S(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+S(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=S(r))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(s+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(s+n+": "+r);this[n]=new this(r)}return this}(u=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(s+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):T(t,e.toString())}if("string"!==typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(s+e);T(t,e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=N,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=t?n.apply(void 0,c):e(t-s,u(function(){for(var e=arguments.length,t=new Array(e),o=0;o0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)i(c,this,t);else{var l=c.length,s=h(c,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return p(this,e,!0)},u.prototype.rawListeners=function(e){return p(this,e,!1)},u.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},u.prototype.listenerCount=d,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(function(e,r){var o;(function(){var i,a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="__lodash_hash_undefined__",s=500,f="__lodash_placeholder__",p=1,d=2,h=4,v=1,y=2,m=1,g=2,b=4,x=8,w=16,_=32,O=64,k=128,E=256,S=512,j=30,T="...",M=800,C=16,P=1,A=2,N=1/0,R=9007199254740991,I=17976931348623157e292,D=NaN,L=4294967295,z=L-1,F=L>>>1,B=[["ary",k],["bind",m],["bindKey",g],["curry",x],["curryRight",w],["flip",S],["partial",_],["partialRight",O],["rearg",E]],W="[object Arguments]",U="[object Array]",V="[object AsyncFunction]",$="[object Boolean]",H="[object Date]",q="[object DOMException]",G="[object Error]",X="[object Function]",K="[object GeneratorFunction]",Y="[object Map]",Q="[object Number]",Z="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",ue="[object WeakSet]",ce="[object ArrayBuffer]",le="[object DataView]",se="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",ve="[object Uint8Array]",ye="[object Uint8ClampedArray]",me="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Oe=/[&<>"']/g,ke=RegExp(_e.source),Ee=RegExp(Oe.source),Se=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(Ae.source),Re=/^\s+|\s+$/g,Ie=/^\s+/,De=/\s+$/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ut="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",st="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",dt="(?:"+ft+"|"+at+")",ht="(?:"+nt+"|"+ut+")"+"?",vt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ct,lt,st].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),yt="(?:"+[ot,lt,st].join("|")+")"+vt,mt="(?:"+[ct+nt+"?",nt,lt,st,et].join("|")+")",gt=RegExp("['\u2019]","g"),bt=RegExp(nt,"g"),xt=RegExp(ut+"(?="+ut+")|"+mt+vt,"g"),wt=RegExp([ft+"?"+it+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",dt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,yt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),Ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Et=-1,St={};St[se]=St[fe]=St[pe]=St[de]=St[he]=St[ve]=St[ye]=St[me]=St[ge]=!0,St[W]=St[U]=St[ce]=St[$]=St[le]=St[H]=St[G]=St[X]=St[Y]=St[Q]=St[J]=St[te]=St[ne]=St[re]=St[ae]=!1;var jt={};jt[W]=jt[U]=jt[ce]=jt[le]=jt[$]=jt[H]=jt[se]=jt[fe]=jt[pe]=jt[de]=jt[he]=jt[Y]=jt[Q]=jt[J]=jt[te]=jt[ne]=jt[re]=jt[oe]=jt[ve]=jt[ye]=jt[me]=jt[ge]=!0,jt[G]=jt[X]=jt[ae]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mt=parseFloat,Ct=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,At="object"==typeof self&&self&&self.Object===Object&&self,Nt=Pt||At||Function("return this")(),Rt=t&&!t.nodeType&&t,It=Rt&&"object"==typeof r&&r&&!r.nodeType&&r,Dt=It&&It.exports===Rt,Lt=Dt&&Pt.process,zt=function(){try{var e=It&&It.require&&It.require("util").types;return e||Lt&&Lt.binding&&Lt.binding("util")}catch(t){}}(),Ft=zt&&zt.isArrayBuffer,Bt=zt&&zt.isDate,Wt=zt&&zt.isMap,Ut=zt&&zt.isRegExp,Vt=zt&&zt.isSet,$t=zt&&zt.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function qt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&cn(t,e[n],0)>-1;);return n}var _n=dn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),On=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function kn(e){return"\\"+Tt[e]}function En(e){return _t.test(e)}function Sn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function jn(e,t){return function(n){return e(t(n))}}function Tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Rn=function e(t){var n=(t=null==t?Nt:Rn.defaults(Nt.Object(),t,Rn.pick(Nt,kt))).Array,r=t.Date,o=t.Error,Ze=t.Function,Je=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Ze.prototype,at=et.prototype,ut=t["__core-js_shared__"],ct=it.toString,lt=at.hasOwnProperty,st=0,ft=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=at.toString,dt=ct.call(et),ht=Nt._,vt=tt("^"+ct.call(lt).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Dt?t.Buffer:i,mt=t.Symbol,xt=t.Uint8Array,_t=yt?yt.allocUnsafe:i,Tt=jn(et.getPrototypeOf,et),Pt=et.create,At=at.propertyIsEnumerable,Rt=ot.splice,It=mt?mt.isConcatSpreadable:i,Lt=mt?mt.iterator:i,zt=mt?mt.toStringTag:i,on=function(){try{var e=zi(et,"defineProperty");return e({},"",{}),e}catch(t){}}(),dn=t.clearTimeout!==Nt.clearTimeout&&t.clearTimeout,In=r&&r.now!==Nt.Date.now&&r.now,Dn=t.setTimeout!==Nt.setTimeout&&t.setTimeout,Ln=Je.ceil,zn=Je.floor,Fn=et.getOwnPropertySymbols,Bn=yt?yt.isBuffer:i,Wn=t.isFinite,Un=ot.join,Vn=jn(et.keys,et),$n=Je.max,Hn=Je.min,qn=r.now,Gn=t.parseInt,Xn=Je.random,Kn=ot.reverse,Yn=zi(t,"DataView"),Qn=zi(t,"Map"),Zn=zi(t,"Promise"),Jn=zi(t,"Set"),er=zi(t,"WeakMap"),tr=zi(et,"create"),nr=er&&new er,rr={},or=sa(Yn),ir=sa(Qn),ar=sa(Zn),ur=sa(Jn),cr=sa(er),lr=mt?mt.prototype:i,sr=lr?lr.valueOf:i,fr=lr?lr.toString:i;function pr(e){if(ju(e)&&!yu(e)&&!(e instanceof yr)){if(e instanceof vr)return e;if(lt.call(e,"__wrapped__"))return fa(e)}return new vr(e)}var dr=function(){function e(){}return function(t){if(!Su(t))return{};if(Pt)return Pt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Rr(e,t,n,r,o,a){var u,c=t&p,l=t&d,s=t&h;if(n&&(u=o?n(e,r,o,a):n(e)),u!==i)return u;if(!Su(e))return e;var f=yu(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return ni(e,u)}else{var v=Wi(e),y=v==X||v==K;if(xu(e))return Yo(e,c);if(v==J||v==W||y&&!o){if(u=l||y?{}:Vi(e),!c)return l?function(e,t){return ri(e,Bi(e),t)}(e,function(e,t){return e&&ri(t,oc(t),e)}(u,e)):function(e,t){return ri(e,Fi(e),t)}(e,Cr(u,e))}else{if(!jt[v])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case ce:return Qo(e);case $:case H:return new r(+e);case le:return function(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case se:case fe:case pe:case de:case he:case ve:case ye:case me:case ge:return Zo(e,n);case Y:return new r;case Q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,sr?et(sr.call(o)):{}}var o}(e,v,c)}}a||(a=new wr);var m=a.get(e);if(m)return m;a.set(e,u),Au(e)?e.forEach(function(r){u.add(Rr(r,t,n,r,e,a))}):Tu(e)&&e.forEach(function(r,o){u.set(o,Rr(r,t,n,o,e,a))});var g=f?i:(s?l?Pi:Ci:l?oc:rc)(e);return Gt(g||e,function(r,o){g&&(r=e[o=r]),jr(u,o,Rr(r,t,n,o,e,a))}),u}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],u=e[o];if(u===i&&!(o in e)||!a(u))return!1}return!0}function Dr(e,t,n){if("function"!=typeof e)throw new rt(c);return ra(function(){e.apply(i,n)},t)}function Lr(e,t,n,r){var o=-1,i=Qt,u=!0,c=e.length,l=[],s=t.length;if(!c)return l;n&&(t=Jt(t,mn(n))),r?(i=Zt,u=!1):t.length>=a&&(i=bn,u=!1,t=new xr(t));e:for(;++o-1},gr.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(Qn||gr),string:new mr}},br.prototype.delete=function(e){var t=Di(this,e).delete(e);return this.size-=t?1:0,t},br.prototype.get=function(e){return Di(this,e).get(e)},br.prototype.has=function(e){return Di(this,e).has(e)},br.prototype.set=function(e,t){var n=Di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,l),this},xr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new gr,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof gr){var r=n.__data__;if(!Qn||r.length0&&n(u)?t>1?Vr(u,t-1,n,r,o):en(o,u):r||(o[o.length]=u)}return o}var $r=ui(),Hr=ui(!0);function qr(e,t){return e&&$r(e,t,rc)}function Gr(e,t){return e&&Hr(e,t,rc)}function Xr(e,t){return Yt(t,function(t){return Ou(e[t])})}function Kr(e,t){for(var n=0,r=(t=qo(t,e)).length;null!=e&&nt}function Jr(e,t){return null!=e&<.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?Zt:Qt,a=e[0].length,u=e.length,c=u,l=n(u),s=1/0,f=[];c--;){var p=e[c];c&&t&&(p=Jt(p,mn(t))),s=Hn(p.length,s),l[c]=!r&&(t||a>=120&&p.length>=120)?new xr(c&&p):i}p=e[0];var d=-1,h=l[0];e:for(;++d=u)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function go(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Rt.call(u,c,1),Rt.call(e,c,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Hi(o)?Rt.call(e,o,1):zo(e,o)}}return e}function wo(e,t){return e+zn(Xn()*(t-e+1))}function _o(e,t){var n="";if(!e||t<1||t>R)return n;do{t%2&&(n+=e),(t=zn(t/2))&&(e+=e)}while(t);return n}function Oo(e,t){return oa(Ji(e,t,Mc),e+"")}function ko(e){return Or(pc(e))}function Eo(e,t){var n=pc(e);return ua(n,Nr(t,0,n.length))}function So(e,t,n,r){if(!Su(e))return e;for(var o=-1,a=(t=qo(t,e)).length,u=a-1,c=e;null!=c&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Ru(a)&&(n?a<=t:a=a){var s=t?null:_i(e);if(s)return Mn(s);u=!1,o=bn,l=new xr}else l=t?[]:c;e:for(;++r=r?e:Co(e,t,n)}var Ko=dn||function(e){return Nt.clearTimeout(e)};function Yo(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Qo(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function Zo(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Jo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=Ru(e),u=t!==i,c=null===t,l=t===t,s=Ru(t);if(!c&&!s&&!a&&e>t||a&&u&&l&&!c&&!s||r&&u&&l||!n&&l||!o)return 1;if(!r&&!a&&!s&&e1?n[o-1]:i,u=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,u&&qi(n[0],n[1],u)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[u]:u]:i}}function pi(e){return Mi(function(t){var n=t.length,r=n,o=vr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(c);if(o&&!u&&"wrapper"==Ni(a))var u=new vr([],!0)}for(r=u?r:n;++r1&&x.reverse(),p&&sc))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var f=-1,p=!0,d=n&y?new xr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(B,function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ze);return t?t[1].split(Fe):[]}(r),n)))}function aa(e){var t=0,n=0;return function(){var r=qn(),o=C-(r-n);if(n=r,o>0){if(++t>=M)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Pa(e,n)});function za(e){var t=pr(e);return t.__chain__=!0,t}function Fa(e,t){return t(e)}var Ba=Mi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Fa,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Wa=oi(function(e,t,n){lt.call(e,n)?++e[n]:Pr(e,n,1)});var Ua=fi(va),Va=fi(ya);function $a(e,t){return(yu(e)?Gt:zr)(e,Ii(t,3))}function Ha(e,t){return(yu(e)?Xt:Fr)(e,Ii(t,3))}var qa=oi(function(e,t,n){lt.call(e,n)?e[n].push(t):Pr(e,n,[t])});var Ga=Oo(function(e,t,r){var o=-1,i="function"==typeof t,a=gu(e)?n(e.length):[];return zr(e,function(e){a[++o]=i?Ht(t,e,r):no(e,t,r)}),a}),Xa=oi(function(e,t,n){Pr(e,n,t)});function Ka(e,t){return(yu(e)?Jt:fo)(e,Ii(t,3))}var Ya=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Qa=Oo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&qi(e,t[0],t[1])?t=[]:n>2&&qi(t[0],t[1],t[2])&&(t=[t[0]]),mo(e,Vr(t,1),[])}),Za=In||function(){return Nt.Date.now()};function Ja(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,ki(e,k,i,i,i,i,t)}function eu(e,t){var n;if("function"!=typeof t)throw new rt(c);return e=Bu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var tu=Oo(function(e,t,n){var r=m;if(n.length){var o=Tn(n,Ri(tu));r|=_}return ki(e,r,t,n,o)}),nu=Oo(function(e,t,n){var r=m|g;if(n.length){var o=Tn(n,Ri(nu));r|=_}return ki(t,r,e,n,o)});function ru(e,t,n){var r,o,a,u,l,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new rt(c);function v(t){var n=r,a=o;return r=o=i,f=t,u=e.apply(a,n)}function y(e){var n=e-s;return s===i||n>=t||n<0||d&&e-f>=a}function m(){var e=Za();if(y(e))return g(e);l=ra(m,function(e){var n=t-(e-s);return d?Hn(n,a-(e-f)):n}(e))}function g(e){return l=i,h&&r?v(e):(r=o=i,u)}function b(){var e=Za(),n=y(e);if(r=arguments,o=this,s=e,n){if(l===i)return function(e){return f=e,l=ra(m,t),p?v(e):u}(s);if(d)return Ko(l),l=ra(m,t),v(s)}return l===i&&(l=ra(m,t)),u}return t=Uu(t)||0,Su(n)&&(p=!!n.leading,a=(d="maxWait"in n)?$n(Uu(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&Ko(l),f=0,r=s=o=l=i},b.flush=function(){return l===i?u:g(Za())},b}var ou=Oo(function(e,t){return Dr(e,1,t)}),iu=Oo(function(e,t,n){return Dr(e,Uu(t)||0,n)});function au(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(c);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(au.Cache||br),n}function uu(e){if("function"!=typeof e)throw new rt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}au.Cache=br;var cu=Go(function(e,t){var n=(t=1==t.length&&yu(t[0])?Jt(t[0],mn(Ii())):Jt(Vr(t,1),mn(Ii()))).length;return Oo(function(r){for(var o=-1,i=Hn(r.length,n);++o=t}),vu=ro(function(){return arguments}())?ro:function(e){return ju(e)&<.call(e,"callee")&&!At.call(e,"callee")},yu=n.isArray,mu=Ft?mn(Ft):function(e){return ju(e)&&Qr(e)==ce};function gu(e){return null!=e&&Eu(e.length)&&!Ou(e)}function bu(e){return ju(e)&&gu(e)}var xu=Bn||Uc,wu=Bt?mn(Bt):function(e){return ju(e)&&Qr(e)==H};function _u(e){if(!ju(e))return!1;var t=Qr(e);return t==G||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Cu(e)}function Ou(e){if(!Su(e))return!1;var t=Qr(e);return t==X||t==K||t==V||t==ee}function ku(e){return"number"==typeof e&&e==Bu(e)}function Eu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function Su(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ju(e){return null!=e&&"object"==typeof e}var Tu=Wt?mn(Wt):function(e){return ju(e)&&Wi(e)==Y};function Mu(e){return"number"==typeof e||ju(e)&&Qr(e)==Q}function Cu(e){if(!ju(e)||Qr(e)!=J)return!1;var t=Tt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Pu=Ut?mn(Ut):function(e){return ju(e)&&Qr(e)==te};var Au=Vt?mn(Vt):function(e){return ju(e)&&Wi(e)==ne};function Nu(e){return"string"==typeof e||!yu(e)&&ju(e)&&Qr(e)==re}function Ru(e){return"symbol"==typeof e||ju(e)&&Qr(e)==oe}var Iu=$t?mn($t):function(e){return ju(e)&&Eu(e.length)&&!!St[Qr(e)]};var Du=bi(so),Lu=bi(function(e,t){return e<=t});function zu(e){if(!e)return[];if(gu(e))return Nu(e)?An(e):ni(e);if(Lt&&e[Lt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Lt]());var t=Wi(e);return(t==Y?Sn:t==ne?Mn:pc)(e)}function Fu(e){return e?(e=Uu(e))===N||e===-N?(e<0?-1:1)*I:e===e?e:0:0===e?e:0}function Bu(e){var t=Fu(e),n=t%1;return t===t?n?t-n:t:0}function Wu(e){return e?Nr(Bu(e),0,L):0}function Uu(e){if("number"==typeof e)return e;if(Ru(e))return D;if(Su(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Su(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Re,"");var n=He.test(e);return n||Ge.test(e)?Ct(e.slice(2),n?2:8):$e.test(e)?D:+e}function Vu(e){return ri(e,oc(e))}function $u(e){return null==e?"":Do(e)}var Hu=ii(function(e,t){if(Yi(t)||gu(t))ri(t,rc(t),e);else for(var n in t)lt.call(t,n)&&jr(e,n,t[n])}),qu=ii(function(e,t){ri(t,oc(t),e)}),Gu=ii(function(e,t,n,r){ri(t,oc(t),e,r)}),Xu=ii(function(e,t,n,r){ri(t,rc(t),e,r)}),Ku=Mi(Ar);var Yu=Oo(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&qi(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Pi(e),n),r&&(n=Rr(n,p|d|h,ji));for(var o=t.length;o--;)zo(n,t[o]);return n});var cc=Mi(function(e,t){return null==e?{}:function(e,t){return go(e,t,function(t,n){return Ju(e,n)})}(e,t)});function lc(e,t){if(null==e)return{};var n=Jt(Pi(e),function(e){return[e]});return t=Ii(t),go(e,n,function(e,n){return t(e,n[0])})}var sc=Oi(rc),fc=Oi(oc);function pc(e){return null==e?[]:gn(e,rc(e))}var dc=li(function(e,t,n){return t=t.toLowerCase(),e+(n?hc(t):t)});function hc(e){return _c($u(e).toLowerCase())}function vc(e){return(e=$u(e))&&e.replace(Ke,_n).replace(bt,"")}var yc=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),mc=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),gc=ci("toLowerCase");var bc=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xc=li(function(e,t,n){return e+(n?" ":"")+_c(t)});var wc=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_c=ci("toUpperCase");function Oc(e,t,n){return e=$u(e),(t=n?i:t)===i?function(e){return Ot.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var kc=Oo(function(e,t){try{return Ht(e,i,t)}catch(n){return _u(n)?n:new o(n)}}),Ec=Mi(function(e,t){return Gt(t,function(t){t=la(t),Pr(e,t,tu(e[t],e))}),e});function Sc(e){return function(){return e}}var jc=pi(),Tc=pi(!0);function Mc(e){return e}function Cc(e){return uo("function"==typeof e?e:Rr(e,p))}var Pc=Oo(function(e,t){return function(n){return no(n,e,t)}}),Ac=Oo(function(e,t){return function(n){return no(e,n,t)}});function Nc(e,t,n){var r=rc(t),o=Xr(t,r);null!=n||Su(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Xr(t,rc(t)));var i=!(Su(n)&&"chain"in n)||!!n.chain,a=Ou(e);return Gt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ni(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Rc(){}var Ic=yi(Jt),Dc=yi(Kt),Lc=yi(rn);function zc(e){return Gi(e)?pn(la(e)):function(e){return function(t){return Kr(t,e)}}(e)}var Fc=gi(),Bc=gi(!0);function Wc(){return[]}function Uc(){return!1}var Vc=vi(function(e,t){return e+t},0),$c=wi("ceil"),Hc=vi(function(e,t){return e/t},1),qc=wi("floor");var Gc=vi(function(e,t){return e*t},1),Xc=wi("round"),Kc=vi(function(e,t){return e-t},0);return pr.after=function(e,t){if("function"!=typeof t)throw new rt(c);return e=Bu(e),function(){if(--e<1)return t.apply(this,arguments)}},pr.ary=Ja,pr.assign=Hu,pr.assignIn=qu,pr.assignInWith=Gu,pr.assignWith=Xu,pr.at=Ku,pr.before=eu,pr.bind=tu,pr.bindAll=Ec,pr.bindKey=nu,pr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return yu(e)?e:[e]},pr.chain=za,pr.chunk=function(e,t,r){t=(r?qi(e,t,r):t===i)?1:$n(Bu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,u=0,c=n(Ln(o/t));ao?0:o+n),(r=r===i||r>o?o:Bu(r))<0&&(r+=o),r=n>r?0:Wu(r);n>>0)?(e=$u(e))&&("string"==typeof t||null!=t&&!Pu(t))&&!(t=Do(t))&&En(e)?Xo(An(e),0,n):e.split(t,n):[]},pr.spread=function(e,t){if("function"!=typeof e)throw new rt(c);return t=null==t?0:$n(Bu(t),0),Oo(function(n){var r=n[t],o=Xo(n,0,t);return r&&en(o,r),Ht(e,this,o)})},pr.tail=function(e){var t=null==e?0:e.length;return t?Co(e,1,t):[]},pr.take=function(e,t,n){return e&&e.length?Co(e,0,(t=n||t===i?1:Bu(t))<0?0:t):[]},pr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Co(e,(t=r-(t=n||t===i?1:Bu(t)))<0?0:t,r):[]},pr.takeRightWhile=function(e,t){return e&&e.length?Bo(e,Ii(t,3),!1,!0):[]},pr.takeWhile=function(e,t){return e&&e.length?Bo(e,Ii(t,3)):[]},pr.tap=function(e,t){return t(e),e},pr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(c);return Su(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ru(e,t,{leading:r,maxWait:t,trailing:o})},pr.thru=Fa,pr.toArray=zu,pr.toPairs=sc,pr.toPairsIn=fc,pr.toPath=function(e){return yu(e)?Jt(e,la):Ru(e)?[e]:ni(ca($u(e)))},pr.toPlainObject=Vu,pr.transform=function(e,t,n){var r=yu(e),o=r||xu(e)||Iu(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Su(e)&&Ou(i)?dr(Tt(e)):{}}return(o?Gt:qr)(e,function(e,r,o){return t(n,e,r,o)}),n},pr.unary=function(e){return Ja(e,1)},pr.union=ja,pr.unionBy=Ta,pr.unionWith=Ma,pr.uniq=function(e){return e&&e.length?Lo(e):[]},pr.uniqBy=function(e,t){return e&&e.length?Lo(e,Ii(t,2)):[]},pr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Lo(e,i,t):[]},pr.unset=function(e,t){return null==e||zo(e,t)},pr.unzip=Ca,pr.unzipWith=Pa,pr.update=function(e,t,n){return null==e?e:Fo(e,t,Ho(n))},pr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Fo(e,t,Ho(n),r)},pr.values=pc,pr.valuesIn=function(e){return null==e?[]:gn(e,oc(e))},pr.without=Aa,pr.words=Oc,pr.wrap=function(e,t){return lu(Ho(t),e)},pr.xor=Na,pr.xorBy=Ra,pr.xorWith=Ia,pr.zip=Da,pr.zipObject=function(e,t){return Vo(e||[],t||[],jr)},pr.zipObjectDeep=function(e,t){return Vo(e||[],t||[],So)},pr.zipWith=La,pr.entries=sc,pr.entriesIn=fc,pr.extend=qu,pr.extendWith=Gu,Nc(pr,pr),pr.add=Vc,pr.attempt=kc,pr.camelCase=dc,pr.capitalize=hc,pr.ceil=$c,pr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Uu(n))===n?n:0),t!==i&&(t=(t=Uu(t))===t?t:0),Nr(Uu(e),t,n)},pr.clone=function(e){return Rr(e,h)},pr.cloneDeep=function(e){return Rr(e,p|h)},pr.cloneDeepWith=function(e,t){return Rr(e,p|h,t="function"==typeof t?t:i)},pr.cloneWith=function(e,t){return Rr(e,h,t="function"==typeof t?t:i)},pr.conformsTo=function(e,t){return null==t||Ir(e,t,rc(t))},pr.deburr=vc,pr.defaultTo=function(e,t){return null==e||e!==e?t:e},pr.divide=Hc,pr.endsWith=function(e,t,n){e=$u(e),t=Do(t);var r=e.length,o=n=n===i?r:Nr(Bu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},pr.eq=pu,pr.escape=function(e){return(e=$u(e))&&Ee.test(e)?e.replace(Oe,On):e},pr.escapeRegExp=function(e){return(e=$u(e))&&Ne.test(e)?e.replace(Ae,"\\$&"):e},pr.every=function(e,t,n){var r=yu(e)?Kt:Br;return n&&qi(e,t,n)&&(t=i),r(e,Ii(t,3))},pr.find=Ua,pr.findIndex=va,pr.findKey=function(e,t){return an(e,Ii(t,3),qr)},pr.findLast=Va,pr.findLastIndex=ya,pr.findLastKey=function(e,t){return an(e,Ii(t,3),Gr)},pr.floor=qc,pr.forEach=$a,pr.forEachRight=Ha,pr.forIn=function(e,t){return null==e?e:$r(e,Ii(t,3),oc)},pr.forInRight=function(e,t){return null==e?e:Hr(e,Ii(t,3),oc)},pr.forOwn=function(e,t){return e&&qr(e,Ii(t,3))},pr.forOwnRight=function(e,t){return e&&Gr(e,Ii(t,3))},pr.get=Zu,pr.gt=du,pr.gte=hu,pr.has=function(e,t){return null!=e&&Ui(e,t,Jr)},pr.hasIn=Ju,pr.head=ga,pr.identity=Mc,pr.includes=function(e,t,n,r){e=gu(e)?e:pc(e),n=n&&!r?Bu(n):0;var o=e.length;return n<0&&(n=$n(o+n,0)),Nu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&cn(e,t,n)>-1},pr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Bu(n);return o<0&&(o=$n(r+o,0)),cn(e,t,o)},pr.inRange=function(e,t,n){return t=Fu(t),n===i?(n=t,t=0):n=Fu(n),function(e,t,n){return e>=Hn(t,n)&&e<$n(t,n)}(e=Uu(e),t,n)},pr.invoke=nc,pr.isArguments=vu,pr.isArray=yu,pr.isArrayBuffer=mu,pr.isArrayLike=gu,pr.isArrayLikeObject=bu,pr.isBoolean=function(e){return!0===e||!1===e||ju(e)&&Qr(e)==$},pr.isBuffer=xu,pr.isDate=wu,pr.isElement=function(e){return ju(e)&&1===e.nodeType&&!Cu(e)},pr.isEmpty=function(e){if(null==e)return!0;if(gu(e)&&(yu(e)||"string"==typeof e||"function"==typeof e.splice||xu(e)||Iu(e)||vu(e)))return!e.length;var t=Wi(e);if(t==Y||t==ne)return!e.size;if(Yi(e))return!co(e).length;for(var n in e)if(lt.call(e,n))return!1;return!0},pr.isEqual=function(e,t){return oo(e,t)},pr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?oo(e,t,i,n):!!r},pr.isError=_u,pr.isFinite=function(e){return"number"==typeof e&&Wn(e)},pr.isFunction=Ou,pr.isInteger=ku,pr.isLength=Eu,pr.isMap=Tu,pr.isMatch=function(e,t){return e===t||io(e,t,Li(t))},pr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,io(e,t,Li(t),n)},pr.isNaN=function(e){return Mu(e)&&e!=+e},pr.isNative=function(e){if(Ki(e))throw new o(u);return ao(e)},pr.isNil=function(e){return null==e},pr.isNull=function(e){return null===e},pr.isNumber=Mu,pr.isObject=Su,pr.isObjectLike=ju,pr.isPlainObject=Cu,pr.isRegExp=Pu,pr.isSafeInteger=function(e){return ku(e)&&e>=-R&&e<=R},pr.isSet=Au,pr.isString=Nu,pr.isSymbol=Ru,pr.isTypedArray=Iu,pr.isUndefined=function(e){return e===i},pr.isWeakMap=function(e){return ju(e)&&Wi(e)==ae},pr.isWeakSet=function(e){return ju(e)&&Qr(e)==ue},pr.join=function(e,t){return null==e?"":Un.call(e,t)},pr.kebabCase=yc,pr.last=_a,pr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Bu(n))<0?$n(r+o,0):Hn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):un(e,sn,o,!0)},pr.lowerCase=mc,pr.lowerFirst=gc,pr.lt=Du,pr.lte=Lu,pr.max=function(e){return e&&e.length?Wr(e,Mc,Zr):i},pr.maxBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),Zr):i},pr.mean=function(e){return fn(e,Mc)},pr.meanBy=function(e,t){return fn(e,Ii(t,2))},pr.min=function(e){return e&&e.length?Wr(e,Mc,so):i},pr.minBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),so):i},pr.stubArray=Wc,pr.stubFalse=Uc,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Gc,pr.nth=function(e,t){return e&&e.length?yo(e,Bu(t)):i},pr.noConflict=function(){return Nt._===this&&(Nt._=ht),this},pr.noop=Rc,pr.now=Za,pr.pad=function(e,t,n){e=$u(e);var r=(t=Bu(t))?Pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return mi(zn(o),n)+e+mi(Ln(o),n)},pr.padEnd=function(e,t,n){e=$u(e);var r=(t=Bu(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Xn();return Hn(e+o*(t-e+Mt("1e-"+((o+"").length-1))),t)}return wo(e,t)},pr.reduce=function(e,t,n){var r=yu(e)?tn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,zr)},pr.reduceRight=function(e,t,n){var r=yu(e)?nn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Fr)},pr.repeat=function(e,t,n){return t=(n?qi(e,t,n):t===i)?1:Bu(t),_o($u(e),t)},pr.replace=function(){var e=arguments,t=$u(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pr.result=function(e,t,n){var r=-1,o=(t=qo(t,e)).length;for(o||(o=1,e=i);++rR)return[];var n=L,r=Hn(e,L);t=Ii(t),e-=L;for(var o=yn(r,t);++n=a)return e;var c=n-Pn(r);if(c<1)return r;var l=u?Xo(u,0,c).join(""):e.slice(0,c);if(o===i)return l+r;if(u&&(c+=l.length-c),Pu(o)){if(e.slice(c).search(o)){var s,f=l;for(o.global||(o=tt(o.source,$u(Ve.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var p=s.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(Do(o),c)!=c){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},pr.unescape=function(e){return(e=$u(e))&&ke.test(e)?e.replace(_e,Nn):e},pr.uniqueId=function(e){var t=++st;return $u(e)+t},pr.upperCase=wc,pr.upperFirst=_c,pr.each=$a,pr.eachRight=Ha,pr.first=ga,Nc(pr,function(){var e={};return qr(pr,function(t,n){lt.call(pr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),pr.VERSION="4.17.15",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pr[e].placeholder=pr}),Gt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:$n(Bu(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,L),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==P||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Mc)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Oo(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return no(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(uu(Ii(e)))},yr.prototype.slice=function(e,t){e=Bu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Bu(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(L)},qr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=pr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(pr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof yr,l=u[0],s=c||yu(t),f=function(e){var t=o.apply(pr,en([e],u));return r&&p?t[0]:t};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=c&&!d;if(!a&&s){t=v?t:new yr(this);var y=e.apply(t,u);return y.__actions__.push({func:Fa,args:[f],thisArg:i}),new vr(y,p)}return h&&v?e.apply(this,u):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);pr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(yu(o)?o:[],e)}return this[n](function(n){return t.apply(yu(n)?n:[],e)})}}),qr(yr.prototype,function(e,t){var n=pr[t];if(n){var r=n.name+"";lt.call(rr,r)||(rr[r]=[]),rr[r].push({name:t,func:n})}}),rr[di(i,g).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=yu(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},pr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=fa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},pr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Fa,args:[Sa],thisArg:i}),new vr(t,this.__chain__)}return this.thru(Sa)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Lt&&(pr.prototype[Lt]=function(){return this}),pr}();Nt._=Rn,(o=function(){return Rn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(48),n(108)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=r},function(e,t,n){"use strict";var r=n(12),o=n(2),i=n(3),a=n(27),u=n.n(a);function c(e){return!0===(null!=(t=e)&&"object"===typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function l(e){var t,n;return!1!==c(e)&&("function"===typeof(t=e.constructor)&&(!1!==c(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}n(15);var s=n(78);function f(e,t,n){var i;return Object(o.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},d={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},v={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},y={black:"#000",white:"#fff"},m=n(21),g={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:y.white,default:h[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},b={text:{primary:y.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:h[800],default:"#303030"},action:{active:y.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function x(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(m.d)(e.main,r):"dark"===t&&(e.dark=Object(m.a)(e.main,1.5*r)))}function w(e){return Math.round(1e5*e)/1e5}var _={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?O:r,c=n.fontSize,l=void 0===c?14:c,s=n.fontWeightLight,f=void 0===s?300:s,p=n.fontWeightRegular,d=void 0===p?400:p,h=n.fontWeightMedium,v=void 0===h?500:h,y=n.fontWeightBold,m=void 0===y?700:y,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,k=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants"]),E=l/14,S=function(e){return"".concat(e/b*E,"rem")},j=function(e,t,n,r,i){return Object(o.a)({fontFamily:a,fontWeight:e,fontSize:S(t),lineHeight:n},a===O?{letterSpacing:"".concat(w(r/t),"em")}:{},{},i,{},x)},T={h1:j(f,96,1,-1.5),h2:j(f,60,1,-.5),h3:j(d,48,1.04,0),h4:j(d,34,1.17,.25),h5:j(d,24,1.33,0),h6:j(v,20,1.6,.15),subtitle1:j(d,16,1.75,.15),subtitle2:j(v,14,1.57,.1),body1:j(d,16,1.5,.15),body2:j(d,14,1.43,.15),button:j(v,14,1.75,.4,_),caption:j(d,12,1.66,.4),overline:j(d,12,2.66,1,_)};return u()(Object(o.a)({htmlFontSize:b,pxToRem:S,round:w,fontFamily:a,fontSize:l,fontWeightLight:f,fontWeightRegular:d,fontWeightMedium:v,fontWeightBold:m},T),k,{clone:!1})}var E=.2,S=.14,j=.12;function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(E,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(S,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(j,")")].join(",")}var M=["none",T(0,1,3,0,0,1,1,0,0,2,1,-1),T(0,1,5,0,0,2,2,0,0,3,1,-2),T(0,1,8,0,0,3,4,0,0,3,3,-2),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],C={borderRadius:4};var P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},A={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},N=function(e){return"".concat(Math.round(e),"ms")},R={easing:P,duration:A,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?A.standard:n,o=t.easing,a=void 0===o?P.easeInOut:o,u=t.delay,c=void 0===u?0:u;Object(i.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"===typeof r?r:N(r)," ").concat(a," ").concat("string"===typeof c?c:N(c))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},I=n(79);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,c=e.palette,w=void 0===c?{}:c,_=e.shadows,O=e.spacing,E=e.typography,S=void 0===E?{}:E,j=Object(i.a)(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),T=function(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,a=void 0===r?{light:d.A200,main:d.A400,dark:d.A700}:r,c=e.error,l=void 0===c?{light:v[300],main:v[500],dark:v[700]}:c,s=e.type,f=void 0===s?"light":s,w=e.contrastThreshold,_=void 0===w?3:w,O=e.tonalOffset,k=void 0===O?.2:O,E=Object(i.a)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function S(e){return Object(m.c)(e,b.text.primary)>=_?b.text.primary:g.text.primary}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),x(e,"light",n,k),x(e,"dark",r,k),e.contrastText||(e.contrastText=S(e.main)),e}var T={dark:b,light:g};return u()(Object(o.a)({common:y,type:f,primary:j(n),secondary:j(a,"A400","A200","A700"),error:j(l),grey:h,contrastThreshold:_,getContrastText:S,augmentColor:j,tonalOffset:k},T[f]),E,{clone:!1})}(w),P=Object(s.a)(n),A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"===typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;rN.length&&N.push(e)}function D(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return r(o,t,""===n?"."+L(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;lthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=le,e.release=se}o(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ce);var pe=ce.extend({data:null}),de=ce.extend({data:null}),he=[9,13,27,32],ve=H&&"CompositionEvent"in window,ye=null;H&&"documentMode"in document&&(ye=document.documentMode);var me=H&&"TextEvent"in window&&!ye,ge=H&&(!ve||ye&&8=ye),be=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function _e(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Oe(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ke=!1;var Ee={eventTypes:xe,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ve)e:{switch(e){case"compositionstart":o=xe.compositionStart;break e;case"compositionend":o=xe.compositionEnd;break e;case"compositionupdate":o=xe.compositionUpdate;break e}o=void 0}else ke?_e(e,n)&&(o=xe.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=xe.compositionStart);return o?(ge&&"ko"!==n.locale&&(ke||o!==xe.compositionStart?o===xe.compositionEnd&&ke&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,ke=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Oe(n))&&(o.data=i),$(o),i=o):i=null,(e=me?function(e,t){switch(e){case"compositionend":return Oe(t);case"keypress":return 32!==t.which?null:(we=!0,be);case"textInput":return(e=t.data)===be&&we?null:e;default:return null}}(e,n):function(e,t){if(ke)return"compositionend"===e||!ve&&_e(e,t)?(e=ie(),oe=re=ne=null,ke=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1