react-is 16.5.2 → 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/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This package allows you to test arbitrary values and see if they're a particular
|
|
|
9
9
|
yarn add react-is
|
|
10
10
|
|
|
11
11
|
# NPM
|
|
12
|
-
npm install react-is
|
|
12
|
+
npm install react-is
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
@@ -44,14 +44,14 @@ ReactIs.isValidElementType(React.createFactory("div")); // true
|
|
|
44
44
|
|
|
45
45
|
### Determining an Element's Type
|
|
46
46
|
|
|
47
|
-
####
|
|
47
|
+
#### ConcurrentMode
|
|
48
48
|
|
|
49
49
|
```js
|
|
50
50
|
import React from "react";
|
|
51
51
|
import * as ReactIs from 'react-is';
|
|
52
52
|
|
|
53
|
-
ReactIs.
|
|
54
|
-
ReactIs.typeOf(<React.
|
|
53
|
+
ReactIs.isConcurrentMode(<React.unstable_ConcurrentMode />); // true
|
|
54
|
+
ReactIs.typeOf(<React.unstable_ConcurrentMode />) === ReactIs.ConcurrentMode; // true
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
#### Context
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -28,16 +28,71 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
|
|
|
28
28
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
29
29
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
30
30
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
31
|
-
var
|
|
31
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
32
32
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
33
|
-
var
|
|
33
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
34
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
35
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
34
36
|
|
|
35
37
|
function isValidElementType(type) {
|
|
36
38
|
return typeof type === 'string' || typeof type === 'function' ||
|
|
37
39
|
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
38
|
-
type === REACT_FRAGMENT_TYPE || type ===
|
|
40
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Forked from fbjs/warning:
|
|
45
|
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
46
|
+
*
|
|
47
|
+
* Only change is we use console.warn instead of console.error,
|
|
48
|
+
* and do nothing when 'console' is not supported.
|
|
49
|
+
* This really simplifies the code.
|
|
50
|
+
* ---
|
|
51
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
52
|
+
* This can be used to log issues in development environments in critical
|
|
53
|
+
* paths. Removing the logging code for production environments will keep the
|
|
54
|
+
* same logic and follow the same code paths.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
var lowPriorityWarning = function () {};
|
|
58
|
+
|
|
59
|
+
{
|
|
60
|
+
var printWarning = function (format) {
|
|
61
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
62
|
+
args[_key - 1] = arguments[_key];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var argIndex = 0;
|
|
66
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
67
|
+
return args[argIndex++];
|
|
68
|
+
});
|
|
69
|
+
if (typeof console !== 'undefined') {
|
|
70
|
+
console.warn(message);
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
// --- Welcome to debugging React ---
|
|
74
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
75
|
+
// to find the callsite that caused this warning to fire.
|
|
76
|
+
throw new Error(message);
|
|
77
|
+
} catch (x) {}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
lowPriorityWarning = function (condition, format) {
|
|
81
|
+
if (format === undefined) {
|
|
82
|
+
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
83
|
+
}
|
|
84
|
+
if (!condition) {
|
|
85
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
86
|
+
args[_key2 - 2] = arguments[_key2];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
95
|
+
|
|
41
96
|
function typeOf(object) {
|
|
42
97
|
if (typeof object === 'object' && object !== null) {
|
|
43
98
|
var $$typeof = object.$$typeof;
|
|
@@ -47,7 +102,7 @@ function typeOf(object) {
|
|
|
47
102
|
var type = object.type;
|
|
48
103
|
|
|
49
104
|
switch (type) {
|
|
50
|
-
case
|
|
105
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
51
106
|
case REACT_FRAGMENT_TYPE:
|
|
52
107
|
case REACT_PROFILER_TYPE:
|
|
53
108
|
case REACT_STRICT_MODE_TYPE:
|
|
@@ -72,7 +127,9 @@ function typeOf(object) {
|
|
|
72
127
|
return undefined;
|
|
73
128
|
}
|
|
74
129
|
|
|
75
|
-
|
|
130
|
+
// AsyncMode alias is deprecated along with isAsyncMode
|
|
131
|
+
var AsyncMode = REACT_CONCURRENT_MODE_TYPE;
|
|
132
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
76
133
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
77
134
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
78
135
|
var Element = REACT_ELEMENT_TYPE;
|
|
@@ -82,8 +139,20 @@ var Profiler = REACT_PROFILER_TYPE;
|
|
|
82
139
|
var Portal = REACT_PORTAL_TYPE;
|
|
83
140
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
84
141
|
|
|
142
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
143
|
+
|
|
144
|
+
// AsyncMode should be deprecated
|
|
85
145
|
function isAsyncMode(object) {
|
|
86
|
-
|
|
146
|
+
{
|
|
147
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
148
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
149
|
+
lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return isConcurrentMode(object);
|
|
153
|
+
}
|
|
154
|
+
function isConcurrentMode(object) {
|
|
155
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
87
156
|
}
|
|
88
157
|
function isContextConsumer(object) {
|
|
89
158
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
@@ -112,6 +181,7 @@ function isStrictMode(object) {
|
|
|
112
181
|
|
|
113
182
|
exports.typeOf = typeOf;
|
|
114
183
|
exports.AsyncMode = AsyncMode;
|
|
184
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
115
185
|
exports.ContextConsumer = ContextConsumer;
|
|
116
186
|
exports.ContextProvider = ContextProvider;
|
|
117
187
|
exports.Element = Element;
|
|
@@ -122,6 +192,7 @@ exports.Portal = Portal;
|
|
|
122
192
|
exports.StrictMode = StrictMode;
|
|
123
193
|
exports.isValidElementType = isValidElementType;
|
|
124
194
|
exports.isAsyncMode = isAsyncMode;
|
|
195
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
125
196
|
exports.isContextConsumer = isContextConsumer;
|
|
126
197
|
exports.isContextProvider = isContextProvider;
|
|
127
198
|
exports.isElement = isElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});
|
|
11
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.
|
|
12
|
-
function
|
|
13
|
-
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===l||a===g||a===f||a===n||"object"===typeof a&&null!==a&&(
|
|
14
|
-
exports.isForwardRef=function(a){return
|
|
11
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.concurrent_mode"):60111,m=b?Symbol.for("react.forward_ref"):60112,n=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.memo"):60115,r=b?Symbol.for("react.lazy"):
|
|
12
|
+
60116;function t(a){if("object"===typeof a&&null!==a){var p=a.$$typeof;switch(p){case c:switch(a=a.type,a){case l:case e:case g:case f:return a;default:switch(a=a&&a.$$typeof,a){case k:case m:case h:return a;default:return p}}case d:return p}}}function u(a){return t(a)===l}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=l;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=m;exports.Fragment=e;exports.Profiler=g;exports.Portal=d;
|
|
13
|
+
exports.StrictMode=f;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===l||a===g||a===f||a===n||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===m)};exports.isAsyncMode=function(a){return u(a)};exports.isConcurrentMode=u;exports.isContextConsumer=function(a){return t(a)===k};exports.isContextProvider=function(a){return t(a)===h};
|
|
14
|
+
exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===m};exports.isFragment=function(a){return t(a)===e};exports.isProfiler=function(a){return t(a)===g};exports.isPortal=function(a){return t(a)===d};exports.isStrictMode=function(a){return t(a)===f};
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -26,16 +26,71 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
|
|
|
26
26
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
27
27
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
28
28
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
29
|
-
var
|
|
29
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
30
30
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
31
|
-
var
|
|
31
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
32
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
33
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
32
34
|
|
|
33
35
|
function isValidElementType(type) {
|
|
34
36
|
return typeof type === 'string' || typeof type === 'function' ||
|
|
35
37
|
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
36
|
-
type === REACT_FRAGMENT_TYPE || type ===
|
|
38
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Forked from fbjs/warning:
|
|
43
|
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
44
|
+
*
|
|
45
|
+
* Only change is we use console.warn instead of console.error,
|
|
46
|
+
* and do nothing when 'console' is not supported.
|
|
47
|
+
* This really simplifies the code.
|
|
48
|
+
* ---
|
|
49
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
50
|
+
* This can be used to log issues in development environments in critical
|
|
51
|
+
* paths. Removing the logging code for production environments will keep the
|
|
52
|
+
* same logic and follow the same code paths.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
var lowPriorityWarning = function () {};
|
|
56
|
+
|
|
57
|
+
{
|
|
58
|
+
var printWarning = function (format) {
|
|
59
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
60
|
+
args[_key - 1] = arguments[_key];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var argIndex = 0;
|
|
64
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
65
|
+
return args[argIndex++];
|
|
66
|
+
});
|
|
67
|
+
if (typeof console !== 'undefined') {
|
|
68
|
+
console.warn(message);
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
// --- Welcome to debugging React ---
|
|
72
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
73
|
+
// to find the callsite that caused this warning to fire.
|
|
74
|
+
throw new Error(message);
|
|
75
|
+
} catch (x) {}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
lowPriorityWarning = function (condition, format) {
|
|
79
|
+
if (format === undefined) {
|
|
80
|
+
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
81
|
+
}
|
|
82
|
+
if (!condition) {
|
|
83
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
84
|
+
args[_key2 - 2] = arguments[_key2];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
93
|
+
|
|
39
94
|
function typeOf(object) {
|
|
40
95
|
if (typeof object === 'object' && object !== null) {
|
|
41
96
|
var $$typeof = object.$$typeof;
|
|
@@ -45,7 +100,7 @@ function typeOf(object) {
|
|
|
45
100
|
var type = object.type;
|
|
46
101
|
|
|
47
102
|
switch (type) {
|
|
48
|
-
case
|
|
103
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
49
104
|
case REACT_FRAGMENT_TYPE:
|
|
50
105
|
case REACT_PROFILER_TYPE:
|
|
51
106
|
case REACT_STRICT_MODE_TYPE:
|
|
@@ -70,7 +125,9 @@ function typeOf(object) {
|
|
|
70
125
|
return undefined;
|
|
71
126
|
}
|
|
72
127
|
|
|
73
|
-
|
|
128
|
+
// AsyncMode alias is deprecated along with isAsyncMode
|
|
129
|
+
var AsyncMode = REACT_CONCURRENT_MODE_TYPE;
|
|
130
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
74
131
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
75
132
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
76
133
|
var Element = REACT_ELEMENT_TYPE;
|
|
@@ -80,8 +137,20 @@ var Profiler = REACT_PROFILER_TYPE;
|
|
|
80
137
|
var Portal = REACT_PORTAL_TYPE;
|
|
81
138
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
82
139
|
|
|
140
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
141
|
+
|
|
142
|
+
// AsyncMode should be deprecated
|
|
83
143
|
function isAsyncMode(object) {
|
|
84
|
-
|
|
144
|
+
{
|
|
145
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
146
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
147
|
+
lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return isConcurrentMode(object);
|
|
151
|
+
}
|
|
152
|
+
function isConcurrentMode(object) {
|
|
153
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
85
154
|
}
|
|
86
155
|
function isContextConsumer(object) {
|
|
87
156
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
@@ -110,6 +179,7 @@ function isStrictMode(object) {
|
|
|
110
179
|
|
|
111
180
|
exports.typeOf = typeOf;
|
|
112
181
|
exports.AsyncMode = AsyncMode;
|
|
182
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
113
183
|
exports.ContextConsumer = ContextConsumer;
|
|
114
184
|
exports.ContextProvider = ContextProvider;
|
|
115
185
|
exports.Element = Element;
|
|
@@ -120,6 +190,7 @@ exports.Portal = Portal;
|
|
|
120
190
|
exports.StrictMode = StrictMode;
|
|
121
191
|
exports.isValidElementType = isValidElementType;
|
|
122
192
|
exports.isAsyncMode = isAsyncMode;
|
|
193
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
123
194
|
exports.isContextConsumer = isContextConsumer;
|
|
124
195
|
exports.isContextProvider = isContextProvider;
|
|
125
196
|
exports.isElement = isElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.6.0
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,7 +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
|
-
'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case n:switch(a=a.type,a){case e:case f:case g:case h:return a;default:switch(a=a&&a.$$typeof,a){case k:case l:case m:return a;default:return b}}case p:return b}}}var d="function"===typeof Symbol&&Symbol.for,
|
|
10
|
-
60103,p=d?Symbol.for("react.portal"):60106,f=d?Symbol.for("react.fragment"):60107,h=d?Symbol.for("react.strict_mode"):60108,g=d?Symbol.for("react.profiler"):60114,m=d?Symbol.for("react.provider"):60109,k=d?Symbol.for("react.context"):60110,e=d?Symbol.for("react.
|
|
11
|
-
h;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===
|
|
12
|
-
function(a){return c(a)===f};b.isProfiler=function(a){return c(a)===g};b.isPortal=function(a){return c(a)===p};b.isStrictMode=function(a){return c(a)===h};Object.defineProperty(b,"__esModule",{value:!0})});
|
|
9
|
+
'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case n:switch(a=a.type,a){case e:case f:case g:case h:return a;default:switch(a=a&&a.$$typeof,a){case k:case l:case m:return a;default:return b}}case p:return b}}}function q(a){return c(a)===e}var d="function"===typeof Symbol&&Symbol.for,
|
|
10
|
+
n=d?Symbol.for("react.element"):60103,p=d?Symbol.for("react.portal"):60106,f=d?Symbol.for("react.fragment"):60107,h=d?Symbol.for("react.strict_mode"):60108,g=d?Symbol.for("react.profiler"):60114,m=d?Symbol.for("react.provider"):60109,k=d?Symbol.for("react.context"):60110,e=d?Symbol.for("react.concurrent_mode"):60111,l=d?Symbol.for("react.forward_ref"):60112,r=d?Symbol.for("react.suspense"):60113,t=d?Symbol.for("react.memo"):60115,u=d?Symbol.for("react.lazy"):60116;b.typeOf=c;b.AsyncMode=e;b.ConcurrentMode=
|
|
11
|
+
e;b.ContextConsumer=k;b.ContextProvider=m;b.Element=n;b.ForwardRef=l;b.Fragment=f;b.Profiler=g;b.Portal=p;b.StrictMode=h;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===r||"object"===typeof a&&null!==a&&(a.$$typeof===u||a.$$typeof===t||a.$$typeof===m||a.$$typeof===k||a.$$typeof===l)};b.isAsyncMode=function(a){return q(a)};b.isConcurrentMode=q;b.isContextConsumer=function(a){return c(a)===k};b.isContextProvider=function(a){return c(a)===
|
|
12
|
+
m};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===n};b.isForwardRef=function(a){return c(a)===l};b.isFragment=function(a){return c(a)===f};b.isProfiler=function(a){return c(a)===g};b.isPortal=function(a){return c(a)===p};b.isStrictMode=function(a){return c(a)===h};Object.defineProperty(b,"__esModule",{value:!0})});
|