UNPKG

gfs-react-dm

Version:

简化react和redux的繁杂流程,更简单的数据操作管理

10 lines 449 kB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var n=t("object"==typeof exports?require("react"):e.React);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];e&&"undefined"==typeof e.module&&(e={module:e}),e.middleware=[f.default].concat(e.middleware||[]),(e.debug||"undefined"==typeof e.debug&&location&&""!=location.port)&&e.middleware.push(n(98)());var t=new l.default(a.default({middleware:[],module:null,reducers:s.getModels(),container:"root",debug:!1},e));return t}t.__esModule=!0,t.page=o;var i=n(2),a=r(i),u=n(3),l=r(u),s=n(89),c=n(71),f=r(c),d=n(93),p=r(d);t.Model=s.Model;var h=n(94);t.Control=h.Control,t.Sync=h.Sync,t.fetch=h.fetch;var v=n(96);t.View=v.View;var m=n(97);if(t.Action=m.enumerable,t.Noenumerable=m.noenumerable,window&&window.DM_STORE){var y={},g=window.DM_STORE;for(var b in g)g[b]instanceof Object&&(y[b]=p.default.fromJS(g[b]));window.DM_STORE=y}},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},i=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!o)return!1;var i;for(i in e);return"undefined"==typeof i||n.call(e,i)};e.exports=function e(){var t,n,r,a,u,l,s=arguments[0],c=1,f=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<f;++c)if(t=arguments[c],null!=t)for(n in t)r=s[n],a=t[n],s!==a&&(d&&a&&(i(a)||(u=o(a)))?(u?(u=!1,l=r&&o(r)?r:[]):l=r&&i(r)?r:{},s[n]=e(d,l,a)):"undefined"!=typeof a&&(s[n]=a));return s}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(4),l=r(u),s=n(5),c=n(28),f=r(c),d=n(72),p=n(78),h=r(p),v=n(84),m=r(v),y=new d.LoadingBar,g=new m.default;h.default.addMock(g).addLoadingBar(y);var b=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{middleware:[],module:null,reducers:[],devTools:null,bar:null,agent:"other",container:"root"}:arguments[0];i(this,e);var n=t.bar||null;t.middleware=t.middleware||[],t.reducers=t.reducers||[],t.agent=t.agent||"pc",t.container=t.container||"root",this.props=t,this.Bar=n,this.store=this.initStore()}return e.prototype.render=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=this;this.bindReactProps=a({},this.bindReactProps,e);var n=this.bindReactProps;if(n.isServerRender)return this.renderServer();if("undefined"!=typeof document)if(n.routerMatch){var r=n.routerMatchConfig;n.routerMatch({history:n.routerHistory,routes:r},function(e,r,o){t.bindReactProps.moduleProps=o,s.hydrate(t.renderMainDom(),document.getElementById(n.container))})}else s.hydrate(t.renderMainDom(),document.getElementById(n.container))},e.prototype.getStore=function(){return this.store},e.prototype.initStore=function(){var e=this.props,t=e.renderProps,n=e.module,r=e.reducers,i=e.middleware,u=e.initialState,l=e.devTools,s=o(e,["renderProps","module","reducers","middleware","initialState","devTools"]),c=a({module:n,moduleProps:t||{},reducers:a({},r,{fetching:d.fetching}),middleware:[d.FetchMiddleware].concat(i),initialState:u,devTools:l},s),p=f.default(c);this.grbrObj=p;var h=p.bindStore(a({},c));return c.stories=h,this.bindReactProps=c,h},e.prototype.renderMainDom=function(){var e=this.grbrObj.getComponent();return l.default.createElement(e,this.bindReactProps,l.default.createElement(d.Connect,null,this.Bar))},e.prototype.renderServer=function(){var e=n(85),t=e.renderToString;return t(this.renderMainDom())},e.fetch=function(e,t){return h.default.run(e,t)},e.addLoadingBar=function(e){},e.addMock=function(e){h.default.addMock(e)},e}();t.default=b,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==t.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}"production"===t.env.NODE_ENV?(r(),e.exports=n(7)):e.exports=n(19)}).call(t,n(6))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&p&&(v=!1,p.length?h=p.concat(h):m=-1,h.length&&u())}function u(){if(!v){var e=o(a);v=!0;for(var t=h.length;t;){for(p=h,h=[];++m<t;)p&&p[m].run();m=-1,t=h.length}p=null,v=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var c,f,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,h=[],v=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||v||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=s,d.addListener=s,d.once=s,d.off=s,d.removeListener=s,d.removeAllListeners=s,d.emit=s,d.prependListener=s,d.prependOnceListener=s,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){/** @license React v16.1.1 * react-dom.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t){return(e&t)===t}function i(e,t){if(On.hasOwnProperty(e)||2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return On.hasOwnProperty(e)?e=!0:(t=a(e))?e=t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:(e=e.toLowerCase().slice(0,5),e="data-"===e||"aria-"===e),e;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function a(e){return In.hasOwnProperty(e)?In[e]:null}function u(e){return e[1].toUpperCase()}function l(e,t,n,r,o,i,a,u,l){Bn._hasCaughtError=!1,Bn._caughtError=null;var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){Bn._caughtError=e,Bn._hasCaughtError=!0}}function s(){if(Bn._hasRethrowError){var e=Bn._rethrowError;throw Bn._rethrowError=null,Bn._hasRethrowError=!1,e}}function c(){if(qn)for(var e in Wn){var t=Wn[e],n=qn.indexOf(e);if(-1<n?void 0:r("96",e),!Kn[n]){t.extractEvents?void 0:r("97",e),Kn[n]=t,n=t.eventTypes;for(var o in n){var i=void 0,a=n[o],u=t,l=o;Yn.hasOwnProperty(l)?r("99",l):void 0,Yn[l]=a;var s=a.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&f(s[i],u,l);i=!0}else a.registrationName?(f(a.registrationName,u,l),i=!0):i=!1;i?void 0:r("98",o,e)}}}}function f(e,t,n){Gn[e]?r("100",e):void 0,Gn[e]=t,Xn[e]=t.eventTypes[n].dependencies}function d(e){qn?r("101"):void 0,qn=Array.prototype.slice.call(e),c()}function p(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];Wn.hasOwnProperty(t)&&Wn[t]===o||(Wn[t]?r("102",t):void 0,Wn[t]=o,n=!0)}n&&c()}function h(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Zn(r),Bn.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function v(e,t){return null==t?r("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function m(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function y(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)h(e,t,n[o],r[o]);else n&&h(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function g(e){return y(e,!0)}function b(e){return y(e,!1)}function w(e,t){var n=e.stateNode;if(!n)return null;var o=Qn(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!=typeof n?r("231",t,typeof n):void 0,n)}function _(e,t,n,r){for(var o,i=0;i<Kn.length;i++){var a=Kn[i];a&&(a=a.extractEvents(e,t,n,r))&&(o=v(o,a))}return o}function k(e){e&&(er=v(er,e))}function x(e){var t=er;er=null,e?m(t,g):m(t,b),er?r("95"):void 0,Bn.rethrowCaughtError()}function C(e){if(e[or])return e[or];for(var t=[];!e[or];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[or];if(5===r.tag||6===r.tag)return r;for(;e&&(r=e[or]);e=t.pop())n=r;return n}function S(e){return 5===e.tag||6===e.tag?e.stateNode:void r("33")}function T(e){return e[ir]||null}function E(e){do e=e.return;while(e&&5!==e.tag);return e?e:null}function O(e,t,n){for(var r=[];e;)r.push(e),e=E(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function P(e,t,n){(t=w(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=v(n._dispatchListeners,t),n._dispatchInstances=v(n._dispatchInstances,e))}function I(e){e&&e.dispatchConfig.phasedRegistrationNames&&O(e._targetInst,P,e)}function N(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?E(t):null,O(t,P,e)}}function M(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=w(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=v(n._dispatchListeners,t),n._dispatchInstances=v(n._dispatchInstances,e))}function A(e){e&&e.dispatchConfig.registrationName&&M(e._targetInst,null,e)}function R(e){m(e,I)}function D(e,t,n,r){if(n&&r)e:{for(var o=n,i=r,a=0,u=o;u;u=E(u))a++;u=0;for(var l=i;l;l=E(l))u++;for(;0<a-u;)o=E(o),a--;for(;0<u-a;)i=E(i),u--;for(;a--;){if(o===i||o===i.alternate)break e;o=E(o),i=E(i)}o=null}else o=null;for(i=o,o=[];n&&n!==i&&(a=n.alternate,null===a||a!==i);)o.push(n),n=E(n);for(n=[];r&&r!==i&&(a=r.alternate,null===a||a!==i);)n.push(r),r=E(r);for(r=0;r<o.length;r++)M(o[r],"bubbled",e);for(e=n.length;0<e--;)M(n[e],"captured",t)}function U(){return!lr&&bn.canUseDOM&&(lr="textContent"in document.documentElement?"textContent":"innerText"),lr}function L(){if(sr._fallbackText)return sr._fallbackText;var e,t,n=sr._startText,r=n.length,o=F(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return sr._fallbackText=o.slice(e,1<t?1-t:void 0),sr._fallbackText}function F(){return"value"in sr._root?sr._root.value:sr._root[U()]}function j(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?_n.thatReturnsTrue:_n.thatReturnsFalse,this.isPropagationStopped=_n.thatReturnsFalse,this}function z(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function H(e){e instanceof this?void 0:r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function V(e){e.eventPool=[],e.getPooled=z,e.release=H}function B(e,t,n,r){return j.call(this,e,t,n,r)}function q(e,t,n,r){return j.call(this,e,t,n,r)}function W(e,t){switch(e){case"topKeyUp":return-1!==dr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function K(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function Y(e,t){switch(e){case"topCompositionEnd":return K(t);case"topKeyPress":return 32!==t.which?null:(kr=!0,wr);case"topTextInput":return e=t.data,e===wr&&kr?null:e;default:return null}}function G(e,t){if(xr)return"topCompositionEnd"===e||!pr&&W(e,t)?(e=L(),sr._root=null,sr._startText=null,sr._fallbackText=null,xr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return br?null:t.data;default:return null}}function X(e){if(e=Jn(e)){Sr&&"function"==typeof Sr.restoreControlledState?void 0:r("194");var t=Qn(e.stateNode);Sr.restoreControlledState(e.stateNode,e.type,t)}}function $(e){Tr?Er?Er.push(e):Er=[e]:Tr=e}function Q(){if(Tr){var e=Tr,t=Er;if(Er=Tr=null,X(e),t)for(e=0;e<t.length;e++)X(t[e])}}function J(e,t){return e(t)}function Z(e,t){if(Ir)return J(e,t);Ir=!0;try{return J(e,t)}finally{Ir=!1,Q()}}function ee(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nr[e.type]:"textarea"===t}function te(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ne(e,t){if(!bn.canUseDOM||t&&!("addEventListener"in document))return!1;t="on"+e;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n="function"==typeof n[t]),!n&&yr&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function re(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function oe(e){var t=re(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function ie(e){e._valueTracker||(e._valueTracker=oe(e))}function ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=re(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function ue(e,t,n){return e=j.getPooled(Mr.change,e,t,n),e.type="change",$(n),R(e),e}function le(e){k(e),x(!1)}function se(e){var t=S(e);if(ae(t))return e}function ce(e,t){if("topChange"===e)return t}function fe(){Ar&&(Ar.detachEvent("onpropertychange",de),Rr=Ar=null)}function de(e){"value"===e.propertyName&&se(Rr)&&(e=ue(Rr,e,te(e)),Z(le,e))}function pe(e,t,n){"topFocus"===e?(fe(),Ar=t,Rr=n,Ar.attachEvent("onpropertychange",de)):"topBlur"===e&&fe()}function he(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return se(Rr)}function ve(e,t){if("topClick"===e)return se(t)}function me(e,t){if("topInput"===e||"topChange"===e)return se(t)}function ye(e,t,n,r){return j.call(this,e,t,n,r)}function ge(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Lr[e])&&!!t[e]}function be(){return ge}function we(e,t,n,r){return j.call(this,e,t,n,r)}function _e(e){return e=e.type,"string"==typeof e?e:"function"==typeof e?e.displayName||e.name:null}function ke(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function xe(e){return!!(e=e._reactInternalFiber)&&2===ke(e)}function Ce(e){2!==ke(e)?r("188"):void 0}function Se(e){var t=e.alternate;if(!t)return t=ke(e),3===t?r("188"):void 0,1===t?null:e;for(var n=e,o=t;;){var i=n.return,a=i?i.alternate:null;if(!i||!a)break;if(i.child===a.child){for(var u=i.child;u;){if(u===n)return Ce(i),e;if(u===o)return Ce(i),t;u=u.sibling}r("188")}if(n.return!==o.return)n=i,o=a;else{u=!1;for(var l=i.child;l;){if(l===n){u=!0,n=i,o=a;break}if(l===o){u=!0,o=i,n=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===n){u=!0,n=a,o=i;break}if(l===o){u=!0,o=a,n=i;break}l=l.sibling}u?void 0:r("189")}}n.alternate!==o?r("190"):void 0}return 3!==n.tag?r("188"):void 0,n.stateNode.current===n?e:t}function Te(e){if(e=Se(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ee(e){if(e=Se(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Oe(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(n=3!==n.tag?null:n.stateNode.containerInfo,!n)break;e.ancestors.push(t),t=C(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],Br(e.topLevelType,t,e.nativeEvent,te(e.nativeEvent))}function Pe(e){Vr=!!e}function Ie(e,t,n){return n?kn.listen(n,t,Me.bind(null,e)):null}function Ne(e,t,n){return n?kn.capture(n,t,Me.bind(null,e)):null}function Me(e,t){if(Vr){var n=te(t);if(n=C(n),null===n||"number"!=typeof n.tag||2===ke(n)||(n=null),Hr.length){var r=Hr.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Z(Oe,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Hr.length&&Hr.push(e)}}}function Ae(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function Re(e){if(Kr[e])return Kr[e];if(!Wr[e])return e;var t,n=Wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Yr)return Kr[e]=n[t];return""}function De(e){return Object.prototype.hasOwnProperty.call(e,Qr)||(e[Qr]=$r++,Xr[e[Qr]]={}),Xr[e[Qr]]}function Ue(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Le(e,t){var n=Ue(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ue(n)}}function Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function je(e,t){if(ro||null==eo||eo!==xn())return null;var n=eo;return"selectionStart"in n&&Fe(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,no&&Cn(no,n)?null:(no=n,e=j.getPooled(Zr.select,to,e,t),e.type="select",e.target=eo,R(e),e)}function ze(e,t,n,r){return j.call(this,e,t,n,r)}function He(e,t,n,r){return j.call(this,e,t,n,r)}function Ve(e,t,n,r){return j.call(this,e,t,n,r)}function Be(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t,32<=e||13===e?e:0}function qe(e,t,n,r){return j.call(this,e,t,n,r)}function We(e,t,n,r){return j.call(this,e,t,n,r)}function Ke(e,t,n,r){return j.call(this,e,t,n,r)}function Ye(e,t,n,r){return j.call(this,e,t,n,r)}function Ge(e,t,n,r){return j.call(this,e,t,n,r)}function Xe(e){0>fo||(e.current=co[fo],co[fo]=null,fo--)}function $e(e,t){fo++,co[fo]=e.current,e.current=t}function Qe(e){return Ze(e)?bo:yo.current}function Je(e,t){var n=e.type.contextTypes;if(!n)return En;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ze(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Ze(e)&&(Xe(go,e),Xe(yo,e))}function tt(e,t,n){null!=yo.cursor?r("168"):void 0,$e(yo,t,e),$e(go,n,e)}function nt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var i in n)i in o?void 0:r("108",_e(e)||"Unknown",i);return wn({},t,n)}function rt(e){if(!Ze(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||En,bo=yo.current,$e(yo,t,e),$e(go,go.current,e),!0}function ot(e,t){var n=e.stateNode;if(n?void 0:r("169"),t){var o=nt(e,bo);n.__reactInternalMemoizedMergedChildContext=o,Xe(go,e),Xe(yo,e),$e(yo,o,e)}else Xe(go,e);$e(go,t,e)}function it(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new it(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ut(e,t,n){var o=void 0,i=e.type,a=e.key;return"function"==typeof i?(o=i.prototype&&i.prototype.isReactComponent?new it(2,a,t):new it(0,a,t),o.type=i,o.pendingProps=e.props):"string"==typeof i?(o=new it(5,a,t),o.type=i,o.pendingProps=e.props):"object"==typeof i&&null!==i&&"number"==typeof i.tag?(o=i,o.pendingProps=e.props):r("130",null==i?i:typeof i,""),o.expirationTime=n,o}function lt(e,t,n,r){return t=new it(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function st(e,t,n){return t=new it(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new it(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function ft(e,t,n){return e=new it(9,null,t),e.expirationTime=n,e}function dt(e,t,n){return t=new it(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pt(e){return function(t){try{return e(t)}catch(e){}}}function ht(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);wo=pt(function(e){return t.onCommitFiberRoot(n,e)}),_o=pt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function vt(e){"function"==typeof wo&&wo(e)}function mt(e){"function"==typeof _o&&_o(e)}function yt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function gt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=yt(null)),null!==n?(e=n.updateQueue,null===e&&(e=n.updateQueue=yt(null))):e=null,e=e!==r?e:null,null===e?gt(r,t):null===r.last||null===e.last?(gt(r,t),gt(e,t)):(gt(r,t),e.last=t)}function wt(e,t,n,r){return e=e.partialState,"function"==typeof e?e.call(t,n,r):e}function _t(e,t,n,r,o,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,u=n.first,l=!1;null!==u;){var s=u.expirationTime;if(s>i){var c=n.expirationTime;(0===c||c>s)&&(n.expirationTime=s),l||(l=!0,n.baseState=e)}else l||(n.first=u.next,null===n.first&&(n.last=null)),u.isReplace?(e=wt(u,r,e,o),a=!0):(s=wt(u,r,e,o))&&(e=a?wn({},e,s):wn(e,s),a=!1),u.isForced&&(n.hasForceUpdate=!0),null!==u.callback&&(s=n.callbackList,null===s&&(s=n.callbackList=[]),s.push(u));u=u.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),l||(n.baseState=e),e}function kt(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var o=n[e],i=o.callback;o.callback=null,"function"!=typeof i?r("191",i):void 0,i.call(t)}}function xt(e,t,n,o){function i(e,t){t.updater=a,e.stateNode=t,t._reactInternalFiber=e}var a={isMounted:xe,enqueueSetState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var i=t(n);bt(n,{expirationTime:i,partialState:r,callback:o,isReplace:!1,isForced:!1,nextCallback:null,next:null}),e(n,i)},enqueueReplaceState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var i=t(n);bt(n,{expirationTime:i,partialState:r,callback:o,isReplace:!0,isForced:!1,nextCallback:null,next:null}),e(n,i)},enqueueForceUpdate:function(n,r){n=n._reactInternalFiber,r=void 0===r?null:r;var o=t(n);bt(n,{expirationTime:o,partialState:null,callback:r,isReplace:!1,isForced:!0,nextCallback:null,next:null}),e(n,o)}};return{adoptClassInstance:i,constructClassInstance:function(e,t){var n=e.type,r=Qe(e),o=2===e.tag&&null!=e.type.contextTypes,a=o?Je(e,r):En;return t=new n(t,a),i(e,t),o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,i=o.state||null,u=e.pendingProps;u?void 0:r("158");var l=Qe(e);o.props=u,o.state=e.memoizedState=i,o.refs=En,o.context=Je(e,l),null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=1),"function"==typeof o.componentWillMount&&(i=o.state,o.componentWillMount(),i!==o.state&&a.enqueueReplaceState(o,o.state,null),i=e.updateQueue,null!==i&&(o.state=_t(n,e,i,o,u,t))),"function"==typeof o.componentDidMount&&(e.effectTag|=4)},updateClassInstance:function(e,t,i){var u=t.stateNode;u.props=t.memoizedProps,u.state=t.memoizedState;var l=t.memoizedProps,s=t.pendingProps;s||(s=l,null==s?r("159"):void 0);var c=u.context,f=Qe(t);if(f=Je(t,f),"function"!=typeof u.componentWillReceiveProps||l===s&&c===f||(c=u.state,u.componentWillReceiveProps(s,f),u.state!==c&&a.enqueueReplaceState(u,u.state,null)),c=t.memoizedState,i=null!==t.updateQueue?_t(e,t,t.updateQueue,u,s,i):c,!(l!==s||c!==i||go.current||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof u.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),!1;var d=s;if(null===l||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)d=!0;else{var p=t.stateNode,h=t.type;d="function"==typeof p.shouldComponentUpdate?p.shouldComponentUpdate(d,i,f):!h.prototype||!h.prototype.isPureReactComponent||(!Cn(l,d)||!Cn(c,i))}return d?("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(s,i,f),"function"==typeof u.componentDidUpdate&&(t.effectTag|=4)):("function"!=typeof u.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),n(t,s),o(t,i)),u.props=s,u.state=i,u.context=f,d}}}function Ct(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ko,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function St(e){return null===e||"undefined"==typeof e?null:(e=Co&&e[Co]||e["@@iterator"],"function"==typeof e?e:null)}function Tt(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){t=t._owner;var o=void 0;t&&(2!==t.tag?r("110"):void 0,o=t.stateNode),o?void 0:r("147",n);var i=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===i?e.ref:(e=function(e){var t=o.refs===En?o.refs={}:o.refs;null===e?delete t[i]:t[i]=e},e._stringRef=i,e)}"string"!=typeof n?r("148"):void 0,t._owner?void 0:r("149",n)}return n}function Et(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Ot(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function o(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(t,n,r){return e?(t=at(t,n,r),t.index=0,t.sibling=null,t):(t.expirationTime=r,t.effectTag=0,t.index=0,t.sibling=null,t.pendingProps=n,t)}function u(e,n,r){return e.index=r,t?(r=e.alternate,null!==r?(r=r.index,r<n?(e.effectTag=2,n):r):(e.effectTag=2,n)):n}function l(e){return t&&null===e.alternate&&(e.effectTag=2),e}function s(e,t,n,r){return null===t||6!==t.tag?(t=st(n,e.internalContextTag,r),t.return=e,t):(t=a(t,n,r),t.return=e,t)}function c(e,t,n,r){return null!==t&&t.type===n.type?(r=a(t,n.props,r),r.ref=Tt(t,n),r.return=e,r):(r=ut(n,e.internalContextTag,r),r.ref=Tt(t,n),r.return=e,r)}function f(e,t,n,r){return null===t||7!==t.tag?(t=ct(n,e.internalContextTag,r),t.return=e,t):(t=a(t,n,r),t.return=e,t)}function d(e,t,n,r){return null===t||9!==t.tag?(t=ft(n,e.internalContextTag,r),t.type=n.value,t.return=e,t):(t=a(t,null,r),t.type=n.value,t.return=e,t)}function p(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=dt(n,e.internalContextTag,r),t.return=e,t):(t=a(t,n.children||[],r),t.return=e,t)}function h(e,t,n,r,o){return null===t||10!==t.tag?(t=lt(n,e.internalContextTag,r,o),t.return=e,t):(t=a(t,n,r),t.return=e,t)}function v(e,t,n){if("string"==typeof t||"number"==typeof t)return t=st(""+t,e.internalContextTag,n),t.return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case po:return t.type===mo?(t=lt(t.props.children,e.internalContextTag,n,t.key),t.return=e,t):(n=ut(t,e.internalContextTag,n),n.ref=Tt(null,t),n.return=e,n);case ho:return t=ct(t,e.internalContextTag,n),t.return=e,t;case vo:return n=ft(t,e.internalContextTag,n),n.type=t.value,n.return=e,n;case ko:return t=dt(t,e.internalContextTag,n),t.return=e,t}if(xo(t)||St(t))return t=lt(t,e.internalContextTag,n,null),t.return=e,t;Et(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case po:return n.key===o?n.type===mo?h(e,t,n.props.children,r,o):c(e,t,n,r):null;case ho:return n.key===o?f(e,t,n,r):null;case vo:return null===o?d(e,t,n,r):null;case ko:return n.key===o?p(e,t,n,r):null}if(xo(n)||St(n))return null!==o?null:h(e,t,n,r,null);Et(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return e=e.get(n)||null,s(t,e,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case po:return e=e.get(null===r.key?n:r.key)||null,r.type===mo?h(t,e,r.props.children,o,r.key):c(t,e,r,o);case ho:return e=e.get(null===r.key?n:r.key)||null,f(t,e,r,o);case vo:return e=e.get(n)||null,d(t,e,r,o);case ko:return e=e.get(null===r.key?n:r.key)||null,p(t,e,r,o)}if(xo(r)||St(r))return e=e.get(n)||null,h(t,e,r,o,null);Et(t,r)}return null}function g(e,r,a,l){for(var s=null,c=null,f=r,d=r=0,p=null;null!==f&&d<a.length;d++){f.index>d?(p=f,f=null):p=f.sibling;var h=m(e,f,a[d],l);if(null===h){null===f&&(f=p);break}t&&f&&null===h.alternate&&n(e,f),r=u(h,r,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===a.length)return o(e,f),s;if(null===f){for(;d<a.length;d++)(f=v(e,a[d],l))&&(r=u(f,r,d),null===c?s=f:c.sibling=f,c=f);return s}for(f=i(e,f);d<a.length;d++)(p=y(f,e,d,a[d],l))&&(t&&null!==p.alternate&&f.delete(null===p.key?d:p.key),r=u(p,r,d),null===c?s=p:c.sibling=p,c=p);return t&&f.forEach(function(t){return n(e,t)}),s}function b(e,a,l,s){var c=St(l);"function"!=typeof c?r("150"):void 0,l=c.call(l),null==l?r("151"):void 0;for(var f=c=null,d=a,p=a=0,h=null,g=l.next();null!==d&&!g.done;p++,g=l.next()){d.index>p?(h=d,d=null):h=d.sibling;var b=m(e,d,g.value,s);if(null===b){d||(d=h);break}t&&d&&null===b.alternate&&n(e,d),a=u(b,a,p),null===f?c=b:f.sibling=b,f=b,d=h}if(g.done)return o(e,d),c;if(null===d){for(;!g.done;p++,g=l.next())g=v(e,g.value,s),null!==g&&(a=u(g,a,p),null===f?c=g:f.sibling=g,f=g);return c}for(d=i(e,d);!g.done;p++,g=l.next())g=y(d,e,p,g.value,s),null!==g&&(t&&null!==g.alternate&&d.delete(null===g.key?p:g.key),a=u(g,a,p),null===f?c=g:f.sibling=g,f=g);return t&&d.forEach(function(t){return n(e,t)}),c}return function(e,t,i,u){var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case po:e:{var c=i.key;for(s=t;null!==s;){if(s.key===c){if(10===s.tag?i.type===mo:s.type===i.type){o(e,s.sibling),t=a(s,i.type===mo?i.props.children:i.props,u),t.ref=Tt(s,i),t.return=e,e=t;break e}o(e,s);break}n(e,s),s=s.sibling}i.type===mo?(i=lt(i.props.children,e.internalContextTag,u,i.key),i.return=e,e=i):(u=ut(i,e.internalContextTag,u),u.ref=Tt(t,i),u.return=e,e=u)}return l(e);case ho:e:{for(s=i.key;null!==t;){if(t.key===s){if(7===t.tag){o(e,t.sibling),i=a(t,i,u),i.return=e,e=i;break e}o(e,t);break}n(e,t),t=t.sibling}i=ct(i,e.internalContextTag,u),i.return=e,e=i}return l(e);case vo:e:{if(null!==t){if(9===t.tag){o(e,t.sibling),t=a(t,null,u),t.type=i.value,t.return=e,e=t;break e}o(e,t)}t=ft(i,e.internalContextTag,u),t.type=i.value,t.return=e,e=t}return l(e);case ko:e:{for(s=i.key;null!==t;){if(t.key===s){if(4===t.tag&&t.stateNode.containerInfo===i.containerInfo&&t.stateNode.implementation===i.implementation){o(e,t.sibling),i=a(t,i.children||[],u),i.return=e,e=i;break e}o(e,t);break}n(e,t),t=t.sibling}i=dt(i,e.internalContextTag,u),i.return=e,e=i}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==t&&6===t.tag?(o(e,t.sibling),i=a(t,i,u)):(o(e,t),i=st(i,e.internalContextTag,u)),i.return=e,e=i,l(e);if(xo(i))return g(e,t,i,u);if(St(i))return b(e,t,i,u);if(s&&Et(e,i),"undefined"==typeof i)switch(e.tag){case 2:case 1:i=e.type,r("152",i.displayName||i.name||"Component")}return o(e,t)}}function Pt(e,t,n,o,i){function a(e,t,n){u(e,t,n,t.expirationTime)}function u(e,t,n,r){t.child=null===e?Eo(t,t.child,n,r):e.child===t.child?So(t,t.child,n,r):To(t,t.child,n,r)}function l(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function s(e,t,n,r){if(l(e,t),!n)return r&&ot(t,!1),f(e,t);n=t.stateNode,zr.current=t;var o=n.render();return t.effectTag|=1,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ot(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),y(e,t.containerInfo)}function f(e,t){if(null!==e&&t.child!==e.child?r("153"):void 0,null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function d(e,t){switch(t.tag){case 3:c(t);break;case 2:rt(t);break;case 4:y(t,t.stateNode.containerInfo)}return null}var p=e.shouldSetTextContent,h=e.useSyncScheduling,v=e.shouldDeprioritizeSubtree,m=t.pushHostContext,y=t.pushHostContainer,g=n.enterHydrationState,b=n.resetHydrationState,w=n.tryToClaimNextHydratableInstance;e=xt(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var _=e.adoptClassInstance,k=e.constructClassInstance,x=e.mountClassInstance,C=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return d(e,t);switch(t.tag){case 0:null!==e?r("155"):void 0;var o=t.type,i=t.pendingProps,u=Qe(t);return u=Je(t,u),o=o(i,u),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render?(t.tag=2,i=rt(t),_(t,o),x(t,n),t=s(e,t,!0,i)):(t.tag=1,a(e,t,o),t.memoizedProps=i,t=t.child),t;case 1:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,go.current)null===n&&(n=o);else if(null===n||o===n){t=f(e,t);break e}o=Qe(t),o=Je(t,o),i=i(n,o),t.effectTag|=1,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case 2:return i=rt(t),o=void 0,null===e?t.stateNode?r("153"):(k(t,t.pendingProps),x(t,n),o=!0):o=C(e,t,n),s(e,t,o,i);case 3:return c(t),i=t.updateQueue,null!==i?(o=t.memoizedState,i=_t(e,t,i,null,null,n),o===i?(b(),t=f(e,t)):(o=i.element,u=t.stateNode,(null===e||null===e.child)&&u.hydrate&&g(t)?(t.effectTag|=2,t.child=Eo(t,t.child,o,n)):(b(),a(e,t,o)),t.memoizedState=i,t=t.child)):(b(),t=f(e,t)),t;case 5:m(t),null===e&&w(t),i=t.type;var S=t.memoizedProps;return o=t.pendingProps,null===o&&(o=S,null===o?r("154"):void 0),u=null!==e?e.memoizedProps:null,go.current||null!==o&&S!==o?(S=o.children,p(i,o)?S=null:u&&p(i,u)&&(t.effectTag|=16),l(e,t),2147483647!==n&&!h&&v(i,o)?(t.expirationTime=2147483647,t=null):(a(e,t,S),t.memoizedProps=o,t=t.child)):t=f(e,t),t;case 6:return null===e&&w(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return i=t.pendingProps,go.current?null===i&&(i=e&&e.memoizedProps,null===i?r("154"):void 0):null!==i&&t.memoizedProps!==i||(i=t.memoizedProps),o=i.children,t.stateNode=null===e?Eo(t,t.stateNode,o,n):e.child===t.child?So(t,t.stateNode,o,n):To(t,t.stateNode,o,n),t.memoizedProps=i,t.stateNode;case 9:return null;case 4:e:{if(y(t,t.stateNode.containerInfo),i=t.pendingProps,go.current)null===i&&(i=e&&e.memoizedProps,null==i?r("154"):void 0);else if(null===i||t.memoizedProps===i){t=f(e,t);break e}null===e?t.child=To(t,t.child,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case 10:e:{if(n=t.pendingProps,go.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=f(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default: r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:c(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?d(e,t):(t.firstEffect=null,t.lastEffect=null,u(e,t,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function It(e,t,n){function o(e){e.effectTag|=4}var i=e.createInstance,a=e.createTextInstance,u=e.appendInitialChild,l=e.finalizeInitialChildren,s=e.prepareUpdate,c=e.persistence,f=t.getRootHostContainer,d=t.popHostContext,p=t.getHostContext,h=t.popHostContainer,v=n.prepareToHydrateHostInstance,m=n.prepareToHydrateHostTextInstance,y=n.popHydrationState,g=void 0,b=void 0,w=void 0;return e.mutation?(g=function(){},b=function(e,t,n){(t.updateQueue=n)&&o(t)},w=function(e,t,n,r){n!==r&&o(t)}):r(c?"235":"236"),{completeWork:function(e,t,n){var c=t.pendingProps;switch(null===c?c=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),Xe(go,t),Xe(yo,t),c=t.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==e&&null!==e.child||(y(t),t.effectTag&=-3),g(t),null;case 5:d(t),n=f();var _=t.type;if(null!==e&&null!=t.stateNode){var k=e.memoizedProps,x=t.stateNode,C=p();x=s(x,_,k,c,n,C),b(e,t,x,_,k,c,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!c)return null===t.stateNode?r("166"):void 0,null;if(e=p(),y(t))v(t,n,e)&&o(t);else{e=i(_,c,n,e,t);e:for(k=t.child;null!==k;){if(5===k.tag||6===k.tag)u(e,k.stateNode);else if(4!==k.tag&&null!==k.child){k.child.return=k,k=k.child;continue}if(k===t)break;for(;null===k.sibling;){if(null===k.return||k.return===t)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}l(e,_,c,n)&&o(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)w(e,t,e.memoizedProps,c);else{if("string"!=typeof c)return null===t.stateNode?r("166"):void 0,null;e=f(),n=p(),y(t)?m(t)&&o(t):t.stateNode=a(c,e,n,t)}return null;case 7:(c=t.memoizedProps)?void 0:r("165"),t.tag=8,_=[];e:for((k=t.stateNode)&&(k.return=t);null!==k;){if(5===k.tag||6===k.tag||4===k.tag)r("247");else if(9===k.tag)_.push(k.type);else if(null!==k.child){k.child.return=k,k=k.child;continue}for(;null===k.sibling;){if(null===k.return||k.return===t)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}return k=c.handler,c=k(c.props,_),t.child=So(t,null!==e?e.child:null,c,n),t.child;case 8:return t.tag=7,null;case 9:return null;case 10:return null;case 4:return h(t),g(t),null;case 0:r("167");default:r("156")}}}}function Nt(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){switch("function"==typeof mt&&mt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:i(e.stateNode);break;case 4:s&&u(e)}}function i(e){for(var t=e;;)if(o(t),null===t.child||s&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function u(e){for(var t=e,n=!1,a=void 0,u=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n?r("160"):void 0,n.tag){case 5:a=n.stateNode,u=!1;break e;case 3:a=n.stateNode.containerInfo,u=!0;break e;case 4:a=n.stateNode.containerInfo,u=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)i(t),u?b(a,t.stateNode):g(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:o(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var l=e.getPublicInstance,s=e.mutation;e=e.persistence,s||r(e?"235":"236");var c=s.commitMount,f=s.commitUpdate,d=s.resetTextContent,p=s.commitTextUpdate,h=s.appendChild,v=s.appendChildToContainer,m=s.insertBefore,y=s.insertInContainerBefore,g=s.removeChild,b=s.removeChildFromContainer;return{commitResetTextContent:function(e){d(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:t=n.stateNode.containerInfo,o=!0;break;case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(d(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)n?o?y(t,i.stateNode,n):m(t,i.stateNode,n):o?v(t,i.stateNode):h(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){u(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&f(n,a,i,e,o,t)}break;case 6:null===t.stateNode?r("162"):void 0,n=t.memoizedProps,p(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t=t.updateQueue,null!==t&&kt(t,n);break;case 3:n=t.updateQueue,null!==n&&kt(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&c(n,t.type,t.memoizedProps,t);break;case 6:break;case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(l(n));break;default:t(n)}}},commitDetachRef:function(e){e=e.ref,null!==e&&e(null)}}}function Mt(e){function t(e){return e===Oo?r("174"):void 0,e}var n=e.getChildHostContext,o=e.getRootHostContext,i={current:Oo},a={current:Oo},u={current:Oo};return{getHostContext:function(){return t(i.current)},getRootHostContainer:function(){return t(u.current)},popHostContainer:function(e){Xe(i,e),Xe(a,e),Xe(u,e)},popHostContext:function(e){a.current===e&&(Xe(i,e),Xe(a,e))},pushHostContainer:function(e,t){$e(u,t,e),t=o(t),$e(a,e,e),$e(i,t,e)},pushHostContext:function(e){var r=t(u.current),o=t(i.current);r=n(o,e.type,r),o!==r&&($e(a,e,e),$e(i,r,e))},resetHostContainer:function(){i.current=Oo,u.current=Oo}}}function At(e){function t(e,t){var n=new it(5,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return t=a(t,e.type,e.pendingProps),null!==t&&(e.stateNode=t,!0);case 6:return t=u(t,e.pendingProps),null!==t&&(e.stateNode=t,!0);default:return!1}}function o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;d=e}var i=e.shouldSetTextContent;if(e=e.hydration,!e)return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,u=e.canHydrateTextInstance,l=e.getNextHydratableSibling,s=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,d=null,p=null,h=!1;return{enterHydrationState:function(e){return p=s(e.stateNode.containerInfo),d=e,h=!0},resetHydrationState:function(){p=d=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=p;if(r){if(!n(e,r)){if(r=l(r),!r||!n(e,r))return e.effectTag|=2,h=!1,void(d=e);t(d,p)}d=e,p=s(r)}else e.effectTag|=2,h=!1,d=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==d)return!1;if(!h)return o(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!i(n,e.memoizedProps))for(n=p;n;)t(e,n),n=l(n);return o(e),p=d?l(e.stateNode):null,!0}}}function Rt(e){function t(e){re=Y=!0;var t=e.stateNode;if(t.current===e?r("177"):void 0,t.isReadyForCommit=!1,zr.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var n=e.firstEffect}else n=e;else n=e.firstEffect;for(V(),Q=n;null!==Q;){var o=!1,i=void 0;try{for(;null!==Q;){var a=Q.effectTag;if(16&a&&M(Q),128&a){var u=Q.alternate;null!==u&&F(u)}switch(a&-242){case 2:A(Q),Q.effectTag&=-3;break;case 6:A(Q),Q.effectTag&=-3,D(Q.alternate,Q);break;case 4:D(Q.alternate,Q);break;case 8:oe=!0,R(Q),oe=!1}Q=Q.nextEffect}}catch(e){o=!0,i=e}o&&(null===Q?r("178"):void 0,l(Q,i),null!==Q&&(Q=Q.nextEffect))}for(B(),t.current=e,Q=n;null!==Q;){n=!1,o=void 0;try{for(;null!==Q;){var s=Q.effectTag;if(36&s&&U(Q.alternate,Q),128&s&&L(Q),64&s)switch(i=Q,a=void 0,null!==J&&(a=J.get(i),J.delete(i),null==a&&null!==i.alternate&&(i=i.alternate,a=J.get(i),J.delete(i))),null==a?r("184"):void 0,i.tag){case 2:i.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case 3:null===te&&(te=a.error);break;default:r("157")}var c=Q.nextEffect;Q.nextEffect=null,Q=c}}catch(e){n=!0,o=e}n&&(null===Q?r("178"):void 0,l(Q,o),null!==Q&&(Q=Q.nextEffect))}return Y=re=!1,"function"==typeof vt&&vt(e.stateNode),ee&&(ee.forEach(v),ee=null),null!==te&&(e=te,te=null,k(e)),t=t.current.expirationTime,0===t&&(Z=J=null),t}function n(e){for(;;){var t=N(e.alternate,e,$),n=e.return,r=e.sibling,o=e;if(2147483647===$||2147483647!==o.expirationTime){if(2!==o.tag&&3!==o.tag)var i=0;else i=o.updateQueue,i=null===i?0:i.expirationTime;for(var a=o.child;null!==a;)0!==a.expirationTime&&(0===i||i>a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){e.stateNode.isReadyForCommit=!0;break}e=n}return null}function o(e){var t=P(e.alternate,e,$);return null===t&&(t=n(e)),zr.current=null,t}function i(e){var t=I(e.alternate,e,$);r