photoeditorsdk
Version:
The most comprehensive photo editor SDK for HTML5
1 lines • 1.48 MB
JavaScript
var PhotoEditorSDK=(()=>{var rJ=Object.create;var Pu=Object.defineProperty;var DD=Object.getOwnPropertyDescriptor;var oJ=Object.getOwnPropertyNames;var nJ=Object.getPrototypeOf;var sJ=Object.prototype.hasOwnProperty;var aJ=(i,t,e)=>t in i?Pu(i,t,{enumerable:true,configurable:true,writable:true,value:e}):i[t]=e;var ED=i=>Pu(i,"__esModule",{value:true});var _=(i=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(i,{get:(t,e)=>(typeof require!=="undefined"?require:t)[e]}):i)(function(i){if(typeof require!=="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+i+'" is not supported')});var d=(i,t)=>()=>(i&&(t=i(i=0)),t);var Gt=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var de=(i,t)=>{for(var e in t)Pu(i,e,{get:t[e],enumerable:true})};var FD=(i,t,e,r)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let o of oJ(t))if(!sJ.call(i,o)&&(e||o!=="default"))Pu(i,o,{get:()=>t[o],enumerable:!(r=DD(t,o))||r.enumerable})}return i};var y=(i,t)=>{return FD(ED(Pu(i!=null?rJ(nJ(i)):{},"default",!t&&i&&i.__esModule?{get:()=>i.default,enumerable:true}:{value:i,enumerable:true})),i)};var Li=(i=>{return(t,e)=>{return i&&i.get(t)||(e=FD(ED({}),t,1),i&&i.set(t,e),e)}})(typeof WeakMap!=="undefined"?new WeakMap:0);var f=(i,t,e,r)=>{var o=r>1?void 0:r?DD(t,e):t;for(var n=i.length-1,s;n>=0;n--)if(s=i[n])o=(r?s(t,e,o):s(o))||o;if(r&&o)Pu(t,e,o);return o};var q=(i,t,e)=>{aJ(i,typeof t!=="symbol"?t+"":t,e);return e};function Wm(){if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}if(typeof self!=="undefined"){return self}return cJ}function Cr(){return++lt.mobxGuid}function me(i){pa(false,i);throw"X"}function pa(i,t){if(!i)throw new Error("[mobx] "+(t||lJ))}function is(i,t){if(true)return false;if(t){return is("'"+i+"', use '"+t+"' instead.")}if(RD.indexOf(i)!==-1)return false;RD.push(i);console.error("[mobx] Deprecated: "+i);return true}function k0(i){var t=false;return function(){if(t)return;t=true;return i.apply(this,arguments)}}function uJ(i){var t=[];i.forEach(function(e){if(t.indexOf(e)===-1)t.push(e)});return t}function I0(i){return i!==null&&typeof i==="object"}function Uu(i){if(i===null||typeof i!=="object")return false;var t=Object.getPrototypeOf(i);return t===Object.prototype||t===null}function dJ(i){if(Nu(i)||sn(i)){return i}else if(Array.isArray(i)){return new Map(i)}else if(Uu(i)){var t=new Map;for(var e in i){t.set(e,i[e])}return t}else{return me("Cannot convert to map from '"+i+"'")}}function mJ(i,t){for(var e=0;e<t.length;e++){as(i,t[e],i[t[e]])}}function as(i,t,e){Object.defineProperty(i,t,{enumerable:false,writable:true,configurable:true,value:e})}function Vm(i,t,e){Object.defineProperty(i,t,{enumerable:false,writable:false,configurable:true,value:e})}function pJ(i,t){if(false)me("Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function _a(i,t){var e="isMobX"+i;t.prototype[e]=true;return function(r){return I0(r)&&r[e]===true}}function hJ(i,t){return typeof i==="number"&&typeof t==="number"&&isNaN(i)&&isNaN(t)}function Nu(i){if(Wm().Map!==void 0&&i instanceof Wm().Map)return true;return false}function jm(i){return i instanceof Set}function rs(i){var t=[];while(true){var e=i.next();if(e.done)break;t.push(e.value)}return t}function jD(){return typeof Symbol==="function"&&Symbol.toPrimitive||"@@toPrimitive"}function $D(i){return i===null?null:typeof i==="object"?""+i:i}function BD(i,t){var e=i.next();while(!e.done){t(e.value);e=i.next()}}function KD(){return typeof Symbol==="function"&&Symbol.iterator||"@@iterator"}function D0(i,t){Vm(i,KD(),t)}function Gm(i){i[KD()]=fJ;return i}function E0(){return typeof Symbol==="function"&&Symbol.toStringTag||"@@toStringTag"}function fJ(){return this}function xg(i,t,e){if(t===void 0){t=AD}if(e===void 0){e=AD}var r=new _g(i);JJ(r,t);uE(r,e);return r}function XD(i,t){return i===t}function gJ(i,t){return z0(i,t)}function bJ(i,t){return z0(i,t,1)}function yJ(i,t){return hJ(i,t)||XD(i,t)}function qD(i,t){y0(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function _0(i,t){var e=typeof Symbol==="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),o,n=[],s;try{while((t===void 0||t-- >0)&&!(o=r.next()).done)n.push(o.value)}catch(a){s={error:a}}finally{try{if(o&&!o.done&&(e=r["return"]))e.call(r)}finally{if(s)throw s.error}}return n}function x0(){for(var i=[],t=0;t<arguments.length;t++)i=i.concat(_0(arguments[t]));return i}function vJ(i,t){var e=t?_J:xJ;return e[i]||(e[i]={configurable:true,enumerable:t,get:function(){Bl(this);return this[i]},set:function(r){Bl(this);this[i]=r}})}function Bl(i){if(i.__mobxDidRunLazyInitializers===true)return;var t=i.__mobxDecorators;if(t){as(i,"__mobxDidRunLazyInitializers",true);for(var e in t){var r=t[e];r.propertyCreator(i,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function YD(i,t){return function e(){var r;var o=function n(s,a,l,c){if(c===true){t(s,a,l,s,r);return null}if(false)me("This function is a decorator, but it wasn't invoked like a decorator");if(!Object.prototype.hasOwnProperty.call(s,"__mobxDecorators")){var u=s.__mobxDecorators;as(s,"__mobxDecorators",Fe({},u))}s.__mobxDecorators[a]={prop:a,propertyCreator:t,descriptor:l,decoratorTarget:s,decoratorArguments:r};return vJ(a,i)};if(CJ(arguments)){r=mg;return o.apply(null,arguments)}else{r=Array.prototype.slice.call(arguments);return o}}}function CJ(i){return(i.length===2||i.length===3)&&typeof i[1]==="string"||i.length===4&&i[3]===true}function $m(i,t,e){if(yg(i))return i;if(Array.isArray(i))return Q.array(i,{name:e});if(Uu(i))return Q.object(i,void 0,{name:e});if(Nu(i))return Q.map(i,{name:e});if(jm(i))return Q.set(i,{name:e});return i}function SJ(i,t,e){if(i===void 0||i===null)return i;if(Ml(i)||zl(i)||sn(i)||xa(i))return i;if(Array.isArray(i))return Q.array(i,{name:e,deep:false});if(Uu(i))return Q.object(i,void 0,{name:e,deep:false});if(Nu(i))return Q.map(i,{name:e,deep:false});if(jm(i))return Q.set(i,{name:e,deep:false});return me(false)}function vg(i){return i}function wJ(i,t,e){if(false)throw"observable.struct should not be used with observable values";if(z0(i,t))return t;return i}function Cg(i){pa(i);var t=YD(true,function(r,o,n,s,a){if(false){pa(!n||!n.get,'@observable cannot be used on getter (property "'+o+'"), use @computed instead.')}var l=n?n.initializer?n.initializer.call(r):n.value:void 0;pZ(r,o,l,i)});var e=typeof process!=="undefined"&&process.env&&false?function r(){if(arguments.length<2)return me("Incorrect decorator invocation. @observable decorator doesn't expect any arguments");return t.apply(null,arguments)}:t;e.enhancer=i;return e}function Lu(i){if(i===null||i===void 0)return JD;if(typeof i==="string")return{name:i,deep:true};if(false){if(typeof i!=="object")return me("expected options object");Object.keys(i).forEach(assertValidOption)}return i}function lg(i){return i.defaultDecorator?i.defaultDecorator.enhancer:i.deep===false?vg:$m}function DJ(i,t,e){if(typeof arguments[1]==="string"){return O0.apply(null,arguments)}if(yg(i))return i;var r=Uu(i)?Q.object(i,t,e):Array.isArray(i)?Q.array(i,t):Nu(i)?Q.map(i,t):jm(i)?Q.set(i,t):i;if(r!==i)return r;me(false)}function es(i){me("Expected one or two arguments to observable."+i+". Did you accidentally try to use observable."+i+" as decorator?")}function Hm(i){return i instanceof fg}function v0(i){switch(i.dependenciesState){case Yt.UP_TO_DATE:return false;case Yt.NOT_TRACKING:case Yt.STALE:return true;case Yt.POSSIBLY_STALE:{var t=Ll(true);var e=Hu();var r=i.observing,o=r.length;for(var n=0;n<o;n++){var s=r[n];if(Sg(s)){if(lt.disableErrorBoundaries){s.get()}else{try{s.get()}catch(a){ha(e);os(t);return true}}if(i.dependenciesState===Yt.STALE){ha(e);os(t);return true}}}tE(i);ha(e);os(t);return false}}}function zu(i){var t=i.observers.length>0;if(lt.computationDepth>0&&t)me(false);if(!lt.allowStateChanges&&(t||lt.enforceActions==="strict"))me(false)}function FJ(i){if(false){console.warn("[mobx] Observable "+i.name+" being read outside a reactive context")}}function QD(i,t,e){var r=Ll(true);tE(i);i.newObserving=new Array(i.observing.length+100);i.unboundDepsCount=0;i.runId=++lt.runId;var o=lt.trackingDerivation;lt.trackingDerivation=i;var n;if(lt.disableErrorBoundaries===true){n=t.call(e)}else{try{n=t.call(e)}catch(s){n=new fg(s)}}lt.trackingDerivation=o;RJ(i);if(i.observing.length===0){OJ(i)}os(r);return n}function OJ(i){if(true)return;if(lt.reactionRequiresObservable||i.requiresObservable){console.warn("[mobx] Derivation "+i.name+" is created/updated without reading any observable value")}}function RJ(i){var t=i.observing;var e=i.observing=i.newObserving;var r=Yt.UP_TO_DATE;var o=0,n=i.unboundDepsCount;for(var s=0;s<n;s++){var a=e[s];if(a.diffValue===0){a.diffValue=1;if(o!==s)e[o]=a;o++}if(a.dependenciesState>r){r=a.dependenciesState}}e.length=o;i.newObserving=null;n=t.length;while(n--){var a=t[n];if(a.diffValue===0){oE(a,i)}a.diffValue=0}while(o--){var a=e[o];if(a.diffValue===1){a.diffValue=0;zJ(a,i)}}if(r!==Yt.UP_TO_DATE){i.dependenciesState=r;i.onBecomeStale()}}function C0(i){var t=i.observing;i.observing=[];var e=t.length;while(e--)oE(t[e],i);i.dependenciesState=Yt.NOT_TRACKING}function R0(i){var t=Hu();var e=i();ha(t);return e}function Hu(){var i=lt.trackingDerivation;lt.trackingDerivation=null;return i}function ha(i){lt.trackingDerivation=i}function Ll(i){var t=lt.allowStateReads;lt.allowStateReads=i;return t}function os(i){lt.allowStateReads=i}function tE(i){if(i.dependenciesState===Yt.UP_TO_DATE)return;i.dependenciesState=Yt.UP_TO_DATE;var t=i.observing;var e=t.length;while(e--)t[e].lowestObserverState=Yt.UP_TO_DATE}function Al(i,t){if(false){pa(typeof t==="function","`action` can only be invoked on functions");if(typeof i!=="string"||!i)me("actions should have valid names, got: '"+i+"'")}var e=function(){return eE(i,t,this,arguments)};if(false){if(xpt){Object.defineProperty(e,"name",{value:i})}}e.isMobxAction=true;return e}function eE(i,t,e,r){var o=BJ(i,e,r);try{return t.apply(e,r)}catch(n){o.error=n;throw n}finally{PJ(o)}}function BJ(i,t,e){var r=bi()&&!!i;var o=0;if(r){o=Date.now();var n=e&&e.length||0;var s=new Array(n);if(n>0)for(var a=0;a<n;a++)s[a]=e[a];vo({type:"action",name:i,object:t,arguments:s})}var l=Hu();ns();var c=Km(true);var u=Ll(true);var m={prevDerivation:l,prevAllowStateChanges:c,prevAllowStateReads:u,notifySpy:r,startTime:o,actionId:AJ++,parentActionId:gg};gg=m.actionId;return m}function PJ(i){if(gg!==i.actionId){me("invalid action stack. did you forget to finish an action?")}gg=i.parentActionId;if(i.error!==void 0){lt.suppressReactionErrors=true}Xm(i.prevAllowStateChanges);os(i.prevAllowStateReads);ss();ha(i.prevDerivation);if(i.notifySpy){Co({time:Date.now()-i.startTime})}lt.suppressReactionErrors=false}function iE(i,t){var e=Km(i);var r;try{r=t()}finally{Xm(e)}return r}function Km(i){var t=lt.allowStateChanges;lt.allowStateChanges=i;return t}function Xm(i){lt.allowStateChanges=i}function LJ(){if(lt.pendingReactions.length||lt.inBatch||lt.isRunningReactions)me("isolateGlobalState should be called before MobX is running any reactions");rE=true;if(dg){if(--Wm().__mobxInstanceCount===0)Wm().__mobxGlobals=void 0;lt=new ug}}function zJ(i,t){var e=i.observers.length;if(e){i.observersIndexes[t.__mapid]=e}i.observers[e]=t;if(i.lowestObserverState>t.dependenciesState)i.lowestObserverState=t.dependenciesState}function oE(i,t){if(i.observers.length===1){i.observers.length=0;nE(i)}else{var e=i.observers;var r=i.observersIndexes;var o=e.pop();if(o!==t){var n=r[t.__mapid]||0;if(n){r[o.__mapid]=n}else{delete r[o.__mapid]}e[n]=o}delete r[t.__mapid]}}function nE(i){if(i.isPendingUnobservation===false){i.isPendingUnobservation=true;lt.pendingUnobservations.push(i)}}function ns(){lt.inBatch++}function ss(){if(--lt.inBatch===0){cE();var i=lt.pendingUnobservations;for(var t=0;t<i.length;t++){var e=i[t];e.isPendingUnobservation=false;if(e.observers.length===0){if(e.isBeingObserved){e.isBeingObserved=false;e.onBecomeUnobserved()}if(e instanceof ga){e.suspend()}}}lt.pendingUnobservations=[]}}function sE(i){FJ(i);var t=lt.trackingDerivation;if(t!==null){if(t.runId!==i.lastAccessedBy){i.lastAccessedBy=t.runId;t.newObserving[t.unboundDepsCount++]=i;if(!i.isBeingObserved){i.isBeingObserved=true;i.onBecomeObserved()}}return true}else if(i.observers.length===0&<.inBatch>0){nE(i)}return false}function UJ(i){if(i.lowestObserverState===Yt.STALE)return;i.lowestObserverState=Yt.STALE;var t=i.observers;var e=t.length;while(e--){var r=t[e];if(r.dependenciesState===Yt.UP_TO_DATE){if(r.isTracing!==xo.NONE){aE(r,i)}r.onBecomeStale()}r.dependenciesState=Yt.STALE}}function NJ(i){if(i.lowestObserverState===Yt.STALE)return;i.lowestObserverState=Yt.STALE;var t=i.observers;var e=t.length;while(e--){var r=t[e];if(r.dependenciesState===Yt.POSSIBLY_STALE)r.dependenciesState=Yt.STALE;else if(r.dependenciesState===Yt.UP_TO_DATE)i.lowestObserverState=Yt.UP_TO_DATE}}function HJ(i){if(i.lowestObserverState!==Yt.UP_TO_DATE)return;i.lowestObserverState=Yt.POSSIBLY_STALE;var t=i.observers;var e=t.length;while(e--){var r=t[e];if(r.dependenciesState===Yt.UP_TO_DATE){r.dependenciesState=Yt.POSSIBLY_STALE;if(r.isTracing!==xo.NONE){aE(r,i)}r.onBecomeStale()}}}function aE(i,t){console.log("[mobx.trace] '"+i.name+"' is invalidated due to a change in: '"+t.name+"'");if(i.isTracing===xo.BREAK){var e=[];lE(B0(i),e,1);new Function("debugger;\n/*\nTracing '"+i.name+"'\n\nYou are entering this break point because derivation '"+i.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"+(i instanceof ga?i.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+e.join("\n")+"\n*/\n ")()}}function lE(i,t,e){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+new Array(e).join(" ")+i.name);if(i.dependencies)i.dependencies.forEach(function(r){return lE(r,t,e+1)})}function cE(){if(lt.inBatch>0||lt.isRunningReactions)return;S0(WJ)}function WJ(){lt.isRunningReactions=true;var i=lt.pendingReactions;var t=0;while(i.length>0){if(++t===LD){console.error("Reaction doesn't converge to a stable state after "+LD+" iterations."+(" Probably there is a cycle in the reactive function: "+i[0]));i.splice(0)}var e=i.splice(0);for(var r=0,o=e.length;r<o;r++)e[r].runReaction()}lt.isRunningReactions=false}function GJ(i){var t=S0;S0=function(e){return i(function(){return t(e)})}}function bi(){return!!lt.spyListeners.length}function Pl(i){if(!lt.spyListeners.length)return;var t=lt.spyListeners;for(var e=0,r=t.length;e<r;e++)t[e](i)}function vo(i){var t=Fe(Fe({},i),{spyReportStart:true});Pl(t)}function Co(i){if(i)Pl(Fe(Fe({},i),{spyReportEnd:true}));else Pl(VJ)}function A0(i){lt.spyListeners.push(i);return k0(function(){lt.spyListeners=lt.spyListeners.filter(function(t){return t!==i})})}function jJ(){me(false)}function zD(i){return function(t,e,r){if(r){if(false){return me("@action cannot be used with getters")}if(r.value){return{value:Al(i,r.value),enumerable:false,configurable:true,writable:true}}var o=r.initializer;return{enumerable:false,configurable:true,writable:true,initializer:function(){return Al(i,o.call(this))}}}return $J(i).apply(this,arguments)}}function $J(i){return function(t,e,r){Object.defineProperty(t,e,{configurable:true,enumerable:false,get:function(){return void 0},set:function(o){as(this,e,C(i,o))}})}}function KJ(i,t,e,r){if(r===true){b0(i,t,e.value);return null}if(e){return{configurable:true,enumerable:false,get:function(){b0(this,t,e.value||e.initializer.call(this));return this[t]},set:jJ}}return{enumerable:false,configurable:true,set:function(o){b0(this,t,o)},get:function(){return void 0}}}function Ve(i,t){var e=typeof i==="string"?i:i.name||"<unnamed action>";var r=typeof i==="function"?i:t;if(false){pa(typeof r==="function"&&r.length===0,"`runInAction` expects a function without arguments");if(typeof e!=="string"||!e)me("actions should have valid names, got: '"+e+"'")}return eE(e,r,this,void 0)}function b0(i,t,e){as(i,t,Al(t,e.bind(i)))}function XJ(i,t){if(t===void 0){t=VD}if(false){pa(typeof i==="function","Autorun expects a function as first argument");pa(isAction(i)===false,"Autorun does not accept actions since actions are untrackable")}var e=t&&t.name||i.name||"Autorun@"+Cr();var r=!t.scheduler&&!t.delay;var o;if(r){o=new ba(e,function(){this.track(a)},t.onError,t.requiresObservable)}else{var n=YJ(t);var s=false;o=new ba(e,function(){if(!s){s=true;n(function(){s=false;if(!o.isDisposed)o.track(a)})}},t.onError,t.requiresObservable)}function a(){i(o)}o.schedule();return o.getDisposer()}function YJ(i){return i.scheduler?i.scheduler:i.delay?function(t){return setTimeout(t,i.delay)}:qJ}function JJ(i,t,e){return dE("onBecomeObserved",i,t,e)}function uE(i,t,e){return dE("onBecomeUnobserved",i,t,e)}function dE(i,t,e,r){var o=typeof r==="function"?ya(t,e):ya(t);var n=typeof r==="function"?r:e;var s=o[i];if(typeof s!=="function")return me(false);o[i]=function(){s.call(this);n.call(this)};return function(){o[i]=s}}function wg(i){var t=i.enforceActions,e=i.computedRequiresReaction,r=i.computedConfigurable,o=i.disableErrorBoundaries,n=i.arrayBuffer,s=i.reactionScheduler,a=i.reactionRequiresObservable,l=i.observableRequiresReaction;if(i.isolateGlobalState===true){LJ()}if(t!==void 0){if(typeof t==="boolean"||t==="strict")is(`Deprecated value for 'enforceActions', use 'false' => '"never"', 'true' => '"observed"', '"strict"' => "'always'" instead`);var c=void 0;switch(t){case true:case"observed":c=true;break;case false:case"never":c=false;break;case"strict":case"always":c="strict";break;default:me("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}lt.enforceActions=c;lt.allowStateChanges=c===true||c==="strict"?false:true}if(e!==void 0){lt.computedRequiresReaction=!!e}if(a!==void 0){lt.reactionRequiresObservable=!!a}if(l!==void 0){lt.observableRequiresReaction=!!l;lt.allowStateReads=!lt.observableRequiresReaction}if(r!==void 0){lt.computedConfigurable=!!r}if(o!==void 0){if(o===true)console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on.");lt.disableErrorBoundaries=!!o}if(typeof n==="number"){M0(n)}if(s){GJ(s)}}function ZJ(i,t,e,r){if(false){pa(arguments.length>=2&&arguments.length<=4,"'extendObservable' expected 2-4 arguments");pa(typeof i==="object","'extendObservable' expects an object as first argument");pa(!sn(i),"'extendObservable' should not be used on maps, use map.merge instead");pa(!yg(t),"Extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540");if(e){for(var o in e)if(!(o in t))me("Trying to declare a decorator for unspecified property '"+o+"'")}}r=Lu(r);var n=r.defaultDecorator||(r.deep===false?ZD:O0);Bl(i);L0(i,r.name,n.enhancer);ns();try{var s=Object.getOwnPropertyNames(t);for(var a=0,l=s.length;a<l;a++){var o=s[a];var c=Object.getOwnPropertyDescriptor(t,o);if(false){if(isComputed(c.value))me("Passing a 'computed' as initial property value is no longer supported by extendObservable. Use a getter or decorator instead")}var u=e&&o in e?e[o]:c.get?hg:n;if(false)return me("Not a valid decorator for '"+o+"', got: "+u);var m=u(i,o,c,true);if(m)Object.defineProperty(i,o,m)}}finally{ss()}return i}function B0(i,t){return mE(ya(i,t))}function mE(i){var t={name:i.name};if(i.observing&&i.observing.length>0)t.dependencies=uJ(i.observing).map(mE);return t}function QJ(){this.message="FLOW_CANCELLED"}function tZ(i,t){if(i===null||i===void 0)return false;if(t!==void 0){if(false)return me("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(Ml(i)){var e=i.$mobx;return e.values&&!!e.values[t]}return false}return Ml(i)||!!i.$mobx||F0(i)||bg(i)||Sg(i)}function yg(i){if(arguments.length!==1)me(false);return tZ(i)}function eZ(i){if(Ml(i)){return i.$mobx.getKeys()}if(sn(i)){return rs(i.keys())}if(xa(i)){return rs(i.keys())}if(zl(i)){return i.map(function(t,e){return e})}return me(false)}function Mu(i,t,e,r){if(r.detectCycles)i.set(t,e);return e}function ma(i,t,e){if(!t.recurseEverything&&!yg(i))return i;if(typeof i!=="object")return i;if(i===null)return null;if(i instanceof Date)return i;if(MJ(i))return ma(i.get(),t,e);if(yg(i))eZ(i);var r=t.detectCycles===true;if(r&&i!==null&&e.has(i)){return e.get(i)}if(zl(i)||Array.isArray(i)){var o=Mu(e,i,[],t);var n=i.map(function(g){return ma(g,t,e)});o.length=n.length;for(var s=0,a=n.length;s<a;s++)o[s]=n[s];return o}if(xa(i)||Object.getPrototypeOf(i)===Set.prototype){if(t.exportMapsAsObjects===false){var l=Mu(e,i,new Set,t);i.forEach(function(g){l.add(ma(g,t,e))});return l}else{var c=Mu(e,i,[],t);i.forEach(function(g){c.push(ma(g,t,e))});return c}}if(sn(i)||Object.getPrototypeOf(i)===Map.prototype){if(t.exportMapsAsObjects===false){var u=Mu(e,i,new Map,t);i.forEach(function(g,x){u.set(x,ma(g,t,e))});return u}else{var m=Mu(e,i,{},t);i.forEach(function(g,x){m[x]=ma(g,t,e)});return m}}var p=Mu(e,i,{},t);for(var h in i){p[h]=ma(i[h],t,e)}return p}function ct(i,t){if(typeof t==="boolean")t={detectCycles:t};if(!t)t=iZ;t.detectCycles=t.detectCycles===void 0?t.recurseEverything===true:t.detectCycles===true;var e;if(t.detectCycles)e=new Map;return ma(i,t,e)}function rZ(){var i=[];for(var t=0;t<arguments.length;t++){i[t]=arguments[t]}var e=false;if(typeof i[i.length-1]==="boolean")e=i.pop();var r=oZ(i);if(!r){return me(false)}if(r.isTracing===xo.NONE){console.log("[mobx.trace] '"+r.name+"' tracing enabled")}r.isTracing=e?xo.BREAK:xo.LOG}function oZ(i){switch(i.length){case 0:return lt.trackingDerivation;case 1:return ya(i[0]);case 2:return ya(i[0],i[1])}}function en(i,t){if(t===void 0){t=void 0}ns();try{return i.apply(t)}finally{ss()}}function rn(i){return i.interceptors!==void 0&&i.interceptors.length>0}function qm(i,t){var e=i.interceptors||(i.interceptors=[]);e.push(t);return k0(function(){var r=e.indexOf(t);if(r!==-1)e.splice(r,1)})}function on(i,t){var e=Hu();try{var r=i.interceptors;if(r)for(var o=0,n=r.length;o<n;o++){t=r[o](t);pa(!t||t.type,"Intercept handlers should return nothing or a change object");if(!t)break}return t}finally{ha(e)}}function So(i){return i.changeListeners!==void 0&&i.changeListeners.length>0}function Ym(i,t){var e=i.changeListeners||(i.changeListeners=[]);e.push(t);return k0(function(){var r=e.indexOf(t);if(r!==-1)e.splice(r,1)})}function wo(i,t){var e=Hu();var r=i.changeListeners;if(!r)return;r=r.slice();for(var o=0,n=r.length;o<n;o++){r[o](t)}ha(e)}function aZ(i,t){if(typeof Object["setPrototypeOf"]!=="undefined"){Object["setPrototypeOf"](i.prototype,t)}else if(typeof i.prototype.__proto__!=="undefined"){i.prototype.__proto__=t}else{i["prototype"]=t}}function hE(i){return{enumerable:false,configurable:false,get:function(){return this.get(i)},set:function(t){this.set(i,t)}}}function cZ(i){Object.defineProperty(nn.prototype,""+i,hE(i))}function M0(i){for(var t=w0;t<i;t++)cZ(t);w0=i}function zl(i){return I0(i)&&uZ(i.$mobx)}function cg(i){if(i&&i.toString)return i.toString();else return new String(i).toString()}function L0(i,t,e){if(t===void 0){t=""}if(e===void 0){e=$m}var r=i.$mobx;if(r)return r;if(!Uu(i))t=(i.constructor.name||"ObservableObject")+"@"+Cr();if(!t)t="ObservableObject@"+Cr();r=new fE(i,t,e);Vm(i,"$mobx",r);return r}function pZ(i,t,e,r){var o=L0(i);pJ(i,t);if(rn(o)){var n=on(o,{object:i,name:t,type:"add",newValue:e});if(!n)return;e=n.newValue}var s=o.values[t]=new fa(e,r,o.name+"."+t,false);e=s.value;Object.defineProperty(i,t,fZ(t));if(o.keys)o.keys.push(t);bZ(o,i,t,e)}function hZ(i,t,e){var r=L0(i);e.name=r.name+"."+t;e.context=i;r.values[t]=new ga(e);Object.defineProperty(i,t,gZ(t))}function fZ(i){return UD[i]||(UD[i]={configurable:true,enumerable:true,get:function(){return this.$mobx.read(this,i)},set:function(t){this.$mobx.write(this,i,t)}})}function HD(i){var t=i.$mobx;if(!t){Bl(i);return i.$mobx}return t}function gZ(i){return ND[i]||(ND[i]={configurable:lt.computedConfigurable,enumerable:false,get:function(){return HD(this).read(this,i)},set:function(t){HD(this).write(this,i,t)}})}function bZ(i,t,e,r){var o=So(i);var n=bi();var s=o||n?{type:"add",object:t,name:e,newValue:r}:null;if(n)vo(Fe(Fe({},s),{name:i.name,key:e}));if(o)wo(i,s);if(n)Co()}function Ml(i){if(I0(i)){Bl(i);return yZ(i.$mobx)}return false}function ya(i,t){if(typeof i==="object"&&i!==null){if(zl(i)){if(t!==void 0)me(false);return i.$mobx.atom}if(xa(i)){return i.$mobx}if(sn(i)){var e=i;if(t===void 0)return e._keysAtom;var r=e._data.get(t)||e._hasMap.get(t);if(!r)me(false);return r}Bl(i);if(t&&!i.$mobx)i[t];if(Ml(i)){if(!t)return me(false);var r=i.$mobx.values[t];if(!r)me(false);return r}if(F0(i)||Sg(i)||bg(i)){return i}}else if(typeof i==="function"){if(bg(i.$mobx)){return i.$mobx}}return me(false)}function gE(i,t){if(!i)me("Expecting some object");if(t!==void 0)return gE(ya(i,t));if(F0(i)||Sg(i)||bg(i))return i;if(sn(i)||xa(i))return i;Bl(i);if(i.$mobx)return i.$mobx;me(false)}function _Z(i,t){var e;if(t!==void 0)e=ya(i,t);else if(Ml(i)||sn(i)||xa(i))e=gE(i);else e=ya(i);return e.name}function z0(i,t,e){if(e===void 0){e=-1}return T0(i,t,e)}function T0(i,t,e,r,o){if(i===t)return i!==0||1/i===1/t;if(i==null||t==null)return false;if(i!==i)return t!==t;var n=typeof i;if(n!=="function"&&n!=="object"&&typeof t!="object")return false;i=GD(i);t=GD(t);var s=WD.call(i);if(s!==WD.call(t))return false;switch(s){case"[object RegExp]":case"[object String]":return""+i===""+t;case"[object Number]":if(+i!==+i)return+t!==+t;return+i===0?1/+i===1/t:+i===+t;case"[object Date]":case"[object Boolean]":return+i===+t;case"[object Symbol]":return typeof Symbol!=="undefined"&&Symbol.valueOf.call(i)===Symbol.valueOf.call(t)}var a=s==="[object Array]";if(!a){if(typeof i!="object"||typeof t!="object")return false;var l=i.constructor,c=t.constructor;if(l!==c&&!(typeof l==="function"&&l instanceof l&&typeof c==="function"&&c instanceof c)&&("constructor"in i&&"constructor"in t)){return false}}if(e===0){return false}else if(e<0){e=-1}r=r||[];o=o||[];var u=r.length;while(u--){if(r[u]===i)return o[u]===t}r.push(i);o.push(t);if(a){u=i.length;if(u!==t.length)return false;while(u--){if(!T0(i[u],t[u],e-1,r,o))return false}}else{var m=Object.keys(i);var p=void 0;u=m.length;if(Object.keys(t).length!==u)return false;while(u--){p=m[u];if(!(xZ(t,p)&&T0(i[p],t[p],e-1,r,o)))return false}}r.pop();o.pop();return true}function GD(i){if(zl(i))return i.peek();if(Nu(i)||sn(i))return rs(i.entries());if(jm(i)||xa(i))return rs(i.entries());return i}function xZ(i,t){return Object.prototype.hasOwnProperty.call(i,t)}var lJ,mg,VD,cJ,RD,AD,_g,F0,pg,y0,Fe,_J,xJ,JD,TJ,O0,kJ,ZD,IJ,PD,Q,hg,EJ,S,Yt,xo,fg,gg,AJ,MD,xpt,fa,MJ,ga,Sg,ug,dg,rE,lt,ba,LD,S0,bg,VJ,C,qJ,iZ,nZ,sZ,w0,P0,pE,nn,lZ,uZ,dZ,Tg,sn,mZ,kg,xa,fE,UD,ND,yZ,WD,U0,vpt;var Tt=d(()=>{lJ="An invariant failed, however the error is obfuscated because this is an production build.";mg=[];Object.freeze(mg);VD={};Object.freeze(VD);cJ={};RD=[];AD=function(){};_g=function(){function i(t){if(t===void 0){t="Atom@"+Cr()}this.name=t;this.isPendingUnobservation=false;this.isBeingObserved=false;this.observers=[];this.observersIndexes={};this.diffValue=0;this.lastAccessedBy=0;this.lowestObserverState=Yt.NOT_TRACKING}i.prototype.onBecomeUnobserved=function(){};i.prototype.onBecomeObserved=function(){};i.prototype.reportObserved=function(){return sE(this)};i.prototype.reportChanged=function(){ns();UJ(this);ss()};i.prototype.toString=function(){return this.name};return i}();F0=_a("Atom",_g);pg={identity:XD,structural:gJ,default:yJ,shallow:bJ};y0=function(i,t){y0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)if(r.hasOwnProperty(o))e[o]=r[o]};return y0(i,t)};Fe=function(){Fe=Object.assign||function i(t){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}return t};return Fe.apply(this,arguments)};_J={};xJ={};JD={deep:true,name:void 0,defaultDecorator:void 0};TJ={deep:false,name:void 0,defaultDecorator:void 0};Object.freeze(JD);Object.freeze(TJ);O0=Cg($m);kJ=Cg(SJ);ZD=Cg(vg);IJ=Cg(wJ);PD={box:function(i,t){if(arguments.length>2)es("box");var e=Lu(t);return new fa(i,lg(e),e.name,true,e.equals)},shallowBox:function(i,t){if(arguments.length>2)es("shallowBox");is("observable.shallowBox","observable.box(value, { deep: false })");return Q.box(i,{name:t,deep:false})},array:function(i,t){if(arguments.length>2)es("array");var e=Lu(t);return new nn(i,lg(e),e.name)},shallowArray:function(i,t){if(arguments.length>2)es("shallowArray");is("observable.shallowArray","observable.array(values, { deep: false })");return Q.array(i,{name:t,deep:false})},map:function(i,t){if(arguments.length>2)es("map");var e=Lu(t);return new Tg(i,lg(e),e.name)},shallowMap:function(i,t){if(arguments.length>2)es("shallowMap");is("observable.shallowMap","observable.map(values, { deep: false })");return Q.map(i,{name:t,deep:false})},set:function(i,t){if(arguments.length>2)es("set");var e=Lu(t);return new kg(i,lg(e),e.name)},object:function(i,t,e){if(typeof arguments[1]==="string")es("object");var r=Lu(e);return ZJ({},i,t,r)},shallowObject:function(i,t){if(typeof arguments[1]==="string")es("shallowObject");is("observable.shallowObject","observable.object(values, {}, { deep: false })");return Q.object(i,{},{name:t,deep:false})},ref:ZD,shallow:kJ,deep:O0,struct:IJ};Q=DJ;Object.keys(PD).forEach(function(i){return Q[i]=PD[i]});hg=YD(false,function(i,t,e,r,o){if(false){pa(e&&e.get,"Trying to declare a computed value for unspecified getter '"+t+"'")}var n=e.get,s=e.set;var a=o[0]||{};hZ(i,t,Fe({get:n,set:s},a))});EJ=hg({equals:pg.structural});S=function i(t,e,r){if(typeof e==="string"){return hg.apply(null,arguments)}if(t!==null&&typeof t==="object"&&arguments.length===1){return hg.apply(null,arguments)}if(false){pa(typeof t==="function","First argument to `computed` should be an expression.");pa(arguments.length<3,"Computed takes one or two arguments if used as function")}var o=typeof e==="object"?e:{};o.get=t;o.set=typeof e==="function"?e:o.set;o.name=o.name||t.name||"";return new ga(o)};S.struct=EJ;(function(i){i[i["NOT_TRACKING"]=-1]="NOT_TRACKING";i[i["UP_TO_DATE"]=0]="UP_TO_DATE";i[i["POSSIBLY_STALE"]=1]="POSSIBLY_STALE";i[i["STALE"]=2]="STALE"})(Yt||(Yt={}));(function(i){i[i["NONE"]=0]="NONE";i[i["LOG"]=1]="LOG";i[i["BREAK"]=2]="BREAK"})(xo||(xo={}));fg=function(){function i(t){this.cause=t}return i}();gg=0;AJ=1;MD=Object.getOwnPropertyDescriptor(function(){},"name");xpt=MD&&MD.configurable;fa=function(i){qD(t,i);function t(e,r,o,n,s){if(o===void 0){o="ObservableValue@"+Cr()}if(n===void 0){n=true}if(s===void 0){s=pg.default}var a=i.call(this,o)||this;a.enhancer=r;a.name=o;a.equals=s;a.hasUnreportedChange=false;a.value=r(e,void 0,o);if(n&&bi()){Pl({type:"create",name:a.name,newValue:""+a.value})}return a}t.prototype.dehanceValue=function(e){if(this.dehancer!==void 0)return this.dehancer(e);return e};t.prototype.set=function(e){var r=this.value;e=this.prepareNewValue(e);if(e!==lt.UNCHANGED){var o=bi();if(o){vo({type:"update",name:this.name,newValue:e,oldValue:r})}this.setNewValue(e);if(o)Co()}};t.prototype.prepareNewValue=function(e){zu(this);if(rn(this)){var r=on(this,{object:this,type:"update",newValue:e});if(!r)return lt.UNCHANGED;e=r.newValue}e=this.enhancer(e,this.value,this.name);return this.equals(this.value,e)?lt.UNCHANGED:e};t.prototype.setNewValue=function(e){var r=this.value;this.value=e;this.reportChanged();if(So(this)){wo(this,{type:"update",object:this,newValue:e,oldValue:r})}};t.prototype.get=function(){this.reportObserved();return this.dehanceValue(this.value)};t.prototype.intercept=function(e){return qm(this,e)};t.prototype.observe=function(e,r){if(r)e({object:this,type:"update",newValue:this.value,oldValue:void 0});return Ym(this,e)};t.prototype.toJSON=function(){return this.get()};t.prototype.toString=function(){return this.name+"["+this.value+"]"};t.prototype.valueOf=function(){return $D(this.get())};return t}(_g);fa.prototype[jD()]=fa.prototype.valueOf;MJ=_a("ObservableValue",fa);ga=function(){function i(t){this.dependenciesState=Yt.NOT_TRACKING;this.observing=[];this.newObserving=null;this.isBeingObserved=false;this.isPendingUnobservation=false;this.observers=[];this.observersIndexes={};this.diffValue=0;this.runId=0;this.lastAccessedBy=0;this.lowestObserverState=Yt.UP_TO_DATE;this.unboundDepsCount=0;this.__mapid="#"+Cr();this.value=new fg(null);this.isComputing=false;this.isRunningSetter=false;this.isTracing=xo.NONE;pa(t.get,"missing option for computed: get");this.derivation=t.get;this.name=t.name||"ComputedValue@"+Cr();if(t.set)this.setter=Al(this.name+"-setter",t.set);this.equals=t.equals||(t.compareStructural||t.struct?pg.structural:pg.default);this.scope=t.context;this.requiresReaction=!!t.requiresReaction;this.keepAlive=!!t.keepAlive}i.prototype.onBecomeStale=function(){HJ(this)};i.prototype.onBecomeUnobserved=function(){};i.prototype.onBecomeObserved=function(){};i.prototype.get=function(){if(this.isComputing)me("Cycle detected in computation "+this.name+": "+this.derivation);if(lt.inBatch===0&&this.observers.length===0&&!this.keepAlive){if(v0(this)){this.warnAboutUntrackedRead();ns();this.value=this.computeValue(false);ss()}}else{sE(this);if(v0(this)){if(this.trackAndCompute())NJ(this)}}var t=this.value;if(Hm(t))throw t.cause;return t};i.prototype.peek=function(){var t=this.computeValue(false);if(Hm(t))throw t.cause;return t};i.prototype.set=function(t){if(this.setter){pa(!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=true;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=false}}else pa(false,false)};i.prototype.trackAndCompute=function(){if(bi()){Pl({object:this.scope,type:"compute",name:this.name})}var t=this.value;var e=this.dependenciesState===Yt.NOT_TRACKING;var r=this.computeValue(true);var o=e||Hm(t)||Hm(r)||!this.equals(t,r);if(o){this.value=r}return o};i.prototype.computeValue=function(t){this.isComputing=true;lt.computationDepth++;var e;if(t){e=QD(this,this.derivation,this.scope)}else{if(lt.disableErrorBoundaries===true){e=this.derivation.call(this.scope)}else{try{e=this.derivation.call(this.scope)}catch(r){e=new fg(r)}}}lt.computationDepth--;this.isComputing=false;return e};i.prototype.suspend=function(){if(!this.keepAlive){C0(this);this.value=void 0}};i.prototype.observe=function(t,e){var r=this;var o=true;var n=void 0;return XJ(function(){var s=r.get();if(!o||e){var a=Hu();t({type:"update",object:r,newValue:s,oldValue:n});ha(a)}o=false;n=s})};i.prototype.warnAboutUntrackedRead=function(){if(true)return;if(this.requiresReaction===true){me("[mobx] Computed value "+this.name+" is read outside a reactive context")}if(this.isTracing!==xo.NONE){console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context. Doing a full recompute")}if(lt.computedRequiresReaction){console.warn("[mobx] Computed value "+this.name+" is being read outside a reactive context. Doing a full recompute")}};i.prototype.toJSON=function(){return this.get()};i.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"};i.prototype.valueOf=function(){return $D(this.get())};return i}();ga.prototype[jD()]=ga.prototype.valueOf;Sg=_a("ComputedValue",ga);ug=function(){function i(){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=false;this.allowStateChanges=true;this.allowStateReads=true;this.enforceActions=false;this.spyListeners=[];this.globalReactionErrorHandlers=[];this.computedRequiresReaction=false;this.reactionRequiresObservable=false;this.observableRequiresReaction=false;this.computedConfigurable=false;this.disableErrorBoundaries=false;this.suppressReactionErrors=false}return i}();dg=true;rE=false;lt=function(){var i=Wm();if(i.__mobxInstanceCount>0&&!i.__mobxGlobals)dg=false;if(i.__mobxGlobals&&i.__mobxGlobals.version!==new ug().version)dg=false;if(!dg){setTimeout(function(){if(!rE){me("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}},1);return new ug}else if(i.__mobxGlobals){i.__mobxInstanceCount+=1;if(!i.__mobxGlobals.UNCHANGED)i.__mobxGlobals.UNCHANGED={};return i.__mobxGlobals}else{i.__mobxInstanceCount=1;return i.__mobxGlobals=new ug}}();ba=function(){function i(t,e,r,o){if(t===void 0){t="Reaction@"+Cr()}if(o===void 0){o=false}this.name=t;this.onInvalidate=e;this.errorHandler=r;this.requiresObservable=o;this.observing=[];this.newObserving=[];this.dependenciesState=Yt.NOT_TRACKING;this.diffValue=0;this.runId=0;this.unboundDepsCount=0;this.__mapid="#"+Cr();this.isDisposed=false;this._isScheduled=false;this._isTrackPending=false;this._isRunning=false;this.isTracing=xo.NONE}i.prototype.onBecomeStale=function(){this.schedule()};i.prototype.schedule=function(){if(!this._isScheduled){this._isScheduled=true;lt.pendingReactions.push(this);cE()}};i.prototype.isScheduled=function(){return this._isScheduled};i.prototype.runReaction=function(){if(!this.isDisposed){ns();this._isScheduled=false;if(v0(this)){this._isTrackPending=true;try{this.onInvalidate();if(this._isTrackPending&&bi()){Pl({name:this.name,type:"scheduled-reaction"})}}catch(t){this.reportExceptionInDerivation(t)}}ss()}};i.prototype.track=function(t){ns();var e=bi();var r;if(e){r=Date.now();vo({name:this.name,type:"reaction"})}this._isRunning=true;var o=QD(this,t,void 0);this._isRunning=false;this._isTrackPending=false;if(this.isDisposed){C0(this)}if(Hm(o))this.reportExceptionInDerivation(o.cause);if(e){Co({time:Date.now()-r})}ss()};i.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler){this.errorHandler(t,this);return}if(lt.disableErrorBoundaries)throw t;var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";if(lt.suppressReactionErrors){console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)")}else{console.error(r,t)}if(bi()){Pl({type:"error",name:this.name,message:r,error:""+t})}lt.globalReactionErrorHandlers.forEach(function(o){return o(t,e)})};i.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=true;if(!this._isRunning){ns();C0(this);ss()}}};i.prototype.getDisposer=function(){var t=this.dispose.bind(this);t.$mobx=this;return t};i.prototype.toString=function(){return"Reaction["+this.name+"]"};i.prototype.trace=function(t){if(t===void 0){t=false}rZ(this,t)};return i}();LD=100;S0=function(i){return i()};bg=_a("Reaction",ba);VJ={spyReportEnd:true};C=function i(t,e,r,o){if(arguments.length===1&&typeof t==="function")return Al(t.name||"<unnamed action>",t);if(arguments.length===2&&typeof e==="function")return Al(t,e);if(arguments.length===1&&typeof t==="string")return zD(t);if(o===true){t[e]=Al(t.name||e,r.value)}else{return zD(e).apply(null,arguments)}};C.bound=KJ;qJ=function(i){return i()};QJ.prototype=Object.create(Error.prototype);iZ={detectCycles:true,exportMapsAsObjects:true,recurseEverything:false};nZ=1e4;sZ=function(){var i=false;var t={};Object.defineProperty(t,"0",{set:function(){i=true}});Object.create(t)["0"]=1;return i===false}();w0=0;P0=function(){function i(){}return i}();aZ(P0,Array.prototype);if(Object.isFrozen(Array)){["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(i){Object.defineProperty(P0.prototype,i,{configurable:true,writable:true,value:Array.prototype[i]})})}pE=function(){function i(t,e,r,o){this.array=r;this.owned=o;this.values=[];this.lastKnownLength=0;this.atom=new _g(t||"ObservableArray@"+Cr());this.enhancer=function(n,s){return e(n,s,t+"[..]")}}i.prototype.dehanceValue=function(t){if(this.dehancer!==void 0)return this.dehancer(t);return t};i.prototype.dehanceValues=function(t){if(this.dehancer!==void 0&&t.length>0)return t.map(this.dehancer);return t};i.prototype.intercept=function(t){return qm(this,t)};i.prototype.observe=function(t,e){if(e===void 0){e=false}if(e){t({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0})}return Ym(this,t)};i.prototype.getArrayLength=function(){this.atom.reportObserved();return this.values.length};i.prototype.setArrayLength=function(t){if(typeof t!=="number"||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t===e)return;else if(t>e){var r=new Array(t-e);for(var o=0;o<t-e;o++)r[o]=void 0;this.spliceWithArray(e,0,r)}else this.spliceWithArray(t,e-t)};i.prototype.updateArrayLength=function(t,e){if(t!==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+=e;if(e>0&&t+e+1>w0)M0(t+e+1)};i.prototype.spliceWithArray=function(t,e,r){var o=this;zu(this.atom);var n=this.values.length;if(t===void 0)t=0;else if(t>n)t=n;else if(t<0)t=Math.max(0,n+t);if(arguments.length===1)e=n-t;else if(e===void 0||e===null)e=0;else e=Math.max(0,Math.min(e,n-t));if(r===void 0)r=mg;if(rn(this)){var s=on(this,{object:this.array,type:"splice",index:t,removedCount:e,added:r});if(!s)return mg;e=s.removedCount;r=s.added}r=r.length===0?r:r.map(function(c){return o.enhancer(c,void 0)});var a=r.length-e;this.updateArrayLength(n,a);var l=this.spliceItemsIntoValues(t,e,r);if(e!==0||r.length!==0)this.notifyArraySplice(t,r,l);return this.dehanceValues(l)};i.prototype.spliceItemsIntoValues=function(t,e,r){var o;if(r.length<nZ){return(o=this.values).splice.apply(o,x0([t,e],r))}else{var n=this.values.slice(t,t+e);this.values=this.values.slice(0,t).concat(r,this.values.slice(t+e));return n}};i.prototype.notifyArrayChildUpdate=function(t,e,r){var o=!this.owned&&bi();var n=So(this);var s=n||o?{object:this.array,type:"update",index:t,newValue:e,oldValue:r}:null;if(o)vo(Fe(Fe({},s),{name:this.atom.name}));this.atom.reportChanged();if(n)wo(this,s);if(o)Co()};i.prototype.notifyArraySplice=function(t,e,r){var o=!this.owned&&bi();var n=So(this);var s=n||o?{object:this.array,type:"splice",index:t,removed:r,added:e,removedCount:r.length,addedCount:e.length}:null;if(o)vo(Fe(Fe({},s),{name:this.atom.name}));this.atom.reportChanged();if(n)wo(this,s);if(o)Co()};return i}();nn=function(i){qD(t,i);function t(e,r,o,n){if(o===void 0){o="ObservableArray@"+Cr()}if(n===void 0){n=false}var s=i.call(this)||this;var a=new pE(o,r,s,n);Vm(s,"$mobx",a);if(e&&e.length){var l=Km(true);s.spliceWithArray(0,0,e);Xm(l)}if(sZ){Object.defineProperty(a.array,"0",lZ)}return s}t.prototype.intercept=function(e){return this.$mobx.intercept(e)};t.prototype.observe=function(e,r){if(r===void 0){r=false}return this.$mobx.observe(e,r)};t.prototype.clear=function(){return this.splice(0)};t.prototype.concat=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}this.$mobx.atom.reportObserved();return Array.prototype.concat.apply(this.peek(),e.map(function(o){return zl(o)?o.peek():o}))};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(){this.$mobx.atom.reportObserved();return this.$mobx.dehanceValues(this.$mobx.values)};t.prototype.find=function(e,r,o){if(o===void 0){o=0}if(arguments.length===3)is("The array.find fromIndex argument to find will not be supported anymore in the next major");var n=this.findIndex.apply(this,arguments);return n===-1?void 0:this.get(n)};t.prototype.findIndex=function(e,r,o){if(o===void 0){o=0}if(arguments.length===3)is("The array.findIndex fromIndex argument to find will not be supported anymore in the next major");var n=this.peek(),s=n.length;for(var a=o;a<s;a++)if(e.call(r,n[a],a,this))return a;return-1};t.prototype.splice=function(e,r){var o=[];for(var n=2;n<arguments.length;n++){o[n-2]=arguments[n]}switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,r)}return this.$mobx.spliceWithArray(e,r,o)};t.prototype.spliceWithArray=function(e,r,o){return this.$mobx.spliceWithArray(e,r,o)};t.prototype.push=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=this.$mobx;o.spliceWithArray(o.values.length,0,e);return o.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(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=this.$mobx;o.spliceWithArray(0,0,e);return o.values.length};t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)};t.prototype.sort=function(e){var r=this.slice();return r.sort.apply(r,arguments)};t.prototype.remove=function(e){var r=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);if(r>-1){this.splice(r,1);return true}return false};t.prototype.move=function(e,r){is("observableArray.move is deprecated, use .slice() & .replace() instead");function o(a){if(a<0){throw new Error("[mobx.array] Index out of bounds: "+a+" is negative")}var l=this.$mobx.values.length;if(a>=l){throw new Error("[mobx.array] Index out of bounds: "+a+" is not smaller than "+l)}}o.call(this,e);o.call(this,r);if(e===r){return}var n=this.$mobx.values;var s;if(e<r){s=x0(n.slice(0,e),n.slice(e+1,r+1),[n[e]],n.slice(r+1))}else{s=x0(n.slice(0,r),[n[e]],n.slice(r,e),n.slice(e+1))}this.replace(s)};t.prototype.get=function(e){var r=this.$mobx;if(r){if(e<r.values.length){r.atom.reportObserved();return r.dehanceValue(r.values[e])}console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+r.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}return void 0};t.prototype.set=function(e,r){var o=this.$mobx;var n=o.values;if(e<n.length){zu(o.atom);var s=n[e];if(rn(o)){var a=on(o,{type:"update",object:this,index:e,newValue:r});if(!a)return;r=a.newValue}r=o.enhancer(r,s);var l=r!==s;if(l){n[e]=r;o.notifyArrayChildUpdate(e,r,s)}}else if(e===n.length){o.spliceWithArray(e,0,[r])}else{throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+n.length)}};return t}(P0);D0(nn.prototype,function(){this.$mobx.atom.reportObserved();var i=this;var t=0;return Gm({next:function(){return t<i.length?{value:i[t++],done:false}:{done:true,value:void 0}}})});Object.defineProperty(nn.prototype,"length",{enumerable:false,configurable:true,get:function(){return this.$mobx.getArrayLength()},set:function(i){this.$mobx.setArrayLength(i)}});as(nn.prototype,E0(),"Array");["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(i){var t=Array.prototype[i];pa(typeof t==="function","Base function not defined on Array prototype: '"+i+"'");as(nn.prototype,i,function(){return t.apply(this.peek(),arguments)})});["every","filter","forEach","map","some"].forEach(function(i){var t=Array.prototype[i];pa(typeof t==="function","Base function not defined on Array prototype: '"+i+"'");as(nn.prototype,i,function(e,r){var o=this;var n=this.$mobx;n.atom.reportObserved();var s=n.dehanceValues(n.values);return s[i](function(a,l){return e.call(r,a,l,o)},r)})});["reduce","reduceRight"].forEach(function(i){as(nn.prototype,i,function(){var t=this;var e=this.$mobx;e.atom.reportObserved();var r=arguments[0];arguments[0]=function(o,n,s){n=e.dehanceValue(n);return r(o,n,s,t)};return e.values[i].apply(e.values,arguments)})});mJ(nn.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"]);lZ=hE(0);M0(1e3);uZ=_a("ObservableArrayAdministration",pE);dZ={};Tg=function(){function i(t,e,r){if(e===void 0){e=$m}if(r===void 0){r="ObservableMap@"+Cr()}this.enhancer=e;this.name=r;this.$mobx=dZ;this._keysAtom=xg(this.name+".keys()");if(typeof Map!=="function"){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(t)}i.prototype._has=function(t){return this._data.has(t)};i.prototype.has=function(t){var e=this;if(!lt.trackingDerivation)return this._has(t);var r=this._hasMap.get(t);if(!r){var o=r=new fa(this._has(t),vg,this.name+"."+cg(t)+"?",false);this._hasMap.set(t,o);uE(o,function(){return e._hasMap.delete(t)})}return r.get()};i.prototype.set=function(t,e){var r=this._has(t);if(rn(this)){var o=on(this,{type:r?"update":"add",object:this,newValue:e,name:t});if(!o)return this;e=o.newValue}if(r){this._updateValue(t,e)}else{this._addValue(t,e)}return this};i.prototype.delete=function(t){var e=this;zu(this._keysAtom);if(rn(this)){var r=on(this,{type:"delete",object:this,name:t});if(!r)return false}if(this._has(t)){var o=bi();var n=So(this);var r=n||o?{type:"delete",object:this,oldValue:this._data.get(t).value,name:t}:null;if(o)vo(Fe(Fe({},r),{name:this.name,key:t}));en(function(){e._keysAtom.reportChanged();e._updateHasMapEntry(t,false);var a=e._data.get(t);a.setNewValue(void 0);e._data.delete(t)});if(n)wo(this,r);if(o)Co();return true}return false};i.prototype._updateHasMapEntry=function(t,e){var r=this._hasMap.get(t);if(r){r.setNewValue(e)}};i.prototype._updateValue=function(t,e){var r=this._data.get(