react 0.0.0-experimental-235a6c4af → 0.0.0-experimental-e5d06e34b

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.
@@ -1,4 +1,4 @@
1
- /** @license React v0.0.0-experimental-235a6c4af
1
+ /** @license React v0.0.0-experimental-e5d06e34b
2
2
  * react.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -7,21 +7,20 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- 'use strict';var l=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,q=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,u=n?Symbol.for("react.fragment"):60107,v=n?Symbol.for("react.strict_mode"):60108,w=n?Symbol.for("react.profiler"):60114,x=n?Symbol.for("react.provider"):60109,y=n?Symbol.for("react.context"):60110,z=n?Symbol.for("react.forward_ref"):60112,aa=n?Symbol.for("react.suspense"):60113,ba=n?Symbol.for("react.suspense_list"):60120,ca=n?Symbol.for("react.memo"):
11
- 60115,da=n?Symbol.for("react.lazy"):60116,ea=n?Symbol.for("react.block"):60121,A="function"===typeof Symbol&&Symbol.iterator;function B(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."}
12
- var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};function E(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(B(85));this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
13
- function F(){}F.prototype=E.prototype;function G(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||C}var H=G.prototype=new F;H.constructor=G;l(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function L(a,b,c,d,e,f,g){return{$$typeof:q,type:a,key:b,ref:c,props:g,_owner:f}}
14
- function M(a,b,c){var d,e={},f=null,g=null;void 0!==c&&(f=""+c);void 0!==b.key&&(f=""+b.key);void 0!==b.ref&&(g=b.ref);for(d in b)J.call(b,d)&&!K.hasOwnProperty(d)&&(e[d]=b[d]);if(a&&a.defaultProps)for(d in b=a.defaultProps,b)void 0===e[d]&&(e[d]=b[d]);return L(a,f,g,void 0,void 0,I.current,e)}
15
- function N(a,b,c){var d,e={},f=null,g=null,h=null,t=null;if(null!=b)for(d in void 0!==b.ref&&(g=b.ref),void 0!==b.key&&(f=""+b.key),h=void 0===b.__self?null:b.__self,t=void 0===b.__source?null:b.__source,b)J.call(b,d)&&!K.hasOwnProperty(d)&&(e[d]=b[d]);var m=arguments.length-2;if(1===m)e.children=c;else if(1<m){for(var k=Array(m),p=0;p<m;p++)k[p]=arguments[p+2];e.children=k}if(a&&a.defaultProps)for(d in m=a.defaultProps,m)void 0===e[d]&&(e[d]=m[d]);return L(a,f,g,h,t,I.current,e)}
16
- function fa(a,b){return L(a.type,b,a.ref,a._self,a._source,a._owner,a.props)}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===q}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g,Q=[];function R(a,b,c,d){if(Q.length){var e=Q.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}}
17
- function S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}
18
- function T(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var f=!1;if(null===a)f=!0;else switch(e){case "string":case "number":f=!0;break;case "object":switch(a.$$typeof){case q:case r:f=!0}}if(f)return c(d,a,""===b?"."+U(a,0):b),1;f=0;b=""===b?".":b+":";if(Array.isArray(a))for(var g=0;g<a.length;g++){e=a[g];var h=b+U(e,g);f+=T(e,h,c,d)}else if(null===a||"object"!==typeof a?h=null:(h=A&&a[A]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),g=
19
- 0;!(e=a.next()).done;)e=e.value,h=b+U(e,g++),f+=T(e,h,c,d);else if("object"===e)throw c=""+a,Error(B(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return f}function V(a,b,c){return null==a?0:T(a,"",b,c)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ha(a,b){a.func.call(a.context,b,a.count++)}
20
- function ia(a,b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,d,c,function(a){return a}):null!=a&&(O(a)&&(a=fa(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+c)),d.push(a))}function W(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(P,"$&/")+"/");b=R(b,f,d,e);V(a,ia,b);S(b)}var X={current:null};function Y(){var a=X.current;if(null===a)throw Error(B(321));return a}
21
- var Z={suspense:null},ja={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:Z,ReactCurrentOwner:I,IsSomeRendererActing:{current:!1},assign:l};exports.Children={map:function(a,b,c){if(null==a)return a;var d=[];W(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=R(null,null,b,c);V(a,ha,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){if(!O(a))throw Error(B(143));return a}};
22
- exports.Component=E;exports.Fragment=u;exports.Profiler=w;exports.PureComponent=G;exports.StrictMode=v;exports.Suspense=aa;exports.SuspenseList=ba;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ja;exports.block=function(a,b){return function(){var c=arguments;return{$$typeof:ea,query:function(){return a.apply(null,c)},render:b}}};
23
- exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(B(267,a));var d=l({},a.props),e=a.key,f=a.ref,g=a._self,h=a._source,t=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,t=I.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var m=a.type.defaultProps;for(k in b)J.call(b,k)&&!K.hasOwnProperty(k)&&(d[k]=void 0===b[k]&&void 0!==m?m[k]:b[k])}var k=arguments.length-2;if(1===k)d.children=c;else if(1<k){m=Array(k);for(var p=0;p<k;p++)m[p]=arguments[p+2];d.children=m}return L(a.type,
24
- e,f,g,h,t,d)};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:y,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:x,_context:a};return a.Consumer=a};exports.createElement=N;exports.createFactory=function(a){var b=N.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:z,render:a}};exports.isValidElement=O;exports.jsx=M;
25
- exports.jsxDEV=void 0;exports.jsxs=M;exports.lazy=function(a){return{$$typeof:da,_status:-1,_result:a}};exports.memo=function(a,b){return{$$typeof:ca,type:a,compare:void 0===b?null:b}};exports.unstable_withSuspenseConfig=function(a,b){var c=Z.suspense;Z.suspense=void 0===b?null:b;try{a()}finally{Z.suspense=c}};exports.useCallback=function(a,b){return Y().useCallback(a,b)};exports.useContext=function(a,b){return Y().useContext(a,b)};exports.useDebugValue=function(){};
26
- exports.useDeferredValue=function(a,b){return Y().useDeferredValue(a,b)};exports.useEffect=function(a,b){return Y().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return Y().useImperativeHandle(a,b,c)};exports.useLayoutEffect=function(a,b){return Y().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return Y().useMemo(a,b)};exports.useReducer=function(a,b,c){return Y().useReducer(a,b,c)};exports.useRef=function(a){return Y().useRef(a)};exports.useState=function(a){return Y().useState(a)};
27
- exports.useTransition=function(a){return Y().useTransition(a)};exports.version="16.13.0-experimental-235a6c4af";
10
+ '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.SuspenseList=60120;var u=60115,v=60116,w=60121;
11
+ if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;m=x("react.element");p=x("react.portal");exports.Fragment=x("react.fragment");exports.StrictMode=x("react.strict_mode");exports.Profiler=x("react.profiler");q=x("react.provider");r=x("react.context");t=x("react.forward_ref");exports.Suspense=x("react.suspense");exports.SuspenseList=x("react.suspense_list");u=x("react.memo");v=x("react.lazy");w=x("react.block")}var y="function"===typeof Symbol&&Symbol.iterator;
12
+ function z(a){if(null===a||"object"!==typeof a)return null;a=y&&a[y]||a["@@iterator"];return"function"===typeof a?a:null}function A(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."}
13
+ var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function D(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||B}D.prototype.isReactComponent={};D.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")};D.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
14
+ function E(){}E.prototype=D.prototype;function F(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||B}var G=F.prototype=new E;G.constructor=F;l(G,D.prototype);G.isPureReactComponent=!0;var H={current:null},I=Object.prototype.hasOwnProperty,J={key:!0,ref:!0,__self:!0,__source:!0};
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)I.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:H.current}}
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)}
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,Array.isArray(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(Array.isArray(a))for(var g=
18
+ 0;g<a.length;g++){k=a[g];var f=e+O(k,g);h+=P(k,b,c,f,d)}else if(f=z(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(A(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}
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;}function S(a){return{$$typeof:w,_data:a.load.apply(null,a.args),_render:a.render}}var T={current:null};function U(){var a=T.current;if(null===a)throw Error(A(321));return a}
20
+ var V={suspense:null},W={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:V,ReactCurrentOwner:H,IsSomeRendererActing:{current:!1},assign:l};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(A(143));return a}};exports.Component=D;exports.PureComponent=F;
21
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.block=function(a,b){return void 0===b?function(){return{$$typeof:w,_data:void 0,_render:a}}:function(){return{$$typeof:v,_payload:{load:b,args:arguments,render:a},_init:S}}};
22
+ exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(A(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=H.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)I.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,
23
+ 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=K;exports.createFactory=function(a){var b=K.bind(null,a);b.type=a;return b};exports.createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};
24
+ exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};exports.isValidElement=M;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_useOpaqueIdentifier=function(){return U().useOpaqueIdentifier()};
25
+ exports.unstable_withSuspenseConfig=function(a,b){var c=V.suspense;V.suspense=void 0===b?null:b;try{a()}finally{V.suspense=c}};exports.useCallback=function(a,b){return U().useCallback(a,b)};exports.useContext=function(a,b){return U().useContext(a,b)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return U().useDeferredValue(a,b)};exports.useEffect=function(a,b){return U().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return U().useImperativeHandle(a,b,c)};
26
+ exports.useLayoutEffect=function(a,b){return U().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return U().useMemo(a,b)};exports.useMutableSource=function(a,b,c){return U().useMutableSource(a,b,c)};exports.useReducer=function(a,b,c){return U().useReducer(a,b,c)};exports.useRef=function(a){return U().useRef(a)};exports.useState=function(a){return U().useState(a)};exports.useTransition=function(a){return U().useTransition(a)};exports.version="16.13.1-experimental-e5d06e34b";
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js');
5
+ } else {
6
+ module.exports = require('./cjs/react-jsx-dev-runtime.development.js');
7
+ }
package/jsx-runtime.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./cjs/react-jsx-runtime.production.min.js');
5
+ } else {
6
+ module.exports = require('./cjs/react-jsx-runtime.development.js');
7
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "0.0.0-experimental-235a6c4af",
7
+ "version": "0.0.0-experimental-e5d06e34b",
8
8
  "homepage": "https://reactjs.org/",
9
9
  "bugs": "https://github.com/facebook/react/issues",
10
10
  "license": "MIT",
@@ -14,7 +14,9 @@
14
14
  "build-info.json",
15
15
  "index.js",
16
16
  "cjs/",
17
- "umd/"
17
+ "umd/",
18
+ "jsx-runtime.js",
19
+ "jsx-dev-runtime.js"
18
20
  ],
19
21
  "main": "index.js",
20
22
  "repository": {
@@ -1,4 +1,4 @@
1
- /** @license React v0.0.0-experimental-235a6c4af
1
+ /** @license React v0.0.0-experimental-e5d06e34b
2
2
  * react.development.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -16,28 +16,51 @@
16
16
  }(this, (function (exports) { 'use strict';
17
17
 
18
18
  // TODO: this is special because it gets imported during build.
19
- var ReactVersion = '16.13.0-experimental-235a6c4af';
19
+ var ReactVersion = '16.13.1-experimental-e5d06e34b';
20
20
 
21
21
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
22
22
  // nor polyfill, then a plain number is used for performance.
23
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
24
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
25
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
26
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
27
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
28
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
29
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
30
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
31
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
32
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
33
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
34
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
35
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
36
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
37
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
38
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
39
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
40
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
23
+ var REACT_ELEMENT_TYPE = 0xeac7;
24
+ var REACT_PORTAL_TYPE = 0xeaca;
25
+ exports.Fragment = 0xeacb;
26
+ exports.StrictMode = 0xeacc;
27
+ exports.Profiler = 0xead2;
28
+ var REACT_PROVIDER_TYPE = 0xeacd;
29
+ var REACT_CONTEXT_TYPE = 0xeace;
30
+ var REACT_FORWARD_REF_TYPE = 0xead0;
31
+ exports.Suspense = 0xead1;
32
+ exports.SuspenseList = 0xead8;
33
+ var REACT_MEMO_TYPE = 0xead3;
34
+ var REACT_LAZY_TYPE = 0xead4;
35
+ var REACT_BLOCK_TYPE = 0xead9;
36
+ var REACT_SERVER_BLOCK_TYPE = 0xeada;
37
+ var REACT_FUNDAMENTAL_TYPE = 0xead5;
38
+ var REACT_RESPONDER_TYPE = 0xead6;
39
+ var REACT_SCOPE_TYPE = 0xead7;
40
+ var REACT_OPAQUE_ID_TYPE = 0xeae0;
41
+
42
+ if (typeof Symbol === 'function' && Symbol.for) {
43
+ var symbolFor = Symbol.for;
44
+ REACT_ELEMENT_TYPE = symbolFor('react.element');
45
+ REACT_PORTAL_TYPE = symbolFor('react.portal');
46
+ exports.Fragment = symbolFor('react.fragment');
47
+ exports.StrictMode = symbolFor('react.strict_mode');
48
+ exports.Profiler = symbolFor('react.profiler');
49
+ REACT_PROVIDER_TYPE = symbolFor('react.provider');
50
+ REACT_CONTEXT_TYPE = symbolFor('react.context');
51
+ REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
52
+ exports.Suspense = symbolFor('react.suspense');
53
+ exports.SuspenseList = symbolFor('react.suspense_list');
54
+ REACT_MEMO_TYPE = symbolFor('react.memo');
55
+ REACT_LAZY_TYPE = symbolFor('react.lazy');
56
+ REACT_BLOCK_TYPE = symbolFor('react.block');
57
+ REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
58
+ REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
59
+ REACT_RESPONDER_TYPE = symbolFor('react.responder');
60
+ REACT_SCOPE_TYPE = symbolFor('react.scope');
61
+ REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
62
+ }
63
+
41
64
  var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
42
65
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
43
66
  function getIteratorFn(maybeIterable) {
@@ -116,26 +139,24 @@
116
139
  };
117
140
 
118
141
  var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
119
- function describeComponentFrame (name, source, ownerName) {
142
+
143
+ function describeComponentFrame(name, source, ownerName) {
120
144
  var sourceInfo = '';
121
145
 
122
- if (source) {
146
+ if ( source) {
123
147
  var path = source.fileName;
124
- var fileName = path.replace(BEFORE_SLASH_RE, '');
148
+ var fileName = path.replace(BEFORE_SLASH_RE, ''); // In DEV, include code for a common special case:
149
+ // prefer "folder/index.js" instead of just "index.js".
125
150
 
126
- {
127
- // In DEV, include code for a common special case:
128
- // prefer "folder/index.js" instead of just "index.js".
129
- if (/^index\./.test(fileName)) {
130
- var match = path.match(BEFORE_SLASH_RE);
151
+ if (/^index\./.test(fileName)) {
152
+ var match = path.match(BEFORE_SLASH_RE);
131
153
 
132
- if (match) {
133
- var pathBeforeSlash = match[1];
154
+ if (match) {
155
+ var pathBeforeSlash = match[1];
134
156
 
135
- if (pathBeforeSlash) {
136
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
137
- fileName = folderName + '/' + fileName;
138
- }
157
+ if (pathBeforeSlash) {
158
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
159
+ fileName = folderName + '/' + fileName;
139
160
  }
140
161
  }
141
162
  }
@@ -148,96 +169,91 @@
148
169
  return '\n in ' + (name || 'Unknown') + sourceInfo;
149
170
  }
150
171
 
151
- // TODO: Move this to "react" once we can import from externals.
152
- var Resolved = 1;
172
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
173
+ var ownerName = null;
174
+
175
+ if ( ownerFn) {
176
+ ownerName = ownerFn.displayName || ownerFn.name || null;
177
+ }
153
178
 
154
- function refineResolvedLazyComponent(lazyComponent) {
155
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
179
+ return describeComponentFrame(name, source, ownerName);
180
+ }
181
+ function describeClassComponentFrame(ctor, source, ownerFn) {
182
+ return describeFunctionComponentFrame(ctor, source, ownerFn);
156
183
  }
184
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
185
+ if (!fn) {
186
+ return '';
187
+ }
157
188
 
158
- function getWrappedName(outerType, innerType, wrapperName) {
159
- var functionName = innerType.displayName || innerType.name || '';
160
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
189
+ var name = fn.displayName || fn.name || null;
190
+ var ownerName = null;
191
+
192
+ if ( ownerFn) {
193
+ ownerName = ownerFn.displayName || ownerFn.name || null;
194
+ }
195
+
196
+ return describeComponentFrame(name, source, ownerName);
161
197
  }
162
198
 
163
- function getContextName(type) {
164
- return type.displayName || 'Context';
199
+ function shouldConstruct(Component) {
200
+ var prototype = Component.prototype;
201
+ return !!(prototype && prototype.isReactComponent);
165
202
  }
166
203
 
167
- function getComponentName(type) {
204
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
205
+
168
206
  if (type == null) {
169
- // Host root, text node or just invalid type.
170
- return null;
207
+ return '';
171
208
  }
172
209
 
173
- {
174
- if (typeof type.tag === 'number') {
175
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
210
+ if (typeof type === 'function') {
211
+ if (shouldConstruct(type)) {
212
+ return describeClassComponentFrame(type, source, ownerFn);
176
213
  }
177
- }
178
214
 
179
- if (typeof type === 'function') {
180
- return type.displayName || type.name || null;
215
+ return describeFunctionComponentFrame(type, source, ownerFn);
181
216
  }
182
217
 
183
218
  if (typeof type === 'string') {
184
- return type;
219
+ return describeBuiltInComponentFrame(type, source, ownerFn);
185
220
  }
186
221
 
187
222
  switch (type) {
188
- case REACT_FRAGMENT_TYPE:
189
- return 'Fragment';
190
-
191
- case REACT_PORTAL_TYPE:
192
- return 'Portal';
193
-
194
- case REACT_PROFILER_TYPE:
195
- return "Profiler";
196
-
197
- case REACT_STRICT_MODE_TYPE:
198
- return 'StrictMode';
199
-
200
- case REACT_SUSPENSE_TYPE:
201
- return 'Suspense';
223
+ case exports.Suspense:
224
+ return describeBuiltInComponentFrame('Suspense', source, ownerFn);
202
225
 
203
- case REACT_SUSPENSE_LIST_TYPE:
204
- return 'SuspenseList';
226
+ case exports.SuspenseList:
227
+ return describeBuiltInComponentFrame('SuspenseList', source, ownerFn);
205
228
  }
206
229
 
207
230
  if (typeof type === 'object') {
208
231
  switch (type.$$typeof) {
209
- case REACT_CONTEXT_TYPE:
210
- var context = type;
211
- return getContextName(context) + '.Consumer';
212
-
213
- case REACT_PROVIDER_TYPE:
214
- var provider = type;
215
- return getContextName(provider._context) + '.Provider';
216
-
217
232
  case REACT_FORWARD_REF_TYPE:
218
- return getWrappedName(type, type.render, 'ForwardRef');
233
+ return describeFunctionComponentFrame(type.render, source, ownerFn);
219
234
 
220
235
  case REACT_MEMO_TYPE:
221
- return getComponentName(type.type);
236
+ // Memo may contain any component type so we recursively resolve it.
237
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
222
238
 
223
239
  case REACT_BLOCK_TYPE:
224
- return getComponentName(type.render);
240
+ return describeFunctionComponentFrame(type._render, source, ownerFn);
225
241
 
226
242
  case REACT_LAZY_TYPE:
227
243
  {
228
- var thenable = type;
229
- var resolvedThenable = refineResolvedLazyComponent(thenable);
230
-
231
- if (resolvedThenable) {
232
- return getComponentName(resolvedThenable);
233
- }
234
-
235
- break;
244
+ var lazyComponent = type;
245
+ var payload = lazyComponent._payload;
246
+ var init = lazyComponent._init;
247
+
248
+ try {
249
+ // Lazy may contain any component type so we recursively resolve it.
250
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
251
+ } catch (x) {}
236
252
  }
237
253
  }
238
254
  }
239
255
 
240
- return null;
256
+ return '';
241
257
  }
242
258
 
243
259
  var ReactDebugCurrentFrame = {};
@@ -249,16 +265,21 @@
249
265
  }
250
266
 
251
267
  {
252
- // Stack implementation injected by the current renderer.
268
+ ReactDebugCurrentFrame.setCurrentlyValidatingElement = function (element) {
269
+ {
270
+ currentlyValidatingElement = element;
271
+ }
272
+ }; // Stack implementation injected by the current renderer.
273
+
274
+
253
275
  ReactDebugCurrentFrame.getCurrentStack = null;
254
276
 
255
277
  ReactDebugCurrentFrame.getStackAddendum = function () {
256
278
  var stack = ''; // Add an extra top frame while an element is being validated
257
279
 
258
280
  if (currentlyValidatingElement) {
259
- var name = getComponentName(currentlyValidatingElement.type);
260
281
  var owner = currentlyValidatingElement._owner;
261
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
282
+ stack += describeUnknownElementTypeFrameInDEV(currentlyValidatingElement.type, currentlyValidatingElement._source, owner ? owner.type : null);
262
283
  } // Delegate to the injected renderer-specific implementation
263
284
 
264
285
 
@@ -588,6 +609,92 @@
588
609
  return refObject;
589
610
  }
590
611
 
612
+ function getWrappedName(outerType, innerType, wrapperName) {
613
+ var functionName = innerType.displayName || innerType.name || '';
614
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
615
+ }
616
+
617
+ function getContextName(type) {
618
+ return type.displayName || 'Context';
619
+ }
620
+
621
+ function getComponentName(type) {
622
+ if (type == null) {
623
+ // Host root, text node or just invalid type.
624
+ return null;
625
+ }
626
+
627
+ {
628
+ if (typeof type.tag === 'number') {
629
+ error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
630
+ }
631
+ }
632
+
633
+ if (typeof type === 'function') {
634
+ return type.displayName || type.name || null;
635
+ }
636
+
637
+ if (typeof type === 'string') {
638
+ return type;
639
+ }
640
+
641
+ switch (type) {
642
+ case exports.Fragment:
643
+ return 'Fragment';
644
+
645
+ case REACT_PORTAL_TYPE:
646
+ return 'Portal';
647
+
648
+ case exports.Profiler:
649
+ return "Profiler";
650
+
651
+ case exports.StrictMode:
652
+ return 'StrictMode';
653
+
654
+ case exports.Suspense:
655
+ return 'Suspense';
656
+
657
+ case exports.SuspenseList:
658
+ return 'SuspenseList';
659
+ }
660
+
661
+ if (typeof type === 'object') {
662
+ switch (type.$$typeof) {
663
+ case REACT_CONTEXT_TYPE:
664
+ var context = type;
665
+ return getContextName(context) + '.Consumer';
666
+
667
+ case REACT_PROVIDER_TYPE:
668
+ var provider = type;
669
+ return getContextName(provider._context) + '.Provider';
670
+
671
+ case REACT_FORWARD_REF_TYPE:
672
+ return getWrappedName(type, type.render, 'ForwardRef');
673
+
674
+ case REACT_MEMO_TYPE:
675
+ return getComponentName(type.type);
676
+
677
+ case REACT_BLOCK_TYPE:
678
+ return getComponentName(type._render);
679
+
680
+ case REACT_LAZY_TYPE:
681
+ {
682
+ var lazyComponent = type;
683
+ var payload = lazyComponent._payload;
684
+ var init = lazyComponent._init;
685
+
686
+ try {
687
+ return getComponentName(init(payload));
688
+ } catch (x) {
689
+ return null;
690
+ }
691
+ }
692
+ }
693
+ }
694
+
695
+ return null;
696
+ }
697
+
591
698
  var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
592
699
  var RESERVED_PROPS = {
593
700
  key: true,
@@ -671,7 +778,7 @@
671
778
  var componentName = getComponentName(ReactCurrentOwner.current.type);
672
779
 
673
780
  if (!didWarnAboutStringRefs[componentName]) {
674
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
781
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', componentName, config.ref);
675
782
 
676
783
  didWarnAboutStringRefs[componentName] = true;
677
784
  }
@@ -753,70 +860,6 @@
753
860
 
754
861
  return element;
755
862
  };
756
- /**
757
- * https://github.com/reactjs/rfcs/pull/107
758
- * @param {*} type
759
- * @param {object} props
760
- * @param {string} key
761
- */
762
-
763
- function jsxDEV(type, config, maybeKey, source, self) {
764
- var propName; // Reserved names are extracted
765
-
766
- var props = {};
767
- var key = null;
768
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
769
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
770
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
771
- // but as an intermediary step, we will use jsxDEV for everything except
772
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
773
- // key is explicitly declared to be undefined or not.
774
-
775
- if (maybeKey !== undefined) {
776
- key = '' + maybeKey;
777
- }
778
-
779
- if (hasValidKey(config)) {
780
- key = '' + config.key;
781
- }
782
-
783
- if (hasValidRef(config)) {
784
- ref = config.ref;
785
- warnIfStringRefCannotBeAutoConverted(config);
786
- } // Remaining properties are added to a new props object
787
-
788
-
789
- for (propName in config) {
790
- if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
791
- props[propName] = config[propName];
792
- }
793
- } // Resolve default props
794
-
795
-
796
- if (type && type.defaultProps) {
797
- var defaultProps = type.defaultProps;
798
-
799
- for (propName in defaultProps) {
800
- if (props[propName] === undefined) {
801
- props[propName] = defaultProps[propName];
802
- }
803
- }
804
- }
805
-
806
- if (key || ref) {
807
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
808
-
809
- if (key) {
810
- defineKeyPropWarningGetter(props, displayName);
811
- }
812
-
813
- if (ref) {
814
- defineRefPropWarningGetter(props, displayName);
815
- }
816
- }
817
-
818
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
819
- }
820
863
  /**
821
864
  * Create and return a new ReactElement of the given type.
822
865
  * See https://reactjs.org/docs/react-api.html#createelement
@@ -1010,7 +1053,7 @@
1010
1053
  '=': '=0',
1011
1054
  ':': '=2'
1012
1055
  };
1013
- var escapedString = ('' + key).replace(escapeRegex, function (match) {
1056
+ var escapedString = key.replace(escapeRegex, function (match) {
1014
1057
  return escaperLookup[match];
1015
1058
  });
1016
1059
  return '$' + escapedString;
@@ -1025,54 +1068,30 @@
1025
1068
  var userProvidedKeyEscapeRegex = /\/+/g;
1026
1069
 
1027
1070
  function escapeUserProvidedKey(text) {
1028
- return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
1071
+ return text.replace(userProvidedKeyEscapeRegex, '$&/');
1029
1072
  }
1073
+ /**
1074
+ * Generate a key string that identifies a element within a set.
1075
+ *
1076
+ * @param {*} element A element that could contain a manual key.
1077
+ * @param {number} index Index that is used if a manual key is not provided.
1078
+ * @return {string}
1079
+ */
1030
1080
 
