Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobx

Package Overview
Dependencies
Maintainers
6
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 6.12.0 to 6.12.1

2

dist/mobx.cjs.production.min.js

@@ -1,2 +0,2 @@

function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Mn}function i(){Ln||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===Cn}function f(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function c(t,n,i){Vn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function a(t,n,i){Vn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function v(t){return t instanceof Map}function l(t){return t instanceof Set}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return Rn.hasOwnProperty.call(t,n)}function p(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,"symbol"==typeof(e=function(t){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?e:String(e),r)}var e}function y(t,n,i){return n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function w(t,n){var i,r;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,i=t,r=n,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(i,r)}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function x(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return O(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t){return Object.assign((function(n,i){if(A(i))return t.t(n,i);g(n,i,t)}),t)}function g(t,n,i){b(t,Bn)||c(t,Bn,m({},t[Bn])),function(t){return"override"===t.i}(i)||(t[Bn][n]=i)}function A(t){return"object"==typeof t&&"string"==typeof t.kind}function S(t,n,i){void 0===n&&(n=In),void 0===i&&(i=In);var r=new qn(t);return n!==In&&Tt(r,n),i!==In&&kt(r,i),r}function M(t,n,i){return Gt(t)?t:Array.isArray(t)?ni.array(t,{name:i}):s(t)?ni.object(t,void 0,{name:i}):v(t)?ni.map(t,{name:i}):l(t)?ni.set(t,{name:i}):"function"!=typeof t||Nt(t)||Bt(t)?t:f(t)?Ii(t):Ri(i,t)}function E(t){return t}function N(t,n){return{i:t,u:n,o:V,s:R,t:T}}function V(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Nt(i.value))return 1;var u=k(t,this,n,i,!1);return Vn(r,n,u),2}function R(t,n,i,r){var e=k(t,this,n,i);return t.v(n,e,r)}function T(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,v;if("method"==r)return Nt(n)||(f=n,n=tt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(v=o.u)?void 0:v.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){g(this,e,o)}))}function k(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=xi.safeDescriptors);var v,l=r.value;return null!=(u=n.u)&&u.bound&&(l=l.bind(null!=(v=t.l)?v:t.h)),{value:tt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.l)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function L(t,n){return{i:t,u:n,o:C,s:I,t:K}}function C(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!Bt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Bt(i.value))return 1;var u=P(t,0,0,i,!1,!1);return Vn(r,n,u),2}function I(t,n,i,r){var e,u=P(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.v(n,u,r)}function K(t,n){var i,r=n.name,e=n.addInitializer;return Bt(t)||(t=Ii(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function P(t,n,i,r,e,u){void 0===u&&(u=xi.safeDescriptors);var o,s=r.value;return Bt(s)||(s=Ii(s)),e&&((s=s.bind(null!=(o=t.l)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function D(t,n){return{i:t,u:n,o:B,s:W,t:q}}function B(t,n,i){return null===this.s(t,n,i,!1)?0:1}function W(t,n,i,r){return t.m(n,m({},this.u,{get:i.get,set:i.set}),r)}function q(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=hn(this)[Wn],e=m({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new bi(e))})),function(){return this[Wn].O(r)}}function G(t,n){return{i:t,u:n,o:H,s:X,t:U}}function H(t,n,i){return null===this.s(t,n,i,!1)?0:1}function X(t,n,i,r){var e,u;return t._(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:M,r)}function U(t,n){function i(t,n){var i,e,s=hn(t)[Wn],f=new hi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:M,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[Wn].O(u)},set:function(t){return o.has(this)||i(this,t),this[Wn].g(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function F(t){return{i:"true",u:t,o:z,s:$,t:J}}function z(t,n,i,r){var e,u,o,s;if(i.get)return ei.o(t,n,i,r);if(i.set){var c=tt(n.toString(),i.set);return r===t.h?null===t.v(n,{configurable:!xi.safeDescriptors||t.p,set:c})?0:2:(Vn(r,n,{configurable:!0,set:c}),2)}if(r!==t.h&&"function"==typeof i.value)return f(i.value)?(null!=(s=this.u)&&s.autoBind?Ii.bound:Ii).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ri.bound:Ri).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ni.ref:ni;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.l)?a:t.h)),h.o(t,n,i,r)}function $(t,n,i,r){var e,u,o;return i.get?ei.s(t,n,i,r):i.set?t.v(n,{configurable:!xi.safeDescriptors||t.p,set:tt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.l)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ni.ref:ni).s(t,n,i,r))}function J(){t("'"+this.i+"' cannot be used as a decorator")}function Y(t){return t||Fn}function Q(t){return!0===t.deep?M:!1===t.deep?E:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:M;var n,i,r}function Z(t,n,i){return A(n)?zn.t(t,n):u(n)?void g(t,n,zn):Gt(t)?t:s(t)?ni.object(t,n,i):Array.isArray(t)?ni.array(t,n):v(t)?ni.map(t,n):l(t)?ni.set(t,n):"object"==typeof t&&null!==t?t:ni.box(t,n)}function tt(t,n,i,r){function e(){return nt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},fi&&(ci.value=t,Vn(e,"name",ci)),e}function nt(t,n,i,r,e){var u=it(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{rt(u)}}function it(t,n){var i=xi.trackingDerivation,r=!n||!i;jt();var e=xi.allowStateChanges;r&&(vt(),e=ut(!0));var u={S:r,M:i,N:e,V:dt(!0),R:!1,T:0,k:si++,L:oi};return oi=u.k,u}function rt(n){oi!==n.k&&t(30),oi=n.L,void 0!==n.A&&(xi.suppressReactionErrors=!0),ot(n.N),bt(n.V),Ot(),n.S&&lt(n.M),xi.suppressReactionErrors=!1}function et(t,n){var i=ut(t);try{return n()}finally{ot(i)}}function ut(t){var n=xi.allowStateChanges;return xi.allowStateChanges=t,n}function ot(t){xi.allowStateChanges=t}function st(t){return t instanceof yi}function ft(t){switch(t.C){case li.I:return!1;case li.K:case li.P:return!0;case li.D:for(var n=dt(!0),i=vt(),r=t.B,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(xi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return lt(i),bt(n),!0}if(t.C===li.P)return lt(i),bt(n),!0}}return pt(t),lt(i),bt(n),!1}}function ct(t,n,i){var r=dt(!0);pt(t),t.W=new Array(t.B.length+100),t.q=0,t.G=++xi.runId;var e,u=xi.trackingDerivation;if(xi.trackingDerivation=t,xi.inBatch++,!0===xi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new yi(t)}return xi.inBatch--,xi.trackingDerivation=u,function(t){for(var n=t.B,i=t.B=t.W,r=li.I,e=0,u=t.q,o=0;o<u;o++){var s=i[o];0===s.H&&(s.H=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.H&&mt(f,t),f.H=0}for(;e--;){var c=i[e];1===c.H&&(c.H=0,yt(c,t))}r!==li.I&&(t.C=r,t.X())}(t),bt(r),e}function at(t){var n=t.B;t.B=[];for(var i=n.length;i--;)mt(n[i],t);t.C=li.K}function ht(t){var n=vt();try{return t()}finally{lt(n)}}function vt(){var t=xi.trackingDerivation;return xi.trackingDerivation=null,t}function lt(t){xi.trackingDerivation=t}function dt(t){var n=xi.allowStateReads;return xi.allowStateReads=t,n}function bt(t){xi.allowStateReads=t}function pt(t){if(t.C!==li.I){t.C=li.I;for(var n=t.B,i=n.length;i--;)n[i].U=li.I}}function yt(t,n){t.F.add(n),t.U>n.C&&(t.U=n.C)}function mt(t,n){t.F.delete(n),0===t.F.size&&wt(t)}function wt(t){!1===t.$&&(t.$=!0,xi.pendingUnobservations.push(t))}function jt(){xi.inBatch++}function Ot(){if(0==--xi.inBatch){gt();for(var t=xi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.$=!1,0===i.F.size&&(i.J&&(i.J=!1,i.onBUO()),i instanceof bi&&i.Y())}xi.pendingUnobservations=[]}}function xt(t){var n=xi.trackingDerivation;return null!==n?(n.G!==t.Z&&(t.Z=n.G,n.W[n.q++]=t,!t.J&&xi.trackingContext&&(t.J=!0,t.onBO())),t.J):(0===t.F.size&&xi.inBatch>0&&wt(t),!1)}function _t(t){t.U!==li.P&&(t.U=li.P,t.F.forEach((function(t){t.C===li.I&&t.X(),t.C=li.P})))}function gt(){xi.inBatch>0||xi.isRunningReactions||gi(At)}function At(){xi.isRunningReactions=!0;for(var t=xi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].tt()}xi.isRunningReactions=!1}function St(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Mt(t){return function(n,i){return e(n)?tt(n.name||"<unnamed action>",n,t):e(i)?tt(n,i,t):A(i)?(t?Ei:Si).t(n,i):u(i)?g(n,i,t?Ei:Si):u(n)?_(N(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Et(t){return nt(0,!1,t,this,void 0)}function Nt(t){return e(t)&&!0===t.isMobxAction}function Vt(t,n){function i(){t(f)}var r,e,u,o,s;void 0===n&&(n=kn);var f,c=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var a=Rt(n),h=!1;f=new _i(c,(function(){h||(h=!0,a((function(){h=!1,f.nt||f.track(i)})))}),n.onError,n.requiresObservable)}else f=new _i(c,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(o=u.signal)&&o.aborted||f.it(),f.rt(null==(s=n)?void 0:s.signal)}function Rt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Ti}function Tt(t,n,i){return Lt("onBO",t,n,i)}function kt(t,n,i){return Lt("onBUO",t,n,i)}function Lt(t,n,i,r){var u="function"==typeof r?wn(n,i):wn(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Ct(t,n,i,r){var e=Dn(n);return xn((function(){var n=hn(t,r)[Wn];Pn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function It(t){var n,i={name:t.et};return t.B&&t.B.length>0&&(i.dependencies=(n=t.B,Array.from(new Set(n))).map(It)),i}function Kt(t){var n={name:t.et};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Kt)),n}function Pt(){this.message="FLOW_CANCELLED"}function Dt(t){e(t.cancel)&&t.cancel()}function Bt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Wt(t,n){if(void 0===n)return pi(t);if(!1===ln(t))return!1;if(!t[Wn].j.has(n))return!1;var i=wn(t,n);return pi(i)}function qt(t,n){return!!t&&(void 0!==n?!!ln(t)&&t[Wn].j.has(n):ln(t)||!!t[Wn]||Gn(t)||Ai(t)||pi(t))}function Gt(t){return qt(t)}function Ht(n){return ln(n)?n[Wn].ut():Yi(n)||ir(n)?Array.from(n.keys()):an(n)?n.map((function(t,n){return n})):void t(5)}function Xt(n,i){return ln(n)?n[Wn].ot(i):Yi(n)||ir(n)?n.has(i):an(n)?i>=0&&i<n.length:void t(10)}function Ut(n){if(ln(n))return n[Wn].st();t(38)}function Ft(t,n,i){return t.set(n,i),i}function zt(t,n){void 0===n&&(n=void 0),jt();try{return t.apply(n)}finally{Ot()}}function $t(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[Wn].nt){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=tt("When-effect",n),o=Vt((function(n){et(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Jt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=$t(t,i,m({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Yt(t){return t[Wn]}function Qt(t){return void 0!==t.ft&&t.ft.length>0}function Zt(t,n){var i=t.ft||(t.ft=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function tn(n,i){var r=vt();try{for(var e=[].concat(n.ft||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{lt(r)}}function nn(t){return void 0!==t.ct&&t.ct.length>0}function rn(t,n){var i=t.ct||(t.ct=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function en(t,n){var i=vt(),r=t.ct;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);lt(i)}}function un(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),xn((function(){var i=new Wi(r,n,e,!1);a(i.j,Wn,i);var u=new Proxy(i.j,Bi);return i.l=u,t&&t.length&&i.at(0,0,t),u}))}function on(t,n){"function"==typeof Array.prototype[t]&&(qi[t]=n(t))}function sn(t){return function(){var n=this[Wn];n.ht.reportObserved();var i=n.vt(n.j);return i[t].apply(i,arguments)}}function fn(t){return function(n,i){var r=this,e=this[Wn];return e.ht.reportObserved(),e.vt(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function cn(t){return function(){var n=this,i=this[Wn];i.ht.reportObserved();var r=i.vt(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function an(t){return o(t)&&Xi(t[Wn])}function hn(t,n){var i;if(b(t,Wn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new er(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:F(t):void 0}(n));return c(t,Wn,e),t}function vn(t){return rr[t]||(rr[t]={get:function(){return this[Wn].O(t)},set:function(n){return this[Wn].g(t,n)}})}function ln(t){return!!o(t)&&ur(t[Wn])}function dn(t,n,i){var r;null==(r=t.h[Bn])||delete r[i]}function bn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Wn].lt(t)},set:function(n){this[Wn].dt(t,n)}}}function pn(t){Vn(ar.prototype,""+t,bn(t))}function yn(t){if(t>fr){for(var n=fr;n<t+100;n++)pn(n);fr=t}}function mn(t,n,i){return new ar(t,n,i)}function wn(n,i){if("object"==typeof n&&null!==n){if(an(n))return void 0!==i&&t(23),n[Wn].ht;if(ir(n))return n.ht;if(Yi(n)){if(void 0===i)return n.bt;var r=n.pt.get(i)||n.yt.get(i);return r||t(25,i,On(n)),r}if(ln(n)){if(!i)return t(26);var u=n[Wn].j.get(i);return u||t(27,i,On(n)),u}if(Gn(n)||pi(n)||Ai(n))return n}else if(e(n)&&Ai(n[Wn]))return n[Wn];t(28)}function jn(n,i){return n||t(29),void 0!==i?jn(wn(n,i)):Gn(n)||pi(n)||Ai(n)||Yi(n)||ir(n)?n:n[Wn]?n[Wn]:void t(24,n)}function On(t,n){var i;if(void 0!==n)i=wn(t,n);else{if(Nt(t))return t.name;i=ln(t)||Yi(t)||ir(t)?jn(t):wn(t)}return i.et}function xn(t){var n=vt(),i=ut(!0);jt();try{return t()}finally{Ot(),ot(i),lt(n)}}function _n(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=hr.call(n);if(f!==hr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=gn(n),i=gn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(e(a)&&a instanceof a&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(u=u||[]).length;v--;)if(u[v]===n)return o[v]===i;if(u.push(n),o.push(i),c){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,u,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!b(i,l=d[v])||!t(n[l],i[l],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function gn(t){return an(t)?t.slice():v(t)||Yi(t)||l(t)||ir(t)?Array.from(t.entries()):t}function An(t){return t[Symbol.iterator]=Sn,t}function Sn(){return this}Object.defineProperty(exports,"__esModule",{value:!0});var Mn={},En=Object.assign,Nn=Object.getOwnPropertyDescriptor,Vn=Object.defineProperty,Rn=Object.prototype,Tn=[];Object.freeze(Tn);var kn={};Object.freeze(kn);var Ln="undefined"!=typeof Proxy,Cn=Object.toString(),In=function(){},Kn=void 0!==Object.getOwnPropertySymbols,Pn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Kn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Dn=Object.getOwnPropertyDescriptors||function(t){var n={};return Pn(t).forEach((function(i){n[i]=Nn(t,i)})),n},Bn=Symbol("mobx-stored-annotations"),Wn=Symbol("mobx administration"),qn=function(){function t(t){void 0===t&&(t="Atom"),this.et=void 0,this.$=!1,this.J=!1,this.F=new Set,this.H=0,this.Z=0,this.U=li.K,this.onBOL=void 0,this.onBUOL=void 0,this.et=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return xt(this)},n.reportChanged=function(){jt(),_t(this),Ot()},n.toString=function(){return this.et},t}(),Gn=h("Atom",qn),Hn={identity:function(t,n){return t===n},structural:function(t,n){return _n(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return _n(t,n,1)}},Xn=_({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),Un=F(),Fn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Fn);var zn=G("observable"),$n=G("observable.ref",{enhancer:E}),Jn=G("observable.shallow",{enhancer:function(t,n,i){return null==t||ln(t)||an(t)||Yi(t)||ir(t)?t:Array.isArray(t)?ni.array(t,{name:i,deep:!1}):s(t)?ni.object(t,void 0,{name:i,deep:!1}):v(t)?ni.map(t,{name:i,deep:!1}):l(t)?ni.set(t,{name:i,deep:!1}):void 0}}),Yn=G("observable.struct",{enhancer:function(t,n){return _n(t,n)?n:t}}),Qn=_(zn);En(Z,Qn);var Zn,ti,ni=En(Z,{box:function(t,n){var i=Y(n);return new hi(t,Q(i),i.name,!0,i.equals)},array:function(t,n){var i=Y(n);return(!1===xi.useProxies||!1===i.proxy?mn:un)(t,Q(i),i.name)},map:function(t,n){var i=Y(n);return new Ji(t,Q(i),i.name)},set:function(t,n){var i=Y(n);return new nr(t,Q(i),i.name)},object:function(t,n,r){return xn((function(){return Ct(!1===xi.useProxies||!1===(null==r?void 0:r.proxy)?hn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=hn(t,n))[Wn]).l)?e:r.l=new Proxy(t,Ki)}({},r),t,n)}))},ref:_($n),shallow:_(Jn),deep:Qn,struct:_(Yn)}),ii=D("computed"),ri=D("computed.struct",{equals:Hn.structural}),ei=function(t,n){if(A(n))return ii.t(t,n);if(u(n))return g(t,n,ii);if(s(t))return _(D("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new bi(i)};Object.assign(ei,ii),ei.struct=_(ri);var ui,oi=0,si=1,fi=null!=(Zn=null==(ti=Nn((function(){}),"name"))?void 0:ti.configurable)&&Zn,ci={value:"action",configurable:!0,writable:!1,enumerable:!1};ui=Symbol.toPrimitive;var ai,hi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Hn.default),(o=t.call(this,r)||this).enhancer=void 0,o.et=void 0,o.equals=void 0,o.wt=!1,o.ft=void 0,o.ct=void 0,o.jt=void 0,o.dehancer=void 0,o.enhancer=i,o.et=r,o.equals=u,o.jt=i(n,void 0,r),o}w(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.Ot(t))!==xi.UNCHANGED&&this.xt(t)},i.Ot=function(t){if(Qt(this)){var n=tn(this,{object:this,type:Di,newValue:t});if(!n)return xi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.et),this.equals(this.jt,t)?xi.UNCHANGED:t},i.xt=function(t){var n=this.jt;this.jt=t,this.reportChanged(),nn(this)&&en(this,{type:Di,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i._t=function(t){return Zt(this,t)},i.gt=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.et,object:this,type:Di,newValue:this.jt,oldValue:void 0}),rn(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.et+"["+this.jt+"]"},i.valueOf=function(){return d(this.get())},i[ui]=function(){return this.valueOf()},n}(qn),vi=h("ObservableValue",hi);ai=Symbol.toPrimitive;var li,di,bi=function(){function n(n){this.C=li.K,this.B=[],this.W=null,this.J=!1,this.$=!1,this.F=new Set,this.H=0,this.G=0,this.Z=0,this.U=li.I,this.q=0,this.jt=new yi(null),this.et=void 0,this.At=void 0,this.St=!1,this.Mt=!1,this.derivation=void 0,this.Et=void 0,this.Nt=di.NONE,this.Vt=void 0,this.Rt=void 0,this.Tt=void 0,this.kt=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.et=n.name||"ComputedValue",n.set&&(this.Et=tt("ComputedValue-setter",n.set)),this.Rt=n.equals||(n.compareStructural||n.struct?Hn.structural:Hn.default),this.Vt=n.context,this.Tt=n.requiresReaction,this.kt=!!n.keepAlive}var i=n.prototype;return i.X=function(){!function(t){t.U===li.I&&(t.U=li.D,t.F.forEach((function(t){t.C===li.I&&(t.C=li.D,t.X())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.St&&t(32,this.et,this.derivation),0!==xi.inBatch||0!==this.F.size||this.kt){if(xt(this),ft(this)){var n=xi.trackingContext;this.kt&&!n&&(xi.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==li.P&&(t.U=li.P,t.F.forEach((function(n){n.C===li.D?n.C=li.P:n.C===li.I&&(t.U=li.I)})))}(this),xi.trackingContext=n}}else ft(this)&&(this.Lt(),jt(),this.jt=this.Ct(!1),Ot());var i=this.jt;if(st(i))throw i.cause;return i},i.set=function(n){if(this.Et){this.Mt&&t(33,this.et),this.Mt=!0;try{this.Et.call(this.Vt,n)}finally{this.Mt=!1}}else t(34,this.et)},i.trackAndCompute=function(){var t=this.jt,n=this.C===li.K,i=this.Ct(!0),r=n||st(t)||st(i)||!this.Rt(t,i);return r&&(this.jt=i),r},i.Ct=function(t){this.St=!0;var n,i=ut(!1);if(t)n=ct(this,this.derivation,this.Vt);else if(!0===xi.disableErrorBoundaries)n=this.derivation.call(this.Vt);else try{n=this.derivation.call(this.Vt)}catch(t){n=new yi(t)}return ot(i),this.St=!1,n},i.Y=function(){this.kt||(at(this),this.jt=void 0)},i.gt=function(t,n){var i=this,r=!0,e=void 0;return Vt((function(){var u=i.get();if(!r||n){var o=vt();t({observableKind:"computed",debugObjectName:i.et,type:Di,object:i,newValue:u,oldValue:e}),lt(o)}r=!1,e=u}))},i.Lt=function(){},i.toString=function(){return this.et+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[ai]=function(){return this.valueOf()},n}(),pi=h("ComputedValue",bi);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.D=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(li||(li={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(di||(di={}));var yi=function(t){this.cause=void 0,this.cause=t},mi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],wi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ji=!0,Oi=!1,xi=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ji=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new wi).version&&(ji=!1),ji?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new wi):(setTimeout((function(){Oi||t(35)}),1),new wi)}(),_i=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.et=void 0,this.It=void 0,this.Kt=void 0,this.Pt=void 0,this.B=[],this.W=[],this.C=li.K,this.H=0,this.G=0,this.q=0,this.nt=!1,this.Dt=!1,this.Bt=!1,this.Wt=!1,this.Nt=di.NONE,this.et=t,this.It=n,this.Kt=i,this.Pt=r}var n=t.prototype;return n.X=function(){this.it()},n.it=function(){this.Dt||(this.Dt=!0,xi.pendingReactions.push(this),gt())},n.isScheduled=function(){return this.Dt},n.tt=function(){if(!this.nt){jt(),this.Dt=!1;var t=xi.trackingContext;if(xi.trackingContext=this,ft(this)){this.Bt=!0;try{this.It()}catch(t){this.qt(t)}}xi.trackingContext=t,Ot()}},n.track=function(t){if(!this.nt){jt(),this.Wt=!0;var n=xi.trackingContext;xi.trackingContext=this;var i=ct(this,t,void 0);xi.trackingContext=n,this.Wt=!1,this.Bt=!1,this.nt&&at(this),st(i)&&this.qt(i.cause),Ot()}},n.qt=function(t){var n=this;if(this.Kt)this.Kt(t,this);else{if(xi.disableErrorBoundaries)throw t;xi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),xi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.nt||(this.nt=!0,this.Wt||(jt(),at(this),Ot()))},n.rt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[Wn]=this,i},n.toString=function(){return"Reaction["+this.et+"]"},n.trace=function(){},t}(),gi=function(t){return t()},Ai=h("Reaction",_i),Si=N("action"),Mi=N("action.bound",{bound:!0}),Ei=N("autoAction",{autoAction:!0}),Ni=N("autoAction.bound",{autoAction:!0,bound:!0}),Vi=Mt(!1);Object.assign(Vi,Si);var Ri=Mt(!0);Object.assign(Ri,Ei),Vi.bound=_(Mi),Ri.bound=_(Ni);var Ti=function(t){return t()},ki=0;Pt.prototype=Object.create(Error.prototype);var Li=L("flow"),Ci=L("flow.bound",{bound:!0}),Ii=Object.assign((function(t,n){if(A(n))return Li.t(t,n);if(u(n))return g(t,n,Li);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++ki,s=Vi(r+" - runid: "+o+" - init",i).apply(n,u),f=void 0,c=new Promise((function(n,i){function u(t){var n;f=void 0;try{n=Vi(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Vi(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(u,c);t.then(a,i)}var h=0;t=i,u(void 0)}));return c.cancel=Vi(r+" - runid: "+o+" - cancel",(function(){try{f&&Dt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(In,In),Dt(i),t(new Pt)}catch(n){t(n)}})),c};return o.isMobXFlow=!0,o}),Li);Ii.bound=_(Ci);var Ki={has:function(t,n){return Yt(t).ot(n)},get:function(t,n){return Yt(t).lt(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=Yt(t).dt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=Yt(t).Gt(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Yt(t).v(n,i))||r},ownKeys:function(t){return Yt(t).st()},preventExtensions:function(){t(13)}},Pi=Symbol("mobx-keys"),Di="update",Bi={get:function(t,n){var i=t[Wn];return n===Wn?i:"length"===n?i.Ht():"string"!=typeof n||isNaN(n)?b(qi,n)?qi[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[Wn];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.dt(parseInt(n),i),!0},preventExtensions:function(){t(15)}},Wi=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Ft=void 0,this.ht=void 0,this.j=[],this.ft=void 0,this.ct=void 0,this.zt=void 0,this.dehancer=void 0,this.l=void 0,this.$t=0,this.Ut=i,this.Ft=r,this.ht=new qn(t),this.zt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.vt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i._t=function(t){return Zt(this,t)},i.gt=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),rn(this,t)},i.Ht=function(){return this.ht.reportObserved(),this.j.length},i.Xt=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.j.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.at(i,0,r)}else this.at(n,i-n)},i.Yt=function(n,i){n!==this.$t&&t(16),this.$t+=i,this.Ft&&i>0&&yn(n+i+1)},i.at=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Tn),Qt(this)){var u=tn(this,{object:this.l,type:"splice",index:t,removedCount:n,added:i});if(!u)return Tn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.zt(t,void 0)})),this.Ft){var o=i.length-n;this.Yt(e,o)}var s=this.Qt(t,n,i);return 0===n&&0===i.length||this.Zt(t,i,s),this.vt(s)},i.Qt=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.tn=function(t,n,i){var r=!this.Ut&&!1,e=nn(this),u=e||r?{observableKind:"array",object:this.l,type:Di,debugObjectName:this.ht.et,index:t,newValue:n,oldValue:i}:null;this.ht.reportChanged(),e&&en(this,u)},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=nn(this),u=e||r?{observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.ht.reportChanged(),e&&en(this,u)},i.lt=function(t){if(!(this.Ft&&t>=this.j.length))return this.ht.reportObserved(),this.Jt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.dt=function(n,i){var r=this.j;if(this.Ft&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(Qt(this)){var u=tn(this,{type:Di,object:this.l,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.zt(i,e))!==e&&(r[n]=i,this.tn(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.at(r.length,0,o)}},n}(),qi={clear:function(){return this.splice(0)},replace:function(t){var n=this[Wn];return n.at(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[Wn];switch(arguments.length){case 0:return[];case 1:return u.at(t);case 2:return u.at(t,n)}return u.at(t,n,r)},spliceWithArray:function(t,n,i){return this[Wn].at(t,n,i)},push:function(){for(var t=this[Wn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[Wn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Wn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(0,0,i),t.j.length},reverse:function(){return xi.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xi.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[Wn],i=n.vt(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};on("at",sn),on("concat",sn),on("flat",sn),on("includes",sn),on("indexOf",sn),on("join",sn),on("lastIndexOf",sn),on("slice",sn),on("toString",sn),on("toLocaleString",sn),on("toSorted",sn),on("toSpliced",sn),on("with",sn),on("every",fn),on("filter",fn),on("find",fn),on("findIndex",fn),on("findLast",fn),on("findLastIndex",fn),on("flatMap",fn),on("forEach",fn),on("map",fn),on("some",fn),on("toReversed",fn),on("reduce",cn),on("reduceRight",cn);var Gi,Hi,Xi=h("ObservableArrayAdministration",Wi),Ui={},Fi="add";Gi=Symbol.iterator,Hi=Symbol.toStringTag;var zi,$i,Ji=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableMap"),this.zt=void 0,this.et=void 0,this[Wn]=Ui,this.pt=void 0,this.yt=void 0,this.bt=void 0,this.ft=void 0,this.ct=void 0,this.dehancer=void 0,this.zt=i,this.et=r,e(Map)||t(18),xn((function(){u.bt=S("ObservableMap.keys()"),u.pt=new Map,u.yt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.ot=function(t){return this.pt.has(t)},i.has=function(t){var n=this;if(!xi.trackingDerivation)return this.ot(t);var i=this.yt.get(t);if(!i){var r=i=new hi(this.ot(t),E,"ObservableMap.key?",!1);this.yt.set(t,r),kt(r,(function(){return n.yt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ot(t);if(Qt(this)){var r=tn(this,{type:i?Di:Fi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.nn(t,n):this.in(t,n),this},i.delete=function(t){var n=this;if(Qt(this)&&!tn(this,{type:"delete",object:this,name:t}))return!1;if(this.ot(t)){var i=nn(this),r=i?{observableKind:"map",debugObjectName:this.et,type:"delete",object:this,oldValue:this.pt.get(t).jt,name:t}:null;return zt((function(){var i;n.bt.reportChanged(),null==(i=n.yt.get(t))||i.xt(!1),n.pt.get(t).xt(void 0),n.pt.delete(t)})),i&&en(this,r),!0}return!1},i.nn=function(t,n){var i=this.pt.get(t);if((n=i.Ot(n))!==xi.UNCHANGED){var r=nn(this),e=r?{observableKind:"map",debugObjectName:this.et,type:Di,object:this,oldValue:i.jt,name:t,newValue:n}:null;i.xt(n),r&&en(this,e)}},i.in=function(t,n){var i=this;zt((function(){var r,e=new hi(n,i.zt,"ObservableMap.key",!1);i.pt.set(t,e),n=e.jt,null==(r=i.yt.get(t))||r.xt(!0),i.bt.reportChanged()}));var r=nn(this);r&&en(this,r?{observableKind:"map",debugObjectName:this.et,type:Fi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Jt(this.pt.get(t).get()):this.Jt(void 0)},i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.pt.keys()},i.values=function(){var t=this,n=this.keys();return An({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return An({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Gi]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=x(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return Yi(n)&&(n=new Map(n)),zt((function(){s(n)?function(t){var n=Object.keys(t);if(!Kn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Rn.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):v(n)?(n.constructor!==Map&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;zt((function(){ht((function(){for(var n,i=x(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return zt((function(){for(var r,e=function(n){if(v(n)||Yi(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,f=x(i.pt.keys());!(r=f()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.pt.get(c);u.set(c,a)}}for(var h,l=x(e.entries());!(h=l()).done;){var d=h.value,b=d[0],p=d[1],y=i.pt.has(b);if(i.set(b,p),i.pt.has(b)){var m=i.pt.get(b);u.set(b,m),y||(o=!0)}}if(!o)if(i.pt.size!==u.size)i.bt.reportChanged();else for(var w=i.pt.keys(),j=u.keys(),O=w.next(),_=j.next();!O.done;){if(O.value!==_.value){i.bt.reportChanged();break}O=w.next(),_=j.next()}i.pt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.gt=function(t){return rn(this,t)},i._t=function(t){return Zt(this,t)},y(n,[{key:"size",get:function(){return this.bt.reportObserved(),this.pt.size}},{key:Hi,get:function(){return"Map"}}]),n}(),Yi=h("ObservableMap",Ji),Qi={};zi=Symbol.iterator,$i=Symbol.toStringTag;var Zi,tr,nr=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableSet"),this.et=void 0,this[Wn]=Qi,this.pt=new Set,this.ht=void 0,this.ct=void 0,this.ft=void 0,this.dehancer=void 0,this.zt=void 0,this.et=r,e(Set)||t(22),this.zt=function(t,n){return i(t,n,r)},xn((function(){u.ht=S(u.et),n&&u.replace(n)}))}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;zt((function(){ht((function(){for(var n,i=x(t.pt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=x(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(Qt(this)&&!tn(this,{type:Fi,object:this,newValue:t}))return this;if(!this.has(t)){zt((function(){n.pt.add(n.zt(t,void 0)),n.ht.reportChanged()}));var i=nn(this);i&&en(this,i?{observableKind:"set",debugObjectName:this.et,type:Fi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(Qt(this)&&!tn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=nn(this),r=i?{observableKind:"set",debugObjectName:this.et,type:"delete",object:this,oldValue:t}:null;return zt((function(){n.ht.reportChanged(),n.pt.delete(t)})),i&&en(this,r),!0}return!1},i.has=function(t){return this.ht.reportObserved(),this.pt.has(this.Jt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return An({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.ht.reportObserved();var t=this,n=0,i=Array.from(this.pt.values());return An({next:function(){return n<i.length?{value:t.Jt(i[n++]),done:!1}:{done:!0}}})},i.replace=function(n){var i=this;return ir(n)&&(n=new Set(n)),zt((function(){Array.isArray(n)||l(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.gt=function(t){return rn(this,t)},i._t=function(t){return Zt(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[zi]=function(){return this.values()},y(n,[{key:"size",get:function(){return this.ht.reportObserved(),this.pt.size}},{key:$i,get:function(){return"Set"}}]),n}(),ir=h("ObservableSet",nr),rr=Object.create(null),er=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=Un),this.h=void 0,this.j=void 0,this.et=void 0,this.rn=void 0,this.bt=void 0,this.ct=void 0,this.ft=void 0,this.l=void 0,this.p=void 0,this.en=void 0,this.un=void 0,this.h=t,this.j=n,this.et=i,this.rn=r,this.bt=new qn("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.O=function(t){return this.j.get(t).get()},i.g=function(t,n){var i=this.j.get(t);if(i instanceof bi)return i.set(n),!0;if(Qt(this)){var r=tn(this,{type:Di,object:this.l||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.Ot(n))!==xi.UNCHANGED){var e=nn(this),u=e?{type:Di,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,oldValue:i.jt,name:t,newValue:n}:null;i.xt(n),e&&en(this,u)}return!0},i.lt=function(t){return xi.trackingDerivation&&!b(this.h,t)&&this.ot(t),this.h[t]},i.dt=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.j.has(t)?this.g(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.rn,i)},i.ot=function(t){if(!xi.trackingDerivation)return t in this.h;this.un||(this.un=new Map);var n=this.un.get(t);return n||(n=new hi(t in this.h,E,"ObservableObject.key?",!1),this.un.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.rn),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[Bn])&&r[n])return;t(1,i.i,this.et+"."+n.toString())}for(var e=this.h;e&&e!==Rn;){var u=Nn(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}dn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.rn),!1===i)return this.v(t,n,r);var e=i.s(this,t,n,r);return e&&dn(this,0,t),e},i.v=function(t,n,i){void 0===i&&(i=!1);try{jt();var r=this.Gt(t);if(!r)return r;if(Qt(this)){var e=tn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=m({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Vn(this.h,t,n);this.on(t,n.value)}finally{Ot()}return!0},i._=function(t,n,i,r){void 0===r&&(r=!1);try{jt();var e=this.Gt(t);if(!e)return e;if(Qt(this)){var u=tn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n});if(!u)return null;n=u.newValue}var o=vn(t),s={configurable:!xi.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Vn(this.h,t,s);var f=new hi(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.on(t,f.jt)}finally{Ot()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{jt();var r=this.Gt(t);if(!r)return r;if(Qt(this)&&!tn(this,{object:this.l||this.h,name:t,type:Fi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var e=vn(t),u={configurable:!xi.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Vn(this.h,t,u);this.j.set(t,new bi(n)),this.on(t,void 0)}finally{Ot()}return!0},i.Gt=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(Qt(this)&&!tn(this,{object:this.l||this.h,name:t,type:"remove"}))return null;try{var i,r;jt();var e,u=nn(this),o=this.j.get(t),s=void 0;if(!o&&u&&(s=null==(e=Nn(this.h,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];o&&(this.j.delete(t),o instanceof hi&&(s=o.jt),_t(o)),this.bt.reportChanged(),null==(i=this.un)||null==(r=i.get(t))||r.set(t in this.h),u&&u&&en(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.et,oldValue:s,name:t})}finally{Ot()}return!0},i.gt=function(t){return rn(this,t)},i._t=function(t){return Zt(this,t)},i.on=function(t,n){var i,r,e=nn(this);e&&e&&en(this,e?{type:Fi,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,name:t,newValue:n}:null),null==(i=this.un)||null==(r=i.get(t))||r.set(!0),this.bt.reportChanged()},i.st=function(){return this.bt.reportObserved(),Pn(this.h)},i.ut=function(){return this.bt.reportObserved(),Object.keys(this.h)},n}(),ur=h("ObservableObjectAdministration",er),or=bn(0),sr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),fr=0,cr=function(){};Zi=cr,tr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Zi.prototype,tr):void 0!==Zi.prototype.__proto__?Zi.prototype.__proto__=tr:Zi.prototype=tr;var ar=function(t,n,i){function r(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,xn((function(){var t=new Wi(r,i,e,!0);t.l=j(u),a(j(u),Wn,t),n&&n.length&&u.spliceWithArray(0,0,n),sr&&Object.defineProperty(j(u),"0",or)})),u}w(r,t);var e=r.prototype;return e.concat=function(){this[Wn].ht.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return an(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return An({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},y(r,[{key:"length",get:function(){return this[Wn].Ht()},set:function(t){this[Wn].Xt(t)}},{key:n,get:function(){return"Array"}}]),r}(cr,Symbol.toStringTag,Symbol.iterator);Object.entries(qi).forEach((function(t){var n=t[0];"concat"!==n&&c(ar.prototype,n,t[1])})),yn(1e3);var hr=Rn.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:St,extras:{getDebugName:On},$mobx:Wn}),exports.$mobx=Wn,exports.FlowCancellationError=Pt,exports.ObservableMap=Ji,exports.ObservableSet=nr,exports.Reaction=_i,exports._allowStateChanges=et,exports._allowStateChangesInsideComputed=Et,exports._allowStateReadsEnd=bt,exports._allowStateReadsStart=dt,exports._autoAction=Ri,exports._endAction=rt,exports._getAdministration=jn,exports._getGlobalState=function(){return xi},exports._interceptReads=function(t,n,i){var r;return Yi(t)||an(t)||vi(t)?r=jn(t):ln(t)&&(r=jn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},exports._isComputingDerivation=function(){return null!==xi.trackingDerivation},exports._resetGlobalState=function(){var t=new wi;for(var n in t)-1===mi.indexOf(n)&&(xi[n]=t[n]);xi.allowStateChanges=!xi.enforceActions},exports._startAction=it,exports.action=Vi,exports.autorun=Vt,exports.comparer=Hn,exports.computed=ei,exports.configure=function(i){!0===i.isolateGlobalState&&function(){if((xi.pendingReactions.length||xi.inBatch||xi.isRunningReactions)&&t(36),Oi=!0,ji){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),xi=new wi}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&(xi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(xi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;xi.enforceActions=s,xi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&(xi[t]=!!i[t])})),xi.allowStateReads=!xi.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=gi,gi=function(t){return r((function(){return e(t)}))})},exports.createAtom=S,exports.defineProperty=function(n,i,r){if(ln(n))return n[Wn].v(i,r);t(39)},exports.entries=function(n){return ln(n)?Ht(n).map((function(t){return[t,n[t]]})):Yi(n)?Ht(n).map((function(t){return[t,n.get(t)]})):ir(n)?Array.from(n.entries()):an(n)?n.map((function(t,n){return[n,t]})):void t(7)},exports.extendObservable=Ct,exports.flow=Ii,exports.flowResult=function(t){return t},exports.get=function(n,i){if(Xt(n,i))return ln(n)?n[Wn].lt(i):Yi(n)?n.get(i):an(n)?n[i]:void t(11)},exports.getAtom=wn,exports.getDebugName=On,exports.getDependencyTree=function(t,n){return It(wn(t,n))},exports.getObserverTree=function(t,n){return Kt(wn(t,n))},exports.has=Xt,exports.intercept=function(t,n,i){return e(i)?function(t,n,i){return jn(t,n)._t(i)}(t,n,i):function(t,n){return jn(t)._t(n)}(t,n)},exports.isAction=Nt,exports.isBoxedObservable=vi,exports.isComputed=function(t){return Wt(t)},exports.isComputedProp=function(t,n){return Wt(t,n)},exports.isFlow=Bt,exports.isFlowCancellationError=function(t){return t instanceof Pt},exports.isObservable=Gt,exports.isObservableArray=an,exports.isObservableMap=Yi,exports.isObservableObject=ln,exports.isObservableProp=function(t,n){return qt(t,n)},exports.isObservableSet=ir,exports.keys=Ht,exports.makeAutoObservable=function(t,n,i){return s(t)?Ct(t,t,n,i):(xn((function(){var r=hn(t,i)[Wn];if(!t[Pi]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Pn(t),Pn(e)));u.delete("constructor"),u.delete(Wn),c(e,Pi,u)}t[Pi].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},exports.makeObservable=function(t,n,i){return xn((function(){var r=hn(t,i)[Wn];null!=n||(n=function(t){return b(t,Bn)||c(t,Bn,m({},t[Bn])),t[Bn]}(t)),Pn(n).forEach((function(t){return r.o(t,n[t])}))})),t},exports.observable=ni,exports.observe=function(t,n,i,r){return e(i)?function(t,n,i,r){return jn(t,n).gt(i,r)}(t,n,i,r):function(t,n,i){return jn(t).gt(n,i)}(t,n,i)},exports.onBecomeObserved=Tt,exports.onBecomeUnobserved=kt,exports.onReactionError=function(t){return xi.globalReactionErrorHandlers.push(t),function(){var n=xi.globalReactionErrorHandlers.indexOf(t);n>=0&&xi.globalReactionErrorHandlers.splice(n,1)}},exports.override=Xn,exports.ownKeys=Ut,exports.reaction=function(t,n,i){function r(){if(y=!1,!w.nt){var n=!1;w.track((function(){var i=et(!1,(function(){return t(w)}));n=p||!m(a,i),h=a,a=i})),(p&&i.fireImmediately||!p&&n)&&l(a,h,w),p=!1}}var e,u,o,s;void 0===i&&(i=kn);var f,c,a,h,v=null!=(e=i.name)?e:"Reaction",l=Vi(v,i.onError?(f=i.onError,c=n,function(){try{return c.apply(this,arguments)}catch(t){f.call(this,t)}}):n),d=!i.scheduler&&!i.delay,b=Rt(i),p=!0,y=!1,m=i.compareStructural?Hn.structural:i.equals||Hn.default,w=new _i(v,(function(){p||d?r():y||(y=!0,b(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(o=u.signal)&&o.aborted||w.it(),w.rt(null==(s=i)?void 0:s.signal)},exports.remove=function(n,i){ln(n)?n[Wn].Gt(i):Yi(n)||ir(n)?n.delete(i):an(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)},exports.runInAction=Et,exports.set=function n(i,r,e){if(2!==arguments.length||ir(i))ln(i)?i[Wn].dt(r,e):Yi(i)?i.set(r,e):ir(i)?i.add(r):an(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&t("Invalid index: '"+r+"'"),jt(),r>=i.length&&(i.length=r+1),i[r]=e,Ot()):t(8);else{jt();var u=r;try{for(var o in u)n(i,o,u[o])}finally{Ot()}}},exports.spy=St,exports.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Gt(n))return n;if(vi(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(an(n)){var r=Ft(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(ir(n)){var e=Ft(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Yi(n)){var u=Ft(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=Ft(i,n,{});return Ut(n).forEach((function(r){Rn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},exports.trace=function(){},exports.transaction=zt,exports.untracked=ht,exports.values=function(n){return ln(n)?Ht(n).map((function(t){return n[t]})):Yi(n)?Ht(n).map((function(t){return n.get(t)})):ir(n)?Array.from(n.values()):an(n)?n.slice():void t(6)},exports.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Jt(t,n):$t(t,n,i||{})};
function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Mn}function i(){Ln||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===Cn}function f(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function c(t,n,i){Vn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function a(t,n,i){Vn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function v(t){return t instanceof Map}function l(t){return t instanceof Set}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return Rn.hasOwnProperty.call(t,n)}function p(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,"symbol"==typeof(e=function(t){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?e:String(e),r)}var e}function y(t,n,i){return n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function w(t,n){var i,r;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,i=t,r=n,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(i,r)}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function x(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return O(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t){return Object.assign((function(n,i){if(A(i))return t.t(n,i);g(n,i,t)}),t)}function g(t,n,i){b(t,Bn)||c(t,Bn,m({},t[Bn])),function(t){return"override"===t.i}(i)||(t[Bn][n]=i)}function A(t){return"object"==typeof t&&"string"==typeof t.kind}function S(t,n,i){void 0===n&&(n=In),void 0===i&&(i=In);var r=new qn(t);return n!==In&&Tt(r,n),i!==In&&kt(r,i),r}function M(t,n,i){return Gt(t)?t:Array.isArray(t)?ni.array(t,{name:i}):s(t)?ni.object(t,void 0,{name:i}):v(t)?ni.map(t,{name:i}):l(t)?ni.set(t,{name:i}):"function"!=typeof t||Nt(t)||Bt(t)?t:f(t)?Ii(t):Ri(i,t)}function E(t){return t}function N(t,n){return{i:t,u:n,o:V,s:R,t:T}}function V(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Nt(i.value))return 1;var u=k(t,this,n,i,!1);return Vn(r,n,u),2}function R(t,n,i,r){var e=k(t,this,n,i);return t.v(n,e,r)}function T(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,v;if("method"==r)return Nt(n)||(f=n,n=tt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(v=o.u)?void 0:v.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){g(this,e,o)}))}function k(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=xi.safeDescriptors);var v,l=r.value;return null!=(u=n.u)&&u.bound&&(l=l.bind(null!=(v=t.l)?v:t.h)),{value:tt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.l)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function L(t,n){return{i:t,u:n,o:C,s:I,t:K}}function C(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!Bt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Bt(i.value))return 1;var u=P(t,0,0,i,!1,!1);return Vn(r,n,u),2}function I(t,n,i,r){var e,u=P(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.v(n,u,r)}function K(t,n){var i,r=n.name,e=n.addInitializer;return Bt(t)||(t=Ii(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function P(t,n,i,r,e,u){void 0===u&&(u=xi.safeDescriptors);var o,s=r.value;return Bt(s)||(s=Ii(s)),e&&((s=s.bind(null!=(o=t.l)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function D(t,n){return{i:t,u:n,o:B,s:W,t:q}}function B(t,n,i){return null===this.s(t,n,i,!1)?0:1}function W(t,n,i,r){return t.m(n,m({},this.u,{get:i.get,set:i.set}),r)}function q(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=hn(this)[Wn],e=m({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new bi(e))})),function(){return this[Wn].O(r)}}function G(t,n){return{i:t,u:n,o:H,s:X,t:U}}function H(t,n,i){return null===this.s(t,n,i,!1)?0:1}function X(t,n,i,r){var e,u;return t._(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:M,r)}function U(t,n){function i(t,n){var i,e,s=hn(t)[Wn],f=new hi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:M,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[Wn].O(u)},set:function(t){return o.has(this)||i(this,t),this[Wn].g(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function F(t){return{i:"true",u:t,o:z,s:$,t:J}}function z(t,n,i,r){var e,u,o,s;if(i.get)return ei.o(t,n,i,r);if(i.set){var c=tt(n.toString(),i.set);return r===t.h?null===t.v(n,{configurable:!xi.safeDescriptors||t.p,set:c})?0:2:(Vn(r,n,{configurable:!0,set:c}),2)}if(r!==t.h&&"function"==typeof i.value)return f(i.value)?(null!=(s=this.u)&&s.autoBind?Ii.bound:Ii).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ri.bound:Ri).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ni.ref:ni;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.l)?a:t.h)),h.o(t,n,i,r)}function $(t,n,i,r){var e,u,o;return i.get?ei.s(t,n,i,r):i.set?t.v(n,{configurable:!xi.safeDescriptors||t.p,set:tt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.l)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ni.ref:ni).s(t,n,i,r))}function J(){t("'"+this.i+"' cannot be used as a decorator")}function Y(t){return t||Fn}function Q(t){return!0===t.deep?M:!1===t.deep?E:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:M;var n,i,r}function Z(t,n,i){return A(n)?zn.t(t,n):u(n)?void g(t,n,zn):Gt(t)?t:s(t)?ni.object(t,n,i):Array.isArray(t)?ni.array(t,n):v(t)?ni.map(t,n):l(t)?ni.set(t,n):"object"==typeof t&&null!==t?t:ni.box(t,n)}function tt(t,n,i,r){function e(){return nt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},fi&&(ci.value=t,Vn(e,"name",ci)),e}function nt(t,n,i,r,e){var u=it(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{rt(u)}}function it(t,n){var i=xi.trackingDerivation,r=!n||!i;jt();var e=xi.allowStateChanges;r&&(vt(),e=ut(!0));var u={S:r,M:i,N:e,V:dt(!0),R:!1,T:0,k:si++,L:oi};return oi=u.k,u}function rt(n){oi!==n.k&&t(30),oi=n.L,void 0!==n.A&&(xi.suppressReactionErrors=!0),ot(n.N),bt(n.V),Ot(),n.S&&lt(n.M),xi.suppressReactionErrors=!1}function et(t,n){var i=ut(t);try{return n()}finally{ot(i)}}function ut(t){var n=xi.allowStateChanges;return xi.allowStateChanges=t,n}function ot(t){xi.allowStateChanges=t}function st(t){return t instanceof yi}function ft(t){switch(t.C){case li.I:return!1;case li.K:case li.P:return!0;case li.D:for(var n=dt(!0),i=vt(),r=t.B,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(xi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return lt(i),bt(n),!0}if(t.C===li.P)return lt(i),bt(n),!0}}return pt(t),lt(i),bt(n),!1}}function ct(t,n,i){var r=dt(!0);pt(t),t.W=new Array(0===t.q?100:t.B.length),t.G=0,t.q=++xi.runId;var e,u=xi.trackingDerivation;if(xi.trackingDerivation=t,xi.inBatch++,!0===xi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new yi(t)}return xi.inBatch--,xi.trackingDerivation=u,function(t){for(var n=t.B,i=t.B=t.W,r=li.I,e=0,u=t.G,o=0;o<u;o++){var s=i[o];0===s.H&&(s.H=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.H&&mt(f,t),f.H=0}for(;e--;){var c=i[e];1===c.H&&(c.H=0,yt(c,t))}r!==li.I&&(t.C=r,t.X())}(t),bt(r),e}function at(t){var n=t.B;t.B=[];for(var i=n.length;i--;)mt(n[i],t);t.C=li.K}function ht(t){var n=vt();try{return t()}finally{lt(n)}}function vt(){var t=xi.trackingDerivation;return xi.trackingDerivation=null,t}function lt(t){xi.trackingDerivation=t}function dt(t){var n=xi.allowStateReads;return xi.allowStateReads=t,n}function bt(t){xi.allowStateReads=t}function pt(t){if(t.C!==li.I){t.C=li.I;for(var n=t.B,i=n.length;i--;)n[i].U=li.I}}function yt(t,n){t.F.add(n),t.U>n.C&&(t.U=n.C)}function mt(t,n){t.F.delete(n),0===t.F.size&&wt(t)}function wt(t){!1===t.$&&(t.$=!0,xi.pendingUnobservations.push(t))}function jt(){xi.inBatch++}function Ot(){if(0==--xi.inBatch){gt();for(var t=xi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.$=!1,0===i.F.size&&(i.J&&(i.J=!1,i.onBUO()),i instanceof bi&&i.Y())}xi.pendingUnobservations=[]}}function xt(t){var n=xi.trackingDerivation;return null!==n?(n.q!==t.Z&&(t.Z=n.q,n.W[n.G++]=t,!t.J&&xi.trackingContext&&(t.J=!0,t.onBO())),t.J):(0===t.F.size&&xi.inBatch>0&&wt(t),!1)}function _t(t){t.U!==li.P&&(t.U=li.P,t.F.forEach((function(t){t.C===li.I&&t.X(),t.C=li.P})))}function gt(){xi.inBatch>0||xi.isRunningReactions||gi(At)}function At(){xi.isRunningReactions=!0;for(var t=xi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].tt()}xi.isRunningReactions=!1}function St(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Mt(t){return function(n,i){return e(n)?tt(n.name||"<unnamed action>",n,t):e(i)?tt(n,i,t):A(i)?(t?Ei:Si).t(n,i):u(i)?g(n,i,t?Ei:Si):u(n)?_(N(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Et(t){return nt(0,!1,t,this,void 0)}function Nt(t){return e(t)&&!0===t.isMobxAction}function Vt(t,n){function i(){t(f)}var r,e,u,o,s;void 0===n&&(n=kn);var f,c=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var a=Rt(n),h=!1;f=new _i(c,(function(){h||(h=!0,a((function(){h=!1,f.nt||f.track(i)})))}),n.onError,n.requiresObservable)}else f=new _i(c,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(o=u.signal)&&o.aborted||f.it(),f.rt(null==(s=n)?void 0:s.signal)}function Rt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Ti}function Tt(t,n,i){return Lt("onBO",t,n,i)}function kt(t,n,i){return Lt("onBUO",t,n,i)}function Lt(t,n,i,r){var u="function"==typeof r?wn(n,i):wn(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Ct(t,n,i,r){var e=Dn(n);return xn((function(){var n=hn(t,r)[Wn];Pn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function It(t){var n,i={name:t.et};return t.B&&t.B.length>0&&(i.dependencies=(n=t.B,Array.from(new Set(n))).map(It)),i}function Kt(t){var n={name:t.et};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Kt)),n}function Pt(){this.message="FLOW_CANCELLED"}function Dt(t){e(t.cancel)&&t.cancel()}function Bt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Wt(t,n){if(void 0===n)return pi(t);if(!1===ln(t))return!1;if(!t[Wn].j.has(n))return!1;var i=wn(t,n);return pi(i)}function qt(t,n){return!!t&&(void 0!==n?!!ln(t)&&t[Wn].j.has(n):ln(t)||!!t[Wn]||Gn(t)||Ai(t)||pi(t))}function Gt(t){return qt(t)}function Ht(n){return ln(n)?n[Wn].ut():Yi(n)||ir(n)?Array.from(n.keys()):an(n)?n.map((function(t,n){return n})):void t(5)}function Xt(n,i){return ln(n)?n[Wn].ot(i):Yi(n)||ir(n)?n.has(i):an(n)?i>=0&&i<n.length:void t(10)}function Ut(n){if(ln(n))return n[Wn].st();t(38)}function Ft(t,n,i){return t.set(n,i),i}function zt(t,n){void 0===n&&(n=void 0),jt();try{return t.apply(n)}finally{Ot()}}function $t(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[Wn].nt){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=tt("When-effect",n),o=Vt((function(n){et(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Jt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=$t(t,i,m({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Yt(t){return t[Wn]}function Qt(t){return void 0!==t.ft&&t.ft.length>0}function Zt(t,n){var i=t.ft||(t.ft=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function tn(n,i){var r=vt();try{for(var e=[].concat(n.ft||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{lt(r)}}function nn(t){return void 0!==t.ct&&t.ct.length>0}function rn(t,n){var i=t.ct||(t.ct=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function en(t,n){var i=vt(),r=t.ct;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);lt(i)}}function un(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),xn((function(){var i=new Wi(r,n,e,!1);a(i.j,Wn,i);var u=new Proxy(i.j,Bi);return i.l=u,t&&t.length&&i.at(0,0,t),u}))}function on(t,n){"function"==typeof Array.prototype[t]&&(qi[t]=n(t))}function sn(t){return function(){var n=this[Wn];n.ht.reportObserved();var i=n.vt(n.j);return i[t].apply(i,arguments)}}function fn(t){return function(n,i){var r=this,e=this[Wn];return e.ht.reportObserved(),e.vt(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function cn(t){return function(){var n=this,i=this[Wn];i.ht.reportObserved();var r=i.vt(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function an(t){return o(t)&&Xi(t[Wn])}function hn(t,n){var i;if(b(t,Wn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new er(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:F(t):void 0}(n));return c(t,Wn,e),t}function vn(t){return rr[t]||(rr[t]={get:function(){return this[Wn].O(t)},set:function(n){return this[Wn].g(t,n)}})}function ln(t){return!!o(t)&&ur(t[Wn])}function dn(t,n,i){var r;null==(r=t.h[Bn])||delete r[i]}function bn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Wn].lt(t)},set:function(n){this[Wn].dt(t,n)}}}function pn(t){Vn(ar.prototype,""+t,bn(t))}function yn(t){if(t>fr){for(var n=fr;n<t+100;n++)pn(n);fr=t}}function mn(t,n,i){return new ar(t,n,i)}function wn(n,i){if("object"==typeof n&&null!==n){if(an(n))return void 0!==i&&t(23),n[Wn].ht;if(ir(n))return n.ht;if(Yi(n)){if(void 0===i)return n.bt;var r=n.pt.get(i)||n.yt.get(i);return r||t(25,i,On(n)),r}if(ln(n)){if(!i)return t(26);var u=n[Wn].j.get(i);return u||t(27,i,On(n)),u}if(Gn(n)||pi(n)||Ai(n))return n}else if(e(n)&&Ai(n[Wn]))return n[Wn];t(28)}function jn(n,i){return n||t(29),void 0!==i?jn(wn(n,i)):Gn(n)||pi(n)||Ai(n)||Yi(n)||ir(n)?n:n[Wn]?n[Wn]:void t(24,n)}function On(t,n){var i;if(void 0!==n)i=wn(t,n);else{if(Nt(t))return t.name;i=ln(t)||Yi(t)||ir(t)?jn(t):wn(t)}return i.et}function xn(t){var n=vt(),i=ut(!0);jt();try{return t()}finally{Ot(),ot(i),lt(n)}}function _n(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=hr.call(n);if(f!==hr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=gn(n),i=gn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(e(a)&&a instanceof a&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(u=u||[]).length;v--;)if(u[v]===n)return o[v]===i;if(u.push(n),o.push(i),c){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,u,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!b(i,l=d[v])||!t(n[l],i[l],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function gn(t){return an(t)?t.slice():v(t)||Yi(t)||l(t)||ir(t)?Array.from(t.entries()):t}function An(t){return t[Symbol.iterator]=Sn,t}function Sn(){return this}Object.defineProperty(exports,"__esModule",{value:!0});var Mn={},En=Object.assign,Nn=Object.getOwnPropertyDescriptor,Vn=Object.defineProperty,Rn=Object.prototype,Tn=[];Object.freeze(Tn);var kn={};Object.freeze(kn);var Ln="undefined"!=typeof Proxy,Cn=Object.toString(),In=function(){},Kn=void 0!==Object.getOwnPropertySymbols,Pn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Kn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Dn=Object.getOwnPropertyDescriptors||function(t){var n={};return Pn(t).forEach((function(i){n[i]=Nn(t,i)})),n},Bn=Symbol("mobx-stored-annotations"),Wn=Symbol("mobx administration"),qn=function(){function t(t){void 0===t&&(t="Atom"),this.et=void 0,this.$=!1,this.J=!1,this.F=new Set,this.H=0,this.Z=0,this.U=li.K,this.onBOL=void 0,this.onBUOL=void 0,this.et=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return xt(this)},n.reportChanged=function(){jt(),_t(this),Ot()},n.toString=function(){return this.et},t}(),Gn=h("Atom",qn),Hn={identity:function(t,n){return t===n},structural:function(t,n){return _n(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return _n(t,n,1)}},Xn=_({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),Un=F(),Fn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Fn);var zn=G("observable"),$n=G("observable.ref",{enhancer:E}),Jn=G("observable.shallow",{enhancer:function(t,n,i){return null==t||ln(t)||an(t)||Yi(t)||ir(t)?t:Array.isArray(t)?ni.array(t,{name:i,deep:!1}):s(t)?ni.object(t,void 0,{name:i,deep:!1}):v(t)?ni.map(t,{name:i,deep:!1}):l(t)?ni.set(t,{name:i,deep:!1}):void 0}}),Yn=G("observable.struct",{enhancer:function(t,n){return _n(t,n)?n:t}}),Qn=_(zn);En(Z,Qn);var Zn,ti,ni=En(Z,{box:function(t,n){var i=Y(n);return new hi(t,Q(i),i.name,!0,i.equals)},array:function(t,n){var i=Y(n);return(!1===xi.useProxies||!1===i.proxy?mn:un)(t,Q(i),i.name)},map:function(t,n){var i=Y(n);return new Ji(t,Q(i),i.name)},set:function(t,n){var i=Y(n);return new nr(t,Q(i),i.name)},object:function(t,n,r){return xn((function(){return Ct(!1===xi.useProxies||!1===(null==r?void 0:r.proxy)?hn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=hn(t,n))[Wn]).l)?e:r.l=new Proxy(t,Ki)}({},r),t,n)}))},ref:_($n),shallow:_(Jn),deep:Qn,struct:_(Yn)}),ii=D("computed"),ri=D("computed.struct",{equals:Hn.structural}),ei=function(t,n){if(A(n))return ii.t(t,n);if(u(n))return g(t,n,ii);if(s(t))return _(D("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new bi(i)};Object.assign(ei,ii),ei.struct=_(ri);var ui,oi=0,si=1,fi=null!=(Zn=null==(ti=Nn((function(){}),"name"))?void 0:ti.configurable)&&Zn,ci={value:"action",configurable:!0,writable:!1,enumerable:!1};ui=Symbol.toPrimitive;var ai,hi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Hn.default),(o=t.call(this,r)||this).enhancer=void 0,o.et=void 0,o.equals=void 0,o.wt=!1,o.ft=void 0,o.ct=void 0,o.jt=void 0,o.dehancer=void 0,o.enhancer=i,o.et=r,o.equals=u,o.jt=i(n,void 0,r),o}w(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.Ot(t))!==xi.UNCHANGED&&this.xt(t)},i.Ot=function(t){if(Qt(this)){var n=tn(this,{object:this,type:Di,newValue:t});if(!n)return xi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.et),this.equals(this.jt,t)?xi.UNCHANGED:t},i.xt=function(t){var n=this.jt;this.jt=t,this.reportChanged(),nn(this)&&en(this,{type:Di,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i._t=function(t){return Zt(this,t)},i.gt=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.et,object:this,type:Di,newValue:this.jt,oldValue:void 0}),rn(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.et+"["+this.jt+"]"},i.valueOf=function(){return d(this.get())},i[ui]=function(){return this.valueOf()},n}(qn),vi=h("ObservableValue",hi);ai=Symbol.toPrimitive;var li,di,bi=function(){function n(n){this.C=li.K,this.B=[],this.W=null,this.J=!1,this.$=!1,this.F=new Set,this.H=0,this.q=0,this.Z=0,this.U=li.I,this.G=0,this.jt=new yi(null),this.et=void 0,this.At=void 0,this.St=!1,this.Mt=!1,this.derivation=void 0,this.Et=void 0,this.Nt=di.NONE,this.Vt=void 0,this.Rt=void 0,this.Tt=void 0,this.kt=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.et=n.name||"ComputedValue",n.set&&(this.Et=tt("ComputedValue-setter",n.set)),this.Rt=n.equals||(n.compareStructural||n.struct?Hn.structural:Hn.default),this.Vt=n.context,this.Tt=n.requiresReaction,this.kt=!!n.keepAlive}var i=n.prototype;return i.X=function(){!function(t){t.U===li.I&&(t.U=li.D,t.F.forEach((function(t){t.C===li.I&&(t.C=li.D,t.X())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.St&&t(32,this.et,this.derivation),0!==xi.inBatch||0!==this.F.size||this.kt){if(xt(this),ft(this)){var n=xi.trackingContext;this.kt&&!n&&(xi.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==li.P&&(t.U=li.P,t.F.forEach((function(n){n.C===li.D?n.C=li.P:n.C===li.I&&(t.U=li.I)})))}(this),xi.trackingContext=n}}else ft(this)&&(this.Lt(),jt(),this.jt=this.Ct(!1),Ot());var i=this.jt;if(st(i))throw i.cause;return i},i.set=function(n){if(this.Et){this.Mt&&t(33,this.et),this.Mt=!0;try{this.Et.call(this.Vt,n)}finally{this.Mt=!1}}else t(34,this.et)},i.trackAndCompute=function(){var t=this.jt,n=this.C===li.K,i=this.Ct(!0),r=n||st(t)||st(i)||!this.Rt(t,i);return r&&(this.jt=i),r},i.Ct=function(t){this.St=!0;var n,i=ut(!1);if(t)n=ct(this,this.derivation,this.Vt);else if(!0===xi.disableErrorBoundaries)n=this.derivation.call(this.Vt);else try{n=this.derivation.call(this.Vt)}catch(t){n=new yi(t)}return ot(i),this.St=!1,n},i.Y=function(){this.kt||(at(this),this.jt=void 0)},i.gt=function(t,n){var i=this,r=!0,e=void 0;return Vt((function(){var u=i.get();if(!r||n){var o=vt();t({observableKind:"computed",debugObjectName:i.et,type:Di,object:i,newValue:u,oldValue:e}),lt(o)}r=!1,e=u}))},i.Lt=function(){},i.toString=function(){return this.et+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[ai]=function(){return this.valueOf()},n}(),pi=h("ComputedValue",bi);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.D=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(li||(li={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(di||(di={}));var yi=function(t){this.cause=void 0,this.cause=t},mi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],wi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ji=!0,Oi=!1,xi=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ji=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new wi).version&&(ji=!1),ji?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new wi):(setTimeout((function(){Oi||t(35)}),1),new wi)}(),_i=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.et=void 0,this.It=void 0,this.Kt=void 0,this.Pt=void 0,this.B=[],this.W=[],this.C=li.K,this.H=0,this.q=0,this.G=0,this.nt=!1,this.Dt=!1,this.Bt=!1,this.Wt=!1,this.Nt=di.NONE,this.et=t,this.It=n,this.Kt=i,this.Pt=r}var n=t.prototype;return n.X=function(){this.it()},n.it=function(){this.Dt||(this.Dt=!0,xi.pendingReactions.push(this),gt())},n.isScheduled=function(){return this.Dt},n.tt=function(){if(!this.nt){jt(),this.Dt=!1;var t=xi.trackingContext;if(xi.trackingContext=this,ft(this)){this.Bt=!0;try{this.It()}catch(t){this.qt(t)}}xi.trackingContext=t,Ot()}},n.track=function(t){if(!this.nt){jt(),this.Wt=!0;var n=xi.trackingContext;xi.trackingContext=this;var i=ct(this,t,void 0);xi.trackingContext=n,this.Wt=!1,this.Bt=!1,this.nt&&at(this),st(i)&&this.qt(i.cause),Ot()}},n.qt=function(t){var n=this;if(this.Kt)this.Kt(t,this);else{if(xi.disableErrorBoundaries)throw t;xi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),xi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.nt||(this.nt=!0,this.Wt||(jt(),at(this),Ot()))},n.rt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[Wn]=this,i},n.toString=function(){return"Reaction["+this.et+"]"},n.trace=function(){},t}(),gi=function(t){return t()},Ai=h("Reaction",_i),Si=N("action"),Mi=N("action.bound",{bound:!0}),Ei=N("autoAction",{autoAction:!0}),Ni=N("autoAction.bound",{autoAction:!0,bound:!0}),Vi=Mt(!1);Object.assign(Vi,Si);var Ri=Mt(!0);Object.assign(Ri,Ei),Vi.bound=_(Mi),Ri.bound=_(Ni);var Ti=function(t){return t()},ki=0;Pt.prototype=Object.create(Error.prototype);var Li=L("flow"),Ci=L("flow.bound",{bound:!0}),Ii=Object.assign((function(t,n){if(A(n))return Li.t(t,n);if(u(n))return g(t,n,Li);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++ki,s=Vi(r+" - runid: "+o+" - init",i).apply(n,u),f=void 0,c=new Promise((function(n,i){function u(t){var n;f=void 0;try{n=Vi(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Vi(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(u,c);t.then(a,i)}var h=0;t=i,u(void 0)}));return c.cancel=Vi(r+" - runid: "+o+" - cancel",(function(){try{f&&Dt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(In,In),Dt(i),t(new Pt)}catch(n){t(n)}})),c};return o.isMobXFlow=!0,o}),Li);Ii.bound=_(Ci);var Ki={has:function(t,n){return Yt(t).ot(n)},get:function(t,n){return Yt(t).lt(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=Yt(t).dt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=Yt(t).Gt(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Yt(t).v(n,i))||r},ownKeys:function(t){return Yt(t).st()},preventExtensions:function(){t(13)}},Pi=Symbol("mobx-keys"),Di="update",Bi={get:function(t,n){var i=t[Wn];return n===Wn?i:"length"===n?i.Ht():"string"!=typeof n||isNaN(n)?b(qi,n)?qi[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[Wn];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.dt(parseInt(n),i),!0},preventExtensions:function(){t(15)}},Wi=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Ft=void 0,this.ht=void 0,this.j=[],this.ft=void 0,this.ct=void 0,this.zt=void 0,this.dehancer=void 0,this.l=void 0,this.$t=0,this.Ut=i,this.Ft=r,this.ht=new qn(t),this.zt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.vt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i._t=function(t){return Zt(this,t)},i.gt=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),rn(this,t)},i.Ht=function(){return this.ht.reportObserved(),this.j.length},i.Xt=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.j.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.at(i,0,r)}else this.at(n,i-n)},i.Yt=function(n,i){n!==this.$t&&t(16),this.$t+=i,this.Ft&&i>0&&yn(n+i+1)},i.at=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Tn),Qt(this)){var u=tn(this,{object:this.l,type:"splice",index:t,removedCount:n,added:i});if(!u)return Tn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.zt(t,void 0)})),this.Ft){var o=i.length-n;this.Yt(e,o)}var s=this.Qt(t,n,i);return 0===n&&0===i.length||this.Zt(t,i,s),this.vt(s)},i.Qt=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.tn=function(t,n,i){var r=!this.Ut&&!1,e=nn(this),u=e||r?{observableKind:"array",object:this.l,type:Di,debugObjectName:this.ht.et,index:t,newValue:n,oldValue:i}:null;this.ht.reportChanged(),e&&en(this,u)},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=nn(this),u=e||r?{observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.ht.reportChanged(),e&&en(this,u)},i.lt=function(t){if(!(this.Ft&&t>=this.j.length))return this.ht.reportObserved(),this.Jt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.dt=function(n,i){var r=this.j;if(this.Ft&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(Qt(this)){var u=tn(this,{type:Di,object:this.l,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.zt(i,e))!==e&&(r[n]=i,this.tn(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.at(r.length,0,o)}},n}(),qi={clear:function(){return this.splice(0)},replace:function(t){var n=this[Wn];return n.at(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[Wn];switch(arguments.length){case 0:return[];case 1:return u.at(t);case 2:return u.at(t,n)}return u.at(t,n,r)},spliceWithArray:function(t,n,i){return this[Wn].at(t,n,i)},push:function(){for(var t=this[Wn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[Wn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Wn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(0,0,i),t.j.length},reverse:function(){return xi.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xi.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[Wn],i=n.vt(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};on("at",sn),on("concat",sn),on("flat",sn),on("includes",sn),on("indexOf",sn),on("join",sn),on("lastIndexOf",sn),on("slice",sn),on("toString",sn),on("toLocaleString",sn),on("toSorted",sn),on("toSpliced",sn),on("with",sn),on("every",fn),on("filter",fn),on("find",fn),on("findIndex",fn),on("findLast",fn),on("findLastIndex",fn),on("flatMap",fn),on("forEach",fn),on("map",fn),on("some",fn),on("toReversed",fn),on("reduce",cn),on("reduceRight",cn);var Gi,Hi,Xi=h("ObservableArrayAdministration",Wi),Ui={},Fi="add";Gi=Symbol.iterator,Hi=Symbol.toStringTag;var zi,$i,Ji=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableMap"),this.zt=void 0,this.et=void 0,this[Wn]=Ui,this.pt=void 0,this.yt=void 0,this.bt=void 0,this.ft=void 0,this.ct=void 0,this.dehancer=void 0,this.zt=i,this.et=r,e(Map)||t(18),xn((function(){u.bt=S("ObservableMap.keys()"),u.pt=new Map,u.yt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.ot=function(t){return this.pt.has(t)},i.has=function(t){var n=this;if(!xi.trackingDerivation)return this.ot(t);var i=this.yt.get(t);if(!i){var r=i=new hi(this.ot(t),E,"ObservableMap.key?",!1);this.yt.set(t,r),kt(r,(function(){return n.yt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ot(t);if(Qt(this)){var r=tn(this,{type:i?Di:Fi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.nn(t,n):this.in(t,n),this},i.delete=function(t){var n=this;if(Qt(this)&&!tn(this,{type:"delete",object:this,name:t}))return!1;if(this.ot(t)){var i=nn(this),r=i?{observableKind:"map",debugObjectName:this.et,type:"delete",object:this,oldValue:this.pt.get(t).jt,name:t}:null;return zt((function(){var i;n.bt.reportChanged(),null==(i=n.yt.get(t))||i.xt(!1),n.pt.get(t).xt(void 0),n.pt.delete(t)})),i&&en(this,r),!0}return!1},i.nn=function(t,n){var i=this.pt.get(t);if((n=i.Ot(n))!==xi.UNCHANGED){var r=nn(this),e=r?{observableKind:"map",debugObjectName:this.et,type:Di,object:this,oldValue:i.jt,name:t,newValue:n}:null;i.xt(n),r&&en(this,e)}},i.in=function(t,n){var i=this;zt((function(){var r,e=new hi(n,i.zt,"ObservableMap.key",!1);i.pt.set(t,e),n=e.jt,null==(r=i.yt.get(t))||r.xt(!0),i.bt.reportChanged()}));var r=nn(this);r&&en(this,r?{observableKind:"map",debugObjectName:this.et,type:Fi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Jt(this.pt.get(t).get()):this.Jt(void 0)},i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.pt.keys()},i.values=function(){var t=this,n=this.keys();return An({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return An({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Gi]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=x(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return Yi(n)&&(n=new Map(n)),zt((function(){s(n)?function(t){var n=Object.keys(t);if(!Kn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Rn.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):v(n)?(n.constructor!==Map&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;zt((function(){ht((function(){for(var n,i=x(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return zt((function(){for(var r,e=function(n){if(v(n)||Yi(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,f=x(i.pt.keys());!(r=f()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.pt.get(c);u.set(c,a)}}for(var h,l=x(e.entries());!(h=l()).done;){var d=h.value,b=d[0],p=d[1],y=i.pt.has(b);if(i.set(b,p),i.pt.has(b)){var m=i.pt.get(b);u.set(b,m),y||(o=!0)}}if(!o)if(i.pt.size!==u.size)i.bt.reportChanged();else for(var w=i.pt.keys(),j=u.keys(),O=w.next(),_=j.next();!O.done;){if(O.value!==_.value){i.bt.reportChanged();break}O=w.next(),_=j.next()}i.pt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.gt=function(t){return rn(this,t)},i._t=function(t){return Zt(this,t)},y(n,[{key:"size",get:function(){return this.bt.reportObserved(),this.pt.size}},{key:Hi,get:function(){return"Map"}}]),n}(),Yi=h("ObservableMap",Ji),Qi={};zi=Symbol.iterator,$i=Symbol.toStringTag;var Zi,tr,nr=function(){function n(n,i,r){var u=this;void 0===i&&(i=M),void 0===r&&(r="ObservableSet"),this.et=void 0,this[Wn]=Qi,this.pt=new Set,this.ht=void 0,this.ct=void 0,this.ft=void 0,this.dehancer=void 0,this.zt=void 0,this.et=r,e(Set)||t(22),this.zt=function(t,n){return i(t,n,r)},xn((function(){u.ht=S(u.et),n&&u.replace(n)}))}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;zt((function(){ht((function(){for(var n,i=x(t.pt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=x(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(Qt(this)&&!tn(this,{type:Fi,object:this,newValue:t}))return this;if(!this.has(t)){zt((function(){n.pt.add(n.zt(t,void 0)),n.ht.reportChanged()}));var i=nn(this);i&&en(this,i?{observableKind:"set",debugObjectName:this.et,type:Fi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(Qt(this)&&!tn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=nn(this),r=i?{observableKind:"set",debugObjectName:this.et,type:"delete",object:this,oldValue:t}:null;return zt((function(){n.ht.reportChanged(),n.pt.delete(t)})),i&&en(this,r),!0}return!1},i.has=function(t){return this.ht.reportObserved(),this.pt.has(this.Jt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return An({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.ht.reportObserved();var t=this,n=0,i=Array.from(this.pt.values());return An({next:function(){return n<i.length?{value:t.Jt(i[n++]),done:!1}:{done:!0}}})},i.replace=function(n){var i=this;return ir(n)&&(n=new Set(n)),zt((function(){Array.isArray(n)||l(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.gt=function(t){return rn(this,t)},i._t=function(t){return Zt(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[zi]=function(){return this.values()},y(n,[{key:"size",get:function(){return this.ht.reportObserved(),this.pt.size}},{key:$i,get:function(){return"Set"}}]),n}(),ir=h("ObservableSet",nr),rr=Object.create(null),er=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=Un),this.h=void 0,this.j=void 0,this.et=void 0,this.rn=void 0,this.bt=void 0,this.ct=void 0,this.ft=void 0,this.l=void 0,this.p=void 0,this.en=void 0,this.un=void 0,this.h=t,this.j=n,this.et=i,this.rn=r,this.bt=new qn("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.O=function(t){return this.j.get(t).get()},i.g=function(t,n){var i=this.j.get(t);if(i instanceof bi)return i.set(n),!0;if(Qt(this)){var r=tn(this,{type:Di,object:this.l||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.Ot(n))!==xi.UNCHANGED){var e=nn(this),u=e?{type:Di,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,oldValue:i.jt,name:t,newValue:n}:null;i.xt(n),e&&en(this,u)}return!0},i.lt=function(t){return xi.trackingDerivation&&!b(this.h,t)&&this.ot(t),this.h[t]},i.dt=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.j.has(t)?this.g(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.rn,i)},i.ot=function(t){if(!xi.trackingDerivation)return t in this.h;this.un||(this.un=new Map);var n=this.un.get(t);return n||(n=new hi(t in this.h,E,"ObservableObject.key?",!1),this.un.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.rn),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[Bn])&&r[n])return;t(1,i.i,this.et+"."+n.toString())}for(var e=this.h;e&&e!==Rn;){var u=Nn(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}dn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.rn),!1===i)return this.v(t,n,r);var e=i.s(this,t,n,r);return e&&dn(this,0,t),e},i.v=function(t,n,i){void 0===i&&(i=!1);try{jt();var r=this.Gt(t);if(!r)return r;if(Qt(this)){var e=tn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=m({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Vn(this.h,t,n);this.on(t,n.value)}finally{Ot()}return!0},i._=function(t,n,i,r){void 0===r&&(r=!1);try{jt();var e=this.Gt(t);if(!e)return e;if(Qt(this)){var u=tn(this,{object:this.l||this.h,name:t,type:Fi,newValue:n});if(!u)return null;n=u.newValue}var o=vn(t),s={configurable:!xi.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Vn(this.h,t,s);var f=new hi(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.on(t,f.jt)}finally{Ot()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{jt();var r=this.Gt(t);if(!r)return r;if(Qt(this)&&!tn(this,{object:this.l||this.h,name:t,type:Fi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var e=vn(t),u={configurable:!xi.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Vn(this.h,t,u);this.j.set(t,new bi(n)),this.on(t,void 0)}finally{Ot()}return!0},i.Gt=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(Qt(this)&&!tn(this,{object:this.l||this.h,name:t,type:"remove"}))return null;try{var i,r;jt();var e,u=nn(this),o=this.j.get(t),s=void 0;if(!o&&u&&(s=null==(e=Nn(this.h,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];o&&(this.j.delete(t),o instanceof hi&&(s=o.jt),_t(o)),this.bt.reportChanged(),null==(i=this.un)||null==(r=i.get(t))||r.set(t in this.h),u&&u&&en(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.et,oldValue:s,name:t})}finally{Ot()}return!0},i.gt=function(t){return rn(this,t)},i._t=function(t){return Zt(this,t)},i.on=function(t,n){var i,r,e=nn(this);e&&e&&en(this,e?{type:Fi,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,name:t,newValue:n}:null),null==(i=this.un)||null==(r=i.get(t))||r.set(!0),this.bt.reportChanged()},i.st=function(){return this.bt.reportObserved(),Pn(this.h)},i.ut=function(){return this.bt.reportObserved(),Object.keys(this.h)},n}(),ur=h("ObservableObjectAdministration",er),or=bn(0),sr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),fr=0,cr=function(){};Zi=cr,tr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Zi.prototype,tr):void 0!==Zi.prototype.__proto__?Zi.prototype.__proto__=tr:Zi.prototype=tr;var ar=function(t,n,i){function r(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,xn((function(){var t=new Wi(r,i,e,!0);t.l=j(u),a(j(u),Wn,t),n&&n.length&&u.spliceWithArray(0,0,n),sr&&Object.defineProperty(j(u),"0",or)})),u}w(r,t);var e=r.prototype;return e.concat=function(){this[Wn].ht.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return an(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return An({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},y(r,[{key:"length",get:function(){return this[Wn].Ht()},set:function(t){this[Wn].Xt(t)}},{key:n,get:function(){return"Array"}}]),r}(cr,Symbol.toStringTag,Symbol.iterator);Object.entries(qi).forEach((function(t){var n=t[0];"concat"!==n&&c(ar.prototype,n,t[1])})),yn(1e3);var hr=Rn.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:St,extras:{getDebugName:On},$mobx:Wn}),exports.$mobx=Wn,exports.FlowCancellationError=Pt,exports.ObservableMap=Ji,exports.ObservableSet=nr,exports.Reaction=_i,exports._allowStateChanges=et,exports._allowStateChangesInsideComputed=Et,exports._allowStateReadsEnd=bt,exports._allowStateReadsStart=dt,exports._autoAction=Ri,exports._endAction=rt,exports._getAdministration=jn,exports._getGlobalState=function(){return xi},exports._interceptReads=function(t,n,i){var r;return Yi(t)||an(t)||vi(t)?r=jn(t):ln(t)&&(r=jn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},exports._isComputingDerivation=function(){return null!==xi.trackingDerivation},exports._resetGlobalState=function(){var t=new wi;for(var n in t)-1===mi.indexOf(n)&&(xi[n]=t[n]);xi.allowStateChanges=!xi.enforceActions},exports._startAction=it,exports.action=Vi,exports.autorun=Vt,exports.comparer=Hn,exports.computed=ei,exports.configure=function(i){!0===i.isolateGlobalState&&function(){if((xi.pendingReactions.length||xi.inBatch||xi.isRunningReactions)&&t(36),Oi=!0,ji){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),xi=new wi}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&(xi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(xi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;xi.enforceActions=s,xi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&(xi[t]=!!i[t])})),xi.allowStateReads=!xi.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=gi,gi=function(t){return r((function(){return e(t)}))})},exports.createAtom=S,exports.defineProperty=function(n,i,r){if(ln(n))return n[Wn].v(i,r);t(39)},exports.entries=function(n){return ln(n)?Ht(n).map((function(t){return[t,n[t]]})):Yi(n)?Ht(n).map((function(t){return[t,n.get(t)]})):ir(n)?Array.from(n.entries()):an(n)?n.map((function(t,n){return[n,t]})):void t(7)},exports.extendObservable=Ct,exports.flow=Ii,exports.flowResult=function(t){return t},exports.get=function(n,i){if(Xt(n,i))return ln(n)?n[Wn].lt(i):Yi(n)?n.get(i):an(n)?n[i]:void t(11)},exports.getAtom=wn,exports.getDebugName=On,exports.getDependencyTree=function(t,n){return It(wn(t,n))},exports.getObserverTree=function(t,n){return Kt(wn(t,n))},exports.has=Xt,exports.intercept=function(t,n,i){return e(i)?function(t,n,i){return jn(t,n)._t(i)}(t,n,i):function(t,n){return jn(t)._t(n)}(t,n)},exports.isAction=Nt,exports.isBoxedObservable=vi,exports.isComputed=function(t){return Wt(t)},exports.isComputedProp=function(t,n){return Wt(t,n)},exports.isFlow=Bt,exports.isFlowCancellationError=function(t){return t instanceof Pt},exports.isObservable=Gt,exports.isObservableArray=an,exports.isObservableMap=Yi,exports.isObservableObject=ln,exports.isObservableProp=function(t,n){return qt(t,n)},exports.isObservableSet=ir,exports.keys=Ht,exports.makeAutoObservable=function(t,n,i){return s(t)?Ct(t,t,n,i):(xn((function(){var r=hn(t,i)[Wn];if(!t[Pi]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Pn(t),Pn(e)));u.delete("constructor"),u.delete(Wn),c(e,Pi,u)}t[Pi].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},exports.makeObservable=function(t,n,i){return xn((function(){var r=hn(t,i)[Wn];null!=n||(n=function(t){return b(t,Bn)||c(t,Bn,m({},t[Bn])),t[Bn]}(t)),Pn(n).forEach((function(t){return r.o(t,n[t])}))})),t},exports.observable=ni,exports.observe=function(t,n,i,r){return e(i)?function(t,n,i,r){return jn(t,n).gt(i,r)}(t,n,i,r):function(t,n,i){return jn(t).gt(n,i)}(t,n,i)},exports.onBecomeObserved=Tt,exports.onBecomeUnobserved=kt,exports.onReactionError=function(t){return xi.globalReactionErrorHandlers.push(t),function(){var n=xi.globalReactionErrorHandlers.indexOf(t);n>=0&&xi.globalReactionErrorHandlers.splice(n,1)}},exports.override=Xn,exports.ownKeys=Ut,exports.reaction=function(t,n,i){function r(){if(p=!1,!m.nt){var n=!1,r=a;m.track((function(){var i=et(!1,(function(){return t(m)}));n=b||!y(a,i),a=i})),(b&&i.fireImmediately||!b&&n)&&v(a,r,m),b=!1}}var e,u,o,s;void 0===i&&(i=kn);var f,c,a,h=null!=(e=i.name)?e:"Reaction",v=Vi(h,i.onError?(f=i.onError,c=n,function(){try{return c.apply(this,arguments)}catch(t){f.call(this,t)}}):n),l=!i.scheduler&&!i.delay,d=Rt(i),b=!0,p=!1,y=i.compareStructural?Hn.structural:i.equals||Hn.default,m=new _i(h,(function(){b||l?r():p||(p=!0,d(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(o=u.signal)&&o.aborted||m.it(),m.rt(null==(s=i)?void 0:s.signal)},exports.remove=function(n,i){ln(n)?n[Wn].Gt(i):Yi(n)||ir(n)?n.delete(i):an(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)},exports.runInAction=Et,exports.set=function n(i,r,e){if(2!==arguments.length||ir(i))ln(i)?i[Wn].dt(r,e):Yi(i)?i.set(r,e):ir(i)?i.add(r):an(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&t("Invalid index: '"+r+"'"),jt(),r>=i.length&&(i.length=r+1),i[r]=e,Ot()):t(8);else{jt();var u=r;try{for(var o in u)n(i,o,u[o])}finally{Ot()}}},exports.spy=St,exports.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Gt(n))return n;if(vi(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(an(n)){var r=Ft(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(ir(n)){var e=Ft(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Yi(n)){var u=Ft(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=Ft(i,n,{});return Ut(n).forEach((function(r){Rn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},exports.trace=function(){},exports.transaction=zt,exports.untracked=ht,exports.values=function(n){return ln(n)?Ht(n).map((function(t){return n[t]})):Yi(n)?Ht(n).map((function(t){return n.get(t)})):ir(n)?Array.from(n.values()):an(n)?n.slice():void t(6)},exports.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Jt(t,n):$t(t,n,i||{})};
//# sourceMappingURL=mobx.cjs.production.min.js.map

@@ -1,2 +0,2 @@

function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:ti}function i(){si||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===ai}function a(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function f(t,n,i){ri(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function c(t,n,i){ri(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function l(t){return t instanceof Map}function v(t){return t instanceof Set}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return ei.hasOwnProperty.call(t,n)}function y(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,"symbol"==typeof(e=function(t){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?e:String(e),r)}var e}function p(t,n,i){return n&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function w(t,n){var i,r;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,i=t,r=n,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(i,r)}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function g(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return j(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t){return Object.assign((function(n,i){if(S(i))return t.t(n,i);A(n,i,t)}),t)}function A(t,n,i){b(t,vi)||f(t,vi,m({},t[vi])),function(t){return"override"===t.i}(i)||(t[vi][n]=i)}function S(t){return"object"==typeof t&&"string"==typeof t.kind}function x(t,n,i){void 0===n&&(n=fi),void 0===i&&(i=fi);var r=new bi(t);return n!==fi&&Kt(r,n),i!==fi&&Pt(r,i),r}function E(t,n,i){return en(t)?t:Array.isArray(t)?Mi.array(t,{name:i}):s(t)?Mi.object(t,void 0,{name:i}):l(t)?Mi.map(t,{name:i}):v(t)?Mi.set(t,{name:i}):"function"!=typeof t||Tt(t)||Jt(t)?t:a(t)?fr(t):er(i,t)}function M(t){return t}function R(t,n){return{i:t,u:n,o:N,s:V,t:k}}function N(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Tt(i.value))return 1;var u=T(t,this,n,i,!1);return ri(r,n,u),2}function V(t,n,i,r){var e=T(t,this,n,i);return t.l(n,e,r)}function k(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,a,f,c,h,l;if("method"==r)return Tt(n)||(a=n,n=tt(null!=(f=null==(c=o.u)?void 0:c.name)?f:e.toString(),a,null!=(h=null==(l=o.u)?void 0:l.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){A(this,e,o)}))}function T(t,n,i,r,e){var u,o,s,a,f,c,h;void 0===e&&(e=$i.safeDescriptors);var l,v=r.value;return null!=(u=n.u)&&u.bound&&(v=v.bind(null!=(l=t.v)?l:t.h)),{value:tt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),v,null!=(a=null==(f=n.u)?void 0:f.autoAction)&&a,null!=(c=n.u)&&c.bound?null!=(h=t.v)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function C(t,n){return{i:t,u:n,o:I,s:L,t:K}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!Jt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Jt(i.value))return 1;var u=P(t,0,0,i,!1,!1);return ri(r,n,u),2}function L(t,n,i,r){var e,u=P(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.l(n,u,r)}function K(t,n){var i,r=n.name,e=n.addInitializer;return Jt(t)||(t=fr(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function P(t,n,i,r,e,u){void 0===u&&(u=$i.safeDescriptors);var o,s=r.value;return Jt(s)||(s=fr(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function D(t,n){return{i:t,u:n,o:B,s:G,t:W}}function B(t,n,i){return null===this.s(t,n,i,!1)?0:1}function G(t,n,i,r){return t.m(n,m({},this.u,{get:i.get,set:i.set}),r)}function W(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=Pn(this)[di],e=m({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.O.set(r,new Wi(e))})),function(){return this[di].j(r)}}function q(t,n){return{i:t,u:n,o:F,s:H,t:U}}function F(t,n,i){return null===this.s(t,n,i,!1)?0:1}function H(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function U(t,n){function i(t,n){var i,e,s=Pn(t)[di],a=new Pi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.O.set(u,a),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[di].j(u)},set:function(t){return o.has(this)||i(this,t),this[di]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function X(t){return{i:"true",u:t,o:z,s:$,t:J}}function z(t,n,i,r){var e,u,o,s;if(i.get)return Vi.o(t,n,i,r);if(i.set){var f=tt(n.toString(),i.set);return r===t.h?null===t.l(n,{configurable:!$i.safeDescriptors||t.p,set:f})?0:2:(ri(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return a(i.value)?(null!=(s=this.u)&&s.autoBind?fr.bound:fr).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?er.bound:er).o(t,n,i,r);var c,h=!1===(null==(e=this.u)?void 0:e.deep)?Mi.ref:Mi;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.h)),h.o(t,n,i,r)}function $(t,n,i,r){var e,u,o;return i.get?Vi.s(t,n,i,r):i.set?t.l(n,{configurable:!$i.safeDescriptors||t.p,set:tt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?Mi.ref:Mi).s(t,n,i,r))}function J(){t("'"+this.i+"' cannot be used as a decorator")}function Y(t){return t||Oi}function Q(t){return!0===t.deep?E:!1===t.deep?M:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function Z(t,n,i){return S(n)?ji.t(t,n):u(n)?void A(t,n,ji):en(t)?t:s(t)?Mi.object(t,n,i):Array.isArray(t)?Mi.array(t,n):l(t)?Mi.map(t,n):v(t)?Mi.set(t,n):"object"==typeof t&&null!==t?t:Mi.box(t,n)}function tt(t,n,i,r){function e(){return nt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},Ii&&(Li.value=t,ri(e,"name",Li)),e}function nt(t,n,i,r,e){var u=it(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{rt(u)}}function it(t,n){var i=$i.trackingDerivation,r=!n||!i;_t();var e=$i.allowStateChanges;r&&(vt(),e=ut(!0));var u={S:r,M:i,R:e,N:bt(!0),V:!1,k:0,T:Ci++,C:Ti};return Ti=u.T,u}function rt(n){Ti!==n.T&&t(30),Ti=n.C,void 0!==n.A&&($i.suppressReactionErrors=!0),ot(n.R),yt(n.N),At(),n.S&&dt(n.M),$i.suppressReactionErrors=!1}function et(t,n){var i=ut(t);try{return n()}finally{ot(i)}}function ut(t){var n=$i.allowStateChanges;return $i.allowStateChanges=t,n}function ot(t){$i.allowStateChanges=t}function st(t){return t instanceof Fi}function at(t){switch(t.I){case Bi.L:return!1;case Bi.K:case Bi.P:return!0;case Bi.D:for(var n=bt(!0),i=vt(),r=t.B,e=r.length,u=0;u<e;u++){var o=r[u];if(qi(o)){if($i.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return dt(i),yt(n),!0}if(t.I===Bi.P)return dt(i),yt(n),!0}}return pt(t),dt(i),yt(n),!1}}function ft(){return null!==$i.trackingDerivation}function ct(t,n,i){var r=bt(!0);pt(t),t.G=new Array(t.B.length+100),t.W=0,t.q=++$i.runId;var e,u=$i.trackingDerivation;if($i.trackingDerivation=t,$i.inBatch++,!0===$i.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new Fi(t)}return $i.inBatch--,$i.trackingDerivation=u,function(t){for(var n=t.B,i=t.B=t.G,r=Bi.L,e=0,u=t.W,o=0;o<u;o++){var s=i[o];0===s.F&&(s.F=1,e!==o&&(i[e]=s),e++),s.I>r&&(r=s.I)}for(i.length=e,t.G=null,u=n.length;u--;){var a=n[u];0===a.F&&jt(a,t),a.F=0}for(;e--;){var f=i[e];1===f.F&&(f.F=0,Ot(f,t))}r!==Bi.L&&(t.I=r,t.H())}(t),yt(r),e}function ht(t){var n=t.B;t.B=[];for(var i=n.length;i--;)jt(n[i],t);t.I=Bi.K}function lt(t){var n=vt();try{return t()}finally{dt(n)}}function vt(){var t=$i.trackingDerivation;return $i.trackingDerivation=null,t}function dt(t){$i.trackingDerivation=t}function bt(t){var n=$i.allowStateReads;return $i.allowStateReads=t,n}function yt(t){$i.allowStateReads=t}function pt(t){if(t.I!==Bi.L){t.I=Bi.L;for(var n=t.B,i=n.length;i--;)n[i].U=Bi.L}}function mt(){return $i}function wt(){var t=new Ui;for(var n in t)-1===Hi.indexOf(n)&&($i[n]=t[n]);$i.allowStateChanges=!$i.enforceActions}function Ot(t,n){t.X.add(n),t.U>n.I&&(t.U=n.I)}function jt(t,n){t.X.delete(n),0===t.X.size&&gt(t)}function gt(t){!1===t.$&&(t.$=!0,$i.pendingUnobservations.push(t))}function _t(){$i.inBatch++}function At(){if(0==--$i.inBatch){Mt();for(var t=$i.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.$=!1,0===i.X.size&&(i.J&&(i.J=!1,i.onBUO()),i instanceof Wi&&i.Y())}$i.pendingUnobservations=[]}}function St(t){var n=$i.trackingDerivation;return null!==n?(n.q!==t.Z&&(t.Z=n.q,n.G[n.W++]=t,!t.J&&$i.trackingContext&&(t.J=!0,t.onBO())),t.J):(0===t.X.size&&$i.inBatch>0&&gt(t),!1)}function xt(t){t.U!==Bi.P&&(t.U=Bi.P,t.X.forEach((function(t){t.I===Bi.L&&t.H(),t.I=Bi.P})))}function Et(t){return $i.globalReactionErrorHandlers.push(t),function(){var n=$i.globalReactionErrorHandlers.indexOf(t);n>=0&&$i.globalReactionErrorHandlers.splice(n,1)}}function Mt(){$i.inBatch>0||$i.isRunningReactions||Yi(Rt)}function Rt(){$i.isRunningReactions=!0;for(var t=$i.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].tt()}$i.isRunningReactions=!1}function Nt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Vt(t){return function(n,i){return e(n)?tt(n.name||"<unnamed action>",n,t):e(i)?tt(n,i,t):S(i)?(t?nr:Zi).t(n,i):u(i)?A(n,i,t?nr:Zi):u(n)?_(R(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function kt(t){return nt(0,!1,t,this,void 0)}function Tt(t){return e(t)&&!0===t.isMobxAction}function Ct(t,n){function i(){t(a)}var r,e,u,o,s;void 0===n&&(n=oi);var a,f=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var c=It(n),h=!1;a=new Ji(f,(function(){h||(h=!0,c((function(){h=!1,a.nt||a.track(i)})))}),n.onError,n.requiresObservable)}else a=new Ji(f,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(o=u.signal)&&o.aborted||a.it(),a.rt(null==(s=n)?void 0:s.signal)}function It(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ur}function Lt(t,n,i){function r(){if(p=!1,!w.nt){var n=!1;w.track((function(){var i=et(!1,(function(){return t(w)}));n=y||!m(c,i),h=c,c=i})),(y&&i.fireImmediately||!y&&n)&&v(c,h,w),y=!1}}var e,u,o,s;void 0===i&&(i=oi);var a,f,c,h,l=null!=(e=i.name)?e:"Reaction",v=rr(l,i.onError?(a=i.onError,f=n,function(){try{return f.apply(this,arguments)}catch(t){a.call(this,t)}}):n),d=!i.scheduler&&!i.delay,b=It(i),y=!0,p=!1,m=i.compareStructural?pi.structural:i.equals||pi.default,w=new Ji(l,(function(){y||d?r():p||(p=!0,b(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(o=u.signal)&&o.aborted||w.it(),w.rt(null==(s=i)?void 0:s.signal)}function Kt(t,n,i){return Dt("onBO",t,n,i)}function Pt(t,n,i){return Dt("onBUO",t,n,i)}function Dt(t,n,i,r){var u="function"==typeof r?Un(n,i):Un(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Bt(i){!0===i.isolateGlobalState&&function(){if(($i.pendingReactions.length||$i.inBatch||$i.isRunningReactions)&&t(36),zi=!0,Xi){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),$i=new Ui}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&($i.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&($i.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;$i.enforceActions=s,$i.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&($i[t]=!!i[t])})),$i.allowStateReads=!$i.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=Yi,Yi=function(t){return r((function(){return e(t)}))})}function Gt(t,n,i,r){var e=li(n);return $n((function(){var n=Pn(t,r)[di];hi(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Wt(t,n){return qt(Un(t,n))}function qt(t){var n,i={name:t.et};return t.B&&t.B.length>0&&(i.dependencies=(n=t.B,Array.from(new Set(n))).map(qt)),i}function Ft(t,n){return Ht(Un(t,n))}function Ht(t){var n={name:t.et};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(Ht)),n}function Ut(){this.message="FLOW_CANCELLED"}function Xt(t){return t instanceof Ut}function zt(t){e(t.cancel)&&t.cancel()}function $t(t){return t}function Jt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Yt(t,n,i){var r;return Ar(t)||Kn(t)||Di(t)?r=Xn(t):Bn(t)&&(r=Xn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}}function Qt(t,n,i){return e(i)?function(t,n,i){return Xn(t,n).ut(i)}(t,n,i):function(t,n){return Xn(t).ut(n)}(t,n)}function Zt(t,n){if(void 0===n)return qi(t);if(!1===Bn(t))return!1;if(!t[di].O.has(n))return!1;var i=Un(t,n);return qi(i)}function tn(t){return Zt(t)}function nn(t,n){return Zt(t,n)}function rn(t,n){return!!t&&(void 0!==n?!!Bn(t)&&t[di].O.has(n):Bn(t)||!!t[di]||yi(t)||Qi(t)||qi(t))}function en(t){return rn(t)}function un(t,n){return rn(t,n)}function on(n){return Bn(n)?n[di].ot():Ar(n)||Rr(n)?Array.from(n.keys()):Kn(n)?n.map((function(t,n){return n})):void t(5)}function sn(n){return Bn(n)?on(n).map((function(t){return n[t]})):Ar(n)?on(n).map((function(t){return n.get(t)})):Rr(n)?Array.from(n.values()):Kn(n)?n.slice():void t(6)}function an(n){return Bn(n)?on(n).map((function(t){return[t,n[t]]})):Ar(n)?on(n).map((function(t){return[t,n.get(t)]})):Rr(n)?Array.from(n.entries()):Kn(n)?n.map((function(t,n){return[n,t]})):void t(7)}function fn(n,i,r){if(2!==arguments.length||Rr(n))Bn(n)?n[di].st(i,r):Ar(n)?n.set(i,r):Rr(n)?n.add(i):Kn(n)?("number"!=typeof i&&(i=parseInt(i,10)),i<0&&t("Invalid index: '"+i+"'"),_t(),i>=n.length&&(n.length=i+1),n[i]=r,At()):t(8);else{_t();var e=i;try{for(var u in e)fn(n,u,e[u])}finally{At()}}}function cn(n,i){Bn(n)?n[di].at(i):Ar(n)||Rr(n)?n.delete(i):Kn(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)}function hn(n,i){return Bn(n)?n[di].ft(i):Ar(n)||Rr(n)?n.has(i):Kn(n)?i>=0&&i<n.length:void t(10)}function ln(n,i){if(hn(n,i))return Bn(n)?n[di].ct(i):Ar(n)?n.get(i):Kn(n)?n[i]:void t(11)}function vn(n,i,r){if(Bn(n))return n[di].l(i,r);t(39)}function dn(n){if(Bn(n))return n[di].ht();t(38)}function bn(t,n,i,r){return e(i)?function(t,n,i,r){return Xn(t,n).lt(i,r)}(t,n,i,r):function(t,n,i){return Xn(t).lt(n,i)}(t,n,i)}function yn(t,n,i){return t.set(n,i),i}function pn(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!en(n))return n;if(Di(n)||qi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(Kn(n)){var r=yn(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Rr(n)){var e=yn(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Ar(n)){var u=yn(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=yn(i,n,{});return dn(n).forEach((function(r){ei.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)}function mn(){}function wn(t,n){void 0===n&&(n=void 0),_t();try{return t.apply(n)}finally{At()}}function On(t,n,i){return 1===arguments.length||n&&"object"==typeof n?gn(t,n):jn(t,n,i||{})}function jn(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[di].nt){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=tt("When-effect",n),o=Ct((function(n){et(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function gn(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=jn(t,i,m({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function _n(t){return t[di]}function An(t){return void 0!==t.vt&&t.vt.length>0}function Sn(t,n){var i=t.vt||(t.vt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function xn(n,i){var r=vt();try{for(var e=[].concat(n.vt||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{dt(r)}}function En(t){return void 0!==t.dt&&t.dt.length>0}function Mn(t,n){var i=t.dt||(t.dt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Rn(t,n){var i=vt(),r=t.dt;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);dt(i)}}function Nn(t,n,i){return $n((function(){var r=Pn(t,i)[di];null!=n||(n=function(t){return b(t,vi)||f(t,vi,m({},t[vi])),t[vi]}(t)),hi(n).forEach((function(t){return r.o(t,n[t])}))})),t}function Vn(t,n,i){return s(t)?Gt(t,t,n,i):($n((function(){var r=Pn(t,i)[di];if(!t[hr]){var e=Object.getPrototypeOf(t),u=new Set([].concat(hi(t),hi(e)));u.delete("constructor"),u.delete(di),f(e,hr,u)}t[hr].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)}function kn(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),$n((function(){var i=new dr(r,n,e,!1);c(i.O,di,i);var u=new Proxy(i.O,vr);return i.v=u,t&&t.length&&i.bt(0,0,t),u}))}function Tn(t,n){"function"==typeof Array.prototype[t]&&(br[t]=n(t))}function Cn(t){return function(){var n=this[di];n.yt.reportObserved();var i=n.pt(n.O);return i[t].apply(i,arguments)}}function In(t){return function(n,i){var r=this,e=this[di];return e.yt.reportObserved(),e.pt(e.O)[t]((function(t,e){return n.call(i,t,e,r)}))}}function Ln(t){return function(){var n=this,i=this[di];i.yt.reportObserved();var r=i.pt(i.O),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function Kn(t){return o(t)&&mr(t[di])}function Pn(t,n){var i;if(b(t,di))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new Vr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:X(t):void 0}(n));return f(t,di,e),t}function Dn(t){return Nr[t]||(Nr[t]={get:function(){return this[di].j(t)},set:function(n){return this[di]._(t,n)}})}function Bn(t){return!!o(t)&&kr(t[di])}function Gn(t,n,i){var r;null==(r=t.h[vi])||delete r[i]}function Wn(t){return{enumerable:!1,configurable:!0,get:function(){return this[di].ct(t)},set:function(n){this[di].st(t,n)}}}function qn(t){ri(Kr.prototype,""+t,Wn(t))}function Fn(t){if(t>Ir){for(var n=Ir;n<t+100;n++)qn(n);Ir=t}}function Hn(t,n,i){return new Kr(t,n,i)}function Un(n,i){if("object"==typeof n&&null!==n){if(Kn(n))return void 0!==i&&t(23),n[di].yt;if(Rr(n))return n.yt;if(Ar(n)){if(void 0===i)return n.wt;var r=n.Ot.get(i)||n.jt.get(i);return r||t(25,i,zn(n)),r}if(Bn(n)){if(!i)return t(26);var u=n[di].O.get(i);return u||t(27,i,zn(n)),u}if(yi(n)||qi(n)||Qi(n))return n}else if(e(n)&&Qi(n[di]))return n[di];t(28)}function Xn(n,i){return n||t(29),void 0!==i?Xn(Un(n,i)):yi(n)||qi(n)||Qi(n)||Ar(n)||Rr(n)?n:n[di]?n[di]:void t(24,n)}function zn(t,n){var i;if(void 0!==n)i=Un(t,n);else{if(Tt(t))return t.name;i=Bn(t)||Ar(t)||Rr(t)?Xn(t):Un(t)}return i.et}function $n(t){var n=vt(),i=ut(!0);_t();try{return t()}finally{At(),ot(i),dt(n)}}function Jn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var a=Pr.call(n);if(a!==Pr.call(i))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Yn(n),i=Yn(i);var f="[object Array]"===a;if(!f){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(e(c)&&c instanceof c&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(u=u||[]).length;l--;)if(u[l]===n)return o[l]===i;if(u.push(n),o.push(i),f){if((l=n.length)!==i.length)return!1;for(;l--;)if(!t(n[l],i[l],r-1,u,o))return!1}else{var v,d=Object.keys(n);if(l=d.length,Object.keys(i).length!==l)return!1;for(;l--;)if(!b(i,v=d[l])||!t(n[v],i[v],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Yn(t){return Kn(t)?t.slice():l(t)||Ar(t)||v(t)||Rr(t)?Array.from(t.entries()):t}function Qn(t){return t[Symbol.iterator]=Zn,t}function Zn(){return this}var ti={},ni=Object.assign,ii=Object.getOwnPropertyDescriptor,ri=Object.defineProperty,ei=Object.prototype,ui=[];Object.freeze(ui);var oi={};Object.freeze(oi);var si="undefined"!=typeof Proxy,ai=Object.toString(),fi=function(){},ci=void 0!==Object.getOwnPropertySymbols,hi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:ci?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,li=Object.getOwnPropertyDescriptors||function(t){var n={};return hi(t).forEach((function(i){n[i]=ii(t,i)})),n},vi=Symbol("mobx-stored-annotations"),di=Symbol("mobx administration"),bi=function(){function t(t){void 0===t&&(t="Atom"),this.et=void 0,this.$=!1,this.J=!1,this.X=new Set,this.F=0,this.Z=0,this.U=Bi.K,this.onBOL=void 0,this.onBUOL=void 0,this.et=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return St(this)},n.reportChanged=function(){_t(),xt(this),At()},n.toString=function(){return this.et},t}(),yi=h("Atom",bi),pi={identity:function(t,n){return t===n},structural:function(t,n){return Jn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return Jn(t,n,1)}},mi=_({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),wi=X(),Oi={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Oi);var ji=q("observable"),gi=q("observable.ref",{enhancer:M}),_i=q("observable.shallow",{enhancer:function(t,n,i){return null==t||Bn(t)||Kn(t)||Ar(t)||Rr(t)?t:Array.isArray(t)?Mi.array(t,{name:i,deep:!1}):s(t)?Mi.object(t,void 0,{name:i,deep:!1}):l(t)?Mi.map(t,{name:i,deep:!1}):v(t)?Mi.set(t,{name:i,deep:!1}):void 0}}),Ai=q("observable.struct",{enhancer:function(t,n){return Jn(t,n)?n:t}}),Si=_(ji);ni(Z,Si);var xi,Ei,Mi=ni(Z,{box:function(t,n){var i=Y(n);return new Pi(t,Q(i),i.name,!0,i.equals)},array:function(t,n){var i=Y(n);return(!1===$i.useProxies||!1===i.proxy?Hn:kn)(t,Q(i),i.name)},map:function(t,n){var i=Y(n);return new _r(t,Q(i),i.name)},set:function(t,n){var i=Y(n);return new Mr(t,Q(i),i.name)},object:function(t,n,r){return $n((function(){return Gt(!1===$i.useProxies||!1===(null==r?void 0:r.proxy)?Pn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=Pn(t,n))[di]).v)?e:r.v=new Proxy(t,cr)}({},r),t,n)}))},ref:_(gi),shallow:_(_i),deep:Si,struct:_(Ai)}),Ri=D("computed"),Ni=D("computed.struct",{equals:pi.structural}),Vi=function(t,n){if(S(n))return Ri.t(t,n);if(u(n))return A(t,n,Ri);if(s(t))return _(D("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new Wi(i)};Object.assign(Vi,Ri),Vi.struct=_(Ni);var ki,Ti=0,Ci=1,Ii=null!=(xi=null==(Ei=ii((function(){}),"name"))?void 0:Ei.configurable)&&xi,Li={value:"action",configurable:!0,writable:!1,enumerable:!1};ki=Symbol.toPrimitive;var Ki,Pi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=pi.default),(o=t.call(this,r)||this).enhancer=void 0,o.et=void 0,o.equals=void 0,o.gt=!1,o.vt=void 0,o.dt=void 0,o._t=void 0,o.dehancer=void 0,o.enhancer=i,o.et=r,o.equals=u,o._t=i(n,void 0,r),o}w(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.At(t))!==$i.UNCHANGED&&this.St(t)},i.At=function(t){if(An(this)){var n=xn(this,{object:this,type:lr,newValue:t});if(!n)return $i.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this._t,this.et),this.equals(this._t,t)?$i.UNCHANGED:t},i.St=function(t){var n=this._t;this._t=t,this.reportChanged(),En(this)&&Rn(this,{type:lr,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this._t)},i.ut=function(t){return Sn(this,t)},i.lt=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.et,object:this,type:lr,newValue:this._t,oldValue:void 0}),Mn(this,t)},i.raw=function(){return this._t},i.toJSON=function(){return this.get()},i.toString=function(){return this.et+"["+this._t+"]"},i.valueOf=function(){return d(this.get())},i[ki]=function(){return this.valueOf()},n}(bi),Di=h("ObservableValue",Pi);Ki=Symbol.toPrimitive;var Bi,Gi,Wi=function(){function n(n){this.I=Bi.K,this.B=[],this.G=null,this.J=!1,this.$=!1,this.X=new Set,this.F=0,this.q=0,this.Z=0,this.U=Bi.L,this.W=0,this._t=new Fi(null),this.et=void 0,this.xt=void 0,this.Et=!1,this.Mt=!1,this.derivation=void 0,this.Rt=void 0,this.Nt=Gi.NONE,this.Vt=void 0,this.kt=void 0,this.Tt=void 0,this.Ct=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.et=n.name||"ComputedValue",n.set&&(this.Rt=tt("ComputedValue-setter",n.set)),this.kt=n.equals||(n.compareStructural||n.struct?pi.structural:pi.default),this.Vt=n.context,this.Tt=n.requiresReaction,this.Ct=!!n.keepAlive}var i=n.prototype;return i.H=function(){!function(t){t.U===Bi.L&&(t.U=Bi.D,t.X.forEach((function(t){t.I===Bi.L&&(t.I=Bi.D,t.H())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.Et&&t(32,this.et,this.derivation),0!==$i.inBatch||0!==this.X.size||this.Ct){if(St(this),at(this)){var n=$i.trackingContext;this.Ct&&!n&&($i.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==Bi.P&&(t.U=Bi.P,t.X.forEach((function(n){n.I===Bi.D?n.I=Bi.P:n.I===Bi.L&&(t.U=Bi.L)})))}(this),$i.trackingContext=n}}else at(this)&&(this.It(),_t(),this._t=this.Lt(!1),At());var i=this._t;if(st(i))throw i.cause;return i},i.set=function(n){if(this.Rt){this.Mt&&t(33,this.et),this.Mt=!0;try{this.Rt.call(this.Vt,n)}finally{this.Mt=!1}}else t(34,this.et)},i.trackAndCompute=function(){var t=this._t,n=this.I===Bi.K,i=this.Lt(!0),r=n||st(t)||st(i)||!this.kt(t,i);return r&&(this._t=i),r},i.Lt=function(t){this.Et=!0;var n,i=ut(!1);if(t)n=ct(this,this.derivation,this.Vt);else if(!0===$i.disableErrorBoundaries)n=this.derivation.call(this.Vt);else try{n=this.derivation.call(this.Vt)}catch(t){n=new Fi(t)}return ot(i),this.Et=!1,n},i.Y=function(){this.Ct||(ht(this),this._t=void 0)},i.lt=function(t,n){var i=this,r=!0,e=void 0;return Ct((function(){var u=i.get();if(!r||n){var o=vt();t({observableKind:"computed",debugObjectName:i.et,type:lr,object:i,newValue:u,oldValue:e}),dt(o)}r=!1,e=u}))},i.It=function(){},i.toString=function(){return this.et+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[Ki]=function(){return this.valueOf()},n}(),qi=h("ComputedValue",Wi);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.L=0]="UP_TO_DATE_",t[t.D=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(Bi||(Bi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Gi||(Gi={}));var Fi=function(t){this.cause=void 0,this.cause=t},Hi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Ui=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Xi=!0,zi=!1,$i=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(Xi=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new Ui).version&&(Xi=!1),Xi?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new Ui):(setTimeout((function(){zi||t(35)}),1),new Ui)}(),Ji=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.et=void 0,this.Kt=void 0,this.Pt=void 0,this.Dt=void 0,this.B=[],this.G=[],this.I=Bi.K,this.F=0,this.q=0,this.W=0,this.nt=!1,this.Bt=!1,this.Gt=!1,this.Wt=!1,this.Nt=Gi.NONE,this.et=t,this.Kt=n,this.Pt=i,this.Dt=r}var n=t.prototype;return n.H=function(){this.it()},n.it=function(){this.Bt||(this.Bt=!0,$i.pendingReactions.push(this),Mt())},n.isScheduled=function(){return this.Bt},n.tt=function(){if(!this.nt){_t(),this.Bt=!1;var t=$i.trackingContext;if($i.trackingContext=this,at(this)){this.Gt=!0;try{this.Kt()}catch(t){this.qt(t)}}$i.trackingContext=t,At()}},n.track=function(t){if(!this.nt){_t(),this.Wt=!0;var n=$i.trackingContext;$i.trackingContext=this;var i=ct(this,t,void 0);$i.trackingContext=n,this.Wt=!1,this.Gt=!1,this.nt&&ht(this),st(i)&&this.qt(i.cause),At()}},n.qt=function(t){var n=this;if(this.Pt)this.Pt(t,this);else{if($i.disableErrorBoundaries)throw t;$i.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),$i.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.nt||(this.nt=!0,this.Wt||(_t(),ht(this),At()))},n.rt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[di]=this,i},n.toString=function(){return"Reaction["+this.et+"]"},n.trace=function(){},t}(),Yi=function(t){return t()},Qi=h("Reaction",Ji),Zi=R("action"),tr=R("action.bound",{bound:!0}),nr=R("autoAction",{autoAction:!0}),ir=R("autoAction.bound",{autoAction:!0,bound:!0}),rr=Vt(!1);Object.assign(rr,Zi);var er=Vt(!0);Object.assign(er,nr),rr.bound=_(tr),er.bound=_(ir);var ur=function(t){return t()},or=0;Ut.prototype=Object.create(Error.prototype);var sr=C("flow"),ar=C("flow.bound",{bound:!0}),fr=Object.assign((function(t,n){if(S(n))return sr.t(t,n);if(u(n))return A(t,n,sr);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++or,s=rr(r+" - runid: "+o+" - init",i).apply(n,u),a=void 0,f=new Promise((function(n,i){function u(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function f(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(a=Promise.resolve(t.value)).then(u,f);t.then(c,i)}var h=0;t=i,u(void 0)}));return f.cancel=rr(r+" - runid: "+o+" - cancel",(function(){try{a&&zt(a);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(fi,fi),zt(i),t(new Ut)}catch(n){t(n)}})),f};return o.isMobXFlow=!0,o}),sr);fr.bound=_(ar);var cr={has:function(t,n){return _n(t).ft(n)},get:function(t,n){return _n(t).ct(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=_n(t).st(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=_n(t).at(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=_n(t).l(n,i))||r},ownKeys:function(t){return _n(t).ht()},preventExtensions:function(){t(13)}},hr=Symbol("mobx-keys"),lr="update",vr={get:function(t,n){var i=t[di];return n===di?i:"length"===n?i.Ft():"string"!=typeof n||isNaN(n)?b(br,n)?br[n]:t[n]:i.ct(parseInt(n))},set:function(t,n,i){var r=t[di];return"length"===n&&r.Ht(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.st(parseInt(n),i),!0},preventExtensions:function(){t(15)}},dr=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Xt=void 0,this.yt=void 0,this.O=[],this.vt=void 0,this.dt=void 0,this.zt=void 0,this.dehancer=void 0,this.v=void 0,this.$t=0,this.Ut=i,this.Xt=r,this.yt=new bi(t),this.zt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.pt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.ut=function(t){return Sn(this,t)},i.lt=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.yt.et,type:"splice",index:0,added:this.O.slice(),addedCount:this.O.length,removed:[],removedCount:0}),Mn(this,t)},i.Ft=function(){return this.yt.reportObserved(),this.O.length},i.Ht=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.O.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.bt(i,0,r)}else this.bt(n,i-n)},i.Yt=function(n,i){n!==this.$t&&t(16),this.$t+=i,this.Xt&&i>0&&Fn(n+i+1)},i.bt=function(t,n,i){var r=this,e=this.O.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=ui),An(this)){var u=xn(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return ui;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.zt(t,void 0)})),this.Xt){var o=i.length-n;this.Yt(e,o)}var s=this.Qt(t,n,i);return 0===n&&0===i.length||this.Zt(t,i,s),this.pt(s)},i.Qt=function(t,n,i){var r;if(i.length<1e4)return(r=this.O).splice.apply(r,[t,n].concat(i));var e=this.O.slice(t,t+n),u=this.O.slice(t+n);this.O.length+=i.length-n;for(var o=0;o<i.length;o++)this.O[t+o]=i[o];for(var s=0;s<u.length;s++)this.O[t+i.length+s]=u[s];return e},i.tn=function(t,n,i){var r=!this.Ut&&!1,e=En(this),u=e||r?{observableKind:"array",object:this.v,type:lr,debugObjectName:this.yt.et,index:t,newValue:n,oldValue:i}:null;this.yt.reportChanged(),e&&Rn(this,u)},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=En(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.yt.et,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.yt.reportChanged(),e&&Rn(this,u)},i.ct=function(t){if(!(this.Xt&&t>=this.O.length))return this.yt.reportObserved(),this.Jt(this.O[t]);console.warn("[mobx] Out of bounds read: "+t)},i.st=function(n,i){var r=this.O;if(this.Xt&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(An(this)){var u=xn(this,{type:lr,object:this.v,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.zt(i,e))!==e&&(r[n]=i,this.tn(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.bt(r.length,0,o)}},n}(),br={clear:function(){return this.splice(0)},replace:function(t){var n=this[di];return n.bt(0,n.O.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[di];switch(arguments.length){case 0:return[];case 1:return u.bt(t);case 2:return u.bt(t,n)}return u.bt(t,n,r)},spliceWithArray:function(t,n,i){return this[di].bt(t,n,i)},push:function(){for(var t=this[di],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.bt(t.O.length,0,i),t.O.length},pop:function(){return this.splice(Math.max(this[di].O.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[di],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.bt(0,0,i),t.O.length},reverse:function(){return $i.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){$i.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[di],i=n.pt(n.O).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};Tn("at",Cn),Tn("concat",Cn),Tn("flat",Cn),Tn("includes",Cn),Tn("indexOf",Cn),Tn("join",Cn),Tn("lastIndexOf",Cn),Tn("slice",Cn),Tn("toString",Cn),Tn("toLocaleString",Cn),Tn("toSorted",Cn),Tn("toSpliced",Cn),Tn("with",Cn),Tn("every",In),Tn("filter",In),Tn("find",In),Tn("findIndex",In),Tn("findLast",In),Tn("findLastIndex",In),Tn("flatMap",In),Tn("forEach",In),Tn("map",In),Tn("some",In),Tn("toReversed",In),Tn("reduce",Ln),Tn("reduceRight",Ln);var yr,pr,mr=h("ObservableArrayAdministration",dr),wr={},Or="add";yr=Symbol.iterator,pr=Symbol.toStringTag;var jr,gr,_r=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.zt=void 0,this.et=void 0,this[di]=wr,this.Ot=void 0,this.jt=void 0,this.wt=void 0,this.vt=void 0,this.dt=void 0,this.dehancer=void 0,this.zt=i,this.et=r,e(Map)||t(18),$n((function(){u.wt=x("ObservableMap.keys()"),u.Ot=new Map,u.jt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.ft=function(t){return this.Ot.has(t)},i.has=function(t){var n=this;if(!$i.trackingDerivation)return this.ft(t);var i=this.jt.get(t);if(!i){var r=i=new Pi(this.ft(t),M,"ObservableMap.key?",!1);this.jt.set(t,r),Pt(r,(function(){return n.jt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ft(t);if(An(this)){var r=xn(this,{type:i?lr:Or,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.nn(t,n):this.in(t,n),this},i.delete=function(t){var n=this;if(An(this)&&!xn(this,{type:"delete",object:this,name:t}))return!1;if(this.ft(t)){var i=En(this),r=i?{observableKind:"map",debugObjectName:this.et,type:"delete",object:this,oldValue:this.Ot.get(t)._t,name:t}:null;return wn((function(){var i;n.wt.reportChanged(),null==(i=n.jt.get(t))||i.St(!1),n.Ot.get(t).St(void 0),n.Ot.delete(t)})),i&&Rn(this,r),!0}return!1},i.nn=function(t,n){var i=this.Ot.get(t);if((n=i.At(n))!==$i.UNCHANGED){var r=En(this),e=r?{observableKind:"map",debugObjectName:this.et,type:lr,object:this,oldValue:i._t,name:t,newValue:n}:null;i.St(n),r&&Rn(this,e)}},i.in=function(t,n){var i=this;wn((function(){var r,e=new Pi(n,i.zt,"ObservableMap.key",!1);i.Ot.set(t,e),n=e._t,null==(r=i.jt.get(t))||r.St(!0),i.wt.reportChanged()}));var r=En(this);r&&Rn(this,r?{observableKind:"map",debugObjectName:this.et,type:Or,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Jt(this.Ot.get(t).get()):this.Jt(void 0)},i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.wt.reportObserved(),this.Ot.keys()},i.values=function(){var t=this,n=this.keys();return Qn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return Qn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[yr]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return Ar(n)&&(n=new Map(n)),wn((function(){s(n)?function(t){var n=Object.keys(t);if(!ci)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return ei.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):l(n)?(n.constructor!==Map&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;wn((function(){lt((function(){for(var n,i=g(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return wn((function(){for(var r,e=function(n){if(l(n)||Ar(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,a=g(i.Ot.keys());!(r=a()).done;){var f=r.value;if(!e.has(f))if(i.delete(f))o=!0;else{var c=i.Ot.get(f);u.set(f,c)}}for(var h,v=g(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.Ot.has(b);if(i.set(b,y),i.Ot.has(b)){var m=i.Ot.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.Ot.size!==u.size)i.wt.reportChanged();else for(var w=i.Ot.keys(),O=u.keys(),j=w.next(),_=O.next();!j.done;){if(j.value!==_.value){i.wt.reportChanged();break}j=w.next(),_=O.next()}i.Ot=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.lt=function(t){return Mn(this,t)},i.ut=function(t){return Sn(this,t)},p(n,[{key:"size",get:function(){return this.wt.reportObserved(),this.Ot.size}},{key:pr,get:function(){return"Map"}}]),n}(),Ar=h("ObservableMap",_r),Sr={};jr=Symbol.iterator,gr=Symbol.toStringTag;var xr,Er,Mr=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.et=void 0,this[di]=Sr,this.Ot=new Set,this.yt=void 0,this.dt=void 0,this.vt=void 0,this.dehancer=void 0,this.zt=void 0,this.et=r,e(Set)||t(22),this.zt=function(t,n){return i(t,n,r)},$n((function(){u.yt=x(u.et),n&&u.replace(n)}))}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;wn((function(){lt((function(){for(var n,i=g(t.Ot.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(An(this)&&!xn(this,{type:Or,object:this,newValue:t}))return this;if(!this.has(t)){wn((function(){n.Ot.add(n.zt(t,void 0)),n.yt.reportChanged()}));var i=En(this);i&&Rn(this,i?{observableKind:"set",debugObjectName:this.et,type:Or,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(An(this)&&!xn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=En(this),r=i?{observableKind:"set",debugObjectName:this.et,type:"delete",object:this,oldValue:t}:null;return wn((function(){n.yt.reportChanged(),n.Ot.delete(t)})),i&&Rn(this,r),!0}return!1},i.has=function(t){return this.yt.reportObserved(),this.Ot.has(this.Jt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return Qn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.yt.reportObserved();var t=this,n=0,i=Array.from(this.Ot.values());return Qn({next:function(){return n<i.length?{value:t.Jt(i[n++]),done:!1}:{done:!0}}})},i.replace=function(n){var i=this;return Rr(n)&&(n=new Set(n)),wn((function(){Array.isArray(n)||v(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.lt=function(t){return Mn(this,t)},i.ut=function(t){return Sn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[jr]=function(){return this.values()},p(n,[{key:"size",get:function(){return this.yt.reportObserved(),this.Ot.size}},{key:gr,get:function(){return"Set"}}]),n}(),Rr=h("ObservableSet",Mr),Nr=Object.create(null),Vr=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=wi),this.h=void 0,this.O=void 0,this.et=void 0,this.rn=void 0,this.wt=void 0,this.dt=void 0,this.vt=void 0,this.v=void 0,this.p=void 0,this.en=void 0,this.un=void 0,this.h=t,this.O=n,this.et=i,this.rn=r,this.wt=new bi("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.j=function(t){return this.O.get(t).get()},i._=function(t,n){var i=this.O.get(t);if(i instanceof Wi)return i.set(n),!0;if(An(this)){var r=xn(this,{type:lr,object:this.v||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.At(n))!==$i.UNCHANGED){var e=En(this),u=e?{type:lr,observableKind:"object",debugObjectName:this.et,object:this.v||this.h,oldValue:i._t,name:t,newValue:n}:null;i.St(n),e&&Rn(this,u)}return!0},i.ct=function(t){return $i.trackingDerivation&&!b(this.h,t)&&this.ft(t),this.h[t]},i.st=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.O.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.rn,i)},i.ft=function(t){if(!$i.trackingDerivation)return t in this.h;this.un||(this.un=new Map);var n=this.un.get(t);return n||(n=new Pi(t in this.h,M,"ObservableObject.key?",!1),this.un.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.rn),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[vi])&&r[n])return;t(1,i.i,this.et+"."+n.toString())}for(var e=this.h;e&&e!==ei;){var u=ii(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}Gn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.rn),!1===i)return this.l(t,n,r);var e=i.s(this,t,n,r);return e&&Gn(this,0,t),e},i.l=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.at(t);if(!r)return r;if(An(this)){var e=xn(this,{object:this.v||this.h,name:t,type:Or,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=m({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else ri(this.h,t,n);this.on(t,n.value)}finally{At()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{_t();var e=this.at(t);if(!e)return e;if(An(this)){var u=xn(this,{object:this.v||this.h,name:t,type:Or,newValue:n});if(!u)return null;n=u.newValue}var o=Dn(t),s={configurable:!$i.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else ri(this.h,t,s);var a=new Pi(n,i,"ObservableObject.key",!1);this.O.set(t,a),this.on(t,a._t)}finally{At()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.at(t);if(!r)return r;if(An(this)&&!xn(this,{object:this.v||this.h,name:t,type:Or,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.h;var e=Dn(t),u={configurable:!$i.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else ri(this.h,t,u);this.O.set(t,new Wi(n)),this.on(t,void 0)}finally{At()}return!0},i.at=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(An(this)&&!xn(this,{object:this.v||this.h,name:t,type:"remove"}))return null;try{var i,r;_t();var e,u=En(this),o=this.O.get(t),s=void 0;if(!o&&u&&(s=null==(e=ii(this.h,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];o&&(this.O.delete(t),o instanceof Pi&&(s=o._t),xt(o)),this.wt.reportChanged(),null==(i=this.un)||null==(r=i.get(t))||r.set(t in this.h),u&&u&&Rn(this,{type:"remove",observableKind:"object",object:this.v||this.h,debugObjectName:this.et,oldValue:s,name:t})}finally{At()}return!0},i.lt=function(t){return Mn(this,t)},i.ut=function(t){return Sn(this,t)},i.on=function(t,n){var i,r,e=En(this);e&&e&&Rn(this,e?{type:Or,observableKind:"object",debugObjectName:this.et,object:this.v||this.h,name:t,newValue:n}:null),null==(i=this.un)||null==(r=i.get(t))||r.set(!0),this.wt.reportChanged()},i.ht=function(){return this.wt.reportObserved(),hi(this.h)},i.ot=function(){return this.wt.reportObserved(),Object.keys(this.h)},n}(),kr=h("ObservableObjectAdministration",Vr),Tr=Wn(0),Cr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),Ir=0,Lr=function(){};xr=Lr,Er=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(xr.prototype,Er):void 0!==xr.prototype.__proto__?xr.prototype.__proto__=Er:xr.prototype=Er;var Kr=function(t,n,i){function r(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,$n((function(){var t=new dr(r,i,e,!0);t.v=O(u),c(O(u),di,t),n&&n.length&&u.spliceWithArray(0,0,n),Cr&&Object.defineProperty(O(u),"0",Tr)})),u}w(r,t);var e=r.prototype;return e.concat=function(){this[di].yt.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return Kn(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return Qn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},p(r,[{key:"length",get:function(){return this[di].Ft()},set:function(t){this[di].Ht(t)}},{key:n,get:function(){return"Array"}}]),r}(Lr,Symbol.toStringTag,Symbol.iterator);Object.entries(br).forEach((function(t){var n=t[0];"concat"!==n&&f(Kr.prototype,n,t[1])})),Fn(1e3);var Pr=ei.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Nt,extras:{getDebugName:zn},$mobx:di});export{di as $mobx,Ut as FlowCancellationError,_r as ObservableMap,Mr as ObservableSet,Ji as Reaction,et as _allowStateChanges,kt as _allowStateChangesInsideComputed,yt as _allowStateReadsEnd,bt as _allowStateReadsStart,er as _autoAction,rt as _endAction,Xn as _getAdministration,mt as _getGlobalState,Yt as _interceptReads,ft as _isComputingDerivation,wt as _resetGlobalState,it as _startAction,rr as action,Ct as autorun,pi as comparer,Vi as computed,Bt as configure,x as createAtom,vn as defineProperty,an as entries,Gt as extendObservable,fr as flow,$t as flowResult,ln as get,Un as getAtom,zn as getDebugName,Wt as getDependencyTree,Ft as getObserverTree,hn as has,Qt as intercept,Tt as isAction,Di as isBoxedObservable,tn as isComputed,nn as isComputedProp,Jt as isFlow,Xt as isFlowCancellationError,en as isObservable,Kn as isObservableArray,Ar as isObservableMap,Bn as isObservableObject,un as isObservableProp,Rr as isObservableSet,on as keys,Vn as makeAutoObservable,Nn as makeObservable,Mi as observable,bn as observe,Kt as onBecomeObserved,Pt as onBecomeUnobserved,Et as onReactionError,mi as override,dn as ownKeys,Lt as reaction,cn as remove,kt as runInAction,fn as set,Nt as spy,pn as toJS,mn as trace,wn as transaction,lt as untracked,sn as values,On as when};
function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:ti}function i(){si||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===ai}function a(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function f(t,n,i){ri(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function c(t,n,i){ri(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function l(t){return t instanceof Map}function v(t){return t instanceof Set}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return ei.hasOwnProperty.call(t,n)}function y(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,"symbol"==typeof(e=function(t){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?e:String(e),r)}var e}function p(t,n,i){return n&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function w(t,n){var i,r;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,i=t,r=n,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(i,r)}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function g(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return j(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t){return Object.assign((function(n,i){if(S(i))return t.t(n,i);A(n,i,t)}),t)}function A(t,n,i){b(t,vi)||f(t,vi,m({},t[vi])),function(t){return"override"===t.i}(i)||(t[vi][n]=i)}function S(t){return"object"==typeof t&&"string"==typeof t.kind}function x(t,n,i){void 0===n&&(n=fi),void 0===i&&(i=fi);var r=new bi(t);return n!==fi&&Kt(r,n),i!==fi&&Pt(r,i),r}function E(t,n,i){return en(t)?t:Array.isArray(t)?Mi.array(t,{name:i}):s(t)?Mi.object(t,void 0,{name:i}):l(t)?Mi.map(t,{name:i}):v(t)?Mi.set(t,{name:i}):"function"!=typeof t||Tt(t)||Jt(t)?t:a(t)?fr(t):er(i,t)}function M(t){return t}function R(t,n){return{i:t,u:n,o:N,s:V,t:k}}function N(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Tt(i.value))return 1;var u=T(t,this,n,i,!1);return ri(r,n,u),2}function V(t,n,i,r){var e=T(t,this,n,i);return t.l(n,e,r)}function k(n,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,a,f,c,h,l;if("method"==r)return Tt(n)||(a=n,n=tt(null!=(f=null==(c=o.u)?void 0:c.name)?f:e.toString(),a,null!=(h=null==(l=o.u)?void 0:l.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),n;t("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){A(this,e,o)}))}function T(t,n,i,r,e){var u,o,s,a,f,c,h;void 0===e&&(e=$i.safeDescriptors);var l,v=r.value;return null!=(u=n.u)&&u.bound&&(v=v.bind(null!=(l=t.v)?l:t.h)),{value:tt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),v,null!=(a=null==(f=n.u)?void 0:f.autoAction)&&a,null!=(c=n.u)&&c.bound?null!=(h=t.v)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function C(t,n){return{i:t,u:n,o:I,s:L,t:K}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!b(t.h,n)||!Jt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Jt(i.value))return 1;var u=P(t,0,0,i,!1,!1);return ri(r,n,u),2}function L(t,n,i,r){var e,u=P(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.l(n,u,r)}function K(t,n){var i,r=n.name,e=n.addInitializer;return Jt(t)||(t=fr(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function P(t,n,i,r,e,u){void 0===u&&(u=$i.safeDescriptors);var o,s=r.value;return Jt(s)||(s=fr(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function D(t,n){return{i:t,u:n,o:B,s:G,t:W}}function B(t,n,i){return null===this.s(t,n,i,!1)?0:1}function G(t,n,i,r){return t.m(n,m({},this.u,{get:i.get,set:i.set}),r)}function W(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=Pn(this)[di],e=m({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.O.set(r,new Wi(e))})),function(){return this[di].j(r)}}function q(t,n){return{i:t,u:n,o:F,s:H,t:U}}function F(t,n,i){return null===this.s(t,n,i,!1)?0:1}function H(t,n,i,r){var e,u;return t.g(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function U(t,n){function i(t,n){var i,e,s=Pn(t)[di],a=new Pi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.O.set(u,a),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[di].j(u)},set:function(t){return o.has(this)||i(this,t),this[di]._(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function X(t){return{i:"true",u:t,o:z,s:$,t:J}}function z(t,n,i,r){var e,u,o,s;if(i.get)return Vi.o(t,n,i,r);if(i.set){var f=tt(n.toString(),i.set);return r===t.h?null===t.l(n,{configurable:!$i.safeDescriptors||t.p,set:f})?0:2:(ri(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return a(i.value)?(null!=(s=this.u)&&s.autoBind?fr.bound:fr).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?er.bound:er).o(t,n,i,r);var c,h=!1===(null==(e=this.u)?void 0:e.deep)?Mi.ref:Mi;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.h)),h.o(t,n,i,r)}function $(t,n,i,r){var e,u,o;return i.get?Vi.s(t,n,i,r):i.set?t.l(n,{configurable:!$i.safeDescriptors||t.p,set:tt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?Mi.ref:Mi).s(t,n,i,r))}function J(){t("'"+this.i+"' cannot be used as a decorator")}function Y(t){return t||Oi}function Q(t){return!0===t.deep?E:!1===t.deep?M:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function Z(t,n,i){return S(n)?ji.t(t,n):u(n)?void A(t,n,ji):en(t)?t:s(t)?Mi.object(t,n,i):Array.isArray(t)?Mi.array(t,n):l(t)?Mi.map(t,n):v(t)?Mi.set(t,n):"object"==typeof t&&null!==t?t:Mi.box(t,n)}function tt(t,n,i,r){function e(){return nt(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},Ii&&(Li.value=t,ri(e,"name",Li)),e}function nt(t,n,i,r,e){var u=it(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{rt(u)}}function it(t,n){var i=$i.trackingDerivation,r=!n||!i;_t();var e=$i.allowStateChanges;r&&(vt(),e=ut(!0));var u={S:r,M:i,R:e,N:bt(!0),V:!1,k:0,T:Ci++,C:Ti};return Ti=u.T,u}function rt(n){Ti!==n.T&&t(30),Ti=n.C,void 0!==n.A&&($i.suppressReactionErrors=!0),ot(n.R),yt(n.N),At(),n.S&&dt(n.M),$i.suppressReactionErrors=!1}function et(t,n){var i=ut(t);try{return n()}finally{ot(i)}}function ut(t){var n=$i.allowStateChanges;return $i.allowStateChanges=t,n}function ot(t){$i.allowStateChanges=t}function st(t){return t instanceof Fi}function at(t){switch(t.I){case Bi.L:return!1;case Bi.K:case Bi.P:return!0;case Bi.D:for(var n=bt(!0),i=vt(),r=t.B,e=r.length,u=0;u<e;u++){var o=r[u];if(qi(o)){if($i.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return dt(i),yt(n),!0}if(t.I===Bi.P)return dt(i),yt(n),!0}}return pt(t),dt(i),yt(n),!1}}function ft(){return null!==$i.trackingDerivation}function ct(t,n,i){var r=bt(!0);pt(t),t.G=new Array(0===t.W?100:t.B.length),t.q=0,t.W=++$i.runId;var e,u=$i.trackingDerivation;if($i.trackingDerivation=t,$i.inBatch++,!0===$i.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new Fi(t)}return $i.inBatch--,$i.trackingDerivation=u,function(t){for(var n=t.B,i=t.B=t.G,r=Bi.L,e=0,u=t.q,o=0;o<u;o++){var s=i[o];0===s.F&&(s.F=1,e!==o&&(i[e]=s),e++),s.I>r&&(r=s.I)}for(i.length=e,t.G=null,u=n.length;u--;){var a=n[u];0===a.F&&jt(a,t),a.F=0}for(;e--;){var f=i[e];1===f.F&&(f.F=0,Ot(f,t))}r!==Bi.L&&(t.I=r,t.H())}(t),yt(r),e}function ht(t){var n=t.B;t.B=[];for(var i=n.length;i--;)jt(n[i],t);t.I=Bi.K}function lt(t){var n=vt();try{return t()}finally{dt(n)}}function vt(){var t=$i.trackingDerivation;return $i.trackingDerivation=null,t}function dt(t){$i.trackingDerivation=t}function bt(t){var n=$i.allowStateReads;return $i.allowStateReads=t,n}function yt(t){$i.allowStateReads=t}function pt(t){if(t.I!==Bi.L){t.I=Bi.L;for(var n=t.B,i=n.length;i--;)n[i].U=Bi.L}}function mt(){return $i}function wt(){var t=new Ui;for(var n in t)-1===Hi.indexOf(n)&&($i[n]=t[n]);$i.allowStateChanges=!$i.enforceActions}function Ot(t,n){t.X.add(n),t.U>n.I&&(t.U=n.I)}function jt(t,n){t.X.delete(n),0===t.X.size&&gt(t)}function gt(t){!1===t.$&&(t.$=!0,$i.pendingUnobservations.push(t))}function _t(){$i.inBatch++}function At(){if(0==--$i.inBatch){Mt();for(var t=$i.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.$=!1,0===i.X.size&&(i.J&&(i.J=!1,i.onBUO()),i instanceof Wi&&i.Y())}$i.pendingUnobservations=[]}}function St(t){var n=$i.trackingDerivation;return null!==n?(n.W!==t.Z&&(t.Z=n.W,n.G[n.q++]=t,!t.J&&$i.trackingContext&&(t.J=!0,t.onBO())),t.J):(0===t.X.size&&$i.inBatch>0&&gt(t),!1)}function xt(t){t.U!==Bi.P&&(t.U=Bi.P,t.X.forEach((function(t){t.I===Bi.L&&t.H(),t.I=Bi.P})))}function Et(t){return $i.globalReactionErrorHandlers.push(t),function(){var n=$i.globalReactionErrorHandlers.indexOf(t);n>=0&&$i.globalReactionErrorHandlers.splice(n,1)}}function Mt(){$i.inBatch>0||$i.isRunningReactions||Yi(Rt)}function Rt(){$i.isRunningReactions=!0;for(var t=$i.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].tt()}$i.isRunningReactions=!1}function Nt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Vt(t){return function(n,i){return e(n)?tt(n.name||"<unnamed action>",n,t):e(i)?tt(n,i,t):S(i)?(t?nr:Zi).t(n,i):u(i)?A(n,i,t?nr:Zi):u(n)?_(R(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function kt(t){return nt(0,!1,t,this,void 0)}function Tt(t){return e(t)&&!0===t.isMobxAction}function Ct(t,n){function i(){t(a)}var r,e,u,o,s;void 0===n&&(n=oi);var a,f=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var c=It(n),h=!1;a=new Ji(f,(function(){h||(h=!0,c((function(){h=!1,a.nt||a.track(i)})))}),n.onError,n.requiresObservable)}else a=new Ji(f,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(o=u.signal)&&o.aborted||a.it(),a.rt(null==(s=n)?void 0:s.signal)}function It(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ur}function Lt(t,n,i){function r(){if(y=!1,!m.nt){var n=!1,r=c;m.track((function(){var i=et(!1,(function(){return t(m)}));n=b||!p(c,i),c=i})),(b&&i.fireImmediately||!b&&n)&&l(c,r,m),b=!1}}var e,u,o,s;void 0===i&&(i=oi);var a,f,c,h=null!=(e=i.name)?e:"Reaction",l=rr(h,i.onError?(a=i.onError,f=n,function(){try{return f.apply(this,arguments)}catch(t){a.call(this,t)}}):n),v=!i.scheduler&&!i.delay,d=It(i),b=!0,y=!1,p=i.compareStructural?pi.structural:i.equals||pi.default,m=new Ji(h,(function(){b||v?r():y||(y=!0,d(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(o=u.signal)&&o.aborted||m.it(),m.rt(null==(s=i)?void 0:s.signal)}function Kt(t,n,i){return Dt("onBO",t,n,i)}function Pt(t,n,i){return Dt("onBUO",t,n,i)}function Dt(t,n,i,r){var u="function"==typeof r?Un(n,i):Un(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Bt(i){!0===i.isolateGlobalState&&function(){if(($i.pendingReactions.length||$i.inBatch||$i.isRunningReactions)&&t(36),zi=!0,Xi){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),$i=new Ui}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&($i.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&($i.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;$i.enforceActions=s,$i.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&($i[t]=!!i[t])})),$i.allowStateReads=!$i.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=Yi,Yi=function(t){return r((function(){return e(t)}))})}function Gt(t,n,i,r){var e=li(n);return $n((function(){var n=Pn(t,r)[di];hi(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Wt(t,n){return qt(Un(t,n))}function qt(t){var n,i={name:t.et};return t.B&&t.B.length>0&&(i.dependencies=(n=t.B,Array.from(new Set(n))).map(qt)),i}function Ft(t,n){return Ht(Un(t,n))}function Ht(t){var n={name:t.et};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(Ht)),n}function Ut(){this.message="FLOW_CANCELLED"}function Xt(t){return t instanceof Ut}function zt(t){e(t.cancel)&&t.cancel()}function $t(t){return t}function Jt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Yt(t,n,i){var r;return Ar(t)||Kn(t)||Di(t)?r=Xn(t):Bn(t)&&(r=Xn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}}function Qt(t,n,i){return e(i)?function(t,n,i){return Xn(t,n).ut(i)}(t,n,i):function(t,n){return Xn(t).ut(n)}(t,n)}function Zt(t,n){if(void 0===n)return qi(t);if(!1===Bn(t))return!1;if(!t[di].O.has(n))return!1;var i=Un(t,n);return qi(i)}function tn(t){return Zt(t)}function nn(t,n){return Zt(t,n)}function rn(t,n){return!!t&&(void 0!==n?!!Bn(t)&&t[di].O.has(n):Bn(t)||!!t[di]||yi(t)||Qi(t)||qi(t))}function en(t){return rn(t)}function un(t,n){return rn(t,n)}function on(n){return Bn(n)?n[di].ot():Ar(n)||Rr(n)?Array.from(n.keys()):Kn(n)?n.map((function(t,n){return n})):void t(5)}function sn(n){return Bn(n)?on(n).map((function(t){return n[t]})):Ar(n)?on(n).map((function(t){return n.get(t)})):Rr(n)?Array.from(n.values()):Kn(n)?n.slice():void t(6)}function an(n){return Bn(n)?on(n).map((function(t){return[t,n[t]]})):Ar(n)?on(n).map((function(t){return[t,n.get(t)]})):Rr(n)?Array.from(n.entries()):Kn(n)?n.map((function(t,n){return[n,t]})):void t(7)}function fn(n,i,r){if(2!==arguments.length||Rr(n))Bn(n)?n[di].st(i,r):Ar(n)?n.set(i,r):Rr(n)?n.add(i):Kn(n)?("number"!=typeof i&&(i=parseInt(i,10)),i<0&&t("Invalid index: '"+i+"'"),_t(),i>=n.length&&(n.length=i+1),n[i]=r,At()):t(8);else{_t();var e=i;try{for(var u in e)fn(n,u,e[u])}finally{At()}}}function cn(n,i){Bn(n)?n[di].at(i):Ar(n)||Rr(n)?n.delete(i):Kn(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)}function hn(n,i){return Bn(n)?n[di].ft(i):Ar(n)||Rr(n)?n.has(i):Kn(n)?i>=0&&i<n.length:void t(10)}function ln(n,i){if(hn(n,i))return Bn(n)?n[di].ct(i):Ar(n)?n.get(i):Kn(n)?n[i]:void t(11)}function vn(n,i,r){if(Bn(n))return n[di].l(i,r);t(39)}function dn(n){if(Bn(n))return n[di].ht();t(38)}function bn(t,n,i,r){return e(i)?function(t,n,i,r){return Xn(t,n).lt(i,r)}(t,n,i,r):function(t,n,i){return Xn(t).lt(n,i)}(t,n,i)}function yn(t,n,i){return t.set(n,i),i}function pn(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!en(n))return n;if(Di(n)||qi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(Kn(n)){var r=yn(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Rr(n)){var e=yn(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Ar(n)){var u=yn(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=yn(i,n,{});return dn(n).forEach((function(r){ei.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)}function mn(){}function wn(t,n){void 0===n&&(n=void 0),_t();try{return t.apply(n)}finally{At()}}function On(t,n,i){return 1===arguments.length||n&&"object"==typeof n?gn(t,n):jn(t,n,i||{})}function jn(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[di].nt){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=tt("When-effect",n),o=Ct((function(n){et(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function gn(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=jn(t,i,m({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function _n(t){return t[di]}function An(t){return void 0!==t.vt&&t.vt.length>0}function Sn(t,n){var i=t.vt||(t.vt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function xn(n,i){var r=vt();try{for(var e=[].concat(n.vt||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{dt(r)}}function En(t){return void 0!==t.dt&&t.dt.length>0}function Mn(t,n){var i=t.dt||(t.dt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Rn(t,n){var i=vt(),r=t.dt;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);dt(i)}}function Nn(t,n,i){return $n((function(){var r=Pn(t,i)[di];null!=n||(n=function(t){return b(t,vi)||f(t,vi,m({},t[vi])),t[vi]}(t)),hi(n).forEach((function(t){return r.o(t,n[t])}))})),t}function Vn(t,n,i){return s(t)?Gt(t,t,n,i):($n((function(){var r=Pn(t,i)[di];if(!t[hr]){var e=Object.getPrototypeOf(t),u=new Set([].concat(hi(t),hi(e)));u.delete("constructor"),u.delete(di),f(e,hr,u)}t[hr].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)}function kn(t,n,r,e){return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i(),$n((function(){var i=new dr(r,n,e,!1);c(i.O,di,i);var u=new Proxy(i.O,vr);return i.v=u,t&&t.length&&i.bt(0,0,t),u}))}function Tn(t,n){"function"==typeof Array.prototype[t]&&(br[t]=n(t))}function Cn(t){return function(){var n=this[di];n.yt.reportObserved();var i=n.pt(n.O);return i[t].apply(i,arguments)}}function In(t){return function(n,i){var r=this,e=this[di];return e.yt.reportObserved(),e.pt(e.O)[t]((function(t,e){return n.call(i,t,e,r)}))}}function Ln(t){return function(){var n=this,i=this[di];i.yt.reportObserved();var r=i.pt(i.O),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function Kn(t){return o(t)&&mr(t[di])}function Pn(t,n){var i;if(b(t,di))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new Vr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:X(t):void 0}(n));return f(t,di,e),t}function Dn(t){return Nr[t]||(Nr[t]={get:function(){return this[di].j(t)},set:function(n){return this[di]._(t,n)}})}function Bn(t){return!!o(t)&&kr(t[di])}function Gn(t,n,i){var r;null==(r=t.h[vi])||delete r[i]}function Wn(t){return{enumerable:!1,configurable:!0,get:function(){return this[di].ct(t)},set:function(n){this[di].st(t,n)}}}function qn(t){ri(Kr.prototype,""+t,Wn(t))}function Fn(t){if(t>Ir){for(var n=Ir;n<t+100;n++)qn(n);Ir=t}}function Hn(t,n,i){return new Kr(t,n,i)}function Un(n,i){if("object"==typeof n&&null!==n){if(Kn(n))return void 0!==i&&t(23),n[di].yt;if(Rr(n))return n.yt;if(Ar(n)){if(void 0===i)return n.wt;var r=n.Ot.get(i)||n.jt.get(i);return r||t(25,i,zn(n)),r}if(Bn(n)){if(!i)return t(26);var u=n[di].O.get(i);return u||t(27,i,zn(n)),u}if(yi(n)||qi(n)||Qi(n))return n}else if(e(n)&&Qi(n[di]))return n[di];t(28)}function Xn(n,i){return n||t(29),void 0!==i?Xn(Un(n,i)):yi(n)||qi(n)||Qi(n)||Ar(n)||Rr(n)?n:n[di]?n[di]:void t(24,n)}function zn(t,n){var i;if(void 0!==n)i=Un(t,n);else{if(Tt(t))return t.name;i=Bn(t)||Ar(t)||Rr(t)?Xn(t):Un(t)}return i.et}function $n(t){var n=vt(),i=ut(!0);_t();try{return t()}finally{At(),ot(i),dt(n)}}function Jn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var a=Pr.call(n);if(a!==Pr.call(i))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Yn(n),i=Yn(i);var f="[object Array]"===a;if(!f){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(e(c)&&c instanceof c&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(u=u||[]).length;l--;)if(u[l]===n)return o[l]===i;if(u.push(n),o.push(i),f){if((l=n.length)!==i.length)return!1;for(;l--;)if(!t(n[l],i[l],r-1,u,o))return!1}else{var v,d=Object.keys(n);if(l=d.length,Object.keys(i).length!==l)return!1;for(;l--;)if(!b(i,v=d[l])||!t(n[v],i[v],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Yn(t){return Kn(t)?t.slice():l(t)||Ar(t)||v(t)||Rr(t)?Array.from(t.entries()):t}function Qn(t){return t[Symbol.iterator]=Zn,t}function Zn(){return this}var ti={},ni=Object.assign,ii=Object.getOwnPropertyDescriptor,ri=Object.defineProperty,ei=Object.prototype,ui=[];Object.freeze(ui);var oi={};Object.freeze(oi);var si="undefined"!=typeof Proxy,ai=Object.toString(),fi=function(){},ci=void 0!==Object.getOwnPropertySymbols,hi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:ci?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,li=Object.getOwnPropertyDescriptors||function(t){var n={};return hi(t).forEach((function(i){n[i]=ii(t,i)})),n},vi=Symbol("mobx-stored-annotations"),di=Symbol("mobx administration"),bi=function(){function t(t){void 0===t&&(t="Atom"),this.et=void 0,this.$=!1,this.J=!1,this.X=new Set,this.F=0,this.Z=0,this.U=Bi.K,this.onBOL=void 0,this.onBUOL=void 0,this.et=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return St(this)},n.reportChanged=function(){_t(),xt(this),At()},n.toString=function(){return this.et},t}(),yi=h("Atom",bi),pi={identity:function(t,n){return t===n},structural:function(t,n){return Jn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return Jn(t,n,1)}},mi=_({i:"override",o:function(){return 0},s:function(){t("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),wi=X(),Oi={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Oi);var ji=q("observable"),gi=q("observable.ref",{enhancer:M}),_i=q("observable.shallow",{enhancer:function(t,n,i){return null==t||Bn(t)||Kn(t)||Ar(t)||Rr(t)?t:Array.isArray(t)?Mi.array(t,{name:i,deep:!1}):s(t)?Mi.object(t,void 0,{name:i,deep:!1}):l(t)?Mi.map(t,{name:i,deep:!1}):v(t)?Mi.set(t,{name:i,deep:!1}):void 0}}),Ai=q("observable.struct",{enhancer:function(t,n){return Jn(t,n)?n:t}}),Si=_(ji);ni(Z,Si);var xi,Ei,Mi=ni(Z,{box:function(t,n){var i=Y(n);return new Pi(t,Q(i),i.name,!0,i.equals)},array:function(t,n){var i=Y(n);return(!1===$i.useProxies||!1===i.proxy?Hn:kn)(t,Q(i),i.name)},map:function(t,n){var i=Y(n);return new _r(t,Q(i),i.name)},set:function(t,n){var i=Y(n);return new Mr(t,Q(i),i.name)},object:function(t,n,r){return $n((function(){return Gt(!1===$i.useProxies||!1===(null==r?void 0:r.proxy)?Pn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=Pn(t,n))[di]).v)?e:r.v=new Proxy(t,cr)}({},r),t,n)}))},ref:_(gi),shallow:_(_i),deep:Si,struct:_(Ai)}),Ri=D("computed"),Ni=D("computed.struct",{equals:pi.structural}),Vi=function(t,n){if(S(n))return Ri.t(t,n);if(u(n))return A(t,n,Ri);if(s(t))return _(D("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new Wi(i)};Object.assign(Vi,Ri),Vi.struct=_(Ni);var ki,Ti=0,Ci=1,Ii=null!=(xi=null==(Ei=ii((function(){}),"name"))?void 0:Ei.configurable)&&xi,Li={value:"action",configurable:!0,writable:!1,enumerable:!1};ki=Symbol.toPrimitive;var Ki,Pi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=pi.default),(o=t.call(this,r)||this).enhancer=void 0,o.et=void 0,o.equals=void 0,o.gt=!1,o.vt=void 0,o.dt=void 0,o._t=void 0,o.dehancer=void 0,o.enhancer=i,o.et=r,o.equals=u,o._t=i(n,void 0,r),o}w(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.At(t))!==$i.UNCHANGED&&this.St(t)},i.At=function(t){if(An(this)){var n=xn(this,{object:this,type:lr,newValue:t});if(!n)return $i.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this._t,this.et),this.equals(this._t,t)?$i.UNCHANGED:t},i.St=function(t){var n=this._t;this._t=t,this.reportChanged(),En(this)&&Rn(this,{type:lr,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this._t)},i.ut=function(t){return Sn(this,t)},i.lt=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.et,object:this,type:lr,newValue:this._t,oldValue:void 0}),Mn(this,t)},i.raw=function(){return this._t},i.toJSON=function(){return this.get()},i.toString=function(){return this.et+"["+this._t+"]"},i.valueOf=function(){return d(this.get())},i[ki]=function(){return this.valueOf()},n}(bi),Di=h("ObservableValue",Pi);Ki=Symbol.toPrimitive;var Bi,Gi,Wi=function(){function n(n){this.I=Bi.K,this.B=[],this.G=null,this.J=!1,this.$=!1,this.X=new Set,this.F=0,this.W=0,this.Z=0,this.U=Bi.L,this.q=0,this._t=new Fi(null),this.et=void 0,this.xt=void 0,this.Et=!1,this.Mt=!1,this.derivation=void 0,this.Rt=void 0,this.Nt=Gi.NONE,this.Vt=void 0,this.kt=void 0,this.Tt=void 0,this.Ct=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.et=n.name||"ComputedValue",n.set&&(this.Rt=tt("ComputedValue-setter",n.set)),this.kt=n.equals||(n.compareStructural||n.struct?pi.structural:pi.default),this.Vt=n.context,this.Tt=n.requiresReaction,this.Ct=!!n.keepAlive}var i=n.prototype;return i.H=function(){!function(t){t.U===Bi.L&&(t.U=Bi.D,t.X.forEach((function(t){t.I===Bi.L&&(t.I=Bi.D,t.H())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.Et&&t(32,this.et,this.derivation),0!==$i.inBatch||0!==this.X.size||this.Ct){if(St(this),at(this)){var n=$i.trackingContext;this.Ct&&!n&&($i.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==Bi.P&&(t.U=Bi.P,t.X.forEach((function(n){n.I===Bi.D?n.I=Bi.P:n.I===Bi.L&&(t.U=Bi.L)})))}(this),$i.trackingContext=n}}else at(this)&&(this.It(),_t(),this._t=this.Lt(!1),At());var i=this._t;if(st(i))throw i.cause;return i},i.set=function(n){if(this.Rt){this.Mt&&t(33,this.et),this.Mt=!0;try{this.Rt.call(this.Vt,n)}finally{this.Mt=!1}}else t(34,this.et)},i.trackAndCompute=function(){var t=this._t,n=this.I===Bi.K,i=this.Lt(!0),r=n||st(t)||st(i)||!this.kt(t,i);return r&&(this._t=i),r},i.Lt=function(t){this.Et=!0;var n,i=ut(!1);if(t)n=ct(this,this.derivation,this.Vt);else if(!0===$i.disableErrorBoundaries)n=this.derivation.call(this.Vt);else try{n=this.derivation.call(this.Vt)}catch(t){n=new Fi(t)}return ot(i),this.Et=!1,n},i.Y=function(){this.Ct||(ht(this),this._t=void 0)},i.lt=function(t,n){var i=this,r=!0,e=void 0;return Ct((function(){var u=i.get();if(!r||n){var o=vt();t({observableKind:"computed",debugObjectName:i.et,type:lr,object:i,newValue:u,oldValue:e}),dt(o)}r=!1,e=u}))},i.It=function(){},i.toString=function(){return this.et+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[Ki]=function(){return this.valueOf()},n}(),qi=h("ComputedValue",Wi);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.L=0]="UP_TO_DATE_",t[t.D=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(Bi||(Bi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Gi||(Gi={}));var Fi=function(t){this.cause=void 0,this.cause=t},Hi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Ui=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Xi=!0,zi=!1,$i=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(Xi=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new Ui).version&&(Xi=!1),Xi?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new Ui):(setTimeout((function(){zi||t(35)}),1),new Ui)}(),Ji=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.et=void 0,this.Kt=void 0,this.Pt=void 0,this.Dt=void 0,this.B=[],this.G=[],this.I=Bi.K,this.F=0,this.W=0,this.q=0,this.nt=!1,this.Bt=!1,this.Gt=!1,this.Wt=!1,this.Nt=Gi.NONE,this.et=t,this.Kt=n,this.Pt=i,this.Dt=r}var n=t.prototype;return n.H=function(){this.it()},n.it=function(){this.Bt||(this.Bt=!0,$i.pendingReactions.push(this),Mt())},n.isScheduled=function(){return this.Bt},n.tt=function(){if(!this.nt){_t(),this.Bt=!1;var t=$i.trackingContext;if($i.trackingContext=this,at(this)){this.Gt=!0;try{this.Kt()}catch(t){this.qt(t)}}$i.trackingContext=t,At()}},n.track=function(t){if(!this.nt){_t(),this.Wt=!0;var n=$i.trackingContext;$i.trackingContext=this;var i=ct(this,t,void 0);$i.trackingContext=n,this.Wt=!1,this.Gt=!1,this.nt&&ht(this),st(i)&&this.qt(i.cause),At()}},n.qt=function(t){var n=this;if(this.Pt)this.Pt(t,this);else{if($i.disableErrorBoundaries)throw t;$i.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),$i.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.nt||(this.nt=!0,this.Wt||(_t(),ht(this),At()))},n.rt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[di]=this,i},n.toString=function(){return"Reaction["+this.et+"]"},n.trace=function(){},t}(),Yi=function(t){return t()},Qi=h("Reaction",Ji),Zi=R("action"),tr=R("action.bound",{bound:!0}),nr=R("autoAction",{autoAction:!0}),ir=R("autoAction.bound",{autoAction:!0,bound:!0}),rr=Vt(!1);Object.assign(rr,Zi);var er=Vt(!0);Object.assign(er,nr),rr.bound=_(tr),er.bound=_(ir);var ur=function(t){return t()},or=0;Ut.prototype=Object.create(Error.prototype);var sr=C("flow"),ar=C("flow.bound",{bound:!0}),fr=Object.assign((function(t,n){if(S(n))return sr.t(t,n);if(u(n))return A(t,n,sr);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++or,s=rr(r+" - runid: "+o+" - init",i).apply(n,u),a=void 0,f=new Promise((function(n,i){function u(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function f(t){var n;a=void 0;try{n=rr(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(a=Promise.resolve(t.value)).then(u,f);t.then(c,i)}var h=0;t=i,u(void 0)}));return f.cancel=rr(r+" - runid: "+o+" - cancel",(function(){try{a&&zt(a);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(fi,fi),zt(i),t(new Ut)}catch(n){t(n)}})),f};return o.isMobXFlow=!0,o}),sr);fr.bound=_(ar);var cr={has:function(t,n){return _n(t).ft(n)},get:function(t,n){return _n(t).ct(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=_n(t).st(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=_n(t).at(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=_n(t).l(n,i))||r},ownKeys:function(t){return _n(t).ht()},preventExtensions:function(){t(13)}},hr=Symbol("mobx-keys"),lr="update",vr={get:function(t,n){var i=t[di];return n===di?i:"length"===n?i.Ft():"string"!=typeof n||isNaN(n)?b(br,n)?br[n]:t[n]:i.ct(parseInt(n))},set:function(t,n,i){var r=t[di];return"length"===n&&r.Ht(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.st(parseInt(n),i),!0},preventExtensions:function(){t(15)}},dr=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Xt=void 0,this.yt=void 0,this.O=[],this.vt=void 0,this.dt=void 0,this.zt=void 0,this.dehancer=void 0,this.v=void 0,this.$t=0,this.Ut=i,this.Xt=r,this.yt=new bi(t),this.zt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.pt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.ut=function(t){return Sn(this,t)},i.lt=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.yt.et,type:"splice",index:0,added:this.O.slice(),addedCount:this.O.length,removed:[],removedCount:0}),Mn(this,t)},i.Ft=function(){return this.yt.reportObserved(),this.O.length},i.Ht=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.O.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.bt(i,0,r)}else this.bt(n,i-n)},i.Yt=function(n,i){n!==this.$t&&t(16),this.$t+=i,this.Xt&&i>0&&Fn(n+i+1)},i.bt=function(t,n,i){var r=this,e=this.O.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=ui),An(this)){var u=xn(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return ui;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.zt(t,void 0)})),this.Xt){var o=i.length-n;this.Yt(e,o)}var s=this.Qt(t,n,i);return 0===n&&0===i.length||this.Zt(t,i,s),this.pt(s)},i.Qt=function(t,n,i){var r;if(i.length<1e4)return(r=this.O).splice.apply(r,[t,n].concat(i));var e=this.O.slice(t,t+n),u=this.O.slice(t+n);this.O.length+=i.length-n;for(var o=0;o<i.length;o++)this.O[t+o]=i[o];for(var s=0;s<u.length;s++)this.O[t+i.length+s]=u[s];return e},i.tn=function(t,n,i){var r=!this.Ut&&!1,e=En(this),u=e||r?{observableKind:"array",object:this.v,type:lr,debugObjectName:this.yt.et,index:t,newValue:n,oldValue:i}:null;this.yt.reportChanged(),e&&Rn(this,u)},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=En(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.yt.et,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.yt.reportChanged(),e&&Rn(this,u)},i.ct=function(t){if(!(this.Xt&&t>=this.O.length))return this.yt.reportObserved(),this.Jt(this.O[t]);console.warn("[mobx] Out of bounds read: "+t)},i.st=function(n,i){var r=this.O;if(this.Xt&&n>r.length&&t(17,n,r.length),n<r.length){var e=r[n];if(An(this)){var u=xn(this,{type:lr,object:this.v,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.zt(i,e))!==e&&(r[n]=i,this.tn(n,i,e))}else{for(var o=new Array(n+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.bt(r.length,0,o)}},n}(),br={clear:function(){return this.splice(0)},replace:function(t){var n=this[di];return n.bt(0,n.O.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[di];switch(arguments.length){case 0:return[];case 1:return u.bt(t);case 2:return u.bt(t,n)}return u.bt(t,n,r)},spliceWithArray:function(t,n,i){return this[di].bt(t,n,i)},push:function(){for(var t=this[di],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.bt(t.O.length,0,i),t.O.length},pop:function(){return this.splice(Math.max(this[di].O.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[di],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.bt(0,0,i),t.O.length},reverse:function(){return $i.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){$i.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[di],i=n.pt(n.O).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};Tn("at",Cn),Tn("concat",Cn),Tn("flat",Cn),Tn("includes",Cn),Tn("indexOf",Cn),Tn("join",Cn),Tn("lastIndexOf",Cn),Tn("slice",Cn),Tn("toString",Cn),Tn("toLocaleString",Cn),Tn("toSorted",Cn),Tn("toSpliced",Cn),Tn("with",Cn),Tn("every",In),Tn("filter",In),Tn("find",In),Tn("findIndex",In),Tn("findLast",In),Tn("findLastIndex",In),Tn("flatMap",In),Tn("forEach",In),Tn("map",In),Tn("some",In),Tn("toReversed",In),Tn("reduce",Ln),Tn("reduceRight",Ln);var yr,pr,mr=h("ObservableArrayAdministration",dr),wr={},Or="add";yr=Symbol.iterator,pr=Symbol.toStringTag;var jr,gr,_r=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.zt=void 0,this.et=void 0,this[di]=wr,this.Ot=void 0,this.jt=void 0,this.wt=void 0,this.vt=void 0,this.dt=void 0,this.dehancer=void 0,this.zt=i,this.et=r,e(Map)||t(18),$n((function(){u.wt=x("ObservableMap.keys()"),u.Ot=new Map,u.jt=new Map,n&&u.merge(n)}))}var i=n.prototype;return i.ft=function(t){return this.Ot.has(t)},i.has=function(t){var n=this;if(!$i.trackingDerivation)return this.ft(t);var i=this.jt.get(t);if(!i){var r=i=new Pi(this.ft(t),M,"ObservableMap.key?",!1);this.jt.set(t,r),Pt(r,(function(){return n.jt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ft(t);if(An(this)){var r=xn(this,{type:i?lr:Or,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.nn(t,n):this.in(t,n),this},i.delete=function(t){var n=this;if(An(this)&&!xn(this,{type:"delete",object:this,name:t}))return!1;if(this.ft(t)){var i=En(this),r=i?{observableKind:"map",debugObjectName:this.et,type:"delete",object:this,oldValue:this.Ot.get(t)._t,name:t}:null;return wn((function(){var i;n.wt.reportChanged(),null==(i=n.jt.get(t))||i.St(!1),n.Ot.get(t).St(void 0),n.Ot.delete(t)})),i&&Rn(this,r),!0}return!1},i.nn=function(t,n){var i=this.Ot.get(t);if((n=i.At(n))!==$i.UNCHANGED){var r=En(this),e=r?{observableKind:"map",debugObjectName:this.et,type:lr,object:this,oldValue:i._t,name:t,newValue:n}:null;i.St(n),r&&Rn(this,e)}},i.in=function(t,n){var i=this;wn((function(){var r,e=new Pi(n,i.zt,"ObservableMap.key",!1);i.Ot.set(t,e),n=e._t,null==(r=i.jt.get(t))||r.St(!0),i.wt.reportChanged()}));var r=En(this);r&&Rn(this,r?{observableKind:"map",debugObjectName:this.et,type:Or,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Jt(this.Ot.get(t).get()):this.Jt(void 0)},i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.wt.reportObserved(),this.Ot.keys()},i.values=function(){var t=this,n=this.keys();return Qn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return Qn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[yr]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return Ar(n)&&(n=new Map(n)),wn((function(){s(n)?function(t){var n=Object.keys(t);if(!ci)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return ei.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):l(n)?(n.constructor!==Map&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;wn((function(){lt((function(){for(var n,i=g(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return wn((function(){for(var r,e=function(n){if(l(n)||Ar(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,a=g(i.Ot.keys());!(r=a()).done;){var f=r.value;if(!e.has(f))if(i.delete(f))o=!0;else{var c=i.Ot.get(f);u.set(f,c)}}for(var h,v=g(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.Ot.has(b);if(i.set(b,y),i.Ot.has(b)){var m=i.Ot.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.Ot.size!==u.size)i.wt.reportChanged();else for(var w=i.Ot.keys(),O=u.keys(),j=w.next(),_=O.next();!j.done;){if(j.value!==_.value){i.wt.reportChanged();break}j=w.next(),_=O.next()}i.Ot=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.lt=function(t){return Mn(this,t)},i.ut=function(t){return Sn(this,t)},p(n,[{key:"size",get:function(){return this.wt.reportObserved(),this.Ot.size}},{key:pr,get:function(){return"Map"}}]),n}(),Ar=h("ObservableMap",_r),Sr={};jr=Symbol.iterator,gr=Symbol.toStringTag;var xr,Er,Mr=function(){function n(n,i,r){var u=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.et=void 0,this[di]=Sr,this.Ot=new Set,this.yt=void 0,this.dt=void 0,this.vt=void 0,this.dehancer=void 0,this.zt=void 0,this.et=r,e(Set)||t(22),this.zt=function(t,n){return i(t,n,r)},$n((function(){u.yt=x(u.et),n&&u.replace(n)}))}var i=n.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;wn((function(){lt((function(){for(var n,i=g(t.Ot.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(An(this)&&!xn(this,{type:Or,object:this,newValue:t}))return this;if(!this.has(t)){wn((function(){n.Ot.add(n.zt(t,void 0)),n.yt.reportChanged()}));var i=En(this);i&&Rn(this,i?{observableKind:"set",debugObjectName:this.et,type:Or,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(An(this)&&!xn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=En(this),r=i?{observableKind:"set",debugObjectName:this.et,type:"delete",object:this,oldValue:t}:null;return wn((function(){n.yt.reportChanged(),n.Ot.delete(t)})),i&&Rn(this,r),!0}return!1},i.has=function(t){return this.yt.reportObserved(),this.Ot.has(this.Jt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return Qn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.yt.reportObserved();var t=this,n=0,i=Array.from(this.Ot.values());return Qn({next:function(){return n<i.length?{value:t.Jt(i[n++]),done:!1}:{done:!0}}})},i.replace=function(n){var i=this;return Rr(n)&&(n=new Set(n)),wn((function(){Array.isArray(n)||v(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.lt=function(t){return Mn(this,t)},i.ut=function(t){return Sn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[jr]=function(){return this.values()},p(n,[{key:"size",get:function(){return this.yt.reportObserved(),this.Ot.size}},{key:gr,get:function(){return"Set"}}]),n}(),Rr=h("ObservableSet",Mr),Nr=Object.create(null),Vr=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=wi),this.h=void 0,this.O=void 0,this.et=void 0,this.rn=void 0,this.wt=void 0,this.dt=void 0,this.vt=void 0,this.v=void 0,this.p=void 0,this.en=void 0,this.un=void 0,this.h=t,this.O=n,this.et=i,this.rn=r,this.wt=new bi("ObservableObject.keys"),this.p=s(this.h)}var i=n.prototype;return i.j=function(t){return this.O.get(t).get()},i._=function(t,n){var i=this.O.get(t);if(i instanceof Wi)return i.set(n),!0;if(An(this)){var r=xn(this,{type:lr,object:this.v||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.At(n))!==$i.UNCHANGED){var e=En(this),u=e?{type:lr,observableKind:"object",debugObjectName:this.et,object:this.v||this.h,oldValue:i._t,name:t,newValue:n}:null;i.St(n),e&&Rn(this,u)}return!0},i.ct=function(t){return $i.trackingDerivation&&!b(this.h,t)&&this.ft(t),this.h[t]},i.st=function(t,n,i){return void 0===i&&(i=!1),b(this.h,t)?this.O.has(t)?this._(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.rn,i)},i.ft=function(t){if(!$i.trackingDerivation)return t in this.h;this.un||(this.un=new Map);var n=this.un.get(t);return n||(n=new Pi(t in this.h,M,"ObservableObject.key?",!1),this.un.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.rn),!1!==i){if(!(n in this.h)){var r;if(null!=(r=this.h[vi])&&r[n])return;t(1,i.i,this.et+"."+n.toString())}for(var e=this.h;e&&e!==ei;){var u=ii(e,n);if(u){var o=i.o(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}Gn(this,0,n)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.rn),!1===i)return this.l(t,n,r);var e=i.s(this,t,n,r);return e&&Gn(this,0,t),e},i.l=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.at(t);if(!r)return r;if(An(this)){var e=xn(this,{object:this.v||this.h,name:t,type:Or,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=m({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else ri(this.h,t,n);this.on(t,n.value)}finally{At()}return!0},i.g=function(t,n,i,r){void 0===r&&(r=!1);try{_t();var e=this.at(t);if(!e)return e;if(An(this)){var u=xn(this,{object:this.v||this.h,name:t,type:Or,newValue:n});if(!u)return null;n=u.newValue}var o=Dn(t),s={configurable:!$i.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else ri(this.h,t,s);var a=new Pi(n,i,"ObservableObject.key",!1);this.O.set(t,a),this.on(t,a._t)}finally{At()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{_t();var r=this.at(t);if(!r)return r;if(An(this)&&!xn(this,{object:this.v||this.h,name:t,type:Or,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.h;var e=Dn(t),u={configurable:!$i.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else ri(this.h,t,u);this.O.set(t,new Wi(n)),this.on(t,void 0)}finally{At()}return!0},i.at=function(t,n){if(void 0===n&&(n=!1),!b(this.h,t))return!0;if(An(this)&&!xn(this,{object:this.v||this.h,name:t,type:"remove"}))return null;try{var i,r;_t();var e,u=En(this),o=this.O.get(t),s=void 0;if(!o&&u&&(s=null==(e=ii(this.h,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];o&&(this.O.delete(t),o instanceof Pi&&(s=o._t),xt(o)),this.wt.reportChanged(),null==(i=this.un)||null==(r=i.get(t))||r.set(t in this.h),u&&u&&Rn(this,{type:"remove",observableKind:"object",object:this.v||this.h,debugObjectName:this.et,oldValue:s,name:t})}finally{At()}return!0},i.lt=function(t){return Mn(this,t)},i.ut=function(t){return Sn(this,t)},i.on=function(t,n){var i,r,e=En(this);e&&e&&Rn(this,e?{type:Or,observableKind:"object",debugObjectName:this.et,object:this.v||this.h,name:t,newValue:n}:null),null==(i=this.un)||null==(r=i.get(t))||r.set(!0),this.wt.reportChanged()},i.ht=function(){return this.wt.reportObserved(),hi(this.h)},i.ot=function(){return this.wt.reportObserved(),Object.keys(this.h)},n}(),kr=h("ObservableObjectAdministration",Vr),Tr=Wn(0),Cr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),Ir=0,Lr=function(){};xr=Lr,Er=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(xr.prototype,Er):void 0!==xr.prototype.__proto__?xr.prototype.__proto__=Er:xr.prototype=Er;var Kr=function(t,n,i){function r(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,$n((function(){var t=new dr(r,i,e,!0);t.v=O(u),c(O(u),di,t),n&&n.length&&u.spliceWithArray(0,0,n),Cr&&Object.defineProperty(O(u),"0",Tr)})),u}w(r,t);var e=r.prototype;return e.concat=function(){this[di].yt.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return Kn(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return Qn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},p(r,[{key:"length",get:function(){return this[di].Ft()},set:function(t){this[di].Ht(t)}},{key:n,get:function(){return"Array"}}]),r}(Lr,Symbol.toStringTag,Symbol.iterator);Object.entries(br).forEach((function(t){var n=t[0];"concat"!==n&&f(Kr.prototype,n,t[1])})),Fn(1e3);var Pr=ei.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Nt,extras:{getDebugName:zn},$mobx:di});export{di as $mobx,Ut as FlowCancellationError,_r as ObservableMap,Mr as ObservableSet,Ji as Reaction,et as _allowStateChanges,kt as _allowStateChangesInsideComputed,yt as _allowStateReadsEnd,bt as _allowStateReadsStart,er as _autoAction,rt as _endAction,Xn as _getAdministration,mt as _getGlobalState,Yt as _interceptReads,ft as _isComputingDerivation,wt as _resetGlobalState,it as _startAction,rr as action,Ct as autorun,pi as comparer,Vi as computed,Bt as configure,x as createAtom,vn as defineProperty,an as entries,Gt as extendObservable,fr as flow,$t as flowResult,ln as get,Un as getAtom,zn as getDebugName,Wt as getDependencyTree,Ft as getObserverTree,hn as has,Qt as intercept,Tt as isAction,Di as isBoxedObservable,tn as isComputed,nn as isComputedProp,Jt as isFlow,Xt as isFlowCancellationError,en as isObservable,Kn as isObservableArray,Ar as isObservableMap,Bn as isObservableObject,un as isObservableProp,Rr as isObservableSet,on as keys,Vn as makeAutoObservable,Nn as makeObservable,Mi as observable,bn as observe,Kt as onBecomeObserved,Pt as onBecomeUnobserved,Et as onReactionError,mi as override,dn as ownKeys,Lt as reaction,cn as remove,kt as runInAction,fn as set,Nt as spy,pn as toJS,mn as trace,wn as transaction,lt as untracked,sn as values,On as when};
//# sourceMappingURL=mobx.esm.production.min.js.map

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).mobx={})}(this,(function(t){function n(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:En}function r(){Cn||n("Proxy not available")}function e(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function u(t){return"function"==typeof t}function o(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function s(t){return null!==t&&"object"==typeof t}function f(t){if(!s(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===In}function c(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function a(t,n,i){Rn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function h(t,n,i){Rn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function v(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return s(t)&&!0===t[i]}}function l(t){return t instanceof Map}function d(t){return t instanceof Set}function b(t){return null===t?null:"object"==typeof t?""+t:t}function y(t,n){return Tn.hasOwnProperty.call(t,n)}function p(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,"symbol"==typeof(e=function(t){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?e:String(e),r)}var e}function m(t,n,i){return n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(){return(w=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function j(t,n){var i,r;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,i=t,r=n,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(i,r)}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function g(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return _(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(t){return Object.assign((function(n,i){if(x(i))return t.t(n,i);S(n,i,t)}),t)}function S(t,n,i){y(t,Wn)||a(t,Wn,w({},t[Wn])),function(t){return"override"===t.i}(i)||(t[Wn][n]=i)}function x(t){return"object"==typeof t&&"string"==typeof t.kind}function M(t,n,i){void 0===n&&(n=Kn),void 0===i&&(i=Kn);var r=new Gn(t);return n!==Kn&&kt(r,n),i!==Kn&&Lt(r,i),r}function E(t,n,i){return Ht(t)?t:Array.isArray(t)?ii.array(t,{name:i}):f(t)?ii.object(t,void 0,{name:i}):l(t)?ii.map(t,{name:i}):d(t)?ii.set(t,{name:i}):"function"!=typeof t||Vt(t)||Wt(t)?t:c(t)?Ki(t):Ti(i,t)}function N(t){return t}function V(t,n){return{i:t,u:n,o:R,s:T,t:k}}function R(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Vt(i.value))return 1;var u=L(t,this,n,i,!1);return Rn(r,n,u),2}function T(t,n,i,r){var e=L(t,this,n,i);return t.v(n,e,r)}function k(t,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,v;if("method"==r)return Vt(t)||(f=t,t=nt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(v=o.u)?void 0:v.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),t;n("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){S(this,e,o)}))}function L(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=gi.safeDescriptors);var v,l=r.value;return null!=(u=n.u)&&u.bound&&(l=l.bind(null!=(v=t.l)?v:t.h)),{value:nt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.l)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function C(t,n){return{i:t,u:n,o:I,s:K,t:P}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!y(t.h,n)||!Wt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Wt(i.value))return 1;var u=D(t,0,0,i,!1,!1);return Rn(r,n,u),2}function K(t,n,i,r){var e,u=D(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.v(n,u,r)}function P(t,n){var i,r=n.name,e=n.addInitializer;return Wt(t)||(t=Ki(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function D(t,n,i,r,e,u){void 0===u&&(u=gi.safeDescriptors);var o,s=r.value;return Wt(s)||(s=Ki(s)),e&&((s=s.bind(null!=(o=t.l)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function B(t,n){return{i:t,u:n,o:W,s:q,t:G}}function W(t,n,i){return null===this.s(t,n,i,!1)?0:1}function q(t,n,i,r){return t.m(n,w({},this.u,{get:i.get,set:i.set}),r)}function G(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=vn(this)[qn],e=w({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new yi(e))})),function(){return this[qn].O(r)}}function H(t,n){return{i:t,u:n,o:X,s:U,t:F}}function X(t,n,i){return null===this.s(t,n,i,!1)?0:1}function U(t,n,i,r){var e,u;return t._(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function F(t,n){function i(t,n){var i,e,s=vn(t)[qn],f=new vi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[qn].O(u)},set:function(t){return o.has(this)||i(this,t),this[qn].g(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function z(t){return{i:"true",u:t,o:$,s:J,t:Y}}function $(t,n,i,r){var e,u,o,s;if(i.get)return ui.o(t,n,i,r);if(i.set){var f=nt(n.toString(),i.set);return r===t.h?null===t.v(n,{configurable:!gi.safeDescriptors||t.p,set:f})?0:2:(Rn(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return c(i.value)?(null!=(s=this.u)&&s.autoBind?Ki.bound:Ki).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ti.bound:Ti).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ii.ref:ii;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.l)?a:t.h)),h.o(t,n,i,r)}function J(t,n,i,r){var e,u,o;return i.get?ui.s(t,n,i,r):i.set?t.v(n,{configurable:!gi.safeDescriptors||t.p,set:nt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.l)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ii.ref:ii).s(t,n,i,r))}function Y(){n("'"+this.i+"' cannot be used as a decorator")}function Q(t){return t||zn}function Z(t){return!0===t.deep?E:!1===t.deep?N:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function tt(t,n,i){return x(n)?$n.t(t,n):o(n)?void S(t,n,$n):Ht(t)?t:f(t)?ii.object(t,n,i):Array.isArray(t)?ii.array(t,n):l(t)?ii.map(t,n):d(t)?ii.set(t,n):"object"==typeof t&&null!==t?t:ii.box(t,n)}function nt(t,n,i,r){function e(){return it(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},ci&&(ai.value=t,Rn(e,"name",ai)),e}function it(t,n,i,r,e){var u=rt(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{et(u)}}function rt(t,n){var i=gi.trackingDerivation,r=!n||!i;Ot();var e=gi.allowStateChanges;r&&(lt(),e=ot(!0));var u={S:r,M:i,N:e,V:bt(!0),R:!1,T:0,k:fi++,L:si};return si=u.k,u}function et(t){si!==t.k&&n(30),si=t.L,void 0!==t.A&&(gi.suppressReactionErrors=!0),st(t.N),yt(t.V),_t(),t.S&&dt(t.M),gi.suppressReactionErrors=!1}function ut(t,n){var i=ot(t);try{return n()}finally{st(i)}}function ot(t){var n=gi.allowStateChanges;return gi.allowStateChanges=t,n}function st(t){gi.allowStateChanges=t}function ft(t){return t instanceof mi}function ct(t){switch(t.C){case di.I:return!1;case di.K:case di.P:return!0;case di.D:for(var n=bt(!0),i=lt(),r=t.B,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(gi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return dt(i),yt(n),!0}if(t.C===di.P)return dt(i),yt(n),!0}}return pt(t),dt(i),yt(n),!1}}function at(t,n,i){var r=bt(!0);pt(t),t.W=new Array(t.B.length+100),t.q=0,t.G=++gi.runId;var e,u=gi.trackingDerivation;if(gi.trackingDerivation=t,gi.inBatch++,!0===gi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new mi(t)}return gi.inBatch--,gi.trackingDerivation=u,function(t){for(var n=t.B,i=t.B=t.W,r=di.I,e=0,u=t.q,o=0;o<u;o++){var s=i[o];0===s.H&&(s.H=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.H&&wt(f,t),f.H=0}for(;e--;){var c=i[e];1===c.H&&(c.H=0,mt(c,t))}r!==di.I&&(t.C=r,t.X())}(t),yt(r),e}function ht(t){var n=t.B;t.B=[];for(var i=n.length;i--;)wt(n[i],t);t.C=di.K}function vt(t){var n=lt();try{return t()}finally{dt(n)}}function lt(){var t=gi.trackingDerivation;return gi.trackingDerivation=null,t}function dt(t){gi.trackingDerivation=t}function bt(t){var n=gi.allowStateReads;return gi.allowStateReads=t,n}function yt(t){gi.allowStateReads=t}function pt(t){if(t.C!==di.I){t.C=di.I;for(var n=t.B,i=n.length;i--;)n[i].U=di.I}}function mt(t,n){t.F.add(n),t.U>n.C&&(t.U=n.C)}function wt(t,n){t.F.delete(n),0===t.F.size&&jt(t)}function jt(t){!1===t.$&&(t.$=!0,gi.pendingUnobservations.push(t))}function Ot(){gi.inBatch++}function _t(){if(0==--gi.inBatch){St();for(var t=gi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.$=!1,0===i.F.size&&(i.J&&(i.J=!1,i.onBUO()),i instanceof yi&&i.Y())}gi.pendingUnobservations=[]}}function gt(t){var n=gi.trackingDerivation;return null!==n?(n.G!==t.Z&&(t.Z=n.G,n.W[n.q++]=t,!t.J&&gi.trackingContext&&(t.J=!0,t.onBO())),t.J):(0===t.F.size&&gi.inBatch>0&&jt(t),!1)}function At(t){t.U!==di.P&&(t.U=di.P,t.F.forEach((function(t){t.C===di.I&&t.X(),t.C=di.P})))}function St(){gi.inBatch>0||gi.isRunningReactions||Si(xt)}function xt(){gi.isRunningReactions=!0;for(var t=gi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].tt()}gi.isRunningReactions=!1}function Mt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Et(t){return function(n,i){return u(n)?nt(n.name||"<unnamed action>",n,t):u(i)?nt(n,i,t):x(i)?(t?Ni:Mi).t(n,i):o(i)?S(n,i,t?Ni:Mi):o(n)?A(V(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Nt(t){return it(0,!1,t,this,void 0)}function Vt(t){return u(t)&&!0===t.isMobxAction}function Rt(t,n){function i(){t(f)}var r,e,u,o,s;void 0===n&&(n=Ln);var f,c=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var a=Tt(n),h=!1;f=new Ai(c,(function(){h||(h=!0,a((function(){h=!1,f.nt||f.track(i)})))}),n.onError,n.requiresObservable)}else f=new Ai(c,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(o=u.signal)&&o.aborted||f.it(),f.rt(null==(s=n)?void 0:s.signal)}function Tt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ki}function kt(t,n,i){return Ct("onBO",t,n,i)}function Lt(t,n,i){return Ct("onBUO",t,n,i)}function Ct(t,n,i,r){var e="function"==typeof r?jn(n,i):jn(n),o=u(r)?r:i,s=t+"L";return e[s]?e[s].add(o):e[s]=new Set([o]),function(){var t=e[s];t&&(t.delete(o),0===t.size&&delete e[s])}}function It(t,n,i,r){var e=Bn(n);return gn((function(){var n=vn(t,r)[qn];Dn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Kt(t){var n,i={name:t.et};return t.B&&t.B.length>0&&(i.dependencies=(n=t.B,Array.from(new Set(n))).map(Kt)),i}function Pt(t){var n={name:t.et};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Pt)),n}function Dt(){this.message="FLOW_CANCELLED"}function Bt(t){u(t.cancel)&&t.cancel()}function Wt(t){return!0===(null==t?void 0:t.isMobXFlow)}function qt(t,n){if(void 0===n)return pi(t);if(!1===dn(t))return!1;if(!t[qn].j.has(n))return!1;var i=jn(t,n);return pi(i)}function Gt(t,n){return!!t&&(void 0!==n?!!dn(t)&&t[qn].j.has(n):dn(t)||!!t[qn]||Hn(t)||xi(t)||pi(t))}function Ht(t){return Gt(t)}function Xt(t){return dn(t)?t[qn].ut():Qi(t)||rr(t)?Array.from(t.keys()):hn(t)?t.map((function(t,n){return n})):void n(5)}function Ut(t,i){return dn(t)?t[qn].ot(i):Qi(t)||rr(t)?t.has(i):hn(t)?i>=0&&i<t.length:void n(10)}function Ft(t){if(dn(t))return t[qn].st();n(38)}function zt(t,n,i){return t.set(n,i),i}function $t(t,n){void 0===n&&(n=void 0),Ot();try{return t.apply(n)}finally{_t()}}function Jt(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[qn].nt){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=nt("When-effect",n),o=Rt((function(n){ut(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Yt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=Jt(t,i,w({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Qt(t){return t[qn]}function Zt(t){return void 0!==t.ft&&t.ft.length>0}function tn(t,n){var i=t.ft||(t.ft=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function nn(t,i){var r=lt();try{for(var e=[].concat(t.ft||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&n(14),i);u++);return i}finally{dt(r)}}function rn(t){return void 0!==t.ct&&t.ct.length>0}function en(t,n){var i=t.ct||(t.ct=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function un(t,n){var i=lt(),r=t.ct;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);dt(i)}}function on(t,n,i,e){return void 0===i&&(i="ObservableArray"),void 0===e&&(e=!1),r(),gn((function(){var r=new qi(i,n,e,!1);h(r.j,qn,r);var u=new Proxy(r.j,Wi);return r.l=u,t&&t.length&&r.at(0,0,t),u}))}function sn(t,n){"function"==typeof Array.prototype[t]&&(Gi[t]=n(t))}function fn(t){return function(){var n=this[qn];n.ht.reportObserved();var i=n.vt(n.j);return i[t].apply(i,arguments)}}function cn(t){return function(n,i){var r=this,e=this[qn];return e.ht.reportObserved(),e.vt(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function an(t){return function(){var n=this,i=this[qn];i.ht.reportObserved();var r=i.vt(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function hn(t){return s(t)&&Ui(t[qn])}function vn(t,n){var i;if(y(t,qn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new ur(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:z(t):void 0}(n));return a(t,qn,e),t}function ln(t){return er[t]||(er[t]={get:function(){return this[qn].O(t)},set:function(n){return this[qn].g(t,n)}})}function dn(t){return!!s(t)&&or(t[qn])}function bn(t,n,i){var r;null==(r=t.h[Wn])||delete r[i]}function yn(t){return{enumerable:!1,configurable:!0,get:function(){return this[qn].lt(t)},set:function(n){this[qn].dt(t,n)}}}function pn(t){Rn(hr.prototype,""+t,yn(t))}function mn(t){if(t>cr){for(var n=cr;n<t+100;n++)pn(n);cr=t}}function wn(t,n,i){return new hr(t,n,i)}function jn(t,i){if("object"==typeof t&&null!==t){if(hn(t))return void 0!==i&&n(23),t[qn].ht;if(rr(t))return t.ht;if(Qi(t)){if(void 0===i)return t.bt;var r=t.yt.get(i)||t.pt.get(i);return r||n(25,i,_n(t)),r}if(dn(t)){if(!i)return n(26);var e=t[qn].j.get(i);return e||n(27,i,_n(t)),e}if(Hn(t)||pi(t)||xi(t))return t}else if(u(t)&&xi(t[qn]))return t[qn];n(28)}function On(t,i){return t||n(29),void 0!==i?On(jn(t,i)):Hn(t)||pi(t)||xi(t)||Qi(t)||rr(t)?t:t[qn]?t[qn]:void n(24,t)}function _n(t,n){var i;if(void 0!==n)i=jn(t,n);else{if(Vt(t))return t.name;i=dn(t)||Qi(t)||rr(t)?On(t):jn(t)}return i.et}function gn(t){var n=lt(),i=ot(!0);Ot();try{return t()}finally{_t(),st(i),dt(n)}}function An(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,e,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=vr.call(n);if(f!==vr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Sn(n),i=Sn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(u(a)&&a instanceof a&&u(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(e=e||[]).length;v--;)if(e[v]===n)return o[v]===i;if(e.push(n),o.push(i),c){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,e,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!y(i,l=d[v])||!t(n[l],i[l],r-1,e,o))return!1}return e.pop(),o.pop(),!0}(t,n,i)}function Sn(t){return hn(t)?t.slice():l(t)||Qi(t)||d(t)||rr(t)?Array.from(t.entries()):t}function xn(t){return t[Symbol.iterator]=Mn,t}function Mn(){return this}var En={},Nn=Object.assign,Vn=Object.getOwnPropertyDescriptor,Rn=Object.defineProperty,Tn=Object.prototype,kn=[];Object.freeze(kn);var Ln={};Object.freeze(Ln);var Cn="undefined"!=typeof Proxy,In=Object.toString(),Kn=function(){},Pn=void 0!==Object.getOwnPropertySymbols,Dn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Pn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bn=Object.getOwnPropertyDescriptors||function(t){var n={};return Dn(t).forEach((function(i){n[i]=Vn(t,i)})),n},Wn=Symbol("mobx-stored-annotations"),qn=Symbol("mobx administration"),Gn=function(){function t(t){void 0===t&&(t="Atom"),this.et=void 0,this.$=!1,this.J=!1,this.F=new Set,this.H=0,this.Z=0,this.U=di.K,this.onBOL=void 0,this.onBUOL=void 0,this.et=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return gt(this)},n.reportChanged=function(){Ot(),At(this),_t()},n.toString=function(){return this.et},t}(),Hn=v("Atom",Gn),Xn={identity:function(t,n){return t===n},structural:function(t,n){return An(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return An(t,n,1)}},Un=A({i:"override",o:function(){return 0},s:function(){n("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),Fn=z(),zn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(zn);var $n=H("observable"),Jn=H("observable.ref",{enhancer:N}),Yn=H("observable.shallow",{enhancer:function(t,n,i){return null==t||dn(t)||hn(t)||Qi(t)||rr(t)?t:Array.isArray(t)?ii.array(t,{name:i,deep:!1}):f(t)?ii.object(t,void 0,{name:i,deep:!1}):l(t)?ii.map(t,{name:i,deep:!1}):d(t)?ii.set(t,{name:i,deep:!1}):void 0}}),Qn=H("observable.struct",{enhancer:function(t,n){return An(t,n)?n:t}}),Zn=A($n);Nn(tt,Zn);var ti,ni,ii=Nn(tt,{box:function(t,n){var i=Q(n);return new vi(t,Z(i),i.name,!0,i.equals)},array:function(t,n){var i=Q(n);return(!1===gi.useProxies||!1===i.proxy?wn:on)(t,Z(i),i.name)},map:function(t,n){var i=Q(n);return new Yi(t,Z(i),i.name)},set:function(t,n){var i=Q(n);return new ir(t,Z(i),i.name)},object:function(t,n,i){return gn((function(){return It(!1===gi.useProxies||!1===(null==i?void 0:i.proxy)?vn({},i):function(t,n){var i,e;return r(),null!=(e=(i=(t=vn(t,n))[qn]).l)?e:i.l=new Proxy(t,Pi)}({},i),t,n)}))},ref:A(Jn),shallow:A(Yn),deep:Zn,struct:A(Qn)}),ri=B("computed"),ei=B("computed.struct",{equals:Xn.structural}),ui=function(t,n){if(x(n))return ri.t(t,n);if(o(n))return S(t,n,ri);if(f(t))return A(B("computed",t));var i=f(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new yi(i)};Object.assign(ui,ri),ui.struct=A(ei);var oi,si=0,fi=1,ci=null!=(ti=null==(ni=Vn((function(){}),"name"))?void 0:ni.configurable)&&ti,ai={value:"action",configurable:!0,writable:!1,enumerable:!1};oi=Symbol.toPrimitive;var hi,vi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Xn.default),(o=t.call(this,r)||this).enhancer=void 0,o.et=void 0,o.equals=void 0,o.wt=!1,o.ft=void 0,o.ct=void 0,o.jt=void 0,o.dehancer=void 0,o.enhancer=i,o.et=r,o.equals=u,o.jt=i(n,void 0,r),o}j(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.Ot(t))!==gi.UNCHANGED&&this._t(t)},i.Ot=function(t){if(Zt(this)){var n=nn(this,{object:this,type:Bi,newValue:t});if(!n)return gi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.et),this.equals(this.jt,t)?gi.UNCHANGED:t},i._t=function(t){var n=this.jt;this.jt=t,this.reportChanged(),rn(this)&&un(this,{type:Bi,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i.gt=function(t){return tn(this,t)},i.At=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.et,object:this,type:Bi,newValue:this.jt,oldValue:void 0}),en(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.et+"["+this.jt+"]"},i.valueOf=function(){return b(this.get())},i[oi]=function(){return this.valueOf()},n}(Gn),li=v("ObservableValue",vi);hi=Symbol.toPrimitive;var di,bi,yi=function(){function t(t){this.C=di.K,this.B=[],this.W=null,this.J=!1,this.$=!1,this.F=new Set,this.H=0,this.G=0,this.Z=0,this.U=di.I,this.q=0,this.jt=new mi(null),this.et=void 0,this.St=void 0,this.xt=!1,this.Mt=!1,this.derivation=void 0,this.Et=void 0,this.Nt=bi.NONE,this.Vt=void 0,this.Rt=void 0,this.Tt=void 0,this.kt=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||n(31),this.derivation=t.get,this.et=t.name||"ComputedValue",t.set&&(this.Et=nt("ComputedValue-setter",t.set)),this.Rt=t.equals||(t.compareStructural||t.struct?Xn.structural:Xn.default),this.Vt=t.context,this.Tt=t.requiresReaction,this.kt=!!t.keepAlive}var i=t.prototype;return i.X=function(){!function(t){t.U===di.I&&(t.U=di.D,t.F.forEach((function(t){t.C===di.I&&(t.C=di.D,t.X())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.xt&&n(32,this.et,this.derivation),0!==gi.inBatch||0!==this.F.size||this.kt){if(gt(this),ct(this)){var t=gi.trackingContext;this.kt&&!t&&(gi.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==di.P&&(t.U=di.P,t.F.forEach((function(n){n.C===di.D?n.C=di.P:n.C===di.I&&(t.U=di.I)})))}(this),gi.trackingContext=t}}else ct(this)&&(this.Lt(),Ot(),this.jt=this.Ct(!1),_t());var i=this.jt;if(ft(i))throw i.cause;return i},i.set=function(t){if(this.Et){this.Mt&&n(33,this.et),this.Mt=!0;try{this.Et.call(this.Vt,t)}finally{this.Mt=!1}}else n(34,this.et)},i.trackAndCompute=function(){var t=this.jt,n=this.C===di.K,i=this.Ct(!0),r=n||ft(t)||ft(i)||!this.Rt(t,i);return r&&(this.jt=i),r},i.Ct=function(t){this.xt=!0;var n,i=ot(!1);if(t)n=at(this,this.derivation,this.Vt);else if(!0===gi.disableErrorBoundaries)n=this.derivation.call(this.Vt);else try{n=this.derivation.call(this.Vt)}catch(t){n=new mi(t)}return st(i),this.xt=!1,n},i.Y=function(){this.kt||(ht(this),this.jt=void 0)},i.At=function(t,n){var i=this,r=!0,e=void 0;return Rt((function(){var u=i.get();if(!r||n){var o=lt();t({observableKind:"computed",debugObjectName:i.et,type:Bi,object:i,newValue:u,oldValue:e}),dt(o)}r=!1,e=u}))},i.Lt=function(){},i.toString=function(){return this.et+"["+this.derivation.toString()+"]"},i.valueOf=function(){return b(this.get())},i[hi]=function(){return this.valueOf()},t}(),pi=v("ComputedValue",yi);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.D=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(di||(di={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(bi||(bi={}));var mi=function(t){this.cause=void 0,this.cause=t},wi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],ji=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Oi=!0,_i=!1,gi=function(){var t=i();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Oi=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new ji).version&&(Oi=!1),Oi?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new ji):(setTimeout((function(){_i||n(35)}),1),new ji)}(),Ai=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.et=void 0,this.It=void 0,this.Kt=void 0,this.Pt=void 0,this.B=[],this.W=[],this.C=di.K,this.H=0,this.G=0,this.q=0,this.nt=!1,this.Dt=!1,this.Bt=!1,this.Wt=!1,this.Nt=bi.NONE,this.et=t,this.It=n,this.Kt=i,this.Pt=r}var n=t.prototype;return n.X=function(){this.it()},n.it=function(){this.Dt||(this.Dt=!0,gi.pendingReactions.push(this),St())},n.isScheduled=function(){return this.Dt},n.tt=function(){if(!this.nt){Ot(),this.Dt=!1;var t=gi.trackingContext;if(gi.trackingContext=this,ct(this)){this.Bt=!0;try{this.It()}catch(t){this.qt(t)}}gi.trackingContext=t,_t()}},n.track=function(t){if(!this.nt){Ot(),this.Wt=!0;var n=gi.trackingContext;gi.trackingContext=this;var i=at(this,t,void 0);gi.trackingContext=n,this.Wt=!1,this.Bt=!1,this.nt&&ht(this),ft(i)&&this.qt(i.cause),_t()}},n.qt=function(t){var n=this;if(this.Kt)this.Kt(t,this);else{if(gi.disableErrorBoundaries)throw t;gi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),gi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.nt||(this.nt=!0,this.Wt||(Ot(),ht(this),_t()))},n.rt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[qn]=this,i},n.toString=function(){return"Reaction["+this.et+"]"},n.trace=function(){},t}(),Si=function(t){return t()},xi=v("Reaction",Ai),Mi=V("action"),Ei=V("action.bound",{bound:!0}),Ni=V("autoAction",{autoAction:!0}),Vi=V("autoAction.bound",{autoAction:!0,bound:!0}),Ri=Et(!1);Object.assign(Ri,Mi);var Ti=Et(!0);Object.assign(Ti,Ni),Ri.bound=A(Ei),Ti.bound=A(Vi);var ki=function(t){return t()},Li=0;Dt.prototype=Object.create(Error.prototype);var Ci=C("flow"),Ii=C("flow.bound",{bound:!0}),Ki=Object.assign((function(t,n){if(x(n))return Ci.t(t,n);if(o(n))return S(t,n,Ci);var i=t,r=i.name||"<unnamed flow>",e=function(){var t,n=this,e=arguments,o=++Li,s=Ri(r+" - runid: "+o+" - init",i).apply(n,e),f=void 0,c=new Promise((function(n,i){function e(t){var n;f=void 0;try{n=Ri(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Ri(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!u(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(e,c);t.then(a,i)}var h=0;t=i,e(void 0)}));return c.cancel=Ri(r+" - runid: "+o+" - cancel",(function(){try{f&&Bt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(Kn,Kn),Bt(i),t(new Dt)}catch(n){t(n)}})),c};return e.isMobXFlow=!0,e}),Ci);Ki.bound=A(Ii);var Pi={has:function(t,n){return Qt(t).ot(n)},get:function(t,n){return Qt(t).lt(n)},set:function(t,n,i){var r;return!!o(n)&&(null==(r=Qt(t).dt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!o(n)&&(null==(i=Qt(t).Gt(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Qt(t).v(n,i))||r},ownKeys:function(t){return Qt(t).st()},preventExtensions:function(){n(13)}},Di=Symbol("mobx-keys"),Bi="update",Wi={get:function(t,n){var i=t[qn];return n===qn?i:"length"===n?i.Ht():"string"!=typeof n||isNaN(n)?y(Gi,n)?Gi[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[qn];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.dt(parseInt(n),i),!0},preventExtensions:function(){n(15)}},qi=function(){function t(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Ft=void 0,this.ht=void 0,this.j=[],this.ft=void 0,this.ct=void 0,this.zt=void 0,this.dehancer=void 0,this.l=void 0,this.$t=0,this.Ut=i,this.Ft=r,this.ht=new Gn(t),this.zt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=t.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.vt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.gt=function(t){return tn(this,t)},i.At=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),en(this,t)},i.Ht=function(){return this.ht.reportObserved(),this.j.length},i.Xt=function(t){("number"!=typeof t||isNaN(t)||t<0)&&n("Out of range: "+t);var i=this.j.length;if(t!==i)if(t>i){for(var r=new Array(t-i),e=0;e<t-i;e++)r[e]=void 0;this.at(i,0,r)}else this.at(t,i-t)},i.Yt=function(t,i){t!==this.$t&&n(16),this.$t+=i,this.Ft&&i>0&&mn(t+i+1)},i.at=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=kn),Zt(this)){var u=nn(this,{object:this.l,type:"splice",index:t,removedCount:n,added:i});if(!u)return kn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.zt(t,void 0)})),this.Ft){var o=i.length-n;this.Yt(e,o)}var s=this.Qt(t,n,i);return 0===n&&0===i.length||this.Zt(t,i,s),this.vt(s)},i.Qt=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.tn=function(t,n,i){var r=!this.Ut&&!1,e=rn(this),u=e||r?{observableKind:"array",object:this.l,type:Bi,debugObjectName:this.ht.et,index:t,newValue:n,oldValue:i}:null;this.ht.reportChanged(),e&&un(this,u)},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=rn(this),u=e||r?{observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.ht.reportChanged(),e&&un(this,u)},i.lt=function(t){if(!(this.Ft&&t>=this.j.length))return this.ht.reportObserved(),this.Jt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.dt=function(t,i){var r=this.j;if(this.Ft&&t>r.length&&n(17,t,r.length),t<r.length){var e=r[t];if(Zt(this)){var u=nn(this,{type:Bi,object:this.l,index:t,newValue:i});if(!u)return;i=u.newValue}(i=this.zt(i,e))!==e&&(r[t]=i,this.tn(t,i,e))}else{for(var o=new Array(t+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.at(r.length,0,o)}},t}(),Gi={clear:function(){return this.splice(0)},replace:function(t){var n=this[qn];return n.at(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[qn];switch(arguments.length){case 0:return[];case 1:return u.at(t);case 2:return u.at(t,n)}return u.at(t,n,r)},spliceWithArray:function(t,n,i){return this[qn].at(t,n,i)},push:function(){for(var t=this[qn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[qn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[qn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(0,0,i),t.j.length},reverse:function(){return gi.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){gi.trackingDerivation&&n(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[qn],i=n.vt(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};sn("at",fn),sn("concat",fn),sn("flat",fn),sn("includes",fn),sn("indexOf",fn),sn("join",fn),sn("lastIndexOf",fn),sn("slice",fn),sn("toString",fn),sn("toLocaleString",fn),sn("toSorted",fn),sn("toSpliced",fn),sn("with",fn),sn("every",cn),sn("filter",cn),sn("find",cn),sn("findIndex",cn),sn("findLast",cn),sn("findLastIndex",cn),sn("flatMap",cn),sn("forEach",cn),sn("map",cn),sn("some",cn),sn("toReversed",cn),sn("reduce",an),sn("reduceRight",an);var Hi,Xi,Ui=v("ObservableArrayAdministration",qi),Fi={},zi="add";Hi=Symbol.iterator,Xi=Symbol.toStringTag;var $i,Ji,Yi=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.zt=void 0,this.et=void 0,this[qn]=Fi,this.yt=void 0,this.pt=void 0,this.bt=void 0,this.ft=void 0,this.ct=void 0,this.dehancer=void 0,this.zt=i,this.et=r,u(Map)||n(18),gn((function(){e.bt=M("ObservableMap.keys()"),e.yt=new Map,e.pt=new Map,t&&e.merge(t)}))}var i=t.prototype;return i.ot=function(t){return this.yt.has(t)},i.has=function(t){var n=this;if(!gi.trackingDerivation)return this.ot(t);var i=this.pt.get(t);if(!i){var r=i=new vi(this.ot(t),N,"ObservableMap.key?",!1);this.pt.set(t,r),Lt(r,(function(){return n.pt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ot(t);if(Zt(this)){var r=nn(this,{type:i?Bi:zi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.nn(t,n):this.in(t,n),this},i.delete=function(t){var n=this;if(Zt(this)&&!nn(this,{type:"delete",object:this,name:t}))return!1;if(this.ot(t)){var i=rn(this),r=i?{observableKind:"map",debugObjectName:this.et,type:"delete",object:this,oldValue:this.yt.get(t).jt,name:t}:null;return $t((function(){var i;n.bt.reportChanged(),null==(i=n.pt.get(t))||i._t(!1),n.yt.get(t)._t(void 0),n.yt.delete(t)})),i&&un(this,r),!0}return!1},i.nn=function(t,n){var i=this.yt.get(t);if((n=i.Ot(n))!==gi.UNCHANGED){var r=rn(this),e=r?{observableKind:"map",debugObjectName:this.et,type:Bi,object:this,oldValue:i.jt,name:t,newValue:n}:null;i._t(n),r&&un(this,e)}},i.in=function(t,n){var i=this;$t((function(){var r,e=new vi(n,i.zt,"ObservableMap.key",!1);i.yt.set(t,e),n=e.jt,null==(r=i.pt.get(t))||r._t(!0),i.bt.reportChanged()}));var r=rn(this);r&&un(this,r?{observableKind:"map",debugObjectName:this.et,type:zi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Jt(this.yt.get(t).get()):this.Jt(void 0)},i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.yt.keys()},i.values=function(){var t=this,n=this.keys();return xn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return xn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Hi]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(t){var i=this;return Qi(t)&&(t=new Map(t)),$t((function(){f(t)?function(t){var n=Object.keys(t);if(!Pn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Tn.propertyIsEnumerable.call(t,n)}))):n}(t).forEach((function(n){return i.set(n,t[n])})):Array.isArray(t)?t.forEach((function(t){return i.set(t[0],t[1])})):l(t)?(t.constructor!==Map&&n(19,t),t.forEach((function(t,n){return i.set(n,t)}))):null!=t&&n(20,t)})),this},i.clear=function(){var t=this;$t((function(){vt((function(){for(var n,i=g(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(t){var i=this;return $t((function(){for(var r,e=function(t){if(l(t)||Qi(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){var i=new Map;for(var r in t)i.set(r,t[r]);return i}return n(21,t)}(t),u=new Map,o=!1,s=g(i.yt.keys());!(r=s()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.yt.get(c);u.set(c,a)}}for(var h,v=g(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.yt.has(b);if(i.set(b,y),i.yt.has(b)){var m=i.yt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.yt.size!==u.size)i.bt.reportChanged();else for(var w=i.yt.keys(),j=u.keys(),O=w.next(),_=j.next();!O.done;){if(O.value!==_.value){i.bt.reportChanged();break}O=w.next(),_=j.next()}i.yt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.At=function(t){return en(this,t)},i.gt=function(t){return tn(this,t)},m(t,[{key:"size",get:function(){return this.bt.reportObserved(),this.yt.size}},{key:Xi,get:function(){return"Map"}}]),t}(),Qi=v("ObservableMap",Yi),Zi={};$i=Symbol.iterator,Ji=Symbol.toStringTag;var tr,nr,ir=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.et=void 0,this[qn]=Zi,this.yt=new Set,this.ht=void 0,this.ct=void 0,this.ft=void 0,this.dehancer=void 0,this.zt=void 0,this.et=r,u(Set)||n(22),this.zt=function(t,n){return i(t,n,r)},gn((function(){e.ht=M(e.et),t&&e.replace(t)}))}var i=t.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;$t((function(){vt((function(){for(var n,i=g(t.yt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(Zt(this)&&!nn(this,{type:zi,object:this,newValue:t}))return this;if(!this.has(t)){$t((function(){n.yt.add(n.zt(t,void 0)),n.ht.reportChanged()}));var i=rn(this);i&&un(this,i?{observableKind:"set",debugObjectName:this.et,type:zi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(Zt(this)&&!nn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=rn(this),r=i?{observableKind:"set",debugObjectName:this.et,type:"delete",object:this,oldValue:t}:null;return $t((function(){n.ht.reportChanged(),n.yt.delete(t)})),i&&un(this,r),!0}return!1},i.has=function(t){return this.ht.reportObserved(),this.yt.has(this.Jt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return xn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.ht.reportObserved();var t=this,n=0,i=Array.from(this.yt.values());return xn({next:function(){return n<i.length?{value:t.Jt(i[n++]),done:!1}:{done:!0}}})},i.replace=function(t){var i=this;return rr(t)&&(t=new Set(t)),$t((function(){Array.isArray(t)||d(t)?(i.clear(),t.forEach((function(t){return i.add(t)}))):null!=t&&n("Cannot initialize set from "+t)})),this},i.At=function(t){return en(this,t)},i.gt=function(t){return tn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[$i]=function(){return this.values()},m(t,[{key:"size",get:function(){return this.ht.reportObserved(),this.yt.size}},{key:Ji,get:function(){return"Set"}}]),t}(),rr=v("ObservableSet",ir),er=Object.create(null),ur=function(){function t(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=Fn),this.h=void 0,this.j=void 0,this.et=void 0,this.rn=void 0,this.bt=void 0,this.ct=void 0,this.ft=void 0,this.l=void 0,this.p=void 0,this.en=void 0,this.un=void 0,this.h=t,this.j=n,this.et=i,this.rn=r,this.bt=new Gn("ObservableObject.keys"),this.p=f(this.h)}var i=t.prototype;return i.O=function(t){return this.j.get(t).get()},i.g=function(t,n){var i=this.j.get(t);if(i instanceof yi)return i.set(n),!0;if(Zt(this)){var r=nn(this,{type:Bi,object:this.l||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.Ot(n))!==gi.UNCHANGED){var e=rn(this),u=e?{type:Bi,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,oldValue:i.jt,name:t,newValue:n}:null;i._t(n),e&&un(this,u)}return!0},i.lt=function(t){return gi.trackingDerivation&&!y(this.h,t)&&this.ot(t),this.h[t]},i.dt=function(t,n,i){return void 0===i&&(i=!1),y(this.h,t)?this.j.has(t)?this.g(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.rn,i)},i.ot=function(t){if(!gi.trackingDerivation)return t in this.h;this.un||(this.un=new Map);var n=this.un.get(t);return n||(n=new vi(t in this.h,N,"ObservableObject.key?",!1),this.un.set(t,n)),n.get()},i.o=function(t,i){if(!0===i&&(i=this.rn),!1!==i){if(!(t in this.h)){var r;if(null!=(r=this.h[Wn])&&r[t])return;n(1,i.i,this.et+"."+t.toString())}for(var e=this.h;e&&e!==Tn;){var u=Vn(e,t);if(u){var o=i.o(this,t,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}bn(this,0,t)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.rn),!1===i)return this.v(t,n,r);var e=i.s(this,t,n,r);return e&&bn(this,0,t),e},i.v=function(t,n,i){void 0===i&&(i=!1);try{Ot();var r=this.Gt(t);if(!r)return r;if(Zt(this)){var e=nn(this,{object:this.l||this.h,name:t,type:zi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=w({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Rn(this.h,t,n);this.on(t,n.value)}finally{_t()}return!0},i._=function(t,n,i,r){void 0===r&&(r=!1);try{Ot();var e=this.Gt(t);if(!e)return e;if(Zt(this)){var u=nn(this,{object:this.l||this.h,name:t,type:zi,newValue:n});if(!u)return null;n=u.newValue}var o=ln(t),s={configurable:!gi.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Rn(this.h,t,s);var f=new vi(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.on(t,f.jt)}finally{_t()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{Ot();var r=this.Gt(t);if(!r)return r;if(Zt(this)&&!nn(this,{object:this.l||this.h,name:t,type:zi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var e=ln(t),u={configurable:!gi.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Rn(this.h,t,u);this.j.set(t,new yi(n)),this.on(t,void 0)}finally{_t()}return!0},i.Gt=function(t,n){if(void 0===n&&(n=!1),!y(this.h,t))return!0;if(Zt(this)&&!nn(this,{object:this.l||this.h,name:t,type:"remove"}))return null;try{var i,r;Ot();var e,u=rn(this),o=this.j.get(t),s=void 0;if(!o&&u&&(s=null==(e=Vn(this.h,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];o&&(this.j.delete(t),o instanceof vi&&(s=o.jt),At(o)),this.bt.reportChanged(),null==(i=this.un)||null==(r=i.get(t))||r.set(t in this.h),u&&u&&un(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.et,oldValue:s,name:t})}finally{_t()}return!0},i.At=function(t){return en(this,t)},i.gt=function(t){return tn(this,t)},i.on=function(t,n){var i,r,e=rn(this);e&&e&&un(this,e?{type:zi,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,name:t,newValue:n}:null),null==(i=this.un)||null==(r=i.get(t))||r.set(!0),this.bt.reportChanged()},i.st=function(){return this.bt.reportObserved(),Dn(this.h)},i.ut=function(){return this.bt.reportObserved(),Object.keys(this.h)},t}(),or=v("ObservableObjectAdministration",ur),sr=yn(0),fr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),cr=0,ar=function(){};tr=ar,nr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(tr.prototype,nr):void 0!==tr.prototype.__proto__?tr.prototype.__proto__=nr:tr.prototype=nr;var hr=function(t,n,i){function r(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,gn((function(){var t=new qi(r,i,e,!0);t.l=O(u),h(O(u),qn,t),n&&n.length&&u.spliceWithArray(0,0,n),fr&&Object.defineProperty(O(u),"0",sr)})),u}j(r,t);var e=r.prototype;return e.concat=function(){this[qn].ht.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return hn(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return xn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},m(r,[{key:"length",get:function(){return this[qn].Ht()},set:function(t){this[qn].Xt(t)}},{key:n,get:function(){return"Array"}}]),r}(ar,Symbol.toStringTag,Symbol.iterator);Object.entries(Gi).forEach((function(t){var n=t[0];"concat"!==n&&a(hr.prototype,n,t[1])})),mn(1e3);var vr=Tn.toString;["Symbol","Map","Set"].forEach((function(t){void 0===i()[t]&&n("MobX requires global '"+t+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Mt,extras:{getDebugName:_n},$mobx:qn}),t.$mobx=qn,t.FlowCancellationError=Dt,t.ObservableMap=Yi,t.ObservableSet=ir,t.Reaction=Ai,t._allowStateChanges=ut,t._allowStateChangesInsideComputed=Nt,t._allowStateReadsEnd=yt,t._allowStateReadsStart=bt,t._autoAction=Ti,t._endAction=et,t._getAdministration=On,t._getGlobalState=function(){return gi},t._interceptReads=function(t,n,i){var r;return Qi(t)||hn(t)||li(t)?r=On(t):dn(t)&&(r=On(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},t._isComputingDerivation=function(){return null!==gi.trackingDerivation},t._resetGlobalState=function(){var t=new ji;for(var n in t)-1===wi.indexOf(n)&&(gi[n]=t[n]);gi.allowStateChanges=!gi.enforceActions},t._startAction=rt,t.action=Ri,t.autorun=Rt,t.comparer=Xn,t.computed=ui,t.configure=function(t){!0===t.isolateGlobalState&&function(){if((gi.pendingReactions.length||gi.inBatch||gi.isRunningReactions)&&n(36),_i=!0,Oi){var t=i();0==--t.__mobxInstanceCount&&(t.__mobxGlobals=void 0),gi=new ji}}();var r,e,u=t.useProxies,o=t.enforceActions;if(void 0!==u&&(gi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(gi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;gi.enforceActions=s,gi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(n){n in t&&(gi[n]=!!t[n])})),gi.allowStateReads=!gi.observableRequiresReaction,t.reactionScheduler&&(r=t.reactionScheduler,e=Si,Si=function(t){return r((function(){return e(t)}))})},t.createAtom=M,t.defineProperty=function(t,i,r){if(dn(t))return t[qn].v(i,r);n(39)},t.entries=function(t){return dn(t)?Xt(t).map((function(n){return[n,t[n]]})):Qi(t)?Xt(t).map((function(n){return[n,t.get(n)]})):rr(t)?Array.from(t.entries()):hn(t)?t.map((function(t,n){return[n,t]})):void n(7)},t.extendObservable=It,t.flow=Ki,t.flowResult=function(t){return t},t.get=function(t,i){if(Ut(t,i))return dn(t)?t[qn].lt(i):Qi(t)?t.get(i):hn(t)?t[i]:void n(11)},t.getAtom=jn,t.getDebugName=_n,t.getDependencyTree=function(t,n){return Kt(jn(t,n))},t.getObserverTree=function(t,n){return Pt(jn(t,n))},t.has=Ut,t.intercept=function(t,n,i){return u(i)?function(t,n,i){return On(t,n).gt(i)}(t,n,i):function(t,n){return On(t).gt(n)}(t,n)},t.isAction=Vt,t.isBoxedObservable=li,t.isComputed=function(t){return qt(t)},t.isComputedProp=function(t,n){return qt(t,n)},t.isFlow=Wt,t.isFlowCancellationError=function(t){return t instanceof Dt},t.isObservable=Ht,t.isObservableArray=hn,t.isObservableMap=Qi,t.isObservableObject=dn,t.isObservableProp=function(t,n){return Gt(t,n)},t.isObservableSet=rr,t.keys=Xt,t.makeAutoObservable=function(t,n,i){return f(t)?It(t,t,n,i):(gn((function(){var r=vn(t,i)[qn];if(!t[Di]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Dn(t),Dn(e)));u.delete("constructor"),u.delete(qn),a(e,Di,u)}t[Di].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},t.makeObservable=function(t,n,i){return gn((function(){var r=vn(t,i)[qn];null!=n||(n=function(t){return y(t,Wn)||a(t,Wn,w({},t[Wn])),t[Wn]}(t)),Dn(n).forEach((function(t){return r.o(t,n[t])}))})),t},t.observable=ii,t.observe=function(t,n,i,r){return u(i)?function(t,n,i,r){return On(t,n).At(i,r)}(t,n,i,r):function(t,n,i){return On(t).At(n,i)}(t,n,i)},t.onBecomeObserved=kt,t.onBecomeUnobserved=Lt,t.onReactionError=function(t){return gi.globalReactionErrorHandlers.push(t),function(){var n=gi.globalReactionErrorHandlers.indexOf(t);n>=0&&gi.globalReactionErrorHandlers.splice(n,1)}},t.override=Un,t.ownKeys=Ft,t.reaction=function(t,n,i){function r(){if(p=!1,!w.nt){var n=!1;w.track((function(){var i=ut(!1,(function(){return t(w)}));n=y||!m(a,i),h=a,a=i})),(y&&i.fireImmediately||!y&&n)&&l(a,h,w),y=!1}}var e,u,o,s;void 0===i&&(i=Ln);var f,c,a,h,v=null!=(e=i.name)?e:"Reaction",l=Ri(v,i.onError?(f=i.onError,c=n,function(){try{return c.apply(this,arguments)}catch(t){f.call(this,t)}}):n),d=!i.scheduler&&!i.delay,b=Tt(i),y=!0,p=!1,m=i.compareStructural?Xn.structural:i.equals||Xn.default,w=new Ai(v,(function(){y||d?r():p||(p=!0,b(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(o=u.signal)&&o.aborted||w.it(),w.rt(null==(s=i)?void 0:s.signal)},t.remove=function(t,i){dn(t)?t[qn].Gt(i):Qi(t)||rr(t)?t.delete(i):hn(t)?("number"!=typeof i&&(i=parseInt(i,10)),t.splice(i,1)):n(9)},t.runInAction=Nt,t.set=function t(i,r,e){if(2!==arguments.length||rr(i))dn(i)?i[qn].dt(r,e):Qi(i)?i.set(r,e):rr(i)?i.add(r):hn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&n("Invalid index: '"+r+"'"),Ot(),r>=i.length&&(i.length=r+1),i[r]=e,_t()):n(8);else{Ot();var u=r;try{for(var o in u)t(i,o,u[o])}finally{_t()}}},t.spy=Mt,t.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Ht(n))return n;if(li(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(hn(n)){var r=zt(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(rr(n)){var e=zt(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Qi(n)){var u=zt(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=zt(i,n,{});return Ft(n).forEach((function(r){Tn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},t.trace=function(){},t.transaction=$t,t.untracked=vt,t.values=function(t){return dn(t)?Xt(t).map((function(n){return t[n]})):Qi(t)?Xt(t).map((function(n){return t.get(n)})):rr(t)?Array.from(t.values()):hn(t)?t.slice():void n(6)},t.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Yt(t,n):Jt(t,n,i||{})},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).mobx={})}(this,(function(t){function n(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:En}function r(){Cn||n("Proxy not available")}function e(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function u(t){return"function"==typeof t}function o(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function s(t){return null!==t&&"object"==typeof t}function f(t){if(!s(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===In}function c(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function a(t,n,i){Rn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function h(t,n,i){Rn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function v(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return s(t)&&!0===t[i]}}function l(t){return t instanceof Map}function d(t){return t instanceof Set}function b(t){return null===t?null:"object"==typeof t?""+t:t}function y(t,n){return Tn.hasOwnProperty.call(t,n)}function p(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,"symbol"==typeof(e=function(t){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?e:String(e),r)}var e}function m(t,n,i){return n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(){return(w=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function j(t,n){var i,r;t.prototype=Object.create(n.prototype),t.prototype.constructor=t,i=t,r=n,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(i,r)}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function g(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return _(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(t){return Object.assign((function(n,i){if(x(i))return t.t(n,i);S(n,i,t)}),t)}function S(t,n,i){y(t,Wn)||a(t,Wn,w({},t[Wn])),function(t){return"override"===t.i}(i)||(t[Wn][n]=i)}function x(t){return"object"==typeof t&&"string"==typeof t.kind}function M(t,n,i){void 0===n&&(n=Kn),void 0===i&&(i=Kn);var r=new Gn(t);return n!==Kn&&kt(r,n),i!==Kn&&Lt(r,i),r}function E(t,n,i){return Ht(t)?t:Array.isArray(t)?ii.array(t,{name:i}):f(t)?ii.object(t,void 0,{name:i}):l(t)?ii.map(t,{name:i}):d(t)?ii.set(t,{name:i}):"function"!=typeof t||Vt(t)||Wt(t)?t:c(t)?Ki(t):Ti(i,t)}function N(t){return t}function V(t,n){return{i:t,u:n,o:R,s:T,t:k}}function R(t,n,i,r){var e;if(null!=(e=this.u)&&e.bound)return null===this.s(t,n,i,!1)?0:1;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(Vt(i.value))return 1;var u=L(t,this,n,i,!1);return Rn(r,n,u),2}function T(t,n,i,r){var e=L(t,this,n,i);return t.v(n,e,r)}function k(t,i){var r=i.kind,e=i.name,u=i.addInitializer,o=this;if("field"!=r){var s,f,c,a,h,v;if("method"==r)return Vt(t)||(f=t,t=nt(null!=(c=null==(a=o.u)?void 0:a.name)?c:e.toString(),f,null!=(h=null==(v=o.u)?void 0:v.autoAction)&&h)),null!=(s=this.u)&&s.bound&&u((function(){var t=this[e].bind(this);t.isMobxAction=!0,this[e]=t})),t;n("Cannot apply '"+o.i+"' to '"+String(e)+"' (kind: "+r+"):\n'"+o.i+"' can only be used on properties with a function value.")}else u((function(){S(this,e,o)}))}function L(t,n,i,r,e){var u,o,s,f,c,a,h;void 0===e&&(e=gi.safeDescriptors);var v,l=r.value;return null!=(u=n.u)&&u.bound&&(l=l.bind(null!=(v=t.l)?v:t.h)),{value:nt(null!=(o=null==(s=n.u)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(c=n.u)?void 0:c.autoAction)&&f,null!=(a=n.u)&&a.bound?null!=(h=t.l)?h:t.h:void 0),configurable:!e||t.p,enumerable:!1,writable:!e}}function C(t,n){return{i:t,u:n,o:I,s:K,t:P}}function I(t,n,i,r){var e;if(r===t.h)return null===this.s(t,n,i,!1)?0:2;if(null!=(e=this.u)&&e.bound&&(!y(t.h,n)||!Wt(t.h[n]))&&null===this.s(t,n,i,!1))return 0;if(Wt(i.value))return 1;var u=D(t,0,0,i,!1,!1);return Rn(r,n,u),2}function K(t,n,i,r){var e,u=D(t,0,0,i,null==(e=this.u)?void 0:e.bound);return t.v(n,u,r)}function P(t,n){var i,r=n.name,e=n.addInitializer;return Wt(t)||(t=Ki(t)),null!=(i=this.u)&&i.bound&&e((function(){var t=this[r].bind(this);t.isMobXFlow=!0,this[r]=t})),t}function D(t,n,i,r,e,u){void 0===u&&(u=gi.safeDescriptors);var o,s=r.value;return Wt(s)||(s=Ki(s)),e&&((s=s.bind(null!=(o=t.l)?o:t.h)).isMobXFlow=!0),{value:s,configurable:!u||t.p,enumerable:!1,writable:!u}}function B(t,n){return{i:t,u:n,o:W,s:q,t:G}}function W(t,n,i){return null===this.s(t,n,i,!1)?0:1}function q(t,n,i,r){return t.m(n,w({},this.u,{get:i.get,set:i.set}),r)}function G(t,n){var i=this,r=n.name;return(0,n.addInitializer)((function(){var n=vn(this)[qn],e=w({},i.u,{get:t,context:this});e.name||(e.name="ObservableObject."+r.toString()),n.j.set(r,new yi(e))})),function(){return this[qn].O(r)}}function H(t,n){return{i:t,u:n,o:X,s:U,t:F}}function X(t,n,i){return null===this.s(t,n,i,!1)?0:1}function U(t,n,i,r){var e,u;return t._(n,i.value,null!=(e=null==(u=this.u)?void 0:u.enhancer)?e:E,r)}function F(t,n){function i(t,n){var i,e,s=vn(t)[qn],f=new vi(n,null!=(i=null==(e=r.u)?void 0:e.enhancer)?i:E,"ObservableObject."+u.toString(),!1);s.j.set(u,f),o.add(t)}var r=this,e=n.kind,u=n.name,o=new WeakSet;if("accessor"==e)return{get:function(){return o.has(this)||i(this,t.get.call(this)),this[qn].O(u)},set:function(t){return o.has(this)||i(this,t),this[qn].g(u,t)},init:function(t){return o.has(this)||i(this,t),t}}}function z(t){return{i:"true",u:t,o:$,s:J,t:Y}}function $(t,n,i,r){var e,u,o,s;if(i.get)return ui.o(t,n,i,r);if(i.set){var f=nt(n.toString(),i.set);return r===t.h?null===t.v(n,{configurable:!gi.safeDescriptors||t.p,set:f})?0:2:(Rn(r,n,{configurable:!0,set:f}),2)}if(r!==t.h&&"function"==typeof i.value)return c(i.value)?(null!=(s=this.u)&&s.autoBind?Ki.bound:Ki).o(t,n,i,r):(null!=(o=this.u)&&o.autoBind?Ti.bound:Ti).o(t,n,i,r);var a,h=!1===(null==(e=this.u)?void 0:e.deep)?ii.ref:ii;return"function"==typeof i.value&&null!=(u=this.u)&&u.autoBind&&(i.value=i.value.bind(null!=(a=t.l)?a:t.h)),h.o(t,n,i,r)}function J(t,n,i,r){var e,u,o;return i.get?ui.s(t,n,i,r):i.set?t.v(n,{configurable:!gi.safeDescriptors||t.p,set:nt(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.u)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.l)?o:t.h)),(!1===(null==(u=this.u)?void 0:u.deep)?ii.ref:ii).s(t,n,i,r))}function Y(){n("'"+this.i+"' cannot be used as a decorator")}function Q(t){return t||zn}function Z(t){return!0===t.deep?E:!1===t.deep?N:(n=t.defaultDecorator)&&null!=(i=null==(r=n.u)?void 0:r.enhancer)?i:E;var n,i,r}function tt(t,n,i){return x(n)?$n.t(t,n):o(n)?void S(t,n,$n):Ht(t)?t:f(t)?ii.object(t,n,i):Array.isArray(t)?ii.array(t,n):l(t)?ii.map(t,n):d(t)?ii.set(t,n):"object"==typeof t&&null!==t?t:ii.box(t,n)}function nt(t,n,i,r){function e(){return it(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,e.toString=function(){return n.toString()},ci&&(ai.value=t,Rn(e,"name",ai)),e}function it(t,n,i,r,e){var u=rt(0,n);try{return i.apply(r,e)}catch(t){throw u.A=t,t}finally{et(u)}}function rt(t,n){var i=gi.trackingDerivation,r=!n||!i;Ot();var e=gi.allowStateChanges;r&&(lt(),e=ot(!0));var u={S:r,M:i,N:e,V:bt(!0),R:!1,T:0,k:fi++,L:si};return si=u.k,u}function et(t){si!==t.k&&n(30),si=t.L,void 0!==t.A&&(gi.suppressReactionErrors=!0),st(t.N),yt(t.V),_t(),t.S&&dt(t.M),gi.suppressReactionErrors=!1}function ut(t,n){var i=ot(t);try{return n()}finally{st(i)}}function ot(t){var n=gi.allowStateChanges;return gi.allowStateChanges=t,n}function st(t){gi.allowStateChanges=t}function ft(t){return t instanceof mi}function ct(t){switch(t.C){case di.I:return!1;case di.K:case di.P:return!0;case di.D:for(var n=bt(!0),i=lt(),r=t.B,e=r.length,u=0;u<e;u++){var o=r[u];if(pi(o)){if(gi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return dt(i),yt(n),!0}if(t.C===di.P)return dt(i),yt(n),!0}}return pt(t),dt(i),yt(n),!1}}function at(t,n,i){var r=bt(!0);pt(t),t.W=new Array(0===t.q?100:t.B.length),t.G=0,t.q=++gi.runId;var e,u=gi.trackingDerivation;if(gi.trackingDerivation=t,gi.inBatch++,!0===gi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new mi(t)}return gi.inBatch--,gi.trackingDerivation=u,function(t){for(var n=t.B,i=t.B=t.W,r=di.I,e=0,u=t.G,o=0;o<u;o++){var s=i[o];0===s.H&&(s.H=1,e!==o&&(i[e]=s),e++),s.C>r&&(r=s.C)}for(i.length=e,t.W=null,u=n.length;u--;){var f=n[u];0===f.H&&wt(f,t),f.H=0}for(;e--;){var c=i[e];1===c.H&&(c.H=0,mt(c,t))}r!==di.I&&(t.C=r,t.X())}(t),yt(r),e}function ht(t){var n=t.B;t.B=[];for(var i=n.length;i--;)wt(n[i],t);t.C=di.K}function vt(t){var n=lt();try{return t()}finally{dt(n)}}function lt(){var t=gi.trackingDerivation;return gi.trackingDerivation=null,t}function dt(t){gi.trackingDerivation=t}function bt(t){var n=gi.allowStateReads;return gi.allowStateReads=t,n}function yt(t){gi.allowStateReads=t}function pt(t){if(t.C!==di.I){t.C=di.I;for(var n=t.B,i=n.length;i--;)n[i].U=di.I}}function mt(t,n){t.F.add(n),t.U>n.C&&(t.U=n.C)}function wt(t,n){t.F.delete(n),0===t.F.size&&jt(t)}function jt(t){!1===t.$&&(t.$=!0,gi.pendingUnobservations.push(t))}function Ot(){gi.inBatch++}function _t(){if(0==--gi.inBatch){St();for(var t=gi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.$=!1,0===i.F.size&&(i.J&&(i.J=!1,i.onBUO()),i instanceof yi&&i.Y())}gi.pendingUnobservations=[]}}function gt(t){var n=gi.trackingDerivation;return null!==n?(n.q!==t.Z&&(t.Z=n.q,n.W[n.G++]=t,!t.J&&gi.trackingContext&&(t.J=!0,t.onBO())),t.J):(0===t.F.size&&gi.inBatch>0&&jt(t),!1)}function At(t){t.U!==di.P&&(t.U=di.P,t.F.forEach((function(t){t.C===di.I&&t.X(),t.C=di.P})))}function St(){gi.inBatch>0||gi.isRunningReactions||Si(xt)}function xt(){gi.isRunningReactions=!0;for(var t=gi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].tt()}gi.isRunningReactions=!1}function Mt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Et(t){return function(n,i){return u(n)?nt(n.name||"<unnamed action>",n,t):u(i)?nt(n,i,t):x(i)?(t?Ni:Mi).t(n,i):o(i)?S(n,i,t?Ni:Mi):o(n)?A(V(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Nt(t){return it(0,!1,t,this,void 0)}function Vt(t){return u(t)&&!0===t.isMobxAction}function Rt(t,n){function i(){t(f)}var r,e,u,o,s;void 0===n&&(n=Ln);var f,c=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var a=Tt(n),h=!1;f=new Ai(c,(function(){h||(h=!0,a((function(){h=!1,f.nt||f.track(i)})))}),n.onError,n.requiresObservable)}else f=new Ai(c,(function(){this.track(i)}),n.onError,n.requiresObservable);return null!=(u=n)&&null!=(o=u.signal)&&o.aborted||f.it(),f.rt(null==(s=n)?void 0:s.signal)}function Tt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:ki}function kt(t,n,i){return Ct("onBO",t,n,i)}function Lt(t,n,i){return Ct("onBUO",t,n,i)}function Ct(t,n,i,r){var e="function"==typeof r?jn(n,i):jn(n),o=u(r)?r:i,s=t+"L";return e[s]?e[s].add(o):e[s]=new Set([o]),function(){var t=e[s];t&&(t.delete(o),0===t.size&&delete e[s])}}function It(t,n,i,r){var e=Bn(n);return gn((function(){var n=vn(t,r)[qn];Dn(e).forEach((function(t){n.s(t,e[t],!i||!(t in i)||i[t])}))})),t}function Kt(t){var n,i={name:t.et};return t.B&&t.B.length>0&&(i.dependencies=(n=t.B,Array.from(new Set(n))).map(Kt)),i}function Pt(t){var n={name:t.et};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Pt)),n}function Dt(){this.message="FLOW_CANCELLED"}function Bt(t){u(t.cancel)&&t.cancel()}function Wt(t){return!0===(null==t?void 0:t.isMobXFlow)}function qt(t,n){if(void 0===n)return pi(t);if(!1===dn(t))return!1;if(!t[qn].j.has(n))return!1;var i=jn(t,n);return pi(i)}function Gt(t,n){return!!t&&(void 0!==n?!!dn(t)&&t[qn].j.has(n):dn(t)||!!t[qn]||Hn(t)||xi(t)||pi(t))}function Ht(t){return Gt(t)}function Xt(t){return dn(t)?t[qn].ut():Qi(t)||rr(t)?Array.from(t.keys()):hn(t)?t.map((function(t,n){return n})):void n(5)}function Ut(t,i){return dn(t)?t[qn].ot(i):Qi(t)||rr(t)?t.has(i):hn(t)?i>=0&&i<t.length:void n(10)}function Ft(t){if(dn(t))return t[qn].st();n(38)}function zt(t,n,i){return t.set(n,i),i}function $t(t,n){void 0===n&&(n=void 0),Ot();try{return t.apply(n)}finally{_t()}}function Jt(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[qn].nt){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=nt("When-effect",n),o=Rt((function(n){ut(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function Yt(t,n){var i,r,e;if(null!=n&&null!=(i=n.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var u=new Promise((function(i,u){var o,s=Jt(t,i,w({},n,{onError:u}));r=function(){s(),u(new Error("WHEN_CANCELLED"))},e=function(){s(),u(new Error("WHEN_ABORTED"))},null==n||null==(o=n.signal)||null==o.addEventListener||o.addEventListener("abort",e)})).finally((function(){var t;return null==n||null==(t=n.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",e)}));return u.cancel=r,u}function Qt(t){return t[qn]}function Zt(t){return void 0!==t.ft&&t.ft.length>0}function tn(t,n){var i=t.ft||(t.ft=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function nn(t,i){var r=lt();try{for(var e=[].concat(t.ft||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&n(14),i);u++);return i}finally{dt(r)}}function rn(t){return void 0!==t.ct&&t.ct.length>0}function en(t,n){var i=t.ct||(t.ct=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function un(t,n){var i=lt(),r=t.ct;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);dt(i)}}function on(t,n,i,e){return void 0===i&&(i="ObservableArray"),void 0===e&&(e=!1),r(),gn((function(){var r=new qi(i,n,e,!1);h(r.j,qn,r);var u=new Proxy(r.j,Wi);return r.l=u,t&&t.length&&r.at(0,0,t),u}))}function sn(t,n){"function"==typeof Array.prototype[t]&&(Gi[t]=n(t))}function fn(t){return function(){var n=this[qn];n.ht.reportObserved();var i=n.vt(n.j);return i[t].apply(i,arguments)}}function cn(t){return function(n,i){var r=this,e=this[qn];return e.ht.reportObserved(),e.vt(e.j)[t]((function(t,e){return n.call(i,t,e,r)}))}}function an(t){return function(){var n=this,i=this[qn];i.ht.reportObserved();var r=i.vt(i.j),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function hn(t){return s(t)&&Ui(t[qn])}function vn(t,n){var i;if(y(t,qn))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new ur(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:z(t):void 0}(n));return a(t,qn,e),t}function ln(t){return er[t]||(er[t]={get:function(){return this[qn].O(t)},set:function(n){return this[qn].g(t,n)}})}function dn(t){return!!s(t)&&or(t[qn])}function bn(t,n,i){var r;null==(r=t.h[Wn])||delete r[i]}function yn(t){return{enumerable:!1,configurable:!0,get:function(){return this[qn].lt(t)},set:function(n){this[qn].dt(t,n)}}}function pn(t){Rn(hr.prototype,""+t,yn(t))}function mn(t){if(t>cr){for(var n=cr;n<t+100;n++)pn(n);cr=t}}function wn(t,n,i){return new hr(t,n,i)}function jn(t,i){if("object"==typeof t&&null!==t){if(hn(t))return void 0!==i&&n(23),t[qn].ht;if(rr(t))return t.ht;if(Qi(t)){if(void 0===i)return t.bt;var r=t.yt.get(i)||t.pt.get(i);return r||n(25,i,_n(t)),r}if(dn(t)){if(!i)return n(26);var e=t[qn].j.get(i);return e||n(27,i,_n(t)),e}if(Hn(t)||pi(t)||xi(t))return t}else if(u(t)&&xi(t[qn]))return t[qn];n(28)}function On(t,i){return t||n(29),void 0!==i?On(jn(t,i)):Hn(t)||pi(t)||xi(t)||Qi(t)||rr(t)?t:t[qn]?t[qn]:void n(24,t)}function _n(t,n){var i;if(void 0!==n)i=jn(t,n);else{if(Vt(t))return t.name;i=dn(t)||Qi(t)||rr(t)?On(t):jn(t)}return i.et}function gn(t){var n=lt(),i=ot(!0);Ot();try{return t()}finally{_t(),st(i),dt(n)}}function An(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,e,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=vr.call(n);if(f!==vr.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Sn(n),i=Sn(i);var c="[object Array]"===f;if(!c){if("object"!=typeof n||"object"!=typeof i)return!1;var a=n.constructor,h=i.constructor;if(a!==h&&!(u(a)&&a instanceof a&&u(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(e=e||[]).length;v--;)if(e[v]===n)return o[v]===i;if(e.push(n),o.push(i),c){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,e,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!y(i,l=d[v])||!t(n[l],i[l],r-1,e,o))return!1}return e.pop(),o.pop(),!0}(t,n,i)}function Sn(t){return hn(t)?t.slice():l(t)||Qi(t)||d(t)||rr(t)?Array.from(t.entries()):t}function xn(t){return t[Symbol.iterator]=Mn,t}function Mn(){return this}var En={},Nn=Object.assign,Vn=Object.getOwnPropertyDescriptor,Rn=Object.defineProperty,Tn=Object.prototype,kn=[];Object.freeze(kn);var Ln={};Object.freeze(Ln);var Cn="undefined"!=typeof Proxy,In=Object.toString(),Kn=function(){},Pn=void 0!==Object.getOwnPropertySymbols,Dn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Pn?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bn=Object.getOwnPropertyDescriptors||function(t){var n={};return Dn(t).forEach((function(i){n[i]=Vn(t,i)})),n},Wn=Symbol("mobx-stored-annotations"),qn=Symbol("mobx administration"),Gn=function(){function t(t){void 0===t&&(t="Atom"),this.et=void 0,this.$=!1,this.J=!1,this.F=new Set,this.H=0,this.Z=0,this.U=di.K,this.onBOL=void 0,this.onBUOL=void 0,this.et=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return gt(this)},n.reportChanged=function(){Ot(),At(this),_t()},n.toString=function(){return this.et},t}(),Hn=v("Atom",Gn),Xn={identity:function(t,n){return t===n},structural:function(t,n){return An(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return An(t,n,1)}},Un=A({i:"override",o:function(){return 0},s:function(){n("'"+this.i+"' can only be used with 'makeObservable'")},t:function(){console.warn("'"+this.i+"' cannot be used with decorators - this is a no-op")}}),Fn=z(),zn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(zn);var $n=H("observable"),Jn=H("observable.ref",{enhancer:N}),Yn=H("observable.shallow",{enhancer:function(t,n,i){return null==t||dn(t)||hn(t)||Qi(t)||rr(t)?t:Array.isArray(t)?ii.array(t,{name:i,deep:!1}):f(t)?ii.object(t,void 0,{name:i,deep:!1}):l(t)?ii.map(t,{name:i,deep:!1}):d(t)?ii.set(t,{name:i,deep:!1}):void 0}}),Qn=H("observable.struct",{enhancer:function(t,n){return An(t,n)?n:t}}),Zn=A($n);Nn(tt,Zn);var ti,ni,ii=Nn(tt,{box:function(t,n){var i=Q(n);return new vi(t,Z(i),i.name,!0,i.equals)},array:function(t,n){var i=Q(n);return(!1===gi.useProxies||!1===i.proxy?wn:on)(t,Z(i),i.name)},map:function(t,n){var i=Q(n);return new Yi(t,Z(i),i.name)},set:function(t,n){var i=Q(n);return new ir(t,Z(i),i.name)},object:function(t,n,i){return gn((function(){return It(!1===gi.useProxies||!1===(null==i?void 0:i.proxy)?vn({},i):function(t,n){var i,e;return r(),null!=(e=(i=(t=vn(t,n))[qn]).l)?e:i.l=new Proxy(t,Pi)}({},i),t,n)}))},ref:A(Jn),shallow:A(Yn),deep:Zn,struct:A(Qn)}),ri=B("computed"),ei=B("computed.struct",{equals:Xn.structural}),ui=function(t,n){if(x(n))return ri.t(t,n);if(o(n))return S(t,n,ri);if(f(t))return A(B("computed",t));var i=f(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new yi(i)};Object.assign(ui,ri),ui.struct=A(ei);var oi,si=0,fi=1,ci=null!=(ti=null==(ni=Vn((function(){}),"name"))?void 0:ni.configurable)&&ti,ai={value:"action",configurable:!0,writable:!1,enumerable:!1};oi=Symbol.toPrimitive;var hi,vi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Xn.default),(o=t.call(this,r)||this).enhancer=void 0,o.et=void 0,o.equals=void 0,o.wt=!1,o.ft=void 0,o.ct=void 0,o.jt=void 0,o.dehancer=void 0,o.enhancer=i,o.et=r,o.equals=u,o.jt=i(n,void 0,r),o}j(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.Ot(t))!==gi.UNCHANGED&&this._t(t)},i.Ot=function(t){if(Zt(this)){var n=nn(this,{object:this,type:Bi,newValue:t});if(!n)return gi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.et),this.equals(this.jt,t)?gi.UNCHANGED:t},i._t=function(t){var n=this.jt;this.jt=t,this.reportChanged(),rn(this)&&un(this,{type:Bi,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i.gt=function(t){return tn(this,t)},i.At=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.et,object:this,type:Bi,newValue:this.jt,oldValue:void 0}),en(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.et+"["+this.jt+"]"},i.valueOf=function(){return b(this.get())},i[oi]=function(){return this.valueOf()},n}(Gn),li=v("ObservableValue",vi);hi=Symbol.toPrimitive;var di,bi,yi=function(){function t(t){this.C=di.K,this.B=[],this.W=null,this.J=!1,this.$=!1,this.F=new Set,this.H=0,this.q=0,this.Z=0,this.U=di.I,this.G=0,this.jt=new mi(null),this.et=void 0,this.St=void 0,this.xt=!1,this.Mt=!1,this.derivation=void 0,this.Et=void 0,this.Nt=bi.NONE,this.Vt=void 0,this.Rt=void 0,this.Tt=void 0,this.kt=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||n(31),this.derivation=t.get,this.et=t.name||"ComputedValue",t.set&&(this.Et=nt("ComputedValue-setter",t.set)),this.Rt=t.equals||(t.compareStructural||t.struct?Xn.structural:Xn.default),this.Vt=t.context,this.Tt=t.requiresReaction,this.kt=!!t.keepAlive}var i=t.prototype;return i.X=function(){!function(t){t.U===di.I&&(t.U=di.D,t.F.forEach((function(t){t.C===di.I&&(t.C=di.D,t.X())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.xt&&n(32,this.et,this.derivation),0!==gi.inBatch||0!==this.F.size||this.kt){if(gt(this),ct(this)){var t=gi.trackingContext;this.kt&&!t&&(gi.trackingContext=this),this.trackAndCompute()&&function(t){t.U!==di.P&&(t.U=di.P,t.F.forEach((function(n){n.C===di.D?n.C=di.P:n.C===di.I&&(t.U=di.I)})))}(this),gi.trackingContext=t}}else ct(this)&&(this.Lt(),Ot(),this.jt=this.Ct(!1),_t());var i=this.jt;if(ft(i))throw i.cause;return i},i.set=function(t){if(this.Et){this.Mt&&n(33,this.et),this.Mt=!0;try{this.Et.call(this.Vt,t)}finally{this.Mt=!1}}else n(34,this.et)},i.trackAndCompute=function(){var t=this.jt,n=this.C===di.K,i=this.Ct(!0),r=n||ft(t)||ft(i)||!this.Rt(t,i);return r&&(this.jt=i),r},i.Ct=function(t){this.xt=!0;var n,i=ot(!1);if(t)n=at(this,this.derivation,this.Vt);else if(!0===gi.disableErrorBoundaries)n=this.derivation.call(this.Vt);else try{n=this.derivation.call(this.Vt)}catch(t){n=new mi(t)}return st(i),this.xt=!1,n},i.Y=function(){this.kt||(ht(this),this.jt=void 0)},i.At=function(t,n){var i=this,r=!0,e=void 0;return Rt((function(){var u=i.get();if(!r||n){var o=lt();t({observableKind:"computed",debugObjectName:i.et,type:Bi,object:i,newValue:u,oldValue:e}),dt(o)}r=!1,e=u}))},i.Lt=function(){},i.toString=function(){return this.et+"["+this.derivation.toString()+"]"},i.valueOf=function(){return b(this.get())},i[hi]=function(){return this.valueOf()},t}(),pi=v("ComputedValue",yi);!function(t){t[t.K=-1]="NOT_TRACKING_",t[t.I=0]="UP_TO_DATE_",t[t.D=1]="POSSIBLY_STALE_",t[t.P=2]="STALE_"}(di||(di={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(bi||(bi={}));var mi=function(t){this.cause=void 0,this.cause=t},wi=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],ji=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Oi=!0,_i=!1,gi=function(){var t=i();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Oi=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new ji).version&&(Oi=!1),Oi?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new ji):(setTimeout((function(){_i||n(35)}),1),new ji)}(),Ai=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.et=void 0,this.It=void 0,this.Kt=void 0,this.Pt=void 0,this.B=[],this.W=[],this.C=di.K,this.H=0,this.q=0,this.G=0,this.nt=!1,this.Dt=!1,this.Bt=!1,this.Wt=!1,this.Nt=bi.NONE,this.et=t,this.It=n,this.Kt=i,this.Pt=r}var n=t.prototype;return n.X=function(){this.it()},n.it=function(){this.Dt||(this.Dt=!0,gi.pendingReactions.push(this),St())},n.isScheduled=function(){return this.Dt},n.tt=function(){if(!this.nt){Ot(),this.Dt=!1;var t=gi.trackingContext;if(gi.trackingContext=this,ct(this)){this.Bt=!0;try{this.It()}catch(t){this.qt(t)}}gi.trackingContext=t,_t()}},n.track=function(t){if(!this.nt){Ot(),this.Wt=!0;var n=gi.trackingContext;gi.trackingContext=this;var i=at(this,t,void 0);gi.trackingContext=n,this.Wt=!1,this.Bt=!1,this.nt&&ht(this),ft(i)&&this.qt(i.cause),_t()}},n.qt=function(t){var n=this;if(this.Kt)this.Kt(t,this);else{if(gi.disableErrorBoundaries)throw t;gi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),gi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.nt||(this.nt=!0,this.Wt||(Ot(),ht(this),_t()))},n.rt=function(t){var n=this,i=function i(){n.dispose(),null==t||null==t.removeEventListener||t.removeEventListener("abort",i)};return null==t||null==t.addEventListener||t.addEventListener("abort",i),i[qn]=this,i},n.toString=function(){return"Reaction["+this.et+"]"},n.trace=function(){},t}(),Si=function(t){return t()},xi=v("Reaction",Ai),Mi=V("action"),Ei=V("action.bound",{bound:!0}),Ni=V("autoAction",{autoAction:!0}),Vi=V("autoAction.bound",{autoAction:!0,bound:!0}),Ri=Et(!1);Object.assign(Ri,Mi);var Ti=Et(!0);Object.assign(Ti,Ni),Ri.bound=A(Ei),Ti.bound=A(Vi);var ki=function(t){return t()},Li=0;Dt.prototype=Object.create(Error.prototype);var Ci=C("flow"),Ii=C("flow.bound",{bound:!0}),Ki=Object.assign((function(t,n){if(x(n))return Ci.t(t,n);if(o(n))return S(t,n,Ci);var i=t,r=i.name||"<unnamed flow>",e=function(){var t,n=this,e=arguments,o=++Li,s=Ri(r+" - runid: "+o+" - init",i).apply(n,e),f=void 0,c=new Promise((function(n,i){function e(t){var n;f=void 0;try{n=Ri(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}a(n)}function c(t){var n;f=void 0;try{n=Ri(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}a(n)}function a(t){if(!u(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(e,c);t.then(a,i)}var h=0;t=i,e(void 0)}));return c.cancel=Ri(r+" - runid: "+o+" - cancel",(function(){try{f&&Bt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(Kn,Kn),Bt(i),t(new Dt)}catch(n){t(n)}})),c};return e.isMobXFlow=!0,e}),Ci);Ki.bound=A(Ii);var Pi={has:function(t,n){return Qt(t).ot(n)},get:function(t,n){return Qt(t).lt(n)},set:function(t,n,i){var r;return!!o(n)&&(null==(r=Qt(t).dt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!o(n)&&(null==(i=Qt(t).Gt(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Qt(t).v(n,i))||r},ownKeys:function(t){return Qt(t).st()},preventExtensions:function(){n(13)}},Di=Symbol("mobx-keys"),Bi="update",Wi={get:function(t,n){var i=t[qn];return n===qn?i:"length"===n?i.Ht():"string"!=typeof n||isNaN(n)?y(Gi,n)?Gi[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[qn];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.dt(parseInt(n),i),!0},preventExtensions:function(){n(15)}},qi=function(){function t(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Ft=void 0,this.ht=void 0,this.j=[],this.ft=void 0,this.ct=void 0,this.zt=void 0,this.dehancer=void 0,this.l=void 0,this.$t=0,this.Ut=i,this.Ft=r,this.ht=new Gn(t),this.zt=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=t.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.vt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.gt=function(t){return tn(this,t)},i.At=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:0,added:this.j.slice(),addedCount:this.j.length,removed:[],removedCount:0}),en(this,t)},i.Ht=function(){return this.ht.reportObserved(),this.j.length},i.Xt=function(t){("number"!=typeof t||isNaN(t)||t<0)&&n("Out of range: "+t);var i=this.j.length;if(t!==i)if(t>i){for(var r=new Array(t-i),e=0;e<t-i;e++)r[e]=void 0;this.at(i,0,r)}else this.at(t,i-t)},i.Yt=function(t,i){t!==this.$t&&n(16),this.$t+=i,this.Ft&&i>0&&mn(t+i+1)},i.at=function(t,n,i){var r=this,e=this.j.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=kn),Zt(this)){var u=nn(this,{object:this.l,type:"splice",index:t,removedCount:n,added:i});if(!u)return kn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.zt(t,void 0)})),this.Ft){var o=i.length-n;this.Yt(e,o)}var s=this.Qt(t,n,i);return 0===n&&0===i.length||this.Zt(t,i,s),this.vt(s)},i.Qt=function(t,n,i){var r;if(i.length<1e4)return(r=this.j).splice.apply(r,[t,n].concat(i));var e=this.j.slice(t,t+n),u=this.j.slice(t+n);this.j.length+=i.length-n;for(var o=0;o<i.length;o++)this.j[t+o]=i[o];for(var s=0;s<u.length;s++)this.j[t+i.length+s]=u[s];return e},i.tn=function(t,n,i){var r=!this.Ut&&!1,e=rn(this),u=e||r?{observableKind:"array",object:this.l,type:Bi,debugObjectName:this.ht.et,index:t,newValue:n,oldValue:i}:null;this.ht.reportChanged(),e&&un(this,u)},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=rn(this),u=e||r?{observableKind:"array",object:this.l,debugObjectName:this.ht.et,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.ht.reportChanged(),e&&un(this,u)},i.lt=function(t){if(!(this.Ft&&t>=this.j.length))return this.ht.reportObserved(),this.Jt(this.j[t]);console.warn("[mobx] Out of bounds read: "+t)},i.dt=function(t,i){var r=this.j;if(this.Ft&&t>r.length&&n(17,t,r.length),t<r.length){var e=r[t];if(Zt(this)){var u=nn(this,{type:Bi,object:this.l,index:t,newValue:i});if(!u)return;i=u.newValue}(i=this.zt(i,e))!==e&&(r[t]=i,this.tn(t,i,e))}else{for(var o=new Array(t+1-r.length),s=0;s<o.length-1;s++)o[s]=void 0;o[o.length-1]=i,this.at(r.length,0,o)}},t}(),Gi={clear:function(){return this.splice(0)},replace:function(t){var n=this[qn];return n.at(0,n.j.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[qn];switch(arguments.length){case 0:return[];case 1:return u.at(t);case 2:return u.at(t,n)}return u.at(t,n,r)},spliceWithArray:function(t,n,i){return this[qn].at(t,n,i)},push:function(){for(var t=this[qn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(t.j.length,0,i),t.j.length},pop:function(){return this.splice(Math.max(this[qn].j.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[qn],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.at(0,0,i),t.j.length},reverse:function(){return gi.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){gi.trackingDerivation&&n(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[qn],i=n.vt(n.j).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};sn("at",fn),sn("concat",fn),sn("flat",fn),sn("includes",fn),sn("indexOf",fn),sn("join",fn),sn("lastIndexOf",fn),sn("slice",fn),sn("toString",fn),sn("toLocaleString",fn),sn("toSorted",fn),sn("toSpliced",fn),sn("with",fn),sn("every",cn),sn("filter",cn),sn("find",cn),sn("findIndex",cn),sn("findLast",cn),sn("findLastIndex",cn),sn("flatMap",cn),sn("forEach",cn),sn("map",cn),sn("some",cn),sn("toReversed",cn),sn("reduce",an),sn("reduceRight",an);var Hi,Xi,Ui=v("ObservableArrayAdministration",qi),Fi={},zi="add";Hi=Symbol.iterator,Xi=Symbol.toStringTag;var $i,Ji,Yi=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableMap"),this.zt=void 0,this.et=void 0,this[qn]=Fi,this.yt=void 0,this.pt=void 0,this.bt=void 0,this.ft=void 0,this.ct=void 0,this.dehancer=void 0,this.zt=i,this.et=r,u(Map)||n(18),gn((function(){e.bt=M("ObservableMap.keys()"),e.yt=new Map,e.pt=new Map,t&&e.merge(t)}))}var i=t.prototype;return i.ot=function(t){return this.yt.has(t)},i.has=function(t){var n=this;if(!gi.trackingDerivation)return this.ot(t);var i=this.pt.get(t);if(!i){var r=i=new vi(this.ot(t),N,"ObservableMap.key?",!1);this.pt.set(t,r),Lt(r,(function(){return n.pt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ot(t);if(Zt(this)){var r=nn(this,{type:i?Bi:zi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.nn(t,n):this.in(t,n),this},i.delete=function(t){var n=this;if(Zt(this)&&!nn(this,{type:"delete",object:this,name:t}))return!1;if(this.ot(t)){var i=rn(this),r=i?{observableKind:"map",debugObjectName:this.et,type:"delete",object:this,oldValue:this.yt.get(t).jt,name:t}:null;return $t((function(){var i;n.bt.reportChanged(),null==(i=n.pt.get(t))||i._t(!1),n.yt.get(t)._t(void 0),n.yt.delete(t)})),i&&un(this,r),!0}return!1},i.nn=function(t,n){var i=this.yt.get(t);if((n=i.Ot(n))!==gi.UNCHANGED){var r=rn(this),e=r?{observableKind:"map",debugObjectName:this.et,type:Bi,object:this,oldValue:i.jt,name:t,newValue:n}:null;i._t(n),r&&un(this,e)}},i.in=function(t,n){var i=this;$t((function(){var r,e=new vi(n,i.zt,"ObservableMap.key",!1);i.yt.set(t,e),n=e.jt,null==(r=i.pt.get(t))||r._t(!0),i.bt.reportChanged()}));var r=rn(this);r&&un(this,r?{observableKind:"map",debugObjectName:this.et,type:zi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.Jt(this.yt.get(t).get()):this.Jt(void 0)},i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.yt.keys()},i.values=function(){var t=this,n=this.keys();return xn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return xn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Hi]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(t){var i=this;return Qi(t)&&(t=new Map(t)),$t((function(){f(t)?function(t){var n=Object.keys(t);if(!Pn)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Tn.propertyIsEnumerable.call(t,n)}))):n}(t).forEach((function(n){return i.set(n,t[n])})):Array.isArray(t)?t.forEach((function(t){return i.set(t[0],t[1])})):l(t)?(t.constructor!==Map&&n(19,t),t.forEach((function(t,n){return i.set(n,t)}))):null!=t&&n(20,t)})),this},i.clear=function(){var t=this;$t((function(){vt((function(){for(var n,i=g(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(t){var i=this;return $t((function(){for(var r,e=function(t){if(l(t)||Qi(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){var i=new Map;for(var r in t)i.set(r,t[r]);return i}return n(21,t)}(t),u=new Map,o=!1,s=g(i.yt.keys());!(r=s()).done;){var c=r.value;if(!e.has(c))if(i.delete(c))o=!0;else{var a=i.yt.get(c);u.set(c,a)}}for(var h,v=g(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.yt.has(b);if(i.set(b,y),i.yt.has(b)){var m=i.yt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.yt.size!==u.size)i.bt.reportChanged();else for(var w=i.yt.keys(),j=u.keys(),O=w.next(),_=j.next();!O.done;){if(O.value!==_.value){i.bt.reportChanged();break}O=w.next(),_=j.next()}i.yt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.At=function(t){return en(this,t)},i.gt=function(t){return tn(this,t)},m(t,[{key:"size",get:function(){return this.bt.reportObserved(),this.yt.size}},{key:Xi,get:function(){return"Map"}}]),t}(),Qi=v("ObservableMap",Yi),Zi={};$i=Symbol.iterator,Ji=Symbol.toStringTag;var tr,nr,ir=function(){function t(t,i,r){var e=this;void 0===i&&(i=E),void 0===r&&(r="ObservableSet"),this.et=void 0,this[qn]=Zi,this.yt=new Set,this.ht=void 0,this.ct=void 0,this.ft=void 0,this.dehancer=void 0,this.zt=void 0,this.et=r,u(Set)||n(22),this.zt=function(t,n){return i(t,n,r)},gn((function(){e.ht=M(e.et),t&&e.replace(t)}))}var i=t.prototype;return i.Jt=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;$t((function(){vt((function(){for(var n,i=g(t.yt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(Zt(this)&&!nn(this,{type:zi,object:this,newValue:t}))return this;if(!this.has(t)){$t((function(){n.yt.add(n.zt(t,void 0)),n.ht.reportChanged()}));var i=rn(this);i&&un(this,i?{observableKind:"set",debugObjectName:this.et,type:zi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(Zt(this)&&!nn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=rn(this),r=i?{observableKind:"set",debugObjectName:this.et,type:"delete",object:this,oldValue:t}:null;return $t((function(){n.ht.reportChanged(),n.yt.delete(t)})),i&&un(this,r),!0}return!1},i.has=function(t){return this.ht.reportObserved(),this.yt.has(this.Jt(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return xn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.ht.reportObserved();var t=this,n=0,i=Array.from(this.yt.values());return xn({next:function(){return n<i.length?{value:t.Jt(i[n++]),done:!1}:{done:!0}}})},i.replace=function(t){var i=this;return rr(t)&&(t=new Set(t)),$t((function(){Array.isArray(t)||d(t)?(i.clear(),t.forEach((function(t){return i.add(t)}))):null!=t&&n("Cannot initialize set from "+t)})),this},i.At=function(t){return en(this,t)},i.gt=function(t){return tn(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[$i]=function(){return this.values()},m(t,[{key:"size",get:function(){return this.ht.reportObserved(),this.yt.size}},{key:Ji,get:function(){return"Set"}}]),t}(),rr=v("ObservableSet",ir),er=Object.create(null),ur=function(){function t(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=Fn),this.h=void 0,this.j=void 0,this.et=void 0,this.rn=void 0,this.bt=void 0,this.ct=void 0,this.ft=void 0,this.l=void 0,this.p=void 0,this.en=void 0,this.un=void 0,this.h=t,this.j=n,this.et=i,this.rn=r,this.bt=new Gn("ObservableObject.keys"),this.p=f(this.h)}var i=t.prototype;return i.O=function(t){return this.j.get(t).get()},i.g=function(t,n){var i=this.j.get(t);if(i instanceof yi)return i.set(n),!0;if(Zt(this)){var r=nn(this,{type:Bi,object:this.l||this.h,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.Ot(n))!==gi.UNCHANGED){var e=rn(this),u=e?{type:Bi,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,oldValue:i.jt,name:t,newValue:n}:null;i._t(n),e&&un(this,u)}return!0},i.lt=function(t){return gi.trackingDerivation&&!y(this.h,t)&&this.ot(t),this.h[t]},i.dt=function(t,n,i){return void 0===i&&(i=!1),y(this.h,t)?this.j.has(t)?this.g(t,n):i?Reflect.set(this.h,t,n):(this.h[t]=n,!0):this.s(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.rn,i)},i.ot=function(t){if(!gi.trackingDerivation)return t in this.h;this.un||(this.un=new Map);var n=this.un.get(t);return n||(n=new vi(t in this.h,N,"ObservableObject.key?",!1),this.un.set(t,n)),n.get()},i.o=function(t,i){if(!0===i&&(i=this.rn),!1!==i){if(!(t in this.h)){var r;if(null!=(r=this.h[Wn])&&r[t])return;n(1,i.i,this.et+"."+t.toString())}for(var e=this.h;e&&e!==Tn;){var u=Vn(e,t);if(u){var o=i.o(this,t,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}bn(this,0,t)}},i.s=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.rn),!1===i)return this.v(t,n,r);var e=i.s(this,t,n,r);return e&&bn(this,0,t),e},i.v=function(t,n,i){void 0===i&&(i=!1);try{Ot();var r=this.Gt(t);if(!r)return r;if(Zt(this)){var e=nn(this,{object:this.l||this.h,name:t,type:zi,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=w({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.h,t,n))return!1}else Rn(this.h,t,n);this.on(t,n.value)}finally{_t()}return!0},i._=function(t,n,i,r){void 0===r&&(r=!1);try{Ot();var e=this.Gt(t);if(!e)return e;if(Zt(this)){var u=nn(this,{object:this.l||this.h,name:t,type:zi,newValue:n});if(!u)return null;n=u.newValue}var o=ln(t),s={configurable:!gi.safeDescriptors||this.p,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.h,t,s))return!1}else Rn(this.h,t,s);var f=new vi(n,i,"ObservableObject.key",!1);this.j.set(t,f),this.on(t,f.jt)}finally{_t()}return!0},i.m=function(t,n,i){void 0===i&&(i=!1);try{Ot();var r=this.Gt(t);if(!r)return r;if(Zt(this)&&!nn(this,{object:this.l||this.h,name:t,type:zi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.l||this.h;var e=ln(t),u={configurable:!gi.safeDescriptors||this.p,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.h,t,u))return!1}else Rn(this.h,t,u);this.j.set(t,new yi(n)),this.on(t,void 0)}finally{_t()}return!0},i.Gt=function(t,n){if(void 0===n&&(n=!1),!y(this.h,t))return!0;if(Zt(this)&&!nn(this,{object:this.l||this.h,name:t,type:"remove"}))return null;try{var i,r;Ot();var e,u=rn(this),o=this.j.get(t),s=void 0;if(!o&&u&&(s=null==(e=Vn(this.h,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.h,t))return!1}else delete this.h[t];o&&(this.j.delete(t),o instanceof vi&&(s=o.jt),At(o)),this.bt.reportChanged(),null==(i=this.un)||null==(r=i.get(t))||r.set(t in this.h),u&&u&&un(this,{type:"remove",observableKind:"object",object:this.l||this.h,debugObjectName:this.et,oldValue:s,name:t})}finally{_t()}return!0},i.At=function(t){return en(this,t)},i.gt=function(t){return tn(this,t)},i.on=function(t,n){var i,r,e=rn(this);e&&e&&un(this,e?{type:zi,observableKind:"object",debugObjectName:this.et,object:this.l||this.h,name:t,newValue:n}:null),null==(i=this.un)||null==(r=i.get(t))||r.set(!0),this.bt.reportChanged()},i.st=function(){return this.bt.reportObserved(),Dn(this.h)},i.ut=function(){return this.bt.reportObserved(),Object.keys(this.h)},t}(),or=v("ObservableObjectAdministration",ur),sr=yn(0),fr=function(){var t=!1,n={};return Object.defineProperty(n,"0",{set:function(){t=!0}}),Object.create(n)[0]=1,!1===t}(),cr=0,ar=function(){};tr=ar,nr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(tr.prototype,nr):void 0!==tr.prototype.__proto__?tr.prototype.__proto__=nr:tr.prototype=nr;var hr=function(t,n,i){function r(n,i,r,e){var u;return void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this,gn((function(){var t=new qi(r,i,e,!0);t.l=O(u),h(O(u),qn,t),n&&n.length&&u.spliceWithArray(0,0,n),fr&&Object.defineProperty(O(u),"0",sr)})),u}j(r,t);var e=r.prototype;return e.concat=function(){this[qn].ht.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return hn(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return xn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},m(r,[{key:"length",get:function(){return this[qn].Ht()},set:function(t){this[qn].Xt(t)}},{key:n,get:function(){return"Array"}}]),r}(ar,Symbol.toStringTag,Symbol.iterator);Object.entries(Gi).forEach((function(t){var n=t[0];"concat"!==n&&a(hr.prototype,n,t[1])})),mn(1e3);var vr=Tn.toString;["Symbol","Map","Set"].forEach((function(t){void 0===i()[t]&&n("MobX requires global '"+t+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Mt,extras:{getDebugName:_n},$mobx:qn}),t.$mobx=qn,t.FlowCancellationError=Dt,t.ObservableMap=Yi,t.ObservableSet=ir,t.Reaction=Ai,t._allowStateChanges=ut,t._allowStateChangesInsideComputed=Nt,t._allowStateReadsEnd=yt,t._allowStateReadsStart=bt,t._autoAction=Ti,t._endAction=et,t._getAdministration=On,t._getGlobalState=function(){return gi},t._interceptReads=function(t,n,i){var r;return Qi(t)||hn(t)||li(t)?r=On(t):dn(t)&&(r=On(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},t._isComputingDerivation=function(){return null!==gi.trackingDerivation},t._resetGlobalState=function(){var t=new ji;for(var n in t)-1===wi.indexOf(n)&&(gi[n]=t[n]);gi.allowStateChanges=!gi.enforceActions},t._startAction=rt,t.action=Ri,t.autorun=Rt,t.comparer=Xn,t.computed=ui,t.configure=function(t){!0===t.isolateGlobalState&&function(){if((gi.pendingReactions.length||gi.inBatch||gi.isRunningReactions)&&n(36),_i=!0,Oi){var t=i();0==--t.__mobxInstanceCount&&(t.__mobxGlobals=void 0),gi=new ji}}();var r,e,u=t.useProxies,o=t.enforceActions;if(void 0!==u&&(gi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(gi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;gi.enforceActions=s,gi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(n){n in t&&(gi[n]=!!t[n])})),gi.allowStateReads=!gi.observableRequiresReaction,t.reactionScheduler&&(r=t.reactionScheduler,e=Si,Si=function(t){return r((function(){return e(t)}))})},t.createAtom=M,t.defineProperty=function(t,i,r){if(dn(t))return t[qn].v(i,r);n(39)},t.entries=function(t){return dn(t)?Xt(t).map((function(n){return[n,t[n]]})):Qi(t)?Xt(t).map((function(n){return[n,t.get(n)]})):rr(t)?Array.from(t.entries()):hn(t)?t.map((function(t,n){return[n,t]})):void n(7)},t.extendObservable=It,t.flow=Ki,t.flowResult=function(t){return t},t.get=function(t,i){if(Ut(t,i))return dn(t)?t[qn].lt(i):Qi(t)?t.get(i):hn(t)?t[i]:void n(11)},t.getAtom=jn,t.getDebugName=_n,t.getDependencyTree=function(t,n){return Kt(jn(t,n))},t.getObserverTree=function(t,n){return Pt(jn(t,n))},t.has=Ut,t.intercept=function(t,n,i){return u(i)?function(t,n,i){return On(t,n).gt(i)}(t,n,i):function(t,n){return On(t).gt(n)}(t,n)},t.isAction=Vt,t.isBoxedObservable=li,t.isComputed=function(t){return qt(t)},t.isComputedProp=function(t,n){return qt(t,n)},t.isFlow=Wt,t.isFlowCancellationError=function(t){return t instanceof Dt},t.isObservable=Ht,t.isObservableArray=hn,t.isObservableMap=Qi,t.isObservableObject=dn,t.isObservableProp=function(t,n){return Gt(t,n)},t.isObservableSet=rr,t.keys=Xt,t.makeAutoObservable=function(t,n,i){return f(t)?It(t,t,n,i):(gn((function(){var r=vn(t,i)[qn];if(!t[Di]){var e=Object.getPrototypeOf(t),u=new Set([].concat(Dn(t),Dn(e)));u.delete("constructor"),u.delete(qn),a(e,Di,u)}t[Di].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))})),t)},t.makeObservable=function(t,n,i){return gn((function(){var r=vn(t,i)[qn];null!=n||(n=function(t){return y(t,Wn)||a(t,Wn,w({},t[Wn])),t[Wn]}(t)),Dn(n).forEach((function(t){return r.o(t,n[t])}))})),t},t.observable=ii,t.observe=function(t,n,i,r){return u(i)?function(t,n,i,r){return On(t,n).At(i,r)}(t,n,i,r):function(t,n,i){return On(t).At(n,i)}(t,n,i)},t.onBecomeObserved=kt,t.onBecomeUnobserved=Lt,t.onReactionError=function(t){return gi.globalReactionErrorHandlers.push(t),function(){var n=gi.globalReactionErrorHandlers.indexOf(t);n>=0&&gi.globalReactionErrorHandlers.splice(n,1)}},t.override=Un,t.ownKeys=Ft,t.reaction=function(t,n,i){function r(){if(y=!1,!m.nt){var n=!1,r=a;m.track((function(){var i=ut(!1,(function(){return t(m)}));n=b||!p(a,i),a=i})),(b&&i.fireImmediately||!b&&n)&&v(a,r,m),b=!1}}var e,u,o,s;void 0===i&&(i=Ln);var f,c,a,h=null!=(e=i.name)?e:"Reaction",v=Ri(h,i.onError?(f=i.onError,c=n,function(){try{return c.apply(this,arguments)}catch(t){f.call(this,t)}}):n),l=!i.scheduler&&!i.delay,d=Tt(i),b=!0,y=!1,p=i.compareStructural?Xn.structural:i.equals||Xn.default,m=new Ai(h,(function(){b||l?r():y||(y=!0,d(r))}),i.onError,i.requiresObservable);return null!=(u=i)&&null!=(o=u.signal)&&o.aborted||m.it(),m.rt(null==(s=i)?void 0:s.signal)},t.remove=function(t,i){dn(t)?t[qn].Gt(i):Qi(t)||rr(t)?t.delete(i):hn(t)?("number"!=typeof i&&(i=parseInt(i,10)),t.splice(i,1)):n(9)},t.runInAction=Nt,t.set=function t(i,r,e){if(2!==arguments.length||rr(i))dn(i)?i[qn].dt(r,e):Qi(i)?i.set(r,e):rr(i)?i.add(r):hn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&n("Invalid index: '"+r+"'"),Ot(),r>=i.length&&(i.length=r+1),i[r]=e,_t()):n(8);else{Ot();var u=r;try{for(var o in u)t(i,o,u[o])}finally{_t()}}},t.spy=Mt,t.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Ht(n))return n;if(li(n)||pi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(hn(n)){var r=zt(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(rr(n)){var e=zt(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Qi(n)){var u=zt(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=zt(i,n,{});return Ft(n).forEach((function(r){Tn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},t.trace=function(){},t.transaction=$t,t.untracked=vt,t.values=function(t){return dn(t)?Xt(t).map((function(n){return t[n]})):Qi(t)?Xt(t).map((function(n){return t.get(n)})):rr(t)?Array.from(t.values()):hn(t)?t.slice():void n(6)},t.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Yt(t,n):Jt(t,n,i||{})},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=mobx.umd.production.min.js.map
{
"name": "mobx",
"version": "6.12.0",
"version": "6.12.1",
"description": "Simple, scalable state management.",

@@ -5,0 +5,0 @@ "source": "src/mobx.ts",

@@ -142,3 +142,2 @@ import {

let value: T
let oldValue: T | undefined

@@ -169,10 +168,10 @@ const equals: IEqualsComparer<T> = (opts as any).compareStructural

let changed: boolean = false
const oldValue = value
r.track(() => {
const nextValue = allowStateChanges(false, () => expression(r))
changed = firstTime || !equals(value, nextValue)
oldValue = value
value = nextValue
})
// This casting is nesessary as TS cannot infer proper type in current funciton implementation
// This casting is nesessary as TS cannot infer proper type in current function implementation
type OldValue = FireImmediately extends true ? T | undefined : T

@@ -179,0 +178,0 @@ if (firstTime && opts.fireImmediately!) {

@@ -169,6 +169,9 @@ import {

const prevAllowStateReads = allowStateReadsStart(true)
// pre allocate array allocation + room for variation in deps
// array will be trimmed by bindDependencies
changeDependenciesStateTo0(derivation)
derivation.newObserving_ = new Array(derivation.observing_.length + 100)
// Preallocate array; will be trimmed by bindDependencies.
derivation.newObserving_ = new Array(
// Reserve constant space for initial dependencies, dynamic space otherwise.
// See https://github.com/mobxjs/mobx/pull/3833
derivation.runId_ === 0 ? 100 : derivation.observing_.length
)
derivation.unboundDepsCount_ = 0

@@ -175,0 +178,0 @@ derivation.runId_ = ++globalState.runId

@@ -74,3 +74,3 @@ import {

if (safariPrototypeSetterInheritanceBug) {
// Seems that Safari won't use numeric prototype setter untill any * numeric property is
// Seems that Safari won't use numeric prototype setter until any * numeric property is
// defined on the instance. After that it works fine, even if this property is deleted.

@@ -77,0 +77,0 @@ Object.defineProperty(this, "0", ENTRY_0)

@@ -566,3 +566,3 @@ import {

// Make sure callbacks recieve correct array arg #2326
// Make sure callbacks receive correct array arg #2326
function mapLikeFunc(funcName) {

@@ -579,3 +579,3 @@ return function (callback, thisArg) {

// Make sure callbacks recieve correct array arg #2326
// Make sure callbacks receive correct array arg #2326
function reduceLikeFunc(funcName) {

@@ -582,0 +582,0 @@ return function () {

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 not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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