From e05b2a545dd9a1c2d81611c3ac4cd955233ce0e4 Mon Sep 17 00:00:00 2001 From: Francisco Gamundi Date: Mon, 20 Jul 2020 07:12:23 +0200 Subject: [PATCH] Fixed Auth modal when deleting account --- dist/main.js | 63 ++++++++++--------- .../src/components/Account/AccountDetails.ts | 56 +++++++++++------ packages/ui/src/pages/Account.ts | 4 +- 3 files changed, 69 insertions(+), 54 deletions(-) diff --git a/dist/main.js b/dist/main.js index b8b618f2..503ec020 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){"use strict";n.d(t,"j",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"i",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"g",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return k}));var r,o,i,a=n(1),s=0,u=[],c=a.j.__r,l=a.j.diffed,d=a.j.__c,f=a.j.unmount;function p(e,t){a.j.__h&&a.j.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function h(e){return s=1,v(j,e)}function v(e,t,n){var i=p(r++,2);return i.t=e,i.__c||(i.__c=o,i.__=[n?n(t):j(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__[0]=t,i.__c.setState({}))}]),i.__}function g(e,t){var n=p(r++,3);!a.j.__s&&S(n.__H,t)&&(n.__=e,n.__H=t,o.__H.__h.push(n))}function y(e,t){var n=p(r++,4);!a.j.__s&&S(n.__H,t)&&(n.__=e,n.__H=t,o.__h.push(n))}function b(e){return s=5,_((function(){return{current:e}}),[])}function m(e,t,n){s=6,y((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function _(e,t){var n=p(r++,7);return S(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function w(e,t){return s=8,_((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=p(r++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){a.j.useDebugValue&&a.j.useDebugValue(t?t(e):e)}function $(){u.some((function(e){if(e.__P)try{e.__H.__h.forEach(O),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){return e.__H.__h=[],a.j.__e(t,e.__v),!0}})),u=[]}function O(e){"function"==typeof e.u&&e.u()}function A(e){e.u=e.__()}function S(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function j(e,t){return"function"==typeof t?t(e):t}a.j.__r=function(e){c&&c(e),r=0;var t=(o=e.__c).__H;t&&(t.__h.forEach(O),t.__h.forEach(A),t.__h=[])},a.j.diffed=function(e){l&&l(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==u.push(t)&&i===a.j.requestAnimationFrame||((i=a.j.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})($))},a.j.__c=function(e,t){t.some((function(e){try{e.__h.forEach(O),e.__h=e.__h.filter((function(e){return!e.__||A(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.j.__e(n,e.__v)}})),d&&d(e,t)},a.j.unmount=function(e){f&&f(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(O)}catch(e){a.j.__e(e,t.__v)}}},function(e,t,n){"use strict";n.d(t,"k",(function(){return B})),n.d(t,"i",(function(){return M})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return R})),n.d(t,"l",(function(){return O})),n.d(t,"c",(function(){return P})),n.d(t,"j",(function(){return r}));var r,o,i,a,s,u,c,l={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o=arguments,i={};for(r in t)"key"!==r&&"ref"!==r&&(i[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r2&&(t.children=d.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return g(e.type,n,t.key||e.key,t.ref||e.ref,null)}function R(e){var t={},n={__c:"__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,o=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(e){o.props.value!==e.value&&r.some((function(t){t.context=e.value,x(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return x(n.__E=n)}catch(t){e=t}throw e}},m.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=b,o=[],i=0,a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=l,c=0},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Be})),n.d(t,"b",(function(){return qe})),n.d(t,"c",(function(){return Qe})),n.d(t,"d",(function(){return rt})),n.d(t,"e",(function(){return J})),n.d(t,"f",(function(){return We})),n.d(t,"g",(function(){return Ve})),n.d(t,"h",(function(){return ct})); +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){"use strict";n.d(t,"j",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"i",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"g",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return k}));var r,o,i,a=n(1),s=0,u=[],c=a.j.__r,l=a.j.diffed,d=a.j.__c,f=a.j.unmount;function p(e,t){a.j.__h&&a.j.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function h(e){return s=1,v(S,e)}function v(e,t,n){var i=p(r++,2);return i.t=e,i.__c||(i.__c=o,i.__=[n?n(t):S(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__[0]=t,i.__c.setState({}))}]),i.__}function g(e,t){var n=p(r++,3);!a.j.__s&&j(n.__H,t)&&(n.__=e,n.__H=t,o.__H.__h.push(n))}function y(e,t){var n=p(r++,4);!a.j.__s&&j(n.__H,t)&&(n.__=e,n.__H=t,o.__h.push(n))}function b(e){return s=5,_((function(){return{current:e}}),[])}function m(e,t,n){s=6,y((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function _(e,t){var n=p(r++,7);return j(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function w(e,t){return s=8,_((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=p(r++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){a.j.useDebugValue&&a.j.useDebugValue(t?t(e):e)}function $(){u.some((function(e){if(e.__P)try{e.__H.__h.forEach(O),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){return e.__H.__h=[],a.j.__e(t,e.__v),!0}})),u=[]}function O(e){"function"==typeof e.u&&e.u()}function A(e){e.u=e.__()}function j(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function S(e,t){return"function"==typeof t?t(e):t}a.j.__r=function(e){c&&c(e),r=0;var t=(o=e.__c).__H;t&&(t.__h.forEach(O),t.__h.forEach(A),t.__h=[])},a.j.diffed=function(e){l&&l(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==u.push(t)&&i===a.j.requestAnimationFrame||((i=a.j.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})($))},a.j.__c=function(e,t){t.some((function(e){try{e.__h.forEach(O),e.__h=e.__h.filter((function(e){return!e.__||A(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.j.__e(n,e.__v)}})),d&&d(e,t)},a.j.unmount=function(e){f&&f(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(O)}catch(e){a.j.__e(e,t.__v)}}},function(e,t,n){"use strict";n.d(t,"k",(function(){return B})),n.d(t,"i",(function(){return M})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return R})),n.d(t,"l",(function(){return O})),n.d(t,"c",(function(){return P})),n.d(t,"j",(function(){return r}));var r,o,i,a,s,u,c,l={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o=arguments,i={};for(r in t)"key"!==r&&"ref"!==r&&(i[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r2&&(t.children=d.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return g(e.type,n,t.key||e.key,t.ref||e.ref,null)}function R(e){var t={},n={__c:"__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,o=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(e){o.props.value!==e.value&&r.some((function(t){t.context=e.value,x(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return x(n.__E=n)}catch(t){e=t}throw e}},m.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=b,o=[],i=0,a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=l,c=0},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Be})),n.d(t,"b",(function(){return qe})),n.d(t,"c",(function(){return Qe})),n.d(t,"d",(function(){return rt})),n.d(t,"e",(function(){return J})),n.d(t,"f",(function(){return He})),n.d(t,"g",(function(){return Ve})),n.d(t,"h",(function(){return ct})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -13,7 +13,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t2&&X("box");var n=z(t);return new me(e,K(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&X("array");var n=z(t);return wt(e,K(n),n.name)},map:function(e,t){arguments.length>2&&X("map");var n=z(t);return new Ct(e,K(n),n.name)},set:function(e,t){arguments.length>2&&X("set");var n=z(t);return new Dt(e,K(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&X("object");var r=z(n);if(!1===r.proxy)return et({},e,t,r);var o=tt(r),i=et({},void 0,void 0,r),a=pt(i);return nt(a,e,t,o),a},ref:H,shallow:G,deep:F,struct:W},J=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return F.apply(null,arguments);if(st(e))return e;var r=y(e)?J.object(e,t,n):Array.isArray(e)?J.array(e,t):_(e)?J.map(e,t):w(e)?J.set(e,t):e;if(r!==e)return r;f(!1)};function X(e){f("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(q).forEach((function(e){return J[e]=q[e]}));var Y,Z,Q=M(!1,(function(e,t,n,r,o){var a=n.get,s=n.set,u=o[0]||{};Bt(e).addComputedProp(e,t,i({get:a,set:s,context:e},u))}));Q({equals:C.structural});!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Y||(Y={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Z||(Z={}));var ee=function(e){this.cause=e};function te(e){return e instanceof ee}function ne(e){switch(e.dependenciesState){case Y.UP_TO_DATE:return!1;case Y.NOT_TRACKING:case Y.STALE:return!0;case Y.POSSIBLY_STALE:for(var t=ce(!0),n=se(),r=e.observing,o=r.length,i=0;i0;Se.computationDepth>0&&t&&f(!1),Se.allowStateChanges||!t&&"strict"!==Se.enforceActions||f(!1)}function oe(e,t,n){var r=ce(!0);de(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Se.runId;var o,i=Se.trackingDerivation;if(Se.trackingDerivation=e,!0===Se.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new ee(e)}return Se.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=Y.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(s=t[i]).diffValue&&Ce(s,e),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,je(s,e))}r!==Y.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),le(r),o}function ie(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ce(t[n],e);e.dependenciesState=Y.NOT_TRACKING}function ae(e){var t=se();try{return e()}finally{ue(t)}}function se(){var e=Se.trackingDerivation;return Se.trackingDerivation=null,e}function ue(e){Se.trackingDerivation=e}function ce(e){var t=Se.allowStateReads;return Se.allowStateReads=e,t}function le(e){Se.allowStateReads=e}function de(e){if(e.dependenciesState!==Y.UP_TO_DATE){e.dependenciesState=Y.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Y.UP_TO_DATE}}var fe=0,pe=1,he=Object.getOwnPropertyDescriptor((function(){}),"name");he&&he.configurable;function ve(e,t,n){var r=function(){return ge(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function ge(e,t,n,r){var o=function(e,t,n){var r=0;var o=se();Te();var i=ye(!0),a=ce(!0),s={prevDerivation:o,prevAllowStateChanges:i,prevAllowStateReads:a,notifySpy:!1,startTime:r,actionId:pe++,parentActionId:fe};return fe=s.actionId,s}();try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{!function(e){fe!==e.actionId&&f("invalid action stack. did you forget to finish an action?");fe=e.parentActionId,void 0!==e.error&&(Se.suppressReactionErrors=!0);be(e.prevAllowStateChanges),le(e.prevAllowStateReads),De(),ue(e.prevDerivation),e.notifySpy&&!1;Se.suppressReactionErrors=!1}(o)}}function ye(e){var t=Se.allowStateChanges;return Se.allowStateChanges=e,t}function be(e){Se.allowStateChanges=e}var me=function(e){function t(t,n,r,o,i){void 0===r&&(r="ObservableValue@"+d()),void 0===o&&(o=!0),void 0===i&&(i=C.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),a}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==Se.UNCHANGED){0,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(re(this),ht(this)){var t=gt(this,{object:this,type:"update",newValue:e});if(!t)return Se.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Se.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),yt(this)&&mt(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return vt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),bt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return $(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(A),_e=(m("ObservableValue",me),function(){function e(e){this.dependenciesState=Y.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Y.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new ee(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,p(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+d(),e.set&&(this.setter=ve(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?C.structural:C.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==Y.UP_TO_DATE)return;e.lowestObserverState=Y.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===Y.UP_TO_DATE&&(t.dependenciesState=Y.POSSIBLY_STALE,t.isTracing!==Z.NONE&&Le(t,e),t.onBecomeStale())}))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&f("Cycle detected in computation "+this.name+": "+this.derivation),0!==Se.inBatch||0!==this.observers.size||this.keepAlive?(Pe(this),ne(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===Y.STALE)return;e.lowestObserverState=Y.STALE,e.observers.forEach((function(t){t.dependenciesState===Y.POSSIBLY_STALE?t.dependenciesState=Y.STALE:t.dependenciesState===Y.UP_TO_DATE&&(e.lowestObserverState=Y.UP_TO_DATE)}))}(this)):ne(this)&&(this.warnAboutUntrackedRead(),Te(),this.value=this.computeValue(!1),De());var e=this.value;if(te(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(te(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){p(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else p(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===Y.NOT_TRACKING,n=this.computeValue(!0),r=t||te(e)||te(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Se.computationDepth++,e)t=oe(this,this.derivation,this.scope);else if(!0===Se.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ee(e)}return Se.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ie(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return qe((function(){var i=n.get();if(!r||t){var a=se();e({type:"update",object:n,newValue:i,oldValue:o}),ue(a)}r=!1,o=i}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return $(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}()),we=m("ComputedValue",_e),xe=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},ke={};function $e(){return"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:ke}var Oe=!0,Ae=!1,Se=function(){var e=$e();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Oe=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new xe).version&&(Oe=!1),Oe?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new xe):(setTimeout((function(){Ae||f("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new xe)}();function je(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ce(e,t){e.observers.delete(t),0===e.observers.size&&Ee(e)}function Ee(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Se.pendingUnobservations.push(e))}function Te(){Se.inBatch++}function De(){if(0==--Se.inBatch){Ne();for(var e=Se.pendingUnobservations,t=0;t0&&Ee(e),!1)}function Le(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Z.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,r+1)}))}(rt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof _e?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Be=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+d()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=Y.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Se.pendingReactions.push(this),Ne())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Te(),this._isScheduled=!1,ne(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}De()}},e.prototype.track=function(e){if(!this.isDisposed){Te();0,this._isRunning=!0;var t=oe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ie(this),te(t)&&this.reportExceptionInDerivation(t.cause),De()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Se.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Se.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Se.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Te(),ie(this),De()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[O]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t0||Se.isRunningReactions||Me(Re)}function Re(){Se.isRunningReactions=!0;for(var e=Se.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",e):2===arguments.length&&"function"==typeof t?ve(e,t):1===arguments.length&&"string"==typeof e?Fe(e):!0!==r?Fe(t).apply(null,arguments):void b(e,t,ve(e.name||t,n.value,this))};function We(e,t){"string"==typeof e||e.name;return ge(0,"function"==typeof e?e:t,this,void 0)}function Ke(e,t,n){b(e,t,ve(t,n.bind(e)))}function qe(e,t){void 0===t&&(t=l);var n,r=t&&t.name||e.name||"Autorun@"+d();if(!t.scheduler&&!t.delay)n=new Be(r,(function(){this.track(a)}),t.onError,t.requiresObservable);else{var o=Xe(t),i=!1;n=new Be(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),t.onError,t.requiresObservable)}function a(){e(n)}return n.schedule(),n.getDisposer()}He.bound=function(e,t,n,r){return!0===r?(Ke(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Ke(this,t,n.value||n.initializer.call(this)),this[t]},set:ze}:{enumerable:!1,configurable:!0,set:function(e){Ke(this,t,e)},get:function(){}}};var Je=function(e){return e()};function Xe(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Je}function Ye(e,t,n){return Ze("onBecomeUnobserved",e,t,n)}function Ze(e,t,n,r){var o="function"==typeof r?Vt(t,n):Vt(t),i="function"==typeof r?r:n,a=e+"Listeners";return o[a]?o[a].add(i):o[a]=new Set([i]),"function"!=typeof o[e]?f(!1):function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}function Qe(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.reactionScheduler,a=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Se.pendingReactions.length||Se.inBatch||Se.isRunningReactions)&&f("isolateGlobalState should be called before MobX is running any reactions"),Ae=!0,Oe&&(0==--$e().__mobxInstanceCount&&($e().__mobxGlobals=void 0),Se=new xe)),void 0!==t){var u=void 0;switch(t){case!0:case"observed":u=!0;break;case!1:case"never":u=!1;break;case"strict":case"always":u="strict";break;default:f("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Se.enforceActions=u,Se.allowStateChanges=!0!==u&&"strict"!==u}void 0!==n&&(Se.computedRequiresReaction=!!n),void 0!==a&&(Se.reactionRequiresObservable=!!a),void 0!==s&&(Se.observableRequiresReaction=!!s,Se.allowStateReads=!Se.observableRequiresReaction),void 0!==r&&(Se.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),Se.disableErrorBoundaries=!!o),i&&Ue(i)}function et(e,t,n,r){var o=tt(r=z(r));return B(e),Bt(e,r.name,o.enhancer),t&&nt(e,t,n,o),e}function tt(e){return e.defaultDecorator||(!1===e.deep?H:F)}function nt(e,t,n,r){var o,i;Te();try{var s=x(t);try{for(var u=a(s),c=u.next();!c.done;c=u.next()){var l=c.value,d=Object.getOwnPropertyDescriptor(t,l);0;var f=(n&&l in n?n[l]:d.get?Q:r)(e,l,d,!0);f&&Object.defineProperty(e,l,f)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}finally{De()}}function rt(e,t){return ot(Vt(e,t))}function ot(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(ot)),r}function it(){this.message="FLOW_CANCELLED"}function at(e,t){return null!=e&&(void 0!==t?!!Ut(e)&&e[O].values.has(t):Ut(e)||!!e[O]||S(e)||Ie(e)||we(e))}function st(e){return 1!==arguments.length&&f(!1),at(e)}it.prototype=Object.create(Error.prototype);function ut(e){switch(e.length){case 0:return Se.trackingDerivation;case 1:return Vt(e[0]);case 2:return Vt(e[0],e[1])}}function ct(e,t){void 0===t&&(t=void 0),Te();try{return e.apply(t)}finally{De()}}function lt(e){return e[O]}function dt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var ft={has:function(e,t){if(t===O||"constructor"===t||t===E)return!0;var n=lt(e);return dt(t)?n.has(t):t in e},get:function(e,t){if(t===O||"constructor"===t||t===E)return e[t];var n=lt(e),r=n.values.get(t);if(r instanceof A){var o=r.get();return void 0===o&&n.has(t),o}return dt(t)&&n.has(t),e[t]},set:function(e,t,n){return!!dt(t)&&(function e(t,n,r){if(2!==arguments.length||Pt(t))if(Ut(t)){var o=t[O],i=o.values.get(n);i?o.write(n,r):o.addObservableProp(n,r,o.defaultEnhancer)}else if(Et(t))t.set(n,r);else if(Pt(t))t.add(n);else{if(!At(t))return f(!1);"number"!=typeof n&&(n=parseInt(n,10)),p(n>=0,"Not a valid index: '"+n+"'"),Te(),n>=t.length&&(t.length=n+1),t[n]=r,De()}else{Te();var a=n;try{for(var s in a)e(t,s,a[s])}finally{De()}}}(e,t,n),!0)},deleteProperty:function(e,t){return!!dt(t)&&(lt(e).remove(t),!0)},ownKeys:function(e){return lt(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return f("Dynamic observable objects cannot be frozen"),!1}};function pt(e){var t=new Proxy(e,ft);return e[O].proxy=t,t}function ht(e){return void 0!==e.interceptors&&e.interceptors.length>0}function vt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),h((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function gt(e,t){var n=se();try{for(var r=u(e.interceptors||[]),o=0,i=r.length;o0}function bt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),h((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function mt(e,t){var n=se(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return vt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),bt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;ro?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=c),ht(this)){var i=gt(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!i)return c;t=i.removedCount,n=i.added}n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}));var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&!1,o=yt(this),i=o||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),o&&mt(this,i)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&!1,o=yt(this),i=o||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),o&&mt(this,i)},e}(),kt={intercept:function(e){return this[O].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[O].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[O];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(e){var t=this[O];if(t){if(e=0&&r++}t=Ht(t),n=Ht(n);var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var d=(o=o||[]).length;for(;d--;)if(o[d]===t)return i[d]===n;if(o.push(t),i.push(n),u){if((d=t.length)!==n.length)return!1;for(;d--;)if(!e(t[d],n[d],r-1,o,i))return!1}else{var f=Object.keys(t),p=void 0;if(d=f.length,Object.keys(n).length!==d)return!1;for(;d--;)if(p=f[d],!Wt(n,p)||!e(t[p],n[p],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(e,t,n)}function Ht(e){return At(e)?e.slice():_(e)||Et(e)||w(e)||Pt(e)?Array.from(e.entries()):e}function Wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kt(e){return e[Symbol.iterator]=qt,e}function qt(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ve,extras:{getDebugName:function(e,t){return(void 0!==t?Vt(e,t):Ut(e)||Et(e)||Pt(e)?zt(e):Vt(e)).name}},$mobx:O})}).call(this,n(7),n(5))},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(0);n.d(t,"d",(function(){return r.a})),n.d(t,"e",(function(){return r.j}));var o=n(1);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}var s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)},r}(o.a);function u(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Object(o.f)(e,t)}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var c=o.j.__b;o.j.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t,n){var r=i({},t);return delete r.ref,e(r,t.ref||n)}return t.$$typeof=l,t.render=t,t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var f=function(e,t){return e?Object(o.l)(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},p={map:f,forEach:f,count:function(e){return e?Object(o.l)(e).length:0},only:function(e){if(1!==(e=Object(o.l)(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:o.l},h=o.j.__e;function v(e){return e&&((e=i({},e)).__c=null,e.__k=e.__k&&e.__k.map(v)),e}function g(){this.__u=0,this.o=null,this.__b=null}function y(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function b(){this.i=null,this.l=null}o.j.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return r.__c(e,t.__c);h(e,t,n)},(g.prototype=new o.a).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=y(n.__v),o=!1,i=function(){o||(o=!0,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){i(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(i,i)},g.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=v(this.__b),this.__b=null),[Object(o.f)(o.a,null,t.u?null:e.children),t.u&&e.fallback]};var m=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]=n.cleanAt&&(n.reaction.dispose(),t.current=null,d.delete(t))})),d.size>0&&f()}var h={};function v(e){return"observer"+e}function g(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=h),a())return e();var i,c=(n.useForceUpdate||s)(),p=o.a.useRef(null);if(!p.current){var g=new r.a(v(t),(function(){y.mounted?c():(g.dispose(),p.current=null)})),y=function(e){return{cleanAt:Date.now()+l,reaction:e}}(g);p.current=y,i=p,d.add(i),f()}var b,m,_=p.current.reaction;if(o.a.useDebugValue(_,u),o.a.useEffect((function(){var e;return e=p,d.delete(e),p.current?p.current.mounted=!0:(p.current={reaction:new r.a(v(t),(function(){c()})),cleanAt:1/0},c()),function(){p.current.reaction.dispose(),p.current=null}}),[]),_.track((function(){try{b=e()}catch(e){m=e}})),m)throw m;return b}function y(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:g(r)}function b(e,t,n,r,o){var i="children"===t?"render":"children",a="function"==typeof e[t],s="function"==typeof e[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}function m(e,t){if(!t||void 0!==e){0;var n=o.a.useState((function(){return Object(r.e)(e,{},{deep:!1})}))[0];return Object(r.f)((function(){Object.assign(n,e)})),n}}function _(e,t){var n=m(t,!0);return o.a.useState((function(){var t=Object(r.e)(e(n));return function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(t)&&Object(r.f)((function(){Object.keys(t).forEach((function(e){var n,o,i=t[e];"function"==typeof i&&(t[e]=(n=i,o=t,function(){for(var e=arguments.length,t=new Array(e),i=0;i=7&&h(e),null==a&&(a=b(n,r,s)),g(a,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1){a=!e&&1==(t>>r&1);o[r%3+i-8-3][Math.floor(r/3)]=a}},v=function(e,t){for(var n=r<<3|t,a=y.getBCHTypeInfo(n),s=0;s<15;s+=1){var u=!e&&1==(a>>s&1);s<6?o[s][8]=u:s<8?o[s+1][8]=u:o[i-15+s][8]=u}for(s=0;s<15;s+=1){u=!e&&1==(a>>s&1);s<8?o[8][i-s-1]=u:s<9?o[8][15-s-1+1]=u:o[8][15-s-1]=u}o[i-8][8]=!e},g=function(e,t){for(var n=-1,r=i-1,a=7,s=0,u=y.getMaskFunction(t),c=i-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var l=0;l<2;l+=1)if(null==o[r][c-l]){var d=!1;s>>a&1)),u(r,c-l)&&(d=!d),o[r][c-l]=d,-1==(a-=1)&&(s+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},b=function(e,t,n){for(var r=_.getRSBlocks(e,t),o=w(),i=0;i8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(236,8),o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s=0?f.getAt(p):0}}var h=0;for(l=0;lr)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var o=0;o';n+=""}return n+="",n+="
"},c.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,u,l=c.getModuleCount()*e+2*t,d="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+=''+A(r.text)+"":"",d+=n.text?''+A(n.text)+"":"",d+='',d+='":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,a=1*c.getModuleCount()+2*e,s=e,u=a-e,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t=u?d[i]:l[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,a=c.getModuleCount()*e+2*t,s=t,u=a-t,l=Array(e+1).join("██"),d=Array(e+1).join(" "),f="",p="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,o=1,i=2,a=4,s=8,u={L:1,M:0,Q:3,H:2},c=0,l=1,d=2,f=3,p=4,h=5,v=6,g=7,y=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(n={}).getBCHTypeInfo=function(e){for(var t=e<<10;r(t)-r(1335)>=0;)t^=1335<=0;)t^=7973<5&&(n+=3+i-5)}for(r=0;r=256;)t-=255;return e[t]}};return r}();function m(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},x=function(e){var t=o,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2>>8&255)+(255&r),e.put(r,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o0&&(t+=","),t+=e[n];return t+="]"}};return t},S=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},j=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>o!=0)throw"length over";for(;n+o>=8;)t.writeByte(255&(e<>>=8-n,r=0,n=0;r|=e<0&&t.writeByte(r)}};return o}(u);c.write(t,r);var l=0,d=String.fromCharCode(o[l]);for(l+=1;l=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},o=[],void 0===(i="function"==typeof(r=function(){return a})?r.apply(t,o):r)||(e.exports=i)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n=5&&((o||!e&&5===r)&&(a.push(r,0,o,n),r=6),e&&(a.push(r,e,0,n),r=6)),o=""},u=0;u"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(s(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[u][c+1])?(s(),3===r&&(a=a[0]),r=a,(a=a[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),r=2):o+=t),3===r&&"!--"===o&&(r=4,a=a[0])}return s(),a}(e)),t),arguments,[])).length>1?t:t[0]}.bind(r.h),s=n(0),u=n(2),c=n(4),l={};function d(e,t){for(var n in t)e[n]=t[n];return e}function f(e,t,n){var r,o=/(?:\?([^#]*))?(#.*)?$/,i=e.match(o),a={};if(i&&i[1])for(var s=i[1].split("&"),u=0;ut.rank?-1:e.index-t.index}function h(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,v(t).map(g).join(""));var t}(e),e.props}function v(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function g(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}var y=null,b=[],m=[],_={};function w(){var e;return""+((e=y&&y.location?y.location:y&&y.getCurrentLocation?y.getCurrentLocation():"undefined"!=typeof location?location:_).pathname||"")+(e.search||"")}function x(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),function(e){for(var t=b.length;t--;)if(b[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),y&&y[t]?y[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),k(e)}function k(e){for(var t=!1,n=0;n0},t.prototype.routeTo=function(e){this.setState({url:e});var t=this.canRoute(e);return this.updating||this.forceUpdate(),t},t.prototype.componentWillMount=function(){b.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;y&&(this.unlisten=y.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),b.splice(b.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,n){return e.filter(h).sort(p).map((function(e){var o=f(t,e.props.path,e.props);if(o){if(!1!==n){var i={url:t,matches:o};return d(i,o),delete i.ref,delete i.key,Object(r.d)(e,i)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var n=e.children,o=e.onChange,i=t.url,a=this.getMatchingChildren(Object(r.l)(n),i,!0),s=a[0]||null,u=this.previousUrl;return i!==u&&(this.previousUrl=i,"function"==typeof o&&o({router:this,url:i,previous:u,active:a,current:s})),s},t}(r.a),E=function(e){return Object(r.f)("a",d({onClick:O},e))},T=function(e){return Object(r.f)(e.component,e)};C.subscribers=m,C.getCurrentUrl=w,C.route=x,C.Router=C,C.Route=T,C.Link=E,C.exec=f;function D(){return(D=Object.assign||function(e){for(var t=1;t{const t=Object(s.b)(De),[n,r]=Object(s.j)(!1);let o="dropdown is-right";n&&(o+=" is-active");const i=()=>{r(!n)},u=e=>{t.setLedger(e),i(),x("/wallet")};return Object(c.b)(()=>a` +var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t2&&X("box");var n=z(t);return new me(e,K(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&X("array");var n=z(t);return wt(e,K(n),n.name)},map:function(e,t){arguments.length>2&&X("map");var n=z(t);return new Ct(e,K(n),n.name)},set:function(e,t){arguments.length>2&&X("set");var n=z(t);return new Dt(e,K(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&X("object");var r=z(n);if(!1===r.proxy)return et({},e,t,r);var o=tt(r),i=et({},void 0,void 0,r),a=pt(i);return nt(a,e,t,o),a},ref:W,shallow:G,deep:F,struct:H},J=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return F.apply(null,arguments);if(st(e))return e;var r=y(e)?J.object(e,t,n):Array.isArray(e)?J.array(e,t):_(e)?J.map(e,t):w(e)?J.set(e,t):e;if(r!==e)return r;f(!1)};function X(e){f("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(q).forEach((function(e){return J[e]=q[e]}));var Y,Z,Q=M(!1,(function(e,t,n,r,o){var a=n.get,s=n.set,u=o[0]||{};Bt(e).addComputedProp(e,t,i({get:a,set:s,context:e},u))}));Q({equals:C.structural});!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Y||(Y={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Z||(Z={}));var ee=function(e){this.cause=e};function te(e){return e instanceof ee}function ne(e){switch(e.dependenciesState){case Y.UP_TO_DATE:return!1;case Y.NOT_TRACKING:case Y.STALE:return!0;case Y.POSSIBLY_STALE:for(var t=ce(!0),n=se(),r=e.observing,o=r.length,i=0;i0;je.computationDepth>0&&t&&f(!1),je.allowStateChanges||!t&&"strict"!==je.enforceActions||f(!1)}function oe(e,t,n){var r=ce(!0);de(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++je.runId;var o,i=je.trackingDerivation;if(je.trackingDerivation=e,!0===je.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new ee(e)}return je.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=Y.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(s=t[i]).diffValue&&Ce(s,e),s.diffValue=0}for(;o--;){var s;1===(s=n[o]).diffValue&&(s.diffValue=0,Se(s,e))}r!==Y.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),le(r),o}function ie(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ce(t[n],e);e.dependenciesState=Y.NOT_TRACKING}function ae(e){var t=se();try{return e()}finally{ue(t)}}function se(){var e=je.trackingDerivation;return je.trackingDerivation=null,e}function ue(e){je.trackingDerivation=e}function ce(e){var t=je.allowStateReads;return je.allowStateReads=e,t}function le(e){je.allowStateReads=e}function de(e){if(e.dependenciesState!==Y.UP_TO_DATE){e.dependenciesState=Y.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Y.UP_TO_DATE}}var fe=0,pe=1,he=Object.getOwnPropertyDescriptor((function(){}),"name");he&&he.configurable;function ve(e,t,n){var r=function(){return ge(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function ge(e,t,n,r){var o=function(e,t,n){var r=0;var o=se();Te();var i=ye(!0),a=ce(!0),s={prevDerivation:o,prevAllowStateChanges:i,prevAllowStateReads:a,notifySpy:!1,startTime:r,actionId:pe++,parentActionId:fe};return fe=s.actionId,s}();try{return t.apply(n,r)}catch(e){throw o.error=e,e}finally{!function(e){fe!==e.actionId&&f("invalid action stack. did you forget to finish an action?");fe=e.parentActionId,void 0!==e.error&&(je.suppressReactionErrors=!0);be(e.prevAllowStateChanges),le(e.prevAllowStateReads),De(),ue(e.prevDerivation),e.notifySpy&&!1;je.suppressReactionErrors=!1}(o)}}function ye(e){var t=je.allowStateChanges;return je.allowStateChanges=e,t}function be(e){je.allowStateChanges=e}var me=function(e){function t(t,n,r,o,i){void 0===r&&(r="ObservableValue@"+d()),void 0===o&&(o=!0),void 0===i&&(i=C.default);var a=e.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=i,a.hasUnreportedChange=!1,a.value=n(t,void 0,r),a}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==je.UNCHANGED){0,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(re(this),ht(this)){var t=gt(this,{object:this,type:"update",newValue:e});if(!t)return je.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?je.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),yt(this)&&mt(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return vt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),bt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return $(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(A),_e=(m("ObservableValue",me),function(){function e(e){this.dependenciesState=Y.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Y.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new ee(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,p(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+d(),e.set&&(this.setter=ve(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?C.structural:C.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==Y.UP_TO_DATE)return;e.lowestObserverState=Y.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===Y.UP_TO_DATE&&(t.dependenciesState=Y.POSSIBLY_STALE,t.isTracing!==Z.NONE&&Le(t,e),t.onBecomeStale())}))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&f("Cycle detected in computation "+this.name+": "+this.derivation),0!==je.inBatch||0!==this.observers.size||this.keepAlive?(Pe(this),ne(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===Y.STALE)return;e.lowestObserverState=Y.STALE,e.observers.forEach((function(t){t.dependenciesState===Y.POSSIBLY_STALE?t.dependenciesState=Y.STALE:t.dependenciesState===Y.UP_TO_DATE&&(e.lowestObserverState=Y.UP_TO_DATE)}))}(this)):ne(this)&&(this.warnAboutUntrackedRead(),Te(),this.value=this.computeValue(!1),De());var e=this.value;if(te(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(te(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){p(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else p(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===Y.NOT_TRACKING,n=this.computeValue(!0),r=t||te(e)||te(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,je.computationDepth++,e)t=oe(this,this.derivation,this.scope);else if(!0===je.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ee(e)}return je.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ie(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return qe((function(){var i=n.get();if(!r||t){var a=se();e({type:"update",object:n,newValue:i,oldValue:o}),ue(a)}r=!1,o=i}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return $(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}()),we=m("ComputedValue",_e),xe=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},ke={};function $e(){return"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:ke}var Oe=!0,Ae=!1,je=function(){var e=$e();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Oe=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new xe).version&&(Oe=!1),Oe?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new xe):(setTimeout((function(){Ae||f("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new xe)}();function Se(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ce(e,t){e.observers.delete(t),0===e.observers.size&&Ee(e)}function Ee(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,je.pendingUnobservations.push(e))}function Te(){je.inBatch++}function De(){if(0==--je.inBatch){Ne();for(var e=je.pendingUnobservations,t=0;t0&&Ee(e),!1)}function Le(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Z.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,r+1)}))}(rt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof _e?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Be=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+d()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=Y.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,je.pendingReactions.push(this),Ne())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Te(),this._isScheduled=!1,ne(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}De()}},e.prototype.track=function(e){if(!this.isDisposed){Te();0,this._isRunning=!0;var t=oe(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ie(this),te(t)&&this.reportExceptionInDerivation(t.cause),De()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(je.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";je.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),je.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Te(),ie(this),De()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[O]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t0||je.isRunningReactions||Me(Re)}function Re(){je.isRunningReactions=!0;for(var e=je.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",e):2===arguments.length&&"function"==typeof t?ve(e,t):1===arguments.length&&"string"==typeof e?Fe(e):!0!==r?Fe(t).apply(null,arguments):void b(e,t,ve(e.name||t,n.value,this))};function He(e,t){"string"==typeof e||e.name;return ge(0,"function"==typeof e?e:t,this,void 0)}function Ke(e,t,n){b(e,t,ve(t,n.bind(e)))}function qe(e,t){void 0===t&&(t=l);var n,r=t&&t.name||e.name||"Autorun@"+d();if(!t.scheduler&&!t.delay)n=new Be(r,(function(){this.track(a)}),t.onError,t.requiresObservable);else{var o=Xe(t),i=!1;n=new Be(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),t.onError,t.requiresObservable)}function a(){e(n)}return n.schedule(),n.getDisposer()}We.bound=function(e,t,n,r){return!0===r?(Ke(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Ke(this,t,n.value||n.initializer.call(this)),this[t]},set:ze}:{enumerable:!1,configurable:!0,set:function(e){Ke(this,t,e)},get:function(){}}};var Je=function(e){return e()};function Xe(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Je}function Ye(e,t,n){return Ze("onBecomeUnobserved",e,t,n)}function Ze(e,t,n,r){var o="function"==typeof r?Vt(t,n):Vt(t),i="function"==typeof r?r:n,a=e+"Listeners";return o[a]?o[a].add(i):o[a]=new Set([i]),"function"!=typeof o[e]?f(!1):function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}function Qe(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.reactionScheduler,a=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((je.pendingReactions.length||je.inBatch||je.isRunningReactions)&&f("isolateGlobalState should be called before MobX is running any reactions"),Ae=!0,Oe&&(0==--$e().__mobxInstanceCount&&($e().__mobxGlobals=void 0),je=new xe)),void 0!==t){var u=void 0;switch(t){case!0:case"observed":u=!0;break;case!1:case"never":u=!1;break;case"strict":case"always":u="strict";break;default:f("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}je.enforceActions=u,je.allowStateChanges=!0!==u&&"strict"!==u}void 0!==n&&(je.computedRequiresReaction=!!n),void 0!==a&&(je.reactionRequiresObservable=!!a),void 0!==s&&(je.observableRequiresReaction=!!s,je.allowStateReads=!je.observableRequiresReaction),void 0!==r&&(je.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),je.disableErrorBoundaries=!!o),i&&Ue(i)}function et(e,t,n,r){var o=tt(r=z(r));return B(e),Bt(e,r.name,o.enhancer),t&&nt(e,t,n,o),e}function tt(e){return e.defaultDecorator||(!1===e.deep?W:F)}function nt(e,t,n,r){var o,i;Te();try{var s=x(t);try{for(var u=a(s),c=u.next();!c.done;c=u.next()){var l=c.value,d=Object.getOwnPropertyDescriptor(t,l);0;var f=(n&&l in n?n[l]:d.get?Q:r)(e,l,d,!0);f&&Object.defineProperty(e,l,f)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}finally{De()}}function rt(e,t){return ot(Vt(e,t))}function ot(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(ot)),r}function it(){this.message="FLOW_CANCELLED"}function at(e,t){return null!=e&&(void 0!==t?!!Ut(e)&&e[O].values.has(t):Ut(e)||!!e[O]||j(e)||Ie(e)||we(e))}function st(e){return 1!==arguments.length&&f(!1),at(e)}it.prototype=Object.create(Error.prototype);function ut(e){switch(e.length){case 0:return je.trackingDerivation;case 1:return Vt(e[0]);case 2:return Vt(e[0],e[1])}}function ct(e,t){void 0===t&&(t=void 0),Te();try{return e.apply(t)}finally{De()}}function lt(e){return e[O]}function dt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var ft={has:function(e,t){if(t===O||"constructor"===t||t===E)return!0;var n=lt(e);return dt(t)?n.has(t):t in e},get:function(e,t){if(t===O||"constructor"===t||t===E)return e[t];var n=lt(e),r=n.values.get(t);if(r instanceof A){var o=r.get();return void 0===o&&n.has(t),o}return dt(t)&&n.has(t),e[t]},set:function(e,t,n){return!!dt(t)&&(function e(t,n,r){if(2!==arguments.length||Pt(t))if(Ut(t)){var o=t[O],i=o.values.get(n);i?o.write(n,r):o.addObservableProp(n,r,o.defaultEnhancer)}else if(Et(t))t.set(n,r);else if(Pt(t))t.add(n);else{if(!At(t))return f(!1);"number"!=typeof n&&(n=parseInt(n,10)),p(n>=0,"Not a valid index: '"+n+"'"),Te(),n>=t.length&&(t.length=n+1),t[n]=r,De()}else{Te();var a=n;try{for(var s in a)e(t,s,a[s])}finally{De()}}}(e,t,n),!0)},deleteProperty:function(e,t){return!!dt(t)&&(lt(e).remove(t),!0)},ownKeys:function(e){return lt(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return f("Dynamic observable objects cannot be frozen"),!1}};function pt(e){var t=new Proxy(e,ft);return e[O].proxy=t,t}function ht(e){return void 0!==e.interceptors&&e.interceptors.length>0}function vt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),h((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function gt(e,t){var n=se();try{for(var r=u(e.interceptors||[]),o=0,i=r.length;o0}function bt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),h((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function mt(e,t){var n=se(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return vt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),bt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;ro?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=c),ht(this)){var i=gt(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!i)return c;t=i.removedCount,n=i.added}n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}));var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,u([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&!1,o=yt(this),i=o||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),o&&mt(this,i)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&!1,o=yt(this),i=o||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),o&&mt(this,i)},e}(),kt={intercept:function(e){return this[O].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[O].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[O];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(e){var t=this[O];if(t){if(e=0&&r++}t=Wt(t),n=Wt(n);var u="[object Array]"===s;if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);i=i||[];var d=(o=o||[]).length;for(;d--;)if(o[d]===t)return i[d]===n;if(o.push(t),i.push(n),u){if((d=t.length)!==n.length)return!1;for(;d--;)if(!e(t[d],n[d],r-1,o,i))return!1}else{var f=Object.keys(t),p=void 0;if(d=f.length,Object.keys(n).length!==d)return!1;for(;d--;)if(p=f[d],!Ht(n,p)||!e(t[p],n[p],r-1,o,i))return!1}return o.pop(),i.pop(),!0}(e,t,n)}function Wt(e){return At(e)?e.slice():_(e)||Et(e)||w(e)||Pt(e)?Array.from(e.entries()):e}function Ht(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kt(e){return e[Symbol.iterator]=qt,e}function qt(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ve,extras:{getDebugName:function(e,t){return(void 0!==t?Vt(e,t):Ut(e)||Et(e)||Pt(e)?zt(e):Vt(e)).name}},$mobx:O})}).call(this,n(7),n(5))},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(0);n.d(t,"d",(function(){return r.a})),n.d(t,"e",(function(){return r.j}));var o=n(1);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}var s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)},r}(o.a);function u(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Object(o.f)(e,t)}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var c=o.j.__b;o.j.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var l="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t,n){var r=i({},t);return delete r.ref,e(r,t.ref||n)}return t.$$typeof=l,t.render=t,t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var f=function(e,t){return e?Object(o.l)(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},p={map:f,forEach:f,count:function(e){return e?Object(o.l)(e).length:0},only:function(e){if(1!==(e=Object(o.l)(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:o.l},h=o.j.__e;function v(e){return e&&((e=i({},e)).__c=null,e.__k=e.__k&&e.__k.map(v)),e}function g(){this.__u=0,this.o=null,this.__b=null}function y(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function b(){this.i=null,this.l=null}o.j.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return r.__c(e,t.__c);h(e,t,n)},(g.prototype=new o.a).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=y(n.__v),o=!1,i=function(){o||(o=!0,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){i(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(i,i)},g.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=v(this.__b),this.__b=null),[Object(o.f)(o.a,null,t.u?null:e.children),t.u&&e.fallback]};var m=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]=n.cleanAt&&(n.reaction.dispose(),t.current=null,d.delete(t))})),d.size>0&&f()}var h={};function v(e){return"observer"+e}function g(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=h),a())return e();var i,c=(n.useForceUpdate||s)(),p=o.a.useRef(null);if(!p.current){var g=new r.a(v(t),(function(){y.mounted?c():(g.dispose(),p.current=null)})),y=function(e){return{cleanAt:Date.now()+l,reaction:e}}(g);p.current=y,i=p,d.add(i),f()}var b,m,_=p.current.reaction;if(o.a.useDebugValue(_,u),o.a.useEffect((function(){var e;return e=p,d.delete(e),p.current?p.current.mounted=!0:(p.current={reaction:new r.a(v(t),(function(){c()})),cleanAt:1/0},c()),function(){p.current.reaction.dispose(),p.current=null}}),[]),_.track((function(){try{b=e()}catch(e){m=e}})),m)throw m;return b}function y(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:g(r)}function b(e,t,n,r,o){var i="children"===t?"render":"children",a="function"==typeof e[t],s="function"==typeof e[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}function m(e,t){if(!t||void 0!==e){0;var n=o.a.useState((function(){return Object(r.e)(e,{},{deep:!1})}))[0];return Object(r.f)((function(){Object.assign(n,e)})),n}}function _(e,t){var n=m(t,!0);return o.a.useState((function(){var t=Object(r.e)(e(n));return function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(t)&&Object(r.f)((function(){Object.keys(t).forEach((function(e){var n,o,i=t[e];"function"==typeof i&&(t[e]=(n=i,o=t,function(){for(var e=arguments.length,t=new Array(e),i=0;i=7&&h(e),null==a&&(a=b(n,r,s)),g(a,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1){a=!e&&1==(t>>r&1);o[r%3+i-8-3][Math.floor(r/3)]=a}},v=function(e,t){for(var n=r<<3|t,a=y.getBCHTypeInfo(n),s=0;s<15;s+=1){var u=!e&&1==(a>>s&1);s<6?o[s][8]=u:s<8?o[s+1][8]=u:o[i-15+s][8]=u}for(s=0;s<15;s+=1){u=!e&&1==(a>>s&1);s<8?o[8][i-s-1]=u:s<9?o[8][15-s-1+1]=u:o[8][15-s-1]=u}o[i-8][8]=!e},g=function(e,t){for(var n=-1,r=i-1,a=7,s=0,u=y.getMaskFunction(t),c=i-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var l=0;l<2;l+=1)if(null==o[r][c-l]){var d=!1;s>>a&1)),u(r,c-l)&&(d=!d),o[r][c-l]=d,-1==(a-=1)&&(s+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},b=function(e,t,n){for(var r=_.getRSBlocks(e,t),o=w(),i=0;i8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(236,8),o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s=0?f.getAt(p):0}}var h=0;for(l=0;lr)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var o=0;o';n+=""}return n+="",n+="
"},c.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,u,l=c.getModuleCount()*e+2*t,d="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+=''+A(r.text)+"":"",d+=n.text?''+A(n.text)+"":"",d+='',d+='":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,a=1*c.getModuleCount()+2*e,s=e,u=a-e,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t=u?d[i]:l[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,a=c.getModuleCount()*e+2*t,s=t,u=a-t,l=Array(e+1).join("██"),d=Array(e+1).join(" "),f="",p="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,o=1,i=2,a=4,s=8,u={L:1,M:0,Q:3,H:2},c=0,l=1,d=2,f=3,p=4,h=5,v=6,g=7,y=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(n={}).getBCHTypeInfo=function(e){for(var t=e<<10;r(t)-r(1335)>=0;)t^=1335<=0;)t^=7973<5&&(n+=3+i-5)}for(r=0;r=256;)t-=255;return e[t]}};return r}();function m(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},x=function(e){var t=o,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2>>8&255)+(255&r),e.put(r,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o0&&(t+=","),t+=e[n];return t+="]"}};return t},j=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},S=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>o!=0)throw"length over";for(;n+o>=8;)t.writeByte(255&(e<>>=8-n,r=0,n=0;r|=e<0&&t.writeByte(r)}};return o}(u);c.write(t,r);var l=0,d=String.fromCharCode(o[l]);for(l+=1;l=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},o=[],void 0===(i="function"==typeof(r=function(){return a})?r.apply(t,o):r)||(e.exports=i)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n=5&&((o||!e&&5===r)&&(a.push(r,0,o,n),r=6),e&&(a.push(r,e,0,n),r=6)),o=""},u=0;u"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(s(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[u][c+1])?(s(),3===r&&(a=a[0]),r=a,(a=a[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),r=2):o+=t),3===r&&"!--"===o&&(r=4,a=a[0])}return s(),a}(e)),t),arguments,[])).length>1?t:t[0]}.bind(r.h),s=n(0),u=n(2),c=n(4),l={};function d(e,t){for(var n in t)e[n]=t[n];return e}function f(e,t,n){var r,o=/(?:\?([^#]*))?(#.*)?$/,i=e.match(o),a={};if(i&&i[1])for(var s=i[1].split("&"),u=0;ut.rank?-1:e.index-t.index}function h(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,v(t).map(g).join(""));var t}(e),e.props}function v(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function g(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}var y=null,b=[],m=[],_={};function w(){var e;return""+((e=y&&y.location?y.location:y&&y.getCurrentLocation?y.getCurrentLocation():"undefined"!=typeof location?location:_).pathname||"")+(e.search||"")}function x(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),function(e){for(var t=b.length;t--;)if(b[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),y&&y[t]?y[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),k(e)}function k(e){for(var t=!1,n=0;n0},t.prototype.routeTo=function(e){this.setState({url:e});var t=this.canRoute(e);return this.updating||this.forceUpdate(),t},t.prototype.componentWillMount=function(){b.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;y&&(this.unlisten=y.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),b.splice(b.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,n){return e.filter(h).sort(p).map((function(e){var o=f(t,e.props.path,e.props);if(o){if(!1!==n){var i={url:t,matches:o};return d(i,o),delete i.ref,delete i.key,Object(r.d)(e,i)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var n=e.children,o=e.onChange,i=t.url,a=this.getMatchingChildren(Object(r.l)(n),i,!0),s=a[0]||null,u=this.previousUrl;return i!==u&&(this.previousUrl=i,"function"==typeof o&&o({router:this,url:i,previous:u,active:a,current:s})),s},t}(r.a),E=function(e){return Object(r.f)("a",d({onClick:O},e))},T=function(e){return Object(r.f)(e.component,e)};C.subscribers=m,C.getCurrentUrl=w,C.route=x,C.Router=C,C.Route=T,C.Link=E,C.exec=f;function D(){return(D=Object.assign||function(e){for(var t=1;t{const t=Object(s.b)(De),[n,r]=Object(s.j)(!1);let o="dropdown is-right";n&&(o+=" is-active");const i=()=>{r(!n)},u=e=>{t.setLedger(e),i(),x("/wallet")};return Object(c.b)(()=>a`
- `)},W=n.p+"assets/863bb6204174547af0f6809b1b39145d.png";var K=()=>a` + `)},H=n.p+"assets/863bb6204174547af0f6809b1b39145d.png";var K=()=>a`
- +
- <${H} /> + <${W} />
`;var q=()=>a` @@ -682,31 +682,34 @@ var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Arr +
+ Address +

${t.address}

+ +
+ +
- `},je=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Ce=e=>{const t=Object(s.b)(De),{url:n,ledger:r,address:o}=e,[i,u]=Object(s.j)(!1),[c,l]=Object(s.j)(!1),[d,f]=Object(s.j)(null);let p;for(var h=t[r].length-1;h>=0;h--)if(t[r][h].address===o){p=t[r][h];break}return Object(s.d)(()=>{je(void 0,void 0,void 0,(function*(){const e={ledger:r,address:o};G(V.AccountDetails,e,(function(e){f(e)}))}))},[]),a` + +
+ `},Se=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Ce=e=>{const t=Object(s.b)(De),{url:n,ledger:r,address:o}=e,[i,u]=Object(s.j)(!1),[c,l]=Object(s.j)(!1),[d,f]=Object(s.j)(null);let p;for(var h=t[r].length-1;h>=0;h--)if(t[r][h].address===o){p=t[r][h];break}return Object(s.d)(()=>{Se(void 0,void 0,void 0,(function*(){const e={ledger:r,address:o};G(V.AccountDetails,e,(function(e){f(e)}))}))},[]),a`

x("/wallet")}>${"<"} @@ -736,13 +739,11 @@ var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Arr

- `},Ee=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Te=e=>{const t=Object(s.b)(De),{matches:n,path:r,url:o,ledger:i,address:u}=e,[c,l]=Object(s.j)(!1),[d,f]=Object(s.j)(""),[p,h]=Object(s.j)(""),[v,g]=Object(s.j)(""),[y,b]=Object(s.j)(""),[m,_]=Object(s.j)(!1),[w,k]=Object(s.j)(""),[$,O]=Object(s.j)("");let A;for(var S=t[i].length-1;S>=0;S--)if(t[i][S].address===u){A=t[i][S];break}return a` + `},Ee=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var Te=e=>{const t=Object(s.b)(De),{matches:n,path:r,url:o,ledger:i,address:u}=e,[c,l]=Object(s.j)(!1),[d,f]=Object(s.j)(""),[p,h]=Object(s.j)(""),[v,g]=Object(s.j)(""),[y,b]=Object(s.j)(""),[m,_]=Object(s.j)(!1),[w,k]=Object(s.j)(""),[$,O]=Object(s.j)("");let A;for(var j=t[i].length-1;j>=0;j--)if(t[i][j].address===u){A=t[i][j];break}return a`
<${re} action="${()=>x(`/${n.ledger}/${n.address}`)}" diff --git a/packages/ui/src/components/Account/AccountDetails.ts b/packages/ui/src/components/Account/AccountDetails.ts index 2df605ea..874a06ae 100644 --- a/packages/ui/src/components/Account/AccountDetails.ts +++ b/packages/ui/src/components/Account/AccountDetails.ts @@ -11,9 +11,11 @@ import { StoreContext } from 'index' import Authenticate from 'components/Authenticate' const AccountDetails: FunctionalComponent = (props: any) => { + const { account, ledger } = props; const store:any = useContext(StoreContext); const [deleting, setDeleting] = useState(false); - const { account, ledger } = props; + const [loading, setLoading] = useState(false); + const [authError, setAuthError] = useState(''); const deleteAccount = (pwd: string) => { const params = { @@ -21,9 +23,20 @@ const AccountDetails: FunctionalComponent = (props: any) => { address: account.address, passphrase: pwd }; + setLoading(true); + setAuthError(''); sendMessage(JsonRpcMethod.DeleteAccount, params, function(response) { if ('error' in response) { - alert(response); + setLoading(false); + switch (response.error) { + case "Login Failed": + setAuthError('Wrong passphrase'); + break; + default: + setDeleting(false); + alert(`There was an unkown error: ${response.error}`); + break; + } } else { store.updateWallet(response); route('/wallet'); @@ -40,30 +53,33 @@ const AccountDetails: FunctionalComponent = (props: any) => { if (!deleting) return html` - Address -

${account.address}

+
+ Address +

${account.address}

-
- -
- - +
+ +
+ +
` else return html` <${Authenticate} + error=${authError} + loading=${loading} nextStep=${deleteAccount} /> ` }; diff --git a/packages/ui/src/pages/Account.ts b/packages/ui/src/pages/Account.ts index 6f1f8e98..e589ef64 100644 --- a/packages/ui/src/pages/Account.ts +++ b/packages/ui/src/pages/Account.ts @@ -73,9 +73,7 @@ const Account: FunctionalComponent = (props: any) => {