1031
- var POOL_SIZE = 10;
1032
- var traverseContextPool = [];
1033
1081
 
1034
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
1035
- if (traverseContextPool.length) {
1036
- var traverseContext = traverseContextPool.pop();
1037
- traverseContext.result = mapResult;
1038
- traverseContext.keyPrefix = keyPrefix;
1039
- traverseContext.func = mapFunction;
1040
- traverseContext.context = mapContext;
1041
- traverseContext.count = 0;
1042
- return traverseContext;
1043
- } else {
1044
- return {
1045
- result: mapResult,
1046
- keyPrefix: keyPrefix,
1047
- func: mapFunction,
1048
- context: mapContext,
1049
- count: 0
1050
- };
1051
- }
1052
- }
1082
+ function getElementKey(element, index) {
1083
+ // Do some typechecking here since we call this blindly. We want to ensure
1084
+ // that we don't block potential future ES APIs.
1085
+ if (typeof element === 'object' && element !== null && element.key != null) {
1086
+ // Explicit key
1087
+ return escape('' + element.key);
1088
+ } // Implicit key determined by the index in the set
1053
1089
 
1054
- function releaseTraverseContext(traverseContext) {
1055
- traverseContext.result = null;
1056
- traverseContext.keyPrefix = null;
1057
- traverseContext.func = null;
1058
- traverseContext.context = null;
1059
- traverseContext.count = 0;
1060
1090
 
1061
- if (traverseContextPool.length < POOL_SIZE) {
1062
- traverseContextPool.push(traverseContext);
1063
- }
1091
+ return index.toString(36);
1064
1092
  }
1065
- /**
1066
- * @param {?*} children Children tree container.
1067
- * @param {!string} nameSoFar Name of the key path so far.
1068
- * @param {!function} callback Callback to invoke with each child found.
1069
- * @param {?*} traverseContext Used to pass information throughout the traversal
1070
- * process.
1071
- * @return {!number} The number of children in this subtree.
1072
- */
1073
1093
 
1074
-
1075
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
1094
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1076
1095
  var type = typeof children;
1077
1096
 
1078
1097
  if (type === 'undefined' || type === 'boolean') {
@@ -1102,9 +1121,34 @@
1102
1121
  }
1103
1122
 
1104
1123
  if (invokeCallback) {
1105
- callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
1106
- // so that it's consistent if the number of children grows.
1107
- nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
1124
+ var _child = children;
1125
+ var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
1126
+ // so that it's consistent if the number of children grows:
1127
+
1128
+ var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1129
+
1130
+ if (Array.isArray(mappedChild)) {
1131
+ var escapedChildKey = '';
1132
+
1133
+ if (childKey != null) {
1134
+ escapedChildKey = escapeUserProvidedKey(childKey) + '/';
1135
+ }
1136
+
1137
+ mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
1138
+ return c;
1139
+ });
1140
+ } else if (mappedChild != null) {
1141
+ if (isValidElement(mappedChild)) {
1142
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1143
+ // traverseAllChildren used to do for objects as children
1144
+ escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1145
+ mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1146
+ escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
1147
+ }
1148
+
1149
+ array.push(mappedChild);
1150
+ }
1151
+
1108
1152
  return 1;
