react 0.0.0-ea155e226 → 0.0.0-experimental-af1a4cbf7
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-jsx-dev-runtime.development.js +1 -2
- package/cjs/react-jsx-runtime.development.js +1 -2
- package/cjs/react-unstable-shared-subset.development.js +2171 -1
- package/cjs/react-unstable-shared-subset.production.min.js +15 -1
- package/cjs/react.development.js +79 -14
- package/cjs/react.production.min.js +12 -9
- package/package.json +1 -1
- package/umd/react.development.js +79 -14
- package/umd/react.production.min.js +23 -21
- package/umd/react.profiling.min.js +28 -26
|
@@ -6,4 +6,18 @@
|
|
|
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';
|
|
9
|
+
'use strict';var l=require("object-assign"),n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60112;exports.Suspense=60113;exports.unstable_SuspenseList=60120;var r=60115,t=60116;exports.unstable_DebugTracingMode=60129;
|
|
10
|
+
if("function"===typeof Symbol&&Symbol.for){var u=Symbol.for;n=u("react.element");p=u("react.portal");exports.Fragment=u("react.fragment");exports.StrictMode=u("react.strict_mode");exports.Profiler=u("react.profiler");q=u("react.forward_ref");exports.Suspense=u("react.suspense");exports.unstable_SuspenseList=u("react.suspense_list");r=u("react.memo");t=u("react.lazy");exports.unstable_DebugTracingMode=u("react.debug_trace_mode")}var v="function"===typeof Symbol&&Symbol.iterator;
|
|
11
|
+
function w(a){if(null===a||"object"!==typeof a)return null;a=v&&a[v]||a["@@iterator"];return"function"===typeof a?a:null}function x(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=1;e<arguments.length;e++)b+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
12
|
+
var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z={};function A(a,b,e){this.props=a;this.context=b;this.refs=z;this.updater=e||y}A.prototype.isReactComponent={};A.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(x(85));this.updater.enqueueSetState(this,a,b,"setState")};A.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
|
|
13
|
+
function B(){}B.prototype=A.prototype;function C(a,b,e){this.props=a;this.context=b;this.refs=z;this.updater=e||y}var D=C.prototype=new B;D.constructor=C;l(D,A.prototype);D.isPureReactComponent=!0;var E=Array.isArray,F=Object.prototype.hasOwnProperty,G={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function I(a,b){return{$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function J(a){return"object"===typeof a&&null!==a&&a.$$typeof===n}
|
|
14
|
+
function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var K=/\/+/g;function L(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
15
|
+
function M(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n:case p:h=!0}}if(h)return h=a,c=c(h),a=""===d?"."+L(h,0):d,E(c)?(e="",null!=a&&(e=a.replace(K,"$&/")+"/"),M(c,b,e,"",function(a){return a})):null!=c&&(J(c)&&(c=I(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(K,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(E(a))for(var g=0;g<a.length;g++){k=
|
|
16
|
+
a[g];var f=d+L(k,g);h+=M(k,b,e,f,c)}else if(f=w(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+L(k,g++),h+=M(k,b,e,f,c);else if("object"===k)throw b=""+a,Error(x(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function N(a,b,e){if(null==a)return a;var d=[],c=0;M(a,d,"","",function(a){return b.call(e,a,c++)});return d}
|
|
17
|
+
function O(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var P={current:null},Q={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:l};
|
|
18
|
+
exports.Children={map:N,forEach:function(a,b,e){N(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;N(a,function(){b++});return b},toArray:function(a){return N(a,function(a){return a})||[]},only:function(a){if(!J(a))throw Error(x(143));return a}};exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q;
|
|
19
|
+
exports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(x(267,a));var d=l({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)F.call(b,f)&&!H.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:n,type:a.type,
|
|
20
|
+
key:c,ref:k,props:d,_owner:h}};exports.createElement=function(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)F.call(b,d)&&!H.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:n,type:a,key:k,ref:h,props:c,_owner:G.current}};exports.createRef=function(){return{current:null}};
|
|
21
|
+
exports.forwardRef=function(a){return{$$typeof:q,render:a}};exports.isValidElement=J;exports.lazy=function(a){return{$$typeof:t,_payload:{_status:-1,_result:a},_init:O}};exports.memo=function(a,b){return{$$typeof:r,type:a,compare:void 0===b?null:b}};exports.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};exports.unstable_getCacheForType=function(a){return P.current.getCacheForType(a)};
|
|
22
|
+
exports.unstable_useDeferredValue=function(a){return P.current.useDeferredValue(a)};exports.unstable_useMutableSource=function(a,b,e){return P.current.useMutableSource(a,b,e)};exports.unstable_useOpaqueIdentifier=function(){return P.current.useOpaqueIdentifier()};exports.useCallback=function(a,b){return P.current.useCallback(a,b)};exports.useContext=function(a){return P.current.useContext(a)};exports.useDebugValue=function(){};exports.useMemo=function(a,b){return P.current.useMemo(a,b)};
|
|
23
|
+
exports.version="17.0.3-experimental-af1a4cbf7";
|
package/cjs/react.development.js
CHANGED
|
@@ -15,7 +15,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
15
15
|
|
|
16
16
|
var _assign = require('object-assign');
|
|
17
17
|
|
|
18
|
-
var ReactVersion = '17.0.3-
|
|
18
|
+
var ReactVersion = '17.0.3-experimental-af1a4cbf7';
|
|
19
19
|
|
|
20
20
|
// ATTENTION
|
|
21
21
|
// When adding new symbols to this file,
|
|
@@ -31,15 +31,15 @@ var REACT_PROVIDER_TYPE = 0xeacd;
|
|
|
31
31
|
var REACT_CONTEXT_TYPE = 0xeace;
|
|
32
32
|
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
33
33
|
exports.Suspense = 0xead1;
|
|
34
|
-
|
|
34
|
+
exports.unstable_SuspenseList = 0xead8;
|
|
35
35
|
var REACT_MEMO_TYPE = 0xead3;
|
|
36
36
|
var REACT_LAZY_TYPE = 0xead4;
|
|
37
37
|
var REACT_SCOPE_TYPE = 0xead7;
|
|
38
38
|
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
39
|
-
|
|
39
|
+
exports.unstable_DebugTracingMode = 0xeae1;
|
|
40
40
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
exports.unstable_LegacyHidden = 0xeae3;
|
|
42
|
+
exports.unstable_Cache = 0xeae4;
|
|
43
43
|
|
|
44
44
|
if (typeof Symbol === 'function' && Symbol.for) {
|
|
45
45
|
var symbolFor = Symbol.for;
|
|
@@ -52,15 +52,15 @@ if (typeof Symbol === 'function' && Symbol.for) {
|
|
|
52
52
|
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
53
53
|
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
54
54
|
exports.Suspense = symbolFor('react.suspense');
|
|
55
|
-
|
|
55
|
+
exports.unstable_SuspenseList = symbolFor('react.suspense_list');
|
|
56
56
|
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
57
57
|
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
58
58
|
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
59
59
|
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
60
|
-
|
|
60
|
+
exports.unstable_DebugTracingMode = symbolFor('react.debug_trace_mode');
|
|
61
61
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
exports.unstable_LegacyHidden = symbolFor('react.legacy_hidden');
|
|
63
|
+
exports.unstable_Cache = symbolFor('react.cache');
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
@@ -496,10 +496,10 @@ function getComponentNameFromType(type) {
|
|
|
496
496
|
case exports.Suspense:
|
|
497
497
|
return 'Suspense';
|
|
498
498
|
|
|
499
|
-
case
|
|
499
|
+
case exports.unstable_SuspenseList:
|
|
500
500
|
return 'SuspenseList';
|
|
501
501
|
|
|
502
|
-
case
|
|
502
|
+
case exports.unstable_Cache:
|
|
503
503
|
return 'Cache';
|
|
504
504
|
}
|
|
505
505
|
|
|
@@ -1406,7 +1406,6 @@ function forwardRef(render) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1409
|
-
var enableCache = false; // Only used in www builds.
|
|
1410
1409
|
|
|
1411
1410
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1412
1411
|
|
|
@@ -1422,7 +1421,7 @@ function isValidElementType(type) {
|
|
|
1422
1421
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1423
1422
|
|
|
1424
1423
|
|
|
1425
|
-
if (type === exports.Fragment || type === exports.Profiler || type ===
|
|
1424
|
+
if (type === exports.Fragment || type === exports.Profiler || type === exports.unstable_DebugTracingMode || type === exports.StrictMode || type === exports.Suspense || type === exports.unstable_SuspenseList || type === exports.unstable_LegacyHidden || enableScopeAPI || type === exports.unstable_Cache) {
|
|
1426
1425
|
return true;
|
|
1427
1426
|
}
|
|
1428
1427
|
|
|
@@ -1487,6 +1486,12 @@ function resolveDispatcher() {
|
|
|
1487
1486
|
|
|
1488
1487
|
return dispatcher;
|
|
1489
1488
|
}
|
|
1489
|
+
|
|
1490
|
+
function getCacheForType(resourceType) {
|
|
1491
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1492
|
+
|
|
1493
|
+
return dispatcher.getCacheForType(resourceType);
|
|
1494
|
+
}
|
|
1490
1495
|
function useContext(Context) {
|
|
1491
1496
|
var dispatcher = resolveDispatcher();
|
|
1492
1497
|
|
|
@@ -1544,6 +1549,27 @@ function useDebugValue(value, formatterFn) {
|
|
|
1544
1549
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1545
1550
|
}
|
|
1546
1551
|
}
|
|
1552
|
+
function useTransition() {
|
|
1553
|
+
var dispatcher = resolveDispatcher();
|
|
1554
|
+
return dispatcher.useTransition();
|
|
1555
|
+
}
|
|
1556
|
+
function useDeferredValue(value) {
|
|
1557
|
+
var dispatcher = resolveDispatcher();
|
|
1558
|
+
return dispatcher.useDeferredValue(value);
|
|
1559
|
+
}
|
|
1560
|
+
function useOpaqueIdentifier() {
|
|
1561
|
+
var dispatcher = resolveDispatcher();
|
|
1562
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1563
|
+
}
|
|
1564
|
+
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1565
|
+
var dispatcher = resolveDispatcher();
|
|
1566
|
+
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
1567
|
+
}
|
|
1568
|
+
function useCacheRefresh() {
|
|
1569
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1570
|
+
|
|
1571
|
+
return dispatcher.useCacheRefresh();
|
|
1572
|
+
}
|
|
1547
1573
|
|
|
1548
1574
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
1549
1575
|
// replaying on render function. This currently only patches the object
|
|
@@ -1848,7 +1874,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
|
1848
1874
|
case exports.Suspense:
|
|
1849
1875
|
return describeBuiltInComponentFrame('Suspense');
|
|
1850
1876
|
|
|
1851
|
-
case
|
|
1877
|
+
case exports.unstable_SuspenseList:
|
|
1852
1878
|
return describeBuiltInComponentFrame('SuspenseList');
|
|
1853
1879
|
}
|
|
1854
1880
|
|
|
@@ -2281,6 +2307,37 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
2281
2307
|
return newElement;
|
|
2282
2308
|
}
|
|
2283
2309
|
|
|
2310
|
+
function createMutableSource(source, getVersion) {
|
|
2311
|
+
var mutableSource = {
|
|
2312
|
+
_getVersion: getVersion,
|
|
2313
|
+
_source: source,
|
|
2314
|
+
_workInProgressVersionPrimary: null,
|
|
2315
|
+
_workInProgressVersionSecondary: null
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
{
|
|
2319
|
+
mutableSource._currentPrimaryRenderer = null;
|
|
2320
|
+
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
|
2321
|
+
// See https://github.com/facebook/react/issues/19948
|
|
2322
|
+
|
|
2323
|
+
mutableSource._currentlyRenderingFiber = null;
|
|
2324
|
+
mutableSource._initialVersionAsOfFirstRender = null;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
return mutableSource;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
function startTransition(scope) {
|
|
2331
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
2332
|
+
ReactCurrentBatchConfig.transition = 1;
|
|
2333
|
+
|
|
2334
|
+
try {
|
|
2335
|
+
scope();
|
|
2336
|
+
} finally {
|
|
2337
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2284
2341
|
var createElement$1 = createElementWithValidation ;
|
|
2285
2342
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
2286
2343
|
var createFactory = createFactoryWithValidation ;
|
|
@@ -2305,6 +2362,14 @@ exports.forwardRef = forwardRef;
|
|
|
2305
2362
|
exports.isValidElement = isValidElement;
|
|
2306
2363
|
exports.lazy = lazy;
|
|
2307
2364
|
exports.memo = memo;
|
|
2365
|
+
exports.unstable_createMutableSource = createMutableSource;
|
|
2366
|
+
exports.unstable_getCacheForType = getCacheForType;
|
|
2367
|
+
exports.unstable_startTransition = startTransition;
|
|
2368
|
+
exports.unstable_useCacheRefresh = useCacheRefresh;
|
|
2369
|
+
exports.unstable_useDeferredValue = useDeferredValue;
|
|
2370
|
+
exports.unstable_useMutableSource = useMutableSource;
|
|
2371
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
2372
|
+
exports.unstable_useTransition = useTransition;
|
|
2308
2373
|
exports.useCallback = useCallback;
|
|
2309
2374
|
exports.useContext = useContext;
|
|
2310
2375
|
exports.useDebugValue = useDebugValue;
|
|
@@ -6,18 +6,21 @@
|
|
|
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';var l=require("object-assign"),m=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;
|
|
10
|
-
if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;m=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy")
|
|
11
|
-
function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return"function"===typeof a?a:null}
|
|
12
|
-
var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};
|
|
13
|
-
function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}var F=E.prototype=new D;
|
|
9
|
+
'use strict';var l=require("object-assign"),m=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;exports.unstable_SuspenseList=60120;var u=60115,v=60116;exports.unstable_DebugTracingMode=60129;exports.unstable_LegacyHidden=60131;exports.unstable_Cache=60132;
|
|
10
|
+
if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;m=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");exports.unstable_SuspenseList=w("react.suspense_list");u=w("react.memo");v=w("react.lazy");exports.unstable_DebugTracingMode=w("react.debug_trace_mode");exports.unstable_LegacyHidden=
|
|
11
|
+
w("react.legacy_hidden");exports.unstable_Cache=w("react.cache")}var x="function"===typeof Symbol&&Symbol.iterator;function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return"function"===typeof a?a:null}
|
|
12
|
+
function z(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};
|
|
13
|
+
function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,"setState")};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}var F=E.prototype=new D;
|
|
14
|
+
F.constructor=E;l(F,C.prototype);F.isPureReactComponent=!0;var G=Array.isArray,H=Object.prototype.hasOwnProperty,I={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
15
|
function K(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,e)&&!J.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),n=0;n<g;n++)f[n]=arguments[n+2];d.children=f}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return{$$typeof:m,type:a,key:k,ref:h,props:d,_owner:I.current}}
|
|
15
16
|
function L(a,b){return{$$typeof:m,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===m}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var N=/\/+/g;function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
16
17
|
function P(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case m:case p:h=!0}}if(h)return h=a,d=d(h),a=""===e?"."+O(h,0):e,G(d)?(c="",null!=a&&(c=a.replace(N,"$&/")+"/"),P(d,b,c,"",function(a){return a})):null!=d&&(M(d)&&(d=L(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(N,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(G(a))for(var g=0;g<a.length;g++){k=
|
|
17
18
|
a[g];var f=e+O(k,g);h+=P(k,b,c,f,d)}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+O(k,g++),h+=P(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function Q(a,b,c){if(null==a)return a;var e=[],d=0;P(a,e,"","",function(a){return b.call(c,a,d++)});return e}
|
|
18
|
-
function R(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var S={current:null},T={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:
|
|
19
|
-
exports.Children={map:Q,forEach:function(a,b,c){Q(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;Q(a,function(){b++});return b},toArray:function(a){return Q(a,function(a){return a})||[]},only:function(a){if(!M(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=
|
|
19
|
+
function R(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var S={current:null},T={transition:0},U={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:T,ReactCurrentOwner:I,IsSomeRendererActing:{current:!1},assign:l};
|
|
20
|
+
exports.Children={map:Q,forEach:function(a,b,c){Q(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;Q(a,function(){b++});return b},toArray:function(a){return Q(a,function(a){return a})||[]},only:function(a){if(!M(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U;
|
|
20
21
|
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=l({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=I.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!J.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var n=0;n<f;n++)g[n]=arguments[n+2];e.children=g}return{$$typeof:m,type:a.type,
|
|
21
22
|
key:d,ref:k,props:e,_owner:h}};exports.createContext=function(a){a={$$typeof:r,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=K;exports.createFactory=function(a){var b=K.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};exports.isValidElement=M;
|
|
22
|
-
exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:R}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.
|
|
23
|
-
exports.
|
|
23
|
+
exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:R}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};exports.unstable_getCacheForType=function(a){return S.current.getCacheForType(a)};
|
|
24
|
+
exports.unstable_startTransition=function(a){var b=T.transition;T.transition=1;try{a()}finally{T.transition=b}};exports.unstable_useCacheRefresh=function(){return S.current.useCacheRefresh()};exports.unstable_useDeferredValue=function(a){return S.current.useDeferredValue(a)};exports.unstable_useMutableSource=function(a,b,c){return S.current.useMutableSource(a,b,c)};exports.unstable_useOpaqueIdentifier=function(){return S.current.useOpaqueIdentifier()};exports.unstable_useTransition=function(){return S.current.useTransition()};
|
|
25
|
+
exports.useCallback=function(a,b){return S.current.useCallback(a,b)};exports.useContext=function(a){return S.current.useContext(a)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return S.current.useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return S.current.useImperativeHandle(a,b,c)};exports.useLayoutEffect=function(a,b){return S.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S.current.useMemo(a,b)};
|
|
26
|
+
exports.useReducer=function(a,b,c){return S.current.useReducer(a,b,c)};exports.useRef=function(a){return S.current.useRef(a)};exports.useState=function(a){return S.current.useState(a)};exports.version="17.0.3-experimental-af1a4cbf7";
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
(global = global || self, factory(global.React = {}));
|
|
13
13
|
}(this, (function (exports) { 'use strict';
|
|
14
14
|
|
|
15
|
-
var ReactVersion = '17.0.3-
|
|
15
|
+
var ReactVersion = '17.0.3-experimental-af1a4cbf7';
|
|
16
16
|
|
|
17
17
|
// ATTENTION
|
|
18
18
|
// When adding new symbols to this file,
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
var REACT_CONTEXT_TYPE = 0xeace;
|
|
29
29
|
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
30
30
|
exports.Suspense = 0xead1;
|
|
31
|
-
|
|
31
|
+
exports.unstable_SuspenseList = 0xead8;
|
|
32
32
|
var REACT_MEMO_TYPE = 0xead3;
|
|
33
33
|
var REACT_LAZY_TYPE = 0xead4;
|
|
34
34
|
var REACT_SCOPE_TYPE = 0xead7;
|
|
35
35
|
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
36
|
-
|
|
36
|
+
exports.unstable_DebugTracingMode = 0xeae1;
|
|
37
37
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
exports.unstable_LegacyHidden = 0xeae3;
|
|
39
|
+
exports.unstable_Cache = 0xeae4;
|
|
40
40
|
|
|
41
41
|
if (typeof Symbol === 'function' && Symbol.for) {
|
|
42
42
|
var symbolFor = Symbol.for;
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
50
50
|
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
51
51
|
exports.Suspense = symbolFor('react.suspense');
|
|
52
|
-
|
|
52
|
+
exports.unstable_SuspenseList = symbolFor('react.suspense_list');
|
|
53
53
|
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
54
54
|
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
55
55
|
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
56
56
|
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
57
|
-
|
|
57
|
+
exports.unstable_DebugTracingMode = symbolFor('react.debug_trace_mode');
|
|
58
58
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
exports.unstable_LegacyHidden = symbolFor('react.legacy_hidden');
|
|
60
|
+
exports.unstable_Cache = symbolFor('react.cache');
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
@@ -521,10 +521,10 @@
|
|
|
521
521
|
case exports.Suspense:
|
|
522
522
|
return 'Suspense';
|
|
523
523
|
|
|
524
|
-
case
|
|
524
|
+
case exports.unstable_SuspenseList:
|
|
525
525
|
return 'SuspenseList';
|
|
526
526
|
|
|
527
|
-
case
|
|
527
|
+
case exports.unstable_Cache:
|
|
528
528
|
return 'Cache';
|
|
529
529
|
}
|
|
530
530
|
|
|
@@ -1431,7 +1431,6 @@
|
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1434
|
-
var enableCache = false; // Only used in www builds.
|
|
1435
1434
|
|
|
1436
1435
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1437
1436
|
|
|
@@ -1447,7 +1446,7 @@
|
|
|
1447
1446
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1448
1447
|
|
|
1449
1448
|
|
|
1450
|
-
if (type === exports.Fragment || type === exports.Profiler || type ===
|
|
1449
|
+
if (type === exports.Fragment || type === exports.Profiler || type === exports.unstable_DebugTracingMode || type === exports.StrictMode || type === exports.Suspense || type === exports.unstable_SuspenseList || type === exports.unstable_LegacyHidden || enableScopeAPI || type === exports.unstable_Cache) {
|
|
1451
1450
|
return true;
|
|
1452
1451
|
}
|
|
1453
1452
|
|
|
@@ -1512,6 +1511,12 @@
|
|
|
1512
1511
|
|
|
1513
1512
|
return dispatcher;
|
|
1514
1513
|
}
|
|
1514
|
+
|
|
1515
|
+
function getCacheForType(resourceType) {
|
|
1516
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1517
|
+
|
|
1518
|
+
return dispatcher.getCacheForType(resourceType);
|
|
1519
|
+
}
|
|
1515
1520
|
function useContext(Context) {
|
|
1516
1521
|
var dispatcher = resolveDispatcher();
|
|
1517
1522
|
|
|
@@ -1569,6 +1574,27 @@
|
|
|
1569
1574
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1570
1575
|
}
|
|
1571
1576
|
}
|
|
1577
|
+
function useTransition() {
|
|
1578
|
+
var dispatcher = resolveDispatcher();
|
|
1579
|
+
return dispatcher.useTransition();
|
|
1580
|
+
}
|
|
1581
|
+
function useDeferredValue(value) {
|
|
1582
|
+
var dispatcher = resolveDispatcher();
|
|
1583
|
+
return dispatcher.useDeferredValue(value);
|
|
1584
|
+
}
|
|
1585
|
+
function useOpaqueIdentifier() {
|
|
1586
|
+
var dispatcher = resolveDispatcher();
|
|
1587
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1588
|
+
}
|
|
1589
|
+
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1590
|
+
var dispatcher = resolveDispatcher();
|
|
1591
|
+
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
1592
|
+
}
|
|
1593
|
+
function useCacheRefresh() {
|
|
1594
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1595
|
+
|
|
1596
|
+
return dispatcher.useCacheRefresh();
|
|
1597
|
+
}
|
|
1572
1598
|
|
|
1573
1599
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
1574
1600
|
// replaying on render function. This currently only patches the object
|
|
@@ -1873,7 +1899,7 @@
|
|
|
1873
1899
|
case exports.Suspense:
|
|
1874
1900
|
return describeBuiltInComponentFrame('Suspense');
|
|
1875
1901
|
|
|
1876
|
-
case
|
|
1902
|
+
case exports.unstable_SuspenseList:
|
|
1877
1903
|
return describeBuiltInComponentFrame('SuspenseList');
|
|
1878
1904
|
}
|
|
1879
1905
|
|
|
@@ -2306,6 +2332,26 @@
|
|
|
2306
2332
|
return newElement;
|
|
2307
2333
|
}
|
|
2308
2334
|
|
|
2335
|
+
function createMutableSource(source, getVersion) {
|
|
2336
|
+
var mutableSource = {
|
|
2337
|
+
_getVersion: getVersion,
|
|
2338
|
+
_source: source,
|
|
2339
|
+
_workInProgressVersionPrimary: null,
|
|
2340
|
+
_workInProgressVersionSecondary: null
|
|
2341
|
+
};
|
|
2342
|
+
|
|
2343
|
+
{
|
|
2344
|
+
mutableSource._currentPrimaryRenderer = null;
|
|
2345
|
+
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
|
2346
|
+
// See https://github.com/facebook/react/issues/19948
|
|
2347
|
+
|
|
2348
|
+
mutableSource._currentlyRenderingFiber = null;
|
|
2349
|
+
mutableSource._initialVersionAsOfFirstRender = null;
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
return mutableSource;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2309
2355
|
var enableSchedulerDebugging = false;
|
|
2310
2356
|
var enableProfiling = false;
|
|
2311
2357
|
|
|
@@ -3273,6 +3319,17 @@
|
|
|
3273
3319
|
ReactSharedInternals$1.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
3274
3320
|
}
|
|
3275
3321
|
|
|
3322
|
+
function startTransition(scope) {
|
|
3323
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
3324
|
+
ReactCurrentBatchConfig.transition = 1;
|
|
3325
|
+
|
|
3326
|
+
try {
|
|
3327
|
+
scope();
|
|
3328
|
+
} finally {
|
|
3329
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3276
3333
|
var createElement$1 = createElementWithValidation ;
|
|
3277
3334
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
3278
3335
|
var createFactory = createFactoryWithValidation ;
|
|
@@ -3297,6 +3354,14 @@
|
|
|
3297
3354
|
exports.isValidElement = isValidElement;
|
|
3298
3355
|
exports.lazy = lazy;
|
|
3299
3356
|
exports.memo = memo;
|
|
3357
|
+
exports.unstable_createMutableSource = createMutableSource;
|
|
3358
|
+
exports.unstable_getCacheForType = getCacheForType;
|
|
3359
|
+
exports.unstable_startTransition = startTransition;
|
|
3360
|
+
exports.unstable_useCacheRefresh = useCacheRefresh;
|
|
3361
|
+
exports.unstable_useDeferredValue = useDeferredValue;
|
|
3362
|
+
exports.unstable_useMutableSource = useMutableSource;
|
|
3363
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
3364
|
+
exports.unstable_useTransition = useTransition;
|
|
3300
3365
|
exports.useCallback = useCallback;
|
|
3301
3366
|
exports.useContext = useContext;
|
|
3302
3367
|
exports.useDebugValue = useDebugValue;
|
|
@@ -6,25 +6,27 @@
|
|
|
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
|
-
(function(){'use strict';(function(c,
|
|
10
|
-
a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function
|
|
11
|
-
e;else if(1<
|
|
12
|
-
typeof a&&null!==a&&null!=a.key?
|
|
13
|
-
1;d=0;
|
|
14
|
-
b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function
|
|
15
|
-
1)-1,
|
|
16
|
-
!1,
|
|
17
|
-
60106;c.Fragment=60107;c.StrictMode=60108;c.Profiler=60114;var
|
|
18
|
-
Symbol.iterator,
|
|
19
|
-
|
|
20
|
-
typeof performance&&"function"===typeof performance.now){var
|
|
21
|
-
"function"!==typeof
|
|
22
|
-
|
|
23
|
-
c}},unstable_scheduleCallback:function(a,b,c){var d=
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
g)
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
(function(){'use strict';(function(c,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports):"function"===typeof define&&define.amd?define(["exports"],w):(c=c||self,w(c.React={}))})(this,function(c){function w(a){if(null===a||"object"!==typeof a)return null;a=V&&a[V]||a["@@iterator"];return"function"===typeof a?a:null}function A(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=1;e<arguments.length;e++)b+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+
|
|
10
|
+
a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(a,b,e){this.props=a;this.context=b;this.refs=W;this.updater=e||X}function Y(){}function J(a,b,e){this.props=a;this.context=b;this.refs=W;this.updater=e||X}function Z(a,b,e){var l,c={},aa=null,x=null;if(null!=b)for(l in void 0!==b.ref&&(x=b.ref),void 0!==b.key&&(aa=""+b.key),b)ba.call(b,l)&&!ca.hasOwnProperty(l)&&(c[l]=b[l]);var d=arguments.length-2;if(1===d)c.children=
|
|
11
|
+
e;else if(1<d){for(var g=Array(d),f=0;f<d;f++)g[f]=arguments[f+2];c.children=g}if(a&&a.defaultProps)for(l in d=a.defaultProps,d)void 0===c[l]&&(c[l]=d[l]);return{$$typeof:v,type:a,key:aa,ref:x,props:c,_owner:K.current}}function ta(a,b){return{$$typeof:v,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return"object"===typeof a&&null!==a&&a.$$typeof===v}function ua(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}function M(a,b){return"object"===
|
|
12
|
+
typeof a&&null!==a&&null!=a.key?ua(""+a.key):b.toString(36)}function B(a,b,e,c,k){var l=typeof a;if("undefined"===l||"boolean"===l)a=null;var d=!1;if(null===a)d=!0;else switch(l){case "string":case "number":d=!0;break;case "object":switch(a.$$typeof){case v:case da:d=!0}}if(d)return d=a,k=k(d),a=""===c?"."+M(d,0):c,ea(k)?(e="",null!=a&&(e=a.replace(fa,"$&/")+"/"),B(k,b,e,"",function(a){return a})):null!=k&&(L(k)&&(k=ta(k,e+(!k.key||d&&d.key===k.key?"":(""+k.key).replace(fa,"$&/")+"/")+a)),b.push(k)),
|
|
13
|
+
1;d=0;c=""===c?".":c+":";if(ea(a))for(var f=0;f<a.length;f++){l=a[f];var g=c+M(l,f);d+=B(l,b,e,g,k)}else if(g=w(a),"function"===typeof g)for(a=g.call(a),f=0;!(l=a.next()).done;)l=l.value,g=c+M(l,f++),d+=B(l,b,e,g,k);else if("object"===l)throw b=""+a,Error(A(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return d}function C(a,b,e){if(null==a)return a;var c=[],d=0;B(a,c,"","",function(a){return b.call(e,a,d++)});return c}function va(a){if(-1===a._status){var b=a._result;
|
|
14
|
+
b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function N(a,b){var e=a.length;a.push(b);a:for(;0<e;){var c=e-1>>>1,d=a[c];if(0<D(d,b))a[c]=b,a[e]=d,e=c;else break a}}function m(a){return 0===a.length?null:a[0]}function E(a){if(0===a.length)return null;var b=a[0],e=a.pop();if(e!==b){a[0]=e;a:for(var c=0,d=a.length,f=d>>>1;c<f;){var h=2*(c+
|
|
15
|
+
1)-1,n=a[h],g=h+1,m=a[g];if(0>D(n,e))g<d&&0>D(m,n)?(a[c]=m,a[g]=e,c=g):(a[c]=n,a[h]=e,c=h);else if(g<d&&0>D(m,e))a[c]=m,a[g]=e,c=g;else break a}}return b}function D(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function O(a){for(var b=m(q);null!==b;){if(null===b.callback)E(q);else if(b.startTime<=a)E(q),b.sortIndex=b.expirationTime,N(p,b);else break;b=m(q)}}function P(a){y=!1;O(a);if(!r)if(null!==m(p))r=!0,Q(R);else{var b=m(q);null!==b&&S(P,b.startTime-a)}}function R(a,b){r=!1;y&&(y=
|
|
16
|
+
!1,ha(z),z=-1);F=!0;var c=f;try{O(b);for(n=m(p);null!==n&&(!(n.expirationTime>b)||a&&!ia());){var d=n.callback;if("function"===typeof d){n.callback=null;f=n.priorityLevel;var k=d(n.expirationTime<=b);b=t();"function"===typeof k?n.callback=k:n===m(p)&&E(p);O(b)}else E(p);n=m(p)}if(null!==n)var h=!0;else{var x=m(q);null!==x&&S(P,x.startTime-b);h=!1}return h}finally{n=null,f=c,F=!1}}function ia(){return t()>=ja}function Q(a){G=a;H||(H=!0,T())}function S(a,b){z=wa(function(){a(t())},b)}var v=60103,da=
|
|
17
|
+
60106;c.Fragment=60107;c.StrictMode=60108;c.Profiler=60114;var ka=60109,la=60110,ma=60112;c.Suspense=60113;c.unstable_SuspenseList=60120;var na=60115,oa=60116;c.unstable_DebugTracingMode=60129;c.unstable_LegacyHidden=60131;c.unstable_Cache=60132;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;v=d("react.element");da=d("react.portal");c.Fragment=d("react.fragment");c.StrictMode=d("react.strict_mode");c.Profiler=d("react.profiler");ka=d("react.provider");la=d("react.context");ma=d("react.forward_ref");
|
|
18
|
+
c.Suspense=d("react.suspense");c.unstable_SuspenseList=d("react.suspense_list");na=d("react.memo");oa=d("react.lazy");c.unstable_DebugTracingMode=d("react.debug_trace_mode");c.unstable_LegacyHidden=d("react.legacy_hidden");c.unstable_Cache=d("react.cache")}var V="function"===typeof Symbol&&Symbol.iterator,xa=Object.prototype.hasOwnProperty,U=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),d=1;d<arguments.length;d++){var k=
|
|
19
|
+
arguments[d];if(null!=k){var f=void 0;k=Object(k);for(f in k)xa.call(k,f)&&(c[f]=k[f])}}return c},X={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},W={};u.prototype.isReactComponent={};u.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(A(85));this.updater.enqueueSetState(this,a,b,"setState")};u.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,
|
|
20
|
+
a,"forceUpdate")};Y.prototype=u.prototype;d=J.prototype=new Y;d.constructor=J;U(d,u.prototype);d.isPureReactComponent=!0;var ea=Array.isArray,ba=Object.prototype.hasOwnProperty,K={current:null},ca={key:!0,ref:!0,__self:!0,__source:!0},fa=/\/+/g,h={current:null},I={transition:0};if("object"===typeof performance&&"function"===typeof performance.now){var ya=performance;var t=function(){return ya.now()}}else{var pa=Date,za=pa.now();t=function(){return pa.now()-za}}var p=[],q=[],Aa=1,n=null,f=3,F=!1,r=
|
|
21
|
+
!1,y=!1,wa=window.setTimeout,ha=window.clearTimeout,qa=window.setImmediate;"undefined"!==typeof console&&(d=window.cancelAnimationFrame,"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"));
|
|
22
|
+
var H=!1,G=null,z=-1,ra=5,ja=0,sa=function(){if(null!==G){var a=t();ja=a+ra;var b=!0;try{b=G(!0,a)}finally{b?T():(H=!1,G=null)}}else H=!1};if("function"===typeof qa)var T=function(){qa(sa)};else{d=new MessageChannel;var Ba=d.port2;d.port1.onmessage=sa;T=function(){Ba.postMessage(null)}}var Ca=0;d={ReactCurrentDispatcher:h,ReactCurrentOwner:K,IsSomeRendererActing:{current:!1},ReactCurrentBatchConfig:I,assign:U,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,
|
|
23
|
+
unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=f;f=a;try{return b()}finally{f=c}},unstable_next:function(a){switch(f){case 1:case 2:case 3:var b=3;break;default:b=f}var c=f;f=b;try{return a()}finally{f=c}},unstable_scheduleCallback:function(a,b,c){var d=t();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=
|
|
24
|
+
1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Aa++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,N(q,a),null===m(p)&&a===m(q)&&(y?(ha(z),z=-1):y=!0,S(P,c-d))):(a.sortIndex=e,N(p,a),r||F||(r=!0,Q(R)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=f;return function(){var c=f;f=b;try{return a.apply(this,arguments)}finally{f=c}}},unstable_getCurrentPriorityLevel:function(){return f},unstable_shouldYield:ia,
|
|
25
|
+
unstable_requestPaint:function(){},unstable_continueExecution:function(){r||F||(r=!0,Q(R))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return m(p)},get unstable_now(){return t},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ra=0<a?Math.floor(1E3/a):5},unstable_Profiling:null},SchedulerTracing:{__proto__:null,__interactionsRef:null,__subscriberRef:null,
|
|
26
|
+
unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Ca},unstable_trace:function(a,b,c){return c()},unstable_wrap:function(a){return a},unstable_subscribe:function(a){},unstable_unsubscribe:function(a){}}};c.Children={map:C,forEach:function(a,b,c){C(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;C(a,function(){b++});return b},toArray:function(a){return C(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(A(143));
|
|
27
|
+
return a}};c.Component=u;c.PureComponent=J;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;c.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(A(267,a));var d=U({},a.props),e=a.key,f=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,h=K.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var m=a.type.defaultProps;for(g in b)ba.call(b,g)&&!ca.hasOwnProperty(g)&&(d[g]=void 0===b[g]&&void 0!==m?m[g]:b[g])}var g=arguments.length-2;if(1===g)d.children=c;else if(1<
|
|
28
|
+
g){m=Array(g);for(var n=0;n<g;n++)m[n]=arguments[n+2];d.children=m}return{$$typeof:v,type:a.type,key:e,ref:f,props:d,_owner:h}};c.createContext=function(a){a={$$typeof:la,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:ka,_context:a};return a.Consumer=a};c.createElement=Z;c.createFactory=function(a){var b=Z.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:ma,render:a}};c.isValidElement=
|
|
29
|
+
L;c.lazy=function(a){return{$$typeof:oa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:na,type:a,compare:void 0===b?null:b}};c.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};c.unstable_getCacheForType=function(a){return h.current.getCacheForType(a)};c.unstable_startTransition=function(a){var b=I.transition;I.transition=1;try{a()}finally{I.transition=b}};c.unstable_useCacheRefresh=
|
|
30
|
+
function(){return h.current.useCacheRefresh()};c.unstable_useDeferredValue=function(a){return h.current.useDeferredValue(a)};c.unstable_useMutableSource=function(a,b,c){return h.current.useMutableSource(a,b,c)};c.unstable_useOpaqueIdentifier=function(){return h.current.useOpaqueIdentifier()};c.unstable_useTransition=function(){return h.current.useTransition()};c.useCallback=function(a,b){return h.current.useCallback(a,b)};c.useContext=function(a){return h.current.useContext(a)};c.useDebugValue=function(a,
|
|
31
|
+
b){};c.useEffect=function(a,b){return h.current.useEffect(a,b)};c.useImperativeHandle=function(a,b,c){return h.current.useImperativeHandle(a,b,c)};c.useLayoutEffect=function(a,b){return h.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return h.current.useMemo(a,b)};c.useReducer=function(a,b,c){return h.current.useReducer(a,b,c)};c.useRef=function(a){return h.current.useRef(a)};c.useState=function(a){return h.current.useState(a)};c.version="17.0.3-experimental-af1a4cbf7"});
|
|
30
32
|
})();
|