react-dom 16.6.0-alpha.8af6728 → 16.6.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 +116 -63
- package/cjs/react-dom-server.browser.production.min.js +35 -33
- package/cjs/react-dom-server.node.development.js +118 -65
- package/cjs/react-dom-server.node.production.min.js +38 -36
- package/cjs/react-dom-test-utils.development.js +6 -8
- package/cjs/react-dom-test-utils.production.min.js +4 -4
- package/cjs/react-dom-unstable-native-dependencies.development.js +2 -2
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/cjs/react-dom.development.js +1068 -546
- package/cjs/react-dom.production.min.js +234 -227
- package/cjs/react-dom.profiling.min.js +239 -233
- package/package.json +3 -3
- package/umd/react-dom-server.browser.development.js +116 -63
- package/umd/react-dom-server.browser.production.min.js +31 -29
- package/umd/react-dom-test-utils.development.js +6 -8
- package/umd/react-dom-test-utils.production.min.js +8 -8
- package/umd/react-dom-unstable-native-dependencies.development.js +2 -2
- package/umd/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/umd/react-dom.development.js +1068 -546
- package/umd/react-dom.production.min.js +193 -188
- package/umd/react-dom.profiling.min.js +198 -194
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.0
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-server.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22,7 +22,7 @@ var stream = require('stream');
|
|
|
22
22
|
|
|
23
23
|
// TODO: this is special because it gets imported during build.
|
|
24
24
|
|
|
25
|
-
var ReactVersion = '16.6.0
|
|
25
|
+
var ReactVersion = '16.6.0';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -172,14 +172,19 @@ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
|
172
172
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
173
173
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
174
174
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
175
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
176
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
175
177
|
|
|
176
178
|
var Resolved = 1;
|
|
177
179
|
|
|
178
180
|
|
|
181
|
+
function refineResolvedLazyComponent(lazyComponent) {
|
|
182
|
+
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
183
|
+
}
|
|
179
184
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return
|
|
185
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
186
|
+
var functionName = innerType.displayName || innerType.name || '';
|
|
187
|
+
return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
function getComponentName(type) {
|
|
@@ -219,16 +224,17 @@ function getComponentName(type) {
|
|
|
219
224
|
case REACT_PROVIDER_TYPE:
|
|
220
225
|
return 'Context.Provider';
|
|
221
226
|
case REACT_FORWARD_REF_TYPE:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return type.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
return getWrappedName(type, type.render, 'ForwardRef');
|
|
228
|
+
case REACT_MEMO_TYPE:
|
|
229
|
+
return getComponentName(type.type);
|
|
230
|
+
case REACT_LAZY_TYPE:
|
|
231
|
+
{
|
|
232
|
+
var thenable = type;
|
|
233
|
+
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
234
|
+
if (resolvedThenable) {
|
|
235
|
+
return getComponentName(resolvedThenable);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
232
238
|
}
|
|
233
239
|
}
|
|
234
240
|
return null;
|
|
@@ -2049,6 +2055,7 @@ var toArray = React.Children.toArray;
|
|
|
2049
2055
|
// Each stack is an array of frames which may contain nested stacks of elements.
|
|
2050
2056
|
var currentDebugStacks = [];
|
|
2051
2057
|
|
|
2058
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2052
2059
|
var ReactDebugCurrentFrame = void 0;
|
|
2053
2060
|
var prevGetCurrentStackImpl = null;
|
|
2054
2061
|
var getCurrentServerStackImpl = function () {
|
|
@@ -2063,6 +2070,12 @@ var pushCurrentDebugStack = function (stack) {};
|
|
|
2063
2070
|
var pushElementToDebugStack = function (element) {};
|
|
2064
2071
|
var popCurrentDebugStack = function () {};
|
|
2065
2072
|
|
|
2073
|
+
var Dispatcher = {
|
|
2074
|
+
readContext: function (context, observedBits) {
|
|
2075
|
+
return context._currentValue;
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2066
2079
|
{
|
|
2067
2080
|
ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2068
2081
|
|
|
@@ -2148,6 +2161,7 @@ var didWarnAboutBadClass = {};
|
|
|
2148
2161
|
var didWarnAboutDeprecatedWillMount = {};
|
|
2149
2162
|
var didWarnAboutUndefinedDerivedState = {};
|
|
2150
2163
|
var didWarnAboutUninitializedState = {};
|
|
2164
|
+
var didWarnAboutInvalidateContextType = {};
|
|
2151
2165
|
var valuePropNames = ['value', 'defaultValue'];
|
|
2152
2166
|
var newlineEatingTags = {
|
|
2153
2167
|
listing: true,
|
|
@@ -2296,13 +2310,27 @@ function checkContextTypes(typeSpecs, values, location) {
|
|
|
2296
2310
|
}
|
|
2297
2311
|
|
|
2298
2312
|
function processContext(type, context) {
|
|
2299
|
-
var
|
|
2300
|
-
{
|
|
2301
|
-
|
|
2302
|
-
|
|
2313
|
+
var contextType = type.contextType;
|
|
2314
|
+
if (typeof contextType === 'object' && contextType !== null) {
|
|
2315
|
+
{
|
|
2316
|
+
if (contextType.$$typeof !== REACT_CONTEXT_TYPE) {
|
|
2317
|
+
var name = getComponentName(type) || 'Component';
|
|
2318
|
+
if (!didWarnAboutInvalidateContextType[name]) {
|
|
2319
|
+
didWarnAboutInvalidateContextType[type] = true;
|
|
2320
|
+
warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', name);
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2303
2323
|
}
|
|
2324
|
+
return contextType._currentValue;
|
|
2325
|
+
} else {
|
|
2326
|
+
var maskedContext = maskContext(type, context);
|
|
2327
|
+
{
|
|
2328
|
+
if (type.contextTypes) {
|
|
2329
|
+
checkContextTypes(type.contextTypes, maskedContext, 'context');
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
return maskedContext;
|
|
2304
2333
|
}
|
|
2305
|
-
return maskedContext;
|
|
2306
2334
|
}
|
|
2307
2335
|
|
|
2308
2336
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2637,42 +2665,47 @@ var ReactDOMServerRenderer = function () {
|
|
|
2637
2665
|
return null;
|
|
2638
2666
|
}
|
|
2639
2667
|
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
if (frame.childIndex >= frame.children.length) {
|
|
2648
|
-
var _footer = frame.footer;
|
|
2649
|
-
out += _footer;
|
|
2650
|
-
if (_footer !== '') {
|
|
2651
|
-
this.previousWasTextNode = false;
|
|
2668
|
+
ReactCurrentOwner.currentDispatcher = Dispatcher;
|
|
2669
|
+
try {
|
|
2670
|
+
var out = '';
|
|
2671
|
+
while (out.length < bytes) {
|
|
2672
|
+
if (this.stack.length === 0) {
|
|
2673
|
+
this.exhausted = true;
|
|
2674
|
+
break;
|
|
2652
2675
|
}
|
|
2653
|
-
this.stack.
|
|
2654
|
-
if (frame.
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2676
|
+
var frame = this.stack[this.stack.length - 1];
|
|
2677
|
+
if (frame.childIndex >= frame.children.length) {
|
|
2678
|
+
var _footer = frame.footer;
|
|
2679
|
+
out += _footer;
|
|
2680
|
+
if (_footer !== '') {
|
|
2681
|
+
this.previousWasTextNode = false;
|
|
2682
|
+
}
|
|
2683
|
+
this.stack.pop();
|
|
2684
|
+
if (frame.type === 'select') {
|
|
2685
|
+
this.currentSelectValue = null;
|
|
2686
|
+
} else if (frame.type != null && frame.type.type != null && frame.type.type.$$typeof === REACT_PROVIDER_TYPE) {
|
|
2687
|
+
var provider = frame.type;
|
|
2688
|
+
this.popProvider(provider);
|
|
2689
|
+
}
|
|
2690
|
+
continue;
|
|
2659
2691
|
}
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
popCurrentDebugStack();
|
|
2692
|
+
var child = frame.children[frame.childIndex++];
|
|
2693
|
+
{
|
|
2694
|
+
pushCurrentDebugStack(this.stack);
|
|
2695
|
+
// We're starting work on this frame, so reset its inner stack.
|
|
2696
|
+
frame.debugElementStack.length = 0;
|
|
2697
|
+
try {
|
|
2698
|
+
// Be careful! Make sure this matches the PROD path below.
|
|
2699
|
+
out += this.render(child, frame.context, frame.domNamespace);
|
|
2700
|
+
} finally {
|
|
2701
|
+
popCurrentDebugStack();
|
|
2702
|
+
}
|
|
2672
2703
|
}
|
|
2673
2704
|
}
|
|
2705
|
+
return out;
|
|
2706
|
+
} finally {
|
|
2707
|
+
ReactCurrentOwner.currentDispatcher = null;
|
|
2674
2708
|
}
|
|
2675
|
-
return out;
|
|
2676
2709
|
};
|
|
2677
2710
|
|
|
2678
2711
|
ReactDOMServerRenderer.prototype.render = function render(child, context, parentNamespace) {
|
|
@@ -2770,6 +2803,8 @@ var ReactDOMServerRenderer = function () {
|
|
|
2770
2803
|
}
|
|
2771
2804
|
this.stack.push(_frame2);
|
|
2772
2805
|
return '';
|
|
2806
|
+
} else {
|
|
2807
|
+
invariant(false, 'ReactDOMServer does not yet support Suspense.');
|
|
2773
2808
|
}
|
|
2774
2809
|
}
|
|
2775
2810
|
// eslint-disable-next-line-no-fallthrough
|
|
@@ -2796,26 +2831,44 @@ var ReactDOMServerRenderer = function () {
|
|
|
2796
2831
|
this.stack.push(_frame3);
|
|
2797
2832
|
return '';
|
|
2798
2833
|
}
|
|
2834
|
+
case REACT_MEMO_TYPE:
|
|
2835
|
+
{
|
|
2836
|
+
var _element = nextChild;
|
|
2837
|
+
var _nextChildren4 = [React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props))];
|
|
2838
|
+
var _frame4 = {
|
|
2839
|
+
type: null,
|
|
2840
|
+
domNamespace: parentNamespace,
|
|
2841
|
+
children: _nextChildren4,
|
|
2842
|
+
childIndex: 0,
|
|
2843
|
+
context: context,
|
|
2844
|
+
footer: ''
|
|
2845
|
+
};
|
|
2846
|
+
{
|
|
2847
|
+
_frame4.debugElementStack = [];
|
|
2848
|
+
}
|
|
2849
|
+
this.stack.push(_frame4);
|
|
2850
|
+
return '';
|
|
2851
|
+
}
|
|
2799
2852
|
case REACT_PROVIDER_TYPE:
|
|
2800
2853
|
{
|
|
2801
2854
|
var provider = nextChild;
|
|
2802
2855
|
var nextProps = provider.props;
|
|
2803
|
-
var
|
|
2804
|
-
var
|
|
2856
|
+
var _nextChildren5 = toArray(nextProps.children);
|
|
2857
|
+
var _frame5 = {
|
|
2805
2858
|
type: provider,
|
|
2806
2859
|
domNamespace: parentNamespace,
|
|
2807
|
-
children:
|
|
2860
|
+
children: _nextChildren5,
|
|
2808
2861
|
childIndex: 0,
|
|
2809
2862
|
context: context,
|
|
2810
2863
|
footer: ''
|
|
2811
2864
|
};
|
|
2812
2865
|
{
|
|
2813
|
-
|
|
2866
|
+
_frame5.debugElementStack = [];
|
|
2814
2867
|
}
|
|
2815
2868
|
|
|
2816
2869
|
this.pushProvider(provider);
|
|
2817
2870
|
|
|
2818
|
-
this.stack.push(
|
|
2871
|
+
this.stack.push(_frame5);
|
|
2819
2872
|
return '';
|
|
2820
2873
|
}
|
|
2821
2874
|
case REACT_CONTEXT_TYPE:
|
|
@@ -2824,23 +2877,23 @@ var ReactDOMServerRenderer = function () {
|
|
|
2824
2877
|
var _nextProps = consumer.props;
|
|
2825
2878
|
var nextValue = consumer.type._currentValue;
|
|
2826
2879
|
|
|
2827
|
-
var
|
|
2828
|
-
var
|
|
2880
|
+
var _nextChildren6 = toArray(_nextProps.children(nextValue));
|
|
2881
|
+
var _frame6 = {
|
|
2829
2882
|
type: nextChild,
|
|
2830
2883
|
domNamespace: parentNamespace,
|
|
2831
|
-
children:
|
|
2884
|
+
children: _nextChildren6,
|
|
2832
2885
|
childIndex: 0,
|
|
2833
2886
|
context: context,
|
|
2834
2887
|
footer: ''
|
|
2835
2888
|
};
|
|
2836
2889
|
{
|
|
2837
|
-
|
|
2890
|
+
_frame6.debugElementStack = [];
|
|
2838
2891
|
}
|
|
2839
|
-
this.stack.push(
|
|
2892
|
+
this.stack.push(_frame6);
|
|
2840
2893
|
return '';
|
|
2841
2894
|
}
|
|
2842
|
-
|
|
2843
|
-
|
|
2895
|
+
case REACT_LAZY_TYPE:
|
|
2896
|
+
invariant(false, 'ReactDOMServer does not yet support lazy-loaded components.');
|
|
2844
2897
|
}
|
|
2845
2898
|
}
|
|
2846
2899
|
|
|
@@ -3108,7 +3161,7 @@ var ReactMarkupReadableStream = function (_Readable) {
|
|
|
3108
3161
|
/**
|
|
3109
3162
|
* Render a ReactElement to its initial HTML. This should only be used on the
|
|
3110
3163
|
* server.
|
|
3111
|
-
* See https://reactjs.org/docs/react-dom-
|
|
3164
|
+
* See https://reactjs.org/docs/react-dom-server.html#rendertonodestream
|
|
3112
3165
|
*/
|
|
3113
3166
|
|
|
3114
3167
|
|
|
@@ -3119,7 +3172,7 @@ function renderToNodeStream(element) {
|
|
|
3119
3172
|
/**
|
|
3120
3173
|
* Similar to renderToNodeStream, except this doesn't create extra DOM attributes
|
|
3121
3174
|
* such as data-react-id that React uses internally.
|
|
3122
|
-
* See https://reactjs.org/docs/react-dom-
|
|
3175
|
+
* See https://reactjs.org/docs/react-dom-server.html#rendertostaticnodestream
|
|
3123
3176
|
*/
|
|
3124
3177
|
function renderToStaticNodeStream(element) {
|
|
3125
3178
|
return new ReactMarkupReadableStream(element, true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.0
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-server.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,39 +7,41 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var p=require("object-assign"),q=require("react"),aa=require("stream");function ba(a,b,d,c,
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
["
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function ta(a
|
|
28
|
-
|
|
29
|
-
d,h),null
|
|
30
|
-
|
|
10
|
+
'use strict';var p=require("object-assign"),q=require("react"),aa=require("stream");function ba(a,b,d,c,k,f,h,l){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var D=[d,c,k,f,h,l],A=0;a=Error(b.replace(/%s/g,function(){return D[A++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
|
+
function r(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);ba(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}
|
|
12
|
+
var w="function"===typeof Symbol&&Symbol.for,x=w?Symbol.for("react.portal"):60106,z=w?Symbol.for("react.fragment"):60107,B=w?Symbol.for("react.strict_mode"):60108,C=w?Symbol.for("react.profiler"):60114,E=w?Symbol.for("react.provider"):60109,F=w?Symbol.for("react.context"):60110,G=w?Symbol.for("react.concurrent_mode"):60111,H=w?Symbol.for("react.forward_ref"):60112,I=w?Symbol.for("react.suspense"):60113,J=w?Symbol.for("react.memo"):60115,K=w?Symbol.for("react.lazy"):60116;
|
|
13
|
+
function L(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case G:return"ConcurrentMode";case z:return"Fragment";case x:return"Portal";case C:return"Profiler";case B:return"StrictMode";case I:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");
|
|
14
|
+
case J:return L(a.type);case K:if(a=1===a._status?a._result:null)return L(a)}return null}
|
|
15
|
+
var ca=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,da=/^[: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]*$/,M=Object.prototype.hasOwnProperty,N={},O={};
|
|
16
|
+
function P(a){if(M.call(O,a))return!0;if(M.call(N,a))return!1;if(da.test(a))return O[a]=!0;N[a]=!0;return!1}function ea(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
|
|
17
|
+
function fa(a,b,d,c){if(null===b||"undefined"===typeof b||ea(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function Q(a,b,d,c,k){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=k;this.mustUseProperty=d;this.propertyName=a;this.type=b}var R={};
|
|
18
|
+
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){R[a]=new Q(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];R[b]=new Q(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){R[a]=new Q(a,2,!1,a.toLowerCase(),null)});
|
|
19
|
+
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){R[a]=new Q(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){R[a]=new Q(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){R[a]=new Q(a,3,!0,a,null)});
|
|
20
|
+
["capture","download"].forEach(function(a){R[a]=new Q(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){R[a]=new Q(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){R[a]=new Q(a,5,!1,a.toLowerCase(),null)});var S=/[\-:]([a-z])/g;function T(a){return a[1].toUpperCase()}
|
|
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 xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(S,
|
|
22
|
+
T);R[b]=new Q(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(S,T);R[b]=new Q(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(S,T);R[b]=new Q(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});R.tabIndex=new Q("tabIndex",1,!1,"tabindex",null);var ha=/["'&<>]/;
|
|
23
|
+
function U(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ha.exec(a);if(b){var d="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}k!==c&&(d+=a.substring(k,c));k=c+1;d+=b}a=k!==c?d+a.substring(k,c):d}return a}var V={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
|
|
24
|
+
function ia(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"}}
|
|
25
|
+
var ja={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},ka=p({menuitem:!0},ja),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,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,
|
|
26
|
+
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},la=["Webkit","ms","Moz","O"];Object.keys(W).forEach(function(a){la.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);W[b]=W[a]})});
|
|
27
|
+
var ma=/([A-Z])/g,na=/^ms-/,X=q.Children.toArray,oa=ca.ReactCurrentOwner,pa={readContext:function(a){return a._currentValue}},qa={listing:!0,pre:!0,textarea:!0},ra=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sa={},Y={};function ta(a){if(void 0===a||null===a)return a;var b="";q.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var ua={};function va(a,b){var d=a.contextType;if("object"===typeof d&&null!==d)return d._currentValue;if(a=a.contextTypes){d={};for(var c in a)d[c]=b[c];b=d}else b=ua;return b}
|
|
28
|
+
var wa=Object.prototype.hasOwnProperty,xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function ya(a,b){void 0===a&&r("152",L(b)||"Component")}
|
|
29
|
+
function za(a,b){function d(c,d){var k=va(d,b),f=[],h=!1,g={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===f)return null},enqueueReplaceState:function(a,b){h=!0;f=[b]},enqueueSetState:function(a,b){if(null===f)return null;f.push(b)}},e=void 0;if(d.prototype&&d.prototype.isReactComponent){if(e=new d(c.props,k,g),"function"===typeof d.getDerivedStateFromProps){var v=d.getDerivedStateFromProps.call(null,c.props,e.state);null!=v&&(e.state=p({},e.state,v))}}else if(e=d(c.props,
|
|
30
|
+
k,g),null==e||null==e.render){a=e;ya(a,d);return}e.props=c.props;e.context=k;e.updater=g;g=e.state;void 0===g&&(e.state=g=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof d.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof d.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),f.length){g=f;var t=h;f=null;h=!1;if(t&&
|
|
31
|
+
1===g.length)e.state=g[0];else{v=t?g[0]:e.state;var m=!0;for(t=t?1:0;t<g.length;t++){var n=g[t];n="function"===typeof n?n.call(e,v,c.props,k):n;null!=n&&(m?(m=!1,v=p({},v,n)):p(v,n))}e.state=v}}else f=null;a=e.render();ya(a,d);c=void 0;if("function"===typeof e.getChildContext&&(k=d.childContextTypes,"object"===typeof k)){c=e.getChildContext();for(var y in c)y in k?void 0:r("108",L(d)||"Unknown",y)}c&&(b=p({},b,c))}for(;q.isValidElement(a);){var c=a,k=c.type;if("function"!==typeof k)break;d(c,k)}return{child:a,
|
|
31
32
|
context:b}}
|
|
32
|
-
var Z=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");q.isValidElement(b)?b.type!==
|
|
33
|
-
++this.contextIndex,c=a.type._context,
|
|
34
|
-
1];if(c.childIndex>=c.children.length){var
|
|
35
|
-
|
|
36
|
-
childIndex:0,context:d,footer:""}),""}if("object"===typeof b&&null!==b)switch(b.$$typeof){case H:return a=
|
|
37
|
-
footer:""}),""}
|
|
38
|
-
(1>=l.length?void 0:
|
|
39
|
-
|
|
40
|
-
n=e[
|
|
41
|
-
|
|
42
|
-
">");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
var Z=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");q.isValidElement(b)?b.type!==z?b=[b]:(b=b.props.children,b=q.isValidElement(b)?[b]:X(b)):b=X(b);this.stack=[{type:null,domNamespace:V.html,children:b,childIndex:0,context:ua,footer:""}];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.pushProvider=function(a){var b=
|
|
34
|
+
++this.contextIndex,c=a.type._context,k=c._currentValue;this.contextStack[b]=c;this.contextValueStack[b]=k;c._currentValue=a.props.value};a.prototype.popProvider=function(){var a=this.contextIndex,d=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;d._currentValue=c};a.prototype.read=function(a){if(this.exhausted)return null;oa.currentDispatcher=pa;try{for(var b="";b.length<a;){if(0===this.stack.length){this.exhausted=!0;
|
|
35
|
+
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.type?this.currentSelectValue=null:null!=c.type&&null!=c.type.type&&c.type.type.$$typeof===E&&this.popProvider(c.type)}else{var f=c.children[c.childIndex++];b+=this.render(f,c.context,c.domNamespace)}}return b}finally{oa.currentDispatcher=null}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===
|
|
36
|
+
c)return"";if(this.makeStaticMarkup)return U(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+U(c);this.previousWasTextNode=!0;return U(c)}d=za(a,d);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!q.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;b===x?r("257"):void 0;r("258",b.toString())}a=X(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case B:case G:case C:case z:return a=
|
|
37
|
+
X(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case I:r("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case H:return a=X(b.render(a.props,a.ref)),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case J:return a=[q.createElement(b.type,p({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case E:return b=X(a.props.children),
|
|
38
|
+
c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case F:return b=X(a.props.children(a.type._currentValue)),this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""}),"";case K:r("295")}r("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();c===V.html&&ia(b);sa.hasOwnProperty(b)||(ra.test(b)?void 0:r("65",b),sa[b]=!0);var f=a.props;if("input"===b)f=p({type:void 0},f,{defaultChecked:void 0,
|
|
39
|
+
defaultValue:void 0,value:null!=f.value?f.value:f.defaultValue,checked:null!=f.checked?f.checked:f.defaultChecked});else if("textarea"===b){var h=f.value;if(null==h){h=f.defaultValue;var l=f.children;null!=l&&(null!=h?r("92"):void 0,Array.isArray(l)&&(1>=l.length?void 0:r("93"),l=l[0]),h=""+l);null==h&&(h="")}f=p({},f,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=f.value?f.value:f.defaultValue,f=p({},f,{value:void 0});else if("option"===b){l=this.currentSelectValue;
|
|
40
|
+
var D=ta(f.children);if(null!=l){var A=null!=f.value?f.value+"":D;h=!1;if(Array.isArray(l))for(var g=0;g<l.length;g++){if(""+l[g]===A){h=!0;break}}else h=""+l===A;f=p({selected:void 0,children:void 0},f,{selected:h,children:D})}}if(h=f)ka[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?r("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?r("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?void 0:r("61")),null!=h.style&&"object"!==
|
|
41
|
+
typeof h.style?r("62",""):void 0;h=f;l=this.makeStaticMarkup;D=1===this.stack.length;A="<"+a.type;for(u in h)if(wa.call(h,u)){var e=h[u];if(null!=e){if("style"===u){g=void 0;var v="",t="";for(g in e)if(e.hasOwnProperty(g)){var m=0===g.indexOf("--"),n=e[g];if(null!=n){var y=g;if(Y.hasOwnProperty(y))y=Y[y];else{var Ea=y.replace(ma,"-$1").toLowerCase().replace(na,"-ms-");y=Y[y]=Ea}v+=t+y+":";t=g;m=null==n||"boolean"===typeof n||""===n?"":m||"number"!==typeof n||0===n||W.hasOwnProperty(t)&&W[t]?(""+n).trim():
|
|
42
|
+
n+"px";v+=m;t=";"}}e=v||null}g=null;b:if(m=b,n=h,-1===m.indexOf("-"))m="string"===typeof n.is;else switch(m){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":m=!1;break b;default:m=!0}if(m)xa.hasOwnProperty(u)||(g=u,g=P(g)&&null!=e?g+"="+('"'+U(e)+'"'):"");else{m=u;g=e;e=R.hasOwnProperty(m)?R[m]:null;if(n="style"!==m)n=null!==e?0===e.type:!(2<m.length)||"o"!==m[0]&&"O"!==m[0]||"n"!==
|
|
43
|
+
m[1]&&"N"!==m[1]?!1:!0;n||fa(m,g,e,!1)?g="":null!==e?(m=e.attributeName,e=e.type,g=3===e||4===e&&!0===g?m+'=""':m+"="+('"'+U(g)+'"')):g=P(m)?m+"="+('"'+U(g)+'"'):""}g&&(A+=" "+g)}}l||D&&(A+=' data-reactroot=""');var u=A;h="";ja.hasOwnProperty(b)?u+="/>":(u+=">",h="</"+a.type+">");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=U(l);break a}l=null}null!=l?(f=[],qa[b]&&"\n"===l.charAt(0)&&(u+="\n"),u+=
|
|
44
|
+
l):f=X(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?ia(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:f,childIndex:0,context:d,footer:h});this.previousWasTextNode=!1;return u};return a}();
|
|
45
|
+
function Aa(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}
|
|
46
|
+
var Ba=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var k=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");k=!k||"object"!==typeof k&&"function"!==typeof k?this:k;k.partialRenderer=new Z(d,c);return k}Aa(b,a);b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.emit("error",c)}};return b}(aa.Readable),Ca={renderToString:function(a){return(new Z(a,
|
|
47
|
+
!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new Z(a,!0)).read(Infinity)},renderToNodeStream:function(a){return new Ba(a,!1)},renderToStaticNodeStream:function(a){return new Ba(a,!0)},version:"16.6.0"},Da={default:Ca},Fa=Da&&Ca||Da;module.exports=Fa.default||Fa;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.0
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -180,14 +180,12 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
|
|
|
180
180
|
// nor polyfill, then a plain number is used for performance.
|
|
181
181
|
|
|
182
182
|
var FunctionComponent = 0;
|
|
183
|
-
var
|
|
184
|
-
var ClassComponent = 2;
|
|
185
|
-
var ClassComponentLazy = 3;
|
|
183
|
+
var ClassComponent = 1;
|
|
186
184
|
// Before we know whether it is function or class
|
|
187
|
-
var HostRoot =
|
|
185
|
+
var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
|
|
188
186
|
// A subtree. Could be an entry point to a different renderer.
|
|
189
|
-
var HostComponent =
|
|
190
|
-
var HostText =
|
|
187
|
+
var HostComponent = 5;
|
|
188
|
+
var HostText = 6;
|
|
191
189
|
|
|
192
190
|
// Don't change these two values. They're used by React Dev Tools.
|
|
193
191
|
var NoEffect = /* */0;
|
|
@@ -931,7 +929,7 @@ function findAllInRenderedFiberTreeInternal(fiber, test) {
|
|
|
931
929
|
var node = currentParent;
|
|
932
930
|
var ret = [];
|
|
933
931
|
while (true) {
|
|
934
|
-
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag ===
|
|
932
|
+
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent) {
|
|
935
933
|
var publicInst = node.stateNode;
|
|
936
934
|
if (test(publicInst)) {
|
|
937
935
|
ret.push(publicInst);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.0
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
'use strict';var g=require("object-assign"),l=require("react"),m=require("react-dom");function n(a,b,c,e,d,k,f,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[c,e,d,k,f,h],M=0;a=Error(b.replace(/%s/g,function(){return L[M++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
11
|
function p(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=0;e<b;e++)c+="&args[]="+encodeURIComponent(arguments[e+1]);n(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}
|
|
12
|
-
function q(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return
|
|
12
|
+
function q(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function r(a){2!==q(a)?p("188"):void 0}
|
|
13
13
|
function t(a){var b=a.alternate;if(!b)return b=q(a),3===b?p("188"):void 0,1===b?null:a;for(var c=a,e=b;;){var d=c.return,k=d?d.alternate:null;if(!d||!k)break;if(d.child===k.child){for(var f=d.child;f;){if(f===c)return r(d),a;if(f===e)return r(d),b;f=f.sibling}p("188")}if(c.return!==e.return)c=d,e=k;else{f=!1;for(var h=d.child;h;){if(h===c){f=!0;c=d;e=k;break}if(h===e){f=!0;e=d;c=k;break}h=h.sibling}if(!f){for(h=k.child;h;){if(h===c){f=!0;c=k;e=d;break}if(h===e){f=!0;e=k;c=d;break}h=h.sibling}f?void 0:
|
|
14
|
-
p("189")}}c.alternate!==e?p("190"):void 0}
|
|
14
|
+
p("189")}}c.alternate!==e?p("190"):void 0}3!==c.tag?p("188"):void 0;return c.stateNode.current===c?a:b}function u(){return!0}function v(){return!1}function w(a,b,c,e){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?u:v;this.isPropagationStopped=v;return this}
|
|
15
15
|
g(w.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=u)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=u)},persist:function(){this.isPersistent=u},isPersistent:v,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=
|
|
16
16
|
null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=v;this._dispatchInstances=this._dispatchListeners=null}});w.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
|
|
17
17
|
w.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;g(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=g({},e.Interface,a);c.extend=e.extend;x(c);return c};x(w);function y(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}function z(a){a instanceof this?void 0:p("279");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}
|
|
18
18
|
function x(a){a.eventPool=[];a.getPooled=y;a.release=z}var A=!("undefined"===typeof window||!window.document||!window.document.createElement);function B(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var C={animationend:B("Animation","AnimationEnd"),animationiteration:B("Animation","AnimationIteration"),animationstart:B("Animation","AnimationStart"),transitionend:B("Transition","TransitionEnd")},D={},E={};
|
|
19
19
|
A&&(E=document.createElement("div").style,"AnimationEvent"in window||(delete C.animationend.animation,delete C.animationiteration.animation,delete C.animationstart.animation),"TransitionEvent"in window||delete C.transitionend.transition);function F(a){if(D[a])return D[a];if(!C[a])return a;var b=C[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in E)return D[a]=b[c];return a}
|
|
20
20
|
var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=m.findDOMNode,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=N[0],P=N[4],Q=N[5],R=N[6],S=N[7],aa=N[8],T=N[9],ba=N[10];function U(){}
|
|
21
|
-
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(
|
|
21
|
+
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}
|
|
22
22
|
function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;p("286",b,a)}}
|
|
23
23
|
var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
|
|
24
24
|
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?ca(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)||(void 0===b?p("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.0
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-unstable-native-dependencies.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -323,7 +323,7 @@ function hasDispatches(event) {
|
|
|
323
323
|
// Before we know whether it is function or class
|
|
324
324
|
// Root of a host tree. Could be nested inside another node.
|
|
325
325
|
// A subtree. Could be an entry point to a different renderer.
|
|
326
|
-
var HostComponent =
|
|
326
|
+
var HostComponent = 5;
|
|
327
327
|
|
|
328
328
|
function getParent(inst) {
|
|
329
329
|
do {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.0
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-dom-unstable-native-dependencies.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
'use strict';var k=require("react-dom"),l=require("object-assign");function aa(a,b,c,f,e,d,g,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[c,f,e,d,g,h],ba=0;a=Error(b.replace(/%s/g,function(){return u[ba++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
11
|
function m(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)c+="&args[]="+encodeURIComponent(arguments[f+1]);aa(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}var n=null,p=null,q=null;
|
|
12
|
-
function r(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?m("103"):void 0;a.currentTarget=b?q(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&
|
|
12
|
+
function r(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?m("103"):void 0;a.currentTarget=b?q(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function v(a,b,c){for(var f=[];a;)f.push(a),a=t(a);for(a=f.length;0<a--;)b(f[a],"captured",c);for(a=0;a<f.length;a++)b(f[a],"bubbled",c)}
|
|
13
13
|
function w(a,b){null==b?m("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function x(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}
|
|
14
14
|
function y(a,b){var c=a.stateNode;if(!c)return null;var f=n(c);if(!f)return null;c=f[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(f=!f.disabled)||(a=a.type,f=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!f;break a;default:a=!1}if(a)return null;c&&"function"!==typeof c?m("231",b,typeof c):void 0;
|
|
15
15
|
return c}function z(a,b,c){if(b=y(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=w(c._dispatchListeners,b),c._dispatchInstances=w(c._dispatchInstances,a)}function ca(a){a&&a.dispatchConfig.phasedRegistrationNames&&v(a._targetInst,z,a)}function da(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;v(b,z,a)}}
|