1109
1153
  }
1110
1154
 
@@ -1117,33 +1161,34 @@
1117
1161
  if (Array.isArray(children)) {
1118
1162
  for (var i = 0; i < children.length; i++) {
1119
1163
  child = children[i];
1120
- nextName = nextNamePrefix + getComponentKey(child, i);
1121
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1164
+ nextName = nextNamePrefix + getElementKey(child, i);
1165
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1122
1166
  }
1123
1167
  } else {
1124
1168
  var iteratorFn = getIteratorFn(children);
1125
1169
 
1126
1170
  if (typeof iteratorFn === 'function') {
1171
+ var iterableChildren = children;
1127
1172
 
1128
1173
  {
1129
1174
  // Warn about using Maps as children
1130
- if (iteratorFn === children.entries) {
1175
+ if (iteratorFn === iterableChildren.entries) {
1131
1176
  if (!didWarnAboutMaps) {
1132
- warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
1177
+ warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
1133
1178
  }
1134
1179
 
1135
1180
  didWarnAboutMaps = true;
1136
1181
  }
1137
1182
  }
1138
1183
 
1139
- var iterator = iteratorFn.call(children);
1184
+ var iterator = iteratorFn.call(iterableChildren);
1140
1185
  var step;
1141
1186
  var ii = 0;
1142
1187
 
1143
1188
  while (!(step = iterator.next()).done) {
1144
1189
  child = step.value;
1145
- nextName = nextNamePrefix + getComponentKey(child, ii++);
1146
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1190
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1191
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1147
1192
  }
1148
1193
  } else if (type === 'object') {
1149
1194
  var addendum = '';
@@ -1164,114 +1209,7 @@
1164
1209
 
1165
1210
  return subtreeCount;
1166
1211
  }
1167
- /**
1168
- * Traverses children that are typically specified as `props.children`, but
1169
- * might also be specified through attributes:
1170
- *
1171
- * - `traverseAllChildren(this.props.children, ...)`
1172
- * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
1173
- *
1174
- * The `traverseContext` is an optional argument that is passed through the
1175
- * entire traversal. It can be used to store accumulations or anything else that
1176
- * the callback might find relevant.
1177
- *
1178
- * @param {?*} children Children tree object.
1179
- * @param {!function} callback To invoke upon traversing each child.
1180
- * @param {?*} traverseContext Context for traversal.
1181
- * @return {!number} The number of children in this subtree.
1182
- */
1183
1212
 
1184
-
1185
- function traverseAllChildren(children, callback, traverseContext) {
1186
- if (children == null) {
1187
- return 0;
1188
- }
1189
-
1190
- return traverseAllChildrenImpl(children, '', callback, traverseContext);
1191
- }
1192
- /**
1193
- * Generate a key string that identifies a component within a set.
1194
- *
1195
- * @param {*} component A component that could contain a manual key.
1196
- * @param {number} index Index that is used if a manual key is not provided.
1197
- * @return {string}
1198
- */
1199
-
1200
-
1201
- function getComponentKey(component, index) {
1202
- // Do some typechecking here since we call this blindly. We want to ensure
1203
- // that we don't block potential future ES APIs.
1204
- if (typeof component === 'object' && component !== null && component.key != null) {
1205
- // Explicit key
1206
- return escape(component.key);
1207
- } // Implicit key determined by the index in the set
1208
-
1209
-
1210
- return index.toString(36);
1211
- }
1212
-
1213
- function forEachSingleChild(bookKeeping, child, name) {
1214
- var func = bookKeeping.func,
1215
- context = bookKeeping.context;
1216
- func.call(context, child, bookKeeping.count++);
1217
- }
1218
- /**
1219
- * Iterates through children that are typically specified as `props.children`.
1220
- *
1221
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1222
- *
1223
- * The provided forEachFunc(child, index) will be called for each
1224
- * leaf child.
1225
- *
1226
- * @param {?*} children Children tree container.
1227
- * @param {function(*, int)} forEachFunc
1228
- * @param {*} forEachContext Context for forEachContext.
1229
- */
1230
-
1231
-
1232
- function forEachChildren(children, forEachFunc, forEachContext) {
1233
- if (children == null) {
1234
- return children;
1235
- }
1236
-
1237
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
1238
- traverseAllChildren(children, forEachSingleChild, traverseContext);
1239
- releaseTraverseContext(traverseContext);
1240
- }
1241
-
1242
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
1243
- var result = bookKeeping.result,
1244
- keyPrefix = bookKeeping.keyPrefix,
1245
- func = bookKeeping.func,
1246
- context = bookKeeping.context;
1247
- var mappedChild = func.call(context, child, bookKeeping.count++);
1248
-
1249
- if (Array.isArray(mappedChild)) {
1250
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
1251
- return c;
1252
- });
1253
- } else if (mappedChild != null) {
1254
- if (isValidElement(mappedChild)) {
1255
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1256
- // traverseAllChildren used to do for objects as children
1257
- keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
1258
- }
1259
-
1260
- result.push(mappedChild);
1261
- }
1262
- }
1263
-
1264
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
1265
- var escapedPrefix = '';
1266
-
1267
- if (prefix != null) {
1268
- escapedPrefix = escapeUserProvidedKey(prefix) + '/';
1269
- }
1270
-
1271
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
1272
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
1273
- releaseTraverseContext(traverseContext);
1274
- }
1275
1213
  /**
1276
1214
  * Maps children that are typically specified as `props.children`.
1277
1215
  *
@@ -1285,15 +1223,16 @@
1285
1223
  * @param {*} context Context for mapFunction.
1286
1224
  * @return {object} Object containing the ordered map of results.
1287
1225
  */
