(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(494)},function(e,t,n){e.exports=n(556)()},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)&&(o[n]=e[n])}return o}},function(e,t,n){e.exports=n(312)},function(e,t,n){"use strict";var r=n(2),i=n(6),o=n(0),a=n.n(o),s=n(81),u=n.n(s),l=n(778),c=n(768),f=n(220),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,p=void 0!==s&&s,h=t.name,d=Object(i.a)(t,["defaultTheme","withTheme","name"]),m=h,y=Object(l.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:h||n.displayName,classNamePrefix:m},d)),v=a.a.forwardRef(function(e,t){e.classes;var s,u=e.innerRef,l=Object(i.a)(e,["classes","innerRef"]),d=y(Object(r.a)({},n.defaultProps,e)),m=l;return("string"===typeof h||p)&&(s=Object(f.a)()||o,h&&(m=Object(c.a)({theme:s,name:h,props:l})),p&&!m.theme&&(m.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:d},m))});return u()(v,n),v}},h=n(111);t.a=function(e,t){return p(e,Object(r.a)({defaultTheme:h.a},t))}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},,function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(440);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)})}}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=i.a.createContext(null);var a=function(e){e()},s=function(){return a};var u={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=u;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)(function(){var e=l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),u=Object(r.useMemo)(function(){return t.getState()},[t]);c(function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[s,u]);var f=n||o;return i.a.createElement(f.Provider,{value:s},a)};n(2),n(38),n(81),n(126);function p(){return Object(r.useContext)(o)}function h(e){void 0===e&&(e=o);var t=e===o?p:function(){return Object(r.useContext)(e)};return function(){return t().store}}var d=h();function m(e){void 0===e&&(e=o);var t=e===o?d:h(e);return function(){return t().dispatch}}var y=m(),v=function(e,t){return e===t};function g(e){void 0===e&&(e=o);var t=e===o?p:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=v);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)(function(e){return e+1},0)[1],s=Object(r.useMemo)(function(){return l(n,i)},[n,i]),u=Object(r.useRef)(),f=Object(r.useRef)(),p=Object(r.useRef)(),h=Object(r.useRef)(),d=n.getState();try{if(e!==f.current||d!==p.current||u.current){var m=e(d);o=void 0!==h.current&&t(m,h.current)?h.current:m}else o=h.current}catch(y){throw u.current&&(y.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),y}return c(function(){f.current=e,p.current=d,h.current=o,u.current=void 0}),c(function(){function e(){try{var e=n.getState();if(e===p.current)return;var r=f.current(e);if(t(r,h.current))return;h.current=r,p.current=e}catch(y){u.current=y}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}},[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var b,_=g(),x=n(27);n.d(t,"a",function(){return f}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return _}),b=x.unstable_batchedUpdates,a=b},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(109),i=n(51),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},function(e,t,n){"use strict";n.r(t);var r=n(34),i=n(0),o=n(166);n(736);function a(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "}),r}var s=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}},u=n(209),l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=/[A-Z]|^ms/g,f=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return 45===e.charCodeAt(1)},h=function(e){return null!=e&&"boolean"!==typeof e},d=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return p(e)?e:e.replace(c,"-$&").toLowerCase()}),m=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(f,function(e,t,n){return v={name:t,styles:n,next:v},t})}return 1===l[e]||p(e)||"number"!==typeof t||0===t?t:t+"px"};function y(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return v={name:n.name,styles:n.styles,next:v},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)v={name:i.name,styles:i.styles,next:v},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}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>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map(function(e){return parseFloat(e)})}}function a(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 s(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,i=t[2]/100,s=r*Math.min(i,1-i),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),a({type:l,values:c})}(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 l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?p(e,t):h(e,t)}function c(e,t){return f(e,t)}function f(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function p(e,t){if(e=o(e),t=i(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 a(e)}function h(e,t){if(e=o(e),t=i(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 a(e)}},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"scaleBand",function(){return Hi}),n.d(r,"scalePoint",function(){return qi}),n.d(r,"scaleIdentity",function(){return fa}),n.d(r,"scaleLinear",function(){return ca}),n.d(r,"scaleLog",function(){return _a}),n.d(r,"scaleSymlog",function(){return Ea}),n.d(r,"scaleOrdinal",function(){return Wi}),n.d(r,"scaleImplicit",function(){return Vi}),n.d(r,"scalePow",function(){return Ca}),n.d(r,"scaleSqrt",function(){return Pa}),n.d(r,"scaleQuantile",function(){return Aa}),n.d(r,"scaleQuantize",function(){return Ma}),n.d(r,"scaleThreshold",function(){return Ia}),n.d(r,"scaleTime",function(){return Ju}),n.d(r,"scaleUtc",function(){return ol}),n.d(r,"scaleSequential",function(){return ul}),n.d(r,"scaleSequentialLog",function(){return ll}),n.d(r,"scaleSequentialPow",function(){return fl}),n.d(r,"scaleSequentialSqrt",function(){return pl}),n.d(r,"scaleSequentialSymlog",function(){return cl}),n.d(r,"scaleSequentialQuantile",function(){return hl}),n.d(r,"scaleDiverging",function(){return ml}),n.d(r,"scaleDivergingLog",function(){return yl}),n.d(r,"scaleDivergingPow",function(){return gl}),n.d(r,"scaleDivergingSqrt",function(){return bl}),n.d(r,"scaleDivergingSymlog",function(){return vl}),n.d(r,"tickFormat",function(){return ua});n(561),n(583);if(!Object.setPrototypeOf&&!{}.__proto__){var i=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:i.call(Object,e)}}var o=n(16),a=n.n(o),s=n(155),u=n.n(s),l=n(0),c=n.n(l),f=n(1),p=n.n(f),h=n(24),d=n.n(h),m=n(15),y=n.n(m),v=n(104),g=n.n(v),b=n(51),_=n.n(b),x=n(28),w=n.n(x),O=n(71),E=n.n(O),k=n(128),S=n.n(k),j=n(145),T=n.n(j),C=function(e){return 0===e?0:e>0?1:-1},P=function(e){return g()(e)&&e.indexOf("%")===e.length-1},A=function(e){return T()(e)&&!S()(e)},M=function(e){return A(e)||g()(e)},I=0,D=function(e){var t=++I;return"".concat(e||"").concat(t)},R=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!A(e)&&!g()(e))return r;if(P(e)){var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return S()(n)&&(n=r),i&&n>t&&(n=t),n},L=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},z=function(e,t){return A(e)&&A(t)?function(n){return e+n*(t-e)}:function(){return t}},N=function(e,t,n){return e&&e.length?e.find(function(e){return e&&("function"===typeof t?t(e):E()(e,t))===n}):null};function F(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function B(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var V={"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])},W={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},H={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},q=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],G=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],Y=["none"],Z=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},X=function(e,t){var n=[],r=[];return r=w()(t)?t.map(function(e){return Z(e)}):[Z(t)],c.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},$=function(e,t){var n=X(e,t);return n&&n[0]},K=function(e){if(!e||a()(e))return null;var t=c.a.isValidElement(e)?e.props:e;if(!_()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&V[r]&&(n||(n={}),n[r]=t[r]);return n},J=function(e,t){return function(n){return e(t,n),null}},Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||a()(e))return null;var r=c.a.isValidElement(e)?e.props:e;if(!_()(r))return null;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&W[o]&&(i||(i={}),i[o]=t||(n?J(r[o],r):r[o]));return i},ee=function(e,t,n){return function(r){return e(t,n,r),null}},te=function(e,t,n){if(!_()(e))return null;var r=null;for(var i in e)({}).hasOwnProperty.call(e,i)&&W[i]&&a()(e[i])&&(r||(r={}),r[i]=ee(e[i],t,n));return r},ne=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!A(n)||n<=0||!A(r)||r<=0)},re=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"],oe=function(e,t){if(y()(e)&&y()(t))return!0;if(!y()(e)&&!y()(t)){var n=e.props||{},r=n.children,i=U(n,["children"]),o=t.props||{},a=o.children,s=U(o,["children"]);return r&&a?F(i,s)&&ae(r,a):!r&&!a&&F(i,s)}return!1},ae=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 oe(w()(t)?t[0]:t,w()(n)?n[0]:n);for(var i=0;i=0}(e))n.push(e);else if(e&&t[Z(e.type)]){var o=Z(e.type),a=t[o],s=a.handler,u=a.once;if(u&&!r[o]||!u){var l=s(e,o,i);w()(l)?n=[n].concat(B(l)):n.push(l),r[o]=!0}}}),n},ue=function(e){var t=e&&e.type;return t&&H[t]?H[t]:null},le=function(e,t){var n=-1;return l.Children.forEach(t,function(t,r){t===e&&(n=r)}),n};function ce(){return(ce=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var pe={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,i=e.viewBox,o=e.className,a=e.style,s=fe(e,["children","width","height","viewBox","className","style"]),u=i||{width:n,height:r,x:0,y:0},l=d()("recharts-surface",o),f=K(s);return c.a.createElement("svg",ce({},f,{className:l,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height),version:"1.1"}),t)}he.propTypes=pe;var de=he,me=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),ye=2*me;var ve={draw:function(e,t){var n=Math.sqrt(t/me);e.moveTo(n,0),e.arc(0,0,n,0,ye)}},ge={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()}},be=Math.sqrt(1/3),_e=2*be,xe={draw:function(e,t){var n=Math.sqrt(t/_e),r=n*be;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},we={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Oe=Math.sin(me/10)/Math.sin(7*me/10),Ee=Math.sin(ye/10)*Oe,ke=-Math.cos(ye/10)*Oe,Se={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Ee*n,i=ke*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=ye*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},je=Math.sqrt(3),Te={draw:function(e,t){var n=-Math.sqrt(t/(3*je));e.moveTo(0,2*n),e.lineTo(-je*n,-n),e.lineTo(je*n,-n),e.closePath()}},Ce=Math.sqrt(3)/2,Pe=1/Math.sqrt(12),Ae=3*(Pe/2+1),Me={draw:function(e,t){var n=Math.sqrt(t/Ae),r=n/2,i=n*Pe,o=r,a=n*Pe+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*r-Ce*i,Ce*r+-.5*i),e.lineTo(-.5*o-Ce*a,Ce*o+-.5*a),e.lineTo(-.5*s-Ce*u,Ce*s+-.5*u),e.lineTo(-.5*r+Ce*i,-.5*i-Ce*r),e.lineTo(-.5*o+Ce*a,-.5*a-Ce*o),e.lineTo(-.5*s+Ce*u,-.5*u-Ce*s),e.closePath()}},Ie=Math.PI,De=2*Ie,Re=De-1e-6;function Le(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ze(){return new Le}Le.prototype=ze.prototype={constructor:Le,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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(c*s-u*l)>1e-6&&i){var p=n-o,h=r-a,d=s*s+u*u,m=p*p+h*h,y=Math.sqrt(d),v=Math.sqrt(f),g=i*Math.tan((Ie-Math.acos((d+f-m)/(2*y*v)))/2),b=g/v,_=g/y;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*p>l*h)+","+(this._x1=e+_*s)+","+(this._y1=t+_*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%De+De),f>Re?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Ie)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},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 Ne=ze,Fe=function(e){return function(){return e}};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e){return(Ve="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 We(){return(We=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,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,l=r.chartHeight;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.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:s&&s.bottom||0}:{top:s&&s.top||0});return ct({},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 i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},function(){r&&r(i)})}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,i=t.height,o=t.wrapperStyle,s=t.paylodUniqBy,u=t.payload,l=ct({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o),{},o);return c.a.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(st,t)}(n,ct({},this.props,{payload:vt(s,u)})))}}])&&pt(n.prototype,r),i&&pt(n,i),t}();bt.displayName="Legend",bt.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(gt),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},bt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var _t=bt,xt=n(53),wt=n.n(xt),Ot=n(118),Et=n.n(Ot);function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;Et()(function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):Et()(r)})}function St(e){return(St="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 jt(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 Tt(){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 i=jt(r),o=i[0],a=i.slice(1);return"number"===typeof o?void kt(n.bind(null,a),o):(n(o),void kt(n.bind(null,a)))}"object"===St(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var Ct=n(389),Pt=n.n(Ct);function At(e){for(var t=1;t=0&&e<=1});var l,c,f=Ht(r,o),p=Ht(i,a),h=(l=r,c=o,function(e){var t=Ut(Vt(l,c).map(function(e,t){return e*t}).slice(1)).concat([0]);return Wt(t,e)}),d=function(e){for(var t,n=e>1?1:e,r=n,i=0;i<8;++i){var o=f(r)-n,a=h(r);if(Math.abs(o-n)<1e-4||a<1e-4)return p(r);r=(t=r-o/a)>1?1:t<0?0:t}return p(r)};return d.isStepper=!1,d},Gt=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,i=void 0===r?8:r,o=e.dt,a=void 0===o?17:o,s=function(e,t,r){var o=r+(-(e-t)*n-r*i)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<1e-4&&Math.abs(o)<1e-4?[t,0]:[s,o]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return qt(r)}return"function"===typeof r?r:null},Yt=n(390),Zt=n.n(Yt);function Xt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function on(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[i-1]:r,p=l||Object.keys(u);if("function"===typeof s||"spring"===s)return on(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:u,duration:o,easing:s}),o]);var h=Ft(p,o,s),d=an({},f.style,u,{transition:h});return on(e).concat([d,o,c]).filter(Lt)},[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Tt());var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,o=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,u=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(e);else{var f=r?sn({},r,i):i,p=Ft(Object.keys(f),n,o);c.start([a,t,an({},f,{transition:p}),n,s])}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,rn(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=l.Children.count(t),o=Nt(this.state.style);if("function"===typeof t)return t(o);if(!n||0===i)return t;var a=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,a=t.className;return Object(l.cloneElement)(e,an({},r,{style:an({},i,o),className:a}))};return 1===i?a(l.Children.only(t)):c.a.createElement("div",null,l.Children.map(t,function(e){return a(e)}))}}])&&un(n.prototype,r),i&&un(n,i),t}();hn.displayName="Animate",hn.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},hn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var dn=hn,mn=n(205);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 vn(){return(vn=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(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+(T()(t.duration)&&t.duration>0?t.duration:0)},0):T()(n)?n:0},kn=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,i=new Array(r),o=0;oc[t]+i?Math.max(f,c[t]):Math.max(p,c[t])},n}var n,r,i;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&&$n(e,t)}(t,l["PureComponent"]),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||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,i=this.props,o=i.payload,s=i.isAnimationActive,l=i.animationDuration,f=i.animationEasing,p=i.filterNull,h=function(e,t){return!0===e?u()(t,Jn):a()(e)?u()(t,e):t}(i.paylodUniqBy,p&&o&&o.length?o.filter(function(e){return!y()(e.value)}):o),m=h&&h.length,v=this.props,g=v.content,b=v.viewBox,_=v.coordinate,x=v.position,w=v.active,O=qn({pointerEvents:"none",visibility:w&&m?"visible":"hidden",position:"absolute",top:0},v.wrapperStyle);if(x&&A(x.x)&&A(x.y))t=x.x,n=x.y;else{var E=this.state,k=E.boxWidth,S=E.boxHeight;k>0&&S>0&&_?(t=this.getTranslate({key:"x",tooltipDimension:k,viewBoxDimension:b.width}),n=this.getTranslate({key:"y",tooltipDimension:S,viewBoxDimension:b.height})):O.visibility="hidden"}O=qn({},Nt({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},O),s&&w&&(O=qn({},Nt({transition:"transform ".concat(l,"ms ").concat(f)}),{},O));var j=d()(Kn,(Gn(e={},"".concat(Kn,"-right"),A(t)&&_&&A(_.x)&&t>=_.x),Gn(e,"".concat(Kn,"-left"),A(t)&&_&&A(_.x)&&t<_.x),Gn(e,"".concat(Kn,"-bottom"),A(n)&&_&&A(_.y)&&n>=_.y),Gn(e,"".concat(Kn,"-top"),A(n)&&_&&A(_.y)&&n<_.y),e));return c.a.createElement("div",{className:j,style:O,ref:function(e){r.wrapperNode=e}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(Vn,t)}(g,qn({},this.props,{payload:h})))}}])&&Yn(n.prototype,r),i&&Yn(n,i),t}();tr.displayName="Tooltip",tr.propTypes=Qn,tr.defaultProps=er;var nr=tr,rr=n(256),ir=n.n(rr),or=n(391),ar=n.n(or);function sr(e){return(sr="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 ur(e,t){for(var n=0;n0?ir()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,i;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&&fr(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,i=r.aspect,o=r.width,a=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),u=r.children;P(o)||P(a);var l=P(o)?t:o,f=P(a)?n:a;return i&&i>0&&(l?f=l/i:f&&(l=f*i),s&&f>s&&(f=s)),c.a.cloneElement(u,{width:l,height:f})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,i=t.width,o=t.height,a=t.maxHeight,s=t.id,u=t.className,l={width:i,height:o,minWidth:n,minHeight:r,maxHeight:a};return c.a.createElement("div",{id:s,className:d()("recharts-responsive-container",u),style:l,ref:function(t){e.container=t}},this.renderChart(),c.a.createElement(ar.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&ur(n.prototype,r),i&&ur(n,i),t}();pr.displayName="ResponsiveContainer",pr.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])},pr.defaultProps={width:"100%",height:"100%",debounce:0};var hr=pr;function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(){return null}yr.propTypes=function(e){for(var t=1;t=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o},"")},jr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||re())return{width:0,height:0};var n="".concat(e),r=Sr(t),i="".concat(n,"-").concat(r);if(Or.widthCache[i])return Or.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(o));var a=function(e){for(var t=1;t2e3&&(Or.cacheCount=0,Or.widthCache={}),u}catch(l){return{width:0,height:0}}};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e){return(Pr="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 Ar(){return(Ar=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ir(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-a,Qr(function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);nr&&(i=r,o=n),[i,o]}function pi(e,t,n){if(e.lte(0))return new Yr.a(0);var r=ai.getDigitCount(e.toNumber()),i=new Yr.a(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new Yr.a(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new Yr.a(Math.ceil(s))}function hi(e,t,n){var r=1,i=new Yr.a(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Yr.a(10).pow(ai.getDigitCount(e)-1),i=new Yr.a(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Yr.a(Math.floor(e)))}else 0===e?i=new Yr.a(Math.floor((t-1)/2)):n||(i=new Yr.a(Math.floor(e)));var a=Math.floor((t-1)/2);return ri(ni(function(e){return i.add(new Yr.a(e-a).mul(r)).toNumber()}),ti)(0,t)}var di=oi(function(e){var t=ui(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=ui(fi([n,r]),2),u=s[0],l=s[1];if(u===-1/0||l===1/0){var c=l===1/0?[u].concat(si(ti(0,i-1).map(function(){return 1/0}))):[].concat(si(ti(0,i-1).map(function(){return-1/0})),[l]);return n>r?ii(c):c}if(u===l)return hi(u,i,o);var f=function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Yr.a(0),tickMin:new Yr.a(0),tickMax:new Yr.a(0)};var a,s=pi(new Yr.a(n).sub(t).div(r-1),i,o);a=t<=0&&n>=0?new Yr.a(0):(a=new Yr.a(t).add(n).div(2)).sub(new Yr.a(a).mod(s));var u=Math.ceil(a.sub(t).div(s).toNumber()),l=Math.ceil(new Yr.a(n).sub(a).div(s).toNumber()),c=u+l+1;return c>r?e(t,n,r,i,o+1):(c0?l+(r-c):l,u=n>0?u:u+(r-c)),{step:s,tickMin:a.sub(new Yr.a(u).mul(s)),tickMax:a.add(new Yr.a(l).mul(s))})}(u,l,a,o),p=f.step,h=f.tickMin,d=f.tickMax,m=ai.rangeStep(h,d.add(new Yr.a(.1).mul(p)),p);return n>r?ii(m):m}),mi=(oi(function(e){var t=ui(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=ui(fi([n,r]),2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[n,r];if(u===l)return hi(u,i,o);var c=pi(new Yr.a(l).sub(u).div(a-1),o,0),f=ri(ni(function(e){return new Yr.a(u).add(new Yr.a(e).mul(c)).toNumber()}),ti)(0,a).filter(function(e){return e>=u&&e<=l});return n>r?ii(f):f}),oi(function(e,t){var n=ui(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=ui(fi([r,i]),2),s=a[0],u=a[1];if(s===-1/0||u===1/0)return[r,i];if(s===u)return[s];var l=Math.max(t,2),c=pi(new Yr.a(u).sub(s).div(l-1),o,0),f=[].concat(si(ai.rangeStep(new Yr.a(s),new Yr.a(u).sub(new Yr.a(.99).mul(c)),c)),[u]);return r>i?ii(f):f})),yi=function(e,t){return et?1:e>=t?0:NaN},vi=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return yi(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var gi=vi(yi),bi=gi.right,_i=(gi.left,bi);var xi=function(e){return null===e?NaN:+e},wi=Array.prototype,Oi=(wi.slice,wi.map,function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s=0?(o>=Ei?10:o>=ki?5:o>=Si?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ei?10:o>=ki?5:o>=Si?2:1)}function Ci(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ei?i*=10:o>=ki?i*=5:o>=Si&&(i*=2),t=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}};function Ai(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Mi(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function Ii(){}function Di(e,t){var n=new Ii;if(e instanceof Ii)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?co(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?co(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Qi.exec(e))?new po(t[1],t[2],t[3],1):(t=eo.exec(e))?new po(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=to.exec(e))?co(t[1],t[2],t[3],t[4]):(t=no.exec(e))?co(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ro.exec(e))?vo(t[1],t[2]/100,t[3]/100,1):(t=io.exec(e))?vo(t[1],t[2]/100,t[3]/100,t[4]):oo.hasOwnProperty(e)?lo(oo[e]):"transparent"===e?new po(NaN,NaN,NaN,0):null}function lo(e){return new po(e>>16&255,e>>8&255,255&e,1)}function co(e,t,n,r){return r<=0&&(e=t=n=NaN),new po(e,t,n,r)}function fo(e,t,n,r){return 1===arguments.length?((i=e)instanceof Zi||(i=uo(i)),i?new po((i=i.rgb()).r,i.g,i.b,i.opacity):new po):new po(e,t,n,null==r?1:r);var i}function po(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ho(){return"#"+yo(this.r)+yo(this.g)+yo(this.b)}function mo(){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+")")}function yo(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function vo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bo(e,t,n,r)}function go(e){if(e instanceof bo)return new bo(e.h,e.s,e.l,e.opacity);if(e instanceof Zi||(e=uo(e)),!e)return new bo;if(e instanceof bo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&u<1?0:a,new bo(a,s,u,e.opacity)}function bo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function _o(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function xo(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}Gi(Zi,uo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ao,formatHex:ao,formatHsl:function(){return go(this).formatHsl()},formatRgb:so,toString:so}),Gi(po,fo,Yi(Zi,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new po(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new po(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:ho,formatHex:ho,formatRgb:mo,toString:mo})),Gi(bo,function(e,t,n,r){return 1===arguments.length?go(e):new bo(e,t,n,null==r?1:r)},Yi(Zi,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new bo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new bo(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,i=2*n-r;return new po(_o(e>=240?e-240:e+120,i,r),_o(e,i,r),_o(e<120?e+240:e-120,i,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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var wo=function(e){return function(){return e}};function Oo(e,t){return function(n){return e+n*t}}function Eo(e){return 1===(e=+e)?ko: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):wo(isNaN(t)?n:t)}}function ko(e,t){var n=t-e;return n?Oo(e,n):wo(isNaN(e)?t:e)}var So=function e(t){var n=Eo(t);function r(e,t){var r=n((e=fo(e)).r,(t=fo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ko(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function jo(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Ao(n,r)})),o=Io.lastIndex;return or&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Vo(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i2?Wo:Vo,i=o=null,f}function f(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(s,a.map(e),Ao)))(n)))},f.domain=function(e){return arguments.length?(a=Bi.call(e,zo),l===Fo||(l=Uo(a)),c()):a.slice()},f.range=function(e){return arguments.length?(s=Ui.call(e),c()):s.slice()},f.rangeRound=function(e){return s=Ui.call(e),u=Ro,c()},f.clamp=function(e){return arguments.length?(l=e?Uo(a):Fo,f):l!==Fo},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function Go(e,t){return qo()(e,t)}var Yo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zo(e){if(!(t=Yo.exec(e)))throw new Error("invalid format: "+e);var t;return new Xo({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Xo(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Zo.prototype=Xo.prototype,Xo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function $o(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)]}var Ko,Jo,Qo,ea,ta=function(e){return(e=$o(Math.abs(e)))?e[1]:NaN},na=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e},ra=function(e,t){var n=$o(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},ia={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 ra(100*e,t)},r:ra,s:function(e,t){var n=$o(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ko=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+$o(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},oa=function(e){return e},aa=Array.prototype.map,sa=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Jo=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?oa:(t=aa.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?oa:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(aa.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Zo(e)).fill,n=e.align,f=e.sign,p=e.symbol,h=e.zero,d=e.width,m=e.comma,y=e.precision,v=e.trim,g=e.type;"n"===g?(m=!0,g="g"):ia[g]||(void 0===y&&(y=12),v=!0,g="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",_="$"===p?o:/[%p]/.test(g)?u:"",x=ia[g],w=/[defgprs%]/.test(g);function O(e){var i,o,u,p=b,O=_;if("c"===g)O=x(e)+O,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),y),v&&(e=na(e)),E&&0===+e&&"+"!==f&&(E=!1),p=(E?"("===f?f:l:"-"===f||"("===f?"":f)+p,O=("s"===g?sa[8+Ko/3]:"")+O+(E&&"("===f?")":""),w)for(i=-1,o=e.length;++i(u=e.charCodeAt(i))||u>57){O=(46===u?a+e.slice(i+1):e.slice(i))+O,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var k=p.length+e.length+O.length,S=k>1)+p+e+O+S.slice(k);break;default:e=S+p+e+O}return s(e)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return e+""},O}return{format:f,formatPrefix:function(e,t){var n=f(((e=Zo(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ta(t)/3))),i=Math.pow(10,-r),o=sa[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Qo=Jo.format,ea=Jo.formatPrefix;var ua=function(e,t,n,r){var i,o=Ci(e,t,n);switch((r=Zo(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ta(t)/3)))-ta(Math.abs(e)))}(o,a))||(r.precision=i),ea(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ta(t)-ta(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-ta(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Qo(r)};function la(e){var t=e.domain;return e.ticks=function(e){var n=t();return ji(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ua(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?r=Ti(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=Ti(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,t(i)),e},e}function ca(){var e=Go(Fo,Fo);return e.copy=function(){return Ho(e,ca())},Ai.apply(e,arguments),la(e)}function fa(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,zo),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return fa(e).unknown(t)},e=arguments.length?Bi.call(e,zo):[0,1],la(n)}var pa=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a0){for(;pu)break;m.push(f)}}else for(;p=1;--c)if(!((f=l*c)u)break;m.push(f)}}else m=ji(p,h,Math.min(h-p,d)).map(n);return r?m.reverse():m},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Qo(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o0?r[i-1]:t[0],i=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Ma().domain([t,n]).range(o).unknown(e)},Ai.apply(la(a),arguments)}function Ia(){var e,t=[.5],n=[0,1],r=1;function i(i){return i<=i?n[_i(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Ui.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Ui.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Ia().domain(t).range(n).unknown(e)},Ai.apply(i,arguments)}var Da=new Date,Ra=new Date;function La(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t0))return s;do{s.push(a=new Date(+n)),t(n,o),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&&(i.count=function(t,r){return Da.setTime(+t),Ra.setTime(+r),e(Da),e(Ra),Math.floor(n(Da,Ra))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var za=La(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()});za.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La(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 Na=za,Fa=(za.range,La(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()})),Ba=Fa,Ua=(Fa.range,6e4),Va=6048e5;function Wa(e){return La(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())*Ua)/Va})}var Ha=Wa(0),qa=Wa(1),Ga=Wa(2),Ya=Wa(3),Za=Wa(4),Xa=Wa(5),$a=Wa(6),Ka=(Ha.range,qa.range,Ga.range,Ya.range,Za.range,Xa.range,$a.range,La(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())*Ua)/864e5},function(e){return e.getDate()-1})),Ja=Ka,Qa=(Ka.range,La(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Ua)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),es=Qa,ts=(Qa.range,La(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getMinutes()})),ns=ts,rs=(ts.range,La(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()})),is=rs,os=(rs.range,La(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e}));os.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?La(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):os:null};var as=os;os.range;function ss(e){return La(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)/Va})}var us=ss(0),ls=ss(1),cs=ss(2),fs=ss(3),ps=ss(4),hs=ss(5),ds=ss(6),ms=(us.range,ls.range,cs.range,fs.range,ps.range,hs.range,ds.range,La(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})),ys=ms,vs=(ms.range,La(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()}));vs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La(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 gs=vs;vs.range;function bs(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 _s(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 xs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ws,Os,Es,ks={"-":"",_:" ",0:"0"},Ss=/^\s*\d+/,js=/^%/,Ts=/[\\^$*+?|[\]().{}]/g;function Cs(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function Bs(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 Us(e,t,n){var r=Ss.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Vs(e,t,n){var r=Ss.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ws(e,t,n){var r=Ss.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Hs(e,t,n){var r=Ss.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function qs(e,t,n){var r=Ss.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Gs(e,t,n){var r=Ss.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ys(e,t,n){var r=Ss.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Zs(e,t,n){var r=Ss.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Xs(e,t,n){var r=Ss.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $s(e,t,n){var r=js.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ks(e,t,n){var r=Ss.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Js(e,t,n){var r=Ss.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Qs(e,t){return Cs(e.getDate(),t,2)}function eu(e,t){return Cs(e.getHours(),t,2)}function tu(e,t){return Cs(e.getHours()%12||12,t,2)}function nu(e,t){return Cs(1+Ja.count(Na(e),e),t,3)}function ru(e,t){return Cs(e.getMilliseconds(),t,3)}function iu(e,t){return ru(e,t)+"000"}function ou(e,t){return Cs(e.getMonth()+1,t,2)}function au(e,t){return Cs(e.getMinutes(),t,2)}function su(e,t){return Cs(e.getSeconds(),t,2)}function uu(e){var t=e.getDay();return 0===t?7:t}function lu(e,t){return Cs(Ha.count(Na(e)-1,e),t,2)}function cu(e){var t=e.getDay();return t>=4||0===t?Za(e):Za.ceil(e)}function fu(e,t){return e=cu(e),Cs(Za.count(Na(e),e)+(4===Na(e).getDay()),t,2)}function pu(e){return e.getDay()}function hu(e,t){return Cs(qa.count(Na(e)-1,e),t,2)}function du(e,t){return Cs(e.getFullYear()%100,t,2)}function mu(e,t){return Cs((e=cu(e)).getFullYear()%100,t,2)}function yu(e,t){return Cs(e.getFullYear()%1e4,t,4)}function vu(e,t){var n=e.getDay();return Cs((e=n>=4||0===n?Za(e):Za.ceil(e)).getFullYear()%1e4,t,4)}function gu(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Cs(t/60|0,"0",2)+Cs(t%60,"0",2)}function bu(e,t){return Cs(e.getUTCDate(),t,2)}function _u(e,t){return Cs(e.getUTCHours(),t,2)}function xu(e,t){return Cs(e.getUTCHours()%12||12,t,2)}function wu(e,t){return Cs(1+ys.count(gs(e),e),t,3)}function Ou(e,t){return Cs(e.getUTCMilliseconds(),t,3)}function Eu(e,t){return Ou(e,t)+"000"}function ku(e,t){return Cs(e.getUTCMonth()+1,t,2)}function Su(e,t){return Cs(e.getUTCMinutes(),t,2)}function ju(e,t){return Cs(e.getUTCSeconds(),t,2)}function Tu(e){var t=e.getUTCDay();return 0===t?7:t}function Cu(e,t){return Cs(us.count(gs(e)-1,e),t,2)}function Pu(e){var t=e.getUTCDay();return t>=4||0===t?ps(e):ps.ceil(e)}function Au(e,t){return e=Pu(e),Cs(ps.count(gs(e),e)+(4===gs(e).getUTCDay()),t,2)}function Mu(e){return e.getUTCDay()}function Iu(e,t){return Cs(ls.count(gs(e)-1,e),t,2)}function Du(e,t){return Cs(e.getUTCFullYear()%100,t,2)}function Ru(e,t){return Cs((e=Pu(e)).getUTCFullYear()%100,t,2)}function Lu(e,t){return Cs(e.getUTCFullYear()%1e4,t,4)}function zu(e,t){var n=e.getUTCDay();return Cs((e=n>=4||0===n?ps(e):ps.ceil(e)).getUTCFullYear()%1e4,t,4)}function Nu(){return"+0000"}function Fu(){return"%"}function Bu(e){return+e}function Uu(e){return Math.floor(+e/1e3)}!function(e){ws=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=As(i),c=Ms(i),f=As(o),p=Ms(o),h=As(a),d=Ms(a),m=As(s),y=Ms(s),v=As(u),g=Ms(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Qs,e:Qs,f:iu,g:mu,G:vu,H:eu,I:tu,j:nu,L:ru,m:ou,M:au,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Bu,s:Uu,S:su,u:uu,U:lu,V:fu,w:pu,W:hu,x:null,X:null,y:du,Y:yu,Z:gu,"%":Fu},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:bu,e:bu,f:Eu,g:Ru,G:zu,H:_u,I:xu,j:wu,L:Ou,m:ku,M:Su,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Bu,s:Uu,S:ju,u:Tu,U:Cu,V:Au,w:Mu,W:Iu,x:null,X:null,y:Du,Y:Lu,Z:Nu,"%":Fu},x={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[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=v.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:Ws,e:Ws,f:Xs,g:Fs,G:Ns,H:qs,I:qs,j:Hs,L:Zs,m:Vs,M:Gs,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Us,Q:Ks,s:Js,S:Ys,u:Ds,U:Rs,V:Ls,w:Is,W:zs,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Fs,Y:Ns,Z:Bs,"%":$s};function w(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=_s(xs(o.y,0,1))).getUTCDay(),r=i>4||0===i?ls.ceil(r):ls(r),r=ys.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=bs(xs(o.y,0,1))).getDay(),r=i>4||0===i?qa.ceil(r):qa(r),r=Ja.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?_s(xs(o.y,0,1)).getUTCDay():bs(xs(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,_s(o)):bs(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in ks?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),_.x=w(n,_),_.X=w(r,_),_.c=w(t,_),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}(e),Os=ws.format,ws.parse,Es=ws.utcFormat,ws.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"]});var Vu=1e3,Wu=60*Vu,Hu=60*Wu,qu=24*Hu,Gu=7*qu,Yu=30*qu,Zu=365*qu;function Xu(e){return new Date(e)}function $u(e){return e instanceof Date?+e:+new Date(+e)}function Ku(e,t,n,r,i,o,a,s,u){var l=Go(Fo,Fo),c=l.invert,f=l.domain,p=u(".%L"),h=u(":%S"),d=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),v=u("%b %d"),g=u("%B"),b=u("%Y"),_=[[a,1,Vu],[a,5,5*Vu],[a,15,15*Vu],[a,30,30*Vu],[o,1,Wu],[o,5,5*Wu],[o,15,15*Wu],[o,30,30*Wu],[i,1,Hu],[i,3,3*Hu],[i,6,6*Hu],[i,12,12*Hu],[r,1,qu],[r,2,2*qu],[n,1,Gu],[t,1,Yu],[t,3,3*Yu],[e,1,Zu]];function x(s){return(a(s)1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n};function Ol(e,t){return e[t]}function El(){return(El=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Sl={className:p.a.string,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function jl(e){var t=e.children,n=e.className,r=kl(e,["children","className"]),i=d()("recharts-layer",n);return c.a.createElement("g",El({className:i},r),t)}jl.propTypes=Sl;var Tl=jl;function Cl(e){return(Cl="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 Pl(){return(Pl=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Il(e,t){for(var n=0;n=0});if(o&&o.length){var a=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=Wl(t,n,0),i=w()(r)?[Wr()(r),Ur()(r)]:[r,r],o=a.reduce(function(e,n){var r=Wl(t,n,0),o=i[0]-Math.abs(w()(r)?r[0]:r),a=i[1]+Math.abs(w()(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]},[1/0,-1/0])}return null},Zl=function(e,t,n,r){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i&&Yl(e,t,i)||Hl(e,i,n,r)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return i.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:qi(),realScaleType:"point"}:"category"===i?{scale:Hi(),realScaleType:"band"}:{scale:ca(),realScaleType:"linear"};if(g()(n)){var u="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[u]||qi)(),realScaleType:r[u]?u:"point"}}return a()(n)?{scale:n}:{scale:qi(),realScaleType:"point"}},ec=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(ao||so)&&e.domain([t[0],t[n-1]])}},tc={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a=2){for(var n=Pn()(t,function(e){return e.coordinate}),r=1/0,i=1,o=n.length;i2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},_c=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,u=Math.acos(s);return r>o&&(u=2*Math.PI-u),{radius:a,angle:vc(u),angleInRadian:u}},xc=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},wc=function(e,t){var n=e.x,r=e.y,i=_c({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,u=t.outerRadius;if(ou)return!1;if(0===o)return!0;var l,c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=c.startAngle,p=c.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h=f&&h<=p}else{for(;h>f;)h-=360;for(;h=p&&h<=f}return l?hc({},t,{radius:o,angle:xc(h,t)}):null};function Oc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===o?(r=m+x*s,i=g):"insideEnd"===o?(r=v-x*s,i=!g):"end"===o&&(r=v+x*s,i=g),i=_<=0?i:!i;var w=gc(l,f,b,r),O=gc(l,f,b,r+359*(i?1:-1)),E="M".concat(w.x,",").concat(w.y,"\n A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n ").concat(O.x,",").concat(O.y),k=y()(e.id)?D("recharts-radial-line-"):e.id;return c.a.createElement("text",Ec({},n,{dominantBaseline:"central",className:d()("recharts-radial-bar-label",u)}),c.a.createElement("defs",null,c.a.createElement("path",{id:k,d:E})),c.a.createElement("textPath",{xlinkHref:"#".concat(k)},t))},Mc=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.cx,o=t.cy,a=t.innerRadius,s=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var l=gc(i,o,s+n,u),c=l.x;return{x:c,y:l.y,textAnchor:c>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=gc(i,o,(a+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},Ic=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.x,o=t.y,a=t.width,s=t.height,u=s>=0?1:-1;return"top"===r?{x:i+a/2,y:o-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+s+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+s-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:i+n,y:o+s-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+s-u*n,textAnchor:"end",verticalAnchor:"end"}:_()(r)&&(A(r.x)||P(r.x))&&(A(r.y)||P(r.y))?{x:i+R(r.x,a),y:o+R(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}},Dc=function(e){return A(e.cx)};function Rc(e){var t,n=e.viewBox,r=e.position,i=e.value,o=e.children,s=e.content,u=e.className,f=void 0===u?"":u;if(!n||y()(i)&&y()(o)&&!Object(l.isValidElement)(s)&&!a()(s))return null;if(Object(l.isValidElement)(s))return Object(l.cloneElement)(s,e);if(a()(s)){if(t=s(e),Object(l.isValidElement)(t))return t}else t=Pc(e);var p=Dc(n),h=K(e),m=Q(e);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return Ac(e,t,h);var v=p?Mc(e):Ic(e);return c.a.createElement(Fr,Ec({className:d()("recharts-label",f)},h,v,m),t)}Rc.displayName="Label",Rc.defaultProps={offset:5},Rc.propTypes=Cc;var Lc=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,l=e.outerRadius,c=e.x,f=e.y,p=e.top,h=e.left,d=e.width,m=e.height,y=e.clockWise;if(A(d)&&A(m)){if(A(c)&&A(f))return{x:c,y:f,width:d,height:m};if(A(p)&&A(h))return{x:p,y:h,width:d,height:m}}return A(c)&&A(f)?{x:c,y:f,width:0,height:0}:A(t)&&A(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};Rc.parseViewBox=Lc,Rc.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,i=Lc(e),o=X(r,Rc).map(function(e,n){return Object(l.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});return n?[function(e,t){return e?!0===e?c.a.createElement(Rc,{key:"label-implicit",viewBox:t}):M(e)?c.a.createElement(Rc,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===Rc?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):c.a.createElement(Rc,{key:"label-implicit",content:e,viewBox:t}):a()(e)?c.a.createElement(Rc,{key:"label-implicit",content:e,viewBox:t}):_()(e)?c.a.createElement(Rc,Ec({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||i)].concat(Oc(o)):o};var zc=Rc,Nc=n(393),Fc=n.n(Nc);function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vc(e){return(Vc="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 Wc(){return(Wc=Object.assign||function(e){for(var t=1;t180),",").concat(+(o>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=gc(t,n,r,o),p=gc(t,n,r,s);c+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else c+="L ".concat(t,",").concat(n," Z");return c},$c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qc(this,Gc(t).apply(this,arguments))}var n,r,i;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&&Yc(e,t)}(t,l["PureComponent"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,c=C(l-u),f=Zc({cx:t,cy:n,radius:i,angle:u,sign:c,cornerRadius:o,cornerIsExternal:s}),p=f.circleTangency,h=f.lineTangency,d=f.theta,m=Zc({cx:t,cy:n,radius:i,angle:l,sign:-c,cornerRadius:o,cornerIsExternal:s}),y=m.circleTangency,v=m.lineTangency,g=m.theta,b=Math.abs(u-l)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):Xc({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l});var _="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=Zc({cx:t,cy:n,radius:r,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),w=x.circleTangency,O=x.lineTangency,E=x.theta,k=Zc({cx:t,cy:n,radius:r,angle:l,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),S=k.circleTangency,j=k.lineTangency,T=k.theta,P=Math.abs(u-l)-E-T;if(P<0)return"".concat(_,"L").concat(t,",").concat(n,"Z");_+="L".concat(j.x,",").concat(j.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(S.x,",").concat(S.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(c>0),",").concat(w.x,",").concat(w.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(O.x,",").concat(O.y,"Z")}else _+="L".concat(t,",").concat(n,"Z");return _}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(y,m/2),forceCornerRadius:a,cornerIsExternal:s,startAngle:u,endAngle:l}):Xc({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l}),c.a.createElement("path",Wc({},K(this.props),Q(this.props),{className:h,d:p}))}}])&&Hc(n.prototype,r),i&&Hc(n,i),t}();$c.displayName="Sector",$c.propTypes=function(e){for(var t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[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}};function vf(e){return e[0]}function gf(e){return e[1]}var bf=function(){var e=vf,t=gf,n=Fe(!0),r=null,i=af,o=null;function a(a){var s,u,l,c=a.length,f=!1;for(null==r&&(o=i(l=Ne())),s=0;s<=c;++s)!(s=c;--f)s.point(y[f],v[f]);s.lineEnd(),s.areaEnd()}m&&(y[l]=+e(p,l,u),v[l]=+n(p,l,u),s.point(t?+t(p,l,u):y[l],r?+r(p,l,u):v[l]))}if(h)return s=null,h+""||null}function l(){return bf().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(e="function"===typeof n?n:Fe(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:Fe(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Fe(+e),u):t},u.y=function(e){return arguments.length?(n="function"===typeof e?e:Fe(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"===typeof e?e:Fe(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Fe(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:Fe(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u};function xf(e){return(xf="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 wf(){return(wf=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Hf={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])},qf={valueAccessor:function(e){return w()(e.value)?zf()(e.value):e.value}};function Gf(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,o=e.id,a=Wf(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?c.a.createElement(Tl,{className:"recharts-label-list"},t.map(function(e,t){var s=y()(r)?n(e,t):Wl(e&&e.payload,r),u=y()(o)?{}:{id:"".concat(o,"-").concat(t)};return c.a.createElement(zc,Ff({},K(e),a,u,{index:t,value:s,viewBox:zc.parseViewBox(y()(i)?e:Uf({},e,{clockWise:i})),key:"label-".concat(t)}))})):null}Gf.propTypes=Hf,Gf.displayName="LabelList";Gf.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,i=X(r,Gf).map(function(e,n){return Object(l.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return n?[function(e,t){return e?!0===e?c.a.createElement(Gf,{key:"labelList-implicit",data:t}):c.a.isValidElement(e)||a()(e)?c.a.createElement(Gf,{key:"labelList-implicit",data:t,content:e}):_()(e)?c.a.createElement(Gf,Ff({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(Nf(i)):i},Gf.defaultProps=qf;var Yf=Gf;function Zf(e){return(Zf="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 Xf(){return(Xf=Object.assign||function(e){for(var t=1;tt?"start":e0?E()(e,"paddingAngle",0):0;if(n){var s=z(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=Kf({},e,{startAngle:o+a,endAngle:o+s(r)+a});i.push(l),o=l.endAngle}else{var c=e.endAngle,f=e.startAngle,p=z(0,c-f)(r),h=Kf({},e,{startAngle:o+a,endAngle:o+p+a});i.push(h),o=h.endAngle}}),c.a.createElement(Tl,null,e.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&wt()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,i=e.label,o=e.cx,a=e.cy,s=e.innerRadius,u=e.outerRadius,l=e.isAnimationActive,f=e.prevSectors;if(t||!n||!n.length||!A(o)||!A(a)||!A(s)||!A(u))return null;var p=d()("recharts-pie",r);return c.a.createElement(Tl,{className:p},this.renderSectors(),i&&this.renderLabels(n),zc.renderCallByParent(this.props,null,!1),(!l||f&&wt()(f,n))&&Yf.renderCallByParent(this.props,n,!1))}}])&&Qf(n.prototype,r),i&&Qf(n,i),t}();rp.displayName="Pie",rp.propTypes=Kf({},V,{},W,{className:p.a.string,animationId:p.a.number,cx:p.a.oneOfType([p.a.number,p.a.string]),cy:p.a.oneOfType([p.a.number,p.a.string]),startAngle:p.a.number,endAngle:p.a.number,paddingAngle:p.a.number,innerRadius:p.a.oneOfType([p.a.number,p.a.string]),outerRadius:p.a.oneOfType([p.a.number,p.a.string]),cornerRadius:p.a.oneOfType([p.a.number,p.a.string]),dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]).isRequired,nameKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]),valueKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]),data:p.a.arrayOf(p.a.object),blendStroke:p.a.bool,minAngle:p.a.number,legendType:p.a.oneOf(G),tooltipType:p.a.oneOf(Y),maxRadius:p.a.number,sectors:p.a.arrayOf(p.a.object),hide:p.a.bool,labelLine:p.a.oneOfType([p.a.object,p.a.func,p.a.element,p.a.bool]),label:p.a.oneOfType([p.a.shape({offsetRadius:p.a.number}),p.a.func,p.a.element,p.a.bool]),activeShape:p.a.oneOfType([p.a.object,p.a.func,p.a.element]),activeIndex:p.a.oneOfType([p.a.number,p.a.arrayOf(p.a.number)]),onAnimationStart:p.a.func,onAnimationEnd:p.a.func,isAnimationActive:p.a.bool,animationBegin:p.a.number,animationDuration:p.a.number,animationEasing:p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:p.a.string}),rp.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!re(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},rp.parseDeltaAngle=function(e){var t=e.startAngle,n=e.endAngle;return C(n-t)*Math.min(Math.abs(n-t),360)},rp.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,i=K(e.props),o=X(r,vr);return n&&n.length?n.map(function(e,t){return Kf({payload:e},i,{},e,{},o&&o[t]&&o[t].props)}):o&&o.length?o.map(function(e){return Kf({},i,{},e.props)}):[]},rp.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=bc(i,o);return{cx:r+R(e.props.cx,i,i/2),cy:n+R(e.props.cy,o,o/2),innerRadius:R(e.props.innerRadius,a,0),outerRadius:R(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},rp.getComposedData=function(e){var t=e.item,n=e.offset,r=e.onItemMouseLeave,i=e.onItemMouseEnter,o=rp.getRealPieData(t);if(!o||!o.length)return[];var a=t.props,s=a.cornerRadius,u=a.startAngle,l=a.endAngle,c=a.paddingAngle,f=a.dataKey,p=a.nameKey,h=a.valueKey,d=a.tooltipType,m=Math.abs(t.props.minAngle),v=rp.parseCoordinateOfPie(t,n),g=o.length,b=rp.parseDeltaAngle({startAngle:u,endAngle:l}),_=Math.abs(b),x=_-g*m-(_>=360?g:g-1)*c,w=f;y()(f)&&y()(h)?w="value":y()(f)&&(w=h);var O,E,k=o.reduce(function(e,t){var n=Wl(t,w,0);return e+(A(n)?n:0)},0);k>0&&(O=o.map(function(e,t){var n,r=Wl(e,w,0),i=Wl(e,p,t),o=(A(r)?r:0)/k,a=(n=t?E.endAngle+C(b)*c:u)+C(b)*(m+o*x),l=(n+a)/2,f=(v.innerRadius+v.outerRadius)/2,h=[{name:i,value:r,payload:e,dataKey:w,type:d}],y=gc(v.cx,v.cy,f,l);return E=Kf({percent:o,cornerRadius:s,name:i,tooltipPayload:h,midAngle:l,middleRadius:f,tooltipPosition:y},e,{},v,{value:Wl(e,w),startAngle:n,endAngle:a,payload:e,paddingAngle:C(b)*c})}));return Kf({},v,{sectors:O,data:o,onMouseLeave:r,onMouseEnter:i})};var ip=rp,op=n(395),ap=n.n(op),sp=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},up=n(206),lp=n.n(up),cp=n(276),fp=n.n(cp);function pp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hp(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}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}();_p.EPS=1e-4;var xp=function(){function e(t){pp(this,e),this.scales=fp()(t,_p.create),Object.assign(this,this.scales)}return dp(e,null,[{key:"create",value:function(e){return new this(e)}}]),dp(e,[{key:"apply",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,n=this.scales;return fp()(e,function(e,r){return n[r].apply(e,{bandAware:t})})}},{key:"isInRange",value:function(e){var t=this.scales;return lp()(e,function(e,n){return t[n].isInRange(e)})}}]),e}();function wp(e){return(wp="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 Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ep(e){for(var t=1;t0||!wt()(s,r)||!wt()(u,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,o=e.top,a=e.left,s=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,v=1===r.length,g=d()("recharts-area",i),b=s&&s.allowDataOverflow||u&&u.allowDataOverflow,_=y()(h)?this.id:h;return c.a.createElement(Tl,{className:g},b?c.a.createElement("defs",null,c.a.createElement("clipPath",{id:"clipPath-".concat(_)},c.a.createElement("rect",{x:a,y:o,width:l,height:parseInt(f,10)}))):null,v?null:this.renderArea(b,_),(n||v)&&this.renderDots(b,_),(!p||m)&&Yf.renderCallByParent(this.props,r))}}])&&Yp(n.prototype,r),i&&Yp(n,i),t}();Kp.displayName="Area",Kp.propTypes=qp({},V,{},W,{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(Y),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}),Kp.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!re(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Kp.getBaseValue=function(e,t,n){var r=e.layout,i=e.baseValue;if(A(i))return i;var o="horizontal"===r?n:t,a=o.scale.domain();if("number"===o.type){var s=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return"dataMin"===i?u:"dataMax"===i?s:s<0?s:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},Kp.getComposedData=function(e){var t,n=e.props,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,u=e.dataKey,l=e.stackedData,c=e.dataStartIndex,f=e.displayedData,p=e.offset,h=n.layout,d=l&&l.length,m=Kp.getBaseValue(n,r,i),v=!1,g=f.map(function(e,t){var n;return d?n=l[c+t]:(n=Wl(e,u),w()(n)?v=!0:n=[m,n]),"horizontal"===h?{x:ic({axis:r,ticks:o,bandSize:s,entry:e,index:t}),y:y()(n[1])?null:i.scale(n[1]),value:n,payload:e}:{x:y()(n[1])?null:r.scale(n[1]),y:ic({axis:i,ticks:a,bandSize:s,entry:e,index:t}),value:n,payload:e}});return t=d||v?g.map(function(e){return"horizontal"===h?{x:e.x,y:y()(E()(e,"value[0]"))?null:i.scale(E()(e,"value[0]"))}:{x:y()(E()(e,"value[0]"))?null:r.scale(E()(e,"value[0]")),y:e.y}}):"horizontal"===h?i.scale(m):r.scale(m),qp({points:g,baseLine:t,layout:h,isRange:v},p)},Kp.renderDotItem=function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(Up,Wp({},t,{className:"recharts-area-dot"}))};var Jp=Kp;function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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(){return(nh=Object.assign||function(e){for(var t=1;t=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var c=[],f=0;f<4;f++)c[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),o+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*c[1])),o+="L ".concat(e+n,",").concat(t+r-s*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(e+n-u*c[2],",").concat(t+r)),o+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+n-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-u*p,",").concat(t+r,"\n L ").concat(e+u*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},uh=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,i=new Array(r),o=0;o0,from:{width:i,height:o,x:n,y:r},to:{width:i,height:o,x:n,y:r},duration:p,animationEasing:f,isActive:y},function(t){var n=t.width,r=t.height,i=t.x,o=t.y;return c.a.createElement(Tn,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:m,easing:f},c.a.createElement("path",nh({},K(e.props),Q(e.props),{className:v,d:sh(i,o,n,r,a),ref:function(t){e.node=t}})))}):c.a.createElement("path",nh({},K(this.props),Q(this.props),{className:v,d:sh(n,r,i,o,a)}))}}])&&rh(n.prototype,r),i&&rh(n,i),t}();uh.displayName="Rectangle",uh.propTypes=function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ph(){return(ph=Object.assign||function(e){for(var t=1;t=0?0:i<0?i:r}return n[0]}({props:t,numericAxis:b}),O=X(v,vr),E=f.map(function(e,t){var n,r,f,p,m,v;if(l?n=function(e,t){if(!t||2!==t.length||!A(t[0])||!A(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!A(e[0])||e[0]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]0&&Math.abs(m)0&&Math.abs(p)=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function id(e,t){for(var n=0;n=2?C(y[1].coordinate-y[0].coordinate):1;if(1===b?(n="width"===m?f:p,r="width"===m?f+h:p+d):(n="width"===m?f+h:p+d,r="width"===m?f:p),t){var _=i[g-1],x=a()(o)?o(_.value):_.value,w=jr(x)[m]+v,O=b*(_.coordinate+b*w/2-r);y[g-1]=_=td({},_,{tickCoord:O>0?_.coordinate-O*b:_.coordinate}),b*(_.tickCoord-b*w/2-n)>=0&&b*(_.tickCoord+b*w/2-r)<=0&&(r=_.tickCoord-b*(w/2+l),y[g-1]=td({},_,{isShow:!0}))}for(var E=t?g-1:g,k=0;k=0&&b*(S.tickCoord+b*T/2-r)<=0&&(n=S.tickCoord+b*(T/2+l),y[k]=td({},S,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,s=e.orientation,u=e.minTickGap,l=e.unit,c=o.x,f=o.y,p=o.width,h=o.height,d="top"===s||"bottom"===s?"width":"height",m=l&&"width"===d?jr(l)[d]:0,y=(r||[]).slice(),v=y.length,g=v>=2?C(y[1].coordinate-y[0].coordinate):1;1===g?(t="width"===d?c:f,n="width"===d?c+p:f+h):(t="width"===d?c+p:f+h,n="width"===d?c:f);for(var b=v-1;b>=0;b--){var _=y[b],x=a()(i)?i(_.value):_.value,w=jr(x)[d]+m;if(b===v-1){var O=g*(_.coordinate+g*w/2-n);y[b]=_=td({},_,{tickCoord:O>0?_.coordinate-O*g:_.coordinate})}else y[b]=_=td({},_,{tickCoord:_.coordinate});g*(_.tickCoord-g*w/2-t)>=0&&g*(_.tickCoord+g*w/2-n)<=0&&(n=_.tickCoord-g*(w/2+u),y[b]=td({},_,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(Fr,Qh({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=rd(e,["viewBox"]),i=this.props,o=i.viewBox,a=rd(i,["viewBox"]);return!F(n,o)||!F(r,a)||!F(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,s=this.props,u=s.x,l=s.y,c=s.width,f=s.height,p=s.orientation,h=s.tickSize,d=s.mirror,m=s.tickMargin,y=d?-1:1,v=e.tickSize||h,g=A(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+!d*f)-y*v)-y*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=u+!d*c)-y*v)-y*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=u+d*c)+y*v)+y*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+d*f)+y*v)+y*m,o=g}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,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,i=e.height,o=e.orientation,a=e.axisLine,s=e.mirror,u=td({},K(this.props),{fill:"none"},K(a));if("top"===o||"bottom"===o){var l="top"===o&&!s||"bottom"===o&&s;u=td({},u,{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var f="left"===o&&!s||"right"===o&&s;u=td({},u,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+i})}return c.a.createElement("line",Qh({className:"recharts-cartesian-axis-line"},u))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,i=r.tickLine,o=r.stroke,s=r.tick,u=r.tickFormatter,l=r.unit,f=t.getTicks(td({},this.props,{ticks:e})),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=K(this.props),m=K(s),y=td({},d,{fill:"none"},K(i)),v=f.map(function(e,t){var r=n.getTickLineCoord(e),v=r.line,g=r.tick,b=td({textAnchor:p,verticalAnchor:h},d,{stroke:"none",fill:o},m,{},g,{index:t,payload:e,visibleTicksCount:f.length});return c.a.createElement(Tl,Qh({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},te(n.props,e,t)),i&&c.a.createElement("line",Qh({className:"recharts-cartesian-axis-tick-line"},y,v)),s&&n.constructor.renderTickItem(s,b,"".concat(a()(u)?u(e.value):e.value).concat(l||"")))});return c.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,i=e.ticksGenerator,o=e.className;if(e.hide)return null;var s=this.props,u=s.ticks,l=rd(s,["ticks"]),f=u;return a()(i)&&(f=u&&u.length>0?i(this.props):i(l)),n<=0||r<=0||!f||!f.length?null:c.a.createElement(Tl,{className:d()("recharts-cartesian-axis",o)},t&&this.renderAxisLine(),this.renderTicks(f),zc.renderCallByParent(this.props))}}])&&id(n.prototype,r),i&&id(n,i),t}();ud.displayName="CartesianAxis",ud.propTypes=td({},V,{},W,{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"])])}),ud.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 ld=ud;function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pd=["Webkit","Moz","O","ms"],hd=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=pd.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(bd(n),"startX"),endX:n.handleTravellerDragStart.bind(bd(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,i;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&&_d(e,t)}(t,l["PureComponent"]),n=t,i=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.width,o=n.x,a=n.travellerWidth,s=n.updateId;(e.data!==r||e.updateId!==s)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===i&&e.x===o&&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,i=r.gap,o=r.data.length-1,a=Math.min(t,n),s=Math.max(t,n),u=this.constructor.getIndexInRange(this.scaleValues,a),l=this.constructor.getIndexInRange(this.scaleValues,s);return{startIndex:u-u%i,endIndex:l===o?o:l-l%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=Wl(n[e],i,e);return a()(r)?r(o):o}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,l=o.startIndex,c=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-u-i,a+s-u-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});h.startIndex===l&&h.endIndex===c||!f||f(h),this.setState({startX:r+p,endX:i+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,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],u=this.props,l=u.x,c=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,d=u.data,m={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+c-f-s):y<0&&(y=Math.max(y,l-s)),m[i]=s+y;var v=this.getIndex(m),g=v.startIndex,b=v.endIndex;this.setState((yd(t={},i,s+y),yd(t,"brushMoveStartX",e.pageX),t),function(){p&&function(){var e=d.length-1;return"startX"===i&&(o>a?g%h===0:b%h===0)||oa?b%h===0:g%h===0)||o>a&&b===e}()&&p(v)})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,i=e.endIndex,o=e.x,a=e.width,s=e.travellerWidth,u=n.length;return this.scale=qi().domain(Fh()(0,u)).range([o,o+a-s]),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(i)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,a=e.stroke;return c.a.createElement("rect",{stroke:a,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.data,a=e.children,s=e.padding,u=l.Children.only(a);return u?c.a.cloneElement(u,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,s=Math.floor(r+o/2)-1,u=Math.max(e,this.props.x);return c.a.createElement(Tl,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.a.createElement("rect",{x:u,y:r,width:i,height:o,fill:a,stroke:"none"}),c.a.createElement("line",{x1:u+1,y1:s,x2:u+i-1,y2:s,fill:"none",stroke:"#fff"}),c.a.createElement("line",{x1:u+1,y1:s+2,x2:u+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,o=n.stroke;return c.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:o,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,o=e.travellerWidth,a=e.stroke,s=this.state,u=s.startX,l=s.endX,f={pointerEvents:"none",fill:a};return c.a.createElement(Tl,{className:"recharts-brush-texts"},c.a.createElement(Fr,md({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},f),this.getTextOfTick(t)),c.a.createElement(Fr,md({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,o=e.y,a=e.width,s=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,h=l.isTextActive,m=l.isSlideMoving,y=l.isTravellerMoving;if(!t||!t.length||!A(i)||!A(o)||!A(a)||!A(s)||a<=0||s<=0)return null;var v=d()("recharts-brush",n),g=1===c.a.Children.count(r),b=hd("userSelect","none");return c.a.createElement(Tl,{className:v,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,p),this.renderTraveller(f,"startX"),this.renderTraveller(p,"endX"),(h||m||y||u)&&this.renderText())}}])&&vd(n.prototype,r),i&&vd(n,i),t}();xd.displayName="Brush",xd.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,alwaysShowText:p.a.bool},xd.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var wd=xd;function Od(e){return(Od="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 Ed(){return(Ed=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kd(){return(Kd=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,i=e.offset;return $l(ld.getTicks(em({},ld.defaultProps,{},t,{ticks:Kl(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return $l(ld.getTicks(em({},ld.defaultProps,{},t,{ticks:Kl(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(e){return Kl(e,!0)},n.tooltipTicksGenerator=function(e){var t=L(e),n=Kl(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Pn()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cc(t)}},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!e||!e.props.cursor||!i||!o)return null;var u,c=n.props.layout,f=Rf;if("ScatterChart"===t)u=o,f=Kh;else if("BarChart"===t)u=n.getCursorRectangle(),f=lh;else if("radial"===c){var p=n.getCursorPoints(),h=p.cx,d=p.cy,m=p.radius;u={cx:h,cy:d,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:m,outerRadius:m},f=Kc}else u={points:n.getCursorPoints()},f=Rf;var y=e.key||"_recharts-cursor",v=em({stroke:"#ccc",pointerEvents:"none"},s,{},u,{},K(e.props.cursor),{payload:a,key:y,className:"recharts-tooltip-cursor"});return Object(l.isValidElement)(e.props.cursor)?Object(l.cloneElement)(e.props.cursor,v):Object(l.createElement)(f,v)},n.renderPolarAxis=function(e,t,r){var i=e.type.axisType,o=n.state["".concat(i,"Map")][e.props["".concat(i,"Id")]];return Object(l.cloneElement)(e,em({},o,{className:i,key:e.key||"".concat(t,"-").concat(r),ticks:Kl(o,!0)}))},n.renderXAxis=function(e,t,r){var i=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(i,e,t,r)},n.renderYAxis=function(e,t,r){var i=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(i,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,i=t.yAxisMap,o=t.offset,a=n.props,s=a.width,u=a.height,c=L(r),f=zh()(i,function(e){return lp()(e.domain,Number.isFinite)})||L(i),p=e.props||{};return Object(l.cloneElement)(e,{key:e.key||"grid",x:A(p.x)?p.x:o.left,y:A(p.y)?p.y:o.top,width:A(p.width)?p.width:o.width,height:A(p.height)?p.height:o.height,xAxis:c,yAxis:f,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,i=t.angleAxisMap,o=L(r),a=L(i),s=a.cx,u=a.cy,c=a.innerRadius,f=a.outerRadius;return Object(l.cloneElement)(e,{polarAngles:Kl(a,!0).map(function(e){return e.coordinate}),polarRadius:Kl(o,!0).map(function(e){return e.coordinate}),cx:s,cy:u,innerRadius:c,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,i=t.data,o=n.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,c=o.updateId;return Object(l.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Jl(n.handleBrushChange,null,e.props.onChange),data:i,x:A(e.props.x)?e.props.x:a.left,y:A(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:A(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var i=im(n).clipPathId,o=n.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,c=e.props,f=c.xAxisId,p=c.yAxisId;return Object(l.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:s[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},n.renderGraphicChild=function(e,t,r){var i=n.filterFormatItem(e,t,r);if(!i)return null;var o=Object(l.cloneElement)(e,i.props),a=n.state,s=a.isTooltipActive,u=a.tooltipAxis,c=a.activeTooltipIndex,f=a.activeLabel,p=n.props.children,h=$(p,nr),d=i.props,m=d.points,v=d.isRange,g=d.baseLine,b=i.item.props,_=b.activeDot;if(!b.hide&&s&&h&&_&&c>=0){var x,w;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"===typeof u.dataKey?function(e){return u.dataKey(e.payload)}:"payload.".concat(u.dataKey);x=N(m,O,f),w=v&&g&&N(g,O,f)}else x=m[c],w=v&&g&&g[c];if(!y()(x))return[o].concat(Jd(n.renderActivePoints({item:i,activePoint:x,basePoint:w,childIndex:c,isRange:v})))}return v?[o,null,null]:[o,null]},n.renderCustomized=function(e){return Object(l.cloneElement)(e,em({},n.props,{},n.state))};var s=n.constructor.createDefaultState(e);return n.state=em({},s,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(em({props:e},s,{updateId:0}))),n.uniqueChartId=y()(e.id)?D("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=Uh()(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&&om(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):c.a.createElement(Up,t),c.a.createElement(Tl,{className:"recharts-active-dot",key:t.key},n)}}],(p=[{key:"componentDidMount",value:function(){y()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.children,o=n.width,a=n.height,s=n.layout,u=n.stackOffset,l=n.margin,c=this.state.updateId;if(e.data===r&&e.width===o&&e.height===a&&e.layout===s&&e.stackOffset===u&&F(e.margin,l)){if(!ae(e.children,i)){var f=y()(e.data)?c+1:c;this.setState(function(n){return em({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(em({props:e},n,{updateId:f})))})}}else{var p=this.constructor.createDefaultState(e);this.setState(em({},p,{updateId:c+1},this.updateStateOfAxisMapsOffsetAndStackGroups(em({props:e},p,{updateId:c+1}))))}y()(this.props.syncId)&&!y()(e.syncId)&&this.addListener(),!y()(this.props.syncId)&&y()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){y()(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,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.children,c="".concat(r,"Id"),f=X(l,i),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=this.getAxisMapByItems(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,i=t.graphicalItems,o=t.axisType,a=t.axisIdKey,s=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,f=e.children,p=e.stackOffset,h=Xl(c,o);return r.reduce(function(t,r){var d=r.props,m=d.type,v=d.dataKey,g=d.allowDataOverflow,b=d.allowDuplicatedCategory,_=d.scale,x=d.ticks,O=r.props[a],E=n.constructor.getDisplayedData(e,{graphicalItems:i.filter(function(e){return e.props[a]===O}),dataStartIndex:u,dataEndIndex:l}),k=E.length;if(!t[O]){var S,j,T;if(v){if(S=Hl(E,v,m),"category"===m&&h){var C=function(e){if(!w()(e))return!1;for(var t=e.length,n={},r=0;r=0?e:[].concat(Jd(e),[t])},[]))}else if("category"===m)S=b?S.filter(function(e){return""!==e&&!y()(e)}):fc(r.props.domain,S,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||y()(t)?e:[].concat(Jd(e),[t])},[]);else if("number"===m){var P=function(e,t,n,r){var i=t.map(function(t){return Yl(e,t,n,r)}).filter(function(e){return!y()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(E,i.filter(function(e){return e.props[a]===O&&!e.props.hide}),v,o);P&&(S=P)}!h||"number"!==m&&"auto"===_||(T=Hl(E,v,"category"))}else S=h?Fh()(0,k):s&&s[O]&&s[O].hasStack&&"number"===m?"expand"===p?[0,1]:ac(s[O].stackGroups,u,l):Zl(E,i.filter(function(e){return e.props[a]===O&&!e.props.hide}),m,!0);return"number"===m&&(S=qd(f,S,O,o,x),r.props.domain&&(S=lc(r.props.domain,S,g))),em({},t,tm({},O,em({},r.props,{axisType:o,domain:S,categoricalDomain:T,duplicateDomain:j,originalDomain:r.props.domain,isCategorial:h,layout:c})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,c=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),p=f.length,h=Xl(l,i),d=-1;return n.reduce(function(e,t){var m,y=t.props[o];return e[y]?e:(d++,h?m=Fh()(0,p):a&&a[y]&&a[y].hasStack?(m=ac(a[y].stackGroups,s,u),m=qd(c,m,y,i)):(m=lc(r.defaultProps.domain,Zl(f,n.filter(function(e){return e.props[o]===y&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),m=qd(c,m,y,i)),em({},e,tm({},y,em({axisType:i},r.defaultProps,{hide:!0,orientation:am[i]&&am[i][d%2],domain:m,originalDomain:r.defaultProps.domain,isCategorial:h,layout:l}))))},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,i=e.find(function(e){return e&&e.index===t});if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return em({},n,{},gc(n.cx,n.cy,a,o),{angle:o,radius:a})}var s=i.coordinate,u=n.angle;return em({},n,{},gc(n.cx,n.cy,s,u),{angle:u,radius:s})}return sm}},{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,o=r.xAxisMap,a=r.yAxisMap;if("axis"!==i&&o&&a){var s=L(o).scale,u=L(a).scale;return em({},t,{xValue:s&&s.invert?s.invert(t.chartX):null,yValue:u&&u.invert?u.invert(t.chartY):null})}var l=this.state,c=l.orderedTooltipTicks,f=l.tooltipAxis,p=l.tooltipTicks,h=function(e,t,n,r){var i=-1,o=t.length;if(o>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s0?n[s-1].coordinate:n[o-1].coordinate,l=n[s].coordinate,c=s>=o-1?n[0].coordinate:n[s+1].coordinate,f=void 0;if(C(l-u)!==C(c-l)){var p=[];if(C(c-l)===C(a[1]-a[0])){f=c;var h=l+a[1]-a[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{f=u;var d=c+a[1]-a[0];p[0]=Math.min(l,(d+l)/2),p[1]=Math.max(l,(d+l)/2)}var m=[Math.min(l,(f+l)/2),Math.max(l,(f+l)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=n[s].index;break}}else{var y=Math.min(u,c),v=Math.max(u,c);if(e>(y+l)/2&&e<=(v+l)/2){i=n[s].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===o-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){i=t[g].index;break}}else i=0;return i}(this.calculateTooltipPos(n),c,p,f);if(h>=0&&p){var d=p[h]&&p[h].value;return em({},t,{activeTooltipIndex:h,activeLabel:d,activePayload:this.getTooltipContent(h,d),activeCoordinate:this.getActiveCoordinate(c,h,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=o.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,s=r.props,u=s.dataKey,l=s.name,c=s.unit,f=s.formatter,p=s.data,h=s.tooltipType;return(a=i.dataKey&&!i.allowDuplicatedCategory?N(p||o,i.dataKey,t):p&&p[e]||o[e])?[].concat(Jd(n),[em({},K(r),{dataKey:u,unit:c,formatter:f,name:l||u,color:ql(r),value:Wl(a,u),type:h,payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,i=t.stackGroups,a=t.offset,s=t.updateId,u=t.dataStartIndex,l=t.dataEndIndex,c=e.barSize,f=e.layout,p=e.barGap,h=e.barCategoryGap,d=e.maxBarSize,m=this.constructor.getAxisNameByLayout(f),v=m.numericAxisName,g=m.cateAxisName,b=this.constructor.hasBar(r),_=b&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a=0});if(m&&m.length){var v=m[0].props.barSize,g=m[0].props[d];i[g]||(i[g]=[]),i[g].push({item:m[0],stackList:m.slice(1),barSize:y()(v)?t:v})}}return i}({barSize:c,stackGroups:i}),x=[];return r.forEach(function(r,c){var m,w=n.constructor.getDisplayedData(e,{dataStartIndex:u,dataEndIndex:l},r),O=r.props,E=O.dataKey,k=O.maxBarSize,S=r.props["".concat(v,"Id")],j=r.props["".concat(g,"Id")],T=o.reduce(function(e,n){var i,o=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=o&&o[a];return em({},e,(tm(i={},n.axisType,s),tm(i,"".concat(n.axisType,"Ticks"),Kl(s)),i))},{}),C=T[g],P=T["".concat(g,"Ticks")],A=i&&i[S]&&i[S].hasStack&&function(e,t){var n=e.props.stackId;if(M(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o=0?r.stackedData[i]:null}}return null}(r,i[S].stackGroups),I=cc(C,P),D=y()(k)?d:k,L=b&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var u,l=R(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var c=!1,f=r/s,p=o.reduce(function(e,t){return e+t.barSize||0},0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&f>0&&(c=!0,p=s*(f*=.9));var h={offset:((r-p)/2>>0)-l,size:0};u=o.reduce(function(e,t){var n=[].concat(Fl(e),[{item:t.item,position:{offset:h.offset+h.size+l,size:c?f:t.barSize}}]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:h})}),n},[])}else{var d=R(n,r,0,!0);r-2*d-(s-1)*l<=0&&(l=0);var m=(r-2*d-(s-1)*l)/s;m>1&&(m>>=0);var y=a===+a?Math.min(m,a):m;u=o.reduce(function(e,t,n){var r=[].concat(Fl(e),[{item:t.item,position:{offset:d+(m+l)*n+(m-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 u}({barGap:p,barCategoryGap:h,bandSize:I,sizeList:_[j],maxBarSize:D}),z=r&&r.type&&r.type.getComposedData;z&&x.push({props:em({},z(em({},T,{displayedData:w,props:e,dataKey:E,item:r,bandSize:I,barPosition:L,offset:a,stackedData:A,layout:f,dataStartIndex:u,dataEndIndex:l,onItemMouseLeave:Jl(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Jl(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(m={key:r.key||"item-".concat(c)},tm(m,v,T[v]),tm(m,g,T[g]),tm(m,"animationId",s),m)),childIndex:le(r,e.children),item:r})}),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!y()(a.cx)||!y()(a.cy)){if("centric"!==i){var u=a.cx,l=a.cy,c=a.radius,f=a.startAngle,p=a.endAngle;return{points:[gc(u,l,c,f),gc(u,l,c,p)],cx:u,cy:l,radius:c,startAngle:f,endAngle:p}}var h=a.cx,d=a.cy,m=a.innerRadius,v=a.outerRadius,g=a.angle,b=gc(h,d,m,g),_=gc(h,d,v,g);e=b.x,t=b.y,n=_.x,r=_.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 i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=L(o);return wc({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=$(e,nr)&&"axis"===i?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return em({},Q(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,i=e.props,a=e.dataStartIndex,s=e.dataEndIndex,l=e.updateId;if(!ne({props:i}))return null;var c=i.children,f=i.layout,p=i.stackOffset,h=i.data,d=i.reverseStackOrder,m=this.constructor.getAxisNameByLayout(f),y=m.numericAxisName,v=m.cateAxisName,g=X(c,n),b=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce(function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(M(o)){var u=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),s.hasStack=!0,s.stackGroups[o]=u}else s.stackGroups[D("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Ul({},e,Vl({},a,s))},{});return Object.keys(a).reduce(function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,o){var a=s.stackGroups[o];return Ul({},t,Vl({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:nc(e,a.items,i)}))},{})),Ul({},t,Vl({},o,s))},{})}(h,g,"".concat(y,"Id"),"".concat(v,"Id"),p,d),_=o.reduce(function(e,t){return em({},e,tm({},"".concat(t.axisType,"Map"),r.getAxisMap(i,em({},t,{graphicalItems:g,stackGroups:t.axisType===y&&b,dataStartIndex:a,dataEndIndex:s}))))},{}),x=this.calculateOffset(em({},_,{props:i,graphicalItems:g}));Object.keys(_).forEach(function(e){_[e]=u(i,_[e],x,e.replace("Map",""),t)});var w=_["".concat(v,"Map")],O=this.tooltipTicksGenerator(w),E=this.getFormatItems(i,em({},_,{dataStartIndex:a,dataEndIndex:s,updateId:l,graphicalItems:g,stackGroups:b,offset:x}));return em({formatedGraphicalItems:E,graphicalItems:g,offset:x,stackGroups:b},O,{},_)}},{key:"addListener",value:function(){Yd.on(Zd,this.handleReceiveSyncEvent),Yd.setMaxListeners&&Yd._maxListeners&&Yd.setMaxListeners(Yd._maxListeners+1)}},{key:"removeListener",value:function(){Yd.removeListener(Zd,this.handleReceiveSyncEvent),Yd.setMaxListeners&&Yd._maxListeners&&Yd.setMaxListeners(Yd._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=t.width,u=t.height,l=t.children,c=t.margin||{},f=$(l,wd),p=$(l,_t),h=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:em({},e,tm({},r,e[r]+n.width))},{left:c.left||0,right:c.right||0}),d=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:em({},e,tm({},r,e[r]+n.height))},{top:c.top||0,bottom:c.bottom||0}),m=em({},d,{},h),y=m.bottom;return f&&(m.bottom+=f.props.height||wd.defaultProps.height),p&&this.legendInstance&&(m=function(e,t,n,r){var i=n.children,o=n.width,a=n.height,s=n.margin,u=o-(s.left||0)-(s.right||0),l=a-(s.top||0)-(s.bottom||0),c=Gl({children:i,items:t,legendWidth:u,legendHeight:l}),f=e;if(c){var p=r||{},h=c.align,d=c.verticalAlign,m=c.layout;("vertical"===m||"horizontal"===m&&"center"===d)&&A(e[h])&&(f=Ul({},e,Vl({},h,f[h]+(p.width||0)))),("horizontal"===m||"vertical"===m&&"center"===h)&&A(e[d])&&(f=Ul({},e,Vl({},d,f[d]+(p.height||0))))}return f}(m,n,t,this.legendInstance.getBBox())),em({brushBottom:y},m,{width:s-m.left-m.right,height:u-m.top-m.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;y()(t)||Yd.emit(Zd,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i=0})},m.getDisplayedData=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(Jd(e),Jd(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 s=e.data;return s&&s.length&&A(i)&&A(o)?s.slice(i,o+1):[]},m};function lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fm(e){return(fm="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 pm(){return(pm=Object.assign||function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,o=e.axisLineType,a=Om({},K(this.props),{fill:"none"},K(i));if("circle"===o)return c.a.createElement(Up,xm({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var s=this.props.ticks.map(function(e){return gc(t,n,r,e.coordinate)});return c.a.createElement(bm,xm({className:"recharts-polar-angle-axis-line"},a,{points:s}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.tickLine,o=t.tickFormatter,a=t.stroke,s=K(this.props),u=K(r),l=Om({},s,{fill:"none"},K(i)),f=n.map(function(t,n){var f=e.getTickLineCoord(t),p=Om({textAnchor:e.getTickTextAnchor(t)},s,{stroke:"none",fill:a},u,{index:n,payload:t,x:f.x2,y:f.y2});return c.a.createElement(Tl,xm({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},te(e.props,t,n)),i&&c.a.createElement("line",xm({className:"recharts-polar-angle-axis-tick-line"},l,f)),r&&e.constructor.renderTickItem(r,p,o?o(t.value):t.value))});return c.a.createElement(Tl,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:c.a.createElement(Tl,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&km(n.prototype,r),i&&km(n,i),t}();Pm.displayName="PolarAngleAxis",Pm.axisType="angleAxis",Pm.propTypes=Om({},V,{},W,{type:p.a.oneOf(["number","category"]),angleAxisId:p.a.oneOfType([p.a.string,p.a.number]),dataKey:p.a.oneOfType([p.a.number,p.a.string,p.a.func]),cx:p.a.number,cy:p.a.number,radius:p.a.oneOfType([p.a.number,p.a.string]),hide:p.a.bool,scale:p.a.oneOfType([p.a.oneOf(q),p.a.func]),axisLine:p.a.oneOfType([p.a.bool,p.a.object]),axisLineType:p.a.oneOf(["polygon","circle"]),tickLine:p.a.oneOfType([p.a.bool,p.a.object]),tick:p.a.oneOfType([p.a.bool,p.a.func,p.a.object,p.a.element]),ticks:p.a.arrayOf(p.a.shape({value:p.a.any,coordinate:p.a.number})),stroke:p.a.string,orientation:p.a.oneOf(["inner","outer"]),tickFormatter:p.a.func,allowDuplicatedCategory:p.a.bool}),Pm.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0};var Am=Pm,Mm=n(399),Im=n.n(Mm),Dm=n(400),Rm=n.n(Dm);function Lm(e){return(Lm="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 zm(){return(zm=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vm(e,t){for(var n=0;no){s=[].concat(ey(n.slice(0,u)),[o-l]);break}var c=s.length%2===0?[0,a]:[a];return[].concat(ey(this.constructor.repeat(n,i)),ey(s),c).map(function(e){return"".concat(e,"px")}).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=e.layout,o=e.children,a=X(o,Nl);if(!a)return null;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Wl(e.payload,t)}}return a.map(function(e,o){return c.a.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:i,dataPointFormatter:s})})}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,a=r.dataKey,s=K(this.props),u=K(i),l=Q(i),f=o.map(function(e,t){var r=Jm({key:"dot-".concat(t),r:3},s,{},u,{},l,{value:e.value,dataKey:a,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(i,r)}),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return c.a.createElement(Tl,$m({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,o=i.type,a=i.layout,s=i.connectNulls,u=Jm({},K(this.props),{},Q(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:o,layout:a,connectNulls:s});return c.a.createElement(Rf,$m({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.width,h=r.height,d=this.state,m=d.prevPoints,y=d.totalLength;return c.a.createElement(Tn,{begin:s,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var a=r.t;if(m){var s=m.length/i.length,u=i.map(function(e,t){var r=Math.floor(t*s);if(m[r]){var i=m[r],o=z(i.x,e.x),u=z(i.y,e.y);return Jm({},e,{x:o(a),y:u(a)})}if(n.animateNewValues){var l=z(2*p,e.x),c=z(h/2,e.y);return Jm({},e,{x:l(a),y:c(a)})}return Jm({},e,{x:e.x,y:e.y})});return n.renderCurveStatically(u,e,t)}var l,c=z(0,y)(a);if(o){var f=o.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});l=n.getStrokeDasharray(c,y,f)}else l="".concat(c,"px ").concat(y-c,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:l})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!wt()(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,o=e.xAxis,a=e.yAxis,s=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,v=1===r.length,g=d()("recharts-line",i),b=o&&o.allowDataOverflow||a&&a.allowDataOverflow,_=y()(h)?this.id:h;return c.a.createElement(Tl,{className:g},b?c.a.createElement("defs",null,c.a.createElement("clipPath",{id:"clipPath-".concat(_)},c.a.createElement("rect",{x:u,y:s,width:l,height:f}))):null,!v&&this.renderCurve(b,_),this.renderErrorBar(),(v||n)&&this.renderDots(b,_),(!p||m)&&Yf.renderCallByParent(this.props,r))}}])&&ty(n.prototype,r),i&&ty(n,i),t}();oy.displayName="Line",oy.propTypes=Jm({},V,{},W,{className:p.a.string,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,legendType:p.a.oneOf(G),tooltipType:p.a.oneOf(Y),layout:p.a.oneOf(["horizontal","vertical"]),connectNulls:p.a.bool,hide: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.object,p.a.element,p.a.func,p.a.bool]),top:p.a.number,left:p.a.number,width:p.a.number,height:p.a.number,points:p.a.arrayOf(p.a.shape({x:p.a.number,y:p.a.number,value:p.a.value})),onAnimationStart:p.a.func,onAnimationEnd:p.a.func,isAnimationActive:p.a.bool,animateNewValues:p.a.bool,animationBegin:p.a.number,animationDuration:p.a.number,animationEasing:p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:p.a.number,id:p.a.string}),oy.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!re(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},oy.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,c=t.layout;return Jm({points:u.map(function(e,t){var u=Wl(e,a);return"horizontal"===c?{x:ic({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:y()(u)?null:r.scale(u),value:u,payload:e}:{x:y()(u)?null:n.scale(u),y:ic({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:u,payload:e}}),layout:c},l)};var ay=oy;function sy(e){return(sy="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 uy(e,t){for(var n=0;n(s=(a=Math.ceil(p/y))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=l.length)-(o=c.length)<0&&(o=s,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/m|0,l[o]%=m;for(n&&(l.unshift(n),++i),s=l.length;0==l[--s];)l.pop();return t.d=l,t.e=i,u?C(t,p):t}function _(e,t,n){if(e!==~~e||en)throw Error(c+e)}function x(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;te.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;te.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.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 w(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return C(w(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return E(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,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(u=!1,t=w(j(n,a),j(e,a),a),u=!0,C(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):b(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(u=!1,t=w(n,e,0,1).times(e),u=!0,n.minus(t)):C(new r(n),i)},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):P(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=E(i)+1,n=(r=i.d.length-1)*y+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(l+"NaN")}for(e=E(s),u=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=x(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(w(s,o,a+2)).times(.5),x(o.d).slice(0,a)===(t=x(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(C(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return u=!0,C(r,n)},g.times=g.mul=function(e){var t,n,r,i,o,a,s,l,c,f=this,p=f.constructor,h=f.d,d=(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=h.length)<(c=d.length)&&(o=h,h=d,d=o,a=l,l=c,c=a),o=[],r=a=l+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+d[r]*h[i-r-1]+t,o[i--]=s%m|0,t=s/m|0;o[i]=(o[i]+t)%m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,u?C(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:(_(e,0,a),void 0===t?t=r.rounding:_(t,0,8),C(n,e+E(n)+1,t))},g.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=A(r,!0):(_(e,0,a),void 0===t?t=i.rounding:_(t,0,8),n=A(r=C(new i(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?A(i):(_(e,0,a),void 0===t?t=o.rounding:_(t,0,8),n=A((r=C(new o(i),e+E(i)+1,t)).abs(),!1,e+E(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return C(new t(e),E(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,i,a,s,c=this,f=c.constructor,h=+(e=new f(e));if(!e.s)return new f(o);if(!(c=new f(c)).s){if(e.s<1)throw Error(l+"Infinity");return c}if(c.eq(o))return c;if(r=f.precision,e.eq(o))return C(c,r);if(s=(t=e.e)>=(n=e.d.length-1),a=c.s,s){if((n=h<0?-h:h)<=9007199254740991){for(i=new f(o),t=Math.ceil(r/y+4),u=!1;n%2&&M((i=i.times(c)).d,t),0!==(n=p(n/2));)M((c=c.times(c)).d,t);return u=!0,e.s<0?new f(o).div(i):C(i,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,u=!1,i=e.times(j(c,r+12)),u=!0,(i=O(i)).s=a,i},g.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=A(i,(n=E(i))<=o.toExpNeg||n>=o.toExpPos):(_(e,1,a),void 0===t?t=o.rounding:_(t,0,8),r=A(i=C(new o(i),e,t),e<=(n=E(i))||n<=o.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(_(e,1,a),void 0===t?t=n.rounding:_(t,0,8)),C(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=E(e),n=e.constructor;return A(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,i,o,a){var s,u,c,f,p,h,d,v,g,b,_,x,w,O,k,S,j,T,P=r.constructor,A=r.s==i.s?1:-1,M=r.d,I=i.d;if(!r.s)return new P(r);if(!i.s)throw Error(l+"Division by zero");for(u=r.e-i.e,j=I.length,k=M.length,v=(d=new P(A)).d=[],c=0;I[c]==(M[c]||0);)++c;if(I[c]>(M[c]||0)&&--u,(x=null==o?o=P.precision:a?o+(E(r)-E(i))+1:o)<0)return new P(0);if(x=x/y+2|0,c=0,1==j)for(f=0,I=I[0],x++;(c1&&(I=e(I,f),M=e(M,f),j=I.length,k=M.length),O=j,b=(g=M.slice(0,j)).length;b=m/2&&++S;do{f=0,(s=t(I,g,j,b))<0?(_=g[0],j!=b&&(_=_*m+(g[1]||0)),(f=_/S|0)>1?(f>=m&&(f=m-1),1==(s=t(p=e(I,f),g,h=p.length,b=g.length))&&(f--,n(p,j16)throw Error(f+E(e));if(!e.s)return new p(o);for(null==t?(u=!1,s=d):s=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(s+=Math.log(h(2,c))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=s;;){if(r=C(r.times(e),s),n=n.times(++l),x((a=i.plus(w(r,n,s))).d).slice(0,s)===x(i.d).slice(0,s)){for(;c--;)i=C(i.times(i),s);return p.precision=d,null==t?(u=!0,C(i,d)):i}i=a}}function E(e){for(var t=e.e*y,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw u=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return C(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function j(e,t){var n,r,i,a,s,c,f,p,h,d=1,m=e,y=m.d,v=m.constructor,g=v.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new v(0);if(null==t?(u=!1,p=g):p=t,m.eq(10))return null==t&&(u=!0),k(v,p);if(p+=10,v.precision=p,r=(n=x(y)).charAt(0),a=E(m),!(Math.abs(a)<15e14))return f=k(v,p+2,g).times(a+""),m=j(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=g,null==t?(u=!0,C(m,g)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((m=m.times(e)).d)).charAt(0),d++;for(a=E(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1)),c=s=m=w(m.minus(o),m.plus(o),p),h=C(m.times(m),p),i=3;;){if(s=C(s.times(h),p),x((f=c.plus(w(s,new v(i),p))).d).slice(0,p)===x(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(k(v,p+2,g).times(a+""))),c=w(c,new v(d),p),v.precision=g,null==t?(u=!0,C(c,g)):c;c=f,i+=2}}function T(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=p(n/y),e.d=[],r=(n+1)%y,n<0&&(r+=y),rv||e.e<-v))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function C(e,t,n){var r,i,o,a,s,l,c,d,g=e.d;for(a=1,o=g[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=y,i=t,c=g[d=0];else{if((d=Math.ceil((r+1)/y))>=(o=g.length))return e;for(c=o=g[d],a=1;o>=10;o/=10)a++;i=(r%=y)-y+a}if(void 0!==n&&(s=c/(o=h(10,a-i-1))%10|0,l=t<0||void 0!==g[d+1]||c%o,l=n<4?(s||l)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||l||6==n&&(r>0?i>0?c/h(10,a-i):0:g[d-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return l?(o=E(e),g.length=1,t=t-o-1,g[0]=h(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=d,o=1,d--):(g.length=d+1,o=h(10,y-r),g[d]=i>0?(c/h(10,a-i)%h(10,i)|0)*o:0),l)for(;;){if(0==d){(g[0]+=o)==m&&(g[0]=1,++e.e);break}if(g[d]+=o,g[d]!=m)break;g[d--]=0,o=1}for(r=g.length;0===g[--r];)g.pop();if(u&&(e.e>v||e.e<-v))throw Error(f+E(e));return e}function P(e,t){var n,r,i,o,a,s,l,c,f,p,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),u?C(t,d):t;if(l=e.d,p=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r){for((f=a<0)?(n=l,a=-a,s=p.length):(n=p,r=c,s=l.length),a>(i=Math.max(Math.ceil(d/y),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(s=p.length))&&(s=i),i=0;i0;--i)l[s++]=0;for(i=p.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+S(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+S(-i-1)+o,n&&(r=n-a)>0&&(o+=S(r))):i>=a?(o+=S(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+S(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=S(r))),e.s<0?"-"+o:o}function M(e,t){if(e.length>t)return e.length=t,!0}function I(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=i[t+1]&&r<=i[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(s=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(c+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(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(c+e);T(t,e)}if(o.prototype=g,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=I,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,u=this.dstAlphabet.slice(n,n+1).concat(u)}while(0!==r);return u},r.prototype.isValid=function(e){for(var t=0;t=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(s=c[l],!b(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!e&&a.isError(i),u=!e&&i&&!n;if((s&&o&&x(i,n)||u)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!x(i,n)||!e&&i)throw i}p.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=m(y((t=this).actual),128)+" "+t.operator+" "+m(y(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=d(n),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(p.AssertionError,Error),p.fail=v,p.ok=g,p.equal=function(e,t,n){e!=t&&v(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){w(!0,e,t,n)},p.doesNotThrow=function(e,t,n){w(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r(function e(t,n){t||v(t,!0,n,"==",e)},p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var O=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof r?r:{})},{"object-assign":263,"util/":27}],25:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],26:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],27:[function(e,n,i){(function(t,n){var r=/%[sdj%]/g;i.format=function(e){if(!v(e)){for(var t=[],n=0;n=o)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}}),u=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(t)?n.showHidden=t:t&&i._extend(n,t),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,t,n){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==i.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return v(r)||(r=c(e,r,n)),r}var o=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var a=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),w(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(t);if(0===a.length){if(O(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(b(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(w(t))return f(t)}var l,_="",E=!1,k=["{","}"];if(h(t)&&(E=!0,k=["[","]"]),O(t)){var S=t.name?": "+t.name:"";_=" [Function"+S+"]"}return b(t)&&(_=" "+RegExp.prototype.toString.call(t)),x(t)&&(_=" "+Date.prototype.toUTCString.call(t)),w(t)&&(_=" "+f(t)),0!==a.length||E&&0!=t.length?n<0?b(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=E?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,_,k)):k[0]+_+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function d(e){return"boolean"===typeof e}function m(e){return null===e}function y(e){return"number"===typeof e}function v(e){return"string"===typeof e}function g(e){return void 0===e}function b(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"===typeof e&&null!==e}function x(e){return _(e)&&"[object Date]"===E(e)}function w(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function O(e){return"function"===typeof e}function E(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}i.debuglog=function(e){if(g(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;a[e]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",e,n,t)}}else a[e]=function(){};return a[e]},i.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=h,i.isBoolean=d,i.isNull=m,i.isNullOrUndefined=function(e){return null==e},i.isNumber=y,i.isString=v,i.isSymbol=function(e){return"symbol"===typeof e},i.isUndefined=g,i.isRegExp=b,i.isObject=_,i.isDate=x,i.isError=w,i.isFunction=O,i.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},i.isBuffer=e("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i.log=function(){console.log("%s - %s",function(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof r?r:{})},{"./support/isBuffer":26,_process:312,inherits:25}],28:[function(e,t,n){"use strict";n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],29:[function(e,t,n){var r=e("./lib/encoder"),i=e("./lib/decoder");t.exports={encode:r,decode:i}},{"./lib/decoder":30,"./lib/encoder":31}],30:[function(e,t,n){(function(e){function n(e,t){if(this.pos=0,this.buffer=e,this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<=0?this.height-1:-this.height,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=t&&(this.pos+=4-t)}},n.prototype.bit4=function(){if(2==this.compress){var e=function(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4};this.data.fill(255);for(var t=0,n=this.bottom_up?this.height-1:0,r=!1;t>4),1&l&&l+1>1&1)&&this.pos++}}else for(var l=0;l>4),r=!r}}else for(var c=Math.ceil(this.width/2),f=c%4,s=this.height-1;s>=0;s--){for(var p=this.bottom_up?s:this.height-1-s,a=0;a>4,d=15&o,m=this.palette[h];if(this.data[t]=0,this.data[t+1]=m.blue,this.data[t+2]=m.green,this.data[t+3]=m.red,2*a+1>=this.width)break;m=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=m.blue,this.data[t+4+2]=m.green,this.data[t+4+3]=m.red}0!=f&&(this.pos+=4-f)}},n.prototype.bit8=function(){if(1==this.compress){var e=function(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4};this.data.fill(255);for(var t=0,n=this.bottom_up?this.height-1:0;t=0;a--){for(var c=this.bottom_up?a:this.height-1-a,o=0;o=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>5&n)/n*255|0,l=(a>>10&n)/n*255|0,c=a>>15?255:0,f=i*this.width*4+4*o;this.data[f]=c,this.data[f+1]=s,this.data[f+2]=u,this.data[f+3]=l}this.pos+=e}},n.prototype.bit16=function(){var e=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var t=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&t[0]++,this.maskGreen>>n&1&&t[1]++,this.maskBlue>>n&1&&t[2]++;t[1]+=t[0],t[2]+=t[1],t[0]=8-t[0],t[1]-=8,t[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>t[1],l=(a&this.maskRed)>>t[2],c=i*this.width*4+4*o;this.data[c]=0,this.data[c+1]=s,this.data[c+2]=u,this.data[c+3]=l}this.pos+=e}},n.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n0){var s=this.pos+i*r+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(e,t){"undefined"===typeof t&&(t=100);var r=new n(e),i=r.encode();return{data:i,width:e.width,height:e.height}}}).call(this,e("buffer").Buffer)},{buffer:47}],32:[function(e,t,n){},{}],33:[function(e,t,n){(function(t,r){"use strict";var i=e("assert"),o=e("pako/lib/zlib/zstream"),a=e("pako/lib/zlib/deflate.js"),s=e("pako/lib/zlib/inflate.js"),u=e("pako/lib/zlib/constants");for(var l in u)n[l]=u[l];function c(e){if("number"!==typeof e||en.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7,c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=n.UNZIP),this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==n.INFLATE&&this.mode!==n.GUNZIP&&this.mode!==n.INFLATERAW&&this.mode!==n.UNZIP||s.inflateEnd(this.strm),this.mode=n.NONE,this.dictionary=null)},c.prototype.write=function(e,t,n,r,i,o,a){return this._write(!0,e,t,n,r,i,o,a)},c.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},c.prototype._write=function(e,o,a,s,u,l,c,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==n.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==n.Z_NO_FLUSH&&o!==n.Z_PARTIAL_FLUSH&&o!==n.Z_SYNC_FLUSH&&o!==n.Z_FULL_FLUSH&&o!==n.Z_FINISH&&o!==n.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=r.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=l,this.strm.next_out=c,this.flush=o,!e)return this._process(),this._checkError()?this._afterSync():void 0;var p=this;return t.nextTick(function(){p._process(),p._after()}),this},c.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},c.prototype._process=function(){var e=null;switch(this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case n.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=n.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=n.GUNZIP):this.mode=n.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===n.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===n.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===n.Z_DATA_ERROR&&(this.err=n.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===n.GUNZIP&&this.err===n.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},c.prototype._checkError=function(){switch(this.err){case n.Z_OK:case n.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===n.Z_FINISH)return this._error("unexpected end of file"),!1;break;case n.Z_STREAM_END:break;case n.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},c.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(e,t,r,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(t>=-1&&t<=9,"invalid compression level"),i(r>=1&&r<=9,"invalid memlevel"),i(o===n.Z_FILTERED||o===n.Z_HUFFMAN_ONLY||o===n.Z_RLE||o===n.Z_FIXED||o===n.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,o,a),this._setDictionary()},c.prototype.params=function(){throw new Error("deflateParams Not supported")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(e,t,r,i,u){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=i,this.flush=n.Z_NO_FLUSH,this.err=n.Z_OK,this.mode!==n.GZIP&&this.mode!==n.GUNZIP||(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),this.mode!==n.DEFLATERAW&&this.mode!==n.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==n.Z_OK&&this._error("Init error"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==n.Z_OK&&this._error("Failed to set dictionary")}},c.prototype._reset=function(){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:case n.GZIP:this.err=a.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:case n.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==n.Z_OK&&this._error("Failed to reset stream")},n.Zlib=c}).call(this,e("_process"),e("buffer").Buffer)},{_process:312,assert:24,buffer:47,"pako/lib/zlib/constants":37,"pako/lib/zlib/deflate.js":39,"pako/lib/zlib/inflate.js":41,"pako/lib/zlib/zstream":45}],34:[function(e,t,n){(function(t){"use strict";var r=e("buffer").Buffer,i=e("stream").Transform,o=e("./binding"),a=e("util"),s=e("assert").ok,u=e("buffer").kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),f=0;f=u?a=new RangeError(l):t=r.concat(i,o),i=[],e.close(),n(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),n(t)}),e.on("end",s),e.end(t),a()}function g(e,t){if("string"===typeof t&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function b(e){if(!(this instanceof b))return new b(e);j.call(this,e,o.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);j.call(this,e,o.INFLATE)}function x(e){if(!(this instanceof x))return new x(e);j.call(this,e,o.GZIP)}function w(e){if(!(this instanceof w))return new w(e);j.call(this,e,o.GUNZIP)}function O(e){if(!(this instanceof O))return new O(e);j.call(this,e,o.DEFLATERAW)}function E(e){if(!(this instanceof E))return new E(e);j.call(this,e,o.INFLATERAW)}function k(e){if(!(this instanceof k))return new k(e);j.call(this,e,o.UNZIP)}function S(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function j(e,t){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||n.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!S(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!S(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag="undefined"!==typeof e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSizen.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitsn.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.leveln.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLeveln.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=n.Z_FILTERED&&e.strategy!=n.Z_HUFFMAN_ONLY&&e.strategy!=n.Z_RLE&&e.strategy!=n.Z_FIXED&&e.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!r.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(t);var s=this;this._hadError=!1,this._handle.onerror=function(e,t){T(s),s._hadError=!0;var r=new Error(e);r.errno=t,r.code=n.codes[t],s.emit("error",r)};var u=n.Z_DEFAULT_COMPRESSION;"number"===typeof e.level&&(u=e.level);var l=n.Z_DEFAULT_STRATEGY;"number"===typeof e.strategy&&(l=e.strategy),this._handle.init(e.windowBits||n.Z_DEFAULT_WINDOWBITS,u,e.memLevel||n.Z_DEFAULT_MEMLEVEL,l,e.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function T(e,n){n&&t.nextTick(n),e._handle&&(e._handle.close(),e._handle=null)}function C(e){e.emit("close")}Object.defineProperty(n,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),n.Deflate=b,n.Inflate=_,n.Gzip=x,n.Gunzip=w,n.DeflateRaw=O,n.InflateRaw=E,n.Unzip=k,n.createDeflate=function(e){return new b(e)},n.createInflate=function(e){return new _(e)},n.createDeflateRaw=function(e){return new O(e)},n.createInflateRaw=function(e){return new E(e)},n.createGzip=function(e){return new x(e)},n.createGunzip=function(e){return new w(e)},n.createUnzip=function(e){return new k(e)},n.deflate=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new b(t),e,n)},n.deflateSync=function(e,t){return g(new b(t),e)},n.gzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new x(t),e,n)},n.gzipSync=function(e,t){return g(new x(t),e)},n.deflateRaw=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new O(t),e,n)},n.deflateRawSync=function(e,t){return g(new O(t),e)},n.unzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new k(t),e,n)},n.unzipSync=function(e,t){return g(new k(t),e)},n.inflate=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new _(t),e,n)},n.inflateSync=function(e,t){return g(new _(t),e)},n.gunzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new w(t),e,n)},n.gunzipSync=function(e,t){return g(new w(t),e)},n.inflateRaw=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new E(t),e,n)},n.inflateRawSync=function(e,t){return g(new E(t),e)},a.inherits(j,i),j.prototype.params=function(e,r,i){if(en.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=n.Z_FILTERED&&r!=n.Z_HUFFMAN_ONLY&&r!=n.Z_RLE&&r!=n.Z_FIXED&&r!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,function(){s(a._handle,"zlib binding closed"),a._handle.params(e,r),a._hadError||(a._level=e,a._strategy=r,i&&i())})}else t.nextTick(i)},j.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(e){this._transform(r.alloc(0),"",e)},j.prototype.flush=function(e,n){var i=this,a=this._writableState;("function"===typeof e||void 0===e&&!n)&&(n=e,e=o.Z_FULL_FLUSH),a.ended?n&&t.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",function(){return i.flush(e,n)}):(this._flushFlag=e,this.write(r.alloc(0),"",n))},j.prototype.close=function(e){T(this,e),t.nextTick(C,this)},j.prototype._transform=function(e,t,n){var i,a=this._writableState,s=a.ending||a.ended,u=s&&(!e||a.length===e.length);return null===e||r.isBuffer(e)?this._handle?(u?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},j.prototype._processChunk=function(e,t,n){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,c=this,f="function"===typeof n;if(!f){var p,h=[],d=0;this.on("error",function(e){p=e}),s(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw p;if(d>=u)throw T(this),new RangeError(l);var y=r.concat(h,d);return T(this),y}s(this._handle,"zlib binding closed");var v=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function g(u,l){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var p=o-l;if(s(p>=0,"have should not go down"),p>0){var m=c._buffer.slice(c._offset,c._offset+p);c._offset+=p,f?c.push(m):(h.push(m),d+=m.length)}if((0===l||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=r.allocUnsafe(c._chunkSize)),0===l){if(a+=i-u,i=u,!f)return!0;var y=c._handle.write(t,e,a,i,c._buffer,c._offset,c._chunkSize);return y.callback=g,void(y.buffer=e)}if(!f)return!1;n()}}v.buffer=e,v.callback=g},a.inherits(b,j),a.inherits(_,j),a.inherits(x,j),a.inherits(w,j),a.inherits(O,j),a.inherits(E,j),a.inherits(k,j)}).call(this,e("_process"))},{"./binding":33,_process:312,assert:24,buffer:47,stream:334,util:365}],35:[function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},{}],37:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],38:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},{}],39:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),u=e("./messages"),l=0,c=1,f=3,p=4,h=5,d=0,m=1,y=-2,v=-3,g=-5,b=-1,_=1,x=2,w=3,O=4,E=0,k=2,S=8,j=9,T=15,C=8,P=286,A=30,M=19,I=2*P+1,D=15,R=3,L=258,z=L+R+1,N=32,F=42,B=69,U=73,V=91,W=103,H=113,q=666,G=1,Y=2,Z=3,X=4,$=3;function K(e,t){return e.msg=u[t],t}function J(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function te(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function ne(e,t){e.pending_buf[e.pending++]=t}function re(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ie(e,t,n,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function oe(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,l=e.window,c=e.w_mask,f=e.prev,p=e.strstart+L,h=l[o+a-1],d=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]===d&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;h=l[o+a-1],d=l[o+a]}}}while((t=f[t&c])>u&&0!==--i);return a<=e.lookahead?a:e.lookahead}function ae(e){var t,n,r,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-z)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);o+=s}if(0===e.strm.avail_in)break;if(n=ie(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=R)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<=R&&(e.ins_h=(e.ins_h<=R)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=R&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-R,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,r-=16),o<1||o>j||n!==S||r<8||r>15||t<0||t>9||a<0||a>O)return K(e,y);8===r&&(r=9);var u=new ce;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),0===e.lookahead&&t===l)return G;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,te(e,!1),0===e.strm.avail_out))return G;if(e.strstart-e.block_start>=e.w_size-z&&(te(e,!1),0===e.strm.avail_out))return G}return e.insert=0,t===p?(te(e,!0),0===e.strm.avail_out?Z:X):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),G)}),new le(4,4,8,4,se),new le(4,5,16,8,se),new le(4,6,32,32,se),new le(4,4,16,16,ue),new le(8,16,32,32,ue),new le(8,16,128,128,ue),new le(8,32,128,256,ue),new le(32,128,258,1024,ue),new le(32,258,258,4096,ue)],n.deflateInit=function(e,t){return he(e,t,S,T,C,E)},n.deflateInit2=he,n.deflateReset=pe,n.deflateResetKeep=fe,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?y:(e.state.gzhead=t,d):y},n.deflate=function(e,t){var n,i,a,u;if(!e||!e.state||t>h||t<0)return e?K(e,y):y;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===q&&t!==p)return K(e,0===e.avail_out?g:y);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===F)if(2===i.wrap)e.adler=0,ne(i,31),ne(i,139),ne(i,8),i.gzhead?(ne(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ne(i,255&i.gzhead.time),ne(i,i.gzhead.time>>8&255),ne(i,i.gzhead.time>>16&255),ne(i,i.gzhead.time>>24&255),ne(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),ne(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ne(i,255&i.gzhead.extra.length),ne(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=B):(ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,0),ne(i,9===i.level?2:i.strategy>=x||i.level<2?4:0),ne(i,$),i.status=H);else{var v=S+(i.w_bits-8<<4)<<8,b=-1;b=i.strategy>=x||i.level<2?0:i.level<6?1:6===i.level?2:3,v|=b<<6,0!==i.strstart&&(v|=N),v+=31-v%31,i.status=H,re(i,v),0!==i.strstart&&(re(i,e.adler>>>16),re(i,65535&e.adler)),e.adler=1}if(i.status===B)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending!==i.pending_buf_size));)ne(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=V)}else i.status=V;if(i.status===V)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=W)}else i.status=W;if(i.status===W&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(ne(i,255&e.adler),ne(i,e.adler>>8&255),e.adler=0,i.status=H)):i.status=H),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&J(t)<=J(n)&&t!==p)return K(e,g);if(i.status===q&&0!==e.avail_in)return K(e,g);if(0!==e.avail_in||0!==i.lookahead||t!==l&&i.status!==q){var _=i.strategy===x?function(e,t){for(var n;;){if(0===e.lookahead&&(ae(e),0===e.lookahead)){if(t===l)return G;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(te(e,!1),0===e.strm.avail_out))return G}return e.insert=0,t===p?(te(e,!0),0===e.strm.avail_out?Z:X):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?G:Y}(i,t):i.strategy===w?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=L){if(ae(e),e.lookahead<=L&&t===l)return G;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=R&&e.strstart>0&&(i=e.strstart-1,(r=s[i])===s[++i]&&r===s[++i]&&r===s[++i])){a=e.strstart+L;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=R?(n=o._tr_tally(e,1,e.match_length-R),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(te(e,!1),0===e.strm.avail_out))return G}return e.insert=0,t===p?(te(e,!0),0===e.strm.avail_out?Z:X):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?G:Y}(i,t):r[i.level].func(i,t);if(_!==Z&&_!==X||(i.status=q),_===G||_===Z)return 0===e.avail_out&&(i.last_flush=-1),d;if(_===Y&&(t===c?o._tr_align(i):t!==h&&(o._tr_stored_block(i,0,0,!1),t===f&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,d}return t!==p?d:i.wrap<=0?m:(2===i.wrap?(ne(i,255&e.adler),ne(i,e.adler>>8&255),ne(i,e.adler>>16&255),ne(i,e.adler>>24&255),ne(i,255&e.total_in),ne(i,e.total_in>>8&255),ne(i,e.total_in>>16&255),ne(i,e.total_in>>24&255)):(re(i,e.adler>>>16),re(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:m)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==F&&t!==B&&t!==U&&t!==V&&t!==W&&t!==H&&t!==q?K(e,y):(e.state=null,t===H?K(e,v):d):y},n.deflateSetDictionary=function(e,t){var n,r,o,s,u,l,c,f,p=t.length;if(!e||!e.state)return y;if(n=e.state,2===(s=n.wrap)||1===s&&n.status!==F||n.lookahead)return y;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(Q(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),u=e.avail_in,l=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,ae(n);n.lookahead>=R;){r=n.strstart,o=n.lookahead-(R-1);do{n.ins_h=(n.ins_h<>>=_=b>>>24,d-=_,0===(_=b>>>16&255))S[o++]=65535&b;else{if(!(16&_)){if(0===(64&_)){b=m[(65535&b)+(h&(1<<_)-1)];continue t}if(32&_){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(_&=15)&&(d<_&&(h+=k[r++]<>>=_,d-=_),d<15&&(h+=k[r++]<>>=_=b>>>24,d-=_,!(16&(_=b>>>16&255))){if(0===(64&_)){b=y[(65535&b)+(h&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&b,d<(_&=15)&&(h+=k[r++]<u){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=_,d-=_,w>(_=o-a)){if((_=w-_)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(O=0,E=p,0===f){if(O+=l-_,_2;)S[o++]=E[O++],S[o++]=E[O++],S[o++]=E[O++],x-=3;x&&(S[o++]=E[O++],x>1&&(S[o++]=E[O++]))}else{O=o-w;do{S[o++]=S[O++],S[o++]=S[O++],S[o++]=S[O++],x-=3}while(x>2);x&&(S[o++]=S[O++],x>1&&(S[o++]=S[O++]))}break}}break}}while(r>3,h&=(1<<(d-=x<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oe(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=w,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,d):v}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,oe(e)):v}function se(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ae(e))):v}function ue(e,t){var n,r;return e?(r=new ie,e.state=r,r.window=null,(n=se(e,t))!==d&&(e.state=null),n):v}var le,ce,fe=!0;function pe(e){if(fe){var t;for(le=new r.Buf32(512),ce=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,le,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,ce,0,e.work,{bits:5}),fe=!1}e.lencode=le,e.lenbits=9,e.distcode=ce,e.distbits=5}function he(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,je,2,0),se=0,ue=0,n.mode=O;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=K;break}if((15&se)!==x){e.msg="unknown compression method",n.mode=K;break}if(ue-=4,we=8+(15&(se>>>=4)),0===n.wbits)n.wbits=we;else if(we>n.wbits){e.msg="invalid window size",n.mode=K;break}n.dmax=1<>8&1),512&n.flags&&(je[0]=255&se,je[1]=se>>>8&255,n.check=o(n.check,je,2,0)),se=0,ue=0,n.mode=E;case E:for(;ue<32;){if(0===oe)break e;oe--,se+=ee[ne++]<>>8&255,je[2]=se>>>16&255,je[3]=se>>>24&255,n.check=o(n.check,je,4,0)),se=0,ue=0,n.mode=k;case k:for(;ue<16;){if(0===oe)break e;oe--,se+=ee[ne++]<>8),512&n.flags&&(je[0]=255&se,je[1]=se>>>8&255,n.check=o(n.check,je,2,0)),se=0,ue=0,n.mode=S;case S:if(1024&n.flags){for(;ue<16;){if(0===oe)break e;oe--,se+=ee[ne++]<>>8&255,n.check=o(n.check,je,2,0)),se=0,ue=0}else n.head&&(n.head.extra=null);n.mode=j;case j:if(1024&n.flags&&((fe=n.length)>oe&&(fe=oe),fe&&(n.head&&(we=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,we)),512&n.flags&&(n.check=o(n.check,ee,fe,ne)),oe-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=T;case T:if(2048&n.flags){if(0===oe)break e;fe=0;do{we=ee[ne+fe++],n.head&&we&&n.length<65536&&(n.head.name+=String.fromCharCode(we))}while(we&&fe>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=I;break;case A:for(;ue<32;){if(0===oe)break e;oe--,se+=ee[ne++]<>>=7&ue,ue-=7&ue,n.mode=Z;break}for(;ue<3;){if(0===oe)break e;oe--,se+=ee[ne++]<>>=1)){case 0:n.mode=R;break;case 1:if(pe(n),n.mode=U,t===h){se>>>=2,ue-=2;break e}break;case 2:n.mode=N;break;case 3:e.msg="invalid block type",n.mode=K}se>>>=2,ue-=2;break;case R:for(se>>>=7&ue,ue-=7&ue;ue<32;){if(0===oe)break e;oe--,se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=K;break}if(n.length=65535&se,se=0,ue=0,n.mode=L,t===h)break e;case L:n.mode=z;case z:if(fe=n.length){if(fe>oe&&(fe=oe),fe>ae&&(fe=ae),0===fe)break e;r.arraySet(te,ee,ne,fe,ie),oe-=fe,ne+=fe,ae-=fe,ie+=fe,n.length-=fe;break}n.mode=I;break;case N:for(;ue<14;){if(0===oe)break e;oe--,se+=ee[ne++]<>>=5,ue-=5,n.ndist=1+(31&se),se>>>=5,ue-=5,n.ncode=4+(15&se),se>>>=4,ue-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=K;break}n.have=0,n.mode=F;case F:for(;n.have>>=3,ue-=3}for(;n.have<19;)n.lens[Te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ee={bits:n.lenbits},Oe=s(u,n.lens,0,19,n.lencode,0,n.work,Ee),n.lenbits=Ee.bits,Oe){e.msg="invalid code lengths set",n.mode=K;break}n.have=0,n.mode=B;case B:for(;n.have>>16&255,ge=65535&Se,!((ye=Se>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[ne++]<>>=ye,ue-=ye,n.lens[n.have++]=ge;else{if(16===ge){for(ke=ye+2;ue>>=ye,ue-=ye,0===n.have){e.msg="invalid bit length repeat",n.mode=K;break}we=n.lens[n.have-1],fe=3+(3&se),se>>>=2,ue-=2}else if(17===ge){for(ke=ye+3;ue>>=ye)),se>>>=3,ue-=3}else{for(ke=ye+7;ue>>=ye)),se>>>=7,ue-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=K;break}for(;fe--;)n.lens[n.have++]=we}}if(n.mode===K)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=K;break}if(n.lenbits=9,Ee={bits:n.lenbits},Oe=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,Ee),n.lenbits=Ee.bits,Oe){e.msg="invalid literal/lengths set",n.mode=K;break}if(n.distbits=6,n.distcode=n.distdyn,Ee={bits:n.distbits},Oe=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ee),n.distbits=Ee.bits,Oe){e.msg="invalid distances set",n.mode=K;break}if(n.mode=U,t===h)break e;case U:n.mode=V;case V:if(oe>=6&&ae>=258){e.next_out=ie,e.avail_out=ae,e.next_in=ne,e.avail_in=oe,n.hold=se,n.bits=ue,a(e,ce),ie=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,oe=e.avail_in,se=n.hold,ue=n.bits,n.mode===I&&(n.back=-1);break}for(n.back=0;Se=n.lencode[se&(1<>>16&255,ge=65535&Se,!((ye=Se>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[ne++]<>be)],ve=Se>>>16&255,ge=65535&Se,!(be+(ye=Se>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[ne++]<>>=be,ue-=be,n.back+=be}if(se>>>=ye,ue-=ye,n.back+=ye,n.length=ge,0===ve){n.mode=Y;break}if(32&ve){n.back=-1,n.mode=I;break}if(64&ve){e.msg="invalid literal/length code",n.mode=K;break}n.extra=15&ve,n.mode=W;case W:if(n.extra){for(ke=n.extra;ue>>=n.extra,ue-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;Se=n.distcode[se&(1<>>16&255,ge=65535&Se,!((ye=Se>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[ne++]<>be)],ve=Se>>>16&255,ge=65535&Se,!(be+(ye=Se>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[ne++]<>>=be,ue-=be,n.back+=be}if(se>>>=ye,ue-=ye,n.back+=ye,64&ve){e.msg="invalid distance code",n.mode=K;break}n.offset=ge,n.extra=15&ve,n.mode=q;case q:if(n.extra){for(ke=n.extra;ue>>=n.extra,ue-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=K;break}n.mode=G;case G:if(0===ae)break e;if(fe=ce-ae,n.offset>fe){if((fe=n.offset-fe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=K;break}fe>n.wnext?(fe-=n.wnext,de=n.wsize-fe):de=n.wnext-fe,fe>n.length&&(fe=n.length),me=n.window}else me=te,de=ie-n.offset,fe=n.length;fe>ae&&(fe=ae),ae-=fe,n.length-=fe;do{te[ie++]=me[de++]}while(--fe);0===n.length&&(n.mode=V);break;case Y:if(0===ae)break e;te[ie++]=n.length,ae--,n.mode=V;break;case Z:if(n.wrap){for(;ue<32;){if(0===oe)break e;oe--,se|=ee[ne++]<=1&&0===R[S];S--);if(j>S&&(j=S),0===S)return l[c++]=20971520,l[c++]=20971520,p.bits=1,0;for(k=1;k0&&(0===e||1!==S))return-1;for(L[1]=0,O=1;O<15;O++)L[O+1]=L[O]+R[O];for(E=0;E852||2===e&&A>592)return 1;for(;;){b=O-C,f[E]g?(_=z[N+f[E]],x=I[D+f[E]]):(_=96,x=0),h=1<>C)+(d-=h)]=b<<24|_<<16|x|0}while(0!==d);for(h=1<>=1;if(0!==h?(M&=h-1,M+=h):M=0,E++,0===--R[O]){if(O===S)break;O=t[n+f[E]]}if(O>j&&(M&y)!==m){for(0===C&&(C=j),v+=k,P=1<<(T=O-C);T+C852||2===e&&A>592)return 1;l[m=M&y]=j<<24|T<<16|v-c|0}}return 0!==M&&(l[v+M]=O-C<<24|64<<16|0),p.bits=j,0}},{"../utils/common":35}],43:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],44:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,o=0,a=1,s=2;function u(e){for(var t=e.length;--t>=0;)e[t]=0}var l=0,c=1,f=2,p=29,h=256,d=h+1+p,m=30,y=19,v=2*d+1,g=15,b=16,_=7,x=256,w=16,O=17,E=18,k=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(d+2));u(C);var P=new Array(2*m);u(P);var A=new Array(512);u(A);var M=new Array(256);u(M);var I=new Array(p);u(I);var D,R,L,z=new Array(m);function N(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function B(e){return e<256?A[e]:A[256+(e>>>7)]}function U(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function V(e,t,n){e.bi_valid>b-n?(e.bi_buf|=t<>b-e.bi_valid,e.bi_valid+=n-b):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function q(e,t,n){var r,i,o=new Array(g+1),a=0;for(r=1;r<=g;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(o[s]++,s))}}function G(e){var t;for(t=0;t8?U(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Z(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)X(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],X(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,X(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,u=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,d=t.stat_desc.max_length,m=0;for(o=0;o<=g;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;nd&&(o=d,m++),u[2*r+1]=o,r>l||(e.bl_count[o]++,a=0,r>=h&&(a=p[r-h]),s=u[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==m){do{for(o=d-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[d]--,m-=2}while(m>0);for(o=d;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>l||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),q(o,l,e.bl_count)}function J(e,t,n){var r,i,o=-1,a=t[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s>=7;r0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t=3&&0===e.bl_tree[2*T[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),u=e.opt_len+3+7>>>3,(l=e.static_len+3+7>>>3)<=u&&(u=l)):u=l=n+5,n+4<=u&&-1!==t?te(e,t,n,r):e.strategy===i||l===u?(V(e,(c<<1)+(r?1:0),3),$(e,C,P)):(V(e,(f<<1)+(r?1:0),3),function(e,t,n,r){var i;for(V(e,t-257,5),V(e,n-1,5),V(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(M[n]+h+1)]++,e.dyn_dtree[2*B(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){V(e,c<<1,3),W(e,x,C),function(e){16===e.bi_valid?(U(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":35}],45:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],46:[function(e,t,n){arguments[4][32][0].apply(n,arguments)},{dup:32}],47:[function(e,t,n){(function(t){"use strict";var r=e("base64-js"),i=e("ieee754"),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=t,n.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},n.INSPECT_MAX_BYTES=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return Object.setPrototypeOf(n,t.prototype),n}function t(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,n)}function u(e,n,r){if("string"===typeof e)return function(e,n){if("string"===typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|h(e,n),i=s(r),o=i.write(e,n);return o!==r&&(i=i.slice(0,o)),i}(e,n);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,n,r){if(n<0||e.byteLength=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function h(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(o)return i?-1:L(e).length;n=(""+n).toLowerCase(),o=!0}}function d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,n,r,i,o){if(0===e.length)return-1;if("string"===typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof n&&(n=t.from(n,i)),t.isBuffer(n))return 0===n.length?-1:y(e,n,r,i,o);if("number"===typeof n)return n&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):y(e,[n],r,i,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n="",r=0;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),""},o&&(t.prototype[o]=t.prototype.inspect),t.prototype.compare=function(e,n,r,i,o){if(F(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),n<0||r>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=r)return 0;if(i>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,s=r-n,u=Math.min(a,s),l=this.slice(i,o),c=e.slice(n,r),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function A(e,n,r,i,o,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||ne.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},t.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;A(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;A(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},t.prototype.copy=function(e,n,r,i){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),n);return o},t.prototype.fill=function(e,n,r,i){if("string"===typeof e){if("string"===typeof n?(i=n,n=0,r=this.length):"string"===typeof r&&(i=r,r=this.length),void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var o=e.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(e=o)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(n<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=n;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function N(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!==e}var U=function(){for(var e=new Array(256),t=0;t<16;++t)for(var n=16*t,r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r];return e}()}).call(this,e("buffer").Buffer)},{"base64-js":28,buffer:47,ieee754:253}],48:[function(e,t,n){var r=e("buffer").Buffer;t.exports=function(e,t){if(r.isBuffer(e)&&r.isBuffer(t)){if("function"===typeof e.equals)return e.equals(t);if(e.length!==t.length)return!1;for(var n=0;n>1,c=23===t?S(2,-24)-S(2,-77):0,f=e<0||0===e&&1/e<0?1:0,p=0;for((e=k(e))!=e||e===1/0?(i=e!=e?1:0,r=u):(r=j(T(e)/C),e*(o=S(2,-r))<1&&(r--,o*=2),(e+=r+l>=1?c/o:c*S(2,1-l))*o>=2&&(r++,o/=2),r+l>=u?(i=0,r=u):r+l>=1?(i=(e*o-1)*S(2,t),r+=l):(i=e*S(2,l-1)*S(2,t),r=0));t>=8;a[p++]=255&i,i/=256,t-=8);for(r=r<0;a[p++]=255&r,r/=256,s-=8);return a[--p]|=128*f,a},A=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<>1,s=i-7,u=r-1,l=e[u--],c=127&l;for(l>>=7;s>0;c=256*c+e[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;n=256*n+e[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:l?-1/0:1/0;n+=S(2,t),c-=a}return(l?-1:1)*n*S(2,c-t)},M=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},I=function(e){return[255&e]},D=function(e){return[255&e,e>>8&255]},R=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},L=function(e){return P(e,23,4)},z=function(e){return P(e,52,8)},N=function(e,t){d(e.prototype,t,{get:function(){return g(this)[t]}})},F=function(e,t,n,r){var i=+n,o=p(i),a=g(e);if(o+t>a.byteLength)throw E("Wrong index");var s=g(a.buffer).bytes,u=o+a.byteOffset,l=s.slice(u,u+t);return r?l:l.reverse()},B=function(e,t,n,r,i,o){var a=+n,s=p(a),u=g(e);if(s+t>u.byteLength)throw E("Wrong index");for(var l=g(u.buffer).bytes,c=s+u.byteOffset,f=r(+i),h=0;hH;)(U=W[H++])in x||a(x,U,_[U]);V.constructor=x}var q=new w(new x(2)),G=w.prototype.setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||s(w.prototype,{setInt8:function(e,t){G.call(this,e,t<<24>>24)},setUint8:function(e,t){G.call(this,e,t<<24>>24)}},{unsafe:!0})}else x=function(e){l(this,x,"ArrayBuffer");var t=p(e);b(this,{bytes:m.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},w=function(e,t,n){l(this,w,"DataView"),l(e,x,"DataView");var r=g(e).byteLength,o=c(t);if(o<0||o>r)throw E("Wrong offset");if(n=void 0===n?r-o:f(n),o+n>r)throw E("Wrong length");b(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(N(x,"byteLength"),N(w,"buffer"),N(w,"byteLength"),N(w,"byteOffset")),s(w.prototype,{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return M(F(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return M(F(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(F(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(F(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){B(this,1,e,I,t)},setUint8:function(e,t){B(this,1,e,I,t)},setInt16:function(e,t){B(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){B(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){B(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){B(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){B(this,4,e,L,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){B(this,8,e,z,t,arguments.length>2?arguments[2]:void 0)}});y(x,"ArrayBuffer"),y(w,"DataView"),t.exports={ArrayBuffer:x,DataView:w}},{"../internals/an-instance":54,"../internals/array-buffer-view-core":56,"../internals/array-fill":59,"../internals/create-non-enumerable-property":76,"../internals/descriptors":81,"../internals/fails":86,"../internals/global":92,"../internals/internal-state":100,"../internals/object-define-property":120,"../internals/object-get-own-property-names":123,"../internals/redefine-all":137,"../internals/set-to-string-tag":145,"../internals/to-index":155,"../internals/to-integer":157,"../internals/to-length":158}],58:[function(e,t,n){"use strict";var r=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/to-length"),a=Math.min;t.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),u=i(e,s),l=i(t,s),c=arguments.length>2?arguments[2]:void 0,f=a((void 0===c?s:i(c,s))-l,s-u),p=1;for(l0;)l in n?n[u]=n[l]:delete n[u],u+=p,l+=p;return n}},{"../internals/to-absolute-index":154,"../internals/to-length":158,"../internals/to-object":159}],59:[function(e,t,n){"use strict";var r=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/to-length");t.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)t[s++]=e;return t}},{"../internals/to-absolute-index":154,"../internals/to-length":158,"../internals/to-object":159}],60:[function(e,t,n){"use strict";var r=e("../internals/array-iteration").forEach,i=e("../internals/sloppy-array-method");t.exports=i("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},{"../internals/array-iteration":62,"../internals/sloppy-array-method":149}],61:[function(e,t,n){var r=e("../internals/to-indexed-object"),i=e("../internals/to-length"),o=e("../internals/to-absolute-index"),a=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},{"../internals/to-absolute-index":154,"../internals/to-indexed-object":156,"../internals/to-length":158}],62:[function(e,t,n){var r=e("../internals/bind-context"),i=e("../internals/indexed-object"),o=e("../internals/to-object"),a=e("../internals/to-length"),s=e("../internals/array-species-create"),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,f=6==e,p=5==e||f;return function(h,d,m,y){for(var v,g,b=o(h),_=i(b),x=r(d,m,3),w=a(_.length),O=0,E=y||s,k=t?E(h,w):n?E(h,0):void 0;w>O;O++)if((p||O in _)&&(v=_[O],g=x(v,O,b),e))if(t)k[O]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return O;case 2:u.call(k,v)}else if(c)return!1;return f?-1:l||c?c:k}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},{"../internals/array-species-create":66,"../internals/bind-context":67,"../internals/indexed-object":98,"../internals/to-length":158,"../internals/to-object":159}],63:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-integer"),o=e("../internals/to-length"),a=e("../internals/sloppy-array-method"),s=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,c=a("lastIndexOf");t.exports=l||c?function(e){if(l)return u.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:u},{"../internals/sloppy-array-method":149,"../internals/to-indexed-object":156,"../internals/to-integer":157,"../internals/to-length":158}],64:[function(e,t,n){var r=e("../internals/fails"),i=e("../internals/well-known-symbol"),o=e("../internals/v8-version"),a=i("species");t.exports=function(e){return o>=51||!r(function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},{"../internals/fails":86,"../internals/v8-version":168,"../internals/well-known-symbol":169}],65:[function(e,t,n){var r=e("../internals/a-function"),i=e("../internals/to-object"),o=e("../internals/indexed-object"),a=e("../internals/to-length"),s=function(e){return function(t,n,s,u){r(n);var l=i(t),c=o(l),f=a(l.length),p=e?f-1:0,h=e?-1:1;if(s<2)for(;;){if(p in c){u=c[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)p in c&&(u=n(u,c[p],p,l));return u}};t.exports={left:s(!1),right:s(!0)}},{"../internals/a-function":50,"../internals/indexed-object":98,"../internals/to-length":158,"../internals/to-object":159}],66:[function(e,t,n){var r=e("../internals/is-object"),i=e("../internals/is-array"),o=e("../internals/well-known-symbol"),a=o("species");t.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},{"../internals/is-array":102,"../internals/is-object":105,"../internals/well-known-symbol":169}],67:[function(e,t,n){var r=e("../internals/a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-function":50}],68:[function(e,t,n){var r=e("../internals/an-object");t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},{"../internals/an-object":55}],69:[function(e,t,n){var r=e("../internals/well-known-symbol"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(u){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},{"../internals/well-known-symbol":169}],70:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],71:[function(e,t,n){var r=e("../internals/classof-raw"),i=e("../internals/well-known-symbol"),o=i("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},{"../internals/classof-raw":70,"../internals/well-known-symbol":169}],72:[function(e,t,n){var r=e("../internals/has"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),a=e("../internals/object-define-property");t.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,l=0;l")}),c=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(e,t,n,f){var p=a(e),h=!o(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),d=h&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t});if(!h||!d||"replace"===e&&!l||"split"===e&&!c){var m=/./[p],y=n(p,""[e],function(e,t,n,r,i){return t.exec===s?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=y[0],g=y[1];i(String.prototype,e,v),i(RegExp.prototype,p,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)}),f&&r(RegExp.prototype[p],"sham",!0)}}},{"../internals/create-non-enumerable-property":76,"../internals/fails":86,"../internals/redefine":138,"../internals/regexp-exec":140,"../internals/well-known-symbol":169}],88:[function(e,t,n){"use strict";var r=e("../internals/a-function"),i=e("../internals/is-object"),o=[].slice,a={};t.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;id;d++)if((y=c?b(r(g=e[d])[0],g[1]):b(e[d]))&&y instanceof l)return y;return new l(!1)}p=h.call(e)}for(v=p.next;!(g=v.call(p)).done;)if("object"==typeof(y=u(p,b,g.value,c))&&y&&y instanceof l)return y;return new l(!1)};c.stop=function(e){return new l(!0,e)}},{"../internals/an-object":55,"../internals/bind-context":67,"../internals/call-with-safe-iteration-closing":68,"../internals/get-iterator-method":91,"../internals/is-array-iterator-method":101,"../internals/to-length":158}],109:[function(e,t,n){"use strict";var r,i,o,a=e("../internals/object-get-prototype-of"),s=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),l=e("../internals/well-known-symbol"),c=e("../internals/is-pure"),f=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):p=!0),void 0==r&&(r={}),c||u(r,f)||s(r,f,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},{"../internals/create-non-enumerable-property":76,"../internals/has":93,"../internals/is-pure":106,"../internals/object-get-prototype-of":125,"../internals/well-known-symbol":169}],110:[function(e,t,n){arguments[4][94][0].apply(n,arguments)},{dup:94}],111:[function(e,t,n){var r,i,o,a,s,u,l,c,f=e("../internals/global"),p=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/classof-raw"),d=e("../internals/task").set,m=e("../internals/is-ios"),y=f.MutationObserver||f.WebKitMutationObserver,v=f.process,g=f.Promise,b="process"==h(v),_=p(f,"queueMicrotask"),x=_&&_.value;x||(r=function(){var e,t;for(b&&(e=v.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},b?a=function(){v.nextTick(r)}:y&&!m?(s=!0,u=document.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):g&&g.resolve?(l=g.resolve(void 0),c=l.then,a=function(){c.call(l,r)}):a=function(){d.call(f,r)}),t.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},{"../internals/classof-raw":70,"../internals/global":92,"../internals/is-ios":104,"../internals/object-get-own-property-descriptor":121,"../internals/task":153}],112:[function(e,t,n){var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":92}],113:[function(e,t,n){var r=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},{"../internals/fails":86}],114:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/function-to-string"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i.call(o))},{"../internals/function-to-string":89,"../internals/global":92}],115:[function(e,t,n){"use strict";var r=e("../internals/a-function"),i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};t.exports.f=function(e){return new i(e)}},{"../internals/a-function":50}],116:[function(e,t,n){var r=e("../internals/is-regexp");t.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":107}],117:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/object-keys"),a=e("../internals/object-get-own-property-symbols"),s=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),l=e("../internals/indexed-object"),c=Object.assign;t.exports=!c||i(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=o(c({},t)).join("")})?function(e,t){for(var n=u(e),i=arguments.length,c=1,f=a.f,p=s.f;i>c;)for(var h,d=l(arguments[c++]),m=f?o(d).concat(f(d)):o(d),y=m.length,v=0;y>v;)h=m[v++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:c},{"../internals/descriptors":81,"../internals/fails":86,"../internals/indexed-object":98,"../internals/object-get-own-property-symbols":124,"../internals/object-keys":127,"../internals/object-property-is-enumerable":128,"../internals/to-object":159}],118:[function(e,t,n){var r=e("../internals/an-object"),i=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),s=e("../internals/html"),u=e("../internals/document-create-element"),l=e("../internals/shared-key"),c=l("IE_PROTO"),f=function(){},p=function(){var e,t=u("iframe"),n=o.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("