8225 lines
510 KiB
JavaScript
8225 lines
510 KiB
JavaScript
|
|
!function(modules) {
|
||
|
|
function __webpack_require__(moduleId) {
|
||
|
|
if (installedModules[moduleId]) return installedModules[moduleId].exports;
|
||
|
|
var module = installedModules[moduleId] = {
|
||
|
|
exports: {},
|
||
|
|
id: moduleId,
|
||
|
|
loaded: !1
|
||
|
|
};
|
||
|
|
return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__),
|
||
|
|
module.loaded = !0, module.exports;
|
||
|
|
}
|
||
|
|
var installedModules = {};
|
||
|
|
return __webpack_require__.m = modules, __webpack_require__.c = installedModules,
|
||
|
|
__webpack_require__.p = "", __webpack_require__(0);
|
||
|
|
}([ function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function _interopRequireDefault(obj) {
|
||
|
|
return obj && obj.__esModule ? obj : {
|
||
|
|
default: obj
|
||
|
|
};
|
||
|
|
}
|
||
|
|
var _react = __webpack_require__(1), _react2 = _interopRequireDefault(_react), _reactDom = __webpack_require__(37), _reactDom2 = _interopRequireDefault(_reactDom), _universalCookie = __webpack_require__(184), _server = (_interopRequireDefault(_universalCookie),
|
||
|
|
__webpack_require__(188)), _server2 = _interopRequireDefault(_server);
|
||
|
|
window.React = _react2.default, window.ReactDOM = _reactDom2.default, window.ReactDOMServer = _server2.default;
|
||
|
|
var GWTReact = {};
|
||
|
|
GWTReact.cast = function(obj) {
|
||
|
|
return obj;
|
||
|
|
}, window.GWTReact = GWTReact;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
module.exports = __webpack_require__(2);
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _assign = __webpack_require__(4), ReactBaseClasses = __webpack_require__(5), ReactChildren = __webpack_require__(14), ReactDOMFactories = __webpack_require__(22), ReactElement = __webpack_require__(16), ReactPropTypes = __webpack_require__(28), ReactVersion = __webpack_require__(33), createReactClass = __webpack_require__(34), onlyChild = __webpack_require__(36), createElement = ReactElement.createElement, createFactory = ReactElement.createFactory, cloneElement = ReactElement.cloneElement;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var lowPriorityWarning = __webpack_require__(13), canDefineProperty = __webpack_require__(10), ReactElementValidator = __webpack_require__(23), didWarnPropTypesDeprecated = !1;
|
||
|
|
createElement = ReactElementValidator.createElement, createFactory = ReactElementValidator.createFactory,
|
||
|
|
cloneElement = ReactElementValidator.cloneElement;
|
||
|
|
}
|
||
|
|
var __spread = _assign, createMixin = function(mixin) {
|
||
|
|
return mixin;
|
||
|
|
};
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var warnedForSpread = !1, warnedForCreateMixin = !1;
|
||
|
|
__spread = function() {
|
||
|
|
return lowPriorityWarning(warnedForSpread, "React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),
|
||
|
|
warnedForSpread = !0, _assign.apply(null, arguments);
|
||
|
|
}, createMixin = function(mixin) {
|
||
|
|
return lowPriorityWarning(warnedForCreateMixin, "React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),
|
||
|
|
warnedForCreateMixin = !0, mixin;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
var React = {
|
||
|
|
Children: {
|
||
|
|
map: ReactChildren.map,
|
||
|
|
forEach: ReactChildren.forEach,
|
||
|
|
count: ReactChildren.count,
|
||
|
|
toArray: ReactChildren.toArray,
|
||
|
|
only: onlyChild
|
||
|
|
},
|
||
|
|
Component: ReactBaseClasses.Component,
|
||
|
|
PureComponent: ReactBaseClasses.PureComponent,
|
||
|
|
createElement: createElement,
|
||
|
|
cloneElement: cloneElement,
|
||
|
|
isValidElement: ReactElement.isValidElement,
|
||
|
|
PropTypes: ReactPropTypes,
|
||
|
|
createClass: createReactClass,
|
||
|
|
createFactory: createFactory,
|
||
|
|
createMixin: createMixin,
|
||
|
|
DOM: ReactDOMFactories,
|
||
|
|
version: ReactVersion,
|
||
|
|
__spread: __spread
|
||
|
|
};
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var warnedForCreateClass = !1;
|
||
|
|
canDefineProperty && (Object.defineProperty(React, "PropTypes", {
|
||
|
|
get: function() {
|
||
|
|
return lowPriorityWarning(didWarnPropTypesDeprecated, "Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),
|
||
|
|
didWarnPropTypesDeprecated = !0, ReactPropTypes;
|
||
|
|
}
|
||
|
|
}), Object.defineProperty(React, "createClass", {
|
||
|
|
get: function() {
|
||
|
|
return lowPriorityWarning(warnedForCreateClass, "Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),
|
||
|
|
warnedForCreateClass = !0, createReactClass;
|
||
|
|
}
|
||
|
|
})), React.DOM = {};
|
||
|
|
var warnedForFactories = !1;
|
||
|
|
Object.keys(ReactDOMFactories).forEach(function(factory) {
|
||
|
|
React.DOM[factory] = function() {
|
||
|
|
return warnedForFactories || (lowPriorityWarning(!1, "Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories", factory),
|
||
|
|
warnedForFactories = !0), ReactDOMFactories[factory].apply(ReactDOMFactories, arguments);
|
||
|
|
};
|
||
|
|
});
|
||
|
|
}
|
||
|
|
module.exports = React;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
function defaultSetTimout() {
|
||
|
|
throw new Error("setTimeout has not been defined");
|
||
|
|
}
|
||
|
|
function defaultClearTimeout() {
|
||
|
|
throw new Error("clearTimeout has not been defined");
|
||
|
|
}
|
||
|
|
function runTimeout(fun) {
|
||
|
|
if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0);
|
||
|
|
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) return cachedSetTimeout = setTimeout,
|
||
|
|
setTimeout(fun, 0);
|
||
|
|
try {
|
||
|
|
return cachedSetTimeout(fun, 0);
|
||
|
|
} catch (e) {
|
||
|
|
try {
|
||
|
|
return cachedSetTimeout.call(null, fun, 0);
|
||
|
|
} catch (e) {
|
||
|
|
return cachedSetTimeout.call(this, fun, 0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function runClearTimeout(marker) {
|
||
|
|
if (cachedClearTimeout === clearTimeout) return clearTimeout(marker);
|
||
|
|
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) return cachedClearTimeout = clearTimeout,
|
||
|
|
clearTimeout(marker);
|
||
|
|
try {
|
||
|
|
return cachedClearTimeout(marker);
|
||
|
|
} catch (e) {
|
||
|
|
try {
|
||
|
|
return cachedClearTimeout.call(null, marker);
|
||
|
|
} catch (e) {
|
||
|
|
return cachedClearTimeout.call(this, marker);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function cleanUpNextTick() {
|
||
|
|
draining && currentQueue && (draining = !1, currentQueue.length ? queue = currentQueue.concat(queue) : queueIndex = -1,
|
||
|
|
queue.length && drainQueue());
|
||
|
|
}
|
||
|
|
function drainQueue() {
|
||
|
|
if (!draining) {
|
||
|
|
var timeout = runTimeout(cleanUpNextTick);
|
||
|
|
draining = !0;
|
||
|
|
for (var len = queue.length; len; ) {
|
||
|
|
for (currentQueue = queue, queue = []; ++queueIndex < len; ) currentQueue && currentQueue[queueIndex].run();
|
||
|
|
queueIndex = -1, len = queue.length;
|
||
|
|
}
|
||
|
|
currentQueue = null, draining = !1, runClearTimeout(timeout);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function Item(fun, array) {
|
||
|
|
this.fun = fun, this.array = array;
|
||
|
|
}
|
||
|
|
function noop() {}
|
||
|
|
var cachedSetTimeout, cachedClearTimeout, process = module.exports = {};
|
||
|
|
!function() {
|
||
|
|
try {
|
||
|
|
cachedSetTimeout = "function" == typeof setTimeout ? setTimeout : defaultSetTimout;
|
||
|
|
} catch (e) {
|
||
|
|
cachedSetTimeout = defaultSetTimout;
|
||
|
|
}
|
||
|
|
try {
|
||
|
|
cachedClearTimeout = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout;
|
||
|
|
} catch (e) {
|
||
|
|
cachedClearTimeout = defaultClearTimeout;
|
||
|
|
}
|
||
|
|
}();
|
||
|
|
var currentQueue, queue = [], draining = !1, queueIndex = -1;
|
||
|
|
process.nextTick = function(fun) {
|
||
|
|
var args = new Array(arguments.length - 1);
|
||
|
|
if (arguments.length > 1) for (var i = 1; i < arguments.length; i++) args[i - 1] = arguments[i];
|
||
|
|
queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue);
|
||
|
|
}, Item.prototype.run = function() {
|
||
|
|
this.fun.apply(null, this.array);
|
||
|
|
}, process.title = "browser", process.browser = !0, process.env = {}, process.argv = [],
|
||
|
|
process.version = "", process.versions = {}, process.on = noop, process.addListener = noop,
|
||
|
|
process.once = noop, process.off = noop, process.removeListener = noop, process.removeAllListeners = noop,
|
||
|
|
process.emit = noop, process.prependListener = noop, process.prependOnceListener = noop,
|
||
|
|
process.listeners = function(name) {
|
||
|
|
return [];
|
||
|
|
}, process.binding = function(name) {
|
||
|
|
throw new Error("process.binding is not supported");
|
||
|
|
}, process.cwd = function() {
|
||
|
|
return "/";
|
||
|
|
}, process.chdir = function(dir) {
|
||
|
|
throw new Error("process.chdir is not supported");
|
||
|
|
}, process.umask = function() {
|
||
|
|
return 0;
|
||
|
|
};
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function toObject(val) {
|
||
|
|
if (null === val || void 0 === val) throw new TypeError("Object.assign cannot be called with null or undefined");
|
||
|
|
return Object(val);
|
||
|
|
}
|
||
|
|
function shouldUseNative() {
|
||
|
|
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;
|
||
|
|
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
||
|
|
return test2[n];
|
||
|
|
});
|
||
|
|
if ("0123456789" !== order2.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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols, hasOwnProperty = Object.prototype.hasOwnProperty, propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
||
|
|
module.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
||
|
|
for (var from, symbols, to = toObject(target), s = 1; s < arguments.length; s++) {
|
||
|
|
from = Object(arguments[s]);
|
||
|
|
for (var key in from) 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__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function ReactComponent(props, context, updater) {
|
||
|
|
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
|
||
|
|
}
|
||
|
|
function ReactPureComponent(props, context, updater) {
|
||
|
|
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
|
||
|
|
}
|
||
|
|
function ComponentDummy() {}
|
||
|
|
var _prodInvariant = __webpack_require__(6), _assign = __webpack_require__(4), ReactNoopUpdateQueue = __webpack_require__(7), canDefineProperty = __webpack_require__(10), emptyObject = __webpack_require__(11), invariant = __webpack_require__(12), lowPriorityWarning = __webpack_require__(13);
|
||
|
|
if (ReactComponent.prototype.isReactComponent = {}, ReactComponent.prototype.setState = function(partialState, callback) {
|
||
|
|
"object" != typeof partialState && "function" != typeof partialState && null != partialState ? "production" !== process.env.NODE_ENV ? invariant(!1, "setState(...): takes an object of state variables to update or a function which returns an object of state variables.") : _prodInvariant("85") : void 0,
|
||
|
|
this.updater.enqueueSetState(this, partialState), callback && this.updater.enqueueCallback(this, callback, "setState");
|
||
|
|
}, ReactComponent.prototype.forceUpdate = function(callback) {
|
||
|
|
this.updater.enqueueForceUpdate(this), callback && this.updater.enqueueCallback(this, callback, "forceUpdate");
|
||
|
|
}, "production" !== process.env.NODE_ENV) {
|
||
|
|
var deprecatedAPIs = {
|
||
|
|
isMounted: [ "isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." ],
|
||
|
|
replaceState: [ "replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." ]
|
||
|
|
}, defineDeprecationWarning = function(methodName, info) {
|
||
|
|
canDefineProperty && Object.defineProperty(ReactComponent.prototype, methodName, {
|
||
|
|
get: function() {
|
||
|
|
lowPriorityWarning(!1, "%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
};
|
||
|
|
for (var fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
||
|
|
}
|
||
|
|
ComponentDummy.prototype = ReactComponent.prototype, ReactPureComponent.prototype = new ComponentDummy(),
|
||
|
|
ReactPureComponent.prototype.constructor = ReactPureComponent, _assign(ReactPureComponent.prototype, ReactComponent.prototype),
|
||
|
|
ReactPureComponent.prototype.isPureReactComponent = !0, module.exports = {
|
||
|
|
Component: ReactComponent,
|
||
|
|
PureComponent: ReactPureComponent
|
||
|
|
};
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function reactProdInvariant(code) {
|
||
|
|
for (var argCount = arguments.length - 1, message = "Minified React error #" + code + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + code, argIdx = 0; argIdx < argCount; argIdx++) message += "&args[]=" + encodeURIComponent(arguments[argIdx + 1]);
|
||
|
|
message += " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
||
|
|
var error = new Error(message);
|
||
|
|
throw error.name = "Invariant Violation", error.framesToPop = 1, error;
|
||
|
|
}
|
||
|
|
module.exports = reactProdInvariant;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function warnNoop(publicInstance, callerName) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var constructor = publicInstance.constructor;
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.", callerName, callerName, constructor && (constructor.displayName || constructor.name) || "ReactClass") : void 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var warning = __webpack_require__(8), ReactNoopUpdateQueue = {
|
||
|
|
isMounted: function(publicInstance) {
|
||
|
|
return !1;
|
||
|
|
},
|
||
|
|
enqueueCallback: function(publicInstance, callback) {},
|
||
|
|
enqueueForceUpdate: function(publicInstance) {
|
||
|
|
warnNoop(publicInstance, "forceUpdate");
|
||
|
|
},
|
||
|
|
enqueueReplaceState: function(publicInstance, completeState) {
|
||
|
|
warnNoop(publicInstance, "replaceState");
|
||
|
|
},
|
||
|
|
enqueueSetState: function(publicInstance, partialState) {
|
||
|
|
warnNoop(publicInstance, "setState");
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactNoopUpdateQueue;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var emptyFunction = __webpack_require__(9), warning = emptyFunction;
|
||
|
|
"production" !== process.env.NODE_ENV && !function() {
|
||
|
|
var printWarning = function(format) {
|
||
|
|
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
|
||
|
|
var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() {
|
||
|
|
return args[argIndex++];
|
||
|
|
});
|
||
|
|
"undefined" != typeof console && console.error(message);
|
||
|
|
try {
|
||
|
|
throw new Error(message);
|
||
|
|
} catch (x) {}
|
||
|
|
};
|
||
|
|
warning = function(condition, format) {
|
||
|
|
if (void 0 === format) throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
|
||
|
|
if (0 !== format.indexOf("Failed Composite propType: ") && !condition) {
|
||
|
|
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2];
|
||
|
|
printWarning.apply(void 0, [ format ].concat(args));
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}(), module.exports = warning;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"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__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var canDefineProperty = !1;
|
||
|
|
if ("production" !== process.env.NODE_ENV) try {
|
||
|
|
Object.defineProperty({}, "x", {
|
||
|
|
get: function() {}
|
||
|
|
}), canDefineProperty = !0;
|
||
|
|
} catch (x) {}
|
||
|
|
module.exports = canDefineProperty;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var emptyObject = {};
|
||
|
|
"production" !== process.env.NODE_ENV && Object.freeze(emptyObject), module.exports = emptyObject;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function invariant(condition, format, a, b, c, d, e, f) {
|
||
|
|
if (validateFormat(format), !condition) {
|
||
|
|
var error;
|
||
|
|
if (void 0 === format) 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++];
|
||
|
|
})), error.name = "Invariant Violation";
|
||
|
|
}
|
||
|
|
throw error.framesToPop = 1, error;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var validateFormat = function(format) {};
|
||
|
|
"production" !== process.env.NODE_ENV && (validateFormat = function(format) {
|
||
|
|
if (void 0 === format) throw new Error("invariant requires an error message argument");
|
||
|
|
}), module.exports = invariant;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var lowPriorityWarning = function() {};
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var printWarning = function(format) {
|
||
|
|
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
|
||
|
|
var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() {
|
||
|
|
return args[argIndex++];
|
||
|
|
});
|
||
|
|
"undefined" != typeof console && console.warn(message);
|
||
|
|
try {
|
||
|
|
throw new Error(message);
|
||
|
|
} catch (x) {}
|
||
|
|
};
|
||
|
|
lowPriorityWarning = function(condition, format) {
|
||
|
|
if (void 0 === format) throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
|
||
|
|
if (!condition) {
|
||
|
|
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2];
|
||
|
|
printWarning.apply(void 0, [ format ].concat(args));
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
module.exports = lowPriorityWarning;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function escapeUserProvidedKey(text) {
|
||
|
|
return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/");
|
||
|
|
}
|
||
|
|
function ForEachBookKeeping(forEachFunction, forEachContext) {
|
||
|
|
this.func = forEachFunction, this.context = forEachContext, this.count = 0;
|
||
|
|
}
|
||
|
|
function forEachSingleChild(bookKeeping, child, name) {
|
||
|
|
var func = bookKeeping.func, context = bookKeeping.context;
|
||
|
|
func.call(context, child, bookKeeping.count++);
|
||
|
|
}
|
||
|
|
function forEachChildren(children, forEachFunc, forEachContext) {
|
||
|
|
if (null == children) return children;
|
||
|
|
var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);
|
||
|
|
traverseAllChildren(children, forEachSingleChild, traverseContext), ForEachBookKeeping.release(traverseContext);
|
||
|
|
}
|
||
|
|
function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {
|
||
|
|
this.result = mapResult, this.keyPrefix = keyPrefix, this.func = mapFunction, this.context = mapContext,
|
||
|
|
this.count = 0;
|
||
|
|
}
|
||
|
|
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
||
|
|
var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context, mappedChild = func.call(context, child, bookKeeping.count++);
|
||
|
|
Array.isArray(mappedChild) ? mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument) : null != mappedChild && (ReactElement.isValidElement(mappedChild) && (mappedChild = ReactElement.cloneAndReplaceKey(mappedChild, keyPrefix + (!mappedChild.key || child && child.key === mappedChild.key ? "" : escapeUserProvidedKey(mappedChild.key) + "/") + childKey)),
|
||
|
|
result.push(mappedChild));
|
||
|
|
}
|
||
|
|
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
||
|
|
var escapedPrefix = "";
|
||
|
|
null != prefix && (escapedPrefix = escapeUserProvidedKey(prefix) + "/");
|
||
|
|
var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
|
||
|
|
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext), MapBookKeeping.release(traverseContext);
|
||
|
|
}
|
||
|
|
function mapChildren(children, func, context) {
|
||
|
|
if (null == children) return children;
|
||
|
|
var result = [];
|
||
|
|
return mapIntoWithKeyPrefixInternal(children, result, null, func, context), result;
|
||
|
|
}
|
||
|
|
function forEachSingleChildDummy(traverseContext, child, name) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
function countChildren(children, context) {
|
||
|
|
return traverseAllChildren(children, forEachSingleChildDummy, null);
|
||
|
|
}
|
||
|
|
function toArray(children) {
|
||
|
|
var result = [];
|
||
|
|
return mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument),
|
||
|
|
result;
|
||
|
|
}
|
||
|
|
var PooledClass = __webpack_require__(15), ReactElement = __webpack_require__(16), emptyFunction = __webpack_require__(9), traverseAllChildren = __webpack_require__(19), twoArgumentPooler = PooledClass.twoArgumentPooler, fourArgumentPooler = PooledClass.fourArgumentPooler, userProvidedKeyEscapeRegex = /\/+/g;
|
||
|
|
ForEachBookKeeping.prototype.destructor = function() {
|
||
|
|
this.func = null, this.context = null, this.count = 0;
|
||
|
|
}, PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler), MapBookKeeping.prototype.destructor = function() {
|
||
|
|
this.result = null, this.keyPrefix = null, this.func = null, this.context = null,
|
||
|
|
this.count = 0;
|
||
|
|
}, PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);
|
||
|
|
var ReactChildren = {
|
||
|
|
forEach: forEachChildren,
|
||
|
|
map: mapChildren,
|
||
|
|
mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,
|
||
|
|
count: countChildren,
|
||
|
|
toArray: toArray
|
||
|
|
};
|
||
|
|
module.exports = ReactChildren;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(6), invariant = __webpack_require__(12), oneArgumentPooler = function(copyFieldsFrom) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, copyFieldsFrom), instance;
|
||
|
|
}
|
||
|
|
return new Klass(copyFieldsFrom);
|
||
|
|
}, twoArgumentPooler = function(a1, a2) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, a1, a2), instance;
|
||
|
|
}
|
||
|
|
return new Klass(a1, a2);
|
||
|
|
}, threeArgumentPooler = function(a1, a2, a3) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, a1, a2, a3), instance;
|
||
|
|
}
|
||
|
|
return new Klass(a1, a2, a3);
|
||
|
|
}, fourArgumentPooler = function(a1, a2, a3, a4) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, a1, a2, a3, a4), instance;
|
||
|
|
}
|
||
|
|
return new Klass(a1, a2, a3, a4);
|
||
|
|
}, standardReleaser = function(instance) {
|
||
|
|
var Klass = this;
|
||
|
|
instance instanceof Klass ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Trying to release an instance into a pool of a different type.") : _prodInvariant("25"),
|
||
|
|
instance.destructor(), Klass.instancePool.length < Klass.poolSize && Klass.instancePool.push(instance);
|
||
|
|
}, DEFAULT_POOL_SIZE = 10, DEFAULT_POOLER = oneArgumentPooler, addPoolingTo = function(CopyConstructor, pooler) {
|
||
|
|
var NewKlass = CopyConstructor;
|
||
|
|
return NewKlass.instancePool = [], NewKlass.getPooled = pooler || DEFAULT_POOLER,
|
||
|
|
NewKlass.poolSize || (NewKlass.poolSize = DEFAULT_POOL_SIZE), NewKlass.release = standardReleaser,
|
||
|
|
NewKlass;
|
||
|
|
}, PooledClass = {
|
||
|
|
addPoolingTo: addPoolingTo,
|
||
|
|
oneArgumentPooler: oneArgumentPooler,
|
||
|
|
twoArgumentPooler: twoArgumentPooler,
|
||
|
|
threeArgumentPooler: threeArgumentPooler,
|
||
|
|
fourArgumentPooler: fourArgumentPooler
|
||
|
|
};
|
||
|
|
module.exports = PooledClass;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function hasValidRef(config) {
|
||
|
|
if ("production" !== process.env.NODE_ENV && hasOwnProperty.call(config, "ref")) {
|
||
|
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||
|
|
if (getter && getter.isReactWarning) return !1;
|
||
|
|
}
|
||
|
|
return void 0 !== config.ref;
|
||
|
|
}
|
||
|
|
function hasValidKey(config) {
|
||
|
|
if ("production" !== process.env.NODE_ENV && hasOwnProperty.call(config, "key")) {
|
||
|
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||
|
|
if (getter && getter.isReactWarning) return !1;
|
||
|
|
}
|
||
|
|
return void 0 !== config.key;
|
||
|
|
}
|
||
|
|
function defineKeyPropWarningGetter(props, displayName) {
|
||
|
|
var warnAboutAccessingKey = function() {
|
||
|
|
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, "production" !== process.env.NODE_ENV ? warning(!1, "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", displayName) : void 0);
|
||
|
|
};
|
||
|
|
warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", {
|
||
|
|
get: warnAboutAccessingKey,
|
||
|
|
configurable: !0
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function defineRefPropWarningGetter(props, displayName) {
|
||
|
|
var warnAboutAccessingRef = function() {
|
||
|
|
specialPropRefWarningShown || (specialPropRefWarningShown = !0, "production" !== process.env.NODE_ENV ? warning(!1, "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", displayName) : void 0);
|
||
|
|
};
|
||
|
|
warnAboutAccessingRef.isReactWarning = !0, Object.defineProperty(props, "ref", {
|
||
|
|
get: warnAboutAccessingRef,
|
||
|
|
configurable: !0
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var specialPropKeyWarningShown, specialPropRefWarningShown, _assign = __webpack_require__(4), ReactCurrentOwner = __webpack_require__(17), warning = __webpack_require__(8), canDefineProperty = __webpack_require__(10), hasOwnProperty = Object.prototype.hasOwnProperty, REACT_ELEMENT_TYPE = __webpack_require__(18), RESERVED_PROPS = {
|
||
|
|
key: !0,
|
||
|
|
ref: !0,
|
||
|
|
__self: !0,
|
||
|
|
__source: !0
|
||
|
|
}, ReactElement = function(type, key, ref, self, source, owner, props) {
|
||
|
|
var element = {
|
||
|
|
$$typeof: REACT_ELEMENT_TYPE,
|
||
|
|
type: type,
|
||
|
|
key: key,
|
||
|
|
ref: ref,
|
||
|
|
props: props,
|
||
|
|
_owner: owner
|
||
|
|
};
|
||
|
|
return "production" !== process.env.NODE_ENV && (element._store = {}, canDefineProperty ? (Object.defineProperty(element._store, "validated", {
|
||
|
|
configurable: !1,
|
||
|
|
enumerable: !1,
|
||
|
|
writable: !0,
|
||
|
|
value: !1
|
||
|
|
}), Object.defineProperty(element, "_self", {
|
||
|
|
configurable: !1,
|
||
|
|
enumerable: !1,
|
||
|
|
writable: !1,
|
||
|
|
value: self
|
||
|
|
}), Object.defineProperty(element, "_source", {
|
||
|
|
configurable: !1,
|
||
|
|
enumerable: !1,
|
||
|
|
writable: !1,
|
||
|
|
value: source
|
||
|
|
})) : (element._store.validated = !1, element._self = self, element._source = source),
|
||
|
|
Object.freeze && (Object.freeze(element.props), Object.freeze(element))), element;
|
||
|
|
};
|
||
|
|
ReactElement.createElement = function(type, config, children) {
|
||
|
|
var propName, props = {}, key = null, ref = null, self = null, source = null;
|
||
|
|
if (null != config) {
|
||
|
|
hasValidRef(config) && (ref = config.ref), hasValidKey(config) && (key = "" + config.key),
|
||
|
|
self = void 0 === config.__self ? null : config.__self, source = void 0 === config.__source ? null : config.__source;
|
||
|
|
for (propName in config) hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]);
|
||
|
|
}
|
||
|
|
var childrenLength = arguments.length - 2;
|
||
|
|
if (1 === childrenLength) props.children = children; else if (childrenLength > 1) {
|
||
|
|
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
||
|
|
"production" !== process.env.NODE_ENV && Object.freeze && Object.freeze(childArray),
|
||
|
|
props.children = childArray;
|
||
|
|
}
|
||
|
|
if (type && type.defaultProps) {
|
||
|
|
var defaultProps = type.defaultProps;
|
||
|
|
for (propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV && (key || ref) && ("undefined" == typeof props.$$typeof || props.$$typeof !== REACT_ELEMENT_TYPE)) {
|
||
|
|
var displayName = "function" == typeof type ? type.displayName || type.name || "Unknown" : type;
|
||
|
|
key && defineKeyPropWarningGetter(props, displayName), ref && defineRefPropWarningGetter(props, displayName);
|
||
|
|
}
|
||
|
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||
|
|
}, ReactElement.createFactory = function(type) {
|
||
|
|
var factory = ReactElement.createElement.bind(null, type);
|
||
|
|
return factory.type = type, factory;
|
||
|
|
}, ReactElement.cloneAndReplaceKey = function(oldElement, newKey) {
|
||
|
|
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
||
|
|
return newElement;
|
||
|
|
}, ReactElement.cloneElement = function(element, config, children) {
|
||
|
|
var propName, props = _assign({}, element.props), key = element.key, ref = element.ref, self = element._self, source = element._source, owner = element._owner;
|
||
|
|
if (null != config) {
|
||
|
|
hasValidRef(config) && (ref = config.ref, owner = ReactCurrentOwner.current), hasValidKey(config) && (key = "" + config.key);
|
||
|
|
var defaultProps;
|
||
|
|
element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps);
|
||
|
|
for (propName in config) hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (void 0 === config[propName] && void 0 !== defaultProps ? props[propName] = defaultProps[propName] : props[propName] = config[propName]);
|
||
|
|
}
|
||
|
|
var childrenLength = arguments.length - 2;
|
||
|
|
if (1 === childrenLength) props.children = children; else if (childrenLength > 1) {
|
||
|
|
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
||
|
|
props.children = childArray;
|
||
|
|
}
|
||
|
|
return ReactElement(element.type, key, ref, self, source, owner, props);
|
||
|
|
}, ReactElement.isValidElement = function(object) {
|
||
|
|
return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
||
|
|
}, module.exports = ReactElement;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactCurrentOwner = {
|
||
|
|
current: null
|
||
|
|
};
|
||
|
|
module.exports = ReactCurrentOwner;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
|
||
|
|
module.exports = REACT_ELEMENT_TYPE;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getComponentKey(component, index) {
|
||
|
|
return component && "object" == typeof component && null != component.key ? KeyEscapeUtils.escape(component.key) : index.toString(36);
|
||
|
|
}
|
||
|
|
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
||
|
|
var type = typeof children;
|
||
|
|
if ("undefined" !== type && "boolean" !== type || (children = null), null === children || "string" === type || "number" === type || "object" === type && children.$$typeof === REACT_ELEMENT_TYPE) return callback(traverseContext, children, "" === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar),
|
||
|
|
1;
|
||
|
|
var child, nextName, subtreeCount = 0, nextNamePrefix = "" === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
||
|
|
if (Array.isArray(children)) for (var i = 0; i < children.length; i++) child = children[i],
|
||
|
|
nextName = nextNamePrefix + getComponentKey(child, i), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); else {
|
||
|
|
var iteratorFn = getIteratorFn(children);
|
||
|
|
if (iteratorFn) {
|
||
|
|
var step, iterator = iteratorFn.call(children);
|
||
|
|
if (iteratorFn !== children.entries) for (var ii = 0; !(step = iterator.next()).done; ) child = step.value,
|
||
|
|
nextName = nextNamePrefix + getComponentKey(child, ii++), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); else {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var mapsAsChildrenAddendum = "";
|
||
|
|
if (ReactCurrentOwner.current) {
|
||
|
|
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
|
||
|
|
mapsAsChildrenOwnerName && (mapsAsChildrenAddendum = " Check the render method of `" + mapsAsChildrenOwnerName + "`.");
|
||
|
|
}
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(didWarnAboutMaps, "Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s", mapsAsChildrenAddendum) : void 0,
|
||
|
|
didWarnAboutMaps = !0;
|
||
|
|
}
|
||
|
|
for (;!(step = iterator.next()).done; ) {
|
||
|
|
var entry = step.value;
|
||
|
|
entry && (child = entry[1], nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0),
|
||
|
|
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
} else if ("object" === type) {
|
||
|
|
var addendum = "";
|
||
|
|
if ("production" !== process.env.NODE_ENV && (addendum = " If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",
|
||
|
|
children._isReactElement && (addendum = " It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),
|
||
|
|
ReactCurrentOwner.current)) {
|
||
|
|
var name = ReactCurrentOwner.current.getName();
|
||
|
|
name && (addendum += " Check the render method of `" + name + "`.");
|
||
|
|
}
|
||
|
|
var childrenString = String(children);
|
||
|
|
"production" !== process.env.NODE_ENV ? invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === childrenString ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString, addendum) : _prodInvariant("31", "[object Object]" === childrenString ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString, addendum);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return subtreeCount;
|
||
|
|
}
|
||
|
|
function traverseAllChildren(children, callback, traverseContext) {
|
||
|
|
return null == children ? 0 : traverseAllChildrenImpl(children, "", callback, traverseContext);
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(6), ReactCurrentOwner = __webpack_require__(17), REACT_ELEMENT_TYPE = __webpack_require__(18), getIteratorFn = __webpack_require__(20), invariant = __webpack_require__(12), KeyEscapeUtils = __webpack_require__(21), warning = __webpack_require__(8), SEPARATOR = ".", SUBSEPARATOR = ":", didWarnAboutMaps = !1;
|
||
|
|
module.exports = traverseAllChildren;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getIteratorFn(maybeIterable) {
|
||
|
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
||
|
|
if ("function" == typeof iteratorFn) return iteratorFn;
|
||
|
|
}
|
||
|
|
var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||
|
|
module.exports = getIteratorFn;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function escape(key) {
|
||
|
|
var escapeRegex = /[=:]/g, escaperLookup = {
|
||
|
|
"=": "=0",
|
||
|
|
":": "=2"
|
||
|
|
}, escapedString = ("" + key).replace(escapeRegex, function(match) {
|
||
|
|
return escaperLookup[match];
|
||
|
|
});
|
||
|
|
return "$" + escapedString;
|
||
|
|
}
|
||
|
|
function unescape(key) {
|
||
|
|
var unescapeRegex = /(=0|=2)/g, unescaperLookup = {
|
||
|
|
"=0": "=",
|
||
|
|
"=2": ":"
|
||
|
|
}, keySubstring = "." === key[0] && "$" === key[1] ? key.substring(2) : key.substring(1);
|
||
|
|
return ("" + keySubstring).replace(unescapeRegex, function(match) {
|
||
|
|
return unescaperLookup[match];
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var KeyEscapeUtils = {
|
||
|
|
escape: escape,
|
||
|
|
unescape: unescape
|
||
|
|
};
|
||
|
|
module.exports = KeyEscapeUtils;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var ReactElement = __webpack_require__(16), createDOMFactory = ReactElement.createFactory;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var ReactElementValidator = __webpack_require__(23);
|
||
|
|
createDOMFactory = ReactElementValidator.createFactory;
|
||
|
|
}
|
||
|
|
var ReactDOMFactories = {
|
||
|
|
a: createDOMFactory("a"),
|
||
|
|
abbr: createDOMFactory("abbr"),
|
||
|
|
address: createDOMFactory("address"),
|
||
|
|
area: createDOMFactory("area"),
|
||
|
|
article: createDOMFactory("article"),
|
||
|
|
aside: createDOMFactory("aside"),
|
||
|
|
audio: createDOMFactory("audio"),
|
||
|
|
b: createDOMFactory("b"),
|
||
|
|
base: createDOMFactory("base"),
|
||
|
|
bdi: createDOMFactory("bdi"),
|
||
|
|
bdo: createDOMFactory("bdo"),
|
||
|
|
big: createDOMFactory("big"),
|
||
|
|
blockquote: createDOMFactory("blockquote"),
|
||
|
|
body: createDOMFactory("body"),
|
||
|
|
br: createDOMFactory("br"),
|
||
|
|
button: createDOMFactory("button"),
|
||
|
|
canvas: createDOMFactory("canvas"),
|
||
|
|
caption: createDOMFactory("caption"),
|
||
|
|
cite: createDOMFactory("cite"),
|
||
|
|
code: createDOMFactory("code"),
|
||
|
|
col: createDOMFactory("col"),
|
||
|
|
colgroup: createDOMFactory("colgroup"),
|
||
|
|
data: createDOMFactory("data"),
|
||
|
|
datalist: createDOMFactory("datalist"),
|
||
|
|
dd: createDOMFactory("dd"),
|
||
|
|
del: createDOMFactory("del"),
|
||
|
|
details: createDOMFactory("details"),
|
||
|
|
dfn: createDOMFactory("dfn"),
|
||
|
|
dialog: createDOMFactory("dialog"),
|
||
|
|
div: createDOMFactory("div"),
|
||
|
|
dl: createDOMFactory("dl"),
|
||
|
|
dt: createDOMFactory("dt"),
|
||
|
|
em: createDOMFactory("em"),
|
||
|
|
embed: createDOMFactory("embed"),
|
||
|
|
fieldset: createDOMFactory("fieldset"),
|
||
|
|
figcaption: createDOMFactory("figcaption"),
|
||
|
|
figure: createDOMFactory("figure"),
|
||
|
|
footer: createDOMFactory("footer"),
|
||
|
|
form: createDOMFactory("form"),
|
||
|
|
h1: createDOMFactory("h1"),
|
||
|
|
h2: createDOMFactory("h2"),
|
||
|
|
h3: createDOMFactory("h3"),
|
||
|
|
h4: createDOMFactory("h4"),
|
||
|
|
h5: createDOMFactory("h5"),
|
||
|
|
h6: createDOMFactory("h6"),
|
||
|
|
head: createDOMFactory("head"),
|
||
|
|
header: createDOMFactory("header"),
|
||
|
|
hgroup: createDOMFactory("hgroup"),
|
||
|
|
hr: createDOMFactory("hr"),
|
||
|
|
html: createDOMFactory("html"),
|
||
|
|
i: createDOMFactory("i"),
|
||
|
|
iframe: createDOMFactory("iframe"),
|
||
|
|
img: createDOMFactory("img"),
|
||
|
|
input: createDOMFactory("input"),
|
||
|
|
ins: createDOMFactory("ins"),
|
||
|
|
kbd: createDOMFactory("kbd"),
|
||
|
|
keygen: createDOMFactory("keygen"),
|
||
|
|
label: createDOMFactory("label"),
|
||
|
|
legend: createDOMFactory("legend"),
|
||
|
|
li: createDOMFactory("li"),
|
||
|
|
link: createDOMFactory("link"),
|
||
|
|
main: createDOMFactory("main"),
|
||
|
|
map: createDOMFactory("map"),
|
||
|
|
mark: createDOMFactory("mark"),
|
||
|
|
menu: createDOMFactory("menu"),
|
||
|
|
menuitem: createDOMFactory("menuitem"),
|
||
|
|
meta: createDOMFactory("meta"),
|
||
|
|
meter: createDOMFactory("meter"),
|
||
|
|
nav: createDOMFactory("nav"),
|
||
|
|
noscript: createDOMFactory("noscript"),
|
||
|
|
object: createDOMFactory("object"),
|
||
|
|
ol: createDOMFactory("ol"),
|
||
|
|
optgroup: createDOMFactory("optgroup"),
|
||
|
|
option: createDOMFactory("option"),
|
||
|
|
output: createDOMFactory("output"),
|
||
|
|
p: createDOMFactory("p"),
|
||
|
|
param: createDOMFactory("param"),
|
||
|
|
picture: createDOMFactory("picture"),
|
||
|
|
pre: createDOMFactory("pre"),
|
||
|
|
progress: createDOMFactory("progress"),
|
||
|
|
q: createDOMFactory("q"),
|
||
|
|
rp: createDOMFactory("rp"),
|
||
|
|
rt: createDOMFactory("rt"),
|
||
|
|
ruby: createDOMFactory("ruby"),
|
||
|
|
s: createDOMFactory("s"),
|
||
|
|
samp: createDOMFactory("samp"),
|
||
|
|
script: createDOMFactory("script"),
|
||
|
|
section: createDOMFactory("section"),
|
||
|
|
select: createDOMFactory("select"),
|
||
|
|
small: createDOMFactory("small"),
|
||
|
|
source: createDOMFactory("source"),
|
||
|
|
span: createDOMFactory("span"),
|
||
|
|
strong: createDOMFactory("strong"),
|
||
|
|
style: createDOMFactory("style"),
|
||
|
|
sub: createDOMFactory("sub"),
|
||
|
|
summary: createDOMFactory("summary"),
|
||
|
|
sup: createDOMFactory("sup"),
|
||
|
|
table: createDOMFactory("table"),
|
||
|
|
tbody: createDOMFactory("tbody"),
|
||
|
|
td: createDOMFactory("td"),
|
||
|
|
textarea: createDOMFactory("textarea"),
|
||
|
|
tfoot: createDOMFactory("tfoot"),
|
||
|
|
th: createDOMFactory("th"),
|
||
|
|
thead: createDOMFactory("thead"),
|
||
|
|
time: createDOMFactory("time"),
|
||
|
|
title: createDOMFactory("title"),
|
||
|
|
tr: createDOMFactory("tr"),
|
||
|
|
track: createDOMFactory("track"),
|
||
|
|
u: createDOMFactory("u"),
|
||
|
|
ul: createDOMFactory("ul"),
|
||
|
|
var: createDOMFactory("var"),
|
||
|
|
video: createDOMFactory("video"),
|
||
|
|
wbr: createDOMFactory("wbr"),
|
||
|
|
circle: createDOMFactory("circle"),
|
||
|
|
clipPath: createDOMFactory("clipPath"),
|
||
|
|
defs: createDOMFactory("defs"),
|
||
|
|
ellipse: createDOMFactory("ellipse"),
|
||
|
|
g: createDOMFactory("g"),
|
||
|
|
image: createDOMFactory("image"),
|
||
|
|
line: createDOMFactory("line"),
|
||
|
|
linearGradient: createDOMFactory("linearGradient"),
|
||
|
|
mask: createDOMFactory("mask"),
|
||
|
|
path: createDOMFactory("path"),
|
||
|
|
pattern: createDOMFactory("pattern"),
|
||
|
|
polygon: createDOMFactory("polygon"),
|
||
|
|
polyline: createDOMFactory("polyline"),
|
||
|
|
radialGradient: createDOMFactory("radialGradient"),
|
||
|
|
rect: createDOMFactory("rect"),
|
||
|
|
stop: createDOMFactory("stop"),
|
||
|
|
svg: createDOMFactory("svg"),
|
||
|
|
text: createDOMFactory("text"),
|
||
|
|
tspan: createDOMFactory("tspan")
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMFactories;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getDeclarationErrorAddendum() {
|
||
|
|
if (ReactCurrentOwner.current) {
|
||
|
|
var name = ReactCurrentOwner.current.getName();
|
||
|
|
if (name) return " Check the render method of `" + name + "`.";
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
function getSourceInfoErrorAddendum(elementProps) {
|
||
|
|
if (null !== elementProps && void 0 !== elementProps && void 0 !== elementProps.__source) {
|
||
|
|
var source = elementProps.__source, fileName = source.fileName.replace(/^.*[\\\/]/, ""), lineNumber = source.lineNumber;
|
||
|
|
return " Check your code at " + fileName + ":" + lineNumber + ".";
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
function getCurrentComponentErrorInfo(parentType) {
|
||
|
|
var info = getDeclarationErrorAddendum();
|
||
|
|
if (!info) {
|
||
|
|
var parentName = "string" == typeof parentType ? parentType : parentType.displayName || parentType.name;
|
||
|
|
parentName && (info = " Check the top-level render call using <" + parentName + ">.");
|
||
|
|
}
|
||
|
|
return info;
|
||
|
|
}
|
||
|
|
function validateExplicitKey(element, parentType) {
|
||
|
|
if (element._store && !element._store.validated && null == element.key) {
|
||
|
|
element._store.validated = !0;
|
||
|
|
var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {}), currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||
|
|
if (!memoizer[currentComponentErrorInfo]) {
|
||
|
|
memoizer[currentComponentErrorInfo] = !0;
|
||
|
|
var childOwner = "";
|
||
|
|
element && element._owner && element._owner !== ReactCurrentOwner.current && (childOwner = " It was passed a child from " + element._owner.getName() + "."),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, 'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function validateChildKeys(node, parentType) {
|
||
|
|
if ("object" == typeof node) if (Array.isArray(node)) for (var i = 0; i < node.length; i++) {
|
||
|
|
var child = node[i];
|
||
|
|
ReactElement.isValidElement(child) && validateExplicitKey(child, parentType);
|
||
|
|
} else if (ReactElement.isValidElement(node)) node._store && (node._store.validated = !0); else if (node) {
|
||
|
|
var iteratorFn = getIteratorFn(node);
|
||
|
|
if (iteratorFn && iteratorFn !== node.entries) for (var step, iterator = iteratorFn.call(node); !(step = iterator.next()).done; ) ReactElement.isValidElement(step.value) && validateExplicitKey(step.value, parentType);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function validatePropTypes(element) {
|
||
|
|
var componentClass = element.type;
|
||
|
|
if ("function" == typeof componentClass) {
|
||
|
|
var name = componentClass.displayName || componentClass.name;
|
||
|
|
componentClass.propTypes && checkReactTypeSpec(componentClass.propTypes, element.props, "prop", name, element, null),
|
||
|
|
"function" == typeof componentClass.getDefaultProps && ("production" !== process.env.NODE_ENV ? warning(componentClass.getDefaultProps.isReactClassApproved, "getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.") : void 0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var ReactCurrentOwner = __webpack_require__(17), ReactComponentTreeHook = __webpack_require__(24), ReactElement = __webpack_require__(16), checkReactTypeSpec = __webpack_require__(25), canDefineProperty = __webpack_require__(10), getIteratorFn = __webpack_require__(20), warning = __webpack_require__(8), lowPriorityWarning = __webpack_require__(13), ownerHasKeyUseWarning = {}, ReactElementValidator = {
|
||
|
|
createElement: function(type, props, children) {
|
||
|
|
var validType = "string" == typeof type || "function" == typeof type;
|
||
|
|
if (!validType && "function" != typeof type && "string" != typeof type) {
|
||
|
|
var info = "";
|
||
|
|
(void 0 === type || "object" == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in.");
|
||
|
|
var sourceInfo = getSourceInfoErrorAddendum(props);
|
||
|
|
info += sourceInfo ? sourceInfo : getDeclarationErrorAddendum(), info += ReactComponentTreeHook.getCurrentStackAddendum();
|
||
|
|
var currentSource = null !== props && void 0 !== props && void 0 !== props.__source ? props.__source : null;
|
||
|
|
ReactComponentTreeHook.pushNonStandardWarningStack(!0, currentSource), "production" !== process.env.NODE_ENV ? warning(!1, "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, info) : void 0,
|
||
|
|
ReactComponentTreeHook.popNonStandardWarningStack();
|
||
|
|
}
|
||
|
|
var element = ReactElement.createElement.apply(this, arguments);
|
||
|
|
if (null == element) return element;
|
||
|
|
if (validType) for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], type);
|
||
|
|
return validatePropTypes(element), element;
|
||
|
|
},
|
||
|
|
createFactory: function(type) {
|
||
|
|
var validatedFactory = ReactElementValidator.createElement.bind(null, type);
|
||
|
|
return validatedFactory.type = type, "production" !== process.env.NODE_ENV && canDefineProperty && Object.defineProperty(validatedFactory, "type", {
|
||
|
|
enumerable: !1,
|
||
|
|
get: function() {
|
||
|
|
return lowPriorityWarning(!1, "Factory.type is deprecated. Access the class directly before passing it to createFactory."),
|
||
|
|
Object.defineProperty(this, "type", {
|
||
|
|
value: type
|
||
|
|
}), type;
|
||
|
|
}
|
||
|
|
}), validatedFactory;
|
||
|
|
},
|
||
|
|
cloneElement: function(element, props, children) {
|
||
|
|
for (var newElement = ReactElement.cloneElement.apply(this, arguments), i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], newElement.type);
|
||
|
|
return validatePropTypes(newElement), newElement;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactElementValidator;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function isNative(fn) {
|
||
|
|
var funcToString = Function.prototype.toString, hasOwnProperty = Object.prototype.hasOwnProperty, reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
||
|
|
try {
|
||
|
|
var source = funcToString.call(fn);
|
||
|
|
return reIsNative.test(source);
|
||
|
|
} catch (err) {
|
||
|
|
return !1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function purgeDeep(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
if (item) {
|
||
|
|
var childIDs = item.childIDs;
|
||
|
|
removeItem(id), childIDs.forEach(purgeDeep);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function describeComponentFrame(name, source, ownerName) {
|
||
|
|
return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : "");
|
||
|
|
}
|
||
|
|
function getDisplayName(element) {
|
||
|
|
return null == element ? "#empty" : "string" == typeof element || "number" == typeof element ? "#text" : "string" == typeof element.type ? element.type : element.type.displayName || element.type.name || "Unknown";
|
||
|
|
}
|
||
|
|
function describeID(id) {
|
||
|
|
var ownerName, name = ReactComponentTreeHook.getDisplayName(id), element = ReactComponentTreeHook.getElement(id), ownerID = ReactComponentTreeHook.getOwnerID(id);
|
||
|
|
return ownerID && (ownerName = ReactComponentTreeHook.getDisplayName(ownerID)),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(element, "ReactComponentTreeHook: Missing React element for debugID %s when building stack", id) : void 0,
|
||
|
|
describeComponentFrame(name, element && element._source, ownerName);
|
||
|
|
}
|
||
|
|
var setItem, getItem, removeItem, getItemIDs, addRoot, removeRoot, getRootIDs, _prodInvariant = __webpack_require__(6), ReactCurrentOwner = __webpack_require__(17), invariant = __webpack_require__(12), warning = __webpack_require__(8), canUseCollections = "function" == typeof Array.from && "function" == typeof Map && isNative(Map) && null != Map.prototype && "function" == typeof Map.prototype.keys && isNative(Map.prototype.keys) && "function" == typeof Set && isNative(Set) && null != Set.prototype && "function" == typeof Set.prototype.keys && isNative(Set.prototype.keys);
|
||
|
|
if (canUseCollections) {
|
||
|
|
var itemMap = new Map(), rootIDSet = new Set();
|
||
|
|
setItem = function(id, item) {
|
||
|
|
itemMap.set(id, item);
|
||
|
|
}, getItem = function(id) {
|
||
|
|
return itemMap.get(id);
|
||
|
|
}, removeItem = function(id) {
|
||
|
|
itemMap.delete(id);
|
||
|
|
}, getItemIDs = function() {
|
||
|
|
return Array.from(itemMap.keys());
|
||
|
|
}, addRoot = function(id) {
|
||
|
|
rootIDSet.add(id);
|
||
|
|
}, removeRoot = function(id) {
|
||
|
|
rootIDSet.delete(id);
|
||
|
|
}, getRootIDs = function() {
|
||
|
|
return Array.from(rootIDSet.keys());
|
||
|
|
};
|
||
|
|
} else {
|
||
|
|
var itemByKey = {}, rootByKey = {}, getKeyFromID = function(id) {
|
||
|
|
return "." + id;
|
||
|
|
}, getIDFromKey = function(key) {
|
||
|
|
return parseInt(key.substr(1), 10);
|
||
|
|
};
|
||
|
|
setItem = function(id, item) {
|
||
|
|
var key = getKeyFromID(id);
|
||
|
|
itemByKey[key] = item;
|
||
|
|
}, getItem = function(id) {
|
||
|
|
var key = getKeyFromID(id);
|
||
|
|
return itemByKey[key];
|
||
|
|
}, removeItem = function(id) {
|
||
|
|
var key = getKeyFromID(id);
|
||
|
|
delete itemByKey[key];
|
||
|
|
}, getItemIDs = function() {
|
||
|
|
return Object.keys(itemByKey).map(getIDFromKey);
|
||
|
|
}, addRoot = function(id) {
|
||
|
|
var key = getKeyFromID(id);
|
||
|
|
rootByKey[key] = !0;
|
||
|
|
}, removeRoot = function(id) {
|
||
|
|
var key = getKeyFromID(id);
|
||
|
|
delete rootByKey[key];
|
||
|
|
}, getRootIDs = function() {
|
||
|
|
return Object.keys(rootByKey).map(getIDFromKey);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
var unmountedIDs = [], ReactComponentTreeHook = {
|
||
|
|
onSetChildren: function(id, nextChildIDs) {
|
||
|
|
var item = getItem(id);
|
||
|
|
item ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Item must have been set") : _prodInvariant("144"),
|
||
|
|
item.childIDs = nextChildIDs;
|
||
|
|
for (var i = 0; i < nextChildIDs.length; i++) {
|
||
|
|
var nextChildID = nextChildIDs[i], nextChild = getItem(nextChildID);
|
||
|
|
nextChild ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Expected hook events to fire for the child before its parent includes it in onSetChildren().") : _prodInvariant("140"),
|
||
|
|
null == nextChild.childIDs && "object" == typeof nextChild.element && null != nextChild.element ? "production" !== process.env.NODE_ENV ? invariant(!1, "Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().") : _prodInvariant("141") : void 0,
|
||
|
|
nextChild.isMounted ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().") : _prodInvariant("71"),
|
||
|
|
null == nextChild.parentID && (nextChild.parentID = id), nextChild.parentID !== id ? "production" !== process.env.NODE_ENV ? invariant(!1, "Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).", nextChildID, nextChild.parentID, id) : _prodInvariant("142", nextChildID, nextChild.parentID, id) : void 0;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onBeforeMountComponent: function(id, element, parentID) {
|
||
|
|
var item = {
|
||
|
|
element: element,
|
||
|
|
parentID: parentID,
|
||
|
|
text: null,
|
||
|
|
childIDs: [],
|
||
|
|
isMounted: !1,
|
||
|
|
updateCount: 0
|
||
|
|
};
|
||
|
|
setItem(id, item);
|
||
|
|
},
|
||
|
|
onBeforeUpdateComponent: function(id, element) {
|
||
|
|
var item = getItem(id);
|
||
|
|
item && item.isMounted && (item.element = element);
|
||
|
|
},
|
||
|
|
onMountComponent: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
item ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Item must have been set") : _prodInvariant("144"),
|
||
|
|
item.isMounted = !0;
|
||
|
|
var isRoot = 0 === item.parentID;
|
||
|
|
isRoot && addRoot(id);
|
||
|
|
},
|
||
|
|
onUpdateComponent: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
item && item.isMounted && item.updateCount++;
|
||
|
|
},
|
||
|
|
onUnmountComponent: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
if (item) {
|
||
|
|
item.isMounted = !1;
|
||
|
|
var isRoot = 0 === item.parentID;
|
||
|
|
isRoot && removeRoot(id);
|
||
|
|
}
|
||
|
|
unmountedIDs.push(id);
|
||
|
|
},
|
||
|
|
purgeUnmountedComponents: function() {
|
||
|
|
if (!ReactComponentTreeHook._preventPurging) {
|
||
|
|
for (var i = 0; i < unmountedIDs.length; i++) {
|
||
|
|
var id = unmountedIDs[i];
|
||
|
|
purgeDeep(id);
|
||
|
|
}
|
||
|
|
unmountedIDs.length = 0;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
isMounted: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
return !!item && item.isMounted;
|
||
|
|
},
|
||
|
|
getCurrentStackAddendum: function(topElement) {
|
||
|
|
var info = "";
|
||
|
|
if (topElement) {
|
||
|
|
var name = getDisplayName(topElement), owner = topElement._owner;
|
||
|
|
info += describeComponentFrame(name, topElement._source, owner && owner.getName());
|
||
|
|
}
|
||
|
|
var currentOwner = ReactCurrentOwner.current, id = currentOwner && currentOwner._debugID;
|
||
|
|
return info += ReactComponentTreeHook.getStackAddendumByID(id);
|
||
|
|
},
|
||
|
|
getStackAddendumByID: function(id) {
|
||
|
|
for (var info = ""; id; ) info += describeID(id), id = ReactComponentTreeHook.getParentID(id);
|
||
|
|
return info;
|
||
|
|
},
|
||
|
|
getChildIDs: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
return item ? item.childIDs : [];
|
||
|
|
},
|
||
|
|
getDisplayName: function(id) {
|
||
|
|
var element = ReactComponentTreeHook.getElement(id);
|
||
|
|
return element ? getDisplayName(element) : null;
|
||
|
|
},
|
||
|
|
getElement: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
return item ? item.element : null;
|
||
|
|
},
|
||
|
|
getOwnerID: function(id) {
|
||
|
|
var element = ReactComponentTreeHook.getElement(id);
|
||
|
|
return element && element._owner ? element._owner._debugID : null;
|
||
|
|
},
|
||
|
|
getParentID: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
return item ? item.parentID : null;
|
||
|
|
},
|
||
|
|
getSource: function(id) {
|
||
|
|
var item = getItem(id), element = item ? item.element : null, source = null != element ? element._source : null;
|
||
|
|
return source;
|
||
|
|
},
|
||
|
|
getText: function(id) {
|
||
|
|
var element = ReactComponentTreeHook.getElement(id);
|
||
|
|
return "string" == typeof element ? element : "number" == typeof element ? "" + element : null;
|
||
|
|
},
|
||
|
|
getUpdateCount: function(id) {
|
||
|
|
var item = getItem(id);
|
||
|
|
return item ? item.updateCount : 0;
|
||
|
|
},
|
||
|
|
getRootIDs: getRootIDs,
|
||
|
|
getRegisteredIDs: getItemIDs,
|
||
|
|
pushNonStandardWarningStack: function(isCreatingElement, currentSource) {
|
||
|
|
if ("function" == typeof console.reactStack) {
|
||
|
|
var stack = [], currentOwner = ReactCurrentOwner.current, id = currentOwner && currentOwner._debugID;
|
||
|
|
try {
|
||
|
|
for (isCreatingElement && stack.push({
|
||
|
|
name: id ? ReactComponentTreeHook.getDisplayName(id) : null,
|
||
|
|
fileName: currentSource ? currentSource.fileName : null,
|
||
|
|
lineNumber: currentSource ? currentSource.lineNumber : null
|
||
|
|
}); id; ) {
|
||
|
|
var element = ReactComponentTreeHook.getElement(id), parentID = ReactComponentTreeHook.getParentID(id), ownerID = ReactComponentTreeHook.getOwnerID(id), ownerName = ownerID ? ReactComponentTreeHook.getDisplayName(ownerID) : null, source = element && element._source;
|
||
|
|
stack.push({
|
||
|
|
name: ownerName,
|
||
|
|
fileName: source ? source.fileName : null,
|
||
|
|
lineNumber: source ? source.lineNumber : null
|
||
|
|
}), id = parentID;
|
||
|
|
}
|
||
|
|
} catch (err) {}
|
||
|
|
console.reactStack(stack);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
popNonStandardWarningStack: function() {
|
||
|
|
"function" == typeof console.reactStackEnd && console.reactStackEnd();
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactComponentTreeHook;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
|
||
|
|
for (var typeSpecName in typeSpecs) if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
||
|
|
var error;
|
||
|
|
try {
|
||
|
|
"function" != typeof typeSpecs[typeSpecName] ? "production" !== process.env.NODE_ENV ? invariant(!1, "%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.", componentName || "React class", ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant("84", componentName || "React class", ReactPropTypeLocationNames[location], typeSpecName) : void 0,
|
||
|
|
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
||
|
|
} catch (ex) {
|
||
|
|
error = ex;
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV ? warning(!error || error instanceof Error, "%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0,
|
||
|
|
error instanceof Error && !(error.message in loggedTypeFailures)) {
|
||
|
|
loggedTypeFailures[error.message] = !0;
|
||
|
|
var componentStackInfo = "";
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactComponentTreeHook || (ReactComponentTreeHook = __webpack_require__(24)),
|
||
|
|
null !== debugID ? componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID) : null !== element && (componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element))),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "Failed %s type: %s%s", location, error.message, componentStackInfo) : void 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var ReactComponentTreeHook, _prodInvariant = __webpack_require__(6), ReactPropTypeLocationNames = __webpack_require__(26), ReactPropTypesSecret = __webpack_require__(27), invariant = __webpack_require__(12), warning = __webpack_require__(8);
|
||
|
|
"undefined" != typeof process && process.env && "test" === process.env.NODE_ENV && (ReactComponentTreeHook = __webpack_require__(24));
|
||
|
|
var loggedTypeFailures = {};
|
||
|
|
module.exports = checkReactTypeSpec;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var ReactPropTypeLocationNames = {};
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactPropTypeLocationNames = {
|
||
|
|
prop: "prop",
|
||
|
|
context: "context",
|
||
|
|
childContext: "child context"
|
||
|
|
}), module.exports = ReactPropTypeLocationNames;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
||
|
|
module.exports = ReactPropTypesSecret;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var _require = __webpack_require__(16), isValidElement = _require.isValidElement, factory = __webpack_require__(29);
|
||
|
|
module.exports = factory(isValidElement);
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var factory = __webpack_require__(30);
|
||
|
|
module.exports = function(isValidElement) {
|
||
|
|
var throwOnDirectAccess = !1;
|
||
|
|
return factory(isValidElement, throwOnDirectAccess);
|
||
|
|
};
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var emptyFunction = __webpack_require__(9), invariant = __webpack_require__(12), warning = __webpack_require__(8), ReactPropTypesSecret = __webpack_require__(31), checkPropTypes = __webpack_require__(32);
|
||
|
|
module.exports = function(isValidElement, throwOnDirectAccess) {
|
||
|
|
function getIteratorFn(maybeIterable) {
|
||
|
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
||
|
|
if ("function" == typeof iteratorFn) return iteratorFn;
|
||
|
|
}
|
||
|
|
function is(x, y) {
|
||
|
|
return x === y ? 0 !== x || 1 / x === 1 / y : x !== x && y !== y;
|
||
|
|
}
|
||
|
|
function PropTypeError(message) {
|
||
|
|
this.message = message, this.stack = "";
|
||
|
|
}
|
||
|
|
function createChainableTypeChecker(validate) {
|
||
|
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
||
|
|
if (componentName = componentName || ANONYMOUS, propFullName = propFullName || propName,
|
||
|
|
secret !== ReactPropTypesSecret) if (throwOnDirectAccess) invariant(!1, "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"); else if ("production" !== process.env.NODE_ENV && "undefined" != typeof console) {
|
||
|
|
var cacheKey = componentName + ":" + propName;
|
||
|
|
!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3 && (warning(!1, "You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.", propFullName, componentName),
|
||
|
|
manualPropTypeCallCache[cacheKey] = !0, manualPropTypeWarningCount++);
|
||
|
|
}
|
||
|
|
return null == props[propName] ? isRequired ? new PropTypeError(null === props[propName] ? "The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.") : "The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")) : null : validate(props, propName, componentName, location, propFullName);
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV) var manualPropTypeCallCache = {}, manualPropTypeWarningCount = 0;
|
||
|
|
var chainedCheckType = checkType.bind(null, !1);
|
||
|
|
return chainedCheckType.isRequired = checkType.bind(null, !0), chainedCheckType;
|
||
|
|
}
|
||
|
|
function createPrimitiveTypeChecker(expectedType) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
||
|
|
var propValue = props[propName], propType = getPropType(propValue);
|
||
|
|
if (propType !== expectedType) {
|
||
|
|
var preciseType = getPreciseType(propValue);
|
||
|
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."));
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createAnyTypeChecker() {
|
||
|
|
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
||
|
|
}
|
||
|
|
function createArrayOfTypeChecker(typeChecker) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
if ("function" != typeof typeChecker) return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
||
|
|
var propValue = props[propName];
|
||
|
|
if (!Array.isArray(propValue)) {
|
||
|
|
var propType = getPropType(propValue);
|
||
|
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
||
|
|
}
|
||
|
|
for (var i = 0; i < propValue.length; i++) {
|
||
|
|
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
||
|
|
if (error instanceof Error) return error;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createElementTypeChecker() {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
var propValue = props[propName];
|
||
|
|
if (!isValidElement(propValue)) {
|
||
|
|
var propType = getPropType(propValue);
|
||
|
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createInstanceTypeChecker(expectedClass) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
if (!(props[propName] instanceof expectedClass)) {
|
||
|
|
var expectedClassName = expectedClass.name || ANONYMOUS, actualClassName = getClassName(props[propName]);
|
||
|
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createEnumTypeChecker(expectedValues) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
for (var propValue = props[propName], i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
|
||
|
|
var valuesString = JSON.stringify(expectedValues);
|
||
|
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + propValue + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
||
|
|
}
|
||
|
|
return Array.isArray(expectedValues) ? createChainableTypeChecker(validate) : ("production" !== process.env.NODE_ENV ? warning(!1, "Invalid argument supplied to oneOf, expected an instance of array.") : void 0,
|
||
|
|
emptyFunction.thatReturnsNull);
|
||
|
|
}
|
||
|
|
function createObjectOfTypeChecker(typeChecker) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
if ("function" != typeof typeChecker) return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
||
|
|
var propValue = props[propName], propType = getPropType(propValue);
|
||
|
|
if ("object" !== propType) return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
||
|
|
for (var key in propValue) if (propValue.hasOwnProperty(key)) {
|
||
|
|
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
||
|
|
if (error instanceof Error) return error;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
||
|
|
var checker = arrayOfTypeCheckers[i];
|
||
|
|
if (null == checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret)) return null;
|
||
|
|
}
|
||
|
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`."));
|
||
|
|
}
|
||
|
|
if (!Array.isArray(arrayOfTypeCheckers)) return "production" !== process.env.NODE_ENV ? warning(!1, "Invalid argument supplied to oneOfType, expected an instance of array.") : void 0,
|
||
|
|
emptyFunction.thatReturnsNull;
|
||
|
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
||
|
|
var checker = arrayOfTypeCheckers[i];
|
||
|
|
if ("function" != typeof checker) return warning(!1, "Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.", getPostfixForTypeWarning(checker), i),
|
||
|
|
emptyFunction.thatReturnsNull;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createNodeChecker() {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
return isNode(props[propName]) ? null : new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function createShapeTypeChecker(shapeTypes) {
|
||
|
|
function validate(props, propName, componentName, location, propFullName) {
|
||
|
|
var propValue = props[propName], propType = getPropType(propValue);
|
||
|
|
if ("object" !== propType) return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
||
|
|
for (var key in shapeTypes) {
|
||
|
|
var checker = shapeTypes[key];
|
||
|
|
if (checker) {
|
||
|
|
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
||
|
|
if (error) return error;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return createChainableTypeChecker(validate);
|
||
|
|
}
|
||
|
|
function isNode(propValue) {
|
||
|
|
switch (typeof propValue) {
|
||
|
|
case "number":
|
||
|
|
case "string":
|
||
|
|
case "undefined":
|
||
|
|
return !0;
|
||
|
|
|
||
|
|
case "boolean":
|
||
|
|
return !propValue;
|
||
|
|
|
||
|
|
case "object":
|
||
|
|
if (Array.isArray(propValue)) return propValue.every(isNode);
|
||
|
|
if (null === propValue || isValidElement(propValue)) return !0;
|
||
|
|
var iteratorFn = getIteratorFn(propValue);
|
||
|
|
if (!iteratorFn) return !1;
|
||
|
|
var step, iterator = iteratorFn.call(propValue);
|
||
|
|
if (iteratorFn !== propValue.entries) {
|
||
|
|
for (;!(step = iterator.next()).done; ) if (!isNode(step.value)) return !1;
|
||
|
|
} else for (;!(step = iterator.next()).done; ) {
|
||
|
|
var entry = step.value;
|
||
|
|
if (entry && !isNode(entry[1])) return !1;
|
||
|
|
}
|
||
|
|
return !0;
|
||
|
|
|
||
|
|
default:
|
||
|
|
return !1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function isSymbol(propType, propValue) {
|
||
|
|
return "symbol" === propType || ("Symbol" === propValue["@@toStringTag"] || "function" == typeof Symbol && propValue instanceof Symbol);
|
||
|
|
}
|
||
|
|
function getPropType(propValue) {
|
||
|
|
var propType = typeof propValue;
|
||
|
|
return Array.isArray(propValue) ? "array" : propValue instanceof RegExp ? "object" : isSymbol(propType, propValue) ? "symbol" : propType;
|
||
|
|
}
|
||
|
|
function getPreciseType(propValue) {
|
||
|
|
if ("undefined" == typeof propValue || null === propValue) return "" + propValue;
|
||
|
|
var propType = getPropType(propValue);
|
||
|
|
if ("object" === propType) {
|
||
|
|
if (propValue instanceof Date) return "date";
|
||
|
|
if (propValue instanceof RegExp) return "regexp";
|
||
|
|
}
|
||
|
|
return propType;
|
||
|
|
}
|
||
|
|
function getPostfixForTypeWarning(value) {
|
||
|
|
var type = getPreciseType(value);
|
||
|
|
switch (type) {
|
||
|
|
case "array":
|
||
|
|
case "object":
|
||
|
|
return "an " + type;
|
||
|
|
|
||
|
|
case "boolean":
|
||
|
|
case "date":
|
||
|
|
case "regexp":
|
||
|
|
return "a " + type;
|
||
|
|
|
||
|
|
default:
|
||
|
|
return type;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function getClassName(propValue) {
|
||
|
|
return propValue.constructor && propValue.constructor.name ? propValue.constructor.name : ANONYMOUS;
|
||
|
|
}
|
||
|
|
var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", ANONYMOUS = "<<anonymous>>", ReactPropTypes = {
|
||
|
|
array: createPrimitiveTypeChecker("array"),
|
||
|
|
bool: createPrimitiveTypeChecker("boolean"),
|
||
|
|
func: createPrimitiveTypeChecker("function"),
|
||
|
|
number: createPrimitiveTypeChecker("number"),
|
||
|
|
object: createPrimitiveTypeChecker("object"),
|
||
|
|
string: createPrimitiveTypeChecker("string"),
|
||
|
|
symbol: createPrimitiveTypeChecker("symbol"),
|
||
|
|
any: createAnyTypeChecker(),
|
||
|
|
arrayOf: createArrayOfTypeChecker,
|
||
|
|
element: createElementTypeChecker(),
|
||
|
|
instanceOf: createInstanceTypeChecker,
|
||
|
|
node: createNodeChecker(),
|
||
|
|
objectOf: createObjectOfTypeChecker,
|
||
|
|
oneOf: createEnumTypeChecker,
|
||
|
|
oneOfType: createUnionTypeChecker,
|
||
|
|
shape: createShapeTypeChecker
|
||
|
|
};
|
||
|
|
return PropTypeError.prototype = Error.prototype, ReactPropTypes.checkPropTypes = checkPropTypes,
|
||
|
|
ReactPropTypes.PropTypes = ReactPropTypes, ReactPropTypes;
|
||
|
|
};
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
||
|
|
module.exports = ReactPropTypesSecret;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) for (var typeSpecName in typeSpecs) if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
||
|
|
var error;
|
||
|
|
try {
|
||
|
|
invariant("function" == typeof typeSpecs[typeSpecName], "%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.", componentName || "React class", location, typeSpecName),
|
||
|
|
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
||
|
|
} catch (ex) {
|
||
|
|
error = ex;
|
||
|
|
}
|
||
|
|
if (warning(!error || error instanceof Error, "%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error),
|
||
|
|
error instanceof Error && !(error.message in loggedTypeFailures)) {
|
||
|
|
loggedTypeFailures[error.message] = !0;
|
||
|
|
var stack = getStack ? getStack() : "";
|
||
|
|
warning(!1, "Failed %s type: %s%s", location, error.message, null != stack ? stack : "");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV) var invariant = __webpack_require__(12), warning = __webpack_require__(8), ReactPropTypesSecret = __webpack_require__(31), loggedTypeFailures = {};
|
||
|
|
module.exports = checkPropTypes;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
module.exports = "15.6.1";
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var _require = __webpack_require__(5), Component = _require.Component, _require2 = __webpack_require__(16), isValidElement = _require2.isValidElement, ReactNoopUpdateQueue = __webpack_require__(7), factory = __webpack_require__(35);
|
||
|
|
module.exports = factory(Component, isValidElement, ReactNoopUpdateQueue);
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function identity(fn) {
|
||
|
|
return fn;
|
||
|
|
}
|
||
|
|
function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
|
||
|
|
function validateTypeDef(Constructor, typeDef, location) {
|
||
|
|
for (var propName in typeDef) typeDef.hasOwnProperty(propName) && "production" !== process.env.NODE_ENV && warning("function" == typeof typeDef[propName], "%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.", Constructor.displayName || "ReactClass", ReactPropTypeLocationNames[location], propName);
|
||
|
|
}
|
||
|
|
function validateMethodOverride(isAlreadyDefined, name) {
|
||
|
|
var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
|
||
|
|
ReactClassMixin.hasOwnProperty(name) && _invariant("OVERRIDE_BASE" === specPolicy, "ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.", name),
|
||
|
|
isAlreadyDefined && _invariant("DEFINE_MANY" === specPolicy || "DEFINE_MANY_MERGED" === specPolicy, "ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.", name);
|
||
|
|
}
|
||
|
|
function mixSpecIntoComponent(Constructor, spec) {
|
||
|
|
if (spec) {
|
||
|
|
_invariant("function" != typeof spec, "ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),
|
||
|
|
_invariant(!isValidElement(spec), "ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");
|
||
|
|
var proto = Constructor.prototype, autoBindPairs = proto.__reactAutoBindPairs;
|
||
|
|
spec.hasOwnProperty(MIXINS_KEY) && RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
|
||
|
|
for (var name in spec) if (spec.hasOwnProperty(name) && name !== MIXINS_KEY) {
|
||
|
|
var property = spec[name], isAlreadyDefined = proto.hasOwnProperty(name);
|
||
|
|
if (validateMethodOverride(isAlreadyDefined, name), RESERVED_SPEC_KEYS.hasOwnProperty(name)) RESERVED_SPEC_KEYS[name](Constructor, property); else {
|
||
|
|
var isReactClassMethod = ReactClassInterface.hasOwnProperty(name), isFunction = "function" == typeof property, shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== !1;
|
||
|
|
if (shouldAutoBind) autoBindPairs.push(name, property), proto[name] = property; else if (isAlreadyDefined) {
|
||
|
|
var specPolicy = ReactClassInterface[name];
|
||
|
|
_invariant(isReactClassMethod && ("DEFINE_MANY_MERGED" === specPolicy || "DEFINE_MANY" === specPolicy), "ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.", specPolicy, name),
|
||
|
|
"DEFINE_MANY_MERGED" === specPolicy ? proto[name] = createMergedResultFunction(proto[name], property) : "DEFINE_MANY" === specPolicy && (proto[name] = createChainedFunction(proto[name], property));
|
||
|
|
} else proto[name] = property, "production" !== process.env.NODE_ENV && "function" == typeof property && spec.displayName && (proto[name].displayName = spec.displayName + "_" + name);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
} else if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var typeofSpec = typeof spec, isMixinValid = "object" === typeofSpec && null !== spec;
|
||
|
|
"production" !== process.env.NODE_ENV && warning(isMixinValid, "%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.", Constructor.displayName || "ReactClass", null === spec ? null : typeofSpec);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function mixStaticSpecIntoComponent(Constructor, statics) {
|
||
|
|
if (statics) for (var name in statics) {
|
||
|
|
var property = statics[name];
|
||
|
|
if (statics.hasOwnProperty(name)) {
|
||
|
|
var isReserved = name in RESERVED_SPEC_KEYS;
|
||
|
|
_invariant(!isReserved, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name);
|
||
|
|
var isInherited = name in Constructor;
|
||
|
|
_invariant(!isInherited, "ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.", name),
|
||
|
|
Constructor[name] = property;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function mergeIntoWithNoDuplicateKeys(one, two) {
|
||
|
|
_invariant(one && two && "object" == typeof one && "object" == typeof two, "mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");
|
||
|
|
for (var key in two) two.hasOwnProperty(key) && (_invariant(void 0 === one[key], "mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.", key),
|
||
|
|
one[key] = two[key]);
|
||
|
|
return one;
|
||
|
|
}
|
||
|
|
function createMergedResultFunction(one, two) {
|
||
|
|
return function() {
|
||
|
|
var a = one.apply(this, arguments), b = two.apply(this, arguments);
|
||
|
|
if (null == a) return b;
|
||
|
|
if (null == b) return a;
|
||
|
|
var c = {};
|
||
|
|
return mergeIntoWithNoDuplicateKeys(c, a), mergeIntoWithNoDuplicateKeys(c, b), c;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function createChainedFunction(one, two) {
|
||
|
|
return function() {
|
||
|
|
one.apply(this, arguments), two.apply(this, arguments);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function bindAutoBindMethod(component, method) {
|
||
|
|
var boundMethod = method.bind(component);
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
boundMethod.__reactBoundContext = component, boundMethod.__reactBoundMethod = method,
|
||
|
|
boundMethod.__reactBoundArguments = null;
|
||
|
|
var componentName = component.constructor.displayName, _bind = boundMethod.bind;
|
||
|
|
boundMethod.bind = function(newThis) {
|
||
|
|
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
|
||
|
|
if (newThis !== component && null !== newThis) "production" !== process.env.NODE_ENV && warning(!1, "bind(): React component methods may only be bound to the component instance. See %s", componentName); else if (!args.length) return "production" !== process.env.NODE_ENV && warning(!1, "bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s", componentName),
|
||
|
|
boundMethod;
|
||
|
|
var reboundMethod = _bind.apply(boundMethod, arguments);
|
||
|
|
return reboundMethod.__reactBoundContext = component, reboundMethod.__reactBoundMethod = method,
|
||
|
|
reboundMethod.__reactBoundArguments = args, reboundMethod;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
return boundMethod;
|
||
|
|
}
|
||
|
|
function bindAutoBindMethods(component) {
|
||
|
|
for (var pairs = component.__reactAutoBindPairs, i = 0; i < pairs.length; i += 2) {
|
||
|
|
var autoBindKey = pairs[i], method = pairs[i + 1];
|
||
|
|
component[autoBindKey] = bindAutoBindMethod(component, method);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function createClass(spec) {
|
||
|
|
var Constructor = identity(function(props, context, updater) {
|
||
|
|
"production" !== process.env.NODE_ENV && warning(this instanceof Constructor, "Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),
|
||
|
|
this.__reactAutoBindPairs.length && bindAutoBindMethods(this), this.props = props,
|
||
|
|
this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue,
|
||
|
|
this.state = null;
|
||
|
|
var initialState = this.getInitialState ? this.getInitialState() : null;
|
||
|
|
"production" !== process.env.NODE_ENV && void 0 === initialState && this.getInitialState._isMockFunction && (initialState = null),
|
||
|
|
_invariant("object" == typeof initialState && !Array.isArray(initialState), "%s.getInitialState(): must return an object or null", Constructor.displayName || "ReactCompositeComponent"),
|
||
|
|
this.state = initialState;
|
||
|
|
});
|
||
|
|
Constructor.prototype = new ReactClassComponent(), Constructor.prototype.constructor = Constructor,
|
||
|
|
Constructor.prototype.__reactAutoBindPairs = [], injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)),
|
||
|
|
mixSpecIntoComponent(Constructor, IsMountedPreMixin), mixSpecIntoComponent(Constructor, spec),
|
||
|
|
mixSpecIntoComponent(Constructor, IsMountedPostMixin), Constructor.getDefaultProps && (Constructor.defaultProps = Constructor.getDefaultProps()),
|
||
|
|
"production" !== process.env.NODE_ENV && (Constructor.getDefaultProps && (Constructor.getDefaultProps.isReactClassApproved = {}),
|
||
|
|
Constructor.prototype.getInitialState && (Constructor.prototype.getInitialState.isReactClassApproved = {})),
|
||
|
|
_invariant(Constructor.prototype.render, "createClass(...): Class specification must implement a `render` method."),
|
||
|
|
"production" !== process.env.NODE_ENV && (warning(!Constructor.prototype.componentShouldUpdate, "%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", spec.displayName || "A component"),
|
||
|
|
warning(!Constructor.prototype.componentWillRecieveProps, "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", spec.displayName || "A component"));
|
||
|
|
for (var methodName in ReactClassInterface) Constructor.prototype[methodName] || (Constructor.prototype[methodName] = null);
|
||
|
|
return Constructor;
|
||
|
|
}
|
||
|
|
var injectedMixins = [], ReactClassInterface = {
|
||
|
|
mixins: "DEFINE_MANY",
|
||
|
|
statics: "DEFINE_MANY",
|
||
|
|
propTypes: "DEFINE_MANY",
|
||
|
|
contextTypes: "DEFINE_MANY",
|
||
|
|
childContextTypes: "DEFINE_MANY",
|
||
|
|
getDefaultProps: "DEFINE_MANY_MERGED",
|
||
|
|
getInitialState: "DEFINE_MANY_MERGED",
|
||
|
|
getChildContext: "DEFINE_MANY_MERGED",
|
||
|
|
render: "DEFINE_ONCE",
|
||
|
|
componentWillMount: "DEFINE_MANY",
|
||
|
|
componentDidMount: "DEFINE_MANY",
|
||
|
|
componentWillReceiveProps: "DEFINE_MANY",
|
||
|
|
shouldComponentUpdate: "DEFINE_ONCE",
|
||
|
|
componentWillUpdate: "DEFINE_MANY",
|
||
|
|
componentDidUpdate: "DEFINE_MANY",
|
||
|
|
componentWillUnmount: "DEFINE_MANY",
|
||
|
|
updateComponent: "OVERRIDE_BASE"
|
||
|
|
}, RESERVED_SPEC_KEYS = {
|
||
|
|
displayName: function(Constructor, displayName) {
|
||
|
|
Constructor.displayName = displayName;
|
||
|
|
},
|
||
|
|
mixins: function(Constructor, mixins) {
|
||
|
|
if (mixins) for (var i = 0; i < mixins.length; i++) mixSpecIntoComponent(Constructor, mixins[i]);
|
||
|
|
},
|
||
|
|
childContextTypes: function(Constructor, childContextTypes) {
|
||
|
|
"production" !== process.env.NODE_ENV && validateTypeDef(Constructor, childContextTypes, "childContext"),
|
||
|
|
Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
|
||
|
|
},
|
||
|
|
contextTypes: function(Constructor, contextTypes) {
|
||
|
|
"production" !== process.env.NODE_ENV && validateTypeDef(Constructor, contextTypes, "context"),
|
||
|
|
Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
|
||
|
|
},
|
||
|
|
getDefaultProps: function(Constructor, getDefaultProps) {
|
||
|
|
Constructor.getDefaultProps ? Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps) : Constructor.getDefaultProps = getDefaultProps;
|
||
|
|
},
|
||
|
|
propTypes: function(Constructor, propTypes) {
|
||
|
|
"production" !== process.env.NODE_ENV && validateTypeDef(Constructor, propTypes, "prop"),
|
||
|
|
Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
|
||
|
|
},
|
||
|
|
statics: function(Constructor, statics) {
|
||
|
|
mixStaticSpecIntoComponent(Constructor, statics);
|
||
|
|
},
|
||
|
|
autobind: function() {}
|
||
|
|
}, IsMountedPreMixin = {
|
||
|
|
componentDidMount: function() {
|
||
|
|
this.__isMounted = !0;
|
||
|
|
}
|
||
|
|
}, IsMountedPostMixin = {
|
||
|
|
componentWillUnmount: function() {
|
||
|
|
this.__isMounted = !1;
|
||
|
|
}
|
||
|
|
}, ReactClassMixin = {
|
||
|
|
replaceState: function(newState, callback) {
|
||
|
|
this.updater.enqueueReplaceState(this, newState, callback);
|
||
|
|
},
|
||
|
|
isMounted: function() {
|
||
|
|
return "production" !== process.env.NODE_ENV && (warning(this.__didWarnIsMounted, "%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.", this.constructor && this.constructor.displayName || this.name || "Component"),
|
||
|
|
this.__didWarnIsMounted = !0), !!this.__isMounted;
|
||
|
|
}
|
||
|
|
}, ReactClassComponent = function() {};
|
||
|
|
return _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin),
|
||
|
|
createClass;
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), emptyObject = __webpack_require__(11), _invariant = __webpack_require__(12);
|
||
|
|
if ("production" !== process.env.NODE_ENV) var warning = __webpack_require__(8);
|
||
|
|
var ReactPropTypeLocationNames, MIXINS_KEY = "mixins";
|
||
|
|
ReactPropTypeLocationNames = "production" !== process.env.NODE_ENV ? {
|
||
|
|
prop: "prop",
|
||
|
|
context: "context",
|
||
|
|
childContext: "child context"
|
||
|
|
} : {}, module.exports = factory;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function onlyChild(children) {
|
||
|
|
return ReactElement.isValidElement(children) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "React.Children.only expected to receive a single React element child.") : _prodInvariant("143"),
|
||
|
|
children;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(6), ReactElement = __webpack_require__(16), invariant = __webpack_require__(12);
|
||
|
|
module.exports = onlyChild;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
module.exports = __webpack_require__(38);
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var ReactDOMComponentTree = __webpack_require__(39), ReactDefaultInjection = __webpack_require__(43), ReactMount = __webpack_require__(172), ReactReconciler = __webpack_require__(64), ReactUpdates = __webpack_require__(61), ReactVersion = __webpack_require__(177), findDOMNode = __webpack_require__(178), getHostComponentFromComposite = __webpack_require__(179), renderSubtreeIntoContainer = __webpack_require__(180), warning = __webpack_require__(8);
|
||
|
|
ReactDefaultInjection.inject();
|
||
|
|
var ReactDOM = {
|
||
|
|
findDOMNode: findDOMNode,
|
||
|
|
render: ReactMount.render,
|
||
|
|
unmountComponentAtNode: ReactMount.unmountComponentAtNode,
|
||
|
|
version: ReactVersion,
|
||
|
|
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
|
||
|
|
unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
|
||
|
|
};
|
||
|
|
if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
|
||
|
|
ComponentTree: {
|
||
|
|
getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,
|
||
|
|
getNodeFromInstance: function(inst) {
|
||
|
|
return inst._renderedComponent && (inst = getHostComponentFromComposite(inst)),
|
||
|
|
inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
Mount: ReactMount,
|
||
|
|
Reconciler: ReactReconciler
|
||
|
|
}), "production" !== process.env.NODE_ENV) {
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53);
|
||
|
|
if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
|
||
|
|
if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && (navigator.userAgent.indexOf("Chrome") > -1 && navigator.userAgent.indexOf("Edge") === -1 || navigator.userAgent.indexOf("Firefox") > -1)) {
|
||
|
|
var showFileUrlMessage = window.location.protocol.indexOf("http") === -1 && navigator.userAgent.indexOf("Firefox") === -1;
|
||
|
|
console.debug("Download the React DevTools " + (showFileUrlMessage ? "and use an HTTP server (instead of a file: URL) " : "") + "for a better development experience: https://fb.me/react-devtools");
|
||
|
|
}
|
||
|
|
var testFunc = function() {};
|
||
|
|
"production" !== process.env.NODE_ENV ? warning((testFunc.name || testFunc.toString()).indexOf("testFn") !== -1, "It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.") : void 0;
|
||
|
|
var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />') : void 0;
|
||
|
|
for (var expectedFeatures = [ Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim ], i = 0; i < expectedFeatures.length; i++) if (!expectedFeatures[i]) {
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "One or more ES5 shims expected by React are not available: https://fb.me/react-warning-polyfills") : void 0;
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var ReactInstrumentation = __webpack_require__(67), ReactDOMUnknownPropertyHook = __webpack_require__(181), ReactDOMNullInputValuePropHook = __webpack_require__(182), ReactDOMInvalidARIAHook = __webpack_require__(183);
|
||
|
|
ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook), ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook),
|
||
|
|
ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);
|
||
|
|
}
|
||
|
|
module.exports = ReactDOM;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function shouldPrecacheNode(node, nodeID) {
|
||
|
|
return 1 === node.nodeType && node.getAttribute(ATTR_NAME) === String(nodeID) || 8 === node.nodeType && node.nodeValue === " react-text: " + nodeID + " " || 8 === node.nodeType && node.nodeValue === " react-empty: " + nodeID + " ";
|
||
|
|
}
|
||
|
|
function getRenderedHostOrTextFromComponent(component) {
|
||
|
|
for (var rendered; rendered = component._renderedComponent; ) component = rendered;
|
||
|
|
return component;
|
||
|
|
}
|
||
|
|
function precacheNode(inst, node) {
|
||
|
|
var hostInst = getRenderedHostOrTextFromComponent(inst);
|
||
|
|
hostInst._hostNode = node, node[internalInstanceKey] = hostInst;
|
||
|
|
}
|
||
|
|
function uncacheNode(inst) {
|
||
|
|
var node = inst._hostNode;
|
||
|
|
node && (delete node[internalInstanceKey], inst._hostNode = null);
|
||
|
|
}
|
||
|
|
function precacheChildNodes(inst, node) {
|
||
|
|
if (!(inst._flags & Flags.hasCachedChildNodes)) {
|
||
|
|
var children = inst._renderedChildren, childNode = node.firstChild;
|
||
|
|
outer: for (var name in children) if (children.hasOwnProperty(name)) {
|
||
|
|
var childInst = children[name], childID = getRenderedHostOrTextFromComponent(childInst)._domID;
|
||
|
|
if (0 !== childID) {
|
||
|
|
for (;null !== childNode; childNode = childNode.nextSibling) if (shouldPrecacheNode(childNode, childID)) {
|
||
|
|
precacheNode(childInst, childNode);
|
||
|
|
continue outer;
|
||
|
|
}
|
||
|
|
"production" !== process.env.NODE_ENV ? invariant(!1, "Unable to find element with ID %s.", childID) : _prodInvariant("32", childID);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
inst._flags |= Flags.hasCachedChildNodes;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function getClosestInstanceFromNode(node) {
|
||
|
|
if (node[internalInstanceKey]) return node[internalInstanceKey];
|
||
|
|
for (var parents = []; !node[internalInstanceKey]; ) {
|
||
|
|
if (parents.push(node), !node.parentNode) return null;
|
||
|
|
node = node.parentNode;
|
||
|
|
}
|
||
|
|
for (var closest, inst; node && (inst = node[internalInstanceKey]); node = parents.pop()) closest = inst,
|
||
|
|
parents.length && precacheChildNodes(inst, node);
|
||
|
|
return closest;
|
||
|
|
}
|
||
|
|
function getInstanceFromNode(node) {
|
||
|
|
var inst = getClosestInstanceFromNode(node);
|
||
|
|
return null != inst && inst._hostNode === node ? inst : null;
|
||
|
|
}
|
||
|
|
function getNodeFromInstance(inst) {
|
||
|
|
if (void 0 === inst._hostNode ? "production" !== process.env.NODE_ENV ? invariant(!1, "getNodeFromInstance: Invalid argument.") : _prodInvariant("33") : void 0,
|
||
|
|
inst._hostNode) return inst._hostNode;
|
||
|
|
for (var parents = []; !inst._hostNode; ) parents.push(inst), inst._hostParent ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "React DOM tree root should always have a node reference.") : _prodInvariant("34"),
|
||
|
|
inst = inst._hostParent;
|
||
|
|
for (;parents.length; inst = parents.pop()) precacheChildNodes(inst, inst._hostNode);
|
||
|
|
return inst._hostNode;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), DOMProperty = __webpack_require__(41), ReactDOMComponentFlags = __webpack_require__(42), invariant = __webpack_require__(12), ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME, Flags = ReactDOMComponentFlags, internalInstanceKey = "__reactInternalInstance$" + Math.random().toString(36).slice(2), ReactDOMComponentTree = {
|
||
|
|
getClosestInstanceFromNode: getClosestInstanceFromNode,
|
||
|
|
getInstanceFromNode: getInstanceFromNode,
|
||
|
|
getNodeFromInstance: getNodeFromInstance,
|
||
|
|
precacheChildNodes: precacheChildNodes,
|
||
|
|
precacheNode: precacheNode,
|
||
|
|
uncacheNode: uncacheNode
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMComponentTree;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function reactProdInvariant(code) {
|
||
|
|
for (var argCount = arguments.length - 1, message = "Minified React error #" + code + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + code, argIdx = 0; argIdx < argCount; argIdx++) message += "&args[]=" + encodeURIComponent(arguments[argIdx + 1]);
|
||
|
|
message += " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
||
|
|
var error = new Error(message);
|
||
|
|
throw error.name = "Invariant Violation", error.framesToPop = 1, error;
|
||
|
|
}
|
||
|
|
module.exports = reactProdInvariant;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function checkMask(value, bitmask) {
|
||
|
|
return (value & bitmask) === bitmask;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), DOMPropertyInjection = {
|
||
|
|
MUST_USE_PROPERTY: 1,
|
||
|
|
HAS_BOOLEAN_VALUE: 4,
|
||
|
|
HAS_NUMERIC_VALUE: 8,
|
||
|
|
HAS_POSITIVE_NUMERIC_VALUE: 24,
|
||
|
|
HAS_OVERLOADED_BOOLEAN_VALUE: 32,
|
||
|
|
injectDOMPropertyConfig: function(domPropertyConfig) {
|
||
|
|
var Injection = DOMPropertyInjection, Properties = domPropertyConfig.Properties || {}, DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}, DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}, DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {}, DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
|
||
|
|
domPropertyConfig.isCustomAttribute && DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);
|
||
|
|
for (var propName in Properties) {
|
||
|
|
DOMProperty.properties.hasOwnProperty(propName) ? "production" !== process.env.NODE_ENV ? invariant(!1, "injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.", propName) : _prodInvariant("48", propName) : void 0;
|
||
|
|
var lowerCased = propName.toLowerCase(), propConfig = Properties[propName], propertyInfo = {
|
||
|
|
attributeName: lowerCased,
|
||
|
|
attributeNamespace: null,
|
||
|
|
propertyName: propName,
|
||
|
|
mutationMethod: null,
|
||
|
|
mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
|
||
|
|
hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
|
||
|
|
hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
|
||
|
|
hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
|
||
|
|
hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
|
||
|
|
};
|
||
|
|
if (propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1 ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s", propName) : _prodInvariant("50", propName),
|
||
|
|
"production" !== process.env.NODE_ENV && (DOMProperty.getPossibleStandardName[lowerCased] = propName),
|
||
|
|
DOMAttributeNames.hasOwnProperty(propName)) {
|
||
|
|
var attributeName = DOMAttributeNames[propName];
|
||
|
|
propertyInfo.attributeName = attributeName, "production" !== process.env.NODE_ENV && (DOMProperty.getPossibleStandardName[attributeName] = propName);
|
||
|
|
}
|
||
|
|
DOMAttributeNamespaces.hasOwnProperty(propName) && (propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]),
|
||
|
|
DOMPropertyNames.hasOwnProperty(propName) && (propertyInfo.propertyName = DOMPropertyNames[propName]),
|
||
|
|
DOMMutationMethods.hasOwnProperty(propName) && (propertyInfo.mutationMethod = DOMMutationMethods[propName]),
|
||
|
|
DOMProperty.properties[propName] = propertyInfo;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}, ATTRIBUTE_NAME_START_CHAR = ":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", DOMProperty = {
|
||
|
|
ID_ATTRIBUTE_NAME: "data-reactid",
|
||
|
|
ROOT_ATTRIBUTE_NAME: "data-reactroot",
|
||
|
|
ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
|
||
|
|
ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",
|
||
|
|
properties: {},
|
||
|
|
getPossibleStandardName: "production" !== process.env.NODE_ENV ? {
|
||
|
|
autofocus: "autoFocus"
|
||
|
|
} : null,
|
||
|
|
_isCustomAttributeFunctions: [],
|
||
|
|
isCustomAttribute: function(attributeName) {
|
||
|
|
for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {
|
||
|
|
var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];
|
||
|
|
if (isCustomAttributeFn(attributeName)) return !0;
|
||
|
|
}
|
||
|
|
return !1;
|
||
|
|
},
|
||
|
|
injection: DOMPropertyInjection
|
||
|
|
};
|
||
|
|
module.exports = DOMProperty;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactDOMComponentFlags = {
|
||
|
|
hasCachedChildNodes: 1
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMComponentFlags;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function inject() {
|
||
|
|
alreadyInjected || (alreadyInjected = !0, ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener),
|
||
|
|
ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder), ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree),
|
||
|
|
ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal), ReactInjection.EventPluginHub.injectEventPluginsByName({
|
||
|
|
SimpleEventPlugin: SimpleEventPlugin,
|
||
|
|
EnterLeaveEventPlugin: EnterLeaveEventPlugin,
|
||
|
|
ChangeEventPlugin: ChangeEventPlugin,
|
||
|
|
SelectEventPlugin: SelectEventPlugin,
|
||
|
|
BeforeInputEventPlugin: BeforeInputEventPlugin
|
||
|
|
}), ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent),
|
||
|
|
ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent), ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig),
|
||
|
|
ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig), ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig),
|
||
|
|
ReactInjection.EmptyComponent.injectEmptyComponentFactory(function(instantiate) {
|
||
|
|
return new ReactDOMEmptyComponent(instantiate);
|
||
|
|
}), ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction),
|
||
|
|
ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy), ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment));
|
||
|
|
}
|
||
|
|
var ARIADOMPropertyConfig = __webpack_require__(44), BeforeInputEventPlugin = __webpack_require__(45), ChangeEventPlugin = __webpack_require__(60), DefaultEventPluginOrder = __webpack_require__(78), EnterLeaveEventPlugin = __webpack_require__(79), HTMLDOMPropertyConfig = __webpack_require__(84), ReactComponentBrowserEnvironment = __webpack_require__(85), ReactDOMComponent = __webpack_require__(98), ReactDOMComponentTree = __webpack_require__(39), ReactDOMEmptyComponent = __webpack_require__(143), ReactDOMTreeTraversal = __webpack_require__(144), ReactDOMTextComponent = __webpack_require__(145), ReactDefaultBatchingStrategy = __webpack_require__(146), ReactEventListener = __webpack_require__(147), ReactInjection = __webpack_require__(150), ReactReconcileTransaction = __webpack_require__(151), SVGDOMPropertyConfig = __webpack_require__(159), SelectEventPlugin = __webpack_require__(160), SimpleEventPlugin = __webpack_require__(161), alreadyInjected = !1;
|
||
|
|
module.exports = {
|
||
|
|
inject: inject
|
||
|
|
};
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ARIADOMPropertyConfig = {
|
||
|
|
Properties: {
|
||
|
|
"aria-current": 0,
|
||
|
|
"aria-details": 0,
|
||
|
|
"aria-disabled": 0,
|
||
|
|
"aria-hidden": 0,
|
||
|
|
"aria-invalid": 0,
|
||
|
|
"aria-keyshortcuts": 0,
|
||
|
|
"aria-label": 0,
|
||
|
|
"aria-roledescription": 0,
|
||
|
|
"aria-autocomplete": 0,
|
||
|
|
"aria-checked": 0,
|
||
|
|
"aria-expanded": 0,
|
||
|
|
"aria-haspopup": 0,
|
||
|
|
"aria-level": 0,
|
||
|
|
"aria-modal": 0,
|
||
|
|
"aria-multiline": 0,
|
||
|
|
"aria-multiselectable": 0,
|
||
|
|
"aria-orientation": 0,
|
||
|
|
"aria-placeholder": 0,
|
||
|
|
"aria-pressed": 0,
|
||
|
|
"aria-readonly": 0,
|
||
|
|
"aria-required": 0,
|
||
|
|
"aria-selected": 0,
|
||
|
|
"aria-sort": 0,
|
||
|
|
"aria-valuemax": 0,
|
||
|
|
"aria-valuemin": 0,
|
||
|
|
"aria-valuenow": 0,
|
||
|
|
"aria-valuetext": 0,
|
||
|
|
"aria-atomic": 0,
|
||
|
|
"aria-busy": 0,
|
||
|
|
"aria-live": 0,
|
||
|
|
"aria-relevant": 0,
|
||
|
|
"aria-dropeffect": 0,
|
||
|
|
"aria-grabbed": 0,
|
||
|
|
"aria-activedescendant": 0,
|
||
|
|
"aria-colcount": 0,
|
||
|
|
"aria-colindex": 0,
|
||
|
|
"aria-colspan": 0,
|
||
|
|
"aria-controls": 0,
|
||
|
|
"aria-describedby": 0,
|
||
|
|
"aria-errormessage": 0,
|
||
|
|
"aria-flowto": 0,
|
||
|
|
"aria-labelledby": 0,
|
||
|
|
"aria-owns": 0,
|
||
|
|
"aria-posinset": 0,
|
||
|
|
"aria-rowcount": 0,
|
||
|
|
"aria-rowindex": 0,
|
||
|
|
"aria-rowspan": 0,
|
||
|
|
"aria-setsize": 0
|
||
|
|
},
|
||
|
|
DOMAttributeNames: {},
|
||
|
|
DOMPropertyNames: {}
|
||
|
|
};
|
||
|
|
module.exports = ARIADOMPropertyConfig;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function isPresto() {
|
||
|
|
var opera = window.opera;
|
||
|
|
return "object" == typeof opera && "function" == typeof opera.version && parseInt(opera.version(), 10) <= 12;
|
||
|
|
}
|
||
|
|
function isKeypressCommand(nativeEvent) {
|
||
|
|
return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && !(nativeEvent.ctrlKey && nativeEvent.altKey);
|
||
|
|
}
|
||
|
|
function getCompositionEventType(topLevelType) {
|
||
|
|
switch (topLevelType) {
|
||
|
|
case "topCompositionStart":
|
||
|
|
return eventTypes.compositionStart;
|
||
|
|
|
||
|
|
case "topCompositionEnd":
|
||
|
|
return eventTypes.compositionEnd;
|
||
|
|
|
||
|
|
case "topCompositionUpdate":
|
||
|
|
return eventTypes.compositionUpdate;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function isFallbackCompositionStart(topLevelType, nativeEvent) {
|
||
|
|
return "topKeyDown" === topLevelType && nativeEvent.keyCode === START_KEYCODE;
|
||
|
|
}
|
||
|
|
function isFallbackCompositionEnd(topLevelType, nativeEvent) {
|
||
|
|
switch (topLevelType) {
|
||
|
|
case "topKeyUp":
|
||
|
|
return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
|
||
|
|
|
||
|
|
case "topKeyDown":
|
||
|
|
return nativeEvent.keyCode !== START_KEYCODE;
|
||
|
|
|
||
|
|
case "topKeyPress":
|
||
|
|
case "topMouseDown":
|
||
|
|
case "topBlur":
|
||
|
|
return !0;
|
||
|
|
|
||
|
|
default:
|
||
|
|
return !1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function getDataFromCustomEvent(nativeEvent) {
|
||
|
|
var detail = nativeEvent.detail;
|
||
|
|
return "object" == typeof detail && "data" in detail ? detail.data : null;
|
||
|
|
}
|
||
|
|
function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
var eventType, fallbackData;
|
||
|
|
if (canUseCompositionEvent ? eventType = getCompositionEventType(topLevelType) : currentComposition ? isFallbackCompositionEnd(topLevelType, nativeEvent) && (eventType = eventTypes.compositionEnd) : isFallbackCompositionStart(topLevelType, nativeEvent) && (eventType = eventTypes.compositionStart),
|
||
|
|
!eventType) return null;
|
||
|
|
useFallbackCompositionData && (currentComposition || eventType !== eventTypes.compositionStart ? eventType === eventTypes.compositionEnd && currentComposition && (fallbackData = currentComposition.getData()) : currentComposition = FallbackCompositionState.getPooled(nativeEventTarget));
|
||
|
|
var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
|
||
|
|
if (fallbackData) event.data = fallbackData; else {
|
||
|
|
var customData = getDataFromCustomEvent(nativeEvent);
|
||
|
|
null !== customData && (event.data = customData);
|
||
|
|
}
|
||
|
|
return EventPropagators.accumulateTwoPhaseDispatches(event), event;
|
||
|
|
}
|
||
|
|
function getNativeBeforeInputChars(topLevelType, nativeEvent) {
|
||
|
|
switch (topLevelType) {
|
||
|
|
case "topCompositionEnd":
|
||
|
|
return getDataFromCustomEvent(nativeEvent);
|
||
|
|
|
||
|
|
case "topKeyPress":
|
||
|
|
var which = nativeEvent.which;
|
||
|
|
return which !== SPACEBAR_CODE ? null : (hasSpaceKeypress = !0, SPACEBAR_CHAR);
|
||
|
|
|
||
|
|
case "topTextInput":
|
||
|
|
var chars = nativeEvent.data;
|
||
|
|
return chars === SPACEBAR_CHAR && hasSpaceKeypress ? null : chars;
|
||
|
|
|
||
|
|
default:
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
|
||
|
|
if (currentComposition) {
|
||
|
|
if ("topCompositionEnd" === topLevelType || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
|
||
|
|
var chars = currentComposition.getData();
|
||
|
|
return FallbackCompositionState.release(currentComposition), currentComposition = null,
|
||
|
|
chars;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
switch (topLevelType) {
|
||
|
|
case "topPaste":
|
||
|
|
return null;
|
||
|
|
|
||
|
|
case "topKeyPress":
|
||
|
|
return nativeEvent.which && !isKeypressCommand(nativeEvent) ? String.fromCharCode(nativeEvent.which) : null;
|
||
|
|
|
||
|
|
case "topCompositionEnd":
|
||
|
|
return useFallbackCompositionData ? null : nativeEvent.data;
|
||
|
|
|
||
|
|
default:
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
var chars;
|
||
|
|
if (chars = canUseTextInputEvent ? getNativeBeforeInputChars(topLevelType, nativeEvent) : getFallbackBeforeInputChars(topLevelType, nativeEvent),
|
||
|
|
!chars) return null;
|
||
|
|
var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
|
||
|
|
return event.data = chars, EventPropagators.accumulateTwoPhaseDispatches(event),
|
||
|
|
event;
|
||
|
|
}
|
||
|
|
var EventPropagators = __webpack_require__(46), ExecutionEnvironment = __webpack_require__(53), FallbackCompositionState = __webpack_require__(54), SyntheticCompositionEvent = __webpack_require__(57), SyntheticInputEvent = __webpack_require__(59), END_KEYCODES = [ 9, 13, 27, 32 ], START_KEYCODE = 229, canUseCompositionEvent = ExecutionEnvironment.canUseDOM && "CompositionEvent" in window, documentMode = null;
|
||
|
|
ExecutionEnvironment.canUseDOM && "documentMode" in document && (documentMode = document.documentMode);
|
||
|
|
var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && "TextEvent" in window && !documentMode && !isPresto(), useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11), SPACEBAR_CODE = 32, SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), eventTypes = {
|
||
|
|
beforeInput: {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: "onBeforeInput",
|
||
|
|
captured: "onBeforeInputCapture"
|
||
|
|
},
|
||
|
|
dependencies: [ "topCompositionEnd", "topKeyPress", "topTextInput", "topPaste" ]
|
||
|
|
},
|
||
|
|
compositionEnd: {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: "onCompositionEnd",
|
||
|
|
captured: "onCompositionEndCapture"
|
||
|
|
},
|
||
|
|
dependencies: [ "topBlur", "topCompositionEnd", "topKeyDown", "topKeyPress", "topKeyUp", "topMouseDown" ]
|
||
|
|
},
|
||
|
|
compositionStart: {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: "onCompositionStart",
|
||
|
|
captured: "onCompositionStartCapture"
|
||
|
|
},
|
||
|
|
dependencies: [ "topBlur", "topCompositionStart", "topKeyDown", "topKeyPress", "topKeyUp", "topMouseDown" ]
|
||
|
|
},
|
||
|
|
compositionUpdate: {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: "onCompositionUpdate",
|
||
|
|
captured: "onCompositionUpdateCapture"
|
||
|
|
},
|
||
|
|
dependencies: [ "topBlur", "topCompositionUpdate", "topKeyDown", "topKeyPress", "topKeyUp", "topMouseDown" ]
|
||
|
|
}
|
||
|
|
}, hasSpaceKeypress = !1, currentComposition = null, BeforeInputEventPlugin = {
|
||
|
|
eventTypes: eventTypes,
|
||
|
|
extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
return [ extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) ];
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = BeforeInputEventPlugin;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function listenerAtPhase(inst, event, propagationPhase) {
|
||
|
|
var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
|
||
|
|
return getListener(inst, registrationName);
|
||
|
|
}
|
||
|
|
function accumulateDirectionalDispatches(inst, phase, event) {
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(inst, "Dispatching inst must not be null") : void 0);
|
||
|
|
var listener = listenerAtPhase(inst, event, phase);
|
||
|
|
listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener),
|
||
|
|
event._dispatchInstances = accumulateInto(event._dispatchInstances, inst));
|
||
|
|
}
|
||
|
|
function accumulateTwoPhaseDispatchesSingle(event) {
|
||
|
|
event && event.dispatchConfig.phasedRegistrationNames && EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
|
||
|
|
}
|
||
|
|
function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {
|
||
|
|
if (event && event.dispatchConfig.phasedRegistrationNames) {
|
||
|
|
var targetInst = event._targetInst, parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;
|
||
|
|
EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function accumulateDispatches(inst, ignoredDirection, event) {
|
||
|
|
if (event && event.dispatchConfig.registrationName) {
|
||
|
|
var registrationName = event.dispatchConfig.registrationName, listener = getListener(inst, registrationName);
|
||
|
|
listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener),
|
||
|
|
event._dispatchInstances = accumulateInto(event._dispatchInstances, inst));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function accumulateDirectDispatchesSingle(event) {
|
||
|
|
event && event.dispatchConfig.registrationName && accumulateDispatches(event._targetInst, null, event);
|
||
|
|
}
|
||
|
|
function accumulateTwoPhaseDispatches(events) {
|
||
|
|
forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
|
||
|
|
}
|
||
|
|
function accumulateTwoPhaseDispatchesSkipTarget(events) {
|
||
|
|
forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);
|
||
|
|
}
|
||
|
|
function accumulateEnterLeaveDispatches(leave, enter, from, to) {
|
||
|
|
EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
|
||
|
|
}
|
||
|
|
function accumulateDirectDispatches(events) {
|
||
|
|
forEachAccumulated(events, accumulateDirectDispatchesSingle);
|
||
|
|
}
|
||
|
|
var EventPluginHub = __webpack_require__(47), EventPluginUtils = __webpack_require__(49), accumulateInto = __webpack_require__(51), forEachAccumulated = __webpack_require__(52), warning = __webpack_require__(8), getListener = EventPluginHub.getListener, EventPropagators = {
|
||
|
|
accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,
|
||
|
|
accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,
|
||
|
|
accumulateDirectDispatches: accumulateDirectDispatches,
|
||
|
|
accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches
|
||
|
|
};
|
||
|
|
module.exports = EventPropagators;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function isInteractive(tag) {
|
||
|
|
return "button" === tag || "input" === tag || "select" === tag || "textarea" === tag;
|
||
|
|
}
|
||
|
|
function shouldPreventMouseEvent(name, type, props) {
|
||
|
|
switch (name) {
|
||
|
|
case "onClick":
|
||
|
|
case "onClickCapture":
|
||
|
|
case "onDoubleClick":
|
||
|
|
case "onDoubleClickCapture":
|
||
|
|
case "onMouseDown":
|
||
|
|
case "onMouseDownCapture":
|
||
|
|
case "onMouseMove":
|
||
|
|
case "onMouseMoveCapture":
|
||
|
|
case "onMouseUp":
|
||
|
|
case "onMouseUpCapture":
|
||
|
|
return !(!props.disabled || !isInteractive(type));
|
||
|
|
|
||
|
|
default:
|
||
|
|
return !1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), EventPluginRegistry = __webpack_require__(48), EventPluginUtils = __webpack_require__(49), ReactErrorUtils = __webpack_require__(50), accumulateInto = __webpack_require__(51), forEachAccumulated = __webpack_require__(52), invariant = __webpack_require__(12), listenerBank = {}, eventQueue = null, executeDispatchesAndRelease = function(event, simulated) {
|
||
|
|
event && (EventPluginUtils.executeDispatchesInOrder(event, simulated), event.isPersistent() || event.constructor.release(event));
|
||
|
|
}, executeDispatchesAndReleaseSimulated = function(e) {
|
||
|
|
return executeDispatchesAndRelease(e, !0);
|
||
|
|
}, executeDispatchesAndReleaseTopLevel = function(e) {
|
||
|
|
return executeDispatchesAndRelease(e, !1);
|
||
|
|
}, getDictionaryKey = function(inst) {
|
||
|
|
return "." + inst._rootNodeID;
|
||
|
|
}, EventPluginHub = {
|
||
|
|
injection: {
|
||
|
|
injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,
|
||
|
|
injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName
|
||
|
|
},
|
||
|
|
putListener: function(inst, registrationName, listener) {
|
||
|
|
"function" != typeof listener ? "production" !== process.env.NODE_ENV ? invariant(!1, "Expected %s listener to be a function, instead got type %s", registrationName, typeof listener) : _prodInvariant("94", registrationName, typeof listener) : void 0;
|
||
|
|
var key = getDictionaryKey(inst), bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});
|
||
|
|
bankForRegistrationName[key] = listener;
|
||
|
|
var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
|
||
|
|
PluginModule && PluginModule.didPutListener && PluginModule.didPutListener(inst, registrationName, listener);
|
||
|
|
},
|
||
|
|
getListener: function(inst, registrationName) {
|
||
|
|
var bankForRegistrationName = listenerBank[registrationName];
|
||
|
|
if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) return null;
|
||
|
|
var key = getDictionaryKey(inst);
|
||
|
|
return bankForRegistrationName && bankForRegistrationName[key];
|
||
|
|
},
|
||
|
|
deleteListener: function(inst, registrationName) {
|
||
|
|
var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
|
||
|
|
PluginModule && PluginModule.willDeleteListener && PluginModule.willDeleteListener(inst, registrationName);
|
||
|
|
var bankForRegistrationName = listenerBank[registrationName];
|
||
|
|
if (bankForRegistrationName) {
|
||
|
|
var key = getDictionaryKey(inst);
|
||
|
|
delete bankForRegistrationName[key];
|
||
|
|
}
|
||
|
|
},
|
||
|
|
deleteAllListeners: function(inst) {
|
||
|
|
var key = getDictionaryKey(inst);
|
||
|
|
for (var registrationName in listenerBank) if (listenerBank.hasOwnProperty(registrationName) && listenerBank[registrationName][key]) {
|
||
|
|
var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
|
||
|
|
PluginModule && PluginModule.willDeleteListener && PluginModule.willDeleteListener(inst, registrationName),
|
||
|
|
delete listenerBank[registrationName][key];
|
||
|
|
}
|
||
|
|
},
|
||
|
|
extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
for (var events, plugins = EventPluginRegistry.plugins, i = 0; i < plugins.length; i++) {
|
||
|
|
var possiblePlugin = plugins[i];
|
||
|
|
if (possiblePlugin) {
|
||
|
|
var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
|
||
|
|
extractedEvents && (events = accumulateInto(events, extractedEvents));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return events;
|
||
|
|
},
|
||
|
|
enqueueEvents: function(events) {
|
||
|
|
events && (eventQueue = accumulateInto(eventQueue, events));
|
||
|
|
},
|
||
|
|
processEventQueue: function(simulated) {
|
||
|
|
var processingEventQueue = eventQueue;
|
||
|
|
eventQueue = null, simulated ? forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated) : forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel),
|
||
|
|
eventQueue ? "production" !== process.env.NODE_ENV ? invariant(!1, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.") : _prodInvariant("95") : void 0,
|
||
|
|
ReactErrorUtils.rethrowCaughtError();
|
||
|
|
},
|
||
|
|
__purge: function() {
|
||
|
|
listenerBank = {};
|
||
|
|
},
|
||
|
|
__getListenerBank: function() {
|
||
|
|
return listenerBank;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = EventPluginHub;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function recomputePluginOrdering() {
|
||
|
|
if (eventPluginOrder) for (var pluginName in namesToPlugins) {
|
||
|
|
var pluginModule = namesToPlugins[pluginName], pluginIndex = eventPluginOrder.indexOf(pluginName);
|
||
|
|
if (pluginIndex > -1 ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.", pluginName) : _prodInvariant("96", pluginName),
|
||
|
|
!EventPluginRegistry.plugins[pluginIndex]) {
|
||
|
|
pluginModule.extractEvents ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.", pluginName) : _prodInvariant("97", pluginName),
|
||
|
|
EventPluginRegistry.plugins[pluginIndex] = pluginModule;
|
||
|
|
var publishedEvents = pluginModule.eventTypes;
|
||
|
|
for (var eventName in publishedEvents) publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName) : _prodInvariant("98", eventName, pluginName);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
|
||
|
|
EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.", eventName) : _prodInvariant("99", eventName) : void 0,
|
||
|
|
EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;
|
||
|
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
||
|
|
if (phasedRegistrationNames) {
|
||
|
|
for (var phaseName in phasedRegistrationNames) if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
|
||
|
|
var phasedRegistrationName = phasedRegistrationNames[phaseName];
|
||
|
|
publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
|
||
|
|
}
|
||
|
|
return !0;
|
||
|
|
}
|
||
|
|
return !!dispatchConfig.registrationName && (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName),
|
||
|
|
!0);
|
||
|
|
}
|
||
|
|
function publishRegistrationName(registrationName, pluginModule, eventName) {
|
||
|
|
if (EventPluginRegistry.registrationNameModules[registrationName] ? "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.", registrationName) : _prodInvariant("100", registrationName) : void 0,
|
||
|
|
EventPluginRegistry.registrationNameModules[registrationName] = pluginModule, EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies,
|
||
|
|
"production" !== process.env.NODE_ENV) {
|
||
|
|
var lowerCasedName = registrationName.toLowerCase();
|
||
|
|
EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName,
|
||
|
|
"onDoubleClick" === registrationName && (EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), eventPluginOrder = null, namesToPlugins = {}, EventPluginRegistry = {
|
||
|
|
plugins: [],
|
||
|
|
eventNameDispatchConfigs: {},
|
||
|
|
registrationNameModules: {},
|
||
|
|
registrationNameDependencies: {},
|
||
|
|
possibleRegistrationNames: "production" !== process.env.NODE_ENV ? {} : null,
|
||
|
|
injectEventPluginOrder: function(injectedEventPluginOrder) {
|
||
|
|
eventPluginOrder ? "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.") : _prodInvariant("101") : void 0,
|
||
|
|
eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder), recomputePluginOrdering();
|
||
|
|
},
|
||
|
|
injectEventPluginsByName: function(injectedNamesToPlugins) {
|
||
|
|
var isOrderingDirty = !1;
|
||
|
|
for (var pluginName in injectedNamesToPlugins) if (injectedNamesToPlugins.hasOwnProperty(pluginName)) {
|
||
|
|
var pluginModule = injectedNamesToPlugins[pluginName];
|
||
|
|
namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (namesToPlugins[pluginName] ? "production" !== process.env.NODE_ENV ? invariant(!1, "EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.", pluginName) : _prodInvariant("102", pluginName) : void 0,
|
||
|
|
namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0);
|
||
|
|
}
|
||
|
|
isOrderingDirty && recomputePluginOrdering();
|
||
|
|
},
|
||
|
|
getPluginModuleForEvent: function(event) {
|
||
|
|
var dispatchConfig = event.dispatchConfig;
|
||
|
|
if (dispatchConfig.registrationName) return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;
|
||
|
|
if (void 0 !== dispatchConfig.phasedRegistrationNames) {
|
||
|
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
||
|
|
for (var phase in phasedRegistrationNames) if (phasedRegistrationNames.hasOwnProperty(phase)) {
|
||
|
|
var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];
|
||
|
|
if (pluginModule) return pluginModule;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
},
|
||
|
|
_resetEventPlugins: function() {
|
||
|
|
eventPluginOrder = null;
|
||
|
|
for (var pluginName in namesToPlugins) namesToPlugins.hasOwnProperty(pluginName) && delete namesToPlugins[pluginName];
|
||
|
|
EventPluginRegistry.plugins.length = 0;
|
||
|
|
var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs;
|
||
|
|
for (var eventName in eventNameDispatchConfigs) eventNameDispatchConfigs.hasOwnProperty(eventName) && delete eventNameDispatchConfigs[eventName];
|
||
|
|
var registrationNameModules = EventPluginRegistry.registrationNameModules;
|
||
|
|
for (var registrationName in registrationNameModules) registrationNameModules.hasOwnProperty(registrationName) && delete registrationNameModules[registrationName];
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;
|
||
|
|
for (var lowerCasedName in possibleRegistrationNames) possibleRegistrationNames.hasOwnProperty(lowerCasedName) && delete possibleRegistrationNames[lowerCasedName];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = EventPluginRegistry;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function isEndish(topLevelType) {
|
||
|
|
return "topMouseUp" === topLevelType || "topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType;
|
||
|
|
}
|
||
|
|
function isMoveish(topLevelType) {
|
||
|
|
return "topMouseMove" === topLevelType || "topTouchMove" === topLevelType;
|
||
|
|
}
|
||
|
|
function isStartish(topLevelType) {
|
||
|
|
return "topMouseDown" === topLevelType || "topTouchStart" === topLevelType;
|
||
|
|
}
|
||
|
|
function executeDispatch(event, simulated, listener, inst) {
|
||
|
|
var type = event.type || "unknown-event";
|
||
|
|
event.currentTarget = EventPluginUtils.getNodeFromInstance(inst), simulated ? ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event) : ReactErrorUtils.invokeGuardedCallback(type, listener, event),
|
||
|
|
event.currentTarget = null;
|
||
|
|
}
|
||
|
|
function executeDispatchesInOrder(event, simulated) {
|
||
|
|
var dispatchListeners = event._dispatchListeners, dispatchInstances = event._dispatchInstances;
|
||
|
|
if ("production" !== process.env.NODE_ENV && validateEventDispatches(event), Array.isArray(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); else dispatchListeners && executeDispatch(event, simulated, dispatchListeners, dispatchInstances);
|
||
|
|
event._dispatchListeners = null, event._dispatchInstances = null;
|
||
|
|
}
|
||
|
|
function executeDispatchesInOrderStopAtTrueImpl(event) {
|
||
|
|
var dispatchListeners = event._dispatchListeners, dispatchInstances = event._dispatchInstances;
|
||
|
|
if ("production" !== process.env.NODE_ENV && validateEventDispatches(event), Array.isArray(dispatchListeners)) {
|
||
|
|
for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) if (dispatchListeners[i](event, dispatchInstances[i])) return dispatchInstances[i];
|
||
|
|
} else if (dispatchListeners && dispatchListeners(event, dispatchInstances)) return dispatchInstances;
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
function executeDispatchesInOrderStopAtTrue(event) {
|
||
|
|
var ret = executeDispatchesInOrderStopAtTrueImpl(event);
|
||
|
|
return event._dispatchInstances = null, event._dispatchListeners = null, ret;
|
||
|
|
}
|
||
|
|
function executeDirectDispatch(event) {
|
||
|
|
"production" !== process.env.NODE_ENV && validateEventDispatches(event);
|
||
|
|
var dispatchListener = event._dispatchListeners, dispatchInstance = event._dispatchInstances;
|
||
|
|
Array.isArray(dispatchListener) ? "production" !== process.env.NODE_ENV ? invariant(!1, "executeDirectDispatch(...): Invalid `event`.") : _prodInvariant("103") : void 0,
|
||
|
|
event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;
|
||
|
|
var res = dispatchListener ? dispatchListener(event) : null;
|
||
|
|
return event.currentTarget = null, event._dispatchListeners = null, event._dispatchInstances = null,
|
||
|
|
res;
|
||
|
|
}
|
||
|
|
function hasDispatches(event) {
|
||
|
|
return !!event._dispatchListeners;
|
||
|
|
}
|
||
|
|
var ComponentTree, TreeTraversal, validateEventDispatches, _prodInvariant = __webpack_require__(40), ReactErrorUtils = __webpack_require__(50), invariant = __webpack_require__(12), warning = __webpack_require__(8), injection = {
|
||
|
|
injectComponentTree: function(Injected) {
|
||
|
|
ComponentTree = Injected, "production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, "EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode.") : void 0);
|
||
|
|
},
|
||
|
|
injectTreeTraversal: function(Injected) {
|
||
|
|
TreeTraversal = Injected, "production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, "EventPluginUtils.injection.injectTreeTraversal(...): Injected module is missing isAncestor or getLowestCommonAncestor.") : void 0);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
"production" !== process.env.NODE_ENV && (validateEventDispatches = function(event) {
|
||
|
|
var dispatchListeners = event._dispatchListeners, dispatchInstances = event._dispatchInstances, listenersIsArr = Array.isArray(dispatchListeners), listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0, instancesIsArr = Array.isArray(dispatchInstances), instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, "EventPluginUtils: Invalid `event`.") : void 0;
|
||
|
|
});
|
||
|
|
var EventPluginUtils = {
|
||
|
|
isEndish: isEndish,
|
||
|
|
isMoveish: isMoveish,
|
||
|
|
isStartish: isStartish,
|
||
|
|
executeDirectDispatch: executeDirectDispatch,
|
||
|
|
executeDispatchesInOrder: executeDispatchesInOrder,
|
||
|
|
executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue,
|
||
|
|
hasDispatches: hasDispatches,
|
||
|
|
getInstanceFromNode: function(node) {
|
||
|
|
return ComponentTree.getInstanceFromNode(node);
|
||
|
|
},
|
||
|
|
getNodeFromInstance: function(node) {
|
||
|
|
return ComponentTree.getNodeFromInstance(node);
|
||
|
|
},
|
||
|
|
isAncestor: function(a, b) {
|
||
|
|
return TreeTraversal.isAncestor(a, b);
|
||
|
|
},
|
||
|
|
getLowestCommonAncestor: function(a, b) {
|
||
|
|
return TreeTraversal.getLowestCommonAncestor(a, b);
|
||
|
|
},
|
||
|
|
getParentInstance: function(inst) {
|
||
|
|
return TreeTraversal.getParentInstance(inst);
|
||
|
|
},
|
||
|
|
traverseTwoPhase: function(target, fn, arg) {
|
||
|
|
return TreeTraversal.traverseTwoPhase(target, fn, arg);
|
||
|
|
},
|
||
|
|
traverseEnterLeave: function(from, to, fn, argFrom, argTo) {
|
||
|
|
return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo);
|
||
|
|
},
|
||
|
|
injection: injection
|
||
|
|
};
|
||
|
|
module.exports = EventPluginUtils;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function invokeGuardedCallback(name, func, a) {
|
||
|
|
try {
|
||
|
|
func(a);
|
||
|
|
} catch (x) {
|
||
|
|
null === caughtError && (caughtError = x);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var caughtError = null, ReactErrorUtils = {
|
||
|
|
invokeGuardedCallback: invokeGuardedCallback,
|
||
|
|
invokeGuardedCallbackWithCatch: invokeGuardedCallback,
|
||
|
|
rethrowCaughtError: function() {
|
||
|
|
if (caughtError) {
|
||
|
|
var error = caughtError;
|
||
|
|
throw caughtError = null, error;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
if ("production" !== process.env.NODE_ENV && "undefined" != typeof window && "function" == typeof window.dispatchEvent && "undefined" != typeof document && "function" == typeof document.createEvent) {
|
||
|
|
var fakeNode = document.createElement("react");
|
||
|
|
ReactErrorUtils.invokeGuardedCallback = function(name, func, a) {
|
||
|
|
var boundFunc = func.bind(null, a), evtType = "react-" + name;
|
||
|
|
fakeNode.addEventListener(evtType, boundFunc, !1);
|
||
|
|
var evt = document.createEvent("Event");
|
||
|
|
evt.initEvent(evtType, !1, !1), fakeNode.dispatchEvent(evt), fakeNode.removeEventListener(evtType, boundFunc, !1);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
module.exports = ReactErrorUtils;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function accumulateInto(current, next) {
|
||
|
|
return null == next ? "production" !== process.env.NODE_ENV ? invariant(!1, "accumulateInto(...): Accumulated items must not be null or undefined.") : _prodInvariant("30") : void 0,
|
||
|
|
null == current ? next : Array.isArray(current) ? Array.isArray(next) ? (current.push.apply(current, next),
|
||
|
|
current) : (current.push(next), current) : Array.isArray(next) ? [ current ].concat(next) : [ current, next ];
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12);
|
||
|
|
module.exports = accumulateInto;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function forEachAccumulated(arr, cb, scope) {
|
||
|
|
Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr);
|
||
|
|
}
|
||
|
|
module.exports = forEachAccumulated;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"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";
|
||
|
|
function FallbackCompositionState(root) {
|
||
|
|
this._root = root, this._startText = this.getText(), this._fallbackText = null;
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), PooledClass = __webpack_require__(55), getTextContentAccessor = __webpack_require__(56);
|
||
|
|
_assign(FallbackCompositionState.prototype, {
|
||
|
|
destructor: function() {
|
||
|
|
this._root = null, this._startText = null, this._fallbackText = null;
|
||
|
|
},
|
||
|
|
getText: function() {
|
||
|
|
return "value" in this._root ? this._root.value : this._root[getTextContentAccessor()];
|
||
|
|
},
|
||
|
|
getData: function() {
|
||
|
|
if (this._fallbackText) return this._fallbackText;
|
||
|
|
var start, end, startValue = this._startText, startLength = startValue.length, endValue = this.getText(), endLength = endValue.length;
|
||
|
|
for (start = 0; start < startLength && startValue[start] === endValue[start]; start++) ;
|
||
|
|
var minEnd = startLength - start;
|
||
|
|
for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++) ;
|
||
|
|
var sliceTail = end > 1 ? 1 - end : void 0;
|
||
|
|
return this._fallbackText = endValue.slice(start, sliceTail), this._fallbackText;
|
||
|
|
}
|
||
|
|
}), PooledClass.addPoolingTo(FallbackCompositionState), module.exports = FallbackCompositionState;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), oneArgumentPooler = function(copyFieldsFrom) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, copyFieldsFrom), instance;
|
||
|
|
}
|
||
|
|
return new Klass(copyFieldsFrom);
|
||
|
|
}, twoArgumentPooler = function(a1, a2) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, a1, a2), instance;
|
||
|
|
}
|
||
|
|
return new Klass(a1, a2);
|
||
|
|
}, threeArgumentPooler = function(a1, a2, a3) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, a1, a2, a3), instance;
|
||
|
|
}
|
||
|
|
return new Klass(a1, a2, a3);
|
||
|
|
}, fourArgumentPooler = function(a1, a2, a3, a4) {
|
||
|
|
var Klass = this;
|
||
|
|
if (Klass.instancePool.length) {
|
||
|
|
var instance = Klass.instancePool.pop();
|
||
|
|
return Klass.call(instance, a1, a2, a3, a4), instance;
|
||
|
|
}
|
||
|
|
return new Klass(a1, a2, a3, a4);
|
||
|
|
}, standardReleaser = function(instance) {
|
||
|
|
var Klass = this;
|
||
|
|
instance instanceof Klass ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Trying to release an instance into a pool of a different type.") : _prodInvariant("25"),
|
||
|
|
instance.destructor(), Klass.instancePool.length < Klass.poolSize && Klass.instancePool.push(instance);
|
||
|
|
}, DEFAULT_POOL_SIZE = 10, DEFAULT_POOLER = oneArgumentPooler, addPoolingTo = function(CopyConstructor, pooler) {
|
||
|
|
var NewKlass = CopyConstructor;
|
||
|
|
return NewKlass.instancePool = [], NewKlass.getPooled = pooler || DEFAULT_POOLER,
|
||
|
|
NewKlass.poolSize || (NewKlass.poolSize = DEFAULT_POOL_SIZE), NewKlass.release = standardReleaser,
|
||
|
|
NewKlass;
|
||
|
|
}, PooledClass = {
|
||
|
|
addPoolingTo: addPoolingTo,
|
||
|
|
oneArgumentPooler: oneArgumentPooler,
|
||
|
|
twoArgumentPooler: twoArgumentPooler,
|
||
|
|
threeArgumentPooler: threeArgumentPooler,
|
||
|
|
fourArgumentPooler: fourArgumentPooler
|
||
|
|
};
|
||
|
|
module.exports = PooledClass;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function getTextContentAccessor() {
|
||
|
|
return !contentKey && ExecutionEnvironment.canUseDOM && (contentKey = "textContent" in document.documentElement ? "textContent" : "innerText"),
|
||
|
|
contentKey;
|
||
|
|
}
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53), contentKey = null;
|
||
|
|
module.exports = getTextContentAccessor;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticEvent = __webpack_require__(58), CompositionEventInterface = {
|
||
|
|
data: null
|
||
|
|
};
|
||
|
|
SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface),
|
||
|
|
module.exports = SyntheticCompositionEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
"production" !== process.env.NODE_ENV && (delete this.nativeEvent, delete this.preventDefault,
|
||
|
|
delete this.stopPropagation), this.dispatchConfig = dispatchConfig, this._targetInst = targetInst,
|
||
|
|
this.nativeEvent = nativeEvent;
|
||
|
|
var Interface = this.constructor.Interface;
|
||
|
|
for (var propName in Interface) if (Interface.hasOwnProperty(propName)) {
|
||
|
|
"production" !== process.env.NODE_ENV && delete this[propName];
|
||
|
|
var normalize = Interface[propName];
|
||
|
|
normalize ? this[propName] = normalize(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName];
|
||
|
|
}
|
||
|
|
var defaultPrevented = null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : nativeEvent.returnValue === !1;
|
||
|
|
return defaultPrevented ? this.isDefaultPrevented = emptyFunction.thatReturnsTrue : this.isDefaultPrevented = emptyFunction.thatReturnsFalse,
|
||
|
|
this.isPropagationStopped = emptyFunction.thatReturnsFalse, this;
|
||
|
|
}
|
||
|
|
function getPooledWarningPropertyDefinition(propName, getVal) {
|
||
|
|
function set(val) {
|
||
|
|
var action = isFunction ? "setting the method" : "setting the property";
|
||
|
|
return warn(action, "This is effectively a no-op"), val;
|
||
|
|
}
|
||
|
|
function get() {
|
||
|
|
var action = isFunction ? "accessing the method" : "accessing the property", result = isFunction ? "This is a no-op function" : "This is set to null";
|
||
|
|
return warn(action, result), getVal;
|
||
|
|
}
|
||
|
|
function warn(action, result) {
|
||
|
|
var warningCondition = !1;
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information.", action, propName, result) : void 0;
|
||
|
|
}
|
||
|
|
var isFunction = "function" == typeof getVal;
|
||
|
|
return {
|
||
|
|
configurable: !0,
|
||
|
|
set: set,
|
||
|
|
get: get
|
||
|
|
};
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), PooledClass = __webpack_require__(55), emptyFunction = __webpack_require__(9), warning = __webpack_require__(8), didWarnForAddedNewProperty = !1, isProxySupported = "function" == typeof Proxy, shouldBeReleasedProperties = [ "dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances" ], EventInterface = {
|
||
|
|
type: null,
|
||
|
|
target: null,
|
||
|
|
currentTarget: emptyFunction.thatReturnsNull,
|
||
|
|
eventPhase: null,
|
||
|
|
bubbles: null,
|
||
|
|
cancelable: null,
|
||
|
|
timeStamp: function(event) {
|
||
|
|
return event.timeStamp || Date.now();
|
||
|
|
},
|
||
|
|
defaultPrevented: null,
|
||
|
|
isTrusted: null
|
||
|
|
};
|
||
|
|
_assign(SyntheticEvent.prototype, {
|
||
|
|
preventDefault: function() {
|
||
|
|
this.defaultPrevented = !0;
|
||
|
|
var event = this.nativeEvent;
|
||
|
|
event && (event.preventDefault ? event.preventDefault() : "unknown" != typeof event.returnValue && (event.returnValue = !1),
|
||
|
|
this.isDefaultPrevented = emptyFunction.thatReturnsTrue);
|
||
|
|
},
|
||
|
|
stopPropagation: function() {
|
||
|
|
var event = this.nativeEvent;
|
||
|
|
event && (event.stopPropagation ? event.stopPropagation() : "unknown" != typeof event.cancelBubble && (event.cancelBubble = !0),
|
||
|
|
this.isPropagationStopped = emptyFunction.thatReturnsTrue);
|
||
|
|
},
|
||
|
|
persist: function() {
|
||
|
|
this.isPersistent = emptyFunction.thatReturnsTrue;
|
||
|
|
},
|
||
|
|
isPersistent: emptyFunction.thatReturnsFalse,
|
||
|
|
destructor: function() {
|
||
|
|
var Interface = this.constructor.Interface;
|
||
|
|
for (var propName in Interface) "production" !== process.env.NODE_ENV ? Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])) : this[propName] = null;
|
||
|
|
for (var i = 0; i < shouldBeReleasedProperties.length; i++) this[shouldBeReleasedProperties[i]] = null;
|
||
|
|
"production" !== process.env.NODE_ENV && (Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)),
|
||
|
|
Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", emptyFunction)),
|
||
|
|
Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", emptyFunction)));
|
||
|
|
}
|
||
|
|
}), SyntheticEvent.Interface = EventInterface, "production" !== process.env.NODE_ENV && isProxySupported && (SyntheticEvent = new Proxy(SyntheticEvent, {
|
||
|
|
construct: function(target, args) {
|
||
|
|
return this.apply(target, Object.create(target.prototype), args);
|
||
|
|
},
|
||
|
|
apply: function(constructor, that, args) {
|
||
|
|
return new Proxy(constructor.apply(that, args), {
|
||
|
|
set: function(target, prop, value) {
|
||
|
|
return "isPersistent" === prop || target.constructor.Interface.hasOwnProperty(prop) || shouldBeReleasedProperties.indexOf(prop) !== -1 || ("production" !== process.env.NODE_ENV ? warning(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're seeing this, you're adding a new property in the synthetic event object. The property is never released. See https://fb.me/react-event-pooling for more information.") : void 0,
|
||
|
|
didWarnForAddedNewProperty = !0), target[prop] = value, !0;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
})), SyntheticEvent.augmentClass = function(Class, Interface) {
|
||
|
|
var Super = this, E = function() {};
|
||
|
|
E.prototype = Super.prototype;
|
||
|
|
var prototype = new E();
|
||
|
|
_assign(prototype, Class.prototype), Class.prototype = prototype, Class.prototype.constructor = Class,
|
||
|
|
Class.Interface = _assign({}, Super.Interface, Interface), Class.augmentClass = Super.augmentClass,
|
||
|
|
PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
|
||
|
|
}, PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler), module.exports = SyntheticEvent;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticEvent = __webpack_require__(58), InputEventInterface = {
|
||
|
|
data: null
|
||
|
|
};
|
||
|
|
SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface), module.exports = SyntheticInputEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
|
||
|
|
var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, target);
|
||
|
|
return event.type = "change", EventPropagators.accumulateTwoPhaseDispatches(event),
|
||
|
|
event;
|
||
|
|
}
|
||
|
|
function shouldUseChangeEvent(elem) {
|
||
|
|
var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
|
||
|
|
return "select" === nodeName || "input" === nodeName && "file" === elem.type;
|
||
|
|
}
|
||
|
|
function manualDispatchChangeEvent(nativeEvent) {
|
||
|
|
var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
|
||
|
|
ReactUpdates.batchedUpdates(runEventInBatch, event);
|
||
|
|
}
|
||
|
|
function runEventInBatch(event) {
|
||
|
|
EventPluginHub.enqueueEvents(event), EventPluginHub.processEventQueue(!1);
|
||
|
|
}
|
||
|
|
function startWatchingForChangeEventIE8(target, targetInst) {
|
||
|
|
activeElement = target, activeElementInst = targetInst, activeElement.attachEvent("onchange", manualDispatchChangeEvent);
|
||
|
|
}
|
||
|
|
function stopWatchingForChangeEventIE8() {
|
||
|
|
activeElement && (activeElement.detachEvent("onchange", manualDispatchChangeEvent),
|
||
|
|
activeElement = null, activeElementInst = null);
|
||
|
|
}
|
||
|
|
function getInstIfValueChanged(targetInst, nativeEvent) {
|
||
|
|
var updated = inputValueTracking.updateValueIfChanged(targetInst), simulated = nativeEvent.simulated === !0 && ChangeEventPlugin._allowSimulatedPassThrough;
|
||
|
|
if (updated || simulated) return targetInst;
|
||
|
|
}
|
||
|
|
function getTargetInstForChangeEvent(topLevelType, targetInst) {
|
||
|
|
if ("topChange" === topLevelType) return targetInst;
|
||
|
|
}
|
||
|
|
function handleEventsForChangeEventIE8(topLevelType, target, targetInst) {
|
||
|
|
"topFocus" === topLevelType ? (stopWatchingForChangeEventIE8(), startWatchingForChangeEventIE8(target, targetInst)) : "topBlur" === topLevelType && stopWatchingForChangeEventIE8();
|
||
|
|
}
|
||
|
|
function startWatchingForValueChange(target, targetInst) {
|
||
|
|
activeElement = target, activeElementInst = targetInst, activeElement.attachEvent("onpropertychange", handlePropertyChange);
|
||
|
|
}
|
||
|
|
function stopWatchingForValueChange() {
|
||
|
|
activeElement && (activeElement.detachEvent("onpropertychange", handlePropertyChange),
|
||
|
|
activeElement = null, activeElementInst = null);
|
||
|
|
}
|
||
|
|
function handlePropertyChange(nativeEvent) {
|
||
|
|
"value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst, nativeEvent) && manualDispatchChangeEvent(nativeEvent);
|
||
|
|
}
|
||
|
|
function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
|
||
|
|
"topFocus" === topLevelType ? (stopWatchingForValueChange(), startWatchingForValueChange(target, targetInst)) : "topBlur" === topLevelType && stopWatchingForValueChange();
|
||
|
|
}
|
||
|
|
function getTargetInstForInputEventPolyfill(topLevelType, targetInst, nativeEvent) {
|
||
|
|
if ("topSelectionChange" === topLevelType || "topKeyUp" === topLevelType || "topKeyDown" === topLevelType) return getInstIfValueChanged(activeElementInst, nativeEvent);
|
||
|
|
}
|
||
|
|
function shouldUseClickEvent(elem) {
|
||
|
|
var nodeName = elem.nodeName;
|
||
|
|
return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === elem.type || "radio" === elem.type);
|
||
|
|
}
|
||
|
|
function getTargetInstForClickEvent(topLevelType, targetInst, nativeEvent) {
|
||
|
|
if ("topClick" === topLevelType) return getInstIfValueChanged(targetInst, nativeEvent);
|
||
|
|
}
|
||
|
|
function getTargetInstForInputOrChangeEvent(topLevelType, targetInst, nativeEvent) {
|
||
|
|
if ("topInput" === topLevelType || "topChange" === topLevelType) return getInstIfValueChanged(targetInst, nativeEvent);
|
||
|
|
}
|
||
|
|
function handleControlledInputBlur(inst, node) {
|
||
|
|
if (null != inst) {
|
||
|
|
var state = inst._wrapperState || node._wrapperState;
|
||
|
|
if (state && state.controlled && "number" === node.type) {
|
||
|
|
var value = "" + node.value;
|
||
|
|
node.getAttribute("value") !== value && node.setAttribute("value", value);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var EventPluginHub = __webpack_require__(47), EventPropagators = __webpack_require__(46), ExecutionEnvironment = __webpack_require__(53), ReactDOMComponentTree = __webpack_require__(39), ReactUpdates = __webpack_require__(61), SyntheticEvent = __webpack_require__(58), inputValueTracking = __webpack_require__(74), getEventTarget = __webpack_require__(75), isEventSupported = __webpack_require__(76), isTextInputElement = __webpack_require__(77), eventTypes = {
|
||
|
|
change: {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: "onChange",
|
||
|
|
captured: "onChangeCapture"
|
||
|
|
},
|
||
|
|
dependencies: [ "topBlur", "topChange", "topClick", "topFocus", "topInput", "topKeyDown", "topKeyUp", "topSelectionChange" ]
|
||
|
|
}
|
||
|
|
}, activeElement = null, activeElementInst = null, doesChangeEventBubble = !1;
|
||
|
|
ExecutionEnvironment.canUseDOM && (doesChangeEventBubble = isEventSupported("change") && (!document.documentMode || document.documentMode > 8));
|
||
|
|
var isInputEventSupported = !1;
|
||
|
|
ExecutionEnvironment.canUseDOM && (isInputEventSupported = isEventSupported("input") && (!("documentMode" in document) || document.documentMode > 9));
|
||
|
|
var ChangeEventPlugin = {
|
||
|
|
eventTypes: eventTypes,
|
||
|
|
_allowSimulatedPassThrough: !0,
|
||
|
|
_isInputEventSupported: isInputEventSupported,
|
||
|
|
extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
var getTargetInstFunc, handleEventFunc, targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
|
||
|
|
if (shouldUseChangeEvent(targetNode) ? doesChangeEventBubble ? getTargetInstFunc = getTargetInstForChangeEvent : handleEventFunc = handleEventsForChangeEventIE8 : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill,
|
||
|
|
handleEventFunc = handleEventsForInputEventPolyfill) : shouldUseClickEvent(targetNode) && (getTargetInstFunc = getTargetInstForClickEvent),
|
||
|
|
getTargetInstFunc) {
|
||
|
|
var inst = getTargetInstFunc(topLevelType, targetInst, nativeEvent);
|
||
|
|
if (inst) {
|
||
|
|
var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
|
||
|
|
return event;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
handleEventFunc && handleEventFunc(topLevelType, targetNode, targetInst), "topBlur" === topLevelType && handleControlledInputBlur(targetInst, targetNode);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ChangeEventPlugin;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function ensureInjected() {
|
||
|
|
ReactUpdates.ReactReconcileTransaction && batchingStrategy ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "ReactUpdates: must inject a reconcile transaction class and batching strategy") : _prodInvariant("123");
|
||
|
|
}
|
||
|
|
function ReactUpdatesFlushTransaction() {
|
||
|
|
this.reinitializeTransaction(), this.dirtyComponentsLength = null, this.callbackQueue = CallbackQueue.getPooled(),
|
||
|
|
this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(!0);
|
||
|
|
}
|
||
|
|
function batchedUpdates(callback, a, b, c, d, e) {
|
||
|
|
return ensureInjected(), batchingStrategy.batchedUpdates(callback, a, b, c, d, e);
|
||
|
|
}
|
||
|
|
function mountOrderComparator(c1, c2) {
|
||
|
|
return c1._mountOrder - c2._mountOrder;
|
||
|
|
}
|
||
|
|
function runBatchedUpdates(transaction) {
|
||
|
|
var len = transaction.dirtyComponentsLength;
|
||
|
|
len !== dirtyComponents.length ? "production" !== process.env.NODE_ENV ? invariant(!1, "Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).", len, dirtyComponents.length) : _prodInvariant("124", len, dirtyComponents.length) : void 0,
|
||
|
|
dirtyComponents.sort(mountOrderComparator), updateBatchNumber++;
|
||
|
|
for (var i = 0; i < len; i++) {
|
||
|
|
var component = dirtyComponents[i], callbacks = component._pendingCallbacks;
|
||
|
|
component._pendingCallbacks = null;
|
||
|
|
var markerName;
|
||
|
|
if (ReactFeatureFlags.logTopLevelRenders) {
|
||
|
|
var namedComponent = component;
|
||
|
|
component._currentElement.type.isReactTopLevelWrapper && (namedComponent = component._renderedComponent),
|
||
|
|
markerName = "React update: " + namedComponent.getName(), console.time(markerName);
|
||
|
|
}
|
||
|
|
if (ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber),
|
||
|
|
markerName && console.timeEnd(markerName), callbacks) for (var j = 0; j < callbacks.length; j++) transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance());
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function enqueueUpdate(component) {
|
||
|
|
return ensureInjected(), batchingStrategy.isBatchingUpdates ? (dirtyComponents.push(component),
|
||
|
|
void (null == component._updateBatchNumber && (component._updateBatchNumber = updateBatchNumber + 1))) : void batchingStrategy.batchedUpdates(enqueueUpdate, component);
|
||
|
|
}
|
||
|
|
function asap(callback, context) {
|
||
|
|
batchingStrategy.isBatchingUpdates ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched.") : _prodInvariant("125"),
|
||
|
|
asapCallbackQueue.enqueue(callback, context), asapEnqueued = !0;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), CallbackQueue = __webpack_require__(62), PooledClass = __webpack_require__(55), ReactFeatureFlags = __webpack_require__(63), ReactReconciler = __webpack_require__(64), Transaction = __webpack_require__(73), invariant = __webpack_require__(12), dirtyComponents = [], updateBatchNumber = 0, asapCallbackQueue = CallbackQueue.getPooled(), asapEnqueued = !1, batchingStrategy = null, NESTED_UPDATES = {
|
||
|
|
initialize: function() {
|
||
|
|
this.dirtyComponentsLength = dirtyComponents.length;
|
||
|
|
},
|
||
|
|
close: function() {
|
||
|
|
this.dirtyComponentsLength !== dirtyComponents.length ? (dirtyComponents.splice(0, this.dirtyComponentsLength),
|
||
|
|
flushBatchedUpdates()) : dirtyComponents.length = 0;
|
||
|
|
}
|
||
|
|
}, UPDATE_QUEUEING = {
|
||
|
|
initialize: function() {
|
||
|
|
this.callbackQueue.reset();
|
||
|
|
},
|
||
|
|
close: function() {
|
||
|
|
this.callbackQueue.notifyAll();
|
||
|
|
}
|
||
|
|
}, TRANSACTION_WRAPPERS = [ NESTED_UPDATES, UPDATE_QUEUEING ];
|
||
|
|
_assign(ReactUpdatesFlushTransaction.prototype, Transaction, {
|
||
|
|
getTransactionWrappers: function() {
|
||
|
|
return TRANSACTION_WRAPPERS;
|
||
|
|
},
|
||
|
|
destructor: function() {
|
||
|
|
this.dirtyComponentsLength = null, CallbackQueue.release(this.callbackQueue), this.callbackQueue = null,
|
||
|
|
ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction), this.reconcileTransaction = null;
|
||
|
|
},
|
||
|
|
perform: function(method, scope, a) {
|
||
|
|
return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a);
|
||
|
|
}
|
||
|
|
}), PooledClass.addPoolingTo(ReactUpdatesFlushTransaction);
|
||
|
|
var flushBatchedUpdates = function() {
|
||
|
|
for (;dirtyComponents.length || asapEnqueued; ) {
|
||
|
|
if (dirtyComponents.length) {
|
||
|
|
var transaction = ReactUpdatesFlushTransaction.getPooled();
|
||
|
|
transaction.perform(runBatchedUpdates, null, transaction), ReactUpdatesFlushTransaction.release(transaction);
|
||
|
|
}
|
||
|
|
if (asapEnqueued) {
|
||
|
|
asapEnqueued = !1;
|
||
|
|
var queue = asapCallbackQueue;
|
||
|
|
asapCallbackQueue = CallbackQueue.getPooled(), queue.notifyAll(), CallbackQueue.release(queue);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}, ReactUpdatesInjection = {
|
||
|
|
injectReconcileTransaction: function(ReconcileTransaction) {
|
||
|
|
ReconcileTransaction ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "ReactUpdates: must provide a reconcile transaction class") : _prodInvariant("126"),
|
||
|
|
ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;
|
||
|
|
},
|
||
|
|
injectBatchingStrategy: function(_batchingStrategy) {
|
||
|
|
_batchingStrategy ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "ReactUpdates: must provide a batching strategy") : _prodInvariant("127"),
|
||
|
|
"function" != typeof _batchingStrategy.batchedUpdates ? "production" !== process.env.NODE_ENV ? invariant(!1, "ReactUpdates: must provide a batchedUpdates() function") : _prodInvariant("128") : void 0,
|
||
|
|
"boolean" != typeof _batchingStrategy.isBatchingUpdates ? "production" !== process.env.NODE_ENV ? invariant(!1, "ReactUpdates: must provide an isBatchingUpdates boolean attribute") : _prodInvariant("129") : void 0,
|
||
|
|
batchingStrategy = _batchingStrategy;
|
||
|
|
}
|
||
|
|
}, ReactUpdates = {
|
||
|
|
ReactReconcileTransaction: null,
|
||
|
|
batchedUpdates: batchedUpdates,
|
||
|
|
enqueueUpdate: enqueueUpdate,
|
||
|
|
flushBatchedUpdates: flushBatchedUpdates,
|
||
|
|
injection: ReactUpdatesInjection,
|
||
|
|
asap: asap
|
||
|
|
};
|
||
|
|
module.exports = ReactUpdates;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function _classCallCheck(instance, Constructor) {
|
||
|
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), PooledClass = __webpack_require__(55), invariant = __webpack_require__(12), CallbackQueue = function() {
|
||
|
|
function CallbackQueue(arg) {
|
||
|
|
_classCallCheck(this, CallbackQueue), this._callbacks = null, this._contexts = null,
|
||
|
|
this._arg = arg;
|
||
|
|
}
|
||
|
|
return CallbackQueue.prototype.enqueue = function(callback, context) {
|
||
|
|
this._callbacks = this._callbacks || [], this._callbacks.push(callback), this._contexts = this._contexts || [],
|
||
|
|
this._contexts.push(context);
|
||
|
|
}, CallbackQueue.prototype.notifyAll = function() {
|
||
|
|
var callbacks = this._callbacks, contexts = this._contexts, arg = this._arg;
|
||
|
|
if (callbacks && contexts) {
|
||
|
|
callbacks.length !== contexts.length ? "production" !== process.env.NODE_ENV ? invariant(!1, "Mismatched list of contexts in callback queue") : _prodInvariant("24") : void 0,
|
||
|
|
this._callbacks = null, this._contexts = null;
|
||
|
|
for (var i = 0; i < callbacks.length; i++) callbacks[i].call(contexts[i], arg);
|
||
|
|
callbacks.length = 0, contexts.length = 0;
|
||
|
|
}
|
||
|
|
}, CallbackQueue.prototype.checkpoint = function() {
|
||
|
|
return this._callbacks ? this._callbacks.length : 0;
|
||
|
|
}, CallbackQueue.prototype.rollback = function(len) {
|
||
|
|
this._callbacks && this._contexts && (this._callbacks.length = len, this._contexts.length = len);
|
||
|
|
}, CallbackQueue.prototype.reset = function() {
|
||
|
|
this._callbacks = null, this._contexts = null;
|
||
|
|
}, CallbackQueue.prototype.destructor = function() {
|
||
|
|
this.reset();
|
||
|
|
}, CallbackQueue;
|
||
|
|
}();
|
||
|
|
module.exports = PooledClass.addPoolingTo(CallbackQueue);
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactFeatureFlags = {
|
||
|
|
logTopLevelRenders: !1
|
||
|
|
};
|
||
|
|
module.exports = ReactFeatureFlags;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function attachRefs() {
|
||
|
|
ReactRef.attachRefs(this, this._currentElement);
|
||
|
|
}
|
||
|
|
var ReactRef = __webpack_require__(65), ReactInstrumentation = __webpack_require__(67), warning = __webpack_require__(8), ReactReconciler = {
|
||
|
|
mountComponent: function(internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID) {
|
||
|
|
"production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);
|
||
|
|
var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID);
|
||
|
|
return internalInstance._currentElement && null != internalInstance._currentElement.ref && transaction.getReactMountReady().enqueue(attachRefs, internalInstance),
|
||
|
|
"production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID),
|
||
|
|
markup;
|
||
|
|
},
|
||
|
|
getHostNode: function(internalInstance) {
|
||
|
|
return internalInstance.getHostNode();
|
||
|
|
},
|
||
|
|
unmountComponent: function(internalInstance, safely) {
|
||
|
|
"production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID),
|
||
|
|
ReactRef.detachRefs(internalInstance, internalInstance._currentElement), internalInstance.unmountComponent(safely),
|
||
|
|
"production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);
|
||
|
|
},
|
||
|
|
receiveComponent: function(internalInstance, nextElement, transaction, context) {
|
||
|
|
var prevElement = internalInstance._currentElement;
|
||
|
|
if (nextElement !== prevElement || context !== internalInstance._context) {
|
||
|
|
"production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);
|
||
|
|
var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement);
|
||
|
|
refsChanged && ReactRef.detachRefs(internalInstance, prevElement), internalInstance.receiveComponent(nextElement, transaction, context),
|
||
|
|
refsChanged && internalInstance._currentElement && null != internalInstance._currentElement.ref && transaction.getReactMountReady().enqueue(attachRefs, internalInstance),
|
||
|
|
"production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
performUpdateIfNecessary: function(internalInstance, transaction, updateBatchNumber) {
|
||
|
|
return internalInstance._updateBatchNumber !== updateBatchNumber ? void ("production" !== process.env.NODE_ENV ? warning(null == internalInstance._updateBatchNumber || internalInstance._updateBatchNumber === updateBatchNumber + 1, "performUpdateIfNecessary: Unexpected batch number (current %s, pending %s)", updateBatchNumber, internalInstance._updateBatchNumber) : void 0) : ("production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement),
|
||
|
|
internalInstance.performUpdateIfNecessary(transaction), void ("production" !== process.env.NODE_ENV && 0 !== internalInstance._debugID && ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID)));
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactReconciler;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function attachRef(ref, component, owner) {
|
||
|
|
"function" == typeof ref ? ref(component.getPublicInstance()) : ReactOwner.addComponentAsRefTo(component, ref, owner);
|
||
|
|
}
|
||
|
|
function detachRef(ref, component, owner) {
|
||
|
|
"function" == typeof ref ? ref(null) : ReactOwner.removeComponentAsRefFrom(component, ref, owner);
|
||
|
|
}
|
||
|
|
var ReactOwner = __webpack_require__(66), ReactRef = {};
|
||
|
|
ReactRef.attachRefs = function(instance, element) {
|
||
|
|
if (null !== element && "object" == typeof element) {
|
||
|
|
var ref = element.ref;
|
||
|
|
null != ref && attachRef(ref, instance, element._owner);
|
||
|
|
}
|
||
|
|
}, ReactRef.shouldUpdateRefs = function(prevElement, nextElement) {
|
||
|
|
var prevRef = null, prevOwner = null;
|
||
|
|
null !== prevElement && "object" == typeof prevElement && (prevRef = prevElement.ref,
|
||
|
|
prevOwner = prevElement._owner);
|
||
|
|
var nextRef = null, nextOwner = null;
|
||
|
|
return null !== nextElement && "object" == typeof nextElement && (nextRef = nextElement.ref,
|
||
|
|
nextOwner = nextElement._owner), prevRef !== nextRef || "string" == typeof nextRef && nextOwner !== prevOwner;
|
||
|
|
}, ReactRef.detachRefs = function(instance, element) {
|
||
|
|
if (null !== element && "object" == typeof element) {
|
||
|
|
var ref = element.ref;
|
||
|
|
null != ref && detachRef(ref, instance, element._owner);
|
||
|
|
}
|
||
|
|
}, module.exports = ReactRef;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function isValidOwner(object) {
|
||
|
|
return !(!object || "function" != typeof object.attachRef || "function" != typeof object.detachRef);
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), ReactOwner = {
|
||
|
|
addComponentAsRefTo: function(component, ref, owner) {
|
||
|
|
isValidOwner(owner) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).") : _prodInvariant("119"),
|
||
|
|
owner.attachRef(ref, component);
|
||
|
|
},
|
||
|
|
removeComponentAsRefFrom: function(component, ref, owner) {
|
||
|
|
isValidOwner(owner) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).") : _prodInvariant("120");
|
||
|
|
var ownerPublicInstance = owner.getPublicInstance();
|
||
|
|
ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance() && owner.detachRef(ref);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactOwner;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var debugTool = null;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var ReactDebugTool = __webpack_require__(68);
|
||
|
|
debugTool = ReactDebugTool;
|
||
|
|
}
|
||
|
|
module.exports = {
|
||
|
|
debugTool: debugTool
|
||
|
|
};
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {
|
||
|
|
try {
|
||
|
|
fn.call(context, arg1, arg2, arg3, arg4, arg5);
|
||
|
|
} catch (e) {
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(didHookThrowForEvent[event], "Exception thrown by hook while handling %s: %s", event, e + "\n" + e.stack) : void 0,
|
||
|
|
didHookThrowForEvent[event] = !0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function emitEvent(event, arg1, arg2, arg3, arg4, arg5) {
|
||
|
|
for (var i = 0; i < hooks.length; i++) {
|
||
|
|
var hook = hooks[i], fn = hook[event];
|
||
|
|
fn && callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function clearHistory() {
|
||
|
|
ReactComponentTreeHook.purgeUnmountedComponents(), ReactHostOperationHistoryHook.clearHistory();
|
||
|
|
}
|
||
|
|
function getTreeSnapshot(registeredIDs) {
|
||
|
|
return registeredIDs.reduce(function(tree, id) {
|
||
|
|
var ownerID = ReactComponentTreeHook.getOwnerID(id), parentID = ReactComponentTreeHook.getParentID(id);
|
||
|
|
return tree[id] = {
|
||
|
|
displayName: ReactComponentTreeHook.getDisplayName(id),
|
||
|
|
text: ReactComponentTreeHook.getText(id),
|
||
|
|
updateCount: ReactComponentTreeHook.getUpdateCount(id),
|
||
|
|
childIDs: ReactComponentTreeHook.getChildIDs(id),
|
||
|
|
ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
|
||
|
|
parentID: parentID
|
||
|
|
}, tree;
|
||
|
|
}, {});
|
||
|
|
}
|
||
|
|
function resetMeasurements() {
|
||
|
|
var previousStartTime = currentFlushStartTime, previousMeasurements = currentFlushMeasurements, previousOperations = ReactHostOperationHistoryHook.getHistory();
|
||
|
|
if (0 === currentFlushNesting) return currentFlushStartTime = 0, currentFlushMeasurements = [],
|
||
|
|
void clearHistory();
|
||
|
|
if (previousMeasurements.length || previousOperations.length) {
|
||
|
|
var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
|
||
|
|
flushHistory.push({
|
||
|
|
duration: performanceNow() - previousStartTime,
|
||
|
|
measurements: previousMeasurements || [],
|
||
|
|
operations: previousOperations || [],
|
||
|
|
treeSnapshot: getTreeSnapshot(registeredIDs)
|
||
|
|
});
|
||
|
|
}
|
||
|
|
clearHistory(), currentFlushStartTime = performanceNow(), currentFlushMeasurements = [];
|
||
|
|
}
|
||
|
|
function checkDebugID(debugID) {
|
||
|
|
var allowRoot = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
|
||
|
|
allowRoot && 0 === debugID || debugID || ("production" !== process.env.NODE_ENV ? warning(!1, "ReactDebugTool: debugID may not be empty.") : void 0);
|
||
|
|
}
|
||
|
|
function beginLifeCycleTimer(debugID, timerType) {
|
||
|
|
0 !== currentFlushNesting && (currentTimerType && !lifeCycleTimerHasWarned && ("production" !== process.env.NODE_ENV ? warning(!1, "There is an internal error in the React performance measurement code. Did not expect %s timer to start while %s timer is still in progress for %s instance.", timerType, currentTimerType || "no", debugID === currentTimerDebugID ? "the same" : "another") : void 0,
|
||
|
|
lifeCycleTimerHasWarned = !0), currentTimerStartTime = performanceNow(), currentTimerNestedFlushDuration = 0,
|
||
|
|
currentTimerDebugID = debugID, currentTimerType = timerType);
|
||
|
|
}
|
||
|
|
function endLifeCycleTimer(debugID, timerType) {
|
||
|
|
0 !== currentFlushNesting && (currentTimerType === timerType || lifeCycleTimerHasWarned || ("production" !== process.env.NODE_ENV ? warning(!1, "There is an internal error in the React performance measurement code. We did not expect %s timer to stop while %s timer is still in progress for %s instance. Please report this as a bug in React.", timerType, currentTimerType || "no", debugID === currentTimerDebugID ? "the same" : "another") : void 0,
|
||
|
|
lifeCycleTimerHasWarned = !0), isProfiling && currentFlushMeasurements.push({
|
||
|
|
timerType: timerType,
|
||
|
|
instanceID: debugID,
|
||
|
|
duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
|
||
|
|
}), currentTimerStartTime = 0, currentTimerNestedFlushDuration = 0, currentTimerDebugID = null,
|
||
|
|
currentTimerType = null);
|
||
|
|
}
|
||
|
|
function pauseCurrentLifeCycleTimer() {
|
||
|
|
var currentTimer = {
|
||
|
|
startTime: currentTimerStartTime,
|
||
|
|
nestedFlushStartTime: performanceNow(),
|
||
|
|
debugID: currentTimerDebugID,
|
||
|
|
timerType: currentTimerType
|
||
|
|
};
|
||
|
|
lifeCycleTimerStack.push(currentTimer), currentTimerStartTime = 0, currentTimerNestedFlushDuration = 0,
|
||
|
|
currentTimerDebugID = null, currentTimerType = null;
|
||
|
|
}
|
||
|
|
function resumeCurrentLifeCycleTimer() {
|
||
|
|
var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(), startTime = _lifeCycleTimerStack$.startTime, nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime, debugID = _lifeCycleTimerStack$.debugID, timerType = _lifeCycleTimerStack$.timerType, nestedFlushDuration = performanceNow() - nestedFlushStartTime;
|
||
|
|
currentTimerStartTime = startTime, currentTimerNestedFlushDuration += nestedFlushDuration,
|
||
|
|
currentTimerDebugID = debugID, currentTimerType = timerType;
|
||
|
|
}
|
||
|
|
function shouldMark(debugID) {
|
||
|
|
if (!isProfiling || !canUsePerformanceMeasure) return !1;
|
||
|
|
var element = ReactComponentTreeHook.getElement(debugID);
|
||
|
|
if (null == element || "object" != typeof element) return !1;
|
||
|
|
var isHostElement = "string" == typeof element.type;
|
||
|
|
return !isHostElement;
|
||
|
|
}
|
||
|
|
function markBegin(debugID, markType) {
|
||
|
|
if (shouldMark(debugID)) {
|
||
|
|
var markName = debugID + "::" + markType;
|
||
|
|
lastMarkTimeStamp = performanceNow(), performance.mark(markName);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function markEnd(debugID, markType) {
|
||
|
|
if (shouldMark(debugID)) {
|
||
|
|
var markName = debugID + "::" + markType, displayName = ReactComponentTreeHook.getDisplayName(debugID) || "Unknown", timeStamp = performanceNow();
|
||
|
|
if (timeStamp - lastMarkTimeStamp > .1) {
|
||
|
|
var measurementName = displayName + " [" + markType + "]";
|
||
|
|
performance.measure(measurementName, markName);
|
||
|
|
}
|
||
|
|
performance.clearMarks(markName), measurementName && performance.clearMeasures(measurementName);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var ReactInvalidSetStateWarningHook = __webpack_require__(69), ReactHostOperationHistoryHook = __webpack_require__(70), ReactComponentTreeHook = __webpack_require__(24), ExecutionEnvironment = __webpack_require__(53), performanceNow = __webpack_require__(71), warning = __webpack_require__(8), hooks = [], didHookThrowForEvent = {}, isProfiling = !1, flushHistory = [], lifeCycleTimerStack = [], currentFlushNesting = 0, currentFlushMeasurements = [], currentFlushStartTime = 0, currentTimerDebugID = null, currentTimerStartTime = 0, currentTimerNestedFlushDuration = 0, currentTimerType = null, lifeCycleTimerHasWarned = !1, lastMarkTimeStamp = 0, canUsePerformanceMeasure = "undefined" != typeof performance && "function" == typeof performance.mark && "function" == typeof performance.clearMarks && "function" == typeof performance.measure && "function" == typeof performance.clearMeasures, ReactDebugTool = {
|
||
|
|
addHook: function(hook) {
|
||
|
|
hooks.push(hook);
|
||
|
|
},
|
||
|
|
removeHook: function(hook) {
|
||
|
|
for (var i = 0; i < hooks.length; i++) hooks[i] === hook && (hooks.splice(i, 1),
|
||
|
|
i--);
|
||
|
|
},
|
||
|
|
isProfiling: function() {
|
||
|
|
return isProfiling;
|
||
|
|
},
|
||
|
|
beginProfiling: function() {
|
||
|
|
isProfiling || (isProfiling = !0, flushHistory.length = 0, resetMeasurements(),
|
||
|
|
ReactDebugTool.addHook(ReactHostOperationHistoryHook));
|
||
|
|
},
|
||
|
|
endProfiling: function() {
|
||
|
|
isProfiling && (isProfiling = !1, resetMeasurements(), ReactDebugTool.removeHook(ReactHostOperationHistoryHook));
|
||
|
|
},
|
||
|
|
getFlushHistory: function() {
|
||
|
|
return flushHistory;
|
||
|
|
},
|
||
|
|
onBeginFlush: function() {
|
||
|
|
currentFlushNesting++, resetMeasurements(), pauseCurrentLifeCycleTimer(), emitEvent("onBeginFlush");
|
||
|
|
},
|
||
|
|
onEndFlush: function() {
|
||
|
|
resetMeasurements(), currentFlushNesting--, resumeCurrentLifeCycleTimer(), emitEvent("onEndFlush");
|
||
|
|
},
|
||
|
|
onBeginLifeCycleTimer: function(debugID, timerType) {
|
||
|
|
checkDebugID(debugID), emitEvent("onBeginLifeCycleTimer", debugID, timerType), markBegin(debugID, timerType),
|
||
|
|
beginLifeCycleTimer(debugID, timerType);
|
||
|
|
},
|
||
|
|
onEndLifeCycleTimer: function(debugID, timerType) {
|
||
|
|
checkDebugID(debugID), endLifeCycleTimer(debugID, timerType), markEnd(debugID, timerType),
|
||
|
|
emitEvent("onEndLifeCycleTimer", debugID, timerType);
|
||
|
|
},
|
||
|
|
onBeginProcessingChildContext: function() {
|
||
|
|
emitEvent("onBeginProcessingChildContext");
|
||
|
|
},
|
||
|
|
onEndProcessingChildContext: function() {
|
||
|
|
emitEvent("onEndProcessingChildContext");
|
||
|
|
},
|
||
|
|
onHostOperation: function(operation) {
|
||
|
|
checkDebugID(operation.instanceID), emitEvent("onHostOperation", operation);
|
||
|
|
},
|
||
|
|
onSetState: function() {
|
||
|
|
emitEvent("onSetState");
|
||
|
|
},
|
||
|
|
onSetChildren: function(debugID, childDebugIDs) {
|
||
|
|
checkDebugID(debugID), childDebugIDs.forEach(checkDebugID), emitEvent("onSetChildren", debugID, childDebugIDs);
|
||
|
|
},
|
||
|
|
onBeforeMountComponent: function(debugID, element, parentDebugID) {
|
||
|
|
checkDebugID(debugID), checkDebugID(parentDebugID, !0), emitEvent("onBeforeMountComponent", debugID, element, parentDebugID),
|
||
|
|
markBegin(debugID, "mount");
|
||
|
|
},
|
||
|
|
onMountComponent: function(debugID) {
|
||
|
|
checkDebugID(debugID), markEnd(debugID, "mount"), emitEvent("onMountComponent", debugID);
|
||
|
|
},
|
||
|
|
onBeforeUpdateComponent: function(debugID, element) {
|
||
|
|
checkDebugID(debugID), emitEvent("onBeforeUpdateComponent", debugID, element), markBegin(debugID, "update");
|
||
|
|
},
|
||
|
|
onUpdateComponent: function(debugID) {
|
||
|
|
checkDebugID(debugID), markEnd(debugID, "update"), emitEvent("onUpdateComponent", debugID);
|
||
|
|
},
|
||
|
|
onBeforeUnmountComponent: function(debugID) {
|
||
|
|
checkDebugID(debugID), emitEvent("onBeforeUnmountComponent", debugID), markBegin(debugID, "unmount");
|
||
|
|
},
|
||
|
|
onUnmountComponent: function(debugID) {
|
||
|
|
checkDebugID(debugID), markEnd(debugID, "unmount"), emitEvent("onUnmountComponent", debugID);
|
||
|
|
},
|
||
|
|
onTestEvent: function() {
|
||
|
|
emitEvent("onTestEvent");
|
||
|
|
}
|
||
|
|
};
|
||
|
|
ReactDebugTool.addDevtool = ReactDebugTool.addHook, ReactDebugTool.removeDevtool = ReactDebugTool.removeHook,
|
||
|
|
ReactDebugTool.addHook(ReactInvalidSetStateWarningHook), ReactDebugTool.addHook(ReactComponentTreeHook);
|
||
|
|
var url = ExecutionEnvironment.canUseDOM && window.location.href || "";
|
||
|
|
/[?&]react_perf\b/.test(url) && ReactDebugTool.beginProfiling(), module.exports = ReactDebugTool;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var warning = __webpack_require__(8);
|
||
|
|
if ("production" !== process.env.NODE_ENV) var processingChildContext = !1, warnInvalidSetState = function() {
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!processingChildContext, "setState(...): Cannot call setState() inside getChildContext()") : void 0;
|
||
|
|
};
|
||
|
|
var ReactInvalidSetStateWarningHook = {
|
||
|
|
onBeginProcessingChildContext: function() {
|
||
|
|
processingChildContext = !0;
|
||
|
|
},
|
||
|
|
onEndProcessingChildContext: function() {
|
||
|
|
processingChildContext = !1;
|
||
|
|
},
|
||
|
|
onSetState: function() {
|
||
|
|
warnInvalidSetState();
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactInvalidSetStateWarningHook;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var history = [], ReactHostOperationHistoryHook = {
|
||
|
|
onHostOperation: function(operation) {
|
||
|
|
history.push(operation);
|
||
|
|
},
|
||
|
|
clearHistory: function() {
|
||
|
|
ReactHostOperationHistoryHook._preventClearing || (history = []);
|
||
|
|
},
|
||
|
|
getHistory: function() {
|
||
|
|
return history;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactHostOperationHistoryHook;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var performanceNow, performance = __webpack_require__(72);
|
||
|
|
performanceNow = performance.now ? function() {
|
||
|
|
return performance.now();
|
||
|
|
} : function() {
|
||
|
|
return Date.now();
|
||
|
|
}, module.exports = performanceNow;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var performance, ExecutionEnvironment = __webpack_require__(53);
|
||
|
|
ExecutionEnvironment.canUseDOM && (performance = window.performance || window.msPerformance || window.webkitPerformance),
|
||
|
|
module.exports = performance || {};
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), OBSERVED_ERROR = {}, TransactionImpl = {
|
||
|
|
reinitializeTransaction: function() {
|
||
|
|
this.transactionWrappers = this.getTransactionWrappers(), this.wrapperInitData ? this.wrapperInitData.length = 0 : this.wrapperInitData = [],
|
||
|
|
this._isInTransaction = !1;
|
||
|
|
},
|
||
|
|
_isInTransaction: !1,
|
||
|
|
getTransactionWrappers: null,
|
||
|
|
isInTransaction: function() {
|
||
|
|
return !!this._isInTransaction;
|
||
|
|
},
|
||
|
|
perform: function(method, scope, a, b, c, d, e, f) {
|
||
|
|
this.isInTransaction() ? "production" !== process.env.NODE_ENV ? invariant(!1, "Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.") : _prodInvariant("27") : void 0;
|
||
|
|
var errorThrown, ret;
|
||
|
|
try {
|
||
|
|
this._isInTransaction = !0, errorThrown = !0, this.initializeAll(0), ret = method.call(scope, a, b, c, d, e, f),
|
||
|
|
errorThrown = !1;
|
||
|
|
} finally {
|
||
|
|
try {
|
||
|
|
if (errorThrown) try {
|
||
|
|
this.closeAll(0);
|
||
|
|
} catch (err) {} else this.closeAll(0);
|
||
|
|
} finally {
|
||
|
|
this._isInTransaction = !1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return ret;
|
||
|
|
},
|
||
|
|
initializeAll: function(startIndex) {
|
||
|
|
for (var transactionWrappers = this.transactionWrappers, i = startIndex; i < transactionWrappers.length; i++) {
|
||
|
|
var wrapper = transactionWrappers[i];
|
||
|
|
try {
|
||
|
|
this.wrapperInitData[i] = OBSERVED_ERROR, this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null;
|
||
|
|
} finally {
|
||
|
|
if (this.wrapperInitData[i] === OBSERVED_ERROR) try {
|
||
|
|
this.initializeAll(i + 1);
|
||
|
|
} catch (err) {}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
closeAll: function(startIndex) {
|
||
|
|
this.isInTransaction() ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Transaction.closeAll(): Cannot close transaction when none are open.") : _prodInvariant("28");
|
||
|
|
for (var transactionWrappers = this.transactionWrappers, i = startIndex; i < transactionWrappers.length; i++) {
|
||
|
|
var errorThrown, wrapper = transactionWrappers[i], initData = this.wrapperInitData[i];
|
||
|
|
try {
|
||
|
|
errorThrown = !0, initData !== OBSERVED_ERROR && wrapper.close && wrapper.close.call(this, initData),
|
||
|
|
errorThrown = !1;
|
||
|
|
} finally {
|
||
|
|
if (errorThrown) try {
|
||
|
|
this.closeAll(i + 1);
|
||
|
|
} catch (e) {}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
this.wrapperInitData.length = 0;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = TransactionImpl;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function isCheckable(elem) {
|
||
|
|
var type = elem.type, nodeName = elem.nodeName;
|
||
|
|
return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === type || "radio" === type);
|
||
|
|
}
|
||
|
|
function getTracker(inst) {
|
||
|
|
return inst._wrapperState.valueTracker;
|
||
|
|
}
|
||
|
|
function attachTracker(inst, tracker) {
|
||
|
|
inst._wrapperState.valueTracker = tracker;
|
||
|
|
}
|
||
|
|
function detachTracker(inst) {
|
||
|
|
delete inst._wrapperState.valueTracker;
|
||
|
|
}
|
||
|
|
function getValueFromNode(node) {
|
||
|
|
var value;
|
||
|
|
return node && (value = isCheckable(node) ? "" + node.checked : node.value), value;
|
||
|
|
}
|
||
|
|
var ReactDOMComponentTree = __webpack_require__(39), inputValueTracking = {
|
||
|
|
_getTrackerFromNode: function(node) {
|
||
|
|
return getTracker(ReactDOMComponentTree.getInstanceFromNode(node));
|
||
|
|
},
|
||
|
|
track: function(inst) {
|
||
|
|
if (!getTracker(inst)) {
|
||
|
|
var node = ReactDOMComponentTree.getNodeFromInstance(inst), valueField = isCheckable(node) ? "checked" : "value", descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField), currentValue = "" + node[valueField];
|
||
|
|
node.hasOwnProperty(valueField) || "function" != typeof descriptor.get || "function" != typeof descriptor.set || (Object.defineProperty(node, valueField, {
|
||
|
|
enumerable: descriptor.enumerable,
|
||
|
|
configurable: !0,
|
||
|
|
get: function() {
|
||
|
|
return descriptor.get.call(this);
|
||
|
|
},
|
||
|
|
set: function(value) {
|
||
|
|
currentValue = "" + value, descriptor.set.call(this, value);
|
||
|
|
}
|
||
|
|
}), attachTracker(inst, {
|
||
|
|
getValue: function() {
|
||
|
|
return currentValue;
|
||
|
|
},
|
||
|
|
setValue: function(value) {
|
||
|
|
currentValue = "" + value;
|
||
|
|
},
|
||
|
|
stopTracking: function() {
|
||
|
|
detachTracker(inst), delete node[valueField];
|
||
|
|
}
|
||
|
|
}));
|
||
|
|
}
|
||
|
|
},
|
||
|
|
updateValueIfChanged: function(inst) {
|
||
|
|
if (!inst) return !1;
|
||
|
|
var tracker = getTracker(inst);
|
||
|
|
if (!tracker) return inputValueTracking.track(inst), !0;
|
||
|
|
var lastValue = tracker.getValue(), nextValue = getValueFromNode(ReactDOMComponentTree.getNodeFromInstance(inst));
|
||
|
|
return nextValue !== lastValue && (tracker.setValue(nextValue), !0);
|
||
|
|
},
|
||
|
|
stopTracking: function(inst) {
|
||
|
|
var tracker = getTracker(inst);
|
||
|
|
tracker && tracker.stopTracking();
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = inputValueTracking;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getEventTarget(nativeEvent) {
|
||
|
|
var target = nativeEvent.target || nativeEvent.srcElement || window;
|
||
|
|
return target.correspondingUseElement && (target = target.correspondingUseElement),
|
||
|
|
3 === target.nodeType ? target.parentNode : target;
|
||
|
|
}
|
||
|
|
module.exports = getEventTarget;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function isEventSupported(eventNameSuffix, capture) {
|
||
|
|
if (!ExecutionEnvironment.canUseDOM || capture && !("addEventListener" in document)) return !1;
|
||
|
|
var eventName = "on" + eventNameSuffix, isSupported = eventName in document;
|
||
|
|
if (!isSupported) {
|
||
|
|
var element = document.createElement("div");
|
||
|
|
element.setAttribute(eventName, "return;"), isSupported = "function" == typeof element[eventName];
|
||
|
|
}
|
||
|
|
return !isSupported && useHasFeature && "wheel" === eventNameSuffix && (isSupported = document.implementation.hasFeature("Events.wheel", "3.0")),
|
||
|
|
isSupported;
|
||
|
|
}
|
||
|
|
var useHasFeature, ExecutionEnvironment = __webpack_require__(53);
|
||
|
|
ExecutionEnvironment.canUseDOM && (useHasFeature = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0),
|
||
|
|
module.exports = isEventSupported;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function isTextInputElement(elem) {
|
||
|
|
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
||
|
|
return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName;
|
||
|
|
}
|
||
|
|
var supportedInputTypes = {
|
||
|
|
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
|
||
|
|
};
|
||
|
|
module.exports = isTextInputElement;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var DefaultEventPluginOrder = [ "ResponderEventPlugin", "SimpleEventPlugin", "TapEventPlugin", "EnterLeaveEventPlugin", "ChangeEventPlugin", "SelectEventPlugin", "BeforeInputEventPlugin" ];
|
||
|
|
module.exports = DefaultEventPluginOrder;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var EventPropagators = __webpack_require__(46), ReactDOMComponentTree = __webpack_require__(39), SyntheticMouseEvent = __webpack_require__(80), eventTypes = {
|
||
|
|
mouseEnter: {
|
||
|
|
registrationName: "onMouseEnter",
|
||
|
|
dependencies: [ "topMouseOut", "topMouseOver" ]
|
||
|
|
},
|
||
|
|
mouseLeave: {
|
||
|
|
registrationName: "onMouseLeave",
|
||
|
|
dependencies: [ "topMouseOut", "topMouseOver" ]
|
||
|
|
}
|
||
|
|
}, EnterLeaveEventPlugin = {
|
||
|
|
eventTypes: eventTypes,
|
||
|
|
extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
if ("topMouseOver" === topLevelType && (nativeEvent.relatedTarget || nativeEvent.fromElement)) return null;
|
||
|
|
if ("topMouseOut" !== topLevelType && "topMouseOver" !== topLevelType) return null;
|
||
|
|
var win;
|
||
|
|
if (nativeEventTarget.window === nativeEventTarget) win = nativeEventTarget; else {
|
||
|
|
var doc = nativeEventTarget.ownerDocument;
|
||
|
|
win = doc ? doc.defaultView || doc.parentWindow : window;
|
||
|
|
}
|
||
|
|
var from, to;
|
||
|
|
if ("topMouseOut" === topLevelType) {
|
||
|
|
from = targetInst;
|
||
|
|
var related = nativeEvent.relatedTarget || nativeEvent.toElement;
|
||
|
|
to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;
|
||
|
|
} else from = null, to = targetInst;
|
||
|
|
if (from === to) return null;
|
||
|
|
var fromNode = null == from ? win : ReactDOMComponentTree.getNodeFromInstance(from), toNode = null == to ? win : ReactDOMComponentTree.getNodeFromInstance(to), leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);
|
||
|
|
leave.type = "mouseleave", leave.target = fromNode, leave.relatedTarget = toNode;
|
||
|
|
var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);
|
||
|
|
return enter.type = "mouseenter", enter.target = toNode, enter.relatedTarget = fromNode,
|
||
|
|
EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to), [ leave, enter ];
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = EnterLeaveEventPlugin;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticUIEvent = __webpack_require__(81), ViewportMetrics = __webpack_require__(82), getEventModifierState = __webpack_require__(83), MouseEventInterface = {
|
||
|
|
screenX: null,
|
||
|
|
screenY: null,
|
||
|
|
clientX: null,
|
||
|
|
clientY: null,
|
||
|
|
ctrlKey: null,
|
||
|
|
shiftKey: null,
|
||
|
|
altKey: null,
|
||
|
|
metaKey: null,
|
||
|
|
getModifierState: getEventModifierState,
|
||
|
|
button: function(event) {
|
||
|
|
var button = event.button;
|
||
|
|
return "which" in event ? button : 2 === button ? 2 : 4 === button ? 1 : 0;
|
||
|
|
},
|
||
|
|
buttons: null,
|
||
|
|
relatedTarget: function(event) {
|
||
|
|
return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
|
||
|
|
},
|
||
|
|
pageX: function(event) {
|
||
|
|
return "pageX" in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft;
|
||
|
|
},
|
||
|
|
pageY: function(event) {
|
||
|
|
return "pageY" in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface), module.exports = SyntheticMouseEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticEvent = __webpack_require__(58), getEventTarget = __webpack_require__(75), UIEventInterface = {
|
||
|
|
view: function(event) {
|
||
|
|
if (event.view) return event.view;
|
||
|
|
var target = getEventTarget(event);
|
||
|
|
if (target.window === target) return target;
|
||
|
|
var doc = target.ownerDocument;
|
||
|
|
return doc ? doc.defaultView || doc.parentWindow : window;
|
||
|
|
},
|
||
|
|
detail: function(event) {
|
||
|
|
return event.detail || 0;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface), module.exports = SyntheticUIEvent;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ViewportMetrics = {
|
||
|
|
currentScrollLeft: 0,
|
||
|
|
currentScrollTop: 0,
|
||
|
|
refreshScrollValues: function(scrollPosition) {
|
||
|
|
ViewportMetrics.currentScrollLeft = scrollPosition.x, ViewportMetrics.currentScrollTop = scrollPosition.y;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ViewportMetrics;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function modifierStateGetter(keyArg) {
|
||
|
|
var syntheticEvent = this, nativeEvent = syntheticEvent.nativeEvent;
|
||
|
|
if (nativeEvent.getModifierState) return nativeEvent.getModifierState(keyArg);
|
||
|
|
var keyProp = modifierKeyToProp[keyArg];
|
||
|
|
return !!keyProp && !!nativeEvent[keyProp];
|
||
|
|
}
|
||
|
|
function getEventModifierState(nativeEvent) {
|
||
|
|
return modifierStateGetter;
|
||
|
|
}
|
||
|
|
var modifierKeyToProp = {
|
||
|
|
Alt: "altKey",
|
||
|
|
Control: "ctrlKey",
|
||
|
|
Meta: "metaKey",
|
||
|
|
Shift: "shiftKey"
|
||
|
|
};
|
||
|
|
module.exports = getEventModifierState;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var DOMProperty = __webpack_require__(41), MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY, HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE, HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE, HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE, HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE, HTMLDOMPropertyConfig = {
|
||
|
|
isCustomAttribute: RegExp.prototype.test.bind(new RegExp("^(data|aria)-[" + DOMProperty.ATTRIBUTE_NAME_CHAR + "]*$")),
|
||
|
|
Properties: {
|
||
|
|
accept: 0,
|
||
|
|
acceptCharset: 0,
|
||
|
|
accessKey: 0,
|
||
|
|
action: 0,
|
||
|
|
allowFullScreen: HAS_BOOLEAN_VALUE,
|
||
|
|
allowTransparency: 0,
|
||
|
|
alt: 0,
|
||
|
|
as: 0,
|
||
|
|
async: HAS_BOOLEAN_VALUE,
|
||
|
|
autoComplete: 0,
|
||
|
|
autoPlay: HAS_BOOLEAN_VALUE,
|
||
|
|
capture: HAS_BOOLEAN_VALUE,
|
||
|
|
cellPadding: 0,
|
||
|
|
cellSpacing: 0,
|
||
|
|
charSet: 0,
|
||
|
|
challenge: 0,
|
||
|
|
checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||
|
|
cite: 0,
|
||
|
|
classID: 0,
|
||
|
|
className: 0,
|
||
|
|
cols: HAS_POSITIVE_NUMERIC_VALUE,
|
||
|
|
colSpan: 0,
|
||
|
|
content: 0,
|
||
|
|
contentEditable: 0,
|
||
|
|
contextMenu: 0,
|
||
|
|
controls: HAS_BOOLEAN_VALUE,
|
||
|
|
coords: 0,
|
||
|
|
crossOrigin: 0,
|
||
|
|
data: 0,
|
||
|
|
dateTime: 0,
|
||
|
|
default: HAS_BOOLEAN_VALUE,
|
||
|
|
defer: HAS_BOOLEAN_VALUE,
|
||
|
|
dir: 0,
|
||
|
|
disabled: HAS_BOOLEAN_VALUE,
|
||
|
|
download: HAS_OVERLOADED_BOOLEAN_VALUE,
|
||
|
|
draggable: 0,
|
||
|
|
encType: 0,
|
||
|
|
form: 0,
|
||
|
|
formAction: 0,
|
||
|
|
formEncType: 0,
|
||
|
|
formMethod: 0,
|
||
|
|
formNoValidate: HAS_BOOLEAN_VALUE,
|
||
|
|
formTarget: 0,
|
||
|
|
frameBorder: 0,
|
||
|
|
headers: 0,
|
||
|
|
height: 0,
|
||
|
|
hidden: HAS_BOOLEAN_VALUE,
|
||
|
|
high: 0,
|
||
|
|
href: 0,
|
||
|
|
hrefLang: 0,
|
||
|
|
htmlFor: 0,
|
||
|
|
httpEquiv: 0,
|
||
|
|
icon: 0,
|
||
|
|
id: 0,
|
||
|
|
inputMode: 0,
|
||
|
|
integrity: 0,
|
||
|
|
is: 0,
|
||
|
|
keyParams: 0,
|
||
|
|
keyType: 0,
|
||
|
|
kind: 0,
|
||
|
|
label: 0,
|
||
|
|
lang: 0,
|
||
|
|
list: 0,
|
||
|
|
loop: HAS_BOOLEAN_VALUE,
|
||
|
|
low: 0,
|
||
|
|
manifest: 0,
|
||
|
|
marginHeight: 0,
|
||
|
|
marginWidth: 0,
|
||
|
|
max: 0,
|
||
|
|
maxLength: 0,
|
||
|
|
media: 0,
|
||
|
|
mediaGroup: 0,
|
||
|
|
method: 0,
|
||
|
|
min: 0,
|
||
|
|
minLength: 0,
|
||
|
|
multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||
|
|
muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||
|
|
name: 0,
|
||
|
|
nonce: 0,
|
||
|
|
noValidate: HAS_BOOLEAN_VALUE,
|
||
|
|
open: HAS_BOOLEAN_VALUE,
|
||
|
|
optimum: 0,
|
||
|
|
pattern: 0,
|
||
|
|
placeholder: 0,
|
||
|
|
playsInline: HAS_BOOLEAN_VALUE,
|
||
|
|
poster: 0,
|
||
|
|
preload: 0,
|
||
|
|
profile: 0,
|
||
|
|
radioGroup: 0,
|
||
|
|
readOnly: HAS_BOOLEAN_VALUE,
|
||
|
|
referrerPolicy: 0,
|
||
|
|
rel: 0,
|
||
|
|
required: HAS_BOOLEAN_VALUE,
|
||
|
|
reversed: HAS_BOOLEAN_VALUE,
|
||
|
|
role: 0,
|
||
|
|
rows: HAS_POSITIVE_NUMERIC_VALUE,
|
||
|
|
rowSpan: HAS_NUMERIC_VALUE,
|
||
|
|
sandbox: 0,
|
||
|
|
scope: 0,
|
||
|
|
scoped: HAS_BOOLEAN_VALUE,
|
||
|
|
scrolling: 0,
|
||
|
|
seamless: HAS_BOOLEAN_VALUE,
|
||
|
|
selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||
|
|
shape: 0,
|
||
|
|
size: HAS_POSITIVE_NUMERIC_VALUE,
|
||
|
|
sizes: 0,
|
||
|
|
span: HAS_POSITIVE_NUMERIC_VALUE,
|
||
|
|
spellCheck: 0,
|
||
|
|
src: 0,
|
||
|
|
srcDoc: 0,
|
||
|
|
srcLang: 0,
|
||
|
|
srcSet: 0,
|
||
|
|
start: HAS_NUMERIC_VALUE,
|
||
|
|
step: 0,
|
||
|
|
style: 0,
|
||
|
|
summary: 0,
|
||
|
|
tabIndex: 0,
|
||
|
|
target: 0,
|
||
|
|
title: 0,
|
||
|
|
type: 0,
|
||
|
|
useMap: 0,
|
||
|
|
value: 0,
|
||
|
|
width: 0,
|
||
|
|
wmode: 0,
|
||
|
|
wrap: 0,
|
||
|
|
about: 0,
|
||
|
|
datatype: 0,
|
||
|
|
inlist: 0,
|
||
|
|
prefix: 0,
|
||
|
|
property: 0,
|
||
|
|
resource: 0,
|
||
|
|
typeof: 0,
|
||
|
|
vocab: 0,
|
||
|
|
autoCapitalize: 0,
|
||
|
|
autoCorrect: 0,
|
||
|
|
autoSave: 0,
|
||
|
|
color: 0,
|
||
|
|
itemProp: 0,
|
||
|
|
itemScope: HAS_BOOLEAN_VALUE,
|
||
|
|
itemType: 0,
|
||
|
|
itemID: 0,
|
||
|
|
itemRef: 0,
|
||
|
|
results: 0,
|
||
|
|
security: 0,
|
||
|
|
unselectable: 0
|
||
|
|
},
|
||
|
|
DOMAttributeNames: {
|
||
|
|
acceptCharset: "accept-charset",
|
||
|
|
className: "class",
|
||
|
|
htmlFor: "for",
|
||
|
|
httpEquiv: "http-equiv"
|
||
|
|
},
|
||
|
|
DOMPropertyNames: {},
|
||
|
|
DOMMutationMethods: {
|
||
|
|
value: function(node, value) {
|
||
|
|
return null == value ? node.removeAttribute("value") : void ("number" !== node.type || node.hasAttribute("value") === !1 ? node.setAttribute("value", "" + value) : node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node && node.setAttribute("value", "" + value));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = HTMLDOMPropertyConfig;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var DOMChildrenOperations = __webpack_require__(86), ReactDOMIDOperations = __webpack_require__(97), ReactComponentBrowserEnvironment = {
|
||
|
|
processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,
|
||
|
|
replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup
|
||
|
|
};
|
||
|
|
module.exports = ReactComponentBrowserEnvironment;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getNodeAfter(parentNode, node) {
|
||
|
|
return Array.isArray(node) && (node = node[1]), node ? node.nextSibling : parentNode.firstChild;
|
||
|
|
}
|
||
|
|
function insertLazyTreeChildAt(parentNode, childTree, referenceNode) {
|
||
|
|
DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode);
|
||
|
|
}
|
||
|
|
function moveChild(parentNode, childNode, referenceNode) {
|
||
|
|
Array.isArray(childNode) ? moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode) : insertChildAt(parentNode, childNode, referenceNode);
|
||
|
|
}
|
||
|
|
function removeChild(parentNode, childNode) {
|
||
|
|
if (Array.isArray(childNode)) {
|
||
|
|
var closingComment = childNode[1];
|
||
|
|
childNode = childNode[0], removeDelimitedText(parentNode, childNode, closingComment),
|
||
|
|
parentNode.removeChild(closingComment);
|
||
|
|
}
|
||
|
|
parentNode.removeChild(childNode);
|
||
|
|
}
|
||
|
|
function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) {
|
||
|
|
for (var node = openingComment; ;) {
|
||
|
|
var nextNode = node.nextSibling;
|
||
|
|
if (insertChildAt(parentNode, node, referenceNode), node === closingComment) break;
|
||
|
|
node = nextNode;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function removeDelimitedText(parentNode, startNode, closingComment) {
|
||
|
|
for (;;) {
|
||
|
|
var node = startNode.nextSibling;
|
||
|
|
if (node === closingComment) break;
|
||
|
|
parentNode.removeChild(node);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function replaceDelimitedText(openingComment, closingComment, stringText) {
|
||
|
|
var parentNode = openingComment.parentNode, nodeAfterComment = openingComment.nextSibling;
|
||
|
|
nodeAfterComment === closingComment ? stringText && insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment) : stringText ? (setTextContent(nodeAfterComment, stringText),
|
||
|
|
removeDelimitedText(parentNode, nodeAfterComment, closingComment)) : removeDelimitedText(parentNode, openingComment, closingComment),
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID,
|
||
|
|
type: "replace text",
|
||
|
|
payload: stringText
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var DOMLazyTree = __webpack_require__(87), Danger = __webpack_require__(93), ReactDOMComponentTree = __webpack_require__(39), ReactInstrumentation = __webpack_require__(67), createMicrosoftUnsafeLocalFunction = __webpack_require__(90), setInnerHTML = __webpack_require__(89), setTextContent = __webpack_require__(91), insertChildAt = createMicrosoftUnsafeLocalFunction(function(parentNode, childNode, referenceNode) {
|
||
|
|
parentNode.insertBefore(childNode, referenceNode);
|
||
|
|
}), dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;
|
||
|
|
"production" !== process.env.NODE_ENV && (dangerouslyReplaceNodeWithMarkup = function(oldChild, markup, prevInstance) {
|
||
|
|
if (Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup), 0 !== prevInstance._debugID) ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: prevInstance._debugID,
|
||
|
|
type: "replace with",
|
||
|
|
payload: markup.toString()
|
||
|
|
}); else {
|
||
|
|
var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node);
|
||
|
|
0 !== nextInstance._debugID && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: nextInstance._debugID,
|
||
|
|
type: "mount",
|
||
|
|
payload: markup.toString()
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
var DOMChildrenOperations = {
|
||
|
|
dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup,
|
||
|
|
replaceDelimitedText: replaceDelimitedText,
|
||
|
|
processUpdates: function(parentNode, updates) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;
|
||
|
|
for (var k = 0; k < updates.length; k++) {
|
||
|
|
var update = updates[k];
|
||
|
|
switch (update.type) {
|
||
|
|
case "INSERT_MARKUP":
|
||
|
|
insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode)),
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: parentNodeDebugID,
|
||
|
|
type: "insert child",
|
||
|
|
payload: {
|
||
|
|
toIndex: update.toIndex,
|
||
|
|
content: update.content.toString()
|
||
|
|
}
|
||
|
|
});
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "MOVE_EXISTING":
|
||
|
|
moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)),
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: parentNodeDebugID,
|
||
|
|
type: "move child",
|
||
|
|
payload: {
|
||
|
|
fromIndex: update.fromIndex,
|
||
|
|
toIndex: update.toIndex
|
||
|
|
}
|
||
|
|
});
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "SET_MARKUP":
|
||
|
|
setInnerHTML(parentNode, update.content), "production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: parentNodeDebugID,
|
||
|
|
type: "replace children",
|
||
|
|
payload: update.content.toString()
|
||
|
|
});
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "TEXT_CONTENT":
|
||
|
|
setTextContent(parentNode, update.content), "production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: parentNodeDebugID,
|
||
|
|
type: "replace text",
|
||
|
|
payload: update.content.toString()
|
||
|
|
});
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "REMOVE_NODE":
|
||
|
|
removeChild(parentNode, update.fromNode), "production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: parentNodeDebugID,
|
||
|
|
type: "remove child",
|
||
|
|
payload: {
|
||
|
|
fromIndex: update.fromIndex
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = DOMChildrenOperations;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function insertTreeChildren(tree) {
|
||
|
|
if (enableLazy) {
|
||
|
|
var node = tree.node, children = tree.children;
|
||
|
|
if (children.length) for (var i = 0; i < children.length; i++) insertTreeBefore(node, children[i], null); else null != tree.html ? setInnerHTML(node, tree.html) : null != tree.text && setTextContent(node, tree.text);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function replaceChildWithTree(oldNode, newTree) {
|
||
|
|
oldNode.parentNode.replaceChild(newTree.node, oldNode), insertTreeChildren(newTree);
|
||
|
|
}
|
||
|
|
function queueChild(parentTree, childTree) {
|
||
|
|
enableLazy ? parentTree.children.push(childTree) : parentTree.node.appendChild(childTree.node);
|
||
|
|
}
|
||
|
|
function queueHTML(tree, html) {
|
||
|
|
enableLazy ? tree.html = html : setInnerHTML(tree.node, html);
|
||
|
|
}
|
||
|
|
function queueText(tree, text) {
|
||
|
|
enableLazy ? tree.text = text : setTextContent(tree.node, text);
|
||
|
|
}
|
||
|
|
function toString() {
|
||
|
|
return this.node.nodeName;
|
||
|
|
}
|
||
|
|
function DOMLazyTree(node) {
|
||
|
|
return {
|
||
|
|
node: node,
|
||
|
|
children: [],
|
||
|
|
html: null,
|
||
|
|
text: null,
|
||
|
|
toString: toString
|
||
|
|
};
|
||
|
|
}
|
||
|
|
var DOMNamespaces = __webpack_require__(88), setInnerHTML = __webpack_require__(89), createMicrosoftUnsafeLocalFunction = __webpack_require__(90), setTextContent = __webpack_require__(91), ELEMENT_NODE_TYPE = 1, DOCUMENT_FRAGMENT_NODE_TYPE = 11, enableLazy = "undefined" != typeof document && "number" == typeof document.documentMode || "undefined" != typeof navigator && "string" == typeof navigator.userAgent && /\bEdge\/\d/.test(navigator.userAgent), insertTreeBefore = createMicrosoftUnsafeLocalFunction(function(parentNode, tree, referenceNode) {
|
||
|
|
tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && "object" === tree.node.nodeName.toLowerCase() && (null == tree.node.namespaceURI || tree.node.namespaceURI === DOMNamespaces.html) ? (insertTreeChildren(tree),
|
||
|
|
parentNode.insertBefore(tree.node, referenceNode)) : (parentNode.insertBefore(tree.node, referenceNode),
|
||
|
|
insertTreeChildren(tree));
|
||
|
|
});
|
||
|
|
DOMLazyTree.insertTreeBefore = insertTreeBefore, DOMLazyTree.replaceChildWithTree = replaceChildWithTree,
|
||
|
|
DOMLazyTree.queueChild = queueChild, DOMLazyTree.queueHTML = queueHTML, DOMLazyTree.queueText = queueText,
|
||
|
|
module.exports = DOMLazyTree;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var DOMNamespaces = {
|
||
|
|
html: "http://www.w3.org/1999/xhtml",
|
||
|
|
mathml: "http://www.w3.org/1998/Math/MathML",
|
||
|
|
svg: "http://www.w3.org/2000/svg"
|
||
|
|
};
|
||
|
|
module.exports = DOMNamespaces;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var reusableSVGContainer, ExecutionEnvironment = __webpack_require__(53), DOMNamespaces = __webpack_require__(88), WHITESPACE_TEST = /^[ \r\n\t\f]/, NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/, createMicrosoftUnsafeLocalFunction = __webpack_require__(90), setInnerHTML = createMicrosoftUnsafeLocalFunction(function(node, html) {
|
||
|
|
if (node.namespaceURI !== DOMNamespaces.svg || "innerHTML" in node) node.innerHTML = html; else {
|
||
|
|
reusableSVGContainer = reusableSVGContainer || document.createElement("div"), reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>";
|
||
|
|
for (var svgNode = reusableSVGContainer.firstChild; svgNode.firstChild; ) node.appendChild(svgNode.firstChild);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
if (ExecutionEnvironment.canUseDOM) {
|
||
|
|
var testElement = document.createElement("div");
|
||
|
|
testElement.innerHTML = " ", "" === testElement.innerHTML && (setInnerHTML = function(node, html) {
|
||
|
|
if (node.parentNode && node.parentNode.replaceChild(node, node), WHITESPACE_TEST.test(html) || "<" === html[0] && NONVISIBLE_TEST.test(html)) {
|
||
|
|
node.innerHTML = String.fromCharCode(65279) + html;
|
||
|
|
var textNode = node.firstChild;
|
||
|
|
1 === textNode.data.length ? node.removeChild(textNode) : textNode.deleteData(0, 1);
|
||
|
|
} else node.innerHTML = html;
|
||
|
|
}), testElement = null;
|
||
|
|
}
|
||
|
|
module.exports = setInnerHTML;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var createMicrosoftUnsafeLocalFunction = function(func) {
|
||
|
|
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
|
||
|
|
MSApp.execUnsafeLocalFunction(function() {
|
||
|
|
return func(arg0, arg1, arg2, arg3);
|
||
|
|
});
|
||
|
|
} : func;
|
||
|
|
};
|
||
|
|
module.exports = createMicrosoftUnsafeLocalFunction;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53), escapeTextContentForBrowser = __webpack_require__(92), setInnerHTML = __webpack_require__(89), setTextContent = function(node, text) {
|
||
|
|
if (text) {
|
||
|
|
var firstChild = node.firstChild;
|
||
|
|
if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) return void (firstChild.nodeValue = text);
|
||
|
|
}
|
||
|
|
node.textContent = text;
|
||
|
|
};
|
||
|
|
ExecutionEnvironment.canUseDOM && ("textContent" in document.documentElement || (setTextContent = function(node, text) {
|
||
|
|
return 3 === node.nodeType ? void (node.nodeValue = text) : void setInnerHTML(node, escapeTextContentForBrowser(text));
|
||
|
|
})), module.exports = setTextContent;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function escapeHtml(string) {
|
||
|
|
var str = "" + string, match = matchHtmlRegExp.exec(str);
|
||
|
|
if (!match) return str;
|
||
|
|
var escape, html = "", index = 0, lastIndex = 0;
|
||
|
|
for (index = match.index; index < str.length; index++) {
|
||
|
|
switch (str.charCodeAt(index)) {
|
||
|
|
case 34:
|
||
|
|
escape = """;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case 38:
|
||
|
|
escape = "&";
|
||
|
|
break;
|
||
|
|
|
||
|
|
case 39:
|
||
|
|
escape = "'";
|
||
|
|
break;
|
||
|
|
|
||
|
|
case 60:
|
||
|
|
escape = "<";
|
||
|
|
break;
|
||
|
|
|
||
|
|
case 62:
|
||
|
|
escape = ">";
|
||
|
|
break;
|
||
|
|
|
||
|
|
default:
|
||
|
|
continue;
|
||
|
|
}
|
||
|
|
lastIndex !== index && (html += str.substring(lastIndex, index)), lastIndex = index + 1,
|
||
|
|
html += escape;
|
||
|
|
}
|
||
|
|
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
||
|
|
}
|
||
|
|
function escapeTextContentForBrowser(text) {
|
||
|
|
return "boolean" == typeof text || "number" == typeof text ? "" + text : escapeHtml(text);
|
||
|
|
}
|
||
|
|
var matchHtmlRegExp = /["'&<>]/;
|
||
|
|
module.exports = escapeTextContentForBrowser;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(40), DOMLazyTree = __webpack_require__(87), ExecutionEnvironment = __webpack_require__(53), createNodesFromMarkup = __webpack_require__(94), emptyFunction = __webpack_require__(9), invariant = __webpack_require__(12), Danger = {
|
||
|
|
dangerouslyReplaceNodeWithMarkup: function(oldChild, markup) {
|
||
|
|
if (ExecutionEnvironment.canUseDOM ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.") : _prodInvariant("56"),
|
||
|
|
markup ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "dangerouslyReplaceNodeWithMarkup(...): Missing markup.") : _prodInvariant("57"),
|
||
|
|
"HTML" === oldChild.nodeName ? "production" !== process.env.NODE_ENV ? invariant(!1, "dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().") : _prodInvariant("58") : void 0,
|
||
|
|
"string" == typeof markup) {
|
||
|
|
var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
|
||
|
|
oldChild.parentNode.replaceChild(newChild, oldChild);
|
||
|
|
} else DOMLazyTree.replaceChildWithTree(oldChild, markup);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = Danger;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getNodeName(markup) {
|
||
|
|
var nodeNameMatch = markup.match(nodeNamePattern);
|
||
|
|
return nodeNameMatch && nodeNameMatch[1].toLowerCase();
|
||
|
|
}
|
||
|
|
function createNodesFromMarkup(markup, handleScript) {
|
||
|
|
var node = dummyNode;
|
||
|
|
dummyNode ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "createNodesFromMarkup dummy not initialized") : invariant(!1);
|
||
|
|
var nodeName = getNodeName(markup), wrap = nodeName && getMarkupWrap(nodeName);
|
||
|
|
if (wrap) {
|
||
|
|
node.innerHTML = wrap[1] + markup + wrap[2];
|
||
|
|
for (var wrapDepth = wrap[0]; wrapDepth--; ) node = node.lastChild;
|
||
|
|
} else node.innerHTML = markup;
|
||
|
|
var scripts = node.getElementsByTagName("script");
|
||
|
|
scripts.length && (handleScript ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "createNodesFromMarkup(...): Unexpected <script> element rendered.") : invariant(!1),
|
||
|
|
createArrayFromMixed(scripts).forEach(handleScript));
|
||
|
|
for (var nodes = Array.from(node.childNodes); node.lastChild; ) node.removeChild(node.lastChild);
|
||
|
|
return nodes;
|
||
|
|
}
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53), createArrayFromMixed = __webpack_require__(95), getMarkupWrap = __webpack_require__(96), invariant = __webpack_require__(12), dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement("div") : null, nodeNamePattern = /^\s*<(\w+)/;
|
||
|
|
module.exports = createNodesFromMarkup;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function toArray(obj) {
|
||
|
|
var length = obj.length;
|
||
|
|
if (Array.isArray(obj) || "object" != typeof obj && "function" != typeof obj ? "production" !== process.env.NODE_ENV ? invariant(!1, "toArray: Array-like object expected") : invariant(!1) : void 0,
|
||
|
|
"number" != typeof length ? "production" !== process.env.NODE_ENV ? invariant(!1, "toArray: Object needs a length property") : invariant(!1) : void 0,
|
||
|
|
0 === length || length - 1 in obj ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "toArray: Object should have keys for indices") : invariant(!1),
|
||
|
|
"function" == typeof obj.callee ? "production" !== process.env.NODE_ENV ? invariant(!1, "toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead.") : invariant(!1) : void 0,
|
||
|
|
obj.hasOwnProperty) try {
|
||
|
|
return Array.prototype.slice.call(obj);
|
||
|
|
} catch (e) {}
|
||
|
|
for (var ret = Array(length), ii = 0; ii < length; ii++) ret[ii] = obj[ii];
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
function hasArrayNature(obj) {
|
||
|
|
return !!obj && ("object" == typeof obj || "function" == typeof obj) && "length" in obj && !("setInterval" in obj) && "number" != typeof obj.nodeType && (Array.isArray(obj) || "callee" in obj || "item" in obj);
|
||
|
|
}
|
||
|
|
function createArrayFromMixed(obj) {
|
||
|
|
return hasArrayNature(obj) ? Array.isArray(obj) ? obj.slice() : toArray(obj) : [ obj ];
|
||
|
|
}
|
||
|
|
var invariant = __webpack_require__(12);
|
||
|
|
module.exports = createArrayFromMixed;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getMarkupWrap(nodeName) {
|
||
|
|
return dummyNode ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Markup wrapping node not initialized") : invariant(!1),
|
||
|
|
markupWrap.hasOwnProperty(nodeName) || (nodeName = "*"), shouldWrap.hasOwnProperty(nodeName) || ("*" === nodeName ? dummyNode.innerHTML = "<link />" : dummyNode.innerHTML = "<" + nodeName + "></" + nodeName + ">",
|
||
|
|
shouldWrap[nodeName] = !dummyNode.firstChild), shouldWrap[nodeName] ? markupWrap[nodeName] : null;
|
||
|
|
}
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53), invariant = __webpack_require__(12), dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement("div") : null, shouldWrap = {}, selectWrap = [ 1, '<select multiple="true">', "</select>" ], tableWrap = [ 1, "<table>", "</table>" ], trWrap = [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], svgWrap = [ 1, '<svg xmlns="http://www.w3.org/2000/svg">', "</svg>" ], markupWrap = {
|
||
|
|
"*": [ 1, "?<div>", "</div>" ],
|
||
|
|
area: [ 1, "<map>", "</map>" ],
|
||
|
|
col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
|
||
|
|
legend: [ 1, "<fieldset>", "</fieldset>" ],
|
||
|
|
param: [ 1, "<object>", "</object>" ],
|
||
|
|
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
|
||
|
|
optgroup: selectWrap,
|
||
|
|
option: selectWrap,
|
||
|
|
caption: tableWrap,
|
||
|
|
colgroup: tableWrap,
|
||
|
|
tbody: tableWrap,
|
||
|
|
tfoot: tableWrap,
|
||
|
|
thead: tableWrap,
|
||
|
|
td: trWrap,
|
||
|
|
th: trWrap
|
||
|
|
}, svgElements = [ "circle", "clipPath", "defs", "ellipse", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "text", "tspan" ];
|
||
|
|
svgElements.forEach(function(nodeName) {
|
||
|
|
markupWrap[nodeName] = svgWrap, shouldWrap[nodeName] = !0;
|
||
|
|
}), module.exports = getMarkupWrap;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var DOMChildrenOperations = __webpack_require__(86), ReactDOMComponentTree = __webpack_require__(39), ReactDOMIDOperations = {
|
||
|
|
dangerouslyProcessChildrenUpdates: function(parentInst, updates) {
|
||
|
|
var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);
|
||
|
|
DOMChildrenOperations.processUpdates(node, updates);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMIDOperations;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getDeclarationErrorAddendum(internalInstance) {
|
||
|
|
if (internalInstance) {
|
||
|
|
var owner = internalInstance._currentElement._owner || null;
|
||
|
|
if (owner) {
|
||
|
|
var name = owner.getName();
|
||
|
|
if (name) return " This DOM node was rendered by `" + name + "`.";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
function friendlyStringify(obj) {
|
||
|
|
if ("object" == typeof obj) {
|
||
|
|
if (Array.isArray(obj)) return "[" + obj.map(friendlyStringify).join(", ") + "]";
|
||
|
|
var pairs = [];
|
||
|
|
for (var key in obj) if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||
|
|
var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key);
|
||
|
|
pairs.push(keyEscaped + ": " + friendlyStringify(obj[key]));
|
||
|
|
}
|
||
|
|
return "{" + pairs.join(", ") + "}";
|
||
|
|
}
|
||
|
|
return "string" == typeof obj ? JSON.stringify(obj) : "function" == typeof obj ? "[function object]" : String(obj);
|
||
|
|
}
|
||
|
|
function checkAndWarnForMutatedStyle(style1, style2, component) {
|
||
|
|
if (null != style1 && null != style2 && !shallowEqual(style1, style2)) {
|
||
|
|
var ownerName, componentName = component._tag, owner = component._currentElement._owner;
|
||
|
|
owner && (ownerName = owner.getName());
|
||
|
|
var hash = ownerName + "|" + componentName;
|
||
|
|
styleMutationWarning.hasOwnProperty(hash) || (styleMutationWarning[hash] = !0, "production" !== process.env.NODE_ENV ? warning(!1, "`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.", componentName, owner ? "of `" + ownerName + "`" : "using <" + componentName + ">", friendlyStringify(style1), friendlyStringify(style2)) : void 0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function assertValidProps(component, props) {
|
||
|
|
props && (voidElementTags[component._tag] && (null != props.children || null != props.dangerouslySetInnerHTML ? "production" !== process.env.NODE_ENV ? invariant(!1, "%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s", component._tag, component._currentElement._owner ? " Check the render method of " + component._currentElement._owner.getName() + "." : "") : _prodInvariant("137", component._tag, component._currentElement._owner ? " Check the render method of " + component._currentElement._owner.getName() + "." : "") : void 0),
|
||
|
|
null != props.dangerouslySetInnerHTML && (null != props.children ? "production" !== process.env.NODE_ENV ? invariant(!1, "Can only set one of `children` or `props.dangerouslySetInnerHTML`.") : _prodInvariant("60") : void 0,
|
||
|
|
"object" == typeof props.dangerouslySetInnerHTML && HTML in props.dangerouslySetInnerHTML ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.") : _prodInvariant("61")),
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(null == props.innerHTML, "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(props.suppressContentEditableWarning || !props.contentEditable || null == props.children, "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(null == props.onFocusIn && null == props.onFocusOut, "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.") : void 0),
|
||
|
|
null != props.style && "object" != typeof props.style ? "production" !== process.env.NODE_ENV ? invariant(!1, "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s", getDeclarationErrorAddendum(component)) : _prodInvariant("62", getDeclarationErrorAddendum(component)) : void 0);
|
||
|
|
}
|
||
|
|
function enqueuePutListener(inst, registrationName, listener, transaction) {
|
||
|
|
if (!(transaction instanceof ReactServerRenderingTransaction)) {
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning("onScroll" !== registrationName || isEventSupported("scroll", !0), "This browser doesn't support the `onScroll` event") : void 0);
|
||
|
|
var containerInfo = inst._hostContainerInfo, isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE, doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
|
||
|
|
listenTo(registrationName, doc), transaction.getReactMountReady().enqueue(putListener, {
|
||
|
|
inst: inst,
|
||
|
|
registrationName: registrationName,
|
||
|
|
listener: listener
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function putListener() {
|
||
|
|
var listenerToPut = this;
|
||
|
|
EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener);
|
||
|
|
}
|
||
|
|
function inputPostMount() {
|
||
|
|
var inst = this;
|
||
|
|
ReactDOMInput.postMountWrapper(inst);
|
||
|
|
}
|
||
|
|
function textareaPostMount() {
|
||
|
|
var inst = this;
|
||
|
|
ReactDOMTextarea.postMountWrapper(inst);
|
||
|
|
}
|
||
|
|
function optionPostMount() {
|
||
|
|
var inst = this;
|
||
|
|
ReactDOMOption.postMountWrapper(inst);
|
||
|
|
}
|
||
|
|
function trackInputValue() {
|
||
|
|
inputValueTracking.track(this);
|
||
|
|
}
|
||
|
|
function trapBubbledEventsLocal() {
|
||
|
|
var inst = this;
|
||
|
|
inst._rootNodeID ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Must be mounted to trap events") : _prodInvariant("63");
|
||
|
|
var node = getNode(inst);
|
||
|
|
switch (node ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "trapBubbledEvent(...): Requires node to be rendered.") : _prodInvariant("64"),
|
||
|
|
inst._tag) {
|
||
|
|
case "iframe":
|
||
|
|
case "object":
|
||
|
|
inst._wrapperState.listeners = [ ReactBrowserEventEmitter.trapBubbledEvent("topLoad", "load", node) ];
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "video":
|
||
|
|
case "audio":
|
||
|
|
inst._wrapperState.listeners = [];
|
||
|
|
for (var event in mediaEvents) mediaEvents.hasOwnProperty(event) && inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node));
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "source":
|
||
|
|
inst._wrapperState.listeners = [ ReactBrowserEventEmitter.trapBubbledEvent("topError", "error", node) ];
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "img":
|
||
|
|
inst._wrapperState.listeners = [ ReactBrowserEventEmitter.trapBubbledEvent("topError", "error", node), ReactBrowserEventEmitter.trapBubbledEvent("topLoad", "load", node) ];
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "form":
|
||
|
|
inst._wrapperState.listeners = [ ReactBrowserEventEmitter.trapBubbledEvent("topReset", "reset", node), ReactBrowserEventEmitter.trapBubbledEvent("topSubmit", "submit", node) ];
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "input":
|
||
|
|
case "select":
|
||
|
|
case "textarea":
|
||
|
|
inst._wrapperState.listeners = [ ReactBrowserEventEmitter.trapBubbledEvent("topInvalid", "invalid", node) ];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function postUpdateSelectWrapper() {
|
||
|
|
ReactDOMSelect.postUpdateWrapper(this);
|
||
|
|
}
|
||
|
|
function validateDangerousTag(tag) {
|
||
|
|
hasOwnProperty.call(validatedTagCache, tag) || (VALID_TAG_REGEX.test(tag) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "Invalid tag: %s", tag) : _prodInvariant("65", tag),
|
||
|
|
validatedTagCache[tag] = !0);
|
||
|
|
}
|
||
|
|
function isCustomComponent(tagName, props) {
|
||
|
|
return tagName.indexOf("-") >= 0 || null != props.is;
|
||
|
|
}
|
||
|
|
function ReactDOMComponent(element) {
|
||
|
|
var tag = element.type;
|
||
|
|
validateDangerousTag(tag), this._currentElement = element, this._tag = tag.toLowerCase(),
|
||
|
|
this._namespaceURI = null, this._renderedChildren = null, this._previousStyle = null,
|
||
|
|
this._previousStyleCopy = null, this._hostNode = null, this._hostParent = null,
|
||
|
|
this._rootNodeID = 0, this._domID = 0, this._hostContainerInfo = null, this._wrapperState = null,
|
||
|
|
this._topLevelWrapper = null, this._flags = 0, "production" !== process.env.NODE_ENV && (this._ancestorInfo = null,
|
||
|
|
setAndValidateContentChildDev.call(this, null));
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), AutoFocusUtils = __webpack_require__(99), CSSPropertyOperations = __webpack_require__(101), DOMLazyTree = __webpack_require__(87), DOMNamespaces = __webpack_require__(88), DOMProperty = __webpack_require__(41), DOMPropertyOperations = __webpack_require__(109), EventPluginHub = __webpack_require__(47), EventPluginRegistry = __webpack_require__(48), ReactBrowserEventEmitter = __webpack_require__(111), ReactDOMComponentFlags = __webpack_require__(42), ReactDOMComponentTree = __webpack_require__(39), ReactDOMInput = __webpack_require__(114), ReactDOMOption = __webpack_require__(117), ReactDOMSelect = __webpack_require__(118), ReactDOMTextarea = __webpack_require__(119), ReactInstrumentation = __webpack_require__(67), ReactMultiChild = __webpack_require__(120), ReactServerRenderingTransaction = __webpack_require__(139), emptyFunction = __webpack_require__(9), escapeTextContentForBrowser = __webpack_require__(92), invariant = __webpack_require__(12), isEventSupported = __webpack_require__(76), shallowEqual = __webpack_require__(129), inputValueTracking = __webpack_require__(74), validateDOMNesting = __webpack_require__(142), warning = __webpack_require__(8), Flags = ReactDOMComponentFlags, deleteListener = EventPluginHub.deleteListener, getNode = ReactDOMComponentTree.getNodeFromInstance, listenTo = ReactBrowserEventEmitter.listenTo, registrationNameModules = EventPluginRegistry.registrationNameModules, CONTENT_TYPES = {
|
||
|
|
string: !0,
|
||
|
|
number: !0
|
||
|
|
}, STYLE = "style", HTML = "__html", RESERVED_PROPS = {
|
||
|
|
children: null,
|
||
|
|
dangerouslySetInnerHTML: null,
|
||
|
|
suppressContentEditableWarning: null
|
||
|
|
}, DOC_FRAGMENT_TYPE = 11, styleMutationWarning = {}, setAndValidateContentChildDev = emptyFunction;
|
||
|
|
"production" !== process.env.NODE_ENV && (setAndValidateContentChildDev = function(content) {
|
||
|
|
var hasExistingContent = null != this._contentDebugID, debugID = this._debugID, contentDebugID = -debugID;
|
||
|
|
return null == content ? (hasExistingContent && ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID),
|
||
|
|
void (this._contentDebugID = null)) : (validateDOMNesting(null, String(content), this, this._ancestorInfo),
|
||
|
|
this._contentDebugID = contentDebugID, void (hasExistingContent ? (ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content),
|
||
|
|
ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID)) : (ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID),
|
||
|
|
ReactInstrumentation.debugTool.onMountComponent(contentDebugID), ReactInstrumentation.debugTool.onSetChildren(debugID, [ contentDebugID ]))));
|
||
|
|
});
|
||
|
|
var mediaEvents = {
|
||
|
|
topAbort: "abort",
|
||
|
|
topCanPlay: "canplay",
|
||
|
|
topCanPlayThrough: "canplaythrough",
|
||
|
|
topDurationChange: "durationchange",
|
||
|
|
topEmptied: "emptied",
|
||
|
|
topEncrypted: "encrypted",
|
||
|
|
topEnded: "ended",
|
||
|
|
topError: "error",
|
||
|
|
topLoadedData: "loadeddata",
|
||
|
|
topLoadedMetadata: "loadedmetadata",
|
||
|
|
topLoadStart: "loadstart",
|
||
|
|
topPause: "pause",
|
||
|
|
topPlay: "play",
|
||
|
|
topPlaying: "playing",
|
||
|
|
topProgress: "progress",
|
||
|
|
topRateChange: "ratechange",
|
||
|
|
topSeeked: "seeked",
|
||
|
|
topSeeking: "seeking",
|
||
|
|
topStalled: "stalled",
|
||
|
|
topSuspend: "suspend",
|
||
|
|
topTimeUpdate: "timeupdate",
|
||
|
|
topVolumeChange: "volumechange",
|
||
|
|
topWaiting: "waiting"
|
||
|
|
}, omittedCloseTags = {
|
||
|
|
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
|
||
|
|
}, newlineEatingTags = {
|
||
|
|
listing: !0,
|
||
|
|
pre: !0,
|
||
|
|
textarea: !0
|
||
|
|
}, voidElementTags = _assign({
|
||
|
|
menuitem: !0
|
||
|
|
}, omittedCloseTags), VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, validatedTagCache = {}, hasOwnProperty = {}.hasOwnProperty, globalIdCounter = 1;
|
||
|
|
ReactDOMComponent.displayName = "ReactDOMComponent", ReactDOMComponent.Mixin = {
|
||
|
|
mountComponent: function(transaction, hostParent, hostContainerInfo, context) {
|
||
|
|
this._rootNodeID = globalIdCounter++, this._domID = hostContainerInfo._idCounter++,
|
||
|
|
this._hostParent = hostParent, this._hostContainerInfo = hostContainerInfo;
|
||
|
|
var props = this._currentElement.props;
|
||
|
|
switch (this._tag) {
|
||
|
|
case "audio":
|
||
|
|
case "form":
|
||
|
|
case "iframe":
|
||
|
|
case "img":
|
||
|
|
case "link":
|
||
|
|
case "object":
|
||
|
|
case "source":
|
||
|
|
case "video":
|
||
|
|
this._wrapperState = {
|
||
|
|
listeners: null
|
||
|
|
}, transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "input":
|
||
|
|
ReactDOMInput.mountWrapper(this, props, hostParent), props = ReactDOMInput.getHostProps(this, props),
|
||
|
|
transaction.getReactMountReady().enqueue(trackInputValue, this), transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "option":
|
||
|
|
ReactDOMOption.mountWrapper(this, props, hostParent), props = ReactDOMOption.getHostProps(this, props);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "select":
|
||
|
|
ReactDOMSelect.mountWrapper(this, props, hostParent), props = ReactDOMSelect.getHostProps(this, props),
|
||
|
|
transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "textarea":
|
||
|
|
ReactDOMTextarea.mountWrapper(this, props, hostParent), props = ReactDOMTextarea.getHostProps(this, props),
|
||
|
|
transaction.getReactMountReady().enqueue(trackInputValue, this), transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
|
||
|
|
}
|
||
|
|
assertValidProps(this, props);
|
||
|
|
var namespaceURI, parentTag;
|
||
|
|
if (null != hostParent ? (namespaceURI = hostParent._namespaceURI, parentTag = hostParent._tag) : hostContainerInfo._tag && (namespaceURI = hostContainerInfo._namespaceURI,
|
||
|
|
parentTag = hostContainerInfo._tag), (null == namespaceURI || namespaceURI === DOMNamespaces.svg && "foreignobject" === parentTag) && (namespaceURI = DOMNamespaces.html),
|
||
|
|
namespaceURI === DOMNamespaces.html && ("svg" === this._tag ? namespaceURI = DOMNamespaces.svg : "math" === this._tag && (namespaceURI = DOMNamespaces.mathml)),
|
||
|
|
this._namespaceURI = namespaceURI, "production" !== process.env.NODE_ENV) {
|
||
|
|
var parentInfo;
|
||
|
|
null != hostParent ? parentInfo = hostParent._ancestorInfo : hostContainerInfo._tag && (parentInfo = hostContainerInfo._ancestorInfo),
|
||
|
|
parentInfo && validateDOMNesting(this._tag, null, this, parentInfo), this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(parentInfo, this._tag, this);
|
||
|
|
}
|
||
|
|
var mountImage;
|
||
|
|
if (transaction.useCreateElement) {
|
||
|
|
var el, ownerDocument = hostContainerInfo._ownerDocument;
|
||
|
|
if (namespaceURI === DOMNamespaces.html) if ("script" === this._tag) {
|
||
|
|
var div = ownerDocument.createElement("div"), type = this._currentElement.type;
|
||
|
|
div.innerHTML = "<" + type + "></" + type + ">", el = div.removeChild(div.firstChild);
|
||
|
|
} else el = props.is ? ownerDocument.createElement(this._currentElement.type, props.is) : ownerDocument.createElement(this._currentElement.type); else el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type);
|
||
|
|
ReactDOMComponentTree.precacheNode(this, el), this._flags |= Flags.hasCachedChildNodes,
|
||
|
|
this._hostParent || DOMPropertyOperations.setAttributeForRoot(el), this._updateDOMProperties(null, props, transaction);
|
||
|
|
var lazyTree = DOMLazyTree(el);
|
||
|
|
this._createInitialChildren(transaction, props, context, lazyTree), mountImage = lazyTree;
|
||
|
|
} else {
|
||
|
|
var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props), tagContent = this._createContentMarkup(transaction, props, context);
|
||
|
|
mountImage = !tagContent && omittedCloseTags[this._tag] ? tagOpen + "/>" : tagOpen + ">" + tagContent + "</" + this._currentElement.type + ">";
|
||
|
|
}
|
||
|
|
switch (this._tag) {
|
||
|
|
case "input":
|
||
|
|
transaction.getReactMountReady().enqueue(inputPostMount, this), props.autoFocus && transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "textarea":
|
||
|
|
transaction.getReactMountReady().enqueue(textareaPostMount, this), props.autoFocus && transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "select":
|
||
|
|
props.autoFocus && transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "button":
|
||
|
|
props.autoFocus && transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "option":
|
||
|
|
transaction.getReactMountReady().enqueue(optionPostMount, this);
|
||
|
|
}
|
||
|
|
return mountImage;
|
||
|
|
},
|
||
|
|
_createOpenTagMarkupAndPutListeners: function(transaction, props) {
|
||
|
|
var ret = "<" + this._currentElement.type;
|
||
|
|
for (var propKey in props) if (props.hasOwnProperty(propKey)) {
|
||
|
|
var propValue = props[propKey];
|
||
|
|
if (null != propValue) if (registrationNameModules.hasOwnProperty(propKey)) propValue && enqueuePutListener(this, propKey, propValue, transaction); else {
|
||
|
|
propKey === STYLE && (propValue && ("production" !== process.env.NODE_ENV && (this._previousStyle = propValue),
|
||
|
|
propValue = this._previousStyleCopy = _assign({}, props.style)), propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this));
|
||
|
|
var markup = null;
|
||
|
|
null != this._tag && isCustomComponent(this._tag, props) ? RESERVED_PROPS.hasOwnProperty(propKey) || (markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue)) : markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue),
|
||
|
|
markup && (ret += " " + markup);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return transaction.renderToStaticMarkup ? ret : (this._hostParent || (ret += " " + DOMPropertyOperations.createMarkupForRoot()),
|
||
|
|
ret += " " + DOMPropertyOperations.createMarkupForID(this._domID));
|
||
|
|
},
|
||
|
|
_createContentMarkup: function(transaction, props, context) {
|
||
|
|
var ret = "", innerHTML = props.dangerouslySetInnerHTML;
|
||
|
|
if (null != innerHTML) null != innerHTML.__html && (ret = innerHTML.__html); else {
|
||
|
|
var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null, childrenToUse = null != contentToUse ? null : props.children;
|
||
|
|
if (null != contentToUse) ret = escapeTextContentForBrowser(contentToUse), "production" !== process.env.NODE_ENV && setAndValidateContentChildDev.call(this, contentToUse); else if (null != childrenToUse) {
|
||
|
|
var mountImages = this.mountChildren(childrenToUse, transaction, context);
|
||
|
|
ret = mountImages.join("");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return newlineEatingTags[this._tag] && "\n" === ret.charAt(0) ? "\n" + ret : ret;
|
||
|
|
},
|
||
|
|
_createInitialChildren: function(transaction, props, context, lazyTree) {
|
||
|
|
var innerHTML = props.dangerouslySetInnerHTML;
|
||
|
|
if (null != innerHTML) null != innerHTML.__html && DOMLazyTree.queueHTML(lazyTree, innerHTML.__html); else {
|
||
|
|
var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null, childrenToUse = null != contentToUse ? null : props.children;
|
||
|
|
if (null != contentToUse) "" !== contentToUse && ("production" !== process.env.NODE_ENV && setAndValidateContentChildDev.call(this, contentToUse),
|
||
|
|
DOMLazyTree.queueText(lazyTree, contentToUse)); else if (null != childrenToUse) for (var mountImages = this.mountChildren(childrenToUse, transaction, context), i = 0; i < mountImages.length; i++) DOMLazyTree.queueChild(lazyTree, mountImages[i]);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
receiveComponent: function(nextElement, transaction, context) {
|
||
|
|
var prevElement = this._currentElement;
|
||
|
|
this._currentElement = nextElement, this.updateComponent(transaction, prevElement, nextElement, context);
|
||
|
|
},
|
||
|
|
updateComponent: function(transaction, prevElement, nextElement, context) {
|
||
|
|
var lastProps = prevElement.props, nextProps = this._currentElement.props;
|
||
|
|
switch (this._tag) {
|
||
|
|
case "input":
|
||
|
|
lastProps = ReactDOMInput.getHostProps(this, lastProps), nextProps = ReactDOMInput.getHostProps(this, nextProps);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "option":
|
||
|
|
lastProps = ReactDOMOption.getHostProps(this, lastProps), nextProps = ReactDOMOption.getHostProps(this, nextProps);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "select":
|
||
|
|
lastProps = ReactDOMSelect.getHostProps(this, lastProps), nextProps = ReactDOMSelect.getHostProps(this, nextProps);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "textarea":
|
||
|
|
lastProps = ReactDOMTextarea.getHostProps(this, lastProps), nextProps = ReactDOMTextarea.getHostProps(this, nextProps);
|
||
|
|
}
|
||
|
|
switch (assertValidProps(this, nextProps), this._updateDOMProperties(lastProps, nextProps, transaction),
|
||
|
|
this._updateDOMChildren(lastProps, nextProps, transaction, context), this._tag) {
|
||
|
|
case "input":
|
||
|
|
ReactDOMInput.updateWrapper(this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "textarea":
|
||
|
|
ReactDOMTextarea.updateWrapper(this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "select":
|
||
|
|
transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
_updateDOMProperties: function(lastProps, nextProps, transaction) {
|
||
|
|
var propKey, styleName, styleUpdates;
|
||
|
|
for (propKey in lastProps) if (!nextProps.hasOwnProperty(propKey) && lastProps.hasOwnProperty(propKey) && null != lastProps[propKey]) if (propKey === STYLE) {
|
||
|
|
var lastStyle = this._previousStyleCopy;
|
||
|
|
for (styleName in lastStyle) lastStyle.hasOwnProperty(styleName) && (styleUpdates = styleUpdates || {},
|
||
|
|
styleUpdates[styleName] = "");
|
||
|
|
this._previousStyleCopy = null;
|
||
|
|
} else registrationNameModules.hasOwnProperty(propKey) ? lastProps[propKey] && deleteListener(this, propKey) : isCustomComponent(this._tag, lastProps) ? RESERVED_PROPS.hasOwnProperty(propKey) || DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey) : (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) && DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
|
||
|
|
for (propKey in nextProps) {
|
||
|
|
var nextProp = nextProps[propKey], lastProp = propKey === STYLE ? this._previousStyleCopy : null != lastProps ? lastProps[propKey] : void 0;
|
||
|
|
if (nextProps.hasOwnProperty(propKey) && nextProp !== lastProp && (null != nextProp || null != lastProp)) if (propKey === STYLE) if (nextProp ? ("production" !== process.env.NODE_ENV && (checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this),
|
||
|
|
this._previousStyle = nextProp), nextProp = this._previousStyleCopy = _assign({}, nextProp)) : this._previousStyleCopy = null,
|
||
|
|
lastProp) {
|
||
|
|
for (styleName in lastProp) !lastProp.hasOwnProperty(styleName) || nextProp && nextProp.hasOwnProperty(styleName) || (styleUpdates = styleUpdates || {},
|
||
|
|
styleUpdates[styleName] = "");
|
||
|
|
for (styleName in nextProp) nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName] && (styleUpdates = styleUpdates || {},
|
||
|
|
styleUpdates[styleName] = nextProp[styleName]);
|
||
|
|
} else styleUpdates = nextProp; else if (registrationNameModules.hasOwnProperty(propKey)) nextProp ? enqueuePutListener(this, propKey, nextProp, transaction) : lastProp && deleteListener(this, propKey); else if (isCustomComponent(this._tag, nextProps)) RESERVED_PROPS.hasOwnProperty(propKey) || DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp); else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
|
||
|
|
var node = getNode(this);
|
||
|
|
null != nextProp ? DOMPropertyOperations.setValueForProperty(node, propKey, nextProp) : DOMPropertyOperations.deleteValueForProperty(node, propKey);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
styleUpdates && CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this);
|
||
|
|
},
|
||
|
|
_updateDOMChildren: function(lastProps, nextProps, transaction, context) {
|
||
|
|
var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null, nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null, lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html, nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html, lastChildren = null != lastContent ? null : lastProps.children, nextChildren = null != nextContent ? null : nextProps.children, lastHasContentOrHtml = null != lastContent || null != lastHtml, nextHasContentOrHtml = null != nextContent || null != nextHtml;
|
||
|
|
null != lastChildren && null == nextChildren ? this.updateChildren(null, transaction, context) : lastHasContentOrHtml && !nextHasContentOrHtml && (this.updateTextContent(""),
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onSetChildren(this._debugID, [])),
|
||
|
|
null != nextContent ? lastContent !== nextContent && (this.updateTextContent("" + nextContent),
|
||
|
|
"production" !== process.env.NODE_ENV && setAndValidateContentChildDev.call(this, nextContent)) : null != nextHtml ? (lastHtml !== nextHtml && this.updateMarkup("" + nextHtml),
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onSetChildren(this._debugID, [])) : null != nextChildren && ("production" !== process.env.NODE_ENV && setAndValidateContentChildDev.call(this, null),
|
||
|
|
this.updateChildren(nextChildren, transaction, context));
|
||
|
|
},
|
||
|
|
getHostNode: function() {
|
||
|
|
return getNode(this);
|
||
|
|
},
|
||
|
|
unmountComponent: function(safely) {
|
||
|
|
switch (this._tag) {
|
||
|
|
case "audio":
|
||
|
|
case "form":
|
||
|
|
case "iframe":
|
||
|
|
case "img":
|
||
|
|
case "link":
|
||
|
|
case "object":
|
||
|
|
case "source":
|
||
|
|
case "video":
|
||
|
|
var listeners = this._wrapperState.listeners;
|
||
|
|
if (listeners) for (var i = 0; i < listeners.length; i++) listeners[i].remove();
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "input":
|
||
|
|
case "textarea":
|
||
|
|
inputValueTracking.stopTracking(this);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "html":
|
||
|
|
case "head":
|
||
|
|
case "body":
|
||
|
|
"production" !== process.env.NODE_ENV ? invariant(!1, "<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.", this._tag) : _prodInvariant("66", this._tag);
|
||
|
|
}
|
||
|
|
this.unmountChildren(safely), ReactDOMComponentTree.uncacheNode(this), EventPluginHub.deleteAllListeners(this),
|
||
|
|
this._rootNodeID = 0, this._domID = 0, this._wrapperState = null, "production" !== process.env.NODE_ENV && setAndValidateContentChildDev.call(this, null);
|
||
|
|
},
|
||
|
|
getPublicInstance: function() {
|
||
|
|
return getNode(this);
|
||
|
|
}
|
||
|
|
}, _assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin),
|
||
|
|
module.exports = ReactDOMComponent;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var ReactDOMComponentTree = __webpack_require__(39), focusNode = __webpack_require__(100), AutoFocusUtils = {
|
||
|
|
focusDOMComponent: function() {
|
||
|
|
focusNode(ReactDOMComponentTree.getNodeFromInstance(this));
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = AutoFocusUtils;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function focusNode(node) {
|
||
|
|
try {
|
||
|
|
node.focus();
|
||
|
|
} catch (e) {}
|
||
|
|
}
|
||
|
|
module.exports = focusNode;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var CSSProperty = __webpack_require__(102), ExecutionEnvironment = __webpack_require__(53), ReactInstrumentation = __webpack_require__(67), camelizeStyleName = __webpack_require__(103), dangerousStyleValue = __webpack_require__(105), hyphenateStyleName = __webpack_require__(106), memoizeStringOnly = __webpack_require__(108), warning = __webpack_require__(8), processStyleName = memoizeStringOnly(function(styleName) {
|
||
|
|
return hyphenateStyleName(styleName);
|
||
|
|
}), hasShorthandPropertyBug = !1, styleFloatAccessor = "cssFloat";
|
||
|
|
if (ExecutionEnvironment.canUseDOM) {
|
||
|
|
var tempStyle = document.createElement("div").style;
|
||
|
|
try {
|
||
|
|
tempStyle.font = "";
|
||
|
|
} catch (e) {
|
||
|
|
hasShorthandPropertyBug = !0;
|
||
|
|
}
|
||
|
|
void 0 === document.documentElement.style.cssFloat && (styleFloatAccessor = "styleFloat");
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV) var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = !1, warnHyphenatedStyleName = function(name, owner) {
|
||
|
|
warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "Unsupported style property %s. Did you mean %s?%s", name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0);
|
||
|
|
}, warnBadVendoredStyleName = function(name, owner) {
|
||
|
|
warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "Unsupported vendor-prefixed style property %s. Did you mean %s?%s", name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0);
|
||
|
|
}, warnStyleValueWithSemicolon = function(name, value, owner) {
|
||
|
|
warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = !0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, 'Style property values shouldn\'t contain a semicolon.%s Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, "")) : void 0);
|
||
|
|
}, warnStyleValueIsNaN = function(name, value, owner) {
|
||
|
|
warnedForNaNValue || (warnedForNaNValue = !0, "production" !== process.env.NODE_ENV ? warning(!1, "`NaN` is an invalid value for the `%s` css style property.%s", name, checkRenderMessage(owner)) : void 0);
|
||
|
|
}, checkRenderMessage = function(owner) {
|
||
|
|
if (owner) {
|
||
|
|
var name = owner.getName();
|
||
|
|
if (name) return " Check the render method of `" + name + "`.";
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}, warnValidStyle = function(name, value, component) {
|
||
|
|
var owner;
|
||
|
|
component && (owner = component._currentElement._owner), name.indexOf("-") > -1 ? warnHyphenatedStyleName(name, owner) : badVendoredStyleNamePattern.test(name) ? warnBadVendoredStyleName(name, owner) : badStyleValueWithSemicolonPattern.test(value) && warnStyleValueWithSemicolon(name, value, owner),
|
||
|
|
"number" == typeof value && isNaN(value) && warnStyleValueIsNaN(name, value, owner);
|
||
|
|
};
|
||
|
|
var CSSPropertyOperations = {
|
||
|
|
createMarkupForStyles: function(styles, component) {
|
||
|
|
var serialized = "";
|
||
|
|
for (var styleName in styles) if (styles.hasOwnProperty(styleName)) {
|
||
|
|
var isCustomProperty = 0 === styleName.indexOf("--"), styleValue = styles[styleName];
|
||
|
|
"production" !== process.env.NODE_ENV && (isCustomProperty || warnValidStyle(styleName, styleValue, component)),
|
||
|
|
null != styleValue && (serialized += processStyleName(styleName) + ":", serialized += dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ";");
|
||
|
|
}
|
||
|
|
return serialized || null;
|
||
|
|
},
|
||
|
|
setValueForStyles: function(node, styles, component) {
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: component._debugID,
|
||
|
|
type: "update styles",
|
||
|
|
payload: styles
|
||
|
|
});
|
||
|
|
var style = node.style;
|
||
|
|
for (var styleName in styles) if (styles.hasOwnProperty(styleName)) {
|
||
|
|
var isCustomProperty = 0 === styleName.indexOf("--");
|
||
|
|
"production" !== process.env.NODE_ENV && (isCustomProperty || warnValidStyle(styleName, styles[styleName], component));
|
||
|
|
var styleValue = dangerousStyleValue(styleName, styles[styleName], component, isCustomProperty);
|
||
|
|
if ("float" !== styleName && "cssFloat" !== styleName || (styleName = styleFloatAccessor),
|
||
|
|
isCustomProperty) style.setProperty(styleName, styleValue); else if (styleValue) style[styleName] = styleValue; else {
|
||
|
|
var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName];
|
||
|
|
if (expansion) for (var individualStyleName in expansion) style[individualStyleName] = ""; else style[styleName] = "";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = CSSPropertyOperations;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function prefixKey(prefix, key) {
|
||
|
|
return prefix + key.charAt(0).toUpperCase() + key.substring(1);
|
||
|
|
}
|
||
|
|
var isUnitlessNumber = {
|
||
|
|
animationIterationCount: !0,
|
||
|
|
borderImageOutset: !0,
|
||
|
|
borderImageSlice: !0,
|
||
|
|
borderImageWidth: !0,
|
||
|
|
boxFlex: !0,
|
||
|
|
boxFlexGroup: !0,
|
||
|
|
boxOrdinalGroup: !0,
|
||
|
|
columnCount: !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
|
||
|
|
}, prefixes = [ "Webkit", "ms", "Moz", "O" ];
|
||
|
|
Object.keys(isUnitlessNumber).forEach(function(prop) {
|
||
|
|
prefixes.forEach(function(prefix) {
|
||
|
|
isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
|
||
|
|
});
|
||
|
|
});
|
||
|
|
var shorthandPropertyExpansions = {
|
||
|
|
background: {
|
||
|
|
backgroundAttachment: !0,
|
||
|
|
backgroundColor: !0,
|
||
|
|
backgroundImage: !0,
|
||
|
|
backgroundPositionX: !0,
|
||
|
|
backgroundPositionY: !0,
|
||
|
|
backgroundRepeat: !0
|
||
|
|
},
|
||
|
|
backgroundPosition: {
|
||
|
|
backgroundPositionX: !0,
|
||
|
|
backgroundPositionY: !0
|
||
|
|
},
|
||
|
|
border: {
|
||
|
|
borderWidth: !0,
|
||
|
|
borderStyle: !0,
|
||
|
|
borderColor: !0
|
||
|
|
},
|
||
|
|
borderBottom: {
|
||
|
|
borderBottomWidth: !0,
|
||
|
|
borderBottomStyle: !0,
|
||
|
|
borderBottomColor: !0
|
||
|
|
},
|
||
|
|
borderLeft: {
|
||
|
|
borderLeftWidth: !0,
|
||
|
|
borderLeftStyle: !0,
|
||
|
|
borderLeftColor: !0
|
||
|
|
},
|
||
|
|
borderRight: {
|
||
|
|
borderRightWidth: !0,
|
||
|
|
borderRightStyle: !0,
|
||
|
|
borderRightColor: !0
|
||
|
|
},
|
||
|
|
borderTop: {
|
||
|
|
borderTopWidth: !0,
|
||
|
|
borderTopStyle: !0,
|
||
|
|
borderTopColor: !0
|
||
|
|
},
|
||
|
|
font: {
|
||
|
|
fontStyle: !0,
|
||
|
|
fontVariant: !0,
|
||
|
|
fontWeight: !0,
|
||
|
|
fontSize: !0,
|
||
|
|
lineHeight: !0,
|
||
|
|
fontFamily: !0
|
||
|
|
},
|
||
|
|
outline: {
|
||
|
|
outlineWidth: !0,
|
||
|
|
outlineStyle: !0,
|
||
|
|
outlineColor: !0
|
||
|
|
}
|
||
|
|
}, CSSProperty = {
|
||
|
|
isUnitlessNumber: isUnitlessNumber,
|
||
|
|
shorthandPropertyExpansions: shorthandPropertyExpansions
|
||
|
|
};
|
||
|
|
module.exports = CSSProperty;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function camelizeStyleName(string) {
|
||
|
|
return camelize(string.replace(msPattern, "ms-"));
|
||
|
|
}
|
||
|
|
var camelize = __webpack_require__(104), msPattern = /^-ms-/;
|
||
|
|
module.exports = camelizeStyleName;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function camelize(string) {
|
||
|
|
return string.replace(_hyphenPattern, function(_, character) {
|
||
|
|
return character.toUpperCase();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var _hyphenPattern = /-(.)/g;
|
||
|
|
module.exports = camelize;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function dangerousStyleValue(name, value, component, isCustomProperty) {
|
||
|
|
var isEmpty = null == value || "boolean" == typeof value || "" === value;
|
||
|
|
if (isEmpty) return "";
|
||
|
|
var isNonNumeric = isNaN(value);
|
||
|
|
if (isCustomProperty || isNonNumeric || 0 === value || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) return "" + value;
|
||
|
|
if ("string" == typeof value) {
|
||
|
|
if ("production" !== process.env.NODE_ENV && component && "0" !== value) {
|
||
|
|
var owner = component._currentElement._owner, ownerName = owner ? owner.getName() : null;
|
||
|
|
ownerName && !styleWarnings[ownerName] && (styleWarnings[ownerName] = {});
|
||
|
|
var warned = !1;
|
||
|
|
if (ownerName) {
|
||
|
|
var warnings = styleWarnings[ownerName];
|
||
|
|
warned = warnings[name], warned || (warnings[name] = !0);
|
||
|
|
}
|
||
|
|
warned || ("production" !== process.env.NODE_ENV ? warning(!1, "a `%s` tag (owner: `%s`) was passed a numeric string value for CSS property `%s` (value: `%s`) which will be treated as a unitless number in a future version of React.", component._currentElement.type, ownerName || "unknown", name, value) : void 0);
|
||
|
|
}
|
||
|
|
value = value.trim();
|
||
|
|
}
|
||
|
|
return value + "px";
|
||
|
|
}
|
||
|
|
var CSSProperty = __webpack_require__(102), warning = __webpack_require__(8), isUnitlessNumber = CSSProperty.isUnitlessNumber, styleWarnings = {};
|
||
|
|
module.exports = dangerousStyleValue;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function hyphenateStyleName(string) {
|
||
|
|
return hyphenate(string).replace(msPattern, "-ms-");
|
||
|
|
}
|
||
|
|
var hyphenate = __webpack_require__(107), msPattern = /^ms-/;
|
||
|
|
module.exports = hyphenateStyleName;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function hyphenate(string) {
|
||
|
|
return string.replace(_uppercasePattern, "-$1").toLowerCase();
|
||
|
|
}
|
||
|
|
var _uppercasePattern = /([A-Z])/g;
|
||
|
|
module.exports = hyphenate;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function memoizeStringOnly(callback) {
|
||
|
|
var cache = {};
|
||
|
|
return function(string) {
|
||
|
|
return cache.hasOwnProperty(string) || (cache[string] = callback.call(this, string)),
|
||
|
|
cache[string];
|
||
|
|
};
|
||
|
|
}
|
||
|
|
module.exports = memoizeStringOnly;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function isAttributeNameSafe(attributeName) {
|
||
|
|
return !!validatedAttributeNameCache.hasOwnProperty(attributeName) || !illegalAttributeNameCache.hasOwnProperty(attributeName) && (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) ? (validatedAttributeNameCache[attributeName] = !0,
|
||
|
|
!0) : (illegalAttributeNameCache[attributeName] = !0, "production" !== process.env.NODE_ENV ? warning(!1, "Invalid attribute name: `%s`", attributeName) : void 0,
|
||
|
|
!1));
|
||
|
|
}
|
||
|
|
function shouldIgnoreValue(propertyInfo, value) {
|
||
|
|
return null == value || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === !1;
|
||
|
|
}
|
||
|
|
var DOMProperty = __webpack_require__(41), ReactDOMComponentTree = __webpack_require__(39), ReactInstrumentation = __webpack_require__(67), quoteAttributeValueForBrowser = __webpack_require__(110), warning = __webpack_require__(8), VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + DOMProperty.ATTRIBUTE_NAME_START_CHAR + "][" + DOMProperty.ATTRIBUTE_NAME_CHAR + "]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, DOMPropertyOperations = {
|
||
|
|
createMarkupForID: function(id) {
|
||
|
|
return DOMProperty.ID_ATTRIBUTE_NAME + "=" + quoteAttributeValueForBrowser(id);
|
||
|
|
},
|
||
|
|
setAttributeForID: function(node, id) {
|
||
|
|
node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id);
|
||
|
|
},
|
||
|
|
createMarkupForRoot: function() {
|
||
|
|
return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""';
|
||
|
|
},
|
||
|
|
setAttributeForRoot: function(node) {
|
||
|
|
node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, "");
|
||
|
|
},
|
||
|
|
createMarkupForProperty: function(name, value) {
|
||
|
|
var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
|
||
|
|
if (propertyInfo) {
|
||
|
|
if (shouldIgnoreValue(propertyInfo, value)) return "";
|
||
|
|
var attributeName = propertyInfo.attributeName;
|
||
|
|
return propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === !0 ? attributeName + '=""' : attributeName + "=" + quoteAttributeValueForBrowser(value);
|
||
|
|
}
|
||
|
|
return DOMProperty.isCustomAttribute(name) ? null == value ? "" : name + "=" + quoteAttributeValueForBrowser(value) : null;
|
||
|
|
},
|
||
|
|
createMarkupForCustomAttribute: function(name, value) {
|
||
|
|
return isAttributeNameSafe(name) && null != value ? name + "=" + quoteAttributeValueForBrowser(value) : "";
|
||
|
|
},
|
||
|
|
setValueForProperty: function(node, name, value) {
|
||
|
|
var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
|
||
|
|
if (propertyInfo) {
|
||
|
|
var mutationMethod = propertyInfo.mutationMethod;
|
||
|
|
if (mutationMethod) mutationMethod(node, value); else {
|
||
|
|
if (shouldIgnoreValue(propertyInfo, value)) return void this.deleteValueForProperty(node, name);
|
||
|
|
if (propertyInfo.mustUseProperty) node[propertyInfo.propertyName] = value; else {
|
||
|
|
var attributeName = propertyInfo.attributeName, namespace = propertyInfo.attributeNamespace;
|
||
|
|
namespace ? node.setAttributeNS(namespace, attributeName, "" + value) : propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === !0 ? node.setAttribute(attributeName, "") : node.setAttribute(attributeName, "" + value);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
} else if (DOMProperty.isCustomAttribute(name)) return void DOMPropertyOperations.setValueForAttribute(node, name, value);
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var payload = {};
|
||
|
|
payload[name] = value, ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
|
||
|
|
type: "update attribute",
|
||
|
|
payload: payload
|
||
|
|
});
|
||
|
|
}
|
||
|
|
},
|
||
|
|
setValueForAttribute: function(node, name, value) {
|
||
|
|
if (isAttributeNameSafe(name) && (null == value ? node.removeAttribute(name) : node.setAttribute(name, "" + value),
|
||
|
|
"production" !== process.env.NODE_ENV)) {
|
||
|
|
var payload = {};
|
||
|
|
payload[name] = value, ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
|
||
|
|
type: "update attribute",
|
||
|
|
payload: payload
|
||
|
|
});
|
||
|
|
}
|
||
|
|
},
|
||
|
|
deleteValueForAttribute: function(node, name) {
|
||
|
|
node.removeAttribute(name), "production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
|
||
|
|
type: "remove attribute",
|
||
|
|
payload: name
|
||
|
|
});
|
||
|
|
},
|
||
|
|
deleteValueForProperty: function(node, name) {
|
||
|
|
var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
|
||
|
|
if (propertyInfo) {
|
||
|
|
var mutationMethod = propertyInfo.mutationMethod;
|
||
|
|
if (mutationMethod) mutationMethod(node, void 0); else if (propertyInfo.mustUseProperty) {
|
||
|
|
var propName = propertyInfo.propertyName;
|
||
|
|
propertyInfo.hasBooleanValue ? node[propName] = !1 : node[propName] = "";
|
||
|
|
} else node.removeAttribute(propertyInfo.attributeName);
|
||
|
|
} else DOMProperty.isCustomAttribute(name) && node.removeAttribute(name);
|
||
|
|
"production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
|
||
|
|
type: "remove attribute",
|
||
|
|
payload: name
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = DOMPropertyOperations;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function quoteAttributeValueForBrowser(value) {
|
||
|
|
return '"' + escapeTextContentForBrowser(value) + '"';
|
||
|
|
}
|
||
|
|
var escapeTextContentForBrowser = __webpack_require__(92);
|
||
|
|
module.exports = quoteAttributeValueForBrowser;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function getListeningForDocument(mountAt) {
|
||
|
|
return Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey) || (mountAt[topListenersIDKey] = reactTopListenersCounter++,
|
||
|
|
alreadyListeningTo[mountAt[topListenersIDKey]] = {}), alreadyListeningTo[mountAt[topListenersIDKey]];
|
||
|
|
}
|
||
|
|
var hasEventPageXY, _assign = __webpack_require__(4), EventPluginRegistry = __webpack_require__(48), ReactEventEmitterMixin = __webpack_require__(112), ViewportMetrics = __webpack_require__(82), getVendorPrefixedEventName = __webpack_require__(113), isEventSupported = __webpack_require__(76), alreadyListeningTo = {}, isMonitoringScrollValue = !1, reactTopListenersCounter = 0, topEventMapping = {
|
||
|
|
topAbort: "abort",
|
||
|
|
topAnimationEnd: getVendorPrefixedEventName("animationend") || "animationend",
|
||
|
|
topAnimationIteration: getVendorPrefixedEventName("animationiteration") || "animationiteration",
|
||
|
|
topAnimationStart: getVendorPrefixedEventName("animationstart") || "animationstart",
|
||
|
|
topBlur: "blur",
|
||
|
|
topCanPlay: "canplay",
|
||
|
|
topCanPlayThrough: "canplaythrough",
|
||
|
|
topChange: "change",
|
||
|
|
topClick: "click",
|
||
|
|
topCompositionEnd: "compositionend",
|
||
|
|
topCompositionStart: "compositionstart",
|
||
|
|
topCompositionUpdate: "compositionupdate",
|
||
|
|
topContextMenu: "contextmenu",
|
||
|
|
topCopy: "copy",
|
||
|
|
topCut: "cut",
|
||
|
|
topDoubleClick: "dblclick",
|
||
|
|
topDrag: "drag",
|
||
|
|
topDragEnd: "dragend",
|
||
|
|
topDragEnter: "dragenter",
|
||
|
|
topDragExit: "dragexit",
|
||
|
|
topDragLeave: "dragleave",
|
||
|
|
topDragOver: "dragover",
|
||
|
|
topDragStart: "dragstart",
|
||
|
|
topDrop: "drop",
|
||
|
|
topDurationChange: "durationchange",
|
||
|
|
topEmptied: "emptied",
|
||
|
|
topEncrypted: "encrypted",
|
||
|
|
topEnded: "ended",
|
||
|
|
topError: "error",
|
||
|
|
topFocus: "focus",
|
||
|
|
topInput: "input",
|
||
|
|
topKeyDown: "keydown",
|
||
|
|
topKeyPress: "keypress",
|
||
|
|
topKeyUp: "keyup",
|
||
|
|
topLoadedData: "loadeddata",
|
||
|
|
topLoadedMetadata: "loadedmetadata",
|
||
|
|
topLoadStart: "loadstart",
|
||
|
|
topMouseDown: "mousedown",
|
||
|
|
topMouseMove: "mousemove",
|
||
|
|
topMouseOut: "mouseout",
|
||
|
|
topMouseOver: "mouseover",
|
||
|
|
topMouseUp: "mouseup",
|
||
|
|
topPaste: "paste",
|
||
|
|
topPause: "pause",
|
||
|
|
topPlay: "play",
|
||
|
|
topPlaying: "playing",
|
||
|
|
topProgress: "progress",
|
||
|
|
topRateChange: "ratechange",
|
||
|
|
topScroll: "scroll",
|
||
|
|
topSeeked: "seeked",
|
||
|
|
topSeeking: "seeking",
|
||
|
|
topSelectionChange: "selectionchange",
|
||
|
|
topStalled: "stalled",
|
||
|
|
topSuspend: "suspend",
|
||
|
|
topTextInput: "textInput",
|
||
|
|
topTimeUpdate: "timeupdate",
|
||
|
|
topTouchCancel: "touchcancel",
|
||
|
|
topTouchEnd: "touchend",
|
||
|
|
topTouchMove: "touchmove",
|
||
|
|
topTouchStart: "touchstart",
|
||
|
|
topTransitionEnd: getVendorPrefixedEventName("transitionend") || "transitionend",
|
||
|
|
topVolumeChange: "volumechange",
|
||
|
|
topWaiting: "waiting",
|
||
|
|
topWheel: "wheel"
|
||
|
|
}, topListenersIDKey = "_reactListenersID" + String(Math.random()).slice(2), ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, {
|
||
|
|
ReactEventListener: null,
|
||
|
|
injection: {
|
||
|
|
injectReactEventListener: function(ReactEventListener) {
|
||
|
|
ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel), ReactBrowserEventEmitter.ReactEventListener = ReactEventListener;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
setEnabled: function(enabled) {
|
||
|
|
ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled);
|
||
|
|
},
|
||
|
|
isEnabled: function() {
|
||
|
|
return !(!ReactBrowserEventEmitter.ReactEventListener || !ReactBrowserEventEmitter.ReactEventListener.isEnabled());
|
||
|
|
},
|
||
|
|
listenTo: function(registrationName, contentDocumentHandle) {
|
||
|
|
for (var mountAt = contentDocumentHandle, isListening = getListeningForDocument(mountAt), dependencies = EventPluginRegistry.registrationNameDependencies[registrationName], i = 0; i < dependencies.length; i++) {
|
||
|
|
var dependency = dependencies[i];
|
||
|
|
isListening.hasOwnProperty(dependency) && isListening[dependency] || ("topWheel" === dependency ? isEventSupported("wheel") ? ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent("topWheel", "wheel", mountAt) : isEventSupported("mousewheel") ? ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent("topWheel", "mousewheel", mountAt) : ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent("topWheel", "DOMMouseScroll", mountAt) : "topScroll" === dependency ? isEventSupported("scroll", !0) ? ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent("topScroll", "scroll", mountAt) : ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent("topScroll", "scroll", ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE) : "topFocus" === dependency || "topBlur" === dependency ? (isEventSupported("focus", !0) ? (ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent("topFocus", "focus", mountAt),
|
||
|
|
ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent("topBlur", "blur", mountAt)) : isEventSupported("focusin") && (ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent("topFocus", "focusin", mountAt),
|
||
|
|
ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent("topBlur", "focusout", mountAt)),
|
||
|
|
isListening.topBlur = !0, isListening.topFocus = !0) : topEventMapping.hasOwnProperty(dependency) && ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt),
|
||
|
|
isListening[dependency] = !0);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
trapBubbledEvent: function(topLevelType, handlerBaseName, handle) {
|
||
|
|
return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle);
|
||
|
|
},
|
||
|
|
trapCapturedEvent: function(topLevelType, handlerBaseName, handle) {
|
||
|
|
return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle);
|
||
|
|
},
|
||
|
|
supportsEventPageXY: function() {
|
||
|
|
if (!document.createEvent) return !1;
|
||
|
|
var ev = document.createEvent("MouseEvent");
|
||
|
|
return null != ev && "pageX" in ev;
|
||
|
|
},
|
||
|
|
ensureScrollValueMonitoring: function() {
|
||
|
|
if (void 0 === hasEventPageXY && (hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY()),
|
||
|
|
!hasEventPageXY && !isMonitoringScrollValue) {
|
||
|
|
var refresh = ViewportMetrics.refreshScrollValues;
|
||
|
|
ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh), isMonitoringScrollValue = !0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
module.exports = ReactBrowserEventEmitter;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function runEventQueueInBatch(events) {
|
||
|
|
EventPluginHub.enqueueEvents(events), EventPluginHub.processEventQueue(!1);
|
||
|
|
}
|
||
|
|
var EventPluginHub = __webpack_require__(47), ReactEventEmitterMixin = {
|
||
|
|
handleTopLevel: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
|
||
|
|
runEventQueueInBatch(events);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactEventEmitterMixin;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function makePrefixMap(styleProp, eventName) {
|
||
|
|
var prefixes = {};
|
||
|
|
return prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(), prefixes["Webkit" + styleProp] = "webkit" + eventName,
|
||
|
|
prefixes["Moz" + styleProp] = "moz" + eventName, prefixes["ms" + styleProp] = "MS" + eventName,
|
||
|
|
prefixes["O" + styleProp] = "o" + eventName.toLowerCase(), prefixes;
|
||
|
|
}
|
||
|
|
function getVendorPrefixedEventName(eventName) {
|
||
|
|
if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];
|
||
|
|
if (!vendorPrefixes[eventName]) return eventName;
|
||
|
|
var prefixMap = vendorPrefixes[eventName];
|
||
|
|
for (var styleProp in prefixMap) if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return prefixedEventNames[eventName] = prefixMap[styleProp];
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53), vendorPrefixes = {
|
||
|
|
animationend: makePrefixMap("Animation", "AnimationEnd"),
|
||
|
|
animationiteration: makePrefixMap("Animation", "AnimationIteration"),
|
||
|
|
animationstart: makePrefixMap("Animation", "AnimationStart"),
|
||
|
|
transitionend: makePrefixMap("Transition", "TransitionEnd")
|
||
|
|
}, prefixedEventNames = {}, style = {};
|
||
|
|
ExecutionEnvironment.canUseDOM && (style = document.createElement("div").style,
|
||
|
|
"AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation,
|
||
|
|
delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition),
|
||
|
|
module.exports = getVendorPrefixedEventName;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function forceUpdateIfMounted() {
|
||
|
|
this._rootNodeID && ReactDOMInput.updateWrapper(this);
|
||
|
|
}
|
||
|
|
function isControlled(props) {
|
||
|
|
var usesChecked = "checkbox" === props.type || "radio" === props.type;
|
||
|
|
return usesChecked ? null != props.checked : null != props.value;
|
||
|
|
}
|
||
|
|
function _handleChange(event) {
|
||
|
|
var props = this._currentElement.props, returnValue = LinkedValueUtils.executeOnChange(props, event);
|
||
|
|
ReactUpdates.asap(forceUpdateIfMounted, this);
|
||
|
|
var name = props.name;
|
||
|
|
if ("radio" === props.type && null != name) {
|
||
|
|
for (var rootNode = ReactDOMComponentTree.getNodeFromInstance(this), queryRoot = rootNode; queryRoot.parentNode; ) queryRoot = queryRoot.parentNode;
|
||
|
|
for (var group = queryRoot.querySelectorAll("input[name=" + JSON.stringify("" + name) + '][type="radio"]'), i = 0; i < group.length; i++) {
|
||
|
|
var otherNode = group[i];
|
||
|
|
if (otherNode !== rootNode && otherNode.form === rootNode.form) {
|
||
|
|
var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode);
|
||
|
|
otherInstance ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.") : _prodInvariant("90"),
|
||
|
|
ReactUpdates.asap(forceUpdateIfMounted, otherInstance);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return returnValue;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), DOMPropertyOperations = __webpack_require__(109), LinkedValueUtils = __webpack_require__(115), ReactDOMComponentTree = __webpack_require__(39), ReactUpdates = __webpack_require__(61), invariant = __webpack_require__(12), warning = __webpack_require__(8), didWarnValueLink = !1, didWarnCheckedLink = !1, didWarnValueDefaultValue = !1, didWarnCheckedDefaultChecked = !1, didWarnControlledToUncontrolled = !1, didWarnUncontrolledToControlled = !1, ReactDOMInput = {
|
||
|
|
getHostProps: function(inst, props) {
|
||
|
|
var value = LinkedValueUtils.getValue(props), checked = LinkedValueUtils.getChecked(props), hostProps = _assign({
|
||
|
|
type: void 0,
|
||
|
|
step: void 0,
|
||
|
|
min: void 0,
|
||
|
|
max: void 0
|
||
|
|
}, props, {
|
||
|
|
defaultChecked: void 0,
|
||
|
|
defaultValue: void 0,
|
||
|
|
value: null != value ? value : inst._wrapperState.initialValue,
|
||
|
|
checked: null != checked ? checked : inst._wrapperState.initialChecked,
|
||
|
|
onChange: inst._wrapperState.onChange
|
||
|
|
});
|
||
|
|
return hostProps;
|
||
|
|
},
|
||
|
|
mountWrapper: function(inst, props) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
LinkedValueUtils.checkPropTypes("input", props, inst._currentElement._owner);
|
||
|
|
var owner = inst._currentElement._owner;
|
||
|
|
void 0 === props.valueLink || didWarnValueLink || ("production" !== process.env.NODE_ENV ? warning(!1, "`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead.") : void 0,
|
||
|
|
didWarnValueLink = !0), void 0 === props.checkedLink || didWarnCheckedLink || ("production" !== process.env.NODE_ENV ? warning(!1, "`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead.") : void 0,
|
||
|
|
didWarnCheckedLink = !0), void 0 === props.checked || void 0 === props.defaultChecked || didWarnCheckedDefaultChecked || ("production" !== process.env.NODE_ENV ? warning(!1, "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components", owner && owner.getName() || "A component", props.type) : void 0,
|
||
|
|
didWarnCheckedDefaultChecked = !0), void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || ("production" !== process.env.NODE_ENV ? warning(!1, "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components", owner && owner.getName() || "A component", props.type) : void 0,
|
||
|
|
didWarnValueDefaultValue = !0);
|
||
|
|
}
|
||
|
|
var defaultValue = props.defaultValue;
|
||
|
|
inst._wrapperState = {
|
||
|
|
initialChecked: null != props.checked ? props.checked : props.defaultChecked,
|
||
|
|
initialValue: null != props.value ? props.value : defaultValue,
|
||
|
|
listeners: null,
|
||
|
|
onChange: _handleChange.bind(inst),
|
||
|
|
controlled: isControlled(props)
|
||
|
|
};
|
||
|
|
},
|
||
|
|
updateWrapper: function(inst) {
|
||
|
|
var props = inst._currentElement.props;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var controlled = isControlled(props), owner = inst._currentElement._owner;
|
||
|
|
inst._wrapperState.controlled || !controlled || didWarnUncontrolledToControlled || ("production" !== process.env.NODE_ENV ? warning(!1, "%s is changing an uncontrolled input of type %s to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components", owner && owner.getName() || "A component", props.type) : void 0,
|
||
|
|
didWarnUncontrolledToControlled = !0), !inst._wrapperState.controlled || controlled || didWarnControlledToUncontrolled || ("production" !== process.env.NODE_ENV ? warning(!1, "%s is changing a controlled input of type %s to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components", owner && owner.getName() || "A component", props.type) : void 0,
|
||
|
|
didWarnControlledToUncontrolled = !0);
|
||
|
|
}
|
||
|
|
var checked = props.checked;
|
||
|
|
null != checked && DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), "checked", checked || !1);
|
||
|
|
var node = ReactDOMComponentTree.getNodeFromInstance(inst), value = LinkedValueUtils.getValue(props);
|
||
|
|
if (null != value) if (0 === value && "" === node.value) node.value = "0"; else if ("number" === props.type) {
|
||
|
|
var valueAsNumber = parseFloat(node.value, 10) || 0;
|
||
|
|
(value != valueAsNumber || value == valueAsNumber && node.value != value) && (node.value = "" + value);
|
||
|
|
} else node.value !== "" + value && (node.value = "" + value); else null == props.value && null != props.defaultValue && node.defaultValue !== "" + props.defaultValue && (node.defaultValue = "" + props.defaultValue),
|
||
|
|
null == props.checked && null != props.defaultChecked && (node.defaultChecked = !!props.defaultChecked);
|
||
|
|
},
|
||
|
|
postMountWrapper: function(inst) {
|
||
|
|
var props = inst._currentElement.props, node = ReactDOMComponentTree.getNodeFromInstance(inst);
|
||
|
|
switch (props.type) {
|
||
|
|
case "submit":
|
||
|
|
case "reset":
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "color":
|
||
|
|
case "date":
|
||
|
|
case "datetime":
|
||
|
|
case "datetime-local":
|
||
|
|
case "month":
|
||
|
|
case "time":
|
||
|
|
case "week":
|
||
|
|
node.value = "", node.value = node.defaultValue;
|
||
|
|
break;
|
||
|
|
|
||
|
|
default:
|
||
|
|
node.value = node.value;
|
||
|
|
}
|
||
|
|
var name = node.name;
|
||
|
|
"" !== name && (node.name = ""), node.defaultChecked = !node.defaultChecked, node.defaultChecked = !node.defaultChecked,
|
||
|
|
"" !== name && (node.name = name);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMInput;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function _assertSingleLink(inputProps) {
|
||
|
|
null != inputProps.checkedLink && null != inputProps.valueLink ? "production" !== process.env.NODE_ENV ? invariant(!1, "Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa.") : _prodInvariant("87") : void 0;
|
||
|
|
}
|
||
|
|
function _assertValueLink(inputProps) {
|
||
|
|
_assertSingleLink(inputProps), null != inputProps.value || null != inputProps.onChange ? "production" !== process.env.NODE_ENV ? invariant(!1, "Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink.") : _prodInvariant("88") : void 0;
|
||
|
|
}
|
||
|
|
function _assertCheckedLink(inputProps) {
|
||
|
|
_assertSingleLink(inputProps), null != inputProps.checked || null != inputProps.onChange ? "production" !== process.env.NODE_ENV ? invariant(!1, "Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink") : _prodInvariant("89") : void 0;
|
||
|
|
}
|
||
|
|
function getDeclarationErrorAddendum(owner) {
|
||
|
|
if (owner) {
|
||
|
|
var name = owner.getName();
|
||
|
|
if (name) return " Check the render method of `" + name + "`.";
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), ReactPropTypesSecret = __webpack_require__(116), propTypesFactory = __webpack_require__(29), React = __webpack_require__(2), PropTypes = propTypesFactory(React.isValidElement), invariant = __webpack_require__(12), warning = __webpack_require__(8), hasReadOnlyValue = {
|
||
|
|
button: !0,
|
||
|
|
checkbox: !0,
|
||
|
|
image: !0,
|
||
|
|
hidden: !0,
|
||
|
|
radio: !0,
|
||
|
|
reset: !0,
|
||
|
|
submit: !0
|
||
|
|
}, propTypes = {
|
||
|
|
value: function(props, propName, componentName) {
|
||
|
|
return !props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled ? null : new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.");
|
||
|
|
},
|
||
|
|
checked: function(props, propName, componentName) {
|
||
|
|
return !props[propName] || props.onChange || props.readOnly || props.disabled ? null : new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.");
|
||
|
|
},
|
||
|
|
onChange: PropTypes.func
|
||
|
|
}, loggedTypeFailures = {}, LinkedValueUtils = {
|
||
|
|
checkPropTypes: function(tagName, props, owner) {
|
||
|
|
for (var propName in propTypes) {
|
||
|
|
if (propTypes.hasOwnProperty(propName)) var error = propTypes[propName](props, propName, tagName, "prop", null, ReactPropTypesSecret);
|
||
|
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
||
|
|
loggedTypeFailures[error.message] = !0;
|
||
|
|
var addendum = getDeclarationErrorAddendum(owner);
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "Failed form propType: %s%s", error.message, addendum) : void 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
getValue: function(inputProps) {
|
||
|
|
return inputProps.valueLink ? (_assertValueLink(inputProps), inputProps.valueLink.value) : inputProps.value;
|
||
|
|
},
|
||
|
|
getChecked: function(inputProps) {
|
||
|
|
return inputProps.checkedLink ? (_assertCheckedLink(inputProps), inputProps.checkedLink.value) : inputProps.checked;
|
||
|
|
},
|
||
|
|
executeOnChange: function(inputProps, event) {
|
||
|
|
return inputProps.valueLink ? (_assertValueLink(inputProps), inputProps.valueLink.requestChange(event.target.value)) : inputProps.checkedLink ? (_assertCheckedLink(inputProps),
|
||
|
|
inputProps.checkedLink.requestChange(event.target.checked)) : inputProps.onChange ? inputProps.onChange.call(void 0, event) : void 0;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = LinkedValueUtils;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
||
|
|
module.exports = ReactPropTypesSecret;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function flattenChildren(children) {
|
||
|
|
var content = "";
|
||
|
|
return React.Children.forEach(children, function(child) {
|
||
|
|
null != child && ("string" == typeof child || "number" == typeof child ? content += child : didWarnInvalidOptionChildren || (didWarnInvalidOptionChildren = !0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "Only strings and numbers are supported as <option> children.") : void 0));
|
||
|
|
}), content;
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), React = __webpack_require__(2), ReactDOMComponentTree = __webpack_require__(39), ReactDOMSelect = __webpack_require__(118), warning = __webpack_require__(8), didWarnInvalidOptionChildren = !1, ReactDOMOption = {
|
||
|
|
mountWrapper: function(inst, props, hostParent) {
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(null == props.selected, "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.") : void 0);
|
||
|
|
var selectValue = null;
|
||
|
|
if (null != hostParent) {
|
||
|
|
var selectParent = hostParent;
|
||
|
|
"optgroup" === selectParent._tag && (selectParent = selectParent._hostParent), null != selectParent && "select" === selectParent._tag && (selectValue = ReactDOMSelect.getSelectValueContext(selectParent));
|
||
|
|
}
|
||
|
|
var selected = null;
|
||
|
|
if (null != selectValue) {
|
||
|
|
var value;
|
||
|
|
if (value = null != props.value ? props.value + "" : flattenChildren(props.children),
|
||
|
|
selected = !1, Array.isArray(selectValue)) {
|
||
|
|
for (var i = 0; i < selectValue.length; i++) if ("" + selectValue[i] === value) {
|
||
|
|
selected = !0;
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
} else selected = "" + selectValue === value;
|
||
|
|
}
|
||
|
|
inst._wrapperState = {
|
||
|
|
selected: selected
|
||
|
|
};
|
||
|
|
},
|
||
|
|
postMountWrapper: function(inst) {
|
||
|
|
var props = inst._currentElement.props;
|
||
|
|
if (null != props.value) {
|
||
|
|
var node = ReactDOMComponentTree.getNodeFromInstance(inst);
|
||
|
|
node.setAttribute("value", props.value);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
getHostProps: function(inst, props) {
|
||
|
|
var hostProps = _assign({
|
||
|
|
selected: void 0,
|
||
|
|
children: void 0
|
||
|
|
}, props);
|
||
|
|
null != inst._wrapperState.selected && (hostProps.selected = inst._wrapperState.selected);
|
||
|
|
var content = flattenChildren(props.children);
|
||
|
|
return content && (hostProps.children = content), hostProps;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMOption;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function updateOptionsIfPendingUpdateAndMounted() {
|
||
|
|
if (this._rootNodeID && this._wrapperState.pendingUpdate) {
|
||
|
|
this._wrapperState.pendingUpdate = !1;
|
||
|
|
var props = this._currentElement.props, value = LinkedValueUtils.getValue(props);
|
||
|
|
null != value && updateOptions(this, Boolean(props.multiple), value);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function getDeclarationErrorAddendum(owner) {
|
||
|
|
if (owner) {
|
||
|
|
var name = owner.getName();
|
||
|
|
if (name) return " Check the render method of `" + name + "`.";
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
function checkSelectPropTypes(inst, props) {
|
||
|
|
var owner = inst._currentElement._owner;
|
||
|
|
LinkedValueUtils.checkPropTypes("select", props, owner), void 0 === props.valueLink || didWarnValueLink || ("production" !== process.env.NODE_ENV ? warning(!1, "`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead.") : void 0,
|
||
|
|
didWarnValueLink = !0);
|
||
|
|
for (var i = 0; i < valuePropNames.length; i++) {
|
||
|
|
var propName = valuePropNames[i];
|
||
|
|
if (null != props[propName]) {
|
||
|
|
var isArray = Array.isArray(props[propName]);
|
||
|
|
props.multiple && !isArray ? "production" !== process.env.NODE_ENV ? warning(!1, "The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", propName, getDeclarationErrorAddendum(owner)) : void 0 : !props.multiple && isArray && ("production" !== process.env.NODE_ENV ? warning(!1, "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", propName, getDeclarationErrorAddendum(owner)) : void 0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function updateOptions(inst, multiple, propValue) {
|
||
|
|
var selectedValue, i, options = ReactDOMComponentTree.getNodeFromInstance(inst).options;
|
||
|
|
if (multiple) {
|
||
|
|
for (selectedValue = {}, i = 0; i < propValue.length; i++) selectedValue["" + propValue[i]] = !0;
|
||
|
|
for (i = 0; i < options.length; i++) {
|
||
|
|
var selected = selectedValue.hasOwnProperty(options[i].value);
|
||
|
|
options[i].selected !== selected && (options[i].selected = selected);
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
for (selectedValue = "" + propValue, i = 0; i < options.length; i++) if (options[i].value === selectedValue) return void (options[i].selected = !0);
|
||
|
|
options.length && (options[0].selected = !0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function _handleChange(event) {
|
||
|
|
var props = this._currentElement.props, returnValue = LinkedValueUtils.executeOnChange(props, event);
|
||
|
|
return this._rootNodeID && (this._wrapperState.pendingUpdate = !0), ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this),
|
||
|
|
returnValue;
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), LinkedValueUtils = __webpack_require__(115), ReactDOMComponentTree = __webpack_require__(39), ReactUpdates = __webpack_require__(61), warning = __webpack_require__(8), didWarnValueLink = !1, didWarnValueDefaultValue = !1, valuePropNames = [ "value", "defaultValue" ], ReactDOMSelect = {
|
||
|
|
getHostProps: function(inst, props) {
|
||
|
|
return _assign({}, props, {
|
||
|
|
onChange: inst._wrapperState.onChange,
|
||
|
|
value: void 0
|
||
|
|
});
|
||
|
|
},
|
||
|
|
mountWrapper: function(inst, props) {
|
||
|
|
"production" !== process.env.NODE_ENV && checkSelectPropTypes(inst, props);
|
||
|
|
var value = LinkedValueUtils.getValue(props);
|
||
|
|
inst._wrapperState = {
|
||
|
|
pendingUpdate: !1,
|
||
|
|
initialValue: null != value ? value : props.defaultValue,
|
||
|
|
listeners: null,
|
||
|
|
onChange: _handleChange.bind(inst),
|
||
|
|
wasMultiple: Boolean(props.multiple)
|
||
|
|
}, void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || ("production" !== process.env.NODE_ENV ? warning(!1, "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://fb.me/react-controlled-components") : void 0,
|
||
|
|
didWarnValueDefaultValue = !0);
|
||
|
|
},
|
||
|
|
getSelectValueContext: function(inst) {
|
||
|
|
return inst._wrapperState.initialValue;
|
||
|
|
},
|
||
|
|
postUpdateWrapper: function(inst) {
|
||
|
|
var props = inst._currentElement.props;
|
||
|
|
inst._wrapperState.initialValue = void 0;
|
||
|
|
var wasMultiple = inst._wrapperState.wasMultiple;
|
||
|
|
inst._wrapperState.wasMultiple = Boolean(props.multiple);
|
||
|
|
var value = LinkedValueUtils.getValue(props);
|
||
|
|
null != value ? (inst._wrapperState.pendingUpdate = !1, updateOptions(inst, Boolean(props.multiple), value)) : wasMultiple !== Boolean(props.multiple) && (null != props.defaultValue ? updateOptions(inst, Boolean(props.multiple), props.defaultValue) : updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : ""));
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMSelect;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function forceUpdateIfMounted() {
|
||
|
|
this._rootNodeID && ReactDOMTextarea.updateWrapper(this);
|
||
|
|
}
|
||
|
|
function _handleChange(event) {
|
||
|
|
var props = this._currentElement.props, returnValue = LinkedValueUtils.executeOnChange(props, event);
|
||
|
|
return ReactUpdates.asap(forceUpdateIfMounted, this), returnValue;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), LinkedValueUtils = __webpack_require__(115), ReactDOMComponentTree = __webpack_require__(39), ReactUpdates = __webpack_require__(61), invariant = __webpack_require__(12), warning = __webpack_require__(8), didWarnValueLink = !1, didWarnValDefaultVal = !1, ReactDOMTextarea = {
|
||
|
|
getHostProps: function(inst, props) {
|
||
|
|
null != props.dangerouslySetInnerHTML ? "production" !== process.env.NODE_ENV ? invariant(!1, "`dangerouslySetInnerHTML` does not make sense on <textarea>.") : _prodInvariant("91") : void 0;
|
||
|
|
var hostProps = _assign({}, props, {
|
||
|
|
value: void 0,
|
||
|
|
defaultValue: void 0,
|
||
|
|
children: "" + inst._wrapperState.initialValue,
|
||
|
|
onChange: inst._wrapperState.onChange
|
||
|
|
});
|
||
|
|
return hostProps;
|
||
|
|
},
|
||
|
|
mountWrapper: function(inst, props) {
|
||
|
|
"production" !== process.env.NODE_ENV && (LinkedValueUtils.checkPropTypes("textarea", props, inst._currentElement._owner),
|
||
|
|
void 0 === props.valueLink || didWarnValueLink || ("production" !== process.env.NODE_ENV ? warning(!1, "`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead.") : void 0,
|
||
|
|
didWarnValueLink = !0), void 0 === props.value || void 0 === props.defaultValue || didWarnValDefaultVal || ("production" !== process.env.NODE_ENV ? warning(!1, "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/react-controlled-components") : void 0,
|
||
|
|
didWarnValDefaultVal = !0));
|
||
|
|
var value = LinkedValueUtils.getValue(props), initialValue = value;
|
||
|
|
if (null == value) {
|
||
|
|
var defaultValue = props.defaultValue, children = props.children;
|
||
|
|
null != children && ("production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(!1, "Use the `defaultValue` or `value` props instead of setting children on <textarea>.") : void 0),
|
||
|
|
null != defaultValue ? "production" !== process.env.NODE_ENV ? invariant(!1, "If you supply `defaultValue` on a <textarea>, do not pass children.") : _prodInvariant("92") : void 0,
|
||
|
|
Array.isArray(children) && (children.length <= 1 ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "<textarea> can only have at most one child.") : _prodInvariant("93"),
|
||
|
|
children = children[0]), defaultValue = "" + children), null == defaultValue && (defaultValue = ""),
|
||
|
|
initialValue = defaultValue;
|
||
|
|
}
|
||
|
|
inst._wrapperState = {
|
||
|
|
initialValue: "" + initialValue,
|
||
|
|
listeners: null,
|
||
|
|
onChange: _handleChange.bind(inst)
|
||
|
|
};
|
||
|
|
},
|
||
|
|
updateWrapper: function(inst) {
|
||
|
|
var props = inst._currentElement.props, node = ReactDOMComponentTree.getNodeFromInstance(inst), value = LinkedValueUtils.getValue(props);
|
||
|
|
if (null != value) {
|
||
|
|
var newValue = "" + value;
|
||
|
|
newValue !== node.value && (node.value = newValue), null == props.defaultValue && (node.defaultValue = newValue);
|
||
|
|
}
|
||
|
|
null != props.defaultValue && (node.defaultValue = props.defaultValue);
|
||
|
|
},
|
||
|
|
postMountWrapper: function(inst) {
|
||
|
|
var node = ReactDOMComponentTree.getNodeFromInstance(inst), textContent = node.textContent;
|
||
|
|
textContent === inst._wrapperState.initialValue && (node.value = textContent);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMTextarea;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function makeInsertMarkup(markup, afterNode, toIndex) {
|
||
|
|
return {
|
||
|
|
type: "INSERT_MARKUP",
|
||
|
|
content: markup,
|
||
|
|
fromIndex: null,
|
||
|
|
fromNode: null,
|
||
|
|
toIndex: toIndex,
|
||
|
|
afterNode: afterNode
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function makeMove(child, afterNode, toIndex) {
|
||
|
|
return {
|
||
|
|
type: "MOVE_EXISTING",
|
||
|
|
content: null,
|
||
|
|
fromIndex: child._mountIndex,
|
||
|
|
fromNode: ReactReconciler.getHostNode(child),
|
||
|
|
toIndex: toIndex,
|
||
|
|
afterNode: afterNode
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function makeRemove(child, node) {
|
||
|
|
return {
|
||
|
|
type: "REMOVE_NODE",
|
||
|
|
content: null,
|
||
|
|
fromIndex: child._mountIndex,
|
||
|
|
fromNode: node,
|
||
|
|
toIndex: null,
|
||
|
|
afterNode: null
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function makeSetMarkup(markup) {
|
||
|
|
return {
|
||
|
|
type: "SET_MARKUP",
|
||
|
|
content: markup,
|
||
|
|
fromIndex: null,
|
||
|
|
fromNode: null,
|
||
|
|
toIndex: null,
|
||
|
|
afterNode: null
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function makeTextContent(textContent) {
|
||
|
|
return {
|
||
|
|
type: "TEXT_CONTENT",
|
||
|
|
content: textContent,
|
||
|
|
fromIndex: null,
|
||
|
|
fromNode: null,
|
||
|
|
toIndex: null,
|
||
|
|
afterNode: null
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function enqueue(queue, update) {
|
||
|
|
return update && (queue = queue || [], queue.push(update)), queue;
|
||
|
|
}
|
||
|
|
function processQueue(inst, updateQueue) {
|
||
|
|
ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue);
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), ReactComponentEnvironment = __webpack_require__(121), ReactInstanceMap = __webpack_require__(122), ReactInstrumentation = __webpack_require__(67), ReactCurrentOwner = __webpack_require__(17), ReactReconciler = __webpack_require__(64), ReactChildReconciler = __webpack_require__(123), emptyFunction = __webpack_require__(9), flattenChildren = __webpack_require__(138), invariant = __webpack_require__(12), setChildrenForInstrumentation = emptyFunction;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var getDebugID = function(inst) {
|
||
|
|
if (!inst._debugID) {
|
||
|
|
var internal;
|
||
|
|
(internal = ReactInstanceMap.get(inst)) && (inst = internal);
|
||
|
|
}
|
||
|
|
return inst._debugID;
|
||
|
|
};
|
||
|
|
setChildrenForInstrumentation = function(children) {
|
||
|
|
var debugID = getDebugID(this);
|
||
|
|
0 !== debugID && ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function(key) {
|
||
|
|
return children[key]._debugID;
|
||
|
|
}) : []);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
var ReactMultiChild = {
|
||
|
|
Mixin: {
|
||
|
|
_reconcilerInstantiateChildren: function(nestedChildren, transaction, context) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var selfDebugID = getDebugID(this);
|
||
|
|
if (this._currentElement) try {
|
||
|
|
return ReactCurrentOwner.current = this._currentElement._owner, ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID);
|
||
|
|
} finally {
|
||
|
|
ReactCurrentOwner.current = null;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context);
|
||
|
|
},
|
||
|
|
_reconcilerUpdateChildren: function(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) {
|
||
|
|
var nextChildren, selfDebugID = 0;
|
||
|
|
if ("production" !== process.env.NODE_ENV && (selfDebugID = getDebugID(this), this._currentElement)) {
|
||
|
|
try {
|
||
|
|
ReactCurrentOwner.current = this._currentElement._owner, nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
|
||
|
|
} finally {
|
||
|
|
ReactCurrentOwner.current = null;
|
||
|
|
}
|
||
|
|
return ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID),
|
||
|
|
nextChildren;
|
||
|
|
}
|
||
|
|
return nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID),
|
||
|
|
ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID),
|
||
|
|
nextChildren;
|
||
|
|
},
|
||
|
|
mountChildren: function(nestedChildren, transaction, context) {
|
||
|
|
var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context);
|
||
|
|
this._renderedChildren = children;
|
||
|
|
var mountImages = [], index = 0;
|
||
|
|
for (var name in children) if (children.hasOwnProperty(name)) {
|
||
|
|
var child = children[name], selfDebugID = 0;
|
||
|
|
"production" !== process.env.NODE_ENV && (selfDebugID = getDebugID(this));
|
||
|
|
var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID);
|
||
|
|
child._mountIndex = index++, mountImages.push(mountImage);
|
||
|
|
}
|
||
|
|
return "production" !== process.env.NODE_ENV && setChildrenForInstrumentation.call(this, children),
|
||
|
|
mountImages;
|
||
|
|
},
|
||
|
|
updateTextContent: function(nextContent) {
|
||
|
|
var prevChildren = this._renderedChildren;
|
||
|
|
ReactChildReconciler.unmountChildren(prevChildren, !1);
|
||
|
|
for (var name in prevChildren) prevChildren.hasOwnProperty(name) && ("production" !== process.env.NODE_ENV ? invariant(!1, "updateTextContent called on non-empty component.") : _prodInvariant("118"));
|
||
|
|
var updates = [ makeTextContent(nextContent) ];
|
||
|
|
processQueue(this, updates);
|
||
|
|
},
|
||
|
|
updateMarkup: function(nextMarkup) {
|
||
|
|
var prevChildren = this._renderedChildren;
|
||
|
|
ReactChildReconciler.unmountChildren(prevChildren, !1);
|
||
|
|
for (var name in prevChildren) prevChildren.hasOwnProperty(name) && ("production" !== process.env.NODE_ENV ? invariant(!1, "updateTextContent called on non-empty component.") : _prodInvariant("118"));
|
||
|
|
var updates = [ makeSetMarkup(nextMarkup) ];
|
||
|
|
processQueue(this, updates);
|
||
|
|
},
|
||
|
|
updateChildren: function(nextNestedChildrenElements, transaction, context) {
|
||
|
|
this._updateChildren(nextNestedChildrenElements, transaction, context);
|
||
|
|
},
|
||
|
|
_updateChildren: function(nextNestedChildrenElements, transaction, context) {
|
||
|
|
var prevChildren = this._renderedChildren, removedNodes = {}, mountImages = [], nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context);
|
||
|
|
if (nextChildren || prevChildren) {
|
||
|
|
var name, updates = null, nextIndex = 0, lastIndex = 0, nextMountIndex = 0, lastPlacedNode = null;
|
||
|
|
for (name in nextChildren) if (nextChildren.hasOwnProperty(name)) {
|
||
|
|
var prevChild = prevChildren && prevChildren[name], nextChild = nextChildren[name];
|
||
|
|
prevChild === nextChild ? (updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex)),
|
||
|
|
lastIndex = Math.max(prevChild._mountIndex, lastIndex), prevChild._mountIndex = nextIndex) : (prevChild && (lastIndex = Math.max(prevChild._mountIndex, lastIndex)),
|
||
|
|
updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context)),
|
||
|
|
nextMountIndex++), nextIndex++, lastPlacedNode = ReactReconciler.getHostNode(nextChild);
|
||
|
|
}
|
||
|
|
for (name in removedNodes) removedNodes.hasOwnProperty(name) && (updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name])));
|
||
|
|
updates && processQueue(this, updates), this._renderedChildren = nextChildren, "production" !== process.env.NODE_ENV && setChildrenForInstrumentation.call(this, nextChildren);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
unmountChildren: function(safely) {
|
||
|
|
var renderedChildren = this._renderedChildren;
|
||
|
|
ReactChildReconciler.unmountChildren(renderedChildren, safely), this._renderedChildren = null;
|
||
|
|
},
|
||
|
|
moveChild: function(child, afterNode, toIndex, lastIndex) {
|
||
|
|
if (child._mountIndex < lastIndex) return makeMove(child, afterNode, toIndex);
|
||
|
|
},
|
||
|
|
createChild: function(child, afterNode, mountImage) {
|
||
|
|
return makeInsertMarkup(mountImage, afterNode, child._mountIndex);
|
||
|
|
},
|
||
|
|
removeChild: function(child, node) {
|
||
|
|
return makeRemove(child, node);
|
||
|
|
},
|
||
|
|
_mountChildAtIndex: function(child, mountImage, afterNode, index, transaction, context) {
|
||
|
|
return child._mountIndex = index, this.createChild(child, afterNode, mountImage);
|
||
|
|
},
|
||
|
|
_unmountChild: function(child, node) {
|
||
|
|
var update = this.removeChild(child, node);
|
||
|
|
return child._mountIndex = null, update;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactMultiChild;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), injected = !1, ReactComponentEnvironment = {
|
||
|
|
replaceNodeWithMarkup: null,
|
||
|
|
processChildrenUpdates: null,
|
||
|
|
injection: {
|
||
|
|
injectEnvironment: function(environment) {
|
||
|
|
injected ? "production" !== process.env.NODE_ENV ? invariant(!1, "ReactCompositeComponent: injectEnvironment() can only be called once.") : _prodInvariant("104") : void 0,
|
||
|
|
ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup,
|
||
|
|
ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates,
|
||
|
|
injected = !0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactComponentEnvironment;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactInstanceMap = {
|
||
|
|
remove: function(key) {
|
||
|
|
key._reactInternalInstance = void 0;
|
||
|
|
},
|
||
|
|
get: function(key) {
|
||
|
|
return key._reactInternalInstance;
|
||
|
|
},
|
||
|
|
has: function(key) {
|
||
|
|
return void 0 !== key._reactInternalInstance;
|
||
|
|
},
|
||
|
|
set: function(key, value) {
|
||
|
|
key._reactInternalInstance = value;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactInstanceMap;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function instantiateChild(childInstances, child, name, selfDebugID) {
|
||
|
|
var keyUnique = void 0 === childInstances[name];
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactComponentTreeHook || (ReactComponentTreeHook = __webpack_require__(24)),
|
||
|
|
keyUnique || ("production" !== process.env.NODE_ENV ? warning(!1, "flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.%s", KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0)),
|
||
|
|
null != child && keyUnique && (childInstances[name] = instantiateReactComponent(child, !0));
|
||
|
|
}
|
||
|
|
var ReactComponentTreeHook, ReactReconciler = __webpack_require__(64), instantiateReactComponent = __webpack_require__(124), KeyEscapeUtils = __webpack_require__(134), shouldUpdateReactComponent = __webpack_require__(130), traverseAllChildren = __webpack_require__(135), warning = __webpack_require__(8);
|
||
|
|
"undefined" != typeof process && process.env && "test" === process.env.NODE_ENV && (ReactComponentTreeHook = __webpack_require__(24));
|
||
|
|
var ReactChildReconciler = {
|
||
|
|
instantiateChildren: function(nestedChildNodes, transaction, context, selfDebugID) {
|
||
|
|
if (null == nestedChildNodes) return null;
|
||
|
|
var childInstances = {};
|
||
|
|
return "production" !== process.env.NODE_ENV ? traverseAllChildren(nestedChildNodes, function(childInsts, child, name) {
|
||
|
|
return instantiateChild(childInsts, child, name, selfDebugID);
|
||
|
|
}, childInstances) : traverseAllChildren(nestedChildNodes, instantiateChild, childInstances),
|
||
|
|
childInstances;
|
||
|
|
},
|
||
|
|
updateChildren: function(prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID) {
|
||
|
|
if (nextChildren || prevChildren) {
|
||
|
|
var name, prevChild;
|
||
|
|
for (name in nextChildren) if (nextChildren.hasOwnProperty(name)) {
|
||
|
|
prevChild = prevChildren && prevChildren[name];
|
||
|
|
var prevElement = prevChild && prevChild._currentElement, nextElement = nextChildren[name];
|
||
|
|
if (null != prevChild && shouldUpdateReactComponent(prevElement, nextElement)) ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context),
|
||
|
|
nextChildren[name] = prevChild; else {
|
||
|
|
prevChild && (removedNodes[name] = ReactReconciler.getHostNode(prevChild), ReactReconciler.unmountComponent(prevChild, !1));
|
||
|
|
var nextChildInstance = instantiateReactComponent(nextElement, !0);
|
||
|
|
nextChildren[name] = nextChildInstance;
|
||
|
|
var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID);
|
||
|
|
mountImages.push(nextChildMountImage);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
for (name in prevChildren) !prevChildren.hasOwnProperty(name) || nextChildren && nextChildren.hasOwnProperty(name) || (prevChild = prevChildren[name],
|
||
|
|
removedNodes[name] = ReactReconciler.getHostNode(prevChild), ReactReconciler.unmountComponent(prevChild, !1));
|
||
|
|
}
|
||
|
|
},
|
||
|
|
unmountChildren: function(renderedChildren, safely) {
|
||
|
|
for (var name in renderedChildren) if (renderedChildren.hasOwnProperty(name)) {
|
||
|
|
var renderedChild = renderedChildren[name];
|
||
|
|
ReactReconciler.unmountComponent(renderedChild, safely);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactChildReconciler;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getDeclarationErrorAddendum(owner) {
|
||
|
|
if (owner) {
|
||
|
|
var name = owner.getName();
|
||
|
|
if (name) return " Check the render method of `" + name + "`.";
|
||
|
|
}
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
function isInternalComponentType(type) {
|
||
|
|
return "function" == typeof type && "undefined" != typeof type.prototype && "function" == typeof type.prototype.mountComponent && "function" == typeof type.prototype.receiveComponent;
|
||
|
|
}
|
||
|
|
function instantiateReactComponent(node, shouldHaveDebugID) {
|
||
|
|
var instance;
|
||
|
|
if (null === node || node === !1) instance = ReactEmptyComponent.create(instantiateReactComponent); else if ("object" == typeof node) {
|
||
|
|
var element = node, type = element.type;
|
||
|
|
if ("function" != typeof type && "string" != typeof type) {
|
||
|
|
var info = "";
|
||
|
|
"production" !== process.env.NODE_ENV && (void 0 === type || "object" == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in."),
|
||
|
|
info += getDeclarationErrorAddendum(element._owner), "production" !== process.env.NODE_ENV ? invariant(!1, "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, info) : _prodInvariant("130", null == type ? type : typeof type, info);
|
||
|
|
}
|
||
|
|
"string" == typeof element.type ? instance = ReactHostComponent.createInternalComponent(element) : isInternalComponentType(element.type) ? (instance = new element.type(element),
|
||
|
|
instance.getHostNode || (instance.getHostNode = instance.getNativeNode)) : instance = new ReactCompositeComponentWrapper(element);
|
||
|
|
} else "string" == typeof node || "number" == typeof node ? instance = ReactHostComponent.createInstanceForText(node) : "production" !== process.env.NODE_ENV ? invariant(!1, "Encountered invalid React node of type %s", typeof node) : _prodInvariant("131", typeof node);
|
||
|
|
return "production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning("function" == typeof instance.mountComponent && "function" == typeof instance.receiveComponent && "function" == typeof instance.getHostNode && "function" == typeof instance.unmountComponent, "Only React Components can be mounted.") : void 0),
|
||
|
|
instance._mountIndex = 0, instance._mountImage = null, "production" !== process.env.NODE_ENV && (instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0),
|
||
|
|
"production" !== process.env.NODE_ENV && Object.preventExtensions && Object.preventExtensions(instance),
|
||
|
|
instance;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), ReactCompositeComponent = __webpack_require__(125), ReactEmptyComponent = __webpack_require__(131), ReactHostComponent = __webpack_require__(132), getNextDebugID = __webpack_require__(133), invariant = __webpack_require__(12), warning = __webpack_require__(8), ReactCompositeComponentWrapper = function(element) {
|
||
|
|
this.construct(element);
|
||
|
|
};
|
||
|
|
_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
|
||
|
|
_instantiateReactComponent: instantiateReactComponent
|
||
|
|
}), module.exports = instantiateReactComponent;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function StatelessComponent(Component) {}
|
||
|
|
function warnIfInvalidElement(Component, element) {
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(null === element || element === !1 || React.isValidElement(element), "%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.", Component.displayName || Component.name || "Component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!Component.childContextTypes, "%s(...): childContextTypes cannot be defined on a functional component.", Component.displayName || Component.name || "Component") : void 0);
|
||
|
|
}
|
||
|
|
function shouldConstruct(Component) {
|
||
|
|
return !(!Component.prototype || !Component.prototype.isReactComponent);
|
||
|
|
}
|
||
|
|
function isPureComponent(Component) {
|
||
|
|
return !(!Component.prototype || !Component.prototype.isPureReactComponent);
|
||
|
|
}
|
||
|
|
function measureLifeCyclePerf(fn, debugID, timerType) {
|
||
|
|
if (0 === debugID) return fn();
|
||
|
|
ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
|
||
|
|
try {
|
||
|
|
return fn();
|
||
|
|
} finally {
|
||
|
|
ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), React = __webpack_require__(2), ReactComponentEnvironment = __webpack_require__(121), ReactCurrentOwner = __webpack_require__(17), ReactErrorUtils = __webpack_require__(50), ReactInstanceMap = __webpack_require__(122), ReactInstrumentation = __webpack_require__(67), ReactNodeTypes = __webpack_require__(126), ReactReconciler = __webpack_require__(64);
|
||
|
|
if ("production" !== process.env.NODE_ENV) var checkReactTypeSpec = __webpack_require__(127);
|
||
|
|
var emptyObject = __webpack_require__(11), invariant = __webpack_require__(12), shallowEqual = __webpack_require__(129), shouldUpdateReactComponent = __webpack_require__(130), warning = __webpack_require__(8), CompositeTypes = {
|
||
|
|
ImpureClass: 0,
|
||
|
|
PureClass: 1,
|
||
|
|
StatelessFunctional: 2
|
||
|
|
};
|
||
|
|
StatelessComponent.prototype.render = function() {
|
||
|
|
var Component = ReactInstanceMap.get(this)._currentElement.type, element = Component(this.props, this.context, this.updater);
|
||
|
|
return warnIfInvalidElement(Component, element), element;
|
||
|
|
};
|
||
|
|
var nextMountID = 1, ReactCompositeComponent = {
|
||
|
|
construct: function(element) {
|
||
|
|
this._currentElement = element, this._rootNodeID = 0, this._compositeType = null,
|
||
|
|
this._instance = null, this._hostParent = null, this._hostContainerInfo = null,
|
||
|
|
this._updateBatchNumber = null, this._pendingElement = null, this._pendingStateQueue = null,
|
||
|
|
this._pendingReplaceState = !1, this._pendingForceUpdate = !1, this._renderedNodeType = null,
|
||
|
|
this._renderedComponent = null, this._context = null, this._mountOrder = 0, this._topLevelWrapper = null,
|
||
|
|
this._pendingCallbacks = null, this._calledComponentWillUnmount = !1, "production" !== process.env.NODE_ENV && (this._warnedAboutRefsInRender = !1);
|
||
|
|
},
|
||
|
|
mountComponent: function(transaction, hostParent, hostContainerInfo, context) {
|
||
|
|
var _this = this;
|
||
|
|
this._context = context, this._mountOrder = nextMountID++, this._hostParent = hostParent,
|
||
|
|
this._hostContainerInfo = hostContainerInfo;
|
||
|
|
var renderedElement, publicProps = this._currentElement.props, publicContext = this._processContext(context), Component = this._currentElement.type, updateQueue = transaction.getUpdateQueue(), doConstruct = shouldConstruct(Component), inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue);
|
||
|
|
if (doConstruct || null != inst && null != inst.render ? isPureComponent(Component) ? this._compositeType = CompositeTypes.PureClass : this._compositeType = CompositeTypes.ImpureClass : (renderedElement = inst,
|
||
|
|
warnIfInvalidElement(Component, renderedElement), null === inst || inst === !1 || React.isValidElement(inst) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.", Component.displayName || Component.name || "Component") : _prodInvariant("105", Component.displayName || Component.name || "Component"),
|
||
|
|
inst = new StatelessComponent(Component), this._compositeType = CompositeTypes.StatelessFunctional),
|
||
|
|
"production" !== process.env.NODE_ENV) {
|
||
|
|
null == inst.render && ("production" !== process.env.NODE_ENV ? warning(!1, "%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", Component.displayName || Component.name || "Component") : void 0);
|
||
|
|
var propsMutated = inst.props !== publicProps, componentName = Component.displayName || Component.name || "Component";
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(void 0 === inst.props || !propsMutated, "%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", componentName, componentName) : void 0;
|
||
|
|
}
|
||
|
|
inst.props = publicProps, inst.context = publicContext, inst.refs = emptyObject,
|
||
|
|
inst.updater = updateQueue, this._instance = inst, ReactInstanceMap.set(inst, this),
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, "getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", this.getName() || "a component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, "getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", this.getName() || "a component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!inst.propTypes, "propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", this.getName() || "a component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!inst.contextTypes, "contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", this.getName() || "a component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning("function" != typeof inst.componentShouldUpdate, "%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", this.getName() || "A component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning("function" != typeof inst.componentDidUnmount, "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", this.getName() || "A component") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV ? warning("function" != typeof inst.componentWillRecieveProps, "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", this.getName() || "A component") : void 0);
|
||
|
|
var initialState = inst.state;
|
||
|
|
void 0 === initialState && (inst.state = initialState = null), "object" != typeof initialState || Array.isArray(initialState) ? "production" !== process.env.NODE_ENV ? invariant(!1, "%s.state: must be set to an object or null", this.getName() || "ReactCompositeComponent") : _prodInvariant("106", this.getName() || "ReactCompositeComponent") : void 0,
|
||
|
|
this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1;
|
||
|
|
var markup;
|
||
|
|
return markup = inst.unstable_handleError ? this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context) : this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context),
|
||
|
|
inst.componentDidMount && ("production" !== process.env.NODE_ENV ? transaction.getReactMountReady().enqueue(function() {
|
||
|
|
measureLifeCyclePerf(function() {
|
||
|
|
return inst.componentDidMount();
|
||
|
|
}, _this._debugID, "componentDidMount");
|
||
|
|
}) : transaction.getReactMountReady().enqueue(inst.componentDidMount, inst)), markup;
|
||
|
|
},
|
||
|
|
_constructComponent: function(doConstruct, publicProps, publicContext, updateQueue) {
|
||
|
|
if ("production" === process.env.NODE_ENV) return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
|
||
|
|
ReactCurrentOwner.current = this;
|
||
|
|
try {
|
||
|
|
return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
|
||
|
|
} finally {
|
||
|
|
ReactCurrentOwner.current = null;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
_constructComponentWithoutOwner: function(doConstruct, publicProps, publicContext, updateQueue) {
|
||
|
|
var Component = this._currentElement.type;
|
||
|
|
return doConstruct ? "production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return new Component(publicProps, publicContext, updateQueue);
|
||
|
|
}, this._debugID, "ctor") : new Component(publicProps, publicContext, updateQueue) : "production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return Component(publicProps, publicContext, updateQueue);
|
||
|
|
}, this._debugID, "render") : Component(publicProps, publicContext, updateQueue);
|
||
|
|
},
|
||
|
|
performInitialMountWithErrorHandling: function(renderedElement, hostParent, hostContainerInfo, transaction, context) {
|
||
|
|
var markup, checkpoint = transaction.checkpoint();
|
||
|
|
try {
|
||
|
|
markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
|
||
|
|
} catch (e) {
|
||
|
|
transaction.rollback(checkpoint), this._instance.unstable_handleError(e), this._pendingStateQueue && (this._instance.state = this._processPendingState(this._instance.props, this._instance.context)),
|
||
|
|
checkpoint = transaction.checkpoint(), this._renderedComponent.unmountComponent(!0),
|
||
|
|
transaction.rollback(checkpoint), markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
|
||
|
|
}
|
||
|
|
return markup;
|
||
|
|
},
|
||
|
|
performInitialMount: function(renderedElement, hostParent, hostContainerInfo, transaction, context) {
|
||
|
|
var inst = this._instance, debugID = 0;
|
||
|
|
"production" !== process.env.NODE_ENV && (debugID = this._debugID), inst.componentWillMount && ("production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return inst.componentWillMount();
|
||
|
|
}, debugID, "componentWillMount") : inst.componentWillMount(), this._pendingStateQueue && (inst.state = this._processPendingState(inst.props, inst.context))),
|
||
|
|
void 0 === renderedElement && (renderedElement = this._renderValidatedComponent());
|
||
|
|
var nodeType = ReactNodeTypes.getType(renderedElement);
|
||
|
|
this._renderedNodeType = nodeType;
|
||
|
|
var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY);
|
||
|
|
this._renderedComponent = child;
|
||
|
|
var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID);
|
||
|
|
if ("production" !== process.env.NODE_ENV && 0 !== debugID) {
|
||
|
|
var childDebugIDs = 0 !== child._debugID ? [ child._debugID ] : [];
|
||
|
|
ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
|
||
|
|
}
|
||
|
|
return markup;
|
||
|
|
},
|
||
|
|
getHostNode: function() {
|
||
|
|
return ReactReconciler.getHostNode(this._renderedComponent);
|
||
|
|
},
|
||
|
|
unmountComponent: function(safely) {
|
||
|
|
if (this._renderedComponent) {
|
||
|
|
var inst = this._instance;
|
||
|
|
if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) if (inst._calledComponentWillUnmount = !0,
|
||
|
|
safely) {
|
||
|
|
var name = this.getName() + ".componentWillUnmount()";
|
||
|
|
ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst));
|
||
|
|
} else "production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return inst.componentWillUnmount();
|
||
|
|
}, this._debugID, "componentWillUnmount") : inst.componentWillUnmount();
|
||
|
|
this._renderedComponent && (ReactReconciler.unmountComponent(this._renderedComponent, safely),
|
||
|
|
this._renderedNodeType = null, this._renderedComponent = null, this._instance = null),
|
||
|
|
this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1,
|
||
|
|
this._pendingCallbacks = null, this._pendingElement = null, this._context = null,
|
||
|
|
this._rootNodeID = 0, this._topLevelWrapper = null, ReactInstanceMap.remove(inst);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
_maskContext: function(context) {
|
||
|
|
var Component = this._currentElement.type, contextTypes = Component.contextTypes;
|
||
|
|
if (!contextTypes) return emptyObject;
|
||
|
|
var maskedContext = {};
|
||
|
|
for (var contextName in contextTypes) maskedContext[contextName] = context[contextName];
|
||
|
|
return maskedContext;
|
||
|
|
},
|
||
|
|
_processContext: function(context) {
|
||
|
|
var maskedContext = this._maskContext(context);
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var Component = this._currentElement.type;
|
||
|
|
Component.contextTypes && this._checkContextTypes(Component.contextTypes, maskedContext, "context");
|
||
|
|
}
|
||
|
|
return maskedContext;
|
||
|
|
},
|
||
|
|
_processChildContext: function(currentContext) {
|
||
|
|
var childContext, Component = this._currentElement.type, inst = this._instance;
|
||
|
|
if (inst.getChildContext) if ("production" !== process.env.NODE_ENV) {
|
||
|
|
ReactInstrumentation.debugTool.onBeginProcessingChildContext();
|
||
|
|
try {
|
||
|
|
childContext = inst.getChildContext();
|
||
|
|
} finally {
|
||
|
|
ReactInstrumentation.debugTool.onEndProcessingChildContext();
|
||
|
|
}
|
||
|
|
} else childContext = inst.getChildContext();
|
||
|
|
if (childContext) {
|
||
|
|
"object" != typeof Component.childContextTypes ? "production" !== process.env.NODE_ENV ? invariant(!1, "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", this.getName() || "ReactCompositeComponent") : _prodInvariant("107", this.getName() || "ReactCompositeComponent") : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV && this._checkContextTypes(Component.childContextTypes, childContext, "child context");
|
||
|
|
for (var name in childContext) name in Component.childContextTypes ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || "ReactCompositeComponent", name) : _prodInvariant("108", this.getName() || "ReactCompositeComponent", name);
|
||
|
|
return _assign({}, currentContext, childContext);
|
||
|
|
}
|
||
|
|
return currentContext;
|
||
|
|
},
|
||
|
|
_checkContextTypes: function(typeSpecs, values, location) {
|
||
|
|
"production" !== process.env.NODE_ENV && checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID);
|
||
|
|
},
|
||
|
|
receiveComponent: function(nextElement, transaction, nextContext) {
|
||
|
|
var prevElement = this._currentElement, prevContext = this._context;
|
||
|
|
this._pendingElement = null, this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext);
|
||
|
|
},
|
||
|
|
performUpdateIfNecessary: function(transaction) {
|
||
|
|
null != this._pendingElement ? ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context) : null !== this._pendingStateQueue || this._pendingForceUpdate ? this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context) : this._updateBatchNumber = null;
|
||
|
|
},
|
||
|
|
updateComponent: function(transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) {
|
||
|
|
var inst = this._instance;
|
||
|
|
null == inst ? "production" !== process.env.NODE_ENV ? invariant(!1, "Attempted to update component `%s` that has already been unmounted (or failed to mount).", this.getName() || "ReactCompositeComponent") : _prodInvariant("136", this.getName() || "ReactCompositeComponent") : void 0;
|
||
|
|
var nextContext, willReceive = !1;
|
||
|
|
this._context === nextUnmaskedContext ? nextContext = inst.context : (nextContext = this._processContext(nextUnmaskedContext),
|
||
|
|
willReceive = !0);
|
||
|
|
var prevProps = prevParentElement.props, nextProps = nextParentElement.props;
|
||
|
|
prevParentElement !== nextParentElement && (willReceive = !0), willReceive && inst.componentWillReceiveProps && ("production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return inst.componentWillReceiveProps(nextProps, nextContext);
|
||
|
|
}, this._debugID, "componentWillReceiveProps") : inst.componentWillReceiveProps(nextProps, nextContext));
|
||
|
|
var nextState = this._processPendingState(nextProps, nextContext), shouldUpdate = !0;
|
||
|
|
this._pendingForceUpdate || (inst.shouldComponentUpdate ? shouldUpdate = "production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return inst.shouldComponentUpdate(nextProps, nextState, nextContext);
|
||
|
|
}, this._debugID, "shouldComponentUpdate") : inst.shouldComponentUpdate(nextProps, nextState, nextContext) : this._compositeType === CompositeTypes.PureClass && (shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState))),
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(void 0 !== shouldUpdate, "%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", this.getName() || "ReactCompositeComponent") : void 0),
|
||
|
|
this._updateBatchNumber = null, shouldUpdate ? (this._pendingForceUpdate = !1, this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext)) : (this._currentElement = nextParentElement,
|
||
|
|
this._context = nextUnmaskedContext, inst.props = nextProps, inst.state = nextState,
|
||
|
|
inst.context = nextContext);
|
||
|
|
},
|
||
|
|
_processPendingState: function(props, context) {
|
||
|
|
var inst = this._instance, queue = this._pendingStateQueue, replace = this._pendingReplaceState;
|
||
|
|
if (this._pendingReplaceState = !1, this._pendingStateQueue = null, !queue) return inst.state;
|
||
|
|
if (replace && 1 === queue.length) return queue[0];
|
||
|
|
for (var nextState = _assign({}, replace ? queue[0] : inst.state), i = replace ? 1 : 0; i < queue.length; i++) {
|
||
|
|
var partial = queue[i];
|
||
|
|
_assign(nextState, "function" == typeof partial ? partial.call(inst, nextState, props, context) : partial);
|
||
|
|
}
|
||
|
|
return nextState;
|
||
|
|
},
|
||
|
|
_performComponentUpdate: function(nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) {
|
||
|
|
var prevProps, prevState, prevContext, _this2 = this, inst = this._instance, hasComponentDidUpdate = Boolean(inst.componentDidUpdate);
|
||
|
|
hasComponentDidUpdate && (prevProps = inst.props, prevState = inst.state, prevContext = inst.context),
|
||
|
|
inst.componentWillUpdate && ("production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return inst.componentWillUpdate(nextProps, nextState, nextContext);
|
||
|
|
}, this._debugID, "componentWillUpdate") : inst.componentWillUpdate(nextProps, nextState, nextContext)),
|
||
|
|
this._currentElement = nextElement, this._context = unmaskedContext, inst.props = nextProps,
|
||
|
|
inst.state = nextState, inst.context = nextContext, this._updateRenderedComponent(transaction, unmaskedContext),
|
||
|
|
hasComponentDidUpdate && ("production" !== process.env.NODE_ENV ? transaction.getReactMountReady().enqueue(function() {
|
||
|
|
measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, "componentDidUpdate");
|
||
|
|
}) : transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst));
|
||
|
|
},
|
||
|
|
_updateRenderedComponent: function(transaction, context) {
|
||
|
|
var prevComponentInstance = this._renderedComponent, prevRenderedElement = prevComponentInstance._currentElement, nextRenderedElement = this._renderValidatedComponent(), debugID = 0;
|
||
|
|
if ("production" !== process.env.NODE_ENV && (debugID = this._debugID), shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context)); else {
|
||
|
|
var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance);
|
||
|
|
ReactReconciler.unmountComponent(prevComponentInstance, !1);
|
||
|
|
var nodeType = ReactNodeTypes.getType(nextRenderedElement);
|
||
|
|
this._renderedNodeType = nodeType;
|
||
|
|
var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY);
|
||
|
|
this._renderedComponent = child;
|
||
|
|
var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID);
|
||
|
|
if ("production" !== process.env.NODE_ENV && 0 !== debugID) {
|
||
|
|
var childDebugIDs = 0 !== child._debugID ? [ child._debugID ] : [];
|
||
|
|
ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
|
||
|
|
}
|
||
|
|
this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
_replaceNodeWithMarkup: function(oldHostNode, nextMarkup, prevInstance) {
|
||
|
|
ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance);
|
||
|
|
},
|
||
|
|
_renderValidatedComponentWithoutOwnerOrContext: function() {
|
||
|
|
var renderedElement, inst = this._instance;
|
||
|
|
return renderedElement = "production" !== process.env.NODE_ENV ? measureLifeCyclePerf(function() {
|
||
|
|
return inst.render();
|
||
|
|
}, this._debugID, "render") : inst.render(), "production" !== process.env.NODE_ENV && void 0 === renderedElement && inst.render._isMockFunction && (renderedElement = null),
|
||
|
|
renderedElement;
|
||
|
|
},
|
||
|
|
_renderValidatedComponent: function() {
|
||
|
|
var renderedElement;
|
||
|
|
if ("production" !== process.env.NODE_ENV || this._compositeType !== CompositeTypes.StatelessFunctional) {
|
||
|
|
ReactCurrentOwner.current = this;
|
||
|
|
try {
|
||
|
|
renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
|
||
|
|
} finally {
|
||
|
|
ReactCurrentOwner.current = null;
|
||
|
|
}
|
||
|
|
} else renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
|
||
|
|
return null === renderedElement || renderedElement === !1 || React.isValidElement(renderedElement) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.", this.getName() || "ReactCompositeComponent") : _prodInvariant("109", this.getName() || "ReactCompositeComponent"),
|
||
|
|
renderedElement;
|
||
|
|
},
|
||
|
|
attachRef: function(ref, component) {
|
||
|
|
var inst = this.getPublicInstance();
|
||
|
|
null == inst ? "production" !== process.env.NODE_ENV ? invariant(!1, "Stateless function components cannot have refs.") : _prodInvariant("110") : void 0;
|
||
|
|
var publicComponentInstance = component.getPublicInstance();
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var componentName = component && component.getName ? component.getName() : "a component";
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(null != publicComponentInstance || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0;
|
||
|
|
}
|
||
|
|
var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
|
||
|
|
refs[ref] = publicComponentInstance;
|
||
|
|
},
|
||
|
|
detachRef: function(ref) {
|
||
|
|
var refs = this.getPublicInstance().refs;
|
||
|
|
delete refs[ref];
|
||
|
|
},
|
||
|
|
getName: function() {
|
||
|
|
var type = this._currentElement.type, constructor = this._instance && this._instance.constructor;
|
||
|
|
return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null;
|
||
|
|
},
|
||
|
|
getPublicInstance: function() {
|
||
|
|
var inst = this._instance;
|
||
|
|
return this._compositeType === CompositeTypes.StatelessFunctional ? null : inst;
|
||
|
|
},
|
||
|
|
_instantiateReactComponent: null
|
||
|
|
};
|
||
|
|
module.exports = ReactCompositeComponent;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(40), React = __webpack_require__(2), invariant = __webpack_require__(12), ReactNodeTypes = {
|
||
|
|
HOST: 0,
|
||
|
|
COMPOSITE: 1,
|
||
|
|
EMPTY: 2,
|
||
|
|
getType: function(node) {
|
||
|
|
return null === node || node === !1 ? ReactNodeTypes.EMPTY : React.isValidElement(node) ? "function" == typeof node.type ? ReactNodeTypes.COMPOSITE : ReactNodeTypes.HOST : void ("production" !== process.env.NODE_ENV ? invariant(!1, "Unexpected node: %s", node) : _prodInvariant("26", node));
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactNodeTypes;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
|
||
|
|
for (var typeSpecName in typeSpecs) if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
||
|
|
var error;
|
||
|
|
try {
|
||
|
|
"function" != typeof typeSpecs[typeSpecName] ? "production" !== process.env.NODE_ENV ? invariant(!1, "%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.", componentName || "React class", ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant("84", componentName || "React class", ReactPropTypeLocationNames[location], typeSpecName) : void 0,
|
||
|
|
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
||
|
|
} catch (ex) {
|
||
|
|
error = ex;
|
||
|
|
}
|
||
|
|
if ("production" !== process.env.NODE_ENV ? warning(!error || error instanceof Error, "%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0,
|
||
|
|
error instanceof Error && !(error.message in loggedTypeFailures)) {
|
||
|
|
loggedTypeFailures[error.message] = !0;
|
||
|
|
var componentStackInfo = "";
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactComponentTreeHook || (ReactComponentTreeHook = __webpack_require__(24)),
|
||
|
|
null !== debugID ? componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID) : null !== element && (componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element))),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "Failed %s type: %s%s", location, error.message, componentStackInfo) : void 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var ReactComponentTreeHook, _prodInvariant = __webpack_require__(40), ReactPropTypeLocationNames = __webpack_require__(128), ReactPropTypesSecret = __webpack_require__(116), invariant = __webpack_require__(12), warning = __webpack_require__(8);
|
||
|
|
"undefined" != typeof process && process.env && "test" === process.env.NODE_ENV && (ReactComponentTreeHook = __webpack_require__(24));
|
||
|
|
var loggedTypeFailures = {};
|
||
|
|
module.exports = checkReactTypeSpec;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var ReactPropTypeLocationNames = {};
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactPropTypeLocationNames = {
|
||
|
|
prop: "prop",
|
||
|
|
context: "context",
|
||
|
|
childContext: "child context"
|
||
|
|
}), module.exports = ReactPropTypeLocationNames;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function is(x, y) {
|
||
|
|
return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y;
|
||
|
|
}
|
||
|
|
function shallowEqual(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;
|
||
|
|
}
|
||
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||
|
|
module.exports = shallowEqual;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function shouldUpdateReactComponent(prevElement, nextElement) {
|
||
|
|
var prevEmpty = null === prevElement || prevElement === !1, nextEmpty = null === nextElement || nextElement === !1;
|
||
|
|
if (prevEmpty || nextEmpty) return prevEmpty === nextEmpty;
|
||
|
|
var prevType = typeof prevElement, nextType = typeof nextElement;
|
||
|
|
return "string" === prevType || "number" === prevType ? "string" === nextType || "number" === nextType : "object" === nextType && prevElement.type === nextElement.type && prevElement.key === nextElement.key;
|
||
|
|
}
|
||
|
|
module.exports = shouldUpdateReactComponent;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var emptyComponentFactory, ReactEmptyComponentInjection = {
|
||
|
|
injectEmptyComponentFactory: function(factory) {
|
||
|
|
emptyComponentFactory = factory;
|
||
|
|
}
|
||
|
|
}, ReactEmptyComponent = {
|
||
|
|
create: function(instantiate) {
|
||
|
|
return emptyComponentFactory(instantiate);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
ReactEmptyComponent.injection = ReactEmptyComponentInjection, module.exports = ReactEmptyComponent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function createInternalComponent(element) {
|
||
|
|
return genericComponentClass ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "There is no registered component for the tag %s", element.type) : _prodInvariant("111", element.type),
|
||
|
|
new genericComponentClass(element);
|
||
|
|
}
|
||
|
|
function createInstanceForText(text) {
|
||
|
|
return new textComponentClass(text);
|
||
|
|
}
|
||
|
|
function isTextComponent(component) {
|
||
|
|
return component instanceof textComponentClass;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12), genericComponentClass = null, textComponentClass = null, ReactHostComponentInjection = {
|
||
|
|
injectGenericComponentClass: function(componentClass) {
|
||
|
|
genericComponentClass = componentClass;
|
||
|
|
},
|
||
|
|
injectTextComponentClass: function(componentClass) {
|
||
|
|
textComponentClass = componentClass;
|
||
|
|
}
|
||
|
|
}, ReactHostComponent = {
|
||
|
|
createInternalComponent: createInternalComponent,
|
||
|
|
createInstanceForText: createInstanceForText,
|
||
|
|
isTextComponent: isTextComponent,
|
||
|
|
injection: ReactHostComponentInjection
|
||
|
|
};
|
||
|
|
module.exports = ReactHostComponent;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getNextDebugID() {
|
||
|
|
return nextDebugID++;
|
||
|
|
}
|
||
|
|
var nextDebugID = 1;
|
||
|
|
module.exports = getNextDebugID;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function escape(key) {
|
||
|
|
var escapeRegex = /[=:]/g, escaperLookup = {
|
||
|
|
"=": "=0",
|
||
|
|
":": "=2"
|
||
|
|
}, escapedString = ("" + key).replace(escapeRegex, function(match) {
|
||
|
|
return escaperLookup[match];
|
||
|
|
});
|
||
|
|
return "$" + escapedString;
|
||
|
|
}
|
||
|
|
function unescape(key) {
|
||
|
|
var unescapeRegex = /(=0|=2)/g, unescaperLookup = {
|
||
|
|
"=0": "=",
|
||
|
|
"=2": ":"
|
||
|
|
}, keySubstring = "." === key[0] && "$" === key[1] ? key.substring(2) : key.substring(1);
|
||
|
|
return ("" + keySubstring).replace(unescapeRegex, function(match) {
|
||
|
|
return unescaperLookup[match];
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var KeyEscapeUtils = {
|
||
|
|
escape: escape,
|
||
|
|
unescape: unescape
|
||
|
|
};
|
||
|
|
module.exports = KeyEscapeUtils;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getComponentKey(component, index) {
|
||
|
|
return component && "object" == typeof component && null != component.key ? KeyEscapeUtils.escape(component.key) : index.toString(36);
|
||
|
|
}
|
||
|
|
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
||
|
|
var type = typeof children;
|
||
|
|
if ("undefined" !== type && "boolean" !== type || (children = null), null === children || "string" === type || "number" === type || "object" === type && children.$$typeof === REACT_ELEMENT_TYPE) return callback(traverseContext, children, "" === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar),
|
||
|
|
1;
|
||
|
|
var child, nextName, subtreeCount = 0, nextNamePrefix = "" === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
||
|
|
if (Array.isArray(children)) for (var i = 0; i < children.length; i++) child = children[i],
|
||
|
|
nextName = nextNamePrefix + getComponentKey(child, i), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); else {
|
||
|
|
var iteratorFn = getIteratorFn(children);
|
||
|
|
if (iteratorFn) {
|
||
|
|
var step, iterator = iteratorFn.call(children);
|
||
|
|
if (iteratorFn !== children.entries) for (var ii = 0; !(step = iterator.next()).done; ) child = step.value,
|
||
|
|
nextName = nextNamePrefix + getComponentKey(child, ii++), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); else {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var mapsAsChildrenAddendum = "";
|
||
|
|
if (ReactCurrentOwner.current) {
|
||
|
|
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
|
||
|
|
mapsAsChildrenOwnerName && (mapsAsChildrenAddendum = " Check the render method of `" + mapsAsChildrenOwnerName + "`.");
|
||
|
|
}
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(didWarnAboutMaps, "Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s", mapsAsChildrenAddendum) : void 0,
|
||
|
|
didWarnAboutMaps = !0;
|
||
|
|
}
|
||
|
|
for (;!(step = iterator.next()).done; ) {
|
||
|
|
var entry = step.value;
|
||
|
|
entry && (child = entry[1], nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0),
|
||
|
|
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
} else if ("object" === type) {
|
||
|
|
var addendum = "";
|
||
|
|
if ("production" !== process.env.NODE_ENV && (addendum = " If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",
|
||
|
|
children._isReactElement && (addendum = " It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),
|
||
|
|
ReactCurrentOwner.current)) {
|
||
|
|
var name = ReactCurrentOwner.current.getName();
|
||
|
|
name && (addendum += " Check the render method of `" + name + "`.");
|
||
|
|
}
|
||
|
|
var childrenString = String(children);
|
||
|
|
"production" !== process.env.NODE_ENV ? invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === childrenString ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString, addendum) : _prodInvariant("31", "[object Object]" === childrenString ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString, addendum);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return subtreeCount;
|
||
|
|
}
|
||
|
|
function traverseAllChildren(children, callback, traverseContext) {
|
||
|
|
return null == children ? 0 : traverseAllChildrenImpl(children, "", callback, traverseContext);
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), ReactCurrentOwner = __webpack_require__(17), REACT_ELEMENT_TYPE = __webpack_require__(136), getIteratorFn = __webpack_require__(137), invariant = __webpack_require__(12), KeyEscapeUtils = __webpack_require__(134), warning = __webpack_require__(8), SEPARATOR = ".", SUBSEPARATOR = ":", didWarnAboutMaps = !1;
|
||
|
|
module.exports = traverseAllChildren;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
|
||
|
|
module.exports = REACT_ELEMENT_TYPE;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getIteratorFn(maybeIterable) {
|
||
|
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
||
|
|
if ("function" == typeof iteratorFn) return iteratorFn;
|
||
|
|
}
|
||
|
|
var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||
|
|
module.exports = getIteratorFn;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {
|
||
|
|
if (traverseContext && "object" == typeof traverseContext) {
|
||
|
|
var result = traverseContext, keyUnique = void 0 === result[name];
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactComponentTreeHook || (ReactComponentTreeHook = __webpack_require__(24)),
|
||
|
|
keyUnique || ("production" !== process.env.NODE_ENV ? warning(!1, "flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.%s", KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0)),
|
||
|
|
keyUnique && null != child && (result[name] = child);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function flattenChildren(children, selfDebugID) {
|
||
|
|
if (null == children) return children;
|
||
|
|
var result = {};
|
||
|
|
return "production" !== process.env.NODE_ENV ? traverseAllChildren(children, function(traverseContext, child, name) {
|
||
|
|
return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);
|
||
|
|
}, result) : traverseAllChildren(children, flattenSingleChildIntoContext, result),
|
||
|
|
result;
|
||
|
|
}
|
||
|
|
var ReactComponentTreeHook, KeyEscapeUtils = __webpack_require__(134), traverseAllChildren = __webpack_require__(135), warning = __webpack_require__(8);
|
||
|
|
"undefined" != typeof process && process.env && "test" === process.env.NODE_ENV && (ReactComponentTreeHook = __webpack_require__(24)),
|
||
|
|
module.exports = flattenChildren;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function ReactServerRenderingTransaction(renderToStaticMarkup) {
|
||
|
|
this.reinitializeTransaction(), this.renderToStaticMarkup = renderToStaticMarkup,
|
||
|
|
this.useCreateElement = !1, this.updateQueue = new ReactServerUpdateQueue(this);
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), PooledClass = __webpack_require__(55), Transaction = __webpack_require__(73), ReactInstrumentation = __webpack_require__(67), ReactServerUpdateQueue = __webpack_require__(140), TRANSACTION_WRAPPERS = [];
|
||
|
|
"production" !== process.env.NODE_ENV && TRANSACTION_WRAPPERS.push({
|
||
|
|
initialize: ReactInstrumentation.debugTool.onBeginFlush,
|
||
|
|
close: ReactInstrumentation.debugTool.onEndFlush
|
||
|
|
});
|
||
|
|
var noopCallbackQueue = {
|
||
|
|
enqueue: function() {}
|
||
|
|
}, Mixin = {
|
||
|
|
getTransactionWrappers: function() {
|
||
|
|
return TRANSACTION_WRAPPERS;
|
||
|
|
},
|
||
|
|
getReactMountReady: function() {
|
||
|
|
return noopCallbackQueue;
|
||
|
|
},
|
||
|
|
getUpdateQueue: function() {
|
||
|
|
return this.updateQueue;
|
||
|
|
},
|
||
|
|
destructor: function() {},
|
||
|
|
checkpoint: function() {},
|
||
|
|
rollback: function() {}
|
||
|
|
};
|
||
|
|
_assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin), PooledClass.addPoolingTo(ReactServerRenderingTransaction),
|
||
|
|
module.exports = ReactServerRenderingTransaction;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function _classCallCheck(instance, Constructor) {
|
||
|
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||
|
|
}
|
||
|
|
function warnNoop(publicInstance, callerName) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var constructor = publicInstance.constructor;
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op. Please check the code for the %s component.", callerName, callerName, constructor && (constructor.displayName || constructor.name) || "ReactClass") : void 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var ReactUpdateQueue = __webpack_require__(141), warning = __webpack_require__(8), ReactServerUpdateQueue = function() {
|
||
|
|
function ReactServerUpdateQueue(transaction) {
|
||
|
|
_classCallCheck(this, ReactServerUpdateQueue), this.transaction = transaction;
|
||
|
|
}
|
||
|
|
return ReactServerUpdateQueue.prototype.isMounted = function(publicInstance) {
|
||
|
|
return !1;
|
||
|
|
}, ReactServerUpdateQueue.prototype.enqueueCallback = function(publicInstance, callback, callerName) {
|
||
|
|
this.transaction.isInTransaction() && ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName);
|
||
|
|
}, ReactServerUpdateQueue.prototype.enqueueForceUpdate = function(publicInstance) {
|
||
|
|
this.transaction.isInTransaction() ? ReactUpdateQueue.enqueueForceUpdate(publicInstance) : warnNoop(publicInstance, "forceUpdate");
|
||
|
|
}, ReactServerUpdateQueue.prototype.enqueueReplaceState = function(publicInstance, completeState) {
|
||
|
|
this.transaction.isInTransaction() ? ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState) : warnNoop(publicInstance, "replaceState");
|
||
|
|
}, ReactServerUpdateQueue.prototype.enqueueSetState = function(publicInstance, partialState) {
|
||
|
|
this.transaction.isInTransaction() ? ReactUpdateQueue.enqueueSetState(publicInstance, partialState) : warnNoop(publicInstance, "setState");
|
||
|
|
}, ReactServerUpdateQueue;
|
||
|
|
}();
|
||
|
|
module.exports = ReactServerUpdateQueue;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function enqueueUpdate(internalInstance) {
|
||
|
|
ReactUpdates.enqueueUpdate(internalInstance);
|
||
|
|
}
|
||
|
|
function formatUnexpectedArgument(arg) {
|
||
|
|
var type = typeof arg;
|
||
|
|
if ("object" !== type) return type;
|
||
|
|
var displayName = arg.constructor && arg.constructor.name || type, keys = Object.keys(arg);
|
||
|
|
return keys.length > 0 && keys.length < 20 ? displayName + " (keys: " + keys.join(", ") + ")" : displayName;
|
||
|
|
}
|
||
|
|
function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
|
||
|
|
var internalInstance = ReactInstanceMap.get(publicInstance);
|
||
|
|
if (!internalInstance) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var ctor = publicInstance.constructor;
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!callerName, "%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.", callerName, callerName, ctor && (ctor.displayName || ctor.name) || "ReactClass") : void 0;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return "production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(null == ReactCurrentOwner.current, "%s(...): Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`.", callerName) : void 0),
|
||
|
|
internalInstance;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), ReactCurrentOwner = __webpack_require__(17), ReactInstanceMap = __webpack_require__(122), ReactInstrumentation = __webpack_require__(67), ReactUpdates = __webpack_require__(61), invariant = __webpack_require__(12), warning = __webpack_require__(8), ReactUpdateQueue = {
|
||
|
|
isMounted: function(publicInstance) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var owner = ReactCurrentOwner.current;
|
||
|
|
null !== owner && ("production" !== process.env.NODE_ENV ? warning(owner._warnedAboutRefsInRender, "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", owner.getName() || "A component") : void 0,
|
||
|
|
owner._warnedAboutRefsInRender = !0);
|
||
|
|
}
|
||
|
|
var internalInstance = ReactInstanceMap.get(publicInstance);
|
||
|
|
return !!internalInstance && !!internalInstance._renderedComponent;
|
||
|
|
},
|
||
|
|
enqueueCallback: function(publicInstance, callback, callerName) {
|
||
|
|
ReactUpdateQueue.validateCallback(callback, callerName);
|
||
|
|
var internalInstance = getInternalInstanceReadyForUpdate(publicInstance);
|
||
|
|
return internalInstance ? (internalInstance._pendingCallbacks ? internalInstance._pendingCallbacks.push(callback) : internalInstance._pendingCallbacks = [ callback ],
|
||
|
|
void enqueueUpdate(internalInstance)) : null;
|
||
|
|
},
|
||
|
|
enqueueCallbackInternal: function(internalInstance, callback) {
|
||
|
|
internalInstance._pendingCallbacks ? internalInstance._pendingCallbacks.push(callback) : internalInstance._pendingCallbacks = [ callback ],
|
||
|
|
enqueueUpdate(internalInstance);
|
||
|
|
},
|
||
|
|
enqueueForceUpdate: function(publicInstance) {
|
||
|
|
var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, "forceUpdate");
|
||
|
|
internalInstance && (internalInstance._pendingForceUpdate = !0, enqueueUpdate(internalInstance));
|
||
|
|
},
|
||
|
|
enqueueReplaceState: function(publicInstance, completeState, callback) {
|
||
|
|
var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, "replaceState");
|
||
|
|
internalInstance && (internalInstance._pendingStateQueue = [ completeState ], internalInstance._pendingReplaceState = !0,
|
||
|
|
void 0 !== callback && null !== callback && (ReactUpdateQueue.validateCallback(callback, "replaceState"),
|
||
|
|
internalInstance._pendingCallbacks ? internalInstance._pendingCallbacks.push(callback) : internalInstance._pendingCallbacks = [ callback ]),
|
||
|
|
enqueueUpdate(internalInstance));
|
||
|
|
},
|
||
|
|
enqueueSetState: function(publicInstance, partialState) {
|
||
|
|
"production" !== process.env.NODE_ENV && (ReactInstrumentation.debugTool.onSetState(),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(null != partialState, "setState(...): You passed an undefined or null state object; instead, use forceUpdate().") : void 0);
|
||
|
|
var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, "setState");
|
||
|
|
if (internalInstance) {
|
||
|
|
var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []);
|
||
|
|
queue.push(partialState), enqueueUpdate(internalInstance);
|
||
|
|
}
|
||
|
|
},
|
||
|
|
enqueueElementInternal: function(internalInstance, nextElement, nextContext) {
|
||
|
|
internalInstance._pendingElement = nextElement, internalInstance._context = nextContext,
|
||
|
|
enqueueUpdate(internalInstance);
|
||
|
|
},
|
||
|
|
validateCallback: function(callback, callerName) {
|
||
|
|
callback && "function" != typeof callback ? "production" !== process.env.NODE_ENV ? invariant(!1, "%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", callerName, formatUnexpectedArgument(callback)) : _prodInvariant("122", callerName, formatUnexpectedArgument(callback)) : void 0;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactUpdateQueue;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _assign = __webpack_require__(4), emptyFunction = __webpack_require__(9), warning = __webpack_require__(8), validateDOMNesting = emptyFunction;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var specialTags = [ "address", "applet", "area", "article", "aside", "base", "basefont", "bgsound", "blockquote", "body", "br", "button", "caption", "center", "col", "colgroup", "dd", "details", "dir", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "img", "input", "isindex", "li", "link", "listing", "main", "marquee", "menu", "menuitem", "meta", "nav", "noembed", "noframes", "noscript", "object", "ol", "p", "param", "plaintext", "pre", "script", "section", "select", "source", "style", "summary", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "title", "tr", "track", "ul", "wbr", "xmp" ], inScopeTags = [ "applet", "caption", "html", "table", "td", "th", "marquee", "object", "template", "foreignObject", "desc", "title" ], buttonScopeTags = inScopeTags.concat([ "button" ]), impliedEndTags = [ "dd", "dt", "li", "option", "optgroup", "p", "rp", "rt" ], emptyAncestorInfo = {
|
||
|
|
current: null,
|
||
|
|
formTag: null,
|
||
|
|
aTagInScope: null,
|
||
|
|
buttonTagInScope: null,
|
||
|
|
nobrTagInScope: null,
|
||
|
|
pTagInButtonScope: null,
|
||
|
|
listItemTagAutoclosing: null,
|
||
|
|
dlItemTagAutoclosing: null
|
||
|
|
}, updatedAncestorInfo = function(oldInfo, tag, instance) {
|
||
|
|
var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo), info = {
|
||
|
|
tag: tag,
|
||
|
|
instance: instance
|
||
|
|
};
|
||
|
|
return inScopeTags.indexOf(tag) !== -1 && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null,
|
||
|
|
ancestorInfo.nobrTagInScope = null), buttonScopeTags.indexOf(tag) !== -1 && (ancestorInfo.pTagInButtonScope = null),
|
||
|
|
specialTags.indexOf(tag) !== -1 && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null,
|
||
|
|
ancestorInfo.dlItemTagAutoclosing = null), ancestorInfo.current = info, "form" === tag && (ancestorInfo.formTag = info),
|
||
|
|
"a" === tag && (ancestorInfo.aTagInScope = info), "button" === tag && (ancestorInfo.buttonTagInScope = info),
|
||
|
|
"nobr" === tag && (ancestorInfo.nobrTagInScope = info), "p" === tag && (ancestorInfo.pTagInButtonScope = info),
|
||
|
|
"li" === tag && (ancestorInfo.listItemTagAutoclosing = info), "dd" !== tag && "dt" !== tag || (ancestorInfo.dlItemTagAutoclosing = info),
|
||
|
|
ancestorInfo;
|
||
|
|
}, isTagValidWithParent = function(tag, parentTag) {
|
||
|
|
switch (parentTag) {
|
||
|
|
case "select":
|
||
|
|
return "option" === tag || "optgroup" === tag || "#text" === tag;
|
||
|
|
|
||
|
|
case "optgroup":
|
||
|
|
return "option" === tag || "#text" === tag;
|
||
|
|
|
||
|
|
case "option":
|
||
|
|
return "#text" === tag;
|
||
|
|
|
||
|
|
case "tr":
|
||
|
|
return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag;
|
||
|
|
|
||
|
|
case "tbody":
|
||
|
|
case "thead":
|
||
|
|
case "tfoot":
|
||
|
|
return "tr" === tag || "style" === tag || "script" === tag || "template" === tag;
|
||
|
|
|
||
|
|
case "colgroup":
|
||
|
|
return "col" === tag || "template" === tag;
|
||
|
|
|
||
|
|
case "table":
|
||
|
|
return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag;
|
||
|
|
|
||
|
|
case "head":
|
||
|
|
return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag;
|
||
|
|
|
||
|
|
case "html":
|
||
|
|
return "head" === tag || "body" === tag;
|
||
|
|
|
||
|
|
case "#document":
|
||
|
|
return "html" === tag;
|
||
|
|
}
|
||
|
|
switch (tag) {
|
||
|
|
case "h1":
|
||
|
|
case "h2":
|
||
|
|
case "h3":
|
||
|
|
case "h4":
|
||
|
|
case "h5":
|
||
|
|
case "h6":
|
||
|
|
return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag;
|
||
|
|
|
||
|
|
case "rp":
|
||
|
|
case "rt":
|
||
|
|
return impliedEndTags.indexOf(parentTag) === -1;
|
||
|
|
|
||
|
|
case "body":
|
||
|
|
case "caption":
|
||
|
|
case "col":
|
||
|
|
case "colgroup":
|
||
|
|
case "frame":
|
||
|
|
case "head":
|
||
|
|
case "html":
|
||
|
|
case "tbody":
|
||
|
|
case "td":
|
||
|
|
case "tfoot":
|
||
|
|
case "th":
|
||
|
|
case "thead":
|
||
|
|
case "tr":
|
||
|
|
return null == parentTag;
|
||
|
|
}
|
||
|
|
return !0;
|
||
|
|
}, findInvalidAncestorForTag = function(tag, ancestorInfo) {
|
||
|
|
switch (tag) {
|
||
|
|
case "address":
|
||
|
|
case "article":
|
||
|
|
case "aside":
|
||
|
|
case "blockquote":
|
||
|
|
case "center":
|
||
|
|
case "details":
|
||
|
|
case "dialog":
|
||
|
|
case "dir":
|
||
|
|
case "div":
|
||
|
|
case "dl":
|
||
|
|
case "fieldset":
|
||
|
|
case "figcaption":
|
||
|
|
case "figure":
|
||
|
|
case "footer":
|
||
|
|
case "header":
|
||
|
|
case "hgroup":
|
||
|
|
case "main":
|
||
|
|
case "menu":
|
||
|
|
case "nav":
|
||
|
|
case "ol":
|
||
|
|
case "p":
|
||
|
|
case "section":
|
||
|
|
case "summary":
|
||
|
|
case "ul":
|
||
|
|
case "pre":
|
||
|
|
case "listing":
|
||
|
|
case "table":
|
||
|
|
case "hr":
|
||
|
|
case "xmp":
|
||
|
|
case "h1":
|
||
|
|
case "h2":
|
||
|
|
case "h3":
|
||
|
|
case "h4":
|
||
|
|
case "h5":
|
||
|
|
case "h6":
|
||
|
|
return ancestorInfo.pTagInButtonScope;
|
||
|
|
|
||
|
|
case "form":
|
||
|
|
return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
|
||
|
|
|
||
|
|
case "li":
|
||
|
|
return ancestorInfo.listItemTagAutoclosing;
|
||
|
|
|
||
|
|
case "dd":
|
||
|
|
case "dt":
|
||
|
|
return ancestorInfo.dlItemTagAutoclosing;
|
||
|
|
|
||
|
|
case "button":
|
||
|
|
return ancestorInfo.buttonTagInScope;
|
||
|
|
|
||
|
|
case "a":
|
||
|
|
return ancestorInfo.aTagInScope;
|
||
|
|
|
||
|
|
case "nobr":
|
||
|
|
return ancestorInfo.nobrTagInScope;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}, findOwnerStack = function(instance) {
|
||
|
|
if (!instance) return [];
|
||
|
|
var stack = [];
|
||
|
|
do stack.push(instance); while (instance = instance._currentElement._owner);
|
||
|
|
return stack.reverse(), stack;
|
||
|
|
}, didWarn = {};
|
||
|
|
validateDOMNesting = function(childTag, childText, childInstance, ancestorInfo) {
|
||
|
|
ancestorInfo = ancestorInfo || emptyAncestorInfo;
|
||
|
|
var parentInfo = ancestorInfo.current, parentTag = parentInfo && parentInfo.tag;
|
||
|
|
null != childText && ("production" !== process.env.NODE_ENV ? warning(null == childTag, "validateDOMNesting: when childText is passed, childTag should be null") : void 0,
|
||
|
|
childTag = "#text");
|
||
|
|
var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo, invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo), problematic = invalidParent || invalidAncestor;
|
||
|
|
if (problematic) {
|
||
|
|
var i, ancestorTag = problematic.tag, ancestorInstance = problematic.instance, childOwner = childInstance && childInstance._currentElement._owner, ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner, childOwners = findOwnerStack(childOwner), ancestorOwners = findOwnerStack(ancestorOwner), minStackLen = Math.min(childOwners.length, ancestorOwners.length), deepestCommon = -1;
|
||
|
|
for (i = 0; i < minStackLen && childOwners[i] === ancestorOwners[i]; i++) deepestCommon = i;
|
||
|
|
var UNKNOWN = "(unknown)", childOwnerNames = childOwners.slice(deepestCommon + 1).map(function(inst) {
|
||
|
|
return inst.getName() || UNKNOWN;
|
||
|
|
}), ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function(inst) {
|
||
|
|
return inst.getName() || UNKNOWN;
|
||
|
|
}), ownerInfo = [].concat(deepestCommon !== -1 ? childOwners[deepestCommon].getName() || UNKNOWN : [], ancestorOwnerNames, ancestorTag, invalidAncestor ? [ "..." ] : [], childOwnerNames, childTag).join(" > "), warnKey = !!invalidParent + "|" + childTag + "|" + ancestorTag + "|" + ownerInfo;
|
||
|
|
if (didWarn[warnKey]) return;
|
||
|
|
didWarn[warnKey] = !0;
|
||
|
|
var tagDisplayName = childTag, whitespaceInfo = "";
|
||
|
|
if ("#text" === childTag ? /\S/.test(childText) ? tagDisplayName = "Text nodes" : (tagDisplayName = "Whitespace text nodes",
|
||
|
|
whitespaceInfo = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : tagDisplayName = "<" + childTag + ">",
|
||
|
|
invalidParent) {
|
||
|
|
var info = "";
|
||
|
|
"table" === ancestorTag && "tr" === childTag && (info += " Add a <tbody> to your code to match the DOM tree generated by the browser."),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "validateDOMNesting(...): %s cannot appear as a child of <%s>.%s See %s.%s", tagDisplayName, ancestorTag, whitespaceInfo, ownerInfo, info) : void 0;
|
||
|
|
} else "production" !== process.env.NODE_ENV ? warning(!1, "validateDOMNesting(...): %s cannot appear as a descendant of <%s>. See %s.", tagDisplayName, ancestorTag, ownerInfo) : void 0;
|
||
|
|
}
|
||
|
|
}, validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo, validateDOMNesting.isTagValidInContext = function(tag, ancestorInfo) {
|
||
|
|
ancestorInfo = ancestorInfo || emptyAncestorInfo;
|
||
|
|
var parentInfo = ancestorInfo.current, parentTag = parentInfo && parentInfo.tag;
|
||
|
|
return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
module.exports = validateDOMNesting;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var _assign = __webpack_require__(4), DOMLazyTree = __webpack_require__(87), ReactDOMComponentTree = __webpack_require__(39), ReactDOMEmptyComponent = function(instantiate) {
|
||
|
|
this._currentElement = null, this._hostNode = null, this._hostParent = null, this._hostContainerInfo = null,
|
||
|
|
this._domID = 0;
|
||
|
|
};
|
||
|
|
_assign(ReactDOMEmptyComponent.prototype, {
|
||
|
|
mountComponent: function(transaction, hostParent, hostContainerInfo, context) {
|
||
|
|
var domID = hostContainerInfo._idCounter++;
|
||
|
|
this._domID = domID, this._hostParent = hostParent, this._hostContainerInfo = hostContainerInfo;
|
||
|
|
var nodeValue = " react-empty: " + this._domID + " ";
|
||
|
|
if (transaction.useCreateElement) {
|
||
|
|
var ownerDocument = hostContainerInfo._ownerDocument, node = ownerDocument.createComment(nodeValue);
|
||
|
|
return ReactDOMComponentTree.precacheNode(this, node), DOMLazyTree(node);
|
||
|
|
}
|
||
|
|
return transaction.renderToStaticMarkup ? "" : "<!--" + nodeValue + "-->";
|
||
|
|
},
|
||
|
|
receiveComponent: function() {},
|
||
|
|
getHostNode: function() {
|
||
|
|
return ReactDOMComponentTree.getNodeFromInstance(this);
|
||
|
|
},
|
||
|
|
unmountComponent: function() {
|
||
|
|
ReactDOMComponentTree.uncacheNode(this);
|
||
|
|
}
|
||
|
|
}), module.exports = ReactDOMEmptyComponent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getLowestCommonAncestor(instA, instB) {
|
||
|
|
"_hostNode" in instA ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "getNodeFromInstance: Invalid argument.") : _prodInvariant("33"),
|
||
|
|
"_hostNode" in instB ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "getNodeFromInstance: Invalid argument.") : _prodInvariant("33");
|
||
|
|
for (var depthA = 0, tempA = instA; tempA; tempA = tempA._hostParent) depthA++;
|
||
|
|
for (var depthB = 0, tempB = instB; tempB; tempB = tempB._hostParent) depthB++;
|
||
|
|
for (;depthA - depthB > 0; ) instA = instA._hostParent, depthA--;
|
||
|
|
for (;depthB - depthA > 0; ) instB = instB._hostParent, depthB--;
|
||
|
|
for (var depth = depthA; depth--; ) {
|
||
|
|
if (instA === instB) return instA;
|
||
|
|
instA = instA._hostParent, instB = instB._hostParent;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
function isAncestor(instA, instB) {
|
||
|
|
"_hostNode" in instA ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "isAncestor: Invalid argument.") : _prodInvariant("35"),
|
||
|
|
"_hostNode" in instB ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "isAncestor: Invalid argument.") : _prodInvariant("35");
|
||
|
|
for (;instB; ) {
|
||
|
|
if (instB === instA) return !0;
|
||
|
|
instB = instB._hostParent;
|
||
|
|
}
|
||
|
|
return !1;
|
||
|
|
}
|
||
|
|
function getParentInstance(inst) {
|
||
|
|
return "_hostNode" in inst ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "getParentInstance: Invalid argument.") : _prodInvariant("36"),
|
||
|
|
inst._hostParent;
|
||
|
|
}
|
||
|
|
function traverseTwoPhase(inst, fn, arg) {
|
||
|
|
for (var path = []; inst; ) path.push(inst), inst = inst._hostParent;
|
||
|
|
var i;
|
||
|
|
for (i = path.length; i-- > 0; ) fn(path[i], "captured", arg);
|
||
|
|
for (i = 0; i < path.length; i++) fn(path[i], "bubbled", arg);
|
||
|
|
}
|
||
|
|
function traverseEnterLeave(from, to, fn, argFrom, argTo) {
|
||
|
|
for (var common = from && to ? getLowestCommonAncestor(from, to) : null, pathFrom = []; from && from !== common; ) pathFrom.push(from),
|
||
|
|
from = from._hostParent;
|
||
|
|
for (var pathTo = []; to && to !== common; ) pathTo.push(to), to = to._hostParent;
|
||
|
|
var i;
|
||
|
|
for (i = 0; i < pathFrom.length; i++) fn(pathFrom[i], "bubbled", argFrom);
|
||
|
|
for (i = pathTo.length; i-- > 0; ) fn(pathTo[i], "captured", argTo);
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), invariant = __webpack_require__(12);
|
||
|
|
module.exports = {
|
||
|
|
isAncestor: isAncestor,
|
||
|
|
getLowestCommonAncestor: getLowestCommonAncestor,
|
||
|
|
getParentInstance: getParentInstance,
|
||
|
|
traverseTwoPhase: traverseTwoPhase,
|
||
|
|
traverseEnterLeave: traverseEnterLeave
|
||
|
|
};
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var _prodInvariant = __webpack_require__(40), _assign = __webpack_require__(4), DOMChildrenOperations = __webpack_require__(86), DOMLazyTree = __webpack_require__(87), ReactDOMComponentTree = __webpack_require__(39), escapeTextContentForBrowser = __webpack_require__(92), invariant = __webpack_require__(12), validateDOMNesting = __webpack_require__(142), ReactDOMTextComponent = function(text) {
|
||
|
|
this._currentElement = text, this._stringText = "" + text, this._hostNode = null,
|
||
|
|
this._hostParent = null, this._domID = 0, this._mountIndex = 0, this._closingComment = null,
|
||
|
|
this._commentNodes = null;
|
||
|
|
};
|
||
|
|
_assign(ReactDOMTextComponent.prototype, {
|
||
|
|
mountComponent: function(transaction, hostParent, hostContainerInfo, context) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var parentInfo;
|
||
|
|
null != hostParent ? parentInfo = hostParent._ancestorInfo : null != hostContainerInfo && (parentInfo = hostContainerInfo._ancestorInfo),
|
||
|
|
parentInfo && validateDOMNesting(null, this._stringText, this, parentInfo);
|
||
|
|
}
|
||
|
|
var domID = hostContainerInfo._idCounter++, openingValue = " react-text: " + domID + " ", closingValue = " /react-text ";
|
||
|
|
if (this._domID = domID, this._hostParent = hostParent, transaction.useCreateElement) {
|
||
|
|
var ownerDocument = hostContainerInfo._ownerDocument, openingComment = ownerDocument.createComment(openingValue), closingComment = ownerDocument.createComment(closingValue), lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment());
|
||
|
|
return DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment)), this._stringText && DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText))),
|
||
|
|
DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment)), ReactDOMComponentTree.precacheNode(this, openingComment),
|
||
|
|
this._closingComment = closingComment, lazyTree;
|
||
|
|
}
|
||
|
|
var escapedText = escapeTextContentForBrowser(this._stringText);
|
||
|
|
return transaction.renderToStaticMarkup ? escapedText : "<!--" + openingValue + "-->" + escapedText + "<!--" + closingValue + "-->";
|
||
|
|
},
|
||
|
|
receiveComponent: function(nextText, transaction) {
|
||
|
|
if (nextText !== this._currentElement) {
|
||
|
|
this._currentElement = nextText;
|
||
|
|
var nextStringText = "" + nextText;
|
||
|
|
if (nextStringText !== this._stringText) {
|
||
|
|
this._stringText = nextStringText;
|
||
|
|
var commentNodes = this.getHostNode();
|
||
|
|
DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
getHostNode: function() {
|
||
|
|
var hostNode = this._commentNodes;
|
||
|
|
if (hostNode) return hostNode;
|
||
|
|
if (!this._closingComment) for (var openingComment = ReactDOMComponentTree.getNodeFromInstance(this), node = openingComment.nextSibling; ;) {
|
||
|
|
if (null == node ? "production" !== process.env.NODE_ENV ? invariant(!1, "Missing closing comment for text component %s", this._domID) : _prodInvariant("67", this._domID) : void 0,
|
||
|
|
8 === node.nodeType && " /react-text " === node.nodeValue) {
|
||
|
|
this._closingComment = node;
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
node = node.nextSibling;
|
||
|
|
}
|
||
|
|
return hostNode = [ this._hostNode, this._closingComment ], this._commentNodes = hostNode,
|
||
|
|
hostNode;
|
||
|
|
},
|
||
|
|
unmountComponent: function() {
|
||
|
|
this._closingComment = null, this._commentNodes = null, ReactDOMComponentTree.uncacheNode(this);
|
||
|
|
}
|
||
|
|
}), module.exports = ReactDOMTextComponent;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function ReactDefaultBatchingStrategyTransaction() {
|
||
|
|
this.reinitializeTransaction();
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), ReactUpdates = __webpack_require__(61), Transaction = __webpack_require__(73), emptyFunction = __webpack_require__(9), RESET_BATCHED_UPDATES = {
|
||
|
|
initialize: emptyFunction,
|
||
|
|
close: function() {
|
||
|
|
ReactDefaultBatchingStrategy.isBatchingUpdates = !1;
|
||
|
|
}
|
||
|
|
}, FLUSH_BATCHED_UPDATES = {
|
||
|
|
initialize: emptyFunction,
|
||
|
|
close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates)
|
||
|
|
}, TRANSACTION_WRAPPERS = [ FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES ];
|
||
|
|
_assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, {
|
||
|
|
getTransactionWrappers: function() {
|
||
|
|
return TRANSACTION_WRAPPERS;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
var transaction = new ReactDefaultBatchingStrategyTransaction(), ReactDefaultBatchingStrategy = {
|
||
|
|
isBatchingUpdates: !1,
|
||
|
|
batchedUpdates: function(callback, a, b, c, d, e) {
|
||
|
|
var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates;
|
||
|
|
return ReactDefaultBatchingStrategy.isBatchingUpdates = !0, alreadyBatchingUpdates ? callback(a, b, c, d, e) : transaction.perform(callback, null, a, b, c, d, e);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDefaultBatchingStrategy;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function findParent(inst) {
|
||
|
|
for (;inst._hostParent; ) inst = inst._hostParent;
|
||
|
|
var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst), container = rootNode.parentNode;
|
||
|
|
return ReactDOMComponentTree.getClosestInstanceFromNode(container);
|
||
|
|
}
|
||
|
|
function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) {
|
||
|
|
this.topLevelType = topLevelType, this.nativeEvent = nativeEvent, this.ancestors = [];
|
||
|
|
}
|
||
|
|
function handleTopLevelImpl(bookKeeping) {
|
||
|
|
var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent), targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget), ancestor = targetInst;
|
||
|
|
do bookKeeping.ancestors.push(ancestor), ancestor = ancestor && findParent(ancestor); while (ancestor);
|
||
|
|
for (var i = 0; i < bookKeeping.ancestors.length; i++) targetInst = bookKeeping.ancestors[i],
|
||
|
|
ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
|
||
|
|
}
|
||
|
|
function scrollValueMonitor(cb) {
|
||
|
|
var scrollPosition = getUnboundedScrollPosition(window);
|
||
|
|
cb(scrollPosition);
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), EventListener = __webpack_require__(148), ExecutionEnvironment = __webpack_require__(53), PooledClass = __webpack_require__(55), ReactDOMComponentTree = __webpack_require__(39), ReactUpdates = __webpack_require__(61), getEventTarget = __webpack_require__(75), getUnboundedScrollPosition = __webpack_require__(149);
|
||
|
|
_assign(TopLevelCallbackBookKeeping.prototype, {
|
||
|
|
destructor: function() {
|
||
|
|
this.topLevelType = null, this.nativeEvent = null, this.ancestors.length = 0;
|
||
|
|
}
|
||
|
|
}), PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler);
|
||
|
|
var ReactEventListener = {
|
||
|
|
_enabled: !0,
|
||
|
|
_handleTopLevel: null,
|
||
|
|
WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null,
|
||
|
|
setHandleTopLevel: function(handleTopLevel) {
|
||
|
|
ReactEventListener._handleTopLevel = handleTopLevel;
|
||
|
|
},
|
||
|
|
setEnabled: function(enabled) {
|
||
|
|
ReactEventListener._enabled = !!enabled;
|
||
|
|
},
|
||
|
|
isEnabled: function() {
|
||
|
|
return ReactEventListener._enabled;
|
||
|
|
},
|
||
|
|
trapBubbledEvent: function(topLevelType, handlerBaseName, element) {
|
||
|
|
return element ? EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType)) : null;
|
||
|
|
},
|
||
|
|
trapCapturedEvent: function(topLevelType, handlerBaseName, element) {
|
||
|
|
return element ? EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType)) : null;
|
||
|
|
},
|
||
|
|
monitorScrollValue: function(refresh) {
|
||
|
|
var callback = scrollValueMonitor.bind(null, refresh);
|
||
|
|
EventListener.listen(window, "scroll", callback);
|
||
|
|
},
|
||
|
|
dispatchEvent: function(topLevelType, nativeEvent) {
|
||
|
|
if (ReactEventListener._enabled) {
|
||
|
|
var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent);
|
||
|
|
try {
|
||
|
|
ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping);
|
||
|
|
} finally {
|
||
|
|
TopLevelCallbackBookKeeping.release(bookKeeping);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactEventListener;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
var emptyFunction = __webpack_require__(9), EventListener = {
|
||
|
|
listen: function(target, eventType, callback) {
|
||
|
|
return target.addEventListener ? (target.addEventListener(eventType, callback, !1),
|
||
|
|
{
|
||
|
|
remove: function() {
|
||
|
|
target.removeEventListener(eventType, callback, !1);
|
||
|
|
}
|
||
|
|
}) : target.attachEvent ? (target.attachEvent("on" + eventType, callback), {
|
||
|
|
remove: function() {
|
||
|
|
target.detachEvent("on" + eventType, callback);
|
||
|
|
}
|
||
|
|
}) : void 0;
|
||
|
|
},
|
||
|
|
capture: function(target, eventType, callback) {
|
||
|
|
return target.addEventListener ? (target.addEventListener(eventType, callback, !0),
|
||
|
|
{
|
||
|
|
remove: function() {
|
||
|
|
target.removeEventListener(eventType, callback, !0);
|
||
|
|
}
|
||
|
|
}) : ("production" !== process.env.NODE_ENV && console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),
|
||
|
|
{
|
||
|
|
remove: emptyFunction
|
||
|
|
});
|
||
|
|
},
|
||
|
|
registerDefault: function() {}
|
||
|
|
};
|
||
|
|
module.exports = EventListener;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getUnboundedScrollPosition(scrollable) {
|
||
|
|
return scrollable.Window && scrollable instanceof scrollable.Window ? {
|
||
|
|
x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft,
|
||
|
|
y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop
|
||
|
|
} : {
|
||
|
|
x: scrollable.scrollLeft,
|
||
|
|
y: scrollable.scrollTop
|
||
|
|
};
|
||
|
|
}
|
||
|
|
module.exports = getUnboundedScrollPosition;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var DOMProperty = __webpack_require__(41), EventPluginHub = __webpack_require__(47), EventPluginUtils = __webpack_require__(49), ReactComponentEnvironment = __webpack_require__(121), ReactEmptyComponent = __webpack_require__(131), ReactBrowserEventEmitter = __webpack_require__(111), ReactHostComponent = __webpack_require__(132), ReactUpdates = __webpack_require__(61), ReactInjection = {
|
||
|
|
Component: ReactComponentEnvironment.injection,
|
||
|
|
DOMProperty: DOMProperty.injection,
|
||
|
|
EmptyComponent: ReactEmptyComponent.injection,
|
||
|
|
EventPluginHub: EventPluginHub.injection,
|
||
|
|
EventPluginUtils: EventPluginUtils.injection,
|
||
|
|
EventEmitter: ReactBrowserEventEmitter.injection,
|
||
|
|
HostComponent: ReactHostComponent.injection,
|
||
|
|
Updates: ReactUpdates.injection
|
||
|
|
};
|
||
|
|
module.exports = ReactInjection;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function ReactReconcileTransaction(useCreateElement) {
|
||
|
|
this.reinitializeTransaction(), this.renderToStaticMarkup = !1, this.reactMountReady = CallbackQueue.getPooled(null),
|
||
|
|
this.useCreateElement = useCreateElement;
|
||
|
|
}
|
||
|
|
var _assign = __webpack_require__(4), CallbackQueue = __webpack_require__(62), PooledClass = __webpack_require__(55), ReactBrowserEventEmitter = __webpack_require__(111), ReactInputSelection = __webpack_require__(152), ReactInstrumentation = __webpack_require__(67), Transaction = __webpack_require__(73), ReactUpdateQueue = __webpack_require__(141), SELECTION_RESTORATION = {
|
||
|
|
initialize: ReactInputSelection.getSelectionInformation,
|
||
|
|
close: ReactInputSelection.restoreSelection
|
||
|
|
}, EVENT_SUPPRESSION = {
|
||
|
|
initialize: function() {
|
||
|
|
var currentlyEnabled = ReactBrowserEventEmitter.isEnabled();
|
||
|
|
return ReactBrowserEventEmitter.setEnabled(!1), currentlyEnabled;
|
||
|
|
},
|
||
|
|
close: function(previouslyEnabled) {
|
||
|
|
ReactBrowserEventEmitter.setEnabled(previouslyEnabled);
|
||
|
|
}
|
||
|
|
}, ON_DOM_READY_QUEUEING = {
|
||
|
|
initialize: function() {
|
||
|
|
this.reactMountReady.reset();
|
||
|
|
},
|
||
|
|
close: function() {
|
||
|
|
this.reactMountReady.notifyAll();
|
||
|
|
}
|
||
|
|
}, TRANSACTION_WRAPPERS = [ SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING ];
|
||
|
|
"production" !== process.env.NODE_ENV && TRANSACTION_WRAPPERS.push({
|
||
|
|
initialize: ReactInstrumentation.debugTool.onBeginFlush,
|
||
|
|
close: ReactInstrumentation.debugTool.onEndFlush
|
||
|
|
});
|
||
|
|
var Mixin = {
|
||
|
|
getTransactionWrappers: function() {
|
||
|
|
return TRANSACTION_WRAPPERS;
|
||
|
|
},
|
||
|
|
getReactMountReady: function() {
|
||
|
|
return this.reactMountReady;
|
||
|
|
},
|
||
|
|
getUpdateQueue: function() {
|
||
|
|
return ReactUpdateQueue;
|
||
|
|
},
|
||
|
|
checkpoint: function() {
|
||
|
|
return this.reactMountReady.checkpoint();
|
||
|
|
},
|
||
|
|
rollback: function(checkpoint) {
|
||
|
|
this.reactMountReady.rollback(checkpoint);
|
||
|
|
},
|
||
|
|
destructor: function() {
|
||
|
|
CallbackQueue.release(this.reactMountReady), this.reactMountReady = null;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
_assign(ReactReconcileTransaction.prototype, Transaction, Mixin), PooledClass.addPoolingTo(ReactReconcileTransaction),
|
||
|
|
module.exports = ReactReconcileTransaction;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function isInDocument(node) {
|
||
|
|
return containsNode(document.documentElement, node);
|
||
|
|
}
|
||
|
|
var ReactDOMSelection = __webpack_require__(153), containsNode = __webpack_require__(155), focusNode = __webpack_require__(100), getActiveElement = __webpack_require__(158), ReactInputSelection = {
|
||
|
|
hasSelectionCapabilities: function(elem) {
|
||
|
|
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
||
|
|
return nodeName && ("input" === nodeName && "text" === elem.type || "textarea" === nodeName || "true" === elem.contentEditable);
|
||
|
|
},
|
||
|
|
getSelectionInformation: function() {
|
||
|
|
var focusedElem = getActiveElement();
|
||
|
|
return {
|
||
|
|
focusedElem: focusedElem,
|
||
|
|
selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null
|
||
|
|
};
|
||
|
|
},
|
||
|
|
restoreSelection: function(priorSelectionInformation) {
|
||
|
|
var curFocusedElem = getActiveElement(), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange;
|
||
|
|
curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem) && (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem) && ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange),
|
||
|
|
focusNode(priorFocusedElem));
|
||
|
|
},
|
||
|
|
getSelection: function(input) {
|
||
|
|
var selection;
|
||
|
|
if ("selectionStart" in input) selection = {
|
||
|
|
start: input.selectionStart,
|
||
|
|
end: input.selectionEnd
|
||
|
|
}; else if (document.selection && input.nodeName && "input" === input.nodeName.toLowerCase()) {
|
||
|
|
var range = document.selection.createRange();
|
||
|
|
range.parentElement() === input && (selection = {
|
||
|
|
start: -range.moveStart("character", -input.value.length),
|
||
|
|
end: -range.moveEnd("character", -input.value.length)
|
||
|
|
});
|
||
|
|
} else selection = ReactDOMSelection.getOffsets(input);
|
||
|
|
return selection || {
|
||
|
|
start: 0,
|
||
|
|
end: 0
|
||
|
|
};
|
||
|
|
},
|
||
|
|
setSelection: function(input, offsets) {
|
||
|
|
var start = offsets.start, end = offsets.end;
|
||
|
|
if (void 0 === end && (end = start), "selectionStart" in input) input.selectionStart = start,
|
||
|
|
input.selectionEnd = Math.min(end, input.value.length); else if (document.selection && input.nodeName && "input" === input.nodeName.toLowerCase()) {
|
||
|
|
var range = input.createTextRange();
|
||
|
|
range.collapse(!0), range.moveStart("character", start), range.moveEnd("character", end - start),
|
||
|
|
range.select();
|
||
|
|
} else ReactDOMSelection.setOffsets(input, offsets);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactInputSelection;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {
|
||
|
|
return anchorNode === focusNode && anchorOffset === focusOffset;
|
||
|
|
}
|
||
|
|
function getIEOffsets(node) {
|
||
|
|
var selection = document.selection, selectedRange = selection.createRange(), selectedLength = selectedRange.text.length, fromStart = selectedRange.duplicate();
|
||
|
|
fromStart.moveToElementText(node), fromStart.setEndPoint("EndToStart", selectedRange);
|
||
|
|
var startOffset = fromStart.text.length, endOffset = startOffset + selectedLength;
|
||
|
|
return {
|
||
|
|
start: startOffset,
|
||
|
|
end: endOffset
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function getModernOffsets(node) {
|
||
|
|
var selection = window.getSelection && window.getSelection();
|
||
|
|
if (!selection || 0 === selection.rangeCount) return null;
|
||
|
|
var anchorNode = selection.anchorNode, anchorOffset = selection.anchorOffset, focusNode = selection.focusNode, focusOffset = selection.focusOffset, currentRange = selection.getRangeAt(0);
|
||
|
|
try {
|
||
|
|
currentRange.startContainer.nodeType, currentRange.endContainer.nodeType;
|
||
|
|
} catch (e) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset), rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length, tempRange = currentRange.cloneRange();
|
||
|
|
tempRange.selectNodeContents(node), tempRange.setEnd(currentRange.startContainer, currentRange.startOffset);
|
||
|
|
var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset), start = isTempRangeCollapsed ? 0 : tempRange.toString().length, end = start + rangeLength, detectionRange = document.createRange();
|
||
|
|
detectionRange.setStart(anchorNode, anchorOffset), detectionRange.setEnd(focusNode, focusOffset);
|
||
|
|
var isBackward = detectionRange.collapsed;
|
||
|
|
return {
|
||
|
|
start: isBackward ? end : start,
|
||
|
|
end: isBackward ? start : end
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function setIEOffsets(node, offsets) {
|
||
|
|
var start, end, range = document.selection.createRange().duplicate();
|
||
|
|
void 0 === offsets.end ? (start = offsets.start, end = start) : offsets.start > offsets.end ? (start = offsets.end,
|
||
|
|
end = offsets.start) : (start = offsets.start, end = offsets.end), range.moveToElementText(node),
|
||
|
|
range.moveStart("character", start), range.setEndPoint("EndToStart", range), range.moveEnd("character", end - start),
|
||
|
|
range.select();
|
||
|
|
}
|
||
|
|
function setModernOffsets(node, offsets) {
|
||
|
|
if (window.getSelection) {
|
||
|
|
var selection = window.getSelection(), length = node[getTextContentAccessor()].length, start = Math.min(offsets.start, length), end = void 0 === offsets.end ? start : Math.min(offsets.end, length);
|
||
|
|
if (!selection.extend && start > end) {
|
||
|
|
var temp = end;
|
||
|
|
end = start, start = temp;
|
||
|
|
}
|
||
|
|
var startMarker = getNodeForCharacterOffset(node, start), endMarker = getNodeForCharacterOffset(node, end);
|
||
|
|
if (startMarker && endMarker) {
|
||
|
|
var range = document.createRange();
|
||
|
|
range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(),
|
||
|
|
start > end ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset),
|
||
|
|
selection.addRange(range));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
var ExecutionEnvironment = __webpack_require__(53), getNodeForCharacterOffset = __webpack_require__(154), getTextContentAccessor = __webpack_require__(56), useIEOffsets = ExecutionEnvironment.canUseDOM && "selection" in document && !("getSelection" in window), ReactDOMSelection = {
|
||
|
|
getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets,
|
||
|
|
setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMSelection;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getLeafNode(node) {
|
||
|
|
for (;node && node.firstChild; ) node = node.firstChild;
|
||
|
|
return node;
|
||
|
|
}
|
||
|
|
function getSiblingNode(node) {
|
||
|
|
for (;node; ) {
|
||
|
|
if (node.nextSibling) return node.nextSibling;
|
||
|
|
node = node.parentNode;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function getNodeForCharacterOffset(root, offset) {
|
||
|
|
for (var node = getLeafNode(root), nodeStart = 0, nodeEnd = 0; node; ) {
|
||
|
|
if (3 === node.nodeType) {
|
||
|
|
if (nodeEnd = nodeStart + node.textContent.length, nodeStart <= offset && nodeEnd >= offset) return {
|
||
|
|
node: node,
|
||
|
|
offset: offset - nodeStart
|
||
|
|
};
|
||
|
|
nodeStart = nodeEnd;
|
||
|
|
}
|
||
|
|
node = getLeafNode(getSiblingNode(node));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
module.exports = getNodeForCharacterOffset;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
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))));
|
||
|
|
}
|
||
|
|
var isTextNode = __webpack_require__(156);
|
||
|
|
module.exports = containsNode;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function isTextNode(object) {
|
||
|
|
return isNode(object) && 3 == object.nodeType;
|
||
|
|
}
|
||
|
|
var isNode = __webpack_require__(157);
|
||
|
|
module.exports = isTextNode;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function isNode(object) {
|
||
|
|
var doc = object ? object.ownerDocument || object : document, defaultView = doc.defaultView || window;
|
||
|
|
return !(!object || !("function" == typeof defaultView.Node ? object instanceof defaultView.Node : "object" == typeof object && "number" == typeof object.nodeType && "string" == typeof object.nodeName));
|
||
|
|
}
|
||
|
|
module.exports = isNode;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getActiveElement(doc) {
|
||
|
|
if (doc = doc || ("undefined" != typeof document ? document : void 0), "undefined" == typeof doc) return null;
|
||
|
|
try {
|
||
|
|
return doc.activeElement || doc.body;
|
||
|
|
} catch (e) {
|
||
|
|
return doc.body;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
module.exports = getActiveElement;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var NS = {
|
||
|
|
xlink: "http://www.w3.org/1999/xlink",
|
||
|
|
xml: "http://www.w3.org/XML/1998/namespace"
|
||
|
|
}, ATTRS = {
|
||
|
|
accentHeight: "accent-height",
|
||
|
|
accumulate: 0,
|
||
|
|
additive: 0,
|
||
|
|
alignmentBaseline: "alignment-baseline",
|
||
|
|
allowReorder: "allowReorder",
|
||
|
|
alphabetic: 0,
|
||
|
|
amplitude: 0,
|
||
|
|
arabicForm: "arabic-form",
|
||
|
|
ascent: 0,
|
||
|
|
attributeName: "attributeName",
|
||
|
|
attributeType: "attributeType",
|
||
|
|
autoReverse: "autoReverse",
|
||
|
|
azimuth: 0,
|
||
|
|
baseFrequency: "baseFrequency",
|
||
|
|
baseProfile: "baseProfile",
|
||
|
|
baselineShift: "baseline-shift",
|
||
|
|
bbox: 0,
|
||
|
|
begin: 0,
|
||
|
|
bias: 0,
|
||
|
|
by: 0,
|
||
|
|
calcMode: "calcMode",
|
||
|
|
capHeight: "cap-height",
|
||
|
|
clip: 0,
|
||
|
|
clipPath: "clip-path",
|
||
|
|
clipRule: "clip-rule",
|
||
|
|
clipPathUnits: "clipPathUnits",
|
||
|
|
colorInterpolation: "color-interpolation",
|
||
|
|
colorInterpolationFilters: "color-interpolation-filters",
|
||
|
|
colorProfile: "color-profile",
|
||
|
|
colorRendering: "color-rendering",
|
||
|
|
contentScriptType: "contentScriptType",
|
||
|
|
contentStyleType: "contentStyleType",
|
||
|
|
cursor: 0,
|
||
|
|
cx: 0,
|
||
|
|
cy: 0,
|
||
|
|
d: 0,
|
||
|
|
decelerate: 0,
|
||
|
|
descent: 0,
|
||
|
|
diffuseConstant: "diffuseConstant",
|
||
|
|
direction: 0,
|
||
|
|
display: 0,
|
||
|
|
divisor: 0,
|
||
|
|
dominantBaseline: "dominant-baseline",
|
||
|
|
dur: 0,
|
||
|
|
dx: 0,
|
||
|
|
dy: 0,
|
||
|
|
edgeMode: "edgeMode",
|
||
|
|
elevation: 0,
|
||
|
|
enableBackground: "enable-background",
|
||
|
|
end: 0,
|
||
|
|
exponent: 0,
|
||
|
|
externalResourcesRequired: "externalResourcesRequired",
|
||
|
|
fill: 0,
|
||
|
|
fillOpacity: "fill-opacity",
|
||
|
|
fillRule: "fill-rule",
|
||
|
|
filter: 0,
|
||
|
|
filterRes: "filterRes",
|
||
|
|
filterUnits: "filterUnits",
|
||
|
|
floodColor: "flood-color",
|
||
|
|
floodOpacity: "flood-opacity",
|
||
|
|
focusable: 0,
|
||
|
|
fontFamily: "font-family",
|
||
|
|
fontSize: "font-size",
|
||
|
|
fontSizeAdjust: "font-size-adjust",
|
||
|
|
fontStretch: "font-stretch",
|
||
|
|
fontStyle: "font-style",
|
||
|
|
fontVariant: "font-variant",
|
||
|
|
fontWeight: "font-weight",
|
||
|
|
format: 0,
|
||
|
|
from: 0,
|
||
|
|
fx: 0,
|
||
|
|
fy: 0,
|
||
|
|
g1: 0,
|
||
|
|
g2: 0,
|
||
|
|
glyphName: "glyph-name",
|
||
|
|
glyphOrientationHorizontal: "glyph-orientation-horizontal",
|
||
|
|
glyphOrientationVertical: "glyph-orientation-vertical",
|
||
|
|
glyphRef: "glyphRef",
|
||
|
|
gradientTransform: "gradientTransform",
|
||
|
|
gradientUnits: "gradientUnits",
|
||
|
|
hanging: 0,
|
||
|
|
horizAdvX: "horiz-adv-x",
|
||
|
|
horizOriginX: "horiz-origin-x",
|
||
|
|
ideographic: 0,
|
||
|
|
imageRendering: "image-rendering",
|
||
|
|
in: 0,
|
||
|
|
in2: 0,
|
||
|
|
intercept: 0,
|
||
|
|
k: 0,
|
||
|
|
k1: 0,
|
||
|
|
k2: 0,
|
||
|
|
k3: 0,
|
||
|
|
k4: 0,
|
||
|
|
kernelMatrix: "kernelMatrix",
|
||
|
|
kernelUnitLength: "kernelUnitLength",
|
||
|
|
kerning: 0,
|
||
|
|
keyPoints: "keyPoints",
|
||
|
|
keySplines: "keySplines",
|
||
|
|
keyTimes: "keyTimes",
|
||
|
|
lengthAdjust: "lengthAdjust",
|
||
|
|
letterSpacing: "letter-spacing",
|
||
|
|
lightingColor: "lighting-color",
|
||
|
|
limitingConeAngle: "limitingConeAngle",
|
||
|
|
local: 0,
|
||
|
|
markerEnd: "marker-end",
|
||
|
|
markerMid: "marker-mid",
|
||
|
|
markerStart: "marker-start",
|
||
|
|
markerHeight: "markerHeight",
|
||
|
|
markerUnits: "markerUnits",
|
||
|
|
markerWidth: "markerWidth",
|
||
|
|
mask: 0,
|
||
|
|
maskContentUnits: "maskContentUnits",
|
||
|
|
maskUnits: "maskUnits",
|
||
|
|
mathematical: 0,
|
||
|
|
mode: 0,
|
||
|
|
numOctaves: "numOctaves",
|
||
|
|
offset: 0,
|
||
|
|
opacity: 0,
|
||
|
|
operator: 0,
|
||
|
|
order: 0,
|
||
|
|
orient: 0,
|
||
|
|
orientation: 0,
|
||
|
|
origin: 0,
|
||
|
|
overflow: 0,
|
||
|
|
overlinePosition: "overline-position",
|
||
|
|
overlineThickness: "overline-thickness",
|
||
|
|
paintOrder: "paint-order",
|
||
|
|
panose1: "panose-1",
|
||
|
|
pathLength: "pathLength",
|
||
|
|
patternContentUnits: "patternContentUnits",
|
||
|
|
patternTransform: "patternTransform",
|
||
|
|
patternUnits: "patternUnits",
|
||
|
|
pointerEvents: "pointer-events",
|
||
|
|
points: 0,
|
||
|
|
pointsAtX: "pointsAtX",
|
||
|
|
pointsAtY: "pointsAtY",
|
||
|
|
pointsAtZ: "pointsAtZ",
|
||
|
|
preserveAlpha: "preserveAlpha",
|
||
|
|
preserveAspectRatio: "preserveAspectRatio",
|
||
|
|
primitiveUnits: "primitiveUnits",
|
||
|
|
r: 0,
|
||
|
|
radius: 0,
|
||
|
|
refX: "refX",
|
||
|
|
refY: "refY",
|
||
|
|
renderingIntent: "rendering-intent",
|
||
|
|
repeatCount: "repeatCount",
|
||
|
|
repeatDur: "repeatDur",
|
||
|
|
requiredExtensions: "requiredExtensions",
|
||
|
|
requiredFeatures: "requiredFeatures",
|
||
|
|
restart: 0,
|
||
|
|
result: 0,
|
||
|
|
rotate: 0,
|
||
|
|
rx: 0,
|
||
|
|
ry: 0,
|
||
|
|
scale: 0,
|
||
|
|
seed: 0,
|
||
|
|
shapeRendering: "shape-rendering",
|
||
|
|
slope: 0,
|
||
|
|
spacing: 0,
|
||
|
|
specularConstant: "specularConstant",
|
||
|
|
specularExponent: "specularExponent",
|
||
|
|
speed: 0,
|
||
|
|
spreadMethod: "spreadMethod",
|
||
|
|
startOffset: "startOffset",
|
||
|
|
stdDeviation: "stdDeviation",
|
||
|
|
stemh: 0,
|
||
|
|
stemv: 0,
|
||
|
|
stitchTiles: "stitchTiles",
|
||
|
|
stopColor: "stop-color",
|
||
|
|
stopOpacity: "stop-opacity",
|
||
|
|
strikethroughPosition: "strikethrough-position",
|
||
|
|
strikethroughThickness: "strikethrough-thickness",
|
||
|
|
string: 0,
|
||
|
|
stroke: 0,
|
||
|
|
strokeDasharray: "stroke-dasharray",
|
||
|
|
strokeDashoffset: "stroke-dashoffset",
|
||
|
|
strokeLinecap: "stroke-linecap",
|
||
|
|
strokeLinejoin: "stroke-linejoin",
|
||
|
|
strokeMiterlimit: "stroke-miterlimit",
|
||
|
|
strokeOpacity: "stroke-opacity",
|
||
|
|
strokeWidth: "stroke-width",
|
||
|
|
surfaceScale: "surfaceScale",
|
||
|
|
systemLanguage: "systemLanguage",
|
||
|
|
tableValues: "tableValues",
|
||
|
|
targetX: "targetX",
|
||
|
|
targetY: "targetY",
|
||
|
|
textAnchor: "text-anchor",
|
||
|
|
textDecoration: "text-decoration",
|
||
|
|
textRendering: "text-rendering",
|
||
|
|
textLength: "textLength",
|
||
|
|
to: 0,
|
||
|
|
transform: 0,
|
||
|
|
u1: 0,
|
||
|
|
u2: 0,
|
||
|
|
underlinePosition: "underline-position",
|
||
|
|
underlineThickness: "underline-thickness",
|
||
|
|
unicode: 0,
|
||
|
|
unicodeBidi: "unicode-bidi",
|
||
|
|
unicodeRange: "unicode-range",
|
||
|
|
unitsPerEm: "units-per-em",
|
||
|
|
vAlphabetic: "v-alphabetic",
|
||
|
|
vHanging: "v-hanging",
|
||
|
|
vIdeographic: "v-ideographic",
|
||
|
|
vMathematical: "v-mathematical",
|
||
|
|
values: 0,
|
||
|
|
vectorEffect: "vector-effect",
|
||
|
|
version: 0,
|
||
|
|
vertAdvY: "vert-adv-y",
|
||
|
|
vertOriginX: "vert-origin-x",
|
||
|
|
vertOriginY: "vert-origin-y",
|
||
|
|
viewBox: "viewBox",
|
||
|
|
viewTarget: "viewTarget",
|
||
|
|
visibility: 0,
|
||
|
|
widths: 0,
|
||
|
|
wordSpacing: "word-spacing",
|
||
|
|
writingMode: "writing-mode",
|
||
|
|
x: 0,
|
||
|
|
xHeight: "x-height",
|
||
|
|
x1: 0,
|
||
|
|
x2: 0,
|
||
|
|
xChannelSelector: "xChannelSelector",
|
||
|
|
xlinkActuate: "xlink:actuate",
|
||
|
|
xlinkArcrole: "xlink:arcrole",
|
||
|
|
xlinkHref: "xlink:href",
|
||
|
|
xlinkRole: "xlink:role",
|
||
|
|
xlinkShow: "xlink:show",
|
||
|
|
xlinkTitle: "xlink:title",
|
||
|
|
xlinkType: "xlink:type",
|
||
|
|
xmlBase: "xml:base",
|
||
|
|
xmlns: 0,
|
||
|
|
xmlnsXlink: "xmlns:xlink",
|
||
|
|
xmlLang: "xml:lang",
|
||
|
|
xmlSpace: "xml:space",
|
||
|
|
y: 0,
|
||
|
|
y1: 0,
|
||
|
|
y2: 0,
|
||
|
|
yChannelSelector: "yChannelSelector",
|
||
|
|
z: 0,
|
||
|
|
zoomAndPan: "zoomAndPan"
|
||
|
|
}, SVGDOMPropertyConfig = {
|
||
|
|
Properties: {},
|
||
|
|
DOMAttributeNamespaces: {
|
||
|
|
xlinkActuate: NS.xlink,
|
||
|
|
xlinkArcrole: NS.xlink,
|
||
|
|
xlinkHref: NS.xlink,
|
||
|
|
xlinkRole: NS.xlink,
|
||
|
|
xlinkShow: NS.xlink,
|
||
|
|
xlinkTitle: NS.xlink,
|
||
|
|
xlinkType: NS.xlink,
|
||
|
|
xmlBase: NS.xml,
|
||
|
|
xmlLang: NS.xml,
|
||
|
|
xmlSpace: NS.xml
|
||
|
|
},
|
||
|
|
DOMAttributeNames: {}
|
||
|
|
};
|
||
|
|
Object.keys(ATTRS).forEach(function(key) {
|
||
|
|
SVGDOMPropertyConfig.Properties[key] = 0, ATTRS[key] && (SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key]);
|
||
|
|
}), module.exports = SVGDOMPropertyConfig;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function getSelection(node) {
|
||
|
|
if ("selectionStart" in node && ReactInputSelection.hasSelectionCapabilities(node)) return {
|
||
|
|
start: node.selectionStart,
|
||
|
|
end: node.selectionEnd
|
||
|
|
};
|
||
|
|
if (window.getSelection) {
|
||
|
|
var selection = window.getSelection();
|
||
|
|
return {
|
||
|
|
anchorNode: selection.anchorNode,
|
||
|
|
anchorOffset: selection.anchorOffset,
|
||
|
|
focusNode: selection.focusNode,
|
||
|
|
focusOffset: selection.focusOffset
|
||
|
|
};
|
||
|
|
}
|
||
|
|
if (document.selection) {
|
||
|
|
var range = document.selection.createRange();
|
||
|
|
return {
|
||
|
|
parentElement: range.parentElement(),
|
||
|
|
text: range.text,
|
||
|
|
top: range.boundingTop,
|
||
|
|
left: range.boundingLeft
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function constructSelectEvent(nativeEvent, nativeEventTarget) {
|
||
|
|
if (mouseDown || null == activeElement || activeElement !== getActiveElement()) return null;
|
||
|
|
var currentSelection = getSelection(activeElement);
|
||
|
|
if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
|
||
|
|
lastSelection = currentSelection;
|
||
|
|
var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget);
|
||
|
|
return syntheticEvent.type = "select", syntheticEvent.target = activeElement, EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent),
|
||
|
|
syntheticEvent;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
var EventPropagators = __webpack_require__(46), ExecutionEnvironment = __webpack_require__(53), ReactDOMComponentTree = __webpack_require__(39), ReactInputSelection = __webpack_require__(152), SyntheticEvent = __webpack_require__(58), getActiveElement = __webpack_require__(158), isTextInputElement = __webpack_require__(77), shallowEqual = __webpack_require__(129), skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && "documentMode" in document && document.documentMode <= 11, eventTypes = {
|
||
|
|
select: {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: "onSelect",
|
||
|
|
captured: "onSelectCapture"
|
||
|
|
},
|
||
|
|
dependencies: [ "topBlur", "topContextMenu", "topFocus", "topKeyDown", "topKeyUp", "topMouseDown", "topMouseUp", "topSelectionChange" ]
|
||
|
|
}
|
||
|
|
}, activeElement = null, activeElementInst = null, lastSelection = null, mouseDown = !1, hasListener = !1, SelectEventPlugin = {
|
||
|
|
eventTypes: eventTypes,
|
||
|
|
extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
if (!hasListener) return null;
|
||
|
|
var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
|
||
|
|
switch (topLevelType) {
|
||
|
|
case "topFocus":
|
||
|
|
(isTextInputElement(targetNode) || "true" === targetNode.contentEditable) && (activeElement = targetNode,
|
||
|
|
activeElementInst = targetInst, lastSelection = null);
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topBlur":
|
||
|
|
activeElement = null, activeElementInst = null, lastSelection = null;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topMouseDown":
|
||
|
|
mouseDown = !0;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topContextMenu":
|
||
|
|
case "topMouseUp":
|
||
|
|
return mouseDown = !1, constructSelectEvent(nativeEvent, nativeEventTarget);
|
||
|
|
|
||
|
|
case "topSelectionChange":
|
||
|
|
if (skipSelectionChangeEvent) break;
|
||
|
|
|
||
|
|
case "topKeyDown":
|
||
|
|
case "topKeyUp":
|
||
|
|
return constructSelectEvent(nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
},
|
||
|
|
didPutListener: function(inst, registrationName, listener) {
|
||
|
|
"onSelect" === registrationName && (hasListener = !0);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = SelectEventPlugin;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function getDictionaryKey(inst) {
|
||
|
|
return "." + inst._rootNodeID;
|
||
|
|
}
|
||
|
|
function isInteractive(tag) {
|
||
|
|
return "button" === tag || "input" === tag || "select" === tag || "textarea" === tag;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), EventListener = __webpack_require__(148), EventPropagators = __webpack_require__(46), ReactDOMComponentTree = __webpack_require__(39), SyntheticAnimationEvent = __webpack_require__(162), SyntheticClipboardEvent = __webpack_require__(163), SyntheticEvent = __webpack_require__(58), SyntheticFocusEvent = __webpack_require__(164), SyntheticKeyboardEvent = __webpack_require__(165), SyntheticMouseEvent = __webpack_require__(80), SyntheticDragEvent = __webpack_require__(168), SyntheticTouchEvent = __webpack_require__(169), SyntheticTransitionEvent = __webpack_require__(170), SyntheticUIEvent = __webpack_require__(81), SyntheticWheelEvent = __webpack_require__(171), emptyFunction = __webpack_require__(9), getEventCharCode = __webpack_require__(166), invariant = __webpack_require__(12), eventTypes = {}, topLevelEventsToDispatchConfig = {};
|
||
|
|
[ "abort", "animationEnd", "animationIteration", "animationStart", "blur", "canPlay", "canPlayThrough", "click", "contextMenu", "copy", "cut", "doubleClick", "drag", "dragEnd", "dragEnter", "dragExit", "dragLeave", "dragOver", "dragStart", "drop", "durationChange", "emptied", "encrypted", "ended", "error", "focus", "input", "invalid", "keyDown", "keyPress", "keyUp", "load", "loadedData", "loadedMetadata", "loadStart", "mouseDown", "mouseMove", "mouseOut", "mouseOver", "mouseUp", "paste", "pause", "play", "playing", "progress", "rateChange", "reset", "scroll", "seeked", "seeking", "stalled", "submit", "suspend", "timeUpdate", "touchCancel", "touchEnd", "touchMove", "touchStart", "transitionEnd", "volumeChange", "waiting", "wheel" ].forEach(function(event) {
|
||
|
|
var capitalizedEvent = event[0].toUpperCase() + event.slice(1), onEvent = "on" + capitalizedEvent, topEvent = "top" + capitalizedEvent, type = {
|
||
|
|
phasedRegistrationNames: {
|
||
|
|
bubbled: onEvent,
|
||
|
|
captured: onEvent + "Capture"
|
||
|
|
},
|
||
|
|
dependencies: [ topEvent ]
|
||
|
|
};
|
||
|
|
eventTypes[event] = type, topLevelEventsToDispatchConfig[topEvent] = type;
|
||
|
|
});
|
||
|
|
var onClickListeners = {}, SimpleEventPlugin = {
|
||
|
|
eventTypes: eventTypes,
|
||
|
|
extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
||
|
|
var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
|
||
|
|
if (!dispatchConfig) return null;
|
||
|
|
var EventConstructor;
|
||
|
|
switch (topLevelType) {
|
||
|
|
case "topAbort":
|
||
|
|
case "topCanPlay":
|
||
|
|
case "topCanPlayThrough":
|
||
|
|
case "topDurationChange":
|
||
|
|
case "topEmptied":
|
||
|
|
case "topEncrypted":
|
||
|
|
case "topEnded":
|
||
|
|
case "topError":
|
||
|
|
case "topInput":
|
||
|
|
case "topInvalid":
|
||
|
|
case "topLoad":
|
||
|
|
case "topLoadedData":
|
||
|
|
case "topLoadedMetadata":
|
||
|
|
case "topLoadStart":
|
||
|
|
case "topPause":
|
||
|
|
case "topPlay":
|
||
|
|
case "topPlaying":
|
||
|
|
case "topProgress":
|
||
|
|
case "topRateChange":
|
||
|
|
case "topReset":
|
||
|
|
case "topSeeked":
|
||
|
|
case "topSeeking":
|
||
|
|
case "topStalled":
|
||
|
|
case "topSubmit":
|
||
|
|
case "topSuspend":
|
||
|
|
case "topTimeUpdate":
|
||
|
|
case "topVolumeChange":
|
||
|
|
case "topWaiting":
|
||
|
|
EventConstructor = SyntheticEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topKeyPress":
|
||
|
|
if (0 === getEventCharCode(nativeEvent)) return null;
|
||
|
|
|
||
|
|
case "topKeyDown":
|
||
|
|
case "topKeyUp":
|
||
|
|
EventConstructor = SyntheticKeyboardEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topBlur":
|
||
|
|
case "topFocus":
|
||
|
|
EventConstructor = SyntheticFocusEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topClick":
|
||
|
|
if (2 === nativeEvent.button) return null;
|
||
|
|
|
||
|
|
case "topDoubleClick":
|
||
|
|
case "topMouseDown":
|
||
|
|
case "topMouseMove":
|
||
|
|
case "topMouseUp":
|
||
|
|
case "topMouseOut":
|
||
|
|
case "topMouseOver":
|
||
|
|
case "topContextMenu":
|
||
|
|
EventConstructor = SyntheticMouseEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topDrag":
|
||
|
|
case "topDragEnd":
|
||
|
|
case "topDragEnter":
|
||
|
|
case "topDragExit":
|
||
|
|
case "topDragLeave":
|
||
|
|
case "topDragOver":
|
||
|
|
case "topDragStart":
|
||
|
|
case "topDrop":
|
||
|
|
EventConstructor = SyntheticDragEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topTouchCancel":
|
||
|
|
case "topTouchEnd":
|
||
|
|
case "topTouchMove":
|
||
|
|
case "topTouchStart":
|
||
|
|
EventConstructor = SyntheticTouchEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topAnimationEnd":
|
||
|
|
case "topAnimationIteration":
|
||
|
|
case "topAnimationStart":
|
||
|
|
EventConstructor = SyntheticAnimationEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topTransitionEnd":
|
||
|
|
EventConstructor = SyntheticTransitionEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topScroll":
|
||
|
|
EventConstructor = SyntheticUIEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topWheel":
|
||
|
|
EventConstructor = SyntheticWheelEvent;
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "topCopy":
|
||
|
|
case "topCut":
|
||
|
|
case "topPaste":
|
||
|
|
EventConstructor = SyntheticClipboardEvent;
|
||
|
|
}
|
||
|
|
EventConstructor ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "SimpleEventPlugin: Unhandled event type, `%s`.", topLevelType) : _prodInvariant("86", topLevelType);
|
||
|
|
var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
|
||
|
|
return EventPropagators.accumulateTwoPhaseDispatches(event), event;
|
||
|
|
},
|
||
|
|
didPutListener: function(inst, registrationName, listener) {
|
||
|
|
if ("onClick" === registrationName && !isInteractive(inst._tag)) {
|
||
|
|
var key = getDictionaryKey(inst), node = ReactDOMComponentTree.getNodeFromInstance(inst);
|
||
|
|
onClickListeners[key] || (onClickListeners[key] = EventListener.listen(node, "click", emptyFunction));
|
||
|
|
}
|
||
|
|
},
|
||
|
|
willDeleteListener: function(inst, registrationName) {
|
||
|
|
if ("onClick" === registrationName && !isInteractive(inst._tag)) {
|
||
|
|
var key = getDictionaryKey(inst);
|
||
|
|
onClickListeners[key].remove(), delete onClickListeners[key];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = SimpleEventPlugin;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticEvent = __webpack_require__(58), AnimationEventInterface = {
|
||
|
|
animationName: null,
|
||
|
|
elapsedTime: null,
|
||
|
|
pseudoElement: null
|
||
|
|
};
|
||
|
|
SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface), module.exports = SyntheticAnimationEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticEvent = __webpack_require__(58), ClipboardEventInterface = {
|
||
|
|
clipboardData: function(event) {
|
||
|
|
return "clipboardData" in event ? event.clipboardData : window.clipboardData;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface), module.exports = SyntheticClipboardEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticUIEvent = __webpack_require__(81), FocusEventInterface = {
|
||
|
|
relatedTarget: null
|
||
|
|
};
|
||
|
|
SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface), module.exports = SyntheticFocusEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticUIEvent = __webpack_require__(81), getEventCharCode = __webpack_require__(166), getEventKey = __webpack_require__(167), getEventModifierState = __webpack_require__(83), KeyboardEventInterface = {
|
||
|
|
key: getEventKey,
|
||
|
|
location: null,
|
||
|
|
ctrlKey: null,
|
||
|
|
shiftKey: null,
|
||
|
|
altKey: null,
|
||
|
|
metaKey: null,
|
||
|
|
repeat: null,
|
||
|
|
locale: null,
|
||
|
|
getModifierState: getEventModifierState,
|
||
|
|
charCode: function(event) {
|
||
|
|
return "keypress" === event.type ? getEventCharCode(event) : 0;
|
||
|
|
},
|
||
|
|
keyCode: function(event) {
|
||
|
|
return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0;
|
||
|
|
},
|
||
|
|
which: function(event) {
|
||
|
|
return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface), module.exports = SyntheticKeyboardEvent;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function getEventCharCode(nativeEvent) {
|
||
|
|
var charCode, keyCode = nativeEvent.keyCode;
|
||
|
|
return "charCode" in nativeEvent ? (charCode = nativeEvent.charCode, 0 === charCode && 13 === keyCode && (charCode = 13)) : charCode = keyCode,
|
||
|
|
charCode >= 32 || 13 === charCode ? charCode : 0;
|
||
|
|
}
|
||
|
|
module.exports = getEventCharCode;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function getEventKey(nativeEvent) {
|
||
|
|
if (nativeEvent.key) {
|
||
|
|
var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
|
||
|
|
if ("Unidentified" !== key) return key;
|
||
|
|
}
|
||
|
|
if ("keypress" === nativeEvent.type) {
|
||
|
|
var charCode = getEventCharCode(nativeEvent);
|
||
|
|
return 13 === charCode ? "Enter" : String.fromCharCode(charCode);
|
||
|
|
}
|
||
|
|
return "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : "";
|
||
|
|
}
|
||
|
|
var getEventCharCode = __webpack_require__(166), normalizeKey = {
|
||
|
|
Esc: "Escape",
|
||
|
|
Spacebar: " ",
|
||
|
|
Left: "ArrowLeft",
|
||
|
|
Up: "ArrowUp",
|
||
|
|
Right: "ArrowRight",
|
||
|
|
Down: "ArrowDown",
|
||
|
|
Del: "Delete",
|
||
|
|
Win: "OS",
|
||
|
|
Menu: "ContextMenu",
|
||
|
|
Apps: "ContextMenu",
|
||
|
|
Scroll: "ScrollLock",
|
||
|
|
MozPrintableKey: "Unidentified"
|
||
|
|
}, translateToKey = {
|
||
|
|
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"
|
||
|
|
};
|
||
|
|
module.exports = getEventKey;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticMouseEvent = __webpack_require__(80), DragEventInterface = {
|
||
|
|
dataTransfer: null
|
||
|
|
};
|
||
|
|
SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface), module.exports = SyntheticDragEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticUIEvent = __webpack_require__(81), getEventModifierState = __webpack_require__(83), TouchEventInterface = {
|
||
|
|
touches: null,
|
||
|
|
targetTouches: null,
|
||
|
|
changedTouches: null,
|
||
|
|
altKey: null,
|
||
|
|
metaKey: null,
|
||
|
|
ctrlKey: null,
|
||
|
|
shiftKey: null,
|
||
|
|
getModifierState: getEventModifierState
|
||
|
|
};
|
||
|
|
SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface), module.exports = SyntheticTouchEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticEvent = __webpack_require__(58), TransitionEventInterface = {
|
||
|
|
propertyName: null,
|
||
|
|
elapsedTime: null,
|
||
|
|
pseudoElement: null
|
||
|
|
};
|
||
|
|
SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface),
|
||
|
|
module.exports = SyntheticTransitionEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
var SyntheticMouseEvent = __webpack_require__(80), WheelEventInterface = {
|
||
|
|
deltaX: function(event) {
|
||
|
|
return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0;
|
||
|
|
},
|
||
|
|
deltaY: function(event) {
|
||
|
|
return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0;
|
||
|
|
},
|
||
|
|
deltaZ: null,
|
||
|
|
deltaMode: null
|
||
|
|
};
|
||
|
|
SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface), module.exports = SyntheticWheelEvent;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function firstDifferenceIndex(string1, string2) {
|
||
|
|
for (var minLen = Math.min(string1.length, string2.length), i = 0; i < minLen; i++) if (string1.charAt(i) !== string2.charAt(i)) return i;
|
||
|
|
return string1.length === string2.length ? -1 : minLen;
|
||
|
|
}
|
||
|
|
function getReactRootElementInContainer(container) {
|
||
|
|
return container ? container.nodeType === DOC_NODE_TYPE ? container.documentElement : container.firstChild : null;
|
||
|
|
}
|
||
|
|
function internalGetID(node) {
|
||
|
|
return node.getAttribute && node.getAttribute(ATTR_NAME) || "";
|
||
|
|
}
|
||
|
|
function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) {
|
||
|
|
var markerName;
|
||
|
|
if (ReactFeatureFlags.logTopLevelRenders) {
|
||
|
|
var wrappedElement = wrapperInstance._currentElement.props.child, type = wrappedElement.type;
|
||
|
|
markerName = "React mount: " + ("string" == typeof type ? type : type.displayName || type.name),
|
||
|
|
console.time(markerName);
|
||
|
|
}
|
||
|
|
var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0);
|
||
|
|
markerName && console.timeEnd(markerName), wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance,
|
||
|
|
ReactMount._mountImageIntoNode(markup, container, wrapperInstance, shouldReuseMarkup, transaction);
|
||
|
|
}
|
||
|
|
function batchedMountComponentIntoNode(componentInstance, container, shouldReuseMarkup, context) {
|
||
|
|
var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(!shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement);
|
||
|
|
transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context),
|
||
|
|
ReactUpdates.ReactReconcileTransaction.release(transaction);
|
||
|
|
}
|
||
|
|
function unmountComponentFromNode(instance, container, safely) {
|
||
|
|
for ("production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onBeginFlush(),
|
||
|
|
ReactReconciler.unmountComponent(instance, safely), "production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onEndFlush(),
|
||
|
|
container.nodeType === DOC_NODE_TYPE && (container = container.documentElement); container.lastChild; ) container.removeChild(container.lastChild);
|
||
|
|
}
|
||
|
|
function hasNonRootReactChild(container) {
|
||
|
|
var rootEl = getReactRootElementInContainer(container);
|
||
|
|
if (rootEl) {
|
||
|
|
var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl);
|
||
|
|
return !(!inst || !inst._hostParent);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function nodeIsRenderedByOtherInstance(container) {
|
||
|
|
var rootEl = getReactRootElementInContainer(container);
|
||
|
|
return !(!rootEl || !isReactNode(rootEl) || ReactDOMComponentTree.getInstanceFromNode(rootEl));
|
||
|
|
}
|
||
|
|
function isValidContainer(node) {
|
||
|
|
return !(!node || node.nodeType !== ELEMENT_NODE_TYPE && node.nodeType !== DOC_NODE_TYPE && node.nodeType !== DOCUMENT_FRAGMENT_NODE_TYPE);
|
||
|
|
}
|
||
|
|
function isReactNode(node) {
|
||
|
|
return isValidContainer(node) && (node.hasAttribute(ROOT_ATTR_NAME) || node.hasAttribute(ATTR_NAME));
|
||
|
|
}
|
||
|
|
function getHostRootInstanceInContainer(container) {
|
||
|
|
var rootEl = getReactRootElementInContainer(container), prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl);
|
||
|
|
return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null;
|
||
|
|
}
|
||
|
|
function getTopLevelWrapperInContainer(container) {
|
||
|
|
var root = getHostRootInstanceInContainer(container);
|
||
|
|
return root ? root._hostContainerInfo._topLevelWrapper : null;
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), DOMLazyTree = __webpack_require__(87), DOMProperty = __webpack_require__(41), React = __webpack_require__(2), ReactBrowserEventEmitter = __webpack_require__(111), ReactCurrentOwner = __webpack_require__(17), ReactDOMComponentTree = __webpack_require__(39), ReactDOMContainerInfo = __webpack_require__(173), ReactDOMFeatureFlags = __webpack_require__(174), ReactFeatureFlags = __webpack_require__(63), ReactInstanceMap = __webpack_require__(122), ReactInstrumentation = __webpack_require__(67), ReactMarkupChecksum = __webpack_require__(175), ReactReconciler = __webpack_require__(64), ReactUpdateQueue = __webpack_require__(141), ReactUpdates = __webpack_require__(61), emptyObject = __webpack_require__(11), instantiateReactComponent = __webpack_require__(124), invariant = __webpack_require__(12), setInnerHTML = __webpack_require__(89), shouldUpdateReactComponent = __webpack_require__(130), warning = __webpack_require__(8), ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME, ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME, ELEMENT_NODE_TYPE = 1, DOC_NODE_TYPE = 9, DOCUMENT_FRAGMENT_NODE_TYPE = 11, instancesByReactRootID = {}, topLevelRootCounter = 1, TopLevelWrapper = function() {
|
||
|
|
this.rootID = topLevelRootCounter++;
|
||
|
|
};
|
||
|
|
TopLevelWrapper.prototype.isReactComponent = {}, "production" !== process.env.NODE_ENV && (TopLevelWrapper.displayName = "TopLevelWrapper"),
|
||
|
|
TopLevelWrapper.prototype.render = function() {
|
||
|
|
return this.props.child;
|
||
|
|
}, TopLevelWrapper.isReactTopLevelWrapper = !0;
|
||
|
|
var ReactMount = {
|
||
|
|
TopLevelWrapper: TopLevelWrapper,
|
||
|
|
_instancesByReactRootID: instancesByReactRootID,
|
||
|
|
scrollMonitor: function(container, renderCallback) {
|
||
|
|
renderCallback();
|
||
|
|
},
|
||
|
|
_updateRootComponent: function(prevComponent, nextElement, nextContext, container, callback) {
|
||
|
|
return ReactMount.scrollMonitor(container, function() {
|
||
|
|
ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext),
|
||
|
|
callback && ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback);
|
||
|
|
}), prevComponent;
|
||
|
|
},
|
||
|
|
_renderNewRootComponent: function(nextElement, container, shouldReuseMarkup, context) {
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(null == ReactCurrentOwner.current, "_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.", ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || "ReactCompositeComponent") : void 0,
|
||
|
|
isValidContainer(container) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "_registerComponent(...): Target container is not a DOM element.") : _prodInvariant("37"),
|
||
|
|
ReactBrowserEventEmitter.ensureScrollValueMonitoring();
|
||
|
|
var componentInstance = instantiateReactComponent(nextElement, !1);
|
||
|
|
ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);
|
||
|
|
var wrapperID = componentInstance._instance.rootID;
|
||
|
|
return instancesByReactRootID[wrapperID] = componentInstance, componentInstance;
|
||
|
|
},
|
||
|
|
renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) {
|
||
|
|
return null != parentComponent && ReactInstanceMap.has(parentComponent) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "parentComponent must be a valid React Component") : _prodInvariant("38"),
|
||
|
|
ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);
|
||
|
|
},
|
||
|
|
_renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) {
|
||
|
|
ReactUpdateQueue.validateCallback(callback, "ReactDOM.render"), React.isValidElement(nextElement) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "ReactDOM.render(): Invalid component element.%s", "string" == typeof nextElement ? " Instead of passing a string like 'div', pass React.createElement('div') or <div />." : "function" == typeof nextElement ? " Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />." : null != nextElement && void 0 !== nextElement.props ? " This may be caused by unintentionally loading two independent copies of React." : "") : _prodInvariant("39", "string" == typeof nextElement ? " Instead of passing a string like 'div', pass React.createElement('div') or <div />." : "function" == typeof nextElement ? " Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />." : null != nextElement && void 0 !== nextElement.props ? " This may be caused by unintentionally loading two independent copies of React." : ""),
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!container || !container.tagName || "BODY" !== container.tagName.toUpperCase(), "render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.") : void 0;
|
||
|
|
var nextContext, nextWrappedElement = React.createElement(TopLevelWrapper, {
|
||
|
|
child: nextElement
|
||
|
|
});
|
||
|
|
if (parentComponent) {
|
||
|
|
var parentInst = ReactInstanceMap.get(parentComponent);
|
||
|
|
nextContext = parentInst._processChildContext(parentInst._context);
|
||
|
|
} else nextContext = emptyObject;
|
||
|
|
var prevComponent = getTopLevelWrapperInContainer(container);
|
||
|
|
if (prevComponent) {
|
||
|
|
var prevWrappedElement = prevComponent._currentElement, prevElement = prevWrappedElement.props.child;
|
||
|
|
if (shouldUpdateReactComponent(prevElement, nextElement)) {
|
||
|
|
var publicInst = prevComponent._renderedComponent.getPublicInstance(), updatedCallback = callback && function() {
|
||
|
|
callback.call(publicInst);
|
||
|
|
};
|
||
|
|
return ReactMount._updateRootComponent(prevComponent, nextWrappedElement, nextContext, container, updatedCallback),
|
||
|
|
publicInst;
|
||
|
|
}
|
||
|
|
ReactMount.unmountComponentAtNode(container);
|
||
|
|
}
|
||
|
|
var reactRootElement = getReactRootElementInContainer(container), containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement), containerHasNonRootReactChild = hasNonRootReactChild(container);
|
||
|
|
if ("production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(!containerHasNonRootReactChild, "render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.") : void 0,
|
||
|
|
!containerHasReactMarkup || reactRootElement.nextSibling)) for (var rootElementSibling = reactRootElement; rootElementSibling; ) {
|
||
|
|
if (internalGetID(rootElementSibling)) {
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(!1, "render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.") : void 0;
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
rootElementSibling = rootElementSibling.nextSibling;
|
||
|
|
}
|
||
|
|
var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild, component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance();
|
||
|
|
return callback && callback.call(component), component;
|
||
|
|
},
|
||
|
|
render: function(nextElement, container, callback) {
|
||
|
|
return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);
|
||
|
|
},
|
||
|
|
unmountComponentAtNode: function(container) {
|
||
|
|
"production" !== process.env.NODE_ENV ? warning(null == ReactCurrentOwner.current, "unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.", ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || "ReactCompositeComponent") : void 0,
|
||
|
|
isValidContainer(container) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "unmountComponentAtNode(...): Target container is not a DOM element.") : _prodInvariant("40"),
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(!nodeIsRenderedByOtherInstance(container), "unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.") : void 0);
|
||
|
|
var prevComponent = getTopLevelWrapperInContainer(container);
|
||
|
|
if (!prevComponent) {
|
||
|
|
var containerHasNonRootReactChild = hasNonRootReactChild(container), isContainerReactRoot = 1 === container.nodeType && container.hasAttribute(ROOT_ATTR_NAME);
|
||
|
|
return "production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(!containerHasNonRootReactChild, "unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s", isContainerReactRoot ? "You may have accidentally passed in a React root node instead of its container." : "Instead, have the parent component update its state and rerender in order to remove this component.") : void 0),
|
||
|
|
!1;
|
||
|
|
}
|
||
|
|
return delete instancesByReactRootID[prevComponent._instance.rootID], ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, !1),
|
||
|
|
!0;
|
||
|
|
},
|
||
|
|
_mountImageIntoNode: function(markup, container, instance, shouldReuseMarkup, transaction) {
|
||
|
|
if (isValidContainer(container) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "mountComponentIntoNode(...): Target container is not valid.") : _prodInvariant("41"),
|
||
|
|
shouldReuseMarkup) {
|
||
|
|
var rootElement = getReactRootElementInContainer(container);
|
||
|
|
if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) return void ReactDOMComponentTree.precacheNode(instance, rootElement);
|
||
|
|
var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
|
||
|
|
rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
|
||
|
|
var rootMarkup = rootElement.outerHTML;
|
||
|
|
rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum);
|
||
|
|
var normalizedMarkup = markup;
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var normalizer;
|
||
|
|
container.nodeType === ELEMENT_NODE_TYPE ? (normalizer = document.createElement("div"),
|
||
|
|
normalizer.innerHTML = markup, normalizedMarkup = normalizer.innerHTML) : (normalizer = document.createElement("iframe"),
|
||
|
|
document.body.appendChild(normalizer), normalizer.contentDocument.write(markup),
|
||
|
|
normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML, document.body.removeChild(normalizer));
|
||
|
|
}
|
||
|
|
var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup), difference = " (client) " + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + "\n (server) " + rootMarkup.substring(diffIndex - 20, diffIndex + 20);
|
||
|
|
container.nodeType === DOC_NODE_TYPE ? "production" !== process.env.NODE_ENV ? invariant(!1, "You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s", difference) : _prodInvariant("42", difference) : void 0,
|
||
|
|
"production" !== process.env.NODE_ENV && ("production" !== process.env.NODE_ENV ? warning(!1, "React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s", difference) : void 0);
|
||
|
|
}
|
||
|
|
if (container.nodeType === DOC_NODE_TYPE ? "production" !== process.env.NODE_ENV ? invariant(!1, "You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.") : _prodInvariant("43") : void 0,
|
||
|
|
transaction.useCreateElement) {
|
||
|
|
for (;container.lastChild; ) container.removeChild(container.lastChild);
|
||
|
|
DOMLazyTree.insertTreeBefore(container, markup, null);
|
||
|
|
} else setInnerHTML(container, markup), ReactDOMComponentTree.precacheNode(instance, container.firstChild);
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild);
|
||
|
|
0 !== hostNode._debugID && ReactInstrumentation.debugTool.onHostOperation({
|
||
|
|
instanceID: hostNode._debugID,
|
||
|
|
type: "mount",
|
||
|
|
payload: markup.toString()
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactMount;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function ReactDOMContainerInfo(topLevelWrapper, node) {
|
||
|
|
var info = {
|
||
|
|
_topLevelWrapper: topLevelWrapper,
|
||
|
|
_idCounter: 1,
|
||
|
|
_ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null,
|
||
|
|
_node: node,
|
||
|
|
_tag: node ? node.nodeName.toLowerCase() : null,
|
||
|
|
_namespaceURI: node ? node.namespaceURI : null
|
||
|
|
};
|
||
|
|
return "production" !== process.env.NODE_ENV && (info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null),
|
||
|
|
info;
|
||
|
|
}
|
||
|
|
var validateDOMNesting = __webpack_require__(142), DOC_NODE_TYPE = 9;
|
||
|
|
module.exports = ReactDOMContainerInfo;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactDOMFeatureFlags = {
|
||
|
|
useCreateElement: !0,
|
||
|
|
useFiber: !1
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMFeatureFlags;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var adler32 = __webpack_require__(176), TAG_END = /\/?>/, COMMENT_START = /^<\!\-\-/, ReactMarkupChecksum = {
|
||
|
|
CHECKSUM_ATTR_NAME: "data-react-checksum",
|
||
|
|
addChecksumToMarkup: function(markup) {
|
||
|
|
var checksum = adler32(markup);
|
||
|
|
return COMMENT_START.test(markup) ? markup : markup.replace(TAG_END, " " + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&');
|
||
|
|
},
|
||
|
|
canReuseMarkup: function(markup, element) {
|
||
|
|
var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
|
||
|
|
existingChecksum = existingChecksum && parseInt(existingChecksum, 10);
|
||
|
|
var markupChecksum = adler32(markup);
|
||
|
|
return markupChecksum === existingChecksum;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactMarkupChecksum;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function adler32(data) {
|
||
|
|
for (var a = 1, b = 0, i = 0, l = data.length, m = l & -4; i < m; ) {
|
||
|
|
for (var n = Math.min(i + 4096, m); i < n; i += 4) b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3));
|
||
|
|
a %= MOD, b %= MOD;
|
||
|
|
}
|
||
|
|
for (;i < l; i++) b += a += data.charCodeAt(i);
|
||
|
|
return a %= MOD, b %= MOD, a | b << 16;
|
||
|
|
}
|
||
|
|
var MOD = 65521;
|
||
|
|
module.exports = adler32;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
module.exports = "15.6.1";
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function findDOMNode(componentOrElement) {
|
||
|
|
if ("production" !== process.env.NODE_ENV) {
|
||
|
|
var owner = ReactCurrentOwner.current;
|
||
|
|
null !== owner && ("production" !== process.env.NODE_ENV ? warning(owner._warnedAboutRefsInRender, "%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", owner.getName() || "A component") : void 0,
|
||
|
|
owner._warnedAboutRefsInRender = !0);
|
||
|
|
}
|
||
|
|
if (null == componentOrElement) return null;
|
||
|
|
if (1 === componentOrElement.nodeType) return componentOrElement;
|
||
|
|
var inst = ReactInstanceMap.get(componentOrElement);
|
||
|
|
return inst ? (inst = getHostComponentFromComposite(inst), inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null) : void ("function" == typeof componentOrElement.render ? "production" !== process.env.NODE_ENV ? invariant(!1, "findDOMNode was called on an unmounted component.") : _prodInvariant("44") : "production" !== process.env.NODE_ENV ? invariant(!1, "Element appears to be neither ReactComponent nor DOMNode (keys: %s)", Object.keys(componentOrElement)) : _prodInvariant("45", Object.keys(componentOrElement)));
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), ReactCurrentOwner = __webpack_require__(17), ReactDOMComponentTree = __webpack_require__(39), ReactInstanceMap = __webpack_require__(122), getHostComponentFromComposite = __webpack_require__(179), invariant = __webpack_require__(12), warning = __webpack_require__(8);
|
||
|
|
module.exports = findDOMNode;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function getHostComponentFromComposite(inst) {
|
||
|
|
for (var type; (type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE; ) inst = inst._renderedComponent;
|
||
|
|
return type === ReactNodeTypes.HOST ? inst._renderedComponent : type === ReactNodeTypes.EMPTY ? null : void 0;
|
||
|
|
}
|
||
|
|
var ReactNodeTypes = __webpack_require__(126);
|
||
|
|
module.exports = getHostComponentFromComposite;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var ReactMount = __webpack_require__(172);
|
||
|
|
module.exports = ReactMount.renderSubtreeIntoContainer;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function handleElement(debugID, element) {
|
||
|
|
null != element && "string" == typeof element.type && (element.type.indexOf("-") >= 0 || element.props.is || warnUnknownProperties(debugID, element));
|
||
|
|
}
|
||
|
|
var DOMProperty = __webpack_require__(41), EventPluginRegistry = __webpack_require__(48), ReactComponentTreeHook = __webpack_require__(24), warning = __webpack_require__(8);
|
||
|
|
if ("production" !== process.env.NODE_ENV) var reactProps = {
|
||
|
|
children: !0,
|
||
|
|
dangerouslySetInnerHTML: !0,
|
||
|
|
key: !0,
|
||
|
|
ref: !0,
|
||
|
|
autoFocus: !0,
|
||
|
|
defaultValue: !0,
|
||
|
|
valueLink: !0,
|
||
|
|
defaultChecked: !0,
|
||
|
|
checkedLink: !0,
|
||
|
|
innerHTML: !0,
|
||
|
|
suppressContentEditableWarning: !0,
|
||
|
|
onFocusIn: !0,
|
||
|
|
onFocusOut: !0
|
||
|
|
}, warnedProperties = {}, validateProperty = function(tagName, name, debugID) {
|
||
|
|
if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) return !0;
|
||
|
|
if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) return !0;
|
||
|
|
if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) return !0;
|
||
|
|
warnedProperties[name] = !0;
|
||
|
|
var lowerCasedName = name.toLowerCase(), standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null, registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;
|
||
|
|
return null != standardName ? ("production" !== process.env.NODE_ENV ? warning(!1, "Unknown DOM property %s. Did you mean %s?%s", name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0,
|
||
|
|
!0) : null != registrationName && ("production" !== process.env.NODE_ENV ? warning(!1, "Unknown event handler property %s. Did you mean `%s`?%s", name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0,
|
||
|
|
!0);
|
||
|
|
};
|
||
|
|
var warnUnknownProperties = function(debugID, element) {
|
||
|
|
var unknownProps = [];
|
||
|
|
for (var key in element.props) {
|
||
|
|
var isValid = validateProperty(element.type, key, debugID);
|
||
|
|
isValid || unknownProps.push(key);
|
||
|
|
}
|
||
|
|
var unknownPropString = unknownProps.map(function(prop) {
|
||
|
|
return "`" + prop + "`";
|
||
|
|
}).join(", ");
|
||
|
|
1 === unknownProps.length ? "production" !== process.env.NODE_ENV ? warning(!1, "Unknown prop %s on <%s> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop%s", unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0 : unknownProps.length > 1 && ("production" !== process.env.NODE_ENV ? warning(!1, "Unknown props %s on <%s> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop%s", unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0);
|
||
|
|
}, ReactDOMUnknownPropertyHook = {
|
||
|
|
onBeforeMountComponent: function(debugID, element) {
|
||
|
|
handleElement(debugID, element);
|
||
|
|
},
|
||
|
|
onBeforeUpdateComponent: function(debugID, element) {
|
||
|
|
handleElement(debugID, element);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMUnknownPropertyHook;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function handleElement(debugID, element) {
|
||
|
|
null != element && ("input" !== element.type && "textarea" !== element.type && "select" !== element.type || null == element.props || null !== element.props.value || didWarnValueNull || ("production" !== process.env.NODE_ENV ? warning(!1, "`value` prop on `%s` should not be null. Consider using the empty string to clear the component or `undefined` for uncontrolled components.%s", element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0,
|
||
|
|
didWarnValueNull = !0));
|
||
|
|
}
|
||
|
|
var ReactComponentTreeHook = __webpack_require__(24), warning = __webpack_require__(8), didWarnValueNull = !1, ReactDOMNullInputValuePropHook = {
|
||
|
|
onBeforeMountComponent: function(debugID, element) {
|
||
|
|
handleElement(debugID, element);
|
||
|
|
},
|
||
|
|
onBeforeUpdateComponent: function(debugID, element) {
|
||
|
|
handleElement(debugID, element);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMNullInputValuePropHook;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function validateProperty(tagName, name, debugID) {
|
||
|
|
if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) return !0;
|
||
|
|
if (rARIA.test(name)) {
|
||
|
|
var lowerCasedName = name.toLowerCase(), standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
|
||
|
|
if (null == standardName) return warnedProperties[name] = !0, !1;
|
||
|
|
if (name !== standardName) return "production" !== process.env.NODE_ENV ? warning(!1, "Unknown ARIA attribute %s. Did you mean %s?%s", name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0,
|
||
|
|
warnedProperties[name] = !0, !0;
|
||
|
|
}
|
||
|
|
return !0;
|
||
|
|
}
|
||
|
|
function warnInvalidARIAProps(debugID, element) {
|
||
|
|
var invalidProps = [];
|
||
|
|
for (var key in element.props) {
|
||
|
|
var isValid = validateProperty(element.type, key, debugID);
|
||
|
|
isValid || invalidProps.push(key);
|
||
|
|
}
|
||
|
|
var unknownPropString = invalidProps.map(function(prop) {
|
||
|
|
return "`" + prop + "`";
|
||
|
|
}).join(", ");
|
||
|
|
1 === invalidProps.length ? "production" !== process.env.NODE_ENV ? warning(!1, "Invalid aria prop %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s", unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0 : invalidProps.length > 1 && ("production" !== process.env.NODE_ENV ? warning(!1, "Invalid aria props %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s", unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0);
|
||
|
|
}
|
||
|
|
function handleElement(debugID, element) {
|
||
|
|
null != element && "string" == typeof element.type && (element.type.indexOf("-") >= 0 || element.props.is || warnInvalidARIAProps(debugID, element));
|
||
|
|
}
|
||
|
|
var DOMProperty = __webpack_require__(41), ReactComponentTreeHook = __webpack_require__(24), warning = __webpack_require__(8), warnedProperties = {}, rARIA = new RegExp("^(aria)-[" + DOMProperty.ATTRIBUTE_NAME_CHAR + "]*$"), ReactDOMInvalidARIAHook = {
|
||
|
|
onBeforeMountComponent: function(debugID, element) {
|
||
|
|
"production" !== process.env.NODE_ENV && handleElement(debugID, element);
|
||
|
|
},
|
||
|
|
onBeforeUpdateComponent: function(debugID, element) {
|
||
|
|
"production" !== process.env.NODE_ENV && handleElement(debugID, element);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMInvalidARIAHook;
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function _interopRequireDefault(obj) {
|
||
|
|
return obj && obj.__esModule ? obj : {
|
||
|
|
default: obj
|
||
|
|
};
|
||
|
|
}
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: !0
|
||
|
|
});
|
||
|
|
var _Cookies = __webpack_require__(185), _Cookies2 = _interopRequireDefault(_Cookies);
|
||
|
|
exports.default = _Cookies2.default, module.exports = exports.default;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
function _interopRequireDefault(obj) {
|
||
|
|
return obj && obj.__esModule ? obj : {
|
||
|
|
default: obj
|
||
|
|
};
|
||
|
|
}
|
||
|
|
function _classCallCheck(instance, Constructor) {
|
||
|
|
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
||
|
|
}
|
||
|
|
function isParsingCookie(value, doNotParse) {
|
||
|
|
return "undefined" == typeof doNotParse && (doNotParse = !value || "{" !== value[0] && "[" !== value[0]),
|
||
|
|
!doNotParse;
|
||
|
|
}
|
||
|
|
function readCookie(value, options) {
|
||
|
|
if (isParsingCookie(value, options.doNotParse)) try {
|
||
|
|
return JSON.parse(value);
|
||
|
|
} catch (e) {}
|
||
|
|
return value;
|
||
|
|
}
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: !0
|
||
|
|
});
|
||
|
|
var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
|
||
|
|
return typeof obj;
|
||
|
|
} : function(obj) {
|
||
|
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||
|
|
}, _createClass = function() {
|
||
|
|
function defineProperties(target, props) {
|
||
|
|
for (var i = 0; i < props.length; i++) {
|
||
|
|
var descriptor = props[i];
|
||
|
|
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0,
|
||
|
|
"value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return function(Constructor, protoProps, staticProps) {
|
||
|
|
return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps),
|
||
|
|
Constructor;
|
||
|
|
};
|
||
|
|
}(), _cookie = __webpack_require__(186), _cookie2 = _interopRequireDefault(_cookie), _objectAssign = __webpack_require__(4), _objectAssign2 = _interopRequireDefault(_objectAssign), _utils = __webpack_require__(187), Cookies = function() {
|
||
|
|
function Cookies(cookies, hooks) {
|
||
|
|
if (_classCallCheck(this, Cookies), (0, _utils.isNode)()) {
|
||
|
|
if ("string" == typeof cookies) this.cookies = _cookie2.default.parse(cookies); else {
|
||
|
|
if ("object" !== ("undefined" == typeof cookies ? "undefined" : _typeof(cookies))) throw new Error("Missing the cookie header or object");
|
||
|
|
this.cookies = cookies;
|
||
|
|
}
|
||
|
|
this.hooks = hooks;
|
||
|
|
} else if (cookies) throw new Error("The browser should not provide the cookies");
|
||
|
|
}
|
||
|
|
return _createClass(Cookies, [ {
|
||
|
|
key: "get",
|
||
|
|
value: function(name) {
|
||
|
|
var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, values = this.cookies || _cookie2.default.parse(document.cookie);
|
||
|
|
return readCookie(values[name], options);
|
||
|
|
}
|
||
|
|
}, {
|
||
|
|
key: "getAll",
|
||
|
|
value: function() {
|
||
|
|
var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, values = this.cookies || _cookie2.default.parse(document.cookie), result = {};
|
||
|
|
for (var name in values) result[name] = readCookie(values[name], options);
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
}, {
|
||
|
|
key: "set",
|
||
|
|
value: function(name, value, options) {
|
||
|
|
"object" === ("undefined" == typeof value ? "undefined" : _typeof(value)) && (value = JSON.stringify(value)),
|
||
|
|
(0, _utils.isNode)() ? (this.cookies[name] = value, this.hooks && this.hooks.onSet && this.hooks.onSet(name, value, options)) : document.cookie = _cookie2.default.serialize(name, value, options);
|
||
|
|
}
|
||
|
|
}, {
|
||
|
|
key: "remove",
|
||
|
|
value: function(name, options) {
|
||
|
|
var finalOptions = options = (0, _objectAssign2.default)({}, options, {
|
||
|
|
expires: new Date(1970, 1, 1, 0, 0, 1),
|
||
|
|
maxAge: 0
|
||
|
|
});
|
||
|
|
(0, _utils.isNode)() ? (delete this.cookies[name], this.hooks && this.hooks.onSet && this.hooks.onRemove(name, finalOptions)) : document.cookie = _cookie2.default.serialize(name, "", finalOptions);
|
||
|
|
}
|
||
|
|
} ]), Cookies;
|
||
|
|
}();
|
||
|
|
exports.default = Cookies, module.exports = exports.default;
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
function parse(str, options) {
|
||
|
|
if ("string" != typeof str) throw new TypeError("argument str must be a string");
|
||
|
|
for (var obj = {}, opt = options || {}, pairs = str.split(pairSplitRegExp), dec = opt.decode || decode, i = 0; i < pairs.length; i++) {
|
||
|
|
var pair = pairs[i], eq_idx = pair.indexOf("=");
|
||
|
|
if (!(eq_idx < 0)) {
|
||
|
|
var key = pair.substr(0, eq_idx).trim(), val = pair.substr(++eq_idx, pair.length).trim();
|
||
|
|
'"' == val[0] && (val = val.slice(1, -1)), void 0 == obj[key] && (obj[key] = tryDecode(val, dec));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return obj;
|
||
|
|
}
|
||
|
|
function serialize(name, val, options) {
|
||
|
|
var opt = options || {}, enc = opt.encode || encode;
|
||
|
|
if ("function" != typeof enc) throw new TypeError("option encode is invalid");
|
||
|
|
if (!fieldContentRegExp.test(name)) throw new TypeError("argument name is invalid");
|
||
|
|
var value = enc(val);
|
||
|
|
if (value && !fieldContentRegExp.test(value)) throw new TypeError("argument val is invalid");
|
||
|
|
var str = name + "=" + value;
|
||
|
|
if (null != opt.maxAge) {
|
||
|
|
var maxAge = opt.maxAge - 0;
|
||
|
|
if (isNaN(maxAge)) throw new Error("maxAge should be a Number");
|
||
|
|
str += "; Max-Age=" + Math.floor(maxAge);
|
||
|
|
}
|
||
|
|
if (opt.domain) {
|
||
|
|
if (!fieldContentRegExp.test(opt.domain)) throw new TypeError("option domain is invalid");
|
||
|
|
str += "; Domain=" + opt.domain;
|
||
|
|
}
|
||
|
|
if (opt.path) {
|
||
|
|
if (!fieldContentRegExp.test(opt.path)) throw new TypeError("option path is invalid");
|
||
|
|
str += "; Path=" + opt.path;
|
||
|
|
}
|
||
|
|
if (opt.expires) {
|
||
|
|
if ("function" != typeof opt.expires.toUTCString) throw new TypeError("option expires is invalid");
|
||
|
|
str += "; Expires=" + opt.expires.toUTCString();
|
||
|
|
}
|
||
|
|
if (opt.httpOnly && (str += "; HttpOnly"), opt.secure && (str += "; Secure"), opt.sameSite) {
|
||
|
|
var sameSite = "string" == typeof opt.sameSite ? opt.sameSite.toLowerCase() : opt.sameSite;
|
||
|
|
switch (sameSite) {
|
||
|
|
case !0:
|
||
|
|
str += "; SameSite=Strict";
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "lax":
|
||
|
|
str += "; SameSite=Lax";
|
||
|
|
break;
|
||
|
|
|
||
|
|
case "strict":
|
||
|
|
str += "; SameSite=Strict";
|
||
|
|
break;
|
||
|
|
|
||
|
|
default:
|
||
|
|
throw new TypeError("option sameSite is invalid");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return str;
|
||
|
|
}
|
||
|
|
function tryDecode(str, decode) {
|
||
|
|
try {
|
||
|
|
return decode(str);
|
||
|
|
} catch (e) {
|
||
|
|
return str;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
exports.parse = parse, exports.serialize = serialize;
|
||
|
|
var decode = decodeURIComponent, encode = encodeURIComponent, pairSplitRegExp = /; */, fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process, global) {
|
||
|
|
"use strict";
|
||
|
|
function isNode() {
|
||
|
|
return "test" === process.env.NODE_ENV && "undefined" != typeof global.MOCK_IS_NODE ? global.MOCK_IS_NODE : IS_NODE;
|
||
|
|
}
|
||
|
|
function cleanCookies() {
|
||
|
|
document.cookie.split(";").forEach(function(c) {
|
||
|
|
document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/");
|
||
|
|
});
|
||
|
|
}
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: !0
|
||
|
|
}), exports.isNode = isNode, exports.cleanCookies = cleanCookies;
|
||
|
|
var IS_NODE = "undefined" == typeof document || "undefined" == typeof document.cookie;
|
||
|
|
}).call(exports, __webpack_require__(3), function() {
|
||
|
|
return this;
|
||
|
|
}());
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
module.exports = __webpack_require__(189);
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
"use strict";
|
||
|
|
var ReactDefaultInjection = __webpack_require__(43), ReactServerRendering = __webpack_require__(190), ReactVersion = __webpack_require__(177);
|
||
|
|
ReactDefaultInjection.inject();
|
||
|
|
var ReactDOMServer = {
|
||
|
|
renderToString: ReactServerRendering.renderToString,
|
||
|
|
renderToStaticMarkup: ReactServerRendering.renderToStaticMarkup,
|
||
|
|
version: ReactVersion
|
||
|
|
};
|
||
|
|
module.exports = ReactDOMServer;
|
||
|
|
}, function(module, exports, __webpack_require__) {
|
||
|
|
(function(process) {
|
||
|
|
"use strict";
|
||
|
|
function renderToStringImpl(element, makeStaticMarkup) {
|
||
|
|
var transaction;
|
||
|
|
try {
|
||
|
|
return ReactUpdates.injection.injectBatchingStrategy(ReactServerBatchingStrategy),
|
||
|
|
transaction = ReactServerRenderingTransaction.getPooled(makeStaticMarkup), pendingTransactions++,
|
||
|
|
transaction.perform(function() {
|
||
|
|
var componentInstance = instantiateReactComponent(element, !0), markup = ReactReconciler.mountComponent(componentInstance, transaction, null, ReactDOMContainerInfo(), emptyObject, 0);
|
||
|
|
return "production" !== process.env.NODE_ENV && ReactInstrumentation.debugTool.onUnmountComponent(componentInstance._debugID),
|
||
|
|
makeStaticMarkup || (markup = ReactMarkupChecksum.addChecksumToMarkup(markup)),
|
||
|
|
markup;
|
||
|
|
}, null);
|
||
|
|
} finally {
|
||
|
|
pendingTransactions--, ReactServerRenderingTransaction.release(transaction), pendingTransactions || ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function renderToString(element) {
|
||
|
|
return React.isValidElement(element) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "renderToString(): You must pass a valid ReactElement.") : _prodInvariant("46"),
|
||
|
|
renderToStringImpl(element, !1);
|
||
|
|
}
|
||
|
|
function renderToStaticMarkup(element) {
|
||
|
|
return React.isValidElement(element) ? void 0 : "production" !== process.env.NODE_ENV ? invariant(!1, "renderToStaticMarkup(): You must pass a valid ReactElement.") : _prodInvariant("47"),
|
||
|
|
renderToStringImpl(element, !0);
|
||
|
|
}
|
||
|
|
var _prodInvariant = __webpack_require__(40), React = __webpack_require__(2), ReactDOMContainerInfo = __webpack_require__(173), ReactDefaultBatchingStrategy = __webpack_require__(146), ReactInstrumentation = __webpack_require__(67), ReactMarkupChecksum = __webpack_require__(175), ReactReconciler = __webpack_require__(64), ReactServerBatchingStrategy = __webpack_require__(191), ReactServerRenderingTransaction = __webpack_require__(139), ReactUpdates = __webpack_require__(61), emptyObject = __webpack_require__(11), instantiateReactComponent = __webpack_require__(124), invariant = __webpack_require__(12), pendingTransactions = 0;
|
||
|
|
module.exports = {
|
||
|
|
renderToString: renderToString,
|
||
|
|
renderToStaticMarkup: renderToStaticMarkup
|
||
|
|
};
|
||
|
|
}).call(exports, __webpack_require__(3));
|
||
|
|
}, function(module, exports) {
|
||
|
|
"use strict";
|
||
|
|
var ReactServerBatchingStrategy = {
|
||
|
|
isBatchingUpdates: !1,
|
||
|
|
batchedUpdates: function(callback) {}
|
||
|
|
};
|
||
|
|
module.exports = ReactServerBatchingStrategy;
|
||
|
|
} ]);
|