1288
-
1289
-
1290
1226
  function mapChildren(children, func, context) {
1291
1227
  if (children == null) {
1292
1228
  return children;
1293
1229
  }
1294
1230
 
1295
1231
  var result = [];
1296
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
1232
+ var count = 0;
1233
+ mapIntoArray(children, result, '', '', function (child) {
1234
+ return func.call(context, child, count++);
1235
+ });
1297
1236
  return result;
1298
1237
  }
1299
1238
  /**
@@ -1308,9 +1247,29 @@
1308
1247
 
1309
1248
 
1310
1249
  function countChildren(children) {
1311
- return traverseAllChildren(children, function () {
1312
- return null;
1313
- }, null);
1250
+ var n = 0;
1251
+ mapChildren(children, function () {
1252
+ n++; // Don't return anything
1253
+ });
1254
+ return n;
1255
+ }
1256
+
1257
+ /**
1258
+ * Iterates through children that are typically specified as `props.children`.
1259
+ *
1260
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1261
+ *
1262
+ * The provided forEachFunc(child, index) will be called for each
1263
+ * leaf child.
1264
+ *
1265
+ * @param {?*} children Children tree container.
1266
+ * @param {function(*, int)} forEachFunc
1267
+ * @param {*} forEachContext Context for forEachContext.
1268
+ */
1269
+ function forEachChildren(children, forEachFunc, forEachContext) {
1270
+ mapChildren(children, function () {
1271
+ forEachFunc.apply(this, arguments); // Don't return anything.
1272
+ }, forEachContext);
1314
1273
  }
