Socket
Socket
Sign inDemoInstall

mobx

Package Overview
Dependencies
Maintainers
7
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx - npm Package Compare versions

Comparing version 4.15.6 to 4.15.7

2

lib/api/action.d.ts

@@ -7,3 +7,3 @@ import { IAction } from "../internal";

(target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor): void;
bound(target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor): void;
bound: (target: Object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => void;
}

@@ -10,0 +10,0 @@ export declare const action: IActionFactory;

@@ -7,3 +7,3 @@ import { IComputedValueOptions, IComputedValue } from "../internal";

(target: Object, key: string | symbol, baseDescriptor?: PropertyDescriptor): void;
struct(target: Object, key: string | symbol, baseDescriptor?: PropertyDescriptor): void;
struct: (target: Object, key: string | symbol, baseDescriptor?: PropertyDescriptor) => void;
}

@@ -10,0 +10,0 @@ export declare const computedDecorator: Function;

@@ -28,15 +28,15 @@ import { IEqualsComparer, IObservableDecorator, IEnhancer, IObservableArray, ObservableMap, IObservableObject, IObservableValue, IObservableSetInitialValues, ObservableSet, IObservableMapInitialValues } from "../internal";

export interface IObservableFactories {
box<T = any>(value?: T, options?: CreateObservableOptions): IObservableValue<T>;
shallowBox<T = any>(value?: T, options?: CreateObservableOptions): IObservableValue<T>;
array<T = any>(initialValues?: T[], options?: CreateObservableOptions): IObservableArray<T>;
shallowArray<T = any>(initialValues?: T[], options?: CreateObservableOptions): IObservableArray<T>;
set<T = any>(initialValues?: IObservableSetInitialValues<T>, options?: CreateObservableOptions): ObservableSet<T>;
map<K = any, V = any>(initialValues?: IObservableMapInitialValues<K, V>, options?: CreateObservableOptions): ObservableMap<K, V>;
shallowMap<K = any, V = any>(initialValues?: IObservableMapInitialValues<K, V>, options?: CreateObservableOptions): ObservableMap<K, V>;
object<T = any>(props: T, decorators?: {
box: <T = any>(value?: T, options?: CreateObservableOptions) => IObservableValue<T>;
shallowBox: <T = any>(value?: T, options?: CreateObservableOptions) => IObservableValue<T>;
array: <T = any>(initialValues?: T[], options?: CreateObservableOptions) => IObservableArray<T>;
shallowArray: <T = any>(initialValues?: T[], options?: CreateObservableOptions) => IObservableArray<T>;
set: <T = any>(initialValues?: IObservableSetInitialValues<T>, options?: CreateObservableOptions) => ObservableSet<T>;
map: <K = any, V = any>(initialValues?: IObservableMapInitialValues<K, V>, options?: CreateObservableOptions) => ObservableMap<K, V>;
shallowMap: <K = any, V = any>(initialValues?: IObservableMapInitialValues<K, V>, options?: CreateObservableOptions) => ObservableMap<K, V>;
object: <T = any>(props: T, decorators?: {
[K in keyof T]?: Function;
}, options?: CreateObservableOptions): T & IObservableObject;
shallowObject<T = any>(props: T, decorators?: {
}, options?: CreateObservableOptions) => T & IObservableObject;
shallowObject: <T = any>(props: T, decorators?: {
[K in keyof T]?: Function;
}, options?: CreateObservableOptions): T & IObservableObject;
}, options?: CreateObservableOptions) => T & IObservableObject;
/**

@@ -43,0 +43,0 @@ * Decorator that creates an observable that only observes the references, but doesn't try to turn the assigned value into an observable.ts.

@@ -15,2 +15,2 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=[];Object.freeze(e);var t={};Object.freeze(t);var n={};function r(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:n}function o(){return++Ne.mobxGuid}function i(e){throw a(!1,e),"X"}function a(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function s(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var u=function(){};function c(e){return null!==e&&"object"==typeof e}function l(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function p(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function f(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function h(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return c(e)&&!0===e[n]}}function v(e){return void 0!==r().Map&&e instanceof r().Map}function d(e){return e instanceof Set}function y(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function b(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function m(e){return null===e?null:"object"==typeof e?""+e:e}function g(e,t){for(var n=e.next();!n.done;)t(n.value),n=e.next()}function x(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function _(e,t){f(e,x(),t)}function O(e){return e[x()]=S,e}function w(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function S(){return this}var A=function(){function e(e){void 0===e&&(e="Atom@"+o()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=exports.IDerivationState.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return Ue(this)},e.prototype.reportChanged=function(){$e(),function(e){if(e.lowestObserverState===exports.IDerivationState.STALE)return;e.lowestObserverState=exports.IDerivationState.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(r.isTracing!==ne.NONE&&Ge(r,e),r.onBecomeStale()),r.dependenciesState=exports.IDerivationState.STALE}}(this),Me()},e.prototype.toString=function(){return this.name},e}(),E=h("Atom",A);function D(e,t,n){void 0===t&&(t=u),void 0===n&&(n=u);var r=new A(e);return ct(r,t),lt(r,n),r}function j(e,t){return e===t}var k={identity:j,structural:function(e,t){return gn(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||j(e,t)},shallow:function(e,t){return gn(e,t,1)}},R=function(e,t){return(R=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)};

and limitations under the License.
***************************************************************************** */function I(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return(C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function T(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(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function V(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(T(arguments[t]));return e}var N={},P={};function L(e,t){var n=t?N:P;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return B(this),this[e]},set:function(t){B(this),this[e]=t}})}function B(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in p(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function $(t,n){return function(){var r,o=function(e,o,i,a){if(!0===a)return n(e,o,i,e,r),null;if(!Object.prototype.hasOwnProperty.call(e,"__mobxDecorators")){var s=e.__mobxDecorators;p(e,"__mobxDecorators",C({},s))}return e.__mobxDecorators[o]={prop:o,propertyCreator:n,descriptor:i,decoratorTarget:e,decoratorArguments:r},L(o,t)};return M(arguments)?(r=e,o.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),o)}}function M(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function U(e,t,n){return Ot(e)?e:Array.isArray(e)?Z.array(e,{name:n}):l(e)?Z.object(e,void 0,{name:n}):v(e)?Z.map(e,{name:n}):d(e)?Z.set(e,{name:n}):e}function G(e){return e}function q(e){a(e);var t=$(!0,(function(t,n,r,o,i){cn(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)})),n=("undefined"!=typeof process&&process.env,t);return n.enhancer=e,n}var H={deep:!0,name:void 0,defaultDecorator:void 0},z={deep:!1,name:void 0,defaultDecorator:void 0};function K(e){return null==e?H:"string"==typeof e?{name:e,deep:!0}:e}function W(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?G:U}Object.freeze(H),Object.freeze(z);var J=q(U),X=q((function(e,t,n){return null==e?e:vn(e)||Qt(e)||nn(e)||an(e)?e:Array.isArray(e)?Z.array(e,{name:n,deep:!1}):l(e)?Z.object(e,void 0,{name:n,deep:!1}):v(e)?Z.map(e,{name:n,deep:!1}):d(e)?Z.set(e,{name:n,deep:!1}):i(!1)})),Y=q(G),F=q((function(e,t,n){return gn(e,t)?t:e}));var Q={box:function(e,t){arguments.length>2&&ee("box");var n=K(t);return new De(e,W(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&ee("shallowBox"),Z.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ee("array");var n=K(t);return new Kt(e,W(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&ee("shallowArray"),Z.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ee("map");var n=K(t);return new en(e,W(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&ee("shallowMap"),Z.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ee("set");var n=K(t);return new on(e,W(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ee("object");var r=K(n);return ft({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ee("shallowObject"),Z.object(e,{},{name:t,deep:!1})},ref:Y,shallow:X,deep:J,struct:F},Z=function(e,t,n){if("string"==typeof arguments[1])return J.apply(null,arguments);if(Ot(e))return e;var r=l(e)?Z.object(e,t,n):Array.isArray(e)?Z.array(e,t):v(e)?Z.map(e,t):d(e)?Z.set(e,t):e;if(r!==e)return r;i(!1)};function ee(e){i("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Q).forEach((function(e){return Z[e]=Q[e]}));var te,ne,re=$(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};!function(e,t,n){var r=un(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new ke(n),Object.defineProperty(e,t,function(e){return pn[e]||(pn[e]={configurable:Ne.computedConfigurable,enumerable:!1,get:function(){return fn(this).read(this,e)},set:function(t){fn(this).write(this,e,t)}})}(t))}(e,t,C({get:i,set:a},s))})),oe=re({equals:k.structural}),ie=function(e,t,n){if("string"==typeof t)return re.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return re.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)};ie.struct=oe,(te=exports.IDerivationState||(exports.IDerivationState={}))[te.NOT_TRACKING=-1]="NOT_TRACKING",te[te.UP_TO_DATE=0]="UP_TO_DATE",te[te.POSSIBLY_STALE=1]="POSSIBLY_STALE",te[te.STALE=2]="STALE",function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ne||(ne={}));var ae=function(e){this.cause=e};function se(e){return e instanceof ae}function ue(e){switch(e.dependenciesState){case exports.IDerivationState.UP_TO_DATE:return!1;case exports.IDerivationState.NOT_TRACKING:case exports.IDerivationState.STALE:return!0;case exports.IDerivationState.POSSIBLY_STALE:for(var t=de(!0),n=he(),r=e.observing,o=r.length,i=0;i<o;i++){var a=r[i];if(Re(a)){if(Ne.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return ve(n),ye(t),!0}if(e.dependenciesState===exports.IDerivationState.STALE)return ve(n),ye(t),!0}}return be(e),ve(n),ye(t),!1}}function ce(e){var t=e.observers.length>0;Ne.computationDepth>0&&t&&i(!1),Ne.allowStateChanges||!t&&"strict"!==Ne.enforceActions||i(!1)}function le(e,t,n){var r=de(!0);be(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Ne.runId;var o,i=Ne.trackingDerivation;if(Ne.trackingDerivation=e,!0===Ne.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new ae(e)}return Ne.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=exports.IDerivationState.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;a<i;a++){0===(s=n[a]).diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState>r&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(s=t[i]).diffValue&&Le(s,e),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,Pe(s,e))}r!==exports.IDerivationState.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),e.observing.length,ye(r),o}function pe(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Le(t[n],e);e.dependenciesState=exports.IDerivationState.NOT_TRACKING}function fe(e){var t=he(),n=e();return ve(t),n}function he(){var e=Ne.trackingDerivation;return Ne.trackingDerivation=null,e}function ve(e){Ne.trackingDerivation=e}function de(e){var t=Ne.allowStateReads;return Ne.allowStateReads=e,t}function ye(e){Ne.allowStateReads=e}function be(e){if(e.dependenciesState!==exports.IDerivationState.UP_TO_DATE){e.dependenciesState=exports.IDerivationState.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=exports.IDerivationState.UP_TO_DATE}}var me=0,ge=1,xe=Object.getOwnPropertyDescriptor((function(){}),"name");xe&&xe.configurable;function _e(e,t){var n=function(){return Oe(e,t,this,arguments)};return n.isMobxAction=!0,n}function Oe(e,t,n,r){var o=we(e,n,r);try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{Se(o)}}function we(e,t,n){var r=Xe()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var s=0;s<i;s++)a[s]=n[s];Fe({type:"action",name:e,object:t,arguments:a})}var u=he();$e();var c={prevDerivation:u,prevAllowStateChanges:Ae(!0),prevAllowStateReads:de(!0),notifySpy:r,startTime:o,actionId:ge++,parentActionId:me};return me=c.actionId,c}function Se(e){me!==e.actionId&&i("invalid action stack. did you forget to finish an action?"),me=e.parentActionId,void 0!==e.error&&(Ne.suppressReactionErrors=!0),Ee(e.prevAllowStateChanges),ye(e.prevAllowStateReads),Me(),ve(e.prevDerivation),e.notifySpy&&Ze({time:Date.now()-e.startTime}),Ne.suppressReactionErrors=!1}function Ae(e){var t=Ne.allowStateChanges;return Ne.allowStateChanges=e,t}function Ee(e){Ne.allowStateChanges=e}var De=function(e){function t(t,n,r,i,a){void 0===r&&(r="ObservableValue@"+o()),void 0===i&&(i=!0),void 0===a&&(a=k.default);var s=e.call(this,r)||this;return s.enhancer=n,s.name=r,s.equals=a,s.hasUnreportedChange=!1,s.value=n(t,void 0,r),i&&Xe()&&Ye({type:"create",name:s.name,newValue:""+s.value}),s}return I(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Ne.UNCHANGED){var n=Xe();n&&Fe({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&Ze()}},t.prototype.prepareNewValue=function(e){if(ce(this),Ct(this)){var t=Vt(this,{object:this,type:"update",newValue:e});if(!t)return Ne.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Ne.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Nt(this)&&Lt(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 Tt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Pt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return m(this.get())},t}(A);De.prototype[b()]=De.prototype.valueOf;var je=h("ObservableValue",De),ke=function(){function e(e){this.dependenciesState=exports.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=exports.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+o(),this.value=new ae(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ne.NONE,a(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+o(),e.set&&(this.setter=_e(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?k.structural:k.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==exports.IDerivationState.UP_TO_DATE)return;e.lowestObserverState=exports.IDerivationState.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(r.dependenciesState=exports.IDerivationState.POSSIBLY_STALE,r.isTracing!==ne.NONE&&Ge(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&i("Cycle detected in computation "+this.name+": "+this.derivation),0!==Ne.inBatch||0!==this.observers.length||this.keepAlive?(Ue(this),ue(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===exports.IDerivationState.STALE)return;e.lowestObserverState=exports.IDerivationState.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===exports.IDerivationState.POSSIBLY_STALE?r.dependenciesState=exports.IDerivationState.STALE:r.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(e.lowestObserverState=exports.IDerivationState.UP_TO_DATE)}}(this)):ue(this)&&(this.warnAboutUntrackedRead(),$e(),this.value=this.computeValue(!1),Me());var e=this.value;if(se(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(se(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){a(!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 a(!1,!1)},e.prototype.trackAndCompute=function(){Xe()&&Ye({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===exports.IDerivationState.NOT_TRACKING,n=this.computeValue(!0),r=t||se(e)||se(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Ne.computationDepth++,e)t=le(this,this.derivation,this.scope);else if(!0===Ne.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ae(e)}return Ne.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(pe(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return at((function(){var i=n.get();if(!r||t){var a=he();e({type:"update",object:n,newValue:i,oldValue:o}),ve(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 m(this.get())},e}();ke.prototype[b()]=ke.prototype.valueOf;var Re=h("ComputedValue",ke),Ie=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Ce=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=!0,Ve=!1,Ne=function(){var e=r();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Te=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ce).version&&(Te=!1),Te?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ce):(setTimeout((function(){Ve||i("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ce)}();function Pe(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Le(e,t){if(1===e.observers.length)e.observers.length=0,Be(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Be(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Ne.pendingUnobservations.push(e))}function $e(){Ne.inBatch++}function Me(){if(0==--Ne.inBatch){ze();for(var e=Ne.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof ke&&n.suspend())}Ne.pendingUnobservations=[]}}function Ue(e){var t=Ne.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Ne.inBatch>0&&Be(e),!1)}function Ge(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ne.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)}))}(ht(e),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 qe=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+o()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=exports.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+o(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ne.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ne.pendingReactions.push(this),ze())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if($e(),this._isScheduled=!1,ue(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Xe()&&Ye({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Me()}},e.prototype.track=function(e){$e();var t,n=Xe();n&&(t=Date.now(),Fe({name:this.name,type:"reaction"})),this._isRunning=!0;var r=le(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&pe(this),se(r)&&this.reportExceptionInDerivation(r.cause),n&&Ze({time:Date.now()-t}),Me()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Ne.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Ne.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Xe()&&Ye({type:"error",name:this.name,message:n,error:""+e}),Ne.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||($e(),pe(this),Me()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),Dt(this,e)},e}();var He=function(e){return e()};function ze(){Ne.inBatch>0||Ne.isRunningReactions||He(Ke)}function Ke(){Ne.isRunningReactions=!0;for(var e=Ne.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 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<o;r++)n[r].runReaction()}Ne.isRunningReactions=!1}var We=h("Reaction",qe);function Je(e){var t=He;He=function(n){return e((function(){return t(n)}))}}function Xe(){return!!Ne.spyListeners.length}function Ye(e){if(Ne.spyListeners.length)for(var t=Ne.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Fe(e){Ye(C(C({},e),{spyReportStart:!0}))}var Qe={spyReportEnd:!0};function Ze(e){Ye(e?C(C({},e),{spyReportEnd:!0}):Qe)}function et(e){return Ne.spyListeners.push(e),s((function(){Ne.spyListeners=Ne.spyListeners.filter((function(t){return t!==e}))}))}function tt(){i(!1)}function nt(e){return function(t,n,r){if(r){if(r.value)return{value:_e(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return _e(e,o.call(this))}}}return rt(e).apply(this,arguments)}}function rt(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){p(this,n,ot(e,t))}})}}var ot=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?_e(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?_e(e,t):1===arguments.length&&"string"==typeof e?nt(e):!0!==r?nt(t).apply(null,arguments):void(e[t]=_e(e.name||t,n.value))};function it(e,t,n){p(e,t,_e(t,n.bind(e)))}function at(e,n){void 0===n&&(n=t);var r,i=n&&n.name||e.name||"Autorun@"+o();if(!n.scheduler&&!n.delay)r=new qe(i,(function(){this.track(u)}),n.onError,n.requiresObservable);else{var a=ut(n),s=!1;r=new qe(i,(function(){s||(s=!0,a((function(){s=!1,r.isDisposed||r.track(u)})))}),n.onError,n.requiresObservable)}function u(){e(r)}return r.schedule(),r.getDisposer()}ot.bound=function(e,t,n,r){return!0===r?(it(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return it(this,t,n.value||n.initializer.call(this)),this[t]},set:tt}:{enumerable:!1,configurable:!0,set:function(e){it(this,t,e)},get:function(){}}};var st=function(e){return e()};function ut(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:st}function ct(e,t,n){return pt("onBecomeObserved",e,t,n)}function lt(e,t,n){return pt("onBecomeUnobserved",e,t,n)}function pt(e,t,n,r){var o="function"==typeof r?dn(t,n):dn(t),a="function"==typeof r?r:n,s=o[e];return"function"!=typeof s?i(!1):(o[e]=function(){s.call(this),a.call(this)},function(){o[e]=s})}function ft(e,t,n,r){var o=(r=K(r)).defaultDecorator||(!1===r.deep?Y:J);B(e),un(e,r.name,o.enhancer),$e();try{for(var i=Object.getOwnPropertyNames(t),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(t,u);0;var l=n&&u in n?n[u]:c.get?re:o;0;var p=l(e,u,c,!0);p&&Object.defineProperty(e,u,p)}}finally{Me()}return e}function ht(e,t){return vt(dn(e,t))}function vt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(vt)),r}function dt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=function(e){return e.observers}(e).map(dt)),t}var yt=0;function bt(){this.message="FLOW_CANCELLED"}function mt(e){"function"==typeof e.cancel&&e.cancel()}function gt(e,t){if(null==e)return!1;if(void 0!==t){if(!1===vn(e))return!1;if(!e.$mobx.values[t])return!1;var n=dn(e,t);return Re(n)}return Re(e)}function xt(e){return arguments.length>1?i(!1):gt(e)}function _t(e,t){if(null==e)return!1;if(void 0!==t){if(vn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return vn(e)||!!e.$mobx||E(e)||We(e)||Re(e)}function Ot(e){return 1!==arguments.length&&i(!1),_t(e)}function wt(e){return vn(e)?e.$mobx.getKeys():nn(e)?y(e.keys()):an(e)?y(e.keys()):Qt(e)?e.map((function(e,t){return t})):i(!1)}function St(e,t){if(vn(e)){var n=yn(e);return n.getKeys(),!!n.values[t]}return nn(e)?e.has(t):an(e)?e.has(t):Qt(e)?t>=0&&t<e.length:i(!1)}bt.prototype=Object.create(Error.prototype);var At={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Et(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function Dt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=jt(e);if(!r)return i(!1);r.isTracing===ne.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?ne.BREAK:ne.LOG}function jt(e){switch(e.length){case 0:return Ne.trackingDerivation;case 1:return dn(e[0]);case 2:return dn(e[0],e[1])}}function kt(e,t){void 0===t&&(t=void 0),$e();try{return e.apply(t)}finally{Me()}}function Rt(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!a.$mobx.isDisposed){a();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+o();var i=_e(n.name+"-effect",t),a=at((function(t){e()&&(t.dispose(),r&&clearTimeout(r),i())}),n);return a}function It(e,t){var n,r=new Promise((function(r,o){var i=Rt(e,r,C(C({},t),{onError:o}));n=function(){i(),o("WHEN_CANCELLED")}}));return r.cancel=n,r}function Ct(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Tt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),s((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Vt(e,t){var n=he();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(a(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{ve(n)}}function Nt(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Pt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),s((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Lt(e,t){var n=he(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);ve(n)}}var Bt,$t,Mt,Ut,Gt=(Bt=!1,$t={},Object.defineProperty($t,"0",{set:function(){Bt=!0}}),Object.create($t)[0]=1,!1===Bt),qt=0,Ht=function(){};Mt=Ht,Ut=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Mt.prototype,Ut):void 0!==Mt.prototype.__proto__?Mt.prototype.__proto__=Ut:Mt.prototype=Ut,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(Ht.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var zt=function(){function t(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new A(e||"ObservableArray@"+o()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.prototype.intercept=function(e){return Tt(this,e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Pt(this,e)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.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;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},t.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>qt&&Yt(e+t+1)},t.prototype.spliceWithArray=function(t,n,r){var o=this;ce(this.atom);var i=this.values.length;if(void 0===t?t=0:t>i?t=i:t<0&&(t=Math.max(0,i+t)),n=1===arguments.length?i-t:null==n?0:Math.max(0,Math.min(n,i-t)),void 0===r&&(r=e),Ct(this)){var a=Vt(this,{object:this.array,type:"splice",index:t,removedCount:n,added:r});if(!a)return e;n=a.removedCount,r=a.added}var s=(r=0===r.length?r:r.map((function(e){return o.enhancer(e,void 0)}))).length-n;this.updateArrayLength(i,s);var u=this.spliceItemsIntoValues(t,n,r);return 0===n&&0===r.length||this.notifyArraySplice(t,r,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,V([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},t.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Xe(),o=Nt(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&Fe(C(C({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Lt(this,i),r&&Ze()},t.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Xe(),o=Nt(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&Fe(C(C({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Lt(this,i),r&&Ze()},t}(),Kt=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableArray@"+o()),void 0===i&&(i=!1);var a=e.call(this)||this,s=new zt(r,n,a,i);if(f(a,"$mobx",s),t&&t.length){var u=Ae(!0);a.spliceWithArray(0,0,t),Ee(u)}return Gt&&Object.defineProperty(s.array,"0",Wt),a}return I(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return Qt(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?V(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):V(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){ce(n.atom);var o=r[e];if(Ct(n)){var i=Vt(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(Ht);_(Kt.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return O({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(Kt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),p(Kt.prototype,w(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];a("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),p(Kt.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){a("function"==typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),p(Kt.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.dehanceValues(o.values)[e]((function(e,o){return t.call(n,e,o,r)}),n)}))})),["reduce","reduceRight"].forEach((function(e){p(Kt.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.values[e]((function(e,n,i){return n=o.dehanceValue(n),t(e,n,i,r)}),n)}))})),function(e,t){for(var n=0;n<t.length;n++)p(e,t[n],e[t[n]])}(Kt.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Wt=Jt(0);function Jt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Xt(e){Object.defineProperty(Kt.prototype,""+e,Jt(e))}function Yt(e){for(var t=qt;t<e;t++)Xt(t);qt=e}Yt(1e3);var Ft=h("ObservableArrayAdministration",zt);function Qt(e){return c(e)&&Ft(e.$mobx)}var Zt={},en=function(){function e(e,t,n){if(void 0===t&&(t=U),void 0===n&&(n="ObservableMap@"+o()),this.enhancer=t,this.name=n,this.$mobx=Zt,this._keysAtom=D(this.name+".keys()"),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Ne.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new De(this._has(e),G,this.name+"."+tn(e)+"?",!1);this._hasMap.set(e,r),lt(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(Ct(this)){var r=Vt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((ce(this._keysAtom),Ct(this))&&!(o=Vt(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Xe(),r=Nt(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Fe(C(C({},o),{name:this.name,key:e})),kt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Lt(this,o),n&&Ze(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Ne.UNCHANGED){var r=Xe(),o=Nt(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&Fe(C(C({},i),{name:this.name,key:e})),n.setNewValue(t),o&&Lt(this,i),r&&Ze()}},e.prototype._addValue=function(e,t){var n=this;ce(this._keysAtom),kt((function(){var r=new De(t,n.enhancer,n.name+"."+tn(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=Xe(),o=Nt(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&Fe(C(C({},i),{name:this.name,key:e})),o&&Lt(this,i),r&&Ze()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return O({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return O({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},e.prototype.forEach=function(e,t){var n=this;this._keysAtom.reportObserved(),this._data.forEach((function(r,o){return e.call(t,n.get(o),o,n)}))},e.prototype.merge=function(e){var t=this;return nn(e)&&(e=e.toJS()),kt((function(){var n=Ae(!0);try{l(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=T(e,2),r=n[0],o=n[1];return t.set(r,o)})):v(e)?e.constructor!==Map?i("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,n){return t.set(n,e)})):null!=e&&i("Cannot initialize map from "+e)}finally{Ee(n)}})),this},e.prototype.clear=function(){var e=this;kt((function(){fe((function(){e._data.forEach((function(t,n){return e.delete(n)}))}))}))},e.prototype.replace=function(e){var t=this;return kt((function(){var n=function(e){if(v(e)||nn(e))return e;if(Array.isArray(e))return new Map(e);if(l(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return i("Cannot convert to map from '"+e+"'")}(e),r=new Map,o=!1;if(g(t._data.keys(),(function(e){if(!n.has(e))if(t.delete(e))o=!0;else{var i=t._data.get(e);r.set(e,i)}})),g(n.entries(),(function(e){var n=T(e,2),i=n[0],a=n[1],s=t._data.has(i);if(t.set(i,a),t._data.has(i)){var u=t._data.get(i);r.set(i,u),s||(o=!0)}})),!o)if(t._data.size!==r.size)t._keysAtom.reportChanged();else for(var a=t._data.keys(),s=r.keys(),u=a.next(),c=s.next();!u.done;){if(u.value!==c.value){t._keysAtom.reportChanged();break}u=a.next(),c=s.next()}t._data=r})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(n,r){return t["symbol"==typeof r?r:tn(r)]=e.get(r)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+y(this.keys()).map((function(t){return tn(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Pt(this,e)},e.prototype.intercept=function(e){return Tt(this,e)},e}();function tn(e){return e&&e.toString?e.toString():new String(e).toString()}_(en.prototype,(function(){return this.entries()})),f(en.prototype,w(),"Map");var nn=h("ObservableMap",en),rn={},on=function(){function e(e,t,n){if(void 0===t&&(t=U),void 0===n&&(n="ObservableSet@"+o()),this.name=n,this.$mobx=rn,this._data=new Set,this._atom=D(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;kt((function(){fe((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var n=this;this._atom.reportObserved(),this._data.forEach((function(r){e.call(t,r,r,n)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((ce(this._atom),Ct(this))&&!(o=Vt(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){kt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=Xe(),r=Nt(this),o=r||n?{type:"add",object:this,newValue:e}:null;0,r&&Lt(this,o)}return this},e.prototype.delete=function(e){var t=this;if(Ct(this)&&!(o=Vt(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Xe(),r=Nt(this),o=r||n?{type:"delete",object:this,oldValue:e}:null;return kt((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&Lt(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=y(this.keys()),n=y(this.values());return O({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=y(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),O({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return an(e)&&(e=e.toJS()),kt((function(){var n=Ae(!0);try{Array.isArray(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):d(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&i("Cannot initialize set from "+e)}finally{Ee(n)}})),this},e.prototype.observe=function(e,t){return Pt(this,e)},e.prototype.intercept=function(e){return Tt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+y(this.keys()).join(", ")+" ]"},e}();_(on.prototype,(function(){return this.values()})),f(on.prototype,w(),"Set");var an=h("ObservableSet",on),sn=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof ke)o.set(n);else{if(Ct(this)){if(!(s=Vt(this,{type:"update",object:r,name:t,newValue:n})))return;n=s.newValue}if((n=o.prepareNewValue(n))!==Ne.UNCHANGED){var i=Nt(this),a=Xe(),s=i||a?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;a&&Fe(C(C({},s),{name:this.name,key:t})),o.setNewValue(n),i&&Lt(this,s),a&&Ze()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(Ct(this))if(!(i=Vt(this,{object:t,name:e,type:"remove"})))return;try{$e();var n=Nt(this),r=Xe(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var i=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&Fe(C(C({},i),{name:this.name,key:e})),n&&Lt(this,i),r&&Ze()}finally{Me()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return Pt(this,e)},e.prototype.intercept=function(e){return Tt(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Kt(Object.keys(this.values).filter((function(t){return e.values[t]instanceof De})),G,"keys("+this.name+")",!0)),this.keys.slice()},e}();function un(e,t,n){void 0===t&&(t=""),void 0===n&&(n=U);var r=e.$mobx;return r||(l(e)||(t=(e.constructor.name||"ObservableObject")+"@"+o()),t||(t="ObservableObject@"+o()),f(e,"$mobx",r=new sn(e,t,n)),r)}function cn(e,t,n,r){var o=un(e);if(Ct(o)){var i=Vt(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new De(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return ln[e]||(ln[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=Nt(e),i=Xe(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&Fe(C(C({},a),{name:e.name,key:n}));o&&Lt(e,a);i&&Ze()}(o,e,t,n)}var ln=Object.create(null),pn=Object.create(null);function fn(e){var t=e.$mobx;return t||(B(e),e.$mobx)}var hn=h("ObservableObjectAdministration",sn);function vn(e){return!!c(e)&&(B(e),hn(e.$mobx))}function dn(e,t){if("object"==typeof e&&null!==e){if(Qt(e))return void 0!==t&&i(!1),e.$mobx.atom;if(an(e))return e.$mobx;if(nn(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||i(!1),r)}var r;if(B(e),t&&!e.$mobx&&e[t],vn(e))return t?((r=e.$mobx.values[t])||i(!1),r):i(!1);if(E(e)||Re(e)||We(e))return e}else if("function"==typeof e&&We(e.$mobx))return e.$mobx;return i(!1)}function yn(e,t){return e||i("Expecting some object"),void 0!==t?yn(dn(e,t)):E(e)||Re(e)||We(e)?e:nn(e)||an(e)?e:(B(e),e.$mobx?e.$mobx:void i(!1))}function bn(e,t){return(void 0!==t?dn(e,t):vn(e)||nn(e)||an(e)?yn(e):dn(e)).name}var mn=Object.prototype.toString;function gn(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,o,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;if("function"!==a&&"object"!==a&&"object"!=typeof n)return!1;t=xn(t),n=xn(n);var s=mn.call(t);if(s!==mn.call(n))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n)}var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var p=(o=o||[]).length;for(;p--;)if(o[p]===t)return i[p]===n;if(o.push(t),i.push(n),u){if((p=t.length)!==n.length)return!1;for(;p--;)if(!e(t[p],n[p],r-1,o,i))return!1}else{var f=Object.keys(t),h=void 0;if(p=f.length,Object.keys(n).length!==p)return!1;for(;p--;)if(h=f[p],!_n(n,h)||!e(t[h],n[h],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(e,t,n)}function xn(e){return Qt(e)?e.peek():v(e)||nn(e)?y(e.entries()):d(e)||an(e)?y(e.entries()):e}function _n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:et,extras:{getDebugName:bn},$mobx:"$mobx"}),exports.$mobx="$mobx",exports.FlowCancellationError=bt,exports.ObservableMap=en,exports.ObservableSet=on,exports.Reaction=qe,exports._allowStateChanges=function(e,t){var n,r=Ae(e);try{n=t()}finally{Ee(r)}return n},exports._allowStateChangesInsideComputed=function(e){var t,n=Ne.computationDepth;Ne.computationDepth=0;try{t=e()}finally{Ne.computationDepth=n}return t},exports._allowStateReadsEnd=ye,exports._allowStateReadsStart=de,exports._endAction=Se,exports._getAdministration=yn,exports._getGlobalState=function(){return Ne},exports._interceptReads=function(e,t,n){var r;if(nn(e)||Qt(e)||je(e))r=yn(e);else{if(!vn(e))return i(!1);if("string"!=typeof t)return i(!1);r=yn(e,t)}return void 0!==r.dehancer?i(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})},exports._isComputingDerivation=function(){return null!==Ne.trackingDerivation},exports._resetGlobalState=function(){var e=new Ce;for(var t in e)-1===Ie.indexOf(t)&&(Ne[t]=e[t]);Ne.allowStateChanges=!Ne.enforceActions},exports._startAction=we,exports.action=ot,exports.autorun=at,exports.comparer=k,exports.computed=ie,exports.configure=function(e){var t=e.enforceActions,n=e.computedRequiresReaction,o=e.computedConfigurable,a=e.disableErrorBoundaries,s=e.arrayBuffer,u=e.reactionScheduler,c=e.reactionRequiresObservable,l=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Ne.pendingReactions.length||Ne.inBatch||Ne.isRunningReactions)&&i("isolateGlobalState should be called before MobX is running any reactions"),Ve=!0,Te&&(0==--r().__mobxInstanceCount&&(r().__mobxGlobals=void 0),Ne=new Ce)),void 0!==t){var p=void 0;switch(t){case!0:case"observed":p=!0;break;case!1:case"never":p=!1;break;case"strict":case"always":p="strict";break;default:i("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Ne.enforceActions=p,Ne.allowStateChanges=!0!==p&&"strict"!==p}void 0!==n&&(Ne.computedRequiresReaction=!!n),void 0!==c&&(Ne.reactionRequiresObservable=!!c),void 0!==l&&(Ne.observableRequiresReaction=!!l,Ne.allowStateReads=!Ne.observableRequiresReaction),void 0!==o&&(Ne.computedConfigurable=!!o),void 0!==a&&(!0===a&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Ne.disableErrorBoundaries=!!a),"number"==typeof s&&Yt(s),u&&Je(u)},exports.createAtom=D,exports.decorate=function(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var o=Object.getOwnPropertyDescriptor(n,e),i=r.reduce((function(t,r){return r(n,e,t)}),o);i&&Object.defineProperty(n,e,i)};for(var o in t)r(o);return e},exports.entries=function(e){return vn(e)?wt(e).map((function(t){return[t,e[t]]})):nn(e)?wt(e).map((function(t){return[t,e.get(t)]})):an(e)?y(e.entries()):Qt(e)?e.map((function(e,t){return[t,e]})):i(!1)},exports.extendObservable=ft,exports.extendShallowObservable=function(e,t,n){return ft(e,t,n,z)},exports.flow=function(e){1!==arguments.length&&i("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++yt,a=ot(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,c=new Promise((function(e,r){var o=0;function u(e){var n;s=void 0;try{n=ot(t+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(e){return r(e)}l(n)}function c(e){var n;s=void 0;try{n=ot(t+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(e){return r(e)}l(n)}function l(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(u,c);t.then(l,r)}n=r,u(void 0)}));return c.cancel=ot(t+" - runid: "+i+" - cancel",(function(){try{s&&mt(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(u,u),mt(t),n(new bt)}catch(e){n(e)}})),c}},exports.get=function(e,t){if(St(e,t))return vn(e)?e[t]:nn(e)?e.get(t):Qt(e)?e[t]:i(!1)},exports.getAtom=dn,exports.getDebugName=bn,exports.getDependencyTree=ht,exports.getObserverTree=function(e,t){return dt(dn(e,t))},exports.has=St,exports.intercept=function(e,t,n){return"function"==typeof n?function(e,t,n){return yn(e,t).intercept(n)}(e,t,n):function(e,t){return yn(e).intercept(t)}(e,t)},exports.isAction=function(e){return"function"==typeof e&&!0===e.isMobxAction},exports.isArrayLike=function(e){return Array.isArray(e)||Qt(e)},exports.isBoxedObservable=je,exports.isComputed=xt,exports.isComputedProp=function(e,t){return"string"!=typeof t?i(!1):gt(e,t)},exports.isFlowCancellationError=function(e){return e instanceof bt},exports.isObservable=Ot,exports.isObservableArray=Qt,exports.isObservableMap=nn,exports.isObservableObject=vn,exports.isObservableProp=function(e,t){return"string"!=typeof t?i(!1):_t(e,t)},exports.isObservableSet=an,exports.keys=wt,exports.observable=Z,exports.observe=function(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return yn(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return yn(e).observe(t,n)}(e,t,n)},exports.onBecomeObserved=ct,exports.onBecomeUnobserved=lt,exports.onReactionError=function(e){return Ne.globalReactionErrorHandlers.push(e),function(){var t=Ne.globalReactionErrorHandlers.indexOf(e);t>=0&&Ne.globalReactionErrorHandlers.splice(t,1)}},exports.reaction=function(e,n,r){void 0===r&&(r=t),"boolean"==typeof r&&(r={fireImmediately:r});var i,a,s,u=r.name||"Reaction@"+o(),c=ot(u,r.onError?(i=r.onError,a=n,function(){try{return a.apply(this,arguments)}catch(e){i.call(this,e)}}):n),l=!r.scheduler&&!r.delay,p=ut(r),f=!0,h=!1,v=r.compareStructural?k.structural:r.equals||k.default,d=new qe(u,(function(){f||l?y():h||(h=!0,p(y))}),r.onError,r.requiresObservable);function y(){if(h=!1,!d.isDisposed){var t=!1;d.track((function(){var n=e(d);t=f||!v(s,n),s=n})),f&&r.fireImmediately&&c(s,d),f||!0!==t||c(s,d),f&&(f=!1)}}return d.schedule(),d.getDisposer()},exports.remove=function(e,t){if(vn(e))e.$mobx.remove(t);else if(nn(e))e.delete(t);else if(an(e))e.delete(t);else{if(!Qt(e))return i(!1);"number"!=typeof t&&(t=parseInt(t,10)),a(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}},exports.runInAction=function(e,t){return Oe("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)},exports.set=function e(t,n,r){if(2!==arguments.length||an(t))if(vn(t)){var o=t.$mobx,s=o.values[n];s?o.write(t,n,r):cn(t,n,r,o.defaultEnhancer)}else if(nn(t))t.set(n,r);else if(an(t))t.add(n);else{if(!Qt(t))return i(!1);"number"!=typeof n&&(n=parseInt(n,10)),a(n>=0,"Not a valid index: '"+n+"'"),$e(),n>=t.length&&(t.length=n+1),t[n]=r,Me()}else{$e();var u=n;try{for(var c in u)e(t,c,u[c])}finally{Me()}}},exports.spy=et,exports.toJS=function(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=At),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&&!Ot(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(je(t))return e(t.get(),n,r);if(Ot(t)&&wt(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Qt(t)||Array.isArray(t)){var o=Et(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<s;a++)o[a]=i[a];return o}if(an(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===n.exportMapsAsObjects){var u=Et(r,t,new Set,n);return t.forEach((function(t){u.add(e(t,n,r))})),u}var c=Et(r,t,[],n);return t.forEach((function(t){c.push(e(t,n,r))})),c}if(nn(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===n.exportMapsAsObjects){var l=Et(r,t,new Map,n);return t.forEach((function(t,o){l.set(o,e(t,n,r))})),l}var p=Et(r,t,{},n);return t.forEach((function(t,o){p[o]=e(t,n,r)})),p}var f=Et(r,t,{},n);for(var h in t)f[h]=e(t[h],n,r);return f}(e,t,n)},exports.trace=Dt,exports.transaction=kt,exports.untracked=fe,exports.values=function(e){return vn(e)?wt(e).map((function(t){return e[t]})):nn(e)?wt(e).map((function(t){return e.get(t)})):an(e)?y(e.values()):Qt(e)?e.slice():i(!1)},exports.when=function(e,t,n){return 1===arguments.length||t&&"object"==typeof t?It(e,t):Rt(e,t,n||{})};
***************************************************************************** */function I(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return(C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function T(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(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function V(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(T(arguments[t]));return e}var N={},P={};function L(e,t){var n=t?N:P;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return B(this),this[e]},set:function(t){B(this),this[e]=t}})}function B(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in p(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function $(t,n){return function(){var r,o=function(e,o,i,a){if(!0===a)return n(e,o,i,e,r),null;if(!Object.prototype.hasOwnProperty.call(e,"__mobxDecorators")){var s=e.__mobxDecorators;p(e,"__mobxDecorators",C({},s))}return e.__mobxDecorators[o]={prop:o,propertyCreator:n,descriptor:i,decoratorTarget:e,decoratorArguments:r},L(o,t)};return M(arguments)?(r=e,o.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),o)}}function M(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function U(e,t,n){return Ot(e)?e:Array.isArray(e)?Z.array(e,{name:n}):l(e)?Z.object(e,void 0,{name:n}):v(e)?Z.map(e,{name:n}):d(e)?Z.set(e,{name:n}):e}function G(e){return e}function q(e){a(e);var t=$(!0,(function(t,n,r,o,i){cn(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)})),n=("undefined"!=typeof process&&process.env,t);return n.enhancer=e,n}var H={deep:!0,name:void 0,defaultDecorator:void 0},z={deep:!1,name:void 0,defaultDecorator:void 0};function K(e){return null==e?H:"string"==typeof e?{name:e,deep:!0}:e}function W(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?G:U}Object.freeze(H),Object.freeze(z);var J=q(U),X=q((function(e,t,n){return null==e?e:vn(e)||Qt(e)||nn(e)||an(e)?e:Array.isArray(e)?Z.array(e,{name:n,deep:!1}):l(e)?Z.object(e,void 0,{name:n,deep:!1}):v(e)?Z.map(e,{name:n,deep:!1}):d(e)?Z.set(e,{name:n,deep:!1}):i(!1)})),Y=q(G),F=q((function(e,t,n){return gn(e,t)?t:e}));var Q={box:function(e,t){arguments.length>2&&ee("box");var n=K(t);return new De(e,W(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&ee("shallowBox"),Z.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ee("array");var n=K(t);return new Kt(e,W(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&ee("shallowArray"),Z.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ee("map");var n=K(t);return new en(e,W(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&ee("shallowMap"),Z.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ee("set");var n=K(t);return new on(e,W(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ee("object");var r=K(n);return ft({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ee("shallowObject"),Z.object(e,{},{name:t,deep:!1})},ref:Y,shallow:X,deep:J,struct:F},Z=function(e,t,n){if("string"==typeof arguments[1])return J.apply(null,arguments);if(Ot(e))return e;var r=l(e)?Z.object(e,t,n):Array.isArray(e)?Z.array(e,t):v(e)?Z.map(e,t):d(e)?Z.set(e,t):e;if(r!==e)return r;i(!1)};function ee(e){i("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Q).forEach((function(e){return Z[e]=Q[e]}));var te,ne,re=$(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};!function(e,t,n){var r=un(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new ke(n),Object.defineProperty(e,t,function(e){return pn[e]||(pn[e]={configurable:Ne.computedConfigurable,enumerable:!1,get:function(){return fn(this).read(this,e)},set:function(t){fn(this).write(this,e,t)}})}(t))}(e,t,C({get:i,set:a},s))})),oe=re({equals:k.structural}),ie=function(e,t,n){if("string"==typeof t)return re.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return re.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)};ie.struct=oe,(te=exports.IDerivationState||(exports.IDerivationState={}))[te.NOT_TRACKING=-1]="NOT_TRACKING",te[te.UP_TO_DATE=0]="UP_TO_DATE",te[te.POSSIBLY_STALE=1]="POSSIBLY_STALE",te[te.STALE=2]="STALE",function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ne||(ne={}));var ae=function(e){this.cause=e};function se(e){return e instanceof ae}function ue(e){switch(e.dependenciesState){case exports.IDerivationState.UP_TO_DATE:return!1;case exports.IDerivationState.NOT_TRACKING:case exports.IDerivationState.STALE:return!0;case exports.IDerivationState.POSSIBLY_STALE:for(var t=de(!0),n=he(),r=e.observing,o=r.length,i=0;i<o;i++){var a=r[i];if(Re(a)){if(Ne.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return ve(n),ye(t),!0}if(e.dependenciesState===exports.IDerivationState.STALE)return ve(n),ye(t),!0}}return be(e),ve(n),ye(t),!1}}function ce(e){var t=e.observers.length>0;Ne.computationDepth>0&&t&&i(!1),Ne.allowStateChanges||!t&&"strict"!==Ne.enforceActions||i(!1)}function le(e,t,n){var r=de(!0);be(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Ne.runId;var o,i=Ne.trackingDerivation;if(Ne.trackingDerivation=e,!0===Ne.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new ae(e)}return Ne.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=exports.IDerivationState.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;a<i;a++){0===(s=n[a]).diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState>r&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(s=t[i]).diffValue&&Le(s,e),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,Pe(s,e))}r!==exports.IDerivationState.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),e.observing.length,ye(r),o}function pe(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Le(t[n],e);e.dependenciesState=exports.IDerivationState.NOT_TRACKING}function fe(e){var t=he(),n=e();return ve(t),n}function he(){var e=Ne.trackingDerivation;return Ne.trackingDerivation=null,e}function ve(e){Ne.trackingDerivation=e}function de(e){var t=Ne.allowStateReads;return Ne.allowStateReads=e,t}function ye(e){Ne.allowStateReads=e}function be(e){if(e.dependenciesState!==exports.IDerivationState.UP_TO_DATE){e.dependenciesState=exports.IDerivationState.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=exports.IDerivationState.UP_TO_DATE}}var me=0,ge=1,xe=Object.getOwnPropertyDescriptor((function(){}),"name");xe&&xe.configurable;function _e(e,t){var n=function(){return Oe(e,t,this,arguments)};return n.isMobxAction=!0,n}function Oe(e,t,n,r){var o=we(e,n,r);try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{Se(o)}}function we(e,t,n){var r=Xe()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var s=0;s<i;s++)a[s]=n[s];Fe({type:"action",name:e,object:t,arguments:a})}var u=he();$e();var c={prevDerivation:u,prevAllowStateChanges:Ae(!0),prevAllowStateReads:de(!0),notifySpy:r,startTime:o,actionId:ge++,parentActionId:me};return me=c.actionId,c}function Se(e){me!==e.actionId&&i("invalid action stack. did you forget to finish an action?"),me=e.parentActionId,void 0!==e.error&&(Ne.suppressReactionErrors=!0),Ee(e.prevAllowStateChanges),ye(e.prevAllowStateReads),Me(),ve(e.prevDerivation),e.notifySpy&&Ze({time:Date.now()-e.startTime}),Ne.suppressReactionErrors=!1}function Ae(e){var t=Ne.allowStateChanges;return Ne.allowStateChanges=e,t}function Ee(e){Ne.allowStateChanges=e}var De=function(e){function t(t,n,r,i,a){void 0===r&&(r="ObservableValue@"+o()),void 0===i&&(i=!0),void 0===a&&(a=k.default);var s=e.call(this,r)||this;return s.enhancer=n,s.name=r,s.equals=a,s.hasUnreportedChange=!1,s.value=n(t,void 0,r),i&&Xe()&&Ye({type:"create",name:s.name,newValue:""+s.value}),s}return I(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Ne.UNCHANGED){var n=Xe();n&&Fe({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&Ze()}},t.prototype.prepareNewValue=function(e){if(ce(this),Ct(this)){var t=Vt(this,{object:this,type:"update",newValue:e});if(!t)return Ne.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Ne.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Nt(this)&&Lt(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 Tt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Pt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return m(this.get())},t}(A);De.prototype[b()]=De.prototype.valueOf;var je=h("ObservableValue",De),ke=function(){function e(e){this.dependenciesState=exports.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=exports.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+o(),this.value=new ae(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ne.NONE,a(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+o(),e.set&&(this.setter=_e(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?k.structural:k.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==exports.IDerivationState.UP_TO_DATE)return;e.lowestObserverState=exports.IDerivationState.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(r.dependenciesState=exports.IDerivationState.POSSIBLY_STALE,r.isTracing!==ne.NONE&&Ge(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&i("Cycle detected in computation "+this.name+": "+this.derivation),0!==Ne.inBatch||0!==this.observers.length||this.keepAlive?(Ue(this),ue(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===exports.IDerivationState.STALE)return;e.lowestObserverState=exports.IDerivationState.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===exports.IDerivationState.POSSIBLY_STALE?r.dependenciesState=exports.IDerivationState.STALE:r.dependenciesState===exports.IDerivationState.UP_TO_DATE&&(e.lowestObserverState=exports.IDerivationState.UP_TO_DATE)}}(this)):ue(this)&&(this.warnAboutUntrackedRead(),$e(),this.value=this.computeValue(!1),Me());var e=this.value;if(se(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(se(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){a(!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 a(!1,!1)},e.prototype.trackAndCompute=function(){Xe()&&Ye({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===exports.IDerivationState.NOT_TRACKING,n=this.computeValue(!0),r=t||se(e)||se(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Ne.computationDepth++,e)t=le(this,this.derivation,this.scope);else if(!0===Ne.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ae(e)}return Ne.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(pe(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return at((function(){var i=n.get();if(!r||t){var a=he();e({type:"update",object:n,newValue:i,oldValue:o}),ve(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 m(this.get())},e}();ke.prototype[b()]=ke.prototype.valueOf;var Re=h("ComputedValue",ke),Ie=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Ce=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=!0,Ve=!1,Ne=function(){var e=r();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Te=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ce).version&&(Te=!1),Te?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ce):(setTimeout((function(){Ve||i("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ce)}();function Pe(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Le(e,t){if(1===e.observers.length)e.observers.length=0,Be(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Be(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Ne.pendingUnobservations.push(e))}function $e(){Ne.inBatch++}function Me(){if(0==--Ne.inBatch){ze();for(var e=Ne.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof ke&&n.suspend())}Ne.pendingUnobservations=[]}}function Ue(e){var t=Ne.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Ne.inBatch>0&&Be(e),!1)}function Ge(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ne.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)}))}(ht(e),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 qe=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+o()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=exports.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+o(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ne.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ne.pendingReactions.push(this),ze())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if($e(),this._isScheduled=!1,ue(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Xe()&&Ye({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Me()}},e.prototype.track=function(e){$e();var t,n=Xe();n&&(t=Date.now(),Fe({name:this.name,type:"reaction"})),this._isRunning=!0;var r=le(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&pe(this),se(r)&&this.reportExceptionInDerivation(r.cause),n&&Ze({time:Date.now()-t}),Me()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Ne.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Ne.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Xe()&&Ye({type:"error",name:this.name,message:n,error:""+e}),Ne.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||($e(),pe(this),Me()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),Dt(this,e)},e}();var He=function(e){return e()};function ze(){Ne.inBatch>0||Ne.isRunningReactions||He(Ke)}function Ke(){Ne.isRunningReactions=!0;for(var e=Ne.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 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<o;r++)n[r].runReaction()}Ne.isRunningReactions=!1}var We=h("Reaction",qe);function Je(e){var t=He;He=function(n){return e((function(){return t(n)}))}}function Xe(){return!!Ne.spyListeners.length}function Ye(e){if(Ne.spyListeners.length)for(var t=Ne.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Fe(e){Ye(C(C({},e),{spyReportStart:!0}))}var Qe={spyReportEnd:!0};function Ze(e){Ye(e?C(C({},e),{spyReportEnd:!0}):Qe)}function et(e){return Ne.spyListeners.push(e),s((function(){Ne.spyListeners=Ne.spyListeners.filter((function(t){return t!==e}))}))}function tt(){i(!1)}function nt(e){return function(t,n,r){if(r){if(r.value)return{value:_e(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return _e(e,o.call(this))}}}return rt(e).apply(this,arguments)}}function rt(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){p(this,n,ot(e,t))}})}}var ot=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?_e(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?_e(e,t):1===arguments.length&&"string"==typeof e?nt(e):!0!==r?nt(t).apply(null,arguments):void(e[t]=_e(e.name||t,n.value))};function it(e,t,n){p(e,t,_e(t,n.bind(e)))}function at(e,n){void 0===n&&(n=t);var r,i=n&&n.name||e.name||"Autorun@"+o();if(!n.scheduler&&!n.delay)r=new qe(i,(function(){this.track(u)}),n.onError,n.requiresObservable);else{var a=ut(n),s=!1;r=new qe(i,(function(){s||(s=!0,a((function(){s=!1,r.isDisposed||r.track(u)})))}),n.onError,n.requiresObservable)}function u(){e(r)}return r.schedule(),r.getDisposer()}ot.bound=function(e,t,n,r){return!0===r?(it(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return it(this,t,n.value||n.initializer.call(this)),this[t]},set:tt}:{enumerable:!1,configurable:!0,set:function(e){it(this,t,e)},get:function(){}}};var st=function(e){return e()};function ut(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:st}function ct(e,t,n){return pt("onBecomeObserved",e,t,n)}function lt(e,t,n){return pt("onBecomeUnobserved",e,t,n)}function pt(e,t,n,r){var o="function"==typeof r?dn(t,n):dn(t),a="function"==typeof r?r:n,s=o[e];return"function"!=typeof s?i(!1):(o[e]=function(){s.call(this),a.call(this)},function(){o[e]=s})}function ft(e,t,n,r){var o=(r=K(r)).defaultDecorator||(!1===r.deep?Y:J);B(e),un(e,r.name,o.enhancer),$e();try{for(var i=Object.getOwnPropertyNames(t),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(t,u);0;var l=n&&u in n?n[u]:c.get?re:o;0;var p=l(e,u,c,!0);p&&Object.defineProperty(e,u,p)}}finally{Me()}return e}function ht(e,t){return vt(dn(e,t))}function vt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(vt)),r}function dt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=function(e){return e.observers}(e).map(dt)),t}var yt=0;function bt(){this.message="FLOW_CANCELLED"}function mt(e){"function"==typeof e.cancel&&e.cancel()}function gt(e,t){if(null==e)return!1;if(void 0!==t){if(!1===vn(e))return!1;if(!e.$mobx.values[t])return!1;var n=dn(e,t);return Re(n)}return Re(e)}function xt(e){return arguments.length>1?i(!1):gt(e)}function _t(e,t){if(null==e)return!1;if(void 0!==t){if(vn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return vn(e)||!!e.$mobx||E(e)||We(e)||Re(e)}function Ot(e){return 1!==arguments.length&&i(!1),_t(e)}function wt(e){return vn(e)?e.$mobx.getKeys():nn(e)?y(e.keys()):an(e)?y(e.keys()):Qt(e)?e.map((function(e,t){return t})):i(!1)}function St(e,t){if(vn(e)){var n=yn(e);return n.getKeys(),!!n.values[t]}return nn(e)?e.has(t):an(e)?e.has(t):Qt(e)?t>=0&&t<e.length:i(!1)}bt.prototype=Object.create(Error.prototype);var At={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Et(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function Dt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=jt(e);if(!r)return i(!1);r.isTracing===ne.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?ne.BREAK:ne.LOG}function jt(e){switch(e.length){case 0:return Ne.trackingDerivation;case 1:return dn(e[0]);case 2:return dn(e[0],e[1])}}function kt(e,t){void 0===t&&(t=void 0),$e();try{return e.apply(t)}finally{Me()}}function Rt(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!a.$mobx.isDisposed){a();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+o();var i=_e(n.name+"-effect",t),a=at((function(t){e()&&(t.dispose(),r&&clearTimeout(r),i())}),n);return a}function It(e,t){var n,r=new Promise((function(r,o){var i=Rt(e,r,C(C({},t),{onError:o}));n=function(){i(),o("WHEN_CANCELLED")}}));return r.cancel=n,r}function Ct(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Tt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),s((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Vt(e,t){var n=he();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(a(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{ve(n)}}function Nt(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Pt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),s((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Lt(e,t){var n=he(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);ve(n)}}var Bt,$t,Mt,Ut,Gt=(Bt=!1,$t={},Object.defineProperty($t,"0",{set:function(){Bt=!0}}),Object.create($t)[0]=1,!1===Bt),qt=0,Ht=function(){};Mt=Ht,Ut=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Mt.prototype,Ut):void 0!==Mt.prototype.__proto__?Mt.prototype.__proto__=Ut:Mt.prototype=Ut,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(Ht.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var zt=function(){function t(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new A(e||"ObservableArray@"+o()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.prototype.intercept=function(e){return Tt(this,e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Pt(this,e)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.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;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},t.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>qt&&Yt(e+t+1)},t.prototype.spliceWithArray=function(t,n,r){var o=this;ce(this.atom);var i=this.values.length;if(void 0===t?t=0:t>i?t=i:t<0&&(t=Math.max(0,i+t)),n=1===arguments.length?i-t:null==n?0:Math.max(0,Math.min(n,i-t)),void 0===r&&(r=e),Ct(this)){var a=Vt(this,{object:this.array,type:"splice",index:t,removedCount:n,added:r});if(!a)return e;n=a.removedCount,r=a.added}var s=(r=0===r.length?r:r.map((function(e){return o.enhancer(e,void 0)}))).length-n;this.updateArrayLength(i,s);var u=this.spliceItemsIntoValues(t,n,r);return 0===n&&0===r.length||this.notifyArraySplice(t,r,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,V([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},t.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Xe(),o=Nt(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&Fe(C(C({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Lt(this,i),r&&Ze()},t.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Xe(),o=Nt(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&Fe(C(C({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Lt(this,i),r&&Ze()},t}(),Kt=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableArray@"+o()),void 0===i&&(i=!1);var a=e.call(this)||this,s=new zt(r,n,a,i);if(f(a,"$mobx",s),t&&t.length){var u=Ae(!0);a.spliceWithArray(0,0,t),Ee(u)}return Gt&&Object.defineProperty(s.array,"0",Wt),a}return I(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return Qt(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?V(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):V(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){ce(n.atom);var o=r[e];if(Ct(n)){var i=Vt(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(Ht);_(Kt.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return O({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(Kt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),p(Kt.prototype,w(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];a("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),p(Kt.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){a("function"==typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),p(Kt.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.dehanceValues(o.values)[e]((function(e,o){return t.call(n,e,o,r)}),n)}))})),["reduce","reduceRight"].forEach((function(e){p(Kt.prototype,e,(function(){var t=this,n=this.$mobx;n.atom.reportObserved();var r=arguments[0];return arguments[0]=function(e,o,i){return o=n.dehanceValue(o),r(e,o,i,t)},n.values[e].apply(n.values,arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)p(e,t[n],e[t[n]])}(Kt.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Wt=Jt(0);function Jt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Xt(e){Object.defineProperty(Kt.prototype,""+e,Jt(e))}function Yt(e){for(var t=qt;t<e;t++)Xt(t);qt=e}Yt(1e3);var Ft=h("ObservableArrayAdministration",zt);function Qt(e){return c(e)&&Ft(e.$mobx)}var Zt={},en=function(){function e(e,t,n){if(void 0===t&&(t=U),void 0===n&&(n="ObservableMap@"+o()),this.enhancer=t,this.name=n,this.$mobx=Zt,this._keysAtom=D(this.name+".keys()"),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Ne.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new De(this._has(e),G,this.name+"."+tn(e)+"?",!1);this._hasMap.set(e,r),lt(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(Ct(this)){var r=Vt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((ce(this._keysAtom),Ct(this))&&!(o=Vt(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Xe(),r=Nt(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Fe(C(C({},o),{name:this.name,key:e})),kt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Lt(this,o),n&&Ze(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Ne.UNCHANGED){var r=Xe(),o=Nt(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&Fe(C(C({},i),{name:this.name,key:e})),n.setNewValue(t),o&&Lt(this,i),r&&Ze()}},e.prototype._addValue=function(e,t){var n=this;ce(this._keysAtom),kt((function(){var r=new De(t,n.enhancer,n.name+"."+tn(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=Xe(),o=Nt(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&Fe(C(C({},i),{name:this.name,key:e})),o&&Lt(this,i),r&&Ze()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return O({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return O({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},e.prototype.forEach=function(e,t){var n=this;this._keysAtom.reportObserved(),this._data.forEach((function(r,o){return e.call(t,n.get(o),o,n)}))},e.prototype.merge=function(e){var t=this;return nn(e)&&(e=e.toJS()),kt((function(){var n=Ae(!0);try{l(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=T(e,2),r=n[0],o=n[1];return t.set(r,o)})):v(e)?e.constructor!==Map?i("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,n){return t.set(n,e)})):null!=e&&i("Cannot initialize map from "+e)}finally{Ee(n)}})),this},e.prototype.clear=function(){var e=this;kt((function(){fe((function(){e._data.forEach((function(t,n){return e.delete(n)}))}))}))},e.prototype.replace=function(e){var t=this;return kt((function(){var n=function(e){if(v(e)||nn(e))return e;if(Array.isArray(e))return new Map(e);if(l(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return i("Cannot convert to map from '"+e+"'")}(e),r=new Map,o=!1;if(g(t._data.keys(),(function(e){if(!n.has(e))if(t.delete(e))o=!0;else{var i=t._data.get(e);r.set(e,i)}})),g(n.entries(),(function(e){var n=T(e,2),i=n[0],a=n[1],s=t._data.has(i);if(t.set(i,a),t._data.has(i)){var u=t._data.get(i);r.set(i,u),s||(o=!0)}})),!o)if(t._data.size!==r.size)t._keysAtom.reportChanged();else for(var a=t._data.keys(),s=r.keys(),u=a.next(),c=s.next();!u.done;){if(u.value!==c.value){t._keysAtom.reportChanged();break}u=a.next(),c=s.next()}t._data=r})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(n,r){return t["symbol"==typeof r?r:tn(r)]=e.get(r)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+y(this.keys()).map((function(t){return tn(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Pt(this,e)},e.prototype.intercept=function(e){return Tt(this,e)},e}();function tn(e){return e&&e.toString?e.toString():new String(e).toString()}_(en.prototype,(function(){return this.entries()})),f(en.prototype,w(),"Map");var nn=h("ObservableMap",en),rn={},on=function(){function e(e,t,n){if(void 0===t&&(t=U),void 0===n&&(n="ObservableSet@"+o()),this.name=n,this.$mobx=rn,this._data=new Set,this._atom=D(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;kt((function(){fe((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var n=this;this._atom.reportObserved(),this._data.forEach((function(r){e.call(t,r,r,n)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((ce(this._atom),Ct(this))&&!(o=Vt(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){kt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=Xe(),r=Nt(this),o=r||n?{type:"add",object:this,newValue:e}:null;0,r&&Lt(this,o)}return this},e.prototype.delete=function(e){var t=this;if(Ct(this)&&!(o=Vt(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Xe(),r=Nt(this),o=r||n?{type:"delete",object:this,oldValue:e}:null;return kt((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&Lt(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=y(this.keys()),n=y(this.values());return O({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=y(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),O({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return an(e)&&(e=e.toJS()),kt((function(){var n=Ae(!0);try{Array.isArray(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):d(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&i("Cannot initialize set from "+e)}finally{Ee(n)}})),this},e.prototype.observe=function(e,t){return Pt(this,e)},e.prototype.intercept=function(e){return Tt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+y(this.keys()).join(", ")+" ]"},e}();_(on.prototype,(function(){return this.values()})),f(on.prototype,w(),"Set");var an=h("ObservableSet",on),sn=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof ke)o.set(n);else{if(Ct(this)){if(!(s=Vt(this,{type:"update",object:r,name:t,newValue:n})))return;n=s.newValue}if((n=o.prepareNewValue(n))!==Ne.UNCHANGED){var i=Nt(this),a=Xe(),s=i||a?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;a&&Fe(C(C({},s),{name:this.name,key:t})),o.setNewValue(n),i&&Lt(this,s),a&&Ze()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(Ct(this))if(!(i=Vt(this,{object:t,name:e,type:"remove"})))return;try{$e();var n=Nt(this),r=Xe(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var i=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&Fe(C(C({},i),{name:this.name,key:e})),n&&Lt(this,i),r&&Ze()}finally{Me()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return Pt(this,e)},e.prototype.intercept=function(e){return Tt(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Kt(Object.keys(this.values).filter((function(t){return e.values[t]instanceof De})),G,"keys("+this.name+")",!0)),this.keys.slice()},e}();function un(e,t,n){void 0===t&&(t=""),void 0===n&&(n=U);var r=e.$mobx;return r||(l(e)||(t=(e.constructor.name||"ObservableObject")+"@"+o()),t||(t="ObservableObject@"+o()),f(e,"$mobx",r=new sn(e,t,n)),r)}function cn(e,t,n,r){var o=un(e);if(Ct(o)){var i=Vt(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new De(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return ln[e]||(ln[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=Nt(e),i=Xe(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&Fe(C(C({},a),{name:e.name,key:n}));o&&Lt(e,a);i&&Ze()}(o,e,t,n)}var ln=Object.create(null),pn=Object.create(null);function fn(e){var t=e.$mobx;return t||(B(e),e.$mobx)}var hn=h("ObservableObjectAdministration",sn);function vn(e){return!!c(e)&&(B(e),hn(e.$mobx))}function dn(e,t){if("object"==typeof e&&null!==e){if(Qt(e))return void 0!==t&&i(!1),e.$mobx.atom;if(an(e))return e.$mobx;if(nn(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||i(!1),r)}var r;if(B(e),t&&!e.$mobx&&e[t],vn(e))return t?((r=e.$mobx.values[t])||i(!1),r):i(!1);if(E(e)||Re(e)||We(e))return e}else if("function"==typeof e&&We(e.$mobx))return e.$mobx;return i(!1)}function yn(e,t){return e||i("Expecting some object"),void 0!==t?yn(dn(e,t)):E(e)||Re(e)||We(e)?e:nn(e)||an(e)?e:(B(e),e.$mobx?e.$mobx:void i(!1))}function bn(e,t){return(void 0!==t?dn(e,t):vn(e)||nn(e)||an(e)?yn(e):dn(e)).name}var mn=Object.prototype.toString;function gn(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,o,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;if("function"!==a&&"object"!==a&&"object"!=typeof n)return!1;t=xn(t),n=xn(n);var s=mn.call(t);if(s!==mn.call(n))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n)}var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var p=(o=o||[]).length;for(;p--;)if(o[p]===t)return i[p]===n;if(o.push(t),i.push(n),u){if((p=t.length)!==n.length)return!1;for(;p--;)if(!e(t[p],n[p],r-1,o,i))return!1}else{var f=Object.keys(t),h=void 0;if(p=f.length,Object.keys(n).length!==p)return!1;for(;p--;)if(h=f[p],!_n(n,h)||!e(t[h],n[h],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(e,t,n)}function xn(e){return Qt(e)?e.peek():v(e)||nn(e)?y(e.entries()):d(e)||an(e)?y(e.entries()):e}function _n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:et,extras:{getDebugName:bn},$mobx:"$mobx"}),exports.$mobx="$mobx",exports.FlowCancellationError=bt,exports.ObservableMap=en,exports.ObservableSet=on,exports.Reaction=qe,exports._allowStateChanges=function(e,t){var n,r=Ae(e);try{n=t()}finally{Ee(r)}return n},exports._allowStateChangesInsideComputed=function(e){var t,n=Ne.computationDepth;Ne.computationDepth=0;try{t=e()}finally{Ne.computationDepth=n}return t},exports._allowStateReadsEnd=ye,exports._allowStateReadsStart=de,exports._endAction=Se,exports._getAdministration=yn,exports._getGlobalState=function(){return Ne},exports._interceptReads=function(e,t,n){var r;if(nn(e)||Qt(e)||je(e))r=yn(e);else{if(!vn(e))return i(!1);if("string"!=typeof t)return i(!1);r=yn(e,t)}return void 0!==r.dehancer?i(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})},exports._isComputingDerivation=function(){return null!==Ne.trackingDerivation},exports._resetGlobalState=function(){var e=new Ce;for(var t in e)-1===Ie.indexOf(t)&&(Ne[t]=e[t]);Ne.allowStateChanges=!Ne.enforceActions},exports._startAction=we,exports.action=ot,exports.autorun=at,exports.comparer=k,exports.computed=ie,exports.configure=function(e){var t=e.enforceActions,n=e.computedRequiresReaction,o=e.computedConfigurable,a=e.disableErrorBoundaries,s=e.arrayBuffer,u=e.reactionScheduler,c=e.reactionRequiresObservable,l=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Ne.pendingReactions.length||Ne.inBatch||Ne.isRunningReactions)&&i("isolateGlobalState should be called before MobX is running any reactions"),Ve=!0,Te&&(0==--r().__mobxInstanceCount&&(r().__mobxGlobals=void 0),Ne=new Ce)),void 0!==t){var p=void 0;switch(t){case!0:case"observed":p=!0;break;case!1:case"never":p=!1;break;case"strict":case"always":p="strict";break;default:i("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Ne.enforceActions=p,Ne.allowStateChanges=!0!==p&&"strict"!==p}void 0!==n&&(Ne.computedRequiresReaction=!!n),void 0!==c&&(Ne.reactionRequiresObservable=!!c),void 0!==l&&(Ne.observableRequiresReaction=!!l,Ne.allowStateReads=!Ne.observableRequiresReaction),void 0!==o&&(Ne.computedConfigurable=!!o),void 0!==a&&(!0===a&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Ne.disableErrorBoundaries=!!a),"number"==typeof s&&Yt(s),u&&Je(u)},exports.createAtom=D,exports.decorate=function(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var o=Object.getOwnPropertyDescriptor(n,e),i=r.reduce((function(t,r){return r(n,e,t)}),o);i&&Object.defineProperty(n,e,i)};for(var o in t)r(o);return e},exports.entries=function(e){return vn(e)?wt(e).map((function(t){return[t,e[t]]})):nn(e)?wt(e).map((function(t){return[t,e.get(t)]})):an(e)?y(e.entries()):Qt(e)?e.map((function(e,t){return[t,e]})):i(!1)},exports.extendObservable=ft,exports.extendShallowObservable=function(e,t,n){return ft(e,t,n,z)},exports.flow=function(e){1!==arguments.length&&i("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++yt,a=ot(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,c=new Promise((function(e,r){var o=0;function u(e){var n;s=void 0;try{n=ot(t+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(e){return r(e)}l(n)}function c(e){var n;s=void 0;try{n=ot(t+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(e){return r(e)}l(n)}function l(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(u,c);t.then(l,r)}n=r,u(void 0)}));return c.cancel=ot(t+" - runid: "+i+" - cancel",(function(){try{s&&mt(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(u,u),mt(t),n(new bt)}catch(e){n(e)}})),c}},exports.get=function(e,t){if(St(e,t))return vn(e)?e[t]:nn(e)?e.get(t):Qt(e)?e[t]:i(!1)},exports.getAtom=dn,exports.getDebugName=bn,exports.getDependencyTree=ht,exports.getObserverTree=function(e,t){return dt(dn(e,t))},exports.has=St,exports.intercept=function(e,t,n){return"function"==typeof n?function(e,t,n){return yn(e,t).intercept(n)}(e,t,n):function(e,t){return yn(e).intercept(t)}(e,t)},exports.isAction=function(e){return"function"==typeof e&&!0===e.isMobxAction},exports.isArrayLike=function(e){return Array.isArray(e)||Qt(e)},exports.isBoxedObservable=je,exports.isComputed=xt,exports.isComputedProp=function(e,t){return"string"!=typeof t?i(!1):gt(e,t)},exports.isFlowCancellationError=function(e){return e instanceof bt},exports.isObservable=Ot,exports.isObservableArray=Qt,exports.isObservableMap=nn,exports.isObservableObject=vn,exports.isObservableProp=function(e,t){return"string"!=typeof t?i(!1):_t(e,t)},exports.isObservableSet=an,exports.keys=wt,exports.observable=Z,exports.observe=function(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return yn(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return yn(e).observe(t,n)}(e,t,n)},exports.onBecomeObserved=ct,exports.onBecomeUnobserved=lt,exports.onReactionError=function(e){return Ne.globalReactionErrorHandlers.push(e),function(){var t=Ne.globalReactionErrorHandlers.indexOf(e);t>=0&&Ne.globalReactionErrorHandlers.splice(t,1)}},exports.reaction=function(e,n,r){void 0===r&&(r=t),"boolean"==typeof r&&(r={fireImmediately:r});var i,a,s,u=r.name||"Reaction@"+o(),c=ot(u,r.onError?(i=r.onError,a=n,function(){try{return a.apply(this,arguments)}catch(e){i.call(this,e)}}):n),l=!r.scheduler&&!r.delay,p=ut(r),f=!0,h=!1,v=r.compareStructural?k.structural:r.equals||k.default,d=new qe(u,(function(){f||l?y():h||(h=!0,p(y))}),r.onError,r.requiresObservable);function y(){if(h=!1,!d.isDisposed){var t=!1;d.track((function(){var n=e(d);t=f||!v(s,n),s=n})),f&&r.fireImmediately&&c(s,d),f||!0!==t||c(s,d),f&&(f=!1)}}return d.schedule(),d.getDisposer()},exports.remove=function(e,t){if(vn(e))e.$mobx.remove(t);else if(nn(e))e.delete(t);else if(an(e))e.delete(t);else{if(!Qt(e))return i(!1);"number"!=typeof t&&(t=parseInt(t,10)),a(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}},exports.runInAction=function(e,t){return Oe("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)},exports.set=function e(t,n,r){if(2!==arguments.length||an(t))if(vn(t)){var o=t.$mobx,s=o.values[n];s?o.write(t,n,r):cn(t,n,r,o.defaultEnhancer)}else if(nn(t))t.set(n,r);else if(an(t))t.add(n);else{if(!Qt(t))return i(!1);"number"!=typeof n&&(n=parseInt(n,10)),a(n>=0,"Not a valid index: '"+n+"'"),$e(),n>=t.length&&(t.length=n+1),t[n]=r,Me()}else{$e();var u=n;try{for(var c in u)e(t,c,u[c])}finally{Me()}}},exports.spy=et,exports.toJS=function(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=At),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&&!Ot(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(je(t))return e(t.get(),n,r);if(Ot(t)&&wt(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Qt(t)||Array.isArray(t)){var o=Et(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<s;a++)o[a]=i[a];return o}if(an(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===n.exportMapsAsObjects){var u=Et(r,t,new Set,n);return t.forEach((function(t){u.add(e(t,n,r))})),u}var c=Et(r,t,[],n);return t.forEach((function(t){c.push(e(t,n,r))})),c}if(nn(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===n.exportMapsAsObjects){var l=Et(r,t,new Map,n);return t.forEach((function(t,o){l.set(o,e(t,n,r))})),l}var p=Et(r,t,{},n);return t.forEach((function(t,o){p[o]=e(t,n,r)})),p}var f=Et(r,t,{},n);for(var h in t)f[h]=e(t[h],n,r);return f}(e,t,n)},exports.trace=Dt,exports.transaction=kt,exports.untracked=fe,exports.values=function(e){return vn(e)?wt(e).map((function(t){return e[t]})):nn(e)?wt(e).map((function(t){return e.get(t)})):an(e)?y(e.values()):Qt(e)?e.slice():i(!1)},exports.when=function(e,t,n){return 1===arguments.length||t&&"object"==typeof t?It(e,t):Rt(e,t,n||{})};

@@ -15,2 +15,2 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).mobx={})}(this,(function(e){"use strict";var t=[];Object.freeze(t);var n={};Object.freeze(n);var r={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:r}function i(){return++Pe.mobxGuid}function a(e){throw s(!1,e),"X"}function s(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function u(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var c=function(){};function l(e){return null!==e&&"object"==typeof e}function f(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function p(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function v(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return l(e)&&!0===e[n]}}function d(e){return void 0!==o().Map&&e instanceof o().Map}function y(e){return e instanceof Set}function b(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function m(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function g(e){return null===e?null:"object"==typeof e?""+e:e}function _(e,t){for(var n=e.next();!n.done;)t(n.value),n=e.next()}function O(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function w(e,t){h(e,O(),t)}function S(e){return e[O()]=x,e}function A(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function x(){return this}var E=function(){function t(t){void 0===t&&(t="Atom@"+i()),this.name=t,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=e.IDerivationState.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return Ge(this)},t.prototype.reportChanged=function(){Me(),function(t){if(t.lowestObserverState===e.IDerivationState.STALE)return;t.lowestObserverState=e.IDerivationState.STALE;var n=t.observers,r=n.length;for(;r--;){var o=n[r];o.dependenciesState===e.IDerivationState.UP_TO_DATE&&(o.isTracing!==re.NONE&&qe(o,t),o.onBecomeStale()),o.dependenciesState=e.IDerivationState.STALE}}(this),Ue()},t.prototype.toString=function(){return this.name},t}(),D=v("Atom",E);function j(e,t,n){void 0===t&&(t=c),void 0===n&&(n=c);var r=new E(e);return lt(r,t),ft(r,n),r}function k(e,t){return e===t}var R={identity:k,structural:function(e,t){return _n(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||k(e,t)},shallow:function(e,t){return _n(e,t,1)}},I=function(e,t){return(I=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)};

and limitations under the License.
***************************************************************************** */function C(e,t){function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var T=function(){return(T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function V(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(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function N(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V(arguments[t]));return e}var P={},L={};function B(e,t){var n=t?P:L;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return $(this),this[e]},set:function(t){$(this),this[e]=t}})}function $(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in p(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function M(e,n){return function(){var r,o=function(t,o,i,a){if(!0===a)return n(t,o,i,t,r),null;if(!Object.prototype.hasOwnProperty.call(t,"__mobxDecorators")){var s=t.__mobxDecorators;p(t,"__mobxDecorators",T({},s))}return t.__mobxDecorators[o]={prop:o,propertyCreator:n,descriptor:i,decoratorTarget:t,decoratorArguments:r},B(o,e)};return U(arguments)?(r=t,o.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),o)}}function U(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function G(e,t,n){return St(e)?e:Array.isArray(e)?ee.array(e,{name:n}):f(e)?ee.object(e,void 0,{name:n}):d(e)?ee.map(e,{name:n}):y(e)?ee.set(e,{name:n}):e}function q(e){return e}function H(e){s(e);var t=M(!0,(function(t,n,r,o,i){ln(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)})),n=("undefined"!=typeof process&&process.env,t);return n.enhancer=e,n}var z={deep:!0,name:void 0,defaultDecorator:void 0},K={deep:!1,name:void 0,defaultDecorator:void 0};function W(e){return null==e?z:"string"==typeof e?{name:e,deep:!0}:e}function J(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?q:G}Object.freeze(z),Object.freeze(K);var X=H(G),Y=H((function(e,t,n){return null==e?e:dn(e)||Zt(e)||rn(e)||sn(e)?e:Array.isArray(e)?ee.array(e,{name:n,deep:!1}):f(e)?ee.object(e,void 0,{name:n,deep:!1}):d(e)?ee.map(e,{name:n,deep:!1}):y(e)?ee.set(e,{name:n,deep:!1}):a(!1)})),F=H(q),Q=H((function(e,t,n){return _n(e,t)?t:e}));var Z={box:function(e,t){arguments.length>2&&te("box");var n=W(t);return new je(e,J(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&te("shallowBox"),ee.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&te("array");var n=W(t);return new Wt(e,J(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&te("shallowArray"),ee.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&te("map");var n=W(t);return new tn(e,J(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&te("shallowMap"),ee.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&te("set");var n=W(t);return new an(e,J(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&te("object");var r=W(n);return ht({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&te("shallowObject"),ee.object(e,{},{name:t,deep:!1})},ref:F,shallow:Y,deep:X,struct:Q},ee=function(e,t,n){if("string"==typeof arguments[1])return X.apply(null,arguments);if(St(e))return e;var r=f(e)?ee.object(e,t,n):Array.isArray(e)?ee.array(e,t):d(e)?ee.map(e,t):y(e)?ee.set(e,t):e;if(r!==e)return r;a(!1)};function te(e){a("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Z).forEach((function(e){return ee[e]=Z[e]}));var ne,re,oe=M(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};!function(e,t,n){var r=cn(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Re(n),Object.defineProperty(e,t,function(e){return pn[e]||(pn[e]={configurable:Pe.computedConfigurable,enumerable:!1,get:function(){return hn(this).read(this,e)},set:function(t){hn(this).write(this,e,t)}})}(t))}(e,t,T({get:i,set:a},s))})),ie=oe({equals:R.structural}),ae=function(e,t,n){if("string"==typeof t)return oe.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return oe.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 Re(r)};ae.struct=ie,(ne=e.IDerivationState||(e.IDerivationState={}))[ne.NOT_TRACKING=-1]="NOT_TRACKING",ne[ne.UP_TO_DATE=0]="UP_TO_DATE",ne[ne.POSSIBLY_STALE=1]="POSSIBLY_STALE",ne[ne.STALE=2]="STALE",function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(re||(re={}));var se=function(e){this.cause=e};function ue(e){return e instanceof se}function ce(t){switch(t.dependenciesState){case e.IDerivationState.UP_TO_DATE:return!1;case e.IDerivationState.NOT_TRACKING:case e.IDerivationState.STALE:return!0;case e.IDerivationState.POSSIBLY_STALE:for(var n=ye(!0),r=ve(),o=t.observing,i=o.length,a=0;a<i;a++){var s=o[a];if(Ie(s)){if(Pe.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return de(r),be(n),!0}if(t.dependenciesState===e.IDerivationState.STALE)return de(r),be(n),!0}}return me(t),de(r),be(n),!1}}function le(e){var t=e.observers.length>0;Pe.computationDepth>0&&t&&a(!1),Pe.allowStateChanges||!t&&"strict"!==Pe.enforceActions||a(!1)}function fe(t,n,r){var o=ye(!0);me(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Pe.runId;var i,a=Pe.trackingDerivation;if(Pe.trackingDerivation=t,!0===Pe.disableErrorBoundaries)i=n.call(r);else try{i=n.call(r)}catch(e){i=new se(e)}return Pe.trackingDerivation=a,function(t){for(var n=t.observing,r=t.observing=t.newObserving,o=e.IDerivationState.UP_TO_DATE,i=0,a=t.unboundDepsCount,s=0;s<a;s++){0===(u=r[s]).diffValue&&(u.diffValue=1,i!==s&&(r[i]=u),i++),u.dependenciesState>o&&(o=u.dependenciesState)}r.length=i,t.newObserving=null,a=n.length;for(;a--;){0===(u=n[a]).diffValue&&Be(u,t),u.diffValue=0}for(;i--;){var u;1===(u=r[i]).diffValue&&(u.diffValue=0,Le(u,t))}o!==e.IDerivationState.UP_TO_DATE&&(t.dependenciesState=o,t.onBecomeStale())}(t),t.observing.length,be(o),i}function pe(t){var n=t.observing;t.observing=[];for(var r=n.length;r--;)Be(n[r],t);t.dependenciesState=e.IDerivationState.NOT_TRACKING}function he(e){var t=ve(),n=e();return de(t),n}function ve(){var e=Pe.trackingDerivation;return Pe.trackingDerivation=null,e}function de(e){Pe.trackingDerivation=e}function ye(e){var t=Pe.allowStateReads;return Pe.allowStateReads=e,t}function be(e){Pe.allowStateReads=e}function me(t){if(t.dependenciesState!==e.IDerivationState.UP_TO_DATE){t.dependenciesState=e.IDerivationState.UP_TO_DATE;for(var n=t.observing,r=n.length;r--;)n[r].lowestObserverState=e.IDerivationState.UP_TO_DATE}}var ge=0,_e=1,Oe=Object.getOwnPropertyDescriptor((function(){}),"name");Oe&&Oe.configurable;function we(e,t){var n=function(){return Se(e,t,this,arguments)};return n.isMobxAction=!0,n}function Se(e,t,n,r){var o=Ae(e,n,r);try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{xe(o)}}function Ae(e,t,n){var r=Ye()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var s=0;s<i;s++)a[s]=n[s];Qe({type:"action",name:e,object:t,arguments:a})}var u=ve();Me();var c={prevDerivation:u,prevAllowStateChanges:Ee(!0),prevAllowStateReads:ye(!0),notifySpy:r,startTime:o,actionId:_e++,parentActionId:ge};return ge=c.actionId,c}function xe(e){ge!==e.actionId&&a("invalid action stack. did you forget to finish an action?"),ge=e.parentActionId,void 0!==e.error&&(Pe.suppressReactionErrors=!0),De(e.prevAllowStateChanges),be(e.prevAllowStateReads),Ue(),de(e.prevDerivation),e.notifySpy&&et({time:Date.now()-e.startTime}),Pe.suppressReactionErrors=!1}function Ee(e){var t=Pe.allowStateChanges;return Pe.allowStateChanges=e,t}function De(e){Pe.allowStateChanges=e}var je=function(e){function t(t,n,r,o,a){void 0===r&&(r="ObservableValue@"+i()),void 0===o&&(o=!0),void 0===a&&(a=R.default);var s=e.call(this,r)||this;return s.enhancer=n,s.name=r,s.equals=a,s.hasUnreportedChange=!1,s.value=n(t,void 0,r),o&&Ye()&&Fe({type:"create",name:s.name,newValue:""+s.value}),s}return C(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Pe.UNCHANGED){var n=Ye();n&&Qe({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&et()}},t.prototype.prepareNewValue=function(e){if(le(this),Tt(this)){var t=Nt(this,{object:this,type:"update",newValue:e});if(!t)return Pe.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Pe.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Pt(this)&&Bt(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 Vt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Lt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return g(this.get())},t}(E);je.prototype[m()]=je.prototype.valueOf;var ke=v("ObservableValue",je),Re=function(){function t(t){this.dependenciesState=e.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=e.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+i(),this.value=new se(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=re.NONE,s(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+i(),t.set&&(this.setter=we(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?R.structural:R.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){if(t.lowestObserverState!==e.IDerivationState.UP_TO_DATE)return;t.lowestObserverState=e.IDerivationState.POSSIBLY_STALE;var n=t.observers,r=n.length;for(;r--;){var o=n[r];o.dependenciesState===e.IDerivationState.UP_TO_DATE&&(o.dependenciesState=e.IDerivationState.POSSIBLY_STALE,o.isTracing!==re.NONE&&qe(o,t),o.onBecomeStale())}}(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&a("Cycle detected in computation "+this.name+": "+this.derivation),0!==Pe.inBatch||0!==this.observers.length||this.keepAlive?(Ge(this),ce(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===e.IDerivationState.STALE)return;t.lowestObserverState=e.IDerivationState.STALE;var n=t.observers,r=n.length;for(;r--;){var o=n[r];o.dependenciesState===e.IDerivationState.POSSIBLY_STALE?o.dependenciesState=e.IDerivationState.STALE:o.dependenciesState===e.IDerivationState.UP_TO_DATE&&(t.lowestObserverState=e.IDerivationState.UP_TO_DATE)}}(this)):ce(this)&&(this.warnAboutUntrackedRead(),Me(),this.value=this.computeValue(!1),Ue());var t=this.value;if(ue(t))throw t.cause;return t},t.prototype.peek=function(){var e=this.computeValue(!1);if(ue(e))throw e.cause;return e},t.prototype.set=function(e){if(this.setter){s(!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 s(!1,!1)},t.prototype.trackAndCompute=function(){Ye()&&Fe({object:this.scope,type:"compute",name:this.name});var t=this.value,n=this.dependenciesState===e.IDerivationState.NOT_TRACKING,r=this.computeValue(!0),o=n||ue(t)||ue(r)||!this.equals(t,r);return o&&(this.value=r),o},t.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Pe.computationDepth++,e)t=fe(this,this.derivation,this.scope);else if(!0===Pe.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new se(e)}return Pe.computationDepth--,this.isComputing=!1,t},t.prototype.suspend=function(){this.keepAlive||(pe(this),this.value=void 0)},t.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return st((function(){var i=n.get();if(!r||t){var a=ve();e({type:"update",object:n,newValue:i,oldValue:o}),de(a)}r=!1,o=i}))},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return g(this.get())},t}();Re.prototype[m()]=Re.prototype.valueOf;var Ie=v("ComputedValue",Re),Ce=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Te=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},Ve=!0,Ne=!1,Pe=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ve=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Te).version&&(Ve=!1),Ve?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Te):(setTimeout((function(){Ne||a("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Te)}();function Le(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Be(e,t){if(1===e.observers.length)e.observers.length=0,$e(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function $e(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Pe.pendingUnobservations.push(e))}function Me(){Pe.inBatch++}function Ue(){if(0==--Pe.inBatch){Ke();for(var e=Pe.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Re&&n.suspend())}Pe.pendingUnobservations=[]}}function Ge(e){var t=Pe.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Pe.inBatch>0&&$e(e),!1)}function qe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===re.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)}))}(vt(e),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 Re?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var He=function(){function t(t,n,r,o){void 0===t&&(t="Reaction@"+i()),void 0===o&&(o=!1),this.name=t,this.onInvalidate=n,this.errorHandler=r,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=e.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+i(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=re.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Pe.pendingReactions.push(this),Ke())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Me(),this._isScheduled=!1,ce(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Ye()&&Fe({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Ue()}},t.prototype.track=function(e){Me();var t,n=Ye();n&&(t=Date.now(),Qe({name:this.name,type:"reaction"})),this._isRunning=!0;var r=fe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&pe(this),ue(r)&&this.reportExceptionInDerivation(r.cause),n&&et({time:Date.now()-t}),Ue()},t.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Pe.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Pe.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Ye()&&Fe({type:"error",name:this.name,message:n,error:""+e}),Pe.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Me(),pe(this),Ue()))},t.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(e){void 0===e&&(e=!1),jt(this,e)},t}();var ze=function(e){return e()};function Ke(){Pe.inBatch>0||Pe.isRunningReactions||ze(We)}function We(){Pe.isRunningReactions=!0;for(var e=Pe.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 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<o;r++)n[r].runReaction()}Pe.isRunningReactions=!1}var Je=v("Reaction",He);function Xe(e){var t=ze;ze=function(n){return e((function(){return t(n)}))}}function Ye(){return!!Pe.spyListeners.length}function Fe(e){if(Pe.spyListeners.length)for(var t=Pe.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Qe(e){Fe(T(T({},e),{spyReportStart:!0}))}var Ze={spyReportEnd:!0};function et(e){Fe(e?T(T({},e),{spyReportEnd:!0}):Ze)}function tt(e){return Pe.spyListeners.push(e),u((function(){Pe.spyListeners=Pe.spyListeners.filter((function(t){return t!==e}))}))}function nt(){a(!1)}function rt(e){return function(t,n,r){if(r){if(r.value)return{value:we(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return we(e,o.call(this))}}}return ot(e).apply(this,arguments)}}function ot(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){p(this,n,it(e,t))}})}}var it=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?we(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?we(e,t):1===arguments.length&&"string"==typeof e?rt(e):!0!==r?rt(t).apply(null,arguments):void(e[t]=we(e.name||t,n.value))};function at(e,t,n){p(e,t,we(t,n.bind(e)))}function st(e,t){void 0===t&&(t=n);var r,o=t&&t.name||e.name||"Autorun@"+i();if(!t.scheduler&&!t.delay)r=new He(o,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var a=ct(t),s=!1;r=new He(o,(function(){s||(s=!0,a((function(){s=!1,r.isDisposed||r.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(r)}return r.schedule(),r.getDisposer()}it.bound=function(e,t,n,r){return!0===r?(at(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return at(this,t,n.value||n.initializer.call(this)),this[t]},set:nt}:{enumerable:!1,configurable:!0,set:function(e){at(this,t,e)},get:function(){}}};var ut=function(e){return e()};function ct(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ut}function lt(e,t,n){return pt("onBecomeObserved",e,t,n)}function ft(e,t,n){return pt("onBecomeUnobserved",e,t,n)}function pt(e,t,n,r){var o="function"==typeof r?yn(t,n):yn(t),i="function"==typeof r?r:n,s=o[e];return"function"!=typeof s?a(!1):(o[e]=function(){s.call(this),i.call(this)},function(){o[e]=s})}function ht(e,t,n,r){var o=(r=W(r)).defaultDecorator||(!1===r.deep?F:X);$(e),cn(e,r.name,o.enhancer),Me();try{for(var i=Object.getOwnPropertyNames(t),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(t,u);0;var l=n&&u in n?n[u]:c.get?oe:o;0;var f=l(e,u,c,!0);f&&Object.defineProperty(e,u,f)}}finally{Ue()}return e}function vt(e,t){return dt(yn(e,t))}function dt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(dt)),r}function yt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=function(e){return e.observers}(e).map(yt)),t}var bt=0;function mt(){this.message="FLOW_CANCELLED"}function gt(e){"function"==typeof e.cancel&&e.cancel()}function _t(e,t){if(null==e)return!1;if(void 0!==t){if(!1===dn(e))return!1;if(!e.$mobx.values[t])return!1;var n=yn(e,t);return Ie(n)}return Ie(e)}function Ot(e){return arguments.length>1?a(!1):_t(e)}function wt(e,t){if(null==e)return!1;if(void 0!==t){if(dn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return dn(e)||!!e.$mobx||D(e)||Je(e)||Ie(e)}function St(e){return 1!==arguments.length&&a(!1),wt(e)}function At(e){return dn(e)?e.$mobx.getKeys():rn(e)?b(e.keys()):sn(e)?b(e.keys()):Zt(e)?e.map((function(e,t){return t})):a(!1)}function xt(e,t){if(dn(e)){var n=bn(e);return n.getKeys(),!!n.values[t]}return rn(e)?e.has(t):sn(e)?e.has(t):Zt(e)?t>=0&&t<e.length:a(!1)}mt.prototype=Object.create(Error.prototype);var Et={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Dt(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=kt(e);if(!r)return a(!1);r.isTracing===re.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?re.BREAK:re.LOG}function kt(e){switch(e.length){case 0:return Pe.trackingDerivation;case 1:return yn(e[0]);case 2:return yn(e[0],e[1])}}function Rt(e,t){void 0===t&&(t=void 0),Me();try{return e.apply(t)}finally{Ue()}}function It(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!a.$mobx.isDisposed){a();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+i();var o=we(n.name+"-effect",t),a=st((function(t){e()&&(t.dispose(),r&&clearTimeout(r),o())}),n);return a}function Ct(e,t){var n,r=new Promise((function(r,o){var i=It(e,r,T(T({},t),{onError:o}));n=function(){i(),o("WHEN_CANCELLED")}}));return r.cancel=n,r}function Tt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Vt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),u((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Nt(e,t){var n=ve();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(s(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{de(n)}}function Pt(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Lt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),u((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Bt(e,t){var n=ve(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);de(n)}}var $t,Mt,Ut,Gt,qt=($t=!1,Mt={},Object.defineProperty(Mt,"0",{set:function(){$t=!0}}),Object.create(Mt)[0]=1,!1===$t),Ht=0,zt=function(){};Ut=zt,Gt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Ut.prototype,Gt):void 0!==Ut.prototype.__proto__?Ut.prototype.__proto__=Gt:Ut.prototype=Gt,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(zt.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var Kt=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new E(e||"ObservableArray@"+i()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Vt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Lt(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;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Ht&&Ft(e+t+1)},e.prototype.spliceWithArray=function(e,n,r){var o=this;le(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),n=1===arguments.length?i-e:null==n?0:Math.max(0,Math.min(n,i-e)),void 0===r&&(r=t),Tt(this)){var a=Nt(this,{object:this.array,type:"splice",index:e,removedCount:n,added:r});if(!a)return t;n=a.removedCount,r=a.added}var s=(r=0===r.length?r:r.map((function(e){return o.enhancer(e,void 0)}))).length-n;this.updateArrayLength(i,s);var u=this.spliceItemsIntoValues(e,n,r);return 0===n&&0===r.length||this.notifyArraySplice(e,r,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,N([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&&Ye(),o=Pt(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&Qe(T(T({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Bt(this,i),r&&et()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Ye(),o=Pt(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&Qe(T(T({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Bt(this,i),r&&et()},e}(),Wt=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+i()),void 0===o&&(o=!1);var a=e.call(this)||this,s=new Kt(r,n,a,o);if(h(a,"$mobx",s),t&&t.length){var u=Ee(!0);a.spliceWithArray(0,0,t),De(u)}return qt&&Object.defineProperty(s.array,"0",Jt),a}return C(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return Zt(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?N(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):N(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){le(n.atom);var o=r[e];if(Tt(n)){var i=Nt(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(zt);w(Wt.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return S({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(Wt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),p(Wt.prototype,A(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];s("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),p(Wt.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){s("function"==typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),p(Wt.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.dehanceValues(o.values)[e]((function(e,o){return t.call(n,e,o,r)}),n)}))})),["reduce","reduceRight"].forEach((function(e){p(Wt.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.values[e]((function(e,n,i){return n=o.dehanceValue(n),t(e,n,i,r)}),n)}))})),function(e,t){for(var n=0;n<t.length;n++)p(e,t[n],e[t[n]])}(Wt.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Jt=Xt(0);function Xt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Yt(e){Object.defineProperty(Wt.prototype,""+e,Xt(e))}function Ft(e){for(var t=Ht;t<e;t++)Yt(t);Ht=e}Ft(1e3);var Qt=v("ObservableArrayAdministration",Kt);function Zt(e){return l(e)&&Qt(e.$mobx)}var en={},tn=function(){function e(e,t,n){if(void 0===t&&(t=G),void 0===n&&(n="ObservableMap@"+i()),this.enhancer=t,this.name=n,this.$mobx=en,this._keysAtom=j(this.name+".keys()"),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Pe.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new je(this._has(e),q,this.name+"."+nn(e)+"?",!1);this._hasMap.set(e,r),ft(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(Tt(this)){var r=Nt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((le(this._keysAtom),Tt(this))&&!(o=Nt(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Ye(),r=Pt(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Qe(T(T({},o),{name:this.name,key:e})),Rt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Bt(this,o),n&&et(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Pe.UNCHANGED){var r=Ye(),o=Pt(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&Qe(T(T({},i),{name:this.name,key:e})),n.setNewValue(t),o&&Bt(this,i),r&&et()}},e.prototype._addValue=function(e,t){var n=this;le(this._keysAtom),Rt((function(){var r=new je(t,n.enhancer,n.name+"."+nn(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=Ye(),o=Pt(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&Qe(T(T({},i),{name:this.name,key:e})),o&&Bt(this,i),r&&et()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return S({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return S({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},e.prototype.forEach=function(e,t){var n=this;this._keysAtom.reportObserved(),this._data.forEach((function(r,o){return e.call(t,n.get(o),o,n)}))},e.prototype.merge=function(e){var t=this;return rn(e)&&(e=e.toJS()),Rt((function(){var n=Ee(!0);try{f(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=V(e,2),r=n[0],o=n[1];return t.set(r,o)})):d(e)?e.constructor!==Map?a("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,n){return t.set(n,e)})):null!=e&&a("Cannot initialize map from "+e)}finally{De(n)}})),this},e.prototype.clear=function(){var e=this;Rt((function(){he((function(){e._data.forEach((function(t,n){return e.delete(n)}))}))}))},e.prototype.replace=function(e){var t=this;return Rt((function(){var n=function(e){if(d(e)||rn(e))return e;if(Array.isArray(e))return new Map(e);if(f(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return a("Cannot convert to map from '"+e+"'")}(e),r=new Map,o=!1;if(_(t._data.keys(),(function(e){if(!n.has(e))if(t.delete(e))o=!0;else{var i=t._data.get(e);r.set(e,i)}})),_(n.entries(),(function(e){var n=V(e,2),i=n[0],a=n[1],s=t._data.has(i);if(t.set(i,a),t._data.has(i)){var u=t._data.get(i);r.set(i,u),s||(o=!0)}})),!o)if(t._data.size!==r.size)t._keysAtom.reportChanged();else for(var i=t._data.keys(),s=r.keys(),u=i.next(),c=s.next();!u.done;){if(u.value!==c.value){t._keysAtom.reportChanged();break}u=i.next(),c=s.next()}t._data=r})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(n,r){return t["symbol"==typeof r?r:nn(r)]=e.get(r)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+b(this.keys()).map((function(t){return nn(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Lt(this,e)},e.prototype.intercept=function(e){return Vt(this,e)},e}();function nn(e){return e&&e.toString?e.toString():new String(e).toString()}w(tn.prototype,(function(){return this.entries()})),h(tn.prototype,A(),"Map");var rn=v("ObservableMap",tn),on={},an=function(){function e(e,t,n){if(void 0===t&&(t=G),void 0===n&&(n="ObservableSet@"+i()),this.name=n,this.$mobx=on,this._data=new Set,this._atom=j(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Rt((function(){he((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var n=this;this._atom.reportObserved(),this._data.forEach((function(r){e.call(t,r,r,n)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((le(this._atom),Tt(this))&&!(o=Nt(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Rt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=Ye(),r=Pt(this),o=r||n?{type:"add",object:this,newValue:e}:null;0,r&&Bt(this,o)}return this},e.prototype.delete=function(e){var t=this;if(Tt(this)&&!(o=Nt(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Ye(),r=Pt(this),o=r||n?{type:"delete",object:this,oldValue:e}:null;return Rt((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&Bt(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=b(this.keys()),n=b(this.values());return S({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=b(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),S({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return sn(e)&&(e=e.toJS()),Rt((function(){var n=Ee(!0);try{Array.isArray(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):y(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&a("Cannot initialize set from "+e)}finally{De(n)}})),this},e.prototype.observe=function(e,t){return Lt(this,e)},e.prototype.intercept=function(e){return Vt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+b(this.keys()).join(", ")+" ]"},e}();w(an.prototype,(function(){return this.values()})),h(an.prototype,A(),"Set");var sn=v("ObservableSet",an),un=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof Re)o.set(n);else{if(Tt(this)){if(!(s=Nt(this,{type:"update",object:r,name:t,newValue:n})))return;n=s.newValue}if((n=o.prepareNewValue(n))!==Pe.UNCHANGED){var i=Pt(this),a=Ye(),s=i||a?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;a&&Qe(T(T({},s),{name:this.name,key:t})),o.setNewValue(n),i&&Bt(this,s),a&&et()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(Tt(this))if(!(i=Nt(this,{object:t,name:e,type:"remove"})))return;try{Me();var n=Pt(this),r=Ye(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var i=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&Qe(T(T({},i),{name:this.name,key:e})),n&&Bt(this,i),r&&et()}finally{Ue()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return Lt(this,e)},e.prototype.intercept=function(e){return Vt(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Wt(Object.keys(this.values).filter((function(t){return e.values[t]instanceof je})),q,"keys("+this.name+")",!0)),this.keys.slice()},e}();function cn(e,t,n){void 0===t&&(t=""),void 0===n&&(n=G);var r=e.$mobx;return r||(f(e)||(t=(e.constructor.name||"ObservableObject")+"@"+i()),t||(t="ObservableObject@"+i()),h(e,"$mobx",r=new un(e,t,n)),r)}function ln(e,t,n,r){var o=cn(e);if(Tt(o)){var i=Nt(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new je(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return fn[e]||(fn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=Pt(e),i=Ye(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&Qe(T(T({},a),{name:e.name,key:n}));o&&Bt(e,a);i&&et()}(o,e,t,n)}var fn=Object.create(null),pn=Object.create(null);function hn(e){var t=e.$mobx;return t||($(e),e.$mobx)}var vn=v("ObservableObjectAdministration",un);function dn(e){return!!l(e)&&($(e),vn(e.$mobx))}function yn(e,t){if("object"==typeof e&&null!==e){if(Zt(e))return void 0!==t&&a(!1),e.$mobx.atom;if(sn(e))return e.$mobx;if(rn(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||a(!1),r)}var r;if($(e),t&&!e.$mobx&&e[t],dn(e))return t?((r=e.$mobx.values[t])||a(!1),r):a(!1);if(D(e)||Ie(e)||Je(e))return e}else if("function"==typeof e&&Je(e.$mobx))return e.$mobx;return a(!1)}function bn(e,t){return e||a("Expecting some object"),void 0!==t?bn(yn(e,t)):D(e)||Ie(e)||Je(e)?e:rn(e)||sn(e)?e:($(e),e.$mobx?e.$mobx:void a(!1))}function mn(e,t){return(void 0!==t?yn(e,t):dn(e)||rn(e)||sn(e)?bn(e):yn(e)).name}var gn=Object.prototype.toString;function _n(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,o,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;if("function"!==a&&"object"!==a&&"object"!=typeof n)return!1;t=On(t),n=On(n);var s=gn.call(t);if(s!==gn.call(n))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n)}var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var f=(o=o||[]).length;for(;f--;)if(o[f]===t)return i[f]===n;if(o.push(t),i.push(n),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 p=Object.keys(t),h=void 0;if(f=p.length,Object.keys(n).length!==f)return!1;for(;f--;)if(h=p[f],!wn(n,h)||!e(t[h],n[h],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(e,t,n)}function On(e){return Zt(e)?e.peek():d(e)||rn(e)?b(e.entries()):y(e)||sn(e)?b(e.entries()):e}function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:tt,extras:{getDebugName:mn},$mobx:"$mobx"}),e.$mobx="$mobx",e.FlowCancellationError=mt,e.ObservableMap=tn,e.ObservableSet=an,e.Reaction=He,e._allowStateChanges=function(e,t){var n,r=Ee(e);try{n=t()}finally{De(r)}return n},e._allowStateChangesInsideComputed=function(e){var t,n=Pe.computationDepth;Pe.computationDepth=0;try{t=e()}finally{Pe.computationDepth=n}return t},e._allowStateReadsEnd=be,e._allowStateReadsStart=ye,e._endAction=xe,e._getAdministration=bn,e._getGlobalState=function(){return Pe},e._interceptReads=function(e,t,n){var r;if(rn(e)||Zt(e)||ke(e))r=bn(e);else{if(!dn(e))return a(!1);if("string"!=typeof t)return a(!1);r=bn(e,t)}return void 0!==r.dehancer?a(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})},e._isComputingDerivation=function(){return null!==Pe.trackingDerivation},e._resetGlobalState=function(){var e=new Te;for(var t in e)-1===Ce.indexOf(t)&&(Pe[t]=e[t]);Pe.allowStateChanges=!Pe.enforceActions},e._startAction=Ae,e.action=it,e.autorun=st,e.comparer=R,e.computed=ae,e.configure=function(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,i=e.disableErrorBoundaries,s=e.arrayBuffer,u=e.reactionScheduler,c=e.reactionRequiresObservable,l=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Pe.pendingReactions.length||Pe.inBatch||Pe.isRunningReactions)&&a("isolateGlobalState should be called before MobX is running any reactions"),Ne=!0,Ve&&(0==--o().__mobxInstanceCount&&(o().__mobxGlobals=void 0),Pe=new Te)),void 0!==t){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:a("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Pe.enforceActions=f,Pe.allowStateChanges=!0!==f&&"strict"!==f}void 0!==n&&(Pe.computedRequiresReaction=!!n),void 0!==c&&(Pe.reactionRequiresObservable=!!c),void 0!==l&&(Pe.observableRequiresReaction=!!l,Pe.allowStateReads=!Pe.observableRequiresReaction),void 0!==r&&(Pe.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Pe.disableErrorBoundaries=!!i),"number"==typeof s&&Ft(s),u&&Xe(u)},e.createAtom=j,e.decorate=function(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var o=Object.getOwnPropertyDescriptor(n,e),i=r.reduce((function(t,r){return r(n,e,t)}),o);i&&Object.defineProperty(n,e,i)};for(var o in t)r(o);return e},e.entries=function(e){return dn(e)?At(e).map((function(t){return[t,e[t]]})):rn(e)?At(e).map((function(t){return[t,e.get(t)]})):sn(e)?b(e.entries()):Zt(e)?e.map((function(e,t){return[t,e]})):a(!1)},e.extendObservable=ht,e.extendShallowObservable=function(e,t,n){return ht(e,t,n,K)},e.flow=function(e){1!==arguments.length&&a("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++bt,a=it(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,u=new Promise((function(e,r){var o=0;function u(e){var n;s=void 0;try{n=it(t+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(e){return r(e)}l(n)}function c(e){var n;s=void 0;try{n=it(t+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(e){return r(e)}l(n)}function l(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(u,c);t.then(l,r)}n=r,u(void 0)}));return u.cancel=it(t+" - runid: "+i+" - cancel",(function(){try{s&&gt(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(c,c),gt(t),n(new mt)}catch(e){n(e)}})),u}},e.get=function(e,t){if(xt(e,t))return dn(e)?e[t]:rn(e)?e.get(t):Zt(e)?e[t]:a(!1)},e.getAtom=yn,e.getDebugName=mn,e.getDependencyTree=vt,e.getObserverTree=function(e,t){return yt(yn(e,t))},e.has=xt,e.intercept=function(e,t,n){return"function"==typeof n?function(e,t,n){return bn(e,t).intercept(n)}(e,t,n):function(e,t){return bn(e).intercept(t)}(e,t)},e.isAction=function(e){return"function"==typeof e&&!0===e.isMobxAction},e.isArrayLike=function(e){return Array.isArray(e)||Zt(e)},e.isBoxedObservable=ke,e.isComputed=Ot,e.isComputedProp=function(e,t){return"string"!=typeof t?a(!1):_t(e,t)},e.isFlowCancellationError=function(e){return e instanceof mt},e.isObservable=St,e.isObservableArray=Zt,e.isObservableMap=rn,e.isObservableObject=dn,e.isObservableProp=function(e,t){return"string"!=typeof t?a(!1):wt(e,t)},e.isObservableSet=sn,e.keys=At,e.observable=ee,e.observe=function(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return bn(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return bn(e).observe(t,n)}(e,t,n)},e.onBecomeObserved=lt,e.onBecomeUnobserved=ft,e.onReactionError=function(e){return Pe.globalReactionErrorHandlers.push(e),function(){var t=Pe.globalReactionErrorHandlers.indexOf(e);t>=0&&Pe.globalReactionErrorHandlers.splice(t,1)}},e.reaction=function(e,t,r){void 0===r&&(r=n),"boolean"==typeof r&&(r={fireImmediately:r});var o,a,s,u=r.name||"Reaction@"+i(),c=it(u,r.onError?(o=r.onError,a=t,function(){try{return a.apply(this,arguments)}catch(e){o.call(this,e)}}):t),l=!r.scheduler&&!r.delay,f=ct(r),p=!0,h=!1,v=r.compareStructural?R.structural:r.equals||R.default,d=new He(u,(function(){p||l?y():h||(h=!0,f(y))}),r.onError,r.requiresObservable);function y(){if(h=!1,!d.isDisposed){var t=!1;d.track((function(){var n=e(d);t=p||!v(s,n),s=n})),p&&r.fireImmediately&&c(s,d),p||!0!==t||c(s,d),p&&(p=!1)}}return d.schedule(),d.getDisposer()},e.remove=function(e,t){if(dn(e))e.$mobx.remove(t);else if(rn(e))e.delete(t);else if(sn(e))e.delete(t);else{if(!Zt(e))return a(!1);"number"!=typeof t&&(t=parseInt(t,10)),s(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}},e.runInAction=function(e,t){return Se("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)},e.set=function e(t,n,r){if(2!==arguments.length||sn(t))if(dn(t)){var o=t.$mobx,i=o.values[n];i?o.write(t,n,r):ln(t,n,r,o.defaultEnhancer)}else if(rn(t))t.set(n,r);else if(sn(t))t.add(n);else{if(!Zt(t))return a(!1);"number"!=typeof n&&(n=parseInt(n,10)),s(n>=0,"Not a valid index: '"+n+"'"),Me(),n>=t.length&&(t.length=n+1),t[n]=r,Ue()}else{Me();var u=n;try{for(var c in u)e(t,c,u[c])}finally{Ue()}}},e.spy=tt,e.toJS=function(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=Et),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&&!St(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(ke(t))return e(t.get(),n,r);if(St(t)&&At(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Zt(t)||Array.isArray(t)){var o=Dt(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<s;a++)o[a]=i[a];return o}if(sn(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===n.exportMapsAsObjects){var u=Dt(r,t,new Set,n);return t.forEach((function(t){u.add(e(t,n,r))})),u}var c=Dt(r,t,[],n);return t.forEach((function(t){c.push(e(t,n,r))})),c}if(rn(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===n.exportMapsAsObjects){var l=Dt(r,t,new Map,n);return t.forEach((function(t,o){l.set(o,e(t,n,r))})),l}var f=Dt(r,t,{},n);return t.forEach((function(t,o){f[o]=e(t,n,r)})),f}var p=Dt(r,t,{},n);for(var h in t)p[h]=e(t[h],n,r);return p}(e,t,n)},e.trace=jt,e.transaction=Rt,e.untracked=he,e.values=function(e){return dn(e)?At(e).map((function(t){return e[t]})):rn(e)?At(e).map((function(t){return e.get(t)})):sn(e)?b(e.values()):Zt(e)?e.slice():a(!1)},e.when=function(e,t,n){return 1===arguments.length||t&&"object"==typeof t?Ct(e,t):It(e,t,n||{})},Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */function C(e,t){function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var T=function(){return(T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function V(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(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function N(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V(arguments[t]));return e}var P={},L={};function B(e,t){var n=t?P:L;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return $(this),this[e]},set:function(t){$(this),this[e]=t}})}function $(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in p(e,"__mobxDidRunLazyInitializers",!0),t){var r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function M(e,n){return function(){var r,o=function(t,o,i,a){if(!0===a)return n(t,o,i,t,r),null;if(!Object.prototype.hasOwnProperty.call(t,"__mobxDecorators")){var s=t.__mobxDecorators;p(t,"__mobxDecorators",T({},s))}return t.__mobxDecorators[o]={prop:o,propertyCreator:n,descriptor:i,decoratorTarget:t,decoratorArguments:r},B(o,e)};return U(arguments)?(r=t,o.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),o)}}function U(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function G(e,t,n){return St(e)?e:Array.isArray(e)?ee.array(e,{name:n}):f(e)?ee.object(e,void 0,{name:n}):d(e)?ee.map(e,{name:n}):y(e)?ee.set(e,{name:n}):e}function q(e){return e}function H(e){s(e);var t=M(!0,(function(t,n,r,o,i){ln(t,n,r?r.initializer?r.initializer.call(t):r.value:void 0,e)})),n=("undefined"!=typeof process&&process.env,t);return n.enhancer=e,n}var z={deep:!0,name:void 0,defaultDecorator:void 0},K={deep:!1,name:void 0,defaultDecorator:void 0};function W(e){return null==e?z:"string"==typeof e?{name:e,deep:!0}:e}function J(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?q:G}Object.freeze(z),Object.freeze(K);var X=H(G),Y=H((function(e,t,n){return null==e?e:dn(e)||Zt(e)||rn(e)||sn(e)?e:Array.isArray(e)?ee.array(e,{name:n,deep:!1}):f(e)?ee.object(e,void 0,{name:n,deep:!1}):d(e)?ee.map(e,{name:n,deep:!1}):y(e)?ee.set(e,{name:n,deep:!1}):a(!1)})),F=H(q),Q=H((function(e,t,n){return _n(e,t)?t:e}));var Z={box:function(e,t){arguments.length>2&&te("box");var n=W(t);return new je(e,J(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&te("shallowBox"),ee.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&te("array");var n=W(t);return new Wt(e,J(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&te("shallowArray"),ee.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&te("map");var n=W(t);return new tn(e,J(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&te("shallowMap"),ee.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&te("set");var n=W(t);return new an(e,J(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&te("object");var r=W(n);return ht({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&te("shallowObject"),ee.object(e,{},{name:t,deep:!1})},ref:F,shallow:Y,deep:X,struct:Q},ee=function(e,t,n){if("string"==typeof arguments[1])return X.apply(null,arguments);if(St(e))return e;var r=f(e)?ee.object(e,t,n):Array.isArray(e)?ee.array(e,t):d(e)?ee.map(e,t):y(e)?ee.set(e,t):e;if(r!==e)return r;a(!1)};function te(e){a("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Z).forEach((function(e){return ee[e]=Z[e]}));var ne,re,oe=M(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,s=o[0]||{};!function(e,t,n){var r=cn(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Re(n),Object.defineProperty(e,t,function(e){return pn[e]||(pn[e]={configurable:Pe.computedConfigurable,enumerable:!1,get:function(){return hn(this).read(this,e)},set:function(t){hn(this).write(this,e,t)}})}(t))}(e,t,T({get:i,set:a},s))})),ie=oe({equals:R.structural}),ae=function(e,t,n){if("string"==typeof t)return oe.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return oe.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 Re(r)};ae.struct=ie,(ne=e.IDerivationState||(e.IDerivationState={}))[ne.NOT_TRACKING=-1]="NOT_TRACKING",ne[ne.UP_TO_DATE=0]="UP_TO_DATE",ne[ne.POSSIBLY_STALE=1]="POSSIBLY_STALE",ne[ne.STALE=2]="STALE",function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(re||(re={}));var se=function(e){this.cause=e};function ue(e){return e instanceof se}function ce(t){switch(t.dependenciesState){case e.IDerivationState.UP_TO_DATE:return!1;case e.IDerivationState.NOT_TRACKING:case e.IDerivationState.STALE:return!0;case e.IDerivationState.POSSIBLY_STALE:for(var n=ye(!0),r=ve(),o=t.observing,i=o.length,a=0;a<i;a++){var s=o[a];if(Ie(s)){if(Pe.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return de(r),be(n),!0}if(t.dependenciesState===e.IDerivationState.STALE)return de(r),be(n),!0}}return me(t),de(r),be(n),!1}}function le(e){var t=e.observers.length>0;Pe.computationDepth>0&&t&&a(!1),Pe.allowStateChanges||!t&&"strict"!==Pe.enforceActions||a(!1)}function fe(t,n,r){var o=ye(!0);me(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Pe.runId;var i,a=Pe.trackingDerivation;if(Pe.trackingDerivation=t,!0===Pe.disableErrorBoundaries)i=n.call(r);else try{i=n.call(r)}catch(e){i=new se(e)}return Pe.trackingDerivation=a,function(t){for(var n=t.observing,r=t.observing=t.newObserving,o=e.IDerivationState.UP_TO_DATE,i=0,a=t.unboundDepsCount,s=0;s<a;s++){0===(u=r[s]).diffValue&&(u.diffValue=1,i!==s&&(r[i]=u),i++),u.dependenciesState>o&&(o=u.dependenciesState)}r.length=i,t.newObserving=null,a=n.length;for(;a--;){0===(u=n[a]).diffValue&&Be(u,t),u.diffValue=0}for(;i--;){var u;1===(u=r[i]).diffValue&&(u.diffValue=0,Le(u,t))}o!==e.IDerivationState.UP_TO_DATE&&(t.dependenciesState=o,t.onBecomeStale())}(t),t.observing.length,be(o),i}function pe(t){var n=t.observing;t.observing=[];for(var r=n.length;r--;)Be(n[r],t);t.dependenciesState=e.IDerivationState.NOT_TRACKING}function he(e){var t=ve(),n=e();return de(t),n}function ve(){var e=Pe.trackingDerivation;return Pe.trackingDerivation=null,e}function de(e){Pe.trackingDerivation=e}function ye(e){var t=Pe.allowStateReads;return Pe.allowStateReads=e,t}function be(e){Pe.allowStateReads=e}function me(t){if(t.dependenciesState!==e.IDerivationState.UP_TO_DATE){t.dependenciesState=e.IDerivationState.UP_TO_DATE;for(var n=t.observing,r=n.length;r--;)n[r].lowestObserverState=e.IDerivationState.UP_TO_DATE}}var ge=0,_e=1,Oe=Object.getOwnPropertyDescriptor((function(){}),"name");Oe&&Oe.configurable;function we(e,t){var n=function(){return Se(e,t,this,arguments)};return n.isMobxAction=!0,n}function Se(e,t,n,r){var o=Ae(e,n,r);try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{xe(o)}}function Ae(e,t,n){var r=Ye()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var s=0;s<i;s++)a[s]=n[s];Qe({type:"action",name:e,object:t,arguments:a})}var u=ve();Me();var c={prevDerivation:u,prevAllowStateChanges:Ee(!0),prevAllowStateReads:ye(!0),notifySpy:r,startTime:o,actionId:_e++,parentActionId:ge};return ge=c.actionId,c}function xe(e){ge!==e.actionId&&a("invalid action stack. did you forget to finish an action?"),ge=e.parentActionId,void 0!==e.error&&(Pe.suppressReactionErrors=!0),De(e.prevAllowStateChanges),be(e.prevAllowStateReads),Ue(),de(e.prevDerivation),e.notifySpy&&et({time:Date.now()-e.startTime}),Pe.suppressReactionErrors=!1}function Ee(e){var t=Pe.allowStateChanges;return Pe.allowStateChanges=e,t}function De(e){Pe.allowStateChanges=e}var je=function(e){function t(t,n,r,o,a){void 0===r&&(r="ObservableValue@"+i()),void 0===o&&(o=!0),void 0===a&&(a=R.default);var s=e.call(this,r)||this;return s.enhancer=n,s.name=r,s.equals=a,s.hasUnreportedChange=!1,s.value=n(t,void 0,r),o&&Ye()&&Fe({type:"create",name:s.name,newValue:""+s.value}),s}return C(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Pe.UNCHANGED){var n=Ye();n&&Qe({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&et()}},t.prototype.prepareNewValue=function(e){if(le(this),Tt(this)){var t=Nt(this,{object:this,type:"update",newValue:e});if(!t)return Pe.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Pe.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Pt(this)&&Bt(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 Vt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Lt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return g(this.get())},t}(E);je.prototype[m()]=je.prototype.valueOf;var ke=v("ObservableValue",je),Re=function(){function t(t){this.dependenciesState=e.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=e.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+i(),this.value=new se(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=re.NONE,s(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+i(),t.set&&(this.setter=we(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?R.structural:R.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){if(t.lowestObserverState!==e.IDerivationState.UP_TO_DATE)return;t.lowestObserverState=e.IDerivationState.POSSIBLY_STALE;var n=t.observers,r=n.length;for(;r--;){var o=n[r];o.dependenciesState===e.IDerivationState.UP_TO_DATE&&(o.dependenciesState=e.IDerivationState.POSSIBLY_STALE,o.isTracing!==re.NONE&&qe(o,t),o.onBecomeStale())}}(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&a("Cycle detected in computation "+this.name+": "+this.derivation),0!==Pe.inBatch||0!==this.observers.length||this.keepAlive?(Ge(this),ce(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===e.IDerivationState.STALE)return;t.lowestObserverState=e.IDerivationState.STALE;var n=t.observers,r=n.length;for(;r--;){var o=n[r];o.dependenciesState===e.IDerivationState.POSSIBLY_STALE?o.dependenciesState=e.IDerivationState.STALE:o.dependenciesState===e.IDerivationState.UP_TO_DATE&&(t.lowestObserverState=e.IDerivationState.UP_TO_DATE)}}(this)):ce(this)&&(this.warnAboutUntrackedRead(),Me(),this.value=this.computeValue(!1),Ue());var t=this.value;if(ue(t))throw t.cause;return t},t.prototype.peek=function(){var e=this.computeValue(!1);if(ue(e))throw e.cause;return e},t.prototype.set=function(e){if(this.setter){s(!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 s(!1,!1)},t.prototype.trackAndCompute=function(){Ye()&&Fe({object:this.scope,type:"compute",name:this.name});var t=this.value,n=this.dependenciesState===e.IDerivationState.NOT_TRACKING,r=this.computeValue(!0),o=n||ue(t)||ue(r)||!this.equals(t,r);return o&&(this.value=r),o},t.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Pe.computationDepth++,e)t=fe(this,this.derivation,this.scope);else if(!0===Pe.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new se(e)}return Pe.computationDepth--,this.isComputing=!1,t},t.prototype.suspend=function(){this.keepAlive||(pe(this),this.value=void 0)},t.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return st((function(){var i=n.get();if(!r||t){var a=ve();e({type:"update",object:n,newValue:i,oldValue:o}),de(a)}r=!1,o=i}))},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return g(this.get())},t}();Re.prototype[m()]=Re.prototype.valueOf;var Ie=v("ComputedValue",Re),Ce=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Te=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},Ve=!0,Ne=!1,Pe=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ve=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Te).version&&(Ve=!1),Ve?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Te):(setTimeout((function(){Ne||a("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Te)}();function Le(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Be(e,t){if(1===e.observers.length)e.observers.length=0,$e(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function $e(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Pe.pendingUnobservations.push(e))}function Me(){Pe.inBatch++}function Ue(){if(0==--Pe.inBatch){Ke();for(var e=Pe.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Re&&n.suspend())}Pe.pendingUnobservations=[]}}function Ge(e){var t=Pe.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Pe.inBatch>0&&$e(e),!1)}function qe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===re.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)}))}(vt(e),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 Re?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var He=function(){function t(t,n,r,o){void 0===t&&(t="Reaction@"+i()),void 0===o&&(o=!1),this.name=t,this.onInvalidate=n,this.errorHandler=r,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=e.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+i(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=re.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Pe.pendingReactions.push(this),Ke())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Me(),this._isScheduled=!1,ce(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Ye()&&Fe({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Ue()}},t.prototype.track=function(e){Me();var t,n=Ye();n&&(t=Date.now(),Qe({name:this.name,type:"reaction"})),this._isRunning=!0;var r=fe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&pe(this),ue(r)&&this.reportExceptionInDerivation(r.cause),n&&et({time:Date.now()-t}),Ue()},t.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Pe.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Pe.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Ye()&&Fe({type:"error",name:this.name,message:n,error:""+e}),Pe.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Me(),pe(this),Ue()))},t.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(e){void 0===e&&(e=!1),jt(this,e)},t}();var ze=function(e){return e()};function Ke(){Pe.inBatch>0||Pe.isRunningReactions||ze(We)}function We(){Pe.isRunningReactions=!0;for(var e=Pe.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 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<o;r++)n[r].runReaction()}Pe.isRunningReactions=!1}var Je=v("Reaction",He);function Xe(e){var t=ze;ze=function(n){return e((function(){return t(n)}))}}function Ye(){return!!Pe.spyListeners.length}function Fe(e){if(Pe.spyListeners.length)for(var t=Pe.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Qe(e){Fe(T(T({},e),{spyReportStart:!0}))}var Ze={spyReportEnd:!0};function et(e){Fe(e?T(T({},e),{spyReportEnd:!0}):Ze)}function tt(e){return Pe.spyListeners.push(e),u((function(){Pe.spyListeners=Pe.spyListeners.filter((function(t){return t!==e}))}))}function nt(){a(!1)}function rt(e){return function(t,n,r){if(r){if(r.value)return{value:we(e,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return we(e,o.call(this))}}}return ot(e).apply(this,arguments)}}function ot(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){p(this,n,it(e,t))}})}}var it=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?we(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?we(e,t):1===arguments.length&&"string"==typeof e?rt(e):!0!==r?rt(t).apply(null,arguments):void(e[t]=we(e.name||t,n.value))};function at(e,t,n){p(e,t,we(t,n.bind(e)))}function st(e,t){void 0===t&&(t=n);var r,o=t&&t.name||e.name||"Autorun@"+i();if(!t.scheduler&&!t.delay)r=new He(o,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var a=ct(t),s=!1;r=new He(o,(function(){s||(s=!0,a((function(){s=!1,r.isDisposed||r.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(r)}return r.schedule(),r.getDisposer()}it.bound=function(e,t,n,r){return!0===r?(at(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return at(this,t,n.value||n.initializer.call(this)),this[t]},set:nt}:{enumerable:!1,configurable:!0,set:function(e){at(this,t,e)},get:function(){}}};var ut=function(e){return e()};function ct(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ut}function lt(e,t,n){return pt("onBecomeObserved",e,t,n)}function ft(e,t,n){return pt("onBecomeUnobserved",e,t,n)}function pt(e,t,n,r){var o="function"==typeof r?yn(t,n):yn(t),i="function"==typeof r?r:n,s=o[e];return"function"!=typeof s?a(!1):(o[e]=function(){s.call(this),i.call(this)},function(){o[e]=s})}function ht(e,t,n,r){var o=(r=W(r)).defaultDecorator||(!1===r.deep?F:X);$(e),cn(e,r.name,o.enhancer),Me();try{for(var i=Object.getOwnPropertyNames(t),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(t,u);0;var l=n&&u in n?n[u]:c.get?oe:o;0;var f=l(e,u,c,!0);f&&Object.defineProperty(e,u,f)}}finally{Ue()}return e}function vt(e,t){return dt(yn(e,t))}function dt(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(dt)),r}function yt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=function(e){return e.observers}(e).map(yt)),t}var bt=0;function mt(){this.message="FLOW_CANCELLED"}function gt(e){"function"==typeof e.cancel&&e.cancel()}function _t(e,t){if(null==e)return!1;if(void 0!==t){if(!1===dn(e))return!1;if(!e.$mobx.values[t])return!1;var n=yn(e,t);return Ie(n)}return Ie(e)}function Ot(e){return arguments.length>1?a(!1):_t(e)}function wt(e,t){if(null==e)return!1;if(void 0!==t){if(dn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return dn(e)||!!e.$mobx||D(e)||Je(e)||Ie(e)}function St(e){return 1!==arguments.length&&a(!1),wt(e)}function At(e){return dn(e)?e.$mobx.getKeys():rn(e)?b(e.keys()):sn(e)?b(e.keys()):Zt(e)?e.map((function(e,t){return t})):a(!1)}function xt(e,t){if(dn(e)){var n=bn(e);return n.getKeys(),!!n.values[t]}return rn(e)?e.has(t):sn(e)?e.has(t):Zt(e)?t>=0&&t<e.length:a(!1)}mt.prototype=Object.create(Error.prototype);var Et={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Dt(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var r=kt(e);if(!r)return a(!1);r.isTracing===re.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?re.BREAK:re.LOG}function kt(e){switch(e.length){case 0:return Pe.trackingDerivation;case 1:return yn(e[0]);case 2:return yn(e[0],e[1])}}function Rt(e,t){void 0===t&&(t=void 0),Me();try{return e.apply(t)}finally{Ue()}}function It(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!a.$mobx.isDisposed){a();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+i();var o=we(n.name+"-effect",t),a=st((function(t){e()&&(t.dispose(),r&&clearTimeout(r),o())}),n);return a}function Ct(e,t){var n,r=new Promise((function(r,o){var i=It(e,r,T(T({},t),{onError:o}));n=function(){i(),o("WHEN_CANCELLED")}}));return r.cancel=n,r}function Tt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Vt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),u((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Nt(e,t){var n=ve();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(s(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{de(n)}}function Pt(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Lt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),u((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Bt(e,t){var n=ve(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);de(n)}}var $t,Mt,Ut,Gt,qt=($t=!1,Mt={},Object.defineProperty(Mt,"0",{set:function(){$t=!0}}),Object.create(Mt)[0]=1,!1===$t),Ht=0,zt=function(){};Ut=zt,Gt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Ut.prototype,Gt):void 0!==Ut.prototype.__proto__?Ut.prototype.__proto__=Gt:Ut.prototype=Gt,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(zt.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var Kt=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new E(e||"ObservableArray@"+i()),this.enhancer=function(n,r){return t(n,r,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Vt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Lt(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;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Ht&&Ft(e+t+1)},e.prototype.spliceWithArray=function(e,n,r){var o=this;le(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),n=1===arguments.length?i-e:null==n?0:Math.max(0,Math.min(n,i-e)),void 0===r&&(r=t),Tt(this)){var a=Nt(this,{object:this.array,type:"splice",index:e,removedCount:n,added:r});if(!a)return t;n=a.removedCount,r=a.added}var s=(r=0===r.length?r:r.map((function(e){return o.enhancer(e,void 0)}))).length-n;this.updateArrayLength(i,s);var u=this.spliceItemsIntoValues(e,n,r);return 0===n&&0===r.length||this.notifyArraySplice(e,r,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,N([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&&Ye(),o=Pt(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&Qe(T(T({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Bt(this,i),r&&et()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Ye(),o=Pt(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&Qe(T(T({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&Bt(this,i),r&&et()},e}(),Wt=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+i()),void 0===o&&(o=!1);var a=e.call(this)||this,s=new Kt(r,n,a,o);if(h(a,"$mobx",s),t&&t.length){var u=Ee(!0);a.spliceWithArray(0,0,t),De(u)}return qt&&Object.defineProperty(s.array,"0",Jt),a}return C(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return Zt(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?N(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):N(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,r=n.values;if(e<r.length){le(n.atom);var o=r[e];if(Tt(n)){var i=Nt(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(zt);w(Wt.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return S({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(Wt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),p(Wt.prototype,A(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];s("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),p(Wt.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){s("function"==typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),p(Wt.prototype,e,(function(t,n){var r=this,o=this.$mobx;return o.atom.reportObserved(),o.dehanceValues(o.values)[e]((function(e,o){return t.call(n,e,o,r)}),n)}))})),["reduce","reduceRight"].forEach((function(e){p(Wt.prototype,e,(function(){var t=this,n=this.$mobx;n.atom.reportObserved();var r=arguments[0];return arguments[0]=function(e,o,i){return o=n.dehanceValue(o),r(e,o,i,t)},n.values[e].apply(n.values,arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)p(e,t[n],e[t[n]])}(Wt.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Jt=Xt(0);function Xt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Yt(e){Object.defineProperty(Wt.prototype,""+e,Xt(e))}function Ft(e){for(var t=Ht;t<e;t++)Yt(t);Ht=e}Ft(1e3);var Qt=v("ObservableArrayAdministration",Kt);function Zt(e){return l(e)&&Qt(e.$mobx)}var en={},tn=function(){function e(e,t,n){if(void 0===t&&(t=G),void 0===n&&(n="ObservableMap@"+i()),this.enhancer=t,this.name=n,this.$mobx=en,this._keysAtom=j(this.name+".keys()"),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Pe.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new je(this._has(e),q,this.name+"."+nn(e)+"?",!1);this._hasMap.set(e,r),ft(r,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(Tt(this)){var r=Nt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((le(this._keysAtom),Tt(this))&&!(o=Nt(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Ye(),r=Pt(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Qe(T(T({},o),{name:this.name,key:e})),Rt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Bt(this,o),n&&et(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Pe.UNCHANGED){var r=Ye(),o=Pt(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&Qe(T(T({},i),{name:this.name,key:e})),n.setNewValue(t),o&&Bt(this,i),r&&et()}},e.prototype._addValue=function(e,t){var n=this;le(this._keysAtom),Rt((function(){var r=new je(t,n.enhancer,n.name+"."+nn(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var r=Ye(),o=Pt(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&Qe(T(T({},i),{name:this.name,key:e})),o&&Bt(this,i),r&&et()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return S({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return S({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},e.prototype.forEach=function(e,t){var n=this;this._keysAtom.reportObserved(),this._data.forEach((function(r,o){return e.call(t,n.get(o),o,n)}))},e.prototype.merge=function(e){var t=this;return rn(e)&&(e=e.toJS()),Rt((function(){var n=Ee(!0);try{f(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=V(e,2),r=n[0],o=n[1];return t.set(r,o)})):d(e)?e.constructor!==Map?a("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,n){return t.set(n,e)})):null!=e&&a("Cannot initialize map from "+e)}finally{De(n)}})),this},e.prototype.clear=function(){var e=this;Rt((function(){he((function(){e._data.forEach((function(t,n){return e.delete(n)}))}))}))},e.prototype.replace=function(e){var t=this;return Rt((function(){var n=function(e){if(d(e)||rn(e))return e;if(Array.isArray(e))return new Map(e);if(f(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return a("Cannot convert to map from '"+e+"'")}(e),r=new Map,o=!1;if(_(t._data.keys(),(function(e){if(!n.has(e))if(t.delete(e))o=!0;else{var i=t._data.get(e);r.set(e,i)}})),_(n.entries(),(function(e){var n=V(e,2),i=n[0],a=n[1],s=t._data.has(i);if(t.set(i,a),t._data.has(i)){var u=t._data.get(i);r.set(i,u),s||(o=!0)}})),!o)if(t._data.size!==r.size)t._keysAtom.reportChanged();else for(var i=t._data.keys(),s=r.keys(),u=i.next(),c=s.next();!u.done;){if(u.value!==c.value){t._keysAtom.reportChanged();break}u=i.next(),c=s.next()}t._data=r})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(n,r){return t["symbol"==typeof r?r:nn(r)]=e.get(r)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+b(this.keys()).map((function(t){return nn(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Lt(this,e)},e.prototype.intercept=function(e){return Vt(this,e)},e}();function nn(e){return e&&e.toString?e.toString():new String(e).toString()}w(tn.prototype,(function(){return this.entries()})),h(tn.prototype,A(),"Map");var rn=v("ObservableMap",tn),on={},an=function(){function e(e,t,n){if(void 0===t&&(t=G),void 0===n&&(n="ObservableSet@"+i()),this.name=n,this.$mobx=on,this._data=new Set,this._atom=j(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Rt((function(){he((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var n=this;this._atom.reportObserved(),this._data.forEach((function(r){e.call(t,r,r,n)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((le(this._atom),Tt(this))&&!(o=Nt(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Rt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=Ye(),r=Pt(this),o=r||n?{type:"add",object:this,newValue:e}:null;0,r&&Bt(this,o)}return this},e.prototype.delete=function(e){var t=this;if(Tt(this)&&!(o=Nt(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Ye(),r=Pt(this),o=r||n?{type:"delete",object:this,oldValue:e}:null;return Rt((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&Bt(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=b(this.keys()),n=b(this.values());return S({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=b(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),S({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return sn(e)&&(e=e.toJS()),Rt((function(){var n=Ee(!0);try{Array.isArray(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):y(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&a("Cannot initialize set from "+e)}finally{De(n)}})),this},e.prototype.observe=function(e,t){return Lt(this,e)},e.prototype.intercept=function(e){return Vt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+b(this.keys()).join(", ")+" ]"},e}();w(an.prototype,(function(){return this.values()})),h(an.prototype,A(),"Set");var sn=v("ObservableSet",an),un=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var r=this.target;r!==e&&this.illegalAccess(e,t);var o=this.values[t];if(o instanceof Re)o.set(n);else{if(Tt(this)){if(!(s=Nt(this,{type:"update",object:r,name:t,newValue:n})))return;n=s.newValue}if((n=o.prepareNewValue(n))!==Pe.UNCHANGED){var i=Pt(this),a=Ye(),s=i||a?{type:"update",object:r,oldValue:o.value,name:t,newValue:n}:null;a&&Qe(T(T({},s),{name:this.name,key:t})),o.setNewValue(n),i&&Bt(this,s),a&&et()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(Tt(this))if(!(i=Nt(this,{object:t,name:e,type:"remove"})))return;try{Me();var n=Pt(this),r=Ye(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var i=n||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&Qe(T(T({},i),{name:this.name,key:e})),n&&Bt(this,i),r&&et()}finally{Ue()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return Lt(this,e)},e.prototype.intercept=function(e){return Vt(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new Wt(Object.keys(this.values).filter((function(t){return e.values[t]instanceof je})),q,"keys("+this.name+")",!0)),this.keys.slice()},e}();function cn(e,t,n){void 0===t&&(t=""),void 0===n&&(n=G);var r=e.$mobx;return r||(f(e)||(t=(e.constructor.name||"ObservableObject")+"@"+i()),t||(t="ObservableObject@"+i()),h(e,"$mobx",r=new un(e,t,n)),r)}function ln(e,t,n,r){var o=cn(e);if(Tt(o)){var i=Nt(o,{object:e,name:t,type:"add",newValue:n});if(!i)return;n=i.newValue}n=(o.values[t]=new je(n,r,o.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return fn[e]||(fn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),o.keys&&o.keys.push(t),function(e,t,n,r){var o=Pt(e),i=Ye(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&Qe(T(T({},a),{name:e.name,key:n}));o&&Bt(e,a);i&&et()}(o,e,t,n)}var fn=Object.create(null),pn=Object.create(null);function hn(e){var t=e.$mobx;return t||($(e),e.$mobx)}var vn=v("ObservableObjectAdministration",un);function dn(e){return!!l(e)&&($(e),vn(e.$mobx))}function yn(e,t){if("object"==typeof e&&null!==e){if(Zt(e))return void 0!==t&&a(!1),e.$mobx.atom;if(sn(e))return e.$mobx;if(rn(e)){var n=e;return void 0===t?n._keysAtom:((r=n._data.get(t)||n._hasMap.get(t))||a(!1),r)}var r;if($(e),t&&!e.$mobx&&e[t],dn(e))return t?((r=e.$mobx.values[t])||a(!1),r):a(!1);if(D(e)||Ie(e)||Je(e))return e}else if("function"==typeof e&&Je(e.$mobx))return e.$mobx;return a(!1)}function bn(e,t){return e||a("Expecting some object"),void 0!==t?bn(yn(e,t)):D(e)||Ie(e)||Je(e)?e:rn(e)||sn(e)?e:($(e),e.$mobx?e.$mobx:void a(!1))}function mn(e,t){return(void 0!==t?yn(e,t):dn(e)||rn(e)||sn(e)?bn(e):yn(e)).name}var gn=Object.prototype.toString;function _n(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,o,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;if("function"!==a&&"object"!==a&&"object"!=typeof n)return!1;t=On(t),n=On(n);var s=gn.call(t);if(s!==gn.call(n))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n)}var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var f=(o=o||[]).length;for(;f--;)if(o[f]===t)return i[f]===n;if(o.push(t),i.push(n),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 p=Object.keys(t),h=void 0;if(f=p.length,Object.keys(n).length!==f)return!1;for(;f--;)if(h=p[f],!wn(n,h)||!e(t[h],n[h],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(e,t,n)}function On(e){return Zt(e)?e.peek():d(e)||rn(e)?b(e.entries()):y(e)||sn(e)?b(e.entries()):e}function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:tt,extras:{getDebugName:mn},$mobx:"$mobx"}),e.$mobx="$mobx",e.FlowCancellationError=mt,e.ObservableMap=tn,e.ObservableSet=an,e.Reaction=He,e._allowStateChanges=function(e,t){var n,r=Ee(e);try{n=t()}finally{De(r)}return n},e._allowStateChangesInsideComputed=function(e){var t,n=Pe.computationDepth;Pe.computationDepth=0;try{t=e()}finally{Pe.computationDepth=n}return t},e._allowStateReadsEnd=be,e._allowStateReadsStart=ye,e._endAction=xe,e._getAdministration=bn,e._getGlobalState=function(){return Pe},e._interceptReads=function(e,t,n){var r;if(rn(e)||Zt(e)||ke(e))r=bn(e);else{if(!dn(e))return a(!1);if("string"!=typeof t)return a(!1);r=bn(e,t)}return void 0!==r.dehancer?a(!1):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})},e._isComputingDerivation=function(){return null!==Pe.trackingDerivation},e._resetGlobalState=function(){var e=new Te;for(var t in e)-1===Ce.indexOf(t)&&(Pe[t]=e[t]);Pe.allowStateChanges=!Pe.enforceActions},e._startAction=Ae,e.action=it,e.autorun=st,e.comparer=R,e.computed=ae,e.configure=function(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,i=e.disableErrorBoundaries,s=e.arrayBuffer,u=e.reactionScheduler,c=e.reactionRequiresObservable,l=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Pe.pendingReactions.length||Pe.inBatch||Pe.isRunningReactions)&&a("isolateGlobalState should be called before MobX is running any reactions"),Ne=!0,Ve&&(0==--o().__mobxInstanceCount&&(o().__mobxGlobals=void 0),Pe=new Te)),void 0!==t){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:a("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Pe.enforceActions=f,Pe.allowStateChanges=!0!==f&&"strict"!==f}void 0!==n&&(Pe.computedRequiresReaction=!!n),void 0!==c&&(Pe.reactionRequiresObservable=!!c),void 0!==l&&(Pe.observableRequiresReaction=!!l,Pe.allowStateReads=!Pe.observableRequiresReaction),void 0!==r&&(Pe.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Pe.disableErrorBoundaries=!!i),"number"==typeof s&&Ft(s),u&&Xe(u)},e.createAtom=j,e.decorate=function(e,t){var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]);var o=Object.getOwnPropertyDescriptor(n,e),i=r.reduce((function(t,r){return r(n,e,t)}),o);i&&Object.defineProperty(n,e,i)};for(var o in t)r(o);return e},e.entries=function(e){return dn(e)?At(e).map((function(t){return[t,e[t]]})):rn(e)?At(e).map((function(t){return[t,e.get(t)]})):sn(e)?b(e.entries()):Zt(e)?e.map((function(e,t){return[t,e]})):a(!1)},e.extendObservable=ht,e.extendShallowObservable=function(e,t,n){return ht(e,t,n,K)},e.flow=function(e){1!==arguments.length&&a("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++bt,a=it(t+" - runid: "+i+" - init",e).apply(r,o),s=void 0,u=new Promise((function(e,r){var o=0;function u(e){var n;s=void 0;try{n=it(t+" - runid: "+i+" - yield "+o++,a.next).call(a,e)}catch(e){return r(e)}l(n)}function c(e){var n;s=void 0;try{n=it(t+" - runid: "+i+" - yield "+o++,a.throw).call(a,e)}catch(e){return r(e)}l(n)}function l(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(u,c);t.then(l,r)}n=r,u(void 0)}));return u.cancel=it(t+" - runid: "+i+" - cancel",(function(){try{s&&gt(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(c,c),gt(t),n(new mt)}catch(e){n(e)}})),u}},e.get=function(e,t){if(xt(e,t))return dn(e)?e[t]:rn(e)?e.get(t):Zt(e)?e[t]:a(!1)},e.getAtom=yn,e.getDebugName=mn,e.getDependencyTree=vt,e.getObserverTree=function(e,t){return yt(yn(e,t))},e.has=xt,e.intercept=function(e,t,n){return"function"==typeof n?function(e,t,n){return bn(e,t).intercept(n)}(e,t,n):function(e,t){return bn(e).intercept(t)}(e,t)},e.isAction=function(e){return"function"==typeof e&&!0===e.isMobxAction},e.isArrayLike=function(e){return Array.isArray(e)||Zt(e)},e.isBoxedObservable=ke,e.isComputed=Ot,e.isComputedProp=function(e,t){return"string"!=typeof t?a(!1):_t(e,t)},e.isFlowCancellationError=function(e){return e instanceof mt},e.isObservable=St,e.isObservableArray=Zt,e.isObservableMap=rn,e.isObservableObject=dn,e.isObservableProp=function(e,t){return"string"!=typeof t?a(!1):wt(e,t)},e.isObservableSet=sn,e.keys=At,e.observable=ee,e.observe=function(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return bn(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return bn(e).observe(t,n)}(e,t,n)},e.onBecomeObserved=lt,e.onBecomeUnobserved=ft,e.onReactionError=function(e){return Pe.globalReactionErrorHandlers.push(e),function(){var t=Pe.globalReactionErrorHandlers.indexOf(e);t>=0&&Pe.globalReactionErrorHandlers.splice(t,1)}},e.reaction=function(e,t,r){void 0===r&&(r=n),"boolean"==typeof r&&(r={fireImmediately:r});var o,a,s,u=r.name||"Reaction@"+i(),c=it(u,r.onError?(o=r.onError,a=t,function(){try{return a.apply(this,arguments)}catch(e){o.call(this,e)}}):t),l=!r.scheduler&&!r.delay,f=ct(r),p=!0,h=!1,v=r.compareStructural?R.structural:r.equals||R.default,d=new He(u,(function(){p||l?y():h||(h=!0,f(y))}),r.onError,r.requiresObservable);function y(){if(h=!1,!d.isDisposed){var t=!1;d.track((function(){var n=e(d);t=p||!v(s,n),s=n})),p&&r.fireImmediately&&c(s,d),p||!0!==t||c(s,d),p&&(p=!1)}}return d.schedule(),d.getDisposer()},e.remove=function(e,t){if(dn(e))e.$mobx.remove(t);else if(rn(e))e.delete(t);else if(sn(e))e.delete(t);else{if(!Zt(e))return a(!1);"number"!=typeof t&&(t=parseInt(t,10)),s(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}},e.runInAction=function(e,t){return Se("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)},e.set=function e(t,n,r){if(2!==arguments.length||sn(t))if(dn(t)){var o=t.$mobx,i=o.values[n];i?o.write(t,n,r):ln(t,n,r,o.defaultEnhancer)}else if(rn(t))t.set(n,r);else if(sn(t))t.add(n);else{if(!Zt(t))return a(!1);"number"!=typeof n&&(n=parseInt(n,10)),s(n>=0,"Not a valid index: '"+n+"'"),Me(),n>=t.length&&(t.length=n+1),t[n]=r,Ue()}else{Me();var u=n;try{for(var c in u)e(t,c,u[c])}finally{Ue()}}},e.spy=tt,e.toJS=function(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=Et),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&&!St(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(ke(t))return e(t.get(),n,r);if(St(t)&&At(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Zt(t)||Array.isArray(t)){var o=Dt(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<s;a++)o[a]=i[a];return o}if(sn(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===n.exportMapsAsObjects){var u=Dt(r,t,new Set,n);return t.forEach((function(t){u.add(e(t,n,r))})),u}var c=Dt(r,t,[],n);return t.forEach((function(t){c.push(e(t,n,r))})),c}if(rn(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===n.exportMapsAsObjects){var l=Dt(r,t,new Map,n);return t.forEach((function(t,o){l.set(o,e(t,n,r))})),l}var f=Dt(r,t,{},n);return t.forEach((function(t,o){f[o]=e(t,n,r)})),f}var p=Dt(r,t,{},n);for(var h in t)p[h]=e(t[h],n,r);return p}(e,t,n)},e.trace=jt,e.transaction=Rt,e.untracked=he,e.values=function(e){return dn(e)?At(e).map((function(t){return e[t]})):rn(e)?At(e).map((function(t){return e.get(t)})):sn(e)?b(e.values()):Zt(e)?e.slice():a(!1)},e.when=function(e,t,n){return 1===arguments.length||t&&"object"==typeof t?Ct(e,t):It(e,t,n||{})},Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "mobx",
"version": "4.15.6",
"version": "4.15.7",
"description": "Simple, scalable state management.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc