4.890067c6.chunk.js 8.2 KB

1
  1. (this.webpackJsonpmanagement=this.webpackJsonpmanagement||[]).push([[4],{324:function(e,r,t){"use strict";t.d(r,"a",(function(){return i}));var n=t(53);var o=t(91);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},376:function(e,r,t){"use strict";t.d(r,"a",(function(){return W}));t(324),t(21),t(377);var n=t(93),o=t(1),i=t(0),c=t(16);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!o.p)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var a=!1;function u(){return a}var f=function(){return(f=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function s(e,r){var t="function"===typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,o,i=t.call(e),c=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return c}function l(e){return e.current?Object(o.j)(e.current):"<unknown>"}var p=[];function b(){var e=s(Object(i.useState)(0),2)[1];return Object(i.useCallback)((function(){e((function(e){return e+1}))}),[])}var d={};function h(e,r,t){if(void 0===r&&(r="observed"),void 0===t&&(t=d),u())return e();var n=(t.useForceUpdate||b)(),c=Object(i.useRef)(null);c.current||(c.current=new o.b("observer("+r+")",(function(){n()})));var a,f,s=function(){c.current&&!c.current.isDisposed&&(c.current.dispose(),c.current=null)};if(Object(i.useDebugValue)(c,l),function(e){Object(i.useEffect)((function(){return e}),p)}((function(){s()})),c.current.track((function(){try{a=e()}catch(r){f=r}})),f)throw s(),f;return a}function y(e,r){if(u())return e;var t,n,o,c=f({forwardRef:!1},r),a=e.displayName||e.name,s=function(r,t){return h((function(){return e(r,t)}),a)};return s.displayName=a,t=c.forwardRef?Object(i.memo)(Object(i.forwardRef)(s)):Object(i.memo)(s),n=e,o=t,Object.keys(n).forEach((function(e){n.hasOwnProperty(e)&&!m[e]&&Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))})),t.displayName=a,t}var m={$$typeof:!0,render:!0,compare:!0,type:!0};function v(e){var r=e.children,t=e.render,n=r||t;return"function"!==typeof n?null:h(n)}function O(e,r,t,n,o){var i="children"===r?"render":"children",c="function"===typeof e[r],a="function"===typeof e[i];return c&&a?new Error("MobX Observer: Do not use children and render in the same time in`"+t):c||a?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[r]+"` supplied to `"+t+"`, expected `function`.")}v.propTypes={children:O,render:O},v.displayName="Observer";var w=0;var j={};function g(e){return j[e]||(j[e]=function(e){if("function"===typeof Symbol)return Symbol(e);var r="__$mobx-react ".concat(e," (").concat(w,")");return w++,r}(e)),j[e]}function P(e,r){if(k(e,r))return!0;if("object"!==typeof e||null===e||"object"!==typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!Object.hasOwnProperty.call(r,t[o])||!k(e[t[o]],r[t[o]]))return!1;return!0}function k(e,r){return e===r?0!==e||1/e===1/r:e!==e&&r!==r}function x(e,r,t){Object.hasOwnProperty.call(e,r)?e[r]=t:Object.defineProperty(e,r,{enumerable:!1,configurable:!0,writable:!0,value:t})}var R=g("patchMixins"),E=g("patchedDefinition");function S(e,r){for(var t=this,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.locks++;try{var c;return void 0!==e&&null!==e&&(c=e.apply(this,o)),c}finally{r.locks--,0===r.locks&&r.methods.forEach((function(e){e.apply(t,o)}))}}function _(e,r){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];S.call.apply(S,[this,e,r].concat(n))}}function C(e,r,t){var o=function(e,r){var t=e[R]=e[R]||{},n=t[r]=t[r]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,r);o.methods.indexOf(t)<0&&o.methods.push(t);var i=Object.getOwnPropertyDescriptor(e,r);if(!i||!i[E]){var c=e[r],a=function e(r,t,o,i,c){var a,u=_(c,i);return a={},Object(n.a)(a,E,!0),Object(n.a)(a,"get",(function(){return u})),Object(n.a)(a,"set",(function(n){if(this===r)u=_(n,i);else{var c=e(this,t,o,i,n);Object.defineProperty(this,t,c)}})),Object(n.a)(a,"configurable",!0),Object(n.a)(a,"enumerable",o),a}(e,r,i?i.enumerable:void 0,o,c);Object.defineProperty(e,r,a)}}var $=o.a||"$mobx",U=g("isUnmounted"),I=g("skipRender"),D=g("isForcingUpdate");function N(e){var r=e.prototype;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==M)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=M;q(r,"props"),q(r,"state");var t=r.render;return r.render=function(){return A.call(this,t)},C(r,"componentWillUnmount",(function(){if(!0!==u()){if(this.render[$])this.render[$].dispose();else;this[U]=!0}})),e}function A(e){var r=this;if(!0===u())return e.call(this);x(this,I,!1),x(this,D,!1);var t,n=(t=this).displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>",c=e.bind(this),a=!1,f=new o.b("".concat(n,".render()"),(function(){if(!a&&(a=!0,!0!==r[U])){var e=!0;try{x(r,D,!0),r[I]||i.Component.prototype.forceUpdate.call(r),e=!1}finally{x(r,D,!1),e&&f.dispose()}}}));function s(){a=!1;var e=void 0,r=void 0;if(f.track((function(){try{r=Object(o.c)(!1,c)}catch(t){e=t}})),e)throw e;return r}return f.reactComponent=this,s[$]=f,this.render=s,s.call(this)}function M(e,r){return u()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!P(this.props,e)}function q(e,r){var t=g("reactProp_".concat(r,"_valueHolder")),n=g("reactProp_".concat(r,"_atomHolder"));function i(){return this[n]||x(this,n,Object(o.i)("reactive "+r)),this[n]}Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){var e=!1;return o.e&&o.d&&(e=Object(o.e)(!0)),i.call(this).reportObserved(),o.e&&o.d&&Object(o.d)(e),this[t]},set:function(e){this[D]||P(this[t],e)?x(this,t,e):(x(this,t,e),x(this,I,!0),i.call(this).reportChanged(),x(this,I,!1))}})}var T="function"===typeof Symbol&&Symbol.for,F=T?Symbol.for("react.forward_ref"):"function"===typeof i.forwardRef&&Object(i.forwardRef)((function(e){return null})).$$typeof,H=T?Symbol.for("react.memo"):"function"===typeof i.memo&&Object(i.memo)((function(e){return null})).$$typeof;function W(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),H&&e.$$typeof===H)throw new Error("Mobx observer: You are trying to use 'observer' on function component wrapped to either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(F&&e.$$typeof===F){var r=e.render;if("function"!==typeof r)throw new Error("render property of ForwardRef was not a function");return Object(i.forwardRef)((function(){var e=arguments;return Object(i.createElement)(v,null,(function(){return r.apply(void 0,e)}))}))}return"function"!==typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,e)?N(e):y(e)}if(!i.Component)throw new Error("mobx-react requires React to be available");if(!o.n)throw new Error("mobx-react requires mobx to be available");"function"===typeof c.unstable_batchedUpdates&&Object(o.h)({reactionScheduler:c.unstable_batchedUpdates})},377:function(e,r,t){"use strict";function n(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}t.d(r,"a",(function(){return n}))}}]);