1315
1274
  /**
1316
1275
  * Flatten a children object (typically specified as `props.children`) and
@@ -1321,11 +1280,9 @@
1321
1280
 
1322
1281
 
1323
1282
  function toArray(children) {
1324
- var result = [];
1325
- mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
1283
+ return mapChildren(children, function (child) {
1326
1284
  return child;
1327
- });
1328
- return result;
1285
+ }) || [];
1329
1286
  }
1330
1287
  /**
1331
1288
  * Returns the first child in a collection of children and verifies that there
@@ -1453,9 +1410,9 @@
1453
1410
  get: function () {
1454
1411
  return context.displayName;
1455
1412
  },
1456
- set: function () {
1413
+ set: function (displayName) {
1457
1414
  if (!hasWarnedAboutDisplayNameOnConsumer) {
1458
- warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = 'NamedContext'.");
1415
+ warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
1459
1416
 
1460
1417
  hasWarnedAboutDisplayNameOnConsumer = true;
1461
1418
  }
@@ -1474,13 +1431,63 @@
1474
1431
  return context;
1475
1432
  }
1476
1433
 
1434
+ var Uninitialized = -1;
1435
+ var Pending = 0;
1436
+ var Resolved = 1;
1437
+ var Rejected = 2;
1438
+
1439
+ function lazyInitializer(payload) {
1440
+ if (payload._status === Uninitialized) {
1441
+ var ctor = payload._result;
1442
+ var thenable = ctor(); // Transition to the next state.
1443
+
1444
+ var pending = payload;
1445
+ pending._status = Pending;
1446
+ pending._result = thenable;
1447
+ thenable.then(function (moduleObject) {
1448
+ if (payload._status === Pending) {
1449
+ var defaultExport = moduleObject.default;
1450
+
1451
+ {
1452
+ if (defaultExport === undefined) {
1453
+ error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1454
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
1455
+ }
1456
+ } // Transition to the next state.
1457
+
1458
+
1459
+ var resolved = payload;
1460
+ resolved._status = Resolved;
1461
+ resolved._result = defaultExport;
1462
+ }
1463
+ }, function (error) {
1464
+ if (payload._status === Pending) {
1465
+ // Transition to the next state.
1466
+ var rejected = payload;
1467
+ rejected._status = Rejected;
1468
+ rejected._result = error;
1469
+ }
1470
+ });
1471
+ }
1472
+
1473
+ if (payload._status === Resolved) {
1474
+ return payload._result;
1475
+ } else {
1476
+ throw payload._result;
1477
+ }
1478
+ }
1479
+
1477
1480
  function lazy(ctor) {
1478
- var lazyType = {
1479
- $$typeof: REACT_LAZY_TYPE,
1480
- // React uses these fields to store the result.
1481
+ var payload = {
1482
+ // We use these fields to store the result.
1481
1483
  _status: -1,
1482
1484
  _result: ctor
1483
1485
  };
1486
+ var lazyType = {
1487
+ $$typeof: REACT_LAZY_TYPE,
1488
+ _payload: payload,
1489
+ _init: lazyInitializer
1490
+ };
1484
1491
 
1485
1492
  {
1486
1493
  // In production, this would just set it on the object.
@@ -1545,15 +1552,35 @@
1545
1552
  }
1546
1553
  }
1547
1554
 
1548
- return {
1555
+ var elementType = {
1549
1556
  $$typeof: REACT_FORWARD_REF_TYPE,
1550
1557
  render: render
1551
1558
  };
1559
+
1560
+ {
1561
+ var ownName;
1562
+ Object.defineProperty(elementType, 'displayName', {
1563
+ enumerable: false,
1564
+ configurable: true,
1565
+ get: function () {
1566
+ return ownName;
1567
+ },
1568
+ set: function (name) {
1569
+ ownName = name;
1570
+
1571
+ if (render.displayName == null) {
1572
+ render.displayName = name;
1573
+ }
1574
+ }
1575
+ });
1576
+ }
1577
+
1578
+ return elementType;
1552
1579
  }
1553
1580
 
1554
1581
  function isValidElementType(type) {
1555
1582
  return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1556
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1583
+ type === exports.Fragment || type === exports.Profiler || type === exports.StrictMode || type === exports.Suspense || type === exports.SuspenseList || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE);
1557
1584
  }
1558
1585
 
1559
1586
  function memo(type, compare) {
@@ -1563,17 +1590,45 @@
1563
1590
  }
1564
1591
  }
1565
1592
 
1566
- return {
1593
+ var elementType = {
1567
1594
  $$typeof: REACT_MEMO_TYPE,
1568
1595
  type: type,
1569
1596
  compare: compare === undefined ? null : compare
1570
1597
  };
1598
+
1599
+ {
1600
+ var ownName;
1601
+ Object.defineProperty(elementType, 'displayName', {
1602
+ enumerable: false,
1603
+ configurable: true,
1604
+ get: function () {
1605
+ return ownName;
1606
+ },
1607
+ set: function (name) {
1608
+ ownName = name;
1609
+
1610
+ if (type.displayName == null) {
1611
+ type.displayName = name;
1612
+ }
1613
+ }
1614
+ });
1615
+ }
1616
+
1617
+ return elementType;
1618
+ }
1619
+
1620
+ function lazyInitializer$1(payload) {
1621
+ return {
1622
+ $$typeof: REACT_BLOCK_TYPE,
1623
+ _data: payload.load.apply(null, payload.args),
1624
+ _render: payload.render
1625
+ };
1571
1626
  }
1572
1627
 
1573
- function block(query, render) {
1628
+ function block(render, load) {
1574
1629
  {
1575
- if (typeof query !== 'function') {
1576
- error('Blocks require a query function but was given %s.', query === null ? 'null' : typeof query);
1630
+ if (load !== undefined && typeof load !== 'function') {
1631
+ error('Blocks require a load function, if provided, but was given %s.', load === null ? 'null' : typeof load);
1577
1632
  }
1578
1633
 
1579
1634
  if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
@@ -1584,7 +1639,7 @@
1584
1639
  error('Blocks require a render function but was given %s.', render === null ? 'null' : typeof render);
1585
1640
  } else if (render.length !== 0 && render.length !== 2) {
1586
1641
  // Warn if it's not accepting two args.
1587
- // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
1642
+ // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object.
1588
1643
  error('Block render functions accept exactly two parameters: props and data. %s', render.length === 1 ? 'Did you forget to use the data parameter?' : 'Any additional parameter will be undefined.');
1589
1644
  }
1590
1645
 
@@ -1593,15 +1648,35 @@
1593
1648
  }
1594
1649
  }
1595
1650
 
1651
+ if (load === undefined) {
1652
+ return function () {
1653
+ var blockComponent = {
1654
+ $$typeof: REACT_BLOCK_TYPE,
1655
+ _data: undefined,
1656
+ // $FlowFixMe: Data must be void in this scenario.
1657
+ _render: render
1658
+ }; // $FlowFixMe: Upstream BlockComponent to Flow as a valid Node.
1659
+
1660
+ return blockComponent;
1661
+ };
1662
+ } // Trick to let Flow refine this.
1663
+
1664
+
1665
+ var loadFn = load;
1596
1666
  return function () {
1597
1667
  var args = arguments;
1598
- return {
1599
- $$typeof: REACT_BLOCK_TYPE,
1600
- query: function () {
1601
- return query.apply(null, args);
1602
- },
1668
+ var payload = {
1669
+ load: loadFn,
1670
+ args: args,
1603
1671
  render: render
1604
1672
  };
1673
+ var lazyType = {
1674
+ $$typeof: REACT_LAZY_TYPE,
1675
+ _payload: payload,
1676
+ _init: lazyInitializer$1
1677
+ }; // $FlowFixMe: Upstream BlockComponent to Flow as a valid Node.
1678
+
1679
+ return lazyType;
1605
1680
  };
1606
1681
  }
1607
1682
 
@@ -1686,6 +1761,14 @@
1686
1761
  var dispatcher = resolveDispatcher();
1687
1762
  return dispatcher.useDeferredValue(value, config);
1688
1763
  }
1764
+ function useOpaqueIdentifier() {
1765
+ var dispatcher = resolveDispatcher();
1766
+ return dispatcher.useOpaqueIdentifier();
1767
+ }
1768
+ function useMutableSource(source, getSnapshot, subscribe) {
1769
+ var dispatcher = resolveDispatcher();
1770
+ return dispatcher.useMutableSource(source, getSnapshot, subscribe);
1771
+ }
1689
1772
 
1690
1773
  function withSuspenseConfig(scope, config) {
1691
1774
  var previousConfig = ReactCurrentBatchConfig.suspense;
@@ -1961,98 +2044,6 @@
1961
2044
  setCurrentlyValidatingElement(null);
1962
2045
  }
1963
2046
  }
1964
-
1965
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1966
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1967
- // succeed and there will likely be errors in render.
1968
-
1969
- if (!validType) {
1970
- var info = '';
1971
-
1972
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1973
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1974
- }
1975
-
1976
- var sourceInfo = getSourceInfoErrorAddendum(source);
1977
-
1978
- if (sourceInfo) {
1979
- info += sourceInfo;
1980
- } else {
1981
- info += getDeclarationErrorAddendum();
1982
- }
1983
-
1984
- var typeString;
1985
-
1986
- if (type === null) {
1987
- typeString = 'null';
1988
- } else if (Array.isArray(type)) {
1989
- typeString = 'array';
1990
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1991
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
1992
- info = ' Did you accidentally export a JSX literal instead of a component?';
1993
- } else {
1994
- typeString = typeof type;
1995
- }
1996
-
1997
- {
1998
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1999
- }
2000
- }
2001
-
2002
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
2003
- // TODO: Drop this when these are no longer allowed as the type argument.
2004
-
2005
- if (element == null) {
2006
- return element;
2007
- } // Skip key warning if the type isn't valid since our key validation logic
2008
- // doesn't expect a non-string/function type and can throw confusing errors.
2009
- // We don't want exception behavior to differ between dev and prod.
2010
- // (Rendering will throw with a helpful message and as soon as the type is
2011
- // fixed, the key warnings will appear.)
2012
-
2013
-
2014
- if (validType) {
2015
- var children = props.children;
2016
-
2017
- if (children !== undefined) {
2018
- if (isStaticChildren) {
2019
- if (Array.isArray(children)) {
2020
- for (var i = 0; i < children.length; i++) {
2021
- validateChildKeys(children[i], type);
2022
- }
2023
-
2024
- if (Object.freeze) {
2025
- Object.freeze(children);
2026
- }
2027
- } else {
2028
- {
2029
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
2030
- }
2031
- }
2032
- } else {
2033
- validateChildKeys(children, type);
2034
- }
2035
- }
2036
- }
2037
-
2038
- if (type === REACT_FRAGMENT_TYPE) {
2039
- validateFragmentProps(element);
2040
- } else {
2041
- validatePropTypes(element);
2042
- }
2043
-
2044
- return element;
2045
- } // These two functions exist to still get child warnings in dev
2046
- // even with the prod transform. This means that jsxDEV is purely
2047
- // opt-in behavior for better messages but that we won't stop
2048
- // giving you warnings if you use production apis.
2049
-
2050
- function jsxWithValidationStatic(type, props, key) {
2051
- return jsxWithValidation(type, props, key, true);
2052
- }
2053
- function jsxWithValidationDynamic(type, props, key) {
2054
- return jsxWithValidation(type, props, key, false);
2055
- }
2056
2047
  function createElementWithValidation(type, props, children) {
2057
2048
  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2058
2049
  // succeed and there will likely be errors in render.
@@ -2108,7 +2099,7 @@
2108
2099
  }
2109
2100
  }
2110
2101
 
2111
- if (type === REACT_FRAGMENT_TYPE) {
2102
+ if (type === exports.Fragment) {
2112
2103
  validateFragmentProps(element);
2113
2104
  } else {
2114
2105
  validatePropTypes(element);
@@ -2155,6 +2146,22 @@
2155
2146
  return newElement;
2156
2147
  }
2157
2148
 
2149
+ function createMutableSource(source, getVersion) {
2150
+ var mutableSource = {
2151
+ _getVersion: getVersion,
2152
+ _source: source,
2153
+ _workInProgressVersionPrimary: null,
2154
+ _workInProgressVersionSecondary: null
2155
+ };
2156
+
2157
+ {
2158
+ mutableSource._currentPrimaryRenderer = null;
2159
+ mutableSource._currentSecondaryRenderer = null;
2160
+ }
2161
+
2162
+ return mutableSource;
2163
+ }
2164
+
2158
2165
  var enableSchedulerDebugging = false;
2159
2166
  var enableProfiling = true;
2160
2167
 
@@ -3346,6 +3353,7 @@
3346
3353
  ReactCurrentDispatcher: ReactCurrentDispatcher,
3347
3354
  ReactCurrentOwner: ReactCurrentOwner,
3348
3355
  IsSomeRendererActing: IsSomeRendererActing,
3356
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
3349
3357
  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
3350
3358
  assign: _assign$1
3351
3359
  };
@@ -3374,13 +3382,11 @@
3374
3382
 
3375
3383
  try {
3376
3384
  var frozenObject = Object.freeze({});
3377
- var testMap = new Map([[frozenObject, null]]);
3378
- var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
3379
- // https://github.com/rollup/rollup/issues/1771
3380
- // TODO: we can remove these if Rollup fixes the bug.
3385
+ /* eslint-disable no-new */
3381
3386
 
