From fff8dc3524632e101b095c66a6889ff61e731e5e Mon Sep 17 00:00:00 2001 From: Elisha Nuchi Date: Sun, 14 Jul 2019 01:19:15 -0400 Subject: [PATCH] update google server, react hooks, packages --- dist/code.js | 6 +- dist/dialog.html | 236 +- dist/main.js | 5902 ---------------- package-lock.json | 8989 +++++++----------------- package.json | 8 +- src/client/.babelrc | 9 +- src/client/components/form-input.jsx | 47 +- src/client/components/sheet-button.jsx | 15 +- src/client/components/sheet-editor.jsx | 107 +- src/client/server.js | 29 + src/server/.babelrc | 6 +- webpack.config.js | 11 +- 12 files changed, 2731 insertions(+), 12634 deletions(-) delete mode 100644 dist/main.js create mode 100644 src/client/server.js diff --git a/dist/code.js b/dist/code.js index 8309721..a6a05b8 100644 --- a/dist/code.js +++ b/dist/code.js @@ -100,9 +100,9 @@ function setActiveSheet() { "use strict"; __webpack_require__.r(__webpack_exports__), function(global) { var _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); - global.onOpen = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__["d"], global.openDialog = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__["e"], - global.getSheetsData = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__["c"], global.addSheet = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__["a"], - global.deleteSheet = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__["b"], global.setActiveSheet = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__["f"]; + global.onOpen = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__.d, global.openDialog = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__.e, + global.getSheetsData = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__.c, global.addSheet = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__.a, + global.deleteSheet = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__.b, global.setActiveSheet = _sheets_utilities_js__WEBPACK_IMPORTED_MODULE_0__.f; }.call(this, __webpack_require__(2)); }, function(module, exports) { var g; diff --git a/dist/dialog.html b/dist/dialog.html index bfc0011..8327a9f 100644 --- a/dist/dialog.html +++ b/dist/dialog.html @@ -50,12 +50,18 @@ return __webpack_require__.d(getter, "a", getter), getter; }, __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); - }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 30); + }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 31); }([ function(module, exports, __webpack_require__) { "use strict"; - module.exports = __webpack_require__(8); + module.exports = __webpack_require__(9); }, function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(14)(); + module.exports = __webpack_require__(15)(); +}, function(module, exports) { + module.exports = function(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; + }; }, function(module, exports, __webpack_require__) { "use strict"; !function checkDCE() { @@ -64,7 +70,7 @@ } catch (err) { console.error(err); } - }(), module.exports = __webpack_require__(9); + }(), module.exports = __webpack_require__(10); }, function(module, exports, __webpack_require__) { "use strict"; var getOwnPropertySymbols = Object.getOwnPropertySymbols, hasOwnProperty = Object.prototype.hasOwnProperty, propIsEnumerable = Object.prototype.propertyIsEnumerable; @@ -99,10 +105,9 @@ }; }, function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: !0 - }), exports["default"] = !("undefined" == typeof window || !window.document || !window.document.createElement), - module.exports = exports["default"]; + exports.__esModule = !0, exports["default"] = void 0; + var _default = !("undefined" == typeof window || !window.document || !window.document.createElement); + exports["default"] = _default, module.exports = exports["default"]; }, function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = !0, exports.nameShape = undefined, exports.transitionTimeout = function(transitionType) { @@ -135,21 +140,21 @@ appearActive: _propTypes2["default"].string }) ]); }, function(module, exports, __webpack_require__) { - var content = __webpack_require__(26); + var content = __webpack_require__(27); "string" == typeof content && (content = [ [ module.i, content, "" ] ]); var options = { hmr: !0, transform: void 0 }; options.insertInto = undefined; - __webpack_require__(28)(content, options); + __webpack_require__(29)(content, options); content.locals && (module.exports = content.locals); }, function(module, exports, __webpack_require__) { "use strict"; - module.exports = __webpack_require__(13); + module.exports = __webpack_require__(14); }, function(module, exports, __webpack_require__) { "use strict"; - var k = __webpack_require__(3), n = "function" == typeof Symbol && Symbol["for"], p = n ? Symbol["for"]("react.element") : 60103, q = n ? Symbol["for"]("react.portal") : 60106, r = n ? Symbol["for"]("react.fragment") : 60107, t = n ? Symbol["for"]("react.strict_mode") : 60108, u = n ? Symbol["for"]("react.profiler") : 60114, v = n ? Symbol["for"]("react.provider") : 60109, w = n ? Symbol["for"]("react.context") : 60110, x = n ? Symbol["for"]("react.concurrent_mode") : 60111, y = n ? Symbol["for"]("react.forward_ref") : 60112, z = n ? Symbol["for"]("react.suspense") : 60113, aa = n ? Symbol["for"]("react.memo") : 60115, ba = n ? Symbol["for"]("react.lazy") : 60116, A = "function" == typeof Symbol && Symbol.iterator; + var k = __webpack_require__(4), n = "function" == typeof Symbol && Symbol["for"], p = n ? Symbol["for"]("react.element") : 60103, q = n ? Symbol["for"]("react.portal") : 60106, r = n ? Symbol["for"]("react.fragment") : 60107, t = n ? Symbol["for"]("react.strict_mode") : 60108, u = n ? Symbol["for"]("react.profiler") : 60114, v = n ? Symbol["for"]("react.provider") : 60109, w = n ? Symbol["for"]("react.context") : 60110, x = n ? Symbol["for"]("react.concurrent_mode") : 60111, y = n ? Symbol["for"]("react.forward_ref") : 60112, z = n ? Symbol["for"]("react.suspense") : 60113, aa = n ? Symbol["for"]("react.memo") : 60115, ba = n ? Symbol["for"]("react.lazy") : 60116, A = "function" == typeof Symbol && Symbol.iterator; function B(a) { for (var b = arguments.length - 1, d = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 0; c < b; c++) d += "&args[]=" + encodeURIComponent(arguments[c + 1]); !function(a, b, d, c, e, g, h, f) { @@ -443,7 +448,7 @@ module.exports = Z["default"] || Z; }, function(module, exports, __webpack_require__) { "use strict"; - var aa = __webpack_require__(0), n = __webpack_require__(3), r = __webpack_require__(10); + var aa = __webpack_require__(0), n = __webpack_require__(4), r = __webpack_require__(11); function x(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]); !function(a, b, c, d, e, f, g, h) { @@ -4845,7 +4850,7 @@ module.exports = Xi["default"] || Xi; }, function(module, exports, __webpack_require__) { "use strict"; - module.exports = __webpack_require__(11); + module.exports = __webpack_require__(12); }, function(module, exports, __webpack_require__) { "use strict"; (function(global) { @@ -5109,7 +5114,7 @@ }, exports.unstable_pauseExecution = function() {}, exports.unstable_getFirstCallbackNode = function() { return d; }; - }).call(this, __webpack_require__(12)); + }).call(this, __webpack_require__(13)); }, function(module, exports) { var g; g = function() { @@ -5130,7 +5135,7 @@ for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; - }, _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _TransitionGroup2 = _interopRequireDefault(__webpack_require__(16)), _CSSTransitionGroupChild2 = _interopRequireDefault(__webpack_require__(20)), _PropTypes = __webpack_require__(5); + }, _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _TransitionGroup2 = _interopRequireDefault(__webpack_require__(17)), _CSSTransitionGroupChild2 = _interopRequireDefault(__webpack_require__(21)), _PropTypes = __webpack_require__(6); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj @@ -5187,7 +5192,7 @@ }, exports["default"] = CSSTransitionGroup, module.exports = exports["default"]; }, function(module, exports, __webpack_require__) { "use strict"; - var ReactPropTypesSecret = __webpack_require__(15); + var ReactPropTypesSecret = __webpack_require__(16); function emptyFunction() {} function emptyFunctionWithReset() {} emptyFunctionWithReset.resetWarningCache = emptyFunction, module.exports = function() { @@ -5237,8 +5242,8 @@ for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; - }, _chainFunction2 = _interopRequireDefault(__webpack_require__(17)), _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _ChildMapping = (_interopRequireDefault(__webpack_require__(18)), - __webpack_require__(19)); + }, _chainFunction2 = _interopRequireDefault(__webpack_require__(18)), _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _ChildMapping = (_interopRequireDefault(__webpack_require__(19)), + __webpack_require__(20)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj @@ -5399,7 +5404,7 @@ for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; - }, _addClass2 = _interopRequireDefault(__webpack_require__(21)), _removeClass2 = _interopRequireDefault(__webpack_require__(23)), _requestAnimationFrame2 = _interopRequireDefault(__webpack_require__(24)), _properties = __webpack_require__(25), _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _reactDom = __webpack_require__(2), _PropTypes = __webpack_require__(5); + }, _addClass2 = _interopRequireDefault(__webpack_require__(22)), _removeClass2 = _interopRequireDefault(__webpack_require__(24)), _requestAnimationFrame2 = _interopRequireDefault(__webpack_require__(25)), _properties = __webpack_require__(26), _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _reactDom = __webpack_require__(3), _PropTypes = __webpack_require__(6); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj @@ -5489,20 +5494,15 @@ exports["default"] = CSSTransitionGroupChild, module.exports = exports["default"]; }, function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: !0 - }), exports["default"] = function(element, className) { - element.classList ? element.classList.add(className) : (0, _hasClass2["default"])(element, className) || ("string" == typeof element.className ? element.className = element.className + " " + className : element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className)); - }; - var obj, _hasClass = __webpack_require__(22), _hasClass2 = (obj = _hasClass) && obj.__esModule ? obj : { - "default": obj + var _interopRequireDefault = __webpack_require__(2); + exports.__esModule = !0, exports["default"] = function(element, className) { + element.classList ? element.classList.add(className) : (0, _hasClass["default"])(element, className) || ("string" == typeof element.className ? element.className = element.className + " " + className : element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className)); }; + var _hasClass = _interopRequireDefault(__webpack_require__(23)); module.exports = exports["default"]; }, function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: !0 - }), exports["default"] = function(element, className) { + exports.__esModule = !0, exports["default"] = function(element, className) { return element.classList ? !!className && element.classList.contains(className) : -1 !== (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " "); }, module.exports = exports["default"]; }, function(module, exports, __webpack_require__) { @@ -5515,19 +5515,15 @@ }; }, function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: !0 - }); - var obj, _inDOM = __webpack_require__(4); + var _interopRequireDefault = __webpack_require__(2); + exports.__esModule = !0, exports["default"] = void 0; var compatRaf, cancel = "clearTimeout", raf = function(fn) { var curr = new Date().getTime(), ms = Math.max(0, 16 - (curr - prev)), req = setTimeout(fn, ms); return prev = curr, req; }, getKey = function(vendor, k) { return vendor + (vendor ? k[0].toUpperCase() + k.substr(1) : k) + "AnimationFrame"; }; - ((obj = _inDOM) && obj.__esModule ? obj : { - "default": obj - })["default"] && [ "", "webkit", "moz", "o", "ms" ].some(function(vendor) { + _interopRequireDefault(__webpack_require__(5))["default"] && [ "", "webkit", "moz", "o", "ms" ].some(function(vendor) { var rafKey = getKey(vendor, "request"); if (rafKey in window) return cancel = getKey(vendor, "cancel"), raf = function(cb) { return window[rafKey](cb); @@ -5538,19 +5534,22 @@ return raf(cb); }).cancel = function(id) { window[cancel] && "function" == typeof window[cancel] && window[cancel](id); - }, exports["default"] = compatRaf, module.exports = exports["default"]; + }; + var _default = compatRaf; + exports["default"] = _default, module.exports = exports["default"]; }, function(module, exports, __webpack_require__) { "use strict"; - Object.defineProperty(exports, "__esModule", { - value: !0 - }), exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; - var obj, _inDOM = __webpack_require__(4); - var transform = "transform", prefix = void 0, transitionEnd = void 0, animationEnd = void 0, transitionProperty = void 0, transitionDuration = void 0, transitionTiming = void 0, transitionDelay = void 0, animationName = void 0, animationDuration = void 0, animationTiming = void 0, animationDelay = void 0; - if (((obj = _inDOM) && obj.__esModule ? obj : { - "default": obj - })["default"]) { + var _interopRequireDefault = __webpack_require__(2); + exports.__esModule = !0, exports["default"] = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0; + var prefix, transitionEnd, animationEnd, transitionProperty, transitionDuration, transitionTiming, transitionDelay, animationName, animationDuration, animationTiming, animationDelay, _inDOM = _interopRequireDefault(__webpack_require__(5)), transform = "transform"; + if (exports.transform = transform, exports.animationEnd = animationEnd, exports.transitionEnd = transitionEnd, + exports.transitionDelay = transitionDelay, exports.transitionTiming = transitionTiming, + exports.transitionDuration = transitionDuration, exports.transitionProperty = transitionProperty, + exports.animationDelay = animationDelay, exports.animationTiming = animationTiming, + exports.animationDuration = animationDuration, exports.animationName = animationName, + _inDOM["default"]) { var _getTransitionPropert = function() { - for (var style = document.createElement("div").style, vendorMap = { + for (var transitionEnd, animationEnd, style = document.createElement("div").style, vendorMap = { O: function(e) { return "o" + e.toLowerCase(); }, @@ -5563,7 +5562,7 @@ ms: function(e) { return "MS" + e; } - }, vendors = Object.keys(vendorMap), transitionEnd = void 0, animationEnd = void 0, prefix = "", i = 0; i < vendors.length; i++) { + }, vendors = Object.keys(vendorMap), prefix = "", i = 0; i < vendors.length; i++) { var vendor = vendors[i]; if (vendor + "TransitionProperty" in style) { prefix = "-" + vendor.toLowerCase(), transitionEnd = vendorMap[vendor]("TransitionEnd"), @@ -5587,12 +5586,7 @@ exports.animationName = animationName = prefix + "-animation-name", exports.animationDuration = animationDuration = prefix + "-animation-duration", exports.animationTiming = animationTiming = prefix + "-animation-delay", exports.animationDelay = animationDelay = prefix + "-animation-timing-function"; } - exports.transform = transform, exports.transitionProperty = transitionProperty, - exports.transitionTiming = transitionTiming, exports.transitionDelay = transitionDelay, - exports.transitionDuration = transitionDuration, exports.transitionEnd = transitionEnd, - exports.animationName = animationName, exports.animationDuration = animationDuration, - exports.animationTiming = animationTiming, exports.animationDelay = animationDelay, - exports.animationEnd = animationEnd, exports["default"] = { + var _default = { transform: transform, end: transitionEnd, property: transitionProperty, @@ -5600,8 +5594,9 @@ delay: transitionDelay, duration: transitionDuration }; + exports["default"] = _default; }, function(module, exports, __webpack_require__) { - (exports = module.exports = __webpack_require__(27)(!1)).push([ module.i, "@import url(https://fonts.googleapis.com/css?family=Lora|Mukta);", "" ]), + (exports = module.exports = __webpack_require__(28)(!1)).push([ module.i, "@import url(https://fonts.googleapis.com/css?family=Lora|Mukta);", "" ]), exports.push([ module.i, "input {\n width: 130px;\n margin-left: 8px;\n}\n\nbutton {\n\t-webkit-transition-duration: 0.4s; /* Safari */\n\tbackground-color: #f44336;\n\tborder: 1px solid #f44336;\n\tcolor: white;\n\tdisplay: inline-block;\n\tfont-family: 'Mukta', sans-serif;\n\tfont-size: 11px;\n\theight: 20px;\n\tline-height: 15px;\n\tmargin-left: 3px;\n\tmargin-right: 11px;\n\tpadding: 3px;\n\ttext-transform: uppercase;\n\ttransition-duration: 0.6s;\n\tvertical-align: middle;\n\twidth: 20px;\n}\n\nbutton:hover {\n background-color: white;\n color: black;\n}\n\nbutton:active {\n\tbackground-color: #fafafa;\n\ttransform: translateY(1px);\n\ttransition-duration: 0.3s;\n}\n\nbutton:focus {\n\toutline: none;\n}\n\n.formBlock {\n display: -webkit-box;\n font-family: 'Lora', serif;\n font-weight: 700;\n}\n\n.sheetLine {\n\tcursor: pointer;\n\tline-height: 3;\n\theight: 30px;\n}\n\n.sheetNameText {\n\tfont-size: 14px;\n\tfont-family: 'Lora', serif;\n}\n\n.sheetNameText.active-sheet {\n\tborder-bottom: 3px solid #338236;\n}\n\n/*\nReactCSSTransitionGroup styling\n */\n.sheetNames-enter {\n opacity: 0.01;\n}\n\n.sheetNames-enter.sheetNames-enter-active {\n opacity: 1;\n transition: opacity 800ms ease-in;\n}\n\n.sheetNames-leave {\n opacity: 1;\n}\n\n.sheetNames-leave.sheetNames-leave-active {\n opacity: 0.01;\n transition: opacity 100ms ease-in;\n}\n\n.sheetNames-appear {\n opacity: 0.01;\n}\n\n.sheetNames-appear.sheetNames-appear-active {\n opacity: 1;\n transition: opacity .5s ease-in;\n}", "" ]); }, function(module, exports) { module.exports = function(useSourceMap) { @@ -5657,7 +5652,7 @@ } return memo[target]; }; - }(), singleton = null, singletonCounter = 0, stylesInsertedAtTop = [], fixUrls = __webpack_require__(29); + }(), singleton = null, singletonCounter = 0, stylesInsertedAtTop = [], fixUrls = __webpack_require__(30); function addStylesToDom(styles, options) { for (var i = 0; i < styles.length; i++) { var item = styles[i], domStyle = stylesInDom[item.id]; @@ -5814,49 +5809,35 @@ }, function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); - var react = __webpack_require__(0), react_default = __webpack_require__.n(react), react_dom = __webpack_require__(2), react_dom_default = __webpack_require__.n(react_dom), react_addons_css_transition_group = __webpack_require__(7), react_addons_css_transition_group_default = __webpack_require__.n(react_addons_css_transition_group), prop_types = __webpack_require__(1), prop_types_default = __webpack_require__.n(prop_types); - __webpack_require__(6); - class form_input_FormInput extends react_default.a.Component { - constructor(props) { - super(props), this.state = { - text: "" - }, this.handleChange = this.handleChange.bind(this), this.handleSubmit = this.handleSubmit.bind(this); - } - handleChange(e) { - this.setState({ - text: e.target.value - }); - } - handleSubmit(e) { - e.preventDefault(), this.state.text.length && (this.props.newSheetFormHandler(e, this.state.text), - this.setState({ - text: "" - })); - } - render() { - return react_default.a.createElement("div", { - className: "formBlock" - }, react_default.a.createElement("span", null, "Add a sheet: "), react_default.a.createElement("form", { - onSubmit: e => this.handleSubmit(e) - }, react_default.a.createElement("input", { - onChange: this.handleChange, - value: this.state.text - }))); - } + var react = __webpack_require__(0), react_default = __webpack_require__.n(react), react_dom = __webpack_require__(3), react_dom_default = __webpack_require__.n(react_dom), react_addons_css_transition_group = __webpack_require__(8), react_addons_css_transition_group_default = __webpack_require__.n(react_addons_css_transition_group), prop_types = __webpack_require__(1), prop_types_default = __webpack_require__.n(prop_types); + __webpack_require__(7); + function FormInput(props) { + const [text, setText] = Object(react.useState)(""); + return react_default.a.createElement("div", { + className: "formBlock" + }, react_default.a.createElement("span", null, "Add a sheet: "), react_default.a.createElement("form", { + onSubmit: event => { + event.preventDefault(), 0 !== text.length && (props.newSheetFormHandler(event, text), + setText("")); + } + }, react_default.a.createElement("input", { + onChange: event => setText(event.target.value), + value: text + }))); } - form_input_FormInput.propTypes = { + FormInput.propTypes = { newSheetFormHandler: prop_types_default.a.func }; const SheetButton = props => { - let sheetIndex = props.name.sheetIndex, sheetName = props.name.text, isActiveSheet = props.name.isActive; + const {name: name, deleteButtonHandler: deleteButtonHandler, clickSheetNameHandler: clickSheetNameHandler} = props, {sheetIndex: sheetIndex, text: text, isActive: isActive} = name; return react_default.a.createElement("div", { className: "sheetLine" }, react_default.a.createElement("button", { - onClick: e => props.deleteButtonHandler(e, sheetIndex) + onClick: e => deleteButtonHandler(e, sheetIndex) }, "X"), react_default.a.createElement("span", { - onClick: e => props.clickSheetNameHandler(e, sheetName), - className: "sheetNameText " + (isActiveSheet ? "active-sheet" : "") - }, sheetName)); + onClick: e => clickSheetNameHandler(e, text), + className: "sheetNameText " + (isActive ? "active-sheet" : "") + }, text)); }; var sheet_button = SheetButton; SheetButton.propTypes = { @@ -5864,49 +5845,36 @@ deleteButtonHandler: prop_types_default.a.func, clickSheetNameHandler: prop_types_default.a.func }; - react_dom_default.a.render(react_default.a.createElement(class extends react_default.a.Component { - constructor(props) { - super(props), this.state = { - names: [] - }, this.deleteButtonHandler = this.deleteButtonHandler.bind(this), this.clickSheetNameHandler = this.clickSheetNameHandler.bind(this), - this.newSheetFormHandler = this.newSheetFormHandler.bind(this); - } - componentDidMount() { - google.script.run.withSuccessHandler(data => this.setState({ - names: data - })).withFailureHandler(error => alert(error)).getSheetsData(); - } - deleteButtonHandler(e, sheetIndex) { - return google.script.run.withSuccessHandler(data => this.setState({ - names: data - })).withFailureHandler(error => alert(error)).deleteSheet(sheetIndex); - } - clickSheetNameHandler(e, sheetName) { - return google.script.run.withSuccessHandler(data => this.setState({ - names: data - })).withFailureHandler(error => alert(error)).setActiveSheet(sheetName); - } - newSheetFormHandler(e, newSheetTitle) { - return google.script.run.withSuccessHandler(data => this.setState({ - names: data - })).withFailureHandler(error => alert(error)).addSheet(newSheetTitle); - } - render() { - let names = this.state.names; - return react_default.a.createElement("div", null, react_default.a.createElement(form_input_FormInput, { - newSheetFormHandler: this.newSheetFormHandler - }), react_default.a.createElement(react_addons_css_transition_group_default.a, { - transitionName: "sheetNames", - transitionAppear: !0, - transitionEnterTimeout: 100, - transitionLeaveTimeout: 100 - }, names.length ? names.map(name => react_default.a.createElement(sheet_button, { - name: name, - deleteButtonHandler: this.deleteButtonHandler, - clickSheetNameHandler: this.clickSheetNameHandler, - key: name.sheetName - })) : null)); - } + const ignoredMethods = [ "withFailureHandler", "withLogger", "withSuccessHandler", "withUserObject" ], serverMethods = {}; + for (const method in google.script.run) ignoredMethods.includes(method) || (serverMethods[method] = ((...args) => new Promise((resolve, reject) => { + google.script.run.withSuccessHandler(resolve).withFailureHandler(reject)[method](...args); + }))); + var server = serverMethods; + react_dom_default.a.render(react_default.a.createElement(function() { + const {getSheetsData: getSheetsData, addSheet: addSheet, deleteSheet: deleteSheet, setActiveSheet: setActiveSheet} = server, [names, setNames] = Object(react.useState)([]); + Object(react.useEffect)(() => { + getSheetsData().then(setNames)["catch"](alert); + }, []); + const deleteButtonHandler = (e, sheetIndex) => { + deleteSheet(sheetIndex).then(setNames)["catch"](alert); + }, clickSheetNameHandler = (e, sheetName) => { + setActiveSheet(sheetName).then(setNames)["catch"](alert); + }; + return react_default.a.createElement("div", null, react_default.a.createElement(FormInput, { + newSheetFormHandler: (e, newSheetTitle) => { + addSheet(newSheetTitle).then(setNames)["catch"](alert); + } + }), react_default.a.createElement(react_addons_css_transition_group_default.a, { + transitionName: "sheetNames", + transitionAppear: !0, + transitionEnterTimeout: 100, + transitionLeaveTimeout: 100 + }, names.length ? names.map(name => react_default.a.createElement(sheet_button, { + name: name, + deleteButtonHandler: deleteButtonHandler, + clickSheetNameHandler: clickSheetNameHandler, + key: name.sheetName + })) : null)); }, null), document.getElementById("index")); } ]); \ No newline at end of file diff --git a/dist/main.js b/dist/main.js deleted file mode 100644 index a2ee0ca..0000000 --- a/dist/main.js +++ /dev/null @@ -1,5902 +0,0 @@ -!function(modules) { - var installedModules = {}; - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) return installedModules[moduleId].exports; - var module = installedModules[moduleId] = { - i: moduleId, - l: !1, - exports: {} - }; - return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), - module.l = !0, module.exports; - } - __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) { - __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, { - enumerable: !0, - get: getter - }); - }, __webpack_require__.r = function(exports) { - "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, { - value: "Module" - }), Object.defineProperty(exports, "__esModule", { - value: !0 - }); - }, __webpack_require__.t = function(value, mode) { - if (1 & mode && (value = __webpack_require__(value)), 8 & mode) return value; - if (4 & mode && "object" == typeof value && value && value.__esModule) return value; - var ns = Object.create(null); - if (__webpack_require__.r(ns), Object.defineProperty(ns, "default", { - enumerable: !0, - value: value - }), 2 & mode && "string" != typeof value) for (var key in value) __webpack_require__.d(ns, key, function(key) { - return value[key]; - }.bind(null, key)); - return ns; - }, __webpack_require__.n = function(module) { - var getter = module && module.__esModule ? function() { - return module["default"]; - } : function() { - return module; - }; - return __webpack_require__.d(getter, "a", getter), getter; - }, __webpack_require__.o = function(object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 30); -}([ function(module, exports, __webpack_require__) { - "use strict"; - module.exports = __webpack_require__(8); -}, function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(14)(); -}, function(module, exports, __webpack_require__) { - "use strict"; - !function checkDCE() { - if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) try { - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); - } catch (err) { - console.error(err); - } - }(), module.exports = __webpack_require__(9); -}, function(module, exports, __webpack_require__) { - "use strict"; - var getOwnPropertySymbols = Object.getOwnPropertySymbols, hasOwnProperty = Object.prototype.hasOwnProperty, propIsEnumerable = Object.prototype.propertyIsEnumerable; - module.exports = function() { - try { - if (!Object.assign) return !1; - var test1 = new String("abc"); - if (test1[5] = "de", "5" === Object.getOwnPropertyNames(test1)[0]) return !1; - for (var test2 = {}, i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; - if ("0123456789" !== Object.getOwnPropertyNames(test2).map(function(n) { - return test2[n]; - }).join("")) return !1; - var test3 = {}; - return "abcdefghijklmnopqrst".split("").forEach(function(letter) { - test3[letter] = letter; - }), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, test3)).join(""); - } catch (err) { - return !1; - } - }() ? Object.assign : function(target, source) { - for (var from, symbols, to = function(val) { - if (null === val || val === undefined) throw new TypeError("Object.assign cannot be called with null or undefined"); - return Object(val); - }(target), s = 1; s < arguments.length; s++) { - for (var key in from = Object(arguments[s])) hasOwnProperty.call(from, key) && (to[key] = from[key]); - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); - } - } - return to; - }; -}, function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { - value: !0 - }), exports["default"] = !("undefined" == typeof window || !window.document || !window.document.createElement), - module.exports = exports["default"]; -}, function(module, exports, __webpack_require__) { - "use strict"; - exports.__esModule = !0, exports.nameShape = undefined, exports.transitionTimeout = function(transitionType) { - var timeoutPropName = "transition" + transitionType + "Timeout", enabledPropName = "transition" + transitionType; - return function(props) { - if (props[enabledPropName]) { - if (null == props[timeoutPropName]) return new Error(timeoutPropName + " wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information."); - if ("number" != typeof props[timeoutPropName]) return new Error(timeoutPropName + " must be a number (in milliseconds)"); - } - return null; - }; - }; - _interopRequireDefault(__webpack_require__(0)); - var _propTypes2 = _interopRequireDefault(__webpack_require__(1)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; - } - exports.nameShape = _propTypes2["default"].oneOfType([ _propTypes2["default"].string, _propTypes2["default"].shape({ - enter: _propTypes2["default"].string, - leave: _propTypes2["default"].string, - active: _propTypes2["default"].string - }), _propTypes2["default"].shape({ - enter: _propTypes2["default"].string, - enterActive: _propTypes2["default"].string, - leave: _propTypes2["default"].string, - leaveActive: _propTypes2["default"].string, - appear: _propTypes2["default"].string, - appearActive: _propTypes2["default"].string - }) ]); -}, function(module, exports, __webpack_require__) { - var content = __webpack_require__(26); - "string" == typeof content && (content = [ [ module.i, content, "" ] ]); - var options = { - hmr: !0, - transform: void 0 - }; - options.insertInto = undefined; - __webpack_require__(28)(content, options); - content.locals && (module.exports = content.locals); -}, function(module, exports, __webpack_require__) { - "use strict"; - module.exports = __webpack_require__(13); -}, function(module, exports, __webpack_require__) { - "use strict"; - var k = __webpack_require__(3), n = "function" == typeof Symbol && Symbol["for"], p = n ? Symbol["for"]("react.element") : 60103, q = n ? Symbol["for"]("react.portal") : 60106, r = n ? Symbol["for"]("react.fragment") : 60107, t = n ? Symbol["for"]("react.strict_mode") : 60108, u = n ? Symbol["for"]("react.profiler") : 60114, v = n ? Symbol["for"]("react.provider") : 60109, w = n ? Symbol["for"]("react.context") : 60110, x = n ? Symbol["for"]("react.concurrent_mode") : 60111, y = n ? Symbol["for"]("react.forward_ref") : 60112, z = n ? Symbol["for"]("react.suspense") : 60113, aa = n ? Symbol["for"]("react.memo") : 60115, ba = n ? Symbol["for"]("react.lazy") : 60116, A = "function" == typeof Symbol && Symbol.iterator; - function B(a) { - for (var b = arguments.length - 1, d = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 0; c < b; c++) d += "&args[]=" + encodeURIComponent(arguments[c + 1]); - !function(a, b, d, c, e, g, h, f) { - if (!a) { - if (a = void 0, 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 l = [ d, c, e, g, h, f ], m = 0; - (a = Error(b.replace(/%s/g, function() { - return l[m++]; - }))).name = "Invariant Violation"; - } - throw a.framesToPop = 1, a; - } - }(!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. ", d); - } - var C = { - isMounted: function() { - return !1; - }, - enqueueForceUpdate: function() {}, - enqueueReplaceState: function() {}, - enqueueSetState: function() {} - }, D = {}; - function E(a, b, d) { - this.props = a, this.context = b, this.refs = D, this.updater = d || C; - } - function F() {} - function G(a, b, d) { - this.props = a, this.context = b, this.refs = D, this.updater = d || C; - } - E.prototype.isReactComponent = {}, E.prototype.setState = function(a, b) { - "object" != typeof a && "function" != typeof a && null != a && B("85"), this.updater.enqueueSetState(this, a, b, "setState"); - }, E.prototype.forceUpdate = function(a) { - this.updater.enqueueForceUpdate(this, a, "forceUpdate"); - }, F.prototype = E.prototype; - var H = G.prototype = new F(); - H.constructor = G, k(H, E.prototype), H.isPureReactComponent = !0; - var I = { - current: null - }, J = { - current: null - }, K = Object.prototype.hasOwnProperty, L = { - key: !0, - ref: !0, - __self: !0, - __source: !0 - }; - function M(a, b, d) { - var c = void 0, e = {}, g = null, h = null; - if (null != b) for (c in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (g = "" + b.key), - b) K.call(b, c) && !L.hasOwnProperty(c) && (e[c] = b[c]); - var f = arguments.length - 2; - if (1 === f) e.children = d; else if (1 < f) { - for (var l = Array(f), m = 0; m < f; m++) l[m] = arguments[m + 2]; - e.children = l; - } - if (a && a.defaultProps) for (c in f = a.defaultProps) void 0 === e[c] && (e[c] = f[c]); - return { - $$typeof: p, - type: a, - key: g, - ref: h, - props: e, - _owner: J.current - }; - } - function N(a) { - return "object" == typeof a && null !== a && a.$$typeof === p; - } - var O = /\/+/g, P = []; - function Q(a, b, d, c) { - if (P.length) { - var e = P.pop(); - return e.result = a, e.keyPrefix = b, e.func = d, e.context = c, e.count = 0, e; - } - return { - result: a, - keyPrefix: b, - func: d, - context: c, - count: 0 - }; - } - function R(a) { - a.result = null, a.keyPrefix = null, a.func = null, a.context = null, a.count = 0, - 10 > P.length && P.push(a); - } - function U(a, b, d) { - return null == a ? 0 : function S(a, b, d, c) { - var e = typeof a; - "undefined" !== e && "boolean" !== e || (a = null); - var g = !1; - if (null === a) g = !0; else switch (e) { - case "string": - case "number": - g = !0; - break; - - case "object": - switch (a.$$typeof) { - case p: - case q: - g = !0; - } - } - if (g) return d(c, a, "" === b ? "." + T(a, 0) : b), 1; - if (g = 0, b = "" === b ? "." : b + ":", Array.isArray(a)) for (var h = 0; h < a.length; h++) { - var f = b + T(e = a[h], h); - g += S(e, f, d, c); - } else if (f = null === a || "object" != typeof a ? null : "function" == typeof (f = A && a[A] || a["@@iterator"]) ? f : null, - "function" == typeof f) for (a = f.call(a), h = 0; !(e = a.next()).done; ) g += S(e = e.value, f = b + T(e, h++), d, c); else "object" === e && B("31", "[object Object]" == (d = "" + a) ? "object with keys {" + Object.keys(a).join(", ") + "}" : d, ""); - return g; - }(a, "", b, d); - } - function T(a, b) { - return "object" == typeof a && null !== a && null != a.key ? function(a) { - var b = { - "=": "=0", - ":": "=2" - }; - return "$" + ("" + a).replace(/[=:]/g, function(a) { - return b[a]; - }); - }(a.key) : b.toString(36); - } - function ea(a, b) { - a.func.call(a.context, b, a.count++); - } - function fa(a, b, d) { - var c = a.result, e = a.keyPrefix; - a = a.func.call(a.context, b, a.count++), Array.isArray(a) ? V(a, c, d, function(a) { - return a; - }) : null != a && (N(a) && (a = function(a, b) { - return { - $$typeof: p, - type: a.type, - key: b, - ref: a.ref, - props: a.props, - _owner: a._owner - }; - }(a, e + (!a.key || b && b.key === a.key ? "" : ("" + a.key).replace(O, "$&/") + "/") + d)), - c.push(a)); - } - function V(a, b, d, c, e) { - var g = ""; - null != d && (g = ("" + d).replace(O, "$&/") + "/"), U(a, fa, b = Q(b, g, c, e)), - R(b); - } - function W() { - var a = I.current; - return null === a && B("321"), a; - } - var X = { - Children: { - map: function(a, b, d) { - if (null == a) return a; - var c = []; - return V(a, c, null, b, d), c; - }, - forEach: function(a, b, d) { - if (null == a) return a; - U(a, ea, b = Q(null, null, b, d)), R(b); - }, - count: function(a) { - return U(a, function() { - return null; - }, null); - }, - toArray: function(a) { - var b = []; - return V(a, b, null, function(a) { - return a; - }), b; - }, - only: function(a) { - return N(a) || B("143"), a; - } - }, - createRef: function() { - return { - current: null - }; - }, - Component: E, - PureComponent: G, - createContext: function(a, b) { - return void 0 === b && (b = null), (a = { - $$typeof: w, - _calculateChangedBits: b, - _currentValue: a, - _currentValue2: a, - _threadCount: 0, - Provider: null, - Consumer: null - }).Provider = { - $$typeof: v, - _context: a - }, a.Consumer = a; - }, - forwardRef: function(a) { - return { - $$typeof: y, - render: a - }; - }, - lazy: function(a) { - return { - $$typeof: ba, - _ctor: a, - _status: -1, - _result: null - }; - }, - memo: function(a, b) { - return { - $$typeof: aa, - type: a, - compare: void 0 === b ? null : b - }; - }, - useCallback: function(a, b) { - return W().useCallback(a, b); - }, - useContext: function(a, b) { - return W().useContext(a, b); - }, - useEffect: function(a, b) { - return W().useEffect(a, b); - }, - useImperativeHandle: function(a, b, d) { - return W().useImperativeHandle(a, b, d); - }, - useDebugValue: function() {}, - useLayoutEffect: function(a, b) { - return W().useLayoutEffect(a, b); - }, - useMemo: function(a, b) { - return W().useMemo(a, b); - }, - useReducer: function(a, b, d) { - return W().useReducer(a, b, d); - }, - useRef: function(a) { - return W().useRef(a); - }, - useState: function(a) { - return W().useState(a); - }, - Fragment: r, - StrictMode: t, - Suspense: z, - createElement: M, - cloneElement: function(a, b, d) { - (null === a || void 0 === a) && B("267", a); - var c = void 0, e = k({}, a.props), g = a.key, h = a.ref, f = a._owner; - if (null != b) { - void 0 !== b.ref && (h = b.ref, f = J.current), void 0 !== b.key && (g = "" + b.key); - var l = void 0; - for (c in a.type && a.type.defaultProps && (l = a.type.defaultProps), b) K.call(b, c) && !L.hasOwnProperty(c) && (e[c] = void 0 === b[c] && void 0 !== l ? l[c] : b[c]); - } - if (1 === (c = arguments.length - 2)) e.children = d; else if (1 < c) { - l = Array(c); - for (var m = 0; m < c; m++) l[m] = arguments[m + 2]; - e.children = l; - } - return { - $$typeof: p, - type: a.type, - key: g, - ref: h, - props: e, - _owner: f - }; - }, - createFactory: function(a) { - var b = M.bind(null, a); - return b.type = a, b; - }, - isValidElement: N, - version: "16.8.6", - unstable_ConcurrentMode: x, - unstable_Profiler: u, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - ReactCurrentDispatcher: I, - ReactCurrentOwner: J, - assign: k - } - }, Y = { - "default": X - }, Z = Y && X || Y; - module.exports = Z["default"] || Z; -}, function(module, exports, __webpack_require__) { - "use strict"; - var aa = __webpack_require__(0), n = __webpack_require__(3), r = __webpack_require__(10); - function x(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]); - !function(a, b, c, d, e, f, g, h) { - if (!a) { - if (a = void 0, 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 l = [ c, d, e, f, g, h ], k = 0; - (a = Error(b.replace(/%s/g, function() { - return l[k++]; - }))).name = "Invariant Violation"; - } - throw a.framesToPop = 1, a; - } - }(!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 || x("227"); - var da = !1, ea = null, fa = !1, ha = null, ia = { - onError: function(a) { - da = !0, ea = a; - } - }; - function ja(a, b, c, d, e, f, g, h, l) { - da = !1, ea = null, function(a, b, c, d, e, f, g, h, l) { - var k = Array.prototype.slice.call(arguments, 3); - try { - b.apply(c, k); - } catch (m) { - this.onError(m); - } - }.apply(ia, arguments); - } - var la = null, ma = {}; - function na() { - if (la) for (var a in ma) { - var b = ma[a], c = la.indexOf(a); - if (-1 < c || x("96", a), !oa[c]) for (var d in b.extractEvents || x("97", a), oa[c] = b, - c = b.eventTypes) { - var e = void 0, f = c[d], g = b, h = d; - pa.hasOwnProperty(h) && x("99", h), pa[h] = f; - var l = f.phasedRegistrationNames; - if (l) { - for (e in l) l.hasOwnProperty(e) && qa(l[e], g, h); - e = !0; - } else f.registrationName ? (qa(f.registrationName, g, h), e = !0) : e = !1; - e || x("98", d, a); - } - } - } - function qa(a, b, c) { - ra[a] && x("100", a), ra[a] = b, sa[a] = b.eventTypes[c].dependencies; - } - var oa = [], pa = {}, ra = {}, sa = {}, ta = null, ua = null, va = null; - function wa(a, b, c) { - var d = a.type || "unknown-event"; - a.currentTarget = va(c), function(a, b, c, d, e, f, g, h, l) { - if (ja.apply(this, arguments), da) { - if (da) { - var k = ea; - da = !1, ea = null; - } else x("198"), k = void 0; - fa || (fa = !0, ha = k); - } - }(d, b, void 0, a), a.currentTarget = null; - } - function xa(a, b) { - return null == b && x("30"), null == a ? b : Array.isArray(a) ? Array.isArray(b) ? (a.push.apply(a, b), - a) : (a.push(b), a) : Array.isArray(b) ? [ a ].concat(b) : [ a, b ]; - } - function ya(a, b, c) { - Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a); - } - var za = null; - function Aa(a) { - if (a) { - var b = a._dispatchListeners, c = a._dispatchInstances; - if (Array.isArray(b)) for (var d = 0; d < b.length && !a.isPropagationStopped(); d++) wa(a, b[d], c[d]); else b && wa(a, b, c); - a._dispatchListeners = null, a._dispatchInstances = null, a.isPersistent() || a.constructor.release(a); - } - } - var Ba = { - injectEventPluginOrder: function(a) { - la && x("101"), la = Array.prototype.slice.call(a), na(); - }, - injectEventPluginsByName: function(a) { - var c, b = !1; - for (c in a) if (a.hasOwnProperty(c)) { - var d = a[c]; - ma.hasOwnProperty(c) && ma[c] === d || (ma[c] && x("102", c), ma[c] = d, b = !0); - } - b && na(); - } - }; - function Ca(a, b) { - var c = a.stateNode; - if (!c) return null; - var d = ta(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) || (d = !("button" === (a = a.type) || "input" === a || "select" === a || "textarea" === a)), - a = !d; - break a; - - default: - a = !1; - } - return a ? null : (c && "function" != typeof c && x("231", b, typeof c), c); - } - function Da(a) { - if (null !== a && (za = xa(za, a)), a = za, za = null, a && (ya(a, Aa), za && x("95"), - fa)) throw a = ha, fa = !1, ha = null, a; - } - var Ea = Math.random().toString(36).slice(2), Fa = "__reactInternalInstance$" + Ea, Ga = "__reactEventHandlers$" + Ea; - function Ha(a) { - if (a[Fa]) return a[Fa]; - for (;!a[Fa]; ) { - if (!a.parentNode) return null; - a = a.parentNode; - } - return 5 === (a = a[Fa]).tag || 6 === a.tag ? a : null; - } - function Ia(a) { - return !(a = a[Fa]) || 5 !== a.tag && 6 !== a.tag ? null : a; - } - function Ja(a) { - if (5 === a.tag || 6 === a.tag) return a.stateNode; - x("33"); - } - function Ka(a) { - return a[Ga] || null; - } - function La(a) { - do { - a = a["return"]; - } while (a && 5 !== a.tag); - return a || null; - } - function Ma(a, b, c) { - (b = Ca(a, c.dispatchConfig.phasedRegistrationNames[b])) && (c._dispatchListeners = xa(c._dispatchListeners, b), - c._dispatchInstances = xa(c._dispatchInstances, a)); - } - function Na(a) { - if (a && a.dispatchConfig.phasedRegistrationNames) { - for (var b = a._targetInst, c = []; b; ) c.push(b), b = La(b); - for (b = c.length; 0 < b--; ) Ma(c[b], "captured", a); - for (b = 0; b < c.length; b++) Ma(c[b], "bubbled", a); - } - } - function Oa(a, b, c) { - a && c && c.dispatchConfig.registrationName && (b = Ca(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = xa(c._dispatchListeners, b), - c._dispatchInstances = xa(c._dispatchInstances, a)); - } - function Pa(a) { - a && a.dispatchConfig.registrationName && Oa(a._targetInst, null, a); - } - function Qa(a) { - ya(a, Na); - } - var Ra = !("undefined" == typeof window || !window.document || !window.document.createElement); - function Sa(a, b) { - var c = {}; - return c[a.toLowerCase()] = b.toLowerCase(), c["Webkit" + a] = "webkit" + b, c["Moz" + a] = "moz" + b, - c; - } - var Ta = { - animationend: Sa("Animation", "AnimationEnd"), - animationiteration: Sa("Animation", "AnimationIteration"), - animationstart: Sa("Animation", "AnimationStart"), - transitionend: Sa("Transition", "TransitionEnd") - }, Ua = {}, Va = {}; - function Wa(a) { - if (Ua[a]) return Ua[a]; - if (!Ta[a]) return a; - var c, b = Ta[a]; - for (c in b) if (b.hasOwnProperty(c) && c in Va) return Ua[a] = b[c]; - return a; - } - Ra && (Va = document.createElement("div").style, "AnimationEvent" in window || (delete Ta.animationend.animation, - delete Ta.animationiteration.animation, delete Ta.animationstart.animation), "TransitionEvent" in window || delete Ta.transitionend.transition); - var Xa = Wa("animationend"), Ya = Wa("animationiteration"), Za = Wa("animationstart"), $a = Wa("transitionend"), ab = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), bb = null, cb = null, db = null; - function eb() { - if (db) return db; - var a, d, b = cb, c = b.length, e = "value" in bb ? bb.value : bb.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 db = e.slice(a, 1 < d ? 1 - d : void 0); - } - function fb() { - return !0; - } - function gb() { - return !1; - } - function y(a, b, c, d) { - for (var e in this.dispatchConfig = a, this._targetInst = b, this.nativeEvent = c, - a = this.constructor.Interface) a.hasOwnProperty(e) && ((b = a[e]) ? this[e] = b(c) : "target" === e ? this.target = d : this[e] = c[e]); - return this.isDefaultPrevented = (null != c.defaultPrevented ? c.defaultPrevented : !1 === c.returnValue) ? fb : gb, - this.isPropagationStopped = gb, this; - } - function ib(a, b, c, d) { - if (this.eventPool.length) { - var e = this.eventPool.pop(); - return this.call(e, a, b, c, d), e; - } - return new this(a, b, c, d); - } - function jb(a) { - a instanceof this || x("279"), a.destructor(), 10 > this.eventPool.length && this.eventPool.push(a); - } - function hb(a) { - a.eventPool = [], a.getPooled = ib, a.release = jb; - } - n(y.prototype, { - preventDefault: function() { - this.defaultPrevented = !0; - var a = this.nativeEvent; - a && (a.preventDefault ? a.preventDefault() : "unknown" != typeof a.returnValue && (a.returnValue = !1), - this.isDefaultPrevented = fb); - }, - stopPropagation: function() { - var a = this.nativeEvent; - a && (a.stopPropagation ? a.stopPropagation() : "unknown" != typeof a.cancelBubble && (a.cancelBubble = !0), - this.isPropagationStopped = fb); - }, - persist: function() { - this.isPersistent = fb; - }, - isPersistent: gb, - destructor: function() { - var b, a = this.constructor.Interface; - for (b in a) this[b] = null; - this.nativeEvent = this._targetInst = this.dispatchConfig = null, this.isPropagationStopped = this.isDefaultPrevented = gb, - this._dispatchInstances = this._dispatchListeners = null; - } - }), y.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 - }, y.extend = function(a) { - function b() {} - function c() { - return d.apply(this, arguments); - } - var d = this; - b.prototype = d.prototype; - var e = new b(); - return n(e, c.prototype), c.prototype = e, c.prototype.constructor = c, c.Interface = n({}, d.Interface, a), - c.extend = d.extend, hb(c), c; - }, hb(y); - var kb = y.extend({ - data: null - }), lb = y.extend({ - data: null - }), mb = [ 9, 13, 27, 32 ], nb = Ra && "CompositionEvent" in window, ob = null; - Ra && "documentMode" in document && (ob = document.documentMode); - var pb = Ra && "TextEvent" in window && !ob, qb = Ra && (!nb || ob && 8 < ob && 11 >= ob), rb = String.fromCharCode(32), sb = { - 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(" ") - } - }, tb = !1; - function ub(a, b) { - switch (a) { - case "keyup": - return -1 !== mb.indexOf(b.keyCode); - - case "keydown": - return 229 !== b.keyCode; - - case "keypress": - case "mousedown": - case "blur": - return !0; - - default: - return !1; - } - } - function vb(a) { - return "object" == typeof (a = a.detail) && "data" in a ? a.data : null; - } - var wb = !1; - var zb = { - eventTypes: sb, - extractEvents: function(a, b, c, d) { - var e = void 0, f = void 0; - if (nb) b: { - switch (a) { - case "compositionstart": - e = sb.compositionStart; - break b; - - case "compositionend": - e = sb.compositionEnd; - break b; - - case "compositionupdate": - e = sb.compositionUpdate; - break b; - } - e = void 0; - } else wb ? ub(a, c) && (e = sb.compositionEnd) : "keydown" === a && 229 === c.keyCode && (e = sb.compositionStart); - return e ? (qb && "ko" !== c.locale && (wb || e !== sb.compositionStart ? e === sb.compositionEnd && wb && (f = eb()) : (cb = "value" in (bb = d) ? bb.value : bb.textContent, - wb = !0)), e = kb.getPooled(e, b, c, d), f ? e.data = f : null !== (f = vb(c)) && (e.data = f), - Qa(e), f = e) : f = null, (a = pb ? function(a, b) { - switch (a) { - case "compositionend": - return vb(b); - - case "keypress": - return 32 !== b.which ? null : (tb = !0, rb); - - case "textInput": - return (a = b.data) === rb && tb ? null : a; - - default: - return null; - } - }(a, c) : function(a, b) { - if (wb) return "compositionend" === a || !nb && ub(a, b) ? (a = eb(), db = cb = bb = null, - wb = !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); - } - return null; - - case "compositionend": - return qb && "ko" !== b.locale ? null : b.data; - - default: - return null; - } - }(a, c)) ? ((b = lb.getPooled(sb.beforeInput, b, c, d)).data = a, Qa(b)) : b = null, - null === f ? b : null === b ? f : [ f, b ]; - } - }, Ab = null, Bb = null, Cb = null; - function Db(a) { - if (a = ua(a)) { - "function" != typeof Ab && x("280"); - var b = ta(a.stateNode); - Ab(a.stateNode, a.type, b); - } - } - function Eb(a) { - Bb ? Cb ? Cb.push(a) : Cb = [ a ] : Bb = a; - } - function Fb() { - if (Bb) { - var a = Bb, b = Cb; - if (Cb = Bb = null, Db(a), b) for (a = 0; a < b.length; a++) Db(b[a]); - } - } - function Gb(a, b) { - return a(b); - } - function Hb(a, b, c) { - return a(b, c); - } - function Ib() {} - var Jb = !1; - function Kb(a, b) { - if (Jb) return a(b); - Jb = !0; - try { - return Gb(a, b); - } finally { - Jb = !1, (null !== Bb || null !== Cb) && (Ib(), Fb()); - } - } - var Lb = { - 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 Mb(a) { - var b = a && a.nodeName && a.nodeName.toLowerCase(); - return "input" === b ? !!Lb[a.type] : "textarea" === b; - } - function Nb(a) { - return (a = a.target || a.srcElement || window).correspondingUseElement && (a = a.correspondingUseElement), - 3 === a.nodeType ? a.parentNode : a; - } - function Ob(a) { - if (!Ra) return !1; - var b = (a = "on" + a) in document; - return b || ((b = document.createElement("div")).setAttribute(a, "return;"), b = "function" == typeof b[a]), - b; - } - function Pb(a) { - var b = a.type; - return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); - } - function Rb(a) { - a._valueTracker || (a._valueTracker = function(a) { - var b = Pb(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b]; - if (!a.hasOwnProperty(b) && void 0 !== c && "function" == typeof c.get && "function" == typeof c.set) { - var e = c.get, f = c.set; - return 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 - }), { - getValue: function() { - return d; - }, - setValue: function(a) { - d = "" + a; - }, - stopTracking: function() { - a._valueTracker = null, delete a[b]; - } - }; - } - }(a)); - } - function Sb(a) { - if (!a) return !1; - var b = a._valueTracker; - if (!b) return !0; - var c = b.getValue(), d = ""; - return a && (d = Pb(a) ? a.checked ? "true" : "false" : a.value), (a = d) !== c && (b.setValue(a), - !0); - } - var Tb = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - Tb.hasOwnProperty("ReactCurrentDispatcher") || (Tb.ReactCurrentDispatcher = { - current: null - }); - var Ub = /^(.*)[\\\/]/, z = "function" == typeof Symbol && Symbol["for"], Vb = z ? Symbol["for"]("react.element") : 60103, Wb = z ? Symbol["for"]("react.portal") : 60106, Xb = z ? Symbol["for"]("react.fragment") : 60107, Yb = z ? Symbol["for"]("react.strict_mode") : 60108, Zb = z ? Symbol["for"]("react.profiler") : 60114, $b = z ? Symbol["for"]("react.provider") : 60109, ac = z ? Symbol["for"]("react.context") : 60110, bc = z ? Symbol["for"]("react.concurrent_mode") : 60111, cc = z ? Symbol["for"]("react.forward_ref") : 60112, dc = z ? Symbol["for"]("react.suspense") : 60113, ec = z ? Symbol["for"]("react.memo") : 60115, fc = z ? Symbol["for"]("react.lazy") : 60116, gc = "function" == typeof Symbol && Symbol.iterator; - function hc(a) { - return null === a || "object" != typeof a ? null : "function" == typeof (a = gc && a[gc] || a["@@iterator"]) ? a : null; - } - function ic(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 bc: - return "ConcurrentMode"; - - case Xb: - return "Fragment"; - - case Wb: - return "Portal"; - - case Zb: - return "Profiler"; - - case Yb: - return "StrictMode"; - - case dc: - return "Suspense"; - } - if ("object" == typeof a) switch (a.$$typeof) { - case ac: - return "Context.Consumer"; - - case $b: - return "Context.Provider"; - - case cc: - var b = a.render; - return b = b.displayName || b.name || "", a.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef"); - - case ec: - return ic(a.type); - - case fc: - if (a = 1 === a._status ? a._result : null) return ic(a); - } - return null; - } - function jc(a) { - var b = ""; - do { - a: switch (a.tag) { - case 3: - case 4: - case 6: - case 7: - case 10: - case 9: - var c = ""; - break a; - - default: - var d = a._debugOwner, e = a._debugSource, f = ic(a.type); - c = null, d && (c = ic(d.type)), d = f, f = "", e ? f = " (at " + e.fileName.replace(Ub, "") + ":" + e.lineNumber + ")" : c && (f = " (created by " + c + ")"), - c = "\n in " + (d || "Unknown") + f; - } - b += c, a = a["return"]; - } while (a); - return b; - } - var kc = /^[: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]*$/, lc = Object.prototype.hasOwnProperty, mc = {}, nc = {}; - function C(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 D = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) { - D[a] = new C(a, 0, !1, a, null); - }), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(a) { - var b = a[0]; - D[b] = new C(b, 1, !1, a[1], null); - }), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(a) { - D[a] = new C(a, 2, !1, a.toLowerCase(), null); - }), [ "autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha" ].forEach(function(a) { - D[a] = new C(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) { - D[a] = new C(a, 3, !1, a.toLowerCase(), null); - }), [ "checked", "multiple", "muted", "selected" ].forEach(function(a) { - D[a] = new C(a, 3, !0, a, null); - }), [ "capture", "download" ].forEach(function(a) { - D[a] = new C(a, 4, !1, a, null); - }), [ "cols", "rows", "size", "span" ].forEach(function(a) { - D[a] = new C(a, 6, !1, a, null); - }), [ "rowSpan", "start" ].forEach(function(a) { - D[a] = new C(a, 5, !1, a.toLowerCase(), null); - }); - var rc = /[\-:]([a-z])/g; - function sc(a) { - return a[1].toUpperCase(); - } - function tc(a, b, c, d) { - var e = D.hasOwnProperty(b) ? D[b] : null; - (null !== e ? 0 === e.type : !d && (2 < b.length && ("o" === b[0] || "O" === b[0]) && ("n" === b[1] || "N" === b[1]))) || (function(a, b, c, d) { - if (null === b || void 0 === b || function(a, b, c, d) { - if (null !== c && 0 === c.type) return !1; - switch (typeof b) { - case "function": - case "symbol": - return !0; - - case "boolean": - return !d && (null !== c ? !c.acceptsBooleans : "data-" !== (a = a.toLowerCase().slice(0, 5)) && "aria-" !== a); - - default: - return !1; - } - }(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; - }(b, c, e, d) && (c = null), d || null === e ? function(a) { - return !!lc.call(nc, a) || !lc.call(mc, a) && (kc.test(a) ? nc[a] = !0 : (mc[a] = !0, - !1)); - }(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 !== e.type && "" : c : (b = e.attributeName, - d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (c = 3 === (e = e.type) || 4 === e && !0 === c ? "" : "" + c, - d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); - } - function uc(a) { - switch (typeof a) { - case "boolean": - case "number": - case "object": - case "string": - case "undefined": - return a; - - default: - return ""; - } - } - function vc(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 wc(a, b) { - var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; - c = uc(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 xc(a, b) { - null != (b = b.checked) && tc(a, "checked", b, !1); - } - function yc(a, b) { - xc(a, b); - var c = uc(b.value), d = b.type; - if (null != c) "number" === d ? (0 === c && "" === a.value || a.value != c) && (a.value = "" + c) : a.value !== "" + c && (a.value = "" + c); else if ("submit" === d || "reset" === d) return void a.removeAttribute("value"); - b.hasOwnProperty("value") ? zc(a, b.type, c) : b.hasOwnProperty("defaultValue") && zc(a, b.type, uc(b.defaultValue)), - null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); - } - function Ac(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) && (a.name = ""), a.defaultChecked = !a.defaultChecked, a.defaultChecked = !!a._wrapperState.initialChecked, - "" !== c && (a.name = c); - } - function zc(a, b, c) { - "number" === b && a.ownerDocument.activeElement === a || (null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c)); - } - "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(rc, sc); - D[b] = new C(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(rc, sc); - D[b] = new C(b, 1, !1, a, "http://www.w3.org/1999/xlink"); - }), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(a) { - var b = a.replace(rc, sc); - D[b] = new C(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); - }), [ "tabIndex", "crossOrigin" ].forEach(function(a) { - D[a] = new C(a, 1, !1, a.toLowerCase(), null); - }); - var Bc = { - change: { - phasedRegistrationNames: { - bubbled: "onChange", - captured: "onChangeCapture" - }, - dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") - } - }; - function Cc(a, b, c) { - return (a = y.getPooled(Bc.change, a, b, c)).type = "change", Eb(c), Qa(a), a; - } - var Dc = null, Ec = null; - function Fc(a) { - Da(a); - } - function Gc(a) { - if (Sb(Ja(a))) return a; - } - function Hc(a, b) { - if ("change" === a) return b; - } - var Ic = !1; - function Jc() { - Dc && (Dc.detachEvent("onpropertychange", Kc), Ec = Dc = null); - } - function Kc(a) { - "value" === a.propertyName && Gc(Ec) && Kb(Fc, a = Cc(Ec, a, Nb(a))); - } - function Lc(a, b, c) { - "focus" === a ? (Jc(), Ec = c, (Dc = b).attachEvent("onpropertychange", Kc)) : "blur" === a && Jc(); - } - function Mc(a) { - if ("selectionchange" === a || "keyup" === a || "keydown" === a) return Gc(Ec); - } - function Nc(a, b) { - if ("click" === a) return Gc(b); - } - function Oc(a, b) { - if ("input" === a || "change" === a) return Gc(b); - } - Ra && (Ic = Ob("input") && (!document.documentMode || 9 < document.documentMode)); - var Pc = { - eventTypes: Bc, - _isInputEventSupported: Ic, - extractEvents: function(a, b, c, d) { - var e = b ? Ja(b) : window, f = void 0, g = void 0, h = e.nodeName && e.nodeName.toLowerCase(); - if ("select" === h || "input" === h && "file" === e.type ? f = Hc : Mb(e) ? Ic ? f = Oc : (f = Mc, - g = Lc) : (h = e.nodeName) && "input" === h.toLowerCase() && ("checkbox" === e.type || "radio" === e.type) && (f = Nc), - f && (f = f(a, b))) return Cc(f, c, d); - g && g(a, e, b), "blur" === a && (a = e._wrapperState) && a.controlled && "number" === e.type && zc(e, "number", e.value); - } - }, Qc = y.extend({ - view: null, - detail: null - }), Rc = { - Alt: "altKey", - Control: "ctrlKey", - Meta: "metaKey", - Shift: "shiftKey" - }; - function Sc(a) { - var b = this.nativeEvent; - return b.getModifierState ? b.getModifierState(a) : !!(a = Rc[a]) && !!b[a]; - } - function Tc() { - return Sc; - } - var Uc = 0, Vc = 0, Wc = !1, Xc = !1, Yc = Qc.extend({ - screenX: null, - screenY: null, - clientX: null, - clientY: null, - pageX: null, - pageY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: Tc, - 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 = Uc; - return Uc = a.screenX, Wc ? "mousemove" === a.type ? a.screenX - b : 0 : (Wc = !0, - 0); - }, - movementY: function(a) { - if ("movementY" in a) return a.movementY; - var b = Vc; - return Vc = a.screenY, Xc ? "mousemove" === a.type ? a.screenY - b : 0 : (Xc = !0, - 0); - } - }), Zc = Yc.extend({ - pointerId: null, - width: null, - height: null, - pressure: null, - tangentialPressure: null, - tiltX: null, - tiltY: null, - twist: null, - pointerType: null, - isPrimary: null - }), $c = { - mouseEnter: { - registrationName: "onMouseEnter", - dependencies: [ "mouseout", "mouseover" ] - }, - mouseLeave: { - registrationName: "onMouseLeave", - dependencies: [ "mouseout", "mouseover" ] - }, - pointerEnter: { - registrationName: "onPointerEnter", - dependencies: [ "pointerout", "pointerover" ] - }, - pointerLeave: { - registrationName: "onPointerLeave", - dependencies: [ "pointerout", "pointerover" ] - } - }, ad = { - eventTypes: $c, - 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; - if (e = d.window === d ? d : (e = d.ownerDocument) ? e.defaultView || e.parentWindow : window, - f ? (f = b, b = (b = c.relatedTarget || c.toElement) ? Ha(b) : null) : f = null, - f === b) return null; - var g = void 0, h = void 0, l = void 0, k = void 0; - "mouseout" === a || "mouseover" === a ? (g = Yc, h = $c.mouseLeave, l = $c.mouseEnter, - k = "mouse") : "pointerout" !== a && "pointerover" !== a || (g = Zc, h = $c.pointerLeave, - l = $c.pointerEnter, k = "pointer"); - var m = null == f ? e : Ja(f); - if (e = null == b ? e : Ja(b), (a = g.getPooled(h, f, c, d)).type = k + "leave", - a.target = m, a.relatedTarget = e, (c = g.getPooled(l, b, c, d)).type = k + "enter", - c.target = e, c.relatedTarget = m, d = b, f && d) a: { - for (e = d, k = 0, g = b = f; g; g = La(g)) k++; - for (g = 0, l = e; l; l = La(l)) g++; - for (;0 < k - g; ) b = La(b), k--; - for (;0 < g - k; ) e = La(e), g--; - for (;k--; ) { - if (b === e || b === e.alternate) break a; - b = La(b), e = La(e); - } - b = null; - } else b = null; - for (e = b, b = []; f && f !== e && (null === (k = f.alternate) || k !== e); ) b.push(f), - f = La(f); - for (f = []; d && d !== e && (null === (k = d.alternate) || k !== e); ) f.push(d), - d = La(d); - for (d = 0; d < b.length; d++) Oa(b[d], "bubbled", a); - for (d = f.length; 0 < d--; ) Oa(f[d], "captured", c); - return [ a, c ]; - } - }; - function bd(a, b) { - return a === b && (0 !== a || 1 / a == 1 / b) || a != a && b != b; - } - var cd = Object.prototype.hasOwnProperty; - function dd(a, b) { - if (bd(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 (!cd.call(b, c[d]) || !bd(a[c[d]], b[c[d]])) return !1; - return !0; - } - function ed(a) { - var b = a; - if (a.alternate) for (;b["return"]; ) b = b["return"]; else { - if (0 != (2 & b.effectTag)) return 1; - for (;b["return"]; ) if (0 != (2 & (b = b["return"]).effectTag)) return 1; - } - return 3 === b.tag ? 2 : 3; - } - function fd(a) { - 2 !== ed(a) && x("188"); - } - function hd(a) { - if (!(a = function(a) { - var b = a.alternate; - if (!b) return 3 === (b = ed(a)) && x("188"), 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 fd(e), a; - if (g === d) return fd(e), b; - g = g.sibling; - } - x("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 || x("189"); - } - } - c.alternate !== d && x("190"); - } - return 3 !== c.tag && x("188"), c.stateNode.current === c ? a : b; - }(a))) return null; - for (var b = a; ;) { - if (5 === b.tag || 6 === 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 id = y.extend({ - animationName: null, - elapsedTime: null, - pseudoElement: null - }), jd = y.extend({ - clipboardData: function(a) { - return "clipboardData" in a ? a.clipboardData : window.clipboardData; - } - }), kd = Qc.extend({ - relatedTarget: null - }); - function ld(a) { - var b = a.keyCode; - return "charCode" in a ? 0 === (a = a.charCode) && 13 === b && (a = 13) : a = b, - 10 === a && (a = 13), 32 <= a || 13 === a ? a : 0; - } - var md = { - Esc: "Escape", - Spacebar: " ", - Left: "ArrowLeft", - Up: "ArrowUp", - Right: "ArrowRight", - Down: "ArrowDown", - Del: "Delete", - Win: "OS", - Menu: "ContextMenu", - Apps: "ContextMenu", - Scroll: "ScrollLock", - MozPrintableKey: "Unidentified" - }, nd = { - 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" - }, od = Qc.extend({ - key: function(a) { - if (a.key) { - var b = md[a.key] || a.key; - if ("Unidentified" !== b) return b; - } - return "keypress" === a.type ? 13 === (a = ld(a)) ? "Enter" : String.fromCharCode(a) : "keydown" === a.type || "keyup" === a.type ? nd[a.keyCode] || "Unidentified" : ""; - }, - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: Tc, - charCode: function(a) { - return "keypress" === a.type ? ld(a) : 0; - }, - keyCode: function(a) { - return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; - }, - which: function(a) { - return "keypress" === a.type ? ld(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; - } - }), pd = Yc.extend({ - dataTransfer: null - }), qd = Qc.extend({ - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: Tc - }), rd = y.extend({ - propertyName: null, - elapsedTime: null, - pseudoElement: null - }), sd = Yc.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 - }), td = [ [ "abort", "abort" ], [ Xa, "animationEnd" ], [ Ya, "animationIteration" ], [ Za, "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" ], [ $a, "transitionEnd" ], [ "waiting", "waiting" ], [ "wheel", "wheel" ] ], ud = {}, vd = {}; - function wd(a, b) { - var c = a[0], d = "on" + ((a = a[1])[0].toUpperCase() + a.slice(1)); - b = { - phasedRegistrationNames: { - bubbled: d, - captured: d + "Capture" - }, - dependencies: [ c ], - isInteractive: b - }, ud[a] = b, vd[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) { - wd(a, !0); - }), td.forEach(function(a) { - wd(a, !1); - }); - var xd = { - eventTypes: ud, - isInteractiveTopLevelEventType: function(a) { - return void 0 !== (a = vd[a]) && !0 === a.isInteractive; - }, - extractEvents: function(a, b, c, d) { - var e = vd[a]; - if (!e) return null; - switch (a) { - case "keypress": - if (0 === ld(c)) return null; - - case "keydown": - case "keyup": - a = od; - break; - - case "blur": - case "focus": - a = kd; - 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 = Yc; - break; - - case "drag": - case "dragend": - case "dragenter": - case "dragexit": - case "dragleave": - case "dragover": - case "dragstart": - case "drop": - a = pd; - break; - - case "touchcancel": - case "touchend": - case "touchmove": - case "touchstart": - a = qd; - break; - - case Xa: - case Ya: - case Za: - a = id; - break; - - case $a: - a = rd; - break; - - case "scroll": - a = Qc; - break; - - case "wheel": - a = sd; - break; - - case "copy": - case "cut": - case "paste": - a = jd; - break; - - case "gotpointercapture": - case "lostpointercapture": - case "pointercancel": - case "pointerdown": - case "pointermove": - case "pointerout": - case "pointerover": - case "pointerup": - a = Zc; - break; - - default: - a = y; - } - return Qa(b = a.getPooled(e, b, c, d)), b; - } - }, yd = xd.isInteractiveTopLevelEventType, zd = []; - function Ad(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"]; - if (!(d = 3 !== d.tag ? null : d.stateNode.containerInfo)) break; - a.ancestors.push(c), c = Ha(d); - } while (c); - for (c = 0; c < a.ancestors.length; c++) { - b = a.ancestors[c]; - var e = Nb(a.nativeEvent); - d = a.topLevelType; - for (var f = a.nativeEvent, g = null, h = 0; h < oa.length; h++) { - var l = oa[h]; - l && (l = l.extractEvents(d, b, f, e)) && (g = xa(g, l)); - } - Da(g); - } - } - var Bd = !0; - function E(a, b) { - if (!b) return null; - var c = (yd(a) ? Cd : Dd).bind(null, a); - b.addEventListener(a, c, !1); - } - function Ed(a, b) { - if (!b) return null; - var c = (yd(a) ? Cd : Dd).bind(null, a); - b.addEventListener(a, c, !0); - } - function Cd(a, b) { - Hb(Dd, a, b); - } - function Dd(a, b) { - if (Bd) { - var c = Nb(b); - if (null === (c = Ha(c)) || "number" != typeof c.tag || 2 === ed(c) || (c = null), - zd.length) { - var d = zd.pop(); - d.topLevelType = a, d.nativeEvent = b, d.targetInst = c, a = d; - } else a = { - topLevelType: a, - nativeEvent: b, - targetInst: c, - ancestors: [] - }; - try { - Kb(Ad, a); - } finally { - a.topLevelType = null, a.nativeEvent = null, a.targetInst = null, a.ancestors.length = 0, - 10 > zd.length && zd.push(a); - } - } - } - var Fd = {}, Gd = 0, Hd = "_reactListenersID" + ("" + Math.random()).slice(2); - function Id(a) { - return Object.prototype.hasOwnProperty.call(a, Hd) || (a[Hd] = Gd++, Fd[a[Hd]] = {}), - Fd[a[Hd]]; - } - function Jd(a) { - if (void 0 === (a = a || ("undefined" != typeof document ? document : void 0))) return null; - try { - return a.activeElement || a.body; - } catch (b) { - return a.body; - } - } - function Kd(a) { - for (;a && a.firstChild; ) a = a.firstChild; - return a; - } - function Ld(a, b) { - var d, c = Kd(a); - for (a = 0; c; ) { - if (3 === c.nodeType) { - if (d = a + c.textContent.length, 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 = Kd(c); - } - } - function Nd() { - for (var a = window, b = Jd(); b instanceof a.HTMLIFrameElement; ) { - try { - var c = "string" == typeof b.contentWindow.location.href; - } catch (d) { - c = !1; - } - if (!c) break; - b = Jd((a = b.contentWindow).document); - } - return b; - } - function Od(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); - } - function Qd(a) { - var b = Nd(), c = a.focusedElem, d = a.selectionRange; - if (b !== c && c && c.ownerDocument && function Md(a, b) { - return !(!a || !b) && (a === b || (!a || 3 !== a.nodeType) && (b && 3 === b.nodeType ? Md(a, b.parentNode) : "contains" in a ? a.contains(b) : !!a.compareDocumentPosition && !!(16 & a.compareDocumentPosition(b)))); - }(c.ownerDocument.documentElement, c)) { - if (null !== d && Od(c)) if (b = d.start, void 0 === (a = d.end) && (a = b), "selectionStart" in c) c.selectionStart = b, - c.selectionEnd = Math.min(a, c.value.length); else if ((a = (b = c.ownerDocument || document) && b.defaultView || window).getSelection) { - a = a.getSelection(); - var e = c.textContent.length, f = Math.min(d.start, e); - d = void 0 === d.end ? f : Math.min(d.end, e), !a.extend && f > d && (e = d, d = f, - f = e), e = Ld(c, f); - var g = Ld(c, d); - e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && ((b = b.createRange()).setStart(e.node, e.offset), - a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), - a.addRange(b))); - } - for (b = [], a = c; a = a.parentNode; ) 1 === a.nodeType && b.push({ - element: a, - left: a.scrollLeft, - top: a.scrollTop - }); - for ("function" == typeof c.focus && c.focus(), c = 0; c < b.length; c++) (a = b[c]).element.scrollLeft = a.left, - a.element.scrollTop = a.top; - } - } - var Rd = Ra && "documentMode" in document && 11 >= document.documentMode, Sd = { - select: { - phasedRegistrationNames: { - bubbled: "onSelect", - captured: "onSelectCapture" - }, - dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") - } - }, Td = null, Ud = null, Vd = null, Wd = !1; - function Xd(a, b) { - var c = b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument; - return Wd || null == Td || Td !== Jd(c) ? null : ("selectionStart" in (c = Td) && Od(c) ? c = { - start: c.selectionStart, - end: c.selectionEnd - } : c = { - anchorNode: (c = (c.ownerDocument && c.ownerDocument.defaultView || window).getSelection()).anchorNode, - anchorOffset: c.anchorOffset, - focusNode: c.focusNode, - focusOffset: c.focusOffset - }, Vd && dd(Vd, c) ? null : (Vd = c, (a = y.getPooled(Sd.select, Ud, a, b)).type = "select", - a.target = Td, Qa(a), a)); - } - var Yd = { - eventTypes: Sd, - extractEvents: function(a, b, c, d) { - var f, e = d.window === d ? d.document : 9 === d.nodeType ? d : d.ownerDocument; - if (!(f = !e)) { - a: { - e = Id(e), f = sa.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; - switch (e = b ? Ja(b) : window, a) { - case "focus": - (Mb(e) || "true" === e.contentEditable) && (Td = e, Ud = b, Vd = null); - break; - - case "blur": - Vd = Ud = Td = null; - break; - - case "mousedown": - Wd = !0; - break; - - case "contextmenu": - case "mouseup": - case "dragend": - return Wd = !1, Xd(c, d); - - case "selectionchange": - if (Rd) break; - - case "keydown": - case "keyup": - return Xd(c, d); - } - return null; - } - }; - function $d(a, b) { - return a = n({ - children: void 0 - }, b), (b = function(a) { - var b = ""; - return aa.Children.forEach(a, function(a) { - null != a && (b += a); - }), b; - }(b.children)) && (a.children = b), a; - } - function ae(a, b, c, d) { - if (a = a.options, 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 { - for (c = "" + uc(c), b = null, e = 0; e < a.length; e++) { - if (a[e].value === c) return a[e].selected = !0, void (d && (a[e].defaultSelected = !0)); - null !== b || a[e].disabled || (b = a[e]); - } - null !== b && (b.selected = !0); - } - } - function be(a, b) { - return null != b.dangerouslySetInnerHTML && x("91"), n({}, b, { - value: void 0, - defaultValue: void 0, - children: "" + a._wrapperState.initialValue - }); - } - function ce(a, b) { - var c = b.value; - null == c && (c = b.defaultValue, null != (b = b.children) && (null != c && x("92"), - Array.isArray(b) && (1 >= b.length || x("93"), b = b[0]), c = b), null == c && (c = "")), - a._wrapperState = { - initialValue: uc(c) - }; - } - function de(a, b) { - var c = uc(b.value), d = uc(b.defaultValue); - null != c && ((c = "" + c) !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)), - null != d && (a.defaultValue = "" + d); - } - function ee(a) { - var b = a.textContent; - b === a._wrapperState.initialValue && (a.value = b); - } - Ba.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), - ta = Ka, ua = Ia, va = Ja, Ba.injectEventPluginsByName({ - SimpleEventPlugin: xd, - EnterLeaveEventPlugin: ad, - ChangeEventPlugin: Pc, - SelectEventPlugin: Yd, - BeforeInputEventPlugin: zb - }); - var fe = { - html: "http://www.w3.org/1999/xhtml", - mathml: "http://www.w3.org/1998/Math/MathML", - svg: "http://www.w3.org/2000/svg" - }; - function ge(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 he(a, b) { - return null == a || "http://www.w3.org/1999/xhtml" === a ? ge(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; - } - var a, ie = void 0, je = (a = function(a, b) { - if (a.namespaceURI !== fe.svg || "innerHTML" in a) a.innerHTML = b; else { - for ((ie = ie || document.createElement("div")).innerHTML = "" + b + "", - b = ie.firstChild; a.firstChild; ) a.removeChild(a.firstChild); - for (;b.firstChild; ) a.appendChild(b.firstChild); - } - }, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) { - MSApp.execUnsafeLocalFunction(function() { - return a(b, c); - }); - } : a); - function ke(a, b) { - if (b) { - var c = a.firstChild; - if (c && c === a.lastChild && 3 === c.nodeType) return void (c.nodeValue = b); - } - a.textContent = b; - } - var le = { - 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 - }, me = [ "Webkit", "ms", "Moz", "O" ]; - function ne(a, b, c) { - return null == b || "boolean" == typeof b || "" === b ? "" : c || "number" != typeof b || 0 === b || le.hasOwnProperty(a) && le[a] ? ("" + b).trim() : b + "px"; - } - function oe(a, b) { - for (var c in a = a.style, b) if (b.hasOwnProperty(c)) { - var d = 0 === c.indexOf("--"), e = ne(c, b[c], d); - "float" === c && (c = "cssFloat"), d ? a.setProperty(c, e) : a[c] = e; - } - } - Object.keys(le).forEach(function(a) { - me.forEach(function(b) { - b = b + a.charAt(0).toUpperCase() + a.substring(1), le[b] = le[a]; - }); - }); - var pe = 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 qe(a, b) { - b && (pe[a] && (null != b.children || null != b.dangerouslySetInnerHTML) && x("137", a, ""), - null != b.dangerouslySetInnerHTML && (null != b.children && x("60"), "object" == typeof b.dangerouslySetInnerHTML && "__html" in b.dangerouslySetInnerHTML || x("61")), - null != b.style && "object" != typeof b.style && x("62", "")); - } - function re(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 se(a, b) { - var c = Id(a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument); - b = sa[b]; - for (var d = 0; d < b.length; d++) { - var e = b[d]; - if (!c.hasOwnProperty(e) || !c[e]) { - switch (e) { - case "scroll": - Ed("scroll", a); - break; - - case "focus": - case "blur": - Ed("focus", a), Ed("blur", a), c.blur = !0, c.focus = !0; - break; - - case "cancel": - case "close": - Ob(e) && Ed(e, a); - break; - - case "invalid": - case "submit": - case "reset": - break; - - default: - -1 === ab.indexOf(e) && E(e, a); - } - c[e] = !0; - } - } - } - function te() {} - var ue = null, ve = null; - function we(a, b) { - switch (a) { - case "button": - case "input": - case "select": - case "textarea": - return !!b.autoFocus; - } - return !1; - } - function xe(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 ye = "function" == typeof setTimeout ? setTimeout : void 0, ze = "function" == typeof clearTimeout ? clearTimeout : void 0, Ae = r.unstable_scheduleCallback, Be = r.unstable_cancelCallback; - function De(a) { - for (a = a.nextSibling; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling; - return a; - } - function Ee(a) { - for (a = a.firstChild; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling; - return a; - } - new Set(); - var Fe = [], Ge = -1; - function F(a) { - 0 > Ge || (a.current = Fe[Ge], Fe[Ge] = null, Ge--); - } - function G(a, b) { - Fe[++Ge] = a.current, a.current = b; - } - var He = {}, H = { - current: He - }, I = { - current: !1 - }, Ie = He; - function Je(a, b) { - var c = a.type.contextTypes; - if (!c) return He; - var d = a.stateNode; - if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; - var f, e = {}; - for (f in c) e[f] = b[f]; - return d && ((a = a.stateNode).__reactInternalMemoizedUnmaskedChildContext = b, - a.__reactInternalMemoizedMaskedChildContext = e), e; - } - function J(a) { - return null !== (a = a.childContextTypes) && void 0 !== a; - } - function Ke(a) { - F(I), F(H); - } - function Le(a) { - F(I), F(H); - } - function Me(a, b, c) { - H.current !== He && x("168"), G(H, b), G(I, c); - } - function Ne(a, b, c) { - var d = a.stateNode; - if (a = b.childContextTypes, "function" != typeof d.getChildContext) return c; - for (var e in d = d.getChildContext()) e in a || x("108", ic(b) || "Unknown", e); - return n({}, c, d); - } - function Oe(a) { - var b = a.stateNode; - return b = b && b.__reactInternalMemoizedMergedChildContext || He, Ie = H.current, - G(H, b), G(I, I.current), !0; - } - function Pe(a, b, c) { - var d = a.stateNode; - d || x("169"), c ? (b = Ne(a, b, Ie), d.__reactInternalMemoizedMergedChildContext = b, - F(I), F(H), G(H, b)) : F(I), G(I, c); - } - var Qe = null, Re = null; - function Se(a) { - return function(b) { - try { - return a(b); - } catch (c) {} - }; - } - function K(a, b, c, d) { - return new function(a, b, c, d) { - this.tag = a, this.key = c, this.sibling = this.child = this["return"] = this.stateNode = this.type = this.elementType = null, - this.index = 0, this.ref = null, this.pendingProps = b, this.contextDependencies = 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; - }(a, b, c, d); - } - function Ve(a) { - return !(!(a = a.prototype) || !a.isReactComponent); - } - function Xe(a, b) { - var c = a.alternate; - return null === c ? ((c = K(a.tag, b, a.key, a.mode)).elementType = a.elementType, - c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, - c.effectTag = 0, c.nextEffect = null, c.firstEffect = null, c.lastEffect = null), - c.childExpirationTime = a.childExpirationTime, c.expirationTime = a.expirationTime, - c.child = a.child, c.memoizedProps = a.memoizedProps, c.memoizedState = a.memoizedState, - c.updateQueue = a.updateQueue, c.contextDependencies = a.contextDependencies, c.sibling = a.sibling, - c.index = a.index, c.ref = a.ref, c; - } - function Ye(a, b, c, d, e, f) { - var g = 2; - if (d = a, "function" == typeof a) Ve(a) && (g = 1); else if ("string" == typeof a) g = 5; else a: switch (a) { - case Xb: - return Ze(c.children, e, f, b); - - case bc: - return $e(c, 3 | e, f, b); - - case Yb: - return $e(c, 2 | e, f, b); - - case Zb: - return (a = K(12, c, b, 4 | e)).elementType = Zb, a.type = Zb, a.expirationTime = f, - a; - - case dc: - return (a = K(13, c, b, e)).elementType = dc, a.type = dc, a.expirationTime = f, - a; - - default: - if ("object" == typeof a && null !== a) switch (a.$$typeof) { - case $b: - g = 10; - break a; - - case ac: - g = 9; - break a; - - case cc: - g = 11; - break a; - - case ec: - g = 14; - break a; - - case fc: - g = 16, d = null; - break a; - } - x("130", null == a ? a : typeof a, ""); - } - return (b = K(g, c, b, e)).elementType = a, b.type = d, b.expirationTime = f, b; - } - function Ze(a, b, c, d) { - return (a = K(7, a, d, b)).expirationTime = c, a; - } - function $e(a, b, c, d) { - return a = K(8, a, d, b), b = 0 == (1 & b) ? Yb : bc, a.elementType = b, a.type = b, - a.expirationTime = c, a; - } - function af(a, b, c) { - return (a = K(6, a, null, b)).expirationTime = c, a; - } - function bf(a, b, c) { - return (b = K(4, null !== a.children ? a.children : [], a.key, b)).expirationTime = c, - b.stateNode = { - containerInfo: a.containerInfo, - pendingChildren: null, - implementation: a.implementation - }, b; - } - function cf(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), - df(b, a); - } - function ff(a, b) { - a.didError = !1, a.latestPingedTime >= b && (a.latestPingedTime = 0); - var c = a.earliestPendingTime, d = a.latestPendingTime; - c === b ? a.earliestPendingTime = d === b ? a.latestPendingTime = 0 : d : d === b && (a.latestPendingTime = c), - c = a.earliestSuspendedTime, d = a.latestSuspendedTime, 0 === c ? a.earliestSuspendedTime = a.latestSuspendedTime = b : c < b ? a.earliestSuspendedTime = b : d > b && (a.latestSuspendedTime = b), - df(b, a); - } - function gf(a, b) { - var c = a.earliestPendingTime; - return a = a.earliestSuspendedTime, c > b && (b = c), a > b && (b = a), b; - } - function df(a, b) { - var c = b.earliestSuspendedTime, d = b.latestSuspendedTime, e = b.earliestPendingTime, f = b.latestPingedTime; - 0 === (e = 0 !== e ? e : f) && (0 === a || d < a) && (e = d), 0 !== (a = e) && c > a && (a = c), - b.nextExpirationTimeToWorkOn = e, b.expirationTime = a; - } - function L(a, b) { - if (a && a.defaultProps) for (var c in b = n({}, b), a = a.defaultProps) void 0 === b[c] && (b[c] = a[c]); - return b; - } - var jf = new aa.Component().refs; - function kf(a, b, c, d) { - c = null === (c = c(d, b = a.memoizedState)) || void 0 === c ? b : n({}, b, c), - a.memoizedState = c, null !== (d = a.updateQueue) && 0 === a.expirationTime && (d.baseState = c); - } - var tf = { - isMounted: function(a) { - return !!(a = a._reactInternalFiber) && 2 === ed(a); - }, - enqueueSetState: function(a, b, c) { - a = a._reactInternalFiber; - var d = lf(), e = nf(d = mf(d, a)); - e.payload = b, void 0 !== c && null !== c && (e.callback = c), of(), pf(a, e), qf(a, d); - }, - enqueueReplaceState: function(a, b, c) { - a = a._reactInternalFiber; - var d = lf(), e = nf(d = mf(d, a)); - e.tag = rf, e.payload = b, void 0 !== c && null !== c && (e.callback = c), of(), - pf(a, e), qf(a, d); - }, - enqueueForceUpdate: function(a, b) { - a = a._reactInternalFiber; - var c = lf(), d = nf(c = mf(c, a)); - d.tag = sf, void 0 !== b && null !== b && (d.callback = b), of(), pf(a, d), qf(a, c); - } - }; - function uf(a, b, c, d, e, f, g) { - return "function" == typeof (a = a.stateNode).shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : !b.prototype || !b.prototype.isPureReactComponent || (!dd(c, d) || !dd(e, f)); - } - function vf(a, b, c) { - var d = !1, e = He, f = b.contextType; - return "object" == typeof f && null !== f ? f = M(f) : (e = J(b) ? Ie : H.current, - f = (d = null !== (d = b.contextTypes) && void 0 !== d) ? Je(a, e) : He), b = new b(c, f), - a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null, b.updater = tf, - a.stateNode = b, b._reactInternalFiber = a, d && ((a = a.stateNode).__reactInternalMemoizedUnmaskedChildContext = e, - a.__reactInternalMemoizedMaskedChildContext = f), b; - } - function wf(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 && tf.enqueueReplaceState(b, b.state, null); - } - function xf(a, b, c, d) { - var e = a.stateNode; - e.props = c, e.state = a.memoizedState, e.refs = jf; - var f = b.contextType; - "object" == typeof f && null !== f ? e.context = M(f) : (f = J(b) ? Ie : H.current, - e.context = Je(a, f)), null !== (f = a.updateQueue) && (yf(a, f, c, e, d), e.state = a.memoizedState), - "function" == typeof (f = b.getDerivedStateFromProps) && (kf(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 && tf.enqueueReplaceState(e, e.state, null), null !== (f = a.updateQueue) && (yf(a, f, c, e, d), - e.state = a.memoizedState)), "function" == typeof e.componentDidMount && (a.effectTag |= 4); - } - var zf = Array.isArray; - function Af(a, b, c) { - if (null !== (a = c.ref) && "function" != typeof a && "object" != typeof a) { - if (c._owner) { - var d = void 0; - (c = c._owner) && (1 !== c.tag && x("309"), d = c.stateNode), d || x("147", a); - var e = "" + a; - return null !== b && null !== b.ref && "function" == typeof b.ref && b.ref._stringRef === e ? b.ref : ((b = function(a) { - var b = d.refs; - b === jf && (b = d.refs = {}), null === a ? delete b[e] : b[e] = a; - })._stringRef = e, b); - } - "string" != typeof a && x("284"), c._owner || x("290", a); - } - return a; - } - function Bf(a, b) { - "textarea" !== a.type && x("31", "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b, ""); - } - function Cf(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) { - return (a = Xe(a, b)).index = 0, a.sibling = null, a; - } - function f(b, c, d) { - return b.index = d, a ? null !== (d = b.alternate) ? (d = d.index) < c ? (b.effectTag = 2, - c) : d : (b.effectTag = 2, c) : c; - } - function g(b) { - return a && null === b.alternate && (b.effectTag = 2), b; - } - function h(a, b, c, d) { - return null === b || 6 !== b.tag ? ((b = af(c, a.mode, d))["return"] = a, b) : ((b = e(b, c))["return"] = a, - b); - } - function l(a, b, c, d) { - return null !== b && b.elementType === c.type ? ((d = e(b, c.props)).ref = Af(a, b, c), - d["return"] = a, d) : ((d = Ye(c.type, c.key, c.props, null, a.mode, d)).ref = Af(a, b, c), - d["return"] = a, d); - } - function k(a, b, c, d) { - return null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation ? ((b = bf(c, a.mode, d))["return"] = a, - b) : ((b = e(b, c.children || []))["return"] = a, b); - } - function m(a, b, c, d, f) { - return null === b || 7 !== b.tag ? ((b = Ze(c, a.mode, d, f))["return"] = a, b) : ((b = e(b, c))["return"] = a, - b); - } - function p(a, b, c) { - if ("string" == typeof b || "number" == typeof b) return (b = af("" + b, a.mode, c))["return"] = a, - b; - if ("object" == typeof b && null !== b) { - switch (b.$$typeof) { - case Vb: - return (c = Ye(b.type, b.key, b.props, null, a.mode, c)).ref = Af(a, null, b), c["return"] = a, - c; - - case Wb: - return (b = bf(b, a.mode, c))["return"] = a, b; - } - if (zf(b) || hc(b)) return (b = Ze(b, a.mode, c, null))["return"] = a, b; - Bf(a, b); - } - return null; - } - function t(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 Vb: - return c.key === e ? c.type === Xb ? m(a, b, c.props.children, d, e) : l(a, b, c, d) : null; - - case Wb: - return c.key === e ? k(a, b, c, d) : null; - } - if (zf(c) || hc(c)) return null !== e ? null : m(a, b, c, d, null); - Bf(a, c); - } - return null; - } - function A(a, b, c, d, e) { - if ("string" == typeof d || "number" == typeof d) return h(b, a = a.get(c) || null, "" + d, e); - if ("object" == typeof d && null !== d) { - switch (d.$$typeof) { - case Vb: - return a = a.get(null === d.key ? c : d.key) || null, d.type === Xb ? m(b, a, d.props.children, e, d.key) : l(b, a, d, e); - - case Wb: - return k(b, a = a.get(null === d.key ? c : d.key) || null, d, e); - } - if (zf(d) || hc(d)) return m(b, a = a.get(c) || null, d, e, null); - Bf(b, d); - } - return null; - } - function v(e, g, h, k) { - for (var l = null, m = null, q = g, u = g = 0, B = null; null !== q && u < h.length; u++) { - q.index > u ? (B = q, q = null) : B = q.sibling; - var w = t(e, q, h[u], k); - if (null === w) { - null === q && (q = B); - break; - } - a && q && null === w.alternate && b(e, q), g = f(w, g, u), null === m ? l = w : m.sibling = w, - m = w, q = B; - } - if (u === h.length) return c(e, q), l; - if (null === q) { - for (;u < h.length; u++) (q = p(e, h[u], k)) && (g = f(q, g, u), null === m ? l = q : m.sibling = q, - m = q); - return l; - } - for (q = d(e, q); u < h.length; u++) (B = A(q, e, u, h[u], k)) && (a && null !== B.alternate && q["delete"](null === B.key ? u : B.key), - g = f(B, g, u), null === m ? l = B : m.sibling = B, m = B); - return a && q.forEach(function(a) { - return b(e, a); - }), l; - } - function R(e, g, h, k) { - var l = hc(h); - "function" != typeof l && x("150"), null == (h = l.call(h)) && x("151"); - for (var m = l = null, q = g, u = g = 0, B = null, w = h.next(); null !== q && !w.done; u++, - w = h.next()) { - q.index > u ? (B = q, q = null) : B = q.sibling; - var v = t(e, q, w.value, k); - if (null === v) { - q || (q = B); - break; - } - a && q && null === v.alternate && b(e, q), g = f(v, g, u), null === m ? l = v : m.sibling = v, - m = v, q = B; - } - if (w.done) return c(e, q), l; - if (null === q) { - for (;!w.done; u++, w = h.next()) null !== (w = p(e, w.value, k)) && (g = f(w, g, u), - null === m ? l = w : m.sibling = w, m = w); - return l; - } - for (q = d(e, q); !w.done; u++, w = h.next()) null !== (w = A(q, e, u, w.value, k)) && (a && null !== w.alternate && q["delete"](null === w.key ? u : w.key), - g = f(w, g, u), null === m ? l = w : m.sibling = w, m = w); - return a && q.forEach(function(a) { - return b(e, a); - }), l; - } - return function(a, d, f, h) { - var k = "object" == typeof f && null !== f && f.type === Xb && null === f.key; - k && (f = f.props.children); - var l = "object" == typeof f && null !== f; - if (l) switch (f.$$typeof) { - case Vb: - a: { - for (l = f.key, k = d; null !== k; ) { - if (k.key === l) { - if (7 === k.tag ? f.type === Xb : k.elementType === f.type) { - c(a, k.sibling), (d = e(k, f.type === Xb ? f.props.children : f.props)).ref = Af(a, k, f), - d["return"] = a, a = d; - break a; - } - c(a, k); - break; - } - b(a, k), k = k.sibling; - } - f.type === Xb ? ((d = Ze(f.props.children, a.mode, h, f.key))["return"] = a, a = d) : ((h = Ye(f.type, f.key, f.props, null, a.mode, h)).ref = Af(a, d, f), - h["return"] = a, a = h); - } - return g(a); - - case Wb: - a: { - for (k = f.key; null !== d; ) { - if (d.key === k) { - if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) { - c(a, d.sibling), (d = e(d, f.children || []))["return"] = a, a = d; - break a; - } - c(a, d); - break; - } - b(a, d), d = d.sibling; - } - (d = bf(f, a.mode, h))["return"] = a, a = d; - } - return g(a); - } - if ("string" == typeof f || "number" == typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), - (d = e(d, f))["return"] = a, a = d) : (c(a, d), (d = af(f, a.mode, h))["return"] = a, - a = d), g(a); - if (zf(f)) return v(a, d, f, h); - if (hc(f)) return R(a, d, f, h); - if (l && Bf(a, f), void 0 === f && !k) switch (a.tag) { - case 1: - case 0: - x("152", (h = a.type).displayName || h.name || "Component"); - } - return c(a, d); - }; - } - var Df = Cf(!0), Ef = Cf(!1), Ff = {}, N = { - current: Ff - }, Gf = { - current: Ff - }, Hf = { - current: Ff - }; - function If(a) { - return a === Ff && x("174"), a; - } - function Jf(a, b) { - G(Hf, b), G(Gf, a), G(N, Ff); - var c = b.nodeType; - switch (c) { - case 9: - case 11: - b = (b = b.documentElement) ? b.namespaceURI : he(null, ""); - break; - - default: - b = he(b = (c = 8 === c ? b.parentNode : b).namespaceURI || null, c = c.tagName); - } - F(N), G(N, b); - } - function Kf(a) { - F(N), F(Gf), F(Hf); - } - function Lf(a) { - If(Hf.current); - var b = If(N.current), c = he(b, a.type); - b !== c && (G(Gf, a), G(N, c)); - } - function Mf(a) { - Gf.current === a && (F(N), F(Gf)); - } - var Nf = 0, Of = 2, Pf = 4, Qf = 8, Rf = 16, Sf = 32, Tf = 64, Uf = 128, Vf = Tb.ReactCurrentDispatcher, Wf = 0, Xf = null, O = null, P = null, Yf = null, Q = null, Zf = null, $f = 0, ag = null, bg = 0, cg = !1, dg = null, eg = 0; - function fg() { - x("321"); - } - function gg(a, b) { - if (null === b) return !1; - for (var c = 0; c < b.length && c < a.length; c++) if (!bd(a[c], b[c])) return !1; - return !0; - } - function hg(a, b, c, d, e, f) { - if (Wf = f, Xf = b, P = null !== a ? a.memoizedState : null, Vf.current = null === P ? ig : jg, - b = c(d, e), cg) { - do { - cg = !1, eg += 1, P = null !== a ? a.memoizedState : null, Zf = Yf, ag = Q = O = null, - Vf.current = jg, b = c(d, e); - } while (cg); - dg = null, eg = 0; - } - return Vf.current = kg, (a = Xf).memoizedState = Yf, a.expirationTime = $f, a.updateQueue = ag, - a.effectTag |= bg, a = null !== O && null !== O.next, Wf = 0, Zf = Q = Yf = P = O = Xf = null, - $f = 0, ag = null, bg = 0, a && x("300"), b; - } - function lg() { - Vf.current = kg, Wf = 0, Zf = Q = Yf = P = O = Xf = null, $f = 0, ag = null, bg = 0, - cg = !1, dg = null, eg = 0; - } - function mg() { - var a = { - memoizedState: null, - baseState: null, - queue: null, - baseUpdate: null, - next: null - }; - return null === Q ? Yf = Q = a : Q = Q.next = a, Q; - } - function ng() { - if (null !== Zf) Zf = (Q = Zf).next, P = null !== (O = P) ? O.next : null; else { - null === P && x("310"); - var a = { - memoizedState: (O = P).memoizedState, - baseState: O.baseState, - queue: O.queue, - baseUpdate: O.baseUpdate, - next: null - }; - Q = null === Q ? Yf = a : Q.next = a, P = O.next; - } - return Q; - } - function og(a, b) { - return "function" == typeof b ? b(a) : b; - } - function pg(a) { - var b = ng(), c = b.queue; - if (null === c && x("311"), c.lastRenderedReducer = a, 0 < eg) { - var d = c.dispatch; - if (null !== dg) { - var e = dg.get(c); - if (void 0 !== e) { - dg["delete"](c); - var f = b.memoizedState; - do { - f = a(f, e.action), e = e.next; - } while (null !== e); - return bd(f, b.memoizedState) || (qg = !0), b.memoizedState = f, b.baseUpdate === c.last && (b.baseState = f), - c.lastRenderedState = f, [ f, d ]; - } - } - return [ b.memoizedState, d ]; - } - d = c.last; - var g = b.baseUpdate; - if (f = b.baseState, null !== g ? (null !== d && (d.next = null), d = g.next) : d = null !== d ? d.next : null, - null !== d) { - var h = e = null, l = d, k = !1; - do { - var m = l.expirationTime; - m < Wf ? (k || (k = !0, h = g, e = f), m > $f && ($f = m)) : f = l.eagerReducer === a ? l.eagerState : a(f, l.action), - g = l, l = l.next; - } while (null !== l && l !== d); - k || (h = g, e = f), bd(f, b.memoizedState) || (qg = !0), b.memoizedState = f, b.baseUpdate = h, - b.baseState = e, c.lastRenderedState = f; - } - return [ b.memoizedState, c.dispatch ]; - } - function rg(a, b, c, d) { - return a = { - tag: a, - create: b, - destroy: c, - deps: d, - next: null - }, null === ag ? (ag = { - lastEffect: null - }).lastEffect = a.next = a : null === (b = ag.lastEffect) ? ag.lastEffect = a.next = a : (c = b.next, - b.next = a, a.next = c, ag.lastEffect = a), a; - } - function sg(a, b, c, d) { - var e = mg(); - bg |= a, e.memoizedState = rg(b, c, void 0, void 0 === d ? null : d); - } - function tg(a, b, c, d) { - var e = ng(); - d = void 0 === d ? null : d; - var f = void 0; - if (null !== O) { - var g = O.memoizedState; - if (f = g.destroy, null !== d && gg(d, g.deps)) return void rg(Nf, c, f, d); - } - bg |= a, e.memoizedState = rg(b, c, f, d); - } - function ug(a, b) { - return "function" == typeof b ? (a = a(), b(a), function() { - b(null); - }) : null !== b && void 0 !== b ? (a = a(), b.current = a, function() { - b.current = null; - }) : void 0; - } - function vg() {} - function wg(a, b, c) { - 25 > eg || x("301"); - var d = a.alternate; - if (a === Xf || null !== d && d === Xf) if (cg = !0, a = { - expirationTime: Wf, - action: c, - eagerReducer: null, - eagerState: null, - next: null - }, null === dg && (dg = new Map()), void 0 === (c = dg.get(b))) dg.set(b, a); else { - for (b = c; null !== b.next; ) b = b.next; - b.next = a; - } else { - of(); - var e = lf(), f = { - expirationTime: e = mf(e, a), - action: c, - eagerReducer: null, - eagerState: null, - next: null - }, g = b.last; - if (null === g) f.next = f; else { - var h = g.next; - null !== h && (f.next = h), g.next = f; - } - if (b.last = f, 0 === a.expirationTime && (null === d || 0 === d.expirationTime) && null !== (d = b.lastRenderedReducer)) try { - var l = b.lastRenderedState, k = d(l, c); - if (f.eagerReducer = d, f.eagerState = k, bd(k, l)) return; - } catch (m) {} - qf(a, e); - } - } - var kg = { - readContext: M, - useCallback: fg, - useContext: fg, - useEffect: fg, - useImperativeHandle: fg, - useLayoutEffect: fg, - useMemo: fg, - useReducer: fg, - useRef: fg, - useState: fg, - useDebugValue: fg - }, ig = { - readContext: M, - useCallback: function(a, b) { - return mg().memoizedState = [ a, void 0 === b ? null : b ], a; - }, - useContext: M, - useEffect: function(a, b) { - return sg(516, Uf | Tf, a, b); - }, - useImperativeHandle: function(a, b, c) { - return c = null !== c && void 0 !== c ? c.concat([ a ]) : null, sg(4, Pf | Sf, ug.bind(null, b, a), c); - }, - useLayoutEffect: function(a, b) { - return sg(4, Pf | Sf, a, b); - }, - useMemo: function(a, b) { - var c = mg(); - return b = void 0 === b ? null : b, a = a(), c.memoizedState = [ a, b ], a; - }, - useReducer: function(a, b, c) { - var d = mg(); - return b = void 0 !== c ? c(b) : b, d.memoizedState = d.baseState = b, a = (a = d.queue = { - last: null, - dispatch: null, - lastRenderedReducer: a, - lastRenderedState: b - }).dispatch = wg.bind(null, Xf, a), [ d.memoizedState, a ]; - }, - useRef: function(a) { - return a = { - current: a - }, mg().memoizedState = a; - }, - useState: function(a) { - var b = mg(); - return "function" == typeof a && (a = a()), b.memoizedState = b.baseState = a, a = (a = b.queue = { - last: null, - dispatch: null, - lastRenderedReducer: og, - lastRenderedState: a - }).dispatch = wg.bind(null, Xf, a), [ b.memoizedState, a ]; - }, - useDebugValue: vg - }, jg = { - readContext: M, - useCallback: function(a, b) { - var c = ng(); - b = void 0 === b ? null : b; - var d = c.memoizedState; - return null !== d && null !== b && gg(b, d[1]) ? d[0] : (c.memoizedState = [ a, b ], - a); - }, - useContext: M, - useEffect: function(a, b) { - return tg(516, Uf | Tf, a, b); - }, - useImperativeHandle: function(a, b, c) { - return c = null !== c && void 0 !== c ? c.concat([ a ]) : null, tg(4, Pf | Sf, ug.bind(null, b, a), c); - }, - useLayoutEffect: function(a, b) { - return tg(4, Pf | Sf, a, b); - }, - useMemo: function(a, b) { - var c = ng(); - b = void 0 === b ? null : b; - var d = c.memoizedState; - return null !== d && null !== b && gg(b, d[1]) ? d[0] : (a = a(), c.memoizedState = [ a, b ], - a); - }, - useReducer: pg, - useRef: function() { - return ng().memoizedState; - }, - useState: function(a) { - return pg(og); - }, - useDebugValue: vg - }, xg = null, yg = null, zg = !1; - function Ag(a, b) { - var c = K(5, null, null, 0); - c.elementType = "DELETED", 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 Bg(a, b) { - switch (a.tag) { - case 5: - var c = a.type; - return null !== (b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b) && (a.stateNode = b, - !0); - - case 6: - return null !== (b = "" === a.pendingProps || 3 !== b.nodeType ? null : b) && (a.stateNode = b, - !0); - - case 13: - default: - return !1; - } - } - function Cg(a) { - if (zg) { - var b = yg; - if (b) { - var c = b; - if (!Bg(a, b)) { - if (!(b = De(c)) || !Bg(a, b)) return a.effectTag |= 2, zg = !1, void (xg = a); - Ag(xg, c); - } - xg = a, yg = Ee(b); - } else a.effectTag |= 2, zg = !1, xg = a; - } - } - function Dg(a) { - for (a = a["return"]; null !== a && 5 !== a.tag && 3 !== a.tag && 18 !== a.tag; ) a = a["return"]; - xg = a; - } - function Eg(a) { - if (a !== xg) return !1; - if (!zg) return Dg(a), zg = !0, !1; - var b = a.type; - if (5 !== a.tag || "head" !== b && "body" !== b && !xe(b, a.memoizedProps)) for (b = yg; b; ) Ag(a, b), - b = De(b); - return Dg(a), yg = xg ? De(a.stateNode) : null, !0; - } - function Fg() { - yg = xg = null, zg = !1; - } - var Gg = Tb.ReactCurrentOwner, qg = !1; - function S(a, b, c, d) { - b.child = null === a ? Ef(b, null, c, d) : Df(b, a.child, c, d); - } - function Hg(a, b, c, d, e) { - c = c.render; - var f = b.ref; - return Ig(b, e), d = hg(a, b, c, d, f, e), null === a || qg ? (b.effectTag |= 1, - S(a, b, d, e), b.child) : (b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), - Jg(a, b, e)); - } - function Kg(a, b, c, d, e, f) { - if (null === a) { - var g = c.type; - return "function" != typeof g || Ve(g) || void 0 !== g.defaultProps || null !== c.compare || void 0 !== c.defaultProps ? ((a = Ye(c.type, null, d, null, b.mode, f)).ref = b.ref, - a["return"] = b, b.child = a) : (b.tag = 15, b.type = g, Lg(a, b, g, d, e, f)); - } - return g = a.child, e < f && (e = g.memoizedProps, (c = null !== (c = c.compare) ? c : dd)(e, d) && a.ref === b.ref) ? Jg(a, b, f) : (b.effectTag |= 1, - (a = Xe(g, d)).ref = b.ref, a["return"] = b, b.child = a); - } - function Lg(a, b, c, d, e, f) { - return null !== a && dd(a.memoizedProps, d) && a.ref === b.ref && (qg = !1, e < f) ? Jg(a, b, f) : Mg(a, b, c, d, f); - } - function Ng(a, b) { - var c = b.ref; - (null === a && null !== c || null !== a && a.ref !== c) && (b.effectTag |= 128); - } - function Mg(a, b, c, d, e) { - var f = J(c) ? Ie : H.current; - return f = Je(b, f), Ig(b, e), c = hg(a, b, c, d, f, e), null === a || qg ? (b.effectTag |= 1, - S(a, b, c, e), b.child) : (b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), - Jg(a, b, e)); - } - function Og(a, b, c, d, e) { - if (J(c)) { - var f = !0; - Oe(b); - } else f = !1; - if (Ig(b, e), null === b.stateNode) null !== a && (a.alternate = null, b.alternate = null, - b.effectTag |= 2), vf(b, c, d), xf(b, c, d, e), d = !0; else if (null === a) { - var g = b.stateNode, h = b.memoizedProps; - g.props = h; - var l = g.context, k = c.contextType; - "object" == typeof k && null !== k ? k = M(k) : k = Je(b, k = J(c) ? Ie : H.current); - var m = c.getDerivedStateFromProps, p = "function" == typeof m || "function" == typeof g.getSnapshotBeforeUpdate; - p || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== d || l !== k) && wf(b, g, d, k), - Pg = !1; - var t = b.memoizedState; - l = g.state = t; - var A = b.updateQueue; - null !== A && (yf(b, A, d, g, e), l = b.memoizedState), h !== d || t !== l || I.current || Pg ? ("function" == typeof m && (kf(b, c, m, d), - l = b.memoizedState), (h = Pg || uf(b, c, h, d, t, l, k)) ? (p || "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 = l), g.props = d, g.state = l, g.context = k, - d = h) : ("function" == typeof g.componentDidMount && (b.effectTag |= 4), d = !1); - } else g = b.stateNode, h = b.memoizedProps, g.props = b.type === b.elementType ? h : L(b.type, h), - l = g.context, "object" == typeof (k = c.contextType) && null !== k ? k = M(k) : k = Je(b, k = J(c) ? Ie : H.current), - (p = "function" == typeof (m = c.getDerivedStateFromProps) || "function" == typeof g.getSnapshotBeforeUpdate) || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== d || l !== k) && wf(b, g, d, k), - Pg = !1, l = b.memoizedState, t = g.state = l, null !== (A = b.updateQueue) && (yf(b, A, d, g, e), - t = b.memoizedState), h !== d || l !== t || I.current || Pg ? ("function" == typeof m && (kf(b, c, m, d), - t = b.memoizedState), (m = Pg || uf(b, c, h, d, l, t, k)) ? (p || "function" != typeof g.UNSAFE_componentWillUpdate && "function" != typeof g.componentWillUpdate || ("function" == typeof g.componentWillUpdate && g.componentWillUpdate(d, t, k), - "function" == typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, t, k)), - "function" == typeof g.componentDidUpdate && (b.effectTag |= 4), "function" == typeof g.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : ("function" != typeof g.componentDidUpdate || h === a.memoizedProps && l === a.memoizedState || (b.effectTag |= 4), - "function" != typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && l === a.memoizedState || (b.effectTag |= 256), - b.memoizedProps = d, b.memoizedState = t), g.props = d, g.state = t, g.context = k, - d = m) : ("function" != typeof g.componentDidUpdate || h === a.memoizedProps && l === a.memoizedState || (b.effectTag |= 4), - "function" != typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && l === a.memoizedState || (b.effectTag |= 256), - d = !1); - return Qg(a, b, c, d, f, e); - } - function Qg(a, b, c, d, e, f) { - Ng(a, b); - var g = 0 != (64 & b.effectTag); - if (!d && !g) return e && Pe(b, c, !1), Jg(a, b, f); - d = b.stateNode, Gg.current = b; - var h = g && "function" != typeof c.getDerivedStateFromError ? null : d.render(); - return b.effectTag |= 1, null !== a && g ? (b.child = Df(b, a.child, null, f), b.child = Df(b, null, h, f)) : S(a, b, h, f), - b.memoizedState = d.state, e && Pe(b, c, !0), b.child; - } - function Rg(a) { - var b = a.stateNode; - b.pendingContext ? Me(0, b.pendingContext, b.pendingContext !== b.context) : b.context && Me(0, b.context, !1), - Jf(a, b.containerInfo); - } - function Sg(a, b, c) { - var d = b.mode, e = b.pendingProps, f = b.memoizedState; - if (0 == (64 & b.effectTag)) { - f = null; - var g = !1; - } else f = { - timedOutAt: null !== f ? f.timedOutAt : 0 - }, g = !0, b.effectTag &= -65; - if (null === a) if (g) { - var h = e.fallback; - a = Ze(null, d, 0, null), 0 == (1 & b.mode) && (a.child = null !== b.memoizedState ? b.child.child : b.child), - d = Ze(h, d, c, null), a.sibling = d, (c = a)["return"] = d["return"] = b; - } else c = d = Ef(b, null, e.children, c); else null !== a.memoizedState ? (h = (d = a.child).sibling, - g ? (c = e.fallback, e = Xe(d, d.pendingProps), 0 == (1 & b.mode) && ((g = null !== b.memoizedState ? b.child.child : b.child) !== d.child && (e.child = g)), - d = e.sibling = Xe(h, c, h.expirationTime), c = e, e.childExpirationTime = 0, c["return"] = d["return"] = b) : c = d = Df(b, d.child, e.children, c)) : (h = a.child, - g ? (g = e.fallback, (e = Ze(null, d, 0, null)).child = h, 0 == (1 & b.mode) && (e.child = null !== b.memoizedState ? b.child.child : b.child), - (d = e.sibling = Ze(g, d, c, null)).effectTag |= 2, c = e, e.childExpirationTime = 0, - c["return"] = d["return"] = b) : d = c = Df(b, h, e.children, c)), b.stateNode = a.stateNode; - return b.memoizedState = f, b.child = c, d; - } - function Jg(a, b, c) { - if (null !== a && (b.contextDependencies = a.contextDependencies), b.childExpirationTime < c) return null; - if (null !== a && b.child !== a.child && x("153"), null !== b.child) { - for (c = Xe(a = b.child, a.pendingProps, a.expirationTime), b.child = c, c["return"] = b; null !== a.sibling; ) a = a.sibling, - (c = c.sibling = Xe(a, a.pendingProps, a.expirationTime))["return"] = b; - c.sibling = null; - } - return b.child; - } - function Tg(a, b, c) { - var d = b.expirationTime; - if (null !== a) { - if (a.memoizedProps !== b.pendingProps || I.current) qg = !0; else if (d < c) { - switch (qg = !1, b.tag) { - case 3: - Rg(b), Fg(); - break; - - case 5: - Lf(b); - break; - - case 1: - J(b.type) && Oe(b); - break; - - case 4: - Jf(b, b.stateNode.containerInfo); - break; - - case 10: - Ug(b, b.memoizedProps.value); - break; - - case 13: - if (null !== b.memoizedState) return 0 !== (d = b.child.childExpirationTime) && d >= c ? Sg(a, b, c) : null !== (b = Jg(a, b, c)) ? b.sibling : null; - } - return Jg(a, b, c); - } - } else qg = !1; - switch (b.expirationTime = 0, b.tag) { - case 2: - d = b.elementType, null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2), - a = b.pendingProps; - var e = Je(b, H.current); - if (Ig(b, c), e = hg(null, b, d, a, e, c), b.effectTag |= 1, "object" == typeof e && null !== e && "function" == typeof e.render && void 0 === e.$$typeof) { - if (b.tag = 1, lg(), J(d)) { - var f = !0; - Oe(b); - } else f = !1; - b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null; - var g = d.getDerivedStateFromProps; - "function" == typeof g && kf(b, d, g, a), e.updater = tf, b.stateNode = e, e._reactInternalFiber = b, - xf(b, d, a, c), b = Qg(null, b, d, !0, f, c); - } else b.tag = 0, S(null, b, e, c), b = b.child; - return b; - - case 16: - switch (e = b.elementType, null !== a && (a.alternate = null, b.alternate = null, - b.effectTag |= 2), f = b.pendingProps, a = function(a) { - var b = a._result; - switch (a._status) { - case 1: - return b; - - case 2: - case 0: - throw b; - - default: - switch (a._status = 0, (b = (b = a._ctor)()).then(function(b) { - 0 === a._status && (b = b["default"], a._status = 1, a._result = b); - }, function(b) { - 0 === a._status && (a._status = 2, a._result = b); - }), a._status) { - case 1: - return a._result; - - case 2: - throw a._result; - } - throw a._result = b, b; - } - }(e), b.type = a, e = b.tag = function(a) { - if ("function" == typeof a) return Ve(a) ? 1 : 0; - if (void 0 !== a && null !== a) { - if ((a = a.$$typeof) === cc) return 11; - if (a === ec) return 14; - } - return 2; - }(a), f = L(a, f), g = void 0, e) { - case 0: - g = Mg(null, b, a, f, c); - break; - - case 1: - g = Og(null, b, a, f, c); - break; - - case 11: - g = Hg(null, b, a, f, c); - break; - - case 14: - g = Kg(null, b, a, L(a.type, f), d, c); - break; - - default: - x("306", a, ""); - } - return g; - - case 0: - return d = b.type, e = b.pendingProps, Mg(a, b, d, e = b.elementType === d ? e : L(d, e), c); - - case 1: - return d = b.type, e = b.pendingProps, Og(a, b, d, e = b.elementType === d ? e : L(d, e), c); - - case 3: - return Rg(b), null === (d = b.updateQueue) && x("282"), e = null !== (e = b.memoizedState) ? e.element : null, - yf(b, d, b.pendingProps, null, c), (d = b.memoizedState.element) === e ? (Fg(), - b = Jg(a, b, c)) : (e = b.stateNode, (e = (null === a || null === a.child) && e.hydrate) && (yg = Ee(b.stateNode.containerInfo), - xg = b, e = zg = !0), e ? (b.effectTag |= 2, b.child = Ef(b, null, d, c)) : (S(a, b, d, c), - Fg()), b = b.child), b; - - case 5: - return Lf(b), null === a && Cg(b), d = b.type, e = b.pendingProps, f = null !== a ? a.memoizedProps : null, - g = e.children, xe(d, e) ? g = null : null !== f && xe(d, f) && (b.effectTag |= 16), - Ng(a, b), 1 !== c && 1 & b.mode && e.hidden ? (b.expirationTime = b.childExpirationTime = 1, - b = null) : (S(a, b, g, c), b = b.child), b; - - case 6: - return null === a && Cg(b), null; - - case 13: - return Sg(a, b, c); - - case 4: - return Jf(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = Df(b, null, d, c) : S(a, b, d, c), - b.child; - - case 11: - return d = b.type, e = b.pendingProps, Hg(a, b, d, e = b.elementType === d ? e : L(d, e), c); - - case 7: - return S(a, b, b.pendingProps, c), b.child; - - case 8: - case 12: - return S(a, b, b.pendingProps.children, c), b.child; - - case 10: - a: { - if (d = b.type._context, e = b.pendingProps, g = b.memoizedProps, Ug(b, f = e.value), - null !== g) { - var h = g.value; - if (0 === (f = bd(h, f) ? 0 : 0 | ("function" == typeof d._calculateChangedBits ? d._calculateChangedBits(h, f) : 1073741823))) { - if (g.children === e.children && !I.current) { - b = Jg(a, b, c); - break a; - } - } else for (null !== (h = b.child) && (h["return"] = b); null !== h; ) { - var l = h.contextDependencies; - if (null !== l) { - g = h.child; - for (var k = l.first; null !== k; ) { - if (k.context === d && 0 != (k.observedBits & f)) { - 1 === h.tag && ((k = nf(c)).tag = sf, pf(h, k)), h.expirationTime < c && (h.expirationTime = c), - null !== (k = h.alternate) && k.expirationTime < c && (k.expirationTime = c), k = c; - for (var m = h["return"]; null !== m; ) { - var p = m.alternate; - if (m.childExpirationTime < k) m.childExpirationTime = k, null !== p && p.childExpirationTime < k && (p.childExpirationTime = k); else { - if (!(null !== p && p.childExpirationTime < k)) break; - p.childExpirationTime = k; - } - m = m["return"]; - } - l.expirationTime < c && (l.expirationTime = c); - break; - } - k = k.next; - } - } else g = 10 === h.tag && h.type === b.type ? null : h.child; - if (null !== g) g["return"] = h; else for (g = h; null !== g; ) { - if (g === b) { - g = null; - break; - } - if (null !== (h = g.sibling)) { - h["return"] = g["return"], g = h; - break; - } - g = g["return"]; - } - h = g; - } - } - S(a, b, e.children, c), b = b.child; - } - return b; - - case 9: - return e = b.type, d = (f = b.pendingProps).children, Ig(b, c), d = d(e = M(e, f.unstable_observedBits)), - b.effectTag |= 1, S(a, b, d, c), b.child; - - case 14: - return f = L(e = b.type, b.pendingProps), Kg(a, b, e, f = L(e.type, f), d, c); - - case 15: - return Lg(a, b, b.type, b.pendingProps, d, c); - - case 17: - return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : L(d, e), null !== a && (a.alternate = null, - b.alternate = null, b.effectTag |= 2), b.tag = 1, J(d) ? (a = !0, Oe(b)) : a = !1, - Ig(b, c), vf(b, d, e), xf(b, d, e, c), Qg(null, b, d, !0, a, c); - } - x("156"); - } - var Vg = { - current: null - }, Wg = null, Xg = null, Yg = null; - function Ug(a, b) { - var c = a.type._context; - G(Vg, c._currentValue), c._currentValue = b; - } - function Zg(a) { - var b = Vg.current; - F(Vg), a.type._context._currentValue = b; - } - function Ig(a, b) { - Wg = a, Yg = Xg = null; - var c = a.contextDependencies; - null !== c && c.expirationTime >= b && (qg = !0), a.contextDependencies = null; - } - function M(a, b) { - return Yg !== a && !1 !== b && 0 !== b && ("number" == typeof b && 1073741823 !== b || (Yg = a, - b = 1073741823), b = { - context: a, - observedBits: b, - next: null - }, null === Xg ? (null === Wg && x("308"), Xg = b, Wg.contextDependencies = { - first: b, - expirationTime: 0 - }) : Xg = Xg.next = b), a._currentValue; - } - var $g = 0, rf = 1, sf = 2, ah = 3, Pg = !1; - function bh(a) { - return { - baseState: a, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - } - function ch(a) { - return { - baseState: a.baseState, - firstUpdate: a.firstUpdate, - lastUpdate: a.lastUpdate, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - } - function nf(a) { - return { - expirationTime: a, - tag: $g, - payload: null, - callback: null, - next: null, - nextEffect: null - }; - } - function dh(a, b) { - null === a.lastUpdate ? a.firstUpdate = a.lastUpdate = b : (a.lastUpdate.next = b, - a.lastUpdate = b); - } - function pf(a, b) { - var c = a.alternate; - if (null === c) { - var d = a.updateQueue, e = null; - null === d && (d = a.updateQueue = bh(a.memoizedState)); - } else d = a.updateQueue, e = c.updateQueue, null === d ? null === e ? (d = a.updateQueue = bh(a.memoizedState), - e = c.updateQueue = bh(c.memoizedState)) : d = a.updateQueue = ch(e) : null === e && (e = c.updateQueue = ch(d)); - null === e || d === e ? dh(d, b) : null === d.lastUpdate || null === e.lastUpdate ? (dh(d, b), - dh(e, b)) : (dh(d, b), e.lastUpdate = b); - } - function eh(a, b) { - var c = a.updateQueue; - null === (c = null === c ? a.updateQueue = bh(a.memoizedState) : fh(a, c)).lastCapturedUpdate ? c.firstCapturedUpdate = c.lastCapturedUpdate = b : (c.lastCapturedUpdate.next = b, - c.lastCapturedUpdate = b); - } - function fh(a, b) { - var c = a.alternate; - return null !== c && b === c.updateQueue && (b = a.updateQueue = ch(b)), b; - } - function gh(a, b, c, d, e, f) { - switch (c.tag) { - case rf: - return "function" == typeof (a = c.payload) ? a.call(f, d, e) : a; - - case ah: - a.effectTag = -2049 & a.effectTag | 64; - - case $g: - if (null === (e = "function" == typeof (a = c.payload) ? a.call(f, d, e) : a) || void 0 === e) break; - return n({}, d, e); - - case sf: - Pg = !0; - } - return d; - } - function yf(a, b, c, d, e) { - Pg = !1; - for (var f = (b = fh(a, b)).baseState, g = null, h = 0, l = b.firstUpdate, k = f; null !== l; ) { - var m = l.expirationTime; - m < e ? (null === g && (g = l, f = k), h < m && (h = m)) : (k = gh(a, 0, l, k, c, d), - null !== l.callback && (a.effectTag |= 32, l.nextEffect = null, null === b.lastEffect ? b.firstEffect = b.lastEffect = l : (b.lastEffect.nextEffect = l, - b.lastEffect = l))), l = l.next; - } - for (m = null, l = b.firstCapturedUpdate; null !== l; ) { - var p = l.expirationTime; - p < e ? (null === m && (m = l, null === g && (f = k)), h < p && (h = p)) : (k = gh(a, 0, l, k, c, d), - null !== l.callback && (a.effectTag |= 32, l.nextEffect = null, null === b.lastCapturedEffect ? b.firstCapturedEffect = b.lastCapturedEffect = l : (b.lastCapturedEffect.nextEffect = l, - b.lastCapturedEffect = l))), l = l.next; - } - null === g && (b.lastUpdate = null), null === m ? b.lastCapturedUpdate = null : a.effectTag |= 32, - null === g && null === m && (f = k), b.baseState = f, b.firstUpdate = g, b.firstCapturedUpdate = m, - a.expirationTime = h, a.memoizedState = k; - } - function hh(a, b, c) { - null !== b.firstCapturedUpdate && (null !== b.lastUpdate && (b.lastUpdate.next = b.firstCapturedUpdate, - b.lastUpdate = b.lastCapturedUpdate), b.firstCapturedUpdate = b.lastCapturedUpdate = null), - ih(b.firstEffect, c), b.firstEffect = b.lastEffect = null, ih(b.firstCapturedEffect, c), - b.firstCapturedEffect = b.lastCapturedEffect = null; - } - function ih(a, b) { - for (;null !== a; ) { - var c = a.callback; - if (null !== c) { - a.callback = null; - var d = b; - "function" != typeof c && x("191", c), c.call(d); - } - a = a.nextEffect; - } - } - function jh(a, b) { - return { - value: a, - source: b, - stack: jc(b) - }; - } - function kh(a) { - a.effectTag |= 4; - } - var lh = void 0, mh = void 0, nh = void 0, oh = void 0; - lh = function(a, b) { - for (var c = b.child; null !== c; ) { - if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode); else if (4 !== c.tag && null !== c.child) { - c.child["return"] = c, c = c.child; - continue; - } - if (c === b) break; - for (;null === c.sibling; ) { - if (null === c["return"] || c["return"] === b) return; - c = c["return"]; - } - c.sibling["return"] = c["return"], c = c.sibling; - } - }, mh = function() {}, nh = function(a, b, c, d, e) { - var f = a.memoizedProps; - if (f !== d) { - var g = b.stateNode; - switch (If(N.current), a = null, c) { - case "input": - f = vc(g, f), d = vc(g, d), a = []; - break; - - case "option": - f = $d(g, f), d = $d(g, d), a = []; - break; - - case "select": - f = n({}, f, { - value: void 0 - }), d = n({}, d, { - value: void 0 - }), a = []; - break; - - case "textarea": - f = be(g, f), d = be(g, d), a = []; - break; - - default: - "function" != typeof f.onClick && "function" == typeof d.onClick && (g.onclick = te); - } - qe(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 l = f[c]; - for (g in l) l.hasOwnProperty(g) && (h || (h = {}), h[g] = ""); - } else "dangerouslySetInnerHTML" !== c && "children" !== c && "suppressContentEditableWarning" !== c && "suppressHydrationWarning" !== c && "autoFocus" !== c && (ra.hasOwnProperty(c) ? a || (a = []) : (a = a || []).push(c, null)); - for (c in d) { - var k = d[c]; - if (l = null != f ? f[c] : void 0, d.hasOwnProperty(c) && k !== l && (null != k || null != l)) if ("style" === c) if (l) { - for (g in l) !l.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (h || (h = {}), - h[g] = ""); - for (g in k) k.hasOwnProperty(g) && l[g] !== k[g] && (h || (h = {}), h[g] = k[g]); - } else h || (a || (a = []), a.push(c, h)), h = k; else "dangerouslySetInnerHTML" === c ? (k = k ? k.__html : void 0, - l = l ? l.__html : void 0, null != k && l !== k && (a = a || []).push(c, "" + k)) : "children" === c ? l === k || "string" != typeof k && "number" != typeof k || (a = a || []).push(c, "" + k) : "suppressContentEditableWarning" !== c && "suppressHydrationWarning" !== c && (ra.hasOwnProperty(c) ? (null != k && se(e, c), - a || l === k || (a = [])) : (a = a || []).push(c, k)); - } - h && (a = a || []).push("style", h), e = a, (b.updateQueue = e) && kh(b); - } - }, oh = function(a, b, c, d) { - c !== d && kh(b); - }; - var ph = "function" == typeof WeakSet ? WeakSet : Set; - function qh(a, b) { - var c = b.source, d = b.stack; - null === d && null !== c && (d = jc(c)), null !== c && ic(c.type), b = b.value, - null !== a && 1 === a.tag && ic(a.type); - try { - console.error(b); - } catch (e) { - setTimeout(function() { - throw e; - }); - } - } - function rh(a) { - var b = a.ref; - if (null !== b) if ("function" == typeof b) try { - b(null); - } catch (c) { - sh(a, c); - } else b.current = null; - } - function th(a, b, c) { - if (null !== (c = null !== (c = c.updateQueue) ? c.lastEffect : null)) { - var d = c = c.next; - do { - if ((d.tag & a) !== Nf) { - var e = d.destroy; - d.destroy = void 0, void 0 !== e && e(); - } - (d.tag & b) !== Nf && (e = d.create, d.destroy = e()), d = d.next; - } while (d !== c); - } - } - function vh(a) { - switch ("function" == typeof Re && Re(a), a.tag) { - case 0: - case 11: - case 14: - case 15: - var b = a.updateQueue; - if (null !== b && null !== (b = b.lastEffect)) { - var c = b = b.next; - do { - var d = c.destroy; - if (void 0 !== d) { - var e = a; - try { - d(); - } catch (f) { - sh(e, f); - } - } - c = c.next; - } while (c !== b); - } - break; - - case 1: - if (rh(a), "function" == typeof (b = a.stateNode).componentWillUnmount) try { - b.props = a.memoizedProps, b.state = a.memoizedState, b.componentWillUnmount(); - } catch (f) { - sh(a, f); - } - break; - - case 5: - rh(a); - break; - - case 4: - wh(a); - } - } - function xh(a) { - return 5 === a.tag || 3 === a.tag || 4 === a.tag; - } - function yh(a) { - a: { - for (var b = a["return"]; null !== b; ) { - if (xh(b)) { - var c = b; - break a; - } - b = b["return"]; - } - x("160"), c = void 0; - } - var d = b = void 0; - switch (c.tag) { - case 5: - b = c.stateNode, d = !1; - break; - - case 3: - case 4: - b = c.stateNode.containerInfo, d = !0; - break; - - default: - x("161"); - } - 16 & c.effectTag && (ke(b, ""), c.effectTag &= -17); - a: b: for (c = a; ;) { - for (;null === c.sibling; ) { - if (null === c["return"] || xh(c["return"])) { - c = null; - break a; - } - c = c["return"]; - } - for (c.sibling["return"] = c["return"], c = c.sibling; 5 !== c.tag && 6 !== c.tag && 18 !== c.tag; ) { - if (2 & c.effectTag) continue b; - if (null === c.child || 4 === c.tag) continue b; - c.child["return"] = c, c = c.child; - } - if (!(2 & c.effectTag)) { - c = c.stateNode; - break a; - } - } - for (var e = a; ;) { - if (5 === e.tag || 6 === 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 ? (g = b, h = e.stateNode, 8 === g.nodeType ? (f = g.parentNode).insertBefore(h, g) : (f = g).appendChild(h), - null !== (g = g._reactRootContainer) && void 0 !== g || null !== f.onclick || (f.onclick = te)) : b.appendChild(e.stateNode); else if (4 !== 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 wh(a) { - for (var b = a, c = !1, d = void 0, e = void 0; ;) { - if (!c) { - c = b["return"]; - a: for (;;) { - switch (null === c && x("160"), c.tag) { - case 5: - d = c.stateNode, e = !1; - break a; - - case 3: - case 4: - d = c.stateNode.containerInfo, e = !0; - break a; - } - c = c["return"]; - } - c = !0; - } - if (5 === b.tag || 6 === b.tag) { - a: for (var f = b, g = f; ;) if (vh(g), null !== g.child && 4 !== 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 (4 === b.tag) { - if (null !== b.child) { - d = b.stateNode.containerInfo, e = !0, b.child["return"] = b, b = b.child; - continue; - } - } else if (vh(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; - 4 === (b = b["return"]).tag && (c = !1); - } - b.sibling["return"] = b["return"], b = b.sibling; - } - } - function zh(a, b) { - switch (b.tag) { - case 0: - case 11: - case 14: - case 15: - th(Pf, Qf, b); - break; - - case 1: - break; - - case 5: - var c = b.stateNode; - if (null != c) { - var d = b.memoizedProps; - a = null !== a ? a.memoizedProps : d; - var e = b.type, f = b.updateQueue; - b.updateQueue = null, null !== f && function(a, b, c, d, e) { - a[Ga] = e, "input" === c && "radio" === e.type && null != e.name && xc(a, e), re(c, d), - d = re(c, e); - for (var f = 0; f < b.length; f += 2) { - var g = b[f], h = b[f + 1]; - "style" === g ? oe(a, h) : "dangerouslySetInnerHTML" === g ? je(a, h) : "children" === g ? ke(a, h) : tc(a, g, h, d); - } - switch (c) { - case "input": - yc(a, e); - break; - - case "textarea": - de(a, e); - break; - - case "select": - b = a._wrapperState.wasMultiple, a._wrapperState.wasMultiple = !!e.multiple, null != (c = e.value) ? ae(a, !!e.multiple, c, !1) : b !== !!e.multiple && (null != e.defaultValue ? ae(a, !!e.multiple, e.defaultValue, !0) : ae(a, !!e.multiple, e.multiple ? [] : "", !1)); - } - }(c, f, e, a, d); - } - break; - - case 6: - null === b.stateNode && x("162"), b.stateNode.nodeValue = b.memoizedProps; - break; - - case 3: - case 12: - break; - - case 13: - if (c = b.memoizedState, d = void 0, a = b, null === c ? d = !1 : (d = !0, a = b.child, - 0 === c.timedOutAt && (c.timedOutAt = lf())), null !== a && function(a, b) { - for (var c = a; ;) { - if (5 === c.tag) { - var d = c.stateNode; - if (b) d.style.display = "none"; else { - d = c.stateNode; - var e = c.memoizedProps.style; - e = void 0 !== e && null !== e && e.hasOwnProperty("display") ? e.display : null, - d.style.display = ne("display", e); - } - } else if (6 === c.tag) c.stateNode.nodeValue = b ? "" : c.memoizedProps; else { - if (13 === c.tag && null !== c.memoizedState) { - (d = c.child.sibling)["return"] = c, c = d; - continue; - } - if (null !== c.child) { - c.child["return"] = c, c = c.child; - continue; - } - } - if (c === a) break; - for (;null === c.sibling; ) { - if (null === c["return"] || c["return"] === a) return; - c = c["return"]; - } - c.sibling["return"] = c["return"], c = c.sibling; - } - }(a, d), null !== (c = b.updateQueue)) { - b.updateQueue = null; - var g = b.stateNode; - null === g && (g = b.stateNode = new ph()), c.forEach(function(a) { - var c = function(a, b) { - var c = a.stateNode; - null !== c && c["delete"](b), b = mf(b = lf(), a), null !== (a = hi(a, b)) && (cf(a, b), - 0 !== (b = a.expirationTime) && Xh(a, b)); - }.bind(null, b, a); - g.has(a) || (g.add(a), a.then(c, c)); - }); - } - break; - - case 17: - break; - - default: - x("163"); - } - } - var Bh = "function" == typeof WeakMap ? WeakMap : Map; - function Ch(a, b, c) { - (c = nf(c)).tag = ah, c.payload = { - element: null - }; - var d = b.value; - return c.callback = function() { - Dh(d), qh(a, b); - }, c; - } - function Eh(a, b, c) { - (c = nf(c)).tag = ah; - var d = a.type.getDerivedStateFromError; - if ("function" == typeof d) { - var e = b.value; - c.payload = function() { - return d(e); - }; - } - var f = a.stateNode; - return null !== f && "function" == typeof f.componentDidCatch && (c.callback = function() { - "function" != typeof d && (null === Fh ? Fh = new Set([ this ]) : Fh.add(this)); - var c = b.value, e = b.stack; - qh(a, b), this.componentDidCatch(c, { - componentStack: null !== e ? e : "" - }); - }), c; - } - function Gh(a) { - switch (a.tag) { - case 1: - J(a.type) && Ke(); - var b = a.effectTag; - return 2048 & b ? (a.effectTag = -2049 & b | 64, a) : null; - - case 3: - return Kf(), Le(), 0 != (64 & (b = a.effectTag)) && x("285"), a.effectTag = -2049 & b | 64, - a; - - case 5: - return Mf(a), null; - - case 13: - return 2048 & (b = a.effectTag) ? (a.effectTag = -2049 & b | 64, a) : null; - - case 18: - return null; - - case 4: - return Kf(), null; - - case 10: - return Zg(a), null; - - default: - return null; - } - } - var Hh = Tb.ReactCurrentDispatcher, Ih = Tb.ReactCurrentOwner, Jh = 1073741822, Kh = !1, T = null, Lh = null, U = 0, Mh = -1, Nh = !1, V = null, Oh = !1, Ph = null, Qh = null, Rh = null, Fh = null; - function Sh() { - if (null !== T) for (var a = T["return"]; null !== a; ) { - var b = a; - switch (b.tag) { - case 1: - var c = b.type.childContextTypes; - null !== c && void 0 !== c && Ke(); - break; - - case 3: - Kf(), Le(); - break; - - case 5: - Mf(b); - break; - - case 4: - Kf(); - break; - - case 10: - Zg(b); - } - a = a["return"]; - } - Lh = null, U = 0, Mh = -1, Nh = !1, T = null; - } - function Th() { - for (;null !== V; ) { - var a = V.effectTag; - if (16 & a && ke(V.stateNode, ""), 128 & a) { - var b = V.alternate; - null !== b && (null !== (b = b.ref) && ("function" == typeof b ? b(null) : b.current = null)); - } - switch (14 & a) { - case 2: - yh(V), V.effectTag &= -3; - break; - - case 6: - yh(V), V.effectTag &= -3, zh(V.alternate, V); - break; - - case 4: - zh(V.alternate, V); - break; - - case 8: - wh(a = V), a["return"] = null, a.child = null, a.memoizedState = null, a.updateQueue = null, - null !== (a = a.alternate) && (a["return"] = null, a.child = null, a.memoizedState = null, - a.updateQueue = null); - } - V = V.nextEffect; - } - } - function Uh() { - for (;null !== V; ) { - if (256 & V.effectTag) a: { - var a = V.alternate, b = V; - switch (b.tag) { - case 0: - case 11: - case 15: - th(Of, Nf, b); - break a; - - case 1: - if (256 & b.effectTag && null !== a) { - var c = a.memoizedProps, d = a.memoizedState; - b = (a = b.stateNode).getSnapshotBeforeUpdate(b.elementType === b.type ? c : L(b.type, c), d), - a.__reactInternalSnapshotBeforeUpdate = b; - } - break a; - - case 3: - case 5: - case 6: - case 4: - case 17: - break a; - - default: - x("163"); - } - } - V = V.nextEffect; - } - } - function Vh(a, b) { - for (;null !== V; ) { - var c = V.effectTag; - if (36 & c) { - var d = V.alternate, e = V, f = b; - switch (e.tag) { - case 0: - case 11: - case 15: - th(Rf, Sf, e); - break; - - case 1: - var g = e.stateNode; - if (4 & e.effectTag) if (null === d) g.componentDidMount(); else { - var h = e.elementType === e.type ? d.memoizedProps : L(e.type, d.memoizedProps); - g.componentDidUpdate(h, d.memoizedState, g.__reactInternalSnapshotBeforeUpdate); - } - null !== (d = e.updateQueue) && hh(0, d, g); - break; - - case 3: - if (null !== (d = e.updateQueue)) { - if (g = null, null !== e.child) switch (e.child.tag) { - case 5: - g = e.child.stateNode; - break; - - case 1: - g = e.child.stateNode; - } - hh(0, d, g); - } - break; - - case 5: - f = e.stateNode, null === d && 4 & e.effectTag && we(e.type, e.memoizedProps) && f.focus(); - break; - - case 6: - case 4: - case 12: - case 13: - case 17: - break; - - default: - x("163"); - } - } - 128 & c && (null !== (e = V.ref) && (f = V.stateNode, "function" == typeof e ? e(f) : e.current = f)), - 512 & c && (Ph = a), V = V.nextEffect; - } - } - function of() { - null !== Qh && Be(Qh), null !== Rh && Rh(); - } - function Zh(a, b) { - Oh = Kh = !0, a.current === b && x("177"); - var c = a.pendingCommitExpirationTime; - 0 === c && x("261"), a.pendingCommitExpirationTime = 0; - var d = b.expirationTime, e = b.childExpirationTime; - for (function(a, b) { - if (a.didError = !1, 0 === b) a.earliestPendingTime = 0, a.latestPendingTime = 0, - a.earliestSuspendedTime = 0, a.latestSuspendedTime = 0, a.latestPingedTime = 0; else { - b < a.latestPingedTime && (a.latestPingedTime = 0); - var c = a.latestPendingTime; - 0 !== c && (c > b ? a.earliestPendingTime = a.latestPendingTime = 0 : a.earliestPendingTime > b && (a.earliestPendingTime = a.latestPendingTime)), - 0 === (c = a.earliestSuspendedTime) ? cf(a, b) : b < a.latestSuspendedTime ? (a.earliestSuspendedTime = 0, - a.latestSuspendedTime = 0, a.latestPingedTime = 0, cf(a, b)) : b > c && cf(a, b); - } - df(0, a); - }(a, e > d ? e : d), Ih.current = null, d = void 0, 1 < b.effectTag ? null !== b.lastEffect ? (b.lastEffect.nextEffect = b, - d = b.firstEffect) : d = b : d = b.firstEffect, ue = Bd, ve = function() { - var a = Nd(); - if (Od(a)) { - if ("selectionStart" in a) var b = { - start: a.selectionStart, - end: a.selectionEnd - }; else a: { - var c = (b = (b = a.ownerDocument) && b.defaultView || window).getSelection && b.getSelection(); - if (c && 0 !== c.rangeCount) { - b = c.anchorNode; - var d = c.anchorOffset, e = c.focusNode; - c = c.focusOffset; - try { - b.nodeType, e.nodeType; - } catch (A) { - b = null; - break a; - } - var f = 0, g = -1, h = -1, l = 0, k = 0, m = a, p = null; - b: for (;;) { - for (var t; m !== b || 0 !== d && 3 !== m.nodeType || (g = f + d), m !== e || 0 !== c && 3 !== m.nodeType || (h = f + c), - 3 === m.nodeType && (f += m.nodeValue.length), null !== (t = m.firstChild); ) p = m, - m = t; - for (;;) { - if (m === a) break b; - if (p === b && ++l === d && (g = f), p === e && ++k === c && (h = f), null !== (t = m.nextSibling)) break; - p = (m = p).parentNode; - } - m = t; - } - b = -1 === g || -1 === h ? null : { - start: g, - end: h - }; - } else b = null; - } - b = b || { - start: 0, - end: 0 - }; - } else b = null; - return { - focusedElem: a, - selectionRange: b - }; - }(), Bd = !1, V = d; null !== V; ) { - e = !1; - var f = void 0; - try { - Uh(); - } catch (h) { - e = !0, f = h; - } - e && (null === V && x("178"), sh(V, f), null !== V && (V = V.nextEffect)); - } - for (V = d; null !== V; ) { - e = !1, f = void 0; - try { - Th(); - } catch (h) { - e = !0, f = h; - } - e && (null === V && x("178"), sh(V, f), null !== V && (V = V.nextEffect)); - } - for (Qd(ve), ve = null, Bd = !!ue, ue = null, a.current = b, V = d; null !== V; ) { - e = !1, f = void 0; - try { - Vh(a, c); - } catch (h) { - e = !0, f = h; - } - e && (null === V && x("178"), sh(V, f), null !== V && (V = V.nextEffect)); - } - if (null !== d && null !== Ph) { - var g = function(a, b) { - Rh = Qh = Ph = null; - var c = W; - W = !0; - do { - if (512 & b.effectTag) { - var d = !1, e = void 0; - try { - var f = b; - th(Uf, Nf, f), th(Nf, Tf, f); - } catch (g) { - d = !0, e = g; - } - d && sh(b, e); - } - b = b.nextEffect; - } while (null !== b); - W = c, 0 !== (c = a.expirationTime) && Xh(a, c), X || W || Yh(1073741823, !1); - }.bind(null, a, d); - Qh = r.unstable_runWithPriority(r.unstable_NormalPriority, function() { - return Ae(g); - }), Rh = g; - } - Kh = Oh = !1, "function" == typeof Qe && Qe(b.stateNode), c = b.expirationTime, - 0 === (b = (b = b.childExpirationTime) > c ? b : c) && (Fh = null), function(a, b) { - a.expirationTime = b, a.finishedWork = null; - }(a, b); - } - function ai(a) { - for (;;) { - var b = a.alternate, c = a["return"], d = a.sibling; - if (0 == (1024 & a.effectTag)) { - T = a; - a: { - var e = b, f = U, g = (b = a).pendingProps; - switch (b.tag) { - case 2: - case 16: - break; - - case 15: - case 0: - break; - - case 1: - J(b.type) && Ke(); - break; - - case 3: - Kf(), Le(), (g = b.stateNode).pendingContext && (g.context = g.pendingContext, g.pendingContext = null), - null !== e && null !== e.child || (Eg(b), b.effectTag &= -3), mh(b); - break; - - case 5: - Mf(b); - var h = If(Hf.current); - if (f = b.type, null !== e && null != b.stateNode) nh(e, b, f, g, h), e.ref !== b.ref && (b.effectTag |= 128); else if (g) { - var l = If(N.current); - if (Eg(b)) { - e = (g = b).stateNode; - var k = g.type, m = g.memoizedProps, p = h; - switch (e[Fa] = g, e[Ga] = m, f = void 0, h = k) { - case "iframe": - case "object": - E("load", e); - break; - - case "video": - case "audio": - for (k = 0; k < ab.length; k++) E(ab[k], e); - break; - - case "source": - E("error", e); - break; - - case "img": - case "image": - case "link": - E("error", e), E("load", e); - break; - - case "form": - E("reset", e), E("submit", e); - break; - - case "details": - E("toggle", e); - break; - - case "input": - wc(e, m), E("invalid", e), se(p, "onChange"); - break; - - case "select": - e._wrapperState = { - wasMultiple: !!m.multiple - }, E("invalid", e), se(p, "onChange"); - break; - - case "textarea": - ce(e, m), E("invalid", e), se(p, "onChange"); - } - for (f in qe(h, m), k = null, m) m.hasOwnProperty(f) && (l = m[f], "children" === f ? "string" == typeof l ? e.textContent !== l && (k = [ "children", l ]) : "number" == typeof l && e.textContent !== "" + l && (k = [ "children", "" + l ]) : ra.hasOwnProperty(f) && null != l && se(p, f)); - switch (h) { - case "input": - Rb(e), Ac(e, m, !0); - break; - - case "textarea": - Rb(e), ee(e); - break; - - case "select": - case "option": - break; - - default: - "function" == typeof m.onClick && (e.onclick = te); - } - f = k, g.updateQueue = f, (g = null !== f) && kh(b); - } else { - m = b, p = f, e = g, k = 9 === h.nodeType ? h : h.ownerDocument, l === fe.html && (l = ge(p)), - l === fe.html ? "script" === p ? ((e = k.createElement("div")).innerHTML = "