react 0.0.0-e2fd460cc → 0.0.0-experimental-e2fd460cc
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 +2166 -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 +30 -28
|
@@ -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={current:null},F=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0};function H(a,b){return{$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function I(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 J=/\/+/g;function K(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
15
|
+
function L(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?"."+K(h,0):d,Array.isArray(c)?(e="",null!=a&&(e=a.replace(J,"$&/")+"/"),L(c,b,e,"",function(a){return a})):null!=c&&(I(c)&&(c=H(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(J,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(Array.isArray(a))for(var g=
|
|
16
|
+
0;g<a.length;g++){k=a[g];var f=d+K(k,g);h+=L(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+K(k,g++),h+=L(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 M(a,b,e){if(null==a)return a;var d=[],c=0;L(a,d,"","",function(a){return b.call(e,a,c++)});return d}
|
|
17
|
+
function N(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 O={current:null},P={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:l};
|
|
18
|
+
exports.Children={map:M,forEach:function(a,b,e){M(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;M(a,function(){b++});return b},toArray:function(a){return M(a,function(a){return a})||[]},only:function(a){if(!I(a))throw Error(x(143));return a}};exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P;
|
|
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=E.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)&&!G.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)&&!G.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:E.current}};exports.createRef=function(){return{current:null}};
|
|
21
|
+
exports.forwardRef=function(a){return{$$typeof:q,render:a}};exports.isValidElement=I;exports.lazy=function(a){return{$$typeof:t,_payload:{_status:-1,_result:a},_init:N}};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 O.current.getCacheForType(a)};
|
|
22
|
+
exports.unstable_useDeferredValue=function(a){return O.current.useDeferredValue(a)};exports.unstable_useMutableSource=function(a,b,e){return O.current.useMutableSource(a,b,e)};exports.unstable_useOpaqueIdentifier=function(){return O.current.useOpaqueIdentifier()};exports.useCallback=function(a,b){return O.current.useCallback(a,b)};exports.useContext=function(a,b){return O.current.useContext(a,b)};exports.useDebugValue=function(){};exports.useMemo=function(a,b){return O.current.useMemo(a,b)};
|
|
23
|
+
exports.version="17.0.2-experimental-e2fd460cc";
|
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.2-e2fd460cc';
|
|
18
|
+
var ReactVersion = '17.0.2-experimental-e2fd460cc';
|
|
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;
|
|
@@ -488,10 +488,10 @@ function getComponentName(type) {
|
|
|
488
488
|
case exports.Suspense:
|
|
489
489
|
return 'Suspense';
|
|
490
490
|
|
|
491
|
-
case
|
|
491
|
+
case exports.unstable_SuspenseList:
|
|
492
492
|
return 'SuspenseList';
|
|
493
493
|
|
|
494
|
-
case
|
|
494
|
+
case exports.unstable_Cache:
|
|
495
495
|
return 'Cache';
|
|
496
496
|
}
|
|
497
497
|
|
|
@@ -1407,7 +1407,6 @@ function forwardRef(render) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
1409
|
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1410
|
-
var enableCache = false; // Only used in www builds.
|
|
1411
1410
|
|
|
1412
1411
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1413
1412
|
|
|
@@ -1423,7 +1422,7 @@ function isValidElementType(type) {
|
|
|
1423
1422
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1424
1423
|
|
|
1425
1424
|
|
|
1426
|
-
if (type === exports.Fragment || type === exports.Profiler || type ===
|
|
1425
|
+
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) {
|
|
1427
1426
|
return true;
|
|
1428
1427
|
}
|
|
1429
1428
|
|
|
@@ -1488,6 +1487,12 @@ function resolveDispatcher() {
|
|
|
1488
1487
|
|
|
1489
1488
|
return dispatcher;
|
|
1490
1489
|
}
|
|
1490
|
+
|
|
1491
|
+
function getCacheForType(resourceType) {
|
|
1492
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1493
|
+
|
|
1494
|
+
return dispatcher.getCacheForType(resourceType);
|
|
1495
|
+
}
|
|
1491
1496
|
function useContext(Context, unstable_observedBits) {
|
|
1492
1497
|
var dispatcher = resolveDispatcher();
|
|
1493
1498
|
|
|
@@ -1549,6 +1554,27 @@ function useDebugValue(value, formatterFn) {
|
|
|
1549
1554
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1550
1555
|
}
|
|
1551
1556
|
}
|
|
1557
|
+
function useTransition() {
|
|
1558
|
+
var dispatcher = resolveDispatcher();
|
|
1559
|
+
return dispatcher.useTransition();
|
|
1560
|
+
}
|
|
1561
|
+
function useDeferredValue(value) {
|
|
1562
|
+
var dispatcher = resolveDispatcher();
|
|
1563
|
+
return dispatcher.useDeferredValue(value);
|
|
1564
|
+
}
|
|
1565
|
+
function useOpaqueIdentifier() {
|
|
1566
|
+
var dispatcher = resolveDispatcher();
|
|
1567
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1568
|
+
}
|
|
1569
|
+
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1570
|
+
var dispatcher = resolveDispatcher();
|
|
1571
|
+
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
1572
|
+
}
|
|
1573
|
+
function useCacheRefresh() {
|
|
1574
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1575
|
+
|
|
1576
|
+
return dispatcher.useCacheRefresh();
|
|
1577
|
+
}
|
|
1552
1578
|
|
|
1553
1579
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
1554
1580
|
// replaying on render function. This currently only patches the object
|
|
@@ -1853,7 +1879,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
|
1853
1879
|
case exports.Suspense:
|
|
1854
1880
|
return describeBuiltInComponentFrame('Suspense');
|
|
1855
1881
|
|
|
1856
|
-
case
|
|
1882
|
+
case exports.unstable_SuspenseList:
|
|
1857
1883
|
return describeBuiltInComponentFrame('SuspenseList');
|
|
1858
1884
|
}
|
|
1859
1885
|
|
|
@@ -2286,6 +2312,37 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
2286
2312
|
return newElement;
|
|
2287
2313
|
}
|
|
2288
2314
|
|
|
2315
|
+
function createMutableSource(source, getVersion) {
|
|
2316
|
+
var mutableSource = {
|
|
2317
|
+
_getVersion: getVersion,
|
|
2318
|
+
_source: source,
|
|
2319
|
+
_workInProgressVersionPrimary: null,
|
|
2320
|
+
_workInProgressVersionSecondary: null
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2323
|
+
{
|
|
2324
|
+
mutableSource._currentPrimaryRenderer = null;
|
|
2325
|
+
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
|
2326
|
+
// See https://github.com/facebook/react/issues/19948
|
|
2327
|
+
|
|
2328
|
+
mutableSource._currentlyRenderingFiber = null;
|
|
2329
|
+
mutableSource._initialVersionAsOfFirstRender = null;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
return mutableSource;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
function startTransition(scope) {
|
|
2336
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
2337
|
+
ReactCurrentBatchConfig.transition = 1;
|
|
2338
|
+
|
|
2339
|
+
try {
|
|
2340
|
+
scope();
|
|
2341
|
+
} finally {
|
|
2342
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2289
2346
|
var createElement$1 = createElementWithValidation ;
|
|
2290
2347
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
2291
2348
|
var createFactory = createFactoryWithValidation ;
|
|
@@ -2310,6 +2367,14 @@ exports.forwardRef = forwardRef;
|
|
|
2310
2367
|
exports.isValidElement = isValidElement;
|
|
2311
2368
|
exports.lazy = lazy;
|
|
2312
2369
|
exports.memo = memo;
|
|
2370
|
+
exports.unstable_createMutableSource = createMutableSource;
|
|
2371
|
+
exports.unstable_getCacheForType = getCacheForType;
|
|
2372
|
+
exports.unstable_startTransition = startTransition;
|
|
2373
|
+
exports.unstable_useCacheRefresh = useCacheRefresh;
|
|
2374
|
+
exports.unstable_useDeferredValue = useDeferredValue;
|
|
2375
|
+
exports.unstable_useMutableSource = useMutableSource;
|
|
2376
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
2377
|
+
exports.unstable_useTransition = useTransition;
|
|
2313
2378
|
exports.useCallback = useCallback;
|
|
2314
2379
|
exports.useContext = useContext;
|
|
2315
2380
|
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={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
15
|
function J(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)&&!I.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:G.current}}
|
|
15
16
|
function K(a,b){return{$$typeof:m,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===m}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
16
17
|
function O(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?"."+N(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
|
|
17
18
|
0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(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+N(k,g++),h+=O(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 P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}
|
|
18
|
-
function Q(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 R={current:null},S={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:
|
|
19
|
-
exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(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 Q(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 R={current:null},S={transition:0},T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:S,ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:l};
|
|
20
|
+
exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
|
|
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=G.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)&&!I.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,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.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=L;
|
|
22
|
-
exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};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:Q}};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 R.current.getCacheForType(a)};
|
|
24
|
+
exports.unstable_startTransition=function(a){var b=S.transition;S.transition=1;try{a()}finally{S.transition=b}};exports.unstable_useCacheRefresh=function(){return R.current.useCacheRefresh()};exports.unstable_useDeferredValue=function(a){return R.current.useDeferredValue(a)};exports.unstable_useMutableSource=function(a,b,c){return R.current.useMutableSource(a,b,c)};exports.unstable_useOpaqueIdentifier=function(){return R.current.useOpaqueIdentifier()};exports.unstable_useTransition=function(){return R.current.useTransition()};
|
|
25
|
+
exports.useCallback=function(a,b){return R.current.useCallback(a,b)};exports.useContext=function(a,b){return R.current.useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return R.current.useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return R.current.useImperativeHandle(a,b,c)};exports.useLayoutEffect=function(a,b){return R.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return R.current.useMemo(a,b)};
|
|
26
|
+
exports.useReducer=function(a,b,c){return R.current.useReducer(a,b,c)};exports.useRef=function(a){return R.current.useRef(a)};exports.useState=function(a){return R.current.useState(a)};exports.version="17.0.2-experimental-e2fd460cc";
|
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.2-e2fd460cc';
|
|
15
|
+
var ReactVersion = '17.0.2-experimental-e2fd460cc';
|
|
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;
|
|
@@ -513,10 +513,10 @@
|
|
|
513
513
|
case exports.Suspense:
|
|
514
514
|
return 'Suspense';
|
|
515
515
|
|
|
516
|
-
case
|
|
516
|
+
case exports.unstable_SuspenseList:
|
|
517
517
|
return 'SuspenseList';
|
|
518
518
|
|
|
519
|
-
case
|
|
519
|
+
case exports.unstable_Cache:
|
|
520
520
|
return 'Cache';
|
|
521
521
|
}
|
|
522
522
|
|
|
@@ -1432,7 +1432,6 @@
|
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1435
|
-
var enableCache = false; // Only used in www builds.
|
|
1436
1435
|
|
|
1437
1436
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1438
1437
|
|
|
@@ -1448,7 +1447,7 @@
|
|
|
1448
1447
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1449
1448
|
|
|
1450
1449
|
|
|
1451
|
-
if (type === exports.Fragment || type === exports.Profiler || type ===
|
|
1450
|
+
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) {
|
|
1452
1451
|
return true;
|
|
1453
1452
|
}
|
|
1454
1453
|
|
|
@@ -1513,6 +1512,12 @@
|
|
|
1513
1512
|
|
|
1514
1513
|
return dispatcher;
|
|
1515
1514
|
}
|
|
1515
|
+
|
|
1516
|
+
function getCacheForType(resourceType) {
|
|
1517
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1518
|
+
|
|
1519
|
+
return dispatcher.getCacheForType(resourceType);
|
|
1520
|
+
}
|
|
1516
1521
|
function useContext(Context, unstable_observedBits) {
|
|
1517
1522
|
var dispatcher = resolveDispatcher();
|
|
1518
1523
|
|
|
@@ -1574,6 +1579,27 @@
|
|
|
1574
1579
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1575
1580
|
}
|
|
1576
1581
|
}
|
|
1582
|
+
function useTransition() {
|
|
1583
|
+
var dispatcher = resolveDispatcher();
|
|
1584
|
+
return dispatcher.useTransition();
|
|
1585
|
+
}
|
|
1586
|
+
function useDeferredValue(value) {
|
|
1587
|
+
var dispatcher = resolveDispatcher();
|
|
1588
|
+
return dispatcher.useDeferredValue(value);
|
|
1589
|
+
}
|
|
1590
|
+
function useOpaqueIdentifier() {
|
|
1591
|
+
var dispatcher = resolveDispatcher();
|
|
1592
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1593
|
+
}
|
|
1594
|
+
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1595
|
+
var dispatcher = resolveDispatcher();
|
|
1596
|
+
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
1597
|
+
}
|
|
1598
|
+
function useCacheRefresh() {
|
|
1599
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1600
|
+
|
|
1601
|
+
return dispatcher.useCacheRefresh();
|
|
1602
|
+
}
|
|
1577
1603
|
|
|
1578
1604
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
1579
1605
|
// replaying on render function. This currently only patches the object
|
|
@@ -1878,7 +1904,7 @@
|
|
|
1878
1904
|
case exports.Suspense:
|
|
1879
1905
|
return describeBuiltInComponentFrame('Suspense');
|
|
1880
1906
|
|
|
1881
|
-
case
|
|
1907
|
+
case exports.unstable_SuspenseList:
|
|
1882
1908
|
return describeBuiltInComponentFrame('SuspenseList');
|
|
1883
1909
|
}
|
|
1884
1910
|
|
|
@@ -2311,6 +2337,26 @@
|
|
|
2311
2337
|
return newElement;
|
|
2312
2338
|
}
|
|
2313
2339
|
|
|
2340
|
+
function createMutableSource(source, getVersion) {
|
|
2341
|
+
var mutableSource = {
|
|
2342
|
+
_getVersion: getVersion,
|
|
2343
|
+
_source: source,
|
|
2344
|
+
_workInProgressVersionPrimary: null,
|
|
2345
|
+
_workInProgressVersionSecondary: null
|
|
2346
|
+
};
|
|
2347
|
+
|
|
2348
|
+
{
|
|
2349
|
+
mutableSource._currentPrimaryRenderer = null;
|
|
2350
|
+
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
|
2351
|
+
// See https://github.com/facebook/react/issues/19948
|
|
2352
|
+
|
|
2353
|
+
mutableSource._currentlyRenderingFiber = null;
|
|
2354
|
+
mutableSource._initialVersionAsOfFirstRender = null;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
return mutableSource;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2314
2360
|
var enableSchedulerDebugging = false;
|
|
2315
2361
|
var enableProfiling = true;
|
|
2316
2362
|
|
|
@@ -3453,6 +3499,17 @@
|
|
|
3453
3499
|
ReactSharedInternals$1.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
3454
3500
|
}
|
|
3455
3501
|
|
|
3502
|
+
function startTransition(scope) {
|
|
3503
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
3504
|
+
ReactCurrentBatchConfig.transition = 1;
|
|
3505
|
+
|
|
3506
|
+
try {
|
|
3507
|
+
scope();
|
|
3508
|
+
} finally {
|
|
3509
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3456
3513
|
var createElement$1 = createElementWithValidation ;
|
|
3457
3514
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
3458
3515
|
var createFactory = createFactoryWithValidation ;
|
|
@@ -3477,6 +3534,14 @@
|
|
|
3477
3534
|
exports.isValidElement = isValidElement;
|
|
3478
3535
|
exports.lazy = lazy;
|
|
3479
3536
|
exports.memo = memo;
|
|
3537
|
+
exports.unstable_createMutableSource = createMutableSource;
|
|
3538
|
+
exports.unstable_getCacheForType = getCacheForType;
|
|
3539
|
+
exports.unstable_startTransition = startTransition;
|
|
3540
|
+
exports.unstable_useCacheRefresh = useCacheRefresh;
|
|
3541
|
+
exports.unstable_useDeferredValue = useDeferredValue;
|
|
3542
|
+
exports.unstable_useMutableSource = useMutableSource;
|
|
3543
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
3544
|
+
exports.unstable_useTransition = useTransition;
|
|
3480
3545
|
exports.useCallback = useCallback;
|
|
3481
3546
|
exports.useContext = useContext;
|
|
3482
3547
|
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
|
-
|
|
12
|
-
typeof a&&null!==a&&null!=a.key?
|
|
13
|
-
a)),b.push(
|
|
14
|
-
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;}function
|
|
15
|
-
|
|
16
|
-
b&&
|
|
17
|
-
function
|
|
18
|
-
ma=d("react.lazy")}var
|
|
19
|
-
b,c,d){}},
|
|
20
|
-
|
|
21
|
-
"function"!==typeof
|
|
22
|
-
|
|
23
|
-
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=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
0;C(a,function(){b++});return b},toArray:function(a){return C(a,function(a){return a})||[]},only:function(a){if(!
|
|
27
|
-
|
|
28
|
-
function(a){var b=
|
|
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=U&&a[U]||a["@@iterator"];return"function"===typeof a?a:null}function A(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,k=1;k<arguments.length;k++)b+="&args[]="+encodeURIComponent(arguments[k]);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,k){this.props=a;this.context=b;this.refs=V;this.updater=k||W}function X(){}function J(a,b,k){this.props=a;this.context=b;this.refs=V;this.updater=k||W}function Y(a,b,k){var m,c={},Z=null,x=null;if(null!=b)for(m in void 0!==b.ref&&(x=b.ref),void 0!==b.key&&(Z=""+b.key),b)aa.call(b,m)&&!ba.hasOwnProperty(m)&&(c[m]=b[m]);var d=arguments.length-2;if(1===d)c.children=
|
|
11
|
+
k;else if(1<d){for(var f=Array(d),e=0;e<d;e++)f[e]=arguments[e+2];c.children=f}if(a&&a.defaultProps)for(m in d=a.defaultProps,d)void 0===c[m]&&(c[m]=d[m]);return{$$typeof:v,type:a,key:Z,ref:x,props:c,_owner:K.current}}function qa(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 ra(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?ra(""+a.key):b.toString(36)}function B(a,b,k,c,h){var m=typeof a;if("undefined"===m||"boolean"===m)a=null;var d=!1;if(null===a)d=!0;else switch(m){case "string":case "number":d=!0;break;case "object":switch(a.$$typeof){case v:case ca:d=!0}}if(d)return d=a,h=h(d),a=""===c?"."+M(d,0):c,Array.isArray(h)?(k="",null!=a&&(k=a.replace(da,"$&/")+"/"),B(h,b,k,"",function(a){return a})):null!=h&&(L(h)&&(h=qa(h,k+(!h.key||d&&d.key===h.key?"":(""+h.key).replace(da,"$&/")+"/")+
|
|
13
|
+
a)),b.push(h)),1;d=0;c=""===c?".":c+":";if(Array.isArray(a))for(var e=0;e<a.length;e++){m=a[e];var f=c+M(m,e);d+=B(m,b,k,f,h)}else if(f=w(a),"function"===typeof f)for(a=f.call(a),e=0;!(m=a.next()).done;)m=m.value,f=c+M(m,e++),d+=B(m,b,k,f,h);else if("object"===m)throw b=""+a,Error(A(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return d}function C(a,b,k){if(null==a)return a;var c=[],d=0;B(a,c,"","",function(a){return b.call(k,a,d++)});return c}function sa(a){if(-1===
|
|
14
|
+
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;}function N(a,b){var k=a.length;a.push(b);a:for(;;){var c=k-1>>>1,d=a[c];if(void 0!==d&&0<D(d,b))a[c]=b,a[k]=d,k=c;else break a}}function n(a){a=a[0];return void 0===a?null:a}function E(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,h=a.length;d<
|
|
15
|
+
h;){var e=2*(d+1)-1,g=a[e],l=e+1,f=a[l];if(void 0!==g&&0>D(g,c))void 0!==f&&0>D(f,g)?(a[d]=f,a[l]=c,d=l):(a[d]=g,a[e]=c,d=e);else if(void 0!==f&&0>D(f,c))a[d]=f,a[l]=c,d=l;else break a}}return b}return null}function D(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function O(a){for(var b=n(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=n(q)}}function P(a){y=!1;O(a);if(!r)if(null!==n(p))r=!0,Q(R);else{var b=n(q);null!==
|
|
16
|
+
b&&S(P,b.startTime-a)}}function R(a,b){r=!1;y&&(y=!1,ea(z),z=-1);F=!0;var c=e;try{O(b);for(l=n(p);null!==l&&(!(l.expirationTime>b)||a&&!fa());){var d=l.callback;if("function"===typeof d){l.callback=null;e=l.priorityLevel;var h=d(l.expirationTime<=b);b=t();"function"===typeof h?l.callback=h:l===n(p)&&E(p);O(b)}else E(p);l=n(p)}if(null!==l)var g=!0;else{var x=n(q);null!==x&&S(P,x.startTime-b);g=!1}return g}finally{l=null,e=c,F=!1}}function fa(){return t()>=ha}function Q(a){G=a;H||(H=!0,ia.postMessage(null))}
|
|
17
|
+
function S(a,b){z=ta(function(){a(t())},b)}var v=60103,ca=60106;c.Fragment=60107;c.StrictMode=60108;c.Profiler=60114;var ja=60109,ka=60110,la=60112;c.Suspense=60113;c.unstable_SuspenseList=60120;var ma=60115,na=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");ca=d("react.portal");c.Fragment=d("react.fragment");c.StrictMode=d("react.strict_mode");c.Profiler=d("react.profiler");
|
|
18
|
+
ja=d("react.provider");ka=d("react.context");la=d("react.forward_ref");c.Suspense=d("react.suspense");c.unstable_SuspenseList=d("react.suspense_list");ma=d("react.memo");na=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 U="function"===typeof Symbol&&Symbol.iterator,ua=Object.prototype.hasOwnProperty,T=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");
|
|
19
|
+
for(var c=Object(a),d=1;d<arguments.length;d++){var h=arguments[d];if(null!=h){var e=void 0;h=Object(h);for(e in h)ua.call(h,e)&&(c[e]=h[e])}}return c},W={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},V={};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=
|
|
20
|
+
function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};X.prototype=u.prototype;d=J.prototype=new X;d.constructor=J;T(d,u.prototype);d.isPureReactComponent=!0;var K={current:null},aa=Object.prototype.hasOwnProperty,ba={key:!0,ref:!0,__self:!0,__source:!0},da=/\/+/g,g={current:null},I={transition:0};if("object"===typeof performance&&"function"===typeof performance.now){var va=performance;var t=function(){return va.now()}}else{var oa=Date,wa=oa.now();t=function(){return oa.now()-wa}}var p=
|
|
21
|
+
[],q=[],xa=1,l=null,e=3,F=!1,r=!1,y=!1,ta=window.setTimeout,ea=window.clearTimeout;"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,pa=5,ha=0;d=new MessageChannel;var ia=d.port2;d.port1.onmessage=function(){if(null!==G){var a=t();ha=a+pa;var b=!0;try{b=G(!0,a)}finally{b?ia.postMessage(null):(H=!1,G=null)}}else H=!1};var ya=0;d={ReactCurrentDispatcher:g,ReactCurrentOwner:K,IsSomeRendererActing:{current:!1},ReactCurrentBatchConfig:I,assign:T,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,
|
|
23
|
+
b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=e;e=a;try{return b()}finally{e=c}},unstable_next:function(a){switch(e){case 1:case 2:case 3:var b=3;break;default:b=e}var c=e;e=b;try{return a()}finally{e=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=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:xa++,callback:b,priorityLevel:a,
|
|
24
|
+
startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,N(q,a),null===n(p)&&a===n(q)&&(y?(ea(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=e;return function(){var c=e;e=b;try{return a.apply(this,arguments)}finally{e=c}}},unstable_getCurrentPriorityLevel:function(){return e},unstable_shouldYield:fa,unstable_requestPaint:function(){},unstable_continueExecution:function(){r||
|
|
25
|
+
F||(r=!0,Q(R))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return n(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"):pa=0<a?Math.floor(1E3/a):5},unstable_Profiling:null},SchedulerTracing:{__proto__:null,__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},
|
|
26
|
+
unstable_getThreadID:function(){return++ya},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));return a}};c.Component=u;c.PureComponent=J;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=
|
|
27
|
+
d;c.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(A(267,a));var d=T({},a.props),e=a.key,k=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,g=K.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(f in b)aa.call(b,f)&&!ba.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==l?l[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){l=Array(f);for(var n=0;n<f;n++)l[n]=arguments[n+2];d.children=l}return{$$typeof:v,type:a.type,
|
|
28
|
+
key:e,ref:k,props:d,_owner:g}};c.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:ka,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:ja,_context:a};return a.Consumer=a};c.createElement=Y;c.createFactory=function(a){var b=Y.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:la,render:a}};c.isValidElement=L;c.lazy=function(a){return{$$typeof:na,_payload:{_status:-1,
|
|
29
|
+
_result:a},_init:sa}};c.memo=function(a,b){return{$$typeof:ma,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 g.current.getCacheForType(a)};c.unstable_startTransition=function(a){var b=I.transition;I.transition=1;try{a()}finally{I.transition=b}};c.unstable_useCacheRefresh=function(){return g.current.useCacheRefresh()};
|
|
30
|
+
c.unstable_useDeferredValue=function(a){return g.current.useDeferredValue(a)};c.unstable_useMutableSource=function(a,b,c){return g.current.useMutableSource(a,b,c)};c.unstable_useOpaqueIdentifier=function(){return g.current.useOpaqueIdentifier()};c.unstable_useTransition=function(){return g.current.useTransition()};c.useCallback=function(a,b){return g.current.useCallback(a,b)};c.useContext=function(a,b){return g.current.useContext(a,b)};c.useDebugValue=function(a,b){};c.useEffect=function(a,b){return g.current.useEffect(a,
|
|
31
|
+
b)};c.useImperativeHandle=function(a,b,c){return g.current.useImperativeHandle(a,b,c)};c.useLayoutEffect=function(a,b){return g.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return g.current.useMemo(a,b)};c.useReducer=function(a,b,c){return g.current.useReducer(a,b,c)};c.useRef=function(a){return g.current.useRef(a)};c.useState=function(a){return g.current.useState(a)};c.version="17.0.2-experimental-e2fd460cc"});
|
|
30
32
|
})();
|