diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 774a76f46..4057bb809 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,18 +1,21 @@ # How to contribute + Thanks for taking your time to read this. We're thrilled you're reading this because we the help from the community to keep improving this project. ## Testing + We have a handful of Cucumber features, but most of our testbed consists of RSpec examples. Please write RSpec examples for new code you create. ## Submitting changes + Please send a [GitHub Pull Request](https://github.com/Hacker0x01/react-datepicker/pull/new/master) with a clear list of what you've done (read more about [pull requests](https://help.github.com/articles/about-pull-requests/)). When you send a pull request, we will love you forever if you include a test to cover your changes. We can always use more test coverage. Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this: - $ git commit -m "A summary of the commit - > - > A paragraph describing what changed and its impact." +$ git commit -m "A summary of the commit > > A paragraph describing what changed and its impact." ## Coding conventions + Start reading our code, and you'll get the hang of it. We optimize for readability: - * We use prettier for code styling. Don't worry about tabs vs spaces, or how to indent your code. - * We use ESlint for all other coding standards. We try to be consistent and helpful. - * This is open source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers, the goal is to make the ride as smooth as possible. + +- We use prettier for code styling. Don't worry about tabs vs spaces, or how to indent your code. +- We use ESlint for all other coding standards. We try to be consistent and helpful. +- This is open source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers, the goal is to make the ride as smooth as possible. diff --git a/README.md b/README.md index 2b02b494c..886bfbba2 100644 --- a/README.md +++ b/README.md @@ -100,20 +100,20 @@ More examples of how to use the time picker are given on the [main website](http The date picker relies on [date-fns internationalization](https://date-fns.org/v2.0.0-alpha.18/docs/I18n) to localize its display components. By default, the date picker will use the locale globally set, which is English. Provided are 3 helper methods to set the locale: -* **registerLocale** (string, object): loads an imported locale object from date-fns -* **setDefaultLocale** (string): sets a registered locale as the default for all datepicker instances -* **getDefaultLocale**: returns a string showing the currently set default locale +- **registerLocale** (string, object): loads an imported locale object from date-fns +- **setDefaultLocale** (string): sets a registered locale as the default for all datepicker instances +- **getDefaultLocale**: returns a string showing the currently set default locale To load an alternate locale: -* Import the helper methods you need: `import { registerLocale, setDefaultLocale } from DatePicker;` -* Import the locale from date-fns: `import fi from 'date-fns/locale/fi';` -* Register the locale: `registerLocale('fi', fi);` +- Import the helper methods you need: `import { registerLocale, setDefaultLocale } from DatePicker;` +- Import the locale from date-fns: `import fi from 'date-fns/locale/fi';` +- Register the locale: `registerLocale('fi', fi);` Locales can be changed in the following ways: -* **Globally** - `setDefaultLocale('fi');` -* **Picker-specific** by providing the `locale` prop - `` +- **Globally** - `setDefaultLocale('fi');` +- **Picker-specific** by providing the `locale` prop - `` ## Compatibility @@ -123,11 +123,11 @@ We're always trying to stay compatible with the latest version of React. We can' Latest compatible versions: -* React 15.5 or newer: All above React-datepicker v.0.40.0 -* React 15.4.1: needs React-datepicker v0.40.0, newer won't work (due to react-onclickoutside dependencies) -* React 0.14 or newer: All above React-datepicker v0.13.0 -* React 0.13: React-datepicker v0.13.0 -* pre React 0.13: React-datepicker v0.6.2 +- React 15.5 or newer: All above React-datepicker v.0.40.0 +- React 15.4.1: needs React-datepicker v0.40.0, newer won't work (due to react-onclickoutside dependencies) +- React 0.14 or newer: All above React-datepicker v0.13.0 +- React 0.13: React-datepicker v0.13.0 +- pre React 0.13: React-datepicker v0.6.2 ### Moment.js @@ -153,15 +153,15 @@ The examples are hosted within the docs folder and are ran in the simple app tha ### Keyboard support -* _Left_: Move to the previous day. -* _Right_: Move to the next day. -* _Up_: Move to the previous week. -* _Down_: Move to the next week. -* _PgUp_: Move to the previous month. -* _PgDn_: Move to the next month. -* _Home_: Move to the previous year. -* _End_: Move to the next year. -* _Enter/Esc/Tab_: close the calendar. (Enter & Esc calls preventDefault) +- _Left_: Move to the previous day. +- _Right_: Move to the next day. +- _Up_: Move to the previous week. +- _Down_: Move to the next week. +- _PgUp_: Move to the previous month. +- _PgDn_: Move to the next month. +- _Home_: Move to the previous year. +- _End_: Move to the next year. +- _Enter/Esc/Tab_: close the calendar. (Enter & Esc calls preventDefault) ## License diff --git a/docs-site/bundle.js b/docs-site/bundle.js index 9b2c585f1..171cd319b 100644 --- a/docs-site/bundle.js +++ b/docs-site/bundle.js @@ -319,7 +319,7 @@ }, /* 3 */ [ - 796, + 804, 4, 5, 6, @@ -375,7 +375,7 @@ /***/ }, /* 6 */ - [797, 7], + [805, 7], /* 7 */ /***/ function(module, exports) { module.exports = function(exec) { @@ -453,11 +453,11 @@ /***/ }, /* 10 */ - [798, 11, 17, 6], + [806, 11, 17, 6], /* 11 */ - [799, 12, 14, 16, 6], + [807, 12, 14, 16, 6], /* 12 */ - [800, 13], + [808, 13], /* 13 */ /***/ function(module, exports) { module.exports = function(it) { @@ -467,11 +467,11 @@ /***/ }, /* 14 */ - [801, 6, 7, 15], + [809, 6, 7, 15], /* 15 */ - [802, 13, 4], + [810, 13, 4], /* 16 */ - [803, 13], + [811, 13], /* 17 */ /***/ function(module, exports) { module.exports = function(bitmap, value) { @@ -538,7 +538,7 @@ /***/ }, /* 20 */ - [804, 21], + [812, 21], /* 21 */ /***/ function(module, exports) { module.exports = function(it) { @@ -550,9 +550,9 @@ /***/ }, /* 22 */ - [805, 19, 13, 5, 11, 7], + [813, 19, 13, 5, 11, 7], /* 23 */ - [806, 9, 4, 24], + [814, 9, 4, 24], /* 24 */ /***/ function(module, exports) { module.exports = false; @@ -560,23 +560,23 @@ /***/ }, /* 25 */ - [807, 11, 5, 26], + [815, 11, 5, 26], /* 26 */ - [808, 23, 19, 4], + [816, 23, 19, 4], /* 27 */ - [809, 26], + [817, 26], /* 28 */ - [810, 4, 9, 24, 27, 11], + [818, 4, 9, 24, 27, 11], /* 29 */ - [811, 30, 42, 43], + [819, 30, 42, 43], /* 30 */ - [812, 31, 41], + [820, 31, 41], /* 31 */ - [813, 5, 32, 36, 40], + [821, 5, 32, 36, 40], /* 32 */ - [814, 33, 35], + [822, 33, 35], /* 33 */ - [815, 34], + [823, 34], /* 34 */ /***/ function(module, exports) { var toString = {}.toString; @@ -598,9 +598,9 @@ /***/ }, /* 36 */ - [816, 32, 37, 39], + [824, 32, 37, 39], /* 37 */ - [817, 38], + [825, 38], /* 38 */ /***/ function(module, exports) { // 7.1.4 ToInteger @@ -613,9 +613,9 @@ /***/ }, /* 39 */ - [818, 38], + [826, 38], /* 40 */ - [819, 23, 19], + [827, 23, 19], /* 41 */ /***/ function(module, exports) { // IE 8- don't enum bug keys @@ -638,21 +638,21 @@ /***/ }, /* 44 */ - [820, 34], + [828, 34], /* 45 */ - [821, 12, 46, 41, 40, 15, 47], + [829, 12, 46, 41, 40, 15, 47], /* 46 */ - [822, 11, 12, 30, 6], + [830, 11, 12, 30, 6], /* 47 */ - [823, 4], + [831, 4], /* 48 */ - [824, 32, 49], + [832, 32, 49], /* 49 */ - [825, 31, 41], + [833, 31, 41], /* 50 */ - [826, 43, 17, 32, 16, 5, 14, 6], + [834, 43, 17, 32, 16, 5, 14, 6], /* 51 */ - [827, 8, 45], + [835, 8, 45], /* 52 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); @@ -725,9 +725,9 @@ /***/ }, /* 57 */ - [828, 35], + [836, 35], /* 58 */ - [829, 5, 57, 40], + [837, 5, 57, 40], /* 59 */ /***/ function(module, exports, __webpack_require__) { // 19.1.2.14 Object.keys(O) @@ -841,9 +841,9 @@ /***/ }, /* 67 */ - [830, 8, 68], + [838, 8, 68], /* 68 */ - [831, 30, 42, 43, 57, 33, 7], + [839, 30, 42, 43, 57, 33, 7], /* 69 */ /***/ function(module, exports, __webpack_require__) { // 19.1.3.10 Object.is(value1, value2) @@ -865,9 +865,9 @@ /***/ }, /* 71 */ - [832, 8, 72], + [840, 8, 72], /* 72 */ - [833, 13, 12, 20, 50], + [841, 13, 12, 20, 50], /* 73 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2045,11 +2045,11 @@ /***/ }, /* 126 */ - [834, 127, 128], + [842, 127, 128], /* 127 */ - [835, 38, 35], + [843, 38, 35], /* 128 */ - [836, 24, 8, 18, 10, 129, 130, 25, 58, 26], + [844, 24, 8, 18, 10, 129, 130, 25, 58, 26], /* 129 */ /***/ function(module, exports) { module.exports = {}; @@ -2057,7 +2057,7 @@ /***/ }, /* 130 */ - [837, 45, 17, 25, 10, 26], + [845, 45, 17, 25, 10, 26], /* 131 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -3418,7 +3418,7 @@ /***/ }, /* 194 */ - [838, 187, 195, 129, 32, 128], + [846, 187, 195, 129, 32, 128], /* 195 */ /***/ function(module, exports) { module.exports = function(done, value) { @@ -6888,9 +6888,9 @@ /***/ }, /* 265 */ - [839, 28], + [847, 28], /* 266 */ - [840, 28], + [848, 28], /* 267 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-getownpropertydescriptors @@ -9028,11 +9028,11 @@ var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(331); + var _reactDom = __webpack_require__(334); var _reactDom2 = _interopRequireDefault(_reactDom); - var _root = __webpack_require__(335); + var _root = __webpack_require__(343); var _root2 = _interopRequireDefault(_root); @@ -9051,10 +9051,10 @@ /***/ function(module, exports, __webpack_require__) { "use strict"; - if (true) { + if (undefined === "production") { module.exports = __webpack_require__(329); } else { - module.exports = require("./cjs/react.development.js"); + module.exports = __webpack_require__(331); } /***/ @@ -9541,52 +9541,9 @@ /***/ }, /* 331 */ - /***/ function(module, exports, __webpack_require__) { - "use strict"; - - function checkDCE() { - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ - if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function" - ) { - return; - } - if (false) { - // This branch is unreachable because this function is only called - // in production, but the condition is true only in development. - // Therefore if the branch is still here, dead code elimination wasn't - // properly applied. - // Don't change the message. React DevTools relies on it. Also make sure - // this message doesn't occur elsewhere in this function, or it will cause - // a false positive. - throw new Error("^_^"); - } - try { - // Verify that the code above has been dead code eliminated (DCE'd). - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); - } catch (err) { - // DevTools shouldn't crash React, no matter what. - // We should still report in case we break this code. - console.error(err); - } - } - - if (true) { - // DCE check should happen before ReactDOM bundle executes so that - // DevTools can report bad minification during injection. - checkDCE(); - module.exports = __webpack_require__(332); - } else { - module.exports = require("./cjs/react-dom.development.js"); - } - - /***/ - }, - /* 332 */ /***/ function(module, exports, __webpack_require__) { /** @license React v16.5.2 - * react-dom.production.min.js + * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * @@ -9594,6093 +9551,33089 @@ * LICENSE file in the root directory of this source tree. */ - /* - Modernizr 3.0.0pre (Custom Build) | MIT - */ "use strict"; - var aa = __webpack_require__(328), - n = __webpack_require__(330), - ba = __webpack_require__(333); - function ca(a, b, c, d, e, f, g, h) { - if (!a) { - a = void 0; - if (void 0 === b) - a = Error( - "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." - ); - else { - var k = [c, d, e, f, g, h], - l = 0; - a = Error( - b.replace(/%s/g, function() { - return k[l++]; - }) + + if (undefined !== "production") { + (function() { + "use strict"; + + var _assign = __webpack_require__(330); + var checkPropTypes = __webpack_require__(332); + + // TODO: this is special because it gets imported during build. + + var ReactVersion = "16.5.2"; + + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. + var hasSymbol = typeof Symbol === "function" && Symbol.for; + + var REACT_ELEMENT_TYPE = hasSymbol + ? Symbol.for("react.element") + : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol + ? Symbol.for("react.portal") + : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol + ? Symbol.for("react.fragment") + : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol + ? Symbol.for("react.strict_mode") + : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol + ? Symbol.for("react.profiler") + : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol + ? Symbol.for("react.provider") + : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol + ? Symbol.for("react.context") + : 0xeace; + var REACT_ASYNC_MODE_TYPE = hasSymbol + ? Symbol.for("react.async_mode") + : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol + ? Symbol.for("react.forward_ref") + : 0xead0; + var REACT_PLACEHOLDER_TYPE = hasSymbol + ? Symbol.for("react.placeholder") + : 0xead1; + + var MAYBE_ITERATOR_SYMBOL = + typeof Symbol === "function" && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + + // Exports ReactDOM.createRoot + + // Experimental error-boundary API that can recover from errors within a single + // render phase + + // Suspense + var enableSuspense = false; + // Helps identify side effects in begin-phase lifecycle hooks and setState reducers: + + // In some cases, StrictMode should also double-render lifecycles. + // This can be confusing for tests though, + // And it can be bad for performance in production. + // This feature flag can be used to control the behavior: + + // To preserve the "Pause on caught exceptions" behavior of the debugger, we + // replay the begin phase of a failed component inside invokeGuardedCallback. + + // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: + + // Warn about legacy context API + + // Gather advanced timing metrics for Profiler subtrees. + + // Trace which interactions trigger each commit. + + // Only used in www builds. + + // Only used in www builds. + + // React Fire: prevent the value and checked attributes from syncing + // with their related DOM properties + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var validateFormat = function() {}; + + { + validateFormat = function(format) { + if (format === undefined) { + throw new Error("invariant requires an error message argument"); + } + }; + } + + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error = void 0; + if (format === undefined) { + error = new Error( + "Minified exception occurred; use the non-minified dev environment " + + "for the full error message and additional helpful warnings." + ); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error( + format.replace(/%s/g, function() { + return args[argIndex++]; + }) + ); + error.name = "Invariant Violation"; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + } + + // Relying on the `invariant()` implementation lets us + // preserve the format and params in the www builds. + + /** + * Forked from fbjs/warning: + * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js + * + * Only change is we use console.warn instead of console.error, + * and do nothing when 'console' is not supported. + * This really simplifies the code. + * --- + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var lowPriorityWarning = function() {}; + + { + var printWarning = function(format) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = + "Warning: " + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + if (typeof console !== "undefined") { + console.warn(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + + lowPriorityWarning = function(condition, format) { + if (format === undefined) { + throw new Error( + "`lowPriorityWarning(condition, format, ...args)` requires a warning " + + "message argument" + ); + } + if (!condition) { + for ( + var _len2 = arguments.length, + args = Array(_len2 > 2 ? _len2 - 2 : 0), + _key2 = 2; + _key2 < _len2; + _key2++ + ) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + } + + var lowPriorityWarning$1 = lowPriorityWarning; + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warningWithoutStack = function() {}; + + { + warningWithoutStack = function(condition, format) { + for ( + var _len = arguments.length, + args = Array(_len > 2 ? _len - 2 : 0), + _key = 2; + _key < _len; + _key++ + ) { + args[_key - 2] = arguments[_key]; + } + + if (format === undefined) { + throw new Error( + "`warningWithoutStack(condition, format, ...args)` requires a warning " + + "message argument" + ); + } + if (args.length > 8) { + // Check before the condition to catch violations early. + throw new Error( + "warningWithoutStack() currently supports at most 8 arguments." + ); + } + if (condition) { + return; + } + if (typeof console !== "undefined") { + var _args$map = args.map(function(item) { + return "" + item; + }), + a = _args$map[0], + b = _args$map[1], + c = _args$map[2], + d = _args$map[3], + e = _args$map[4], + f = _args$map[5], + g = _args$map[6], + h = _args$map[7]; + + var message = "Warning: " + format; + + // We intentionally don't use spread (or .apply) because it breaks IE9: + // https://github.com/facebook/react/issues/13610 + switch (args.length) { + case 0: + console.error(message); + break; + case 1: + console.error(message, a); + break; + case 2: + console.error(message, a, b); + break; + case 3: + console.error(message, a, b, c); + break; + case 4: + console.error(message, a, b, c, d); + break; + case 5: + console.error(message, a, b, c, d, e); + break; + case 6: + console.error(message, a, b, c, d, e, f); + break; + case 7: + console.error(message, a, b, c, d, e, f, g); + break; + case 8: + console.error(message, a, b, c, d, e, f, g, h); + break; + default: + throw new Error( + "warningWithoutStack() currently supports at most 8 arguments." + ); + } + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + var argIndex = 0; + var _message = + "Warning: " + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + throw new Error(_message); + } catch (x) {} + }; + } + + var warningWithoutStack$1 = warningWithoutStack; + + var didWarnStateUpdateForUnmountedComponent = {}; + + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = + (_constructor && + (_constructor.displayName || _constructor.name)) || + "ReactClass"; + var warningKey = componentName + "." + callerName; + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + warningWithoutStack$1( + false, + "Can't call %s on a component that is not yet mounted. " + + "This is a no-op, but it might indicate a bug in your application. " + + "Instead, assign to `this.state` directly or define a `state = {};` " + + "class property with the desired state in the %s component.", + callerName, + componentName + ); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + + /** + * This is the abstract API for an update queue. + */ + var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function(publicInstance) { + return false; + }, + + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: function(publicInstance, callback, callerName) { + warnNoop(publicInstance, "forceUpdate"); + }, + + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: function( + publicInstance, + completeState, + callback, + callerName + ) { + warnNoop(publicInstance, "replaceState"); + }, + + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: function( + publicInstance, + partialState, + callback, + callerName + ) { + warnNoop(publicInstance, "setState"); + } + }; + + var emptyObject = {}; + { + Object.freeze(emptyObject); + } + + /** + * Base class helpers for the updating state of a component. + */ + function Component(props, context, updater) { + this.props = props; + this.context = context; + // If a component has string refs, we will assign a different object later. + this.refs = emptyObject; + // We initialize the default updater but the real one gets injected by the + // renderer. + this.updater = updater || ReactNoopUpdateQueue; + } + + Component.prototype.isReactComponent = {}; + + /** + * Sets a subset of the state. Always use this to mutate + * state. You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * There is no guarantee that calls to `setState` will run synchronously, + * as they may eventually be batched together. You can provide an optional + * callback that will be executed when the call to setState is actually + * completed. + * + * When a function is provided to setState, it will be called at some point in + * the future (not synchronously). It will be called with the up to date + * component arguments (state, props, context). These values can be different + * from this.* because your function may be called after receiveProps but before + * shouldComponentUpdate, and this new state, props, and context will not yet be + * assigned to this. + * + * @param {object|function} partialState Next partial state or function to + * produce next partial state to be merged with current state. + * @param {?function} callback Called after state is updated. + * @final + * @protected + */ + Component.prototype.setState = function(partialState, callback) { + !( + typeof partialState === "object" || + typeof partialState === "function" || + partialState == null + ) + ? invariant( + false, + "setState(...): takes an object of state variables to update or a function which returns an object of state variables." + ) + : void 0; + this.updater.enqueueSetState( + this, + partialState, + callback, + "setState" ); - a.name = "Invariant Violation"; + }; + + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {?function} callback Called after update is complete. + * @final + * @protected + */ + Component.prototype.forceUpdate = function(callback) { + this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); + }; + + /** + * Deprecated APIs. These APIs used to exist on classic React classes but since + * we would like to deprecate them, we're not going to move them over to this + * modern base class. Instead, we define a getter that warns if it's accessed. + */ + { + var deprecatedAPIs = { + isMounted: [ + "isMounted", + "Instead, make sure to clean up subscriptions and pending requests in " + + "componentWillUnmount to prevent memory leaks." + ], + replaceState: [ + "replaceState", + "Refactor your code to use setState instead (see " + + "https://github.com/facebook/react/issues/3236)." + ] + }; + var defineDeprecationWarning = function(methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function() { + lowPriorityWarning$1( + false, + "%s(...) is deprecated in plain JavaScript React classes. %s", + info[0], + info[1] + ); + return undefined; + } + }); + }; + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } } - a.framesToPop = 1; - throw a; - } - } - function t(a) { - for ( - var b = arguments.length - 1, - c = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, - d = 0; - d < b; - d++ - ) - c += "&args[]=" + encodeURIComponent(arguments[d + 1]); - ca( - !1, - "Minified React error #" + - a + - "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", - c - ); - } - aa ? void 0 : t("227"); - function da(a, b, c, d, e, f, g, h, k) { - var l = Array.prototype.slice.call(arguments, 3); - try { - b.apply(c, l); - } catch (m) { - this.onError(m); - } - } - var ea = !1, - fa = null, - ha = !1, - ia = null, - ja = { - onError: function(a) { - ea = !0; - fa = a; + + function ComponentDummy() {} + ComponentDummy.prototype = Component.prototype; + + /** + * Convenience component with default shallow equality check for sCU. + */ + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; + // If a component has string refs, we will assign a different object later. + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + + var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy()); + pureComponentPrototype.constructor = PureComponent; + // Avoid an extra prototype jump for these methods. + _assign(pureComponentPrototype, Component.prototype); + pureComponentPrototype.isPureReactComponent = true; + + // an immutable object with a single mutable value + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); + } + return refObject; } - }; - function ka(a, b, c, d, e, f, g, h, k) { - ea = !1; - fa = null; - da.apply(ja, arguments); - } - function la(a, b, c, d, e, f, g, h, k) { - ka.apply(this, arguments); - if (ea) { - if (ea) { - var l = fa; - ea = !1; - fa = null; - } else t("198"), (l = void 0); - ha || ((ha = !0), (ia = l)); - } - } - var ma = null, - na = {}; - function oa() { - if (ma) - for (var a in na) { - var b = na[a], - c = ma.indexOf(a); - -1 < c ? void 0 : t("96", a); - if (!pa[c]) { - b.extractEvents ? void 0 : t("97", a); - pa[c] = b; - c = b.eventTypes; - for (var d in c) { - var e = void 0; - var f = c[d], - g = b, - h = d; - qa.hasOwnProperty(h) ? t("99", h) : void 0; - qa[h] = f; - var k = f.phasedRegistrationNames; - if (k) { - for (e in k) k.hasOwnProperty(e) && ra(k[e], g, h); - e = !0; - } else - f.registrationName - ? (ra(f.registrationName, g, h), (e = !0)) - : (e = !1); - e ? void 0 : t("98", d, a); + + /** + * Keeps track of the current owner. + * + * The current owner is the component who should own any components that are + * currently being constructed. + */ + var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ + current: null, + currentDispatcher: null + }; + + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + + var describeComponentFrame = function(name, source, ownerName) { + var sourceInfo = ""; + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ""); + { + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace( + BEFORE_SLASH_RE, + "" + ); + fileName = folderName + "/" + fileName; + } + } + } } + sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")"; + } else if (ownerName) { + sourceInfo = " (created by " + ownerName + ")"; } + return "\n in " + (name || "Unknown") + sourceInfo; + }; + + var Resolved = 1; + + function refineResolvedThenable(thenable) { + return thenable._reactStatus === Resolved + ? thenable._reactResult + : null; } - } - function ra(a, b, c) { - sa[a] ? t("100", a) : void 0; - sa[a] = b; - ta[a] = b.eventTypes[c].dependencies; - } - var pa = [], - qa = {}, - sa = {}, - ta = {}, - ua = null, - va = null, - wa = null; - function xa(a, b, c, d) { - b = a.type || "unknown-event"; - a.currentTarget = wa(d); - la(b, c, void 0, a); - a.currentTarget = null; - } - function ya(a, b) { - null == b ? t("30") : void 0; - if (null == a) return b; - if (Array.isArray(a)) { - if (Array.isArray(b)) return a.push.apply(a, b), a; - a.push(b); - return a; - } - return Array.isArray(b) ? [a].concat(b) : [a, b]; - } - function za(a, b, c) { - Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a); - } - var Aa = null; - function Ba(a, b) { - if (a) { - var c = a._dispatchListeners, - d = a._dispatchInstances; - if (Array.isArray(c)) - for (var e = 0; e < c.length && !a.isPropagationStopped(); e++) - xa(a, b, c[e], d[e]); - else c && xa(a, b, c, d); - a._dispatchListeners = null; - a._dispatchInstances = null; - a.isPersistent() || a.constructor.release(a); - } - } - function Ca(a) { - return Ba(a, !0); - } - function Da(a) { - return Ba(a, !1); - } - var Ea = { - injectEventPluginOrder: function(a) { - ma ? t("101") : void 0; - ma = Array.prototype.slice.call(a); - oa(); - }, - injectEventPluginsByName: function(a) { - var b = !1, - c; - for (c in a) - if (a.hasOwnProperty(c)) { - var d = a[c]; - (na.hasOwnProperty(c) && na[c] === d) || - (na[c] ? t("102", c) : void 0, (na[c] = d), (b = !0)); + + function getComponentName(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; } - b && oa(); - } - }; - function Fa(a, b) { - var c = a.stateNode; - if (!c) return null; - var d = ua(c); - if (!d) return null; - c = d[b]; - a: switch (b) { - case "onClick": - case "onClickCapture": - case "onDoubleClick": - case "onDoubleClickCapture": - case "onMouseDown": - case "onMouseDownCapture": - case "onMouseMove": - case "onMouseMoveCapture": - case "onMouseUp": - case "onMouseUpCapture": - (d = !d.disabled) || - ((a = a.type), - (d = !( - "button" === a || - "input" === a || - "select" === a || - "textarea" === a - ))); - a = !d; - break a; - default: - a = !1; - } - if (a) return null; - c && "function" !== typeof c ? t("231", b, typeof c) : void 0; - return c; - } - function Ga(a, b) { - null !== a && (Aa = ya(Aa, a)); - a = Aa; - Aa = null; - if (a && (b ? za(a, Ca) : za(a, Da), Aa ? t("95") : void 0, ha)) - throw ((b = ia), (ha = !1), (ia = null), b); - } - var Ha = Math.random() - .toString(36) - .slice(2), - Ia = "__reactInternalInstance$" + Ha, - Ja = "__reactEventHandlers$" + Ha; - function Ka(a) { - if (a[Ia]) return a[Ia]; - for (; !a[Ia]; ) - if (a.parentNode) a = a.parentNode; - else return null; - a = a[Ia]; - return 7 === a.tag || 8 === a.tag ? a : null; - } - function La(a) { - a = a[Ia]; - return !a || (7 !== a.tag && 8 !== a.tag) ? null : a; - } - function Ma(a) { - if (7 === a.tag || 8 === a.tag) return a.stateNode; - t("33"); - } - function Na(a) { - return a[Ja] || null; - } - function Oa(a) { - do a = a.return; - while (a && 7 !== a.tag); - return a ? a : null; - } - function Pa(a, b, c) { - if ((b = Fa(a, c.dispatchConfig.phasedRegistrationNames[b]))) - (c._dispatchListeners = ya(c._dispatchListeners, b)), - (c._dispatchInstances = ya(c._dispatchInstances, a)); - } - function Qa(a) { - if (a && a.dispatchConfig.phasedRegistrationNames) { - for (var b = a._targetInst, c = []; b; ) c.push(b), (b = Oa(b)); - for (b = c.length; 0 < b--; ) Pa(c[b], "captured", a); - for (b = 0; b < c.length; b++) Pa(c[b], "bubbled", a); - } - } - function Ra(a, b, c) { - a && - c && - c.dispatchConfig.registrationName && - (b = Fa(a, c.dispatchConfig.registrationName)) && - ((c._dispatchListeners = ya(c._dispatchListeners, b)), - (c._dispatchInstances = ya(c._dispatchInstances, a))); - } - function Ta(a) { - a && a.dispatchConfig.registrationName && Ra(a._targetInst, null, a); - } - function Ua(a) { - za(a, Qa); - } - var Va = !( - "undefined" === typeof window || - !window.document || - !window.document.createElement - ); - function Wa(a, b) { - var c = {}; - c[a.toLowerCase()] = b.toLowerCase(); - c["Webkit" + a] = "webkit" + b; - c["Moz" + a] = "moz" + b; - return c; - } - var Ya = { - animationend: Wa("Animation", "AnimationEnd"), - animationiteration: Wa("Animation", "AnimationIteration"), - animationstart: Wa("Animation", "AnimationStart"), - transitionend: Wa("Transition", "TransitionEnd") - }, - Za = {}, - $a = {}; - Va && - (($a = document.createElement("div").style), - "AnimationEvent" in window || - (delete Ya.animationend.animation, - delete Ya.animationiteration.animation, - delete Ya.animationstart.animation), - "TransitionEvent" in window || delete Ya.transitionend.transition); - function ab(a) { - if (Za[a]) return Za[a]; - if (!Ya[a]) return a; - var b = Ya[a], - c; - for (c in b) if (b.hasOwnProperty(c) && c in $a) return (Za[a] = b[c]); - return a; - } - var bb = ab("animationend"), - cb = ab("animationiteration"), - db = ab("animationstart"), - eb = ab("transitionend"), - fb = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split( - " " - ), - gb = null, - hb = null, - ib = null; - function jb() { - if (ib) return ib; - var a, - b = hb, - c = b.length, - d, - e = "value" in gb ? gb.value : gb.textContent, - f = e.length; - for (a = 0; a < c && b[a] === e[a]; a++); - var g = c - a; - for (d = 1; d <= g && b[c - d] === e[f - d]; d++); - return (ib = e.slice(a, 1 < d ? 1 - d : void 0)); - } - function kb() { - return !0; - } - function lb() { - return !1; - } - function z(a, b, c, d) { - this.dispatchConfig = a; - this._targetInst = b; - this.nativeEvent = c; - a = this.constructor.Interface; - for (var e in a) - a.hasOwnProperty(e) && - ((b = a[e]) - ? (this[e] = b(c)) - : "target" === e - ? (this.target = d) - : (this[e] = c[e])); - this.isDefaultPrevented = (null != c.defaultPrevented - ? c.defaultPrevented - : !1 === c.returnValue) - ? kb - : lb; - this.isPropagationStopped = lb; - return this; - } - n(z.prototype, { - preventDefault: function() { - this.defaultPrevented = !0; - var a = this.nativeEvent; - a && - (a.preventDefault - ? a.preventDefault() - : "unknown" !== typeof a.returnValue && (a.returnValue = !1), - (this.isDefaultPrevented = kb)); - }, - stopPropagation: function() { - var a = this.nativeEvent; - a && - (a.stopPropagation - ? a.stopPropagation() - : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), - (this.isPropagationStopped = kb)); - }, - persist: function() { - this.isPersistent = kb; - }, - isPersistent: lb, - destructor: function() { - var a = this.constructor.Interface, - b; - for (b in a) this[b] = null; - this.nativeEvent = this._targetInst = this.dispatchConfig = null; - this.isPropagationStopped = this.isDefaultPrevented = lb; - this._dispatchInstances = this._dispatchListeners = null; - } - }); - z.Interface = { - type: null, - target: null, - currentTarget: function() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function(a) { - return a.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - z.extend = function(a) { - function b() {} - function c() { - return d.apply(this, arguments); - } - var d = this; - b.prototype = d.prototype; - var e = new b(); - n(e, c.prototype); - c.prototype = e; - c.prototype.constructor = c; - c.Interface = n({}, d.Interface, a); - c.extend = d.extend; - mb(c); - return c; - }; - mb(z); - function nb(a, b, c, d) { - if (this.eventPool.length) { - var e = this.eventPool.pop(); - this.call(e, a, b, c, d); - return e; - } - return new this(a, b, c, d); - } - function ob(a) { - a instanceof this ? void 0 : t("279"); - a.destructor(); - 10 > this.eventPool.length && this.eventPool.push(a); - } - function mb(a) { - a.eventPool = []; - a.getPooled = nb; - a.release = ob; - } - var pb = z.extend({ data: null }), - qb = z.extend({ data: null }), - rb = [9, 13, 27, 32], - sb = Va && "CompositionEvent" in window, - tb = null; - Va && "documentMode" in document && (tb = document.documentMode); - var ub = Va && "TextEvent" in window && !tb, - vb = Va && (!sb || (tb && 8 < tb && 11 >= tb)), - wb = String.fromCharCode(32), - xb = { - beforeInput: { - phasedRegistrationNames: { - bubbled: "onBeforeInput", - captured: "onBeforeInputCapture" - }, - dependencies: ["compositionend", "keypress", "textInput", "paste"] - }, - compositionEnd: { - phasedRegistrationNames: { - bubbled: "onCompositionEnd", - captured: "onCompositionEndCapture" - }, - dependencies: "blur compositionend keydown keypress keyup mousedown".split( - " " - ) - }, - compositionStart: { - phasedRegistrationNames: { - bubbled: "onCompositionStart", - captured: "onCompositionStartCapture" - }, - dependencies: "blur compositionstart keydown keypress keyup mousedown".split( - " " - ) - }, - compositionUpdate: { - phasedRegistrationNames: { - bubbled: "onCompositionUpdate", - captured: "onCompositionUpdateCapture" - }, - dependencies: "blur compositionupdate keydown keypress keyup mousedown".split( - " " - ) - } - }, - yb = !1; - function zb(a, b) { - switch (a) { - case "keyup": - return -1 !== rb.indexOf(b.keyCode); - case "keydown": - return 229 !== b.keyCode; - case "keypress": - case "mousedown": - case "blur": - return !0; - default: - return !1; - } - } - function Ab(a) { - a = a.detail; - return "object" === typeof a && "data" in a ? a.data : null; - } - var Bb = !1; - function Cb(a, b) { - switch (a) { - case "compositionend": - return Ab(b); - case "keypress": - if (32 !== b.which) return null; - yb = !0; - return wb; - case "textInput": - return (a = b.data), a === wb && yb ? null : a; - default: - return null; - } - } - function Db(a, b) { - if (Bb) - return "compositionend" === a || (!sb && zb(a, b)) - ? ((a = jb()), (ib = hb = gb = null), (Bb = !1), a) - : null; - switch (a) { - case "paste": - return null; - case "keypress": - if ( - !(b.ctrlKey || b.altKey || b.metaKey) || - (b.ctrlKey && b.altKey) - ) { - if (b.char && 1 < b.char.length) return b.char; - if (b.which) return String.fromCharCode(b.which); + { + if (typeof type.tag === "number") { + warningWithoutStack$1( + false, + "Received an unexpected object in getComponentName(). " + + "This is likely a bug in React. Please file an issue." + ); + } } - return null; - case "compositionend": - return vb && "ko" !== b.locale ? null : b.data; - default: - return null; - } - } - var Eb = { - eventTypes: xb, - extractEvents: function(a, b, c, d) { - var e = void 0; - var f = void 0; - if (sb) - b: { - switch (a) { - case "compositionstart": - e = xb.compositionStart; - break b; - case "compositionend": - e = xb.compositionEnd; - break b; - case "compositionupdate": - e = xb.compositionUpdate; - break b; + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_ASYNC_MODE_TYPE: + return "AsyncMode"; + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_PLACEHOLDER_TYPE: + return "Placeholder"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return "Context.Consumer"; + case REACT_PROVIDER_TYPE: + return "Context.Provider"; + case REACT_FORWARD_REF_TYPE: + var renderFn = type.render; + var functionName = + renderFn.displayName || renderFn.name || ""; + return ( + type.displayName || + (functionName !== "" + ? "ForwardRef(" + functionName + ")" + : "ForwardRef") + ); + } + if (typeof type.then === "function") { + var thenable = type; + var resolvedThenable = refineResolvedThenable(thenable); + if (resolvedThenable) { + return getComponentName(resolvedThenable); } - e = void 0; } - else - Bb - ? zb(a, c) && (e = xb.compositionEnd) - : "keydown" === a && - 229 === c.keyCode && - (e = xb.compositionStart); - e - ? (vb && - "ko" !== c.locale && - (Bb || e !== xb.compositionStart - ? e === xb.compositionEnd && Bb && (f = jb()) - : ((gb = d), - (hb = "value" in gb ? gb.value : gb.textContent), - (Bb = !0))), - (e = pb.getPooled(e, b, c, d)), - f ? (e.data = f) : ((f = Ab(c)), null !== f && (e.data = f)), - Ua(e), - (f = e)) - : (f = null); - (a = ub ? Cb(a, c) : Db(a, c)) - ? ((b = qb.getPooled(xb.beforeInput, b, c, d)), - (b.data = a), - Ua(b)) - : (b = null); - return null === f ? b : null === b ? f : [f, b]; - } - }, - Fb = null, - Gb = null, - Hb = null; - function Ib(a) { - if ((a = va(a))) { - "function" !== typeof Fb ? t("280") : void 0; - var b = ua(a.stateNode); - Fb(a.stateNode, a.type, b); - } - } - function Jb(a) { - Gb ? (Hb ? Hb.push(a) : (Hb = [a])) : (Gb = a); - } - function Kb() { - if (Gb) { - var a = Gb, - b = Hb; - Hb = Gb = null; - Ib(a); - if (b) for (a = 0; a < b.length; a++) Ib(b[a]); - } - } - function Lb(a, b) { - return a(b); - } - function Mb(a, b, c) { - return a(b, c); - } - function Nb() {} - var Ob = !1; - function Pb(a, b) { - if (Ob) return a(b); - Ob = !0; - try { - return Lb(a, b); - } finally { - if (((Ob = !1), null !== Gb || null !== Hb)) Nb(), Kb(); - } - } - var Qb = { - color: !0, - date: !0, - datetime: !0, - "datetime-local": !0, - email: !0, - month: !0, - number: !0, - password: !0, - range: !0, - search: !0, - tel: !0, - text: !0, - time: !0, - url: !0, - week: !0 - }; - function Rb(a) { - var b = a && a.nodeName && a.nodeName.toLowerCase(); - return "input" === b ? !!Qb[a.type] : "textarea" === b ? !0 : !1; - } - function Sb(a) { - a = a.target || a.srcElement || window; - a.correspondingUseElement && (a = a.correspondingUseElement); - return 3 === a.nodeType ? a.parentNode : a; - } - function Tb(a) { - if (!Va) return !1; - a = "on" + a; - var b = a in document; - b || - ((b = document.createElement("div")), - b.setAttribute(a, "return;"), - (b = "function" === typeof b[a])); - return b; - } - function Ub(a) { - var b = a.type; - return ( - (a = a.nodeName) && - "input" === a.toLowerCase() && - ("checkbox" === b || "radio" === b) - ); - } - function Vb(a) { - var b = Ub(a) ? "checked" : "value", - c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), - d = "" + a[b]; - if ( - !a.hasOwnProperty(b) && - "undefined" !== typeof c && - "function" === typeof c.get && - "function" === typeof c.set - ) { - var e = c.get, - f = c.set; - Object.defineProperty(a, b, { - configurable: !0, - get: function() { - return e.call(this); - }, - set: function(a) { - d = "" + a; - f.call(this, a); } - }); - Object.defineProperty(a, b, { enumerable: c.enumerable }); - return { - getValue: function() { - return d; - }, - setValue: function(a) { - d = "" + a; - }, - stopTracking: function() { - a._valueTracker = null; - delete a[b]; + return null; + } + + var ReactDebugCurrentFrame = {}; + + var currentlyValidatingElement = null; + + function setCurrentlyValidatingElement(element) { + { + currentlyValidatingElement = element; } + } + + { + // Stack implementation injected by the current renderer. + ReactDebugCurrentFrame.getCurrentStack = null; + + ReactDebugCurrentFrame.getStackAddendum = function() { + var stack = ""; + + // Add an extra top frame while an element is being validated + if (currentlyValidatingElement) { + var name = getComponentName(currentlyValidatingElement.type); + var owner = currentlyValidatingElement._owner; + stack += describeComponentFrame( + name, + currentlyValidatingElement._source, + owner && getComponentName(owner.type) + ); + } + + // Delegate to the injected renderer-specific implementation + var impl = ReactDebugCurrentFrame.getCurrentStack; + if (impl) { + stack += impl() || ""; + } + + return stack; + }; + } + + var ReactSharedInternals = { + ReactCurrentOwner: ReactCurrentOwner, + // Used by renderers to avoid bundling object-assign twice in UMD bundles: + assign: _assign }; - } - } - function Wb(a) { - a._valueTracker || (a._valueTracker = Vb(a)); - } - function Xb(a) { - if (!a) return !1; - var b = a._valueTracker; - if (!b) return !0; - var c = b.getValue(); - var d = ""; - a && (d = Ub(a) ? (a.checked ? "true" : "false") : a.value); - a = d; - return a !== c ? (b.setValue(a), !0) : !1; - } - var Yb = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - Zb = /^(.*)[\\\/]/, - C = "function" === typeof Symbol && Symbol.for, - $b = C ? Symbol.for("react.element") : 60103, - ac = C ? Symbol.for("react.portal") : 60106, - bc = C ? Symbol.for("react.fragment") : 60107, - cc = C ? Symbol.for("react.strict_mode") : 60108, - dc = C ? Symbol.for("react.profiler") : 60114, - ec = C ? Symbol.for("react.provider") : 60109, - fc = C ? Symbol.for("react.context") : 60110, - gc = C ? Symbol.for("react.async_mode") : 60111, - hc = C ? Symbol.for("react.forward_ref") : 60112, - ic = C ? Symbol.for("react.placeholder") : 60113, - jc = "function" === typeof Symbol && Symbol.iterator; - function kc(a) { - if (null === a || "object" !== typeof a) return null; - a = (jc && a[jc]) || a["@@iterator"]; - return "function" === typeof a ? a : null; - } - function lc(a) { - if (null == a) return null; - if ("function" === typeof a) return a.displayName || a.name || null; - if ("string" === typeof a) return a; - switch (a) { - case gc: - return "AsyncMode"; - case bc: - return "Fragment"; - case ac: - return "Portal"; - case dc: - return "Profiler"; - case cc: - return "StrictMode"; - case ic: - return "Placeholder"; - } - if ("object" === typeof a) { - switch (a.$$typeof) { - case fc: - return "Context.Consumer"; - case ec: - return "Context.Provider"; - case hc: - var b = a.render; - b = b.displayName || b.name || ""; - return ( - a.displayName || - ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef") + + { + _assign(ReactSharedInternals, { + // These should not be included in production. + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + // Shim for React DOM 16.0.0 which still destructured (but not used) this. + // TODO: remove in React 17.0. + ReactComponentTreeHook: {} + }); + } + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warning = warningWithoutStack$1; + + { + warning = function(condition, format) { + if (condition) { + return; + } + var ReactDebugCurrentFrame = + ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + // eslint-disable-next-line react-internal/warning-and-invariant-args + + for ( + var _len = arguments.length, + args = Array(_len > 2 ? _len - 2 : 0), + _key = 2; + _key < _len; + _key++ + ) { + args[_key - 2] = arguments[_key]; + } + + warningWithoutStack$1.apply( + undefined, + [false, format + "%s"].concat(args, [stack]) ); + }; } - if ( - "function" === typeof a.then && - (a = 1 === a._reactStatus ? a._reactResult : null) - ) - return lc(a); - } - return null; - } - function mc(a) { - var b = ""; - do { - a: switch (a.tag) { - case 4: - case 0: - case 1: - case 2: - case 3: - case 7: - case 10: - var c = a._debugOwner, - d = a._debugSource, - e = lc(a.type); - var f = null; - c && (f = lc(c.type)); - c = e; - e = ""; - d - ? (e = - " (at " + - d.fileName.replace(Zb, "") + - ":" + - d.lineNumber + - ")") - : f && (e = " (created by " + f + ")"); - f = "\n in " + (c || "Unknown") + e; - break a; - default: - f = ""; + + var warning$1 = warning; + + var hasOwnProperty = Object.prototype.hasOwnProperty; + + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + + var specialPropKeyWarningShown = void 0; + var specialPropRefWarningShown = void 0; + + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, "ref")) { + var getter = Object.getOwnPropertyDescriptor(config, "ref").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== undefined; } - b += f; - a = a.return; - } while (a); - return b; - } - var nc = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - pc = Object.prototype.hasOwnProperty, - qc = {}, - rc = {}; - function sc(a) { - if (pc.call(rc, a)) return !0; - if (pc.call(qc, a)) return !1; - if (nc.test(a)) return (rc[a] = !0); - qc[a] = !0; - return !1; - } - function tc(a, b, c, d) { - if (null !== c && 0 === c.type) return !1; - switch (typeof b) { - case "function": - case "symbol": - return !0; - case "boolean": - if (d) return !1; - if (null !== c) return !c.acceptsBooleans; - a = a.toLowerCase().slice(0, 5); - return "data-" !== a && "aria-" !== a; - default: - return !1; - } - } - function uc(a, b, c, d) { - if (null === b || "undefined" === typeof b || tc(a, b, c, d)) return !0; - if (d) return !1; - if (null !== c) - switch (c.type) { - case 3: - return !b; - case 4: - return !1 === b; - case 5: - return isNaN(b); - case 6: - return isNaN(b) || 1 > b; + + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, "key")) { + var getter = Object.getOwnPropertyDescriptor(config, "key").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== undefined; + } + + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function() { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + warningWithoutStack$1( + false, + "%s: `key` is not a prop. Trying to access it will result " + + "in `undefined` being returned. If you need to access the same " + + "value within the child component, you should pass it as a different " + + "prop. (https://fb.me/react-special-props)", + displayName + ); + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, "key", { + get: warnAboutAccessingKey, + configurable: true + }); } - return !1; - } - function D(a, b, c, d, e) { - this.acceptsBooleans = 2 === b || 3 === b || 4 === b; - this.attributeName = d; - this.attributeNamespace = e; - this.mustUseProperty = c; - this.propertyName = a; - this.type = b; - } - var E = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style" - .split(" ") - .forEach(function(a) { - E[a] = new D(a, 0, !1, a, null); - }); - [ - ["acceptCharset", "accept-charset"], - ["className", "class"], - ["htmlFor", "for"], - ["httpEquiv", "http-equiv"] - ].forEach(function(a) { - var b = a[0]; - E[b] = new D(b, 1, !1, a[1], null); - }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function( - a - ) { - E[a] = new D(a, 2, !1, a.toLowerCase(), null); - }); - [ - "autoReverse", - "externalResourcesRequired", - "focusable", - "preserveAlpha" - ].forEach(function(a) { - E[a] = new D(a, 2, !1, a, null); - }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope" - .split(" ") - .forEach(function(a) { - E[a] = new D(a, 3, !1, a.toLowerCase(), null); - }); - ["checked", "multiple", "muted", "selected"].forEach(function(a) { - E[a] = new D(a, 3, !0, a, null); - }); - ["capture", "download"].forEach(function(a) { - E[a] = new D(a, 4, !1, a, null); - }); - ["cols", "rows", "size", "span"].forEach(function(a) { - E[a] = new D(a, 6, !1, a, null); - }); - ["rowSpan", "start"].forEach(function(a) { - E[a] = new D(a, 5, !1, a.toLowerCase(), null); - }); - var vc = /[\-:]([a-z])/g; - function wc(a) { - return a[1].toUpperCase(); - } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height" - .split(" ") - .forEach(function(a) { - var b = a.replace(vc, wc); - E[b] = new D(b, 1, !1, a, null); - }); - "xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type" - .split(" ") - .forEach(function(a) { - var b = a.replace(vc, wc); - E[b] = new D(b, 1, !1, a, "http://www.w3.org/1999/xlink"); - }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a) { - var b = a.replace(vc, wc); - E[b] = new D(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); - }); - E.tabIndex = new D("tabIndex", 1, !1, "tabindex", null); - function xc(a, b, c, d) { - var e = E.hasOwnProperty(b) ? E[b] : null; - var f = - null !== e - ? 0 === e.type - : d - ? !1 - : !(2 < b.length) || - ("o" !== b[0] && "O" !== b[0]) || - ("n" !== b[1] && "N" !== b[1]) - ? !1 - : !0; - f || - (uc(b, c, e, d) && (c = null), - d || null === e - ? sc(b) && - (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) - : e.mustUseProperty - ? (a[e.propertyName] = null === c ? (3 === e.type ? !1 : "") : c) - : ((b = e.attributeName), - (d = e.attributeNamespace), - null === c - ? a.removeAttribute(b) - : ((e = e.type), - (c = 3 === e || (4 === e && !0 === c) ? "" : "" + c), - d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); - } - function yc(a) { - switch (typeof a) { - case "boolean": - case "number": - case "object": - case "string": - case "undefined": - return a; - default: - return ""; - } - } - function zc(a, b) { - var c = b.checked; - return n({}, b, { - defaultChecked: void 0, - defaultValue: void 0, - value: void 0, - checked: null != c ? c : a._wrapperState.initialChecked - }); - } - function Bc(a, b) { - var c = null == b.defaultValue ? "" : b.defaultValue, - d = null != b.checked ? b.checked : b.defaultChecked; - c = yc(null != b.value ? b.value : c); - a._wrapperState = { - initialChecked: d, - initialValue: c, - controlled: - "checkbox" === b.type || "radio" === b.type - ? null != b.checked - : null != b.value - }; - } - function Cc(a, b) { - b = b.checked; - null != b && xc(a, "checked", b, !1); - } - function Dc(a, b) { - Cc(a, b); - var c = yc(b.value), - d = b.type; - if (null != c) - if ("number" === d) { - if ((0 === c && "" === a.value) || a.value != c) a.value = "" + c; - } else a.value !== "" + c && (a.value = "" + c); - else if ("submit" === d || "reset" === d) { - a.removeAttribute("value"); - return; - } - b.hasOwnProperty("value") - ? Ec(a, b.type, c) - : b.hasOwnProperty("defaultValue") && - Ec(a, b.type, yc(b.defaultValue)); - null == b.checked && - null != b.defaultChecked && - (a.defaultChecked = !!b.defaultChecked); - } - function Fc(a, b, c) { - if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { - var d = b.type; - if ( - !( - ("submit" !== d && "reset" !== d) || - (void 0 !== b.value && null !== b.value) - ) - ) - return; - b = "" + a._wrapperState.initialValue; - c || b === a.value || (a.value = b); - a.defaultValue = b; - } - c = a.name; - "" !== c && (a.name = ""); - a.defaultChecked = !a.defaultChecked; - a.defaultChecked = !!a._wrapperState.initialChecked; - "" !== c && (a.name = c); - } - function Ec(a, b, c) { - if ("number" !== b || a.ownerDocument.activeElement !== a) - null == c - ? (a.defaultValue = "" + a._wrapperState.initialValue) - : a.defaultValue !== "" + c && (a.defaultValue = "" + c); - } - var Gc = { - change: { - phasedRegistrationNames: { - bubbled: "onChange", - captured: "onChangeCapture" - }, - dependencies: "blur change click focus input keydown keyup selectionchange".split( - " " - ) - } - }; - function Hc(a, b, c) { - a = z.getPooled(Gc.change, a, b, c); - a.type = "change"; - Jb(c); - Ua(a); - return a; - } - var Ic = null, - Jc = null; - function Kc(a) { - Ga(a, !1); - } - function Lc(a) { - var b = Ma(a); - if (Xb(b)) return a; - } - function Mc(a, b) { - if ("change" === a) return b; - } - var Nc = !1; - Va && - (Nc = - Tb("input") && (!document.documentMode || 9 < document.documentMode)); - function Oc() { - Ic && (Ic.detachEvent("onpropertychange", Pc), (Jc = Ic = null)); - } - function Pc(a) { - "value" === a.propertyName && - Lc(Jc) && - ((a = Hc(Jc, a, Sb(a))), Pb(Kc, a)); - } - function Qc(a, b, c) { - "focus" === a - ? (Oc(), (Ic = b), (Jc = c), Ic.attachEvent("onpropertychange", Pc)) - : "blur" === a && Oc(); - } - function Rc(a) { - if ("selectionchange" === a || "keyup" === a || "keydown" === a) - return Lc(Jc); - } - function Sc(a, b) { - if ("click" === a) return Lc(b); - } - function Tc(a, b) { - if ("input" === a || "change" === a) return Lc(b); - } - var Uc = { - eventTypes: Gc, - _isInputEventSupported: Nc, - extractEvents: function(a, b, c, d) { - var e = b ? Ma(b) : window, - f = void 0, - g = void 0, - h = e.nodeName && e.nodeName.toLowerCase(); - "select" === h || ("input" === h && "file" === e.type) - ? (f = Mc) - : Rb(e) - ? Nc - ? (f = Tc) - : ((f = Rc), (g = Qc)) - : (h = e.nodeName) && - "input" === h.toLowerCase() && - ("checkbox" === e.type || "radio" === e.type) && - (f = Sc); - if (f && (f = f(a, b))) return Hc(f, c, d); - g && g(a, e, b); - "blur" === a && - (a = e._wrapperState) && - a.controlled && - "number" === e.type && - Ec(e, "number", e.value); + + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function() { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + warningWithoutStack$1( + false, + "%s: `ref` is not a prop. Trying to access it will result " + + "in `undefined` being returned. If you need to access the same " + + "value within the child component, you should pass it as a different " + + "prop. (https://fb.me/react-special-props)", + displayName + ); + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, "ref", { + get: warnAboutAccessingRef, + configurable: true + }); } - }, - Vc = z.extend({ view: null, detail: null }), - Wc = { - Alt: "altKey", - Control: "ctrlKey", - Meta: "metaKey", - Shift: "shiftKey" - }; - function Xc(a) { - var b = this.nativeEvent; - return b.getModifierState - ? b.getModifierState(a) - : (a = Wc[a]) - ? !!b[a] - : !1; - } - function Yc() { - return Xc; - } - var Zc = 0, - $c = 0, - ad = !1, - bd = !1, - cd = Vc.extend({ - screenX: null, - screenY: null, - clientX: null, - clientY: null, - pageX: null, - pageY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: Yc, - button: null, - buttons: null, - relatedTarget: function(a) { - return ( - a.relatedTarget || - (a.fromElement === a.srcElement ? a.toElement : a.fromElement) + + /** + * Factory method to create a new React element. This no longer adheres to + * the class pattern, so do not use new to call it. Also, no instanceof check + * will work. Instead test $$typeof field against Symbol.for('react.element') to check + * if something is a React Element. + * + * @param {*} type + * @param {*} key + * @param {string|object} ref + * @param {*} self A *temporary* helper to detect places where `this` is + * different from the `owner` when React.createElement is called, so that we + * can warn. We want to get rid of owner and replace string `ref`s with arrow + * functions, and as long as `this` and owner are the same, there will be no + * change in behavior. + * @param {*} source An annotation object (added by a transpiler or otherwise) + * indicating filename, line number, and/or other information. + * @param {*} owner + * @param {*} props + * @internal + */ + var ReactElement = function( + type, + key, + ref, + self, + source, + owner, + props + ) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + + // Built-in properties that belong on the element + type: type, + key: key, + ref: ref, + props: props, + + // Record the component responsible for creating this element. + _owner: owner + }; + + { + // The validation flag is currently mutative. We put it on + // an external backing store so that we can freeze the whole object. + // This can be replaced with a WeakMap once they are implemented in + // commonly used development environments. + element._store = {}; + + // To make comparing ReactElements easier for testing purposes, we make + // the validation flag non-enumerable (where possible, which should + // include every environment we run tests in), so the test framework + // ignores it. + Object.defineProperty(element._store, "validated", { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + // self and source are DEV only properties. + Object.defineProperty(element, "_self", { + configurable: false, + enumerable: false, + writable: false, + value: self + }); + // Two elements created in two different places should be considered + // equal for testing purposes and therefore we hide it from enumeration. + Object.defineProperty(element, "_source", { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + + return element; + }; + + /** + * Create and return a new ReactElement of the given type. + * See https://reactjs.org/docs/react-api.html#createelement + */ + function createElement(type, config, children) { + var propName = void 0; + + // Reserved names are extracted + var props = {}; + + var key = null; + var ref = null; + var self = null; + var source = null; + + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + } + if (hasValidKey(config)) { + key = "" + config.key; + } + + self = config.__self === undefined ? null : config.__self; + source = config.__source === undefined ? null : config.__source; + // Remaining properties are added to a new props object + for (propName in config) { + if ( + hasOwnProperty.call(config, propName) && + !RESERVED_PROPS.hasOwnProperty(propName) + ) { + props[propName] = config[propName]; + } + } + } + + // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + props.children = childArray; + } + + // Resolve default props + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + for (propName in defaultProps) { + if (props[propName] === undefined) { + props[propName] = defaultProps[propName]; + } + } + } + { + if (key || ref) { + var displayName = + typeof type === "function" + ? type.displayName || type.name || "Unknown" + : type; + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + return ReactElement( + type, + key, + ref, + self, + source, + ReactCurrentOwner.current, + props ); - }, - movementX: function(a) { - if ("movementX" in a) return a.movementX; - var b = Zc; - Zc = a.screenX; - return ad - ? "mousemove" === a.type - ? a.screenX - b - : 0 - : ((ad = !0), 0); - }, - movementY: function(a) { - if ("movementY" in a) return a.movementY; - var b = $c; - $c = a.screenY; - return bd - ? "mousemove" === a.type - ? a.screenY - b - : 0 - : ((bd = !0), 0); } - }), - dd = cd.extend({ - pointerId: null, - width: null, - height: null, - pressure: null, - tangentialPressure: null, - tiltX: null, - tiltY: null, - twist: null, - pointerType: null, - isPrimary: null - }), - ed = { - mouseEnter: { - registrationName: "onMouseEnter", - dependencies: ["mouseout", "mouseover"] - }, - mouseLeave: { - registrationName: "onMouseLeave", - dependencies: ["mouseout", "mouseover"] - }, - pointerEnter: { - registrationName: "onPointerEnter", - dependencies: ["pointerout", "pointerover"] - }, - pointerLeave: { - registrationName: "onPointerLeave", - dependencies: ["pointerout", "pointerover"] + + /** + * Return a function that produces ReactElements of a given type. + * See https://reactjs.org/docs/react-api.html#createfactory + */ + + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement( + oldElement.type, + newKey, + oldElement.ref, + oldElement._self, + oldElement._source, + oldElement._owner, + oldElement.props + ); + + return newElement; } - }, - fd = { - eventTypes: ed, - extractEvents: function(a, b, c, d) { - var e = "mouseover" === a || "pointerover" === a, - f = "mouseout" === a || "pointerout" === a; - if ((e && (c.relatedTarget || c.fromElement)) || (!f && !e)) - return null; - e = - d.window === d - ? d - : (e = d.ownerDocument) - ? e.defaultView || e.parentWindow - : window; - f - ? ((f = b), - (b = (b = c.relatedTarget || c.toElement) ? Ka(b) : null)) - : (f = null); - if (f === b) return null; - var g = void 0, - h = void 0, - k = void 0, - l = void 0; - if ("mouseout" === a || "mouseover" === a) - (g = cd), (h = ed.mouseLeave), (k = ed.mouseEnter), (l = "mouse"); - else if ("pointerout" === a || "pointerover" === a) - (g = dd), - (h = ed.pointerLeave), - (k = ed.pointerEnter), - (l = "pointer"); - var m = null == f ? e : Ma(f); - e = null == b ? e : Ma(b); - a = g.getPooled(h, f, c, d); - a.type = l + "leave"; - a.target = m; - a.relatedTarget = e; - c = g.getPooled(k, b, c, d); - c.type = l + "enter"; - c.target = e; - c.relatedTarget = m; - d = b; - if (f && d) - a: { - b = f; - e = d; - l = 0; - for (g = b; g; g = Oa(g)) l++; - g = 0; - for (k = e; k; k = Oa(k)) g++; - for (; 0 < l - g; ) (b = Oa(b)), l--; - for (; 0 < g - l; ) (e = Oa(e)), g--; - for (; l--; ) { - if (b === e || b === e.alternate) break a; - b = Oa(b); - e = Oa(e); + + /** + * Clone and return a new ReactElement using element as the starting point. + * See https://reactjs.org/docs/react-api.html#cloneelement + */ + function cloneElement(element, config, children) { + !!(element === null || element === undefined) + ? invariant( + false, + "React.cloneElement(...): The argument must be a React element, but you passed %s.", + element + ) + : void 0; + + var propName = void 0; + + // Original props are copied + var props = _assign({}, element.props); + + // Reserved names are extracted + var key = element.key; + var ref = element.ref; + // Self is preserved since the owner is preserved. + var self = element._self; + // Source is preserved since cloneElement is unlikely to be targeted by a + // transpiler, and the original source is probably a better indicator of the + // true owner. + var source = element._source; + + // Owner will be preserved, unless ref is overridden + var owner = element._owner; + + if (config != null) { + if (hasValidRef(config)) { + // Silently steal the ref from the parent. + ref = config.ref; + owner = ReactCurrentOwner.current; + } + if (hasValidKey(config)) { + key = "" + config.key; + } + + // Remaining properties override existing props + var defaultProps = void 0; + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + for (propName in config) { + if ( + hasOwnProperty.call(config, propName) && + !RESERVED_PROPS.hasOwnProperty(propName) + ) { + if ( + config[propName] === undefined && + defaultProps !== undefined + ) { + // Resolve default props + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } } - b = null; } - else b = null; - e = b; - for (b = []; f && f !== e; ) { - l = f.alternate; - if (null !== l && l === e) break; - b.push(f); - f = Oa(f); } - for (f = []; d && d !== e; ) { - l = d.alternate; - if (null !== l && l === e) break; - f.push(d); - d = Oa(d); + + // Children can be more than one argument, and those are transferred onto + // the newly allocated props object. + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + props.children = childArray; } - for (d = 0; d < b.length; d++) Ra(b[d], "bubbled", a); - for (d = f.length; 0 < d--; ) Ra(f[d], "captured", c); - return [a, c]; + + return ReactElement( + element.type, + key, + ref, + self, + source, + owner, + props + ); } - }, - gd = Object.prototype.hasOwnProperty; - function hd(a, b) { - return a === b - ? 0 !== a || 0 !== b || 1 / a === 1 / b - : a !== a && b !== b; - } - function id(a, b) { - if (hd(a, b)) return !0; - if ( - "object" !== typeof a || - null === a || - "object" !== typeof b || - null === b - ) - return !1; - var c = Object.keys(a), - d = Object.keys(b); - if (c.length !== d.length) return !1; - for (d = 0; d < c.length; d++) - if (!gd.call(b, c[d]) || !hd(a[c[d]], b[c[d]])) return !1; - return !0; - } - function jd(a) { - var b = a; - if (a.alternate) for (; b.return; ) b = b.return; - else { - if (0 !== (b.effectTag & 2)) return 1; - for (; b.return; ) - if (((b = b.return), 0 !== (b.effectTag & 2))) return 1; - } - return 5 === b.tag ? 2 : 3; - } - function kd(a) { - 2 !== jd(a) ? t("188") : void 0; - } - function ld(a) { - var b = a.alternate; - if (!b) - return (b = jd(a)), 3 === b ? t("188") : void 0, 1 === b ? null : a; - for (var c = a, d = b; ; ) { - var e = c.return, - f = e ? e.alternate : null; - if (!e || !f) break; - if (e.child === f.child) { - for (var g = e.child; g; ) { - if (g === c) return kd(e), a; - if (g === d) return kd(e), b; - g = g.sibling; + + /** + * Verifies the object is a ReactElement. + * See https://reactjs.org/docs/react-api.html#isvalidelement + * @param {?object} object + * @return {boolean} True if `object` is a ReactElement. + * @final + */ + function isValidElement(object) { + return ( + typeof object === "object" && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE + ); + } + + var SEPARATOR = "."; + var SUBSEPARATOR = ":"; + + /** + * Escape and wrap key so it is safe to use as a reactid + * + * @param {string} key to be escaped. + * @return {string} the escaped key. + */ + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + "=": "=0", + ":": "=2" + }; + var escapedString = ("" + key).replace(escapeRegex, function( + match + ) { + return escaperLookup[match]; + }); + + return "$" + escapedString; + } + + /** + * TODO: Test that a single child and an array with one item have the same key + * pattern. + */ + + var didWarnAboutMaps = false; + + var userProvidedKeyEscapeRegex = /\/+/g; + function escapeUserProvidedKey(text) { + return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/"); + } + + var POOL_SIZE = 10; + var traverseContextPool = []; + function getPooledTraverseContext( + mapResult, + keyPrefix, + mapFunction, + mapContext + ) { + if (traverseContextPool.length) { + var traverseContext = traverseContextPool.pop(); + traverseContext.result = mapResult; + traverseContext.keyPrefix = keyPrefix; + traverseContext.func = mapFunction; + traverseContext.context = mapContext; + traverseContext.count = 0; + return traverseContext; + } else { + return { + result: mapResult, + keyPrefix: keyPrefix, + func: mapFunction, + context: mapContext, + count: 0 + }; } - t("188"); } - if (c.return !== d.return) (c = e), (d = f); - else { - g = !1; - for (var h = e.child; h; ) { - if (h === c) { - g = !0; - c = e; - d = f; - break; - } - if (h === d) { - g = !0; - d = e; - c = f; - break; - } - h = h.sibling; + + function releaseTraverseContext(traverseContext) { + traverseContext.result = null; + traverseContext.keyPrefix = null; + traverseContext.func = null; + traverseContext.context = null; + traverseContext.count = 0; + if (traverseContextPool.length < POOL_SIZE) { + traverseContextPool.push(traverseContext); } - if (!g) { - for (h = f.child; h; ) { - if (h === c) { - g = !0; - c = f; - d = e; + } + + /** + * @param {?*} children Children tree container. + * @param {!string} nameSoFar Name of the key path so far. + * @param {!function} callback Callback to invoke with each child found. + * @param {?*} traverseContext Used to pass information throughout the traversal + * process. + * @return {!number} The number of children in this subtree. + */ + function traverseAllChildrenImpl( + children, + nameSoFar, + callback, + traverseContext + ) { + var type = typeof children; + + if (type === "undefined" || type === "boolean") { + // All of the above are perceived as null. + children = null; + } + + var invokeCallback = false; + + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case "string": + case "number": + invokeCallback = true; break; + case "object": + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + } + } + + if (invokeCallback) { + callback( + traverseContext, + children, + // If it's the only child, treat the name as if it was wrapped in an array + // so that it's consistent if the number of children grows. + nameSoFar === "" + ? SEPARATOR + getComponentKey(children, 0) + : nameSoFar + ); + return 1; + } + + var child = void 0; + var nextName = void 0; + var subtreeCount = 0; // Count of children found in the current subtree. + var nextNamePrefix = + nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; + + if (Array.isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getComponentKey(child, i); + subtreeCount += traverseAllChildrenImpl( + child, + nextName, + callback, + traverseContext + ); + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + { + // Warn about using Maps as children + if (iteratorFn === children.entries) { + !didWarnAboutMaps + ? warning$1( + false, + "Using Maps as children is unsupported and will likely yield " + + "unexpected results. Convert it to a sequence/iterable of keyed " + + "ReactElements instead." + ) + : void 0; + didWarnAboutMaps = true; + } } - if (h === d) { - g = !0; - d = f; - c = e; - break; + + var iterator = iteratorFn.call(children); + var step = void 0; + var ii = 0; + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getComponentKey(child, ii++); + subtreeCount += traverseAllChildrenImpl( + child, + nextName, + callback, + traverseContext + ); } - h = h.sibling; + } else if (type === "object") { + var addendum = ""; + { + addendum = + " If you meant to render a collection of children, use an array " + + "instead." + + ReactDebugCurrentFrame.getStackAddendum(); + } + var childrenString = "" + children; + invariant( + false, + "Objects are not valid as a React child (found: %s).%s", + childrenString === "[object Object]" + ? "object with keys {" + + Object.keys(children).join(", ") + + "}" + : childrenString, + addendum + ); } - g ? void 0 : t("189"); } + + return subtreeCount; } - c.alternate !== d ? t("190") : void 0; - } - 5 !== c.tag ? t("188") : void 0; - return c.stateNode.current === c ? a : b; - } - function md(a) { - a = ld(a); - if (!a) return null; - for (var b = a; ; ) { - if (7 === b.tag || 8 === b.tag) return b; - if (b.child) (b.child.return = b), (b = b.child); - else { - if (b === a) break; - for (; !b.sibling; ) { - if (!b.return || b.return === a) return null; - b = b.return; + + /** + * Traverses children that are typically specified as `props.children`, but + * might also be specified through attributes: + * + * - `traverseAllChildren(this.props.children, ...)` + * - `traverseAllChildren(this.props.leftPanelChildren, ...)` + * + * The `traverseContext` is an optional argument that is passed through the + * entire traversal. It can be used to store accumulations or anything else that + * the callback might find relevant. + * + * @param {?*} children Children tree object. + * @param {!function} callback To invoke upon traversing each child. + * @param {?*} traverseContext Context for traversal. + * @return {!number} The number of children in this subtree. + */ + function traverseAllChildren(children, callback, traverseContext) { + if (children == null) { + return 0; } - b.sibling.return = b.return; - b = b.sibling; + + return traverseAllChildrenImpl( + children, + "", + callback, + traverseContext + ); } - } - return null; - } - var nd = z.extend({ - animationName: null, - elapsedTime: null, - pseudoElement: null - }), - od = z.extend({ - clipboardData: function(a) { - return "clipboardData" in a - ? a.clipboardData - : window.clipboardData; + + /** + * Generate a key string that identifies a component within a set. + * + * @param {*} component A component that could contain a manual key. + * @param {number} index Index that is used if a manual key is not provided. + * @return {string} + */ + function getComponentKey(component, index) { + // Do some typechecking here since we call this blindly. We want to ensure + // that we don't block potential future ES APIs. + if ( + typeof component === "object" && + component !== null && + component.key != null + ) { + // Explicit key + return escape(component.key); + } + // Implicit key determined by the index in the set + return index.toString(36); } - }), - pd = Vc.extend({ relatedTarget: null }); - function qd(a) { - var b = a.keyCode; - "charCode" in a - ? ((a = a.charCode), 0 === a && 13 === b && (a = 13)) - : (a = b); - 10 === a && (a = 13); - return 32 <= a || 13 === a ? a : 0; - } - var rd = { - Esc: "Escape", - Spacebar: " ", - Left: "ArrowLeft", - Up: "ArrowUp", - Right: "ArrowRight", - Down: "ArrowDown", - Del: "Delete", - Win: "OS", - Menu: "ContextMenu", - Apps: "ContextMenu", - Scroll: "ScrollLock", - MozPrintableKey: "Unidentified" - }, - sd = { - 8: "Backspace", - 9: "Tab", - 12: "Clear", - 13: "Enter", - 16: "Shift", - 17: "Control", - 18: "Alt", - 19: "Pause", - 20: "CapsLock", - 27: "Escape", - 32: " ", - 33: "PageUp", - 34: "PageDown", - 35: "End", - 36: "Home", - 37: "ArrowLeft", - 38: "ArrowUp", - 39: "ArrowRight", - 40: "ArrowDown", - 45: "Insert", - 46: "Delete", - 112: "F1", - 113: "F2", - 114: "F3", - 115: "F4", - 116: "F5", - 117: "F6", - 118: "F7", - 119: "F8", - 120: "F9", - 121: "F10", - 122: "F11", - 123: "F12", - 144: "NumLock", - 145: "ScrollLock", - 224: "Meta" - }, - td = Vc.extend({ - key: function(a) { - if (a.key) { - var b = rd[a.key] || a.key; - if ("Unidentified" !== b) return b; + + function forEachSingleChild(bookKeeping, child, name) { + var func = bookKeeping.func, + context = bookKeeping.context; + + func.call(context, child, bookKeeping.count++); + } + + /** + * Iterates through children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenforeach + * + * The provided forEachFunc(child, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} forEachFunc + * @param {*} forEachContext Context for forEachContext. + */ + function forEachChildren(children, forEachFunc, forEachContext) { + if (children == null) { + return children; + } + var traverseContext = getPooledTraverseContext( + null, + null, + forEachFunc, + forEachContext + ); + traverseAllChildren(children, forEachSingleChild, traverseContext); + releaseTraverseContext(traverseContext); + } + + function mapSingleChildIntoContext(bookKeeping, child, childKey) { + var result = bookKeeping.result, + keyPrefix = bookKeeping.keyPrefix, + func = bookKeeping.func, + context = bookKeeping.context; + + var mappedChild = func.call(context, child, bookKeeping.count++); + if (Array.isArray(mappedChild)) { + mapIntoWithKeyPrefixInternal( + mappedChild, + result, + childKey, + function(c) { + return c; + } + ); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + mappedChild = cloneAndReplaceKey( + mappedChild, + // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + keyPrefix + + (mappedChild.key && + (!child || child.key !== mappedChild.key) + ? escapeUserProvidedKey(mappedChild.key) + "/" + : "") + + childKey + ); + } + result.push(mappedChild); } - return "keypress" === a.type - ? ((a = qd(a)), 13 === a ? "Enter" : String.fromCharCode(a)) - : "keydown" === a.type || "keyup" === a.type - ? sd[a.keyCode] || "Unidentified" - : ""; - }, - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: Yc, - charCode: function(a) { - return "keypress" === a.type ? qd(a) : 0; - }, - keyCode: function(a) { - return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; - }, - which: function(a) { - return "keypress" === a.type - ? qd(a) - : "keydown" === a.type || "keyup" === a.type - ? a.keyCode - : 0; } - }), - ud = cd.extend({ dataTransfer: null }), - vd = Vc.extend({ - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: Yc - }), - wd = z.extend({ - propertyName: null, - elapsedTime: null, - pseudoElement: null - }), - xd = cd.extend({ - deltaX: function(a) { - return "deltaX" in a - ? a.deltaX - : "wheelDeltaX" in a - ? -a.wheelDeltaX - : 0; - }, - deltaY: function(a) { - return "deltaY" in a - ? a.deltaY - : "wheelDeltaY" in a - ? -a.wheelDeltaY - : "wheelDelta" in a - ? -a.wheelDelta - : 0; - }, - deltaZ: null, - deltaMode: null - }), - yd = [ - ["abort", "abort"], - [bb, "animationEnd"], - [cb, "animationIteration"], - [db, "animationStart"], - ["canplay", "canPlay"], - ["canplaythrough", "canPlayThrough"], - ["drag", "drag"], - ["dragenter", "dragEnter"], - ["dragexit", "dragExit"], - ["dragleave", "dragLeave"], - ["dragover", "dragOver"], - ["durationchange", "durationChange"], - ["emptied", "emptied"], - ["encrypted", "encrypted"], - ["ended", "ended"], - ["error", "error"], - ["gotpointercapture", "gotPointerCapture"], - ["load", "load"], - ["loadeddata", "loadedData"], - ["loadedmetadata", "loadedMetadata"], - ["loadstart", "loadStart"], - ["lostpointercapture", "lostPointerCapture"], - ["mousemove", "mouseMove"], - ["mouseout", "mouseOut"], - ["mouseover", "mouseOver"], - ["playing", "playing"], - ["pointermove", "pointerMove"], - ["pointerout", "pointerOut"], - ["pointerover", "pointerOver"], - ["progress", "progress"], - ["scroll", "scroll"], - ["seeking", "seeking"], - ["stalled", "stalled"], - ["suspend", "suspend"], - ["timeupdate", "timeUpdate"], - ["toggle", "toggle"], - ["touchmove", "touchMove"], - [eb, "transitionEnd"], - ["waiting", "waiting"], - ["wheel", "wheel"] - ], - zd = {}, - Ad = {}; - function Bd(a, b) { - var c = a[0]; - a = a[1]; - var d = "on" + (a[0].toUpperCase() + a.slice(1)); - b = { - phasedRegistrationNames: { bubbled: d, captured: d + "Capture" }, - dependencies: [c], - isInteractive: b - }; - zd[a] = b; - Ad[c] = b; - } - [ - ["blur", "blur"], - ["cancel", "cancel"], - ["click", "click"], - ["close", "close"], - ["contextmenu", "contextMenu"], - ["copy", "copy"], - ["cut", "cut"], - ["auxclick", "auxClick"], - ["dblclick", "doubleClick"], - ["dragend", "dragEnd"], - ["dragstart", "dragStart"], - ["drop", "drop"], - ["focus", "focus"], - ["input", "input"], - ["invalid", "invalid"], - ["keydown", "keyDown"], - ["keypress", "keyPress"], - ["keyup", "keyUp"], - ["mousedown", "mouseDown"], - ["mouseup", "mouseUp"], - ["paste", "paste"], - ["pause", "pause"], - ["play", "play"], - ["pointercancel", "pointerCancel"], - ["pointerdown", "pointerDown"], - ["pointerup", "pointerUp"], - ["ratechange", "rateChange"], - ["reset", "reset"], - ["seeked", "seeked"], - ["submit", "submit"], - ["touchcancel", "touchCancel"], - ["touchend", "touchEnd"], - ["touchstart", "touchStart"], - ["volumechange", "volumeChange"] - ].forEach(function(a) { - Bd(a, !0); - }); - yd.forEach(function(a) { - Bd(a, !1); - }); - var Cd = { - eventTypes: zd, - isInteractiveTopLevelEventType: function(a) { - a = Ad[a]; - return void 0 !== a && !0 === a.isInteractive; - }, - extractEvents: function(a, b, c, d) { - var e = Ad[a]; - if (!e) return null; - switch (a) { - case "keypress": - if (0 === qd(c)) return null; - case "keydown": - case "keyup": - a = td; - break; - case "blur": - case "focus": - a = pd; - break; - case "click": - if (2 === c.button) return null; - case "auxclick": - case "dblclick": - case "mousedown": - case "mousemove": - case "mouseup": - case "mouseout": - case "mouseover": - case "contextmenu": - a = cd; - break; - case "drag": - case "dragend": - case "dragenter": - case "dragexit": - case "dragleave": - case "dragover": - case "dragstart": - case "drop": - a = ud; - break; - case "touchcancel": - case "touchend": - case "touchmove": - case "touchstart": - a = vd; - break; - case bb: - case cb: - case db: - a = nd; - break; - case eb: - a = wd; - break; - case "scroll": - a = Vc; - break; - case "wheel": - a = xd; - break; - case "copy": - case "cut": - case "paste": - a = od; - break; - case "gotpointercapture": - case "lostpointercapture": - case "pointercancel": - case "pointerdown": - case "pointermove": - case "pointerout": - case "pointerover": - case "pointerup": - a = dd; - break; - default: - a = z; + + function mapIntoWithKeyPrefixInternal( + children, + array, + prefix, + func, + context + ) { + var escapedPrefix = ""; + if (prefix != null) { + escapedPrefix = escapeUserProvidedKey(prefix) + "/"; } - b = a.getPooled(e, b, c, d); - Ua(b); - return b; + var traverseContext = getPooledTraverseContext( + array, + escapedPrefix, + func, + context + ); + traverseAllChildren( + children, + mapSingleChildIntoContext, + traverseContext + ); + releaseTraverseContext(traverseContext); } - }, - Dd = Cd.isInteractiveTopLevelEventType, - Ed = []; - function Fd(a) { - var b = a.targetInst, - c = b; - do { - if (!c) { - a.ancestors.push(c); - break; + + /** + * Maps children that are typically specified as `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenmap + * + * The provided mapFunction(child, key, index) will be called for each + * leaf child. + * + * @param {?*} children Children tree container. + * @param {function(*, int)} func The map function. + * @param {*} context Context for mapFunction. + * @return {object} Object containing the ordered map of results. + */ + function mapChildren(children, func, context) { + if (children == null) { + return children; + } + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, func, context); + return result; } - var d; - for (d = c; d.return; ) d = d.return; - d = 5 !== d.tag ? null : d.stateNode.containerInfo; - if (!d) break; - a.ancestors.push(c); - c = Ka(d); - } while (c); - for (c = 0; c < a.ancestors.length; c++) { - b = a.ancestors[c]; - var e = Sb(a.nativeEvent); - d = a.topLevelType; - for (var f = a.nativeEvent, g = null, h = 0; h < pa.length; h++) { - var k = pa[h]; - k && (k = k.extractEvents(d, b, f, e)) && (g = ya(g, k)); + + /** + * Count the number of children that are typically specified as + * `props.children`. + * + * See https://reactjs.org/docs/react-api.html#reactchildrencount + * + * @param {?*} children Children tree container. + * @return {number} The number of children. + */ + function countChildren(children) { + return traverseAllChildren( + children, + function() { + return null; + }, + null + ); } - Ga(g, !1); - } - } - var Gd = !0; - function F(a, b) { - if (!b) return null; - var c = (Dd(a) ? Hd : Id).bind(null, a); - b.addEventListener(a, c, !1); - } - function Jd(a, b) { - if (!b) return null; - var c = (Dd(a) ? Hd : Id).bind(null, a); - b.addEventListener(a, c, !0); - } - function Hd(a, b) { - Mb(Id, a, b); - } - function Id(a, b) { - if (Gd) { - var c = Sb(b); - c = Ka(c); - null === c || "number" !== typeof c.tag || 2 === jd(c) || (c = null); - if (Ed.length) { - var d = Ed.pop(); - d.topLevelType = a; - d.nativeEvent = b; - d.targetInst = c; - a = d; - } else - a = { - topLevelType: a, - nativeEvent: b, - targetInst: c, - ancestors: [] + + /** + * Flatten a children object (typically specified as `props.children`) and + * return an array with appropriately re-keyed children. + * + * See https://reactjs.org/docs/react-api.html#reactchildrentoarray + */ + function toArray(children) { + var result = []; + mapIntoWithKeyPrefixInternal(children, result, null, function( + child + ) { + return child; + }); + return result; + } + + /** + * Returns the first child in a collection of children and verifies that there + * is only one child in the collection. + * + * See https://reactjs.org/docs/react-api.html#reactchildrenonly + * + * The current implementation of this function assumes that a single child gets + * passed without a wrapper, but the purpose of this helper function is to + * abstract away the particular structure of children. + * + * @param {?object} children Child collection structure. + * @return {ReactElement} The first and only `ReactElement` contained in the + * structure. + */ + function onlyChild(children) { + !isValidElement(children) + ? invariant( + false, + "React.Children.only expected to receive a single React element child." + ) + : void 0; + return children; + } + + function readContext(context, observedBits) { + var dispatcher = ReactCurrentOwner.currentDispatcher; + !(dispatcher !== null) + ? invariant( + false, + "Context.unstable_read(): Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps." + ) + : void 0; + return dispatcher.readContext(context, observedBits); + } + + function createContext(defaultValue, calculateChangedBits) { + if (calculateChangedBits === undefined) { + calculateChangedBits = null; + } else { + { + !( + calculateChangedBits === null || + typeof calculateChangedBits === "function" + ) + ? warningWithoutStack$1( + false, + "createContext: Expected the optional second argument to be a " + + "function. Instead received: %s", + calculateChangedBits + ) + : void 0; + } + } + + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _calculateChangedBits: calculateChangedBits, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: defaultValue, + _currentValue2: defaultValue, + // These are circular + Provider: null, + Consumer: null, + unstable_read: null }; - try { - Pb(Fd, a); - } finally { - (a.topLevelType = null), - (a.nativeEvent = null), - (a.targetInst = null), - (a.ancestors.length = 0), - 10 > Ed.length && Ed.push(a); + + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + context.Consumer = context; + context.unstable_read = readContext.bind(null, context); + + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + + return context; } - } - } - var Kd = {}, - Ld = 0, - Md = "_reactListenersID" + ("" + Math.random()).slice(2); - function Nd(a) { - Object.prototype.hasOwnProperty.call(a, Md) || - ((a[Md] = Ld++), (Kd[a[Md]] = {})); - return Kd[a[Md]]; - } - function Od(a) { - a = a || ("undefined" !== typeof document ? document : void 0); - if ("undefined" === typeof a) return null; - try { - return a.activeElement || a.body; - } catch (b) { - return a.body; - } - } - function Qd(a) { - for (; a && a.firstChild; ) a = a.firstChild; - return a; - } - function Rd(a, b) { - var c = Qd(a); - a = 0; - for (var d; c; ) { - if (3 === c.nodeType) { - d = a + c.textContent.length; - if (a <= b && d >= b) return { node: c, offset: b - a }; - a = d; + + function lazy(ctor) { + var thenable = null; + return { + then: function(resolve, reject) { + if (thenable === null) { + // Lazily create thenable by wrapping in an extra thenable. + thenable = ctor(); + ctor = null; + } + return thenable.then(resolve, reject); + }, + + // React uses these fields to store the result. + _reactStatus: -1, + _reactResult: null + }; } - a: { - for (; c; ) { - if (c.nextSibling) { - c = c.nextSibling; - break a; + + function forwardRef(render) { + { + if (typeof render !== "function") { + warningWithoutStack$1( + false, + "forwardRef requires a render function but was given %s.", + render === null ? "null" : typeof render + ); + } else { + !// Do not warn for 0 arguments because it could be due to usage of the 'arguments' object + (render.length === 0 || render.length === 2) + ? warningWithoutStack$1( + false, + "forwardRef render functions accept exactly two parameters: props and ref. %s", + render.length === 1 + ? "Did you forget to use the ref parameter?" + : "Any additional parameter will be undefined." + ) + : void 0; + } + + if (render != null) { + !(render.defaultProps == null && render.propTypes == null) + ? warningWithoutStack$1( + false, + "forwardRef render functions do not support propTypes or defaultProps. " + + "Did you accidentally pass a React component?" + ) + : void 0; } - c = c.parentNode; } - c = void 0; + + return { + $$typeof: REACT_FORWARD_REF_TYPE, + render: render + }; } - c = Qd(c); - } - } - function Sd(a, b) { - return a && b - ? a === b - ? !0 - : a && 3 === a.nodeType - ? !1 - : b && 3 === b.nodeType - ? Sd(a, b.parentNode) - : "contains" in a - ? a.contains(b) - : a.compareDocumentPosition - ? !!(a.compareDocumentPosition(b) & 16) - : !1 - : !1; - } - function Td() { - for (var a = window, b = Od(); b instanceof a.HTMLIFrameElement; ) { - try { - a = b.contentDocument.defaultView; - } catch (c) { - break; + + function isValidElementType(type) { + return ( + typeof type === "string" || + typeof type === "function" || + // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || + type === REACT_ASYNC_MODE_TYPE || + type === REACT_PROFILER_TYPE || + type === REACT_STRICT_MODE_TYPE || + type === REACT_PLACEHOLDER_TYPE || + (typeof type === "object" && + type !== null && + (typeof type.then === "function" || + type.$$typeof === REACT_PROVIDER_TYPE || + type.$$typeof === REACT_CONTEXT_TYPE || + type.$$typeof === REACT_FORWARD_REF_TYPE)) + ); } - b = Od(a.document); - } - return b; - } - function Ud(a) { - var b = a && a.nodeName && a.nodeName.toLowerCase(); - return ( - b && - (("input" === b && - ("text" === a.type || - "search" === a.type || - "tel" === a.type || - "url" === a.type || - "password" === a.type)) || - "textarea" === b || - "true" === a.contentEditable) - ); - } - var Vd = Va && "documentMode" in document && 11 >= document.documentMode, - Wd = { - select: { - phasedRegistrationNames: { - bubbled: "onSelect", - captured: "onSelectCapture" - }, - dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split( - " " - ) + + /** + * ReactElementValidator provides a wrapper around a element factory + * which validates the props passed to the element. This is intended to be + * used only in DEV and could be replaced by a static type checker for languages + * that support it. + */ + + var propTypesMisspellWarningShown = void 0; + + { + propTypesMisspellWarningShown = false; } - }, - Xd = null, - Yd = null, - Zd = null, - $d = !1; - function ae(a, b) { - var c = - b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument; - if ($d || null == Xd || Xd !== Od(c)) return null; - c = Xd; - "selectionStart" in c && Ud(c) - ? (c = { start: c.selectionStart, end: c.selectionEnd }) - : ((c = ( - (c.ownerDocument && c.ownerDocument.defaultView) || - window - ).getSelection()), - (c = { - anchorNode: c.anchorNode, - anchorOffset: c.anchorOffset, - focusNode: c.focusNode, - focusOffset: c.focusOffset - })); - return Zd && id(Zd, c) - ? null - : ((Zd = c), - (a = z.getPooled(Wd.select, Yd, a, b)), - (a.type = "select"), - (a.target = Xd), - Ua(a), - a); - } - var be = { - eventTypes: Wd, - extractEvents: function(a, b, c, d) { - var e = - d.window === d - ? d.document - : 9 === d.nodeType - ? d - : d.ownerDocument, - f; - if (!(f = !e)) { - a: { - e = Nd(e); - f = ta.onSelect; - for (var g = 0; g < f.length; g++) { - var h = f[g]; - if (!e.hasOwnProperty(h) || !e[h]) { - e = !1; - break a; - } + + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentName(ReactCurrentOwner.current.type); + if (name) { + return "\n\nCheck the render method of `" + name + "`."; } - e = !0; } - f = !e; + return ""; } - if (f) return null; - e = b ? Ma(b) : window; - switch (a) { - case "focus": - if (Rb(e) || "true" === e.contentEditable) - (Xd = e), (Yd = b), (Zd = null); - break; - case "blur": - Zd = Yd = Xd = null; - break; - case "mousedown": - $d = !0; - break; - case "contextmenu": - case "mouseup": - case "dragend": - return ($d = !1), ae(c, d); - case "selectionchange": - if (Vd) break; - case "keydown": - case "keyup": - return ae(c, d); + + function getSourceInfoErrorAddendum(elementProps) { + if ( + elementProps !== null && + elementProps !== undefined && + elementProps.__source !== undefined + ) { + var source = elementProps.__source; + var fileName = source.fileName.replace(/^.*[\\\/]/, ""); + var lineNumber = source.lineNumber; + return ( + "\n\nCheck your code at " + fileName + ":" + lineNumber + "." + ); + } + return ""; } - return null; - } - }; - Ea.injectEventPluginOrder( - "ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split( - " " - ) - ); - ua = Na; - va = La; - wa = Ma; - Ea.injectEventPluginsByName({ - SimpleEventPlugin: Cd, - EnterLeaveEventPlugin: fd, - ChangeEventPlugin: Uc, - SelectEventPlugin: be, - BeforeInputEventPlugin: Eb - }); - function ce(a) { - var b = ""; - aa.Children.forEach(a, function(a) { - null != a && (b += a); - }); - return b; - } - function de(a, b) { - a = n({ children: void 0 }, b); - if ((b = ce(b.children))) a.children = b; - return a; - } - function ee(a, b, c, d) { - a = a.options; - if (b) { - b = {}; - for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; - for (c = 0; c < a.length; c++) - (e = b.hasOwnProperty("$" + a[c].value)), - a[c].selected !== e && (a[c].selected = e), - e && d && (a[c].defaultSelected = !0); - } else { - c = "" + yc(c); - b = null; - for (e = 0; e < a.length; e++) { - if (a[e].value === c) { - a[e].selected = !0; - d && (a[e].defaultSelected = !0); - return; + + /** + * Warn if there's no key explicitly set on dynamic arrays of children or + * object keys are not valid. This allows us to keep track of children between + * updates. + */ + var ownerHasKeyUseWarning = {}; + + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + + if (!info) { + var parentName = + typeof parentType === "string" + ? parentType + : parentType.displayName || parentType.name; + if (parentName) { + info = + "\n\nCheck the top-level render call using <" + + parentName + + ">."; + } } - null !== b || a[e].disabled || (b = a[e]); + return info; } - null !== b && (b.selected = !0); - } - } - function fe(a, b) { - null != b.dangerouslySetInnerHTML ? t("91") : void 0; - return n({}, b, { - value: void 0, - defaultValue: void 0, - children: "" + a._wrapperState.initialValue - }); - } - function ge(a, b) { - var c = b.value; - null == c && - ((c = b.defaultValue), - (b = b.children), - null != b && - (null != c ? t("92") : void 0, - Array.isArray(b) && (1 >= b.length ? void 0 : t("93"), (b = b[0])), - (c = b)), - null == c && (c = "")); - a._wrapperState = { initialValue: yc(c) }; - } - function he(a, b) { - var c = yc(b.value), - d = yc(b.defaultValue); - null != c && - ((c = "" + c), - c !== a.value && (a.value = c), - null == b.defaultValue && - a.defaultValue !== c && - (a.defaultValue = c)); - null != d && (a.defaultValue = "" + d); - } - function ie(a) { - var b = a.textContent; - b === a._wrapperState.initialValue && (a.value = b); - } - var je = { - html: "http://www.w3.org/1999/xhtml", - mathml: "http://www.w3.org/1998/Math/MathML", - svg: "http://www.w3.org/2000/svg" - }; - function ke(a) { - switch (a) { - case "svg": - return "http://www.w3.org/2000/svg"; - case "math": - return "http://www.w3.org/1998/Math/MathML"; - default: - return "http://www.w3.org/1999/xhtml"; - } - } - function le(a, b) { - return null == a || "http://www.w3.org/1999/xhtml" === a - ? ke(b) - : "http://www.w3.org/2000/svg" === a && "foreignObject" === b - ? "http://www.w3.org/1999/xhtml" - : a; - } - var me = void 0, - ne = (function(a) { - return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction - ? function(b, c, d, e) { - MSApp.execUnsafeLocalFunction(function() { - return a(b, c, d, e); - }); + + /** + * Warn if the element doesn't have an explicit key assigned to it. + * This element is in an array. The array could grow and shrink or be + * reordered. All children that haven't already been validated are required to + * have a "key" property assigned to it. Error statuses are cached so a warning + * will only be shown once. + * + * @internal + * @param {ReactElement} element Element that requires a key. + * @param {*} parentType element's parent's type. + */ + function validateExplicitKey(element, parentType) { + if ( + !element._store || + element._store.validated || + element.key != null + ) { + return; + } + element._store.validated = true; + + var currentComponentErrorInfo = getCurrentComponentErrorInfo( + parentType + ); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + + // Usually the current owner is the offender, but if it accepts children as a + // property, it may be the creator of the child that's responsible for + // assigning it a key. + var childOwner = ""; + if ( + element && + element._owner && + element._owner !== ReactCurrentOwner.current + ) { + // Give the component that originally created this child. + childOwner = + " It was passed a child from " + + getComponentName(element._owner.type) + + "."; + } + + setCurrentlyValidatingElement(element); + { + warning$1( + false, + 'Each child in an array or iterator should have a unique "key" prop.' + + "%s%s See https://fb.me/react-warning-keys for more information.", + currentComponentErrorInfo, + childOwner + ); + } + setCurrentlyValidatingElement(null); + } + + /** + * Ensure that every element either is passed in a static location, in an + * array with an explicit keys property defined, or in an object literal + * with valid key property. + * + * @internal + * @param {ReactNode} node Statically passed child of any type. + * @param {*} parentType node's parent's type. + */ + function validateChildKeys(node, parentType) { + if (typeof node !== "object") { + return; + } + if (Array.isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } } - : a; - })(function(a, b) { - if (a.namespaceURI !== je.svg || "innerHTML" in a) a.innerHTML = b; - else { - me = me || document.createElement("div"); - me.innerHTML = "" + b + ""; - for (b = me.firstChild; a.firstChild; ) a.removeChild(a.firstChild); - for (; b.firstChild; ) a.appendChild(b.firstChild); + } else if (isValidElement(node)) { + // This element was passed in a valid location. + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === "function") { + // Entry iterators used to provide implicit keys, + // but now we print a separate warning for them later. + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step = void 0; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } } - }); - function oe(a, b) { - if (b) { - var c = a.firstChild; - if (c && c === a.lastChild && 3 === c.nodeType) { - c.nodeValue = b; - return; + + /** + * Given an element, validate that its props follow the propTypes definition, + * provided by the type. + * + * @param {ReactElement} element + */ + function validatePropTypes(element) { + var type = element.type; + var name = void 0, + propTypes = void 0; + if (typeof type === "function") { + // Class or functional component + name = type.displayName || type.name; + propTypes = type.propTypes; + } else if ( + typeof type === "object" && + type !== null && + type.$$typeof === REACT_FORWARD_REF_TYPE + ) { + // ForwardRef + var functionName = + type.render.displayName || type.render.name || ""; + name = + type.displayName || + (functionName !== "" + ? "ForwardRef(" + functionName + ")" + : "ForwardRef"); + propTypes = type.propTypes; + } else { + return; + } + if (propTypes) { + setCurrentlyValidatingElement(element); + checkPropTypes( + propTypes, + element.props, + "prop", + name, + ReactDebugCurrentFrame.getStackAddendum + ); + setCurrentlyValidatingElement(null); + } else if ( + type.PropTypes !== undefined && + !propTypesMisspellWarningShown + ) { + propTypesMisspellWarningShown = true; + warningWithoutStack$1( + false, + "Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", + name || "Unknown" + ); + } + if (typeof type.getDefaultProps === "function") { + !type.getDefaultProps.isReactClassApproved + ? warningWithoutStack$1( + false, + "getDefaultProps is only used on classic React.createClass " + + "definitions. Use a static property named `defaultProps` instead." + ) + : void 0; + } } - } - a.textContent = b; + + /** + * Given a fragment, validate that it can only be provided with fragment props + * @param {ReactElement} fragment + */ + function validateFragmentProps(fragment) { + setCurrentlyValidatingElement(fragment); + + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== "children" && key !== "key") { + warning$1( + false, + "Invalid prop `%s` supplied to `React.Fragment`. " + + "React.Fragment can only have `key` and `children` props.", + key + ); + break; + } + } + + if (fragment.ref !== null) { + warning$1( + false, + "Invalid attribute `ref` supplied to `React.Fragment`." + ); + } + + setCurrentlyValidatingElement(null); + } + + function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); + + // We warn in this case but don't throw. We expect the element creation to + // succeed and there will likely be errors in render. + if (!validType) { + var info = ""; + if ( + type === undefined || + (typeof type === "object" && + type !== null && + Object.keys(type).length === 0) + ) { + info += + " You likely forgot to export your component from the file " + + "it's defined in, or you might have mixed up default and named imports."; + } + + var sourceInfo = getSourceInfoErrorAddendum(props); + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + + var typeString = void 0; + if (type === null) { + typeString = "null"; + } else if (Array.isArray(type)) { + typeString = "array"; + } else if ( + type !== undefined && + type.$$typeof === REACT_ELEMENT_TYPE + ) { + typeString = + "<" + (getComponentName(type.type) || "Unknown") + " />"; + info = + " Did you accidentally export a JSX literal instead of a component?"; + } else { + typeString = typeof type; + } + + warning$1( + false, + "React.createElement: type is invalid -- expected a string (for " + + "built-in components) or a class/function (for composite " + + "components) but got: %s.%s", + typeString, + info + ); + } + + var element = createElement.apply(this, arguments); + + // The result can be nullish if a mock or a custom function is used. + // TODO: Drop this when these are no longer allowed as the type argument. + if (element == null) { + return element; + } + + // Skip key warning if the type isn't valid since our key validation logic + // doesn't expect a non-string/function type and can throw confusing errors. + // We don't want exception behavior to differ between dev and prod. + // (Rendering will throw with a helpful message and as soon as the type is + // fixed, the key warnings will appear.) + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + + return element; + } + + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + // Legacy hook: remove it + { + Object.defineProperty(validatedFactory, "type", { + enumerable: false, + get: function() { + lowPriorityWarning$1( + false, + "Factory.type is deprecated. Access the class directly " + + "before passing it to createFactory." + ); + Object.defineProperty(this, "type", { + value: type + }); + return type; + } + }); + } + + return validatedFactory; + } + + function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + validatePropTypes(newElement); + return newElement; + } + + var React = { + Children: { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild + }, + + createRef: createRef, + Component: Component, + PureComponent: PureComponent, + + createContext: createContext, + forwardRef: forwardRef, + + Fragment: REACT_FRAGMENT_TYPE, + StrictMode: REACT_STRICT_MODE_TYPE, + unstable_AsyncMode: REACT_ASYNC_MODE_TYPE, + unstable_Profiler: REACT_PROFILER_TYPE, + + createElement: createElementWithValidation, + cloneElement: cloneElementWithValidation, + createFactory: createFactoryWithValidation, + isValidElement: isValidElement, + + version: ReactVersion, + + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals + }; + + if (enableSuspense) { + React.Placeholder = REACT_PLACEHOLDER_TYPE; + React.lazy = lazy; + } + + var React$2 = Object.freeze({ + default: React + }); + + var React$3 = (React$2 && React) || React$2; + + // TODO: decide on the top-level export form. + // This is hacky but makes it work with both Rollup and Jest. + var react = React$3.default || React$3; + + module.exports = react; + })(); } - var pe = { - animationIterationCount: !0, - borderImageOutset: !0, - borderImageSlice: !0, - borderImageWidth: !0, - boxFlex: !0, - boxFlexGroup: !0, - boxOrdinalGroup: !0, - columnCount: !0, - columns: !0, - flex: !0, - flexGrow: !0, - flexPositive: !0, - flexShrink: !0, - flexNegative: !0, - flexOrder: !0, - gridArea: !0, - gridRow: !0, - gridRowEnd: !0, - gridRowSpan: !0, - gridRowStart: !0, - gridColumn: !0, - gridColumnEnd: !0, - gridColumnSpan: !0, - gridColumnStart: !0, - fontWeight: !0, - lineClamp: !0, - lineHeight: !0, - opacity: !0, - order: !0, - orphans: !0, - tabSize: !0, - widows: !0, - zIndex: !0, - zoom: !0, - fillOpacity: !0, - floodOpacity: !0, - stopOpacity: !0, - strokeDasharray: !0, - strokeDashoffset: !0, - strokeMiterlimit: !0, - strokeOpacity: !0, - strokeWidth: !0 - }, - qe = ["Webkit", "ms", "Moz", "O"]; - Object.keys(pe).forEach(function(a) { - qe.forEach(function(b) { - b = b + a.charAt(0).toUpperCase() + a.substring(1); - pe[b] = pe[a]; - }); - }); - function re(a, b) { - a = a.style; - for (var c in b) - if (b.hasOwnProperty(c)) { - var d = 0 === c.indexOf("--"); - var e = c; - var f = b[c]; - e = - null == f || "boolean" === typeof f || "" === f - ? "" - : d || - "number" !== typeof f || - 0 === f || - (pe.hasOwnProperty(e) && pe[e]) - ? ("" + f).trim() - : f + "px"; - "float" === c && (c = "cssFloat"); - d ? a.setProperty(c, e) : (a[c] = e); + + /***/ + }, + /* 332 */ + /***/ function(module, exports, __webpack_require__) { + /** + * 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"; + + var printWarning = function() {}; + + if (undefined !== "production") { + var ReactPropTypesSecret = __webpack_require__(333); + var loggedTypeFailures = {}; + + printWarning = function(text) { + var message = "Warning: " + text; + if (typeof console !== "undefined") { + console.error(message); } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; } - var se = n( - { menuitem: !0 }, - { - area: !0, - base: !0, - br: !0, - col: !0, - embed: !0, - hr: !0, - img: !0, - input: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes( + typeSpecs, + values, + location, + componentName, + getStack + ) { + if (undefined !== "production") { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error( + (componentName || "React class") + + ": " + + location + + " type `" + + typeSpecName + + "` is invalid; " + + "it must be a function, usually from the `prop-types` package, but received `" + + typeof typeSpecs[typeSpecName] + + "`." + ); + err.name = "Invariant Violation"; + throw err; + } + error = typeSpecs[typeSpecName]( + values, + typeSpecName, + componentName, + location, + null, + ReactPropTypesSecret + ); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning( + (componentName || "React class") + + ": type specification of " + + location + + " `" + + typeSpecName + + "` is invalid; the type checker " + + "function must return `null` or an `Error` but returned a " + + typeof error + + ". " + + "You may have forgotten to pass an argument to the type checker " + + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + + "shape all require an argument)." + ); + } + if ( + error instanceof Error && + !(error.message in loggedTypeFailures) + ) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ""; + + printWarning( + "Failed " + + location + + " type: " + + error.message + + (stack != null ? stack : "") + ); + } + } + } } - ); - function te(a, b) { - b && - (se[a] && - (null != b.children || null != b.dangerouslySetInnerHTML - ? t("137", a, "") - : void 0), - null != b.dangerouslySetInnerHTML && - (null != b.children ? t("60") : void 0, - "object" === typeof b.dangerouslySetInnerHTML && - "__html" in b.dangerouslySetInnerHTML - ? void 0 - : t("61")), - null != b.style && "object" !== typeof b.style - ? t("62", "") - : void 0); } - function ue(a, b) { - if (-1 === a.indexOf("-")) return "string" === typeof b.is; - switch (a) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - return !1; - default: - return !0; + + module.exports = checkPropTypes; + + /***/ + }, + /* 333 */ + /***/ function(module, exports) { + /** + * 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"; + + var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; + + module.exports = ReactPropTypesSecret; + + /***/ + }, + /* 334 */ + /***/ function(module, exports, __webpack_require__) { + "use strict"; + + function checkDCE() { + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if ( + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function" + ) { + return; + } + if (undefined !== "production") { + // This branch is unreachable because this function is only called + // in production, but the condition is true only in development. + // Therefore if the branch is still here, dead code elimination wasn't + // properly applied. + // Don't change the message. React DevTools relies on it. Also make sure + // this message doesn't occur elsewhere in this function, or it will cause + // a false positive. + throw new Error("^_^"); + } + try { + // Verify that the code above has been dead code eliminated (DCE'd). + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); + } catch (err) { + // DevTools shouldn't crash React, no matter what. + // We should still report in case we break this code. + console.error(err); } } - function ve(a, b) { - a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument; - var c = Nd(a); - b = ta[b]; - for (var d = 0; d < b.length; d++) { - var e = b[d]; - if (!c.hasOwnProperty(e) || !c[e]) { - switch (e) { - case "scroll": - Jd("scroll", a); - break; - case "focus": - case "blur": - Jd("focus", a); - Jd("blur", a); - c.blur = !0; - c.focus = !0; - break; - case "cancel": - case "close": - Tb(e) && Jd(e, a); - break; - case "invalid": - case "submit": - case "reset": - break; - default: - -1 === fb.indexOf(e) && F(e, a); - } - c[e] = !0; + + if (undefined === "production") { + // DCE check should happen before ReactDOM bundle executes so that + // DevTools can report bad minification during injection. + checkDCE(); + module.exports = __webpack_require__(335); + } else { + module.exports = __webpack_require__(339); + } + + /***/ + }, + /* 335 */ + /***/ function(module, exports, __webpack_require__) { + /** @license React v16.5.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + /* + Modernizr 3.0.0pre (Custom Build) | MIT + */ + "use strict"; + var aa = __webpack_require__(328), + n = __webpack_require__(330), + ba = __webpack_require__(336); + function ca(a, b, c, d, e, f, g, h) { + if (!a) { + a = void 0; + if (void 0 === b) + a = Error( + "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." + ); + else { + var k = [c, d, e, f, g, h], + l = 0; + a = Error( + b.replace(/%s/g, function() { + return k[l++]; + }) + ); + a.name = "Invariant Violation"; } + a.framesToPop = 1; + throw a; } } - function we() {} - var xe = null, - ye = null; - function ze(a, b) { - switch (a) { - case "button": - case "input": - case "select": - case "textarea": - return !!b.autoFocus; + function t(a) { + for ( + var b = arguments.length - 1, + c = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, + d = 0; + d < b; + d++ + ) + c += "&args[]=" + encodeURIComponent(arguments[d + 1]); + ca( + !1, + "Minified React error #" + + a + + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", + c + ); + } + aa ? void 0 : t("227"); + function da(a, b, c, d, e, f, g, h, k) { + var l = Array.prototype.slice.call(arguments, 3); + try { + b.apply(c, l); + } catch (m) { + this.onError(m); } - return !1; } - function Ae(a, b) { - return ( - "textarea" === a || - "option" === a || - "noscript" === a || - "string" === typeof b.children || - "number" === typeof b.children || - ("object" === typeof b.dangerouslySetInnerHTML && - null !== b.dangerouslySetInnerHTML && - null != b.dangerouslySetInnerHTML.__html) - ); + var ea = !1, + fa = null, + ha = !1, + ia = null, + ja = { + onError: function(a) { + ea = !0; + fa = a; + } + }; + function ka(a, b, c, d, e, f, g, h, k) { + ea = !1; + fa = null; + da.apply(ja, arguments); } - function Be(a) { - for (a = a.nextSibling; a && 1 !== a.nodeType && 3 !== a.nodeType; ) - a = a.nextSibling; - return a; + function la(a, b, c, d, e, f, g, h, k) { + ka.apply(this, arguments); + if (ea) { + if (ea) { + var l = fa; + ea = !1; + fa = null; + } else t("198"), (l = void 0); + ha || ((ha = !0), (ia = l)); + } } - function Ce(a) { - for (a = a.firstChild; a && 1 !== a.nodeType && 3 !== a.nodeType; ) - a = a.nextSibling; - return a; + var ma = null, + na = {}; + function oa() { + if (ma) + for (var a in na) { + var b = na[a], + c = ma.indexOf(a); + -1 < c ? void 0 : t("96", a); + if (!pa[c]) { + b.extractEvents ? void 0 : t("97", a); + pa[c] = b; + c = b.eventTypes; + for (var d in c) { + var e = void 0; + var f = c[d], + g = b, + h = d; + qa.hasOwnProperty(h) ? t("99", h) : void 0; + qa[h] = f; + var k = f.phasedRegistrationNames; + if (k) { + for (e in k) k.hasOwnProperty(e) && ra(k[e], g, h); + e = !0; + } else + f.registrationName + ? (ra(f.registrationName, g, h), (e = !0)) + : (e = !1); + e ? void 0 : t("98", d, a); + } + } + } } - new Set(); - var De = [], - Ee = -1; - function G(a) { - 0 > Ee || ((a.current = De[Ee]), (De[Ee] = null), Ee--); + function ra(a, b, c) { + sa[a] ? t("100", a) : void 0; + sa[a] = b; + ta[a] = b.eventTypes[c].dependencies; } - function H(a, b) { - Ee++; - De[Ee] = a.current; - a.current = b; + var pa = [], + qa = {}, + sa = {}, + ta = {}, + ua = null, + va = null, + wa = null; + function xa(a, b, c, d) { + b = a.type || "unknown-event"; + a.currentTarget = wa(d); + la(b, c, void 0, a); + a.currentTarget = null; } - var Fe = {}, - I = { current: Fe }, - J = { current: !1 }, - Ge = Fe; - function He(a, b) { - var c = a.type.contextTypes; - if (!c) return Fe; - var d = a.stateNode; - if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) - return d.__reactInternalMemoizedMaskedChildContext; - var e = {}, - f; - for (f in c) e[f] = b[f]; - d && - ((a = a.stateNode), - (a.__reactInternalMemoizedUnmaskedChildContext = b), - (a.__reactInternalMemoizedMaskedChildContext = e)); - return e; + function ya(a, b) { + null == b ? t("30") : void 0; + if (null == a) return b; + if (Array.isArray(a)) { + if (Array.isArray(b)) return a.push.apply(a, b), a; + a.push(b); + return a; + } + return Array.isArray(b) ? [a].concat(b) : [a, b]; } - function K(a) { - a = a.childContextTypes; - return null !== a && void 0 !== a; + function za(a, b, c) { + Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a); } - function Ie(a) { - G(J, a); - G(I, a); + var Aa = null; + function Ba(a, b) { + if (a) { + var c = a._dispatchListeners, + d = a._dispatchInstances; + if (Array.isArray(c)) + for (var e = 0; e < c.length && !a.isPropagationStopped(); e++) + xa(a, b, c[e], d[e]); + else c && xa(a, b, c, d); + a._dispatchListeners = null; + a._dispatchInstances = null; + a.isPersistent() || a.constructor.release(a); + } } - function Je(a) { - G(J, a); - G(I, a); + function Ca(a) { + return Ba(a, !0); } - function Ke(a, b, c) { - I.current !== Fe ? t("168") : void 0; - H(I, b, a); - H(J, c, a); + function Da(a) { + return Ba(a, !1); } - function Le(a, b, c) { - var d = a.stateNode; - a = b.childContextTypes; - if ("function" !== typeof d.getChildContext) return c; - d = d.getChildContext(); - for (var e in d) e in a ? void 0 : t("108", lc(b) || "Unknown", e); - return n({}, c, d); + var Ea = { + injectEventPluginOrder: function(a) { + ma ? t("101") : void 0; + ma = Array.prototype.slice.call(a); + oa(); + }, + injectEventPluginsByName: function(a) { + var b = !1, + c; + for (c in a) + if (a.hasOwnProperty(c)) { + var d = a[c]; + (na.hasOwnProperty(c) && na[c] === d) || + (na[c] ? t("102", c) : void 0, (na[c] = d), (b = !0)); + } + b && oa(); + } + }; + function Fa(a, b) { + var c = a.stateNode; + if (!c) return null; + var d = ua(c); + if (!d) return null; + c = d[b]; + a: switch (b) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + (d = !d.disabled) || + ((a = a.type), + (d = !( + "button" === a || + "input" === a || + "select" === a || + "textarea" === a + ))); + a = !d; + break a; + default: + a = !1; + } + if (a) return null; + c && "function" !== typeof c ? t("231", b, typeof c) : void 0; + return c; } - function Me(a) { - var b = a.stateNode; - b = (b && b.__reactInternalMemoizedMergedChildContext) || Fe; - Ge = I.current; - H(I, b, a); - H(J, J.current, a); - return !0; + function Ga(a, b) { + null !== a && (Aa = ya(Aa, a)); + a = Aa; + Aa = null; + if (a && (b ? za(a, Ca) : za(a, Da), Aa ? t("95") : void 0, ha)) + throw ((b = ia), (ha = !1), (ia = null), b); } - function Ne(a, b, c) { - var d = a.stateNode; - d ? void 0 : t("169"); - c - ? ((b = Le(a, b, Ge)), - (d.__reactInternalMemoizedMergedChildContext = b), - G(J, a), - G(I, a), - H(I, b, a)) - : G(J, a); - H(J, c, a); + var Ha = Math.random() + .toString(36) + .slice(2), + Ia = "__reactInternalInstance$" + Ha, + Ja = "__reactEventHandlers$" + Ha; + function Ka(a) { + if (a[Ia]) return a[Ia]; + for (; !a[Ia]; ) + if (a.parentNode) a = a.parentNode; + else return null; + a = a[Ia]; + return 7 === a.tag || 8 === a.tag ? a : null; } - var Oe = null, - Pe = null; - function Qe(a) { - return function(b) { - try { - return a(b); - } catch (c) {} - }; + function La(a) { + a = a[Ia]; + return !a || (7 !== a.tag && 8 !== a.tag) ? null : a; } - function Re(a) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var b = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (b.isDisabled || !b.supportsFiber) return !0; - try { - var c = b.inject(a); - Oe = Qe(function(a) { - return b.onCommitFiberRoot(c, a); - }); - Pe = Qe(function(a) { - return b.onCommitFiberUnmount(c, a); - }); - } catch (d) {} - return !0; + function Ma(a) { + if (7 === a.tag || 8 === a.tag) return a.stateNode; + t("33"); } - function Se(a, b, c, d) { - this.tag = a; - this.key = c; - this.sibling = this.child = this.return = this.stateNode = this.type = null; - this.index = 0; - this.ref = null; - this.pendingProps = b; - this.firstContextDependency = this.memoizedState = this.updateQueue = this.memoizedProps = null; - this.mode = d; - this.effectTag = 0; - this.lastEffect = this.firstEffect = this.nextEffect = null; - this.childExpirationTime = this.expirationTime = 0; - this.alternate = null; + function Na(a) { + return a[Ja] || null; } - function Te(a) { - a = a.prototype; - return !(!a || !a.isReactComponent); + function Oa(a) { + do a = a.return; + while (a && 7 !== a.tag); + return a ? a : null; } - function Ue(a, b, c) { - var d = a.alternate; - null === d - ? ((d = new Se(a.tag, b, a.key, a.mode)), - (d.type = a.type), - (d.stateNode = a.stateNode), - (d.alternate = a), - (a.alternate = d)) - : ((d.pendingProps = b), - (d.effectTag = 0), - (d.nextEffect = null), - (d.firstEffect = null), - (d.lastEffect = null)); - d.childExpirationTime = a.childExpirationTime; - d.expirationTime = b !== a.pendingProps ? c : a.expirationTime; - d.child = a.child; - d.memoizedProps = a.memoizedProps; - d.memoizedState = a.memoizedState; - d.updateQueue = a.updateQueue; - d.firstContextDependency = a.firstContextDependency; - d.sibling = a.sibling; - d.index = a.index; - d.ref = a.ref; - return d; + function Pa(a, b, c) { + if ((b = Fa(a, c.dispatchConfig.phasedRegistrationNames[b]))) + (c._dispatchListeners = ya(c._dispatchListeners, b)), + (c._dispatchInstances = ya(c._dispatchInstances, a)); } - function Ve(a, b, c) { - var d = a.type, - e = a.key; - a = a.props; - var f = void 0; - if ("function" === typeof d) f = Te(d) ? 2 : 4; - else if ("string" === typeof d) f = 7; - else - a: switch (d) { - case bc: - return We(a.children, b, c, e); - case gc: - f = 10; - b |= 3; - break; - case cc: - f = 10; - b |= 2; - break; - case dc: - return ( - (d = new Se(15, a, e, b | 4)), - (d.type = dc), - (d.expirationTime = c), - d - ); - case ic: - f = 16; - break; - default: - if ("object" === typeof d && null !== d) - switch (d.$$typeof) { - case ec: - f = 12; - break a; - case fc: - f = 11; - break a; - case hc: - f = 13; - break a; - default: - if ("function" === typeof d.then) { - f = 4; - break a; - } - } - t("130", null == d ? d : typeof d, ""); - } - b = new Se(f, a, e, b); - b.type = d; - b.expirationTime = c; - return b; + function Qa(a) { + if (a && a.dispatchConfig.phasedRegistrationNames) { + for (var b = a._targetInst, c = []; b; ) c.push(b), (b = Oa(b)); + for (b = c.length; 0 < b--; ) Pa(c[b], "captured", a); + for (b = 0; b < c.length; b++) Pa(c[b], "bubbled", a); + } } - function We(a, b, c, d) { - a = new Se(9, a, d, b); - a.expirationTime = c; - return a; + function Ra(a, b, c) { + a && + c && + c.dispatchConfig.registrationName && + (b = Fa(a, c.dispatchConfig.registrationName)) && + ((c._dispatchListeners = ya(c._dispatchListeners, b)), + (c._dispatchInstances = ya(c._dispatchInstances, a))); } - function Xe(a, b, c) { - a = new Se(8, a, null, b); - a.expirationTime = c; - return a; + function Ta(a) { + a && a.dispatchConfig.registrationName && Ra(a._targetInst, null, a); } - function Ye(a, b, c) { - b = new Se(6, null !== a.children ? a.children : [], a.key, b); - b.expirationTime = c; - b.stateNode = { - containerInfo: a.containerInfo, - pendingChildren: null, - implementation: a.implementation - }; - return b; + function Ua(a) { + za(a, Qa); } - function Ze(a, b) { - a.didError = !1; - var c = a.earliestPendingTime; - 0 === c - ? (a.earliestPendingTime = a.latestPendingTime = b) - : c > b - ? (a.earliestPendingTime = b) - : a.latestPendingTime < b && (a.latestPendingTime = b); - $e(b, a); + var Va = !( + "undefined" === typeof window || + !window.document || + !window.document.createElement + ); + function Wa(a, b) { + var c = {}; + c[a.toLowerCase()] = b.toLowerCase(); + c["Webkit" + a] = "webkit" + b; + c["Moz" + a] = "moz" + b; + return c; } - function $e(a, b) { - var c = b.earliestSuspendedTime, - d = b.latestSuspendedTime, - e = b.earliestPendingTime, - f = b.latestPingedTime; - e = 0 !== e ? e : f; - 0 === e && (0 === a || d > a) && (e = d); - a = e; - 0 !== a && 0 !== c && c < a && (a = c); - b.nextExpirationTimeToWorkOn = e; - b.expirationTime = a; + var Ya = { + animationend: Wa("Animation", "AnimationEnd"), + animationiteration: Wa("Animation", "AnimationIteration"), + animationstart: Wa("Animation", "AnimationStart"), + transitionend: Wa("Transition", "TransitionEnd") + }, + Za = {}, + $a = {}; + Va && + (($a = document.createElement("div").style), + "AnimationEvent" in window || + (delete Ya.animationend.animation, + delete Ya.animationiteration.animation, + delete Ya.animationstart.animation), + "TransitionEvent" in window || delete Ya.transitionend.transition); + function ab(a) { + if (Za[a]) return Za[a]; + if (!Ya[a]) return a; + var b = Ya[a], + c; + for (c in b) if (b.hasOwnProperty(c) && c in $a) return (Za[a] = b[c]); + return a; } - var af = !1; - function bf(a) { - return { - baseState: a, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; + var bb = ab("animationend"), + cb = ab("animationiteration"), + db = ab("animationstart"), + eb = ab("transitionend"), + fb = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split( + " " + ), + gb = null, + hb = null, + ib = null; + function jb() { + if (ib) return ib; + var a, + b = hb, + c = b.length, + d, + e = "value" in gb ? gb.value : gb.textContent, + f = e.length; + for (a = 0; a < c && b[a] === e[a]; a++); + var g = c - a; + for (d = 1; d <= g && b[c - d] === e[f - d]; d++); + return (ib = e.slice(a, 1 < d ? 1 - d : void 0)); } - function cf(a) { - return { - baseState: a.baseState, - firstUpdate: a.firstUpdate, - lastUpdate: a.lastUpdate, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; + function kb() { + return !0; } - function df(a) { - return { - expirationTime: a, - tag: 0, - payload: null, - callback: null, - next: null, - nextEffect: null - }; + function lb() { + return !1; } - function ef(a, b) { - null === a.lastUpdate - ? (a.firstUpdate = a.lastUpdate = b) - : ((a.lastUpdate.next = b), (a.lastUpdate = b)); + function z(a, b, c, d) { + this.dispatchConfig = a; + this._targetInst = b; + this.nativeEvent = c; + a = this.constructor.Interface; + for (var e in a) + a.hasOwnProperty(e) && + ((b = a[e]) + ? (this[e] = b(c)) + : "target" === e + ? (this.target = d) + : (this[e] = c[e])); + this.isDefaultPrevented = (null != c.defaultPrevented + ? c.defaultPrevented + : !1 === c.returnValue) + ? kb + : lb; + this.isPropagationStopped = lb; + return this; } - function ff(a, b) { - var c = a.alternate; - if (null === c) { - var d = a.updateQueue; - var e = null; - null === d && (d = a.updateQueue = bf(a.memoizedState)); - } else - (d = a.updateQueue), - (e = c.updateQueue), - null === d - ? null === e - ? ((d = a.updateQueue = bf(a.memoizedState)), - (e = c.updateQueue = bf(c.memoizedState))) - : (d = a.updateQueue = cf(e)) - : null === e && (e = c.updateQueue = cf(d)); - null === e || d === e - ? ef(d, b) - : null === d.lastUpdate || null === e.lastUpdate - ? (ef(d, b), ef(e, b)) - : (ef(d, b), (e.lastUpdate = b)); + n(z.prototype, { + preventDefault: function() { + this.defaultPrevented = !0; + var a = this.nativeEvent; + a && + (a.preventDefault + ? a.preventDefault() + : "unknown" !== typeof a.returnValue && (a.returnValue = !1), + (this.isDefaultPrevented = kb)); + }, + stopPropagation: function() { + var a = this.nativeEvent; + a && + (a.stopPropagation + ? a.stopPropagation() + : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), + (this.isPropagationStopped = kb)); + }, + persist: function() { + this.isPersistent = kb; + }, + isPersistent: lb, + destructor: function() { + var a = this.constructor.Interface, + b; + for (b in a) this[b] = null; + this.nativeEvent = this._targetInst = this.dispatchConfig = null; + this.isPropagationStopped = this.isDefaultPrevented = lb; + this._dispatchInstances = this._dispatchListeners = null; + } + }); + z.Interface = { + type: null, + target: null, + currentTarget: function() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function(a) { + return a.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }; + z.extend = function(a) { + function b() {} + function c() { + return d.apply(this, arguments); + } + var d = this; + b.prototype = d.prototype; + var e = new b(); + n(e, c.prototype); + c.prototype = e; + c.prototype.constructor = c; + c.Interface = n({}, d.Interface, a); + c.extend = d.extend; + mb(c); + return c; + }; + mb(z); + function nb(a, b, c, d) { + if (this.eventPool.length) { + var e = this.eventPool.pop(); + this.call(e, a, b, c, d); + return e; + } + return new this(a, b, c, d); } - function gf(a, b) { - var c = a.updateQueue; - c = null === c ? (a.updateQueue = bf(a.memoizedState)) : hf(a, c); - null === c.lastCapturedUpdate - ? (c.firstCapturedUpdate = c.lastCapturedUpdate = b) - : ((c.lastCapturedUpdate.next = b), (c.lastCapturedUpdate = b)); + function ob(a) { + a instanceof this ? void 0 : t("279"); + a.destructor(); + 10 > this.eventPool.length && this.eventPool.push(a); } - function hf(a, b) { - var c = a.alternate; - null !== c && b === c.updateQueue && (b = a.updateQueue = cf(b)); - return b; + function mb(a) { + a.eventPool = []; + a.getPooled = nb; + a.release = ob; } - function jf(a, b, c, d, e, f) { - switch (c.tag) { - case 1: - return ( - (a = c.payload), "function" === typeof a ? a.call(f, d, e) : a - ); - case 3: - a.effectTag = (a.effectTag & -1025) | 64; - case 0: - a = c.payload; - e = "function" === typeof a ? a.call(f, d, e) : a; - if (null === e || void 0 === e) break; - return n({}, d, e); - case 2: - af = !0; + var pb = z.extend({ data: null }), + qb = z.extend({ data: null }), + rb = [9, 13, 27, 32], + sb = Va && "CompositionEvent" in window, + tb = null; + Va && "documentMode" in document && (tb = document.documentMode); + var ub = Va && "TextEvent" in window && !tb, + vb = Va && (!sb || (tb && 8 < tb && 11 >= tb)), + wb = String.fromCharCode(32), + xb = { + beforeInput: { + phasedRegistrationNames: { + bubbled: "onBeforeInput", + captured: "onBeforeInputCapture" + }, + dependencies: ["compositionend", "keypress", "textInput", "paste"] + }, + compositionEnd: { + phasedRegistrationNames: { + bubbled: "onCompositionEnd", + captured: "onCompositionEndCapture" + }, + dependencies: "blur compositionend keydown keypress keyup mousedown".split( + " " + ) + }, + compositionStart: { + phasedRegistrationNames: { + bubbled: "onCompositionStart", + captured: "onCompositionStartCapture" + }, + dependencies: "blur compositionstart keydown keypress keyup mousedown".split( + " " + ) + }, + compositionUpdate: { + phasedRegistrationNames: { + bubbled: "onCompositionUpdate", + captured: "onCompositionUpdateCapture" + }, + dependencies: "blur compositionupdate keydown keypress keyup mousedown".split( + " " + ) + } + }, + yb = !1; + function zb(a, b) { + switch (a) { + case "keyup": + return -1 !== rb.indexOf(b.keyCode); + case "keydown": + return 229 !== b.keyCode; + case "keypress": + case "mousedown": + case "blur": + return !0; + default: + return !1; } - return d; } - function kf(a, b, c, d, e) { - af = !1; - b = hf(a, b); - for ( - var f = b.baseState, g = null, h = 0, k = b.firstUpdate, l = f; - null !== k; - - ) { - var m = k.expirationTime; - if (m > e) { - if ((null === g && ((g = k), (f = l)), 0 === h || h > m)) h = m; - } else - (l = jf(a, b, k, l, c, d)), - null !== k.callback && - ((a.effectTag |= 32), - (k.nextEffect = null), - null === b.lastEffect - ? (b.firstEffect = b.lastEffect = k) - : ((b.lastEffect.nextEffect = k), (b.lastEffect = k))); - k = k.next; + function Ab(a) { + a = a.detail; + return "object" === typeof a && "data" in a ? a.data : null; + } + var Bb = !1; + function Cb(a, b) { + switch (a) { + case "compositionend": + return Ab(b); + case "keypress": + if (32 !== b.which) return null; + yb = !0; + return wb; + case "textInput": + return (a = b.data), a === wb && yb ? null : a; + default: + return null; } - m = null; - for (k = b.firstCapturedUpdate; null !== k; ) { - var r = k.expirationTime; - if (r > e) { + } + function Db(a, b) { + if (Bb) + return "compositionend" === a || (!sb && zb(a, b)) + ? ((a = jb()), (ib = hb = gb = null), (Bb = !1), a) + : null; + switch (a) { + case "paste": + return null; + case "keypress": if ( - (null === m && ((m = k), null === g && (f = l)), 0 === h || h > r) - ) - h = r; - } else - (l = jf(a, b, k, l, c, d)), - null !== k.callback && - ((a.effectTag |= 32), - (k.nextEffect = null), - null === b.lastCapturedEffect - ? (b.firstCapturedEffect = b.lastCapturedEffect = k) - : ((b.lastCapturedEffect.nextEffect = k), - (b.lastCapturedEffect = k))); - k = k.next; + !(b.ctrlKey || b.altKey || b.metaKey) || + (b.ctrlKey && b.altKey) + ) { + if (b.char && 1 < b.char.length) return b.char; + if (b.which) return String.fromCharCode(b.which); + } + return null; + case "compositionend": + return vb && "ko" !== b.locale ? null : b.data; + default: + return null; } - null === g && (b.lastUpdate = null); - null === m ? (b.lastCapturedUpdate = null) : (a.effectTag |= 32); - null === g && null === m && (f = l); - b.baseState = f; - b.firstUpdate = g; - b.firstCapturedUpdate = m; - a.expirationTime = h; - a.memoizedState = l; } - function lf(a, b, c) { - null !== b.firstCapturedUpdate && - (null !== b.lastUpdate && - ((b.lastUpdate.next = b.firstCapturedUpdate), - (b.lastUpdate = b.lastCapturedUpdate)), - (b.firstCapturedUpdate = b.lastCapturedUpdate = null)); - mf(b.firstEffect, c); - b.firstEffect = b.lastEffect = null; - mf(b.firstCapturedEffect, c); - b.firstCapturedEffect = b.lastCapturedEffect = null; - } - function mf(a, b) { - for (; null !== a; ) { - var c = a.callback; - if (null !== c) { - a.callback = null; - var d = b; - "function" !== typeof c ? t("191", c) : void 0; - c.call(d); + var Eb = { + eventTypes: xb, + extractEvents: function(a, b, c, d) { + var e = void 0; + var f = void 0; + if (sb) + b: { + switch (a) { + case "compositionstart": + e = xb.compositionStart; + break b; + case "compositionend": + e = xb.compositionEnd; + break b; + case "compositionupdate": + e = xb.compositionUpdate; + break b; + } + e = void 0; + } + else + Bb + ? zb(a, c) && (e = xb.compositionEnd) + : "keydown" === a && + 229 === c.keyCode && + (e = xb.compositionStart); + e + ? (vb && + "ko" !== c.locale && + (Bb || e !== xb.compositionStart + ? e === xb.compositionEnd && Bb && (f = jb()) + : ((gb = d), + (hb = "value" in gb ? gb.value : gb.textContent), + (Bb = !0))), + (e = pb.getPooled(e, b, c, d)), + f ? (e.data = f) : ((f = Ab(c)), null !== f && (e.data = f)), + Ua(e), + (f = e)) + : (f = null); + (a = ub ? Cb(a, c) : Db(a, c)) + ? ((b = qb.getPooled(xb.beforeInput, b, c, d)), + (b.data = a), + Ua(b)) + : (b = null); + return null === f ? b : null === b ? f : [f, b]; } - a = a.nextEffect; + }, + Fb = null, + Gb = null, + Hb = null; + function Ib(a) { + if ((a = va(a))) { + "function" !== typeof Fb ? t("280") : void 0; + var b = ua(a.stateNode); + Fb(a.stateNode, a.type, b); } } - function nf(a, b) { - return { value: a, source: b, stack: mc(b) }; + function Jb(a) { + Gb ? (Hb ? Hb.push(a) : (Hb = [a])) : (Gb = a); } - var of = { current: null }, - pf = null, - qf = null, - rf = null; - function sf(a, b) { - var c = a.type._context; - H(of, c._currentValue, a); - c._currentValue = b; + function Kb() { + if (Gb) { + var a = Gb, + b = Hb; + Hb = Gb = null; + Ib(a); + if (b) for (a = 0; a < b.length; a++) Ib(b[a]); + } } - function tf(a) { - var b = of.current; - G(of, a); - a.type._context._currentValue = b; + function Lb(a, b) { + return a(b); } - function uf(a) { - pf = a; - rf = qf = null; - a.firstContextDependency = null; + function Mb(a, b, c) { + return a(b, c); } - function vf(a, b) { - if (rf !== a && !1 !== b && 0 !== b) { - if ("number" !== typeof b || 1073741823 === b) - (rf = a), (b = 1073741823); - b = { context: a, observedBits: b, next: null }; - null === qf - ? (null === pf ? t("277") : void 0, - (pf.firstContextDependency = qf = b)) - : (qf = qf.next = b); + function Nb() {} + var Ob = !1; + function Pb(a, b) { + if (Ob) return a(b); + Ob = !0; + try { + return Lb(a, b); + } finally { + if (((Ob = !1), null !== Gb || null !== Hb)) Nb(), Kb(); } - return a._currentValue; - } - var wf = {}, - L = { current: wf }, - xf = { current: wf }, - yf = { current: wf }; - function zf(a) { - a === wf ? t("174") : void 0; - return a; } - function Af(a, b) { - H(yf, b, a); - H(xf, a, a); - H(L, wf, a); - var c = b.nodeType; - switch (c) { - case 9: - case 11: - b = (b = b.documentElement) ? b.namespaceURI : le(null, ""); - break; - default: - (c = 8 === c ? b.parentNode : b), - (b = c.namespaceURI || null), - (c = c.tagName), - (b = le(b, c)); - } - G(L, a); - H(L, b, a); + var Qb = { + color: !0, + date: !0, + datetime: !0, + "datetime-local": !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 + }; + function Rb(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return "input" === b ? !!Qb[a.type] : "textarea" === b ? !0 : !1; } - function Bf(a) { - G(L, a); - G(xf, a); - G(yf, a); + function Sb(a) { + a = a.target || a.srcElement || window; + a.correspondingUseElement && (a = a.correspondingUseElement); + return 3 === a.nodeType ? a.parentNode : a; } - function Cf(a) { - zf(yf.current); - var b = zf(L.current); - var c = le(b, a.type); - b !== c && (H(xf, a, a), H(L, c, a)); + function Tb(a) { + if (!Va) return !1; + a = "on" + a; + var b = a in document; + b || + ((b = document.createElement("div")), + b.setAttribute(a, "return;"), + (b = "function" === typeof b[a])); + return b; } - function Df(a) { - xf.current === a && (G(L, a), G(xf, a)); + function Ub(a) { + var b = a.type; + return ( + (a = a.nodeName) && + "input" === a.toLowerCase() && + ("checkbox" === b || "radio" === b) + ); } - var Ef = new aa.Component().refs; - function Ff(a, b, c, d) { - b = a.memoizedState; - c = c(d, b); - c = null === c || void 0 === c ? b : n({}, b, c); - a.memoizedState = c; - d = a.updateQueue; - null !== d && 0 === a.expirationTime && (d.baseState = c); + function Vb(a) { + var b = Ub(a) ? "checked" : "value", + c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), + d = "" + a[b]; + if ( + !a.hasOwnProperty(b) && + "undefined" !== typeof c && + "function" === typeof c.get && + "function" === typeof c.set + ) { + var e = c.get, + f = c.set; + Object.defineProperty(a, b, { + configurable: !0, + get: function() { + return e.call(this); + }, + set: function(a) { + d = "" + a; + f.call(this, a); + } + }); + Object.defineProperty(a, b, { enumerable: c.enumerable }); + return { + getValue: function() { + return d; + }, + setValue: function(a) { + d = "" + a; + }, + stopTracking: function() { + a._valueTracker = null; + delete a[b]; + } + }; + } } - var Jf = { - isMounted: function(a) { - return (a = a._reactInternalFiber) ? 2 === jd(a) : !1; - }, - enqueueSetState: function(a, b, c) { - a = a._reactInternalFiber; - var d = Gf(); - d = Hf(d, a); - var e = df(d); - e.payload = b; - void 0 !== c && null !== c && (e.callback = c); - ff(a, e); - If(a, d); - }, - enqueueReplaceState: function(a, b, c) { - a = a._reactInternalFiber; - var d = Gf(); - d = Hf(d, a); - var e = df(d); - e.tag = 1; - e.payload = b; - void 0 !== c && null !== c && (e.callback = c); - ff(a, e); - If(a, d); - }, - enqueueForceUpdate: function(a, b) { - a = a._reactInternalFiber; - var c = Gf(); - c = Hf(c, a); - var d = df(c); - d.tag = 2; - void 0 !== b && null !== b && (d.callback = b); - ff(a, d); - If(a, c); + function Wb(a) { + a._valueTracker || (a._valueTracker = Vb(a)); + } + function Xb(a) { + if (!a) return !1; + var b = a._valueTracker; + if (!b) return !0; + var c = b.getValue(); + var d = ""; + a && (d = Ub(a) ? (a.checked ? "true" : "false") : a.value); + a = d; + return a !== c ? (b.setValue(a), !0) : !1; + } + var Yb = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + Zb = /^(.*)[\\\/]/, + C = "function" === typeof Symbol && Symbol.for, + $b = C ? Symbol.for("react.element") : 60103, + ac = C ? Symbol.for("react.portal") : 60106, + bc = C ? Symbol.for("react.fragment") : 60107, + cc = C ? Symbol.for("react.strict_mode") : 60108, + dc = C ? Symbol.for("react.profiler") : 60114, + ec = C ? Symbol.for("react.provider") : 60109, + fc = C ? Symbol.for("react.context") : 60110, + gc = C ? Symbol.for("react.async_mode") : 60111, + hc = C ? Symbol.for("react.forward_ref") : 60112, + ic = C ? Symbol.for("react.placeholder") : 60113, + jc = "function" === typeof Symbol && Symbol.iterator; + function kc(a) { + if (null === a || "object" !== typeof a) return null; + a = (jc && a[jc]) || a["@@iterator"]; + return "function" === typeof a ? a : null; + } + function lc(a) { + if (null == a) return null; + if ("function" === typeof a) return a.displayName || a.name || null; + if ("string" === typeof a) return a; + switch (a) { + case gc: + return "AsyncMode"; + case bc: + return "Fragment"; + case ac: + return "Portal"; + case dc: + return "Profiler"; + case cc: + return "StrictMode"; + case ic: + return "Placeholder"; } - }; - function Kf(a, b, c, d, e, f, g) { - a = a.stateNode; - return "function" === typeof a.shouldComponentUpdate - ? a.shouldComponentUpdate(d, f, g) - : b.prototype && b.prototype.isPureReactComponent - ? !id(c, d) || !id(e, f) - : !0; + if ("object" === typeof a) { + switch (a.$$typeof) { + case fc: + return "Context.Consumer"; + case ec: + return "Context.Provider"; + case hc: + var b = a.render; + b = b.displayName || b.name || ""; + return ( + a.displayName || + ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef") + ); + } + if ( + "function" === typeof a.then && + (a = 1 === a._reactStatus ? a._reactResult : null) + ) + return lc(a); + } + return null; } - function Lf(a, b, c, d) { - a = b.state; - "function" === typeof b.componentWillReceiveProps && - b.componentWillReceiveProps(c, d); - "function" === typeof b.UNSAFE_componentWillReceiveProps && - b.UNSAFE_componentWillReceiveProps(c, d); - b.state !== a && Jf.enqueueReplaceState(b, b.state, null); + function mc(a) { + var b = ""; + do { + a: switch (a.tag) { + case 4: + case 0: + case 1: + case 2: + case 3: + case 7: + case 10: + var c = a._debugOwner, + d = a._debugSource, + e = lc(a.type); + var f = null; + c && (f = lc(c.type)); + c = e; + e = ""; + d + ? (e = + " (at " + + d.fileName.replace(Zb, "") + + ":" + + d.lineNumber + + ")") + : f && (e = " (created by " + f + ")"); + f = "\n in " + (c || "Unknown") + e; + break a; + default: + f = ""; + } + b += f; + a = a.return; + } while (a); + return b; } - function Mf(a, b, c, d) { - var e = a.stateNode, - f = K(b) ? Ge : I.current; - e.props = c; - e.state = a.memoizedState; - e.refs = Ef; - e.context = He(a, f); - f = a.updateQueue; - null !== f && (kf(a, f, c, e, d), (e.state = a.memoizedState)); - f = b.getDerivedStateFromProps; - "function" === typeof f && - (Ff(a, b, f, c), (e.state = a.memoizedState)); - "function" === typeof b.getDerivedStateFromProps || - "function" === typeof e.getSnapshotBeforeUpdate || - ("function" !== typeof e.UNSAFE_componentWillMount && - "function" !== typeof e.componentWillMount) || - ((b = e.state), - "function" === typeof e.componentWillMount && e.componentWillMount(), - "function" === typeof e.UNSAFE_componentWillMount && - e.UNSAFE_componentWillMount(), - b !== e.state && Jf.enqueueReplaceState(e, e.state, null), - (f = a.updateQueue), - null !== f && (kf(a, f, c, e, d), (e.state = a.memoizedState))); - "function" === typeof e.componentDidMount && (a.effectTag |= 4); + var nc = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + pc = Object.prototype.hasOwnProperty, + qc = {}, + rc = {}; + function sc(a) { + if (pc.call(rc, a)) return !0; + if (pc.call(qc, a)) return !1; + if (nc.test(a)) return (rc[a] = !0); + qc[a] = !0; + return !1; } - var Nf = Array.isArray; - function Of(a, b, c) { - a = c.ref; - if (null !== a && "function" !== typeof a && "object" !== typeof a) { - if (c._owner) { - c = c._owner; - var d = void 0; - c && - (2 !== c.tag && 3 !== c.tag ? t("110") : void 0, - (d = c.stateNode)); - d ? void 0 : t("147", a); - var e = "" + a; - if ( - null !== b && - null !== b.ref && - "function" === typeof b.ref && - b.ref._stringRef === e + function tc(a, b, c, d) { + if (null !== c && 0 === c.type) return !1; + switch (typeof b) { + case "function": + case "symbol": + return !0; + case "boolean": + if (d) return !1; + if (null !== c) return !c.acceptsBooleans; + a = a.toLowerCase().slice(0, 5); + return "data-" !== a && "aria-" !== a; + default: + return !1; + } + } + function uc(a, b, c, d) { + if (null === b || "undefined" === typeof b || tc(a, b, c, d)) return !0; + if (d) return !1; + if (null !== c) + switch (c.type) { + case 3: + return !b; + case 4: + return !1 === b; + case 5: + return isNaN(b); + case 6: + return isNaN(b) || 1 > b; + } + return !1; + } + function D(a, b, c, d, e) { + this.acceptsBooleans = 2 === b || 3 === b || 4 === b; + this.attributeName = d; + this.attributeNamespace = e; + this.mustUseProperty = c; + this.propertyName = a; + this.type = b; + } + var E = {}; + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style" + .split(" ") + .forEach(function(a) { + E[a] = new D(a, 0, !1, a, null); + }); + [ + ["acceptCharset", "accept-charset"], + ["className", "class"], + ["htmlFor", "for"], + ["httpEquiv", "http-equiv"] + ].forEach(function(a) { + var b = a[0]; + E[b] = new D(b, 1, !1, a[1], null); + }); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function( + a + ) { + E[a] = new D(a, 2, !1, a.toLowerCase(), null); + }); + [ + "autoReverse", + "externalResourcesRequired", + "focusable", + "preserveAlpha" + ].forEach(function(a) { + E[a] = new D(a, 2, !1, a, null); + }); + "allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope" + .split(" ") + .forEach(function(a) { + E[a] = new D(a, 3, !1, a.toLowerCase(), null); + }); + ["checked", "multiple", "muted", "selected"].forEach(function(a) { + E[a] = new D(a, 3, !0, a, null); + }); + ["capture", "download"].forEach(function(a) { + E[a] = new D(a, 4, !1, a, null); + }); + ["cols", "rows", "size", "span"].forEach(function(a) { + E[a] = new D(a, 6, !1, a, null); + }); + ["rowSpan", "start"].forEach(function(a) { + E[a] = new D(a, 5, !1, a.toLowerCase(), null); + }); + var vc = /[\-:]([a-z])/g; + function wc(a) { + return a[1].toUpperCase(); + } + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height" + .split(" ") + .forEach(function(a) { + var b = a.replace(vc, wc); + E[b] = new D(b, 1, !1, a, null); + }); + "xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type" + .split(" ") + .forEach(function(a) { + var b = a.replace(vc, wc); + E[b] = new D(b, 1, !1, a, "http://www.w3.org/1999/xlink"); + }); + ["xml:base", "xml:lang", "xml:space"].forEach(function(a) { + var b = a.replace(vc, wc); + E[b] = new D(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); + }); + E.tabIndex = new D("tabIndex", 1, !1, "tabindex", null); + function xc(a, b, c, d) { + var e = E.hasOwnProperty(b) ? E[b] : null; + var f = + null !== e + ? 0 === e.type + : d + ? !1 + : !(2 < b.length) || + ("o" !== b[0] && "O" !== b[0]) || + ("n" !== b[1] && "N" !== b[1]) + ? !1 + : !0; + f || + (uc(b, c, e, d) && (c = null), + d || null === e + ? sc(b) && + (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) + : e.mustUseProperty + ? (a[e.propertyName] = null === c ? (3 === e.type ? !1 : "") : c) + : ((b = e.attributeName), + (d = e.attributeNamespace), + null === c + ? a.removeAttribute(b) + : ((e = e.type), + (c = 3 === e || (4 === e && !0 === c) ? "" : "" + c), + d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); + } + function yc(a) { + switch (typeof a) { + case "boolean": + case "number": + case "object": + case "string": + case "undefined": + return a; + default: + return ""; + } + } + function zc(a, b) { + var c = b.checked; + return n({}, b, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != c ? c : a._wrapperState.initialChecked + }); + } + function Bc(a, b) { + var c = null == b.defaultValue ? "" : b.defaultValue, + d = null != b.checked ? b.checked : b.defaultChecked; + c = yc(null != b.value ? b.value : c); + a._wrapperState = { + initialChecked: d, + initialValue: c, + controlled: + "checkbox" === b.type || "radio" === b.type + ? null != b.checked + : null != b.value + }; + } + function Cc(a, b) { + b = b.checked; + null != b && xc(a, "checked", b, !1); + } + function Dc(a, b) { + Cc(a, b); + var c = yc(b.value), + d = b.type; + if (null != c) + if ("number" === d) { + if ((0 === c && "" === a.value) || a.value != c) a.value = "" + c; + } else a.value !== "" + c && (a.value = "" + c); + else if ("submit" === d || "reset" === d) { + a.removeAttribute("value"); + return; + } + b.hasOwnProperty("value") + ? Ec(a, b.type, c) + : b.hasOwnProperty("defaultValue") && + Ec(a, b.type, yc(b.defaultValue)); + null == b.checked && + null != b.defaultChecked && + (a.defaultChecked = !!b.defaultChecked); + } + function Fc(a, b, c) { + if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { + var d = b.type; + if ( + !( + ("submit" !== d && "reset" !== d) || + (void 0 !== b.value && null !== b.value) ) - return b.ref; - b = function(a) { - var b = d.refs; - b === Ef && (b = d.refs = {}); - null === a ? delete b[e] : (b[e] = a); - }; - b._stringRef = e; - return b; + ) + return; + b = "" + a._wrapperState.initialValue; + c || b === a.value || (a.value = b); + a.defaultValue = b; + } + c = a.name; + "" !== c && (a.name = ""); + a.defaultChecked = !a.defaultChecked; + a.defaultChecked = !!a._wrapperState.initialChecked; + "" !== c && (a.name = c); + } + function Ec(a, b, c) { + if ("number" !== b || a.ownerDocument.activeElement !== a) + null == c + ? (a.defaultValue = "" + a._wrapperState.initialValue) + : a.defaultValue !== "" + c && (a.defaultValue = "" + c); + } + var Gc = { + change: { + phasedRegistrationNames: { + bubbled: "onChange", + captured: "onChangeCapture" + }, + dependencies: "blur change click focus input keydown keyup selectionchange".split( + " " + ) + } + }; + function Hc(a, b, c) { + a = z.getPooled(Gc.change, a, b, c); + a.type = "change"; + Jb(c); + Ua(a); + return a; + } + var Ic = null, + Jc = null; + function Kc(a) { + Ga(a, !1); + } + function Lc(a) { + var b = Ma(a); + if (Xb(b)) return a; + } + function Mc(a, b) { + if ("change" === a) return b; + } + var Nc = !1; + Va && + (Nc = + Tb("input") && (!document.documentMode || 9 < document.documentMode)); + function Oc() { + Ic && (Ic.detachEvent("onpropertychange", Pc), (Jc = Ic = null)); + } + function Pc(a) { + "value" === a.propertyName && + Lc(Jc) && + ((a = Hc(Jc, a, Sb(a))), Pb(Kc, a)); + } + function Qc(a, b, c) { + "focus" === a + ? (Oc(), (Ic = b), (Jc = c), Ic.attachEvent("onpropertychange", Pc)) + : "blur" === a && Oc(); + } + function Rc(a) { + if ("selectionchange" === a || "keyup" === a || "keydown" === a) + return Lc(Jc); + } + function Sc(a, b) { + if ("click" === a) return Lc(b); + } + function Tc(a, b) { + if ("input" === a || "change" === a) return Lc(b); + } + var Uc = { + eventTypes: Gc, + _isInputEventSupported: Nc, + extractEvents: function(a, b, c, d) { + var e = b ? Ma(b) : window, + f = void 0, + g = void 0, + h = e.nodeName && e.nodeName.toLowerCase(); + "select" === h || ("input" === h && "file" === e.type) + ? (f = Mc) + : Rb(e) + ? Nc + ? (f = Tc) + : ((f = Rc), (g = Qc)) + : (h = e.nodeName) && + "input" === h.toLowerCase() && + ("checkbox" === e.type || "radio" === e.type) && + (f = Sc); + if (f && (f = f(a, b))) return Hc(f, c, d); + g && g(a, e, b); + "blur" === a && + (a = e._wrapperState) && + a.controlled && + "number" === e.type && + Ec(e, "number", e.value); + } + }, + Vc = z.extend({ view: null, detail: null }), + Wc = { + Alt: "altKey", + Control: "ctrlKey", + Meta: "metaKey", + Shift: "shiftKey" + }; + function Xc(a) { + var b = this.nativeEvent; + return b.getModifierState + ? b.getModifierState(a) + : (a = Wc[a]) + ? !!b[a] + : !1; + } + function Yc() { + return Xc; + } + var Zc = 0, + $c = 0, + ad = !1, + bd = !1, + cd = Vc.extend({ + screenX: null, + screenY: null, + clientX: null, + clientY: null, + pageX: null, + pageY: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + getModifierState: Yc, + button: null, + buttons: null, + relatedTarget: function(a) { + return ( + a.relatedTarget || + (a.fromElement === a.srcElement ? a.toElement : a.fromElement) + ); + }, + movementX: function(a) { + if ("movementX" in a) return a.movementX; + var b = Zc; + Zc = a.screenX; + return ad + ? "mousemove" === a.type + ? a.screenX - b + : 0 + : ((ad = !0), 0); + }, + movementY: function(a) { + if ("movementY" in a) return a.movementY; + var b = $c; + $c = a.screenY; + return bd + ? "mousemove" === a.type + ? a.screenY - b + : 0 + : ((bd = !0), 0); + } + }), + dd = cd.extend({ + pointerId: null, + width: null, + height: null, + pressure: null, + tangentialPressure: null, + tiltX: null, + tiltY: null, + twist: null, + pointerType: null, + isPrimary: null + }), + ed = { + mouseEnter: { + registrationName: "onMouseEnter", + dependencies: ["mouseout", "mouseover"] + }, + mouseLeave: { + registrationName: "onMouseLeave", + dependencies: ["mouseout", "mouseover"] + }, + pointerEnter: { + registrationName: "onPointerEnter", + dependencies: ["pointerout", "pointerover"] + }, + pointerLeave: { + registrationName: "onPointerLeave", + dependencies: ["pointerout", "pointerover"] + } + }, + fd = { + eventTypes: ed, + extractEvents: function(a, b, c, d) { + var e = "mouseover" === a || "pointerover" === a, + f = "mouseout" === a || "pointerout" === a; + if ((e && (c.relatedTarget || c.fromElement)) || (!f && !e)) + return null; + e = + d.window === d + ? d + : (e = d.ownerDocument) + ? e.defaultView || e.parentWindow + : window; + f + ? ((f = b), + (b = (b = c.relatedTarget || c.toElement) ? Ka(b) : null)) + : (f = null); + if (f === b) return null; + var g = void 0, + h = void 0, + k = void 0, + l = void 0; + if ("mouseout" === a || "mouseover" === a) + (g = cd), (h = ed.mouseLeave), (k = ed.mouseEnter), (l = "mouse"); + else if ("pointerout" === a || "pointerover" === a) + (g = dd), + (h = ed.pointerLeave), + (k = ed.pointerEnter), + (l = "pointer"); + var m = null == f ? e : Ma(f); + e = null == b ? e : Ma(b); + a = g.getPooled(h, f, c, d); + a.type = l + "leave"; + a.target = m; + a.relatedTarget = e; + c = g.getPooled(k, b, c, d); + c.type = l + "enter"; + c.target = e; + c.relatedTarget = m; + d = b; + if (f && d) + a: { + b = f; + e = d; + l = 0; + for (g = b; g; g = Oa(g)) l++; + g = 0; + for (k = e; k; k = Oa(k)) g++; + for (; 0 < l - g; ) (b = Oa(b)), l--; + for (; 0 < g - l; ) (e = Oa(e)), g--; + for (; l--; ) { + if (b === e || b === e.alternate) break a; + b = Oa(b); + e = Oa(e); + } + b = null; + } + else b = null; + e = b; + for (b = []; f && f !== e; ) { + l = f.alternate; + if (null !== l && l === e) break; + b.push(f); + f = Oa(f); + } + for (f = []; d && d !== e; ) { + l = d.alternate; + if (null !== l && l === e) break; + f.push(d); + d = Oa(d); + } + for (d = 0; d < b.length; d++) Ra(b[d], "bubbled", a); + for (d = f.length; 0 < d--; ) Ra(f[d], "captured", c); + return [a, c]; + } + }, + gd = Object.prototype.hasOwnProperty; + function hd(a, b) { + return a === b + ? 0 !== a || 0 !== b || 1 / a === 1 / b + : a !== a && b !== b; + } + function id(a, b) { + if (hd(a, b)) return !0; + if ( + "object" !== typeof a || + null === a || + "object" !== typeof b || + null === b + ) + return !1; + var c = Object.keys(a), + d = Object.keys(b); + if (c.length !== d.length) return !1; + for (d = 0; d < c.length; d++) + if (!gd.call(b, c[d]) || !hd(a[c[d]], b[c[d]])) return !1; + return !0; + } + function jd(a) { + var b = a; + if (a.alternate) for (; b.return; ) b = b.return; + else { + if (0 !== (b.effectTag & 2)) return 1; + for (; b.return; ) + if (((b = b.return), 0 !== (b.effectTag & 2))) return 1; + } + return 5 === b.tag ? 2 : 3; + } + function kd(a) { + 2 !== jd(a) ? t("188") : void 0; + } + function ld(a) { + var b = a.alternate; + if (!b) + return (b = jd(a)), 3 === b ? t("188") : void 0, 1 === b ? null : a; + for (var c = a, d = b; ; ) { + var e = c.return, + f = e ? e.alternate : null; + if (!e || !f) break; + if (e.child === f.child) { + for (var g = e.child; g; ) { + if (g === c) return kd(e), a; + if (g === d) return kd(e), b; + g = g.sibling; + } + t("188"); + } + if (c.return !== d.return) (c = e), (d = f); + else { + g = !1; + for (var h = e.child; h; ) { + if (h === c) { + g = !0; + c = e; + d = f; + break; + } + if (h === d) { + g = !0; + d = e; + c = f; + break; + } + h = h.sibling; + } + if (!g) { + for (h = f.child; h; ) { + if (h === c) { + g = !0; + c = f; + d = e; + break; + } + if (h === d) { + g = !0; + d = f; + c = e; + break; + } + h = h.sibling; + } + g ? void 0 : t("189"); + } + } + c.alternate !== d ? t("190") : void 0; + } + 5 !== c.tag ? t("188") : void 0; + return c.stateNode.current === c ? a : b; + } + function md(a) { + a = ld(a); + if (!a) return null; + for (var b = a; ; ) { + if (7 === b.tag || 8 === b.tag) return b; + if (b.child) (b.child.return = b), (b = b.child); + else { + if (b === a) break; + for (; !b.sibling; ) { + if (!b.return || b.return === a) return null; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; + } + } + return null; + } + var nd = z.extend({ + animationName: null, + elapsedTime: null, + pseudoElement: null + }), + od = z.extend({ + clipboardData: function(a) { + return "clipboardData" in a + ? a.clipboardData + : window.clipboardData; + } + }), + pd = Vc.extend({ relatedTarget: null }); + function qd(a) { + var b = a.keyCode; + "charCode" in a + ? ((a = a.charCode), 0 === a && 13 === b && (a = 13)) + : (a = b); + 10 === a && (a = 13); + return 32 <= a || 13 === a ? a : 0; + } + var rd = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" + }, + sd = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" + }, + td = Vc.extend({ + key: function(a) { + if (a.key) { + var b = rd[a.key] || a.key; + if ("Unidentified" !== b) return b; + } + return "keypress" === a.type + ? ((a = qd(a)), 13 === a ? "Enter" : String.fromCharCode(a)) + : "keydown" === a.type || "keyup" === a.type + ? sd[a.keyCode] || "Unidentified" + : ""; + }, + location: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + repeat: null, + locale: null, + getModifierState: Yc, + charCode: function(a) { + return "keypress" === a.type ? qd(a) : 0; + }, + keyCode: function(a) { + return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; + }, + which: function(a) { + return "keypress" === a.type + ? qd(a) + : "keydown" === a.type || "keyup" === a.type + ? a.keyCode + : 0; + } + }), + ud = cd.extend({ dataTransfer: null }), + vd = Vc.extend({ + touches: null, + targetTouches: null, + changedTouches: null, + altKey: null, + metaKey: null, + ctrlKey: null, + shiftKey: null, + getModifierState: Yc + }), + wd = z.extend({ + propertyName: null, + elapsedTime: null, + pseudoElement: null + }), + xd = cd.extend({ + deltaX: function(a) { + return "deltaX" in a + ? a.deltaX + : "wheelDeltaX" in a + ? -a.wheelDeltaX + : 0; + }, + deltaY: function(a) { + return "deltaY" in a + ? a.deltaY + : "wheelDeltaY" in a + ? -a.wheelDeltaY + : "wheelDelta" in a + ? -a.wheelDelta + : 0; + }, + deltaZ: null, + deltaMode: null + }), + yd = [ + ["abort", "abort"], + [bb, "animationEnd"], + [cb, "animationIteration"], + [db, "animationStart"], + ["canplay", "canPlay"], + ["canplaythrough", "canPlayThrough"], + ["drag", "drag"], + ["dragenter", "dragEnter"], + ["dragexit", "dragExit"], + ["dragleave", "dragLeave"], + ["dragover", "dragOver"], + ["durationchange", "durationChange"], + ["emptied", "emptied"], + ["encrypted", "encrypted"], + ["ended", "ended"], + ["error", "error"], + ["gotpointercapture", "gotPointerCapture"], + ["load", "load"], + ["loadeddata", "loadedData"], + ["loadedmetadata", "loadedMetadata"], + ["loadstart", "loadStart"], + ["lostpointercapture", "lostPointerCapture"], + ["mousemove", "mouseMove"], + ["mouseout", "mouseOut"], + ["mouseover", "mouseOver"], + ["playing", "playing"], + ["pointermove", "pointerMove"], + ["pointerout", "pointerOut"], + ["pointerover", "pointerOver"], + ["progress", "progress"], + ["scroll", "scroll"], + ["seeking", "seeking"], + ["stalled", "stalled"], + ["suspend", "suspend"], + ["timeupdate", "timeUpdate"], + ["toggle", "toggle"], + ["touchmove", "touchMove"], + [eb, "transitionEnd"], + ["waiting", "waiting"], + ["wheel", "wheel"] + ], + zd = {}, + Ad = {}; + function Bd(a, b) { + var c = a[0]; + a = a[1]; + var d = "on" + (a[0].toUpperCase() + a.slice(1)); + b = { + phasedRegistrationNames: { bubbled: d, captured: d + "Capture" }, + dependencies: [c], + isInteractive: b + }; + zd[a] = b; + Ad[c] = b; + } + [ + ["blur", "blur"], + ["cancel", "cancel"], + ["click", "click"], + ["close", "close"], + ["contextmenu", "contextMenu"], + ["copy", "copy"], + ["cut", "cut"], + ["auxclick", "auxClick"], + ["dblclick", "doubleClick"], + ["dragend", "dragEnd"], + ["dragstart", "dragStart"], + ["drop", "drop"], + ["focus", "focus"], + ["input", "input"], + ["invalid", "invalid"], + ["keydown", "keyDown"], + ["keypress", "keyPress"], + ["keyup", "keyUp"], + ["mousedown", "mouseDown"], + ["mouseup", "mouseUp"], + ["paste", "paste"], + ["pause", "pause"], + ["play", "play"], + ["pointercancel", "pointerCancel"], + ["pointerdown", "pointerDown"], + ["pointerup", "pointerUp"], + ["ratechange", "rateChange"], + ["reset", "reset"], + ["seeked", "seeked"], + ["submit", "submit"], + ["touchcancel", "touchCancel"], + ["touchend", "touchEnd"], + ["touchstart", "touchStart"], + ["volumechange", "volumeChange"] + ].forEach(function(a) { + Bd(a, !0); + }); + yd.forEach(function(a) { + Bd(a, !1); + }); + var Cd = { + eventTypes: zd, + isInteractiveTopLevelEventType: function(a) { + a = Ad[a]; + return void 0 !== a && !0 === a.isInteractive; + }, + extractEvents: function(a, b, c, d) { + var e = Ad[a]; + if (!e) return null; + switch (a) { + case "keypress": + if (0 === qd(c)) return null; + case "keydown": + case "keyup": + a = td; + break; + case "blur": + case "focus": + a = pd; + break; + case "click": + if (2 === c.button) return null; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + a = cd; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + a = ud; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + a = vd; + break; + case bb: + case cb: + case db: + a = nd; + break; + case eb: + a = wd; + break; + case "scroll": + a = Vc; + break; + case "wheel": + a = xd; + break; + case "copy": + case "cut": + case "paste": + a = od; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + a = dd; + break; + default: + a = z; + } + b = a.getPooled(e, b, c, d); + Ua(b); + return b; + } + }, + Dd = Cd.isInteractiveTopLevelEventType, + Ed = []; + function Fd(a) { + var b = a.targetInst, + c = b; + do { + if (!c) { + a.ancestors.push(c); + break; + } + var d; + for (d = c; d.return; ) d = d.return; + d = 5 !== d.tag ? null : d.stateNode.containerInfo; + if (!d) break; + a.ancestors.push(c); + c = Ka(d); + } while (c); + for (c = 0; c < a.ancestors.length; c++) { + b = a.ancestors[c]; + var e = Sb(a.nativeEvent); + d = a.topLevelType; + for (var f = a.nativeEvent, g = null, h = 0; h < pa.length; h++) { + var k = pa[h]; + k && (k = k.extractEvents(d, b, f, e)) && (g = ya(g, k)); + } + Ga(g, !1); + } + } + var Gd = !0; + function F(a, b) { + if (!b) return null; + var c = (Dd(a) ? Hd : Id).bind(null, a); + b.addEventListener(a, c, !1); + } + function Jd(a, b) { + if (!b) return null; + var c = (Dd(a) ? Hd : Id).bind(null, a); + b.addEventListener(a, c, !0); + } + function Hd(a, b) { + Mb(Id, a, b); + } + function Id(a, b) { + if (Gd) { + var c = Sb(b); + c = Ka(c); + null === c || "number" !== typeof c.tag || 2 === jd(c) || (c = null); + if (Ed.length) { + var d = Ed.pop(); + d.topLevelType = a; + d.nativeEvent = b; + d.targetInst = c; + a = d; + } else + a = { + topLevelType: a, + nativeEvent: b, + targetInst: c, + ancestors: [] + }; + try { + Pb(Fd, a); + } finally { + (a.topLevelType = null), + (a.nativeEvent = null), + (a.targetInst = null), + (a.ancestors.length = 0), + 10 > Ed.length && Ed.push(a); + } + } + } + var Kd = {}, + Ld = 0, + Md = "_reactListenersID" + ("" + Math.random()).slice(2); + function Nd(a) { + Object.prototype.hasOwnProperty.call(a, Md) || + ((a[Md] = Ld++), (Kd[a[Md]] = {})); + return Kd[a[Md]]; + } + function Od(a) { + a = a || ("undefined" !== typeof document ? document : void 0); + if ("undefined" === typeof a) return null; + try { + return a.activeElement || a.body; + } catch (b) { + return a.body; + } + } + function Qd(a) { + for (; a && a.firstChild; ) a = a.firstChild; + return a; + } + function Rd(a, b) { + var c = Qd(a); + a = 0; + for (var d; c; ) { + if (3 === c.nodeType) { + d = a + c.textContent.length; + if (a <= b && d >= b) return { node: c, offset: b - a }; + a = d; + } + a: { + for (; c; ) { + if (c.nextSibling) { + c = c.nextSibling; + break a; + } + c = c.parentNode; + } + c = void 0; + } + c = Qd(c); + } + } + function Sd(a, b) { + return a && b + ? a === b + ? !0 + : a && 3 === a.nodeType + ? !1 + : b && 3 === b.nodeType + ? Sd(a, b.parentNode) + : "contains" in a + ? a.contains(b) + : a.compareDocumentPosition + ? !!(a.compareDocumentPosition(b) & 16) + : !1 + : !1; + } + function Td() { + for (var a = window, b = Od(); b instanceof a.HTMLIFrameElement; ) { + try { + a = b.contentDocument.defaultView; + } catch (c) { + break; + } + b = Od(a.document); + } + return b; + } + function Ud(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return ( + b && + (("input" === b && + ("text" === a.type || + "search" === a.type || + "tel" === a.type || + "url" === a.type || + "password" === a.type)) || + "textarea" === b || + "true" === a.contentEditable) + ); + } + var Vd = Va && "documentMode" in document && 11 >= document.documentMode, + Wd = { + select: { + phasedRegistrationNames: { + bubbled: "onSelect", + captured: "onSelectCapture" + }, + dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split( + " " + ) + } + }, + Xd = null, + Yd = null, + Zd = null, + $d = !1; + function ae(a, b) { + var c = + b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument; + if ($d || null == Xd || Xd !== Od(c)) return null; + c = Xd; + "selectionStart" in c && Ud(c) + ? (c = { start: c.selectionStart, end: c.selectionEnd }) + : ((c = ( + (c.ownerDocument && c.ownerDocument.defaultView) || + window + ).getSelection()), + (c = { + anchorNode: c.anchorNode, + anchorOffset: c.anchorOffset, + focusNode: c.focusNode, + focusOffset: c.focusOffset + })); + return Zd && id(Zd, c) + ? null + : ((Zd = c), + (a = z.getPooled(Wd.select, Yd, a, b)), + (a.type = "select"), + (a.target = Xd), + Ua(a), + a); + } + var be = { + eventTypes: Wd, + extractEvents: function(a, b, c, d) { + var e = + d.window === d + ? d.document + : 9 === d.nodeType + ? d + : d.ownerDocument, + f; + if (!(f = !e)) { + a: { + e = Nd(e); + f = ta.onSelect; + for (var g = 0; g < f.length; g++) { + var h = f[g]; + if (!e.hasOwnProperty(h) || !e[h]) { + e = !1; + break a; + } + } + e = !0; + } + f = !e; + } + if (f) return null; + e = b ? Ma(b) : window; + switch (a) { + case "focus": + if (Rb(e) || "true" === e.contentEditable) + (Xd = e), (Yd = b), (Zd = null); + break; + case "blur": + Zd = Yd = Xd = null; + break; + case "mousedown": + $d = !0; + break; + case "contextmenu": + case "mouseup": + case "dragend": + return ($d = !1), ae(c, d); + case "selectionchange": + if (Vd) break; + case "keydown": + case "keyup": + return ae(c, d); + } + return null; + } + }; + Ea.injectEventPluginOrder( + "ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split( + " " + ) + ); + ua = Na; + va = La; + wa = Ma; + Ea.injectEventPluginsByName({ + SimpleEventPlugin: Cd, + EnterLeaveEventPlugin: fd, + ChangeEventPlugin: Uc, + SelectEventPlugin: be, + BeforeInputEventPlugin: Eb + }); + function ce(a) { + var b = ""; + aa.Children.forEach(a, function(a) { + null != a && (b += a); + }); + return b; + } + function de(a, b) { + a = n({ children: void 0 }, b); + if ((b = ce(b.children))) a.children = b; + return a; + } + function ee(a, b, c, d) { + a = a.options; + if (b) { + b = {}; + for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; + for (c = 0; c < a.length; c++) + (e = b.hasOwnProperty("$" + a[c].value)), + a[c].selected !== e && (a[c].selected = e), + e && d && (a[c].defaultSelected = !0); + } else { + c = "" + yc(c); + b = null; + for (e = 0; e < a.length; e++) { + if (a[e].value === c) { + a[e].selected = !0; + d && (a[e].defaultSelected = !0); + return; + } + null !== b || a[e].disabled || (b = a[e]); + } + null !== b && (b.selected = !0); + } + } + function fe(a, b) { + null != b.dangerouslySetInnerHTML ? t("91") : void 0; + return n({}, b, { + value: void 0, + defaultValue: void 0, + children: "" + a._wrapperState.initialValue + }); + } + function ge(a, b) { + var c = b.value; + null == c && + ((c = b.defaultValue), + (b = b.children), + null != b && + (null != c ? t("92") : void 0, + Array.isArray(b) && (1 >= b.length ? void 0 : t("93"), (b = b[0])), + (c = b)), + null == c && (c = "")); + a._wrapperState = { initialValue: yc(c) }; + } + function he(a, b) { + var c = yc(b.value), + d = yc(b.defaultValue); + null != c && + ((c = "" + c), + c !== a.value && (a.value = c), + null == b.defaultValue && + a.defaultValue !== c && + (a.defaultValue = c)); + null != d && (a.defaultValue = "" + d); + } + function ie(a) { + var b = a.textContent; + b === a._wrapperState.initialValue && (a.value = b); + } + var je = { + html: "http://www.w3.org/1999/xhtml", + mathml: "http://www.w3.org/1998/Math/MathML", + svg: "http://www.w3.org/2000/svg" + }; + function ke(a) { + switch (a) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml"; + } + } + function le(a, b) { + return null == a || "http://www.w3.org/1999/xhtml" === a + ? ke(b) + : "http://www.w3.org/2000/svg" === a && "foreignObject" === b + ? "http://www.w3.org/1999/xhtml" + : a; + } + var me = void 0, + ne = (function(a) { + return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction + ? function(b, c, d, e) { + MSApp.execUnsafeLocalFunction(function() { + return a(b, c, d, e); + }); + } + : a; + })(function(a, b) { + if (a.namespaceURI !== je.svg || "innerHTML" in a) a.innerHTML = b; + else { + me = me || document.createElement("div"); + me.innerHTML = "" + b + ""; + for (b = me.firstChild; a.firstChild; ) a.removeChild(a.firstChild); + for (; b.firstChild; ) a.appendChild(b.firstChild); + } + }); + function oe(a, b) { + if (b) { + var c = a.firstChild; + if (c && c === a.lastChild && 3 === c.nodeType) { + c.nodeValue = b; + return; + } + } + a.textContent = b; + } + var pe = { + animationIterationCount: !0, + borderImageOutset: !0, + borderImageSlice: !0, + borderImageWidth: !0, + boxFlex: !0, + boxFlexGroup: !0, + boxOrdinalGroup: !0, + columnCount: !0, + columns: !0, + flex: !0, + flexGrow: !0, + flexPositive: !0, + flexShrink: !0, + flexNegative: !0, + flexOrder: !0, + gridArea: !0, + gridRow: !0, + gridRowEnd: !0, + gridRowSpan: !0, + gridRowStart: !0, + gridColumn: !0, + gridColumnEnd: !0, + gridColumnSpan: !0, + gridColumnStart: !0, + fontWeight: !0, + lineClamp: !0, + lineHeight: !0, + opacity: !0, + order: !0, + orphans: !0, + tabSize: !0, + widows: !0, + zIndex: !0, + zoom: !0, + fillOpacity: !0, + floodOpacity: !0, + stopOpacity: !0, + strokeDasharray: !0, + strokeDashoffset: !0, + strokeMiterlimit: !0, + strokeOpacity: !0, + strokeWidth: !0 + }, + qe = ["Webkit", "ms", "Moz", "O"]; + Object.keys(pe).forEach(function(a) { + qe.forEach(function(b) { + b = b + a.charAt(0).toUpperCase() + a.substring(1); + pe[b] = pe[a]; + }); + }); + function re(a, b) { + a = a.style; + for (var c in b) + if (b.hasOwnProperty(c)) { + var d = 0 === c.indexOf("--"); + var e = c; + var f = b[c]; + e = + null == f || "boolean" === typeof f || "" === f + ? "" + : d || + "number" !== typeof f || + 0 === f || + (pe.hasOwnProperty(e) && pe[e]) + ? ("" + f).trim() + : f + "px"; + "float" === c && (c = "cssFloat"); + d ? a.setProperty(c, e) : (a[c] = e); + } + } + var se = n( + { menuitem: !0 }, + { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + } + ); + function te(a, b) { + b && + (se[a] && + (null != b.children || null != b.dangerouslySetInnerHTML + ? t("137", a, "") + : void 0), + null != b.dangerouslySetInnerHTML && + (null != b.children ? t("60") : void 0, + "object" === typeof b.dangerouslySetInnerHTML && + "__html" in b.dangerouslySetInnerHTML + ? void 0 + : t("61")), + null != b.style && "object" !== typeof b.style + ? t("62", "") + : void 0); + } + function ue(a, b) { + if (-1 === a.indexOf("-")) return "string" === typeof b.is; + switch (a) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + return !1; + default: + return !0; + } + } + function ve(a, b) { + a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument; + var c = Nd(a); + b = ta[b]; + for (var d = 0; d < b.length; d++) { + var e = b[d]; + if (!c.hasOwnProperty(e) || !c[e]) { + switch (e) { + case "scroll": + Jd("scroll", a); + break; + case "focus": + case "blur": + Jd("focus", a); + Jd("blur", a); + c.blur = !0; + c.focus = !0; + break; + case "cancel": + case "close": + Tb(e) && Jd(e, a); + break; + case "invalid": + case "submit": + case "reset": + break; + default: + -1 === fb.indexOf(e) && F(e, a); + } + c[e] = !0; + } + } + } + function we() {} + var xe = null, + ye = null; + function ze(a, b) { + switch (a) { + case "button": + case "input": + case "select": + case "textarea": + return !!b.autoFocus; + } + return !1; + } + function Ae(a, b) { + return ( + "textarea" === a || + "option" === a || + "noscript" === a || + "string" === typeof b.children || + "number" === typeof b.children || + ("object" === typeof b.dangerouslySetInnerHTML && + null !== b.dangerouslySetInnerHTML && + null != b.dangerouslySetInnerHTML.__html) + ); + } + function Be(a) { + for (a = a.nextSibling; a && 1 !== a.nodeType && 3 !== a.nodeType; ) + a = a.nextSibling; + return a; + } + function Ce(a) { + for (a = a.firstChild; a && 1 !== a.nodeType && 3 !== a.nodeType; ) + a = a.nextSibling; + return a; + } + new Set(); + var De = [], + Ee = -1; + function G(a) { + 0 > Ee || ((a.current = De[Ee]), (De[Ee] = null), Ee--); + } + function H(a, b) { + Ee++; + De[Ee] = a.current; + a.current = b; + } + var Fe = {}, + I = { current: Fe }, + J = { current: !1 }, + Ge = Fe; + function He(a, b) { + var c = a.type.contextTypes; + if (!c) return Fe; + var d = a.stateNode; + if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) + return d.__reactInternalMemoizedMaskedChildContext; + var e = {}, + f; + for (f in c) e[f] = b[f]; + d && + ((a = a.stateNode), + (a.__reactInternalMemoizedUnmaskedChildContext = b), + (a.__reactInternalMemoizedMaskedChildContext = e)); + return e; + } + function K(a) { + a = a.childContextTypes; + return null !== a && void 0 !== a; + } + function Ie(a) { + G(J, a); + G(I, a); + } + function Je(a) { + G(J, a); + G(I, a); + } + function Ke(a, b, c) { + I.current !== Fe ? t("168") : void 0; + H(I, b, a); + H(J, c, a); + } + function Le(a, b, c) { + var d = a.stateNode; + a = b.childContextTypes; + if ("function" !== typeof d.getChildContext) return c; + d = d.getChildContext(); + for (var e in d) e in a ? void 0 : t("108", lc(b) || "Unknown", e); + return n({}, c, d); + } + function Me(a) { + var b = a.stateNode; + b = (b && b.__reactInternalMemoizedMergedChildContext) || Fe; + Ge = I.current; + H(I, b, a); + H(J, J.current, a); + return !0; + } + function Ne(a, b, c) { + var d = a.stateNode; + d ? void 0 : t("169"); + c + ? ((b = Le(a, b, Ge)), + (d.__reactInternalMemoizedMergedChildContext = b), + G(J, a), + G(I, a), + H(I, b, a)) + : G(J, a); + H(J, c, a); + } + var Oe = null, + Pe = null; + function Qe(a) { + return function(b) { + try { + return a(b); + } catch (c) {} + }; + } + function Re(a) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var b = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (b.isDisabled || !b.supportsFiber) return !0; + try { + var c = b.inject(a); + Oe = Qe(function(a) { + return b.onCommitFiberRoot(c, a); + }); + Pe = Qe(function(a) { + return b.onCommitFiberUnmount(c, a); + }); + } catch (d) {} + return !0; + } + function Se(a, b, c, d) { + this.tag = a; + this.key = c; + this.sibling = this.child = this.return = this.stateNode = this.type = null; + this.index = 0; + this.ref = null; + this.pendingProps = b; + this.firstContextDependency = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = d; + this.effectTag = 0; + this.lastEffect = this.firstEffect = this.nextEffect = null; + this.childExpirationTime = this.expirationTime = 0; + this.alternate = null; + } + function Te(a) { + a = a.prototype; + return !(!a || !a.isReactComponent); + } + function Ue(a, b, c) { + var d = a.alternate; + null === d + ? ((d = new Se(a.tag, b, a.key, a.mode)), + (d.type = a.type), + (d.stateNode = a.stateNode), + (d.alternate = a), + (a.alternate = d)) + : ((d.pendingProps = b), + (d.effectTag = 0), + (d.nextEffect = null), + (d.firstEffect = null), + (d.lastEffect = null)); + d.childExpirationTime = a.childExpirationTime; + d.expirationTime = b !== a.pendingProps ? c : a.expirationTime; + d.child = a.child; + d.memoizedProps = a.memoizedProps; + d.memoizedState = a.memoizedState; + d.updateQueue = a.updateQueue; + d.firstContextDependency = a.firstContextDependency; + d.sibling = a.sibling; + d.index = a.index; + d.ref = a.ref; + return d; + } + function Ve(a, b, c) { + var d = a.type, + e = a.key; + a = a.props; + var f = void 0; + if ("function" === typeof d) f = Te(d) ? 2 : 4; + else if ("string" === typeof d) f = 7; + else + a: switch (d) { + case bc: + return We(a.children, b, c, e); + case gc: + f = 10; + b |= 3; + break; + case cc: + f = 10; + b |= 2; + break; + case dc: + return ( + (d = new Se(15, a, e, b | 4)), + (d.type = dc), + (d.expirationTime = c), + d + ); + case ic: + f = 16; + break; + default: + if ("object" === typeof d && null !== d) + switch (d.$$typeof) { + case ec: + f = 12; + break a; + case fc: + f = 11; + break a; + case hc: + f = 13; + break a; + default: + if ("function" === typeof d.then) { + f = 4; + break a; + } + } + t("130", null == d ? d : typeof d, ""); + } + b = new Se(f, a, e, b); + b.type = d; + b.expirationTime = c; + return b; + } + function We(a, b, c, d) { + a = new Se(9, a, d, b); + a.expirationTime = c; + return a; + } + function Xe(a, b, c) { + a = new Se(8, a, null, b); + a.expirationTime = c; + return a; + } + function Ye(a, b, c) { + b = new Se(6, null !== a.children ? a.children : [], a.key, b); + b.expirationTime = c; + b.stateNode = { + containerInfo: a.containerInfo, + pendingChildren: null, + implementation: a.implementation + }; + return b; + } + function Ze(a, b) { + a.didError = !1; + var c = a.earliestPendingTime; + 0 === c + ? (a.earliestPendingTime = a.latestPendingTime = b) + : c > b + ? (a.earliestPendingTime = b) + : a.latestPendingTime < b && (a.latestPendingTime = b); + $e(b, a); + } + function $e(a, b) { + var c = b.earliestSuspendedTime, + d = b.latestSuspendedTime, + e = b.earliestPendingTime, + f = b.latestPingedTime; + e = 0 !== e ? e : f; + 0 === e && (0 === a || d > a) && (e = d); + a = e; + 0 !== a && 0 !== c && c < a && (a = c); + b.nextExpirationTimeToWorkOn = e; + b.expirationTime = a; + } + var af = !1; + function bf(a) { + return { + baseState: a, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + function cf(a) { + return { + baseState: a.baseState, + firstUpdate: a.firstUpdate, + lastUpdate: a.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + function df(a) { + return { + expirationTime: a, + tag: 0, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + function ef(a, b) { + null === a.lastUpdate + ? (a.firstUpdate = a.lastUpdate = b) + : ((a.lastUpdate.next = b), (a.lastUpdate = b)); + } + function ff(a, b) { + var c = a.alternate; + if (null === c) { + var d = a.updateQueue; + var e = null; + null === d && (d = a.updateQueue = bf(a.memoizedState)); + } else + (d = a.updateQueue), + (e = c.updateQueue), + null === d + ? null === e + ? ((d = a.updateQueue = bf(a.memoizedState)), + (e = c.updateQueue = bf(c.memoizedState))) + : (d = a.updateQueue = cf(e)) + : null === e && (e = c.updateQueue = cf(d)); + null === e || d === e + ? ef(d, b) + : null === d.lastUpdate || null === e.lastUpdate + ? (ef(d, b), ef(e, b)) + : (ef(d, b), (e.lastUpdate = b)); + } + function gf(a, b) { + var c = a.updateQueue; + c = null === c ? (a.updateQueue = bf(a.memoizedState)) : hf(a, c); + null === c.lastCapturedUpdate + ? (c.firstCapturedUpdate = c.lastCapturedUpdate = b) + : ((c.lastCapturedUpdate.next = b), (c.lastCapturedUpdate = b)); + } + function hf(a, b) { + var c = a.alternate; + null !== c && b === c.updateQueue && (b = a.updateQueue = cf(b)); + return b; + } + function jf(a, b, c, d, e, f) { + switch (c.tag) { + case 1: + return ( + (a = c.payload), "function" === typeof a ? a.call(f, d, e) : a + ); + case 3: + a.effectTag = (a.effectTag & -1025) | 64; + case 0: + a = c.payload; + e = "function" === typeof a ? a.call(f, d, e) : a; + if (null === e || void 0 === e) break; + return n({}, d, e); + case 2: + af = !0; + } + return d; + } + function kf(a, b, c, d, e) { + af = !1; + b = hf(a, b); + for ( + var f = b.baseState, g = null, h = 0, k = b.firstUpdate, l = f; + null !== k; + + ) { + var m = k.expirationTime; + if (m > e) { + if ((null === g && ((g = k), (f = l)), 0 === h || h > m)) h = m; + } else + (l = jf(a, b, k, l, c, d)), + null !== k.callback && + ((a.effectTag |= 32), + (k.nextEffect = null), + null === b.lastEffect + ? (b.firstEffect = b.lastEffect = k) + : ((b.lastEffect.nextEffect = k), (b.lastEffect = k))); + k = k.next; + } + m = null; + for (k = b.firstCapturedUpdate; null !== k; ) { + var r = k.expirationTime; + if (r > e) { + if ( + (null === m && ((m = k), null === g && (f = l)), 0 === h || h > r) + ) + h = r; + } else + (l = jf(a, b, k, l, c, d)), + null !== k.callback && + ((a.effectTag |= 32), + (k.nextEffect = null), + null === b.lastCapturedEffect + ? (b.firstCapturedEffect = b.lastCapturedEffect = k) + : ((b.lastCapturedEffect.nextEffect = k), + (b.lastCapturedEffect = k))); + k = k.next; + } + null === g && (b.lastUpdate = null); + null === m ? (b.lastCapturedUpdate = null) : (a.effectTag |= 32); + null === g && null === m && (f = l); + b.baseState = f; + b.firstUpdate = g; + b.firstCapturedUpdate = m; + a.expirationTime = h; + a.memoizedState = l; + } + function lf(a, b, c) { + null !== b.firstCapturedUpdate && + (null !== b.lastUpdate && + ((b.lastUpdate.next = b.firstCapturedUpdate), + (b.lastUpdate = b.lastCapturedUpdate)), + (b.firstCapturedUpdate = b.lastCapturedUpdate = null)); + mf(b.firstEffect, c); + b.firstEffect = b.lastEffect = null; + mf(b.firstCapturedEffect, c); + b.firstCapturedEffect = b.lastCapturedEffect = null; + } + function mf(a, b) { + for (; null !== a; ) { + var c = a.callback; + if (null !== c) { + a.callback = null; + var d = b; + "function" !== typeof c ? t("191", c) : void 0; + c.call(d); + } + a = a.nextEffect; + } + } + function nf(a, b) { + return { value: a, source: b, stack: mc(b) }; + } + var of = { current: null }, + pf = null, + qf = null, + rf = null; + function sf(a, b) { + var c = a.type._context; + H(of, c._currentValue, a); + c._currentValue = b; + } + function tf(a) { + var b = of.current; + G(of, a); + a.type._context._currentValue = b; + } + function uf(a) { + pf = a; + rf = qf = null; + a.firstContextDependency = null; + } + function vf(a, b) { + if (rf !== a && !1 !== b && 0 !== b) { + if ("number" !== typeof b || 1073741823 === b) + (rf = a), (b = 1073741823); + b = { context: a, observedBits: b, next: null }; + null === qf + ? (null === pf ? t("277") : void 0, + (pf.firstContextDependency = qf = b)) + : (qf = qf.next = b); + } + return a._currentValue; + } + var wf = {}, + L = { current: wf }, + xf = { current: wf }, + yf = { current: wf }; + function zf(a) { + a === wf ? t("174") : void 0; + return a; + } + function Af(a, b) { + H(yf, b, a); + H(xf, a, a); + H(L, wf, a); + var c = b.nodeType; + switch (c) { + case 9: + case 11: + b = (b = b.documentElement) ? b.namespaceURI : le(null, ""); + break; + default: + (c = 8 === c ? b.parentNode : b), + (b = c.namespaceURI || null), + (c = c.tagName), + (b = le(b, c)); + } + G(L, a); + H(L, b, a); + } + function Bf(a) { + G(L, a); + G(xf, a); + G(yf, a); + } + function Cf(a) { + zf(yf.current); + var b = zf(L.current); + var c = le(b, a.type); + b !== c && (H(xf, a, a), H(L, c, a)); + } + function Df(a) { + xf.current === a && (G(L, a), G(xf, a)); + } + var Ef = new aa.Component().refs; + function Ff(a, b, c, d) { + b = a.memoizedState; + c = c(d, b); + c = null === c || void 0 === c ? b : n({}, b, c); + a.memoizedState = c; + d = a.updateQueue; + null !== d && 0 === a.expirationTime && (d.baseState = c); + } + var Jf = { + isMounted: function(a) { + return (a = a._reactInternalFiber) ? 2 === jd(a) : !1; + }, + enqueueSetState: function(a, b, c) { + a = a._reactInternalFiber; + var d = Gf(); + d = Hf(d, a); + var e = df(d); + e.payload = b; + void 0 !== c && null !== c && (e.callback = c); + ff(a, e); + If(a, d); + }, + enqueueReplaceState: function(a, b, c) { + a = a._reactInternalFiber; + var d = Gf(); + d = Hf(d, a); + var e = df(d); + e.tag = 1; + e.payload = b; + void 0 !== c && null !== c && (e.callback = c); + ff(a, e); + If(a, d); + }, + enqueueForceUpdate: function(a, b) { + a = a._reactInternalFiber; + var c = Gf(); + c = Hf(c, a); + var d = df(c); + d.tag = 2; + void 0 !== b && null !== b && (d.callback = b); + ff(a, d); + If(a, c); + } + }; + function Kf(a, b, c, d, e, f, g) { + a = a.stateNode; + return "function" === typeof a.shouldComponentUpdate + ? a.shouldComponentUpdate(d, f, g) + : b.prototype && b.prototype.isPureReactComponent + ? !id(c, d) || !id(e, f) + : !0; + } + function Lf(a, b, c, d) { + a = b.state; + "function" === typeof b.componentWillReceiveProps && + b.componentWillReceiveProps(c, d); + "function" === typeof b.UNSAFE_componentWillReceiveProps && + b.UNSAFE_componentWillReceiveProps(c, d); + b.state !== a && Jf.enqueueReplaceState(b, b.state, null); + } + function Mf(a, b, c, d) { + var e = a.stateNode, + f = K(b) ? Ge : I.current; + e.props = c; + e.state = a.memoizedState; + e.refs = Ef; + e.context = He(a, f); + f = a.updateQueue; + null !== f && (kf(a, f, c, e, d), (e.state = a.memoizedState)); + f = b.getDerivedStateFromProps; + "function" === typeof f && + (Ff(a, b, f, c), (e.state = a.memoizedState)); + "function" === typeof b.getDerivedStateFromProps || + "function" === typeof e.getSnapshotBeforeUpdate || + ("function" !== typeof e.UNSAFE_componentWillMount && + "function" !== typeof e.componentWillMount) || + ((b = e.state), + "function" === typeof e.componentWillMount && e.componentWillMount(), + "function" === typeof e.UNSAFE_componentWillMount && + e.UNSAFE_componentWillMount(), + b !== e.state && Jf.enqueueReplaceState(e, e.state, null), + (f = a.updateQueue), + null !== f && (kf(a, f, c, e, d), (e.state = a.memoizedState))); + "function" === typeof e.componentDidMount && (a.effectTag |= 4); + } + var Nf = Array.isArray; + function Of(a, b, c) { + a = c.ref; + if (null !== a && "function" !== typeof a && "object" !== typeof a) { + if (c._owner) { + c = c._owner; + var d = void 0; + c && + (2 !== c.tag && 3 !== c.tag ? t("110") : void 0, + (d = c.stateNode)); + d ? void 0 : t("147", a); + var e = "" + a; + if ( + null !== b && + null !== b.ref && + "function" === typeof b.ref && + b.ref._stringRef === e + ) + return b.ref; + b = function(a) { + var b = d.refs; + b === Ef && (b = d.refs = {}); + null === a ? delete b[e] : (b[e] = a); + }; + b._stringRef = e; + return b; + } + "string" !== typeof a ? t("284") : void 0; + c._owner ? void 0 : t("254", a); + } + return a; + } + function Pf(a, b) { + "textarea" !== a.type && + t( + "31", + "[object Object]" === Object.prototype.toString.call(b) + ? "object with keys {" + Object.keys(b).join(", ") + "}" + : b, + "" + ); + } + function Qf(a) { + function b(b, c) { + if (a) { + var d = b.lastEffect; + null !== d + ? ((d.nextEffect = c), (b.lastEffect = c)) + : (b.firstEffect = b.lastEffect = c); + c.nextEffect = null; + c.effectTag = 8; + } + } + function c(c, d) { + if (!a) return null; + for (; null !== d; ) b(c, d), (d = d.sibling); + return null; + } + function d(a, b) { + for (a = new Map(); null !== b; ) + null !== b.key ? a.set(b.key, b) : a.set(b.index, b), + (b = b.sibling); + return a; + } + function e(a, b, c) { + a = Ue(a, b, c); + a.index = 0; + a.sibling = null; + return a; + } + function f(b, c, d) { + b.index = d; + if (!a) return c; + d = b.alternate; + if (null !== d) + return (d = d.index), d < c ? ((b.effectTag = 2), c) : d; + b.effectTag = 2; + return c; + } + function g(b) { + a && null === b.alternate && (b.effectTag = 2); + return b; + } + function h(a, b, c, d) { + if (null === b || 8 !== b.tag) + return (b = Xe(c, a.mode, d)), (b.return = a), b; + b = e(b, c, d); + b.return = a; + return b; + } + function k(a, b, c, d) { + if (null !== b && b.type === c.type) + return ( + (d = e(b, c.props, d)), (d.ref = Of(a, b, c)), (d.return = a), d + ); + d = Ve(c, a.mode, d); + d.ref = Of(a, b, c); + d.return = a; + return d; + } + function l(a, b, c, d) { + if ( + null === b || + 6 !== b.tag || + b.stateNode.containerInfo !== c.containerInfo || + b.stateNode.implementation !== c.implementation + ) + return (b = Ye(c, a.mode, d)), (b.return = a), b; + b = e(b, c.children || [], d); + b.return = a; + return b; + } + function m(a, b, c, d, f) { + if (null === b || 9 !== b.tag) + return (b = We(c, a.mode, d, f)), (b.return = a), b; + b = e(b, c, d); + b.return = a; + return b; + } + function r(a, b, c) { + if ("string" === typeof b || "number" === typeof b) + return (b = Xe("" + b, a.mode, c)), (b.return = a), b; + if ("object" === typeof b && null !== b) { + switch (b.$$typeof) { + case $b: + return ( + (c = Ve(b, a.mode, c)), + (c.ref = Of(a, null, b)), + (c.return = a), + c + ); + case ac: + return (b = Ye(b, a.mode, c)), (b.return = a), b; + } + if (Nf(b) || kc(b)) + return (b = We(b, a.mode, c, null)), (b.return = a), b; + Pf(a, b); + } + return null; + } + function A(a, b, c, d) { + var e = null !== b ? b.key : null; + if ("string" === typeof c || "number" === typeof c) + return null !== e ? null : h(a, b, "" + c, d); + if ("object" === typeof c && null !== c) { + switch (c.$$typeof) { + case $b: + return c.key === e + ? c.type === bc + ? m(a, b, c.props.children, d, e) + : k(a, b, c, d) + : null; + case ac: + return c.key === e ? l(a, b, c, d) : null; + } + if (Nf(c) || kc(c)) return null !== e ? null : m(a, b, c, d, null); + Pf(a, c); + } + return null; + } + function S(a, b, c, d, e) { + if ("string" === typeof d || "number" === typeof d) + return (a = a.get(c) || null), h(b, a, "" + d, e); + if ("object" === typeof d && null !== d) { + switch (d.$$typeof) { + case $b: + return ( + (a = a.get(null === d.key ? c : d.key) || null), + d.type === bc + ? m(b, a, d.props.children, e, d.key) + : k(b, a, d, e) + ); + case ac: + return ( + (a = a.get(null === d.key ? c : d.key) || null), l(b, a, d, e) + ); + } + if (Nf(d) || kc(d)) + return (a = a.get(c) || null), m(b, a, d, e, null); + Pf(b, d); + } + return null; + } + function B(e, g, h, k) { + for ( + var l = null, m = null, p = g, u = (g = 0), q = null; + null !== p && u < h.length; + u++ + ) { + p.index > u ? ((q = p), (p = null)) : (q = p.sibling); + var v = A(e, p, h[u], k); + if (null === v) { + null === p && (p = q); + break; + } + a && p && null === v.alternate && b(e, p); + g = f(v, g, u); + null === m ? (l = v) : (m.sibling = v); + m = v; + p = q; + } + if (u === h.length) return c(e, p), l; + if (null === p) { + for (; u < h.length; u++) + if ((p = r(e, h[u], k))) + (g = f(p, g, u)), + null === m ? (l = p) : (m.sibling = p), + (m = p); + return l; + } + for (p = d(e, p); u < h.length; u++) + if ((q = S(p, e, u, h[u], k))) + a && null !== q.alternate && p.delete(null === q.key ? u : q.key), + (g = f(q, g, u)), + null === m ? (l = q) : (m.sibling = q), + (m = q); + a && + p.forEach(function(a) { + return b(e, a); + }); + return l; + } + function P(e, g, h, k) { + var l = kc(h); + "function" !== typeof l ? t("150") : void 0; + h = l.call(h); + null == h ? t("151") : void 0; + for ( + var m = (l = null), p = g, u = (g = 0), q = null, v = h.next(); + null !== p && !v.done; + u++, v = h.next() + ) { + p.index > u ? ((q = p), (p = null)) : (q = p.sibling); + var x = A(e, p, v.value, k); + if (null === x) { + p || (p = q); + break; + } + a && p && null === x.alternate && b(e, p); + g = f(x, g, u); + null === m ? (l = x) : (m.sibling = x); + m = x; + p = q; + } + if (v.done) return c(e, p), l; + if (null === p) { + for (; !v.done; u++, v = h.next()) + (v = r(e, v.value, k)), + null !== v && + ((g = f(v, g, u)), + null === m ? (l = v) : (m.sibling = v), + (m = v)); + return l; + } + for (p = d(e, p); !v.done; u++, v = h.next()) + (v = S(p, e, u, v.value, k)), + null !== v && + (a && + null !== v.alternate && + p.delete(null === v.key ? u : v.key), + (g = f(v, g, u)), + null === m ? (l = v) : (m.sibling = v), + (m = v)); + a && + p.forEach(function(a) { + return b(e, a); + }); + return l; + } + return function(a, d, f, h) { + var k = + "object" === typeof f && + null !== f && + f.type === bc && + null === f.key; + k && (f = f.props.children); + var l = "object" === typeof f && null !== f; + if (l) + switch (f.$$typeof) { + case $b: + a: { + l = f.key; + for (k = d; null !== k; ) { + if (k.key === l) + if (9 === k.tag ? f.type === bc : k.type === f.type) { + c(a, k.sibling); + d = e(k, f.type === bc ? f.props.children : f.props, h); + d.ref = Of(a, k, f); + d.return = a; + a = d; + break a; + } else { + c(a, k); + break; + } + else b(a, k); + k = k.sibling; + } + f.type === bc + ? ((d = We(f.props.children, a.mode, h, f.key)), + (d.return = a), + (a = d)) + : ((h = Ve(f, a.mode, h)), + (h.ref = Of(a, d, f)), + (h.return = a), + (a = h)); + } + return g(a); + case ac: + a: { + for (k = f.key; null !== d; ) { + if (d.key === k) + if ( + 6 === d.tag && + d.stateNode.containerInfo === f.containerInfo && + d.stateNode.implementation === f.implementation + ) { + c(a, d.sibling); + d = e(d, f.children || [], h); + d.return = a; + a = d; + break a; + } else { + c(a, d); + break; + } + else b(a, d); + d = d.sibling; + } + d = Ye(f, a.mode, h); + d.return = a; + a = d; + } + return g(a); + } + if ("string" === typeof f || "number" === typeof f) + return ( + (f = "" + f), + null !== d && 8 === d.tag + ? (c(a, d.sibling), (d = e(d, f, h)), (d.return = a), (a = d)) + : (c(a, d), (d = Xe(f, a.mode, h)), (d.return = a), (a = d)), + g(a) + ); + if (Nf(f)) return B(a, d, f, h); + if (kc(f)) return P(a, d, f, h); + l && Pf(a, f); + if ("undefined" === typeof f && !k) + switch (a.tag) { + case 2: + case 3: + case 0: + (h = a.type), t("152", h.displayName || h.name || "Component"); + } + return c(a, d); + }; + } + var Rf = Qf(!0), + Sf = Qf(!1), + Tf = null, + Uf = null, + Vf = !1; + function Wf(a, b) { + var c = new Se(7, null, null, 0); + c.type = "DELETED"; + c.stateNode = b; + c.return = a; + c.effectTag = 8; + null !== a.lastEffect + ? ((a.lastEffect.nextEffect = c), (a.lastEffect = c)) + : (a.firstEffect = a.lastEffect = c); + } + function Xf(a, b) { + switch (a.tag) { + case 7: + var c = a.type; + b = + 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() + ? null + : b; + return null !== b ? ((a.stateNode = b), !0) : !1; + case 8: + return ( + (b = "" === a.pendingProps || 3 !== b.nodeType ? null : b), + null !== b ? ((a.stateNode = b), !0) : !1 + ); + default: + return !1; + } + } + function Yf(a) { + if (Vf) { + var b = Uf; + if (b) { + var c = b; + if (!Xf(a, b)) { + b = Be(c); + if (!b || !Xf(a, b)) { + a.effectTag |= 2; + Vf = !1; + Tf = a; + return; + } + Wf(Tf, c); + } + Tf = a; + Uf = Ce(b); + } else (a.effectTag |= 2), (Vf = !1), (Tf = a); + } + } + function Zf(a) { + for (a = a.return; null !== a && 7 !== a.tag && 5 !== a.tag; ) + a = a.return; + Tf = a; + } + function $f(a) { + if (a !== Tf) return !1; + if (!Vf) return Zf(a), (Vf = !0), !1; + var b = a.type; + if ( + 7 !== a.tag || + ("head" !== b && "body" !== b && !Ae(b, a.memoizedProps)) + ) + for (b = Uf; b; ) Wf(a, b), (b = Be(b)); + Zf(a); + Uf = Tf ? Be(a.stateNode) : null; + return !0; + } + function ag() { + Uf = Tf = null; + Vf = !1; + } + function bg(a) { + switch (a._reactStatus) { + case 1: + return a._reactResult; + case 2: + throw a._reactResult; + case 0: + throw a; + default: + throw ((a._reactStatus = 0), + a.then( + function(b) { + if (0 === a._reactStatus) { + a._reactStatus = 1; + if ("object" === typeof b && null !== b) { + var c = b.default; + b = void 0 !== c && null !== c ? c : b; + } + a._reactResult = b; + } + }, + function(b) { + 0 === a._reactStatus && + ((a._reactStatus = 2), (a._reactResult = b)); + } + ), + a); + } + } + var cg = Yb.ReactCurrentOwner; + function M(a, b, c, d) { + b.child = null === a ? Sf(b, null, c, d) : Rf(b, a.child, c, d); + } + function dg(a, b, c, d, e) { + c = c.render; + var f = b.ref; + if ( + !J.current && + b.memoizedProps === d && + f === (null !== a ? a.ref : null) + ) + return eg(a, b, e); + c = c(d, f); + M(a, b, c, e); + b.memoizedProps = d; + return b.child; + } + function fg(a, b) { + var c = b.ref; + if ((null === a && null !== c) || (null !== a && a.ref !== c)) + b.effectTag |= 128; + } + function gg(a, b, c, d, e) { + var f = K(c) ? Ge : I.current; + f = He(b, f); + uf(b, e); + c = c(d, f); + b.effectTag |= 1; + M(a, b, c, e); + b.memoizedProps = d; + return b.child; + } + function hg(a, b, c, d, e) { + if (K(c)) { + var f = !0; + Me(b); + } else f = !1; + uf(b, e); + if (null === a) + if (null === b.stateNode) { + var g = K(c) ? Ge : I.current, + h = c.contextTypes, + k = null !== h && void 0 !== h; + h = k ? He(b, g) : Fe; + var l = new c(d, h); + b.memoizedState = + null !== l.state && void 0 !== l.state ? l.state : null; + l.updater = Jf; + b.stateNode = l; + l._reactInternalFiber = b; + k && + ((k = b.stateNode), + (k.__reactInternalMemoizedUnmaskedChildContext = g), + (k.__reactInternalMemoizedMaskedChildContext = h)); + Mf(b, c, d, e); + d = !0; + } else { + g = b.stateNode; + h = b.memoizedProps; + g.props = h; + var m = g.context; + k = K(c) ? Ge : I.current; + k = He(b, k); + var r = c.getDerivedStateFromProps; + (l = + "function" === typeof r || + "function" === typeof g.getSnapshotBeforeUpdate) || + ("function" !== typeof g.UNSAFE_componentWillReceiveProps && + "function" !== typeof g.componentWillReceiveProps) || + ((h !== d || m !== k) && Lf(b, g, d, k)); + af = !1; + var A = b.memoizedState; + m = g.state = A; + var S = b.updateQueue; + null !== S && (kf(b, S, d, g, e), (m = b.memoizedState)); + h !== d || A !== m || J.current || af + ? ("function" === typeof r && + (Ff(b, c, r, d), (m = b.memoizedState)), + (h = af || Kf(b, c, h, d, A, m, k)) + ? (l || + ("function" !== typeof g.UNSAFE_componentWillMount && + "function" !== typeof g.componentWillMount) || + ("function" === typeof g.componentWillMount && + g.componentWillMount(), + "function" === typeof g.UNSAFE_componentWillMount && + g.UNSAFE_componentWillMount()), + "function" === typeof g.componentDidMount && + (b.effectTag |= 4)) + : ("function" === typeof g.componentDidMount && + (b.effectTag |= 4), + (b.memoizedProps = d), + (b.memoizedState = m)), + (g.props = d), + (g.state = m), + (g.context = k), + (d = h)) + : ("function" === typeof g.componentDidMount && + (b.effectTag |= 4), + (d = !1)); + } + else + (g = b.stateNode), + (h = b.memoizedProps), + (g.props = h), + (m = g.context), + (k = K(c) ? Ge : I.current), + (k = He(b, k)), + (r = c.getDerivedStateFromProps), + (l = + "function" === typeof r || + "function" === typeof g.getSnapshotBeforeUpdate) || + ("function" !== typeof g.UNSAFE_componentWillReceiveProps && + "function" !== typeof g.componentWillReceiveProps) || + ((h !== d || m !== k) && Lf(b, g, d, k)), + (af = !1), + (m = b.memoizedState), + (A = g.state = m), + (S = b.updateQueue), + null !== S && (kf(b, S, d, g, e), (A = b.memoizedState)), + h !== d || m !== A || J.current || af + ? ("function" === typeof r && + (Ff(b, c, r, d), (A = b.memoizedState)), + (r = af || Kf(b, c, h, d, m, A, k)) + ? (l || + ("function" !== typeof g.UNSAFE_componentWillUpdate && + "function" !== typeof g.componentWillUpdate) || + ("function" === typeof g.componentWillUpdate && + g.componentWillUpdate(d, A, k), + "function" === typeof g.UNSAFE_componentWillUpdate && + g.UNSAFE_componentWillUpdate(d, A, k)), + "function" === typeof g.componentDidUpdate && + (b.effectTag |= 4), + "function" === typeof g.getSnapshotBeforeUpdate && + (b.effectTag |= 256)) + : ("function" !== typeof g.componentDidUpdate || + (h === a.memoizedProps && m === a.memoizedState) || + (b.effectTag |= 4), + "function" !== typeof g.getSnapshotBeforeUpdate || + (h === a.memoizedProps && m === a.memoizedState) || + (b.effectTag |= 256), + (b.memoizedProps = d), + (b.memoizedState = A)), + (g.props = d), + (g.state = A), + (g.context = k), + (d = r)) + : ("function" !== typeof g.componentDidUpdate || + (h === a.memoizedProps && m === a.memoizedState) || + (b.effectTag |= 4), + "function" !== typeof g.getSnapshotBeforeUpdate || + (h === a.memoizedProps && m === a.memoizedState) || + (b.effectTag |= 256), + (d = !1)); + return ig(a, b, c, d, f, e); + } + function ig(a, b, c, d, e, f) { + fg(a, b); + var g = 0 !== (b.effectTag & 64); + if (!d && !g) return e && Ne(b, c, !1), eg(a, b, f); + d = b.stateNode; + cg.current = b; + var h = g ? null : d.render(); + b.effectTag |= 1; + null !== a && g && (M(a, b, null, f), (b.child = null)); + M(a, b, h, f); + b.memoizedState = d.state; + b.memoizedProps = d.props; + e && Ne(b, c, !0); + return b.child; + } + function jg(a) { + var b = a.stateNode; + b.pendingContext + ? Ke(a, b.pendingContext, b.pendingContext !== b.context) + : b.context && Ke(a, b.context, !1); + Af(a, b.containerInfo); + } + function ng(a, b) { + if (a && a.defaultProps) { + b = n({}, b); + a = a.defaultProps; + for (var c in a) void 0 === b[c] && (b[c] = a[c]); + } + return b; + } + function og(a, b, c, d) { + null !== a ? t("155") : void 0; + var e = b.pendingProps; + if ( + "object" === typeof c && + null !== c && + "function" === typeof c.then + ) { + c = bg(c); + var f = c; + f = + "function" === typeof f + ? Te(f) + ? 3 + : 1 + : void 0 !== f && null !== f && f.$$typeof + ? 14 + : 4; + f = b.tag = f; + var g = ng(c, e); + switch (f) { + case 1: + return gg(a, b, c, g, d); + case 3: + return hg(a, b, c, g, d); + case 14: + return dg(a, b, c, g, d); + default: + t("283", c); + } + } + f = He(b, I.current); + uf(b, d); + f = c(e, f); + b.effectTag |= 1; + if ( + "object" === typeof f && + null !== f && + "function" === typeof f.render && + void 0 === f.$$typeof + ) { + b.tag = 2; + K(c) ? ((g = !0), Me(b)) : (g = !1); + b.memoizedState = + null !== f.state && void 0 !== f.state ? f.state : null; + var h = c.getDerivedStateFromProps; + "function" === typeof h && Ff(b, c, h, e); + f.updater = Jf; + b.stateNode = f; + f._reactInternalFiber = b; + Mf(b, c, e, d); + return ig(a, b, c, !0, g, d); + } + b.tag = 0; + M(a, b, f, d); + b.memoizedProps = e; + return b.child; + } + function eg(a, b, c) { + null !== a && (b.firstContextDependency = a.firstContextDependency); + var d = b.childExpirationTime; + if (0 === d || d > c) return null; + null !== a && b.child !== a.child ? t("153") : void 0; + if (null !== b.child) { + a = b.child; + c = Ue(a, a.pendingProps, a.expirationTime); + b.child = c; + for (c.return = b; null !== a.sibling; ) + (a = a.sibling), + (c = c.sibling = Ue(a, a.pendingProps, a.expirationTime)), + (c.return = b); + c.sibling = null; + } + return b.child; + } + function pg(a, b, c) { + var d = b.expirationTime; + if (!J.current && (0 === d || d > c)) { + switch (b.tag) { + case 5: + jg(b); + ag(); + break; + case 7: + Cf(b); + break; + case 2: + K(b.type) && Me(b); + break; + case 3: + K(b.type._reactResult) && Me(b); + break; + case 6: + Af(b, b.stateNode.containerInfo); + break; + case 12: + sf(b, b.memoizedProps.value); + } + return eg(a, b, c); + } + b.expirationTime = 0; + switch (b.tag) { + case 4: + return og(a, b, b.type, c); + case 0: + return gg(a, b, b.type, b.pendingProps, c); + case 1: + var e = b.type._reactResult; + d = b.pendingProps; + a = gg(a, b, e, ng(e, d), c); + b.memoizedProps = d; + return a; + case 2: + return hg(a, b, b.type, b.pendingProps, c); + case 3: + return ( + (e = b.type._reactResult), + (d = b.pendingProps), + (a = hg(a, b, e, ng(e, d), c)), + (b.memoizedProps = d), + a + ); + case 5: + jg(b); + d = b.updateQueue; + null === d ? t("282") : void 0; + e = b.memoizedState; + e = null !== e ? e.element : null; + kf(b, d, b.pendingProps, null, c); + d = b.memoizedState.element; + if (d === e) ag(), (b = eg(a, b, c)); + else { + e = b.stateNode; + if ((e = (null === a || null === a.child) && e.hydrate)) + (Uf = Ce(b.stateNode.containerInfo)), (Tf = b), (e = Vf = !0); + e + ? ((b.effectTag |= 2), (b.child = Sf(b, null, d, c))) + : (M(a, b, d, c), ag()); + b = b.child; + } + return b; + case 7: + Cf(b); + null === a && Yf(b); + d = b.type; + e = b.pendingProps; + var f = null !== a ? a.memoizedProps : null, + g = e.children; + Ae(d, e) + ? (g = null) + : null !== f && Ae(d, f) && (b.effectTag |= 16); + fg(a, b); + 1073741823 !== c && b.mode & 1 && e.hidden + ? ((b.expirationTime = 1073741823), + (b.memoizedProps = e), + (b = null)) + : (M(a, b, g, c), (b.memoizedProps = e), (b = b.child)); + return b; + case 8: + return ( + null === a && Yf(b), (b.memoizedProps = b.pendingProps), null + ); + case 16: + return null; + case 6: + return ( + Af(b, b.stateNode.containerInfo), + (d = b.pendingProps), + null === a ? (b.child = Rf(b, null, d, c)) : M(a, b, d, c), + (b.memoizedProps = d), + b.child + ); + case 13: + return dg(a, b, b.type, b.pendingProps, c); + case 14: + return ( + (e = b.type._reactResult), + (d = b.pendingProps), + (a = dg(a, b, e, ng(e, d), c)), + (b.memoizedProps = d), + a + ); + case 9: + return ( + (d = b.pendingProps), + M(a, b, d, c), + (b.memoizedProps = d), + b.child + ); + case 10: + return ( + (d = b.pendingProps.children), + M(a, b, d, c), + (b.memoizedProps = d), + b.child + ); + case 15: + return ( + (d = b.pendingProps), + M(a, b, d.children, c), + (b.memoizedProps = d), + b.child + ); + case 12: + a: { + d = b.type._context; + e = b.pendingProps; + g = b.memoizedProps; + f = e.value; + b.memoizedProps = e; + sf(b, f); + if (null !== g) { + var h = g.value; + f = + (h === f && (0 !== h || 1 / h === 1 / f)) || + (h !== h && f !== f) + ? 0 + : ("function" === typeof d._calculateChangedBits + ? d._calculateChangedBits(h, f) + : 1073741823) | 0; + if (0 === f) { + if (g.children === e.children && !J.current) { + b = eg(a, b, c); + break a; + } + } else + for ( + g = b.child, null !== g && (g.return = b); + null !== g; + + ) { + h = g.firstContextDependency; + if (null !== h) { + do { + if (h.context === d && 0 !== (h.observedBits & f)) { + if (2 === g.tag || 3 === g.tag) { + var k = df(c); + k.tag = 2; + ff(g, k); + } + if (0 === g.expirationTime || g.expirationTime > c) + g.expirationTime = c; + k = g.alternate; + null !== k && + (0 === k.expirationTime || k.expirationTime > c) && + (k.expirationTime = c); + for (var l = g.return; null !== l; ) { + k = l.alternate; + if ( + 0 === l.childExpirationTime || + l.childExpirationTime > c + ) + (l.childExpirationTime = c), + null !== k && + (0 === k.childExpirationTime || + k.childExpirationTime > c) && + (k.childExpirationTime = c); + else if ( + null !== k && + (0 === k.childExpirationTime || + k.childExpirationTime > c) + ) + k.childExpirationTime = c; + else break; + l = l.return; + } + } + k = g.child; + h = h.next; + } while (null !== h); + } else + k = + 12 === g.tag + ? g.type === b.type + ? null + : g.child + : g.child; + if (null !== k) k.return = g; + else + for (k = g; null !== k; ) { + if (k === b) { + k = null; + break; + } + g = k.sibling; + if (null !== g) { + g.return = k.return; + k = g; + break; + } + k = k.return; + } + g = k; + } + } + M(a, b, e.children, c); + b = b.child; + } + return b; + case 11: + return ( + (f = b.type), + (d = b.pendingProps), + (e = d.children), + uf(b, c), + (f = vf(f, d.unstable_observedBits)), + (e = e(f)), + (b.effectTag |= 1), + M(a, b, e, c), + (b.memoizedProps = d), + b.child + ); + default: + t("156"); + } + } + function qg(a) { + a.effectTag |= 4; + } + var rg = void 0, + sg = void 0, + tg = void 0; + rg = function() {}; + sg = function(a, b, c, d, e) { + var f = a.memoizedProps; + if (f !== d) { + var g = b.stateNode; + zf(L.current); + a = null; + switch (c) { + case "input": + f = zc(g, f); + d = zc(g, d); + a = []; + break; + case "option": + f = de(g, f); + d = de(g, d); + a = []; + break; + case "select": + f = n({}, f, { value: void 0 }); + d = n({}, d, { value: void 0 }); + a = []; + break; + case "textarea": + f = fe(g, f); + d = fe(g, d); + a = []; + break; + default: + "function" !== typeof f.onClick && + "function" === typeof d.onClick && + (g.onclick = we); + } + te(c, d); + g = c = void 0; + var h = null; + for (c in f) + if (!d.hasOwnProperty(c) && f.hasOwnProperty(c) && null != f[c]) + if ("style" === c) { + var k = f[c]; + for (g in k) + k.hasOwnProperty(g) && (h || (h = {}), (h[g] = "")); + } else + "dangerouslySetInnerHTML" !== c && + "children" !== c && + "suppressContentEditableWarning" !== c && + "suppressHydrationWarning" !== c && + "autoFocus" !== c && + (sa.hasOwnProperty(c) + ? a || (a = []) + : (a = a || []).push(c, null)); + for (c in d) { + var l = d[c]; + k = null != f ? f[c] : void 0; + if (d.hasOwnProperty(c) && l !== k && (null != l || null != k)) + if ("style" === c) + if (k) { + for (g in k) + !k.hasOwnProperty(g) || + (l && l.hasOwnProperty(g)) || + (h || (h = {}), (h[g] = "")); + for (g in l) + l.hasOwnProperty(g) && + k[g] !== l[g] && + (h || (h = {}), (h[g] = l[g])); + } else h || (a || (a = []), a.push(c, h)), (h = l); + else + "dangerouslySetInnerHTML" === c + ? ((l = l ? l.__html : void 0), + (k = k ? k.__html : void 0), + null != l && k !== l && (a = a || []).push(c, "" + l)) + : "children" === c + ? k === l || + ("string" !== typeof l && "number" !== typeof l) || + (a = a || []).push(c, "" + l) + : "suppressContentEditableWarning" !== c && + "suppressHydrationWarning" !== c && + (sa.hasOwnProperty(c) + ? (null != l && ve(e, c), a || k === l || (a = [])) + : (a = a || []).push(c, l)); + } + h && (a = a || []).push("style", h); + e = a; + (b.updateQueue = e) && qg(b); + } + }; + tg = function(a, b, c, d) { + c !== d && qg(b); + }; + function ug(a, b) { + var c = b.source, + d = b.stack; + null === d && null !== c && (d = mc(c)); + null !== c && lc(c.type); + b = b.value; + null !== a && 2 === a.tag && lc(a.type); + try { + console.error(b); + } catch (e) { + setTimeout(function() { + throw e; + }); + } + } + function vg(a) { + var b = a.ref; + if (null !== b) + if ("function" === typeof b) + try { + b(null); + } catch (c) { + wg(a, c); + } + else b.current = null; + } + function xg(a) { + "function" === typeof Pe && Pe(a); + switch (a.tag) { + case 2: + case 3: + vg(a); + var b = a.stateNode; + if ("function" === typeof b.componentWillUnmount) + try { + (b.props = a.memoizedProps), + (b.state = a.memoizedState), + b.componentWillUnmount(); + } catch (c) { + wg(a, c); + } + break; + case 7: + vg(a); + break; + case 6: + yg(a); + } + } + function zg(a) { + return 7 === a.tag || 5 === a.tag || 6 === a.tag; + } + function Ag(a) { + a: { + for (var b = a.return; null !== b; ) { + if (zg(b)) { + var c = b; + break a; + } + b = b.return; + } + t("160"); + c = void 0; + } + var d = (b = void 0); + switch (c.tag) { + case 7: + b = c.stateNode; + d = !1; + break; + case 5: + b = c.stateNode.containerInfo; + d = !0; + break; + case 6: + b = c.stateNode.containerInfo; + d = !0; + break; + default: + t("161"); + } + c.effectTag & 16 && (oe(b, ""), (c.effectTag &= -17)); + a: b: for (c = a; ; ) { + for (; null === c.sibling; ) { + if (null === c.return || zg(c.return)) { + c = null; + break a; + } + c = c.return; + } + c.sibling.return = c.return; + for (c = c.sibling; 7 !== c.tag && 8 !== c.tag; ) { + if (c.effectTag & 2) continue b; + if (null === c.child || 6 === c.tag) continue b; + else (c.child.return = c), (c = c.child); + } + if (!(c.effectTag & 2)) { + c = c.stateNode; + break a; + } + } + for (var e = a; ; ) { + if (7 === e.tag || 8 === e.tag) + if (c) + if (d) { + var f = b, + g = e.stateNode, + h = c; + 8 === f.nodeType + ? f.parentNode.insertBefore(g, h) + : f.insertBefore(g, h); + } else b.insertBefore(e.stateNode, c); + else + d + ? ((f = b), + (g = e.stateNode), + 8 === f.nodeType + ? ((h = f.parentNode), h.insertBefore(g, f)) + : ((h = f), h.appendChild(g)), + null === h.onclick && (h.onclick = we)) + : b.appendChild(e.stateNode); + else if (6 !== e.tag && null !== e.child) { + e.child.return = e; + e = e.child; + continue; + } + if (e === a) break; + for (; null === e.sibling; ) { + if (null === e.return || e.return === a) return; + e = e.return; + } + e.sibling.return = e.return; + e = e.sibling; + } + } + function yg(a) { + for (var b = a, c = !1, d = void 0, e = void 0; ; ) { + if (!c) { + c = b.return; + a: for (;;) { + null === c ? t("160") : void 0; + switch (c.tag) { + case 7: + d = c.stateNode; + e = !1; + break a; + case 5: + d = c.stateNode.containerInfo; + e = !0; + break a; + case 6: + d = c.stateNode.containerInfo; + e = !0; + break a; + } + c = c.return; + } + c = !0; + } + if (7 === b.tag || 8 === b.tag) { + a: for (var f = b, g = f; ; ) + if ((xg(g), null !== g.child && 6 !== g.tag)) + (g.child.return = g), (g = g.child); + else { + if (g === f) break; + for (; null === g.sibling; ) { + if (null === g.return || g.return === f) break a; + g = g.return; + } + g.sibling.return = g.return; + g = g.sibling; + } + e + ? ((f = d), + (g = b.stateNode), + 8 === f.nodeType + ? f.parentNode.removeChild(g) + : f.removeChild(g)) + : d.removeChild(b.stateNode); + } else if ( + (6 === b.tag ? ((d = b.stateNode.containerInfo), (e = !0)) : xg(b), + null !== b.child) + ) { + b.child.return = b; + b = b.child; + continue; + } + if (b === a) break; + for (; null === b.sibling; ) { + if (null === b.return || b.return === a) return; + b = b.return; + 6 === b.tag && (c = !1); + } + b.sibling.return = b.return; + b = b.sibling; + } + } + function Bg(a, b) { + switch (b.tag) { + case 2: + case 3: + break; + case 7: + var c = b.stateNode; + if (null != c) { + var d = b.memoizedProps, + e = null !== a ? a.memoizedProps : d; + a = b.type; + var f = b.updateQueue; + b.updateQueue = null; + if (null !== f) { + c[Ja] = d; + "input" === a && + "radio" === d.type && + null != d.name && + Cc(c, d); + ue(a, e); + b = ue(a, d); + for (e = 0; e < f.length; e += 2) { + var g = f[e], + h = f[e + 1]; + "style" === g + ? re(c, h) + : "dangerouslySetInnerHTML" === g + ? ne(c, h) + : "children" === g + ? oe(c, h) + : xc(c, g, h, b); + } + switch (a) { + case "input": + Dc(c, d); + break; + case "textarea": + he(c, d); + break; + case "select": + (a = c._wrapperState.wasMultiple), + (c._wrapperState.wasMultiple = !!d.multiple), + (f = d.value), + null != f + ? ee(c, !!d.multiple, f, !1) + : a !== !!d.multiple && + (null != d.defaultValue + ? ee(c, !!d.multiple, d.defaultValue, !0) + : ee(c, !!d.multiple, d.multiple ? [] : "", !1)); + } + } + } + break; + case 8: + null === b.stateNode ? t("162") : void 0; + b.stateNode.nodeValue = b.memoizedProps; + break; + case 5: + break; + case 15: + break; + case 16: + break; + default: + t("163"); + } + } + function Cg(a, b, c) { + c = df(c); + c.tag = 3; + c.payload = { element: null }; + var d = b.value; + c.callback = function() { + Dg(d); + ug(a, b); + }; + return c; + } + function Eg(a, b, c) { + c = df(c); + c.tag = 3; + var d = a.stateNode; + null !== d && + "function" === typeof d.componentDidCatch && + (c.callback = function() { + null === Fg ? (Fg = new Set([this])) : Fg.add(this); + var c = b.value, + d = b.stack; + ug(a, b); + this.componentDidCatch(c, { componentStack: null !== d ? d : "" }); + }); + return c; + } + function Gg(a) { + switch (a.tag) { + case 2: + K(a.type) && Ie(a); + var b = a.effectTag; + return b & 1024 ? ((a.effectTag = (b & -1025) | 64), a) : null; + case 3: + return ( + K(a.type._reactResult) && Ie(a), + (b = a.effectTag), + b & 1024 ? ((a.effectTag = (b & -1025) | 64), a) : null + ); + case 5: + return ( + Bf(a), + Je(a), + (b = a.effectTag), + 0 !== (b & 64) ? t("285") : void 0, + (a.effectTag = (b & -1025) | 64), + a + ); + case 7: + return Df(a), null; + case 16: + return ( + (b = a.effectTag), + b & 1024 ? ((a.effectTag = (b & -1025) | 64), a) : null + ); + case 6: + return Bf(a), null; + case 12: + return tf(a), null; + default: + return null; + } + } + var Hg = { readContext: vf }, + Ig = Yb.ReactCurrentOwner, + Jg = 0, + Kg = 0, + Lg = !1, + N = null, + Mg = null, + O = 0, + Ng = !1, + Q = null, + Og = !1, + Fg = null; + function Pg() { + if (null !== N) + for (var a = N.return; null !== a; ) { + var b = a; + switch (b.tag) { + case 2: + var c = b.type.childContextTypes; + null !== c && void 0 !== c && Ie(b); + break; + case 3: + c = b.type._reactResult.childContextTypes; + null !== c && void 0 !== c && Ie(b); + break; + case 5: + Bf(b); + Je(b); + break; + case 7: + Df(b); + break; + case 6: + Bf(b); + break; + case 12: + tf(b); + } + a = a.return; + } + Mg = null; + O = 0; + Ng = !1; + N = null; + } + function Qg(a) { + for (;;) { + var b = a.alternate, + c = a.return, + d = a.sibling; + if (0 === (a.effectTag & 512)) { + var e = b; + b = a; + var f = b.pendingProps; + switch (b.tag) { + case 0: + case 1: + break; + case 2: + K(b.type) && Ie(b); + break; + case 3: + K(b.type._reactResult) && Ie(b); + break; + case 5: + Bf(b); + Je(b); + f = b.stateNode; + f.pendingContext && + ((f.context = f.pendingContext), (f.pendingContext = null)); + if (null === e || null === e.child) $f(b), (b.effectTag &= -3); + rg(b); + break; + case 7: + Df(b); + var g = zf(yf.current), + h = b.type; + if (null !== e && null != b.stateNode) + sg(e, b, h, f, g), e.ref !== b.ref && (b.effectTag |= 128); + else if (f) { + var k = zf(L.current); + if ($f(b)) { + f = b; + e = f.stateNode; + var l = f.type, + m = f.memoizedProps, + r = g; + e[Ia] = f; + e[Ja] = m; + h = void 0; + g = l; + switch (g) { + case "iframe": + case "object": + F("load", e); + break; + case "video": + case "audio": + for (l = 0; l < fb.length; l++) F(fb[l], e); + break; + case "source": + F("error", e); + break; + case "img": + case "image": + case "link": + F("error", e); + F("load", e); + break; + case "form": + F("reset", e); + F("submit", e); + break; + case "details": + F("toggle", e); + break; + case "input": + Bc(e, m); + F("invalid", e); + ve(r, "onChange"); + break; + case "select": + e._wrapperState = { wasMultiple: !!m.multiple }; + F("invalid", e); + ve(r, "onChange"); + break; + case "textarea": + ge(e, m), F("invalid", e), ve(r, "onChange"); + } + te(g, m); + l = null; + for (h in m) + m.hasOwnProperty(h) && + ((k = m[h]), + "children" === h + ? "string" === typeof k + ? e.textContent !== k && (l = ["children", k]) + : "number" === typeof k && + e.textContent !== "" + k && + (l = ["children", "" + k]) + : sa.hasOwnProperty(h) && null != k && ve(r, h)); + switch (g) { + case "input": + Wb(e); + Fc(e, m, !0); + break; + case "textarea": + Wb(e); + ie(e, m); + break; + case "select": + case "option": + break; + default: + "function" === typeof m.onClick && (e.onclick = we); + } + h = l; + f.updateQueue = h; + f = null !== h ? !0 : !1; + f && qg(b); + } else { + m = b; + e = h; + r = f; + l = 9 === g.nodeType ? g : g.ownerDocument; + k === je.html && (k = ke(e)); + k === je.html + ? "script" === e + ? ((e = l.createElement("div")), + (e.innerHTML = "