5125 lines
217 KiB
JavaScript
5125 lines
217 KiB
JavaScript
!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 = 36);
|
|
}([ function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = __webpack_require__(11);
|
|
}, function(module, exports, __webpack_require__) {
|
|
module.exports = __webpack_require__(20)();
|
|
}, 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__(12);
|
|
}, 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";
|
|
var validateFormat = function(format) {};
|
|
module.exports = function(condition, format, a, b, c, d, e, f) {
|
|
if (validateFormat(format), !condition) {
|
|
var error;
|
|
if (format === undefined) error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else {
|
|
var args = [ a, b, c, d, e, f ], argIndex = 0;
|
|
(error = new Error(format.replace(/%s/g, function() {
|
|
return args[argIndex++];
|
|
}))).name = "Invariant Violation";
|
|
}
|
|
throw error.framesToPop = 1, error;
|
|
}
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = {};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
function makeEmptyFunction(arg) {
|
|
return function() {
|
|
return arg;
|
|
};
|
|
}
|
|
var emptyFunction = function() {};
|
|
emptyFunction.thatReturns = makeEmptyFunction, emptyFunction.thatReturnsFalse = makeEmptyFunction(!1),
|
|
emptyFunction.thatReturnsTrue = makeEmptyFunction(!0), emptyFunction.thatReturnsNull = makeEmptyFunction(null),
|
|
emptyFunction.thatReturnsThis = function() {
|
|
return this;
|
|
}, emptyFunction.thatReturnsArgument = function(arg) {
|
|
return arg;
|
|
}, module.exports = emptyFunction;
|
|
}, 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__(32);
|
|
"string" == typeof content && (content = [ [ module.i, content, "" ] ]);
|
|
var options = {
|
|
hmr: !0,
|
|
transform: void 0
|
|
};
|
|
options.insertInto = undefined;
|
|
__webpack_require__(34)(content, options);
|
|
content.locals && (module.exports = content.locals);
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = __webpack_require__(19);
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var k = __webpack_require__(3), n = __webpack_require__(4), p = __webpack_require__(5), q = __webpack_require__(6), r = "function" == typeof Symbol && Symbol["for"], t = r ? Symbol["for"]("react.element") : 60103, u = r ? Symbol["for"]("react.portal") : 60106, v = r ? Symbol["for"]("react.fragment") : 60107, w = r ? Symbol["for"]("react.strict_mode") : 60108, x = r ? Symbol["for"]("react.profiler") : 60114, y = r ? Symbol["for"]("react.provider") : 60109, z = r ? Symbol["for"]("react.context") : 60110, A = r ? Symbol["for"]("react.async_mode") : 60111, B = r ? Symbol["for"]("react.forward_ref") : 60112;
|
|
r && Symbol["for"]("react.timeout");
|
|
var C = "function" == typeof Symbol && Symbol.iterator;
|
|
function D(a) {
|
|
for (var b = arguments.length - 1, e = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 0; c < b; c++) e += "&args[]=" + encodeURIComponent(arguments[c + 1]);
|
|
n(!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. ", e);
|
|
}
|
|
var E = {
|
|
isMounted: function() {
|
|
return !1;
|
|
},
|
|
enqueueForceUpdate: function() {},
|
|
enqueueReplaceState: function() {},
|
|
enqueueSetState: function() {}
|
|
};
|
|
function F(a, b, e) {
|
|
this.props = a, this.context = b, this.refs = p, this.updater = e || E;
|
|
}
|
|
function G() {}
|
|
function H(a, b, e) {
|
|
this.props = a, this.context = b, this.refs = p, this.updater = e || E;
|
|
}
|
|
F.prototype.isReactComponent = {}, F.prototype.setState = function(a, b) {
|
|
"object" != typeof a && "function" != typeof a && null != a && D("85"), this.updater.enqueueSetState(this, a, b, "setState");
|
|
}, F.prototype.forceUpdate = function(a) {
|
|
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
}, G.prototype = F.prototype;
|
|
var I = H.prototype = new G();
|
|
I.constructor = H, k(I, F.prototype), I.isPureReactComponent = !0;
|
|
var J = {
|
|
current: null
|
|
}, K = Object.prototype.hasOwnProperty, L = {
|
|
key: !0,
|
|
ref: !0,
|
|
__self: !0,
|
|
__source: !0
|
|
};
|
|
function M(a, b, e) {
|
|
var c = void 0, d = {}, 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) && (d[c] = b[c]);
|
|
var f = arguments.length - 2;
|
|
if (1 === f) d.children = e; else if (1 < f) {
|
|
for (var l = Array(f), m = 0; m < f; m++) l[m] = arguments[m + 2];
|
|
d.children = l;
|
|
}
|
|
if (a && a.defaultProps) for (c in f = a.defaultProps) void 0 === d[c] && (d[c] = f[c]);
|
|
return {
|
|
$$typeof: t,
|
|
type: a,
|
|
key: g,
|
|
ref: h,
|
|
props: d,
|
|
_owner: J.current
|
|
};
|
|
}
|
|
function N(a) {
|
|
return "object" == typeof a && null !== a && a.$$typeof === t;
|
|
}
|
|
var O = /\/+/g, P = [];
|
|
function Q(a, b, e, c) {
|
|
if (P.length) {
|
|
var d = P.pop();
|
|
return d.result = a, d.keyPrefix = b, d.func = e, d.context = c, d.count = 0, d;
|
|
}
|
|
return {
|
|
result: a,
|
|
keyPrefix: b,
|
|
func: e,
|
|
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 S(a, b, e, c) {
|
|
var d = typeof a;
|
|
"undefined" !== d && "boolean" !== d || (a = null);
|
|
var g = !1;
|
|
if (null === a) g = !0; else switch (d) {
|
|
case "string":
|
|
case "number":
|
|
g = !0;
|
|
break;
|
|
|
|
case "object":
|
|
switch (a.$$typeof) {
|
|
case t:
|
|
case u:
|
|
g = !0;
|
|
}
|
|
}
|
|
if (g) return e(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(d = a[h], h);
|
|
g += S(d, f, e, c);
|
|
} else if (null === a || void 0 === a ? f = null : f = "function" == typeof (f = C && a[C] || a["@@iterator"]) ? f : null,
|
|
"function" == typeof f) for (a = f.call(a), h = 0; !(d = a.next()).done; ) g += S(d = d.value, f = b + T(d, h++), e, c); else "object" === d && D("31", "[object Object]" === (e = "" + a) ? "object with keys {" + Object.keys(a).join(", ") + "}" : e, "");
|
|
return g;
|
|
}
|
|
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 U(a, b) {
|
|
a.func.call(a.context, b, a.count++);
|
|
}
|
|
function V(a, b, e) {
|
|
var c = a.result, d = a.keyPrefix;
|
|
a = a.func.call(a.context, b, a.count++), Array.isArray(a) ? W(a, c, e, q.thatReturnsArgument) : null != a && (N(a) && (b = d + (!a.key || b && b.key === a.key ? "" : ("" + a.key).replace(O, "$&/") + "/") + e,
|
|
a = {
|
|
$$typeof: t,
|
|
type: a.type,
|
|
key: b,
|
|
ref: a.ref,
|
|
props: a.props,
|
|
_owner: a._owner
|
|
}), c.push(a));
|
|
}
|
|
function W(a, b, e, c, d) {
|
|
var g = "";
|
|
null != e && (g = ("" + e).replace(O, "$&/") + "/"), b = Q(b, g, c, d), null == a || S(a, "", V, b),
|
|
R(b);
|
|
}
|
|
var X = {
|
|
Children: {
|
|
map: function(a, b, e) {
|
|
if (null == a) return a;
|
|
var c = [];
|
|
return W(a, c, null, b, e), c;
|
|
},
|
|
forEach: function(a, b, e) {
|
|
if (null == a) return a;
|
|
b = Q(null, null, b, e), null == a || S(a, "", U, b), R(b);
|
|
},
|
|
count: function(a) {
|
|
return null == a ? 0 : S(a, "", q.thatReturnsNull, null);
|
|
},
|
|
toArray: function(a) {
|
|
var b = [];
|
|
return W(a, b, null, q.thatReturnsArgument), b;
|
|
},
|
|
only: function(a) {
|
|
return N(a) || D("143"), a;
|
|
}
|
|
},
|
|
createRef: function() {
|
|
return {
|
|
current: null
|
|
};
|
|
},
|
|
Component: F,
|
|
PureComponent: H,
|
|
createContext: function(a, b) {
|
|
return void 0 === b && (b = null), (a = {
|
|
$$typeof: z,
|
|
_calculateChangedBits: b,
|
|
_defaultValue: a,
|
|
_currentValue: a,
|
|
_currentValue2: a,
|
|
_changedBits: 0,
|
|
_changedBits2: 0,
|
|
Provider: null,
|
|
Consumer: null
|
|
}).Provider = {
|
|
$$typeof: y,
|
|
_context: a
|
|
}, a.Consumer = a;
|
|
},
|
|
forwardRef: function(a) {
|
|
return {
|
|
$$typeof: B,
|
|
render: a
|
|
};
|
|
},
|
|
Fragment: v,
|
|
StrictMode: w,
|
|
unstable_AsyncMode: A,
|
|
unstable_Profiler: x,
|
|
createElement: M,
|
|
cloneElement: function(a, b, e) {
|
|
(null === a || void 0 === a) && D("267", a);
|
|
var c = void 0, d = 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) && (d[c] = void 0 === b[c] && void 0 !== l ? l[c] : b[c]);
|
|
}
|
|
if (1 === (c = arguments.length - 2)) d.children = e; else if (1 < c) {
|
|
l = Array(c);
|
|
for (var m = 0; m < c; m++) l[m] = arguments[m + 2];
|
|
d.children = l;
|
|
}
|
|
return {
|
|
$$typeof: t,
|
|
type: a.type,
|
|
key: g,
|
|
ref: h,
|
|
props: d,
|
|
_owner: f
|
|
};
|
|
},
|
|
createFactory: function(a) {
|
|
var b = M.bind(null, a);
|
|
return b.type = a, b;
|
|
},
|
|
isValidElement: N,
|
|
version: "16.4.2",
|
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
ReactCurrentOwner: J,
|
|
assign: k
|
|
}
|
|
}, Y = {
|
|
"default": X
|
|
}, Z = Y && X || Y;
|
|
module.exports = Z["default"] ? Z["default"] : Z;
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var aa = __webpack_require__(4), ba = __webpack_require__(0), m = __webpack_require__(13), p = __webpack_require__(3), v = __webpack_require__(6), da = __webpack_require__(14), ea = __webpack_require__(15), fa = __webpack_require__(16), ha = __webpack_require__(5);
|
|
function A(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]);
|
|
aa(!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);
|
|
}
|
|
ba || A("227");
|
|
var B = {
|
|
_caughtError: null,
|
|
_hasCaughtError: !1,
|
|
_rethrowError: null,
|
|
_hasRethrowError: !1,
|
|
invokeGuardedCallback: function(a, b, c, d, e, f, g, h, k) {
|
|
(function(a, b, c, d, e, f, g, h, k) {
|
|
this._hasCaughtError = !1, this._caughtError = null;
|
|
var n = Array.prototype.slice.call(arguments, 3);
|
|
try {
|
|
b.apply(c, n);
|
|
} catch (r) {
|
|
this._caughtError = r, this._hasCaughtError = !0;
|
|
}
|
|
}).apply(B, arguments);
|
|
},
|
|
invokeGuardedCallbackAndCatchFirstError: function(a, b, c, d, e, f, g, h, k) {
|
|
if (B.invokeGuardedCallback.apply(this, arguments), B.hasCaughtError()) {
|
|
var n = B.clearCaughtError();
|
|
B._hasRethrowError || (B._hasRethrowError = !0, B._rethrowError = n);
|
|
}
|
|
},
|
|
rethrowCaughtError: function() {
|
|
return function() {
|
|
if (B._hasRethrowError) {
|
|
var a = B._rethrowError;
|
|
throw B._rethrowError = null, B._hasRethrowError = !1, a;
|
|
}
|
|
}.apply(B, arguments);
|
|
},
|
|
hasCaughtError: function() {
|
|
return B._hasCaughtError;
|
|
},
|
|
clearCaughtError: function() {
|
|
if (B._hasCaughtError) {
|
|
var a = B._caughtError;
|
|
return B._caughtError = null, B._hasCaughtError = !1, a;
|
|
}
|
|
A("198");
|
|
}
|
|
};
|
|
var la = null, ma = {};
|
|
function na() {
|
|
if (la) for (var a in ma) {
|
|
var b = ma[a], c = la.indexOf(a);
|
|
if (-1 < c || A("96", a), !oa[c]) for (var d in b.extractEvents || A("97", a), oa[c] = b,
|
|
c = b.eventTypes) {
|
|
var e = void 0, f = c[d], g = b, h = d;
|
|
pa.hasOwnProperty(h) && A("99", h), pa[h] = f;
|
|
var k = f.phasedRegistrationNames;
|
|
if (k) {
|
|
for (e in k) k.hasOwnProperty(e) && qa(k[e], g, h);
|
|
e = !0;
|
|
} else f.registrationName ? (qa(f.registrationName, g, h), e = !0) : e = !1;
|
|
e || A("98", d, a);
|
|
}
|
|
}
|
|
}
|
|
function qa(a, b, c) {
|
|
ra[a] && A("100", a), ra[a] = b, sa[a] = b.eventTypes[c].dependencies;
|
|
}
|
|
var oa = [], pa = {}, ra = {}, sa = {};
|
|
function ta(a) {
|
|
la && A("101"), la = Array.prototype.slice.call(a), na();
|
|
}
|
|
function ua(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] && A("102", c), ma[c] = d, b = !0);
|
|
}
|
|
b && na();
|
|
}
|
|
var va = {
|
|
plugins: oa,
|
|
eventNameDispatchConfigs: pa,
|
|
registrationNameModules: ra,
|
|
registrationNameDependencies: sa,
|
|
possibleRegistrationNames: null,
|
|
injectEventPluginOrder: ta,
|
|
injectEventPluginsByName: ua
|
|
}, wa = null, xa = null, ya = null;
|
|
function za(a, b, c, d) {
|
|
b = a.type || "unknown-event", a.currentTarget = ya(d), B.invokeGuardedCallbackAndCatchFirstError(b, c, void 0, a),
|
|
a.currentTarget = null;
|
|
}
|
|
function Aa(a, b) {
|
|
return null == b && A("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 Ba(a, b, c) {
|
|
Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a);
|
|
}
|
|
var Ca = null;
|
|
function Da(a, b) {
|
|
if (a) {
|
|
var c = a._dispatchListeners, d = a._dispatchInstances;
|
|
if (Array.isArray(c)) for (var e = 0; e < c.length && !a.isPropagationStopped(); e++) za(a, b, c[e], d[e]); else c && za(a, b, c, d);
|
|
a._dispatchListeners = null, a._dispatchInstances = null, a.isPersistent() || a.constructor.release(a);
|
|
}
|
|
}
|
|
function Ea(a) {
|
|
return Da(a, !0);
|
|
}
|
|
function Fa(a) {
|
|
return Da(a, !1);
|
|
}
|
|
var Ga = {
|
|
injectEventPluginOrder: ta,
|
|
injectEventPluginsByName: ua
|
|
};
|
|
function Ha(a, b) {
|
|
var c = a.stateNode;
|
|
if (!c) return null;
|
|
var d = wa(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 && A("231", b, typeof c), c);
|
|
}
|
|
function Ia(a, b) {
|
|
null !== a && (Ca = Aa(Ca, a)), a = Ca, Ca = null, a && (Ba(a, b ? Ea : Fa), Ca && A("95"),
|
|
B.rethrowCaughtError());
|
|
}
|
|
function Ja(a, b, c, d) {
|
|
for (var e = null, f = 0; f < oa.length; f++) {
|
|
var g = oa[f];
|
|
g && (g = g.extractEvents(a, b, c, d)) && (e = Aa(e, g));
|
|
}
|
|
Ia(e, !1);
|
|
}
|
|
var Ka = {
|
|
injection: Ga,
|
|
getListener: Ha,
|
|
runEventsInBatch: Ia,
|
|
runExtractedEventsInBatch: Ja
|
|
}, La = Math.random().toString(36).slice(2), C = "__reactInternalInstance$" + La, Ma = "__reactEventHandlers$" + La;
|
|
function Na(a) {
|
|
if (a[C]) return a[C];
|
|
for (;!a[C]; ) {
|
|
if (!a.parentNode) return null;
|
|
a = a.parentNode;
|
|
}
|
|
return 5 === (a = a[C]).tag || 6 === a.tag ? a : null;
|
|
}
|
|
function Oa(a) {
|
|
if (5 === a.tag || 6 === a.tag) return a.stateNode;
|
|
A("33");
|
|
}
|
|
function Pa(a) {
|
|
return a[Ma] || null;
|
|
}
|
|
var Qa = {
|
|
precacheFiberNode: function(a, b) {
|
|
b[C] = a;
|
|
},
|
|
getClosestInstanceFromNode: Na,
|
|
getInstanceFromNode: function(a) {
|
|
return !(a = a[C]) || 5 !== a.tag && 6 !== a.tag ? null : a;
|
|
},
|
|
getNodeFromInstance: Oa,
|
|
getFiberCurrentPropsFromNode: Pa,
|
|
updateFiberProps: function(a, b) {
|
|
a[Ma] = b;
|
|
}
|
|
};
|
|
function F(a) {
|
|
do {
|
|
a = a["return"];
|
|
} while (a && 5 !== a.tag);
|
|
return a || null;
|
|
}
|
|
function Ra(a, b, c) {
|
|
for (var d = []; a; ) d.push(a), a = F(a);
|
|
for (a = d.length; 0 < a--; ) b(d[a], "captured", c);
|
|
for (a = 0; a < d.length; a++) b(d[a], "bubbled", c);
|
|
}
|
|
function Sa(a, b, c) {
|
|
(b = Ha(a, c.dispatchConfig.phasedRegistrationNames[b])) && (c._dispatchListeners = Aa(c._dispatchListeners, b),
|
|
c._dispatchInstances = Aa(c._dispatchInstances, a));
|
|
}
|
|
function Ta(a) {
|
|
a && a.dispatchConfig.phasedRegistrationNames && Ra(a._targetInst, Sa, a);
|
|
}
|
|
function Ua(a) {
|
|
if (a && a.dispatchConfig.phasedRegistrationNames) {
|
|
var b = a._targetInst;
|
|
Ra(b = b ? F(b) : null, Sa, a);
|
|
}
|
|
}
|
|
function Va(a, b, c) {
|
|
a && c && c.dispatchConfig.registrationName && (b = Ha(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = Aa(c._dispatchListeners, b),
|
|
c._dispatchInstances = Aa(c._dispatchInstances, a));
|
|
}
|
|
function Xa(a) {
|
|
a && a.dispatchConfig.registrationName && Va(a._targetInst, null, a);
|
|
}
|
|
function Ya(a) {
|
|
Ba(a, Ta);
|
|
}
|
|
function Za(a, b, c, d) {
|
|
if (c && d) a: {
|
|
for (var e = c, f = d, g = 0, h = e; h; h = F(h)) g++;
|
|
h = 0;
|
|
for (var k = f; k; k = F(k)) h++;
|
|
for (;0 < g - h; ) e = F(e), g--;
|
|
for (;0 < h - g; ) f = F(f), h--;
|
|
for (;g--; ) {
|
|
if (e === f || e === f.alternate) break a;
|
|
e = F(e), f = F(f);
|
|
}
|
|
e = null;
|
|
} else e = null;
|
|
for (f = e, e = []; c && c !== f && (null === (g = c.alternate) || g !== f); ) e.push(c),
|
|
c = F(c);
|
|
for (c = []; d && d !== f && (null === (g = d.alternate) || g !== f); ) c.push(d),
|
|
d = F(d);
|
|
for (d = 0; d < e.length; d++) Va(e[d], "bubbled", a);
|
|
for (a = c.length; 0 < a--; ) Va(c[a], "captured", b);
|
|
}
|
|
var $a = {
|
|
accumulateTwoPhaseDispatches: Ya,
|
|
accumulateTwoPhaseDispatchesSkipTarget: function(a) {
|
|
Ba(a, Ua);
|
|
},
|
|
accumulateEnterLeaveDispatches: Za,
|
|
accumulateDirectDispatches: function(a) {
|
|
Ba(a, Xa);
|
|
}
|
|
};
|
|
function ab(a, b) {
|
|
var c = {};
|
|
return c[a.toLowerCase()] = b.toLowerCase(), c["Webkit" + a] = "webkit" + b, c["Moz" + a] = "moz" + b,
|
|
c["ms" + a] = "MS" + b, c["O" + a] = "o" + b.toLowerCase(), c;
|
|
}
|
|
var bb = {
|
|
animationend: ab("Animation", "AnimationEnd"),
|
|
animationiteration: ab("Animation", "AnimationIteration"),
|
|
animationstart: ab("Animation", "AnimationStart"),
|
|
transitionend: ab("Transition", "TransitionEnd")
|
|
}, cb = {}, db = {};
|
|
function eb(a) {
|
|
if (cb[a]) return cb[a];
|
|
if (!bb[a]) return a;
|
|
var c, b = bb[a];
|
|
for (c in b) if (b.hasOwnProperty(c) && c in db) return cb[a] = b[c];
|
|
return a;
|
|
}
|
|
m.canUseDOM && (db = document.createElement("div").style, "AnimationEvent" in window || (delete bb.animationend.animation,
|
|
delete bb.animationiteration.animation, delete bb.animationstart.animation), "TransitionEvent" in window || delete bb.transitionend.transition);
|
|
var fb = eb("animationend"), gb = eb("animationiteration"), hb = eb("animationstart"), ib = eb("transitionend"), jb = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), kb = null;
|
|
function lb() {
|
|
return !kb && m.canUseDOM && (kb = "textContent" in document.documentElement ? "textContent" : "innerText"),
|
|
kb;
|
|
}
|
|
var G = {
|
|
_root: null,
|
|
_startText: null,
|
|
_fallbackText: null
|
|
};
|
|
function mb() {
|
|
if (G._fallbackText) return G._fallbackText;
|
|
var a, d, b = G._startText, c = b.length, e = nb(), 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 G._fallbackText = e.slice(a, 1 < d ? 1 - d : void 0), G._fallbackText;
|
|
}
|
|
function nb() {
|
|
return "value" in G._root ? G._root.value : G._root[lb()];
|
|
}
|
|
var ob = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "), pb = {
|
|
type: null,
|
|
target: null,
|
|
currentTarget: v.thatReturnsNull,
|
|
eventPhase: null,
|
|
bubbles: null,
|
|
cancelable: null,
|
|
timeStamp: function(a) {
|
|
return a.timeStamp || Date.now();
|
|
},
|
|
defaultPrevented: null,
|
|
isTrusted: null
|
|
};
|
|
function H(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) ? v.thatReturnsTrue : v.thatReturnsFalse,
|
|
this.isPropagationStopped = v.thatReturnsFalse, this;
|
|
}
|
|
function rb(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 sb(a) {
|
|
a instanceof this || A("223"), a.destructor(), 10 > this.eventPool.length && this.eventPool.push(a);
|
|
}
|
|
function qb(a) {
|
|
a.eventPool = [], a.getPooled = rb, a.release = sb;
|
|
}
|
|
p(H.prototype, {
|
|
preventDefault: function() {
|
|
this.defaultPrevented = !0;
|
|
var a = this.nativeEvent;
|
|
a && (a.preventDefault ? a.preventDefault() : "unknown" != typeof a.returnValue && (a.returnValue = !1),
|
|
this.isDefaultPrevented = v.thatReturnsTrue);
|
|
},
|
|
stopPropagation: function() {
|
|
var a = this.nativeEvent;
|
|
a && (a.stopPropagation ? a.stopPropagation() : "unknown" != typeof a.cancelBubble && (a.cancelBubble = !0),
|
|
this.isPropagationStopped = v.thatReturnsTrue);
|
|
},
|
|
persist: function() {
|
|
this.isPersistent = v.thatReturnsTrue;
|
|
},
|
|
isPersistent: v.thatReturnsFalse,
|
|
destructor: function() {
|
|
var b, a = this.constructor.Interface;
|
|
for (b in a) this[b] = null;
|
|
for (a = 0; a < ob.length; a++) this[ob[a]] = null;
|
|
}
|
|
}), H.Interface = pb, H.extend = function(a) {
|
|
function b() {}
|
|
function c() {
|
|
return d.apply(this, arguments);
|
|
}
|
|
var d = this;
|
|
b.prototype = d.prototype;
|
|
var e = new b();
|
|
return p(e, c.prototype), c.prototype = e, c.prototype.constructor = c, c.Interface = p({}, d.Interface, a),
|
|
c.extend = d.extend, qb(c), c;
|
|
}, qb(H);
|
|
var tb = H.extend({
|
|
data: null
|
|
}), ub = H.extend({
|
|
data: null
|
|
}), vb = [ 9, 13, 27, 32 ], wb = m.canUseDOM && "CompositionEvent" in window, xb = null;
|
|
m.canUseDOM && "documentMode" in document && (xb = document.documentMode);
|
|
var yb = m.canUseDOM && "TextEvent" in window && !xb, zb = m.canUseDOM && (!wb || xb && 8 < xb && 11 >= xb), Ab = String.fromCharCode(32), Bb = {
|
|
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(" ")
|
|
}
|
|
}, Cb = !1;
|
|
function Db(a, b) {
|
|
switch (a) {
|
|
case "keyup":
|
|
return -1 !== vb.indexOf(b.keyCode);
|
|
|
|
case "keydown":
|
|
return 229 !== b.keyCode;
|
|
|
|
case "keypress":
|
|
case "mousedown":
|
|
case "blur":
|
|
return !0;
|
|
|
|
default:
|
|
return !1;
|
|
}
|
|
}
|
|
function Eb(a) {
|
|
return "object" == typeof (a = a.detail) && "data" in a ? a.data : null;
|
|
}
|
|
var Fb = !1;
|
|
var Ib = {
|
|
eventTypes: Bb,
|
|
extractEvents: function(a, b, c, d) {
|
|
var e = void 0, f = void 0;
|
|
if (wb) b: {
|
|
switch (a) {
|
|
case "compositionstart":
|
|
e = Bb.compositionStart;
|
|
break b;
|
|
|
|
case "compositionend":
|
|
e = Bb.compositionEnd;
|
|
break b;
|
|
|
|
case "compositionupdate":
|
|
e = Bb.compositionUpdate;
|
|
break b;
|
|
}
|
|
e = void 0;
|
|
} else Fb ? Db(a, c) && (e = Bb.compositionEnd) : "keydown" === a && 229 === c.keyCode && (e = Bb.compositionStart);
|
|
return e ? (zb && (Fb || e !== Bb.compositionStart ? e === Bb.compositionEnd && Fb && (f = mb()) : (G._root = d,
|
|
G._startText = nb(), Fb = !0)), e = tb.getPooled(e, b, c, d), f ? e.data = f : null !== (f = Eb(c)) && (e.data = f),
|
|
Ya(e), f = e) : f = null, (a = yb ? function(a, b) {
|
|
switch (a) {
|
|
case "compositionend":
|
|
return Eb(b);
|
|
|
|
case "keypress":
|
|
return 32 !== b.which ? null : (Cb = !0, Ab);
|
|
|
|
case "textInput":
|
|
return (a = b.data) === Ab && Cb ? null : a;
|
|
|
|
default:
|
|
return null;
|
|
}
|
|
}(a, c) : function(a, b) {
|
|
if (Fb) return "compositionend" === a || !wb && Db(a, b) ? (a = mb(), G._root = null,
|
|
G._startText = null, G._fallbackText = null, Fb = !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 zb ? null : b.data;
|
|
|
|
default:
|
|
return null;
|
|
}
|
|
}(a, c)) ? ((b = ub.getPooled(Bb.beforeInput, b, c, d)).data = a, Ya(b)) : b = null,
|
|
null === f ? b : null === b ? f : [ f, b ];
|
|
}
|
|
}, Jb = null, Kb = {
|
|
injectFiberControlledHostComponent: function(a) {
|
|
Jb = a;
|
|
}
|
|
}, Lb = null, Mb = null;
|
|
function Nb(a) {
|
|
if (a = xa(a)) {
|
|
Jb && "function" == typeof Jb.restoreControlledState || A("194");
|
|
var b = wa(a.stateNode);
|
|
Jb.restoreControlledState(a.stateNode, a.type, b);
|
|
}
|
|
}
|
|
function Ob(a) {
|
|
Lb ? Mb ? Mb.push(a) : Mb = [ a ] : Lb = a;
|
|
}
|
|
function Pb() {
|
|
return null !== Lb || null !== Mb;
|
|
}
|
|
function Qb() {
|
|
if (Lb) {
|
|
var a = Lb, b = Mb;
|
|
if (Mb = Lb = null, Nb(a), b) for (a = 0; a < b.length; a++) Nb(b[a]);
|
|
}
|
|
}
|
|
var Rb = {
|
|
injection: Kb,
|
|
enqueueStateRestore: Ob,
|
|
needsStateRestore: Pb,
|
|
restoreStateIfNeeded: Qb
|
|
};
|
|
function Sb(a, b) {
|
|
return a(b);
|
|
}
|
|
function Tb(a, b, c) {
|
|
return a(b, c);
|
|
}
|
|
function Ub() {}
|
|
var Vb = !1;
|
|
function Wb(a, b) {
|
|
if (Vb) return a(b);
|
|
Vb = !0;
|
|
try {
|
|
return Sb(a, b);
|
|
} finally {
|
|
Vb = !1, Pb() && (Ub(), Qb());
|
|
}
|
|
}
|
|
var Xb = {
|
|
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 Yb(a) {
|
|
var b = a && a.nodeName && a.nodeName.toLowerCase();
|
|
return "input" === b ? !!Xb[a.type] : "textarea" === b;
|
|
}
|
|
function Zb(a) {
|
|
return (a = a.target || a.srcElement || window).correspondingUseElement && (a = a.correspondingUseElement),
|
|
3 === a.nodeType ? a.parentNode : a;
|
|
}
|
|
function $b(a, b) {
|
|
return !(!m.canUseDOM || b && !("addEventListener" in document)) && ((b = (a = "on" + a) in document) || ((b = document.createElement("div")).setAttribute(a, "return;"),
|
|
b = "function" == typeof b[a]), b);
|
|
}
|
|
function ac(a) {
|
|
var b = a.type;
|
|
return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b);
|
|
}
|
|
function cc(a) {
|
|
a._valueTracker || (a._valueTracker = function(a) {
|
|
var b = ac(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 dc(a) {
|
|
if (!a) return !1;
|
|
var b = a._valueTracker;
|
|
if (!b) return !0;
|
|
var c = b.getValue(), d = "";
|
|
return a && (d = ac(a) ? a.checked ? "true" : "false" : a.value), (a = d) !== c && (b.setValue(a),
|
|
!0);
|
|
}
|
|
var ec = ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, fc = "function" == typeof Symbol && Symbol["for"], gc = fc ? Symbol["for"]("react.element") : 60103, hc = fc ? Symbol["for"]("react.portal") : 60106, ic = fc ? Symbol["for"]("react.fragment") : 60107, jc = fc ? Symbol["for"]("react.strict_mode") : 60108, kc = fc ? Symbol["for"]("react.profiler") : 60114, lc = fc ? Symbol["for"]("react.provider") : 60109, mc = fc ? Symbol["for"]("react.context") : 60110, pc = fc ? Symbol["for"]("react.async_mode") : 60111, qc = fc ? Symbol["for"]("react.forward_ref") : 60112, rc = fc ? Symbol["for"]("react.timeout") : 60113, sc = "function" == typeof Symbol && Symbol.iterator;
|
|
function tc(a) {
|
|
return null === a || void 0 === a ? null : "function" == typeof (a = sc && a[sc] || a["@@iterator"]) ? a : null;
|
|
}
|
|
function uc(a) {
|
|
var b = a.type;
|
|
if ("function" == typeof b) return b.displayName || b.name;
|
|
if ("string" == typeof b) return b;
|
|
switch (b) {
|
|
case pc:
|
|
return "AsyncMode";
|
|
|
|
case mc:
|
|
return "Context.Consumer";
|
|
|
|
case ic:
|
|
return "ReactFragment";
|
|
|
|
case hc:
|
|
return "ReactPortal";
|
|
|
|
case kc:
|
|
return "Profiler(" + a.pendingProps.id + ")";
|
|
|
|
case lc:
|
|
return "Context.Provider";
|
|
|
|
case jc:
|
|
return "StrictMode";
|
|
|
|
case rc:
|
|
return "Timeout";
|
|
}
|
|
if ("object" == typeof b && null !== b) switch (b.$$typeof) {
|
|
case qc:
|
|
return "" !== (a = b.render.displayName || b.render.name || "") ? "ForwardRef(" + a + ")" : "ForwardRef";
|
|
}
|
|
return null;
|
|
}
|
|
function vc(a) {
|
|
var b = "";
|
|
do {
|
|
a: switch (a.tag) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 5:
|
|
var c = a._debugOwner, d = a._debugSource, e = uc(a), f = null;
|
|
c && (f = uc(c)), c = d, e = "\n in " + (e || "Unknown") + (c ? " (at " + c.fileName.replace(/^.*[\\\/]/, "") + ":" + c.lineNumber + ")" : f ? " (created by " + f + ")" : "");
|
|
break a;
|
|
|
|
default:
|
|
e = "";
|
|
}
|
|
b += e, a = a["return"];
|
|
} while (a);
|
|
return b;
|
|
}
|
|
var wc = /^[: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]*$/, xc = Object.prototype.hasOwnProperty, zc = {}, Ac = {};
|
|
function I(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 J = {};
|
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
|
|
J[a] = new I(a, 0, !1, a, null);
|
|
}), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(a) {
|
|
var b = a[0];
|
|
J[b] = new I(b, 1, !1, a[1], null);
|
|
}), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(a) {
|
|
J[a] = new I(a, 2, !1, a.toLowerCase(), null);
|
|
}), [ "autoReverse", "externalResourcesRequired", "preserveAlpha" ].forEach(function(a) {
|
|
J[a] = new I(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) {
|
|
J[a] = new I(a, 3, !1, a.toLowerCase(), null);
|
|
}), [ "checked", "multiple", "muted", "selected" ].forEach(function(a) {
|
|
J[a] = new I(a, 3, !0, a.toLowerCase(), null);
|
|
}), [ "capture", "download" ].forEach(function(a) {
|
|
J[a] = new I(a, 4, !1, a.toLowerCase(), null);
|
|
}), [ "cols", "rows", "size", "span" ].forEach(function(a) {
|
|
J[a] = new I(a, 6, !1, a.toLowerCase(), null);
|
|
}), [ "rowSpan", "start" ].forEach(function(a) {
|
|
J[a] = new I(a, 5, !1, a.toLowerCase(), null);
|
|
});
|
|
var Ec = /[\-:]([a-z])/g;
|
|
function Fc(a) {
|
|
return a[1].toUpperCase();
|
|
}
|
|
function Gc(a, b, c, d) {
|
|
var e = J.hasOwnProperty(b) ? J[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 !!xc.call(Ac, a) || !xc.call(zc, a) && (wc.test(a) ? Ac[a] = !0 : (zc[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 Hc(a, b) {
|
|
var c = b.checked;
|
|
return p({}, b, {
|
|
defaultChecked: void 0,
|
|
defaultValue: void 0,
|
|
value: void 0,
|
|
checked: null != c ? c : a._wrapperState.initialChecked
|
|
});
|
|
}
|
|
function Ic(a, b) {
|
|
var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked;
|
|
c = Jc(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 Kc(a, b) {
|
|
null != (b = b.checked) && Gc(a, "checked", b, !1);
|
|
}
|
|
function Lc(a, b) {
|
|
Kc(a, b);
|
|
var c = Jc(b.value);
|
|
null != c && ("number" === b.type ? (0 === c && "" === a.value || a.value != c) && (a.value = "" + c) : a.value !== "" + c && (a.value = "" + c)),
|
|
b.hasOwnProperty("value") ? Mc(a, b.type, c) : b.hasOwnProperty("defaultValue") && Mc(a, b.type, Jc(b.defaultValue)),
|
|
null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked);
|
|
}
|
|
function Nc(a, b, c) {
|
|
if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) {
|
|
b = "" + a._wrapperState.initialValue;
|
|
var d = a.value;
|
|
c || b === d || (a.value = b), a.defaultValue = b;
|
|
}
|
|
"" !== (c = a.name) && (a.name = ""), a.defaultChecked = !a.defaultChecked, a.defaultChecked = !a.defaultChecked,
|
|
"" !== c && (a.name = c);
|
|
}
|
|
function Mc(a, b, c) {
|
|
"number" === b && a.ownerDocument.activeElement === a || (null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c));
|
|
}
|
|
function Jc(a) {
|
|
switch (typeof a) {
|
|
case "boolean":
|
|
case "number":
|
|
case "object":
|
|
case "string":
|
|
case "undefined":
|
|
return a;
|
|
|
|
default:
|
|
return "";
|
|
}
|
|
}
|
|
"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(Ec, Fc);
|
|
J[b] = new I(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(Ec, Fc);
|
|
J[b] = new I(b, 1, !1, a, "http://www.w3.org/1999/xlink");
|
|
}), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(a) {
|
|
var b = a.replace(Ec, Fc);
|
|
J[b] = new I(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace");
|
|
}), J.tabIndex = new I("tabIndex", 1, !1, "tabindex", null);
|
|
var Oc = {
|
|
change: {
|
|
phasedRegistrationNames: {
|
|
bubbled: "onChange",
|
|
captured: "onChangeCapture"
|
|
},
|
|
dependencies: "blur change click focus input keydown keyup selectionchange".split(" ")
|
|
}
|
|
};
|
|
function Pc(a, b, c) {
|
|
return (a = H.getPooled(Oc.change, a, b, c)).type = "change", Ob(c), Ya(a), a;
|
|
}
|
|
var Qc = null, Rc = null;
|
|
function Sc(a) {
|
|
Ia(a, !1);
|
|
}
|
|
function Tc(a) {
|
|
if (dc(Oa(a))) return a;
|
|
}
|
|
function Uc(a, b) {
|
|
if ("change" === a) return b;
|
|
}
|
|
var Vc = !1;
|
|
function Wc() {
|
|
Qc && (Qc.detachEvent("onpropertychange", Xc), Rc = Qc = null);
|
|
}
|
|
function Xc(a) {
|
|
"value" === a.propertyName && Tc(Rc) && Wb(Sc, a = Pc(Rc, a, Zb(a)));
|
|
}
|
|
function Yc(a, b, c) {
|
|
"focus" === a ? (Wc(), Rc = c, (Qc = b).attachEvent("onpropertychange", Xc)) : "blur" === a && Wc();
|
|
}
|
|
function Zc(a) {
|
|
if ("selectionchange" === a || "keyup" === a || "keydown" === a) return Tc(Rc);
|
|
}
|
|
function $c(a, b) {
|
|
if ("click" === a) return Tc(b);
|
|
}
|
|
function ad(a, b) {
|
|
if ("input" === a || "change" === a) return Tc(b);
|
|
}
|
|
m.canUseDOM && (Vc = $b("input") && (!document.documentMode || 9 < document.documentMode));
|
|
var bd = {
|
|
eventTypes: Oc,
|
|
_isInputEventSupported: Vc,
|
|
extractEvents: function(a, b, c, d) {
|
|
var e = b ? Oa(b) : window, f = void 0, g = void 0, h = e.nodeName && e.nodeName.toLowerCase();
|
|
if ("select" === h || "input" === h && "file" === e.type ? f = Uc : Yb(e) ? Vc ? f = ad : (f = Zc,
|
|
g = Yc) : (h = e.nodeName) && "input" === h.toLowerCase() && ("checkbox" === e.type || "radio" === e.type) && (f = $c),
|
|
f && (f = f(a, b))) return Pc(f, c, d);
|
|
g && g(a, e, b), "blur" === a && (a = e._wrapperState) && a.controlled && "number" === e.type && Mc(e, "number", e.value);
|
|
}
|
|
}, cd = H.extend({
|
|
view: null,
|
|
detail: null
|
|
}), dd = {
|
|
Alt: "altKey",
|
|
Control: "ctrlKey",
|
|
Meta: "metaKey",
|
|
Shift: "shiftKey"
|
|
};
|
|
function ed(a) {
|
|
var b = this.nativeEvent;
|
|
return b.getModifierState ? b.getModifierState(a) : !!(a = dd[a]) && !!b[a];
|
|
}
|
|
function fd() {
|
|
return ed;
|
|
}
|
|
var gd = cd.extend({
|
|
screenX: null,
|
|
screenY: null,
|
|
clientX: null,
|
|
clientY: null,
|
|
pageX: null,
|
|
pageY: null,
|
|
ctrlKey: null,
|
|
shiftKey: null,
|
|
altKey: null,
|
|
metaKey: null,
|
|
getModifierState: fd,
|
|
button: null,
|
|
buttons: null,
|
|
relatedTarget: function(a) {
|
|
return a.relatedTarget || (a.fromElement === a.srcElement ? a.toElement : a.fromElement);
|
|
}
|
|
}), hd = gd.extend({
|
|
pointerId: null,
|
|
width: null,
|
|
height: null,
|
|
pressure: null,
|
|
tiltX: null,
|
|
tiltY: null,
|
|
pointerType: null,
|
|
isPrimary: null
|
|
}), id = {
|
|
mouseEnter: {
|
|
registrationName: "onMouseEnter",
|
|
dependencies: [ "mouseout", "mouseover" ]
|
|
},
|
|
mouseLeave: {
|
|
registrationName: "onMouseLeave",
|
|
dependencies: [ "mouseout", "mouseover" ]
|
|
},
|
|
pointerEnter: {
|
|
registrationName: "onPointerEnter",
|
|
dependencies: [ "pointerout", "pointerover" ]
|
|
},
|
|
pointerLeave: {
|
|
registrationName: "onPointerLeave",
|
|
dependencies: [ "pointerout", "pointerover" ]
|
|
}
|
|
}, jd = {
|
|
eventTypes: id,
|
|
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) ? Na(b) : null) : f = null,
|
|
f === b) return null;
|
|
var g = void 0, h = void 0, k = void 0, n = void 0;
|
|
return "mouseout" === a || "mouseover" === a ? (g = gd, h = id.mouseLeave, k = id.mouseEnter,
|
|
n = "mouse") : "pointerout" !== a && "pointerover" !== a || (g = hd, h = id.pointerLeave,
|
|
k = id.pointerEnter, n = "pointer"), a = null == f ? e : Oa(f), e = null == b ? e : Oa(b),
|
|
(h = g.getPooled(h, f, c, d)).type = n + "leave", h.target = a, h.relatedTarget = e,
|
|
(c = g.getPooled(k, b, c, d)).type = n + "enter", c.target = e, c.relatedTarget = a,
|
|
Za(h, c, f, b), [ h, c ];
|
|
}
|
|
};
|
|
function kd(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 ld(a) {
|
|
2 !== kd(a) && A("188");
|
|
}
|
|
function md(a) {
|
|
var b = a.alternate;
|
|
if (!b) return 3 === (b = kd(a)) && A("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 ld(e), a;
|
|
if (g === d) return ld(e), b;
|
|
g = g.sibling;
|
|
}
|
|
A("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 || A("189");
|
|
}
|
|
}
|
|
c.alternate !== d && A("190");
|
|
}
|
|
return 3 !== c.tag && A("188"), c.stateNode.current === c ? a : b;
|
|
}
|
|
function nd(a) {
|
|
if (!(a = md(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 pd = H.extend({
|
|
animationName: null,
|
|
elapsedTime: null,
|
|
pseudoElement: null
|
|
}), qd = H.extend({
|
|
clipboardData: function(a) {
|
|
return "clipboardData" in a ? a.clipboardData : window.clipboardData;
|
|
}
|
|
}), rd = cd.extend({
|
|
relatedTarget: null
|
|
});
|
|
function sd(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 td = {
|
|
Esc: "Escape",
|
|
Spacebar: " ",
|
|
Left: "ArrowLeft",
|
|
Up: "ArrowUp",
|
|
Right: "ArrowRight",
|
|
Down: "ArrowDown",
|
|
Del: "Delete",
|
|
Win: "OS",
|
|
Menu: "ContextMenu",
|
|
Apps: "ContextMenu",
|
|
Scroll: "ScrollLock",
|
|
MozPrintableKey: "Unidentified"
|
|
}, ud = {
|
|
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"
|
|
}, vd = cd.extend({
|
|
key: function(a) {
|
|
if (a.key) {
|
|
var b = td[a.key] || a.key;
|
|
if ("Unidentified" !== b) return b;
|
|
}
|
|
return "keypress" === a.type ? 13 === (a = sd(a)) ? "Enter" : String.fromCharCode(a) : "keydown" === a.type || "keyup" === a.type ? ud[a.keyCode] || "Unidentified" : "";
|
|
},
|
|
location: null,
|
|
ctrlKey: null,
|
|
shiftKey: null,
|
|
altKey: null,
|
|
metaKey: null,
|
|
repeat: null,
|
|
locale: null,
|
|
getModifierState: fd,
|
|
charCode: function(a) {
|
|
return "keypress" === a.type ? sd(a) : 0;
|
|
},
|
|
keyCode: function(a) {
|
|
return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
|
|
},
|
|
which: function(a) {
|
|
return "keypress" === a.type ? sd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
|
|
}
|
|
}), wd = gd.extend({
|
|
dataTransfer: null
|
|
}), xd = cd.extend({
|
|
touches: null,
|
|
targetTouches: null,
|
|
changedTouches: null,
|
|
altKey: null,
|
|
metaKey: null,
|
|
ctrlKey: null,
|
|
shiftKey: null,
|
|
getModifierState: fd
|
|
}), yd = H.extend({
|
|
propertyName: null,
|
|
elapsedTime: null,
|
|
pseudoElement: null
|
|
}), zd = gd.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
|
|
}), Ad = [ [ "abort", "abort" ], [ fb, "animationEnd" ], [ gb, "animationIteration" ], [ hb, "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" ], [ ib, "transitionEnd" ], [ "waiting", "waiting" ], [ "wheel", "wheel" ] ], Bd = {}, Cd = {};
|
|
function Dd(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
|
|
}, Bd[a] = b, Cd[c] = b;
|
|
}
|
|
[ [ "blur", "blur" ], [ "cancel", "cancel" ], [ "click", "click" ], [ "close", "close" ], [ "contextmenu", "contextMenu" ], [ "copy", "copy" ], [ "cut", "cut" ], [ "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) {
|
|
Dd(a, !0);
|
|
}), Ad.forEach(function(a) {
|
|
Dd(a, !1);
|
|
});
|
|
var Ed = {
|
|
eventTypes: Bd,
|
|
isInteractiveTopLevelEventType: function(a) {
|
|
return void 0 !== (a = Cd[a]) && !0 === a.isInteractive;
|
|
},
|
|
extractEvents: function(a, b, c, d) {
|
|
var e = Cd[a];
|
|
if (!e) return null;
|
|
switch (a) {
|
|
case "keypress":
|
|
if (0 === sd(c)) return null;
|
|
|
|
case "keydown":
|
|
case "keyup":
|
|
a = vd;
|
|
break;
|
|
|
|
case "blur":
|
|
case "focus":
|
|
a = rd;
|
|
break;
|
|
|
|
case "click":
|
|
if (2 === c.button) return null;
|
|
|
|
case "dblclick":
|
|
case "mousedown":
|
|
case "mousemove":
|
|
case "mouseup":
|
|
case "mouseout":
|
|
case "mouseover":
|
|
case "contextmenu":
|
|
a = gd;
|
|
break;
|
|
|
|
case "drag":
|
|
case "dragend":
|
|
case "dragenter":
|
|
case "dragexit":
|
|
case "dragleave":
|
|
case "dragover":
|
|
case "dragstart":
|
|
case "drop":
|
|
a = wd;
|
|
break;
|
|
|
|
case "touchcancel":
|
|
case "touchend":
|
|
case "touchmove":
|
|
case "touchstart":
|
|
a = xd;
|
|
break;
|
|
|
|
case fb:
|
|
case gb:
|
|
case hb:
|
|
a = pd;
|
|
break;
|
|
|
|
case ib:
|
|
a = yd;
|
|
break;
|
|
|
|
case "scroll":
|
|
a = cd;
|
|
break;
|
|
|
|
case "wheel":
|
|
a = zd;
|
|
break;
|
|
|
|
case "copy":
|
|
case "cut":
|
|
case "paste":
|
|
a = qd;
|
|
break;
|
|
|
|
case "gotpointercapture":
|
|
case "lostpointercapture":
|
|
case "pointercancel":
|
|
case "pointerdown":
|
|
case "pointermove":
|
|
case "pointerout":
|
|
case "pointerover":
|
|
case "pointerup":
|
|
a = hd;
|
|
break;
|
|
|
|
default:
|
|
a = H;
|
|
}
|
|
return Ya(b = a.getPooled(e, b, c, d)), b;
|
|
}
|
|
}, Fd = Ed.isInteractiveTopLevelEventType, Gd = [];
|
|
function Hd(a) {
|
|
var b = a.targetInst;
|
|
do {
|
|
if (!b) {
|
|
a.ancestors.push(b);
|
|
break;
|
|
}
|
|
var c;
|
|
for (c = b; c["return"]; ) c = c["return"];
|
|
if (!(c = 3 !== c.tag ? null : c.stateNode.containerInfo)) break;
|
|
a.ancestors.push(b), b = Na(c);
|
|
} while (b);
|
|
for (c = 0; c < a.ancestors.length; c++) b = a.ancestors[c], Ja(a.topLevelType, b, a.nativeEvent, Zb(a.nativeEvent));
|
|
}
|
|
var Id = !0;
|
|
function Kd(a) {
|
|
Id = !!a;
|
|
}
|
|
function K(a, b) {
|
|
if (!b) return null;
|
|
var c = (Fd(a) ? Ld : Md).bind(null, a);
|
|
b.addEventListener(a, c, !1);
|
|
}
|
|
function Nd(a, b) {
|
|
if (!b) return null;
|
|
var c = (Fd(a) ? Ld : Md).bind(null, a);
|
|
b.addEventListener(a, c, !0);
|
|
}
|
|
function Ld(a, b) {
|
|
Tb(Md, a, b);
|
|
}
|
|
function Md(a, b) {
|
|
if (Id) {
|
|
var c = Zb(b);
|
|
if (null === (c = Na(c)) || "number" != typeof c.tag || 2 === kd(c) || (c = null),
|
|
Gd.length) {
|
|
var d = Gd.pop();
|
|
d.topLevelType = a, d.nativeEvent = b, d.targetInst = c, a = d;
|
|
} else a = {
|
|
topLevelType: a,
|
|
nativeEvent: b,
|
|
targetInst: c,
|
|
ancestors: []
|
|
};
|
|
try {
|
|
Wb(Hd, a);
|
|
} finally {
|
|
a.topLevelType = null, a.nativeEvent = null, a.targetInst = null, a.ancestors.length = 0,
|
|
10 > Gd.length && Gd.push(a);
|
|
}
|
|
}
|
|
}
|
|
var Od = {
|
|
get _enabled() {
|
|
return Id;
|
|
},
|
|
setEnabled: Kd,
|
|
isEnabled: function() {
|
|
return Id;
|
|
},
|
|
trapBubbledEvent: K,
|
|
trapCapturedEvent: Nd,
|
|
dispatchEvent: Md
|
|
}, Pd = {}, Qd = 0, Rd = "_reactListenersID" + ("" + Math.random()).slice(2);
|
|
function Sd(a) {
|
|
return Object.prototype.hasOwnProperty.call(a, Rd) || (a[Rd] = Qd++, Pd[a[Rd]] = {}),
|
|
Pd[a[Rd]];
|
|
}
|
|
function Td(a) {
|
|
for (;a && a.firstChild; ) a = a.firstChild;
|
|
return a;
|
|
}
|
|
function Ud(a, b) {
|
|
var d, c = Td(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 = Td(c);
|
|
}
|
|
}
|
|
function Vd(a) {
|
|
var b = a && a.nodeName && a.nodeName.toLowerCase();
|
|
return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable);
|
|
}
|
|
var Wd = m.canUseDOM && "documentMode" in document && 11 >= document.documentMode, Xd = {
|
|
select: {
|
|
phasedRegistrationNames: {
|
|
bubbled: "onSelect",
|
|
captured: "onSelectCapture"
|
|
},
|
|
dependencies: "blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")
|
|
}
|
|
}, Yd = null, Zd = null, $d = null, ae = !1;
|
|
function be(a, b) {
|
|
if (ae || null == Yd || Yd !== da()) return null;
|
|
var c = Yd;
|
|
return "selectionStart" in c && Vd(c) ? c = {
|
|
start: c.selectionStart,
|
|
end: c.selectionEnd
|
|
} : window.getSelection ? c = {
|
|
anchorNode: (c = window.getSelection()).anchorNode,
|
|
anchorOffset: c.anchorOffset,
|
|
focusNode: c.focusNode,
|
|
focusOffset: c.focusOffset
|
|
} : c = void 0, $d && ea($d, c) ? null : ($d = c, (a = H.getPooled(Xd.select, Zd, a, b)).type = "select",
|
|
a.target = Yd, Ya(a), a);
|
|
}
|
|
var ce = {
|
|
eventTypes: Xd,
|
|
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 = Sd(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 ? Oa(b) : window, a) {
|
|
case "focus":
|
|
(Yb(e) || "true" === e.contentEditable) && (Yd = e, Zd = b, $d = null);
|
|
break;
|
|
|
|
case "blur":
|
|
$d = Zd = Yd = null;
|
|
break;
|
|
|
|
case "mousedown":
|
|
ae = !0;
|
|
break;
|
|
|
|
case "contextmenu":
|
|
case "mouseup":
|
|
return ae = !1, be(c, d);
|
|
|
|
case "selectionchange":
|
|
if (Wd) break;
|
|
|
|
case "keydown":
|
|
case "keyup":
|
|
return be(c, d);
|
|
}
|
|
return null;
|
|
}
|
|
};
|
|
Ga.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),
|
|
wa = Qa.getFiberCurrentPropsFromNode, xa = Qa.getInstanceFromNode, ya = Qa.getNodeFromInstance,
|
|
Ga.injectEventPluginsByName({
|
|
SimpleEventPlugin: Ed,
|
|
EnterLeaveEventPlugin: jd,
|
|
ChangeEventPlugin: bd,
|
|
SelectEventPlugin: ce,
|
|
BeforeInputEventPlugin: Ib
|
|
});
|
|
var de = "function" == typeof requestAnimationFrame ? requestAnimationFrame : void 0, ee = Date, fe = setTimeout, ge = clearTimeout, he = void 0;
|
|
if ("object" == typeof performance && "function" == typeof performance.now) {
|
|
var ie = performance;
|
|
he = function() {
|
|
return ie.now();
|
|
};
|
|
} else he = function() {
|
|
return ee.now();
|
|
};
|
|
var je = void 0, ke = void 0;
|
|
if (m.canUseDOM) {
|
|
var le = "function" == typeof de ? de : function() {
|
|
A("276");
|
|
}, L = null, me = null, ne = -1, oe = !1, pe = !1, qe = 0, re = 33, se = 33, te = {
|
|
didTimeout: !1,
|
|
timeRemaining: function() {
|
|
var a = qe - he();
|
|
return 0 < a ? a : 0;
|
|
}
|
|
}, ve = function(a, b) {
|
|
var c = a.scheduledCallback, d = !1;
|
|
try {
|
|
c(b), d = !0;
|
|
} finally {
|
|
ke(a), d || (oe = !0, window.postMessage(ue, "*"));
|
|
}
|
|
}, ue = "__reactIdleCallback$" + Math.random().toString(36).slice(2);
|
|
window.addEventListener("message", function(a) {
|
|
if (a.source === window && a.data === ue && (oe = !1, null !== L)) {
|
|
if (null !== L) {
|
|
var b = he();
|
|
if (!(-1 === ne || ne > b)) {
|
|
a = -1;
|
|
for (var c = [], d = L; null !== d; ) {
|
|
var e = d.timeoutTime;
|
|
-1 !== e && e <= b ? c.push(d) : -1 !== e && (-1 === a || e < a) && (a = e), d = d.next;
|
|
}
|
|
if (0 < c.length) for (te.didTimeout = !0, b = 0, d = c.length; b < d; b++) ve(c[b], te);
|
|
ne = a;
|
|
}
|
|
}
|
|
for (a = he(); 0 < qe - a && null !== L; ) a = L, te.didTimeout = !1, ve(a, te),
|
|
a = he();
|
|
null === L || pe || (pe = !0, le(we));
|
|
}
|
|
}, !1);
|
|
var we = function(a) {
|
|
pe = !1;
|
|
var b = a - qe + se;
|
|
b < se && re < se ? (8 > b && (b = 8), se = b < re ? re : b) : re = b, qe = a + se,
|
|
oe || (oe = !0, window.postMessage(ue, "*"));
|
|
};
|
|
je = function(a, b) {
|
|
var c = -1;
|
|
return null != b && "number" == typeof b.timeout && (c = he() + b.timeout), (-1 === ne || -1 !== c && c < ne) && (ne = c),
|
|
a = {
|
|
scheduledCallback: a,
|
|
timeoutTime: c,
|
|
prev: null,
|
|
next: null
|
|
}, null === L ? L = a : null !== (b = a.prev = me) && (b.next = a), me = a, pe || (pe = !0,
|
|
le(we)), a;
|
|
}, ke = function(a) {
|
|
if (null !== a.prev || L === a) {
|
|
var b = a.next, c = a.prev;
|
|
a.next = null, a.prev = null, null !== b ? null !== c ? (c.next = b, b.prev = c) : (b.prev = null,
|
|
L = b) : null !== c ? (c.next = null, me = c) : me = L = null;
|
|
}
|
|
};
|
|
} else {
|
|
var xe = new Map();
|
|
je = function(a) {
|
|
var b = {
|
|
scheduledCallback: a,
|
|
timeoutTime: 0,
|
|
next: null,
|
|
prev: null
|
|
}, c = fe(function() {
|
|
a({
|
|
timeRemaining: function() {
|
|
return Infinity;
|
|
},
|
|
didTimeout: !1
|
|
});
|
|
});
|
|
return xe.set(a, c), b;
|
|
}, ke = function(a) {
|
|
var b = xe.get(a.scheduledCallback);
|
|
xe["delete"](a), ge(b);
|
|
};
|
|
}
|
|
function ze(a, b) {
|
|
return a = p({
|
|
children: void 0
|
|
}, b), (b = function(a) {
|
|
var b = "";
|
|
return ba.Children.forEach(a, function(a) {
|
|
null == a || "string" != typeof a && "number" != typeof 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 = "" + 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) {
|
|
var c = b.value;
|
|
a._wrapperState = {
|
|
initialValue: null != c ? c : b.defaultValue,
|
|
wasMultiple: !!b.multiple
|
|
};
|
|
}
|
|
function Ce(a, b) {
|
|
return null != b.dangerouslySetInnerHTML && A("91"), p({}, b, {
|
|
value: void 0,
|
|
defaultValue: void 0,
|
|
children: "" + a._wrapperState.initialValue
|
|
});
|
|
}
|
|
function De(a, b) {
|
|
var c = b.value;
|
|
null == c && (c = b.defaultValue, null != (b = b.children) && (null != c && A("92"),
|
|
Array.isArray(b) && (1 >= b.length || A("93"), b = b[0]), c = "" + b), null == c && (c = "")),
|
|
a._wrapperState = {
|
|
initialValue: "" + c
|
|
};
|
|
}
|
|
function Ee(a, b) {
|
|
var c = b.value;
|
|
null != c && ((c = "" + c) !== a.value && (a.value = c), null == b.defaultValue && (a.defaultValue = c)),
|
|
null != b.defaultValue && (a.defaultValue = b.defaultValue);
|
|
}
|
|
function Fe(a) {
|
|
var b = a.textContent;
|
|
b === a._wrapperState.initialValue && (a.value = b);
|
|
}
|
|
var Ge = {
|
|
html: "http://www.w3.org/1999/xhtml",
|
|
mathml: "http://www.w3.org/1998/Math/MathML",
|
|
svg: "http://www.w3.org/2000/svg"
|
|
};
|
|
function He(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 Ie(a, b) {
|
|
return null == a || "http://www.w3.org/1999/xhtml" === a ? He(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
|
|
}
|
|
var a, Je = void 0, Ke = (a = function(a, b) {
|
|
if (a.namespaceURI !== Ge.svg || "innerHTML" in a) a.innerHTML = b; else {
|
|
for ((Je = Je || document.createElement("div")).innerHTML = "<svg>" + b + "</svg>",
|
|
b = Je.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 Le(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 Me = {
|
|
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,
|
|
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
|
|
}, Ne = [ "Webkit", "ms", "Moz", "O" ];
|
|
function Oe(a, b) {
|
|
for (var c in a = a.style, b) if (b.hasOwnProperty(c)) {
|
|
var d = 0 === c.indexOf("--"), e = c, f = b[c];
|
|
e = null == f || "boolean" == typeof f || "" === f ? "" : d || "number" != typeof f || 0 === f || Me.hasOwnProperty(e) && Me[e] ? ("" + f).trim() : f + "px",
|
|
"float" === c && (c = "cssFloat"), d ? a.setProperty(c, e) : a[c] = e;
|
|
}
|
|
}
|
|
Object.keys(Me).forEach(function(a) {
|
|
Ne.forEach(function(b) {
|
|
b = b + a.charAt(0).toUpperCase() + a.substring(1), Me[b] = Me[a];
|
|
});
|
|
});
|
|
var Pe = p({
|
|
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, c) {
|
|
b && (Pe[a] && (null != b.children || null != b.dangerouslySetInnerHTML) && A("137", a, c()),
|
|
null != b.dangerouslySetInnerHTML && (null != b.children && A("60"), "object" == typeof b.dangerouslySetInnerHTML && "__html" in b.dangerouslySetInnerHTML || A("61")),
|
|
null != b.style && "object" != typeof b.style && A("62", c()));
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
var Se = v.thatReturns("");
|
|
function Te(a, b) {
|
|
var c = Sd(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":
|
|
Nd("scroll", a);
|
|
break;
|
|
|
|
case "focus":
|
|
case "blur":
|
|
Nd("focus", a), Nd("blur", a), c.blur = !0, c.focus = !0;
|
|
break;
|
|
|
|
case "cancel":
|
|
case "close":
|
|
$b(e, !0) && Nd(e, a);
|
|
break;
|
|
|
|
case "invalid":
|
|
case "submit":
|
|
case "reset":
|
|
break;
|
|
|
|
default:
|
|
-1 === jb.indexOf(e) && K(e, a);
|
|
}
|
|
c[e] = !0;
|
|
}
|
|
}
|
|
}
|
|
function Ue(a, b, c, d) {
|
|
return c = 9 === c.nodeType ? c : c.ownerDocument, d === Ge.html && (d = He(a)),
|
|
d === Ge.html ? "script" === a ? ((a = c.createElement("div")).innerHTML = "<script><\/script>",
|
|
a = a.removeChild(a.firstChild)) : a = "string" == typeof b.is ? c.createElement(a, {
|
|
is: b.is
|
|
}) : c.createElement(a) : a = c.createElementNS(d, a), a;
|
|
}
|
|
function Ve(a, b) {
|
|
return (9 === b.nodeType ? b : b.ownerDocument).createTextNode(a);
|
|
}
|
|
function We(a, b, c, d) {
|
|
var e = Re(b, c);
|
|
switch (b) {
|
|
case "iframe":
|
|
case "object":
|
|
K("load", a);
|
|
var f = c;
|
|
break;
|
|
|
|
case "video":
|
|
case "audio":
|
|
for (f = 0; f < jb.length; f++) K(jb[f], a);
|
|
f = c;
|
|
break;
|
|
|
|
case "source":
|
|
K("error", a), f = c;
|
|
break;
|
|
|
|
case "img":
|
|
case "image":
|
|
case "link":
|
|
K("error", a), K("load", a), f = c;
|
|
break;
|
|
|
|
case "form":
|
|
K("reset", a), K("submit", a), f = c;
|
|
break;
|
|
|
|
case "details":
|
|
K("toggle", a), f = c;
|
|
break;
|
|
|
|
case "input":
|
|
Ic(a, c), f = Hc(a, c), K("invalid", a), Te(d, "onChange");
|
|
break;
|
|
|
|
case "option":
|
|
f = ze(a, c);
|
|
break;
|
|
|
|
case "select":
|
|
Be(a, c), f = p({}, c, {
|
|
value: void 0
|
|
}), K("invalid", a), Te(d, "onChange");
|
|
break;
|
|
|
|
case "textarea":
|
|
De(a, c), f = Ce(a, c), K("invalid", a), Te(d, "onChange");
|
|
break;
|
|
|
|
default:
|
|
f = c;
|
|
}
|
|
Qe(b, f, Se);
|
|
var h, g = f;
|
|
for (h in g) if (g.hasOwnProperty(h)) {
|
|
var k = g[h];
|
|
"style" === h ? Oe(a, k) : "dangerouslySetInnerHTML" === h ? null != (k = k ? k.__html : void 0) && Ke(a, k) : "children" === h ? "string" == typeof k ? ("textarea" !== b || "" !== k) && Le(a, k) : "number" == typeof k && Le(a, "" + k) : "suppressContentEditableWarning" !== h && "suppressHydrationWarning" !== h && "autoFocus" !== h && (ra.hasOwnProperty(h) ? null != k && Te(d, h) : null != k && Gc(a, h, k, e));
|
|
}
|
|
switch (b) {
|
|
case "input":
|
|
cc(a), Nc(a, c, !1);
|
|
break;
|
|
|
|
case "textarea":
|
|
cc(a), Fe(a);
|
|
break;
|
|
|
|
case "option":
|
|
null != c.value && a.setAttribute("value", c.value);
|
|
break;
|
|
|
|
case "select":
|
|
a.multiple = !!c.multiple, null != (b = c.value) ? Ae(a, !!c.multiple, b, !1) : null != c.defaultValue && Ae(a, !!c.multiple, c.defaultValue, !0);
|
|
break;
|
|
|
|
default:
|
|
"function" == typeof f.onClick && (a.onclick = v);
|
|
}
|
|
}
|
|
function Xe(a, b, c, d, e) {
|
|
var f = null;
|
|
switch (b) {
|
|
case "input":
|
|
c = Hc(a, c), d = Hc(a, d), f = [];
|
|
break;
|
|
|
|
case "option":
|
|
c = ze(a, c), d = ze(a, d), f = [];
|
|
break;
|
|
|
|
case "select":
|
|
c = p({}, c, {
|
|
value: void 0
|
|
}), d = p({}, d, {
|
|
value: void 0
|
|
}), f = [];
|
|
break;
|
|
|
|
case "textarea":
|
|
c = Ce(a, c), d = Ce(a, d), f = [];
|
|
break;
|
|
|
|
default:
|
|
"function" != typeof c.onClick && "function" == typeof d.onClick && (a.onclick = v);
|
|
}
|
|
Qe(b, d, Se), b = a = void 0;
|
|
var g = null;
|
|
for (a in c) if (!d.hasOwnProperty(a) && c.hasOwnProperty(a) && null != c[a]) if ("style" === a) {
|
|
var h = c[a];
|
|
for (b in h) h.hasOwnProperty(b) && (g || (g = {}), g[b] = "");
|
|
} else "dangerouslySetInnerHTML" !== a && "children" !== a && "suppressContentEditableWarning" !== a && "suppressHydrationWarning" !== a && "autoFocus" !== a && (ra.hasOwnProperty(a) ? f || (f = []) : (f = f || []).push(a, null));
|
|
for (a in d) {
|
|
var k = d[a];
|
|
if (h = null != c ? c[a] : void 0, d.hasOwnProperty(a) && k !== h && (null != k || null != h)) if ("style" === a) if (h) {
|
|
for (b in h) !h.hasOwnProperty(b) || k && k.hasOwnProperty(b) || (g || (g = {}),
|
|
g[b] = "");
|
|
for (b in k) k.hasOwnProperty(b) && h[b] !== k[b] && (g || (g = {}), g[b] = k[b]);
|
|
} else g || (f || (f = []), f.push(a, g)), g = k; else "dangerouslySetInnerHTML" === a ? (k = k ? k.__html : void 0,
|
|
h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(a, "" + k)) : "children" === a ? h === k || "string" != typeof k && "number" != typeof k || (f = f || []).push(a, "" + k) : "suppressContentEditableWarning" !== a && "suppressHydrationWarning" !== a && (ra.hasOwnProperty(a) ? (null != k && Te(e, a),
|
|
f || h === k || (f = [])) : (f = f || []).push(a, k));
|
|
}
|
|
return g && (f = f || []).push("style", g), f;
|
|
}
|
|
function Ye(a, b, c, d, e) {
|
|
"input" === c && "radio" === e.type && null != e.name && Kc(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 ? Ke(a, h) : "children" === g ? Le(a, h) : Gc(a, g, h, d);
|
|
}
|
|
switch (c) {
|
|
case "input":
|
|
Lc(a, e);
|
|
break;
|
|
|
|
case "textarea":
|
|
Ee(a, e);
|
|
break;
|
|
|
|
case "select":
|
|
a._wrapperState.initialValue = void 0, 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));
|
|
}
|
|
}
|
|
function Ze(a, b, c, d, e) {
|
|
switch (b) {
|
|
case "iframe":
|
|
case "object":
|
|
K("load", a);
|
|
break;
|
|
|
|
case "video":
|
|
case "audio":
|
|
for (d = 0; d < jb.length; d++) K(jb[d], a);
|
|
break;
|
|
|
|
case "source":
|
|
K("error", a);
|
|
break;
|
|
|
|
case "img":
|
|
case "image":
|
|
case "link":
|
|
K("error", a), K("load", a);
|
|
break;
|
|
|
|
case "form":
|
|
K("reset", a), K("submit", a);
|
|
break;
|
|
|
|
case "details":
|
|
K("toggle", a);
|
|
break;
|
|
|
|
case "input":
|
|
Ic(a, c), K("invalid", a), Te(e, "onChange");
|
|
break;
|
|
|
|
case "select":
|
|
Be(a, c), K("invalid", a), Te(e, "onChange");
|
|
break;
|
|
|
|
case "textarea":
|
|
De(a, c), K("invalid", a), Te(e, "onChange");
|
|
}
|
|
for (var f in Qe(b, c, Se), d = null, c) if (c.hasOwnProperty(f)) {
|
|
var g = c[f];
|
|
"children" === f ? "string" == typeof g ? a.textContent !== g && (d = [ "children", g ]) : "number" == typeof g && a.textContent !== "" + g && (d = [ "children", "" + g ]) : ra.hasOwnProperty(f) && null != g && Te(e, f);
|
|
}
|
|
switch (b) {
|
|
case "input":
|
|
cc(a), Nc(a, c, !0);
|
|
break;
|
|
|
|
case "textarea":
|
|
cc(a), Fe(a);
|
|
break;
|
|
|
|
case "select":
|
|
case "option":
|
|
break;
|
|
|
|
default:
|
|
"function" == typeof c.onClick && (a.onclick = v);
|
|
}
|
|
return d;
|
|
}
|
|
function $e(a, b) {
|
|
return a.nodeValue !== b;
|
|
}
|
|
var af = {
|
|
createElement: Ue,
|
|
createTextNode: Ve,
|
|
setInitialProperties: We,
|
|
diffProperties: Xe,
|
|
updateProperties: Ye,
|
|
diffHydratedProperties: Ze,
|
|
diffHydratedText: $e,
|
|
warnForUnmatchedText: function() {},
|
|
warnForDeletedHydratableElement: function() {},
|
|
warnForDeletedHydratableText: function() {},
|
|
warnForInsertedHydratedElement: function() {},
|
|
warnForInsertedHydratedText: function() {},
|
|
restoreControlledState: function(a, b, c) {
|
|
switch (b) {
|
|
case "input":
|
|
if (Lc(a, c), b = c.name, "radio" === c.type && null != b) {
|
|
for (c = a; c.parentNode; ) c = c.parentNode;
|
|
for (c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'),
|
|
b = 0; b < c.length; b++) {
|
|
var d = c[b];
|
|
if (d !== a && d.form === a.form) {
|
|
var e = Pa(d);
|
|
e || A("90"), dc(d), Lc(d, e);
|
|
}
|
|
}
|
|
}
|
|
break;
|
|
|
|
case "textarea":
|
|
Ee(a, c);
|
|
break;
|
|
|
|
case "select":
|
|
null != (b = c.value) && Ae(a, !!c.multiple, b, !1);
|
|
}
|
|
}
|
|
}, bf = null, cf = null;
|
|
function df(a, b) {
|
|
switch (a) {
|
|
case "button":
|
|
case "input":
|
|
case "select":
|
|
case "textarea":
|
|
return !!b.autoFocus;
|
|
}
|
|
return !1;
|
|
}
|
|
function ef(a, b) {
|
|
return "textarea" === a || "string" == typeof b.children || "number" == typeof b.children || "object" == typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && "string" == typeof b.dangerouslySetInnerHTML.__html;
|
|
}
|
|
var ff = he, gf = je, hf = ke;
|
|
function jf(a) {
|
|
for (a = a.nextSibling; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling;
|
|
return a;
|
|
}
|
|
function kf(a) {
|
|
for (a = a.firstChild; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling;
|
|
return a;
|
|
}
|
|
new Set();
|
|
var lf = [], mf = -1;
|
|
function nf(a) {
|
|
return {
|
|
current: a
|
|
};
|
|
}
|
|
function M(a) {
|
|
0 > mf || (a.current = lf[mf], lf[mf] = null, mf--);
|
|
}
|
|
function N(a, b) {
|
|
lf[++mf] = a.current, a.current = b;
|
|
}
|
|
var of = nf(ha), O = nf(!1), pf = ha;
|
|
function qf(a) {
|
|
return rf(a) ? pf : of.current;
|
|
}
|
|
function sf(a, b) {
|
|
var c = a.type.contextTypes;
|
|
if (!c) return ha;
|
|
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 rf(a) {
|
|
return 2 === a.tag && null != a.type.childContextTypes;
|
|
}
|
|
function tf(a) {
|
|
rf(a) && (M(O), M(of));
|
|
}
|
|
function uf(a) {
|
|
M(O), M(of);
|
|
}
|
|
function vf(a, b, c) {
|
|
of.current !== ha && A("168"), N(of, b), N(O, c);
|
|
}
|
|
function wf(a, b) {
|
|
var c = a.stateNode, d = a.type.childContextTypes;
|
|
if ("function" != typeof c.getChildContext) return b;
|
|
for (var e in c = c.getChildContext()) e in d || A("108", uc(a) || "Unknown", e);
|
|
return p({}, b, c);
|
|
}
|
|
function xf(a) {
|
|
if (!rf(a)) return !1;
|
|
var b = a.stateNode;
|
|
return b = b && b.__reactInternalMemoizedMergedChildContext || ha, pf = of.current,
|
|
N(of, b), N(O, O.current), !0;
|
|
}
|
|
function yf(a, b) {
|
|
var c = a.stateNode;
|
|
if (c || A("169"), b) {
|
|
var d = wf(a, pf);
|
|
c.__reactInternalMemoizedMergedChildContext = d, M(O), M(of), N(of, d);
|
|
} else M(O);
|
|
N(O, b);
|
|
}
|
|
function zf(a, b, c, d) {
|
|
this.tag = a, this.key = c, this.sibling = this.child = this["return"] = this.stateNode = this.type = null,
|
|
this.index = 0, this.ref = null, this.pendingProps = b, this.memoizedState = this.updateQueue = this.memoizedProps = null,
|
|
this.mode = d, this.effectTag = 0, this.lastEffect = this.firstEffect = this.nextEffect = null,
|
|
this.expirationTime = 0, this.alternate = null;
|
|
}
|
|
function Af(a, b, c) {
|
|
var d = a.alternate;
|
|
return null === d ? ((d = new zf(a.tag, b, a.key, a.mode)).type = a.type, d.stateNode = a.stateNode,
|
|
d.alternate = a, a.alternate = d) : (d.pendingProps = b, d.effectTag = 0, d.nextEffect = null,
|
|
d.firstEffect = null, d.lastEffect = null), d.expirationTime = c, d.child = a.child,
|
|
d.memoizedProps = a.memoizedProps, d.memoizedState = a.memoizedState, d.updateQueue = a.updateQueue,
|
|
d.sibling = a.sibling, d.index = a.index, d.ref = a.ref, d;
|
|
}
|
|
function Bf(a, b, c) {
|
|
var d = a.type, e = a.key;
|
|
if (a = a.props, "function" == typeof d) var f = d.prototype && d.prototype.isReactComponent ? 2 : 0; else if ("string" == typeof d) f = 5; else switch (d) {
|
|
case ic:
|
|
return Cf(a.children, b, c, e);
|
|
|
|
case pc:
|
|
f = 11, b |= 3;
|
|
break;
|
|
|
|
case jc:
|
|
f = 11, b |= 2;
|
|
break;
|
|
|
|
case kc:
|
|
return (d = new zf(15, a, e, 4 | b)).type = kc, d.expirationTime = c, d;
|
|
|
|
case rc:
|
|
f = 16, b |= 2;
|
|
break;
|
|
|
|
default:
|
|
a: {
|
|
switch ("object" == typeof d && null !== d ? d.$$typeof : null) {
|
|
case lc:
|
|
f = 13;
|
|
break a;
|
|
|
|
case mc:
|
|
f = 12;
|
|
break a;
|
|
|
|
case qc:
|
|
f = 14;
|
|
break a;
|
|
|
|
default:
|
|
A("130", null == d ? d : typeof d, "");
|
|
}
|
|
f = void 0;
|
|
}
|
|
}
|
|
return (b = new zf(f, a, e, b)).type = d, b.expirationTime = c, b;
|
|
}
|
|
function Cf(a, b, c, d) {
|
|
return (a = new zf(10, a, d, b)).expirationTime = c, a;
|
|
}
|
|
function Df(a, b, c) {
|
|
return (a = new zf(6, a, null, b)).expirationTime = c, a;
|
|
}
|
|
function Ef(a, b, c) {
|
|
return (b = new zf(4, null !== a.children ? a.children : [], a.key, b)).expirationTime = c,
|
|
b.stateNode = {
|
|
containerInfo: a.containerInfo,
|
|
pendingChildren: null,
|
|
implementation: a.implementation
|
|
}, b;
|
|
}
|
|
function Ff(a, b, c) {
|
|
return a = {
|
|
current: b = new zf(3, null, null, b ? 3 : 0),
|
|
containerInfo: a,
|
|
pendingChildren: null,
|
|
earliestPendingTime: 0,
|
|
latestPendingTime: 0,
|
|
earliestSuspendedTime: 0,
|
|
latestSuspendedTime: 0,
|
|
latestPingedTime: 0,
|
|
pendingCommitExpirationTime: 0,
|
|
finishedWork: null,
|
|
context: null,
|
|
pendingContext: null,
|
|
hydrate: c,
|
|
remainingExpirationTime: 0,
|
|
firstBatch: null,
|
|
nextScheduledRoot: null
|
|
}, b.stateNode = a;
|
|
}
|
|
var Gf = null, Hf = null;
|
|
function If(a) {
|
|
return function(b) {
|
|
try {
|
|
return a(b);
|
|
} catch (c) {}
|
|
};
|
|
}
|
|
function Kf(a) {
|
|
"function" == typeof Gf && Gf(a);
|
|
}
|
|
function Lf(a) {
|
|
"function" == typeof Hf && Hf(a);
|
|
}
|
|
var Mf = !1;
|
|
function Nf(a) {
|
|
return {
|
|
expirationTime: 0,
|
|
baseState: a,
|
|
firstUpdate: null,
|
|
lastUpdate: null,
|
|
firstCapturedUpdate: null,
|
|
lastCapturedUpdate: null,
|
|
firstEffect: null,
|
|
lastEffect: null,
|
|
firstCapturedEffect: null,
|
|
lastCapturedEffect: null
|
|
};
|
|
}
|
|
function Of(a) {
|
|
return {
|
|
expirationTime: a.expirationTime,
|
|
baseState: a.baseState,
|
|
firstUpdate: a.firstUpdate,
|
|
lastUpdate: a.lastUpdate,
|
|
firstCapturedUpdate: null,
|
|
lastCapturedUpdate: null,
|
|
firstEffect: null,
|
|
lastEffect: null,
|
|
firstCapturedEffect: null,
|
|
lastCapturedEffect: null
|
|
};
|
|
}
|
|
function Pf(a) {
|
|
return {
|
|
expirationTime: a,
|
|
tag: 0,
|
|
payload: null,
|
|
callback: null,
|
|
next: null,
|
|
nextEffect: null
|
|
};
|
|
}
|
|
function Qf(a, b, c) {
|
|
null === a.lastUpdate ? a.firstUpdate = a.lastUpdate = b : (a.lastUpdate.next = b,
|
|
a.lastUpdate = b), (0 === a.expirationTime || a.expirationTime > c) && (a.expirationTime = c);
|
|
}
|
|
function Rf(a, b, c) {
|
|
var d = a.alternate;
|
|
if (null === d) {
|
|
var e = a.updateQueue, f = null;
|
|
null === e && (e = a.updateQueue = Nf(a.memoizedState));
|
|
} else e = a.updateQueue, f = d.updateQueue, null === e ? null === f ? (e = a.updateQueue = Nf(a.memoizedState),
|
|
f = d.updateQueue = Nf(d.memoizedState)) : e = a.updateQueue = Of(f) : null === f && (f = d.updateQueue = Of(e));
|
|
null === f || e === f ? Qf(e, b, c) : null === e.lastUpdate || null === f.lastUpdate ? (Qf(e, b, c),
|
|
Qf(f, b, c)) : (Qf(e, b, c), f.lastUpdate = b);
|
|
}
|
|
function Sf(a, b, c) {
|
|
var d = a.updateQueue;
|
|
null === (d = null === d ? a.updateQueue = Nf(a.memoizedState) : Tf(a, d)).lastCapturedUpdate ? d.firstCapturedUpdate = d.lastCapturedUpdate = b : (d.lastCapturedUpdate.next = b,
|
|
d.lastCapturedUpdate = b), (0 === d.expirationTime || d.expirationTime > c) && (d.expirationTime = c);
|
|
}
|
|
function Tf(a, b) {
|
|
var c = a.alternate;
|
|
return null !== c && b === c.updateQueue && (b = a.updateQueue = Of(b)), b;
|
|
}
|
|
function Uf(a, b, c, d, e, f) {
|
|
switch (c.tag) {
|
|
case 1:
|
|
return "function" == typeof (a = c.payload) ? a.call(f, d, e) : a;
|
|
|
|
case 3:
|
|
a.effectTag = -1025 & a.effectTag | 64;
|
|
|
|
case 0:
|
|
if (null === (e = "function" == typeof (a = c.payload) ? a.call(f, d, e) : a) || void 0 === e) break;
|
|
return p({}, d, e);
|
|
|
|
case 2:
|
|
Mf = !0;
|
|
}
|
|
return d;
|
|
}
|
|
function Vf(a, b, c, d, e) {
|
|
if (Mf = !1, !(0 === b.expirationTime || b.expirationTime > e)) {
|
|
for (var f = (b = Tf(a, b)).baseState, g = null, h = 0, k = b.firstUpdate, n = f; null !== k; ) {
|
|
var r = k.expirationTime;
|
|
r > e ? (null === g && (g = k, f = n), (0 === h || h > r) && (h = r)) : (n = Uf(a, 0, k, n, c, d),
|
|
null !== k.callback && (a.effectTag |= 32, k.nextEffect = null, null === b.lastEffect ? b.firstEffect = b.lastEffect = k : (b.lastEffect.nextEffect = k,
|
|
b.lastEffect = k))), k = k.next;
|
|
}
|
|
for (r = null, k = b.firstCapturedUpdate; null !== k; ) {
|
|
var w = k.expirationTime;
|
|
w > e ? (null === r && (r = k, null === g && (f = n)), (0 === h || h > w) && (h = w)) : (n = Uf(a, 0, k, n, c, d),
|
|
null !== k.callback && (a.effectTag |= 32, k.nextEffect = null, null === b.lastCapturedEffect ? b.firstCapturedEffect = b.lastCapturedEffect = k : (b.lastCapturedEffect.nextEffect = k,
|
|
b.lastCapturedEffect = k))), k = k.next;
|
|
}
|
|
null === g && (b.lastUpdate = null), null === r ? b.lastCapturedUpdate = null : a.effectTag |= 32,
|
|
null === g && null === r && (f = n), b.baseState = f, b.firstUpdate = g, b.firstCapturedUpdate = r,
|
|
b.expirationTime = h, a.memoizedState = n;
|
|
}
|
|
}
|
|
function Wf(a, b) {
|
|
"function" != typeof a && A("191", a), a.call(b);
|
|
}
|
|
function Xf(a, b, c) {
|
|
for (null !== b.firstCapturedUpdate && (null !== b.lastUpdate && (b.lastUpdate.next = b.firstCapturedUpdate,
|
|
b.lastUpdate = b.lastCapturedUpdate), b.firstCapturedUpdate = b.lastCapturedUpdate = null),
|
|
a = b.firstEffect, b.firstEffect = b.lastEffect = null; null !== a; ) {
|
|
var d = a.callback;
|
|
null !== d && (a.callback = null, Wf(d, c)), a = a.nextEffect;
|
|
}
|
|
for (a = b.firstCapturedEffect, b.firstCapturedEffect = b.lastCapturedEffect = null; null !== a; ) null !== (b = a.callback) && (a.callback = null,
|
|
Wf(b, c)), a = a.nextEffect;
|
|
}
|
|
function Yf(a, b) {
|
|
return {
|
|
value: a,
|
|
source: b,
|
|
stack: vc(b)
|
|
};
|
|
}
|
|
var Zf = nf(null), $f = nf(null), ag = nf(0);
|
|
function bg(a) {
|
|
var b = a.type._context;
|
|
N(ag, b._changedBits), N($f, b._currentValue), N(Zf, a), b._currentValue = a.pendingProps.value,
|
|
b._changedBits = a.stateNode;
|
|
}
|
|
function cg(a) {
|
|
var b = ag.current, c = $f.current;
|
|
M(Zf), M($f), M(ag), (a = a.type._context)._currentValue = c, a._changedBits = b;
|
|
}
|
|
var dg = {}, eg = nf(dg), fg = nf(dg), gg = nf(dg);
|
|
function hg(a) {
|
|
return a === dg && A("174"), a;
|
|
}
|
|
function jg(a, b) {
|
|
N(gg, b), N(fg, a), N(eg, dg);
|
|
var c = b.nodeType;
|
|
switch (c) {
|
|
case 9:
|
|
case 11:
|
|
b = (b = b.documentElement) ? b.namespaceURI : Ie(null, "");
|
|
break;
|
|
|
|
default:
|
|
b = Ie(b = (c = 8 === c ? b.parentNode : b).namespaceURI || null, c = c.tagName);
|
|
}
|
|
M(eg), N(eg, b);
|
|
}
|
|
function kg(a) {
|
|
M(eg), M(fg), M(gg);
|
|
}
|
|
function lg(a) {
|
|
fg.current === a && (M(eg), M(fg));
|
|
}
|
|
function mg(a, b, c) {
|
|
var d = a.memoizedState;
|
|
d = null === (b = b(c, d)) || void 0 === b ? d : p({}, d, b), a.memoizedState = d,
|
|
null !== (a = a.updateQueue) && 0 === a.expirationTime && (a.baseState = d);
|
|
}
|
|
var qg = {
|
|
isMounted: function(a) {
|
|
return !!(a = a._reactInternalFiber) && 2 === kd(a);
|
|
},
|
|
enqueueSetState: function(a, b, c) {
|
|
a = a._reactInternalFiber;
|
|
var d = ng(), e = Pf(d = og(d, a));
|
|
e.payload = b, void 0 !== c && null !== c && (e.callback = c), Rf(a, e, d), pg(a, d);
|
|
},
|
|
enqueueReplaceState: function(a, b, c) {
|
|
a = a._reactInternalFiber;
|
|
var d = ng(), e = Pf(d = og(d, a));
|
|
e.tag = 1, e.payload = b, void 0 !== c && null !== c && (e.callback = c), Rf(a, e, d),
|
|
pg(a, d);
|
|
},
|
|
enqueueForceUpdate: function(a, b) {
|
|
a = a._reactInternalFiber;
|
|
var c = ng(), d = Pf(c = og(c, a));
|
|
d.tag = 2, void 0 !== b && null !== b && (d.callback = b), Rf(a, d, c), pg(a, c);
|
|
}
|
|
};
|
|
function rg(a, b, c, d, e, f) {
|
|
var g = a.stateNode;
|
|
return a = a.type, "function" == typeof g.shouldComponentUpdate ? g.shouldComponentUpdate(c, e, f) : !a.prototype || !a.prototype.isPureReactComponent || (!ea(b, c) || !ea(d, e));
|
|
}
|
|
function sg(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 && qg.enqueueReplaceState(b, b.state, null);
|
|
}
|
|
function tg(a, b) {
|
|
var c = a.type, d = a.stateNode, e = a.pendingProps, f = qf(a);
|
|
d.props = e, d.state = a.memoizedState, d.refs = ha, d.context = sf(a, f), null !== (f = a.updateQueue) && (Vf(a, f, e, d, b),
|
|
d.state = a.memoizedState), "function" == typeof (f = a.type.getDerivedStateFromProps) && (mg(a, f, e),
|
|
d.state = a.memoizedState), "function" == typeof c.getDerivedStateFromProps || "function" == typeof d.getSnapshotBeforeUpdate || "function" != typeof d.UNSAFE_componentWillMount && "function" != typeof d.componentWillMount || (c = d.state,
|
|
"function" == typeof d.componentWillMount && d.componentWillMount(), "function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount(),
|
|
c !== d.state && qg.enqueueReplaceState(d, d.state, null), null !== (f = a.updateQueue) && (Vf(a, f, e, d, b),
|
|
d.state = a.memoizedState)), "function" == typeof d.componentDidMount && (a.effectTag |= 4);
|
|
}
|
|
var ug = Array.isArray;
|
|
function vg(a, b, c) {
|
|
if (null !== (a = c.ref) && "function" != typeof a && "object" != typeof a) {
|
|
if (c._owner) {
|
|
var d = void 0;
|
|
(c = c._owner) && (2 !== c.tag && A("110"), d = c.stateNode), d || A("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 === ha ? d.refs = {} : d.refs;
|
|
null === a ? delete b[e] : b[e] = a;
|
|
})._stringRef = e, b);
|
|
}
|
|
"string" != typeof a && A("148"), c._owner || A("254", a);
|
|
}
|
|
return a;
|
|
}
|
|
function wg(a, b) {
|
|
"textarea" !== a.type && A("31", "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b, "");
|
|
}
|
|
function xg(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 = Af(a, b, c)).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 = Df(c, a.mode, d))["return"] = a, b) : ((b = e(b, c, d))["return"] = a,
|
|
b);
|
|
}
|
|
function k(a, b, c, d) {
|
|
return null !== b && b.type === c.type ? ((d = e(b, c.props, d)).ref = vg(a, b, c),
|
|
d["return"] = a, d) : ((d = Bf(c, a.mode, d)).ref = vg(a, b, c), d["return"] = a,
|
|
d);
|
|
}
|
|
function n(a, b, c, d) {
|
|
return null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation ? ((b = Ef(c, a.mode, d))["return"] = a,
|
|
b) : ((b = e(b, c.children || [], d))["return"] = a, b);
|
|
}
|
|
function r(a, b, c, d, f) {
|
|
return null === b || 10 !== b.tag ? ((b = Cf(c, a.mode, d, f))["return"] = a, b) : ((b = e(b, c, d))["return"] = a,
|
|
b);
|
|
}
|
|
function w(a, b, c) {
|
|
if ("string" == typeof b || "number" == typeof b) return (b = Df("" + b, a.mode, c))["return"] = a,
|
|
b;
|
|
if ("object" == typeof b && null !== b) {
|
|
switch (b.$$typeof) {
|
|
case gc:
|
|
return (c = Bf(b, a.mode, c)).ref = vg(a, null, b), c["return"] = a, c;
|
|
|
|
case hc:
|
|
return (b = Ef(b, a.mode, c))["return"] = a, b;
|
|
}
|
|
if (ug(b) || tc(b)) return (b = Cf(b, a.mode, c, null))["return"] = a, b;
|
|
wg(a, b);
|
|
}
|
|
return null;
|
|
}
|
|
function P(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 gc:
|
|
return c.key === e ? c.type === ic ? r(a, b, c.props.children, d, e) : k(a, b, c, d) : null;
|
|
|
|
case hc:
|
|
return c.key === e ? n(a, b, c, d) : null;
|
|
}
|
|
if (ug(c) || tc(c)) return null !== e ? null : r(a, b, c, d, null);
|
|
wg(a, c);
|
|
}
|
|
return null;
|
|
}
|
|
function nc(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 gc:
|
|
return a = a.get(null === d.key ? c : d.key) || null, d.type === ic ? r(b, a, d.props.children, e, d.key) : k(b, a, d, e);
|
|
|
|
case hc:
|
|
return n(b, a = a.get(null === d.key ? c : d.key) || null, d, e);
|
|
}
|
|
if (ug(d) || tc(d)) return r(b, a = a.get(c) || null, d, e, null);
|
|
wg(b, d);
|
|
}
|
|
return null;
|
|
}
|
|
function Jd(e, g, h, k) {
|
|
for (var u = null, x = null, t = g, q = g = 0, n = null; null !== t && q < h.length; q++) {
|
|
t.index > q ? (n = t, t = null) : n = t.sibling;
|
|
var l = P(e, t, h[q], k);
|
|
if (null === l) {
|
|
null === t && (t = n);
|
|
break;
|
|
}
|
|
a && t && null === l.alternate && b(e, t), g = f(l, g, q), null === x ? u = l : x.sibling = l,
|
|
x = l, t = n;
|
|
}
|
|
if (q === h.length) return c(e, t), u;
|
|
if (null === t) {
|
|
for (;q < h.length; q++) (t = w(e, h[q], k)) && (g = f(t, g, q), null === x ? u = t : x.sibling = t,
|
|
x = t);
|
|
return u;
|
|
}
|
|
for (t = d(e, t); q < h.length; q++) (n = nc(t, e, q, h[q], k)) && (a && null !== n.alternate && t["delete"](null === n.key ? q : n.key),
|
|
g = f(n, g, q), null === x ? u = n : x.sibling = n, x = n);
|
|
return a && t.forEach(function(a) {
|
|
return b(e, a);
|
|
}), u;
|
|
}
|
|
function E(e, g, h, k) {
|
|
var u = tc(h);
|
|
"function" != typeof u && A("150"), null == (h = u.call(h)) && A("151");
|
|
for (var t = u = null, n = g, x = g = 0, y = null, l = h.next(); null !== n && !l.done; x++,
|
|
l = h.next()) {
|
|
n.index > x ? (y = n, n = null) : y = n.sibling;
|
|
var r = P(e, n, l.value, k);
|
|
if (null === r) {
|
|
n || (n = y);
|
|
break;
|
|
}
|
|
a && n && null === r.alternate && b(e, n), g = f(r, g, x), null === t ? u = r : t.sibling = r,
|
|
t = r, n = y;
|
|
}
|
|
if (l.done) return c(e, n), u;
|
|
if (null === n) {
|
|
for (;!l.done; x++, l = h.next()) null !== (l = w(e, l.value, k)) && (g = f(l, g, x),
|
|
null === t ? u = l : t.sibling = l, t = l);
|
|
return u;
|
|
}
|
|
for (n = d(e, n); !l.done; x++, l = h.next()) null !== (l = nc(n, e, x, l.value, k)) && (a && null !== l.alternate && n["delete"](null === l.key ? x : l.key),
|
|
g = f(l, g, x), null === t ? u = l : t.sibling = l, t = l);
|
|
return a && n.forEach(function(a) {
|
|
return b(e, a);
|
|
}), u;
|
|
}
|
|
return function(a, d, f, h) {
|
|
var k = "object" == typeof f && null !== f && f.type === ic && null === f.key;
|
|
k && (f = f.props.children);
|
|
var n = "object" == typeof f && null !== f;
|
|
if (n) switch (f.$$typeof) {
|
|
case gc:
|
|
a: {
|
|
for (n = f.key, k = d; null !== k; ) {
|
|
if (k.key === n) {
|
|
if (10 === k.tag ? f.type === ic : k.type === f.type) {
|
|
c(a, k.sibling), (d = e(k, f.type === ic ? f.props.children : f.props, h)).ref = vg(a, k, f),
|
|
d["return"] = a, a = d;
|
|
break a;
|
|
}
|
|
c(a, k);
|
|
break;
|
|
}
|
|
b(a, k), k = k.sibling;
|
|
}
|
|
f.type === ic ? ((d = Cf(f.props.children, a.mode, h, f.key))["return"] = a, a = d) : ((h = Bf(f, a.mode, h)).ref = vg(a, d, f),
|
|
h["return"] = a, a = h);
|
|
}
|
|
return g(a);
|
|
|
|
case hc:
|
|
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 || [], h))["return"] = a, a = d;
|
|
break a;
|
|
}
|
|
c(a, d);
|
|
break;
|
|
}
|
|
b(a, d), d = d.sibling;
|
|
}
|
|
(d = Ef(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, h))["return"] = a, a = d) : (c(a, d), (d = Df(f, a.mode, h))["return"] = a,
|
|
a = d), g(a);
|
|
if (ug(f)) return Jd(a, d, f, h);
|
|
if (tc(f)) return E(a, d, f, h);
|
|
if (n && wg(a, f), void 0 === f && !k) switch (a.tag) {
|
|
case 2:
|
|
case 1:
|
|
A("152", (h = a.type).displayName || h.name || "Component");
|
|
}
|
|
return c(a, d);
|
|
};
|
|
}
|
|
var yg = xg(!0), zg = xg(!1), Ag = null, Bg = null, Cg = !1;
|
|
function Dg(a, b) {
|
|
var c = new zf(5, null, null, 0);
|
|
c.type = "DELETED", c.stateNode = b, c["return"] = a, c.effectTag = 8, null !== a.lastEffect ? (a.lastEffect.nextEffect = c,
|
|
a.lastEffect = c) : a.firstEffect = a.lastEffect = c;
|
|
}
|
|
function Eg(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);
|
|
|
|
default:
|
|
return !1;
|
|
}
|
|
}
|
|
function Fg(a) {
|
|
if (Cg) {
|
|
var b = Bg;
|
|
if (b) {
|
|
var c = b;
|
|
if (!Eg(a, b)) {
|
|
if (!(b = jf(c)) || !Eg(a, b)) return a.effectTag |= 2, Cg = !1, void (Ag = a);
|
|
Dg(Ag, c);
|
|
}
|
|
Ag = a, Bg = kf(b);
|
|
} else a.effectTag |= 2, Cg = !1, Ag = a;
|
|
}
|
|
}
|
|
function Gg(a) {
|
|
for (a = a["return"]; null !== a && 5 !== a.tag && 3 !== a.tag; ) a = a["return"];
|
|
Ag = a;
|
|
}
|
|
function Hg(a) {
|
|
if (a !== Ag) return !1;
|
|
if (!Cg) return Gg(a), Cg = !0, !1;
|
|
var b = a.type;
|
|
if (5 !== a.tag || "head" !== b && "body" !== b && !ef(b, a.memoizedProps)) for (b = Bg; b; ) Dg(a, b),
|
|
b = jf(b);
|
|
return Gg(a), Bg = Ag ? jf(a.stateNode) : null, !0;
|
|
}
|
|
function Ig() {
|
|
Bg = Ag = null, Cg = !1;
|
|
}
|
|
function Q(a, b, c) {
|
|
Jg(a, b, c, b.expirationTime);
|
|
}
|
|
function Jg(a, b, c, d) {
|
|
b.child = null === a ? zg(b, null, c, d) : yg(b, a.child, c, d);
|
|
}
|
|
function Kg(a, b) {
|
|
var c = b.ref;
|
|
(null === a && null !== c || null !== a && a.ref !== c) && (b.effectTag |= 128);
|
|
}
|
|
function Lg(a, b, c, d, e) {
|
|
Kg(a, b);
|
|
var f = 0 != (64 & b.effectTag);
|
|
if (!c && !f) return d && yf(b, !1), R(a, b);
|
|
c = b.stateNode, ec.current = b;
|
|
var g = f ? null : c.render();
|
|
return b.effectTag |= 1, f && (Jg(a, b, null, e), b.child = null), Jg(a, b, g, e),
|
|
b.memoizedState = c.state, b.memoizedProps = c.props, d && yf(b, !0), b.child;
|
|
}
|
|
function Mg(a) {
|
|
var b = a.stateNode;
|
|
b.pendingContext ? vf(0, b.pendingContext, b.pendingContext !== b.context) : b.context && vf(0, b.context, !1),
|
|
jg(a, b.containerInfo);
|
|
}
|
|
function Ng(a, b, c, d) {
|
|
var e = a.child;
|
|
for (null !== e && (e["return"] = a); null !== e; ) {
|
|
switch (e.tag) {
|
|
case 12:
|
|
var f = 0 | e.stateNode;
|
|
if (e.type === b && 0 != (f & c)) {
|
|
for (f = e; null !== f; ) {
|
|
var g = f.alternate;
|
|
if (0 === f.expirationTime || f.expirationTime > d) f.expirationTime = d, null !== g && (0 === g.expirationTime || g.expirationTime > d) && (g.expirationTime = d); else {
|
|
if (null === g || !(0 === g.expirationTime || g.expirationTime > d)) break;
|
|
g.expirationTime = d;
|
|
}
|
|
f = f["return"];
|
|
}
|
|
f = null;
|
|
} else f = e.child;
|
|
break;
|
|
|
|
case 13:
|
|
f = e.type === a.type ? null : e.child;
|
|
break;
|
|
|
|
default:
|
|
f = e.child;
|
|
}
|
|
if (null !== f) f["return"] = e; else for (f = e; null !== f; ) {
|
|
if (f === a) {
|
|
f = null;
|
|
break;
|
|
}
|
|
if (null !== (e = f.sibling)) {
|
|
e["return"] = f["return"], f = e;
|
|
break;
|
|
}
|
|
f = f["return"];
|
|
}
|
|
e = f;
|
|
}
|
|
}
|
|
function R(a, b) {
|
|
if (null !== a && b.child !== a.child && A("153"), null !== b.child) {
|
|
var c = Af(a = b.child, a.pendingProps, a.expirationTime);
|
|
for (b.child = c, c["return"] = b; null !== a.sibling; ) a = a.sibling, (c = c.sibling = Af(a, a.pendingProps, a.expirationTime))["return"] = b;
|
|
c.sibling = null;
|
|
}
|
|
return b.child;
|
|
}
|
|
function Sg(a, b, c) {
|
|
if (0 === b.expirationTime || b.expirationTime > c) {
|
|
switch (b.tag) {
|
|
case 3:
|
|
Mg(b);
|
|
break;
|
|
|
|
case 2:
|
|
xf(b);
|
|
break;
|
|
|
|
case 4:
|
|
jg(b, b.stateNode.containerInfo);
|
|
break;
|
|
|
|
case 13:
|
|
bg(b);
|
|
}
|
|
return null;
|
|
}
|
|
switch (b.tag) {
|
|
case 0:
|
|
null !== a && A("155");
|
|
var d = b.type, e = b.pendingProps, f = qf(b);
|
|
return d = d(e, f = sf(b, f)), b.effectTag |= 1, "object" == typeof d && null !== d && "function" == typeof d.render && void 0 === d.$$typeof ? (f = b.type,
|
|
b.tag = 2, b.memoizedState = null !== d.state && void 0 !== d.state ? d.state : null,
|
|
"function" == typeof (f = f.getDerivedStateFromProps) && mg(b, f, e), e = xf(b),
|
|
d.updater = qg, b.stateNode = d, d._reactInternalFiber = b, tg(b, c), a = Lg(a, b, !0, e, c)) : (b.tag = 1,
|
|
Q(a, b, d), b.memoizedProps = e, a = b.child), a;
|
|
|
|
case 1:
|
|
return e = b.type, c = b.pendingProps, O.current || b.memoizedProps !== c ? (e = e(c, d = sf(b, d = qf(b))),
|
|
b.effectTag |= 1, Q(a, b, e), b.memoizedProps = c, a = b.child) : a = R(a, b), a;
|
|
|
|
case 2:
|
|
if (e = xf(b), null === a) if (null === b.stateNode) {
|
|
var g = b.pendingProps, h = b.type;
|
|
d = qf(b);
|
|
var k = 2 === b.tag && null != b.type.contextTypes;
|
|
g = new h(g, f = k ? sf(b, d) : ha), b.memoizedState = null !== g.state && void 0 !== g.state ? g.state : null,
|
|
g.updater = qg, b.stateNode = g, g._reactInternalFiber = b, k && ((k = b.stateNode).__reactInternalMemoizedUnmaskedChildContext = d,
|
|
k.__reactInternalMemoizedMaskedChildContext = f), tg(b, c), d = !0;
|
|
} else {
|
|
h = b.type, d = b.stateNode, k = b.memoizedProps, f = b.pendingProps, d.props = k;
|
|
var n = d.context;
|
|
g = sf(b, g = qf(b));
|
|
var r = h.getDerivedStateFromProps;
|
|
(h = "function" == typeof r || "function" == typeof d.getSnapshotBeforeUpdate) || "function" != typeof d.UNSAFE_componentWillReceiveProps && "function" != typeof d.componentWillReceiveProps || (k !== f || n !== g) && sg(b, d, f, g),
|
|
Mf = !1;
|
|
var w = b.memoizedState;
|
|
n = d.state = w;
|
|
var P = b.updateQueue;
|
|
null !== P && (Vf(b, P, f, d, c), n = b.memoizedState), k !== f || w !== n || O.current || Mf ? ("function" == typeof r && (mg(b, r, f),
|
|
n = b.memoizedState), (k = Mf || rg(b, k, f, w, n, g)) ? (h || "function" != typeof d.UNSAFE_componentWillMount && "function" != typeof d.componentWillMount || ("function" == typeof d.componentWillMount && d.componentWillMount(),
|
|
"function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount()),
|
|
"function" == typeof d.componentDidMount && (b.effectTag |= 4)) : ("function" == typeof d.componentDidMount && (b.effectTag |= 4),
|
|
b.memoizedProps = f, b.memoizedState = n), d.props = f, d.state = n, d.context = g,
|
|
d = k) : ("function" == typeof d.componentDidMount && (b.effectTag |= 4), d = !1);
|
|
} else h = b.type, d = b.stateNode, f = b.memoizedProps, k = b.pendingProps, d.props = f,
|
|
n = d.context, g = sf(b, g = qf(b)), (h = "function" == typeof (r = h.getDerivedStateFromProps) || "function" == typeof d.getSnapshotBeforeUpdate) || "function" != typeof d.UNSAFE_componentWillReceiveProps && "function" != typeof d.componentWillReceiveProps || (f !== k || n !== g) && sg(b, d, k, g),
|
|
Mf = !1, n = b.memoizedState, w = d.state = n, null !== (P = b.updateQueue) && (Vf(b, P, k, d, c),
|
|
w = b.memoizedState), f !== k || n !== w || O.current || Mf ? ("function" == typeof r && (mg(b, r, k),
|
|
w = b.memoizedState), (r = Mf || rg(b, f, k, n, w, g)) ? (h || "function" != typeof d.UNSAFE_componentWillUpdate && "function" != typeof d.componentWillUpdate || ("function" == typeof d.componentWillUpdate && d.componentWillUpdate(k, w, g),
|
|
"function" == typeof d.UNSAFE_componentWillUpdate && d.UNSAFE_componentWillUpdate(k, w, g)),
|
|
"function" == typeof d.componentDidUpdate && (b.effectTag |= 4), "function" == typeof d.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : ("function" != typeof d.componentDidUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 4),
|
|
"function" != typeof d.getSnapshotBeforeUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 256),
|
|
b.memoizedProps = k, b.memoizedState = w), d.props = k, d.state = w, d.context = g,
|
|
d = r) : ("function" != typeof d.componentDidUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 4),
|
|
"function" != typeof d.getSnapshotBeforeUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 256),
|
|
d = !1);
|
|
return Lg(a, b, d, e, c);
|
|
|
|
case 3:
|
|
return Mg(b), null !== (e = b.updateQueue) ? (d = null !== (d = b.memoizedState) ? d.element : null,
|
|
Vf(b, e, b.pendingProps, null, c), (e = b.memoizedState.element) === d ? (Ig(),
|
|
a = R(a, b)) : (d = b.stateNode, (d = (null === a || null === a.child) && d.hydrate) && (Bg = kf(b.stateNode.containerInfo),
|
|
Ag = b, d = Cg = !0), d ? (b.effectTag |= 2, b.child = zg(b, null, e, c)) : (Ig(),
|
|
Q(a, b, e)), a = b.child)) : (Ig(), a = R(a, b)), a;
|
|
|
|
case 5:
|
|
return hg(gg.current), (e = hg(eg.current)) !== (d = Ie(e, b.type)) && (N(fg, b),
|
|
N(eg, d)), null === a && Fg(b), e = b.type, k = b.memoizedProps, d = b.pendingProps,
|
|
f = null !== a ? a.memoizedProps : null, O.current || k !== d || ((k = 1 & b.mode && !!d.hidden) && (b.expirationTime = 1073741823),
|
|
k && 1073741823 === c) ? (k = d.children, ef(e, d) ? k = null : f && ef(e, f) && (b.effectTag |= 16),
|
|
Kg(a, b), 1073741823 !== c && 1 & b.mode && d.hidden ? (b.expirationTime = 1073741823,
|
|
b.memoizedProps = d, a = null) : (Q(a, b, k), b.memoizedProps = d, a = b.child)) : a = R(a, b),
|
|
a;
|
|
|
|
case 6:
|
|
return null === a && Fg(b), b.memoizedProps = b.pendingProps, null;
|
|
|
|
case 16:
|
|
return null;
|
|
|
|
case 4:
|
|
return jg(b, b.stateNode.containerInfo), e = b.pendingProps, O.current || b.memoizedProps !== e ? (null === a ? b.child = yg(b, null, e, c) : Q(a, b, e),
|
|
b.memoizedProps = e, a = b.child) : a = R(a, b), a;
|
|
|
|
case 14:
|
|
return e = b.type.render, c = b.pendingProps, d = b.ref, O.current || b.memoizedProps !== c || d !== (null !== a ? a.ref : null) ? (Q(a, b, e = e(c, d)),
|
|
b.memoizedProps = c, a = b.child) : a = R(a, b), a;
|
|
|
|
case 10:
|
|
return c = b.pendingProps, O.current || b.memoizedProps !== c ? (Q(a, b, c), b.memoizedProps = c,
|
|
a = b.child) : a = R(a, b), a;
|
|
|
|
case 11:
|
|
return c = b.pendingProps.children, O.current || null !== c && b.memoizedProps !== c ? (Q(a, b, c),
|
|
b.memoizedProps = c, a = b.child) : a = R(a, b), a;
|
|
|
|
case 15:
|
|
return c = b.pendingProps, b.memoizedProps === c ? a = R(a, b) : (Q(a, b, c.children),
|
|
b.memoizedProps = c, a = b.child), a;
|
|
|
|
case 13:
|
|
return function(a, b, c) {
|
|
var d = b.type._context, e = b.pendingProps, f = b.memoizedProps, g = !0;
|
|
if (O.current) g = !1; else if (f === e) return b.stateNode = 0, bg(b), R(a, b);
|
|
var h = e.value;
|
|
if (b.memoizedProps = e, null === f) h = 1073741823; else if (f.value === e.value) {
|
|
if (f.children === e.children && g) return b.stateNode = 0, bg(b), R(a, b);
|
|
h = 0;
|
|
} else {
|
|
var k = f.value;
|
|
if (k === h && (0 !== k || 1 / k == 1 / h) || k != k && h != h) {
|
|
if (f.children === e.children && g) return b.stateNode = 0, bg(b), R(a, b);
|
|
h = 0;
|
|
} else if (h = "function" == typeof d._calculateChangedBits ? d._calculateChangedBits(k, h) : 1073741823,
|
|
0 == (h |= 0)) {
|
|
if (f.children === e.children && g) return b.stateNode = 0, bg(b), R(a, b);
|
|
} else Ng(b, d, h, c);
|
|
}
|
|
return b.stateNode = h, bg(b), Q(a, b, e.children), b.child;
|
|
}(a, b, c);
|
|
|
|
case 12:
|
|
a: if (d = b.type, f = b.pendingProps, k = b.memoizedProps, e = d._currentValue,
|
|
g = d._changedBits, O.current || 0 !== g || k !== f) {
|
|
if (b.memoizedProps = f, void 0 !== (h = f.unstable_observedBits) && null !== h || (h = 1073741823),
|
|
b.stateNode = h, 0 != (g & h)) Ng(b, d, g, c); else if (k === f) {
|
|
a = R(a, b);
|
|
break a;
|
|
}
|
|
c = (c = f.children)(e), b.effectTag |= 1, Q(a, b, c), a = b.child;
|
|
} else a = R(a, b);
|
|
return a;
|
|
|
|
default:
|
|
A("156");
|
|
}
|
|
}
|
|
function Tg(a) {
|
|
a.effectTag |= 4;
|
|
}
|
|
var Ug = void 0, Vg = void 0, Wg = void 0;
|
|
function Xg(a, b) {
|
|
var c = b.pendingProps;
|
|
switch (b.tag) {
|
|
case 1:
|
|
return null;
|
|
|
|
case 2:
|
|
return tf(b), null;
|
|
|
|
case 3:
|
|
kg(), uf();
|
|
var d = b.stateNode;
|
|
return d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null),
|
|
null !== a && null !== a.child || (Hg(b), b.effectTag &= -3), Ug(b), null;
|
|
|
|
case 5:
|
|
lg(b), d = hg(gg.current);
|
|
var e = b.type;
|
|
if (null !== a && null != b.stateNode) {
|
|
var f = a.memoizedProps, g = b.stateNode, h = hg(eg.current);
|
|
g = Xe(g, e, f, c, d), Vg(a, b, g, e, f, c, d, h), a.ref !== b.ref && (b.effectTag |= 128);
|
|
} else {
|
|
if (!c) return null === b.stateNode && A("166"), null;
|
|
if (a = hg(eg.current), Hg(b)) c = b.stateNode, e = b.type, f = b.memoizedProps,
|
|
c[C] = b, c[Ma] = f, d = Ze(c, e, f, a, d), b.updateQueue = d, null !== d && Tg(b); else {
|
|
(a = Ue(e, c, d, a))[C] = b, a[Ma] = c;
|
|
a: for (f = b.child; null !== f; ) {
|
|
if (5 === f.tag || 6 === f.tag) a.appendChild(f.stateNode); else if (4 !== f.tag && null !== f.child) {
|
|
f.child["return"] = f, f = f.child;
|
|
continue;
|
|
}
|
|
if (f === b) break;
|
|
for (;null === f.sibling; ) {
|
|
if (null === f["return"] || f["return"] === b) break a;
|
|
f = f["return"];
|
|
}
|
|
f.sibling["return"] = f["return"], f = f.sibling;
|
|
}
|
|
We(a, e, c, d), df(e, c) && Tg(b), b.stateNode = a;
|
|
}
|
|
null !== b.ref && (b.effectTag |= 128);
|
|
}
|
|
return null;
|
|
|
|
case 6:
|
|
if (a && null != b.stateNode) Wg(a, b, a.memoizedProps, c); else {
|
|
if ("string" != typeof c) return null === b.stateNode && A("166"), null;
|
|
d = hg(gg.current), hg(eg.current), Hg(b) ? (d = b.stateNode, c = b.memoizedProps,
|
|
d[C] = b, $e(d, c) && Tg(b)) : ((d = Ve(c, d))[C] = b, b.stateNode = d);
|
|
}
|
|
return null;
|
|
|
|
case 14:
|
|
case 16:
|
|
case 10:
|
|
case 11:
|
|
case 15:
|
|
return null;
|
|
|
|
case 4:
|
|
return kg(), Ug(b), null;
|
|
|
|
case 13:
|
|
return cg(b), null;
|
|
|
|
case 12:
|
|
return null;
|
|
|
|
case 0:
|
|
A("167");
|
|
|
|
default:
|
|
A("156");
|
|
}
|
|
}
|
|
function Yg(a, b) {
|
|
var c = b.source;
|
|
null === b.stack && null !== c && vc(c), null !== c && uc(c), b = b.value, null !== a && 2 === a.tag && uc(a);
|
|
try {
|
|
b && b.suppressReactErrorLogging || console.error(b);
|
|
} catch (d) {
|
|
d && d.suppressReactErrorLogging || console.error(d);
|
|
}
|
|
}
|
|
function Zg(a) {
|
|
var b = a.ref;
|
|
if (null !== b) if ("function" == typeof b) try {
|
|
b(null);
|
|
} catch (c) {
|
|
$g(a, c);
|
|
} else b.current = null;
|
|
}
|
|
function ah(a) {
|
|
switch (Lf(a), a.tag) {
|
|
case 2:
|
|
Zg(a);
|
|
var b = a.stateNode;
|
|
if ("function" == typeof b.componentWillUnmount) try {
|
|
b.props = a.memoizedProps, b.state = a.memoizedState, b.componentWillUnmount();
|
|
} catch (c) {
|
|
$g(a, c);
|
|
}
|
|
break;
|
|
|
|
case 5:
|
|
Zg(a);
|
|
break;
|
|
|
|
case 4:
|
|
bh(a);
|
|
}
|
|
}
|
|
function ch(a) {
|
|
return 5 === a.tag || 3 === a.tag || 4 === a.tag;
|
|
}
|
|
function dh(a) {
|
|
a: {
|
|
for (var b = a["return"]; null !== b; ) {
|
|
if (ch(b)) {
|
|
var c = b;
|
|
break a;
|
|
}
|
|
b = b["return"];
|
|
}
|
|
A("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:
|
|
A("161");
|
|
}
|
|
16 & c.effectTag && (Le(b, ""), c.effectTag &= -17);
|
|
a: b: for (c = a; ;) {
|
|
for (;null === c.sibling; ) {
|
|
if (null === c["return"] || ch(c["return"])) {
|
|
c = null;
|
|
break a;
|
|
}
|
|
c = c["return"];
|
|
}
|
|
for (c.sibling["return"] = c["return"], c = c.sibling; 5 !== c.tag && 6 !== 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 ? (f = b, g = e.stateNode, 8 === f.nodeType ? f.parentNode.insertBefore(g, f) : f.appendChild(g)) : 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 bh(a) {
|
|
for (var b = a, c = !1, d = void 0, e = void 0; ;) {
|
|
if (!c) {
|
|
c = b["return"];
|
|
a: for (;;) {
|
|
switch (null === c && A("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 (ah(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 ? d = b.stateNode.containerInfo : ah(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 eh(a, b) {
|
|
switch (b.tag) {
|
|
case 2:
|
|
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 && (c[Ma] = d, Ye(c, f, e, a, d));
|
|
}
|
|
break;
|
|
|
|
case 6:
|
|
null === b.stateNode && A("162"), b.stateNode.nodeValue = b.memoizedProps;
|
|
break;
|
|
|
|
case 3:
|
|
case 15:
|
|
case 16:
|
|
break;
|
|
|
|
default:
|
|
A("163");
|
|
}
|
|
}
|
|
function fh(a, b, c) {
|
|
(c = Pf(c)).tag = 3, c.payload = {
|
|
element: null
|
|
};
|
|
var d = b.value;
|
|
return c.callback = function() {
|
|
gh(d), Yg(a, b);
|
|
}, c;
|
|
}
|
|
function hh(a, b, c) {
|
|
(c = Pf(c)).tag = 3;
|
|
var d = a.stateNode;
|
|
return null !== d && "function" == typeof d.componentDidCatch && (c.callback = function() {
|
|
null === ih ? ih = new Set([ this ]) : ih.add(this);
|
|
var c = b.value, d = b.stack;
|
|
Yg(a, b), this.componentDidCatch(c, {
|
|
componentStack: null !== d ? d : ""
|
|
});
|
|
}), c;
|
|
}
|
|
function jh(a, b, c, d, e, f) {
|
|
c.effectTag |= 512, c.firstEffect = c.lastEffect = null, d = Yf(d, c), a = b;
|
|
do {
|
|
switch (a.tag) {
|
|
case 3:
|
|
return a.effectTag |= 1024, void Sf(a, d = fh(a, d, f), f);
|
|
|
|
case 2:
|
|
if (b = d, c = a.stateNode, 0 == (64 & a.effectTag) && null !== c && "function" == typeof c.componentDidCatch && (null === ih || !ih.has(c))) return a.effectTag |= 1024,
|
|
void Sf(a, d = hh(a, b, f), f);
|
|
}
|
|
a = a["return"];
|
|
} while (null !== a);
|
|
}
|
|
function kh(a) {
|
|
switch (a.tag) {
|
|
case 2:
|
|
tf(a);
|
|
var b = a.effectTag;
|
|
return 1024 & b ? (a.effectTag = -1025 & b | 64, a) : null;
|
|
|
|
case 3:
|
|
return kg(), uf(), 1024 & (b = a.effectTag) ? (a.effectTag = -1025 & b | 64, a) : null;
|
|
|
|
case 5:
|
|
return lg(a), null;
|
|
|
|
case 16:
|
|
return 1024 & (b = a.effectTag) ? (a.effectTag = -1025 & b | 64, a) : null;
|
|
|
|
case 4:
|
|
return kg(), null;
|
|
|
|
case 13:
|
|
return cg(a), null;
|
|
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
Ug = function() {}, Vg = function(a, b, c) {
|
|
(b.updateQueue = c) && Tg(b);
|
|
}, Wg = function(a, b, c, d) {
|
|
c !== d && Tg(b);
|
|
};
|
|
var lh = ff(), mh = 2, nh = lh, oh = 0, ph = 0, qh = !1, S = null, rh = null, T = 0, sh = -1, th = !1, U = null, uh = !1, vh = !1, ih = null;
|
|
function wh() {
|
|
if (null !== S) for (var a = S["return"]; null !== a; ) {
|
|
var b = a;
|
|
switch (b.tag) {
|
|
case 2:
|
|
tf(b);
|
|
break;
|
|
|
|
case 3:
|
|
kg(), uf();
|
|
break;
|
|
|
|
case 5:
|
|
lg(b);
|
|
break;
|
|
|
|
case 4:
|
|
kg();
|
|
break;
|
|
|
|
case 13:
|
|
cg(b);
|
|
}
|
|
a = a["return"];
|
|
}
|
|
rh = null, T = 0, sh = -1, th = !1, S = null, vh = !1;
|
|
}
|
|
function xh(a) {
|
|
for (;;) {
|
|
var b = a.alternate, c = a["return"], d = a.sibling;
|
|
if (0 == (512 & a.effectTag)) {
|
|
b = Xg(b, a);
|
|
var e = a;
|
|
if (1073741823 === T || 1073741823 !== e.expirationTime) {
|
|
var f = 0;
|
|
switch (e.tag) {
|
|
case 3:
|
|
case 2:
|
|
var g = e.updateQueue;
|
|
null !== g && (f = g.expirationTime);
|
|
}
|
|
for (g = e.child; null !== g; ) 0 !== g.expirationTime && (0 === f || f > g.expirationTime) && (f = g.expirationTime),
|
|
g = g.sibling;
|
|
e.expirationTime = f;
|
|
}
|
|
if (null !== b) return b;
|
|
if (null !== c && 0 == (512 & c.effectTag) && (null === c.firstEffect && (c.firstEffect = a.firstEffect),
|
|
null !== a.lastEffect && (null !== c.lastEffect && (c.lastEffect.nextEffect = a.firstEffect),
|
|
c.lastEffect = a.lastEffect), 1 < a.effectTag && (null !== c.lastEffect ? c.lastEffect.nextEffect = a : c.firstEffect = a,
|
|
c.lastEffect = a)), null !== d) return d;
|
|
if (null === c) {
|
|
vh = !0;
|
|
break;
|
|
}
|
|
a = c;
|
|
} else {
|
|
if (null !== (a = kh(a))) return a.effectTag &= 511, a;
|
|
if (null !== c && (c.firstEffect = c.lastEffect = null, c.effectTag |= 512), null !== d) return d;
|
|
if (null === c) break;
|
|
a = c;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
function yh(a) {
|
|
var b = Sg(a.alternate, a, T);
|
|
return null === b && (b = xh(a)), ec.current = null, b;
|
|
}
|
|
function zh(a, b, c) {
|
|
qh && A("243"), qh = !0, b === T && a === rh && null !== S || (wh(), T = b, sh = -1,
|
|
S = Af((rh = a).current, null, T), a.pendingCommitExpirationTime = 0);
|
|
var d = !1;
|
|
for (th = !c || T <= mh; ;) {
|
|
try {
|
|
if (c) for (;null !== S && !Ah(); ) S = yh(S); else for (;null !== S; ) S = yh(S);
|
|
} catch (f) {
|
|
if (null === S) d = !0, gh(f); else {
|
|
null === S && A("271");
|
|
var e = (c = S)["return"];
|
|
if (null === e) {
|
|
d = !0, gh(f);
|
|
break;
|
|
}
|
|
jh(a, e, c, f, 0, T), S = xh(c);
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
if (qh = !1, d) return null;
|
|
if (null === S) {
|
|
if (vh) return a.pendingCommitExpirationTime = b, a.current.alternate;
|
|
th && A("262"), 0 <= sh && setTimeout(function() {
|
|
var b = a.current.expirationTime;
|
|
0 !== b && (0 === a.remainingExpirationTime || a.remainingExpirationTime < b) && Bh(a, b);
|
|
}, sh), function(a) {
|
|
null === X && A("246"), X.remainingExpirationTime = a;
|
|
}(a.current.expirationTime);
|
|
}
|
|
return null;
|
|
}
|
|
function $g(a, b) {
|
|
var c;
|
|
a: {
|
|
for (qh && !uh && A("263"), c = a["return"]; null !== c; ) {
|
|
switch (c.tag) {
|
|
case 2:
|
|
var d = c.stateNode;
|
|
if ("function" == typeof c.type.getDerivedStateFromCatch || "function" == typeof d.componentDidCatch && (null === ih || !ih.has(d))) {
|
|
Rf(c, a = hh(c, a = Yf(b, a), 1), 1), pg(c, 1), c = void 0;
|
|
break a;
|
|
}
|
|
break;
|
|
|
|
case 3:
|
|
Rf(c, a = fh(c, a = Yf(b, a), 1), 1), pg(c, 1), c = void 0;
|
|
break a;
|
|
}
|
|
c = c["return"];
|
|
}
|
|
3 === a.tag && (Rf(a, c = fh(a, c = Yf(b, a), 1), 1), pg(a, 1)), c = void 0;
|
|
}
|
|
return c;
|
|
}
|
|
function Dh() {
|
|
var a = 2 + 25 * (1 + ((ng() - 2 + 500) / 25 | 0));
|
|
return a <= oh && (a = oh + 1), oh = a;
|
|
}
|
|
function og(a, b) {
|
|
return a = 0 !== ph ? ph : qh ? uh ? 1 : T : 1 & b.mode ? Eh ? 2 + 10 * (1 + ((a - 2 + 15) / 10 | 0)) : 2 + 25 * (1 + ((a - 2 + 500) / 25 | 0)) : 1,
|
|
Eh && (0 === Fh || a > Fh) && (Fh = a), a;
|
|
}
|
|
function pg(a, b) {
|
|
for (;null !== a; ) {
|
|
if ((0 === a.expirationTime || a.expirationTime > b) && (a.expirationTime = b),
|
|
null !== a.alternate && (0 === a.alternate.expirationTime || a.alternate.expirationTime > b) && (a.alternate.expirationTime = b),
|
|
null === a["return"]) {
|
|
if (3 !== a.tag) break;
|
|
var c = a.stateNode;
|
|
!qh && 0 !== T && b < T && wh();
|
|
var d = c.current.expirationTime;
|
|
qh && !uh && rh === c || Bh(c, d), Gh > Hh && A("185");
|
|
}
|
|
a = a["return"];
|
|
}
|
|
}
|
|
function ng() {
|
|
return nh = ff() - lh, mh = 2 + (nh / 10 | 0);
|
|
}
|
|
function Ih(a) {
|
|
var b = ph;
|
|
ph = 2 + 25 * (1 + ((ng() - 2 + 500) / 25 | 0));
|
|
try {
|
|
return a();
|
|
} finally {
|
|
ph = b;
|
|
}
|
|
}
|
|
function Jh(a, b, c, d, e) {
|
|
var f = ph;
|
|
ph = 1;
|
|
try {
|
|
return a(b, c, d, e);
|
|
} finally {
|
|
ph = f;
|
|
}
|
|
}
|
|
var Kh = null, V = null, Lh = 0, Mh = void 0, W = !1, X = null, Y = 0, Fh = 0, Nh = !1, Oh = !1, Ph = null, Qh = null, Z = !1, Rh = !1, Eh = !1, Sh = null, Hh = 1e3, Gh = 0, Th = 1;
|
|
function Uh(a) {
|
|
if (0 !== Lh) {
|
|
if (a > Lh) return;
|
|
null !== Mh && hf(Mh);
|
|
}
|
|
var b = ff() - lh;
|
|
Lh = a, Mh = gf(Vh, {
|
|
timeout: 10 * (a - 2) - b
|
|
});
|
|
}
|
|
function Bh(a, b) {
|
|
if (null === a.nextScheduledRoot) a.remainingExpirationTime = b, null === V ? (Kh = V = a,
|
|
a.nextScheduledRoot = a) : (V = V.nextScheduledRoot = a).nextScheduledRoot = Kh; else {
|
|
var c = a.remainingExpirationTime;
|
|
(0 === c || b < c) && (a.remainingExpirationTime = b);
|
|
}
|
|
W || (Z ? Rh && (X = a, Y = 1, Wh(a, 1, !1)) : 1 === b ? Xh() : Uh(b));
|
|
}
|
|
function Yh() {
|
|
var a = 0, b = null;
|
|
if (null !== V) for (var c = V, d = Kh; null !== d; ) {
|
|
var e = d.remainingExpirationTime;
|
|
if (0 === e) {
|
|
if ((null === c || null === V) && A("244"), d === d.nextScheduledRoot) {
|
|
Kh = V = d.nextScheduledRoot = null;
|
|
break;
|
|
}
|
|
if (d === Kh) Kh = e = d.nextScheduledRoot, V.nextScheduledRoot = e, d.nextScheduledRoot = null; else {
|
|
if (d === V) {
|
|
(V = c).nextScheduledRoot = Kh, d.nextScheduledRoot = null;
|
|
break;
|
|
}
|
|
c.nextScheduledRoot = d.nextScheduledRoot, d.nextScheduledRoot = null;
|
|
}
|
|
d = c.nextScheduledRoot;
|
|
} else {
|
|
if ((0 === a || e < a) && (a = e, b = d), d === V) break;
|
|
c = d, d = d.nextScheduledRoot;
|
|
}
|
|
}
|
|
null !== (c = X) && c === b && 1 === a ? Gh++ : Gh = 0, X = b, Y = a;
|
|
}
|
|
function Vh(a) {
|
|
Zh(0, !0, a);
|
|
}
|
|
function Xh() {
|
|
Zh(1, !1, null);
|
|
}
|
|
function Zh(a, b, c) {
|
|
if (Qh = c, Yh(), b) for (;null !== X && 0 !== Y && (0 === a || a >= Y) && (!Nh || ng() >= Y); ) ng(),
|
|
Wh(X, Y, !Nh), Yh(); else for (;null !== X && 0 !== Y && (0 === a || a >= Y); ) Wh(X, Y, !1),
|
|
Yh();
|
|
null !== Qh && (Lh = 0, Mh = null), 0 !== Y && Uh(Y), Qh = null, Nh = !1, $h();
|
|
}
|
|
function ai(a, b) {
|
|
W && A("253"), X = a, Y = b, Wh(a, b, !1), Xh(), $h();
|
|
}
|
|
function $h() {
|
|
if (Gh = 0, null !== Sh) {
|
|
var a = Sh;
|
|
Sh = null;
|
|
for (var b = 0; b < a.length; b++) {
|
|
var c = a[b];
|
|
try {
|
|
c._onComplete();
|
|
} catch (d) {
|
|
Oh || (Oh = !0, Ph = d);
|
|
}
|
|
}
|
|
}
|
|
if (Oh) throw a = Ph, Ph = null, Oh = !1, a;
|
|
}
|
|
function Wh(a, b, c) {
|
|
W && A("245"), W = !0, c ? null !== (c = a.finishedWork) ? bi(a, c, b) : null !== (c = zh(a, b, !0)) && (Ah() ? a.finishedWork = c : bi(a, c, b)) : null !== (c = a.finishedWork) ? bi(a, c, b) : null !== (c = zh(a, b, !1)) && bi(a, c, b),
|
|
W = !1;
|
|
}
|
|
function bi(a, b, c) {
|
|
var d = a.firstBatch;
|
|
if (null !== d && d._expirationTime <= c && (null === Sh ? Sh = [ d ] : Sh.push(d),
|
|
d._defer)) return a.finishedWork = b, void (a.remainingExpirationTime = 0);
|
|
if (a.finishedWork = null, uh = qh = !0, (c = b.stateNode).current === b && A("177"),
|
|
0 === (d = c.pendingCommitExpirationTime) && A("261"), c.pendingCommitExpirationTime = 0,
|
|
ng(), ec.current = null, 1 < b.effectTag) if (null !== b.lastEffect) {
|
|
b.lastEffect.nextEffect = b;
|
|
var e = b.firstEffect;
|
|
} else e = b; else e = b.firstEffect;
|
|
bf = Id;
|
|
var f = da();
|
|
if (Vd(f)) {
|
|
if ("selectionStart" in f) var g = {
|
|
start: f.selectionStart,
|
|
end: f.selectionEnd
|
|
}; else a: {
|
|
var h = window.getSelection && window.getSelection();
|
|
if (h && 0 !== h.rangeCount) {
|
|
g = h.anchorNode;
|
|
var k = h.anchorOffset, n = h.focusNode;
|
|
h = h.focusOffset;
|
|
try {
|
|
g.nodeType, n.nodeType;
|
|
} catch (Wa) {
|
|
g = null;
|
|
break a;
|
|
}
|
|
var r = 0, w = -1, P = -1, nc = 0, Jd = 0, E = f, t = null;
|
|
b: for (;;) {
|
|
for (var x; E !== g || 0 !== k && 3 !== E.nodeType || (w = r + k), E !== n || 0 !== h && 3 !== E.nodeType || (P = r + h),
|
|
3 === E.nodeType && (r += E.nodeValue.length), null !== (x = E.firstChild); ) t = E,
|
|
E = x;
|
|
for (;;) {
|
|
if (E === f) break b;
|
|
if (t === g && ++nc === k && (w = r), t === n && ++Jd === h && (P = r), null !== (x = E.nextSibling)) break;
|
|
t = (E = t).parentNode;
|
|
}
|
|
E = x;
|
|
}
|
|
g = -1 === w || -1 === P ? null : {
|
|
start: w,
|
|
end: P
|
|
};
|
|
} else g = null;
|
|
}
|
|
g = g || {
|
|
start: 0,
|
|
end: 0
|
|
};
|
|
} else g = null;
|
|
for (cf = {
|
|
focusedElem: f,
|
|
selectionRange: g
|
|
}, Kd(!1), U = e; null !== U; ) {
|
|
f = !1, g = void 0;
|
|
try {
|
|
for (;null !== U; ) {
|
|
if (256 & U.effectTag) {
|
|
var u = U.alternate;
|
|
switch ((k = U).tag) {
|
|
case 2:
|
|
if (256 & k.effectTag && null !== u) {
|
|
var y = u.memoizedProps, D = u.memoizedState, ja = k.stateNode;
|
|
ja.props = k.memoizedProps, ja.state = k.memoizedState;
|
|
var ni = ja.getSnapshotBeforeUpdate(y, D);
|
|
ja.__reactInternalSnapshotBeforeUpdate = ni;
|
|
}
|
|
break;
|
|
|
|
case 3:
|
|
case 5:
|
|
case 6:
|
|
case 4:
|
|
break;
|
|
|
|
default:
|
|
A("163");
|
|
}
|
|
}
|
|
U = U.nextEffect;
|
|
}
|
|
} catch (Wa) {
|
|
f = !0, g = Wa;
|
|
}
|
|
f && (null === U && A("178"), $g(U, g), null !== U && (U = U.nextEffect));
|
|
}
|
|
for (U = e; null !== U; ) {
|
|
u = !1, y = void 0;
|
|
try {
|
|
for (;null !== U; ) {
|
|
var q = U.effectTag;
|
|
if (16 & q && Le(U.stateNode, ""), 128 & q) {
|
|
var z = U.alternate;
|
|
if (null !== z) {
|
|
var l = z.ref;
|
|
null !== l && ("function" == typeof l ? l(null) : l.current = null);
|
|
}
|
|
}
|
|
switch (14 & q) {
|
|
case 2:
|
|
dh(U), U.effectTag &= -3;
|
|
break;
|
|
|
|
case 6:
|
|
dh(U), U.effectTag &= -3, eh(U.alternate, U);
|
|
break;
|
|
|
|
case 4:
|
|
eh(U.alternate, U);
|
|
break;
|
|
|
|
case 8:
|
|
bh(D = U), D["return"] = null, D.child = null, D.alternate && (D.alternate.child = null,
|
|
D.alternate["return"] = null);
|
|
}
|
|
U = U.nextEffect;
|
|
}
|
|
} catch (Wa) {
|
|
u = !0, y = Wa;
|
|
}
|
|
u && (null === U && A("178"), $g(U, y), null !== U && (U = U.nextEffect));
|
|
}
|
|
if (l = cf, z = da(), q = l.focusedElem, u = l.selectionRange, z !== q && fa(document.documentElement, q)) {
|
|
null !== u && Vd(q) && (z = u.start, void 0 === (l = u.end) && (l = z), "selectionStart" in q ? (q.selectionStart = z,
|
|
q.selectionEnd = Math.min(l, q.value.length)) : window.getSelection && (z = window.getSelection(),
|
|
y = q[lb()].length, l = Math.min(u.start, y), u = void 0 === u.end ? l : Math.min(u.end, y),
|
|
!z.extend && l > u && (y = u, u = l, l = y), y = Ud(q, l), D = Ud(q, u), y && D && (1 !== z.rangeCount || z.anchorNode !== y.node || z.anchorOffset !== y.offset || z.focusNode !== D.node || z.focusOffset !== D.offset) && ((ja = document.createRange()).setStart(y.node, y.offset),
|
|
z.removeAllRanges(), l > u ? (z.addRange(ja), z.extend(D.node, D.offset)) : (ja.setEnd(D.node, D.offset),
|
|
z.addRange(ja))))), z = [];
|
|
for (l = q; l = l.parentNode; ) 1 === l.nodeType && z.push({
|
|
element: l,
|
|
left: l.scrollLeft,
|
|
top: l.scrollTop
|
|
});
|
|
for ("function" == typeof q.focus && q.focus(), q = 0; q < z.length; q++) (l = z[q]).element.scrollLeft = l.left,
|
|
l.element.scrollTop = l.top;
|
|
}
|
|
for (cf = null, Kd(bf), bf = null, c.current = b, U = e; null !== U; ) {
|
|
e = !1, q = void 0;
|
|
try {
|
|
for (z = d; null !== U; ) {
|
|
var ig = U.effectTag;
|
|
if (36 & ig) {
|
|
var oc = U.alternate;
|
|
switch (u = z, (l = U).tag) {
|
|
case 2:
|
|
var ca = l.stateNode;
|
|
if (4 & l.effectTag) if (null === oc) ca.props = l.memoizedProps, ca.state = l.memoizedState,
|
|
ca.componentDidMount(); else {
|
|
var xi = oc.memoizedProps, yi = oc.memoizedState;
|
|
ca.props = l.memoizedProps, ca.state = l.memoizedState, ca.componentDidUpdate(xi, yi, ca.__reactInternalSnapshotBeforeUpdate);
|
|
}
|
|
var Og = l.updateQueue;
|
|
null !== Og && (ca.props = l.memoizedProps, ca.state = l.memoizedState, Xf(l, Og, ca));
|
|
break;
|
|
|
|
case 3:
|
|
var Pg = l.updateQueue;
|
|
if (null !== Pg) {
|
|
if (y = null, null !== l.child) switch (l.child.tag) {
|
|
case 5:
|
|
y = l.child.stateNode;
|
|
break;
|
|
|
|
case 2:
|
|
y = l.child.stateNode;
|
|
}
|
|
Xf(l, Pg, y);
|
|
}
|
|
break;
|
|
|
|
case 5:
|
|
var zi = l.stateNode;
|
|
null === oc && 4 & l.effectTag && df(l.type, l.memoizedProps) && zi.focus();
|
|
break;
|
|
|
|
case 6:
|
|
case 4:
|
|
case 15:
|
|
case 16:
|
|
break;
|
|
|
|
default:
|
|
A("163");
|
|
}
|
|
}
|
|
if (128 & ig) {
|
|
l = void 0;
|
|
var yc = U.ref;
|
|
if (null !== yc) {
|
|
var Qg = U.stateNode;
|
|
switch (U.tag) {
|
|
case 5:
|
|
l = Qg;
|
|
break;
|
|
|
|
default:
|
|
l = Qg;
|
|
}
|
|
"function" == typeof yc ? yc(l) : yc.current = l;
|
|
}
|
|
}
|
|
var Ai = U.nextEffect;
|
|
U.nextEffect = null, U = Ai;
|
|
}
|
|
} catch (Wa) {
|
|
e = !0, q = Wa;
|
|
}
|
|
e && (null === U && A("178"), $g(U, q), null !== U && (U = U.nextEffect));
|
|
}
|
|
qh = uh = !1, Kf(b.stateNode), 0 === (b = c.current.expirationTime) && (ih = null),
|
|
a.remainingExpirationTime = b;
|
|
}
|
|
function Ah() {
|
|
return !(null === Qh || Qh.timeRemaining() > Th) && (Nh = !0);
|
|
}
|
|
function gh(a) {
|
|
null === X && A("246"), X.remainingExpirationTime = 0, Oh || (Oh = !0, Ph = a);
|
|
}
|
|
function ci(a, b) {
|
|
var c = Z;
|
|
Z = !0;
|
|
try {
|
|
return a(b);
|
|
} finally {
|
|
(Z = c) || W || Xh();
|
|
}
|
|
}
|
|
function di(a, b) {
|
|
if (Z && !Rh) {
|
|
Rh = !0;
|
|
try {
|
|
return a(b);
|
|
} finally {
|
|
Rh = !1;
|
|
}
|
|
}
|
|
return a(b);
|
|
}
|
|
function ei(a, b) {
|
|
W && A("187");
|
|
var c = Z;
|
|
Z = !0;
|
|
try {
|
|
return Jh(a, b);
|
|
} finally {
|
|
Z = c, Xh();
|
|
}
|
|
}
|
|
function fi(a, b, c) {
|
|
if (Eh) return a(b, c);
|
|
Z || W || 0 === Fh || (Zh(Fh, !1, null), Fh = 0);
|
|
var d = Eh, e = Z;
|
|
Z = Eh = !0;
|
|
try {
|
|
return a(b, c);
|
|
} finally {
|
|
Eh = d, (Z = e) || W || Xh();
|
|
}
|
|
}
|
|
function gi(a) {
|
|
var b = Z;
|
|
Z = !0;
|
|
try {
|
|
Jh(a);
|
|
} finally {
|
|
(Z = b) || W || Zh(1, !1, null);
|
|
}
|
|
}
|
|
function hi(a, b, c, d, e) {
|
|
var f = b.current;
|
|
if (c) {
|
|
var g;
|
|
c = c._reactInternalFiber;
|
|
b: {
|
|
for (2 === kd(c) && 2 === c.tag || A("170"), g = c; 3 !== g.tag; ) {
|
|
if (rf(g)) {
|
|
g = g.stateNode.__reactInternalMemoizedMergedChildContext;
|
|
break b;
|
|
}
|
|
(g = g["return"]) || A("171");
|
|
}
|
|
g = g.stateNode.context;
|
|
}
|
|
c = rf(c) ? wf(c, g) : g;
|
|
} else c = ha;
|
|
return null === b.context ? b.context = c : b.pendingContext = c, b = e, (e = Pf(d)).payload = {
|
|
element: a
|
|
}, null !== (b = void 0 === b ? null : b) && (e.callback = b), Rf(f, e, d), pg(f, d),
|
|
d;
|
|
}
|
|
function ii(a) {
|
|
var b = a._reactInternalFiber;
|
|
return void 0 === b && ("function" == typeof a.render ? A("188") : A("268", Object.keys(a))),
|
|
null === (a = nd(b)) ? null : a.stateNode;
|
|
}
|
|
function ji(a, b, c, d) {
|
|
var e = b.current;
|
|
return hi(a, b, c, e = og(ng(), e), d);
|
|
}
|
|
function ki(a) {
|
|
if (!(a = a.current).child) return null;
|
|
switch (a.child.tag) {
|
|
case 5:
|
|
default:
|
|
return a.child.stateNode;
|
|
}
|
|
}
|
|
function li(a) {
|
|
var b = a.findFiberByHostInstance;
|
|
return function(a) {
|
|
if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
|
|
var b = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
if (b.isDisabled || !b.supportsFiber) return !0;
|
|
try {
|
|
var c = b.inject(a);
|
|
Gf = If(function(a) {
|
|
return b.onCommitFiberRoot(c, a);
|
|
}), Hf = If(function(a) {
|
|
return b.onCommitFiberUnmount(c, a);
|
|
});
|
|
} catch (d) {}
|
|
return !0;
|
|
}(p({}, a, {
|
|
findHostInstanceByFiber: function(a) {
|
|
return null === (a = nd(a)) ? null : a.stateNode;
|
|
},
|
|
findFiberByHostInstance: function(a) {
|
|
return b ? b(a) : null;
|
|
}
|
|
}));
|
|
}
|
|
var mi_batchedUpdates = ci, mi_interactiveUpdates = fi, mi_flushInteractiveUpdates = function() {
|
|
W || 0 === Fh || (Zh(Fh, !1, null), Fh = 0);
|
|
};
|
|
function pi(a) {
|
|
this._expirationTime = Dh(), this._root = a, this._callbacks = this._next = null,
|
|
this._hasChildren = this._didComplete = !1, this._children = null, this._defer = !0;
|
|
}
|
|
function qi() {
|
|
this._callbacks = null, this._didCommit = !1, this._onCommit = this._onCommit.bind(this);
|
|
}
|
|
function ri(a, b, c) {
|
|
this._internalRoot = Ff(a, b, c);
|
|
}
|
|
function si(a) {
|
|
return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
|
|
}
|
|
function ui(a, b, c, d, e) {
|
|
si(c) || A("200");
|
|
var f = c._reactRootContainer;
|
|
if (f) {
|
|
if ("function" == typeof e) {
|
|
var g = e;
|
|
e = function() {
|
|
var a = ki(f._internalRoot);
|
|
g.call(a);
|
|
};
|
|
}
|
|
null != a ? f.legacy_renderSubtreeIntoContainer(a, b, e) : f.render(b, e);
|
|
} else {
|
|
if (f = c._reactRootContainer = function(a, b) {
|
|
if (b || (b = !(!(b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null) || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))),
|
|
!b) for (var c; c = a.lastChild; ) a.removeChild(c);
|
|
return new ri(a, !1, b);
|
|
}(c, d), "function" == typeof e) {
|
|
var h = e;
|
|
e = function() {
|
|
var a = ki(f._internalRoot);
|
|
h.call(a);
|
|
};
|
|
}
|
|
di(function() {
|
|
null != a ? f.legacy_renderSubtreeIntoContainer(a, b, e) : f.render(b, e);
|
|
});
|
|
}
|
|
return ki(f._internalRoot);
|
|
}
|
|
function vi(a, b) {
|
|
var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
return si(b) || A("200"), function(a, b, c) {
|
|
var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
return {
|
|
$$typeof: hc,
|
|
key: null == d ? null : "" + d,
|
|
children: a,
|
|
containerInfo: b,
|
|
implementation: c
|
|
};
|
|
}(a, b, null, c);
|
|
}
|
|
Kb.injectFiberControlledHostComponent(af), pi.prototype.render = function(a) {
|
|
this._defer || A("250"), this._hasChildren = !0, this._children = a;
|
|
var b = this._root._internalRoot, c = this._expirationTime, d = new qi();
|
|
return hi(a, b, null, c, d._onCommit), d;
|
|
}, pi.prototype.then = function(a) {
|
|
if (this._didComplete) a(); else {
|
|
var b = this._callbacks;
|
|
null === b && (b = this._callbacks = []), b.push(a);
|
|
}
|
|
}, pi.prototype.commit = function() {
|
|
var a = this._root._internalRoot, b = a.firstBatch;
|
|
if (this._defer && null !== b || A("251"), this._hasChildren) {
|
|
var c = this._expirationTime;
|
|
if (b !== this) {
|
|
this._hasChildren && (c = this._expirationTime = b._expirationTime, this.render(this._children));
|
|
for (var d = null, e = b; e !== this; ) d = e, e = e._next;
|
|
null === d && A("251"), d._next = e._next, this._next = b, a.firstBatch = this;
|
|
}
|
|
this._defer = !1, ai(a, c), b = this._next, this._next = null, null !== (b = a.firstBatch = b) && b._hasChildren && b.render(b._children);
|
|
} else this._next = null, this._defer = !1;
|
|
}, pi.prototype._onComplete = function() {
|
|
if (!this._didComplete) {
|
|
this._didComplete = !0;
|
|
var a = this._callbacks;
|
|
if (null !== a) for (var b = 0; b < a.length; b++) (0, a[b])();
|
|
}
|
|
}, qi.prototype.then = function(a) {
|
|
if (this._didCommit) a(); else {
|
|
var b = this._callbacks;
|
|
null === b && (b = this._callbacks = []), b.push(a);
|
|
}
|
|
}, qi.prototype._onCommit = function() {
|
|
if (!this._didCommit) {
|
|
this._didCommit = !0;
|
|
var a = this._callbacks;
|
|
if (null !== a) for (var b = 0; b < a.length; b++) {
|
|
var c = a[b];
|
|
"function" != typeof c && A("191", c), c();
|
|
}
|
|
}
|
|
}, ri.prototype.render = function(a, b) {
|
|
var c = this._internalRoot, d = new qi();
|
|
return null !== (b = void 0 === b ? null : b) && d.then(b), ji(a, c, null, d._onCommit),
|
|
d;
|
|
}, ri.prototype.unmount = function(a) {
|
|
var b = this._internalRoot, c = new qi();
|
|
return null !== (a = void 0 === a ? null : a) && c.then(a), ji(null, b, null, c._onCommit),
|
|
c;
|
|
}, ri.prototype.legacy_renderSubtreeIntoContainer = function(a, b, c) {
|
|
var d = this._internalRoot, e = new qi();
|
|
return null !== (c = void 0 === c ? null : c) && e.then(c), ji(b, d, a, e._onCommit),
|
|
e;
|
|
}, ri.prototype.createBatch = function() {
|
|
var a = new pi(this), b = a._expirationTime, c = this._internalRoot, d = c.firstBatch;
|
|
if (null === d) c.firstBatch = a, a._next = null; else {
|
|
for (c = null; null !== d && d._expirationTime <= b; ) c = d, d = d._next;
|
|
a._next = d, null !== c && (c._next = a);
|
|
}
|
|
return a;
|
|
}, Sb = mi_batchedUpdates, Tb = mi_interactiveUpdates, Ub = mi_flushInteractiveUpdates;
|
|
var wi = {
|
|
createPortal: vi,
|
|
findDOMNode: function(a) {
|
|
return null == a ? null : 1 === a.nodeType ? a : ii(a);
|
|
},
|
|
hydrate: function(a, b, c) {
|
|
return ui(null, a, b, !0, c);
|
|
},
|
|
render: function(a, b, c) {
|
|
return ui(null, a, b, !1, c);
|
|
},
|
|
unstable_renderSubtreeIntoContainer: function(a, b, c, d) {
|
|
return (null == a || void 0 === a._reactInternalFiber) && A("38"), ui(a, b, c, !1, d);
|
|
},
|
|
unmountComponentAtNode: function(a) {
|
|
return si(a) || A("40"), !!a._reactRootContainer && (di(function() {
|
|
ui(null, null, a, !1, function() {
|
|
a._reactRootContainer = null;
|
|
});
|
|
}), !0);
|
|
},
|
|
unstable_createPortal: function() {
|
|
return vi.apply(void 0, arguments);
|
|
},
|
|
unstable_batchedUpdates: ci,
|
|
unstable_deferredUpdates: Ih,
|
|
unstable_interactiveUpdates: fi,
|
|
flushSync: ei,
|
|
unstable_flushControlled: gi,
|
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
EventPluginHub: Ka,
|
|
EventPluginRegistry: va,
|
|
EventPropagators: $a,
|
|
ReactControlledComponent: Rb,
|
|
ReactDOMComponentTree: Qa,
|
|
ReactDOMEventListener: Od
|
|
},
|
|
unstable_createRoot: function(a, b) {
|
|
return new ri(a, !0, null != b && !0 === b.hydrate);
|
|
}
|
|
};
|
|
li({
|
|
findFiberByHostInstance: Na,
|
|
bundleType: 0,
|
|
version: "16.4.2",
|
|
rendererPackageName: "react-dom"
|
|
});
|
|
var Bi = {
|
|
"default": wi
|
|
}, Ci = Bi && wi || Bi;
|
|
module.exports = Ci["default"] ? Ci["default"] : Ci;
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var canUseDOM = !("undefined" == typeof window || !window.document || !window.document.createElement), ExecutionEnvironment = {
|
|
canUseDOM: canUseDOM,
|
|
canUseWorkers: "undefined" != typeof Worker,
|
|
canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent),
|
|
canUseViewport: canUseDOM && !!window.screen,
|
|
isInWorker: !canUseDOM
|
|
};
|
|
module.exports = ExecutionEnvironment;
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = function(doc) {
|
|
if (void 0 === (doc = doc || ("undefined" != typeof document ? document : undefined))) return null;
|
|
try {
|
|
return doc.activeElement || doc.body;
|
|
} catch (e) {
|
|
return doc.body;
|
|
}
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
function is(x, y) {
|
|
return x === y ? 0 !== x || 0 !== y || 1 / x == 1 / y : x != x && y != y;
|
|
}
|
|
module.exports = function(objA, objB) {
|
|
if (is(objA, objB)) return !0;
|
|
if ("object" != typeof objA || null === objA || "object" != typeof objB || null === objB) return !1;
|
|
var keysA = Object.keys(objA), keysB = Object.keys(objB);
|
|
if (keysA.length !== keysB.length) return !1;
|
|
for (var i = 0; i < keysA.length; i++) if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return !1;
|
|
return !0;
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var isTextNode = __webpack_require__(17);
|
|
module.exports = function containsNode(outerNode, innerNode) {
|
|
return !(!outerNode || !innerNode) && (outerNode === innerNode || !isTextNode(outerNode) && (isTextNode(innerNode) ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : !!outerNode.compareDocumentPosition && !!(16 & outerNode.compareDocumentPosition(innerNode))));
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var isNode = __webpack_require__(18);
|
|
module.exports = function(object) {
|
|
return isNode(object) && 3 == object.nodeType;
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = function(object) {
|
|
var defaultView = (object ? object.ownerDocument || object : document).defaultView || window;
|
|
return !(!object || !("function" == typeof defaultView.Node ? object instanceof defaultView.Node : "object" == typeof object && "number" == typeof object.nodeType && "string" == typeof object.nodeName));
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
exports.__esModule = !0;
|
|
var _extends = Object.assign || function(target) {
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
var source = arguments[i];
|
|
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__(22)), _CSSTransitionGroupChild2 = _interopRequireDefault(__webpack_require__(26)), _PropTypes = __webpack_require__(8);
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
"default": obj
|
|
};
|
|
}
|
|
function _possibleConstructorReturn(self, call) {
|
|
if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
return !call || "object" != typeof call && "function" != typeof call ? self : call;
|
|
}
|
|
_PropTypes.nameShape.isRequired, _propTypes2["default"].bool, _propTypes2["default"].bool,
|
|
_propTypes2["default"].bool, (0, _PropTypes.transitionTimeout)("Appear"), (0, _PropTypes.transitionTimeout)("Enter"),
|
|
(0, _PropTypes.transitionTimeout)("Leave");
|
|
var CSSTransitionGroup = function(_React$Component) {
|
|
function CSSTransitionGroup() {
|
|
var _temp, _this;
|
|
!function(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
}(this, CSSTransitionGroup);
|
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
return _temp = _this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [ this ].concat(args))),
|
|
_this._wrapChild = function(child) {
|
|
return _react2["default"].createElement(_CSSTransitionGroupChild2["default"], {
|
|
name: _this.props.transitionName,
|
|
appear: _this.props.transitionAppear,
|
|
enter: _this.props.transitionEnter,
|
|
leave: _this.props.transitionLeave,
|
|
appearTimeout: _this.props.transitionAppearTimeout,
|
|
enterTimeout: _this.props.transitionEnterTimeout,
|
|
leaveTimeout: _this.props.transitionLeaveTimeout
|
|
}, child);
|
|
}, _possibleConstructorReturn(_this, _temp);
|
|
}
|
|
return function(subClass, superClass) {
|
|
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
constructor: {
|
|
value: subClass,
|
|
enumerable: !1,
|
|
writable: !0,
|
|
configurable: !0
|
|
}
|
|
}), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass);
|
|
}(CSSTransitionGroup, _React$Component), CSSTransitionGroup.prototype.render = function() {
|
|
return _react2["default"].createElement(_TransitionGroup2["default"], _extends({}, this.props, {
|
|
childFactory: this._wrapChild
|
|
}));
|
|
}, CSSTransitionGroup;
|
|
}(_react2["default"].Component);
|
|
CSSTransitionGroup.displayName = "CSSTransitionGroup", CSSTransitionGroup.propTypes = {},
|
|
CSSTransitionGroup.defaultProps = {
|
|
transitionAppear: !1,
|
|
transitionEnter: !0,
|
|
transitionLeave: !0
|
|
}, exports["default"] = CSSTransitionGroup, module.exports = exports["default"];
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
var ReactPropTypesSecret = __webpack_require__(21);
|
|
function emptyFunction() {}
|
|
module.exports = function() {
|
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
if (secret !== ReactPropTypesSecret) {
|
|
var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
throw err.name = "Invariant Violation", err;
|
|
}
|
|
}
|
|
function getShim() {
|
|
return shim;
|
|
}
|
|
shim.isRequired = shim;
|
|
var ReactPropTypes = {
|
|
array: shim,
|
|
bool: shim,
|
|
func: shim,
|
|
number: shim,
|
|
object: shim,
|
|
string: shim,
|
|
symbol: shim,
|
|
any: shim,
|
|
arrayOf: getShim,
|
|
element: shim,
|
|
instanceOf: getShim,
|
|
node: shim,
|
|
objectOf: getShim,
|
|
oneOf: getShim,
|
|
oneOfType: getShim,
|
|
shape: getShim,
|
|
exact: getShim
|
|
};
|
|
return ReactPropTypes.checkPropTypes = emptyFunction, ReactPropTypes.PropTypes = ReactPropTypes,
|
|
ReactPropTypes;
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
exports.__esModule = !0;
|
|
var _extends = Object.assign || function(target) {
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
var source = arguments[i];
|
|
for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
|
|
}
|
|
return target;
|
|
}, _chainFunction2 = _interopRequireDefault(__webpack_require__(23)), _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _ChildMapping = (_interopRequireDefault(__webpack_require__(24)),
|
|
__webpack_require__(25));
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
"default": obj
|
|
};
|
|
}
|
|
_propTypes2["default"].any, _propTypes2["default"].func, _propTypes2["default"].node;
|
|
var TransitionGroup = function(_React$Component) {
|
|
function TransitionGroup(props, context) {
|
|
!function(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
}(this, TransitionGroup);
|
|
var _this = function(self, call) {
|
|
if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
return !call || "object" != typeof call && "function" != typeof call ? self : call;
|
|
}(this, _React$Component.call(this, props, context));
|
|
return _this.performAppear = function(key, component) {
|
|
_this.currentlyTransitioningKeys[key] = !0, component.componentWillAppear ? component.componentWillAppear(_this._handleDoneAppearing.bind(_this, key, component)) : _this._handleDoneAppearing(key, component);
|
|
}, _this._handleDoneAppearing = function(key, component) {
|
|
component.componentDidAppear && component.componentDidAppear(), delete _this.currentlyTransitioningKeys[key];
|
|
var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children);
|
|
currentChildMapping && currentChildMapping.hasOwnProperty(key) || _this.performLeave(key, component);
|
|
}, _this.performEnter = function(key, component) {
|
|
_this.currentlyTransitioningKeys[key] = !0, component.componentWillEnter ? component.componentWillEnter(_this._handleDoneEntering.bind(_this, key, component)) : _this._handleDoneEntering(key, component);
|
|
}, _this._handleDoneEntering = function(key, component) {
|
|
component.componentDidEnter && component.componentDidEnter(), delete _this.currentlyTransitioningKeys[key];
|
|
var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children);
|
|
currentChildMapping && currentChildMapping.hasOwnProperty(key) || _this.performLeave(key, component);
|
|
}, _this.performLeave = function(key, component) {
|
|
_this.currentlyTransitioningKeys[key] = !0, component.componentWillLeave ? component.componentWillLeave(_this._handleDoneLeaving.bind(_this, key, component)) : _this._handleDoneLeaving(key, component);
|
|
}, _this._handleDoneLeaving = function(key, component) {
|
|
component.componentDidLeave && component.componentDidLeave(), delete _this.currentlyTransitioningKeys[key];
|
|
var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children);
|
|
currentChildMapping && currentChildMapping.hasOwnProperty(key) ? _this.keysToEnter.push(key) : _this.setState(function(state) {
|
|
var newChildren = _extends({}, state.children);
|
|
return delete newChildren[key], {
|
|
children: newChildren
|
|
};
|
|
});
|
|
}, _this.childRefs = Object.create(null), _this.state = {
|
|
children: (0, _ChildMapping.getChildMapping)(props.children)
|
|
}, _this;
|
|
}
|
|
return function(subClass, superClass) {
|
|
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
constructor: {
|
|
value: subClass,
|
|
enumerable: !1,
|
|
writable: !0,
|
|
configurable: !0
|
|
}
|
|
}), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass);
|
|
}(TransitionGroup, _React$Component), TransitionGroup.prototype.componentWillMount = function() {
|
|
this.currentlyTransitioningKeys = {}, this.keysToEnter = [], this.keysToLeave = [];
|
|
}, TransitionGroup.prototype.componentDidMount = function() {
|
|
var initialChildMapping = this.state.children;
|
|
for (var key in initialChildMapping) initialChildMapping[key] && this.performAppear(key, this.childRefs[key]);
|
|
}, TransitionGroup.prototype.componentWillReceiveProps = function(nextProps) {
|
|
var nextChildMapping = (0, _ChildMapping.getChildMapping)(nextProps.children), prevChildMapping = this.state.children;
|
|
for (var key in this.setState({
|
|
children: (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping)
|
|
}), nextChildMapping) {
|
|
var hasPrev = prevChildMapping && prevChildMapping.hasOwnProperty(key);
|
|
!nextChildMapping[key] || hasPrev || this.currentlyTransitioningKeys[key] || this.keysToEnter.push(key);
|
|
}
|
|
for (var _key in prevChildMapping) {
|
|
var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(_key);
|
|
!prevChildMapping[_key] || hasNext || this.currentlyTransitioningKeys[_key] || this.keysToLeave.push(_key);
|
|
}
|
|
}, TransitionGroup.prototype.componentDidUpdate = function() {
|
|
var _this2 = this, keysToEnter = this.keysToEnter;
|
|
this.keysToEnter = [], keysToEnter.forEach(function(key) {
|
|
return _this2.performEnter(key, _this2.childRefs[key]);
|
|
});
|
|
var keysToLeave = this.keysToLeave;
|
|
this.keysToLeave = [], keysToLeave.forEach(function(key) {
|
|
return _this2.performLeave(key, _this2.childRefs[key]);
|
|
});
|
|
}, TransitionGroup.prototype.render = function() {
|
|
var _this3 = this, childrenToRender = [], _loop = function(key) {
|
|
var child = _this3.state.children[key];
|
|
if (child) {
|
|
var isCallbackRef = "string" != typeof child.ref, factoryChild = _this3.props.childFactory(child), ref = function(r) {
|
|
_this3.childRefs[key] = r;
|
|
};
|
|
factoryChild === child && isCallbackRef && (ref = (0, _chainFunction2["default"])(child.ref, ref)),
|
|
childrenToRender.push(_react2["default"].cloneElement(factoryChild, {
|
|
key: key,
|
|
ref: ref
|
|
}));
|
|
}
|
|
};
|
|
for (var key in this.state.children) _loop(key);
|
|
var props = _extends({}, this.props);
|
|
return delete props.transitionLeave, delete props.transitionName, delete props.transitionAppear,
|
|
delete props.transitionEnter, delete props.childFactory, delete props.transitionLeaveTimeout,
|
|
delete props.transitionEnterTimeout, delete props.transitionAppearTimeout, delete props.component,
|
|
_react2["default"].createElement(this.props.component, props, childrenToRender);
|
|
}, TransitionGroup;
|
|
}(_react2["default"].Component);
|
|
TransitionGroup.displayName = "TransitionGroup", TransitionGroup.propTypes = {},
|
|
TransitionGroup.defaultProps = {
|
|
component: "span",
|
|
childFactory: function(child) {
|
|
return child;
|
|
}
|
|
}, exports["default"] = TransitionGroup, module.exports = exports["default"];
|
|
}, function(module, exports) {
|
|
module.exports = function() {
|
|
for (var len = arguments.length, args = [], i = 0; i < len; i++) args[i] = arguments[i];
|
|
return 0 === (args = args.filter(function(fn) {
|
|
return null != fn;
|
|
})).length ? undefined : 1 === args.length ? args[0] : args.reduce(function(current, next) {
|
|
return function() {
|
|
current.apply(this, arguments), next.apply(this, arguments);
|
|
};
|
|
});
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
module.exports = function() {};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
exports.__esModule = !0, exports.getChildMapping = function(children) {
|
|
if (!children) return children;
|
|
var result = {};
|
|
return _react.Children.map(children, function(child) {
|
|
return child;
|
|
}).forEach(function(child) {
|
|
result[child.key] = child;
|
|
}), result;
|
|
}, exports.mergeChildMappings = function(prev, next) {
|
|
function getValueForKey(key) {
|
|
return next.hasOwnProperty(key) ? next[key] : prev[key];
|
|
}
|
|
prev = prev || {}, next = next || {};
|
|
var nextKeysPending = {}, pendingKeys = [];
|
|
for (var prevKey in prev) next.hasOwnProperty(prevKey) ? pendingKeys.length && (nextKeysPending[prevKey] = pendingKeys,
|
|
pendingKeys = []) : pendingKeys.push(prevKey);
|
|
var i = void 0, childMapping = {};
|
|
for (var nextKey in next) {
|
|
if (nextKeysPending.hasOwnProperty(nextKey)) for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
|
var pendingNextKey = nextKeysPending[nextKey][i];
|
|
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
|
}
|
|
childMapping[nextKey] = getValueForKey(nextKey);
|
|
}
|
|
for (i = 0; i < pendingKeys.length; i++) childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
|
return childMapping;
|
|
};
|
|
var _react = __webpack_require__(0);
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
exports.__esModule = !0;
|
|
var _extends = Object.assign || function(target) {
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
var source = arguments[i];
|
|
for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
|
|
}
|
|
return target;
|
|
}, _addClass2 = _interopRequireDefault(__webpack_require__(27)), _removeClass2 = _interopRequireDefault(__webpack_require__(29)), _requestAnimationFrame2 = _interopRequireDefault(__webpack_require__(30)), _properties = __webpack_require__(31), _react2 = _interopRequireDefault(__webpack_require__(0)), _propTypes2 = _interopRequireDefault(__webpack_require__(1)), _reactDom = __webpack_require__(2), _PropTypes = __webpack_require__(8);
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
"default": obj
|
|
};
|
|
}
|
|
function _possibleConstructorReturn(self, call) {
|
|
if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
return !call || "object" != typeof call && "function" != typeof call ? self : call;
|
|
}
|
|
var events = [];
|
|
_properties.transitionEnd && events.push(_properties.transitionEnd), _properties.animationEnd && events.push(_properties.animationEnd);
|
|
_propTypes2["default"].node, _PropTypes.nameShape.isRequired, _propTypes2["default"].bool,
|
|
_propTypes2["default"].bool, _propTypes2["default"].bool, _propTypes2["default"].number,
|
|
_propTypes2["default"].number, _propTypes2["default"].number;
|
|
var CSSTransitionGroupChild = function(_React$Component) {
|
|
function CSSTransitionGroupChild() {
|
|
var _temp, _this;
|
|
!function(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
}(this, CSSTransitionGroupChild);
|
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
return _temp = _this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [ this ].concat(args))),
|
|
_this.componentWillAppear = function(done) {
|
|
_this.props.appear ? _this.transition("appear", done, _this.props.appearTimeout) : done();
|
|
}, _this.componentWillEnter = function(done) {
|
|
_this.props.enter ? _this.transition("enter", done, _this.props.enterTimeout) : done();
|
|
}, _this.componentWillLeave = function(done) {
|
|
_this.props.leave ? _this.transition("leave", done, _this.props.leaveTimeout) : done();
|
|
}, _possibleConstructorReturn(_this, _temp);
|
|
}
|
|
return function(subClass, superClass) {
|
|
if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
constructor: {
|
|
value: subClass,
|
|
enumerable: !1,
|
|
writable: !0,
|
|
configurable: !0
|
|
}
|
|
}), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass);
|
|
}(CSSTransitionGroupChild, _React$Component), CSSTransitionGroupChild.prototype.componentWillMount = function() {
|
|
this.classNameAndNodeQueue = [], this.transitionTimeouts = [];
|
|
}, CSSTransitionGroupChild.prototype.componentWillUnmount = function() {
|
|
this.unmounted = !0, this.timeout && clearTimeout(this.timeout), this.transitionTimeouts.forEach(function(timeout) {
|
|
clearTimeout(timeout);
|
|
}), this.classNameAndNodeQueue.length = 0;
|
|
}, CSSTransitionGroupChild.prototype.transition = function(animationType, finishCallback, timeout) {
|
|
var node = (0, _reactDom.findDOMNode)(this);
|
|
if (node) {
|
|
var className = this.props.name[animationType] || this.props.name + "-" + animationType, activeClassName = this.props.name[animationType + "Active"] || className + "-active", timer = null, removeListeners = void 0;
|
|
(0, _addClass2["default"])(node, className), this.queueClassAndNode(activeClassName, node);
|
|
var finish = function(e) {
|
|
e && e.target !== node || (clearTimeout(timer), removeListeners && removeListeners(),
|
|
(0, _removeClass2["default"])(node, className), (0, _removeClass2["default"])(node, activeClassName),
|
|
removeListeners && removeListeners(), finishCallback && finishCallback());
|
|
};
|
|
timeout ? (timer = setTimeout(finish, timeout), this.transitionTimeouts.push(timer)) : _properties.transitionEnd && (removeListeners = function(node, listener) {
|
|
return events.length ? events.forEach(function(e) {
|
|
return node.addEventListener(e, listener, !1);
|
|
}) : setTimeout(listener, 0), function() {
|
|
events.length && events.forEach(function(e) {
|
|
return node.removeEventListener(e, listener, !1);
|
|
});
|
|
};
|
|
}(node, finish));
|
|
} else finishCallback && finishCallback();
|
|
}, CSSTransitionGroupChild.prototype.queueClassAndNode = function(className, node) {
|
|
var _this2 = this;
|
|
this.classNameAndNodeQueue.push({
|
|
className: className,
|
|
node: node
|
|
}), this.rafHandle || (this.rafHandle = (0, _requestAnimationFrame2["default"])(function() {
|
|
return _this2.flushClassNameAndNodeQueue();
|
|
}));
|
|
}, CSSTransitionGroupChild.prototype.flushClassNameAndNodeQueue = function() {
|
|
this.unmounted || this.classNameAndNodeQueue.forEach(function(obj) {
|
|
obj.node.scrollTop, (0, _addClass2["default"])(obj.node, obj.className);
|
|
}), this.classNameAndNodeQueue.length = 0, this.rafHandle = null;
|
|
}, CSSTransitionGroupChild.prototype.render = function() {
|
|
var props = _extends({}, this.props);
|
|
return delete props.name, delete props.appear, delete props.enter, delete props.leave,
|
|
delete props.appearTimeout, delete props.enterTimeout, delete props.leaveTimeout,
|
|
delete props.children, _react2["default"].cloneElement(_react2["default"].Children.only(this.props.children), props);
|
|
}, CSSTransitionGroupChild;
|
|
}(_react2["default"].Component);
|
|
CSSTransitionGroupChild.displayName = "CSSTransitionGroupChild", CSSTransitionGroupChild.propTypes = {},
|
|
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__(28), _hasClass2 = (obj = _hasClass) && obj.__esModule ? obj : {
|
|
"default": obj
|
|
};
|
|
module.exports = exports["default"];
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: !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__) {
|
|
"use strict";
|
|
function replaceClassName(origClass, classToRemove) {
|
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
}
|
|
module.exports = function(element, className) {
|
|
element.classList ? element.classList.remove(className) : "string" == typeof element.className ? element.className = replaceClassName(element.className, className) : element.setAttribute("class", replaceClassName(element.className && element.className.baseVal || "", className));
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: !0
|
|
});
|
|
var obj, _inDOM = __webpack_require__(7);
|
|
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) {
|
|
var rafKey = getKey(vendor, "request");
|
|
if (rafKey in window) return cancel = getKey(vendor, "cancel"), raf = function(cb) {
|
|
return window[rafKey](cb);
|
|
};
|
|
});
|
|
var prev = new Date().getTime();
|
|
(compatRaf = function(cb) {
|
|
return raf(cb);
|
|
}).cancel = function(id) {
|
|
window[cancel] && "function" == typeof window[cancel] && window[cancel](id);
|
|
}, exports["default"] = compatRaf, 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__(7);
|
|
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 _getTransitionPropert = function() {
|
|
for (var style = document.createElement("div").style, vendorMap = {
|
|
O: function(e) {
|
|
return "o" + e.toLowerCase();
|
|
},
|
|
Moz: function(e) {
|
|
return e.toLowerCase();
|
|
},
|
|
Webkit: function(e) {
|
|
return "webkit" + e;
|
|
},
|
|
ms: function(e) {
|
|
return "MS" + e;
|
|
}
|
|
}, vendors = Object.keys(vendorMap), transitionEnd = void 0, animationEnd = void 0, prefix = "", i = 0; i < vendors.length; i++) {
|
|
var vendor = vendors[i];
|
|
if (vendor + "TransitionProperty" in style) {
|
|
prefix = "-" + vendor.toLowerCase(), transitionEnd = vendorMap[vendor]("TransitionEnd"),
|
|
animationEnd = vendorMap[vendor]("AnimationEnd");
|
|
break;
|
|
}
|
|
}
|
|
!transitionEnd && "transitionProperty" in style && (transitionEnd = "transitionend");
|
|
!animationEnd && "animationName" in style && (animationEnd = "animationend");
|
|
return style = null, {
|
|
animationEnd: animationEnd,
|
|
transitionEnd: transitionEnd,
|
|
prefix: prefix
|
|
};
|
|
}();
|
|
prefix = _getTransitionPropert.prefix, exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd,
|
|
exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd, exports.transform = transform = prefix + "-" + transform,
|
|
exports.transitionProperty = transitionProperty = prefix + "-transition-property",
|
|
exports.transitionDuration = transitionDuration = prefix + "-transition-duration",
|
|
exports.transitionDelay = transitionDelay = prefix + "-transition-delay", exports.transitionTiming = transitionTiming = prefix + "-transition-timing-function",
|
|
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"] = {
|
|
transform: transform,
|
|
end: transitionEnd,
|
|
property: transitionProperty,
|
|
timing: transitionTiming,
|
|
delay: transitionDelay,
|
|
duration: transitionDuration
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
(exports = module.exports = __webpack_require__(33)(!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) {
|
|
var list = [];
|
|
return list.toString = function() {
|
|
return this.map(function(item) {
|
|
var content = function(item, useSourceMap) {
|
|
var content = item[1] || "", cssMapping = item[3];
|
|
if (!cssMapping) return content;
|
|
if (useSourceMap && "function" == typeof btoa) {
|
|
var sourceMapping = (sourceMap = cssMapping, "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"), sourceURLs = cssMapping.sources.map(function(source) {
|
|
return "/*# sourceURL=" + cssMapping.sourceRoot + source + " */";
|
|
});
|
|
return [ content ].concat(sourceURLs).concat([ sourceMapping ]).join("\n");
|
|
}
|
|
var sourceMap;
|
|
return [ content ].join("\n");
|
|
}(item, useSourceMap);
|
|
return item[2] ? "@media " + item[2] + "{" + content + "}" : content;
|
|
}).join("");
|
|
}, list.i = function(modules, mediaQuery) {
|
|
"string" == typeof modules && (modules = [ [ null, modules, "" ] ]);
|
|
for (var alreadyImportedModules = {}, i = 0; i < this.length; i++) {
|
|
var id = this[i][0];
|
|
"number" == typeof id && (alreadyImportedModules[id] = !0);
|
|
}
|
|
for (i = 0; i < modules.length; i++) {
|
|
var item = modules[i];
|
|
"number" == typeof item[0] && alreadyImportedModules[item[0]] || (mediaQuery && !item[2] ? item[2] = mediaQuery : mediaQuery && (item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"),
|
|
list.push(item));
|
|
}
|
|
}, list;
|
|
};
|
|
}, function(module, exports, __webpack_require__) {
|
|
var fn, memo, stylesInDom = {}, isOldIE = (fn = function() {
|
|
return window && document && document.all && !window.atob;
|
|
}, function() {
|
|
return void 0 === memo && (memo = fn.apply(this, arguments)), memo;
|
|
}), getElement = function(fn) {
|
|
var memo = {};
|
|
return function(target, parent) {
|
|
if ("function" == typeof target) return target();
|
|
if ("undefined" == typeof memo[target]) {
|
|
var styleTarget = function(target, parent) {
|
|
return parent ? parent.querySelector(target) : document.querySelector(target);
|
|
}.call(this, target, parent);
|
|
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) try {
|
|
styleTarget = styleTarget.contentDocument.head;
|
|
} catch (e) {
|
|
styleTarget = null;
|
|
}
|
|
memo[target] = styleTarget;
|
|
}
|
|
return memo[target];
|
|
};
|
|
}(), singleton = null, singletonCounter = 0, stylesInsertedAtTop = [], fixUrls = __webpack_require__(35);
|
|
function addStylesToDom(styles, options) {
|
|
for (var i = 0; i < styles.length; i++) {
|
|
var item = styles[i], domStyle = stylesInDom[item.id];
|
|
if (domStyle) {
|
|
domStyle.refs++;
|
|
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](item.parts[j]);
|
|
for (;j < item.parts.length; j++) domStyle.parts.push(addStyle(item.parts[j], options));
|
|
} else {
|
|
var parts = [];
|
|
for (j = 0; j < item.parts.length; j++) parts.push(addStyle(item.parts[j], options));
|
|
stylesInDom[item.id] = {
|
|
id: item.id,
|
|
refs: 1,
|
|
parts: parts
|
|
};
|
|
}
|
|
}
|
|
}
|
|
function listToStyles(list, options) {
|
|
for (var styles = [], newStyles = {}, i = 0; i < list.length; i++) {
|
|
var item = list[i], id = options.base ? item[0] + options.base : item[0], part = {
|
|
css: item[1],
|
|
media: item[2],
|
|
sourceMap: item[3]
|
|
};
|
|
newStyles[id] ? newStyles[id].parts.push(part) : styles.push(newStyles[id] = {
|
|
id: id,
|
|
parts: [ part ]
|
|
});
|
|
}
|
|
return styles;
|
|
}
|
|
function insertStyleElement(options, style) {
|
|
var target = getElement(options.insertInto);
|
|
if (!target) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
|
var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
|
|
if ("top" === options.insertAt) lastStyleElementInsertedAtTop ? lastStyleElementInsertedAtTop.nextSibling ? target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling) : target.appendChild(style) : target.insertBefore(style, target.firstChild),
|
|
stylesInsertedAtTop.push(style); else if ("bottom" === options.insertAt) target.appendChild(style); else {
|
|
if ("object" != typeof options.insertAt || !options.insertAt.before) throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
|
|
var nextSibling = getElement(options.insertAt.before, target);
|
|
target.insertBefore(style, nextSibling);
|
|
}
|
|
}
|
|
function removeStyleElement(style) {
|
|
if (null === style.parentNode) return !1;
|
|
style.parentNode.removeChild(style);
|
|
var idx = stylesInsertedAtTop.indexOf(style);
|
|
idx >= 0 && stylesInsertedAtTop.splice(idx, 1);
|
|
}
|
|
function createStyleElement(options) {
|
|
var style = document.createElement("style");
|
|
if (options.attrs.type === undefined && (options.attrs.type = "text/css"), options.attrs.nonce === undefined) {
|
|
var nonce = function() {
|
|
0;
|
|
return __webpack_require__.nc;
|
|
}();
|
|
nonce && (options.attrs.nonce = nonce);
|
|
}
|
|
return addAttrs(style, options.attrs), insertStyleElement(options, style), style;
|
|
}
|
|
function addAttrs(el, attrs) {
|
|
Object.keys(attrs).forEach(function(key) {
|
|
el.setAttribute(key, attrs[key]);
|
|
});
|
|
}
|
|
function addStyle(obj, options) {
|
|
var style, update, remove, result;
|
|
if (options.transform && obj.css) {
|
|
if (!(result = options.transform(obj.css))) return function() {};
|
|
obj.css = result;
|
|
}
|
|
if (options.singleton) {
|
|
var styleIndex = singletonCounter++;
|
|
style = singleton || (singleton = createStyleElement(options)), update = applyToSingletonTag.bind(null, style, styleIndex, !1),
|
|
remove = applyToSingletonTag.bind(null, style, styleIndex, !0);
|
|
} else obj.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (style = function(options) {
|
|
var link = document.createElement("link");
|
|
return options.attrs.type === undefined && (options.attrs.type = "text/css"), options.attrs.rel = "stylesheet",
|
|
addAttrs(link, options.attrs), insertStyleElement(options, link), link;
|
|
}(options), update = function(link, options, obj) {
|
|
var css = obj.css, sourceMap = obj.sourceMap, autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
|
|
(options.convertToAbsoluteUrls || autoFixUrls) && (css = fixUrls(css));
|
|
sourceMap && (css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */");
|
|
var blob = new Blob([ css ], {
|
|
type: "text/css"
|
|
}), oldSrc = link.href;
|
|
link.href = URL.createObjectURL(blob), oldSrc && URL.revokeObjectURL(oldSrc);
|
|
}.bind(null, style, options), remove = function() {
|
|
removeStyleElement(style), style.href && URL.revokeObjectURL(style.href);
|
|
}) : (style = createStyleElement(options), update = function(style, obj) {
|
|
var css = obj.css, media = obj.media;
|
|
media && style.setAttribute("media", media);
|
|
if (style.styleSheet) style.styleSheet.cssText = css; else {
|
|
for (;style.firstChild; ) style.removeChild(style.firstChild);
|
|
style.appendChild(document.createTextNode(css));
|
|
}
|
|
}.bind(null, style), remove = function() {
|
|
removeStyleElement(style);
|
|
});
|
|
return update(obj), function(newObj) {
|
|
if (newObj) {
|
|
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) return;
|
|
update(obj = newObj);
|
|
} else remove();
|
|
};
|
|
}
|
|
module.exports = function(list, options) {
|
|
if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment");
|
|
(options = options || {}).attrs = "object" == typeof options.attrs ? options.attrs : {},
|
|
options.singleton || "boolean" == typeof options.singleton || (options.singleton = isOldIE()),
|
|
options.insertInto || (options.insertInto = "head"), options.insertAt || (options.insertAt = "bottom");
|
|
var styles = listToStyles(list, options);
|
|
return addStylesToDom(styles, options), function(newList) {
|
|
for (var mayRemove = [], i = 0; i < styles.length; i++) {
|
|
var item = styles[i];
|
|
(domStyle = stylesInDom[item.id]).refs--, mayRemove.push(domStyle);
|
|
}
|
|
newList && addStylesToDom(listToStyles(newList, options), options);
|
|
for (i = 0; i < mayRemove.length; i++) {
|
|
var domStyle;
|
|
if (0 === (domStyle = mayRemove[i]).refs) {
|
|
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
|
|
delete stylesInDom[domStyle.id];
|
|
}
|
|
}
|
|
};
|
|
};
|
|
var textStore, replaceText = (textStore = [], function(index, replacement) {
|
|
return textStore[index] = replacement, textStore.filter(Boolean).join("\n");
|
|
});
|
|
function applyToSingletonTag(style, index, remove, obj) {
|
|
var css = remove ? "" : obj.css;
|
|
if (style.styleSheet) style.styleSheet.cssText = replaceText(index, css); else {
|
|
var cssNode = document.createTextNode(css), childNodes = style.childNodes;
|
|
childNodes[index] && style.removeChild(childNodes[index]), childNodes.length ? style.insertBefore(cssNode, childNodes[index]) : style.appendChild(cssNode);
|
|
}
|
|
}
|
|
}, function(module, exports) {
|
|
module.exports = function(css) {
|
|
var location = "undefined" != typeof window && window.location;
|
|
if (!location) throw new Error("fixUrls requires window.location");
|
|
if (!css || "string" != typeof css) return css;
|
|
var baseUrl = location.protocol + "//" + location.host, currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
|
|
return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
|
|
var newUrl, unquotedOrigUrl = origUrl.trim().replace(/^"(.*)"$/, function(o, $1) {
|
|
return $1;
|
|
}).replace(/^'(.*)'$/, function(o, $1) {
|
|
return $1;
|
|
});
|
|
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl) ? fullMatch : (newUrl = 0 === unquotedOrigUrl.indexOf("//") ? unquotedOrigUrl : 0 === unquotedOrigUrl.indexOf("/") ? baseUrl + unquotedOrigUrl : currentDir + unquotedOrigUrl.replace(/^\.\//, ""),
|
|
"url(" + JSON.stringify(newUrl) + ")");
|
|
});
|
|
};
|
|
}, 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__(10), 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__(9);
|
|
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
|
|
})));
|
|
}
|
|
}
|
|
form_input_FormInput.propTypes = {
|
|
newSheetFormHandler: prop_types_default.a.func
|
|
};
|
|
const SheetButton = props => {
|
|
let sheetIndex = props.name.sheetIndex, sheetName = props.name.text, isActiveSheet = props.name.isActive;
|
|
return react_default.a.createElement("div", {
|
|
className: "sheetLine"
|
|
}, react_default.a.createElement("button", {
|
|
onClick: e => props.deleteButtonHandler(e, sheetIndex)
|
|
}, "X"), react_default.a.createElement("span", {
|
|
onClick: e => props.clickSheetNameHandler(e, sheetName),
|
|
className: "sheetNameText " + (isActiveSheet ? "active-sheet" : "")
|
|
}, sheetName));
|
|
};
|
|
var sheet_button = SheetButton;
|
|
SheetButton.propTypes = {
|
|
name: prop_types_default.a.object,
|
|
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));
|
|
}
|
|
}, null), document.getElementById("index"));
|
|
} ]); |