=r:"horizontal"===a&&"number"===typeof n&&s>=n)&&(u=u.reverse());var f=w(u,t);if(i&&f.length)return M("Collision prevented on ".concat(t.i,", reverting.")),t.x=s,t.y=c,t.moved=!1,e;for(var d=0,p=f.length;dt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1}))}function j(e){return e.slice(0).sort((function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1}))}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,o=e.length;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Z(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Object(H.g)(o)&&Object(H.g)(i)?e.slice(o,i+1):[]},ge=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=me(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,l=t.props.data;if(i.dataKey&&!i.allowDuplicatedCategory){var s=void 0===l?a:l;o=Object(H.a)(s,i.dataKey,r)}else o=l&&l[n]||a[n];return o?[].concat(oe(e),[Object(B.v)(t,o)]):e}),[])},ve=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=Object(B.b)(i,a,s,l);if(c>=0&&s){var u=s[c]&&s[c].value;return{activeTooltipIndex:c,activeLabel:u,activePayload:ge(e,t,c,u),activeCoordinate:function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return se(se(se({},r),Object(U.e)(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,s=r.angle;return se(se(se({},r),Object(U.e)(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}return fe}(n,a,c,o)}}return null},ye=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),f=Object(L.a)(c,o),d={};return f&&f.length?d=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,f=e.stackOffset,d=Object(B.x)(c,o);return n.reduce((function(t,n){var p=n.props,h=p.type,m=p.dataKey,g=p.allowDataOverflow,y=p.allowDuplicatedCategory,x=p.scale,w=p.ticks,O=n.props[i],S=me(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===O})),dataStartIndex:l,dataEndIndex:s}),k=S.length;if(!t[O]){var _,C,j;if(m){if(_=Object(B.m)(S,m,h),"category"===h&&d){var E=Object(H.d)(_);y&&E?(C=_,_=v()(0,k)):y||(_=Object(B.y)(n.props.domain,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(oe(e),[t])}),[]))}else if("category"===h)_=y?_.filter((function(e){return""!==e&&!b()(e)})):Object(B.y)(n.props.domain,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:[].concat(oe(e),[t])}),[]);else if("number"===h){var M=Object(B.z)(S,r.filter((function(e){return e.props[i]===O&&!e.props.hide})),m,o);M&&(_=M)}!d||"number"!==h&&"auto"===x||(j=Object(B.m)(S,m,"category"))}else _=d?v()(0,k):a&&a[O]&&a[O].hasStack&&"number"===h?"expand"===f?[0,1]:Object(B.o)(a[O].stackGroups,l,s):Object(B.n)(S,r.filter((function(e){return e.props[i]===O&&!e.props.hide})),h,!0);if("number"===h)_=Object(V.a)(u,_,O,o,w),n.props.domain&&(_=Object(B.B)(n.props.domain,_,g));else if("category"===h&&n.props.domain){var P=n.props.domain;_.every((function(e){return P.indexOf(e)>=0}))&&(_=P)}return se(se({},t),{},ce({},O,se(se({},n.props),{},{axisType:o,domain:_,categoricalDomain:j,duplicateDomain:C,originalDomain:n.props.domain,isCategorical:d,layout:c})))}return t}),{})}(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:l,dataEndIndex:s}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,f=me(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),d=f.length,p=Object(B.x)(c,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(h++,p?g=v()(0,d):a&&a[y]&&a[y].hasStack?(g=Object(B.o)(a[y].stackGroups,l,s),g=Object(V.a)(u,g,y,o)):(g=Object(B.B)(r.defaultProps.domain,Object(B.n)(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),g=Object(V.a)(u,g,y,o)),se(se({},e),{},ce({},y,se(se({axisType:o},r.defaultProps),{},{hide:!0,orientation:m()(ue,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:l,dataEndIndex:s})),d},be=function(e){var t=e.children,n=e.defaultShowTooltip,r=Object(L.b)(t,F.a.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!b()(n)&&n}},xe=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"}},we=function(e){var t,n,r=e.chartName,o=e.GraphicalChild,a=e.defaultTooltipEventType,s=void 0===a?"axis":a,u=e.validateTooltipEventTypes,d=void 0===u?["axis"]:u,h=e.axisComponents,g=e.legendContent,v=e.formatAxisMap,y=e.defaultProps,x=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,f=e.barCategoryGap,d=e.maxBarSize,p=xe(c),m=p.numericAxisName,g=p.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Object(L.c)(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n)&&Object(B.h)({barSize:s,stackGroups:r}),y=[];return n.forEach((function(n,s){var p=me(e.data,{dataStartIndex:a,dataEndIndex:l},n),x=n.props,w=x.dataKey,O=x.maxBarSize,S=n.props["".concat(m,"Id")],k=n.props["".concat(g,"Id")],_=h.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],l=i&&i[a];return se(se({},e),{},(ce(o={},r.axisType,l),ce(o,"".concat(r.axisType,"Ticks"),Object(B.t)(l)),o))}),{}),C=_[g],j=_["".concat(g,"Ticks")],E=r&&r[S]&&r[S].hasStack&&Object(B.s)(n,r[S].stackGroups),M=Object(L.c)(n.type).indexOf("Bar")>=0,P=Object(B.f)(C,j),T=[];if(M){var A=Object(B.f)(C,j,!0),R=b()(O)?d:O;T=Object(B.g)({barGap:u,barCategoryGap:f,bandSize:A!==P?A:P,sizeList:v[k],maxBarSize:R}),A!==P&&(T=T.map((function(e){return se(se({},e),{},{position:se(se({},e.position),{},{offset:e.position.offset-A/2})})})))}var D,I=n&&n.type&&n.type.getComposedData;I&&y.push({props:se(se({},I(se(se({},_),{},{displayedData:p,props:e,dataKey:w,item:n,bandSize:P,barPosition:T,offset:o,stackedData:E,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},(D={key:n.key||"item-".concat(s)},ce(D,m,_[m]),ce(D,g,_[g]),ce(D,"animationId",i),D)),childIndex:Object(L.f)(n,e.children),item:n})})),y},O=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!Object(L.h)({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,f=n.data,d=n.reverseStackOrder,g=xe(c),y=g.numericAxisName,b=g.cateAxisName,w=Object(L.a)(s,o),O=Object(B.r)(f,w,"".concat(y,"Id"),"".concat(b,"Id"),u,d),S=h.reduce((function(e,t){var r="".concat(t.axisType,"Map");return se(se({},e),{},ce({},r,ye(n,se(se({},t),{},{graphicalItems:w,stackGroups:t.axisType===y&&O,dataStartIndex:i,dataEndIndex:a}))))}),{}),k=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,s=n.width,c=n.height,u=n.children,f=n.margin||{},d=Object(L.b)(u,F.a.displayName),p=Object(L.b)(u,T.a.displayName),h=Object.keys(l).reduce((function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:se(se({},e),{},ce({},r,e[r]+n.width))}),{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:se(se({},e),{},ce({},r,m()(e,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),v=se(se({},g),h),y=v.bottom;return d&&(v.bottom+=d.props.height||F.a.defaultProps.height),p&&t&&(v=Object(B.a)(v,r,n,t)),se(se({brushBottom:y},v),{},{width:s-v.left-v.right,height:c-v.top-v.bottom})}(se(se({},S),{},{props:n,graphicalItems:w}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(S).forEach((function(e){S[e]=v(n,S[e],k,e.replace("Map",""),r)}));var _=function(e){var t=Object(H.b)(e),n=Object(B.t)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:p()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Object(B.f)(t)}}(S["".concat(b,"Map")]),C=x(n,se(se({},S),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:w,stackGroups:O,offset:k}));return se(se({formatedGraphicalItems:C,graphicalItems:w,offset:k,stackGroups:O},_),S)};return n=t=function(e){!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&&J(e,t)}(u,e);var t,n,o,a=ee(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!b()(t.deferId)&&he&&he(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e&&t.legendInstance){var n=t.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;t.setState(se({legendBBox:e},O({props:t.props,dataStartIndex:r,dataEndIndex:o,updateId:i},se(se({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=pe&&pe(t.applySyncEvent.bind(ne(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return se({dataStartIndex:n,dataEndIndex:r},O({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var o=se(se({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),c()(n)&&n(o,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),o=r?se(se({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),c()(n)&&n(o,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&c()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),c()(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=Object(L.d)(e),r=m()(t.props,"".concat(n));n&&c()(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var o=se(se({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),c()(n)&&n(o,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;c()(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;c()(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Object(B.l)(z.a.getTicks(se(se(se({},z.a.defaultProps),t),{},{ticks:Object(B.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Object(B.l)(z.a.getTicks(se(se(se({},z.a.defaultProps),t),{},{ticks:Object(B.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},t.axesTicksGenerator=function(e){return Object(B.t)(e,!0)},t.renderCursor=function(e){var n=t.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,l=n.offset,s=n.activeTooltipIndex,c=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!i||"axis"!==c)return null;var u,f=t.props.layout,d=A.a;if("ScatterChart"===r)u=i,d=R.a;else if("BarChart"===r)u=t.getCursorRectangle(),d=N.a;else if("radial"===f){var p=t.getCursorPoints(),h=p.cx,m=p.cy,g=p.radius;u={cx:h,cy:m,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:g,outerRadius:g},d=D.a}else u={points:t.getCursorPoints()},d=A.a;var v=e.key||"_recharts-cursor",y=se(se(se(se({stroke:"#ccc",pointerEvents:"none"},l),u),Object($.c)(e.props.cursor)),{},{payload:a,payloadIndex:s,key:v,className:"recharts-tooltip-cursor"});return Object(k.isValidElement)(e.props.cursor)?Object(k.cloneElement)(e.props.cursor,y):Object(k.createElement)(d,y)},t.renderPolarAxis=function(e,n,r){var o=m()(e,"type.axisType"),i=m()(t.state,"".concat(o,"Map"))[e.props["".concat(o,"Id")]];return Object(k.cloneElement)(e,se(se({},i),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:Object(B.t)(i,!0)}))},t.renderXAxis=function(e,n,r){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,n,r)},t.renderYAxis=function(e,n,r){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,a=n.offset,s=t.props,c=s.width,u=s.height,f=Object(H.b)(r),d=l()(o,(function(e){return i()(e.domain,de)}))||Object(H.b)(o),p=e.props||{};return Object(k.cloneElement)(e,{key:e.key||"grid",x:Object(H.g)(p.x)?p.x:a.left,y:Object(H.g)(p.y)?p.y:a.top,width:Object(H.g)(p.width)?p.width:a.width,height:Object(H.g)(p.height)?p.height:a.height,xAxis:f,yAxis:d,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,a=t.state,l=a.radiusAxisMap,s=a.angleAxisMap,c=Object(H.b)(l),u=Object(H.b)(s),f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius;e.props;return Object(k.cloneElement)(e,{polarAngles:S()(o)?o:Object(B.t)(u,!0).map((function(e){return e.coordinate})),polarRadius:S()(i)?i:Object(B.t)(c,!0).map((function(e){return e.coordinate})),cx:f,cy:d,innerRadius:p,outerRadius:h,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formatedGraphicalItems,n=t.props,r=n.children,o=n.width,i=n.height,a=t.props.margin||{},l=o-(a.left||0)-(a.right||0),s=Object(B.p)({children:r,formatedGraphicalItems:e,legendWidth:l,legendContent:g});if(!s)return null;var c=s.item,u=Q(s,["item"]);return Object(k.cloneElement)(c,se(se({},u),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=Object(L.b)(e,P.a.displayName);if(!n)return null;var r=t.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,l=r.activeLabel,s=r.offset;return Object(k.cloneElement)(n,{viewBox:se(se({},s),{},{x:s.left,y:s.top}),active:o,label:l,payload:o?a:[],coordinate:i})},t.renderBrush=function(e){var n=t.props,r=n.margin,o=n.data,i=t.state,a=i.offset,l=i.dataStartIndex,s=i.dataEndIndex,c=i.updateId;return Object(k.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(B.d)(t.handleBrushChange,null,e.props.onChange),data:o,x:Object(H.g)(e.props.x)?e.props.x:a.left,y:Object(H.g)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(H.g)(e.props.width)?e.props.width:a.width,startIndex:l,endIndex:s,updateId:"brush-".concat(c)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var o=ne(t).clipPathId,i=t.state,a=i.xAxisMap,l=i.yAxisMap,s=i.offset,c=e.props,u=c.xAxisId,f=c.yAxisId;return Object(k.cloneElement)(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:l[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:o})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],l=t.props.key,s=t.item.props,c=s.activeDot,f=se(se({index:o,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:Object(B.q)(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(l,"-activePoint-").concat(o)},Object($.c)(c)),Object($.a)(c));return a.push(u.renderActiveDot(c,f)),r?a.push(u.renderActiveDot(c,se(se({},f),{},{cx:r.x,cy:r.y,key:"".concat(l,"-basePoint-").concat(o)}))):i&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var o=t.filterFormatItem(e,n,r);if(!o)return null;var i=t.getTooltipEventType(),a=t.state,l=a.isTooltipActive,s=a.tooltipAxis,c=a.activeTooltipIndex,u=a.activeLabel,f=t.props.children,d=Object(L.b)(f,P.a.displayName),p=o.props,h=p.points,m=p.isRange,g=p.baseLine,v=o.item.props,y=v.activeDot,x=!v.hide&&l&&d&&y&&c>=0,w={};"axis"!==i&&d&&"click"===d.props.trigger?w={onClick:Object(B.d)(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==i&&(w={onMouseLeave:Object(B.d)(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:Object(B.d)(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var O=Object(k.cloneElement)(e,se(se({},o.props),w));if(x){var S,_;if(s.dataKey&&!s.allowDuplicatedCategory){var C="function"===typeof s.dataKey?function(e){return"function"===typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());S=Object(H.a)(h,C,u),_=m&&g&&Object(H.a)(g,C,u)}else S=h[c],_=m&&g&&g[c];if(!b()(S))return[O].concat(oe(t.renderActivePoints({item:o,activePoint:S,basePoint:_,childIndex:c,isRange:m})))}return m?[O,null,null]:[O,null]},t.renderCustomized=function(e){return Object(k.cloneElement)(e,se(se({},t.props),t.state))},t.uniqueChartId=b()(e.id)?Object(H.j)("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=f()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=u,(n=[{key:"componentDidMount",value:function(){b()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){b()(e.syncId)&&!b()(this.props.syncId)&&this.addListener(),!b()(e.syncId)&&b()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),b()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Object(L.b)(this.props.children,P.a.displayName);if(e&&w()(e.props.shared)){var t=e.props.shared?"axis":"item";return d.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(W.b)(this.container),n=Object(W.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==this.getTooltipEventType()&&i&&a){var l=Object(H.b)(i).scale,s=Object(H.b)(a).scale,c=l&&l.invert?l.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return se(se({},n),{},{xValue:c,yValue:u})}var f=ve(this.state,this.props.data,this.props.layout,r);return f?se(se({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,l=i.offset;if("horizontal"===o)n=e=a.x,t=l.top,r=l.top+l.height;else if("vertical"===o)r=t=a.y,e=l.left,n=l.left+l.width;else if(!b()(a.cx)||!b()(a.cy)){if("centric"!==o){var s=a.cx,c=a.cy,u=a.radius,f=a.startAngle,d=a.endAngle;return{points:[Object(U.e)(s,c,u,f),Object(U.e)(s,c,u,d)],cx:s,cy:c,radius:u,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,m=a.innerRadius,g=a.outerRadius,v=a.angle,y=Object(U.e)(p,h,m,v),x=Object(U.e)(p,h,g,v);e=y.x,t=y.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var l=Object(H.b)(i);return Object(U.d)({x:e,y:t},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Object(L.b)(e,P.a.displayName),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),se(se({},Object($.a)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Y.b.on(Y.a,this.handleReceiveSyncEvent),Y.b.setMaxListeners&&Y.b._maxListeners&&Y.b.setMaxListeners(Y.b._maxListeners+1)}},{key:"removeListener",value:function(){Y.b.removeListener(Y.a,this.handleReceiveSyncEvent),Y.b.setMaxListeners&&Y.b._maxListeners&&Y.b.setMaxListeners(Y.b._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;b()(t)||Y.b.emit(Y.a,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(b()(e.dataStartIndex)&&b()(e.dataEndIndex))if(b()(e.activeTooltipIndex))this.setState(e);else{var l=e.chartX,s=e.chartY,c=e.activeTooltipIndex,u=this.state,f=u.offset,d=u.tooltipTicks;if(!f)return;if("function"===typeof r)c=r(d,e);else if("value"===r){c=-1;for(var p=0;p1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=l},function(e,t,n){"use strict";t.a=function(e,t){return et?1:e>=t?0:NaN}},function(e,t,n){"use strict";Array.prototype.slice;t.a=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(60),o=n.n(r),i=n(21),a=n.n(i),l=n(20),s=n.n(l),c=n(342),u=n.n(c),f=n(31),d=n.n(f),p=n(1),h=n.n(p),m=n(67),g=n(29),v=n(35),y=n(22),b=n(17);function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var j={valueAccessor:function(e){return d()(e.value)?u()(e.value):e.value}};function E(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=e.textBreakAll,l=C(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?h.a.createElement(g.a,{className:"recharts-label-list"},t.map((function(e,t){var c=s()(r)?n(e,t):Object(y.w)(e&&e.payload,r),u=s()(i)?{}:{id:"".concat(i,"-").concat(t)};return h.a.createElement(m.a,O({},Object(b.c)(e,!0),l,u,{parentViewBox:e.parentViewBox,index:t,value:c,textBreakAll:a,viewBox:m.a.parseViewBox(s()(o)?e:k(k({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function M(e,t){return e?!0===e?h.a.createElement(E,{key:"labelList-implicit",data:t}):h.a.isValidElement(e)||a()(e)?h.a.createElement(E,{key:"labelList-implicit",data:t,content:e}):o()(e)?h.a.createElement(E,O({data:t},e,{key:"labelList-implicit"})):null:null}E.displayName="LabelList",E.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Object(v.a)(r,E.displayName).map((function(e,n){return Object(p.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var i=M(e.label,t);return[i].concat(x(o))},E.defaultProps=j},function(e,t,n){"use strict";var r=n(1),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){var r=n(547)();e.exports=r},function(e,t,n){var r=n(89),o=n(557);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(8),o=n.n(r),i=n(21),a=n.n(i),l=n(1),s=n.n(l),c=n(25),u=n.n(c),f=n(121),d=n(87),p=n(29),h=n(76),m=n(67),g=n(71),v=n(11),y=n(17);function b(e){return(b="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 x(){return(x=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n=2?Object(v.i)(y[1].coordinate-y[0].coordinate):1;if(1===w?(n="width"===g?f:p,r="width"===g?f+h:p+m):(n="width"===g?f+h:p+m,r="width"===g?f:p),t){var S=o[x-1],k=a()(i)?i(S.value,x-1):S.value,_=Object(d.c)(k)[g]+b,C=w*(S.coordinate+w*_/2-r);y[x-1]=S=O(O({},S),{},{tickCoord:C>0?S.coordinate-C*w:S.coordinate}),w*(S.tickCoord-w*_/2-n)>=0&&w*(S.tickCoord+w*_/2-r)<=0&&(r=S.tickCoord-w*(_/2+c),y[x-1]=O(O({},S),{},{isShow:!0}))}for(var j=t?x-1:x,E=0;E=0&&w*(M.tickCoord+w*T/2-r)<=0&&(n=M.tickCoord+w*(T/2+c),y[E]=O(O({},M),{},{isShow:!0}))}return y.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,l=e.orientation,s=e.minTickGap,c=e.unit,u=i.x,f=i.y,p=i.width,h=i.height,m="top"===l||"bottom"===l?"width":"height",g=c&&"width"===m?Object(d.c)(c)[m]:0,y=(r||[]).slice(),b=y.length,x=b>=2?Object(v.i)(y[1].coordinate-y[0].coordinate):1;1===x?(t="width"===m?u:f,n="width"===m?u+p:f+h):(t="width"===m?u+p:f+h,n="width"===m?u:f);for(var w=b-1;w>=0;w--){var S=y[w],k=a()(o)?o(S.value,b-w-1):S.value,_=Object(d.c)(k)[m]+g;if(w===b-1){var C=x*(S.coordinate+x*_/2-n);y[w]=S=O(O({},S),{},{tickCoord:C>0?S.coordinate-C*x:S.coordinate})}else y[w]=S=O(O({},S),{},{tickCoord:S.coordinate});x*(S.tickCoord-x*_/2-t)>=0&&x*(S.tickCoord+x*_/2-n)<=0&&(n=S.tickCoord-x*(_/2+s),y[w]=O(O({},S),{},{isShow:!0}))}return y.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(h.a,x({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(n=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,n=k(e,["viewBox"]),r=this.props,o=r.viewBox,i=k(r,["viewBox"]);return!Object(f.a)(t,o)||!Object(f.a)(n,i)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,l=this.props,s=l.x,c=l.y,u=l.width,f=l.height,d=l.orientation,p=l.tickSize,h=l.mirror,m=l.tickMargin,g=h?-1:1,y=e.tickSize||p,b=Object(v.g)(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*f)-g*y)-g*m,i=b;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*u)-g*y)-g*m,a=b;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*u)+g*y)+g*m,a=b;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*f)+g*y)+g*m,i=b}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,l=e.mirror,c=e.axisLine,f=O(O(O({},Object(y.c)(this.props)),Object(y.c)(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var d=+("top"===a&&!l||"bottom"===a&&l);f=O(O({},f),{},{x1:t,y1:n+d*i,x2:t+r,y2:n+d*i})}else{var p=+("left"===a&&!l||"right"===a&&l);f=O(O({},f),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return s.a.createElement("line",x({},f,{className:u()("recharts-cartesian-axis-line",o()(c,"className"))}))}},{key:"renderTicks",value:function(e){var t=this,n=this.props,r=n.tickLine,i=n.stroke,c=n.tick,f=n.tickFormatter,d=n.unit,h=l.getTicks(O(O({},this.props),{},{ticks:e})),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),v=Object(y.c)(this.props),b=Object(y.c)(c),w=O(O({},v),{},{fill:"none"},Object(y.c)(r)),S=h.map((function(e,n){var S=t.getTickLineCoord(e),k=S.line,_=S.tick,C=O(O(O(O({textAnchor:m,verticalAnchor:g},v),{},{stroke:"none",fill:i},b),_),{},{index:n,payload:e,visibleTicksCount:h.length,tickFormatter:f});return s.a.createElement(p.a,x({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Object(y.b)(t.props,e,n)),r&&s.a.createElement("line",x({},w,k,{className:u()("recharts-cartesian-axis-tick-line",o()(r,"className"))})),c&&l.renderTickItem(c,C,"".concat(a()(f)?f(e.value,n):e.value).concat(d||"")))}));return s.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},S)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var l=this.props,c=l.ticks,f=k(l,["ticks"]),d=c;return a()(o)&&(d=c&&c.length>0?o(this.props):o(f)),n<=0||r<=0||!d||!d.length?null:s.a.createElement(p.a,{className:u()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(d),m.a.renderCallByParent(this.props))}}])&&C(t.prototype,n),r&&C(t,r),l}(l.Component);T.displayName="CartesianAxis",T.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"}},,,function(e,t,n){var r=n(90).Symbol;e.exports=r},function(e,t,n){var r=n(21),o=n(234);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(42),o=n(37),i=Symbol("implicit");function a(){var e=new Map,t=[],n=[],l=i;function s(r){var o=r+"",a=e.get(o);if(!a){if(l!==i)return l;e.set(o,a=t.push(r))}return n[(a-1)%n.length]}return s.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;var o,i=Object(r.a)(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,l=a+"";e.has(l)||e.set(l,t.push(a))}}catch(c){i.e(c)}finally{i.f()}return s},s.range=function(e){return arguments.length?(n=Array.from(e),s):n.slice()},s.unknown=function(e){return arguments.length?(l=e,s):l},s.copy=function(){return a(t,n).unknown(l)},o.b.apply(s,arguments),s}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,u=e.className,f=e.style,d=c(e,["children","width","height","viewBox","className","style"]),p=i||{width:n,height:r,x:0,y:0},h=a()("recharts-surface",u);return o.a.createElement("svg",s({},Object(l.c)(d,!0,!0),{className:h,width:n,height:r,style:f,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),version:"1.1"}),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(244),o=n.n(r),i=n(42),a=o.a.mark(l);function l(e,t){var n,r,l,s,c,u,f;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==t){o.next=21;break}n=Object(i.a)(e),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=11;break}if(!(null!=(l=r.value)&&(l=+l)>=l)){o.next=9;break}return o.next=9,l;case 9:o.next=4;break;case 11:o.next=16;break;case 13:o.prev=13,o.t0=o.catch(2),n.e(o.t0);case 16:return o.prev=16,n.f(),o.finish(16);case 19:o.next=40;break;case 21:s=-1,c=Object(i.a)(e),o.prev=23,c.s();case 25:if((u=c.n()).done){o.next=32;break}if(f=u.value,!(null!=(f=t(f,++s,e))&&(f=+f)>=f)){o.next=30;break}return o.next=30,f;case 30:o.next=25;break;case 32:o.next=37;break;case 34:o.prev=34,o.t1=o.catch(23),c.e(o.t1);case 37:return o.prev=37,c.f(),o.finish(37);case 40:case"end":return o.stop()}}),a,null,[[2,13,16,19],[23,34,37,40]])}t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),l=n(17),s=n(36),c=n(11);function u(e){return(u="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 f(){return(f=Object.assign||function(e){for(var t=1;t180),",").concat(+(i>l),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var p=Object(s.e)(t,n,r,i),h=Object(s.e)(t,n,r,l);d+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=l),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},x=function(e){!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&&h(e,t)}(s,e);var t,n,r,i=m(s);function s(){return d(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,s=e.cornerRadius,u=e.forceCornerRadius,d=e.cornerIsExternal,p=e.startAngle,h=e.endAngle,m=e.className;if(i0&&Math.abs(p-h)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,u=e.endAngle,f=Object(c.i)(u-s),d=y({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:l}),p=d.circleTangency,h=d.lineTangency,m=d.theta,g=y({cx:t,cy:n,radius:o,angle:u,sign:-f,cornerRadius:i,cornerIsExternal:l}),v=g.circleTangency,x=g.lineTangency,w=g.theta,O=l?Math.abs(s-u):Math.abs(s-u)-m-w;if(O<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):b({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:u});var S="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var k=y({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),_=k.circleTangency,C=k.lineTangency,j=k.theta,E=y({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),M=E.circleTangency,P=E.lineTangency,T=E.theta,A=l?Math.abs(s-u):Math.abs(s-u)-j-T;if(A<0&&0===i)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(f>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(w,x/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:p,endAngle:h}):b({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:p,endAngle:h}),o.a.createElement("path",f({},Object(l.c)(this.props,!0),{className:v,d:g}))}}])&&p(t.prototype,n),r&&p(t,r),s}(r.PureComponent);x.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return be}));var r=n(21),o=n.n(r),i=n(147),a=n.n(i),l=n(1),s=n.n(l),c=n(25),u=n.n(c),f=n(156),d=n(130),p=n.n(d),h=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),m=2*h;var g={draw:function(e,t){var n=Math.sqrt(t/h);e.moveTo(n,0),e.arc(0,0,n,0,m)}},v={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()}},y=Math.sqrt(1/3),b=2*y,x={draw:function(e,t){var n=Math.sqrt(t/b),r=n*y;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},w={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},O=Math.sin(h/10)/Math.sin(7*h/10),S=Math.sin(m/10)*O,k=-Math.cos(m/10)*O,_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=S*n,o=k*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=m*i/5,l=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*o,s*r+l*o)}e.closePath()}},C=Math.sqrt(3),j={draw:function(e,t){var n=-Math.sqrt(t/(3*C));e.moveTo(0,2*n),e.lineTo(-C*n,-n),e.lineTo(C*n,-n),e.closePath()}},E=-.5,M=Math.sqrt(3)/2,P=1/Math.sqrt(12),T=3*(P/2+1),A={draw:function(e,t){var n=Math.sqrt(t/T),r=n/2,o=n*P,i=r,a=n*P+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(E*r-M*o,M*r+E*o),e.lineTo(E*i-M*a,M*i+E*a),e.lineTo(E*l-M*s,M*l+E*s),e.lineTo(E*r+M*o,E*o-M*r),e.lineTo(E*i+M*a,E*a-M*i),e.lineTo(E*l+M*s,E*s-M*l),e.closePath()}},R=n(671),D=n(43),I=n(17);function N(e){return(N="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 L(){return(L=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ve(e){return e.value}function ye(e,t){return!0===e?a()(t,ve):o()(e)?a()(t,e):t}var be=function(e){!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&&de(e,t)}(a,e);var t,n,r,i=pe(a);function a(){var e;ue(this,a);for(var t=arguments.length,n=new Array(t),r=0;r=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((s||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),se(se({},t),n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,c=t.payload,u=se(se({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return s.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,t){if(s.a.isValidElement(e))return s.a.cloneElement(e,t);if(o()(e))return s.a.createElement(e,t);t.ref;var n=ge(t,["ref"]);return s.a.createElement(oe,n)}(n,se(se({},this.props),{},{payload:ye(l,c)})))}}])&&fe(t.prototype,n),r&&fe(t,r),a}(l.PureComponent);be.displayName="Legend",be.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},function(e,t,n){var r=n(178),o=n(303),i=n(136);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f}));var r=n(23);function o(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 i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nu[n]+o?Math.max(f,u[n]):Math.max(d,u[n])},e}return t=l,(n=[{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,l=i.payload,c=i.isAnimationActive,d=i.animationDuration,h=i.animationEasing,m=i.filterNull,g=function(e,t){return!0===e?s()(t,G):a()(e)?s()(t,e):t}(i.payloadUniqBy,m&&l&&l.length?l.filter((function(e){return!o()(e.value)})):l),v=g&&g.length,b=this.props,x=b.content,w=b.viewBox,O=b.coordinate,S=b.position,k=b.active,_=N({pointerEvents:"none",visibility:k&&v?"visible":"hidden",position:"absolute",top:0,left:0},b.wrapperStyle);if(S&&Object(y.g)(S.x)&&Object(y.g)(S.y))t=S.x,n=S.y;else{var C=this.state,j=C.boxWidth,E=C.boxHeight;j>0&&E>0&&O?(t=this.getTranslate({key:"x",tooltipDimension:j,viewBoxDimension:w.width}),n=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:w.height})):_.visibility="hidden"}_=N(N({},Object(f.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),_),c&&k&&(_=N(N({},Object(f.b)({transition:"transform ".concat(d,"ms ").concat(h)})),_));var M=p()(U,(L(e={},"".concat(U,"-right"),Object(y.g)(t)&&O&&Object(y.g)(O.x)&&t>=O.x),L(e,"".concat(U,"-left"),Object(y.g)(t)&&O&&Object(y.g)(O.x)&&t=O.y),L(e,"".concat(U,"-top"),Object(y.g)(n)&&O&&Object(y.g)(O.y)&&n1)for(var n=1;n0||e instanceof Object)?t(e):null)},b.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=b,i(x.prototype),s(x.prototype),x.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},x.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},x.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"===typeof btoa?"basic":"auto"});var o=function(e){if("function"===typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},x.prototype.query=function(e){return"string"!==typeof e&&(e=m(e)),e&&this._query.push(e),this},x.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},x.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},x.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},x.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},x.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},x.prototype.ca=x.prototype.agent,x.prototype.buffer=x.prototype.ca,x.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},x.prototype.pipe=x.prototype.write,x.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},x.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},x.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},x.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(o){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(l){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(s){return this.callback(s)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!==typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&y(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send("undefined"===typeof n?null:n)},p.agent=function(){return new f},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){f.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),f.prototype.del=f.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"===typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"===typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryStorage=t.CookieStorage=t.isSupported=t.storage=void 0;var r=a(n(450)),o=a(n(268)),i=a(n(452));function a(e){return e&&e.__esModule?e:{default:e}}var l=null;(0,r.default)("localStorage")?t.storage=l=window.localStorage:(0,r.default)("sessionStorage")?t.storage=l=window.sessionStorage:(0,r.default)("cookieStorage")?t.storage=l=new o.default:t.storage=l=new i.default,t.default=l,t.storage=l,t.isSupported=r.default,t.CookieStorage=o.default,t.MemoryStorage=i.default},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(155);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(94),n(4);var r=n(111),o=(n(9),n(116),{xs:0,sm:600,md:960,lg:1280,xl:1920}),i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===Object(r.a)(t)){var a=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){"use strict";var r=n(45),o=n(46);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(47)).default)(i.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");t.default=a},function(e,t,n){"use strict";(function(e){function r(t,n){var r,o="undefined"!==typeof(r="undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:e).document&&r.document.attachEvent;if(!o){var i=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),l=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,u="",f="animationstart",d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=r.document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var m=0;m div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(i),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='';if(window.trustedTypes){var u=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});e.__resizeTriggers__.innerHTML=u.createHTML("")}else e.__resizeTriggers__.innerHTML=c;e.appendChild(e.__resizeTriggers__),l(e),e.addEventListener("scroll",s,!0),f&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==g&&l(e)},e.__resizeTriggers__.addEventListener(f,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(81))},function(e,t,n){"use strict";var r=n(45),o=n(46);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(47)).default)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.default=a},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){"use strict";var r=n(45),o=n(46);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(47)).default)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=a},function(e,t,n){var r=n(488),o=n(489),i=n(89),a=n(31),l=n(177);e.exports=function(e,t,n){var s=a(e)?r:o;return n&&l(e,t,n)&&(t=void 0),s(e,i(t,3))}},function(e,t,n){"use strict";var r=l(n(577)),o=l(n(581)),i=l(n(308)),a=l(n(306));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return null};r.displayName="Cell"},function(e,t,n){"use strict";var r=n(45),o=n(46);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(47)).default)(i.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return r.a})),n.d(t,"scalePoint",(function(){return r.b})),n.d(t,"scaleIdentity",(function(){return a})),n.d(t,"scaleLinear",(function(){return o.a})),n.d(t,"scaleLog",(function(){return b})),n.d(t,"scaleSymlog",(function(){return S})),n.d(t,"scaleOrdinal",(function(){return k.a})),n.d(t,"scaleImplicit",(function(){return k.b})),n.d(t,"scalePow",(function(){return M})),n.d(t,"scaleSqrt",(function(){return P})),n.d(t,"scaleRadial",(function(){return R})),n.d(t,"scaleQuantile",(function(){return U})),n.d(t,"scaleQuantize",(function(){return Y})),n.d(t,"scaleThreshold",(function(){return $})),n.d(t,"scaleTime",(function(){return jn})),n.d(t,"scaleUtc",(function(){return En})),n.d(t,"scaleSequential",(function(){return Rn})),n.d(t,"scaleSequentialLog",(function(){return Dn})),n.d(t,"scaleSequentialPow",(function(){return Nn})),n.d(t,"scaleSequentialSqrt",(function(){return Ln})),n.d(t,"scaleSequentialSymlog",(function(){return In})),n.d(t,"scaleSequentialQuantile",(function(){return zn})),n.d(t,"scaleDiverging",(function(){return Hn})),n.d(t,"scaleDivergingLog",(function(){return Bn})),n.d(t,"scaleDivergingPow",(function(){return Un})),n.d(t,"scaleDivergingSqrt",(function(){return Gn})),n.d(t,"scaleDivergingSymlog",(function(){return Vn})),n.d(t,"tickFormat",(function(){return Yn.a}));var r=n(238),o=n(61),i=n(131);function a(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,i.a),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return a(e).unknown(t)},e=arguments.length?Array.from(e,i.a):[0,1],Object(o.b)(n)}var l=n(371),s=n(685);function c(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;p<=h;++p)for(f=1,u=n(p);fc)break;g.push(d)}}else for(;p<=h;++p)for(f=i-1,u=n(p);f>=1;--f)if(!((d=u*f)c)break;g.push(d)}2*g.length=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,l=-1,s=Object(D.a)(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;null!=(c=t(c,++l,e))&&(n=c)&&(n=c)}}catch(u){s.e(u)}finally{s.f()}}return n}function N(e,t){var n;if(void 0===t){var r,o=Object(D.a)(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n>i||void 0===n&&i>=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,l=-1,s=Object(D.a)(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;null!=(c=t(c,++l,e))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(u){s.e(u)}finally{s.f()}}return n}var L=n(142);function z(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:L.a;r>n;){if(r-n>600){var i=r-n+1,a=t-n+1,l=Math.log(i),s=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*s*(i-s)/i)*(a-i/2<0?-1:1),u=Math.max(n,Math.floor(t-a*s/i+c)),f=Math.min(r,Math.floor(t+(i-a)*s/i+c));z(e,t,u,f,o)}var d=e[t],p=n,h=r;for(F(e,n,t),o(e[r],d)>0&&F(e,n,r);p0;)--h}0===o(e[n],d)?F(e,n,h):F(e,++h,r),h<=t&&(n=h+1),t<=h&&(r=h-1)}return e}function F(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}var W=n(157);function H(e,t,n){if(r=(e=Float64Array.from(Object(W.b)(e,n))).length){if((t=+t)<=0||r<2)return N(e);if(t>=1)return I(e);var r,o=(r-1)*t,i=Math.floor(o),a=I(z(e,i).subarray(0,i+1));return a+(N(e.subarray(i+1))-a)*(o-i)}}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.a;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return a+(l-a)*(o-i)}}var V=n(672);function U(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e0?r[o-1]:t[0],o=r?[i[r-1],n]:[i[o-1],i[o]]},l.unknown=function(t){return arguments.length?(e=t,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return Y().domain([t,n]).range(a).unknown(e)},f.b.apply(Object(o.b)(l),arguments)}function $(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Object(V.a)(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return $().domain(t).range(n).unknown(e)},f.b.apply(o,arguments)}var q=n(243),K=1e3,X=6e4,Q=36e5,Z=864e5,J=6048e5,ee=2592e6,te=31536e6,ne=new Date,re=new Date;function oe(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return l;do{l.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return ne.setTime(+t),re.setTime(+r),e(ne),e(re),Math.floor(n(ne,re))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var ie=oe((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ie.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?oe((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ie:null};var ae=ie,le=(ie.range,oe((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*K)}),(function(e,t){return(t-e)/K}),(function(e){return e.getUTCSeconds()}))),se=le,ce=(le.range,oe((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*K)}),(function(e,t){e.setTime(+e+t*X)}),(function(e,t){return(t-e)/X}),(function(e){return e.getMinutes()}))),ue=ce,fe=(ce.range,oe((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*K-e.getMinutes()*X)}),(function(e,t){e.setTime(+e+t*Q)}),(function(e,t){return(t-e)/Q}),(function(e){return e.getHours()}))),de=fe,pe=(fe.range,oe((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*X)/Z}),(function(e){return e.getDate()-1}))),he=pe;pe.range;function me(e){return oe((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())*X)/J}))}var ge=me(0),ve=me(1),ye=me(2),be=me(3),xe=me(4),we=me(5),Oe=me(6),Se=(ge.range,ve.range,ye.range,be.range,xe.range,we.range,Oe.range,oe((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()}))),ke=Se,_e=(Se.range,oe((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()})));_e.every=function(e){return isFinite(e=Math.floor(e))&&e>0?oe((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 Ce=_e,je=(_e.range,oe((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*X)}),(function(e,t){return(t-e)/X}),(function(e){return e.getUTCMinutes()}))),Ee=je,Me=(je.range,oe((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Q)}),(function(e,t){return(t-e)/Q}),(function(e){return e.getUTCHours()}))),Pe=Me,Te=(Me.range,oe((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Z}),(function(e){return e.getUTCDate()-1}))),Ae=Te;Te.range;function Re(e){return oe((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)/J}))}var De=Re(0),Ie=Re(1),Ne=Re(2),Le=Re(3),ze=Re(4),Fe=Re(5),We=Re(6),He=(De.range,Ie.range,Ne.range,Le.range,ze.range,Fe.range,We.range,oe((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Be=He,Ve=(He.range,oe((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()})));Ve.every=function(e){return isFinite(e=Math.floor(e))&&e>0?oe((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 Ue=Ve;Ve.range;function Ge(e,t,n,r,o,i){var a=[[se,1,K],[se,5,5e3],[se,15,15e3],[se,30,3e4],[i,1,X],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Q],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Z],[r,2,1728e5],[n,1,J],[t,1,ee],[t,3,7776e6],[e,1,te]];function s(t,n,r){var o=Math.abs(n-t)/r,i=Object(q.a)((function(e){return Object(G.a)(e,3)[2]})).right(a,o);if(i===a.length)return e.every(Object(l.c)(t/te,n/te,r));if(0===i)return ae.every(Math.max(Object(l.c)(t,n,r),1));var s=Object(G.a)(a[o/a[i-1][2]68?1900:2e3),n+r[0].length):-1}function wt(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 Ot(e,t,n){var r=lt.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function St(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kt(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _t(e,t,n){var r=lt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ct(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jt(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Et(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mt(e,t,n){var r=lt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=lt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Tt(e,t,n){var r=st.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function At(e,t,n){var r=lt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rt(e,t,n){var r=lt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dt(e,t){return ut(e.getDate(),t,2)}function It(e,t){return ut(e.getHours(),t,2)}function Nt(e,t){return ut(e.getHours()%12||12,t,2)}function Lt(e,t){return ut(1+he.count(Ce(e),e),t,3)}function zt(e,t){return ut(e.getMilliseconds(),t,3)}function Ft(e,t){return zt(e,t)+"000"}function Wt(e,t){return ut(e.getMonth()+1,t,2)}function Ht(e,t){return ut(e.getMinutes(),t,2)}function Bt(e,t){return ut(e.getSeconds(),t,2)}function Vt(e){var t=e.getDay();return 0===t?7:t}function Ut(e,t){return ut(ge.count(Ce(e)-1,e),t,2)}function Gt(e){var t=e.getDay();return t>=4||0===t?xe(e):xe.ceil(e)}function Yt(e,t){return e=Gt(e),ut(xe.count(Ce(e),e)+(4===Ce(e).getDay()),t,2)}function $t(e){return e.getDay()}function qt(e,t){return ut(ve.count(Ce(e)-1,e),t,2)}function Kt(e,t){return ut(e.getFullYear()%100,t,2)}function Xt(e,t){return ut((e=Gt(e)).getFullYear()%100,t,2)}function Qt(e,t){return ut(e.getFullYear()%1e4,t,4)}function Zt(e,t){var n=e.getDay();return ut((e=n>=4||0===n?xe(e):xe.ceil(e)).getFullYear()%1e4,t,4)}function Jt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ut(t/60|0,"0",2)+ut(t%60,"0",2)}function en(e,t){return ut(e.getUTCDate(),t,2)}function tn(e,t){return ut(e.getUTCHours(),t,2)}function nn(e,t){return ut(e.getUTCHours()%12||12,t,2)}function rn(e,t){return ut(1+Ae.count(Ue(e),e),t,3)}function on(e,t){return ut(e.getUTCMilliseconds(),t,3)}function an(e,t){return on(e,t)+"000"}function ln(e,t){return ut(e.getUTCMonth()+1,t,2)}function sn(e,t){return ut(e.getUTCMinutes(),t,2)}function cn(e,t){return ut(e.getUTCSeconds(),t,2)}function un(e){var t=e.getUTCDay();return 0===t?7:t}function fn(e,t){return ut(De.count(Ue(e)-1,e),t,2)}function dn(e){var t=e.getUTCDay();return t>=4||0===t?ze(e):ze.ceil(e)}function pn(e,t){return e=dn(e),ut(ze.count(Ue(e),e)+(4===Ue(e).getUTCDay()),t,2)}function hn(e){return e.getUTCDay()}function mn(e,t){return ut(Ie.count(Ue(e)-1,e),t,2)}function gn(e,t){return ut(e.getUTCFullYear()%100,t,2)}function vn(e,t){return ut((e=dn(e)).getUTCFullYear()%100,t,2)}function yn(e,t){return ut(e.getUTCFullYear()%1e4,t,4)}function bn(e,t){var n=e.getUTCDay();return ut((e=n>=4||0===n?ze(e):ze.ceil(e)).getUTCFullYear()%1e4,t,4)}function xn(){return"+0000"}function wn(){return"%"}function On(e){return+e}function Sn(e){return Math.floor(+e/1e3)}function kn(e){return new Date(e)}function _n(e){return e instanceof Date?+e:+new Date(+e)}function Cn(e,t,n,r,o,i,a,l,s,f){var d=Object(u.b)(),p=d.invert,h=d.domain,m=f(".%L"),g=f(":%S"),v=f("%I:%M"),y=f("%I %p"),b=f("%a %d"),x=f("%b %d"),w=f("%B"),O=f("%Y");function S(e){return(s(e)=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:On,s:Sn,S:Bt,u:Vt,U:Ut,V:Yt,w:$t,W:qt,x:null,X:null,y:Kt,Y:Qt,Z:Jt,"%":wn},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:en,e:en,f:an,g:vn,G:bn,H:tn,I:nn,j:rn,L:on,m:ln,M:sn,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:On,s:Sn,S:cn,u:un,U:fn,V:pn,w:hn,W:mn,x:null,X:null,y:gn,Y:yn,Z:xn,"%":wn},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:kt,e:kt,f:Pt,g:xt,G:bt,H:Ct,I:Ct,j:_t,L:Mt,m:St,M:jt,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ot,Q:At,s:Rt,S:Et,u:mt,U:gt,V:vt,w:ht,W:yt,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:xt,Y:bt,Z:wt,"%":Tt};function O(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=tt(nt(i.y,0,1))).getUTCDay(),r=o>4||0===o?Ie.ceil(r):Ie(r),r=Ae.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=et(nt(i.y,0,1))).getDay(),r=o>4||0===o?ve.ceil(r):ve(r),r=he.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?tt(nt(i.y,0,1)).getUTCDay():et(nt(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,tt(i)):et(i)}}function k(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in at?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),ot=rt.format,rt.parse,it=rt.utcFormat,rt.utcParse;var Mn=n(363),Pn=n(673);function Tn(){var e,t,n,r,o,i=0,a=1,l=u.c,s=!1;function c(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function f(e){return function(t){var n,r,o,i;return arguments.length?(n=t,o=(r=Object(G.a)(n,2))[0],i=r[1],l=e(o,i),c):[l(0),l(1)]}}return c.domain=function(o){var l,s;return arguments.length?(l=o,s=Object(G.a)(l,2),i=s[0],a=s[1],e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(s=!!e,c):s},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=f(Mn.a),c.rangeRound=f(Pn.a),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function An(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Rn(){var e=Object(o.b)(Tn()(u.c));return e.copy=function(){return An(e,Rn())},f.a.apply(e,arguments)}function Dn(){var e=y(Tn()).domain([1,10]);return e.copy=function(){return An(e,Dn()).base(e.base())},f.a.apply(e,arguments)}function In(){var e=O(Tn());return e.copy=function(){return An(e,In()).constant(e.constant())},f.a.apply(e,arguments)}function Nn(){var e=E(Tn());return e.copy=function(){return An(e,Nn()).exponent(e.exponent())},f.a.apply(e,arguments)}function Ln(){return Nn.apply(null,arguments).exponent(.5)}function zn(){var e=[],t=u.c;function n(n){if(null!=n&&!isNaN(n=+n))return t((Object(V.a)(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];var r,o=Object(D.a)(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;null==i||isNaN(i=+i)||e.push(i)}}catch(a){o.e(a)}finally{o.f()}return e.sort(L.a),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((function(n,r){return t(r/(e.length-1))}))},n.quantiles=function(t){return Array.from({length:t+1},(function(n,r){return H(e,r/t)}))},n.copy=function(){return zn(t).domain(e)},f.a.apply(n,arguments)}function Fn(e,t){void 0===t&&(t=e,e=Mn.a);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var n=r.default.stringify(e.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var l=o.parser.parse(n),c=(0,i.default)(l,t);e.type="word",e.value=(0,a.default)(e.value,c,t)}}}),!0).toString()},e.exports=t.default},function(e,t,n){"use strict";var r=n(45),o=n(46);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(47)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n(21),o=n.n(r),i=n(1),a=n.n(i),l=n(25),s=n.n(l),c=n(29),u=n(119),f=n(67),d=n(11),p=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},h=n(84),m=n(77),g=n(17);function v(){return(v=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=A(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(P(t),"startX"),endX:t.handleTravellerDragStart.bind(P(t),"endX")},t.state={},t}return t=c,r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,a=Math.floor(n+o/2)-1;return s.a.createElement(s.a.Fragment,null,s.a.createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),s.a.createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),s.a.createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):o()(e)?e(t):c.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,l=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||l!==t.prevUpdateId)return k({prevData:n,prevTravellerWidth:i,prevUpdateId:l,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,l=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=Object(f.b)().domain(a()(0,s)).range([o,o+i-l]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:l,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,l=Math.min(t,n),s=Math.max(t,n),u=c.getIndexInRange(r,l),f=c.getIndexInRange(r,s);return{startIndex:u-u%i,endIndex:f===a?a:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,a=Object(h.w)(n[e],i,e);return o()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,s=i.travellerWidth,c=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+l-s-o,a+l-s-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===c&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=A(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,f=s.travellerWidth,d=s.onChange,p=s.gap,h=s.data,m={startX:this.state.startX,endX:this.state.endX},g=e.pageX-r;g>0?g=Math.min(g,c+u-f-l):g<0&&(g=Math.max(g,c-l)),m[o]=l+g;var v=this.getIndex(m),y=v.startIndex,b=v.endIndex;this.setState((_(t={},o,l+g),_(t,"brushMoveStartX",e.pageX),t),(function(){d&&function(){var e=h.length-1;return"startX"===o&&(i>a?y%p===0:b%p===0)||ia?b%p===0:y%p===0)||i>a&&b===e}()&&d(v)}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,c=e.padding,u=l.Children.only(a);return u?s.a.cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.traveller,l=Math.max(e,this.props.x),u=k(k({},Object(x.c)(this.props)),{},{x:l,y:r,width:o,height:i});return s.a.createElement(d.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.renderTraveller(a,u))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,l=Math.min(e,t)+a,c=Math.max(Math.abs(t-e)-a,0);return s.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:l,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,l=this.state,c=l.startX,u=l.endX,f={pointerEvents:"none",fill:a};return s.a.createElement(d.a,{className:"recharts-brush-texts"},s.a.createElement(p.a,O({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+o/2},f),this.getTextOfTick(t)),s.a.createElement(p.a,O({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,l=e.height,c=e.alwaysShowText,f=this.state,p=f.startX,h=f.endX,g=f.isTextActive,x=f.isSlideMoving,w=f.isTravellerMoving;if(!t||!t.length||!Object(m.g)(o)||!Object(m.g)(i)||!Object(m.g)(a)||!Object(m.g)(l)||a<=0||l<=0)return null;var O=u()("recharts-brush",n),S=1===s.a.Children.count(r),k=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=b.reduce((function(e,r){return v(v({},e),{},y({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return s.a.createElement(d.a,{className:O,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:k},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(g||x||w||c)&&this.renderText())}}])&&C(t.prototype,n),r&&C(t,r),c}(l.PureComponent);R.displayName="Brush",R.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1}},function(e,t,n){"use strict";var r=n(4),o=n(10),i=n(1),a=(n(9),n(30)),l=n(6),s=n(27),c=n(55),u=n(14),f=n(113),d=n(94),p=n(701),h="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var m=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,s=e.rippleSize,u=e.in,f=e.onExited,d=void 0===f?function(){}:f,p=e.timeout,m=i.useState(!1),g=m[0],v=m[1],y=Object(l.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),b={width:s,height:s,top:-s/2+a,left:-s/2+o},x=Object(l.a)(t.child,g&&t.childLeaving,r&&t.childPulsate),w=Object(c.a)(d);return h((function(){if(!u){v(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,u,p]),i.createElement("span",{className:y,style:b},i.createElement("span",{className:x}))},g=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,c=e.className,u=Object(o.a)(e,["center","classes","className"]),f=i.useState([]),h=f[0],g=f[1],v=i.useRef(0),y=i.useRef(null);i.useEffect((function(){y.current&&(y.current(),y.current=null)}),[h]);var b=i.useRef(!1),x=i.useRef(null),w=i.useRef(null),O=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(x.current)}}),[]);var S=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;g((function(e){return[].concat(Object(d.a)(e),[i.createElement(m,{key:v.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),v.current+=1,y.current=a}),[s]),k=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,l=void 0===i?a||t.pulsate:i,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var u,f,d,p=c?null:O.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),f=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,g=m.clientX,v=m.clientY;u=Math.round(g-h.left),f=Math.round(v-h.top)}if(l)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(k,2))}e.touches?null===w.current&&(w.current=function(){S({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})},x.current=setTimeout((function(){w.current&&(w.current(),w.current=null)}),80)):S({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})}}),[a,S]),_=i.useCallback((function(){k({},{pulsate:!0})}),[k]),C=i.useCallback((function(e,t){if(clearTimeout(x.current),"touchend"===e.type&&w.current)return e.persist(),w.current(),w.current=null,void(x.current=setTimeout((function(){C(e,t)})));w.current=null,g((function(e){return e.length>0?e.slice(1):e})),y.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:_,start:k,stop:C}}),[_,k,C]),i.createElement("span",Object(r.a)({className:Object(l.a)(s.root,c),ref:O},u),i.createElement(p.a,{component:null,exit:!0},h))})),v=Object(u.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(g)),y=i.forwardRef((function(e,t){var n=e.action,u=e.buttonRef,d=e.centerRipple,p=void 0!==d&&d,h=e.children,m=e.classes,g=e.className,y=e.component,b=void 0===y?"button":y,x=e.disabled,w=void 0!==x&&x,O=e.disableRipple,S=void 0!==O&&O,k=e.disableTouchRipple,_=void 0!==k&&k,C=e.focusRipple,j=void 0!==C&&C,E=e.focusVisibleClassName,M=e.onBlur,P=e.onClick,T=e.onFocus,A=e.onFocusVisible,R=e.onKeyDown,D=e.onKeyUp,I=e.onMouseDown,N=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,F=e.onTouchMove,W=e.onTouchStart,H=e.onDragLeave,B=e.tabIndex,V=void 0===B?0:B,U=e.TouchRippleProps,G=e.type,Y=void 0===G?"button":G,$=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),q=i.useRef(null);var K=i.useRef(null),X=i.useState(!1),Q=X[0],Z=X[1];w&&Q&&Z(!1);var J=Object(f.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;return Object(c.a)((function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),q.current.focus()}}}),[]),i.useEffect((function(){Q&&j&&!S&&K.current.pulsate()}),[S,j,Q]);var oe=re("start",I),ie=re("stop",H),ae=re("stop",L),le=re("stop",(function(e){Q&&e.preventDefault(),N&&N(e)})),se=re("start",W),ce=re("stop",z),ue=re("stop",F),fe=re("stop",(function(e){Q&&(te(e),Z(!1)),M&&M(e)}),!1),de=Object(c.a)((function(e){q.current||(q.current=e.currentTarget),ee(e)&&(Z(!0),A&&A(e)),T&&T(e)})),pe=function(){var e=a.findDOMNode(q.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),me=Object(c.a)((function(e){j&&!he.current&&Q&&K.current&&" "===e.key&&(he.current=!0,e.persist(),K.current.stop(e,(function(){K.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),ge=Object(c.a)((function(e){j&&" "===e.key&&K.current&&Q&&!e.defaultPrevented&&(he.current=!1,e.persist(),K.current.stop(e,(function(){K.current.pulsate(e)}))),D&&D(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ve=b;"button"===ve&&$.href&&(ve="a");var ye={};"button"===ve?(ye.type=Y,ye.disabled=w):("a"===ve&&$.href||(ye.role="button"),ye["aria-disabled"]=w);var be=Object(s.a)(u,t),xe=Object(s.a)(ne,q),we=Object(s.a)(be,xe),Oe=i.useState(!1),Se=Oe[0],ke=Oe[1];i.useEffect((function(){ke(!0)}),[]);var _e=Se&&!S&&!w;return i.createElement(ve,Object(r.a)({className:Object(l.a)(m.root,g,Q&&[m.focusVisible,E],w&&m.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:me,onKeyUp:ge,onMouseDown:oe,onMouseLeave:le,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:ue,onTouchStart:se,ref:we,tabIndex:w?-1:V},ye,$),h,_e?i.createElement(v,Object(r.a)({ref:K,center:p},U)):null)}));t.a=Object(u.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(y)},,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),c=1;c1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=C(e),r=n.length>0?n[0]:"",i=j("%"+r+"%",t),l=i.name,c=i.value,u=!1,f=i.alias;f&&(r=f[0],w(n,x([0,1],f)));for(var d=1,p=!0;d=n.length){var y=s(c,h);c=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else p=b(c,h),c=c[h];p&&!u&&(m[l]=c)}}return c}},function(e,t,n){"use strict";var r=n(412);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},function(e,t,n){var r=n(264),o=n(169);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&nl))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,f=!0,d=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++u-1},ve.prototype.set=function(e,t){var n=this.__data__,r=Oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(oe||ve),string:new ge}},ye.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Pe(this,e).get(e)},ye.prototype.has=function(e){return Pe(this,e).has(e)},ye.prototype.set=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ve,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var Ae=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=o}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ue=R?function(e){return function(t){return e(t)}}(R):function(e){return Ve(e)&&He(e.length)&&!!k[Se(e)]};function Ge(e){return null!=(t=e)&&He(t.length)&&!We(t)?we(e):je(e);var t}n.exports=function(e,t){return _e(e,t)}}).call(this,n(81),n(172)(e))},function(e,t,n){"use strict";var r=n(476),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},function(e,t,n){"use strict";function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=s({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=s({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.createCSSTransform=function(e,t){var n=d(e,t,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTranslation=d,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}},t.addClassName=p,t.removeClassName=h;var o=n(174),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(477));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(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 s(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(509),o=n(101);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,l))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(292),o=n(535);e.exports=function e(t,n,i,a,l){var s=-1,c=t.length;for(i||(i=o),l||(l=[]);++s0&&i(u)?n>1?e(u,n-1,i,a,l):r(l,u):a||(l[l.length]=u)}return l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(3),o=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({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 i(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+""}o.prototype=i.prototype,i.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(e,t,n){"use strict";var r=n(142);t.a=function(e){var t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return Object(r.a)(e(t),n)}}(e)),{left:o,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);var a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}},function(e,t,n){e.exports=n(565)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r),i=n(186);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=n(10),o=n(4),i=n(1),a=(n(9),n(6)),l=n(14),s=i.forwardRef((function(e,t){var n=e.classes,l=e.className,s=e.component,c=void 0===s?"div":s,u=e.square,f=void 0!==u&&u,d=e.elevation,p=void 0===d?1:d,h=e.variant,m=void 0===h?"elevation":h,g=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(c,Object(o.a)({className:Object(a.a)(n.root,l,"outlined"===m?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},g))}));t.a=Object(l.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(s)},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(221),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?s+=l.charAt(c):u<128?s+=a[u]:u<2048?s+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?s+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&l.charCodeAt(c)),s+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return s},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{};l(this,e),this.cookieOptions=Object.assign({path:"/"},t),s=void 0===t.prefix?s:t.prefix}return r(e,[{key:"getItem",value:function(e){var t=a.default.parse(document.cookie);return t&&t.hasOwnProperty(s+e)?t[s+e]:null}},{key:"setItem",value:function(e,t){return document.cookie=a.default.serialize(s+e,t,this.cookieOptions),t}},{key:"removeItem",value:function(e){var t=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=a.default.serialize(s+e,"",t),null}},{key:"clear",value:function(){var e=a.default.parse(document.cookie);for(var t in e)0===t.indexOf(s)&&this.removeItem(t.substr(s.length));return null}}]),e}();t.default=c},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,s=!0);var O=y&&(c||f&&(null==w||w<12.11)),S=n||a&&l>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,C=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return j(e).appendChild(t)}function M(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=l-i,a+=n-a%n,i=l+1}}m?I=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(I=function(e){try{e.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var $=[""];function q(e){for(;$.length<=e;)$.push(K($)+" ");return $[e]}function K(e){return e[e.length-1]}function X(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&oe.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ce=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ce=o)}return null!=r?r:ce}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,f=[],d=0;d-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function we(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function Oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Oe(e),Se(e)}function Ce(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Ee,Me,Pe=function(){if(a&&l<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Ee){var t=M("span","\u200b");E(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Ee?M("span","\u200b"):M("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Me)return Me;var t=E(e,document.createTextNode("A\u062eA")),n=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(Me=r.right-n.right<3)}var Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie=function(){var e=M("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ne=null;function Le(e){if(null!=Ne)return Ne;var t=E(e,M("span","x")),n=t.getBoundingClientRect(),r=_(t,0,1).getBoundingClientRect();return Ne=Math.abs(n.left-r.left)>1}var ze={},Fe={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function He(e,t){Fe[e]=t}function Be(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Be("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Be("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Be(t);var n=ze[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var o=Ue[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Ge(e,t){L(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function $e(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?ot(n,Xe(e,n).text.length):dt(t,Xe(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function pt(e,t){for(var n=[],r=0;r=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var o=[e.state.modeGen],i={};_t(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,l=function(r){n.baseTokens=o;var l=e.state.overlays[r],s=1,c=0;n.state=!0,_t(e,t.text,l.mode,n,(function(e,t){for(var n=s;ce&&o.splice(s,1,e,o[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(l.opaque)o.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ye(e.doc.mode,r.state),i=gt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new mt(r,!0,t);var i=Ct(e,t,n),a=i>r.first&&Xe(r,i-1).stateAfter,l=a?mt.fromSaved(r,a,i):new mt(r,qe(r.mode),i);return r.iter(i,t,(function(n){bt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ye(e.mode,t.state),n,t.lookAhead):new mt(e,Ye(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var Ot=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var o,i,a=e.doc,l=a.mode,s=Xe(a,(t=ft(a,t)).line),c=yt(e,t.line,n),u=new Ke(s.text,e.options.tabSize,c);for(r&&(i=[]);(r||u.pose.options.maxHighlightLength?(l=!1,a&&bt(e,t,r,f.pos),f.pos=t.length,s=null):s=kt(wt(n,f,r.state,d),i),d){var p=d[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||u!=s){for(;ca;--l){if(l<=i.first)return i.first;var s=Xe(i,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof ht?c.lookAhead:0)<=i.modeFrontier))return l;var u=z(s.text,null,e.options.tabSize);(null==o||r>u)&&(o=l-1,r=u)}return o}function jt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=Xe(e,r).stateAfter;if(o&&(!(o instanceof ht)||r+o.lookAhead=t:i.to>t);(r||(r=[])).push(new At(a,i.from,l?null:i.to))}}return r}function Lt(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&l)for(var b=0;b0)){var u=[s,1],f=it(c.from,l.from),d=it(c.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:c.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:l.to,to:c.to}),o.splice.apply(o,u),s+=u.length-3}}return o}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Gt(n,i.marker)<0)&&(n=i.marker)}return n}function Xt(e,t,n,r,o){var i=Xe(e,t),a=Mt&&i.markedSpans;if(a)for(var l=0;l=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?it(c.to,n)>=0:it(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?it(c.from,r)<=0:it(c.from,r)<0)))return!0}}}function Qt(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=qt(e);)e=t.find(1,!0).line;return e}function Jt(e){for(var t,n;t=qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Xe(e,t),r=Qt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!nn(e,r))return t;for(;n=qt(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var sn=function(e,t,n){this.text=e,Bt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Bt(e,n);var o=r?r(e):1;o!=e.height&&Je(e,o)}function un(e){e.parent=null,Ht(e)}sn.prototype.lineNo=function(){return et(this)},we(sn);var fn={},dn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=P("span",null,null,s?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=gn,Ae(e.display.measure)&&(a=de(i,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],xn(i,r,vt(e,i,t!=e.display.externalMeasured&&et(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=D(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=D(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function mn(e){var t=M("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,o,i,s){if(t){var c,u=e.splitSpaces?vn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){c=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(u.slice(p,p+m));a&&l<9?c.appendChild(M("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(M("span",q(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(M("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&l<9?c.appendChild(M("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&l<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||o||d||i||s){var x=n||"";r&&(x+=r),o&&(x+=o);var w=M("span",[c],x,i);if(s)for(var O in s)s.hasOwnProperty(O)&&"style"!=O&&"class"!=O&&w.setAttribute(O,s[O]);return e.content.appendChild(w)}e.content.appendChild(c)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;oc&&f.from<=c);d++);if(f.to>=u)return e(n,r,o,i,a,l,s);e(n,r.slice(0,f.to-c),o,i,null,l,s),i=null,r=r.slice(f.to-c),c=f.to}}}function bn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,l,s,c,u,f,d,p=o.length,h=0,m=1,g="",v=0;;){if(v==h){s=c=u=l="",d=null,f=null,v=1/0;for(var y=[],b=void 0,x=0;xh||O.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,c=""),O.className&&(s+=" "+O.className),O.css&&(l=(l?l+";":"")+O.css),O.startStyle&&w.from==h&&(u+=" "+O.startStyle),O.endStyle&&w.to==v&&(b||(b=[])).push(O.endStyle,w.to),O.title&&((d||(d={})).title=O.title),O.attributes)for(var S in O.attributes)(d||(d={}))[S]=O.attributes[S];O.collapsed&&(!f||Gt(f.marker,O)<0)&&(f=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var k=0;k=p)break;for(var C=Math.min(p,v);;){if(g){var j=h+g.length;if(!f){var E=j>C?g.slice(0,C-h):g;t.addToken(t,E,a?a+s:s,u,h+E.length==v?c:"",l,d)}if(j>=C){g=g.slice(C-h),h=C;break}h=j,u=""}g=o.slice(i,i=n[m++]),a=pn(n[m++],t.cm.options)}}else for(var M=1;M2&&i.push((s.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Zn(e,t){var n=et(t=Qt(t)),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var o=r.built=hn(e,r);return r.text=o.pre,E(e.display.lineMeasure,o.pre),r}function Jn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=(i=s-l)-1,t>=s&&(a="right")),null!=o){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==s-l)for(;c=0&&(n=e[o]).left==n.right;o--);return n}function lr(e,t,n,r){var o,i=ir(t.map,n,r),s=i.node,c=i.start,u=i.end,f=i.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;c&&ie(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u0&&(f=r="right"),o=e.options.lineWrapping&&(p=s.getClientRects()).length>1?p["right"==r?p.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!c&&(!o||!o.left&&!o.right)){var h=s.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+Mr(e.display),top:h.top,bottom:h.bottom}:or}for(var m=o.top-t.rect.top,g=o.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function u(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var f=ue(l,s,c),d=ce,p=u(s,f,"before"==c);return null!=d&&(p.other=u(s,d,"before"!=c)),p}function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Mr(e.display)*t.ch);var r=Xe(e.doc,t.line),o=on(r)+Un(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function xr(e,t,n,r,o){var i=ot(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function wr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return xr(r.first,0,null,-1,-1);var o=tt(r,n),i=r.first+r.size-1;if(o>i)return xr(r.first+r.size-1,Xe(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,o);;){var l=_r(e,a,o,t,n),s=Kt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==o)return c;a=Xe(r,o=c.line)}}function Or(e,t,n,r){r-=hr(t);var o=t.text.length,i=le((function(t){return nr(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=le((function(t){return nr(e,n,t).top>r}),i,o)}}function Sr(e,t,n,r){return n||(n=tr(e,t)),Or(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function kr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function _r(e,t,n,r,o){o-=on(t);var i=tr(e,t),a=hr(t),l=0,s=t.text.length,c=!0,u=de(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?jr:Cr)(e,t,n,i,u,r,o);l=(c=1!=f.level)?f.from:f.to-1,s=c?f.to:f.from-1}var d,p,h=null,m=null,g=le((function(t){var n=nr(e,i,t);return n.top+=a,n.bottom+=a,!!kr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)}),l,s),v=!1;if(m){var y=r-m.left=x.bottom?1:0}return xr(n,g=ae(t.text,g,1),p,v,r-d)}function Cr(e,t,n,r,o,i,a){var l=le((function(l){var s=o[l],c=1!=s.level;return kr(yr(e,ot(n,c?s.to:s.from,c?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),s=o[l];if(l>0){var c=1!=s.level,u=yr(e,ot(n,c?s.from:s.to,c?"after":"before"),"line",t,r);kr(u,i,a,!0)&&u.top>a&&(s=o[l-1])}return s}function jr(e,t,n,r,o,i,a){var l=Or(e,t,r,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||p.to<=s)){var h=nr(e,r,1!=p.level?Math.min(c,p.to)-1:Math.max(s,p.from)).right,m=hm)&&(u=p,f=m)}}return u||(u=o[o.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Er(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(M("br"));rr.appendChild(document.createTextNode("x"))}E(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function Mr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");E(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Pr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=i.offsetLeft+i.clientLeft+o,r[l]=i.clientWidth}return{fixedPos:Tr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Tr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ar(e){var t=Er(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(o){if(nn(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(s=Xe(e.doc,c.line).text).length==c.ch){var u=z(s,s.length,e.options.tabSize)-s.length;c=ot(c.line,Math.max(0,Math.round((i-Yn(e.display).left)/Mr(e.display))-u))}return c}function Ir(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Mt&&en(e.doc,t)o.viewFrom?zr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)zr(e);else if(t<=o.viewFrom){var i=Fr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):zr(e)}else if(n>=o.viewTo){var a=Fr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):zr(e)}else{var l=Fr(e,t,t,-1),s=Fr(e,n,n+r,1);l&&s?(o.view=o.view.slice(0,l.index).concat(On(e,l.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):zr(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=r.viewTo)){var i=r.view[Ir(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==W(a,n)&&a.push(n)}}}function zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fr(e,t,n,r){var o,i=Ir(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;en(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=On(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=On(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Qr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Xr(e))}function Kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Qr(e))}),100)}function Xr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),$r(e))}function Qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Je(o.line,s),Jr(o.line),o.rest))for(var p=0;pe.display.sizerWidth){var h=Math.ceil(c/Mr(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function Jr(e){if(e.widgets)for(var t=0;t=a&&(i=tt(t,on(Xe(t,s))-e.wrapper.clientHeight),a=s)}return{from:i,to:Math.max(a,i+1)}}function to(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!h){var i=M("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Un(e.display))+"px;\n height: "+(t.bottom-t.top+$n(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function no(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,l=yr(e,t),s=n&&n!=t?yr(e,n):l,c=oo(e,o={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(fo(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(ho(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function ro(e,t){var n=oo(e,t);null!=n.scrollTop&&fo(e,n.scrollTop),null!=n.scrollLeft&&ho(e,n.scrollLeft)}function oo(e,t){var n=e.display,r=Er(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Kn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+Gn(n),s=t.topl-r;if(t.topo+i){var u=Math.min(t.top,(c?l:t.bottom)-i);u!=o&&(a.scrollTop=u)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=qn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function io(e,t){null!=t&&(co(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ao(e){co(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function lo(e,t,n){null==t&&null==n||co(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function so(e,t){co(e),e.curOp.scrollToPos=t}function co(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,uo(e,br(e,t.from),br(e,t.to),t.margin))}function uo(e,t,n,r){var o=oo(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});lo(e,o.scrollLeft,o.scrollTop)}function fo(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vo(e,{top:t}),po(e,t,!0),n&&Vo(e),Io(e,100))}function po(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ho(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,$o(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mo(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+$n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var go=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};go.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},go.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},go.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},go.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},go.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},go.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vo=function(){};function yo(e,t){t||(t=mo(e));var n=e.display.barWidth,r=e.display.barHeight;bo(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),bo(e,mo(e)),n=e.display.barWidth,r=e.display.barHeight}function bo(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};var xo={native:go,null:vo};function wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xo[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?ho(e,t):fo(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Oo=0;function So(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo,markArrays:null},kn(e.curOp)}function ko(e){var t=e.curOp;t&&Cn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Lo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function jo(e){e.updatedDisplay=e.mustUpdate&&Ho(e.cm,e.update)}function Eo(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=mo(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Jn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+$n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Mo(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,l=i.text.length>e.options.maxHighlightLength?Ye(t.mode,r.state):null,s=gt(e,i,r,!0);l&&(r.state=l),i.styles=s.styles;var c=i.styleClasses,u=s.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!f&&dn)return Io(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&To(e,(function(){for(var t=0;t