3382
- testMap.set(0, 0);
3383
- testSet.add(0);
3387
+ new Map([[frozenObject, null]]);
3388
+ new Set([frozenObject]);
3389
+ /* eslint-enable no-new */
3384
3390
  } catch (e) {
3385
3391
  }
3386
3392
  }
@@ -3388,11 +3394,6 @@
3388
3394
  var createElement$1 = createElementWithValidation ;
3389
3395
  var cloneElement$1 = cloneElementWithValidation ;
3390
3396
  var createFactory = createFactoryWithValidation ;
3391
- var jsxDEV$1 = jsxWithValidation ;
3392
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
3393
- // for now we can ship identical prod functions
3394
-
3395
- var jsxs = jsxWithValidationStatic ;
3396
3397
  var Children = {
3397
3398
  map: mapChildren,
3398
3399
  forEach: forEachChildren,
@@ -3403,26 +3404,20 @@
3403
3404
 
3404
3405
  exports.Children = Children;
3405
3406
  exports.Component = Component;
3406
- exports.Fragment = REACT_FRAGMENT_TYPE;
3407
- exports.Profiler = REACT_PROFILER_TYPE;
3408
3407
  exports.PureComponent = PureComponent;
3409
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
3410
- exports.Suspense = REACT_SUSPENSE_TYPE;
3411
- exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
3412
3408
  exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals$1;
3413
3409
  exports.block = block;
3414
3410
  exports.cloneElement = cloneElement$1;
3415
3411
  exports.createContext = createContext;
3416
3412
  exports.createElement = createElement$1;
3417
3413
  exports.createFactory = createFactory;
3414
+ exports.createMutableSource = createMutableSource;
3418
3415
  exports.createRef = createRef;
3419
3416
  exports.forwardRef = forwardRef;
3420
3417
  exports.isValidElement = isValidElement;
3421
- exports.jsx = jsx;
3422
- exports.jsxDEV = jsxDEV$1;
3423
- exports.jsxs = jsxs;
3424
3418
  exports.lazy = lazy;
3425
3419
  exports.memo = memo;
3420
+ exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
3426
3421
  exports.unstable_withSuspenseConfig = withSuspenseConfig;
3427
3422
  exports.useCallback = useCallback;
3428
3423
  exports.useContext = useContext;
@@ -3432,6 +3427,7 @@
3432
3427
  exports.useImperativeHandle = useImperativeHandle;
3433
3428
  exports.useLayoutEffect = useLayoutEffect;
3434
3429
  exports.useMemo = useMemo;
3430
+ exports.useMutableSource = useMutableSource;
3435
3431
  exports.useReducer = useReducer;
3436
3432
  exports.useRef = useRef;
3437
3433
  exports.useState = useState;