react-dom 16.1.2 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-server.browser.development.js +68 -51
- package/cjs/react-dom-server.browser.production.min.js +20 -19
- package/cjs/react-dom-server.node.development.js +69 -52
- package/cjs/react-dom-server.node.production.min.js +22 -21
- package/cjs/react-dom-test-utils.development.js +8 -1
- package/cjs/react-dom-test-utils.production.min.js +2 -1
- package/cjs/react-dom-unstable-native-dependencies.development.js +3 -1
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +2 -1
- package/cjs/react-dom.development.js +297 -303
- package/cjs/react-dom.production.min.js +209 -207
- package/package.json +1 -1
- package/umd/react-dom-server.browser.development.js +120 -105
- package/umd/react-dom-server.browser.production.min.js +26 -27
- package/umd/react-dom-test-utils.development.js +1247 -0
- package/umd/react-dom-test-utils.production.min.js +29 -0
- package/umd/react-dom-unstable-native-dependencies.development.js +16 -16
- package/umd/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/umd/react-dom.development.js +511 -519
- package/umd/react-dom.production.min.js +182 -182
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.2.0
|
|
2
2
|
* react-dom-server.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
if (process.env.NODE_ENV !== "production") {
|
|
13
15
|
(function() {
|
|
14
16
|
'use strict';
|
|
@@ -398,7 +400,7 @@ injection.injectDOMPropertyConfig(SVGDOMPropertyConfig);
|
|
|
398
400
|
|
|
399
401
|
// TODO: this is special because it gets imported during build.
|
|
400
402
|
|
|
401
|
-
var ReactVersion = '16.
|
|
403
|
+
var ReactVersion = '16.2.0';
|
|
402
404
|
|
|
403
405
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
404
406
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
@@ -406,9 +408,19 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
406
408
|
|
|
407
409
|
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
408
410
|
|
|
409
|
-
|
|
411
|
+
var ReactCurrentOwner = ReactInternals.ReactCurrentOwner;
|
|
410
412
|
var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame;
|
|
411
413
|
|
|
414
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
415
|
+
// nor polyfill, then a plain number is used for performance.
|
|
416
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
|
|
423
|
+
|
|
412
424
|
// code copied and modified from escape-html
|
|
413
425
|
/**
|
|
414
426
|
* Module variables.
|
|
@@ -418,9 +430,9 @@ var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame;
|
|
|
418
430
|
var matchHtmlRegExp = /["'&<>]/;
|
|
419
431
|
|
|
420
432
|
/**
|
|
421
|
-
*
|
|
433
|
+
* Escapes special characters and HTML entities in a given html string.
|
|
422
434
|
*
|
|
423
|
-
* @param {string} string
|
|
435
|
+
* @param {string} string HTML string to escape for later insertion
|
|
424
436
|
* @return {string}
|
|
425
437
|
* @public
|
|
426
438
|
*/
|
|
@@ -482,7 +494,7 @@ function escapeHtml(string) {
|
|
|
482
494
|
* @param {*} text Text value to escape.
|
|
483
495
|
* @return {string} An escaped string.
|
|
484
496
|
*/
|
|
485
|
-
function
|
|
497
|
+
function escapeTextForBrowser(text) {
|
|
486
498
|
if (typeof text === 'boolean' || typeof text === 'number') {
|
|
487
499
|
// this shortcircuit helps perf for types that we know will never have
|
|
488
500
|
// special characters, especially given that this function is used often
|
|
@@ -499,7 +511,7 @@ function escapeTextContentForBrowser(text) {
|
|
|
499
511
|
* @return {string} An escaped string.
|
|
500
512
|
*/
|
|
501
513
|
function quoteAttributeValueForBrowser(value) {
|
|
502
|
-
return '"' +
|
|
514
|
+
return '"' + escapeTextForBrowser(value) + '"';
|
|
503
515
|
}
|
|
504
516
|
|
|
505
517
|
// isAttributeNameSafe() is currently duplicated in DOMPropertyOperations.
|
|
@@ -566,7 +578,7 @@ function createMarkupForProperty(name, value) {
|
|
|
566
578
|
} else if (typeof value !== 'boolean' || shouldAttributeAcceptBooleanValue(name)) {
|
|
567
579
|
return attributeName + '=' + quoteAttributeValueForBrowser(value);
|
|
568
580
|
}
|
|
569
|
-
} else if (shouldSetAttribute(name, value)
|
|
581
|
+
} else if (shouldSetAttribute(name, value)) {
|
|
570
582
|
if (value == null) {
|
|
571
583
|
return '';
|
|
572
584
|
}
|
|
@@ -1089,7 +1101,7 @@ function validateProperties$1(type, props) {
|
|
|
1089
1101
|
/**
|
|
1090
1102
|
* Ordered list of injected plugins.
|
|
1091
1103
|
*/
|
|
1092
|
-
|
|
1104
|
+
|
|
1093
1105
|
|
|
1094
1106
|
/**
|
|
1095
1107
|
* Mapping from event name to dispatch config
|
|
@@ -1633,36 +1645,46 @@ function getStackAddendum$3() {
|
|
|
1633
1645
|
{
|
|
1634
1646
|
var warnedProperties$1 = {};
|
|
1635
1647
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1636
|
-
var EVENT_NAME_REGEX = /^on
|
|
1648
|
+
var EVENT_NAME_REGEX = /^on./;
|
|
1649
|
+
var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
|
|
1637
1650
|
var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
|
|
1638
1651
|
var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
|
|
1639
1652
|
|
|
1640
|
-
var validateProperty$1 = function (tagName, name, value) {
|
|
1653
|
+
var validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
|
|
1641
1654
|
if (hasOwnProperty$1.call(warnedProperties$1, name) && warnedProperties$1[name]) {
|
|
1642
1655
|
return true;
|
|
1643
1656
|
}
|
|
1644
1657
|
|
|
1645
|
-
if (registrationNameModules.hasOwnProperty(name)) {
|
|
1646
|
-
return true;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
if (plugins.length === 0 && EVENT_NAME_REGEX.test(name)) {
|
|
1650
|
-
// If no event plugins have been injected, we might be in a server environment.
|
|
1651
|
-
// Don't check events in this case.
|
|
1652
|
-
return true;
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
1658
|
var lowerCasedName = name.toLowerCase();
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
if (registrationName != null) {
|
|
1659
|
-
warning(false, 'Invalid event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3());
|
|
1659
|
+
if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
|
|
1660
|
+
warning(false, '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.');
|
|
1660
1661
|
warnedProperties$1[name] = true;
|
|
1661
1662
|
return true;
|
|
1662
1663
|
}
|
|
1663
1664
|
|
|
1664
|
-
|
|
1665
|
-
|
|
1665
|
+
// We can't rely on the event system being injected on the server.
|
|
1666
|
+
if (canUseEventSystem) {
|
|
1667
|
+
if (registrationNameModules.hasOwnProperty(name)) {
|
|
1668
|
+
return true;
|
|
1669
|
+
}
|
|
1670
|
+
var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
|
|
1671
|
+
if (registrationName != null) {
|
|
1672
|
+
warning(false, 'Invalid event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3());
|
|
1673
|
+
warnedProperties$1[name] = true;
|
|
1674
|
+
return true;
|
|
1675
|
+
}
|
|
1676
|
+
if (EVENT_NAME_REGEX.test(name)) {
|
|
1677
|
+
warning(false, 'Unknown event handler property `%s`. It will be ignored.%s', name, getStackAddendum$3());
|
|
1678
|
+
warnedProperties$1[name] = true;
|
|
1679
|
+
return true;
|
|
1680
|
+
}
|
|
1681
|
+
} else if (EVENT_NAME_REGEX.test(name)) {
|
|
1682
|
+
// If no event plugins have been injected, we are in a server environment.
|
|
1683
|
+
// So we can't tell if the event name is correct for sure, but we can filter
|
|
1684
|
+
// out known bad ones like `onclick`. We can't suggest a specific replacement though.
|
|
1685
|
+
if (INVALID_EVENT_NAME_REGEX.test(name)) {
|
|
1686
|
+
warning(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.%s', name, getStackAddendum$3());
|
|
1687
|
+
}
|
|
1666
1688
|
warnedProperties$1[name] = true;
|
|
1667
1689
|
return true;
|
|
1668
1690
|
}
|
|
@@ -1672,12 +1694,6 @@ function getStackAddendum$3() {
|
|
|
1672
1694
|
return true;
|
|
1673
1695
|
}
|
|
1674
1696
|
|
|
1675
|
-
if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
|
|
1676
|
-
warning(false, '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.');
|
|
1677
|
-
warnedProperties$1[name] = true;
|
|
1678
|
-
return true;
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
1697
|
if (lowerCasedName === 'innerhtml') {
|
|
1682
1698
|
warning(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
|
|
1683
1699
|
warnedProperties$1[name] = true;
|
|
@@ -1746,10 +1762,10 @@ function getStackAddendum$3() {
|
|
|
1746
1762
|
};
|
|
1747
1763
|
}
|
|
1748
1764
|
|
|
1749
|
-
var warnUnknownProperties = function (type, props) {
|
|
1765
|
+
var warnUnknownProperties = function (type, props, canUseEventSystem) {
|
|
1750
1766
|
var unknownProps = [];
|
|
1751
1767
|
for (var key in props) {
|
|
1752
|
-
var isValid = validateProperty$1(type, key, props[key]);
|
|
1768
|
+
var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
|
|
1753
1769
|
if (!isValid) {
|
|
1754
1770
|
unknownProps.push(key);
|
|
1755
1771
|
}
|
|
@@ -1765,17 +1781,15 @@ var warnUnknownProperties = function (type, props) {
|
|
|
1765
1781
|
}
|
|
1766
1782
|
};
|
|
1767
1783
|
|
|
1768
|
-
function validateProperties$2(type, props) {
|
|
1784
|
+
function validateProperties$2(type, props, canUseEventSystem) {
|
|
1769
1785
|
if (isCustomComponent(type, props)) {
|
|
1770
1786
|
return;
|
|
1771
1787
|
}
|
|
1772
|
-
warnUnknownProperties(type, props);
|
|
1788
|
+
warnUnknownProperties(type, props, canUseEventSystem);
|
|
1773
1789
|
}
|
|
1774
1790
|
|
|
1775
1791
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1776
1792
|
|
|
1777
|
-
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1778
|
-
|
|
1779
1793
|
// Based on reading the React.Children implementation. TODO: type this somewhere?
|
|
1780
1794
|
|
|
1781
1795
|
var toArray = React.Children.toArray;
|
|
@@ -1786,7 +1800,7 @@ var getStackAddendum = emptyFunction.thatReturns('');
|
|
|
1786
1800
|
var validatePropertiesInDevelopment = function (type, props) {
|
|
1787
1801
|
validateProperties(type, props);
|
|
1788
1802
|
validateProperties$1(type, props);
|
|
1789
|
-
validateProperties$2(type, props);
|
|
1803
|
+
validateProperties$2(type, props, /* canUseEventSystem */false);
|
|
1790
1804
|
};
|
|
1791
1805
|
|
|
1792
1806
|
var describeStackFrame = function (element) {
|
|
@@ -1918,7 +1932,7 @@ function getNonChildrenInnerMarkup(props) {
|
|
|
1918
1932
|
} else {
|
|
1919
1933
|
var content = props.children;
|
|
1920
1934
|
if (typeof content === 'string' || typeof content === 'number') {
|
|
1921
|
-
return
|
|
1935
|
+
return escapeTextForBrowser(content);
|
|
1922
1936
|
}
|
|
1923
1937
|
}
|
|
1924
1938
|
return null;
|
|
@@ -2145,10 +2159,13 @@ function resolve(child, context) {
|
|
|
2145
2159
|
var childContext;
|
|
2146
2160
|
if (typeof inst.getChildContext === 'function') {
|
|
2147
2161
|
var childContextTypes = Component.childContextTypes;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2162
|
+
if (typeof childContextTypes === 'object') {
|
|
2163
|
+
childContext = inst.getChildContext();
|
|
2164
|
+
for (var contextKey in childContext) {
|
|
2165
|
+
!(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(Component) || 'Unknown', contextKey) : void 0;
|
|
2166
|
+
}
|
|
2167
|
+
} else {
|
|
2168
|
+
warning(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', getComponentName(Component) || 'Unknown');
|
|
2152
2169
|
}
|
|
2153
2170
|
}
|
|
2154
2171
|
if (childContext) {
|
|
@@ -2158,7 +2175,7 @@ function resolve(child, context) {
|
|
|
2158
2175
|
return { child: child, context: context };
|
|
2159
2176
|
}
|
|
2160
2177
|
|
|
2161
|
-
var ReactDOMServerRenderer
|
|
2178
|
+
var ReactDOMServerRenderer = function () {
|
|
2162
2179
|
function ReactDOMServerRenderer(children, makeStaticMarkup) {
|
|
2163
2180
|
_classCallCheck(this, ReactDOMServerRenderer);
|
|
2164
2181
|
|
|
@@ -2229,13 +2246,13 @@ var ReactDOMServerRenderer$1 = function () {
|
|
|
2229
2246
|
return '';
|
|
2230
2247
|
}
|
|
2231
2248
|
if (this.makeStaticMarkup) {
|
|
2232
|
-
return
|
|
2249
|
+
return escapeTextForBrowser(text);
|
|
2233
2250
|
}
|
|
2234
2251
|
if (this.previousWasTextNode) {
|
|
2235
|
-
return '<!-- -->' +
|
|
2252
|
+
return '<!-- -->' + escapeTextForBrowser(text);
|
|
2236
2253
|
}
|
|
2237
2254
|
this.previousWasTextNode = true;
|
|
2238
|
-
return
|
|
2255
|
+
return escapeTextForBrowser(text);
|
|
2239
2256
|
} else {
|
|
2240
2257
|
var nextChild;
|
|
2241
2258
|
|
|
@@ -2479,7 +2496,7 @@ var ReactDOMServerRenderer$1 = function () {
|
|
|
2479
2496
|
* See https://reactjs.org/docs/react-dom-server.html#rendertostring
|
|
2480
2497
|
*/
|
|
2481
2498
|
function renderToString(element) {
|
|
2482
|
-
var renderer = new ReactDOMServerRenderer
|
|
2499
|
+
var renderer = new ReactDOMServerRenderer(element, false);
|
|
2483
2500
|
var markup = renderer.read(Infinity);
|
|
2484
2501
|
return markup;
|
|
2485
2502
|
}
|
|
@@ -2490,7 +2507,7 @@ function renderToString(element) {
|
|
|
2490
2507
|
* See https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup
|
|
2491
2508
|
*/
|
|
2492
2509
|
function renderToStaticMarkup(element) {
|
|
2493
|
-
var renderer = new ReactDOMServerRenderer
|
|
2510
|
+
var renderer = new ReactDOMServerRenderer(element, true);
|
|
2494
2511
|
var markup = renderer.read(Infinity);
|
|
2495
2512
|
return markup;
|
|
2496
2513
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.2.0
|
|
2
2
|
* react-dom-server.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
+
|
|
9
10
|
'use strict';var h=require("object-assign"),n=require("react"),aa=require("fbjs/lib/emptyFunction"),t=require("fbjs/lib/emptyObject"),ba=require("fbjs/lib/hyphenateStyleName"),ca=require("fbjs/lib/memoizeStringOnly");
|
|
10
11
|
function w(a){for(var b=arguments.length-1,g="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)g+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);b=Error(g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
|
|
11
12
|
var x={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0};function z(a,b){return(a&b)===b}
|
|
@@ -18,24 +19,24 @@ selected:G|H,size:J,start:I,span:J,spellCheck:L,style:0,tabIndex:0,itemScope:H,a
|
|
|
18
19
|
b)}}},M=F.HAS_STRING_BOOLEAN_VALUE,N={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},O={Properties:{autoReverse:M,externalResourcesRequired:M,preserveAlpha:M},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:N.xlink,xlinkArcrole:N.xlink,xlinkHref:N.xlink,xlinkRole:N.xlink,xlinkShow:N.xlink,xlinkTitle:N.xlink,xlinkType:N.xlink,xmlBase:N.xml,xmlLang:N.xml,
|
|
19
20
|
xmlSpace:N.xml}},fa=/[\-\:]([a-z])/g;function ha(a){return a[1].toUpperCase()}
|
|
20
21
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(a){var b=a.replace(fa,
|
|
21
|
-
ha);O.Properties[b]=0;O.DOMAttributeNames[b]=a});F.injectDOMPropertyConfig(ea);F.injectDOMPropertyConfig(O);var ia=/["'&<>]/;
|
|
22
|
-
function
|
|
23
|
-
var ja=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
|
|
24
|
-
function
|
|
22
|
+
ha);O.Properties[b]=0;O.DOMAttributeNames[b]=a});F.injectDOMPropertyConfig(ea);F.injectDOMPropertyConfig(O);var P="function"===typeof Symbol&&Symbol["for"]?Symbol["for"]("react.fragment"):60107,ia=/["'&<>]/;
|
|
23
|
+
function Q(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ia.exec(a);if(b){var g="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b="\x26quot;";break;case 38:b="\x26amp;";break;case 39:b="\x26#x27;";break;case 60:b="\x26lt;";break;case 62:b="\x26gt;";break;default:continue}k!==c&&(g+=a.substring(k,c));k=c+1;g+=b}a=k!==c?g+a.substring(k,c):g}return a}
|
|
24
|
+
var ja=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,R={},S={};function ka(a){if(S.hasOwnProperty(a))return!0;if(R.hasOwnProperty(a))return!1;if(ja.test(a))return S[a]=!0;R[a]=!0;return!1}
|
|
25
|
+
function la(a,b){var g=E(a);if(g){if(null==b||g.hasBooleanValue&&!b||g.hasNumericValue&&isNaN(b)||g.hasPositiveNumericValue&&1>b||g.hasOverloadedBooleanValue&&!1===b)return"";var c=g.attributeName;if(g.hasBooleanValue||g.hasOverloadedBooleanValue&&!0===b)return c+'\x3d""';if("boolean"!==typeof b||D(a))return c+"\x3d"+('"'+Q(b)+'"')}else if(da(a,b))return null==b?"":a+"\x3d"+('"'+Q(b)+'"');return null}var T={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
|
|
25
26
|
function U(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
|
|
26
|
-
var V={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},
|
|
27
|
-
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},
|
|
28
|
-
|
|
29
|
-
function
|
|
27
|
+
var V={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},ma=h({menuitem:!0},V),W={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
|
|
28
|
+
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},na=["Webkit","ms","Moz","O"];Object.keys(W).forEach(function(a){na.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);W[b]=W[a]})});var X=n.Children.toArray,Y=aa.thatReturns(""),oa={listing:!0,pre:!0,textarea:!0};
|
|
29
|
+
function pa(a){return"string"===typeof a?a:"function"===typeof a?a.displayName||a.name:null}var qa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ra={},sa=ca(function(a){return ba(a)});function ta(a){var b="";n.Children.forEach(a,function(a){null==a||"string"!==typeof a&&"number"!==typeof a||(b+=a)});return b}function ua(a,b){if(a=a.contextTypes){var g={},c;for(c in a)g[c]=b[c];b=g}else b=t;return b}var va={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};
|
|
30
|
+
function wa(a,b){void 0===a&&w("152",pa(b)||"Component")}
|
|
30
31
|
function xa(a,b){for(;n.isValidElement(a);){var g=a,c=g.type;if("function"!==typeof c)break;a=ua(c,b);var k=[],f=!1,e={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===k)return null},enqueueReplaceState:function(a,b){f=!0;k=[b]},enqueueSetState:function(a,b){if(null===k)return null;k.push(b)}};if(c.prototype&&c.prototype.isReactComponent)var d=new c(g.props,a,e);else if(d=c(g.props,a,e),null==d||null==d.render){a=d;wa(a,c);continue}d.props=g.props;d.context=a;d.updater=e;e=d.state;
|
|
31
|
-
void 0===e&&(d.state=e=null);if(d.componentWillMount)if(d.componentWillMount(),k.length){e=k;var p=f;k=null;f=!1;if(p&&1===e.length)d.state=e[0];else{var q=p?e[0]:d.state,l=!0;for(p=p?1:0;p<e.length;p++){var m=e[p];if(m="function"===typeof m?m.call(d,q,g.props,a):m)l?(l=!1,q=h({},q,m)):h(q,m)}d.state=q}}else k=null;a=d.render();wa(a,c);if("function"===typeof d.getChildContext
|
|
32
|
-
|
|
33
|
-
var ya=function(){function a(b,g){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");n.isValidElement(b)?b.type!==
|
|
34
|
-
!0;break}var c=this.stack[this.stack.length-1];if(c.childIndex>=c.children.length){var k=c.footer;b+=k;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();"select"===c.tag&&(this.currentSelectValue=null)}else k=c.children[c.childIndex++],b+=this.render(k,c.context,c.domNamespace)}return b};a.prototype.render=function(a,g,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return
|
|
35
|
-
!0;return
|
|
32
|
+
void 0===e&&(d.state=e=null);if(d.componentWillMount)if(d.componentWillMount(),k.length){e=k;var p=f;k=null;f=!1;if(p&&1===e.length)d.state=e[0];else{var q=p?e[0]:d.state,l=!0;for(p=p?1:0;p<e.length;p++){var m=e[p];if(m="function"===typeof m?m.call(d,q,g.props,a):m)l?(l=!1,q=h({},q,m)):h(q,m)}d.state=q}}else k=null;a=d.render();wa(a,c);if("function"===typeof d.getChildContext&&(g=c.childContextTypes,"object"===typeof g)){var A=d.getChildContext();for(var y in A)y in g?void 0:w("108",pa(c)||"Unknown",
|
|
33
|
+
y)}A&&(b=h({},b,A))}return{child:a,context:b}}
|
|
34
|
+
var ya=function(){function a(b,g){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");n.isValidElement(b)?b.type!==P?b=[b]:(b=b.props.children,b=n.isValidElement(b)?[b]:X(b)):b=X(b);this.stack=[{domNamespace:T.html,children:b,childIndex:0,context:t,footer:""}];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=g}a.prototype.read=function(a){if(this.exhausted)return null;for(var b="";b.length<a;){if(0===this.stack.length){this.exhausted=
|
|
35
|
+
!0;break}var c=this.stack[this.stack.length-1];if(c.childIndex>=c.children.length){var k=c.footer;b+=k;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();"select"===c.tag&&(this.currentSelectValue=null)}else k=c.children[c.childIndex++],b+=this.render(k,c.context,c.domNamespace)}return b};a.prototype.render=function(a,g,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return Q(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+Q(c);this.previousWasTextNode=
|
|
36
|
+
!0;return Q(c)}g=xa(a,g);a=g.child;g=g.context;if(null===a||!1===a)return"";if(n.isValidElement(a))return a.type===P?(a=X(a.props.children),this.stack.push({domNamespace:c,children:a,childIndex:0,context:g,footer:""}),""):this.renderDOM(a,g,c);a=X(a);this.stack.push({domNamespace:c,children:a,childIndex:0,context:g,footer:""});return""};a.prototype.renderDOM=function(a,g,c){var b=a.type.toLowerCase();c===T.html&&U(b);ra.hasOwnProperty(b)||(qa.test(b)?void 0:w("65",b),ra[b]=!0);var f=a.props;if("input"===
|
|
36
37
|
b)f=h({type:void 0},f,{defaultChecked:void 0,defaultValue:void 0,value:null!=f.value?f.value:f.defaultValue,checked:null!=f.checked?f.checked:f.defaultChecked});else if("textarea"===b){var e=f.value;if(null==e){e=f.defaultValue;var d=f.children;null!=d&&(null!=e?w("92"):void 0,Array.isArray(d)&&(1>=d.length?void 0:w("93"),d=d[0]),e=""+d);null==e&&(e="")}f=h({},f,{value:void 0,children:""+e})}else if("select"===b)this.currentSelectValue=null!=f.value?f.value:f.defaultValue,f=h({},f,{value:void 0});
|
|
37
|
-
else if("option"===b){d=this.currentSelectValue;var p=ta(f.children);if(null!=d){var q=null!=f.value?f.value+"":p;e=!1;if(Array.isArray(d))for(var l=0;l<d.length;l++){if(""+d[l]===q){e=!0;break}}else e=""+d===q;f=h({selected:void 0,children:void 0},f,{selected:e,children:p})}}if(e=f)
|
|
38
|
-
void 0:w("61")),null!=e.style&&"object"!==typeof e.style?w("62",
|
|
39
|
-
-1===u.indexOf("-"))u="string"===typeof v.is;else switch(u){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":u=!1;break b;default:u=!0}u?va.hasOwnProperty(r)||(l=r,l=
|
|
40
|
-
d){if(null!=d.__html){d=d.__html;break a}}else if(d=f.children,"string"===typeof d||"number"===typeof d){d=
|
|
41
|
-
!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new ya(a,!0)).read(Infinity)},renderToNodeStream:function(){w("207")},renderToStaticNodeStream:function(){w("208")},version:"16.
|
|
38
|
+
else if("option"===b){d=this.currentSelectValue;var p=ta(f.children);if(null!=d){var q=null!=f.value?f.value+"":p;e=!1;if(Array.isArray(d))for(var l=0;l<d.length;l++){if(""+d[l]===q){e=!0;break}}else e=""+d===q;f=h({selected:void 0,children:void 0},f,{selected:e,children:p})}}if(e=f)ma[b]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?w("137",b,Y()):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?w("60"):void 0,"object"===typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML?
|
|
39
|
+
void 0:w("61")),null!=e.style&&"object"!==typeof e.style?w("62",Y()):void 0;e=f;d=this.makeStaticMarkup;p=1===this.stack.length;q="\x3c"+a.type;for(r in e)if(e.hasOwnProperty(r)){var m=e[r];if(null!=m){if("style"===r){l=void 0;var A="",y="";for(l in m)if(m.hasOwnProperty(l)){var u=0===l.indexOf("--"),v=m[l];null!=v&&(A+=y+sa(l)+":",y=l,u=null==v||"boolean"===typeof v||""===v?"":u||"number"!==typeof v||0===v||W.hasOwnProperty(y)&&W[y]?(""+v).trim():v+"px",A+=u,y=";")}m=A||null}l=null;b:if(u=b,v=e,
|
|
40
|
+
-1===u.indexOf("-"))u="string"===typeof v.is;else switch(u){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":u=!1;break b;default:u=!0}u?va.hasOwnProperty(r)||(l=r,l=ka(l)&&null!=m?l+"\x3d"+('"'+Q(m)+'"'):""):l=la(r,m);l&&(q+=" "+l)}}d||p&&(q+=' data-reactroot\x3d""');var r=q;e="";V.hasOwnProperty(b)?r+="/\x3e":(r+="\x3e",e="\x3c/"+a.type+"\x3e");a:{d=f.dangerouslySetInnerHTML;if(null!=
|
|
41
|
+
d){if(null!=d.__html){d=d.__html;break a}}else if(d=f.children,"string"===typeof d||"number"===typeof d){d=Q(d);break a}d=null}null!=d?(f=[],oa[b]&&"\n"===d.charAt(0)&&(r+="\n"),r+=d):f=X(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?U(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,tag:b,children:f,childIndex:0,context:g,footer:e});this.previousWasTextNode=!1;return r};return a}(),za={renderToString:function(a){return(new ya(a,
|
|
42
|
+
!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new ya(a,!0)).read(Infinity)},renderToNodeStream:function(){w("207")},renderToStaticNodeStream:function(){w("208")},version:"16.2.0"},Aa=Object.freeze({default:za}),Z=Aa&&za||Aa;module.exports=Z["default"]?Z["default"]:Z;
|