(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(412)},function(e,t,n){e.exports=n(422)()},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return T}),n.d(t,"b",function(){return Le}),n.d(t,"c",function(){return ge}),n.d(t,"d",function(){return Ge}),n.d(t,"e",function(){return ee}),n.d(t,"f",function(){return tt}),n.d(t,"g",function(){return M}),n.d(t,"h",function(){return Vt}),n.d(t,"i",function(){return Et}),n.d(t,"j",function(){return Pt}),n.d(t,"k",function(){return Ut}),n.d(t,"l",function(){return G}),n.d(t,"m",function(){return Ve}),n.d(t,"n",function(){return dt}),n.d(t,"o",function(){return se});var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t2&&$("box");var n=W(t);return new xe(e,Y(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&$("array");var n=W(t);return function(e,t,n,r){void 0===n&&(n="ObservableArray@"+d());void 0===r&&(r=!1);var o=new St(n,t,r);i=o.values,a=T,s=o,Object.defineProperty(i,a,{enumerable:!1,writable:!1,configurable:!0,value:s});var i,a,s;var u=new Proxy(o.values,kt);if(o.proxy=u,e&&e.length){var l=be(!0);o.spliceWithArray(0,0,e),we(l)}return u}(e,Y(n),n.name)},map:function(e,t){arguments.length>2&&$("map");var n=W(t);return new Dt(e,Y(n),n.name)},set:function(e,t){arguments.length>2&&$("set");var n=W(t);return new Rt(e,Y(n),n.name)},object:function(e,t,n){"string"===typeof arguments[1]&&$("object");var r=W(n);if(!1===r.proxy)return nt({},e,t,r);var o=rt(r),i=function(e){var t=new Proxy(e,mt);return e[T].proxy=t,t}(nt({},void 0,void 0,r));return ot(i,e,t,o),i},ref:q,shallow:H,deep:U,struct:V},G=function(e,t,n){if("string"===typeof arguments[1]||"symbol"===typeof arguments[1])return U.apply(null,arguments);if(ut(e))return e;var r=g(e)?G.object(e,t,n):Array.isArray(e)?G.array(e,t):x(e)?G.map(e,t):_(e)?G.set(e,t):e;if(r!==e)return r;p(!1)};function $(e){p("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(K).forEach(function(e){return G[e]=K[e]});var X,Z,Q=N(!1,function(e,t,n,r,o){var a=n.get,s=n.set,u=o[0]||{};Ft(e).addComputedProp(e,t,i({get:a,set:s,context:e},u))}),J=Q({equals:j.structural}),ee=function(e,t,n){if("string"===typeof t)return Q.apply(null,arguments);if(null!==e&&"object"===typeof e&&1===arguments.length)return Q.apply(null,arguments);var r="object"===typeof t?t:{};return r.get=e,r.set="function"===typeof t?t:r.set,r.name=r.name||e.name||"",new ke(r)};ee.struct=J,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(X||(X={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Z||(Z={}));var te=function(){return function(e){this.cause=e}}();function ne(e){return e instanceof te}function re(e){switch(e.dependenciesState){case X.UP_TO_DATE:return!1;case X.NOT_TRACKING:case X.STALE:return!0;case X.POSSIBLY_STALE:for(var t=ce(!0),n=ue(),r=e.observing,o=r.length,i=0;i0;je.computationDepth>0&&t&&p(!1),je.allowStateChanges||!t&&"strict"!==je.enforceActions||p(!1)}function ie(e,t,n){var r=ce(!0);de(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++je.runId;var o,i=je.trackingDerivation;if(je.trackingDerivation=e,!0===je.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(a){o=new te(a)}return je.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=X.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){var s=t[i];0===s.diffValue&&Pe(s,e),s.diffValue=0}for(;o--;){var s=n[o];1===s.diffValue&&(s.diffValue=0,De(s,e))}r!==X.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),fe(r),o}function ae(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Pe(t[n],e);e.dependenciesState=X.NOT_TRACKING}function se(e){var t=ue();try{return e()}finally{le(t)}}function ue(){var e=je.trackingDerivation;return je.trackingDerivation=null,e}function le(e){je.trackingDerivation=e}function ce(e){var t=je.allowStateReads;return je.allowStateReads=e,t}function fe(e){je.allowStateReads=e}function de(e){if(e.dependenciesState!==X.UP_TO_DATE){e.dependenciesState=X.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=X.UP_TO_DATE}}var pe=0,he=1,ye=Object.getOwnPropertyDescriptor(function(){},"name");ye&&ye.configurable;function me(e,t,n){var r=function(){return ve(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function ve(e,t,n,r){var o=function(e,t,n){var r=!1,o=0;var i=ue();Re();var a=be(!0),s=ce(!0),u={prevDerivation:i,prevAllowStateChanges:a,prevAllowStateReads:s,notifySpy:r,startTime:o,actionId:he++,parentActionId:pe};return pe=u.actionId,u}();try{return t.apply(n,r)}catch(i){throw o.error=i,i}finally{!function(e){pe!==e.actionId&&p("invalid action stack. did you forget to finish an action?");pe=e.parentActionId,void 0!==e.error&&(je.suppressReactionErrors=!0);we(e.prevAllowStateChanges),fe(e.prevAllowStateReads),Ie(),le(e.prevDerivation),e.notifySpy,0;je.suppressReactionErrors=!1}(o)}}function ge(e,t){var n,r=be(e);try{n=t()}finally{we(r)}return n}function be(e){var t=je.allowStateChanges;return je.allowStateChanges=e,t}function we(e){je.allowStateChanges=e}var xe=function(e){function t(t,n,r,o,i){void 0===r&&(r="ObservableValue@"+d()),void 0===o&&(o=!0),void 0===i&&(i=j.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),a}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==je.UNCHANGED){0,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(oe(this),vt(this)){var t=bt(this,{object:this,type:"update",newValue:e});if(!t)return je.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?je.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),wt(this)&&_t(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return gt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),xt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return O(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(C),_e=w("ObservableValue",xe),ke=function(){function e(e){this.dependenciesState=X.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=X.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new te(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,h(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+d(),e.set&&(this.setter=me(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?j.structural:j.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==X.UP_TO_DATE)return;e.lowestObserverState=X.POSSIBLY_STALE,e.observers.forEach(function(t){t.dependenciesState===X.UP_TO_DATE&&(t.dependenciesState=X.POSSIBLY_STALE,t.isTracing!==Z.NONE&&Fe(t,e),t.onBecomeStale())})}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(e){return e()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(e){return e()})},e.prototype.get=function(){this.isComputing&&p("Cycle detected in computation "+this.name+": "+this.derivation),0!==je.inBatch||0!==this.observers.size||this.keepAlive?(Ne(this),re(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===X.STALE)return;e.lowestObserverState=X.STALE,e.observers.forEach(function(t){t.dependenciesState===X.POSSIBLY_STALE?t.dependenciesState=X.STALE:t.dependenciesState===X.UP_TO_DATE&&(e.lowestObserverState=X.UP_TO_DATE)})}(this)):re(this)&&(this.warnAboutUntrackedRead(),Re(),this.value=this.computeValue(!1),Ie());var e=this.value;if(ne(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(ne(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){h(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else h(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===X.NOT_TRACKING,n=this.computeValue(!0),r=t||ne(e)||ne(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,je.computationDepth++,e)t=ie(this,this.derivation,this.scope);else if(!0===je.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new te(n)}return je.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ae(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return Xe(function(){var i=n.get();if(!r||t){var a=ue();e({type:"update",object:n,newValue:i,oldValue:o}),le(a)}r=!1,o=i})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return O(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Se=w("ComputedValue",ke),Oe=function(){return function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}}(),Te={};function Ce(){return"undefined"!==typeof window?window:"undefined"!==typeof r?r:"undefined"!==typeof self?self:Te}var Ee=!0,Me=!1,je=function(){var e=Ce();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ee=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Oe).version&&(Ee=!1),Ee?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Oe):(setTimeout(function(){Me||p("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Oe)}();function De(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Pe(e,t){e.observers.delete(t),0===e.observers.size&&Ae(e)}function Ae(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,je.pendingUnobservations.push(e))}function Re(){je.inBatch++}function Ie(){if(0===--je.inBatch){We();for(var e=je.pendingUnobservations,t=0;t0&&Ae(e),!1)}function Fe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Z.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name);t.dependencies&&t.dependencies.forEach(function(t){return e(t,n,r+1)})}((r=e,it(Ht(r,o))),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ke?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r,o}var Le=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+d()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=X.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,je.pendingReactions.push(this),We())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Re(),this._isScheduled=!1,re(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}Ie()}},e.prototype.track=function(e){if(!this.isDisposed){Re();0,this._isRunning=!0;var t=ie(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ae(this),ne(t)&&this.reportExceptionInDerivation(t.cause),Ie()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(je.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";je.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),je.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Re(),ae(this),Ie()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[T]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t0||je.isRunningReactions||ze(Ue)}function Ue(){je.isRunningReactions=!0;for(var e=je.pendingReactions,t=0;e.length>0;){++t===Be&&(console.error("Reaction doesn't converge to a stable state after "+Be+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",e):2===arguments.length&&"function"===typeof t?me(e,t):1===arguments.length&&"string"===typeof e?Ke(e):!0!==r?Ke(t).apply(null,arguments):void b(e,t,me(e.name||t,n.value,this))};function $e(e,t,n){b(e,t,me(t,n.bind(e)))}function Xe(e,t){void 0===t&&(t=f);var n,r=t&&t.name||e.name||"Autorun@"+d();if(!t.scheduler&&!t.delay)n=new Le(r,function(){this.track(a)},t.onError,t.requiresObservable);else{var o=Qe(t),i=!1;n=new Le(r,function(){i||(i=!0,o(function(){i=!1,n.isDisposed||n.track(a)}))},t.onError,t.requiresObservable)}function a(){e(n)}return n.schedule(),n.getDisposer()}Ge.bound=function(e,t,n,r){return!0===r?($e(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return $e(this,t,n.value||n.initializer.call(this)),this[t]},set:Ye}:{enumerable:!1,configurable:!0,set:function(e){$e(this,t,e)},get:function(){}}};var Ze=function(e){return e()};function Qe(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Ze}function Je(e,t,n){return et("onBecomeUnobserved",e,t,n)}function et(e,t,n,r){var o="function"===typeof r?Ht(t,n):Ht(t),i="function"===typeof r?r:n,a=e+"Listeners";return o[a]?o[a].add(i):o[a]=new Set([i]),"function"!==typeof o[e]?p(!1):function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}function tt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.reactionScheduler,a=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((je.pendingReactions.length||je.inBatch||je.isRunningReactions)&&p("isolateGlobalState should be called before MobX is running any reactions"),Me=!0,Ee&&(0===--Ce().__mobxInstanceCount&&(Ce().__mobxGlobals=void 0),je=new Oe)),void 0!==t){var u=void 0;switch(t){case!0:case"observed":u=!0;break;case!1:case"never":u=!1;break;case"strict":case"always":u="strict";break;default:p("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}je.enforceActions=u,je.allowStateChanges=!0!==u&&"strict"!==u}void 0!==n&&(je.computedRequiresReaction=!!n),void 0!==a&&(je.reactionRequiresObservable=!!a),void 0!==s&&(je.observableRequiresReaction=!!s,je.allowStateReads=!je.observableRequiresReaction),void 0!==r&&(je.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),je.disableErrorBoundaries=!!o),i&&qe(i)}function nt(e,t,n,r){var o=rt(r=W(r));return I(e),Ft(e,r.name,o.enhancer),t&&ot(e,t,n,o),e}function rt(e){return e.defaultDecorator||(!1===e.deep?q:U)}function ot(e,t,n,r){var o,i;Re();try{var s=k(t);try{for(var u=a(s),l=u.next();!l.done;l=u.next()){var c=l.value,f=Object.getOwnPropertyDescriptor(t,c);0;var d=(n&&c in n?n[c]:f.get?Q:r)(e,c,f,!0);d&&Object.defineProperty(e,c,d)}}catch(p){o={error:p}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}finally{Ie()}}function it(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=function(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}(e.observing).map(it)),t}function at(){this.message="FLOW_CANCELLED"}function st(e,t){return null!==e&&void 0!==e&&(void 0!==t?!!Ut(e)&&e[T].values.has(t):Ut(e)||!!e[T]||E(e)||He(e)||Se(e))}function ut(e){return 1!==arguments.length&&p(!1),st(e)}function lt(e){return Ut(e)?e[T].getKeys():Pt(e)?Array.from(e.keys()):It(e)?Array.from(e.keys()):Et(e)?e.map(function(e,t){return t}):p(!1)}at.prototype=Object.create(Error.prototype);var ct={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function ft(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function dt(e,t){var n;return"boolean"===typeof t&&(t={detectCycles:t}),t||(t=ct),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),function e(t,n,r){if(!n.recurseEverything&&!ut(t))return t;if("object"!==typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(_e(t))return e(t.get(),n,r);if(ut(t)&<(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Et(t)||Array.isArray(t)){var o=ft(r,t,[],n),i=t.map(function(t){return e(t,n,r)});o.length=i.length;for(var a=0,s=i.length;a=0,"Not a valid index: '"+n+"'"),Re(),n>=t.length&&(t.length=n+1),t[n]=r,Ie()}else{Re();var i=n;try{for(var a in i)e(t,a,i[a])}finally{Ie()}}}(e,t,n),!0)},deleteProperty:function(e,t){return!!yt(t)&&(ht(e).remove(t),!0)},ownKeys:function(e){return ht(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return p("Dynamic observable objects cannot be frozen"),!1}};function vt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function gt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),y(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function bt(e,t){var n=ue();try{for(var r=u(e.interceptors||[]),o=0,i=r.length;o0}function xt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),y(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function _t(e,t){var n=ue(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return gt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),xt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!==typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;ro?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=c),vt(this)){var i=bt(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!i)return c;t=i.removedCount,n=i.added}n=0===n.length?n:n.map(function(e){return r.enhancer(e,void 0)});var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&!1,o=wt(this),i=o||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),o&&_t(this,i)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&!1,o=wt(this),i=o||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),o&&_t(this,i)},e}(),Ot={intercept:function(e){return this[T].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[T].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[T];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(e){var t=this[T];if(t){if(e=0&&r++}t=Gt(t);n=Gt(n);var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var l=t.constructor,c=n.constructor;if(l!==c&&!("function"===typeof l&&l instanceof l&&"function"===typeof c&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);o=o||[];i=i||[];var f=o.length;for(;f--;)if(o[f]===t)return i[f]===n;o.push(t);i.push(n);if(u){if((f=t.length)!==n.length)return!1;for(;f--;)if(!e(t[f],n[f],r-1,o,i))return!1}else{var d=Object.keys(t),p=void 0;if(f=d.length,Object.keys(n).length!==f)return!1;for(;f--;)if(p=d[f],!$t(n,p)||!e(t[p],n[p],r-1,o,i))return!1}o.pop();i.pop();return!0}(e,t,n)}function Gt(e){return Et(e)?e.slice():x(e)||Pt(e)?Array.from(e.entries()):_(e)||It(e)?Array.from(e.entries()):e}function $t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xt(e){return e[Symbol.iterator]=Zt,e}function Zt(){return this}if("undefined"===typeof Proxy||"undefined"===typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ve,extras:{getDebugName:Vt},$mobx:T})}).call(this,n(141),n(77))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TableRowColumn=t.TableRow=t.TableHeaderColumn=t.TableHeader=t.TableFooter=t.TableBody=t.Table=void 0;var r=c(n(608)),o=c(n(224)),i=c(n(225)),a=c(n(226)),s=c(n(150)),u=c(n(227)),l=c(n(128));function c(e){return e&&e.__esModule?e:{default:e}}t.Table=r.default,t.TableBody=o.default,t.TableFooter=i.default,t.TableHeader=a.default,t.TableHeaderColumn=s.default,t.TableRow=u.default,t.TableRowColumn=l.default,t.default=r.default},function(e,t,n){"use strict";function r(e,t){for(var n=0;n6?u-6:0),c=6;c>",s=s||o,null==n[o]){if(t){var r=null===n[o]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+i+"`, but its value is `"+r+"`.")}return null}return e.apply(void 0,[n,o,i,a,s].concat(l))})}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function P(e){var t=s(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function A(e,t){return D(function(n,o,i,a,s){return Object(r.o)(function(){if(e&&P(n[o])===t.toLowerCase())return null;var a;switch(t){case"Array":a=r.i;break;case"Object":a=r.k;break;case"Map":a=r.j;break;default:throw new Error("Unexpected mobxType: ".concat(t))}var u=n[o];if(!a(u)){var l=function(e){var t=P(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(u),c=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function R(e,t){return D(function(n,o,i,a,s){for(var u=arguments.length,l=new Array(u>5?u-5:0),c=5;c2?r-2:0),i=2;i2?r-2:0),i=2;i",a=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;oe(this,te,!1),oe(this,ne,!1);var s=e.bind(this),u=!1,l=new r.b("".concat(i,"#").concat(a,".render()"),function(){if(!u&&(u=!0,"function"===typeof t.componentWillReact&&t.componentWillReact(),!0!==t[$])){var e=!0;try{oe(t,ne,!0),t[te]||o.Component.prototype.forceUpdate.call(t),e=!1}finally{oe(t,ne,!1),e&&l.dispose()}}});return l.reactComponent=this,n[G]=l,this.render=n,n.call(this)}.call(this,m)},n}var pe=de(function(e){var t=e.children,n=e.inject,r=e.render,o=t||r;if("undefined"===typeof o)return null;if(!n)return o();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var a=K(n)(o);return i.a.createElement(a,null)});pe.displayName="Observer";var he=function(e,t,n,r,o){var i="children"===t?"render":"children";return"function"===typeof e[t]&&"function"===typeof e[i]?new Error("Invalid prop,do not use children and render in the same time in`"+n):"function"!==typeof e[t]&&"function"!==typeof e[i]?new Error("Invalid prop `"+o+"` of type `"+s(e[t])+"` supplied to `"+n+"`, expected `function`."):void 0};function ye(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function me(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function ve(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}pe.propTypes={render:he,children:he},ye.__suppressDeprecationWarning=!0,me.__suppressDeprecationWarning=!0,ve.__suppressDeprecationWarning=!0;var ge={children:!0,key:!0,ref:!0},be=function(e){function t(e,n){var r;return u(this,t),(r=y(this,p(t).call(this,e,n))).state={},we(e,r.state),r}return d(t,o["Component"]),c(t,[{key:"render",value:function(){return o.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={};return we(this.context.mobxStores,e),we(this.props,e),{mobxStores:e}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!e)return null;if(!t)return e;if(Object.keys(e).filter(xe).length!==Object.keys(t).filter(xe).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var n in e)xe(n)&&t[n]!==e[n]&&console.warn("MobX Provider: Provided store '"+n+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return e}}]),t}();function we(e,t){if(e)for(var n in e)xe(n)&&(t[n]=e[n])}function xe(e){return!ge[e]&&"suppressChangedStoreWarning"!==e}be.contextTypes={mobxStores:I},be.childContextTypes={mobxStores:I.isRequired},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?o="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=ye,t.componentWillReceiveProps=me),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ve;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}}(be);L("disposeOnUnmount");if(!o.Component)throw new Error("mobx-react requires React to be available");if(!r.m)throw new Error("mobx-react requires mobx to be available");"function"===typeof a.unstable_batchedUpdates&&Object(r.f)({reactionScheduler:a.unstable_batchedUpdates});if("object"===("undefined"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":s(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var _e={spy:r.m,extras:{getDebugName:r.h}},ke={renderReporter:ee,componentByNodeRegistry:J,componentByNodeRegistery:J,trackComponents:function(){if("undefined"===typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");X||(X=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(ke,_e)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(270),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)})}}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(535),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){var r=n(94),o=n(46),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==u}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(40),o=n(39);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(r.a)(function(t){return e(n,t)});default:return Object(o.a)(n)&&Object(o.a)(i)?t:Object(o.a)(n)?Object(r.a)(function(t){return e(t,i)}):Object(o.a)(i)?Object(r.a)(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var l,w="",S=!1,O=["{","}"];(p(n)&&(S=!0,O=["[","]"]),k(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),x(n)&&(w=" "+Date.prototype.toUTCString.call(n)),_(n)&&(w=" "+f(n)),0!==a.length||S&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=S?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,O)):O[0]+w+O[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),C(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function y(e){return null===e}function m(e){return"number"===typeof e}function v(e){return"string"===typeof e}function g(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"===typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===S(e)}function _(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function k(e){return"function"===typeof e}function S(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(g(i)&&(i=Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_API_URL:"https://dev-api.ego-ids.io",REACT_APP_AUTH0_CALLBACK_URL:"https://dev.ego-ids.io/callback",REACT_APP_AUTH0_CLIENT_ID:"tfxeWEoxgDidyMqBH3srfw0_QH20BK6K",REACT_APP_PARTNER_LOGO_FILE:"acuitas.svg"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=v,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=g,t.isRegExp=b,t.isObject=w,t.isDate=x,t.isError=_,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(510);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(511),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var E="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(E&&e[E]){var t;if("function"!==typeof(t=e[E]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,E,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i=43)}}).catch(function(){return!1})}(e).then(function(e){return d=e})}function g(e){var t=p[e.name],n={};n.promise=new a(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function b(e){var t=p[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function w(e,t){var n=p[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function x(e,t){return new a(function(n,r){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);g(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),b(e)}})}function _(e){return x(e,!1)}function k(e){return x(e,!0)}function S(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function O(e){var t=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),k(e)}).then(function(){return function(e){g(e);for(var t=p[e.name],n=t.forages,r=0;r>4,c[u++]=(15&r)<<4|o>>2,c[u++]=(3&o)<<6|63&i;return l}function $(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=j[(3&n[t])<<4|n[t+1]>>4],r+=j[(15&n[t+1])<<2|n[t+2]>>6],r+=j[63&n[t+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}var X={serialize:function(e,t){var n="";if(e&&(n=K.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===K.call(e.buffer))){var r,o=A;e instanceof ArrayBuffer?(r=e,o+=I):(r=e.buffer,"[object Int8Array]"===n?o+=F:"[object Uint8Array]"===n?o+=L:"[object Uint8ClampedArray]"===n?o+=B:"[object Int16Array]"===n?o+=z:"[object Uint16Array]"===n?o+=U:"[object Int32Array]"===n?o+=W:"[object Uint32Array]"===n?o+=H:"[object Float32Array]"===n?o+=q:"[object Float64Array]"===n?o+=V:t(new Error("Failed to get type for BinaryArray"))),t(o+$(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n=D+e.type+"~"+$(this.result);t(A+N+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}},deserialize:function(e){if(e.substring(0,R)!==A)return JSON.parse(e);var t,n=e.substring(Y),r=e.substring(R,Y);if(r===N&&P.test(n)){var o=n.match(P);t=o[1],n=n.substring(o[0].length)}var a=G(n);switch(r){case I:return a;case N:return i([a],{type:t});case F:return new Int8Array(a);case L:return new Uint8Array(a);case B:return new Uint8ClampedArray(a);case z:return new Int16Array(a);case U:return new Uint16Array(a);case W:return new Int32Array(a);case H:return new Uint32Array(a);case q:return new Float32Array(a);case V:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:G,bufferToString:$};function Z(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Q(e,t,n,r,o,i){e.executeSql(n,r,o,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,s){s.rows.length?i(e,a):Z(e,t,function(){e.executeSql(n,r,o,i)},i)},i):i(e,a)},i)}var J={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!==typeof e[r]?e[r].toString():e[r];var o=new a(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return r(o)}n.db.transaction(function(o){Z(o,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=X,o},_support:"function"===typeof openDatabase,iterate:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){Q(n,o,"SELECT * FROM "+o.storeName,[],function(n,r){for(var i=r.rows,a=i.length,s=0;s0)return void a(e.apply(i,[t,u,r,o-1]));s(n)}})})}).catch(s)});return s(u,r),u}.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=l(e);var r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){Q(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},clear:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Q(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},length:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Q(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return s(n,e),n},key:function(e,t){var n=this,r=new a(function(t,r){n.ready().then(function(){var o=n._dbInfo;o.db.transaction(function(n){Q(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return s(r,t),r},keys:function(e){var t=this,n=new a(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){Q(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],o=0;o '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var o=[],i=0;i0}var ne={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=ee(e,this._defaultConfig),te()?(this._dbInfo=t,t.serializer=X,a.resolve()):a.reject()},_support:function(){try{return"undefined"!==typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return s(n,e),n},length:function(e){var t=this.keys().then(function(e){return e.length});return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(o){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return s(r,t),r},keys:function(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):a.reject("Invalid arguments"),t),r}},re=function(e,t){for(var n=e.length,r=0;r0?1:-1},j=function(e){return g()(e)&&e.indexOf("%")===e.length-1},D=function(e){return E()(e)&&!T()(e)},P=function(e){return D(e)||g()(e)},A=0,R=function(e){var t=++A;return"".concat(e||"").concat(t)},I=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!D(e)&&!g()(e))return r;if(j(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return T()(n)&&(n=r),o&&n>t&&(n=t),n},N=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},F=function(e,t){return D(e)&&D(t)?function(n){return e+n*(t-e)}:function(){return t}},L=function(e,t,n){return e&&e.length?e.find(function(e){return e&&("function"===typeof t?t(e):S()(e,t))===n}):null};function B(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var U={"aria-current":d.a.string,"aria-details":d.a.any,"aria-disabled":d.a.any,"aria-hidden":d.a.any,"aria-invalid":d.a.any,"aria-keyshortcuts":d.a.any,"aria-label":d.a.any,"aria-roledescription":d.a.any,"aria-autocomplete":d.a.any,"aria-checked":d.a.any,"aria-expanded":d.a.any,"aria-haspopup":d.a.any,"aria-level":d.a.any,"aria-modal":d.a.any,"aria-multiline":d.a.any,"aria-multiselectable":d.a.any,"aria-orientation":d.a.any,"aria-placeholder":d.a.any,"aria-pressed":d.a.any,"aria-readonly":d.a.any,"aria-required":d.a.any,"aria-selected":d.a.any,"aria-sort":d.a.any,"aria-valuemax":d.a.any,"aria-valuemin":d.a.any,"aria-valuenow":d.a.any,"aria-valuetext":d.a.any,"aria-atomic":d.a.any,"aria-busy":d.a.any,"aria-live":d.a.any,"aria-relevant":d.a.any,"aria-dropeffect":d.a.any,"aria-grabbed":d.a.any,"aria-activedescendant":d.a.any,"aria-colcount":d.a.any,"aria-colindex":d.a.any,"aria-colspan":d.a.any,"aria-controls":d.a.any,"aria-describedby":d.a.any,"aria-errormessage":d.a.any,"aria-flowto":d.a.any,"aria-labelledby":d.a.any,"aria-owns":d.a.any,"aria-posinset":d.a.any,"aria-rowcount":d.a.any,"aria-rowindex":d.a.any,"aria-rowspan":d.a.any,"aria-setsize":d.a.any,alignmentBaseline:d.a.string,angle:d.a.number,baselineShift:d.a.string,clip:d.a.string,clipPath:d.a.string,clipRule:d.a.string,color:d.a.string,colorInterpolation:d.a.string,colorInterpolationFilters:d.a.string,colorProfile:d.a.string,colorRendering:d.a.string,cursor:d.a.string,direction:d.a.oneOf(["ltr","rtl","inherit"]),display:d.a.string,dominantBaseline:d.a.string,enableBackground:d.a.string,fill:d.a.string,fillOpacity:d.a.oneOfType([d.a.string,d.a.number]),fillRule:d.a.oneOf(["nonzero","evenodd","inherit"]),filter:d.a.string,floodColor:d.a.string,floodOpacity:d.a.oneOfType([d.a.string,d.a.number]),font:d.a.string,fontFamily:d.a.string,fontSize:d.a.oneOfType([d.a.number,d.a.string]),fontSizeAdjust:d.a.oneOfType([d.a.number,d.a.string]),fontStretch:d.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:d.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:d.a.oneOf(["normal","small-caps","inherit"]),fontWeight:d.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:d.a.string,glyphOrientationVertical:d.a.string,imageRendering:d.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:d.a.oneOfType([d.a.number,d.a.string]),letterSpacing:d.a.oneOfType([d.a.number,d.a.string]),lightingColor:d.a.string,lineHeight:d.a.oneOfType([d.a.number,d.a.string]),markerEnd:d.a.string,markerMid:d.a.string,markerStart:d.a.string,mask:d.a.string,opacity:d.a.oneOfType([d.a.number,d.a.string]),overflow:d.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:d.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:d.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:d.a.string,stopOpacity:d.a.oneOfType([d.a.number,d.a.string]),stroke:d.a.oneOfType([d.a.number,d.a.string]),strokeDasharray:d.a.string,strokeDashoffset:d.a.oneOfType([d.a.number,d.a.string]),strokeLinecap:d.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:d.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:d.a.oneOfType([d.a.number,d.a.string]),strokeOpacity:d.a.oneOfType([d.a.number,d.a.string]),strokeWidth:d.a.oneOfType([d.a.number,d.a.string]),textAnchor:d.a.oneOf(["start","middle","end","inherit"]),textDecoration:d.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:d.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:d.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:d.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:d.a.oneOfType([d.a.number,d.a.string]),writingMode:d.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:d.a.string,role:d.a.string,focusable:d.a.string,tabIndex:d.a.string,style:d.a.object,width:d.a.number,height:d.a.number,dx:d.a.number,dy:d.a.number,x:d.a.number,y:d.a.number,r:d.a.number,radius:d.a.oneOfType([d.a.number,d.a.array])},H={onClick:d.a.func,onMouseDown:d.a.func,onMouseUp:d.a.func,onMouseOver:d.a.func,onMouseMove:d.a.func,onMouseOut:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onTouchEnd:d.a.func,onTouchMove:d.a.func,onTouchStart:d.a.func,onTouchCancel:d.a.func},q={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},V=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],Y=["none"],K=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},G=function(e,t){var n=[],r=[];return r=_()(t)?t.map(function(e){return K(e)}):[K(t)],c.a.Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)}),n},$=function(e,t){var n=G(e,t);return n&&n[0]},X=function(e){if(!e||a()(e))return null;var t=c.a.isValidElement(e)?e.props:e;if(!w()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&U[r]&&(n||(n={}),n[r]=t[r]);return n},Z=function(e,t){return function(n){return e(t,n),null}},Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||a()(e))return null;var r=c.a.isValidElement(e)?e.props:e;if(!w()(r))return null;var o=null;for(var i in r)({}).hasOwnProperty.call(r,i)&&H[i]&&(o||(o={}),o[i]=t||(n?Z(r[i],r):r[i]));return o},J=function(e,t,n){return function(r){return e(t,n,r),null}},ee=function(e,t,n){if(!w()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&H[o]&&a()(e[o])&&(r||(r={}),r[o]=J(e[o],t,n));return r},te=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!D(n)||n<=0||!D(r)||r<=0)},ne=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},re=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],oe=function(e,t){if(m()(e)&&m()(t))return!0;if(!m()(e)&&!m()(t)){var n=e.props||{},r=n.children,o=W(n,["children"]),i=t.props||{},a=i.children,s=W(i,["children"]);return r&&a?B(o,s)&&ie(r,a):!r&&!a&&B(o,s)}return!1},ie=function e(t,n){if(t===n)return!0;if(l.Children.count(t)!==l.Children.count(n))return!1;var r=l.Children.count(t);if(0===r)return!0;if(1===r)return oe(_()(t)?t[0]:t,_()(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[K(e.type)]){var i=K(e.type),a=t[i],s=a.handler,u=a.once;if(u&&!r[i]||!u){var l=s(e,i,o);_()(l)?n=[n].concat(z(l)):n.push(l),r[i]=!0}}}),n},se=function(e){var t=e&&e.type;return t&&q[t]?q[t]:null},ue=function(e,t){var n=-1;return l.Children.forEach(t,function(t,r){t===e&&(n=r)}),n};function le(){return(le=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fe={width:d.a.number.isRequired,height:d.a.number.isRequired,viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),className:d.a.string,style:d.a.object,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node])};function de(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=ce(e,["children","width","height","viewBox","className","style"]),u=o||{width:n,height:r,x:0,y:0},l=h()("recharts-surface",i),f=X(s);return c.a.createElement("svg",le({},f,{className:l,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height),version:"1.1"}),t)}de.propTypes=fe;var pe=de,he=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),ye=2*he;var me={draw:function(e,t){var n=Math.sqrt(t/he);e.moveTo(n,0),e.arc(0,0,n,0,ye)}},ve={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()}},ge=Math.sqrt(1/3),be=2*ge,we={draw:function(e,t){var n=Math.sqrt(t/be),r=n*ge;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},xe={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},_e=Math.sin(he/10)/Math.sin(7*he/10),ke=Math.sin(ye/10)*_e,Se=-Math.cos(ye/10)*_e,Oe={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ke*n,o=Se*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=ye*i/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*o,u*r+s*o)}e.closePath()}},Te=Math.sqrt(3),Ce={draw:function(e,t){var n=-Math.sqrt(t/(3*Te));e.moveTo(0,2*n),e.lineTo(-Te*n,-n),e.lineTo(Te*n,-n),e.closePath()}},Ee=Math.sqrt(3)/2,Me=1/Math.sqrt(12),je=3*(Me/2+1),De={draw:function(e,t){var n=Math.sqrt(t/je),r=n/2,o=n*Me,i=r,a=n*Me+n,s=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,u),e.lineTo(-.5*r-Ee*o,Ee*r+-.5*o),e.lineTo(-.5*i-Ee*a,Ee*i+-.5*a),e.lineTo(-.5*s-Ee*u,Ee*s+-.5*u),e.lineTo(-.5*r+Ee*o,-.5*o-Ee*r),e.lineTo(-.5*i+Ee*a,-.5*a-Ee*i),e.lineTo(-.5*s+Ee*u,-.5*u-Ee*s),e.closePath()}},Pe=Math.PI,Ae=2*Pe,Re=Ae-1e-6;function Ie(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ne(){return new Ie}Ie.prototype=Ne.prototype={constructor:Ie,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,u=r-t,l=i-e,c=a-t,f=l*l+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(c*s-u*l)>1e-6&&o){var d=n-i,p=r-a,h=s*s+u*u,y=d*d+p*p,m=Math.sqrt(h),v=Math.sqrt(f),g=o*Math.tan((Pe-Math.acos((h+f-y)/(2*m*v)))/2),b=g/v,w=g/m;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+o+","+o+",0,0,"+ +(c*d>l*p)+","+(this._x1=e+w*s)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Ae+Ae),f>Re?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Pe)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Fe=Ne,Le=function(e){return function(){return e}};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return(We="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 Ue(){return(Ue=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,l=r.chartHeight;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0});e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0});return lt({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},function(){r&&r(o)})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,s=t.paylodUniqBy,u=t.payload,l=lt({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),{},i);return c.a.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(at,t)}(n,lt({},this.props,{payload:mt(s,u)})))}}])&&ft(n.prototype,r),o&&ft(n,o),t}();gt.displayName="Legend",gt.propTypes={content:d.a.oneOfType([d.a.element,d.a.func]),wrapperStyle:d.a.object,chartWidth:d.a.number,chartHeight:d.a.number,width:d.a.number,height:d.a.number,iconSize:d.a.number,iconType:d.a.oneOf(vt),layout:d.a.oneOf(["horizontal","vertical"]),align:d.a.oneOf(["center","left","right"]),verticalAlign:d.a.oneOf(["top","bottom","middle"]),margin:d.a.shape({top:d.a.number,left:d.a.number,bottom:d.a.number,right:d.a.number}),payload:d.a.arrayOf(d.a.shape({value:d.a.any,id:d.a.any,type:d.a.oneOf(V)})),paylodUniqBy:d.a.oneOfType([d.a.func,d.a.bool]),formatter:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onClick:d.a.func,onBBoxUpdate:d.a.func},gt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var bt=gt,wt=n(115),xt=n.n(wt),_t=n(87),kt=n.n(_t);function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;kt()(function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):kt()(r)})}function Ot(e){return(Ot="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 Tt(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ct(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=Tt(r),i=o[0],a=o.slice(1);return"number"===typeof i?void St(n.bind(null,a),i):(n(i),void St(n.bind(null,a)))}"object"===Ot(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var Et=n(364),Mt=n.n(Et);function jt(e){for(var t=1;t=0&&e<=1});var l,c,f=Ht(r,i),d=Ht(o,a),p=(l=r,c=i,function(e){var t=zt(Wt(l,c).map(function(e,t){return e*t}).slice(1)).concat([0]);return Ut(t,e)}),h=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=f(r)-n,a=p(r);if(Math.abs(i-n)<1e-4||a<1e-4)return d(r);r=(t=r-i/a)>1?1:t<0?0:t}return d(r)};return h.isStepper=!1,h},Vt=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return qt(r)}return"function"===typeof r?r:null},Yt=n(365),Kt=n.n(Yt);function Gt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,d=l||Object.keys(u);if("function"===typeof s||"spring"===s)return rn(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:s}),i]);var p=Lt(d,i,s),h=on({},f.style,u,{transition:p});return rn(e).concat([h,i,c]).filter(It)},[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Ct());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,u=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var f=r?an({},r,o):o,d=Lt(Object.keys(f),n,i);c.start([a,t,on({},f,{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,nn(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=l.Children.count(t),i=Ft(this.state.style);if("function"===typeof t)return t(i);if(!n||0===o)return t;var a=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(l.cloneElement)(e,on({},r,{style:on({},o,i),className:a}))};return 1===o?a(l.Children.only(t)):c.a.createElement("div",null,l.Children.map(t,function(e){return a(e)}))}}])&&sn(n.prototype,r),o&&sn(n,o),t}();dn.displayName="Animate",dn.propTypes={from:d.a.oneOfType([d.a.object,d.a.string]),to:d.a.oneOfType([d.a.object,d.a.string]),attributeName:d.a.string,duration:d.a.number,begin:d.a.number,easing:d.a.oneOfType([d.a.string,d.a.func]),steps:d.a.arrayOf(d.a.shape({duration:d.a.number.isRequired,style:d.a.object.isRequired,easing:d.a.oneOfType([d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),d.a.func]),properties:d.a.arrayOf("string"),onAnimationEnd:d.a.func})),children:d.a.oneOfType([d.a.node,d.a.func]),isActive:d.a.bool,canBegin:d.a.bool,onAnimationEnd:d.a.func,shouldReAnimate:d.a.bool,onAnimationStart:d.a.func,onAnimationReStart:d.a.func},dn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var pn=dn,hn=n(171);function yn(e){return(yn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(){return(mn=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 gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(E()(t.duration)&&t.duration>0?t.duration:0)},0):E()(n)?n:0},Sn=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;ic[t]+o?Math.max(f,c[t]):Math.max(d,c[t])},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$n(e,t)}(t,l["PureComponent"]),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,i=o.payload,s=o.isAnimationActive,l=o.animationDuration,f=o.animationEasing,d=o.filterNull,p=function(e,t){return!0===e?u()(t,Zn):a()(e)?u()(t,e):t}(o.paylodUniqBy,d&&i&&i.length?i.filter(function(e){return!m()(e.value)}):i),y=p&&p.length,v=this.props,g=v.content,b=v.viewBox,w=v.coordinate,x=v.position,_=v.active,k=qn({pointerEvents:"none",visibility:_&&y?"visible":"hidden",position:"absolute",top:0},v.wrapperStyle);if(x&&D(x.x)&&D(x.y))t=x.x,n=x.y;else{var S=this.state,O=S.boxWidth,T=S.boxHeight;O>0&&T>0&&w?(t=this.getTranslate({key:"x",tooltipDimension:O,viewBoxDimension:b.width}),n=this.getTranslate({key:"y",tooltipDimension:T,viewBoxDimension:b.height})):k.visibility="hidden"}k=qn({},Ft({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},k),s&&_&&(k=qn({},Ft({transition:"transform ".concat(l,"ms ").concat(f)}),{},k));var C=h()(Xn,(Vn(e={},"".concat(Xn,"-right"),D(t)&&w&&D(w.x)&&t>=w.x),Vn(e,"".concat(Xn,"-left"),D(t)&&w&&D(w.x)&&t=w.y),Vn(e,"".concat(Xn,"-top"),D(n)&&w&&D(w.y)&&n=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i},"")},fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||ne())return{width:0,height:0};var n="".concat(e),r=cr(t),o="".concat(n,"-").concat(r);if(sr.widthCache[o])return sr.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i));var a=function(e){for(var t=1;t2e3&&(sr.cacheCount=0,sr.widthCache={}),u}catch(l){return{width:0,height:0}}};function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hr(e){return(hr="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 yr(){return(yr=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 vr(e,t){for(var n=0;nt?1:e>=t?0:NaN},Pr=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Dr(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Ar=Pr(Dr),Rr=Ar.right,Ir=(Ar.left,Rr);var Nr=function(e){return null===e?NaN:+e},Fr=Array.prototype,Lr=(Fr.slice,Fr.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s=0?(i>=Br?10:i>=zr?5:i>=Wr?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Br?10:i>=zr?5:i>=Wr?2:1)}function qr(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Br?o*=10:i>=zr?o*=5:i>=Wr&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function Yr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Kr(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function Gr(){}function $r(e,t){var n=new Gr;if(e instanceof Gr)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?To(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?To(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=yo.exec(e))?new Eo(t[1],t[2],t[3],1):(t=mo.exec(e))?new Eo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vo.exec(e))?To(t[1],t[2],t[3],t[4]):(t=go.exec(e))?To(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=bo.exec(e))?Po(t[1],t[2]/100,t[3]/100,1):(t=wo.exec(e))?Po(t[1],t[2]/100,t[3]/100,t[4]):xo.hasOwnProperty(e)?Oo(xo[e]):"transparent"===e?new Eo(NaN,NaN,NaN,0):null}function Oo(e){return new Eo(e>>16&255,e>>8&255,255&e,1)}function To(e,t,n,r){return r<=0&&(e=t=n=NaN),new Eo(e,t,n,r)}function Co(e,t,n,r){return 1===arguments.length?((o=e)instanceof lo||(o=So(o)),o?new Eo((o=o.rgb()).r,o.g,o.b,o.opacity):new Eo):new Eo(e,t,n,null==r?1:r);var o}function Eo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Mo(){return"#"+Do(this.r)+Do(this.g)+Do(this.b)}function jo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Do(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Po(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ro(e,t,n,r)}function Ao(e){if(e instanceof Ro)return new Ro(e.h,e.s,e.l,e.opacity);if(e instanceof lo||(e=So(e)),!e)return new Ro;if(e instanceof Ro)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,u=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&u<1?0:a,new Ro(a,s,u,e.opacity)}function Ro(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Io(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function No(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}so(lo,So,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:_o,formatHex:_o,formatHsl:function(){return Ao(this).formatHsl()},formatRgb:ko,toString:ko}),so(Eo,Co,uo(lo,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Eo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Eo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mo,formatHex:Mo,formatRgb:jo,toString:jo})),so(Ro,function(e,t,n,r){return 1===arguments.length?Ao(e):new Ro(e,t,n,null==r?1:r)},uo(lo,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ro(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ro(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Eo(Io(e>=240?e-240:e+120,o,r),Io(e,o,r),Io(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Fo=function(e){return function(){return e}};function Lo(e,t){return function(n){return e+n*t}}function Bo(e){return 1===(e=+e)?zo:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Fo(isNaN(t)?n:t)}}function zo(e,t){var n=t-e;return n?Lo(e,n):Fo(isNaN(e)?t:e)}var Wo=function e(t){var n=Bo(t);function r(e,t){var r=n((e=Co(e)).r,(t=Co(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=zo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Uo(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=ri&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yo(n,r)})),i=Go.lastIndex;return ir&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function ri(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?oi:ri,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,u)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),Yo)))(n)))},f.domain=function(e){return arguments.length?(a=to.call(e,Qo),l===ei||(l=ni(a)),c()):a.slice()},f.range=function(e){return arguments.length?(s=no.call(e),c()):s.slice()},f.rangeRound=function(e){return s=no.call(e),u=Xo,c()},f.clamp=function(e){return arguments.length?(l=e?ni(a):ei,f):l!==ei},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function si(e,t){return ai()(e,t)}var ui=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function li(e){if(!(t=ui.exec(e)))throw new Error("invalid format: "+e);var t;return new ci({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 ci(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+""}li.prototype=ci.prototype,ci.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};var fi,di,pi,hi,yi=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},mi=function(e){return(e=yi(Math.abs(e)))?e[1]:NaN},vi=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e},gi=function(e,t){var n=yi(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},bi={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return gi(100*e,t)},r:gi,s:function(e,t){var n=yi(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(fi=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+yi(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},wi=function(e){return e},xi=Array.prototype.map,_i=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];di=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?wi:(t=xi.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?wi:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(xi.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=li(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,y=e.comma,m=e.precision,v=e.trim,g=e.type;"n"===g?(y=!0,g="g"):bi[g]||(void 0===m&&(m=12),v=!0,g="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===d?i:/[%p]/.test(g)?u:"",x=bi[g],_=/[defgprs%]/.test(g);function k(e){var o,i,u,d=b,k=w;if("c"===g)k=x(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),m),v&&(e=vi(e)),S&&0===+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:l:"-"===f||"("===f?"":f)+d,k=("s"===g?_i[8+fi/3]:"")+k+(S&&"("===f?")":""),_)for(o=-1,i=e.length;++o(u=e.charCodeAt(o))||u>57){k=(46===u?a+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o);break}}y&&!p&&(e=r(e,1/0));var O=d.length+e.length+k.length,T=O>1)+d+e+k+T.slice(O);break;default:e=T+d+e+k}return s(e)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=li(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(mi(t)/3))),o=Math.pow(10,-r),i=_i[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),pi=di.format,hi=di.formatPrefix;var ki=function(e,t,n,r){var o,i=qr(e,t,n);switch((r=li(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mi(t)/3)))-mi(Math.abs(e)))}(i,a))||(r.precision=o),hi(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mi(t)-mi(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-mi(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return pi(r)};function Si(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ur(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ki(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],u=o[a];return u0?r=Hr(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=Hr(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}function Oi(){var e=si(ei,ei);return e.copy=function(){return ii(e,Oi())},Yr.apply(e,arguments),Si(e)}function Ti(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=to.call(t,Qo),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ti(e).unknown(t)},e=arguments.length?to.call(e,Qo):[0,1],Si(n)}var Ci=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;du)break;y.push(f)}}else for(;d=1;--c)if(!((f=l*c)u)break;y.push(f)}}else y=Ur(d,p,Math.min(p-d,h)).map(n);return r?y.reverse():y},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!==typeof o&&(o=pi(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?r[o-1]:t[0],o=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Ki().domain([t,n]).range(i).unknown(e)},Yr.apply(Si(a),arguments)}function Gi(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Ir(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=no.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=no.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Gi().domain(t).range(n).unknown(e)},Yr.apply(o,arguments)}var $i=new Date,Xi=new Date;function Zi(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 s;do{s.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 $i.setTime(+t),Xi.setTime(+r),e($i),e(Xi),Math.floor(n($i,Xi))},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 Qi=Zi(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()});Qi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Zi(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 Ji=Qi,ea=(Qi.range,Zi(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()})),ta=ea,na=(ea.range,6e4),ra=6048e5;function oa(e){return Zi(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())*na)/ra})}var ia=oa(0),aa=oa(1),sa=oa(2),ua=oa(3),la=oa(4),ca=oa(5),fa=oa(6),da=(ia.range,aa.range,sa.range,ua.range,la.range,ca.range,fa.range,Zi(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*na)/864e5},function(e){return e.getDate()-1})),pa=da,ha=(da.range,Zi(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*na)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),ya=ha,ma=(ha.range,Zi(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*na)},function(e,t){return(t-e)/na},function(e){return e.getMinutes()})),va=ma,ga=(ma.range,Zi(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()})),ba=ga,wa=(ga.range,Zi(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e}));wa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Zi(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):wa:null};var xa=wa;wa.range;function _a(e){return Zi(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)/ra})}var ka=_a(0),Sa=_a(1),Oa=_a(2),Ta=_a(3),Ca=_a(4),Ea=_a(5),Ma=_a(6),ja=(ka.range,Sa.range,Oa.range,Ta.range,Ca.range,Ea.range,Ma.range,Zi(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})),Da=ja,Pa=(ja.range,Zi(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()}));Pa.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Zi(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 Aa=Pa;Pa.range;function Ra(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ia(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Na(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Fa,La,Ba,za={"-":"",_:" ",0:"0"},Wa=/^\s*\d+/,Ua=/^%/,Ha=/[\\^$*+?|[\]().{}]/g;function qa(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function ts(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 ns(e,t,n){var r=Wa.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rs(e,t,n){var r=Wa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function os(e,t,n){var r=Wa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function is(e,t,n){var r=Wa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function as(e,t,n){var r=Wa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ss(e,t,n){var r=Wa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function us(e,t,n){var r=Wa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=Wa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cs(e,t,n){var r=Wa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fs(e,t,n){var r=Ua.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ds(e,t,n){var r=Wa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ps(e,t,n){var r=Wa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hs(e,t){return qa(e.getDate(),t,2)}function ys(e,t){return qa(e.getHours(),t,2)}function ms(e,t){return qa(e.getHours()%12||12,t,2)}function vs(e,t){return qa(1+pa.count(Ji(e),e),t,3)}function gs(e,t){return qa(e.getMilliseconds(),t,3)}function bs(e,t){return gs(e,t)+"000"}function ws(e,t){return qa(e.getMonth()+1,t,2)}function xs(e,t){return qa(e.getMinutes(),t,2)}function _s(e,t){return qa(e.getSeconds(),t,2)}function ks(e){var t=e.getDay();return 0===t?7:t}function Ss(e,t){return qa(ia.count(Ji(e)-1,e),t,2)}function Os(e,t){var n=e.getDay();return e=n>=4||0===n?la(e):la.ceil(e),qa(la.count(Ji(e),e)+(4===Ji(e).getDay()),t,2)}function Ts(e){return e.getDay()}function Cs(e,t){return qa(aa.count(Ji(e)-1,e),t,2)}function Es(e,t){return qa(e.getFullYear()%100,t,2)}function Ms(e,t){return qa(e.getFullYear()%1e4,t,4)}function js(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qa(t/60|0,"0",2)+qa(t%60,"0",2)}function Ds(e,t){return qa(e.getUTCDate(),t,2)}function Ps(e,t){return qa(e.getUTCHours(),t,2)}function As(e,t){return qa(e.getUTCHours()%12||12,t,2)}function Rs(e,t){return qa(1+Da.count(Aa(e),e),t,3)}function Is(e,t){return qa(e.getUTCMilliseconds(),t,3)}function Ns(e,t){return Is(e,t)+"000"}function Fs(e,t){return qa(e.getUTCMonth()+1,t,2)}function Ls(e,t){return qa(e.getUTCMinutes(),t,2)}function Bs(e,t){return qa(e.getUTCSeconds(),t,2)}function zs(e){var t=e.getUTCDay();return 0===t?7:t}function Ws(e,t){return qa(ka.count(Aa(e)-1,e),t,2)}function Us(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ca(e):Ca.ceil(e),qa(Ca.count(Aa(e),e)+(4===Aa(e).getUTCDay()),t,2)}function Hs(e){return e.getUTCDay()}function qs(e,t){return qa(Sa.count(Aa(e)-1,e),t,2)}function Vs(e,t){return qa(e.getUTCFullYear()%100,t,2)}function Ys(e,t){return qa(e.getUTCFullYear()%1e4,t,4)}function Ks(){return"+0000"}function Gs(){return"%"}function $s(e){return+e}function Xs(e){return Math.floor(+e/1e3)}!function(e){Fa=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=Ya(o),c=Ka(o),f=Ya(i),d=Ka(i),p=Ya(a),h=Ka(a),y=Ya(s),m=Ka(s),v=Ya(u),g=Ka(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:hs,e:hs,f:bs,H:ys,I:ms,j:vs,L:gs,m:ws,M:xs,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:$s,s:Xs,S:_s,u:ks,U:Ss,V:Os,w:Ts,W:Cs,x:null,X:null,y:Es,Y:Ms,Z:js,"%":Gs},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Ds,e:Ds,f:Ns,H:Ps,I:As,j:Rs,L:Is,m:Fs,M:Ls,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:$s,s:Xs,S:Bs,u:zs,U:Ws,V:Us,w:Hs,W:qs,x:null,X:null,y:Vs,Y:Ys,Z:Ks,"%":Gs},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:os,e:os,f:cs,H:as,I:as,j:is,L:ls,m:rs,M:ss,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:ns,Q:ds,s:ps,S:us,u:$a,U:Xa,V:Za,w:Ga,W:Qa,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:es,Y:Ja,Z:ts,"%":fs};function _(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Ia(Na(i.y,0,1))).getUTCDay(),r=o>4||0===o?Sa.ceil(r):Sa(r),r=Da.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ra(Na(i.y,0,1))).getDay(),r=o>4||0===o?aa.ceil(r):aa(r),r=pa.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?Ia(Na(i.y,0,1)).getUTCDay():Ra(Na(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,Ia(i)):Ra(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,u=n.length;a=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in za?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),La=Fa.format,Fa.parse,Ba=Fa.utcFormat,Fa.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Zs=1e3,Qs=60*Zs,Js=60*Qs,eu=24*Js,tu=7*eu,nu=30*eu,ru=365*eu;function ou(e){return new Date(e)}function iu(e){return e instanceof Date?+e:+new Date(+e)}function au(e,t,n,r,o,i,a,s,u){var l=si(ei,ei),c=l.invert,f=l.domain,d=u(".%L"),p=u(":%S"),h=u("%I:%M"),y=u("%I %p"),m=u("%a %d"),v=u("%b %d"),g=u("%B"),b=u("%Y"),w=[[a,1,Zs],[a,5,5*Zs],[a,15,15*Zs],[a,30,30*Zs],[i,1,Qs],[i,5,5*Qs],[i,15,15*Qs],[i,30,30*Qs],[o,1,Js],[o,3,3*Js],[o,6,6*Js],[o,12,12*Js],[r,1,eu],[r,2,2*eu],[n,1,tu],[t,1,nu],[t,3,3*nu],[e,1,ru]];function x(s){return(a(s)1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i=0;)n[t]=t;return n};function Pu(e,t){return e[t]}function Au(){return(Au=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Iu={className:d.a.string,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node])};function Nu(e){var t=e.children,n=e.className,r=Ru(e,["children","className"]),o=h()("recharts-layer",n);return c.a.createElement("g",Au({className:o},r),t)}Nu.propTypes=Iu;var Fu=Nu;function Lu(e){return(Lu="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 Bu(){return(Bu=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 Uu(e,t){for(var n=0;n=0});if(i&&i.length){var a=i.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=Qu(t,n,0),o=_()(r)?[Cr()(r),Or()(r)]:[r,r],i=a.reduce(function(e,n){var r=Qu(t,n,0),i=o[0]-Math.abs(_()(r)?r[0]:r),a=o[1]+Math.abs(_()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},rl=function(e,t,n,r){var o=t.map(function(t){var o=t.props.dataKey;return"number"===n&&o&&nl(e,t,o)||Ju(e,o,n,r)});if("number"===n)return o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return o.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:ao(),realScaleType:"point"}:"category"===o?{scale:io(),realScaleType:"band"}:{scale:Oi(),realScaleType:"linear"};if(g()(n)){var u="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[u]||ao)(),realScaleType:r[u]?u:"point"}}return a()(n)?{scale:n}:{scale:ao(),realScaleType:"point"}},ll=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(ai||si)&&e.domain([t[0],t[n-1]])}},cl={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=2){for(var n=Mn()(t,function(e){return e.coordinate}),r=1/0,o=1,i=n.length;oi&&(u=2*Math.PI-u),{radius:a,angle:Sl(u),angleInRadian:u}},Cl=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},El=function(e,t){var n=e.x,r=e.y,o=Tl({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,u=t.outerRadius;if(iu)return!1;if(0===i)return!0;var l,c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=c.startAngle,d=c.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p=f&&p<=d}else{for(;p>f;)p-=360;for(;p=d&&p<=f}return l?xl({},t,{radius:i,angle:Cl(p,t)}):null};function Ml(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===i?(r=y+x*s,o=g):"insideEnd"===i?(r=v-x*s,o=!g):"end"===i&&(r=v+x*s,o=g),o=w<=0?o:!o;var _=Ol(l,f,b,r),k=Ol(l,f,b,r+359*(o?1:-1)),S="M".concat(_.x,",").concat(_.y,"\n A").concat(b,",").concat(b,",0,1,").concat(o?0:1,",\n ").concat(k.x,",").concat(k.y),O=m()(e.id)?R("recharts-radial-line-"):e.id;return c.a.createElement("text",jl({},n,{dominantBaseline:"central",className:h()("recharts-radial-bar-label",u)}),c.a.createElement("defs",null,c.a.createElement("path",{id:O,d:S})),c.a.createElement("textPath",{xlinkHref:"#".concat(O)},t))},Ll=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,s=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var l=Ol(o,i,s+n,u),c=l.x;return{x:c,y:l.y,textAnchor:c>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=Ol(o,i,(a+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},Bl=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,a=t.width,s=t.height,u=s>=0?1:-1;return"top"===r?{x:o+a/2,y:i-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+s+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+s-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+s-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+s-u*n,textAnchor:"end",verticalAnchor:"end"}:w()(r)&&(D(r.x)||j(r.x))&&(D(r.y)||j(r.y))?{x:o+I(r.x,a),y:i+I(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"}},zl=function(e){return D(e.cx)};function Wl(e){var t,n=e.viewBox,r=e.position,o=e.value,i=e.children,s=e.content,u=e.className,f=void 0===u?"":u;if(!n||m()(o)&&m()(i)&&!Object(l.isValidElement)(s)&&!a()(s))return null;if(Object(l.isValidElement)(s))return Object(l.cloneElement)(s,e);if(a()(s)){if(t=s(e),Object(l.isValidElement)(t))return t}else t=Nl(e);var d=zl(n),p=X(e),y=Q(e);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return Fl(e,t,p);var v=d?Ll(e):Bl(e);return c.a.createElement(kr,jl({className:h()("recharts-label",f)},p,v,y),t)}Wl.displayName="Label",Wl.defaultProps={offset:5},Wl.propTypes=Il;var Ul=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,l=e.outerRadius,c=e.x,f=e.y,d=e.top,p=e.left,h=e.width,y=e.height,m=e.clockWise;if(D(h)&&D(y)){if(D(c)&&D(f))return{x:c,y:f,width:h,height:y};if(D(d)&&D(p))return{x:d,y:p,width:h,height:y}}return D(c)&&D(f)?{x:c,y:f,width:0,height:0}:D(t)&&D(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:l||s||a||0,clockWise:m}:e.viewBox?e.viewBox:{}};Wl.parseViewBox=Ul,Wl.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=Ul(e),i=G(r,Wl).map(function(e,n){return Object(l.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});return n?[function(e,t){return e?!0===e?c.a.createElement(Wl,{key:"label-implicit",viewBox:t}):P(e)?c.a.createElement(Wl,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===Wl?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):c.a.createElement(Wl,{key:"label-implicit",content:e,viewBox:t}):a()(e)?c.a.createElement(Wl,{key:"label-implicit",content:e,viewBox:t}):w()(e)?c.a.createElement(Wl,jl({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o)].concat(Ml(i)):i};var Hl=Wl,ql=n(367),Vl=n.n(ql),Yl=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},Kl=n(172),Gl=n.n(Kl),$l=n(257),Xl=n.n($l);function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ql(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();oc.EPS=1e-4;var ic=function(){function e(t){Zl(this,e),this.scales=Xl()(t,oc.create),Object.assign(this,this.scales)}return Jl(e,null,[{key:"create",value:function(e){return new this(e)}}]),Jl(e,[{key:"apply",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,n=this.scales;return Xl()(e,function(e,r){return n[r].apply(e,{bandAware:t})})}},{key:"isInRange",value:function(e){var t=this.scales;return Gl()(e,function(e,n){return t[n].isInRange(e)})}}]),e}();function ac(e){return(ac="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 sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uc(e){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 xc(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 _c(e){for(var t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Gc(e){return e[0]}function $c(e){return e[1]}var Xc=function(){var e=Gc,t=$c,n=Le(!0),r=null,o=Fc,i=null;function a(a){var s,u,l,c=a.length,f=!1;for(null==r&&(i=o(l=Fe())),s=0;s<=c;++s)!(s=c;--f)s.point(m[f],v[f]);s.lineEnd(),s.areaEnd()}y&&(m[l]=+e(d,l,u),v[l]=+n(d,l,u),s.point(t?+t(d,l,u):m[l],r?+r(d,l,u):v[l]))}if(p)return s=null,p+""||null}function l(){return Xc().defined(o).curve(a).context(i)}return u.x=function(n){return arguments.length?(e="function"===typeof n?n:Le(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:Le(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Le(+e),u):t},u.y=function(e){return arguments.length?(n="function"===typeof e?e:Le(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"===typeof e?e:Le(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Le(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(o="function"===typeof e?e:Le(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),u):i},u};function Qc(e){return(Qc="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 Jc(){return(Jc=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jf={id:d.a.string,data:d.a.arrayOf(d.a.object),valueAccessor:d.a.func,clockWise:d.a.bool,dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func])},Df={valueAccessor:function(e){return _()(e.value)?kf()(e.value):e.value}};function Pf(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=Mf(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?c.a.createElement(Fu,{className:"recharts-label-list"},t.map(function(e,t){var s=m()(r)?n(e,t):Qu(e&&e.payload,r),u=m()(i)?{}:{id:"".concat(i,"-").concat(t)};return c.a.createElement(Hl,Of({},X(e),a,u,{index:t,value:s,viewBox:Hl.parseViewBox(m()(o)?e:Cf({},e,{clockWise:o})),key:"label-".concat(t)}))})):null}Pf.propTypes=jf,Pf.displayName="LabelList";Pf.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=G(r,Pf).map(function(e,n){return Object(l.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return n?[function(e,t){return e?!0===e?c.a.createElement(Pf,{key:"labelList-implicit",data:t}):c.a.isValidElement(e)||a()(e)?c.a.createElement(Pf,{key:"labelList-implicit",data:t,content:e}):w()(e)?c.a.createElement(Pf,Of({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(Sf(o)):o},Pf.defaultProps=Df;var Af=Pf;function Rf(e){return(Rf="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 If(){return(If=Object.assign||function(e){for(var t=1;ti){s=[].concat(Bf(n.slice(0,u)),[i-l]);break}var c=s.length%2===0?[0,a]:[a];return[].concat(Bf(this.constructor.repeat(n,o)),Bf(s),c).map(function(e){return"".concat(e,"px")}).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,a=G(i,Ku);if(!a)return null;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Qu(e.payload,t)}}return a.map(function(e,i){return c.a.cloneElement(e,{key:i,data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:s})})}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,a=r.dataKey,s=X(this.props),u=X(o),l=Q(o),f=i.map(function(e,t){var r=Ff({key:"dot-".concat(t),r:3},s,{},u,{},l,{value:e.value,dataKey:a,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(o,r)}),d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return c.a.createElement(Fu,If({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,i=o.type,a=o.layout,s=o.connectNulls,u=Ff({},X(this.props),{},Q(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:i,layout:a,connectNulls:s});return c.a.createElement(pf,If({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.strokeDasharray,a=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,d=r.width,p=r.height,h=this.state,y=h.prevPoints,m=h.totalLength;return c.a.createElement(Cn,{begin:s,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var a=r.t;if(y){var s=y.length/o.length,u=o.map(function(e,t){var r=Math.floor(t*s);if(y[r]){var o=y[r],i=F(o.x,e.x),u=F(o.y,e.y);return Ff({},e,{x:i(a),y:u(a)})}if(n.animateNewValues){var l=F(2*d,e.x),c=F(p/2,e.y);return Ff({},e,{x:l(a),y:c(a)})}return Ff({},e,{x:e.x,y:e.y})});return n.renderCurveStatically(u,e,t)}var l,c=F(0,m)(a);if(i){var f=i.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});l=n.getStrokeDasharray(c,m,f)}else l="".concat(c,"px ").concat(m-c,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:l})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!xt()(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.xAxis,a=e.yAxis,s=e.top,u=e.left,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var y=this.state.isAnimationFinished,v=1===r.length,g=h()("recharts-line",o),b=i&&i.allowDataOverflow||a&&a.allowDataOverflow,w=m()(p)?this.id:p;return c.a.createElement(Fu,{className:g},b?c.a.createElement("defs",null,c.a.createElement("clipPath",{id:"clipPath-".concat(w)},c.a.createElement("rect",{x:u,y:s,width:l,height:f}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(),(v||n)&&this.renderDots(b,w),(!d||y)&&Af.renderCallByParent(this.props,r))}}])&&zf(n.prototype,r),o&&zf(n,o),t}();qf.displayName="Line",qf.propTypes=Ff({},U,{},H,{className:d.a.string,type:d.a.oneOfType([d.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),d.a.func]),unit:d.a.oneOfType([d.a.string,d.a.number]),name:d.a.oneOfType([d.a.string,d.a.number]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),yAxis:d.a.object,xAxis:d.a.object,legendType:d.a.oneOf(V),tooltipType:d.a.oneOf(Y),layout:d.a.oneOf(["horizontal","vertical"]),connectNulls:d.a.bool,hide:d.a.bool,activeDot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),dot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),top:d.a.number,left:d.a.number,width:d.a.number,height:d.a.number,points:d.a.arrayOf(d.a.shape({x:d.a.number,y:d.a.number,value:d.a.value})),onAnimationStart:d.a.func,onAnimationEnd:d.a.func,isAnimationActive:d.a.bool,animateNewValues:d.a.bool,animationBegin:d.a.number,animationDuration:d.a.number,animationEasing:d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:d.a.number,id:d.a.string}),qf.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ne(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},qf.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,c=t.layout;return Ff({points:u.map(function(e,t){var u=Qu(e,a);return"horizontal"===c?{x:pl({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:m()(u)?null:r.scale(u),value:u,payload:e}:{x:m()(u)?null:n.scale(u),y:pl({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:u,payload:e}}),layout:c},l)};var Vf=qf;function Yf(e){return(Yf="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 Kf(e,t){for(var n=0;n180),",").concat(+(i>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=Ol(t,n,r,i),d=Ol(t,n,r,s);c+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else c+="L ".concat(t,",").concat(n," Z");return c},Pd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Cd(this,Ed(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Md(e,t)}(t,l["PureComponent"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(o0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,c=M(l-u),f=jd({cx:t,cy:n,radius:o,angle:u,sign:c,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,y=jd({cx:t,cy:n,radius:o,angle:l,sign:-c,cornerRadius:i,cornerIsExternal:s}),m=y.circleTangency,v=y.lineTangency,g=y.theta,b=Math.abs(u-l)-h-g;if(b<0)return a?"M ".concat(p.x,",").concat(p.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 "):Dd({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=jd({cx:t,cy:n,radius:r,angle:u,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,k=x.lineTangency,S=x.theta,O=jd({cx:t,cy:n,radius:r,angle:l,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),T=O.circleTangency,C=O.lineTangency,E=O.theta,j=Math.abs(u-l)-S-E;if(j<0)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(T.x,",").concat(T.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(k.x,",").concat(k.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:a,cornerIsExternal:s,startAngle:u,endAngle:l}):Dd({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:l}),c.a.createElement("path",Od({},X(this.props),Q(this.props),{className:p,d:d}))}}])&&Td(n.prototype,r),o&&Td(n,o),t}();Pd.displayName="Sector",Pd.propTypes=function(e){for(var t=1;t=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*c[1])),i+="L ".concat(e+n,",").concat(t+r-s*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(e+n-u*c[2],",").concat(t+r)),i+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+u*d,",").concat(t,"\n L ").concat(e+n-u*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-u*d,",").concat(t+r,"\n L ").concat(e+u*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Hd=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:d,animationEasing:f,isActive:m},function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return c.a.createElement(Cn,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,isActive:y,easing:f},c.a.createElement("path",Fd({},X(e.props),Q(e.props),{className:v,d:Ud(o,i,n,r,a),ref:function(t){e.node=t}})))}):c.a.createElement("path",Fd({},X(this.props),Q(this.props),{className:v,d:Ud(n,r,o,i,a)}))}}])&&Ld(n.prototype,r),o&&Ld(n,o),t}();Hd.displayName="Rectangle",Hd.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zd(e,t){for(var n=0;n=2?M(m[1].coordinate-m[0].coordinate):1;if(1===b?(n="width"===y?f:d,r="width"===y?f+p:d+h):(n="width"===y?f+p:d+h,r="width"===y?f:d),t){var w=o[g-1],x=a()(i)?i(w.value):w.value,_=fr(x)[y]+v,k=b*(w.coordinate+b*_/2-r);m[g-1]=w=Gd({},w,{tickCoord:k>0?w.coordinate-k*b:w.coordinate}),b*(w.tickCoord-b*_/2-n)>=0&&b*(w.tickCoord+b*_/2-r)<=0&&(r=w.tickCoord-b*(_/2+l),m[g-1]=Gd({},w,{isShow:!0}))}for(var S=t?g-1:g,O=0;O=0&&b*(T.tickCoord+b*E/2-r)<=0&&(n=T.tickCoord+b*(E/2+l),m[O]=Gd({},T,{isShow:!0}))}return m.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,s=e.orientation,u=e.minTickGap,l=e.unit,c=i.x,f=i.y,d=i.width,p=i.height,h="top"===s||"bottom"===s?"width":"height",y=l&&"width"===h?fr(l)[h]:0,m=(r||[]).slice(),v=m.length,g=v>=2?M(m[1].coordinate-m[0].coordinate):1;1===g?(t="width"===h?c:f,n="width"===h?c+d:f+p):(t="width"===h?c+d:f+p,n="width"===h?c:f);for(var b=v-1;b>=0;b--){var w=m[b],x=a()(o)?o(w.value):w.value,_=fr(x)[h]+y;if(b===v-1){var k=g*(w.coordinate+g*_/2-n);m[b]=w=Gd({},w,{tickCoord:k>0?w.coordinate-k*g:w.coordinate})}else m[b]=w=Gd({},w,{tickCoord:w.coordinate});g*(w.tickCoord-g*_/2-t)>=0&&g*(w.tickCoord+g*_/2-n)<=0&&(n=w.tickCoord-g*(_/2+u),m[b]=Gd({},w,{isShow:!0}))}return m.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(kr,Yd({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=Xd(e,["viewBox"]),o=this.props,i=o.viewBox,a=Xd(o,["viewBox"]);return!B(n,i)||!B(r,a)||!B(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,u=s.x,l=s.y,c=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,y=s.tickMargin,m=h?-1:1,v=e.tickSize||p,g=D(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+!h*f)-m*v)-m*y,i=g;break;case"left":r=o=e.coordinate,i=(t=(n=u+!h*c)-m*v)-m*y,a=g;break;case"right":r=o=e.coordinate,i=(t=(n=u+h*c)+m*v)+m*y,a=g;break;default:t=n=e.coordinate,a=(r=(o=l+h*f)+m*v)+m*y,i=g}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,s=e.mirror,u=Gd({},X(this.props),{fill:"none"},X(a));if("top"===i||"bottom"===i){var l="top"===i&&!s||"bottom"===i&&s;u=Gd({},u,{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f="left"===i&&!s||"right"===i&&s;u=Gd({},u,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return c.a.createElement("line",Yd({className:"recharts-cartesian-axis-line"},u))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,s=r.tick,u=r.tickFormatter,l=r.unit,f=t.getTicks(Gd({},this.props,{ticks:e})),d=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),h=X(this.props),y=X(s),m=Gd({},h,{fill:"none"},X(o)),v=f.map(function(e,t){var r=n.getTickLineCoord(e),v=r.line,g=r.tick,b=Gd({textAnchor:d,verticalAnchor:p},h,{stroke:"none",fill:i},y,{},g,{index:t,payload:e,visibleTicksCount:f.length});return c.a.createElement(Fu,Yd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},ee(n.props,e,t)),o&&c.a.createElement("line",Yd({className:"recharts-cartesian-axis-tick-line"},m,v)),s&&n.constructor.renderTickItem(s,b,"".concat(a()(u)?u(e.value):e.value).concat(l||"")))});return c.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var s=this.props,u=s.ticks,l=Xd(s,["ticks"]),f=u;return a()(o)&&(f=u&&u.length>0?o(this.props):o(l)),n<=0||r<=0||!f||!f.length?null:c.a.createElement(Fu,{className:h()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(f),Hl.renderCallByParent(this.props))}}])&&Zd(n.prototype,r),o&&Zd(n,o),t}();tp.displayName="CartesianAxis",tp.propTypes=Gd({},U,{},H,{className:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number,orientation:d.a.oneOf(["top","bottom","left","right"]),viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),tick:d.a.oneOfType([d.a.bool,d.a.func,d.a.object,d.a.element]),axisLine:d.a.oneOfType([d.a.bool,d.a.object]),tickLine:d.a.oneOfType([d.a.bool,d.a.object]),mirror:d.a.bool,tickMargin:d.a.number.isRequired,minTickGap:d.a.number,ticks:d.a.array,tickSize:d.a.number,stroke:d.a.string,tickFormatter:d.a.func,ticksGenerator:d.a.func,interval:d.a.oneOfType([d.a.number,d.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),tp.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var np=tp;function rp(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 op(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ip=["Webkit","Moz","O","ms"],ap=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=ip.reduce(function(e,r){return function(e){for(var t=1;t0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(dp(n),"startX"),endX:n.handleTravellerDragStart.bind(dp(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pp(e,t)}(t,l["PureComponent"]),n=t,o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,s=n.updateId;(e.data!==r||e.updateId!==s)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(t,n),s=Math.max(t,n),u=this.constructor.getIndexInRange(this.scaleValues,a),l=this.constructor.getIndexInRange(this.scaleValues,s);return{startIndex:u-u%o,endIndex:l===i?i:l-l%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Qu(n[e],o,e);return a()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,l=i.startIndex,c=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-u-o,a+s-u-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===c||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],u=this.props,l=u.x,c=u.width,f=u.travellerWidth,d=u.onChange,p=u.gap,h=u.data,y={startX:this.state.startX,endX:this.state.endX},m=e.pageX-r;m>0?m=Math.min(m,l+c-f-s):m<0&&(m=Math.max(m,l-s)),y[o]=s+m;var v=this.getIndex(y),g=v.startIndex,b=v.endIndex;this.setState((lp(t={},o,s+m),lp(t,"brushMoveStartX",e.pageX),t),function(){d&&function(){var e=h.length-1;return"startX"===o&&(i>a?g%p===0:b%p===0)||ia?b%p===0:g%p===0)||i>a&&b===e}()&&d(v)})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,s=e.travellerWidth,u=n.length;return this.scale=ao().domain(ld()(0,u)).range([i,i+a-s]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return c.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,s=e.padding,u=l.Children.only(a);return u?c.a.cloneElement(u,{x:t,y:n,width:r,height:o,margin:s,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,s=Math.floor(r+i/2)-1,u=Math.max(e,this.props.x);return c.a.createElement(Fu,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.a.createElement("rect",{x:u,y:r,width:o,height:i,fill:a,stroke:"none"}),c.a.createElement("line",{x1:u+1,y1:s,x2:u+o-1,y2:s,fill:"none",stroke:"#fff"}),c.a.createElement("line",{x1:u+1,y1:s+2,x2:u+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return c.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,s=this.state,u=s.startX,l=s.endX,f={pointerEvents:"none",fill:a};return c.a.createElement(Fu,{className:"recharts-brush-texts"},c.a.createElement(kr,up({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+o/2},f),this.getTextOfTick(t)),c.a.createElement(kr,up({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,s=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,d=l.endX,p=l.isTextActive,y=l.isSlideMoving,m=l.isTravellerMoving;if(!t||!t.length||!D(o)||!D(i)||!D(a)||!D(s)||a<=0||s<=0)return null;var v=h()("recharts-brush",n),g=1===c.a.Children.count(r),b=ap("userSelect","none");return c.a.createElement(Fu,{className:v,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,d),this.renderTraveller(f,"startX"),this.renderTraveller(d,"endX"),(p||y||m||u)&&this.renderText())}}])&&cp(n.prototype,r),o&&cp(n,o),t}();hp.displayName="Brush",hp.propTypes={className:d.a.string,fill:d.a.string,stroke:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number.isRequired,travellerWidth:d.a.number,gap:d.a.number,padding:d.a.shape({top:d.a.number,right:d.a.number,bottom:d.a.number,left:d.a.number}),dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]),data:d.a.array,startIndex:d.a.number,endIndex:d.a.number,tickFormatter:d.a.func,children:d.a.node,onChange:d.a.func,updateId:d.a.oneOfType([d.a.string,d.a.number]),leaveTimeOut:d.a.number,alwaysShowText:d.a.bool},hp.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var yp=hp;function mp(e){return(mp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vp(){return(vp=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 qp(){return(qp=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return il(np.getTicks(Kp({},np.defaultProps,{},t,{ticks:al(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return il(np.getTicks(Kp({},np.defaultProps,{},t,{ticks:al(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return al(e,!0)},n.tooltipTicksGenerator=function(e){var t=N(e),n=al(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Mn()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:gl(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!e||!e.props.cursor||!o||!i)return null;var u,c=n.props.layout,f=pf;if("ScatterChart"===t)u=i,f=xd;else if("BarChart"===t)u=n.getCursorRectangle(),f=qd;else if("radial"===c){var d=n.getCursorPoints(),p=d.cx,h=d.cy,y=d.radius;u={cx:p,cy:h,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:y,outerRadius:y},f=Ad}else u={points:n.getCursorPoints()},f=pf;var m=e.key||"_recharts-cursor",v=Kp({stroke:"#ccc",pointerEvents:"none"},s,{},u,{},X(e.props.cursor),{payload:a,key:m,className:"recharts-tooltip-cursor"});return Object(l.isValidElement)(e.props.cursor)?Object(l.cloneElement)(e.props.cursor,v):Object(l.createElement)(f,v)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return Object(l.cloneElement)(e,Kp({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:al(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=n.props,s=a.width,u=a.height,c=N(r),f=sd()(o,function(e){return Gl()(e.domain,Number.isFinite)})||N(o),d=e.props||{};return Object(l.cloneElement)(e,{key:e.key||"grid",x:D(d.x)?d.x:i.left,y:D(d.y)?d.y:i.top,width:D(d.width)?d.width:i.width,height:D(d.height)?d.height:i.height,xAxis:c,yAxis:f,offset:i,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=N(r),a=N(o),s=a.cx,u=a.cy,c=a.innerRadius,f=a.outerRadius;return Object(l.cloneElement)(e,{polarAngles:al(a,!0).map(function(e){return e.coordinate}),polarRadius:al(i,!0).map(function(e){return e.coordinate}),cx:s,cy:u,innerRadius:c,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,s=i.dataStartIndex,u=i.dataEndIndex,c=i.updateId;return Object(l.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:sl(n.handleBrushChange,null,e.props.onChange),data:o,x:D(e.props.x)?e.props.x:a.left,y:D(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:D(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=Zp(n).clipPathId,i=n.state,a=i.xAxisMap,s=i.yAxisMap,u=i.offset,c=e.props,f=c.xAxisId,d=c.yAxisId;return Object(l.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:s[d],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i=Object(l.cloneElement)(e,o.props),a=n.state,s=a.isTooltipActive,u=a.tooltipAxis,c=a.activeTooltipIndex,f=a.activeLabel,d=n.props.children,p=$(d,tr),h=o.props,y=h.points,v=h.isRange,g=h.baseLine,b=o.item.props,w=b.activeDot;if(!b.hide&&s&&p&&w&&c>=0){var x,_;if(u.dataKey&&!u.allowDuplicatedCategory){var k="function"===typeof u.dataKey?function(e){return u.dataKey(e.payload)}:"payload.".concat(u.dataKey);x=L(y,k,f),_=v&&g&&L(g,k,f)}else x=y[c],_=v&&g&&g[c];if(!m()(x))return[i].concat(Vp(n.renderActivePoints({item:o,activePoint:x,basePoint:_,childIndex:c,isRange:v})))}return v?[i,null,null]:[i,null]},n.renderCustomized=function(e){return Object(l.cloneElement)(e,Kp({},n.props,{},n.state))};var s=n.constructor.createDefaultState(e);return n.state=Kp({},s,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Kp({props:e},s,{updateId:0}))),n.uniqueChartId=m()(e.id)?R("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=fd()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var f,d,p;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qp(e,t)}(r,l.Component),f=r,p=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(l.isValidElement)(e)?Object(l.cloneElement)(e,t):a()(e)?e(t):c.a.createElement(xf,t),c.a.createElement(Fu,{className:"recharts-active-dot",key:t.key},n)}}],(d=[{key:"componentDidMount",value:function(){m()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,s=n.layout,u=n.stackOffset,l=n.margin,c=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===s&&e.stackOffset===u&&B(e.margin,l)){if(!ie(e.children,o)){var f=m()(e.data)?c+1:c;this.setState(function(n){return Kp({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(Kp({props:e},n,{updateId:f})))})}}else{var d=this.constructor.createDefaultState(e);this.setState(Kp({},d,{updateId:c+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Kp({props:e},d,{updateId:c+1}))))}m()(this.props.syncId)&&!m()(e.syncId)&&this.addListener(),!m()(this.props.syncId)&&m()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){m()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.children,c="".concat(r,"Id"),f=G(l,o),d={};return f&&f.length?d=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):i&&i.length&&(d=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),d}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,s=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,f=e.children,d=e.stackOffset,p=ol(c,i);return r.reduce(function(t,r){var h=r.props,y=h.type,v=h.dataKey,g=h.allowDataOverflow,b=h.allowDuplicatedCategory,w=h.scale,x=h.ticks,k=r.props[a],S=n.constructor.getDisplayedData(e,{graphicalItems:o.filter(function(e){return e.props[a]===k}),dataStartIndex:u,dataEndIndex:l}),O=S.length;if(!t[k]){var T,C,E;if(v){if(T=Ju(S,v,y),"category"===y&&p){var M=function(e){if(!_()(e))return!1;for(var t=e.length,n={},r=0;r=0?e:[].concat(Vp(e),[t])},[]))}else if("category"===y)T=b?T.filter(function(e){return""!==e&&!m()(e)}):bl(r.props.domain,T,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||m()(t)?e:[].concat(Vp(e),[t])},[]);else if("number"===y){var j=function(e,t,n,r){var o=t.map(function(t){return nl(e,t,n,r)}).filter(function(e){return!m()(e)});return o&&o.length?o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(S,o.filter(function(e){return e.props[a]===k&&!e.props.hide}),v,i);j&&(T=j)}!p||"number"!==y&&"auto"===w||(E=Ju(S,v,"category"))}else T=p?ld()(0,O):s&&s[k]&&s[k].hasStack&&"number"===y?"expand"===d?[0,1]:hl(s[k].stackGroups,u,l):rl(S,o.filter(function(e){return e.props[a]===k&&!e.props.hide}),y,!0);return"number"===y&&(T=Lp(f,T,k,i,x),r.props.domain&&(T=vl(r.props.domain,T,g))),Kp({},t,Gp({},k,Kp({},r.props,{axisType:i,domain:T,categoricalDomain:E,duplicateDomain:C,originalDomain:r.props.domain,isCategorial:p,layout:c})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,c=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),d=f.length,p=ol(l,o),h=-1;return n.reduce(function(e,t){var y,m=t.props[i];return e[m]?e:(h++,p?y=ld()(0,d):a&&a[m]&&a[m].hasStack?(y=hl(a[m].stackGroups,s,u),y=Lp(c,y,m,o)):(y=vl(r.defaultProps.domain,rl(f,n.filter(function(e){return e.props[i]===m&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),y=Lp(c,y,m,o)),Kp({},e,Gp({},m,Kp({axisType:o},r.defaultProps,{hide:!0,orientation:Jp[o]&&Jp[o][h%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:p,layout:l}))))},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find(function(e){return e&&e.index===t});if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return Kp({},n,{},Ol(n.cx,n.cy,a,i),{angle:i,radius:a})}var s=o.coordinate,u=n.angle;return Kp({},n,{},Ol(n.cx,n.cy,s,u),{angle:u,radius:s})}return eh}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,i=r.xAxisMap,a=r.yAxisMap;if("axis"!==o&&i&&a){var s=N(i).scale,u=N(a).scale;return Kp({},t,{xValue:s&&s.invert?s.invert(t.chartX):null,yValue:u&&u.invert?u.invert(t.chartY):null})}var l=this.state,c=l.orderedTooltipTicks,f=l.tooltipAxis,d=l.tooltipTicks,p=function(e,t,n,r){var o=-1,i=t.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s0?n[s-1].coordinate:n[i-1].coordinate,l=n[s].coordinate,c=s>=i-1?n[0].coordinate:n[s+1].coordinate,f=void 0;if(M(l-u)!==M(c-l)){var d=[];if(M(c-l)===M(a[1]-a[0])){f=c;var p=l+a[1]-a[0];d[0]=Math.min(p,(p+u)/2),d[1]=Math.max(p,(p+u)/2)}else{f=u;var h=c+a[1]-a[0];d[0]=Math.min(l,(h+l)/2),d[1]=Math.max(l,(h+l)/2)}var y=[Math.min(l,(f+l)/2),Math.max(l,(f+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){o=n[s].index;break}}else{var m=Math.min(u,c),v=Math.max(u,c);if(e>(m+l)/2&&e<=(v+l)/2){o=n[s].index;break}}}else for(var g=0;g0&&g(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===i-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){o=t[g].index;break}}else o=0;return o}(this.calculateTooltipPos(n),c,d,f);if(p>=0&&d){var h=d[p]&&d[p].value;return Kp({},t,{activeTooltipIndex:p,activeLabel:h,activePayload:this.getTooltipContent(p,h),activeCoordinate:this.getActiveCoordinate(c,p,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,s=r.props,u=s.dataKey,l=s.name,c=s.unit,f=s.formatter,d=s.data,p=s.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?L(d||i,o.dataKey,t):d&&d[e]||i[e])?[].concat(Vp(n),[Kp({},X(r),{dataKey:u,unit:c,formatter:f,name:l||u,color:el(r),value:Qu(a,u),type:p,payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,a=t.offset,s=t.updateId,u=t.dataStartIndex,l=t.dataEndIndex,c=e.barSize,f=e.layout,d=e.barGap,p=e.barCategoryGap,h=e.maxBarSize,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,g=y.cateAxisName,b=this.constructor.hasBar(r),w=b&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a=0});if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[h];o[g]||(o[g]=[]),o[g].push({item:y[0],stackList:y.slice(1),barSize:m()(v)?t:v})}}return o}({barSize:c,stackGroups:o}),x=[];return r.forEach(function(r,c){var y,_=n.constructor.getDisplayedData(e,{dataStartIndex:u,dataEndIndex:l},r),k=r.props,S=k.dataKey,O=k.maxBarSize,T=r.props["".concat(v,"Id")],C=r.props["".concat(g,"Id")],E=i.reduce(function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=i&&i[a];return Kp({},e,(Gp(o={},n.axisType,s),Gp(o,"".concat(n.axisType,"Ticks"),al(s)),o))},{}),M=E[g],j=E["".concat(g,"Ticks")],D=o&&o[T]&&o[T].hasStack&&function(e,t){var n=e.props.stackId;if(P(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null}(r,o[T].stackGroups),A=gl(M,j),R=m()(O)?h:O,N=b&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var u,l=I(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var c=!1,f=r/s,d=i.reduce(function(e,t){return e+t.barSize||0},0);(d+=(s-1)*l)>=r&&(d-=(s-1)*l,l=0),d>=r&&f>0&&(c=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-l,size:0};u=i.reduce(function(e,t){var n=[].concat(Gu(e),[{item:t.item,position:{offset:p.offset+p.size+l,size:c?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:p})}),n},[])}else{var h=I(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var y=(r-2*h-(s-1)*l)/s;y>1&&(y>>=0);var m=a===+a?Math.min(y,a):y;u=i.reduce(function(e,t,n){var r=[].concat(Gu(e),[{item:t.item,position:{offset:h+(y+l)*n+(y-m)/2,size:m}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},[])}return u}({barGap:d,barCategoryGap:p,bandSize:A,sizeList:w[C],maxBarSize:R}),F=r&&r.type&&r.type.getComposedData;F&&x.push({props:Kp({},F(Kp({},E,{displayedData:_,props:e,dataKey:S,item:r,bandSize:A,barPosition:N,offset:a,stackedData:D,layout:f,dataStartIndex:u,dataEndIndex:l,onItemMouseLeave:sl(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:sl(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(c)},Gp(y,v,E[v]),Gp(y,g,E[g]),Gp(y,"animationId",s),y)),childIndex:ue(r,e.children),item:r})}),x}},{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,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!m()(a.cx)||!m()(a.cy)){if("centric"!==o){var u=a.cx,l=a.cy,c=a.radius,f=a.startAngle,d=a.endAngle;return{points:[Ol(u,l,c,f),Ol(u,l,c,d)],cx:u,cy:l,radius:c,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,y=a.innerRadius,v=a.outerRadius,g=a.angle,b=Ol(p,h,y,g),w=Ol(p,h,v,g);e=b.x,t=b.y,n=w.x,r=w.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=N(i);return El({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=$(e,tr)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Kp({},Q(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,a=e.dataStartIndex,s=e.dataEndIndex,l=e.updateId;if(!te({props:o}))return null;var c=o.children,f=o.layout,d=o.stackOffset,p=o.data,h=o.reverseStackOrder,y=this.constructor.getAxisNameByLayout(f),m=y.numericAxisName,v=y.cateAxisName,g=G(c,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce(function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(P(i)){var u=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),s.hasStack=!0,s.stackGroups[i]=u}else s.stackGroups[R("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Xu({},e,Zu({},a,s))},{});return Object.keys(a).reduce(function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,i){var a=s.stackGroups[i];return Xu({},t,Zu({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:fl(e,a.items,o)}))},{})),Xu({},t,Zu({},i,s))},{})}(p,g,"".concat(m,"Id"),"".concat(v,"Id"),d,h),w=i.reduce(function(e,t){return Kp({},e,Gp({},"".concat(t.axisType,"Map"),r.getAxisMap(o,Kp({},t,{graphicalItems:g,stackGroups:t.axisType===m&&b,dataStartIndex:a,dataEndIndex:s}))))},{}),x=this.calculateOffset(Kp({},w,{props:o,graphicalItems:g}));Object.keys(w).forEach(function(e){w[e]=u(o,w[e],x,e.replace("Map",""),t)});var _=w["".concat(v,"Map")],k=this.tooltipTicksGenerator(_),S=this.getFormatItems(o,Kp({},w,{dataStartIndex:a,dataEndIndex:s,updateId:l,graphicalItems:g,stackGroups:b,offset:x}));return Kp({formatedGraphicalItems:S,graphicalItems:g,offset:x,stackGroups:b},k,{},w)}},{key:"addListener",value:function(){zp.on(Wp,this.handleReceiveSyncEvent),zp.setMaxListeners&&zp._maxListeners&&zp.setMaxListeners(zp._maxListeners+1)}},{key:"removeListener",value:function(){zp.removeListener(Wp,this.handleReceiveSyncEvent),zp.setMaxListeners&&zp._maxListeners&&zp.setMaxListeners(zp._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=t.width,u=t.height,l=t.children,c=t.margin||{},f=$(l,yp),d=$(l,bt),p=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:Kp({},e,Gp({},r,e[r]+n.width))},{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:Kp({},e,Gp({},r,e[r]+n.height))},{top:c.top||0,bottom:c.bottom||0}),y=Kp({},h,{},p),m=y.bottom;return f&&(y.bottom+=f.props.height||yp.defaultProps.height),d&&this.legendInstance&&(y=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,s=n.margin,u=i-(s.left||0)-(s.right||0),l=a-(s.top||0)-(s.bottom||0),c=tl({children:o,items:t,legendWidth:u,legendHeight:l}),f=e;if(c){var d=r||{},p=c.align,h=c.verticalAlign,y=c.layout;("vertical"===y||"horizontal"===y&&"center"===h)&&D(e[p])&&(f=Xu({},e,Zu({},p,f[p]+(d.width||0)))),("horizontal"===y||"vertical"===y&&"center"===p)&&D(e[h])&&(f=Xu({},e,Zu({},h,f[h]+(d.height||0))))}return f}(y,n,t,this.legendInstance.getBBox())),Kp({brushBottom:m},y,{width:s-y.left-y.right,height:u-y.top-y.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;m()(t)||zp.emit(Wp,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o=0})},y.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(Vp(e),Vp(n)):e},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var s=e.data;return s&&s.length&&D(o)&&D(i)?s.slice(o,i+1):[]},y}({chartName:"LineChart",GraphicalChild:Vf,axisComponents:[{axisType:"xAxis",AxisComp:Qf},{axisType:"yAxis",AxisComp:id}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return u.reduce(function(e,i){var a,u,c,f,d=t[i],p=d.orientation,h=d.domain,y=d.padding,m=void 0===y?{}:y,v=d.mirror,g=d.reversed,b="".concat(p).concat(v?"Mirror":"");a="xAxis"===r?[n.left+(m.left||0),n.left+n.width-(m.right||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0),n.top+n.height-(m.bottom||0)]:d.range,g&&(a=[a[1],a[0]]);var w=ul(d,o),x=w.scale,_=w.realScaleType;x.domain(h).range(a),ll(x);var k=dl(x,tc({},d,{realScaleType:_}));"xAxis"===r?(f="top"===p&&!v||"bottom"===p&&v,u=n.left,c=l[b]-f*d.height):"yAxis"===r&&(f="left"===p&&!v||"right"===p&&v,u=l[b]-f*d.width,c=n.top);var S=tc({},d,{},k,{realScaleType:_,x:u,y:c,scale:x,width:"xAxis"===r?n.width:d.width,height:"yAxis"===r?n.height:d.height});return S.bandSize=gl(S,k),d.hide||"xAxis"!==r?d.hide||(l[b]+=(f?-1:1)*S.width):l[b]+=(f?-1:1)*S.height,tc({},e,nc({},i,S))},{})}});n.d(t,"c",function(){return bt}),n.d(t,"g",function(){return tr}),n.d(t,"b",function(){return Hl}),n.d(t,"f",function(){return vc}),n.d(t,"a",function(){return Mc}),n.d(t,"d",function(){return Vf}),n.d(t,"h",function(){return Qf}),n.d(t,"i",function(){return id}),n.d(t,"e",function(){return th})},function(e,t,n){"use strict"},function(e,t,n){var r=n(331),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(493),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(522),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=a(n(36)),i=a(n(35));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(i.default,e,r.default.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"}))};(s=(0,o.default)(s)).displayName="ContentClear",s.muiName="SvgIcon",t.default=s},function(e,t,n){var r=n(94),o=n(30),i=n(83),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(467)),i=r(n(468)),a=r(n(469)),s=r(n(471)),u=r(n(472)),l=r(n(275)),c=r(n(474)),f=r(n(476)),d=r(n(0));r(n(1)),r(n(477));var p=function(){var e=null;return function(){if(null!==e)return e;var t,n,r,o=!1;try{window.addEventListener("test",null,(t={},n="passive",r={get:function(){o=!0}},Object.defineProperty(t,n,r)))}catch(i){}return e=o,o}()}(),h={capture:!1,passive:!1};function y(e){return f({},h,e)}function m(e,t,n){var r=[e,t];return r.push(p?n:n.capture),r}function v(e,t,n,r){e.addEventListener.apply(e,m(t,n,r))}function g(e,t,n,r){e.removeEventListener.apply(e,m(t,n,r))}var b=function(e){function t(){return o(this,t),a(this,s(t).apply(this,arguments))}return u(t,e),i(t,[{key:"componentDidMount",value:function(){this.applyListeners(v)}},{key:"componentDidUpdate",value:function(e){this.applyListeners(g,e),this.applyListeners(v)}},{key:"componentWillUnmount",value:function(){this.applyListeners(g)}},{key:"applyListeners",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=t.target;if(n){var r=n;"string"===typeof n&&(r=window[n]),function(e,t){e.children,e.target;var n=c(e,["children","target"]);Object.keys(n).forEach(function(e){if("on"===e.substring(0,2)){var r=n[e],o=l(r),i="object"===o;if(i||"function"===o){var a="capture"===e.substr(-7).toLowerCase(),s=e.substring(2).toLowerCase();s=a?s.substring(0,s.length-7):s,i?t(s,r.handler,r.options):t(s,r,y({capture:a}))}}})}(t,e.bind(null,r))}}},{key:"render",value:function(){return this.props.children||null}}]),t}(d.PureComponent);b.propTypes={},t.withOptions=function(e,t){return{handler:e,options:y(t)}},t.default=b},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(668),o=n(722),i=n(112),a=n(30),s=n(731);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=a(n(36)),i=a(n(35));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(i.default,e,r.default.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}))};(s=(0,o.default)(s)).displayName="ContentAdd",s.muiName="SvgIcon",t.default=s},function(e,t,n){!function(n,r){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},i=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function u(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function l(e){return a?a(e):"[object Array]"===s.call(e)}function c(e){return e&&"[object Object]"===s.call(e)}function f(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function d(e,t,n){var r,o,a=[];if(!e)return a;if(i&&e.map===i)return e.map(t,n);for(r=0,o=e.length;r3?u.length%3:0;return s+(h?u.substr(0,h)+i.thousand:"")+u.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+i.thousand)+(a?i.decimal+m(Math.abs(e),a).split(".")[1]:"")},g=o.formatMoney=function(e,t,n,r,i,a){if(l(e))return d(e,function(e){return g(e,t,n,r,i,a)});e=y(e);var s=f(c(t)?t:{symbol:t,precision:n,thousand:r,decimal:i,format:a},o.settings.currency),u=h(s.format);return(e>0?u.pos:e<0?u.neg:u.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),p(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,n,r,i,a){if(!e)return[];var s=f(c(t)?t:{symbol:t,precision:n,thousand:r,decimal:i,format:a},o.settings.currency),m=h(s.format),g=m.pos.indexOf("%s")0?m.pos:e<0?m.neg:m.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),p(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n});return d(w,function(e,t){return u(e)&&e.length1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?c(e,t):f(e,t)},t.fade=function(e,t){e=u(e),t=i(t,0,1),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a");return e.values[3]=t,a(e)},t.darken=c,t.lighten=f;var r,o=n(33);(r=o)&&r.__esModule;function i(e,t,n){return en?n:e}function a(e){var t=e.type,n=e.values;if(t.indexOf("rgb")>-1)for(var r=0;r<3;r++)n[r]=parseInt(n[r]);var o=void 0;return o=t.indexOf("hsl")>-1?e.type+"("+n[0]+", "+n[1]+"%, "+n[2]+"%":e.type+"("+n[0]+", "+n[1]+", "+n[2],4===n.length?o+=", "+e.values[3]+")":o+=")",o}function s(e){if(4===e.length){for(var t="#",n=1;n-1){var t=e.values.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}if(e.type.indexOf("hsl")>-1)return e.values[2]/100}function c(e,t){if(e=u(e),t=i(t,0,1),e.type.indexOf("hsl")>-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")>-1)for(var n=0;n<3;n++)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=u(e),t=i(t,0,1),e.type.indexOf("hsl")>-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")>-1)for(var n=0;n<3;n++)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(40),o=n(25),i=n(39);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return Object(i.a)(n)?t:Object(o.a)(function(t,r){return e(n,t,r)});case 2:return Object(i.a)(n)&&Object(i.a)(a)?t:Object(i.a)(n)?Object(o.a)(function(t,n){return e(t,a,n)}):Object(i.a)(a)?Object(o.a)(function(t,r){return e(n,t,r)}):Object(r.a)(function(t){return e(n,a,t)});default:return Object(i.a)(n)&&Object(i.a)(a)&&Object(i.a)(s)?t:Object(i.a)(n)&&Object(i.a)(a)?Object(o.a)(function(t,n){return e(t,n,s)}):Object(i.a)(n)&&Object(i.a)(s)?Object(o.a)(function(t,n){return e(t,a,n)}):Object(i.a)(a)&&Object(i.a)(s)?Object(o.a)(function(t,r){return e(n,t,r)}):Object(i.a)(n)?Object(r.a)(function(t){return e(t,a,s)}):Object(i.a)(a)?Object(r.a)(function(t){return e(n,t,s)}):Object(i.a)(s)?Object(r.a)(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){(function(e,r){var o;(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",d=1,p=2,h=4,y=1,m=2,v=1,g=2,b=4,w=8,x=16,_=32,k=64,S=128,O=256,T=512,C=30,E="...",M=800,j=16,D=1,P=2,A=1/0,R=9007199254740991,I=1.7976931348623157e308,N=NaN,F=4294967295,L=F-1,B=F>>>1,z=[["ary",S],["bind",v],["bindKey",g],["curry",w],["curryRight",x],["flip",T],["partial",_],["partialRight",k],["rearg",O]],W="[object Arguments]",U="[object Array]",H="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",Y="[object DOMException]",K="[object Error]",G="[object Function]",$="[object GeneratorFunction]",X="[object Map]",Z="[object Number]",Q="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",ye="[object Uint8Array]",me="[object Uint8ClampedArray]",ve="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Se=RegExp(_e.source),Oe=RegExp(ke.source),Te=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Pe.source),Re=/^\s+|\s+$/g,Ie=/^\s+/,Ne=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,$e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Qe+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+it+"|"+at+")",pt="(?:"+ft+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",yt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ut,lt,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,lt,ct].join("|")+")"+yt,vt="(?:"+[ut+nt+"?",nt,lt,ct,et].join("|")+")",gt=RegExp("['\u2019]","g"),bt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+vt+yt,"g"),xt=RegExp([ft+"?"+it+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",pt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+dt,"$"].join("|")+")",ft+"?"+dt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,St=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ot=-1,Tt={};Tt[ce]=Tt[fe]=Tt[de]=Tt[pe]=Tt[he]=Tt[ye]=Tt[me]=Tt[ve]=Tt[ge]=!0,Tt[W]=Tt[U]=Tt[ue]=Tt[q]=Tt[le]=Tt[V]=Tt[K]=Tt[G]=Tt[X]=Tt[Z]=Tt[J]=Tt[te]=Tt[ne]=Tt[re]=Tt[ae]=!1;var Ct={};Ct[W]=Ct[U]=Ct[ue]=Ct[le]=Ct[q]=Ct[V]=Ct[ce]=Ct[fe]=Ct[de]=Ct[pe]=Ct[he]=Ct[X]=Ct[Z]=Ct[J]=Ct[te]=Ct[ne]=Ct[re]=Ct[oe]=Ct[ye]=Ct[me]=Ct[ve]=Ct[ge]=!0,Ct[K]=Ct[G]=Ct[ae]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mt=parseFloat,jt=parseInt,Dt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,At=Dt||Pt||Function("return this")(),Rt=t&&!t.nodeType&&t,It=Rt&&"object"==typeof r&&r&&!r.nodeType&&r,Nt=It&&It.exports===Rt,Ft=Nt&&Dt.process,Lt=function(){try{var e=It&&It.require&&It.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(t){}}(),Bt=Lt&&Lt.isArrayBuffer,zt=Lt&&Lt.isDate,Wt=Lt&&Lt.isMap,Ut=Lt&&Lt.isRegExp,Ht=Lt&&Lt.isSet,qt=Lt&&Lt.isTypedArray;function Vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Qt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var _n=pn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sn(e){return"\\"+Et[e]}function On(e){return _t.test(e)}function Tn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Cn(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Rn=function e(t){var n=(t=null==t?At:Rn.defaults(At.Object(),t,Rn.pick(At,St))).Array,r=t.Date,o=t.Error,Qe=t.Function,Je=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Qe.prototype,at=et.prototype,st=t["__core-js_shared__"],ut=it.toString,lt=at.hasOwnProperty,ct=0,ft=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),dt=at.toString,pt=ut.call(et),ht=At._,yt=tt("^"+ut.call(lt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Nt?t.Buffer:i,vt=t.Symbol,wt=t.Uint8Array,_t=mt?mt.allocUnsafe:i,Et=Cn(et.getPrototypeOf,et),Dt=et.create,Pt=at.propertyIsEnumerable,Rt=ot.splice,It=vt?vt.isConcatSpreadable:i,Ft=vt?vt.iterator:i,Lt=vt?vt.toStringTag:i,on=function(){try{var e=Li(et,"defineProperty");return e({},"",{}),e}catch(t){}}(),pn=t.clearTimeout!==At.clearTimeout&&t.clearTimeout,In=r&&r.now!==At.Date.now&&r.now,Nn=t.setTimeout!==At.setTimeout&&t.setTimeout,Fn=Je.ceil,Ln=Je.floor,Bn=et.getOwnPropertySymbols,zn=mt?mt.isBuffer:i,Wn=t.isFinite,Un=ot.join,Hn=Cn(et.keys,et),qn=Je.max,Vn=Je.min,Yn=r.now,Kn=t.parseInt,Gn=Je.random,$n=ot.reverse,Xn=Li(t,"DataView"),Zn=Li(t,"Map"),Qn=Li(t,"Promise"),Jn=Li(t,"Set"),er=Li(t,"WeakMap"),tr=Li(et,"create"),nr=er&&new er,rr={},or=ca(Xn),ir=ca(Zn),ar=ca(Qn),sr=ca(Jn),ur=ca(er),lr=vt?vt.prototype:i,cr=lr?lr.valueOf:i,fr=lr?lr.toString:i;function dr(e){if(Cs(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof yr)return e;if(lt.call(e,"__wrapped__"))return fa(e)}return new yr(e)}var pr=function(){function e(){}return function(t){if(!Ts(t))return{};if(Dt)return Dt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function vr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Rr(e,t,n,r,o,a){var s,u=t&d,l=t&p,c=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ts(e))return e;var f=ms(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ni(e,s)}else{var y=Wi(e),m=y==G||y==$;if(ws(e))return Xo(e,u);if(y==J||y==W||m&&!o){if(s=l||m?{}:Hi(e),!u)return l?function(e,t){return ri(e,zi(e),t)}(e,function(e,t){return e&&ri(t,ou(t),e)}(s,e)):function(e,t){return ri(e,Bi(e),t)}(e,jr(s,e))}else{if(!Ct[y])return o?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case ue:return Zo(e);case q:case V:return new o(+e);case le:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case fe:case de:case pe:case he:case ye:case me:case ve:case ge:return Qo(e,n);case X:return new o;case Z:case re:return new o(e);case te:return function(e){var t=new e.constructor(e.source,He.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new o;case oe:return r=e,cr?et(cr.call(r)):{}}}(e,y,u)}}a||(a=new xr);var v=a.get(e);if(v)return v;if(a.set(e,s),Ps(e))return e.forEach(function(r){s.add(Rr(r,t,n,r,e,a))}),s;if(Es(e))return e.forEach(function(r,o){s.set(o,Rr(r,t,n,o,e,a))}),s;var g=f?i:(c?l?Di:ji:l?ou:ru)(e);return Kt(g||e,function(r,o){g&&(r=e[o=r]),Cr(s,o,Rr(r,t,n,o,e,a))}),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Nr(e,t,n){if("function"!=typeof e)throw new rt(u);return ra(function(){e.apply(i,n)},t)}function Fr(e,t,n,r){var o=-1,i=Zt,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Jt(t,vn(n))),r?(i=Qt,s=!1):t.length>=a&&(i=bn,s=!1,t=new wr(t));e:for(;++o-1},gr.prototype.set=function(e,t){var n=this.__data__,r=Er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new vr,map:new(Zn||gr),string:new vr}},br.prototype.delete=function(e){var t=Ni(this,e).delete(e);return this.size-=t?1:0,t},br.prototype.get=function(e){return Ni(this,e).get(e)},br.prototype.has=function(e){return Ni(this,e).has(e)},br.prototype.set=function(e,t){var n=Ni(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(e){return this.__data__.set(e,l),this},wr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.clear=function(){this.__data__=new gr,this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xr.prototype.get=function(e){return this.__data__.get(e)},xr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof gr){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Hr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var qr=si(),Vr=si(!0);function Yr(e,t){return e&&qr(e,t,ru)}function Kr(e,t){return e&&Vr(e,t,ru)}function Gr(e,t){return Xt(t,function(t){return ks(e[t])})}function $r(e,t){for(var n=0,r=(t=Yo(t,e)).length;null!=e&&nt}function Jr(e,t){return null!=e&<.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?Qt:Zt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=Jt(d,vn(t))),c=Vn(d.length,c),l[u]=!r&&(t||a>=120&&d.length>=120)?new wr(u&&d):i}d=e[0];var p=-1,h=l[0];e:for(;++p=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function go(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Rt.call(s,u,1),Rt.call(e,u,1);return e}function wo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Vi(o)?Rt.call(e,o,1):Lo(e,o)}}return e}function xo(e,t){return e+Ln(Gn()*(t-e+1))}function _o(e,t){var n="";if(!e||t<1||t>R)return n;do{t%2&&(n+=e),(t=Ln(t/2))&&(e+=e)}while(t);return n}function ko(e,t){return oa(Ji(e,t,Mu),e+"")}function So(e){return kr(du(e))}function Oo(e,t){var n=du(e);return sa(n,Ar(t,0,n.length))}function To(e,t,n,r){if(!Ts(e))return e;for(var o=-1,a=(t=Yo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Rs(a)&&(n?a<=t:a=a){var c=t?null:_i(e);if(c)return Mn(c);s=!1,o=bn,l=new wr}else l=t?[]:u;e:for(;++r=r?e:jo(e,t,n)}var $o=pn||function(e){return At.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Qo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Jo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=Rs(e),s=t!==i,u=null===t,l=t===t,c=Rs(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Yi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[s]:s]:i}}function di(e){return Mi(function(t){var n=t.length,r=n,o=yr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(u);if(o&&!s&&"wrapper"==Ai(a))var s=new yr([],!0)}for(r=s?r:n;++r1&&w.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var f=-1,d=!0,p=n&m?new wr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Kt(z,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Le);return t?t[1].split(Be):[]}(r),n)))}function aa(e){var t=0,n=0;return function(){var r=Yn(),o=j-(r-n);if(n=r,o>0){if(++t>=M)return arguments[0]}else t=0;return e.apply(i,arguments)}}function sa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Da(e,n)});function La(e){var t=dr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var za=Mi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Pr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&Vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[o],thisArg:i}),new yr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Wa=oi(function(e,t,n){lt.call(e,n)?++e[n]:Dr(e,n,1)});var Ua=fi(ya),Ha=fi(ma);function qa(e,t){return(ms(e)?Kt:Lr)(e,Ii(t,3))}function Va(e,t){return(ms(e)?Gt:Br)(e,Ii(t,3))}var Ya=oi(function(e,t,n){lt.call(e,n)?e[n].push(t):Dr(e,n,[t])});var Ka=ko(function(e,t,r){var o=-1,i="function"==typeof t,a=gs(e)?n(e.length):[];return Lr(e,function(e){a[++o]=i?Vt(t,e,r):no(e,t,r)}),a}),Ga=oi(function(e,t,n){Dr(e,n,t)});function $a(e,t){return(ms(e)?Jt:fo)(e,Ii(t,3))}var Xa=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=ko(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Yi(e,t[0],t[1])?t=[]:n>2&&Yi(t[0],t[1],t[2])&&(t=[t[0]]),vo(e,Hr(t,1),[])}),Qa=In||function(){return At.Date.now()};function Ja(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Si(e,S,i,i,i,i,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(u);return e=zs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ts=ko(function(e,t,n){var r=v;if(n.length){var o=En(n,Ri(ts));r|=_}return Si(e,r,t,n,o)}),ns=ko(function(e,t,n){var r=v|g;if(n.length){var o=En(n,Ri(ns));r|=_}return Si(t,r,e,n,o)});function rs(e,t,n){var r,o,a,s,l,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new rt(u);function y(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||p&&e-f>=a}function v(){var e=Qa();if(m(e))return g(e);l=ra(v,function(e){var n=t-(e-c);return p?Vn(n,a-(e-f)):n}(e))}function g(e){return l=i,h&&r?y(e):(r=o=i,s)}function b(){var e=Qa(),n=m(e);if(r=arguments,o=this,c=e,n){if(l===i)return function(e){return f=e,l=ra(v,t),d?y(e):s}(c);if(p)return l=ra(v,t),y(c)}return l===i&&(l=ra(v,t)),s}return t=Us(t)||0,Ts(n)&&(d=!!n.leading,a=(p="maxWait"in n)?qn(Us(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&$o(l),f=0,r=c=o=l=i},b.flush=function(){return l===i?s:g(Qa())},b}var os=ko(function(e,t){return Nr(e,1,t)}),is=ko(function(e,t,n){return Nr(e,Us(t)||0,n)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(u);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(as.Cache||br),n}function ss(e){if("function"!=typeof e)throw new rt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=br;var us=Ko(function(e,t){var n=(t=1==t.length&&ms(t[0])?Jt(t[0],vn(Ii())):Jt(Hr(t,1),vn(Ii()))).length;return ko(function(r){for(var o=-1,i=Vn(r.length,n);++o=t}),ys=ro(function(){return arguments}())?ro:function(e){return Cs(e)&<.call(e,"callee")&&!Pt.call(e,"callee")},ms=n.isArray,vs=Bt?vn(Bt):function(e){return Cs(e)&&Zr(e)==ue};function gs(e){return null!=e&&Os(e.length)&&!ks(e)}function bs(e){return Cs(e)&&gs(e)}var ws=zn||Uu,xs=zt?vn(zt):function(e){return Cs(e)&&Zr(e)==V};function _s(e){if(!Cs(e))return!1;var t=Zr(e);return t==K||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!js(e)}function ks(e){if(!Ts(e))return!1;var t=Zr(e);return t==G||t==$||t==H||t==ee}function Ss(e){return"number"==typeof e&&e==zs(e)}function Os(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function Ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Cs(e){return null!=e&&"object"==typeof e}var Es=Wt?vn(Wt):function(e){return Cs(e)&&Wi(e)==X};function Ms(e){return"number"==typeof e||Cs(e)&&Zr(e)==Z}function js(e){if(!Cs(e)||Zr(e)!=J)return!1;var t=Et(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==pt}var Ds=Ut?vn(Ut):function(e){return Cs(e)&&Zr(e)==te};var Ps=Ht?vn(Ht):function(e){return Cs(e)&&Wi(e)==ne};function As(e){return"string"==typeof e||!ms(e)&&Cs(e)&&Zr(e)==re}function Rs(e){return"symbol"==typeof e||Cs(e)&&Zr(e)==oe}var Is=qt?vn(qt):function(e){return Cs(e)&&Os(e.length)&&!!Tt[Zr(e)]};var Ns=bi(co),Fs=bi(function(e,t){return e<=t});function Ls(e){if(!e)return[];if(gs(e))return As(e)?Pn(e):ni(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Wi(e);return(t==X?Tn:t==ne?Mn:du)(e)}function Bs(e){return e?(e=Us(e))===A||e===-A?(e<0?-1:1)*I:e===e?e:0:0===e?e:0}function zs(e){var t=Bs(e),n=t%1;return t===t?n?t-n:t:0}function Ws(e){return e?Ar(zs(e),0,F):0}function Us(e){if("number"==typeof e)return e;if(Rs(e))return N;if(Ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Re,"");var n=Ve.test(e);return n||Ke.test(e)?jt(e.slice(2),n?2:8):qe.test(e)?N:+e}function Hs(e){return ri(e,ou(e))}function qs(e){return null==e?"":No(e)}var Vs=ii(function(e,t){if(Xi(t)||gs(t))ri(t,ru(t),e);else for(var n in t)lt.call(t,n)&&Cr(e,n,t[n])}),Ys=ii(function(e,t){ri(t,ou(t),e)}),Ks=ii(function(e,t,n,r){ri(t,ou(t),e,r)}),Gs=ii(function(e,t,n,r){ri(t,ru(t),e,r)}),$s=Mi(Pr);var Xs=ko(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Yi(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Di(e),n),r&&(n=Rr(n,d|p|h,Ci));for(var o=t.length;o--;)Lo(n,t[o]);return n});var uu=Mi(function(e,t){return null==e?{}:function(e,t){return go(e,t,function(t,n){return Js(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Jt(Di(e),function(e){return[e]});return t=Ii(t),go(e,n,function(e,n){return t(e,n[0])})}var cu=ki(ru),fu=ki(ou);function du(e){return null==e?[]:gn(e,ru(e))}var pu=li(function(e,t,n){return t=t.toLowerCase(),e+(n?hu(t):t)});function hu(e){return _u(qs(e).toLowerCase())}function yu(e){return(e=qs(e))&&e.replace($e,_n).replace(bt,"")}var mu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),vu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),gu=ui("toLowerCase");var bu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var wu=li(function(e,t,n){return e+(n?" ":"")+_u(t)});var xu=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_u=ui("toUpperCase");function ku(e,t,n){return e=qs(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var Su=ko(function(e,t){try{return Vt(e,i,t)}catch(n){return _s(n)?n:new o(n)}}),Ou=Mi(function(e,t){return Kt(t,function(t){t=la(t),Dr(e,t,ts(e[t],e))}),e});function Tu(e){return function(){return e}}var Cu=di(),Eu=di(!0);function Mu(e){return e}function ju(e){return so("function"==typeof e?e:Rr(e,d))}var Du=ko(function(e,t){return function(n){return no(n,e,t)}}),Pu=ko(function(e,t){return function(n){return no(e,n,t)}});function Au(e,t,n){var r=ru(t),o=Gr(t,r);null!=n||Ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Gr(t,ru(t)));var i=!(Ts(n)&&"chain"in n)||!!n.chain,a=ks(e);return Kt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Ru(){}var Iu=mi(Jt),Nu=mi($t),Fu=mi(rn);function Lu(e){return Ki(e)?dn(la(e)):function(e){return function(t){return $r(t,e)}}(e)}var Bu=gi(),zu=gi(!0);function Wu(){return[]}function Uu(){return!1}var Hu=yi(function(e,t){return e+t},0),qu=xi("ceil"),Vu=yi(function(e,t){return e/t},1),Yu=xi("floor");var Ku=yi(function(e,t){return e*t},1),Gu=xi("round"),$u=yi(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new rt(u);return e=zs(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=Ja,dr.assign=Vs,dr.assignIn=Ys,dr.assignInWith=Ks,dr.assignWith=Gs,dr.at=$s,dr.before=es,dr.bind=ts,dr.bindAll=Ou,dr.bindKey=ns,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},dr.chain=La,dr.chunk=function(e,t,r){t=(r?Yi(e,t,r):t===i)?1:qn(zs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(Fn(o/t));ao?0:o+n),(r=r===i||r>o?o:zs(r))<0&&(r+=o),r=n>r?0:Ws(r);n>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ds(t))&&!(t=No(t))&&On(e)?Go(Pn(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new rt(u);return t=null==t?0:qn(zs(t),0),ko(function(n){var r=n[t],o=Go(n,0,t);return r&&en(o,r),Vt(e,this,o)})},dr.tail=function(e){var t=null==e?0:e.length;return t?jo(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?jo(e,0,(t=n||t===i?1:zs(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?jo(e,(t=r-(t=n||t===i?1:zs(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(u);return Ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rs(e,t,{leading:r,maxWait:t,trailing:o})},dr.thru=Ba,dr.toArray=Ls,dr.toPairs=cu,dr.toPairsIn=fu,dr.toPath=function(e){return ms(e)?Jt(e,la):Rs(e)?[e]:ni(ua(qs(e)))},dr.toPlainObject=Hs,dr.transform=function(e,t,n){var r=ms(e),o=r||ws(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ts(e)&&ks(i)?pr(Et(e)):{}}return(o?Kt:Yr)(e,function(e,r,o){return t(n,e,r,o)}),n},dr.unary=function(e){return Ja(e,1)},dr.union=Ca,dr.unionBy=Ea,dr.unionWith=Ma,dr.uniq=function(e){return e&&e.length?Fo(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Fo(e,Ii(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Fo(e,i,t):[]},dr.unset=function(e,t){return null==e||Lo(e,t)},dr.unzip=ja,dr.unzipWith=Da,dr.update=function(e,t,n){return null==e?e:Bo(e,t,Vo(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Bo(e,t,Vo(n),r)},dr.values=du,dr.valuesIn=function(e){return null==e?[]:gn(e,ou(e))},dr.without=Pa,dr.words=ku,dr.wrap=function(e,t){return ls(Vo(t),e)},dr.xor=Aa,dr.xorBy=Ra,dr.xorWith=Ia,dr.zip=Na,dr.zipObject=function(e,t){return Ho(e||[],t||[],Cr)},dr.zipObjectDeep=function(e,t){return Ho(e||[],t||[],To)},dr.zipWith=Fa,dr.entries=cu,dr.entriesIn=fu,dr.extend=Ys,dr.extendWith=Ks,Au(dr,dr),dr.add=Hu,dr.attempt=Su,dr.camelCase=pu,dr.capitalize=hu,dr.ceil=qu,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Us(n))===n?n:0),t!==i&&(t=(t=Us(t))===t?t:0),Ar(Us(e),t,n)},dr.clone=function(e){return Rr(e,h)},dr.cloneDeep=function(e){return Rr(e,d|h)},dr.cloneDeepWith=function(e,t){return Rr(e,d|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return Rr(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Ir(e,t,ru(t))},dr.deburr=yu,dr.defaultTo=function(e,t){return null==e||e!==e?t:e},dr.divide=Vu,dr.endsWith=function(e,t,n){e=qs(e),t=No(t);var r=e.length,o=n=n===i?r:Ar(zs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},dr.eq=ds,dr.escape=function(e){return(e=qs(e))&&Oe.test(e)?e.replace(ke,kn):e},dr.escapeRegExp=function(e){return(e=qs(e))&&Ae.test(e)?e.replace(Pe,"\\$&"):e},dr.every=function(e,t,n){var r=ms(e)?$t:zr;return n&&Yi(e,t,n)&&(t=i),r(e,Ii(t,3))},dr.find=Ua,dr.findIndex=ya,dr.findKey=function(e,t){return an(e,Ii(t,3),Yr)},dr.findLast=Ha,dr.findLastIndex=ma,dr.findLastKey=function(e,t){return an(e,Ii(t,3),Kr)},dr.floor=Yu,dr.forEach=qa,dr.forEachRight=Va,dr.forIn=function(e,t){return null==e?e:qr(e,Ii(t,3),ou)},dr.forInRight=function(e,t){return null==e?e:Vr(e,Ii(t,3),ou)},dr.forOwn=function(e,t){return e&&Yr(e,Ii(t,3))},dr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},dr.get=Qs,dr.gt=ps,dr.gte=hs,dr.has=function(e,t){return null!=e&&Ui(e,t,Jr)},dr.hasIn=Js,dr.head=ga,dr.identity=Mu,dr.includes=function(e,t,n,r){e=gs(e)?e:du(e),n=n&&!r?zs(n):0;var o=e.length;return n<0&&(n=qn(o+n,0)),As(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:zs(n);return o<0&&(o=qn(r+o,0)),un(e,t,o)},dr.inRange=function(e,t,n){return t=Bs(t),n===i?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Vn(t,n)&&e=-R&&e<=R},dr.isSet=Ps,dr.isString=As,dr.isSymbol=Rs,dr.isTypedArray=Is,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Cs(e)&&Wi(e)==ae},dr.isWeakSet=function(e){return Cs(e)&&Zr(e)==se},dr.join=function(e,t){return null==e?"":Un.call(e,t)},dr.kebabCase=mu,dr.last=_a,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=zs(n))<0?qn(r+o,0):Vn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},dr.lowerCase=vu,dr.lowerFirst=gu,dr.lt=Ns,dr.lte=Fs,dr.max=function(e){return e&&e.length?Wr(e,Mu,Qr):i},dr.maxBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),Qr):i},dr.mean=function(e){return fn(e,Mu)},dr.meanBy=function(e,t){return fn(e,Ii(t,2))},dr.min=function(e){return e&&e.length?Wr(e,Mu,co):i},dr.minBy=function(e,t){return e&&e.length?Wr(e,Ii(t,2),co):i},dr.stubArray=Wu,dr.stubFalse=Uu,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Ku,dr.nth=function(e,t){return e&&e.length?mo(e,zs(t)):i},dr.noConflict=function(){return At._===this&&(At._=ht),this},dr.noop=Ru,dr.now=Qa,dr.pad=function(e,t,n){e=qs(e);var r=(t=zs(t))?Dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return vi(Ln(o),n)+e+vi(Fn(o),n)},dr.padEnd=function(e,t,n){e=qs(e);var r=(t=zs(t))?Dn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Gn();return Vn(e+o*(t-e+Mt("1e-"+((o+"").length-1))),t)}return xo(e,t)},dr.reduce=function(e,t,n){var r=ms(e)?tn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Lr)},dr.reduceRight=function(e,t,n){var r=ms(e)?nn:hn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Br)},dr.repeat=function(e,t,n){return t=(n?Yi(e,t,n):t===i)?1:zs(t),_o(qs(e),t)},dr.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,o=(t=Yo(t,e)).length;for(o||(o=1,e=i);++rR)return[];var n=F,r=Vn(e,F);t=Ii(t),e-=F;for(var o=mn(r,t);++n=a)return e;var u=n-Dn(r);if(u<1)return r;var l=s?Go(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),Ds(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=tt(o.source,qs(He.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;l=l.slice(0,d===i?u:d)}}else if(e.indexOf(No(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},dr.unescape=function(e){return(e=qs(e))&&Se.test(e)?e.replace(_e,An):e},dr.uniqueId=function(e){var t=++ct;return qs(e)+t},dr.upperCase=xu,dr.upperFirst=_u,dr.each=qa,dr.eachRight=Va,dr.first=ga,Au(dr,function(){var e={};return Yr(dr,function(t,n){lt.call(dr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),dr.VERSION="4.17.11",Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Kt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:qn(zs(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=Vn(n,r.__takeCount__):r.__views__.push({size:Vn(n,F),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Kt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==D||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Kt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Kt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Mu)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=ko(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return no(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(ss(Ii(e)))},mr.prototype.slice=function(e,t){e=zs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=zs(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(F)},Yr(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=dr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof mr,l=s[0],c=u||ms(t),f=function(e){var t=o.apply(dr,en([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,y=u&&!p;if(!a&&c){t=y?t:new mr(this);var m=e.apply(t,s);return m.__actions__.push({func:Ba,args:[f],thisArg:i}),new yr(m,d)}return h&&y?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),Yr(mr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(rr[r]||(rr[r]=[])).push({name:t,func:n})}}),rr[pi(i,g).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=fa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Ta],thisArg:i}),new yr(t,this.__chain__)}return this.thru(Ta)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Wo(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Ft&&(dr.prototype[Ft]=function(){return this}),dr}();At._=Rn,(o=function(){return Rn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(77),n(127)(e))},function(e,t,n){"use strict";var r=n(113);function o(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),i=o.pop();if(!Object(r.a)(i)){for(var a=0;a1&&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=s},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function l(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},R={};function I(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(R[e]=o),t&&(R[t[0]]=function(){return j(o.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=F(t,e.localeData()),A[t]=A[t]||function(e){var t,n,r,o=e.match(D);for(t=0,n=o.length;t=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var L={};function B(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function z(e){return"string"===typeof e?L[e]||L[e.toLowerCase()]:void 0}function W(e){var t,n,r={};for(n in e)a(e,n)&&(t=z(n))&&(r[t]=e[n]);return r}var U={};function H(e,t){U[e]=t}function q(e){return e%4===0&&e%100!==0||e%400===0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function K(e,t){return function(n){return null!=n?($(this,e,n),r.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=Y(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),je(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,Q=/\d\d/,J=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){X[e]=C(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(X,e)?X[e](t._strict,t._locale):new RegExp(ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var me={};function ve(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=Y(e)}),n=0;n68?1900:2e3)};var ze=K("FullYear",!0);function We(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ue(e,t,n){var r=7+t-n,o=(7+We(e,0,r).getUTCDay()-t)%7;return-o+r-1}function He(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=Ue(e,r,o),l=1+7*(t-1)+s+u;return l<=0?a=Be(i=e-1)+l:l>Be(e)?(i=e+1,a=l-Be(e)):(i=e,a=l),{year:i,dayOfYear:a}}function qe(e,t,n){var r,o,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Ve(o,t,n)):a>Ve(e.year(),t,n)?(r=a-Ve(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ve(e,t,n){var r=Ue(e,t,n),o=Ue(e+1,t,n);return(Be(e)-r+o)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",ne,Q),pe("W",ne),pe("WW",ne,Q),ge(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Y(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,r){t[r]=Y(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=de,Ze=de,Qe=de;function Je(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=ye(this.weekdaysMin(n,"")),o=ye(this.weekdaysShort(n,"")),i=ye(this.weekdays(n,"")),a.push(r),s.push(o),u.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,et),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+et.apply(this)+j(this.minutes(),2)}),I("hmmss",0,0,function(){return""+et.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),tt("a",!0),tt("A",!1),B("hour","h"),H("hour",13),pe("a",nt),pe("A",nt),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,Q),pe("hh",ne,Q),pe("kk",ne,Q),pe("hmm",re),pe("hmmss",oe),pe("Hmm",re),pe("Hmmss",oe),ve(["H","HH"],Se),ve(["k","kk"],function(e,t,n){var r=Y(e);t[Se]=24===r?0:r}),ve(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ve(["h","hh"],function(e,t,n){t[Se]=Y(e),h(n).bigHour=!0}),ve("hmm",function(e,t,n){var r=e.length-2;t[Se]=Y(e.substr(0,r)),t[Oe]=Y(e.substr(r)),h(n).bigHour=!0}),ve("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=Y(e.substr(0,r)),t[Oe]=Y(e.substr(r,2)),t[Te]=Y(e.substr(o)),h(n).bigHour=!0}),ve("Hmm",function(e,t,n){var r=e.length-2;t[Se]=Y(e.substr(0,r)),t[Oe]=Y(e.substr(r))}),ve("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=Y(e.substr(0,r)),t[Oe]=Y(e.substr(r,2)),t[Te]=Y(e.substr(o))});var rt,ot=K("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Pe,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:$e,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function ut(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=ct(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ut(o,n)>=t-1)break;t--}i++}return rt}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[_e]<0||n[_e]>11?_e:n[ke]<1||n[ke]>je(n[xe],n[_e])?ke:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[Oe]||0!==n[Te]||0!==n[Ce])?Se:n[Oe]<0||n[Oe]>59?Oe:n[Te]<0||n[Te]>59?Te:n[Ce]<0||n[Ce]>999?Ce:-1,h(e)._overflowDayOfYear&&(tke)&&(t=ke),h(e)._overflowWeeks&&-1===t&&(t=Ee),h(e)._overflowWeekday&&-1===t&&(t=Me),h(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,r,o,i,a,s=e._i,u=yt.exec(s)||mt.exec(s);if(u){for(h(e).iso=!0,t=0,n=gt.length;t7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=qe(Dt(),i,a),n=Tt(t.gg,e._a[xe],l.year),r=Tt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i),r<1||r>Ve(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=He(n,r,o,i,a),e._a[xe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Tt(e._a[xe],o[xe]),(e._dayOfYear>Be(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=We(a,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ke]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[Oe]&&0===e._a[Te]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?We:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function Et(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,o,i,a,s,u=""+e._i,l=u.length,c=0;for(o=F(e._f,e._locale).match(D)||[],t=0;t0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),c+=n.length),R[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),be(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,u.length>0&&h(e).unusedInput.push(u),e._a[Se]<=12&&!0===h(e).bigHour&&e._a[Se]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(s=h(e).era)&&(e._a[xe]=e._locale.erasConvertYear(s,e._a[xe])),Ct(e),ht(e)}else Ot(e);else kt(e)}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new w(ht(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()});function Rt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-ln:new Date(e,t,n).valueOf()}function dn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ln:Date.UTC(e,t,n)}function pn(e,t){return t.erasAbbrRegex(e)}function hn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;ei&&(t=i),function(e,t,n,r,o){var i=He(e,t,n,r,o),a=We(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),pe("N",pn),pe("NN",pn),pe("NNN",pn),pe("NNNN",function(e,t){return t.erasNameRegex(e)}),pe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ve(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e}),pe("y",ue),pe("yy",ue),pe("yyy",ue),pe("yyyy",ue),pe("yo",function(e,t){return t._eraYearOrdinalRegex||ue}),ve(["y","yy","yyy","yyyy"],xe),ve(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[xe]=n._locale.eraYearOrdinalParse(e,o):t[xe]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yn("gggg","weekYear"),yn("ggggg","weekYear"),yn("GGGG","isoWeekYear"),yn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",le),pe("g",le),pe("GG",ne,Q),pe("gg",ne,Q),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Y(e)}),ge(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),pe("Q",Z),ve("Q",function(e,t){t[_e]=3*(Y(e)-1)}),I("D",["DD",2],"Do","date"),B("date","D"),H("date",9),pe("D",ne),pe("DD",ne,Q),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ve(["D","DD"],ke),ve("Do",function(e,t){t[ke]=Y(e.match(ne)[0])});var vn=K("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",ie),pe("DDDD",J),ve(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Y(e)}),I("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,Q),ve(["m","mm"],Oe);var gn=K("Minutes",!1);I("s",["ss",2],0,"second"),B("second","s"),H("second",15),pe("s",ne),pe("ss",ne,Q),ve(["s","ss"],Te);var bn,wn,xn=K("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),H("millisecond",16),pe("S",ie,Z),pe("SS",ie,Q),pe("SSS",ie,J),bn="SSSS";bn.length<=9;bn+="S")pe(bn,ue);function _n(e,t){t[Ce]=Y(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ve(bn,_n);wn=K("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var kn=w.prototype;function Sn(e){return e}kn.add=Qt,kn.calendar=function(e,t){var n;1===arguments.length&&(x(n=arguments[0])||c(n)||en(n)||l(n)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&en(e)}).length),t&&n}(n)||function(e){var t,n,r=i(e)&&!s(e),o=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},kn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(kn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),kn.toJSON=function(){return this.isValid()?this.toISOString():null},kn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},kn.unix=function(){return Math.floor(this.valueOf()/1e3)},kn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},kn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},kn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},kn.isLocal=function(){return!!this.isValid()&&!this._isUTC},kn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},kn.isUtc=qt,kn.isUTC=qt,kn.zoneAbbr=function(){return this._isUTC?"UTC":""},kn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},kn.dates=k("dates accessor is deprecated. Use date instead.",vn),kn.months=k("months accessor is deprecated. Use month instead",Fe),kn.years=k("years accessor is deprecated. Use year instead",ze),kn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),kn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Mt(t))._a?(e=t._isUTC?p(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted});var On=M.prototype;function Tn(e,t,n,r){var o=pt(),i=p().set(r,t);return o[n](i,e)}function Cn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Tn(e,r,n,"month");return o}function En(e,t,n,r){"boolean"===typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),a=e?i._week.dow:0,s=[];if(null!=n)return Tn(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Tn(t,(o+a)%7,r,"day");return s}On.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},On.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},On.invalidDate=function(){return this._invalidDate},On.ordinal=function(e){return this._ordinal.replace("%d",e)},On.preparse=Sn,On.postformat=Sn,On.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return C(o)?o(e,t,n,r):o.replace(/%d/i,e)},On.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},On.set=function(e){var t,n;for(n in e)a(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},On.eras=function(e,t){var n,o,i,a=this._eras||pt("en")._eras;for(n=0,o=a.length;n=0)return u[r]},On.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},On.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||hn.call(this),e?this._erasAbbrRegex:this._erasRegex},On.erasNameRegex=function(e){return a(this,"_erasNameRegex")||hn.call(this),e?this._erasNameRegex:this._erasRegex},On.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||hn.call(this),e?this._erasNarrowRegex:this._erasRegex},On.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},On.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},On.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,a))?o:null:-1!==(o=we.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,a))?o:-1!==(o=we.call(this._longMonthsParse,a))?o:null:-1!==(o=we.call(this._longMonthsParse,a))?o:-1!==(o=we.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},On.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},On.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},On.week=function(e){return qe(e,this._week.dow,this._week.doy).week},On.firstDayOfYear=function(){return this._week.doy},On.firstDayOfWeek=function(){return this._week.dow},On.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ye(n,this._week.dow):e?n[e.day()]:n},On.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},On.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},On.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))?o:-1!==(o=we.call(this._shortWeekdaysParse,a))?o:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))?o:-1!==(o=we.call(this._weekdaysParse,a))?o:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))?o:-1!==(o=we.call(this._weekdaysParse,a))?o:-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},On.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},On.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},On.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},On.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},On.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===Y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",ft),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",pt);var Mn=Math.abs;function jn(e,t,n,r){var o=Kt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Dn(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var In=Rn("ms"),Nn=Rn("s"),Fn=Rn("m"),Ln=Rn("h"),Bn=Rn("d"),zn=Rn("w"),Wn=Rn("M"),Un=Rn("Q"),Hn=Rn("y");function qn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vn=qn("milliseconds"),Yn=qn("seconds"),Kn=qn("minutes"),Gn=qn("hours"),$n=qn("days"),Xn=qn("months"),Zn=qn("years"),Qn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},er=Math.abs;function tr(e){return(e>0)-(e<0)||+e}function nr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,u=er(this._milliseconds)/1e3,l=er(this._days),c=er(this._months),f=this.asSeconds();return f?(e=V(u/60),t=V(e/60),u%=60,e%=60,n=V(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=tr(this._months)!==tr(f)?"-":"",a=tr(this._days)!==tr(f)?"-":"",s=tr(this._milliseconds)!==tr(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var rr=Nt.prototype;return rr.isValid=function(){return this._isValid},rr.abs=function(){var e=this._data;return this._milliseconds=Mn(this._milliseconds),this._days=Mn(this._days),this._months=Mn(this._months),e.milliseconds=Mn(e.milliseconds),e.seconds=Mn(e.seconds),e.minutes=Mn(e.minutes),e.hours=Mn(e.hours),e.months=Mn(e.months),e.years=Mn(e.years),this},rr.add=function(e,t){return jn(this,e,t,1)},rr.subtract=function(e,t){return jn(this,e,t,-1)},rr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},rr.asMilliseconds=In,rr.asSeconds=Nn,rr.asMinutes=Fn,rr.asHours=Ln,rr.asDays=Bn,rr.asWeeks=zn,rr.asMonths=Wn,rr.asQuarters=Un,rr.asYears=Hn,rr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12):NaN},rr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Dn(An(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=V(i/1e3),u.seconds=e%60,t=V(e/60),u.minutes=t%60,n=V(t/60),u.hours=n%24,a+=V(n/24),o=V(Pn(a)),s+=o,a-=Dn(An(o)),r=V(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},rr.clone=function(){return Kt(this)},rr.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},rr.milliseconds=Vn,rr.seconds=Yn,rr.minutes=Kn,rr.hours=Gn,rr.days=$n,rr.weeks=function(){return V(this.days()/7)},rr.months=Xn,rr.years=Zn,rr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Jn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Kt(e).abs(),i=Qn(o.as("s")),a=Qn(o.as("m")),s=Qn(o.as("h")),u=Qn(o.as("d")),l=Qn(o.as("M")),c=Qn(o.as("w")),f=Qn(o.as("y")),d=i<=n.ss&&["s",i]||i0,d[4]=r,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,d)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},rr.toISOString=nr,rr.toString=nr,rr.toJSON=nr,rr.locale=nn,rr.localeData=on,rr.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nr),rr.lang=rn,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",le),pe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ve("x",function(e,t,n){n._d=new Date(Y(e))}),r.version="2.27.0",t=Dt,r.fn=kn,r.min=function(){return Rt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Rt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return Cn(e,t,"months")},r.isDate=c,r.locale=ft,r.invalid=m,r.duration=Kt,r.isMoment=x,r.weekdays=function(e,t,n){return En(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=pt,r.isDuration=Ft,r.monthsShort=function(e,t){return Cn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return En(e,t,n,"weekdaysMin")},r.defineLocale=dt,r.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=at[e]&&null!=at[e].parentLocale?at[e].set(E(at[e]._config,t)):(null!=(r=ct(e))&&(o=r._config),t=E(o,t),null==r&&(t.abbr=e),(n=new M(t)).parentLocale=at[e],at[e]=n),ft(e)}else null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===ft()&&ft(e)):null!=at[e]&&delete at[e]);return at[e]},r.locales=function(){return S(at)},r.weekdaysShort=function(e,t,n){return En(e,t,n,"weekdaysShort")},r.normalizeUnits=z,r.relativeTimeRounding=function(e){return void 0===e?Qn:"function"===typeof e&&(Qn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=kn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(127)(e))},function(e,t,n){var r=n(80),o=n(120);e.exports=n(90)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(266),o=n(190);e.exports=function(e){return r(o(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=w(n(19)),o=w(n(20)),i=w(n(12)),a=w(n(10)),s=w(n(11)),u=w(n(13)),l=w(n(14)),c=w(n(18)),f=n(0),d=w(f),p=w(n(1)),h=w(n(29)),y=w(n(71)),m=w(n(282)),v=(w(n(52)),w(n(43))),g=w(n(497)),b=w(n(498));function w(e){return e&&e.__esModule?e:{default:e}}var x={root:{display:"none"}},_=function(e){function t(e,n){(0,a.default)(this,t);var s=(0,u.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e,n));return s.timeout=null,s.renderLayer=function(){var e=s.props,t=e.animated,n=e.animation,i=(e.anchorEl,e.anchorOrigin,e.autoCloseWhenOffScreen,e.canAutoPosition,e.children),a=(e.onRequestClose,e.style),u=e.targetOrigin,l=(e.useLayerForClickAway,e.scrollableContainer,(0,o.default)(e,["animated","animation","anchorEl","anchorOrigin","autoCloseWhenOffScreen","canAutoPosition","children","onRequestClose","style","targetOrigin","useLayerForClickAway","scrollableContainer"])),f=a;if(!t)return f={position:"fixed",zIndex:s.context.muiTheme.zIndex.popover},s.state.open?d.default.createElement(v.default,(0,r.default)({style:(0,c.default)(f,a)},l),i):null;var p=n||b.default;return d.default.createElement(p,(0,r.default)({targetOrigin:u,style:f},l,{open:s.state.open&&!s.state.closing}),i)},s.componentClickAway=function(){s.requestClose("clickAway")},s.setPlacement=function(e){if(s.state.open&&s.popoverRefs.layer.getLayer()){var t=s.popoverRefs.layer.getLayer().children[0];if(t){var n=s.props,r=n.targetOrigin,o=n.anchorOrigin,i=s.props.anchorEl||s.anchorEl,a=s.getAnchorPosition(i),u=s.getTargetPosition(t),l={top:a[o.vertical]-u[r.vertical],left:a[o.horizontal]-u[r.horizontal]};e&&s.props.autoCloseWhenOffScreen&&s.autoCloseWhenOffScreen(a),s.props.canAutoPosition&&(u=s.getTargetPosition(t),l=s.applyAutoPositionIfNeeded(a,u,r,o,l)),t.style.top=l.top+"px",t.style.left=l.left+"px",t.style.maxHeight=window.innerHeight+"px"}}},s.handleResize=(0,g.default)(s.setPlacement,100),s.handleScroll=(0,g.default)(s.setPlacement.bind(s,!0),50),s.popoverRefs={},s.state={open:e.open,closing:!1},s}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.placementTimeout=setTimeout(this.setPlacement)}},{key:"componentWillReceiveProps",value:function(e){var t=this;if(e.open!==this.props.open)if(e.open)clearTimeout(this.timeout),this.timeout=null,this.anchorEl=e.anchorEl||this.props.anchorEl,this.setState({open:!0,closing:!1});else if(e.animated){if(null!==this.timeout)return;this.setState({closing:!0}),this.timeout=setTimeout(function(){t.setState({open:!1},function(){t.timeout=null})},500)}else this.setState({open:!1})}},{key:"componentDidUpdate",value:function(){clearTimeout(this.placementTimeout),this.placementTimeout=setTimeout(this.setPlacement)}},{key:"componentWillUnmount",value:function(){this.handleResize.cancel(),this.handleScroll.cancel(),this.placementTimeout&&(clearTimeout(this.placementTimeout),this.placementTimeout=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}},{key:"requestClose",value:function(e){this.props.onRequestClose&&this.props.onRequestClose(e)}},{key:"getAnchorPosition",value:function(e){e||(e=h.default.findDOMNode(this));var t=e.getBoundingClientRect(),n={top:t.top,left:t.left,width:e.offsetWidth,height:e.offsetHeight};return n.right=t.right||n.left+n.width,n.bottom=t.bottom||n.top+n.height,n.middle=n.left+(n.right-n.left)/2,n.center=n.top+(n.bottom-n.top)/2,n}},{key:"getTargetPosition",value:function(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}},{key:"autoCloseWhenOffScreen",value:function(e){(e.top<0||e.top>window.innerHeight||e.left<0||e.left>window.innerWidth)&&this.requestClose("offScreen")}},{key:"getOverlapMode",value:function(e,t,n){return[e,t].indexOf(n)>=0?"auto":e===t?"inclusive":"exclusive"}},{key:"getPositions",value:function(e,t){var n=(0,r.default)({},e),o=(0,r.default)({},t),i={x:["left","right"].filter(function(e){return e!==o.horizontal}),y:["top","bottom"].filter(function(e){return e!==o.vertical})},a=this.getOverlapMode(n.horizontal,o.horizontal,"middle"),s=this.getOverlapMode(n.vertical,o.vertical,"center");return i.x.splice("auto"===a?0:1,0,"middle"),i.y.splice("auto"===s?0:1,0,"center"),"auto"!==s&&(n.vertical="top"===n.vertical?"bottom":"top","inclusive"===s&&(o.vertical=o.vertical)),"auto"!==a&&(n.horizontal="left"===n.horizontal?"right":"left","inclusive"===s&&(o.horizontal=o.horizontal)),{positions:i,anchorPos:n}}},{key:"applyAutoPositionIfNeeded",value:function(e,t,n,r,o){var i=this.getPositions(r,n),a=i.positions,s=i.anchorPos;if(o.top<0||o.top+t.bottom>window.innerHeight){var u=e[s.vertical]-t[a.y[0]];u+t.bottom<=window.innerHeight?o.top=Math.max(0,u):(u=e[s.vertical]-t[a.y[1]])+t.bottom<=window.innerHeight&&(o.top=Math.max(0,u))}if(o.left<0||o.left+t.right>window.innerWidth){var l=e[s.horizontal]-t[a.x[0]];l+t.right<=window.innerWidth?o.left=Math.max(0,l):(l=e[s.horizontal]-t[a.x[1]])+t.right<=window.innerWidth&&(o.left=Math.max(0,l))}return o}},{key:"render",value:function(){var e=this,t=this.state.open?d.default.createElement(y.default,{target:this.props.scrollableContainer,onScroll:this.handleScroll,onResize:this.handleResize}):null;return d.default.createElement("div",{style:x.root},t,d.default.createElement(m.default,{ref:function(t){return e.popoverRefs.layer=t},open:this.state.open,componentClickAway:this.componentClickAway,useLayerForClickAway:this.props.useLayerForClickAway,render:this.renderLayer}))}}]),t}(f.Component);_.defaultProps={anchorOrigin:{vertical:"bottom",horizontal:"left"},animated:!0,autoCloseWhenOffScreen:!0,canAutoPosition:!0,onRequestClose:function(){},open:!1,scrollableContainer:"window",style:{overflowY:"auto"},targetOrigin:{vertical:"top",horizontal:"left"},useLayerForClickAway:!0,zDepth:1},_.contextTypes={muiTheme:p.default.object.isRequired},_.propTypes={},t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n)return[e,t];return e},e.exports=t.default},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){e.exports=!n(82)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(23),o=n(250);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(94),o=n(83),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(98);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(244);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(73),o=n(734);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(786)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(99)),o=c(n(30)),i=function(e){if(e&&e.__esModule)return e;var t=l();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n(0)),a=c(n(1)),s=c(n(26)),u=n(790);function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="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 d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(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 h(e){for(var t=1;t0&&e.getDay()===t&&(s(i),i=[]),i.push(e),n.indexOf(e)===n.length-1&&s(i)}),o}function w(e,t){var n=y(e),r=y(t);return n.getTime()r.getTime()}function _(e,t){var n=void 0;return n=12*(e.getFullYear()-t.getFullYear()),n+=e.getMonth(),n-=t.getMonth()}t.defaultUtils={getYear:l,setYear:c,addDays:f,addMonths:d,addYears:p,getFirstDayOfMonth:v,getWeekArray:b,monthDiff:_}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(19)),o=h(n(20)),i=h(n(12)),a=h(n(10)),s=h(n(11)),u=h(n(13)),l=h(n(14)),c=h(n(18)),f=n(0),d=h(f),p=h(n(1));function h(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e,n,r,o;(0,a.default)(this,t);for(var s=arguments.length,l=Array(s),c=0;c1&&void 0!==arguments[1]?arguments[1]:"ampm",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return"";var r=e.getHours(),o=e.getMinutes().toString();if("ampm"===t){var i=r<12,a=i?" am":" pm";return r=((r%=12)||12).toString(),o.length<2&&(o="0"+o),n&&"12"===r&&"00"===o?" pm"===a?"12 noon":"12 midnight":r+("00"===o?"":":"+o)+a}(r=r.toString()).length<2&&(r="0"+r);o.length<2&&(o="0"+o);return r+":"+o},t.rad2deg=function(e){return 57.29577951308232*e},t.getTouchEventOffsetValues=function(e){var t=e.target.getBoundingClientRect();return{offsetX:e.clientX-t.left,offsetY:e.clientY-t.top}},t.isInner=function(e){if("hour"!==e.type)return!1;return e.value<1||e.value>12}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(66).Symbol;e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n=0;)t=u[n],Object(o.a)(t,e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r}):Object(r.a)(function(e){return Object(e)!==e?[]:Object.keys(e)});t.a=f},function(e,t,n){var r=n(357),o=n(766),i=n(112);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(357),o=n(767),i=n(112);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=x(n(19)),o=x(n(20)),i=x(n(278)),a=x(n(12)),s=x(n(10)),u=x(n(11)),l=x(n(13)),c=x(n(14)),f=x(n(18)),d=n(0),p=x(d),h=x(n(1)),y=x(n(29)),m=x(n(92)),v=x(n(202)),g=x(n(57)),b=(x(n(52)),x(n(203))),w=n(494);function x(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e,n){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e,n));k.call(r);var o=r.getFilteredChildren(e.children),i=r.getLastSelectedIndex(e,o),u=e.disableAutoFocus?-1:i>=0?i:0;return-1!==u&&e.onMenuItemFocusChange&&e.onMenuItemFocusChange(null,u),r.state={focusIndex:u,isKeyboardFocused:e.initiallyKeyboardFocused,keyWidth:e.desktop?64:56},r.hotKeyHolder=new w.HotKeyHolder,r}return(0,c.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.props.autoWidth&&this.setWidth(),this.setScollPosition()}},{key:"componentWillReceiveProps",value:function(e){var t=void 0,n=this.getFilteredChildren(e.children);t=!0!==this.props.multiple?this.getLastSelectedIndex(e,n):this.state.focusIndex;var r=e.disableAutoFocus?-1:t>=0?t:0;r!==this.state.focusIndex&&this.props.onMenuItemFocusChange&&this.props.onMenuItemFocusChange(null,r),this.setState({focusIndex:r,keyWidth:e.desktop?64:56})}},{key:"shouldComponentUpdate",value:function(e,t,n){return!(0,m.default)(this.props,e)||!(0,m.default)(this.state,t)||!(0,m.default)(this.context,n)}},{key:"componentDidUpdate",value:function(){this.props.autoWidth&&this.setWidth()}},{key:"getValueLink",value:function(e){return e.valueLink||{value:e.value,requestChange:e.onChange}}},{key:"setKeyboardFocused",value:function(e){this.setState({isKeyboardFocused:e})}},{key:"getFilteredChildren",value:function(e){var t=[];return p.default.Children.forEach(e,function(e){e&&t.push(e)}),t}},{key:"cloneMenuItem",value:function(e,t,n,r){var o=this,i=e.props.disabled,a={};i||this.isChildSelected(e,this.props)&&(0,f.default)(a,n.selectedMenuItem,this.props.selectedMenuItemStyle);var s=(0,f.default)({},e.props.style,this.props.menuItemStyle,a),u={desktop:this.props.desktop,style:s};if(!i){var l=t===this.state.focusIndex,c="none";l&&(c=this.state.isKeyboardFocused?"keyboard-focused":"focused"),(0,f.default)(u,{focusState:c,onClick:function(t){o.handleMenuItemClick(t,e,r),e.props.onClick&&e.props.onClick(t)},ref:l?"focusedMenuItem":null})}return p.default.cloneElement(e,u)}},{key:"decrementKeyboardFocusIndex",value:function(e){var t=this.state.focusIndex;--t<0&&(t=0),this.setFocusIndex(e,t,!0)}},{key:"getMenuItemCount",value:function(e){var t=0;return e.forEach(function(e){var n=e.type&&"Divider"===e.type.muiName,r=e.props.disabled;n||r||t++}),t}},{key:"getLastSelectedIndex",value:function(e,t){var n=this,r=-1,o=0;return t.forEach(function(t){var i=t.type&&"Divider"===t.type.muiName;n.isChildSelected(t,e)&&(r=o),i||o++}),r}},{key:"setFocusIndexStartsWith",value:function(e,t,n){var r=-1;return p.default.Children.forEach(n,function(e,n){if(!(r>=0)){var o=e.props.primaryText;"string"===typeof o&&o.substr(0,t.length).toLowerCase()===t.toLowerCase()&&(r=n)}}),r>=0&&(this.setFocusIndex(e,r,!0),!0)}},{key:"handleMenuItemClick",value:function(e,t,n){var r=this.props.children,o=this.props.multiple,a=this.getValueLink(this.props),s=a.value,u=t.props.value,l=p.default.isValidElement(r)?0:r.indexOf(t);if(this.setFocusIndex(e,l,!1),o){var c=(s=s||[]).indexOf(u),f=s,d=(0,i.default)(f).slice(0);-1===c?d.push(u):d.splice(c,1),a.requestChange(e,d)}else o||u===s||a.requestChange(e,u);this.props.onItemClick(e,t,n)}},{key:"incrementKeyboardFocusIndex",value:function(e,t){var n=this.state.focusIndex,r=this.getMenuItemCount(t)-1;++n>r&&(n=r),this.setFocusIndex(e,n,!0)}},{key:"isChildSelected",value:function(e,t){var n=this.getValueLink(t).value,r=e.props.value;return t.multiple?n&&n.length&&-1!==n.indexOf(r):e.props.hasOwnProperty("value")&&n===r}},{key:"setFocusIndex",value:function(e,t,n){this.props.onMenuItemFocusChange&&this.props.onMenuItemFocusChange(e,t),this.setState({focusIndex:t,isKeyboardFocused:n})}},{key:"setScollPosition",value:function(){var e=this.props.desktop,t=this.refs.focusedMenuItem,n=e?32:48;if(t){var r=y.default.findDOMNode(t).offsetTop-n;r0||e.setFocusIndex(t,-1,!1)}}},this.handleKeyDown=function(t){var n=e.getFilteredChildren(e.props.children),r=(0,g.default)(t);switch(r){case"down":t.preventDefault(),e.incrementKeyboardFocusIndex(t,n);break;case"esc":e.props.onEscKeyDown(t);break;case"tab":t.preventDefault(),t.shiftKey?e.decrementKeyboardFocusIndex(t):e.incrementKeyboardFocusIndex(t,n);break;case"up":t.preventDefault(),e.decrementKeyboardFocusIndex(t);break;default:if(r&&1===r.length){var o=e.hotKeyHolder.append(r);e.setFocusIndexStartsWith(t,o,n)&&t.preventDefault()}}e.props.onKeyDown(t)},this.handleOnWheel=function(t){var n=e.refs.scrollContainer;if(!(n.scrollHeight<=n.clientHeight)){var r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=t.deltaY,s=a>0;return s&&a>o-i-r?(n.scrollTop=o,e.cancelScrollEvent(t)):!s&&-a>r?(n.scrollTop=0,e.cancelScrollEvent(t)):void 0}}};_.propTypes={},t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={once:function(e,t,n){for(var r=t?t.split(" "):[],o=function e(t){return t.target.removeEventListener(t.type,e),n(t)},i=r.length-1;i>=0;i--)this.on(e,r[i],o)},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,function(){n.call(e)})},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)},isKeyboard:function(e){return-1!==["keydown","keypress","keyup"].indexOf(e.type)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(505),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=k(n(20)),o=k(n(19)),i=k(n(12)),a=k(n(10)),s=k(n(11)),u=k(n(13)),l=k(n(14)),c=k(n(18)),f=n(0),d=k(f),p=k(n(1)),h=k(n(29)),y=k(n(92)),m=n(81),v=k(n(28)),g=k(n(59)),b=k(n(31)),w=k(n(507)),x=k(n(508)),_=k(n(509));function k(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(){var e,n,r,s;(0,a.default)(this,t);for(var l=arguments.length,c=Array(l),f=0;f1;return{root:{backgroundColor:!(void 0!==e.isKeyboardFocused?e:n).isKeyboardFocused&&!n.hovered||n.rightIconButtonHovered||n.rightIconButtonKeyboardFocused?null:x,color:w,display:"block",fontSize:16,lineHeight:"16px",position:"relative",transition:v.default.easeOut()},innerDiv:{marginLeft:l*b.nestedLevelDepth,paddingLeft:s||i||a||o?72:16,paddingRight:f||c||d||u.length&&r?56:p?72:16,paddingBottom:_?20:16,paddingTop:k||O?16:20,position:"relative"},icons:{height:24,width:24,display:"block",position:"absolute",top:S?12:_?4:0,margin:12},leftIcon:{left:4},rightIcon:{right:4},avatars:{position:"absolute",top:_?8:16},label:{cursor:"pointer"},leftAvatar:{left:16},rightAvatar:{right:16},leftCheckbox:{position:"absolute",display:"block",width:24,top:S?24:_?16:12,left:16},primaryText:{},rightIconButton:{position:"absolute",display:"block",top:S?12:_?4:0,right:4},rightToggle:{position:"absolute",display:"block",width:54,top:S?25:_?17:13,right:8},secondaryText:{fontSize:14,lineHeight:O?"18px":"16px",height:O?36:16,margin:0,marginTop:4,color:b.secondaryTextColor,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:O?null:"nowrap",display:O?"-webkit-box":null,WebkitLineClamp:O?2:null,WebkitBoxOrient:O?"vertical":null}}}(this.props,this.context,this.state),N=[i];if(h){var F={color:h.props.color||this.context.muiTheme.listItem.leftIconColor};this.pushElement(N,h,(0,c.default)({},I.icons,I.leftIcon),F)}if(T){var L={color:T.props.color||this.context.muiTheme.listItem.rightIconColor};this.pushElement(N,T,(0,c.default)({},I.icons,I.rightIcon),L)}f&&this.pushElement(N,f,(0,c.default)({},I.avatars,I.leftAvatar)),O&&this.pushElement(N,O,(0,c.default)({},I.avatars,I.rightAvatar)),p&&this.pushElement(N,p,(0,c.default)({},I.leftCheckbox));var B=y.length&&n&&!(O||T||C||E);if(C||B){var z=C,W={onKeyboardFocus:this.handleRightIconButtonKeyboardFocus,onMouseEnter:this.handleRightIconButtonMouseEnter,onMouseLeave:this.handleRightIconButtonMouseLeave,onClick:this.handleRightIconButtonClick,onMouseDown:this.handleRightIconButtonMouseUp,onMouseUp:this.handleRightIconButtonMouseUp};B&&(z=this.state.open?d.default.createElement(b.default,null,d.default.createElement(w.default,null)):d.default.createElement(b.default,null,d.default.createElement(x.default,null)),W.onClick=this.handleNestedListToggle),this.pushElement(N,z,(0,c.default)({},I.rightIconButton),W)}if(E&&this.pushElement(N,E,(0,c.default)({},I.rightToggle)),M){var U=this.createTextElement(I.primaryText,M,"primaryText");N.push(U)}if(D){var H=this.createTextElement(I.secondaryText,D,"secondaryText");N.push(H)}var q=y.length?d.default.createElement(_.default,{nestedLevel:k,open:this.state.open,style:S},y):void 0,V=!j&&(p||E);return d.default.createElement("div",null,V?this.createLabelElement(I,N,A):s?this.createDisabledElement(I,N,A):d.default.createElement(g.default,(0,o.default)({containerElement:a},A,{disableKeyboardFocus:u||this.state.rightIconButtonKeyboardFocused,onKeyboardFocus:this.handleKeyboardFocus,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onClick:this.handleClick,disabled:s,ref:function(t){return e.button=t},style:(0,c.default)({},I.root,P)}),d.default.createElement("div",{style:R((0,c.default)(I.innerDiv,l))},N)),q)}}]),t}(f.Component);S.muiName="ListItem",S.defaultProps={autoGenerateNestedIndicator:!0,containerElement:"span",disableKeyboardFocus:!1,disabled:!1,initiallyOpen:!1,insetChildren:!1,nestedItems:[],nestedLevel:0,onKeyboardFocus:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onNestedListToggle:function(){},onTouchEnd:function(){},onTouchStart:function(){},open:null,primaryTogglesNestedList:!1,secondaryTextLines:1},S.contextTypes={muiTheme:p.default.object.isRequired},S.propTypes={},t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(19)),o=y(n(20)),i=y(n(12)),a=y(n(10)),s=y(n(11)),u=y(n(13)),l=y(n(14)),c=y(n(18)),f=n(0),d=y(f),p=y(n(1)),h=y(n(285));function y(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(){var e,n,r,o;(0,a.default)(this,t);for(var s=arguments.length,l=Array(s),c=0;c0?r:n)(e)}},function(e,t,n){var r=n(670),o=n(671),i=n(672),a=n(673),s=n(674);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});t.a=a},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(74);t.a="function"===typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n or withRouter() outside a ");var l=t.route,c=(r||l.location).pathname;return Object(f.a)(c,{path:o,strict:i,exact:s,sensitive:u},l.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,s=i.route,l=i.staticContext,c={match:e,location:this.props.location||s.location,history:a,staticContext:l};return r?e?u.a.createElement(r,c):null:o?e?o(c):null:"function"===typeof n?n(c):n&&!h(n)?u.a.Children.only(n):null},t}(u.a.Component);y.propTypes={computedMatch:c.a.object,path:c.a.string,exact:c.a.bool,strict:c.a.bool,sensitive:c.a.bool,component:c.a.func,render:c.a.func,children:c.a.oneOfType([c.a.func,c.a.node]),location:c.a.object},y.contextTypes={router:c.a.shape({history:c.a.object.isRequired,route:c.a.object.isRequired,staticContext:c.a.object})},y.childContextTypes={router:c.a.object.isRequired},t.a=y},function(e,t,n){"use strict";var r=n(165),o=n.n(r),i={},a=0;t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"===typeof t&&(t={path:t});var r=t,s=r.path,u=r.exact,l=void 0!==u&&u,c=r.strict,f=void 0!==c&&c,d=r.sensitive;if(null==s)return n;var p=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var s=[],u={re:o()(e,s,t),keys:s};return a<1e4&&(r[e]=u,a++),u}(s,{end:l,strict:f,sensitive:void 0!==d&&d}),h=p.re,y=p.keys,m=h.exec(e);if(!m)return null;var v=m[0],g=m.slice(1),b=e===v;return l&&!b?null:{path:s,url:"/"===s&&""===v?"/":v,isExact:b,params:y.reduce(function(e,t,n){return e[t.name]=g[n],e},{})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=a(n(36)),i=a(n(35));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(i.default,e,r.default.createElement("path",{d:"M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"}))};(s=(0,o.default)(s)).displayName="EditorPieChart",s.muiName="SvgIcon",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=a(n(36)),i=a(n(35));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return r.default.createElement(i.default,e,r.default.createElement("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}))};(s=(0,o.default)(s)).displayName="ImageTune",s.muiName="SvgIcon",t.default=s},function(e,t,n){"use strict";var r=n(25);function o(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function i(e,t,n){for(var r=0,o=n.length;r=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":return e.size===t.size&&c(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&c(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=Object(u.a)(e);if(d.length!==Object(u.a)(t).length)return!1;var p=n.concat([e]),h=r.concat([t]);for(i=d.length-1;i>=0;){var y=d[i];if(!Object(a.a)(y,t)||!f(t[y],e[y],p,h))return!1;i-=1}return!0}var d=Object(r.a)(function(e,t){return f(e,t,[],[])});t.a=d},function(e,t,n){"use strict";var r=n(168),o=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var i=n(25),a=Object(i.a)(function(e,t){return function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,u){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,u,l){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,u,l,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(e.length,function(){return e.apply(t,arguments)})});function s(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function u(e,t,n,r){return e["@@transducer/result"](n[r](a(e["@@transducer/step"],e),t))}n.d(t,"a",function(){return c});var l="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function c(e,t,n){if("function"===typeof e&&(e=function(e){return new o(e)}(e)),Object(r.a)(n))return function(e,t,n){for(var r=0,o=n.length;r=1&&(delete n[s],u.s=1,a--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(u)),u.update()}t=!!a&&r(o)}else t||(t=r(o))},m=function e(t,r,o,s,m,v,g){var b={id:a+(i++).toString(36),start:t,end:r,b:o,s:0,dur:s-o,spd:1,get:m,set:v,easing:g||e.linear,status:u,speed:l,duration:c,stop:f,pause:d,resume:p,update:h};n[b.id]=b;var w,x=0;for(w in n)if(n.hasOwnProperty(w)&&2==++x)break;return 1==x&&y(),b};return m.time=s,m.getById=function(e){return n[e]||null},m.linear=function(e){return e},m.easeout=function(e){return Math.pow(e,1.7)},m.easein=function(e){return Math.pow(e,.48)},m.easeinout=function(e){if(1==e)return 1;if(0==e)return 0;var t=.48-e/1.04,n=Math.sqrt(.1734+t*t),r=n-t,o=-n-t,i=Math.pow(Math.abs(r),1/3)*(r<0?-1:1)+Math.pow(Math.abs(o),1/3)*(o<0?-1:1)+.5;return 3*(1-i)*i*i+i*i*i},m.backin=function(e){if(1==e)return 1;var t=1.70158;return e*e*((t+1)*e-t)},m.backout=function(e){if(0==e)return 0;var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},m.elastic=function(e){return e==!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1},m.bounce=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},window.mina=m,m}("undefined"==typeof eve?function(){}:eve),o=function(e){function t(e,r){if(e){if(e.nodeType)return q(e);if(E(e,"array")&&t.set)return t.set.apply(t,e);if(e instanceof z)return e;if(null==r)try{return q(e=n.doc.querySelector(String(e)))}catch(o){return null}}return new H(e=null==e?"100%":e,r=null==r?"100%":r)}t.version="0.5.1",t.toString=function(){return"Snap v"+this.version},t._={};var n={win:e.window,doc:e.window.document};t._.glob=n;var r="hasOwnProperty",o=String,i=parseFloat,a=parseInt,s=Math,u=s.max,l=s.min,c=s.abs,f=(s.pow,s.PI),d=(s.round,""),p=Object.prototype.toString,h=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,y=(t._.separator=/[,\s]+/,/[\s]*,[\s]*/),m={hs:1,rg:1},v=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,b=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,w=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,x=0,_="S"+(+new Date).toString(36),k=function(e){return(e&&e.type?e.type:d)+_+(x++).toString(36)},S="http://www.w3.org/1999/xlink",O="http://www.w3.org/2000/svg",T={};t.url=function(e){return"url('#"+e+"')"};function C(e,t){if(t){if("#text"==e&&(e=n.doc.createTextNode(t.text||t["#text"]||"")),"#comment"==e&&(e=n.doc.createComment(t.text||t["#text"]||"")),"string"==typeof e&&(e=C(e)),"string"==typeof t)return 1==e.nodeType?"xlink:"==t.substring(0,6)?e.getAttributeNS(S,t.substring(6)):"xml:"==t.substring(0,4)?e.getAttributeNS(O,t.substring(4)):e.getAttribute(t):"text"==t?e.nodeValue:null;if(1==e.nodeType){for(var i in t)if(t[r](i)){var a=o(t[i]);a?"xlink:"==i.substring(0,6)?e.setAttributeNS(S,i.substring(6),a):"xml:"==i.substring(0,4)?e.setAttributeNS(O,i.substring(4),a):e.setAttribute(i,a):e.removeAttribute(i)}}else"text"in t&&(e.nodeValue=t.text)}else e=n.doc.createElementNS(O,e);return e}function E(e,t){return"finite"==(t=o.prototype.toLowerCase.call(t))?isFinite(e):!("array"!=t||!(e instanceof Array||Array.isArray&&Array.isArray(e)))||("null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||p.call(e).slice(8,-1).toLowerCase()==t)}function M(e,t,n){return function o(){var i=Array.prototype.slice.call(arguments,0),a=i.join("\u2400"),s=o.cache=o.cache||{},u=o.count=o.count||[];return s[r](a)?(function(e,t){for(var n=0,r=e.length;n=1e3&&delete s[u.shift()],u.push(a),s[a]=e.apply(t,i),n?n(s[a]):s[a])}}function j(e){return e%360*f/180}t._.$=C,t._.id=k,t.format=function(){var e=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;return function(n,r){return o(n).replace(e,function(e,n){return function(e,n,r){var o=r;return n.replace(t,function(e,t,n,r,i){t=t||r,o&&(t in o&&(o=o[t]),"function"==typeof o&&i&&(o=o()))}),o=(null==o||o==r?e:o)+""}(e,n,r)})}}(),t._.clone=function e(t){if("function"==typeof t||Object(t)!==t)return t;var n=new t.constructor;for(var o in t)t[r](o)&&(n[o]=e(t[o]));return n},t._.cacher=M,t.rad=j,t.deg=function(e){return 180*e/f%360},t.sin=function(e){return s.sin(t.rad(e))},t.tan=function(e){return s.tan(t.rad(e))},t.cos=function(e){return s.cos(t.rad(e))},t.asin=function(e){return t.deg(s.asin(e))},t.acos=function(e){return t.deg(s.acos(e))},t.atan=function(e){return t.deg(s.atan(e))},t.atan2=function(e){return t.deg(s.atan2(e))},t.angle=function e(t,n,r,o,i,a){if(null==i){var u=t-r,l=n-o;return u||l?(180+180*s.atan2(-l,-u)/f+360)%360:0}return e(t,n,i,a)-e(r,o,i,a)},t.len=function(e,n,r,o){return Math.sqrt(t.len2(e,n,r,o))},t.len2=function(e,t,n,r){return(e-n)*(e-n)+(t-r)*(t-r)},t.closestPoint=function(e,t,n){function r(e){var r=e.x-t,o=e.y-n;return r*r+o*o}for(var o,i,a,s,u=e.node,l=u.getTotalLength(),c=l/u.pathSegList.numberOfItems*.125,f=1/0,d=0;d<=l;d+=c)(s=r(a=u.getPointAtLength(d))).5;){var p,h,y,m,v,g;(y=i-c)>=0&&(v=r(p=u.getPointAtLength(y)))e-n)return t-o+e}return t},t.getRGB=M(function(e){if(!e||(e=o(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:R};if(!m[r](e.toLowerCase().substring(0,2))&&"#"!=e.charAt()&&(e=D(e)),!e)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R};var n,c,f,d,p,v,g=e.match(h);return g?(g[2]&&(f=a(g[2].substring(5),16),c=a(g[2].substring(3,5),16),n=a(g[2].substring(1,3),16)),g[3]&&(f=a((p=g[3].charAt(3))+p,16),c=a((p=g[3].charAt(2))+p,16),n=a((p=g[3].charAt(1))+p,16)),g[4]&&(v=g[4].split(y),n=i(v[0]),"%"==v[0].slice(-1)&&(n*=2.55),c=i(v[1]),"%"==v[1].slice(-1)&&(c*=2.55),f=i(v[2]),"%"==v[2].slice(-1)&&(f*=2.55),"rgba"==g[1].toLowerCase().slice(0,4)&&(d=i(v[3])),v[3]&&"%"==v[3].slice(-1)&&(d/=100)),g[5]?(v=g[5].split(y),n=i(v[0]),"%"==v[0].slice(-1)&&(n/=100),c=i(v[1]),"%"==v[1].slice(-1)&&(c/=100),f=i(v[2]),"%"==v[2].slice(-1)&&(f/=100),("deg"==v[0].slice(-3)||"\xb0"==v[0].slice(-1))&&(n/=360),"hsba"==g[1].toLowerCase().slice(0,4)&&(d=i(v[3])),v[3]&&"%"==v[3].slice(-1)&&(d/=100),t.hsb2rgb(n,c,f,d)):g[6]?(v=g[6].split(y),n=i(v[0]),"%"==v[0].slice(-1)&&(n/=100),c=i(v[1]),"%"==v[1].slice(-1)&&(c/=100),f=i(v[2]),"%"==v[2].slice(-1)&&(f/=100),("deg"==v[0].slice(-3)||"\xb0"==v[0].slice(-1))&&(n/=360),"hsla"==g[1].toLowerCase().slice(0,4)&&(d=i(v[3])),v[3]&&"%"==v[3].slice(-1)&&(d/=100),t.hsl2rgb(n,c,f,d)):(n=l(s.round(n),255),c=l(s.round(c),255),f=l(s.round(f),255),d=l(u(d,0),1),(g={r:n,g:c,b:f,toString:R}).hex="#"+(16777216|f|c<<8|n<<16).toString(16).slice(1),g.opacity=E(d,"finite")?d:1,g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R}},t),t.hsb=M(function(e,n,r){return t.hsb2rgb(e,n,r).hex}),t.hsl=M(function(e,n,r){return t.hsl2rgb(e,n,r).hex}),t.rgb=M(function(e,t,n,r){if(E(r,"finite")){var o=s.round;return"rgba("+[o(e),o(t),o(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|t<<8|e<<16).toString(16).slice(1)});var D=function(e){var t=n.doc.getElementsByTagName("head")[0]||n.doc.getElementsByTagName("svg")[0],r="rgb(255, 0, 0)";return(D=M(function(e){if("red"==e.toLowerCase())return r;t.style.color=r,t.style.color=e;var o=n.doc.defaultView.getComputedStyle(t,d).getPropertyValue("color");return o==r?null:o}))(e)},P=function(){return"hsb("+[this.h,this.s,this.b]+")"},A=function(){return"hsl("+[this.h,this.s,this.l]+")"},R=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},I=function(e,n,r){if(null==n&&E(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(r=e.b,n=e.g,e=e.r),null==n&&E(e,string)){var o=t.getRGB(e);e=o.r,n=o.g,r=o.b}return(e>1||n>1||r>1)&&(e/=255,n/=255,r/=255),[e,n,r]},N=function(e,n,r,o){var i={r:e=s.round(255*e),g:n=s.round(255*n),b:r=s.round(255*r),opacity:E(o,"finite")?o:1,hex:t.rgb(e,n,r),toString:R};return E(o,"finite")&&(i.opacity=o),i};t.color=function(e){var n;return E(e,"object")&&"h"in e&&"s"in e&&"b"in e?(n=t.hsb2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.opacity=1,e.hex=n.hex):E(e,"object")&&"h"in e&&"s"in e&&"l"in e?(n=t.hsl2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.opacity=1,e.hex=n.hex):(E(e,"string")&&(e=t.getRGB(e)),E(e,"object")&&"r"in e&&"g"in e&&"b"in e&&!("error"in e)?(n=t.rgb2hsl(e),e.h=n.h,e.s=n.s,e.l=n.l,n=t.rgb2hsb(e),e.v=n.b):((e={hex:"none"}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1,e.error=1)),e.toString=R,e},t.hsb2rgb=function(e,t,n,r){var o,i,a,s,u;return E(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(n=e.b,t=e.s,r=e.o,e=e.h),s=(u=n*t)*(1-c((e=(e*=360)%360/60)%2-1)),o=i=a=n-u,N(o+=[u,s,0,0,s,u][e=~~e],i+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],r)},t.hsl2rgb=function(e,t,n,r){var o,i,a,s,u;return E(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),s=(u=2*t*(n<.5?n:1-n))*(1-c((e=(e*=360)%360/60)%2-1)),o=i=a=n-u/2,N(o+=[u,s,0,0,s,u][e=~~e],i+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],r)},t.rgb2hsb=function(e,t,n){var r,o;return e=(n=I(e,t,n))[0],t=n[1],n=n[2],{h:((0==(o=(r=u(e,t,n))-l(e,t,n))?null:r==e?(t-n)/o:r==t?(n-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:0==o?0:o/r,b:r,toString:P}},t.rgb2hsl=function(e,t,n){var r,o,i,a;return e=(n=I(e,t,n))[0],t=n[1],n=n[2],r=((o=u(e,t,n))+(i=l(e,t,n)))/2,{h:((0==(a=o-i)?null:o==e?(t-n)/a:o==t?(n-e)/a+2:(e-t)/a+4)+360)%6*60/360,s:0==a?0:r<.5?a/(2*r):a/(2-2*r),l:r,toString:A}},t.parsePathString=function(e){if(!e)return null;var n=t.path(e);if(n.arr)return t.path.clone(n.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return E(e,"array")&&E(e[0],"array")&&(i=t.path.clone(e)),i.length||o(e).replace(v,function(e,t,n){var o=[],a=t.toLowerCase();if(n.replace(w,function(e,t){t&&o.push(+t)}),"m"==a&&o.length>2&&(i.push([t].concat(o.splice(0,2))),a="l",t="m"==t?"l":"L"),"o"==a&&1==o.length&&i.push([t,o[0]]),"r"==a)i.push([t].concat(o));else for(;o.length>=r[a]&&(i.push([t].concat(o.splice(0,r[a]))),r[a]););}),i.toString=t.path.toString,n.arr=t.path.clone(i),i};var F=t.parseTransformString=function(e){if(!e)return null;var n=[];return E(e,"array")&&E(e[0],"array")&&(n=t.path.clone(e)),n.length||o(e).replace(b,function(e,t,r){var o=[];t.toLowerCase();r.replace(w,function(e,t){t&&o.push(+t)}),n.push([t].concat(o))}),n.toString=t.path.toString,n};t._.svgTransform2string=function(e){var t=[];return e=e.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(e,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?t.push(["m",1,0,s.tan(j(r[0])),1,0,0]):"skewY"==n?t.push(["m",1,s.tan(j(r[0])),0,1,0,0]):t.push([n.charAt(0)].concat(r)),e}),t},t._.rgTransform=/^[a-z][\s]*-?\.?\d/i,t._.transform2matrix=function(e,n){var r=F(e),i=new t.Matrix;if(r)for(var a=0,s=r.length;a1))return eve("snap.util.getattr."+e,this).firstDefined();var u={};u[e]=t,e=u}for(var l in e)e[r](l)&&eve("snap.util.attr."+l,this,e[l]);return this},t.parse=function(e){var t=n.doc.createDocumentFragment(),r=!0,i=n.doc.createElement("div");if((e=o(e)).match(/^\s*<\s*svg(?:\s|>)/)||(e=""+e+"",r=!1),i.innerHTML=e,e=i.getElementsByTagName("svg")[0])if(r)t=e;else for(;e.firstChild;)t.appendChild(e.firstChild);return new W(t)},t.fragment=function(){for(var e=Array.prototype.slice.call(arguments,0),r=n.doc.createDocumentFragment(),o=0,i=e.length;o")}else e&&(t+="/>");return t}}i.data=function(t,n){var r=y[this.id]=y[this.id]||{};if(0==arguments.length)return eve("snap.data.get."+this.id,this,r,null),r;if(1==arguments.length){if(e.is(t,"object")){for(var o in t)t.hasOwnProperty(o)&&this.data(o,t[o]);return this}return eve("snap.data.get."+this.id,this,r[t],t),r[t]}return r[t]=n,eve("snap.data.set."+this.id,this,n,t),this},i.removeData=function(e){return null==e?y[this.id]={}:y[this.id]&&delete y[this.id][e],this},i.outerSVG=i.toString=m(1),i.innerSVG=m(),i.toDataURL=function(){if(window&&window.btoa){var t=this.getBBox(),n=e.format('{contents}',{x:+t.x.toFixed(3),y:+t.y.toFixed(3),width:+t.width.toFixed(3),height:+t.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))}},o.prototype.select=i.select,o.prototype.selectAll=i.selectAll}),o.plugin(function(e,t,n,r,o){var i=Object.prototype.toString,a=String,s=Math;function u(e,t,n,r,o,a){if(null==t&&"[object SVGMatrix]"==i.call(e))return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.e=e.e,void(this.f=e.f);null!=e?(this.a=+e,this.b=+t,this.c=+n,this.d=+r,this.e=+o,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}!function(t){function n(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var t=s.sqrt(n(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}t.add=function(e,t,n,r,o,i){if(e&&e instanceof u)return this.add(e.a,e.b,e.c,e.d,e.e,e.f);var a=e*this.a+t*this.c,s=e*this.b+t*this.d;return this.e+=o*this.a+i*this.c,this.f+=o*this.b+i*this.d,this.c=n*this.a+r*this.c,this.d=n*this.b+r*this.d,this.a=a,this.b=s,this},u.prototype.multLeft=function(e,t,n,r,o,i){if(e&&e instanceof u)return this.multLeft(e.a,e.b,e.c,e.d,e.e,e.f);var a=e*this.a+n*this.b,s=e*this.c+n*this.d,l=e*this.e+n*this.f+o;return this.b=t*this.a+r*this.b,this.d=t*this.c+r*this.d,this.f=t*this.e+r*this.f+i,this.a=a,this.c=s,this.e=l,this},t.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new u(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},t.clone=function(){return new u(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(e,t){return this.e+=e*this.a+t*this.c,this.f+=e*this.b+t*this.d,this},t.scale=function(e,t,n,r){return null==t&&(t=e),(n||r)&&this.translate(n,r),this.a*=e,this.b*=e,this.c*=t,this.d*=t,(n||r)&&this.translate(-n,-r),this},t.rotate=function(t,n,r){t=e.rad(t),n=n||0,r=r||0;var o=+s.cos(t).toFixed(9),i=+s.sin(t).toFixed(9);return this.add(o,i,-i,o,n,r),this.add(1,0,0,1,-n,-r)},t.skewX=function(e){return this.skew(e,0)},t.skewY=function(e){return this.skew(0,e)},t.skew=function(t,n){t=t||0,n=n||0,t=e.rad(t),n=e.rad(n);var r=s.tan(t).toFixed(9),o=s.tan(n).toFixed(9);return this.add(1,o,r,1,0,0)},t.x=function(e,t){return e*this.a+t*this.c+this.e},t.y=function(e,t){return e*this.b+t*this.d+this.f},t.get=function(e){return+this[a.fromCharCode(97+e)].toFixed(4)},t.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.determinant=function(){return this.a*this.d-this.b*this.c},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var o=[[this.a,this.b],[this.c,this.d]];t.scalex=s.sqrt(n(o[0])),r(o[0]),t.shear=o[0][0]*o[1][0]+o[0][1]*o[1][1],o[1]=[o[1][0]-o[0][0]*t.shear,o[1][1]-o[0][1]*t.shear],t.scaley=s.sqrt(n(o[1])),r(o[1]),t.shear/=t.scaley,this.determinant()<0&&(t.scalex=-t.scalex);var i=o[0][1],a=o[1][1];return a<0?(t.rotate=e.deg(s.acos(a)),i<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(s.asin(i)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(e){var t=e||this.split();return+t.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:"")+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:"")+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:""))}}(u.prototype),e.Matrix=u,e.matrix=function(e,t,n,r,o,i){return new u(e,t,n,r,o,i)}}),o.plugin(function(e,t,n,r,o){var i,a=e._.make,s=e._.wrap,u=e.is,l=e._.getSomeDefs,c=/^url\((['"]?)([^)]+)\1\)$/,f=e._.$,d=e.url,p=String,h=e._.separator,y="";function m(n){return function(r){if(eve.stop(),r instanceof o&&1==r.node.childNodes.length&&("radialGradient"==r.node.firstChild.tagName||"linearGradient"==r.node.firstChild.tagName||"pattern"==r.node.firstChild.tagName)&&(r=r.node.firstChild,l(this).appendChild(r),r=s(r)),r instanceof t)if("radialGradient"==r.type||"linearGradient"==r.type||"pattern"==r.type){r.node.id||f(r.node,{id:r.id});var i=d(r.node.id)}else i=r.attr(n);else if((i=e.color(r)).error){var a=e(l(this).ownerSVGElement).gradient(r);a?(a.node.id||f(a.node,{id:a.id}),i=d(a.node.id)):i=r}else i=p(i);var u={};u[n]=i,f(this.node,u),this.node.style[n]=y}}e.deurl=function(e){var t=String(e).match(c);return t?t[2]:e},eve.on("snap.util.attr.mask",function(e){if(e instanceof t||e instanceof o){if(eve.stop(),e instanceof o&&1==e.node.childNodes.length&&(e=e.node.firstChild,l(this).appendChild(e),e=s(e)),"mask"==e.type)var n=e;else(n=a("mask",l(this))).node.appendChild(e.node);!n.node.id&&f(n.node,{id:n.id}),f(this.node,{mask:d(n.id)})}}),i=function(e){if(e instanceof t||e instanceof o){eve.stop();for(var n,r=e.node;r;){if("clipPath"===r.nodeName){n=new t(r);break}if("svg"===r.nodeName){n=void 0;break}r=r.parentNode}n||((n=a("clipPath",l(this))).node.appendChild(e.node),!n.node.id&&f(n.node,{id:n.id})),f(this.node,{"clip-path":d(n.node.id||n.id)})}},eve.on("snap.util.attr.clip",i),eve.on("snap.util.attr.clip-path",i),eve.on("snap.util.attr.clipPath",i),eve.on("snap.util.attr.fill",m("fill")),eve.on("snap.util.attr.stroke",m("stroke"));var v=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function g(e){eve.stop(),e==+e&&(e+="px"),this.node.style.fontSize=e}function b(){return eve.stop(),this.node.style.fontSize}eve.on("snap.util.grad.parse",function(e){var t=(e=p(e)).match(v);if(!t)return null;var n=t[1],r=t[2],o=t[3];1==(r=r.split(/\s*,\s*/).map(function(e){return+e==e?+e:e})).length&&0==r[0]&&(r=[]);var i=(o=(o=o.split("-")).map(function(e){var t={color:(e=e.split(":"))[0]};return e[1]&&(t.offset=parseFloat(e[1])),t})).length,a=0,s=0;function u(e,t){for(var n=(t-a)/(e-s),r=s;r1&&(e=Array.prototype.slice.call(arguments,0));var t={};return a(e,"object")&&!a(e,"array")?t=e:null!=e&&(t={points:e}),this.el("polyline",t)},i.polygon=function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments,0));var t={};return a(e,"object")&&!a(e,"array")?t=e:null!=e&&(t={points:e}),this.el("polygon",t)},function(){var t=e._.$;function n(){return this.selectAll("stop")}function r(n,r){var o=t("stop"),i={offset:+r+"%"};n=e.color(n),i["stop-color"]=n.hex,n.opacity<1&&(i["stop-opacity"]=n.opacity),t(o,i);for(var a,s=this.stops(),u=0;ur){this.node.insertBefore(o,s[u].node),a=!0;break}}return a||this.node.appendChild(o),this}function o(){if("linearGradient"==this.type){var n=t(this.node,"x1")||0,r=t(this.node,"x2")||1,o=t(this.node,"y1")||0,i=t(this.node,"y2")||0;return e._.box(n,o,math.abs(r-n),math.abs(i-o))}var a=this.node.cx||.5,s=this.node.cy||.5,u=this.node.r||0;return e._.box(a-u,s-u,2*u,2*u)}function a(t){var n=t,r=this.stops();if("string"==typeof t&&(n=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+t).firstDefined().stops),e.is(n,"array")){for(var o=0;o.01;)l=j(e,t,n,r,o,i,a,s,f+=(li){if(r&&!p.start){if(d+=["C"+o((f=w(s,u,l[1],l[2],l[3],l[4],l[5],l[6],i-h)).start.x),o(f.start.y),o(f.m.x),o(f.m.y),o(f.x),o(f.y)],a)return d;p.start=d,d=["M"+o(f.x),o(f.y)+"C"+o(f.n.x),o(f.n.y),o(f.end.x),o(f.end.y),o(l[5]),o(l[6])].join(),h+=c,s=+l[5],u=+l[6];continue}if(!n&&!r)return f=w(s,u,l[1],l[2],l[3],l[4],l[5],l[6],i-h)}h+=c,s=+l[5],u=+l[6]}d+=l.shift()+l}return p.end=d,f=n?h:r?p:O(s,u,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,e._.clone)}var _=x(1),k=x(),S=x(0,1);function O(e,t,n,r,o,i,a,s,u){var l=1-u,d=h(l,3),p=h(l,2),y=u*u,m=y*u,v=e+2*u*(n-e)+y*(o-2*n+e),g=t+2*u*(r-t)+y*(i-2*r+t),b=n+2*u*(o-n)+y*(a-2*o+n),w=r+2*u*(i-r)+y*(s-2*i+r);return{x:d*e+3*p*u*n+3*l*u*u*o+m*a,y:d*t+3*p*u*r+3*l*u*u*i+m*s,m:{x:v,y:g},n:{x:b,y:w},start:{x:l*e+u*n,y:l*t+u*r},end:{x:l*o+u*a,y:l*i+u*s},alpha:90-180*c.atan2(v-b,g-w)/f}}function T(t,n,r,o,i,a,s,u){e.is(t,"array")||(t=[t,n,r,o,i,a,s,u]);var l=U.apply(null,t);return v(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function C(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function E(e,t){return e=v(e),C(t=v(t),e.x,e.y)||C(t,e.x2,e.y)||C(t,e.x,e.y2)||C(t,e.x2,e.y2)||C(e,t.x,t.y)||C(e,t.x2,t.y)||C(e,t.x,t.y2)||C(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}function M(e,t,n,r,o){return e*(e*(-3*t+9*n-9*r+3*o)+6*t-12*n+6*r)-3*t+3*n}function j(e,t,n,r,o,i,a,s,u){null==u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h<12;h++){var y=l*f[h]+l,m=M(y,e,n,o,a),v=M(y,t,r,i,s),g=m*m+v*v;p+=d[h]*c.sqrt(g)}return l*p}function D(e,t,n,r,o,i,a,s){if(!(p(e,n)p(o,a)||p(t,r)p(i,s))){var u=(e-n)*(i-s)-(t-r)*(o-a);if(u){var l=((e*r-t*n)*(o-a)-(e-n)*(o*s-i*a))/u,c=((e*r-t*n)*(i-s)-(t-r)*(o*s-i*a))/u,f=+l.toFixed(2),h=+c.toFixed(2);if(!(f<+d(e,n).toFixed(2)||f>+p(e,n).toFixed(2)||f<+d(o,a).toFixed(2)||f>+p(o,a).toFixed(2)||h<+d(t,r).toFixed(2)||h>+p(t,r).toFixed(2)||h<+d(i,s).toFixed(2)||h>+p(i,s).toFixed(2)))return{x:l,y:c}}}}function P(e,t,n){if(!E(T(e),T(t)))return n?0:[];for(var r=~~(j.apply(0,e)/8),o=~~(j.apply(0,t)/8),i=[],a=[],s={},u=n?0:[],l=0;l=0&&w<=1&&x>=0&&x<=1&&(n?u++:u.push({x:b.x,y:b.y,t1:w,t2:x}))}}return u}function A(e,t,n){e=H(e),t=H(t);for(var r,o,i,a,s,u,l,c,f,d,p=n?0:[],h=0,y=e.length;h180),0,s,t+n*Math.sin(-o*i)]];else u=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return u.toString=g,u}var F=e._unit2px,L={path:function(e){return e.attr("path")},circle:function(e){var t=F(e);return N(t.cx,t.cy,t.r)},ellipse:function(e){var t=F(e);return N(t.cx||0,t.cy||0,t.rx,t.ry)},rect:function(e){var t=F(e);return I(t.x||0,t.y||0,t.width,t.height,t.rx,t.ry)},image:function(e){var t=F(e);return I(t.x||0,t.y||0,t.width,t.height)},line:function(e){return"M"+[e.attr("x1")||0,e.attr("y1")||0,e.attr("x2"),e.attr("y2")]},polyline:function(e){return"M"+e.attr("points")},polygon:function(e){return"M"+e.attr("points")+"z"},deflt:function(e){var t=e.node.getBBox();return I(t.x,t.y,t.width,t.height)}};function B(t){var n=m(t);if(n.abs)return b(n.abs);if(i(t,"array")&&i(t&&t[0],"array")||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var r,o=[],a=0,s=0,u=0,l=0,c=0;"M"==t[0][0]&&(u=a=+t[0][1],l=s=+t[0][2],c++,o[0]=["M",a,s]);for(var f,d,p=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),h=c,y=t.length;h1&&(o*=_=c.sqrt(_),i*=_);var k=o*o,S=i*i,O=(s==u?-1:1)*c.sqrt(y((k*S-k*x*x-S*w*w)/(k*x*x+S*w*w))),T=O*o*x/i+(n+l)/2,C=O*-i*w/o+(r+d)/2,E=c.asin(((r-C)/i).toFixed(9)),M=c.asin(((d-C)/i).toFixed(9));(E=nM&&(E-=2*f),!u&&M>E&&(M-=2*f)}var j=M-E;if(y(j)>m){var D=M,P=l,A=d;M=E+m*(u&&M>E?1:-1),g=t(l=T+o*c.cos(M),d=C+i*c.sin(M),o,i,a,0,u,P,A,[M,D,T,C])}j=M-E;var R=c.cos(E),I=c.sin(E),N=c.cos(M),F=c.sin(M),L=c.tan(j/4),B=4/3*o*L,z=4/3*i*L,W=[n,r],U=[n+B*I,r-z*R],H=[l+B*F,d-z*N],q=[l,d];if(U[0]=2*W[0]-U[0],U[1]=2*W[1]-U[1],p)return[U,H,q].concat(g);for(var V=[],Y=0,K=(g=[U,H,q].concat(g).join().split(",")).length;Y7){e[t].shift();for(var n=e[t];n.length;)v[t]="A",i&&(g[t]="A"),e.splice(t++,0,["C"].concat(n.splice(0,6)));e.splice(t,1),k=p(o.length,i&&i.length||0)}},h=function(e,t,n,r,a){e&&t&&"M"==e[a][0]&&"M"!=t[a][0]&&(t.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=e[a][1],n.y=e[a][2],k=p(o.length,i&&i.length||0))},v=[],g=[],w="",x="",_=0,k=p(o.length,i&&i.length||0);_r;r+=2){var i=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?o-4==r?i[3]={x:+e[0],y:+e[1]}:o-2==r&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[o-2],y:+e[o-1]}:o-4==r?i[3]=i[2]:r||(i[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n}e.path=m,e.path.getTotalLength=_,e.path.getPointAtLength=k,e.path.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return S(e,t).end;var r=S(e,n,1);return t?S(r,t).end:r},o.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},o.getPointAtLength=function(e){return k(this.attr("d"),e)},o.getSubpath=function(t,n){return e.path.getSubpath(this.attr("d"),t,n)},e._.box=v,e.path.findDotsAtSegment=O,e.path.bezierBBox=T,e.path.isPointInsideBBox=C,e.closest=function(t,n,r,o){for(var i=100,a=v(t-i/2,n-i/2,i,i),s=[],u=r[0].hasOwnProperty("x")?function(e){return{x:r[e].x,y:r[e].y}}:function(e){return{x:r[e],y:o[e]}},l=0;i<=1e6&&!l;){for(var c=0,f=r.length;cy&&(h=y,s[c].len=y,p=s[c])}return p}},e.path.isBBoxIntersect=E,e.path.intersection=function(e,t){return A(e,t)},e.path.intersectionNumber=function(e,t){return A(e,t,1)},e.path.isPointInside=function(e,t,n){var r=R(e);return C(r,t,n)&&A(e,[["M",t,n],["H",r.x2+10]],1)%2==1},e.path.getBBox=R,e.path.get=L,e.path.toRelative=function(t){var n=m(t),r=String.prototype.toLowerCase;if(n.rel)return b(n.rel);e.is(t,"array")&&e.is(t&&t[0],"array")||(t=e.parsePathString(t));var o=[],i=0,a=0,s=0,u=0,l=0;"M"==t[0][0]&&(s=i=t[0][1],u=a=t[0][2],l++,o.push(["M",i,a]));for(var c=l,f=t.length;c',{def:r})},e.filter.blur.toString=function(){return this()},e.filter.shadow=function(t,n,r,o,i){return null==i&&(null==o?(i=r,r=4,o="#000"):(i=o,o=r,r=4)),null==r&&(r=4),null==i&&(i=1),null==t&&(t=0,n=2),null==n&&(n=t),o=e.color(o),e.format('',{color:o,dx:t,dy:n,blur:r,opacity:i})},e.filter.shadow.toString=function(){return this()},e.filter.grayscale=function(t){return null==t&&(t=1),e.format('',{a:.2126+.7874*(1-t),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})},e.filter.grayscale.toString=function(){return this()},e.filter.sepia=function(t){return null==t&&(t=1),e.format('',{a:.393+.607*(1-t),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})},e.filter.sepia.toString=function(){return this()},e.filter.saturate=function(t){return null==t&&(t=1),e.format('',{amount:1-t})},e.filter.saturate.toString=function(){return this()},e.filter.hueRotate=function(t){return t=t||0,e.format('',{angle:t})},e.filter.hueRotate.toString=function(){return this()},e.filter.invert=function(t){return null==t&&(t=1),e.format('',{amount:t,amount2:1-t})},e.filter.invert.toString=function(){return this()},e.filter.brightness=function(t){return null==t&&(t=1),e.format('',{amount:t})},e.filter.brightness.toString=function(){return this()},e.filter.contrast=function(t){return null==t&&(t=1),e.format('',{amount:t,amount2:.5-t/2})},e.filter.contrast.toString=function(){return this()}}),o.plugin(function(e,t,n,r,o){var i=e._.box,a=e.is,s=/^[^a-z]*([tbmlrc])/i,u=function(){return"T"+this.dx+","+this.dy};t.prototype.getAlign=function(e,t){null==t&&a(e,"string")&&(t=e,e=null);var n=(e=e||this.paper).getBBox?e.getBBox():i(e),r=this.getBBox(),o={};switch(t=(t=t&&t.match(s))?t[1].toLowerCase():"c"){case"t":o.dx=0,o.dy=n.y-r.y;break;case"b":o.dx=0,o.dy=n.y2-r.y2;break;case"m":o.dx=0,o.dy=n.cy-r.cy;break;case"l":o.dx=n.x-r.x,o.dy=0;break;case"r":o.dx=n.x2-r.x2,o.dy=0;break;default:o.dx=n.cx-r.cx,o.dy=0}return o.toString=u,o},t.prototype.align=function(e,t){return this.transform("..."+this.getAlign(e,t))}}),o.plugin(function(e,t,n,o,i){var a=t.prototype,s=e.is,u=String,l="hasOwnProperty";function c(e,t,n){return function(r){var o=r.slice(e,t);return 1==o.length&&(o=o[0]),n?n(o):o}}var f=function(e,t,n,o){"function"!=typeof n||n.length||(o=n,n=r.linear),this.attr=e,this.dur=t,n&&(this.easing=n),o&&(this.callback=o)};e._.Animation=f,e.animation=function(e,t,n,r){return new f(e,t,n,r)},a.inAnim=function(){var e=[];for(var t in this.anims)this.anims[l](t)&&function(t){e.push({anim:new f(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(this.anims[t]);return e},e.animate=function(e,t,n,o,i,a){"function"!=typeof i||i.length||(a=i,i=r.linear);var s=r.time(),u=r(e,t,s,s+o,r.time,n,i);return a&&eve.once("mina.finish."+u.id,a),u},a.stop=function(){for(var e=this.inAnim(),t=0,n=e.length;ts)throw r=0,new Error("Call stack overflow for "+l);if(""===e)throw new Error(i+"(): '"+l+"' must contain a non-whitespace string");var c=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=u.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var s=o("(",")",a.substring([0].index));if(""===s.body)throw new Error("'"+e+"' must contain a non-whitespace string");var l=n(s.body,"",t);i+=s.pre+l,a=s.post}return i+a}(e,l));if(c.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var f=c[0]||"";"%"===f&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var d,p=e.replace(new RegExp(f,"gi"),"");try{d=a.eval(p)}catch(h){return i+"("+e+")"}return"%"===f&&(d*=100),(i.length||"%"===f)&&(d=Math.round(d*t)/t),d+=f}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t,n){var r=n(429);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(102);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(193)("keys"),o=n(143);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(50),o=n(79),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(142)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(89),o=n(441),i=n(194),a=n(192)("IE_PROTO"),s=function(){},u=function(){var e,t=n(264)("iframe"),r=i.length;for(t.style.display="none",n(442).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("