mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Flight] Delete Server Context (#28225)
Server Context was never documented, and has been deprecated in
https://github.com/facebook/react/pull/27424.
This PR removes it completely, including the implementation code.
Notably, `useContext` is removed from the shared subset, so importing it
from a React Server environment would now should be a build error in
environments that are able to enforce that.
DiffTrain build for [472854820b](https://github.com/facebook/react/commit/472854820bfd0058dfc85524051171c7b7c998c1)
This commit is contained in:
@@ -1 +1 @@
|
||||
95ec128399a8b34884cc6bd90a041e03ce5c1844
|
||||
472854820bfd0058dfc85524051171c7b7c998c1
|
||||
|
||||
@@ -24,7 +24,7 @@ if (__DEV__) {
|
||||
) {
|
||||
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
||||
}
|
||||
var ReactVersion = "18.3.0-www-classic-609987b0";
|
||||
var ReactVersion = "18.3.0-www-classic-82bfc644";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
@@ -2411,10 +2411,7 @@ if (__DEV__) {
|
||||
_threadCount: 0,
|
||||
// These are circular
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
// Add these to use same hidden class in VM as ServerContext
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
context.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
|
||||
@@ -24,7 +24,7 @@ if (__DEV__) {
|
||||
) {
|
||||
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
||||
}
|
||||
var ReactVersion = "18.3.0-www-modern-9aca347c";
|
||||
var ReactVersion = "18.3.0-www-modern-00e8e94b";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
@@ -2376,10 +2376,7 @@ if (__DEV__) {
|
||||
_threadCount: 0,
|
||||
// These are circular
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
// Add these to use same hidden class in VM as ServerContext
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
context.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
|
||||
@@ -411,9 +411,7 @@ exports.createContext = function (defaultValue) {
|
||||
_currentValue2: defaultValue,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
defaultValue.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
@@ -572,4 +570,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-416dbb8d";
|
||||
exports.version = "18.3.0-www-classic-838f52b1";
|
||||
|
||||
@@ -378,9 +378,7 @@ exports.createContext = function (defaultValue) {
|
||||
_currentValue2: defaultValue,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
defaultValue.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
@@ -564,4 +562,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-b506e46f";
|
||||
exports.version = "18.3.0-www-modern-ec0970fd";
|
||||
|
||||
@@ -415,9 +415,7 @@ exports.createContext = function (defaultValue) {
|
||||
_currentValue2: defaultValue,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
defaultValue.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
@@ -576,7 +574,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-f4afa597";
|
||||
exports.version = "18.3.0-www-classic-ca403e34";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -382,9 +382,7 @@ exports.createContext = function (defaultValue) {
|
||||
_currentValue2: defaultValue,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
defaultValue.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
@@ -568,7 +566,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-41ffe01a";
|
||||
exports.version = "18.3.0-www-modern-aeab456d";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -66,7 +66,7 @@ if (__DEV__) {
|
||||
return self;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-e82d96aa";
|
||||
var ReactVersion = "18.3.0-www-classic-14b2377a";
|
||||
|
||||
var LegacyRoot = 0;
|
||||
var ConcurrentRoot = 1;
|
||||
@@ -237,7 +237,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -4059,9 +4058,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -6928,10 +6925,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -7015,10 +7009,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -7119,10 +7110,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -7829,10 +7817,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -8996,10 +8981,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -18273,9 +18255,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue2 = currentValue;
|
||||
}
|
||||
context._currentValue2 = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer2 = renderer2CursorDEV.current;
|
||||
@@ -18922,9 +18902,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ if (__DEV__) {
|
||||
return self;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-f1f6b170";
|
||||
var ReactVersion = "18.3.0-www-modern-d7f69305";
|
||||
|
||||
var LegacyRoot = 0;
|
||||
var ConcurrentRoot = 1;
|
||||
@@ -237,7 +237,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -3809,9 +3808,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -6678,10 +6675,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -6765,10 +6759,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -6869,10 +6860,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -7579,10 +7567,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -8746,10 +8731,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -17946,9 +17928,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue2 = currentValue;
|
||||
}
|
||||
context._currentValue2 = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer2 = renderer2CursorDEV.current;
|
||||
@@ -18595,9 +18575,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
|
||||
@@ -90,7 +90,6 @@ var ReactSharedInternals =
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -1062,9 +1061,7 @@ var objectIs = "function" === typeof Object.is ? Object.is : is,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2057,10 +2054,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2106,10 +2100,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -2176,10 +2167,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -2508,10 +2496,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -2822,11 +2807,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -5913,9 +5894,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -10548,7 +10527,7 @@ var slice = Array.prototype.slice,
|
||||
return null;
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-871e6cd4",
|
||||
version: "18.3.0-www-classic-da35e5de",
|
||||
rendererPackageName: "react-art"
|
||||
};
|
||||
var internals$jscomp$inline_1323 = {
|
||||
@@ -10579,7 +10558,7 @@ var internals$jscomp$inline_1323 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-871e6cd4"
|
||||
reconcilerVersion: "18.3.0-www-classic-da35e5de"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1324 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
@@ -90,7 +90,6 @@ var ReactSharedInternals =
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -869,9 +868,7 @@ var objectIs = "function" === typeof Object.is ? Object.is : is,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -1864,10 +1861,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -1913,10 +1907,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -1983,10 +1974,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -2315,10 +2303,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -2629,11 +2614,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -5669,9 +5650,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -10214,7 +10193,7 @@ var slice = Array.prototype.slice,
|
||||
return null;
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-83468ada",
|
||||
version: "18.3.0-www-modern-145051c7",
|
||||
rendererPackageName: "react-art"
|
||||
};
|
||||
var internals$jscomp$inline_1303 = {
|
||||
@@ -10245,7 +10224,7 @@ var internals$jscomp$inline_1303 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-83468ada"
|
||||
reconcilerVersion: "18.3.0-www-modern-145051c7"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1304 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
@@ -204,7 +204,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -1106,9 +1105,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -11577,10 +11574,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -11664,10 +11658,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -11768,10 +11759,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -12508,10 +12496,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -13686,10 +13671,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -23441,9 +23423,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue = currentValue;
|
||||
}
|
||||
context._currentValue = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer = rendererCursorDEV.current;
|
||||
@@ -24090,9 +24070,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
@@ -35753,7 +35731,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-8c1ce378";
|
||||
var ReactVersion = "18.3.0-www-classic-ea4755fa";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
@@ -266,7 +266,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -317,9 +316,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -11513,10 +11510,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -11600,10 +11594,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -11704,10 +11695,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -12444,10 +12432,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -13622,10 +13607,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -23300,9 +23282,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue = currentValue;
|
||||
}
|
||||
context._currentValue = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer = rendererCursorDEV.current;
|
||||
@@ -23949,9 +23929,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
@@ -35574,7 +35552,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-c82c01ca";
|
||||
var ReactVersion = "18.3.0-www-modern-990cb226";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
@@ -69,7 +69,6 @@ var ReactSharedInternals =
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -368,9 +367,7 @@ var contextStackCursor$1 = createCursor(null),
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2790,10 +2787,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2839,10 +2833,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -2909,10 +2900,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -3251,10 +3239,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -3575,11 +3560,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -6906,9 +6887,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -17154,7 +17133,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1823 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-8280394c",
|
||||
version: "18.3.0-www-classic-eff275d1",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2185 = {
|
||||
@@ -17184,7 +17163,7 @@ var internals$jscomp$inline_2185 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-8280394c"
|
||||
reconcilerVersion: "18.3.0-www-classic-eff275d1"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2186 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17534,4 +17513,4 @@ exports.useFormStatus = function () {
|
||||
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-8280394c";
|
||||
exports.version = "18.3.0-www-classic-eff275d1";
|
||||
|
||||
@@ -95,7 +95,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -126,9 +125,7 @@ var contextStackCursor = createCursor(null),
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2684,10 +2681,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2733,10 +2727,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -2803,10 +2794,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -3145,10 +3133,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -3469,11 +3454,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -6749,9 +6730,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -16677,7 +16656,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1782 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-3c4feb2e",
|
||||
version: "18.3.0-www-modern-1dd03d2d",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2149 = {
|
||||
@@ -16708,7 +16687,7 @@ var internals$jscomp$inline_2149 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-3c4feb2e"
|
||||
reconcilerVersion: "18.3.0-www-modern-1dd03d2d"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2150 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16986,4 +16965,4 @@ exports.useFormStatus = function () {
|
||||
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-3c4feb2e";
|
||||
exports.version = "18.3.0-www-modern-1dd03d2d";
|
||||
|
||||
@@ -76,7 +76,6 @@ var ReactSharedInternals =
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -375,9 +374,7 @@ var contextStackCursor$1 = createCursor(null),
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2930,10 +2927,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2979,10 +2973,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -3049,10 +3040,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -3391,10 +3379,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -3715,11 +3700,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -7150,9 +7131,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -17923,7 +17902,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1908 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-ec24bb93",
|
||||
version: "18.3.0-www-classic-90785b2b",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -17967,7 +17946,7 @@ var devToolsConfig$jscomp$inline_1908 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-ec24bb93"
|
||||
reconcilerVersion: "18.3.0-www-classic-90785b2b"
|
||||
});
|
||||
assign(Internals, {
|
||||
ReactBrowserEventEmitter: {
|
||||
@@ -18304,7 +18283,7 @@ exports.useFormStatus = function () {
|
||||
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-ec24bb93";
|
||||
exports.version = "18.3.0-www-classic-90785b2b";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -102,7 +102,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -133,9 +132,7 @@ var contextStackCursor = createCursor(null),
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2824,10 +2821,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2873,10 +2867,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -2943,10 +2934,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -3285,10 +3273,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -3609,11 +3594,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -6987,9 +6968,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -17440,7 +17419,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1867 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-f1f6b170",
|
||||
version: "18.3.0-www-modern-d7f69305",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -17485,7 +17464,7 @@ var devToolsConfig$jscomp$inline_1867 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-f1f6b170"
|
||||
reconcilerVersion: "18.3.0-www-modern-d7f69305"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
|
||||
exports.createPortal = function (children, container) {
|
||||
@@ -17750,7 +17729,7 @@ exports.useFormStatus = function () {
|
||||
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-f1f6b170";
|
||||
exports.version = "18.3.0-www-modern-d7f69305";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -19,7 +19,7 @@ if (__DEV__) {
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-71ea3c5d";
|
||||
var ReactVersion = "18.3.0-www-classic-ebc61cf0";
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
@@ -8163,7 +8163,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -8175,9 +8174,6 @@ if (__DEV__) {
|
||||
var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden");
|
||||
var REACT_CACHE_TYPE = Symbol.for("react.cache");
|
||||
var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker");
|
||||
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
);
|
||||
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
||||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||
@@ -9149,13 +9145,7 @@ if (__DEV__) {
|
||||
|
||||
{
|
||||
var _value = prevSnapshot.parentValue;
|
||||
|
||||
if (_value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {
|
||||
prevSnapshot.context._currentValue2 =
|
||||
prevSnapshot.context._defaultValue;
|
||||
} else {
|
||||
prevSnapshot.context._currentValue2 = _value;
|
||||
}
|
||||
prevSnapshot.context._currentValue2 = _value;
|
||||
|
||||
{
|
||||
if (
|
||||
@@ -10841,10 +10831,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return unwrapThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -12663,10 +12650,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
maybeUsable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
maybeUsable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (maybeUsable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = maybeUsable;
|
||||
return renderNodeDestructive(
|
||||
request,
|
||||
|
||||
@@ -19,7 +19,7 @@ if (__DEV__) {
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-2e88c45b";
|
||||
var ReactVersion = "18.3.0-www-modern-4e83ac3b";
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
@@ -8163,7 +8163,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -8175,9 +8174,6 @@ if (__DEV__) {
|
||||
var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden");
|
||||
var REACT_CACHE_TYPE = Symbol.for("react.cache");
|
||||
var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker");
|
||||
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
);
|
||||
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
||||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||
@@ -8898,13 +8894,7 @@ if (__DEV__) {
|
||||
|
||||
{
|
||||
var _value = prevSnapshot.parentValue;
|
||||
|
||||
if (_value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {
|
||||
prevSnapshot.context._currentValue2 =
|
||||
prevSnapshot.context._defaultValue;
|
||||
} else {
|
||||
prevSnapshot.context._currentValue2 = _value;
|
||||
}
|
||||
prevSnapshot.context._currentValue2 = _value;
|
||||
|
||||
{
|
||||
if (
|
||||
@@ -10580,10 +10570,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return unwrapThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -12391,10 +12378,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
maybeUsable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
maybeUsable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (maybeUsable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = maybeUsable;
|
||||
return renderNodeDestructive(
|
||||
request,
|
||||
|
||||
@@ -2569,16 +2569,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
"\x3c/script>"
|
||||
);
|
||||
bootstrapScriptContent = idPrefix + "P:";
|
||||
var JSCompiler_object_inline_segmentPrefix_1612 = idPrefix + "S:";
|
||||
var JSCompiler_object_inline_segmentPrefix_1611 = idPrefix + "S:";
|
||||
idPrefix += "B:";
|
||||
var JSCompiler_object_inline_preconnects_1626 = new Set(),
|
||||
JSCompiler_object_inline_fontPreloads_1627 = new Set(),
|
||||
JSCompiler_object_inline_highImagePreloads_1628 = new Set(),
|
||||
JSCompiler_object_inline_styles_1629 = new Map(),
|
||||
JSCompiler_object_inline_bootstrapScripts_1630 = new Set(),
|
||||
JSCompiler_object_inline_scripts_1631 = new Set(),
|
||||
JSCompiler_object_inline_bulkPreloads_1632 = new Set(),
|
||||
JSCompiler_object_inline_preloads_1633 = {
|
||||
var JSCompiler_object_inline_preconnects_1625 = new Set(),
|
||||
JSCompiler_object_inline_fontPreloads_1626 = new Set(),
|
||||
JSCompiler_object_inline_highImagePreloads_1627 = new Set(),
|
||||
JSCompiler_object_inline_styles_1628 = new Map(),
|
||||
JSCompiler_object_inline_bootstrapScripts_1629 = new Set(),
|
||||
JSCompiler_object_inline_scripts_1630 = new Set(),
|
||||
JSCompiler_object_inline_bulkPreloads_1631 = new Set(),
|
||||
JSCompiler_object_inline_preloads_1632 = {
|
||||
images: new Map(),
|
||||
stylesheets: new Map(),
|
||||
scripts: new Map(),
|
||||
@@ -2615,7 +2615,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
scriptConfig.moduleScriptResources[href] = null;
|
||||
scriptConfig = [];
|
||||
pushLinkImpl(scriptConfig, props);
|
||||
JSCompiler_object_inline_bootstrapScripts_1630.add(scriptConfig);
|
||||
JSCompiler_object_inline_bootstrapScripts_1629.add(scriptConfig);
|
||||
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
|
||||
"string" === typeof integrity &&
|
||||
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
|
||||
@@ -2656,7 +2656,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
(props.moduleScriptResources[scriptConfig] = null),
|
||||
(props = []),
|
||||
pushLinkImpl(props, integrity),
|
||||
JSCompiler_object_inline_bootstrapScripts_1630.add(props),
|
||||
JSCompiler_object_inline_bootstrapScripts_1629.add(props),
|
||||
bootstrapChunks.push(
|
||||
'<script type="module" src="',
|
||||
escapeTextForBrowser(i)
|
||||
@@ -2671,7 +2671,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
bootstrapChunks.push('" async="">\x3c/script>');
|
||||
return {
|
||||
placeholderPrefix: bootstrapScriptContent,
|
||||
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1612,
|
||||
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1611,
|
||||
boundaryPrefix: idPrefix,
|
||||
startInlineScript: "<script>",
|
||||
htmlChunks: null,
|
||||
@@ -2691,14 +2691,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
charsetChunks: [],
|
||||
viewportChunks: [],
|
||||
hoistableChunks: [],
|
||||
preconnects: JSCompiler_object_inline_preconnects_1626,
|
||||
fontPreloads: JSCompiler_object_inline_fontPreloads_1627,
|
||||
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1628,
|
||||
styles: JSCompiler_object_inline_styles_1629,
|
||||
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1630,
|
||||
scripts: JSCompiler_object_inline_scripts_1631,
|
||||
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1632,
|
||||
preloads: JSCompiler_object_inline_preloads_1633,
|
||||
preconnects: JSCompiler_object_inline_preconnects_1625,
|
||||
fontPreloads: JSCompiler_object_inline_fontPreloads_1626,
|
||||
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1627,
|
||||
styles: JSCompiler_object_inline_styles_1628,
|
||||
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1629,
|
||||
scripts: JSCompiler_object_inline_scripts_1630,
|
||||
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1631,
|
||||
preloads: JSCompiler_object_inline_preloads_1632,
|
||||
stylesToHoist: !1,
|
||||
generateStaticMarkup: generateStaticMarkup
|
||||
};
|
||||
@@ -2720,7 +2720,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -2732,9 +2731,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
||||
REACT_CACHE_TYPE = Symbol.for("react.cache"),
|
||||
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
|
||||
REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
),
|
||||
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
@@ -3331,11 +3327,7 @@ var HooksDispatcher = {
|
||||
use: function (usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return usable._currentValue2;
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
},
|
||||
@@ -4182,11 +4174,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
||||
renderNodeDestructive(request, task, ref, -1);
|
||||
request = currentActiveSnapshot;
|
||||
if (null === request) throw Error(formatProdErrorMessage(403));
|
||||
keyPath = request.parentValue;
|
||||
request.context._currentValue2 =
|
||||
keyPath === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
|
||||
? request.context._defaultValue
|
||||
: keyPath;
|
||||
request.context._currentValue2 = request.parentValue;
|
||||
request = currentActiveSnapshot = request.parent;
|
||||
task.context = request;
|
||||
task.keyPath = contextKey;
|
||||
@@ -4463,10 +4451,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
||||
childIndex
|
||||
)
|
||||
);
|
||||
if (
|
||||
node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
node$jscomp$0.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return renderNodeDestructive(
|
||||
request,
|
||||
task,
|
||||
@@ -5670,4 +5655,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-66c21456";
|
||||
exports.version = "18.3.0-www-classic-c161e5e9";
|
||||
|
||||
@@ -2569,16 +2569,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
"\x3c/script>"
|
||||
);
|
||||
bootstrapScriptContent = idPrefix + "P:";
|
||||
var JSCompiler_object_inline_segmentPrefix_1599 = idPrefix + "S:";
|
||||
var JSCompiler_object_inline_segmentPrefix_1598 = idPrefix + "S:";
|
||||
idPrefix += "B:";
|
||||
var JSCompiler_object_inline_preconnects_1613 = new Set(),
|
||||
JSCompiler_object_inline_fontPreloads_1614 = new Set(),
|
||||
JSCompiler_object_inline_highImagePreloads_1615 = new Set(),
|
||||
JSCompiler_object_inline_styles_1616 = new Map(),
|
||||
JSCompiler_object_inline_bootstrapScripts_1617 = new Set(),
|
||||
JSCompiler_object_inline_scripts_1618 = new Set(),
|
||||
JSCompiler_object_inline_bulkPreloads_1619 = new Set(),
|
||||
JSCompiler_object_inline_preloads_1620 = {
|
||||
var JSCompiler_object_inline_preconnects_1612 = new Set(),
|
||||
JSCompiler_object_inline_fontPreloads_1613 = new Set(),
|
||||
JSCompiler_object_inline_highImagePreloads_1614 = new Set(),
|
||||
JSCompiler_object_inline_styles_1615 = new Map(),
|
||||
JSCompiler_object_inline_bootstrapScripts_1616 = new Set(),
|
||||
JSCompiler_object_inline_scripts_1617 = new Set(),
|
||||
JSCompiler_object_inline_bulkPreloads_1618 = new Set(),
|
||||
JSCompiler_object_inline_preloads_1619 = {
|
||||
images: new Map(),
|
||||
stylesheets: new Map(),
|
||||
scripts: new Map(),
|
||||
@@ -2615,7 +2615,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
scriptConfig.moduleScriptResources[href] = null;
|
||||
scriptConfig = [];
|
||||
pushLinkImpl(scriptConfig, props);
|
||||
JSCompiler_object_inline_bootstrapScripts_1617.add(scriptConfig);
|
||||
JSCompiler_object_inline_bootstrapScripts_1616.add(scriptConfig);
|
||||
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
|
||||
"string" === typeof integrity &&
|
||||
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
|
||||
@@ -2656,7 +2656,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
(props.moduleScriptResources[scriptConfig] = null),
|
||||
(props = []),
|
||||
pushLinkImpl(props, integrity),
|
||||
JSCompiler_object_inline_bootstrapScripts_1617.add(props),
|
||||
JSCompiler_object_inline_bootstrapScripts_1616.add(props),
|
||||
bootstrapChunks.push(
|
||||
'<script type="module" src="',
|
||||
escapeTextForBrowser(i)
|
||||
@@ -2671,7 +2671,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
bootstrapChunks.push('" async="">\x3c/script>');
|
||||
return {
|
||||
placeholderPrefix: bootstrapScriptContent,
|
||||
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1599,
|
||||
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1598,
|
||||
boundaryPrefix: idPrefix,
|
||||
startInlineScript: "<script>",
|
||||
htmlChunks: null,
|
||||
@@ -2691,14 +2691,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
||||
charsetChunks: [],
|
||||
viewportChunks: [],
|
||||
hoistableChunks: [],
|
||||
preconnects: JSCompiler_object_inline_preconnects_1613,
|
||||
fontPreloads: JSCompiler_object_inline_fontPreloads_1614,
|
||||
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1615,
|
||||
styles: JSCompiler_object_inline_styles_1616,
|
||||
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1617,
|
||||
scripts: JSCompiler_object_inline_scripts_1618,
|
||||
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1619,
|
||||
preloads: JSCompiler_object_inline_preloads_1620,
|
||||
preconnects: JSCompiler_object_inline_preconnects_1612,
|
||||
fontPreloads: JSCompiler_object_inline_fontPreloads_1613,
|
||||
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1614,
|
||||
styles: JSCompiler_object_inline_styles_1615,
|
||||
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1616,
|
||||
scripts: JSCompiler_object_inline_scripts_1617,
|
||||
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1618,
|
||||
preloads: JSCompiler_object_inline_preloads_1619,
|
||||
stylesToHoist: !1,
|
||||
generateStaticMarkup: generateStaticMarkup
|
||||
};
|
||||
@@ -2720,7 +2720,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -2732,9 +2731,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
||||
REACT_CACHE_TYPE = Symbol.for("react.cache"),
|
||||
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
|
||||
REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
),
|
||||
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
@@ -3323,11 +3319,7 @@ var HooksDispatcher = {
|
||||
use: function (usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return usable._currentValue2;
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
},
|
||||
@@ -4141,11 +4133,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
||||
renderNodeDestructive(request, task, JSCompiler_inline_result, -1);
|
||||
request = currentActiveSnapshot;
|
||||
if (null === request) throw Error(formatProdErrorMessage(403));
|
||||
keyPath = request.parentValue;
|
||||
request.context._currentValue2 =
|
||||
keyPath === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
|
||||
? request.context._defaultValue
|
||||
: keyPath;
|
||||
request.context._currentValue2 = request.parentValue;
|
||||
request = currentActiveSnapshot = request.parent;
|
||||
task.context = request;
|
||||
task.keyPath = ref;
|
||||
@@ -4422,10 +4410,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
||||
childIndex
|
||||
)
|
||||
);
|
||||
if (
|
||||
node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
node$jscomp$0.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return renderNodeDestructive(
|
||||
request,
|
||||
task,
|
||||
@@ -5629,4 +5614,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-84f71ac9";
|
||||
exports.version = "18.3.0-www-modern-0680396d";
|
||||
|
||||
@@ -8047,7 +8047,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -8059,9 +8058,6 @@ if (__DEV__) {
|
||||
var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden");
|
||||
var REACT_CACHE_TYPE = Symbol.for("react.cache");
|
||||
var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker");
|
||||
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
);
|
||||
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
||||
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||
@@ -8782,13 +8778,7 @@ if (__DEV__) {
|
||||
|
||||
{
|
||||
var value = prevSnapshot.parentValue;
|
||||
|
||||
if (value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {
|
||||
prevSnapshot.context._currentValue =
|
||||
prevSnapshot.context._defaultValue;
|
||||
} else {
|
||||
prevSnapshot.context._currentValue = value;
|
||||
}
|
||||
prevSnapshot.context._currentValue = value;
|
||||
|
||||
{
|
||||
if (
|
||||
@@ -10464,10 +10454,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return unwrapThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -12272,10 +12259,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
maybeUsable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
maybeUsable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (maybeUsable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = maybeUsable;
|
||||
return renderNodeDestructive(
|
||||
request,
|
||||
|
||||
@@ -2580,7 +2580,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -2592,9 +2591,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
||||
REACT_CACHE_TYPE = Symbol.for("react.cache"),
|
||||
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
|
||||
REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
),
|
||||
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
@@ -3208,11 +3204,7 @@ var HooksDispatcher = {
|
||||
use: function (usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return usable._currentValue;
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
||||
}
|
||||
throw Error("An unsupported type was passed to use(): " + String(usable));
|
||||
},
|
||||
@@ -3963,11 +3955,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
||||
throw Error(
|
||||
"Tried to pop a Context at the root of the app. This is a bug in React."
|
||||
);
|
||||
keyPath = request.parentValue;
|
||||
request.context._currentValue =
|
||||
keyPath === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
|
||||
? request.context._defaultValue
|
||||
: keyPath;
|
||||
request.context._currentValue = request.parentValue;
|
||||
request = currentActiveSnapshot = request.parent;
|
||||
task.context = request;
|
||||
task.keyPath = ref;
|
||||
@@ -4255,10 +4243,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
||||
childIndex
|
||||
)
|
||||
);
|
||||
if (
|
||||
node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
node$jscomp$0.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return renderNodeDestructive(
|
||||
request,
|
||||
task,
|
||||
|
||||
@@ -196,7 +196,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -1098,9 +1097,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -11714,10 +11711,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -11801,10 +11795,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -11905,10 +11896,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -12645,10 +12633,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -13823,10 +13808,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -23578,9 +23560,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue = currentValue;
|
||||
}
|
||||
context._currentValue = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer = rendererCursorDEV.current;
|
||||
@@ -24227,9 +24207,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
@@ -36377,7 +36355,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-416dbb8d";
|
||||
var ReactVersion = "18.3.0-www-classic-838f52b1";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
@@ -258,7 +258,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -309,9 +308,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -11650,10 +11647,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -11737,10 +11731,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -11841,10 +11832,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -12581,10 +12569,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -13759,10 +13744,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -23437,9 +23419,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue = currentValue;
|
||||
}
|
||||
context._currentValue = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer = rendererCursorDEV.current;
|
||||
@@ -24086,9 +24066,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
@@ -36198,7 +36176,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-895ad972";
|
||||
var ReactVersion = "18.3.0-www-modern-3d6a7676";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
@@ -69,7 +69,6 @@ var ReactSharedInternals =
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -368,9 +367,7 @@ var contextStackCursor$1 = createCursor(null),
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2876,10 +2873,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2925,10 +2919,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -2995,10 +2986,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -3337,10 +3325,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -3661,11 +3646,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -6992,9 +6973,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -17483,7 +17462,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1828 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-f4afa597",
|
||||
version: "18.3.0-www-classic-ca403e34",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2197 = {
|
||||
@@ -17513,7 +17492,7 @@ var internals$jscomp$inline_2197 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-f4afa597"
|
||||
reconcilerVersion: "18.3.0-www-classic-ca403e34"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2198 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -18014,4 +17993,4 @@ exports.useFormStatus = function () {
|
||||
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-f4afa597";
|
||||
exports.version = "18.3.0-www-classic-ca403e34";
|
||||
|
||||
@@ -95,7 +95,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -126,9 +125,7 @@ var contextStackCursor = createCursor(null),
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
function pushHostContainer(fiber, nextRootInstance) {
|
||||
push(rootInstanceStackCursor, nextRootInstance);
|
||||
@@ -2824,10 +2821,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
);
|
||||
if ("function" === typeof newChild.then)
|
||||
return createChild(returnFiber, unwrapThenable(newChild), lanes);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return createChild(
|
||||
returnFiber,
|
||||
readContextDuringReconcilation(returnFiber, newChild, lanes),
|
||||
@@ -2873,10 +2867,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
oldFiber,
|
||||
@@ -2943,10 +2934,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
returnFiber,
|
||||
@@ -3285,10 +3273,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
||||
unwrapThenable(newChild),
|
||||
lanes
|
||||
);
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE)
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
currentFirstChild,
|
||||
@@ -3609,11 +3594,7 @@ function useThenable(thenable) {
|
||||
function use(usable) {
|
||||
if (null !== usable && "object" === typeof usable) {
|
||||
if ("function" === typeof usable.then) return useThenable(usable);
|
||||
if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
)
|
||||
return readContext(usable);
|
||||
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
||||
}
|
||||
throw Error(formatProdErrorMessage(438, String(usable)));
|
||||
}
|
||||
@@ -6889,9 +6870,7 @@ var AbortControllerLocal =
|
||||
Provider: null,
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
function createCache() {
|
||||
return {
|
||||
@@ -17060,7 +17039,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1787 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-2cb4ed50",
|
||||
version: "18.3.0-www-modern-6cf51ba4",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2160 = {
|
||||
@@ -17091,7 +17070,7 @@ var internals$jscomp$inline_2160 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-2cb4ed50"
|
||||
reconcilerVersion: "18.3.0-www-modern-6cf51ba4"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17519,4 +17498,4 @@ exports.useFormStatus = function () {
|
||||
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-2cb4ed50";
|
||||
exports.version = "18.3.0-www-modern-6cf51ba4";
|
||||
|
||||
@@ -17,7 +17,6 @@ if (__DEV__) {
|
||||
"use strict";
|
||||
|
||||
var ReactDOM = require("react-dom");
|
||||
var React = require("react");
|
||||
|
||||
// Re-export dynamic flags from the www version.
|
||||
require("ReactFeatureFlags");
|
||||
@@ -208,60 +207,14 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
function error(format) {
|
||||
{
|
||||
{
|
||||
for (
|
||||
var _len2 = arguments.length,
|
||||
args = new Array(_len2 > 1 ? _len2 - 1 : 0),
|
||||
_key2 = 1;
|
||||
_key2 < _len2;
|
||||
_key2++
|
||||
) {
|
||||
args[_key2 - 1] = arguments[_key2];
|
||||
}
|
||||
|
||||
printWarning("error", format, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function printWarning(level, format, args) {
|
||||
{
|
||||
var React = require("react");
|
||||
|
||||
var ReactSharedInternals =
|
||||
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Defensive in case this is fired before React is initialized.
|
||||
|
||||
if (ReactSharedInternals != null) {
|
||||
var ReactDebugCurrentFrame =
|
||||
ReactSharedInternals.ReactDebugCurrentFrame;
|
||||
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
||||
|
||||
if (stack !== "") {
|
||||
format += "%s";
|
||||
args.push(stack);
|
||||
}
|
||||
} // TODO: don't ignore level and pass it down somewhere too.
|
||||
|
||||
args.unshift(format);
|
||||
args.unshift(false);
|
||||
warningWWW.apply(null, args);
|
||||
}
|
||||
}
|
||||
require("warning");
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
||||
// The Symbol used to tag the ReactElement-like types.
|
||||
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
);
|
||||
|
||||
var knownServerReferences = new WeakMap(); // Serializable values
|
||||
|
||||
@@ -269,62 +222,6 @@ if (__DEV__) {
|
||||
knownServerReferences.set(proxy, reference);
|
||||
} // $FlowFixMe[method-unbinding]
|
||||
|
||||
var ReactSharedInternals =
|
||||
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
|
||||
var ContextRegistry = ReactSharedInternals.ContextRegistry;
|
||||
function getOrCreateServerContext(globalName) {
|
||||
if (!ContextRegistry[globalName]) {
|
||||
var context = {
|
||||
$$typeof: REACT_SERVER_CONTEXT_TYPE,
|
||||
// As a workaround to support multiple concurrent renderers, we categorize
|
||||
// some renderers as primary and others as secondary. We only expect
|
||||
// there to be two concurrent renderers at most: React Native (primary) and
|
||||
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
||||
// Secondary renderers store their context values on separate fields.
|
||||
_currentValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
|
||||
_currentValue2: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
|
||||
_defaultValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
|
||||
// Used to track how many concurrent renderers this context currently
|
||||
// supports within in a single renderer. Such as parallel server rendering.
|
||||
_threadCount: 0,
|
||||
// These are circular
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_globalName: globalName
|
||||
};
|
||||
context.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
_context: context
|
||||
};
|
||||
|
||||
{
|
||||
var hasWarnedAboutUsingConsumer;
|
||||
context._currentRenderer = null;
|
||||
context._currentRenderer2 = null;
|
||||
Object.defineProperties(context, {
|
||||
Consumer: {
|
||||
get: function () {
|
||||
if (!hasWarnedAboutUsingConsumer) {
|
||||
error(
|
||||
"Consumer pattern is not supported by ReactServerContext"
|
||||
);
|
||||
|
||||
hasWarnedAboutUsingConsumer = true;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ContextRegistry[globalName] = context;
|
||||
}
|
||||
|
||||
return ContextRegistry[globalName];
|
||||
}
|
||||
|
||||
var ROW_ID = 0;
|
||||
var ROW_TAG = 1;
|
||||
var ROW_LENGTH = 2;
|
||||
@@ -805,11 +702,6 @@ if (__DEV__) {
|
||||
return Symbol.for(value.slice(2));
|
||||
}
|
||||
|
||||
case "P": {
|
||||
// Server Context Provider
|
||||
return getOrCreateServerContext(value.slice(2)).Provider;
|
||||
}
|
||||
|
||||
case "F": {
|
||||
// Server Reference
|
||||
var _id2 = parseInt(value.slice(2), 16);
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var ReactDOM = require("react-dom"),
|
||||
React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
require("ReactFeatureFlags");
|
||||
var decoderOptions = { stream: !0 },
|
||||
ReactDOMCurrentDispatcher =
|
||||
@@ -44,15 +43,8 @@ function preloadModule(clientReference) {
|
||||
return modulePromise;
|
||||
}
|
||||
var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for(
|
||||
"react.default_value"
|
||||
),
|
||||
knownServerReferences = new WeakMap(),
|
||||
ContextRegistry =
|
||||
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;
|
||||
knownServerReferences = new WeakMap();
|
||||
function Chunk(status, value, reason, response) {
|
||||
this.status = status;
|
||||
this.value = value;
|
||||
@@ -271,27 +263,6 @@ function parseModelString(response, parentObject, key, value) {
|
||||
);
|
||||
case "S":
|
||||
return Symbol.for(value.slice(2));
|
||||
case "P":
|
||||
return (
|
||||
(response = value.slice(2)),
|
||||
ContextRegistry[response] ||
|
||||
((parentObject = {
|
||||
$$typeof: REACT_SERVER_CONTEXT_TYPE,
|
||||
_currentValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
|
||||
_currentValue2: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
|
||||
_defaultValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_globalName: response
|
||||
}),
|
||||
(parentObject.Provider = {
|
||||
$$typeof: REACT_PROVIDER_TYPE,
|
||||
_context: parentObject
|
||||
}),
|
||||
(ContextRegistry[response] = parentObject)),
|
||||
ContextRegistry[response].Provider
|
||||
);
|
||||
case "F":
|
||||
return (
|
||||
(parentObject = parseInt(value.slice(2), 16)),
|
||||
|
||||
@@ -420,7 +420,7 @@ if (__DEV__) {
|
||||
// The Symbol used to tag the ReactElement-like types.
|
||||
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -445,150 +445,6 @@ if (__DEV__) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Forming a reverse tree.
|
||||
// The structure of a context snapshot is an implementation of this file.
|
||||
// Currently, it's implemented as tracking the current active node.
|
||||
|
||||
var rootContextSnapshot = null; // We assume that this runtime owns the "current" field on all ReactContext instances.
|
||||
// This global (actually thread local) state represents what state all those "current",
|
||||
// fields are currently in.
|
||||
|
||||
var currentActiveSnapshot = null;
|
||||
|
||||
function popNode(prev) {
|
||||
{
|
||||
prev.context._currentValue = prev.parentValue;
|
||||
}
|
||||
}
|
||||
|
||||
function pushNode(next) {
|
||||
{
|
||||
next.context._currentValue = next.value;
|
||||
}
|
||||
}
|
||||
|
||||
function popToNearestCommonAncestor(prev, next) {
|
||||
if (prev === next);
|
||||
else {
|
||||
popNode(prev);
|
||||
var parentPrev = prev.parent;
|
||||
var parentNext = next.parent;
|
||||
|
||||
if (parentPrev === null) {
|
||||
if (parentNext !== null) {
|
||||
throw new Error(
|
||||
"The stacks must reach the root at the same time. This is a bug in React."
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (parentNext === null) {
|
||||
throw new Error(
|
||||
"The stacks must reach the root at the same time. This is a bug in React."
|
||||
);
|
||||
}
|
||||
|
||||
popToNearestCommonAncestor(parentPrev, parentNext); // On the way back, we push the new ones that weren't common.
|
||||
|
||||
pushNode(next);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function popAllPrevious(prev) {
|
||||
popNode(prev);
|
||||
var parentPrev = prev.parent;
|
||||
|
||||
if (parentPrev !== null) {
|
||||
popAllPrevious(parentPrev);
|
||||
}
|
||||
}
|
||||
|
||||
function pushAllNext(next) {
|
||||
var parentNext = next.parent;
|
||||
|
||||
if (parentNext !== null) {
|
||||
pushAllNext(parentNext);
|
||||
}
|
||||
|
||||
pushNode(next);
|
||||
}
|
||||
|
||||
function popPreviousToCommonLevel(prev, next) {
|
||||
popNode(prev);
|
||||
var parentPrev = prev.parent;
|
||||
|
||||
if (parentPrev === null) {
|
||||
throw new Error(
|
||||
"The depth must equal at least at zero before reaching the root. This is a bug in React."
|
||||
);
|
||||
}
|
||||
|
||||
if (parentPrev.depth === next.depth) {
|
||||
// We found the same level. Now we just need to find a shared ancestor.
|
||||
popToNearestCommonAncestor(parentPrev, next);
|
||||
} else {
|
||||
// We must still be deeper.
|
||||
popPreviousToCommonLevel(parentPrev, next);
|
||||
}
|
||||
}
|
||||
|
||||
function popNextToCommonLevel(prev, next) {
|
||||
var parentNext = next.parent;
|
||||
|
||||
if (parentNext === null) {
|
||||
throw new Error(
|
||||
"The depth must equal at least at zero before reaching the root. This is a bug in React."
|
||||
);
|
||||
}
|
||||
|
||||
if (prev.depth === parentNext.depth) {
|
||||
// We found the same level. Now we just need to find a shared ancestor.
|
||||
popToNearestCommonAncestor(prev, parentNext);
|
||||
} else {
|
||||
// We must still be deeper.
|
||||
popNextToCommonLevel(prev, parentNext);
|
||||
}
|
||||
|
||||
pushNode(next);
|
||||
} // Perform context switching to the new snapshot.
|
||||
// To make it cheap to read many contexts, while not suspending, we make the switch eagerly by
|
||||
// updating all the context's current values. That way reads, always just read the current value.
|
||||
// At the cost of updating contexts even if they're never read by this subtree.
|
||||
|
||||
function switchContext(newSnapshot) {
|
||||
// The basic algorithm we need to do is to pop back any contexts that are no longer on the stack.
|
||||
// We also need to update any new contexts that are now on the stack with the deepest value.
|
||||
// The easiest way to update new contexts is to just reapply them in reverse order from the
|
||||
// perspective of the backpointers. To avoid allocating a lot when switching, we use the stack
|
||||
// for that. Therefore this algorithm is recursive.
|
||||
// 1) First we pop which ever snapshot tree was deepest. Popping old contexts as we go.
|
||||
// 2) Then we find the nearest common ancestor from there. Popping old contexts as we go.
|
||||
// 3) Then we reapply new contexts on the way back up the stack.
|
||||
var prev = currentActiveSnapshot;
|
||||
var next = newSnapshot;
|
||||
|
||||
if (prev !== next) {
|
||||
if (prev === null) {
|
||||
// $FlowFixMe[incompatible-call]: This has to be non-null since it's not equal to prev.
|
||||
pushAllNext(next);
|
||||
} else if (next === null) {
|
||||
popAllPrevious(prev);
|
||||
} else if (prev.depth === next.depth) {
|
||||
popToNearestCommonAncestor(prev, next);
|
||||
} else if (prev.depth > next.depth) {
|
||||
popPreviousToCommonLevel(prev, next);
|
||||
} else {
|
||||
popNextToCommonLevel(prev, next);
|
||||
}
|
||||
|
||||
currentActiveSnapshot = next;
|
||||
}
|
||||
}
|
||||
function readContext$1(context) {
|
||||
var value = context._currentValue;
|
||||
return value;
|
||||
}
|
||||
|
||||
// Corresponds to ReactFiberWakeable and ReactFizzWakeable modules. Generally,
|
||||
// changes to one module should be reflected in the others.
|
||||
// TODO: Rename this module and the corresponding Fiber one to "Thenable"
|
||||
@@ -729,32 +585,6 @@ if (__DEV__) {
|
||||
thenableState = null;
|
||||
return state;
|
||||
}
|
||||
|
||||
function readContext(context) {
|
||||
{
|
||||
if (context.$$typeof !== REACT_SERVER_CONTEXT_TYPE) {
|
||||
if (isClientReference(context)) {
|
||||
error("Cannot read a Client Context from a Server Component.");
|
||||
} else {
|
||||
error(
|
||||
"Only createServerContext is supported in Server Components."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (currentRequest$1 === null) {
|
||||
error(
|
||||
"Context can only be read while React is rendering. " +
|
||||
"In classes, you can read it in the render method or getDerivedStateFromProps. " +
|
||||
"In function components, you can read it directly in the function body, but not " +
|
||||
"inside Hooks like useReducer() or useMemo()."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return readContext$1(context);
|
||||
}
|
||||
|
||||
var HooksDispatcher = {
|
||||
useMemo: function (nextCreate) {
|
||||
return nextCreate();
|
||||
@@ -765,8 +595,8 @@ if (__DEV__) {
|
||||
useDebugValue: function () {},
|
||||
useDeferredValue: unsupportedHook,
|
||||
useTransition: unsupportedHook,
|
||||
readContext: readContext,
|
||||
useContext: readContext,
|
||||
readContext: unsupportedContext,
|
||||
useContext: unsupportedContext,
|
||||
useReducer: unsupportedHook,
|
||||
useRef: unsupportedHook,
|
||||
useState: unsupportedHook,
|
||||
@@ -801,6 +631,10 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
function unsupportedContext() {
|
||||
throw new Error("Cannot read a Client Context from a Server Component.");
|
||||
}
|
||||
|
||||
function useId() {
|
||||
if (currentRequest$1 === null) {
|
||||
throw new Error("useId can only be used while React is rendering");
|
||||
@@ -831,21 +665,28 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
return trackUsedThenable(thenableState, thenable, index);
|
||||
} else if (usable.$$typeof === REACT_SERVER_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
unsupportedContext();
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
if (isClientReference(usable)) {
|
||||
error("Cannot use() an already resolved Client Reference.");
|
||||
if (isClientReference(usable)) {
|
||||
if (
|
||||
usable.value != null &&
|
||||
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
||||
) {
|
||||
// Show a more specific message since it's a common mistake.
|
||||
throw new Error(
|
||||
"Cannot read a Client Context from a Server Component."
|
||||
);
|
||||
} else {
|
||||
throw new Error("Cannot use() an already resolved Client Reference.");
|
||||
}
|
||||
} // eslint-disable-next-line react-internal/safe-string-coercion
|
||||
|
||||
throw new Error(
|
||||
"An unsupported type was passed to use(): " + String(usable)
|
||||
);
|
||||
} else {
|
||||
throw new Error( // eslint-disable-next-line react-internal/safe-string-coercion
|
||||
"An unsupported type was passed to use(): " + String(usable)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function createSignal() {
|
||||
@@ -1259,7 +1100,6 @@ if (__DEV__) {
|
||||
model,
|
||||
bundlerConfig,
|
||||
onError,
|
||||
context,
|
||||
identifierPrefix,
|
||||
onPostpone
|
||||
) {
|
||||
@@ -1298,7 +1138,6 @@ if (__DEV__) {
|
||||
writtenSymbols: new Map(),
|
||||
writtenClientReferences: new Map(),
|
||||
writtenServerReferences: new Map(),
|
||||
writtenProviders: new Map(),
|
||||
writtenObjects: new WeakMap(),
|
||||
identifierPrefix: identifierPrefix || "",
|
||||
identifierCount: 1,
|
||||
@@ -1308,15 +1147,7 @@ if (__DEV__) {
|
||||
onPostpone === undefined ? defaultPostponeHandler : onPostpone
|
||||
};
|
||||
request.pendingChunks++;
|
||||
var rootContext = createRootContext();
|
||||
var rootTask = createTask(
|
||||
request,
|
||||
model,
|
||||
null,
|
||||
false,
|
||||
rootContext,
|
||||
abortSet
|
||||
);
|
||||
var rootTask = createTask(request, model, null, false, abortSet);
|
||||
pingedTasks.push(rootTask);
|
||||
return request;
|
||||
}
|
||||
@@ -1327,10 +1158,6 @@ if (__DEV__) {
|
||||
return null;
|
||||
}
|
||||
|
||||
function createRootContext(reqContext) {
|
||||
return importServerContexts();
|
||||
}
|
||||
|
||||
function serializeThenable(request, task, thenable) {
|
||||
request.pendingChunks++;
|
||||
var newTask = createTask(
|
||||
@@ -1338,7 +1165,6 @@ if (__DEV__) {
|
||||
null,
|
||||
task.keyPath, // the server component sequence continues through Promise-as-a-child.
|
||||
task.implicitSlot,
|
||||
task.context,
|
||||
request.abortableTasks
|
||||
);
|
||||
|
||||
@@ -1723,24 +1549,13 @@ if (__DEV__) {
|
||||
}
|
||||
}
|
||||
|
||||
function createTask(
|
||||
request,
|
||||
model,
|
||||
keyPath,
|
||||
implicitSlot,
|
||||
context,
|
||||
abortSet
|
||||
) {
|
||||
function createTask(request, model, keyPath, implicitSlot, abortSet) {
|
||||
var id = request.nextChunkId++;
|
||||
|
||||
if (typeof model === "object" && model !== null) {
|
||||
// If we're about to write this into a new task we can assign it an ID early so that
|
||||
// any other references can refer to the value we're about to write.
|
||||
if (
|
||||
keyPath !== null ||
|
||||
implicitSlot ||
|
||||
context !== rootContextSnapshot
|
||||
);
|
||||
if (keyPath !== null || implicitSlot);
|
||||
else {
|
||||
request.writtenObjects.set(model, id);
|
||||
}
|
||||
@@ -1752,7 +1567,6 @@ if (__DEV__) {
|
||||
model: model,
|
||||
keyPath: keyPath,
|
||||
implicitSlot: implicitSlot,
|
||||
context: context,
|
||||
ping: function () {
|
||||
return pingTask(request, task);
|
||||
},
|
||||
@@ -1925,7 +1739,6 @@ if (__DEV__) {
|
||||
value,
|
||||
null, // The way we use outlining is for reusing an object.
|
||||
false, // It makes no sense for that use case to be contextual.
|
||||
rootContextSnapshot, // Therefore we don't pass any contextual information along.
|
||||
request.abortableTasks
|
||||
);
|
||||
retryTask(request, newTask);
|
||||
@@ -2012,6 +1825,7 @@ if (__DEV__) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
var modelRoot = false;
|
||||
|
||||
function renderModel(request, task, parent, key, value) {
|
||||
@@ -2048,7 +1862,6 @@ if (__DEV__) {
|
||||
task.model,
|
||||
task.keyPath,
|
||||
task.implicitSlot,
|
||||
task.context,
|
||||
request.abortableTasks
|
||||
);
|
||||
var ping = newTask.ping;
|
||||
@@ -2114,11 +1927,7 @@ if (__DEV__) {
|
||||
var _existingId = _writtenObjects.get(value);
|
||||
|
||||
if (_existingId !== undefined) {
|
||||
if (
|
||||
task.keyPath !== null ||
|
||||
task.implicitSlot ||
|
||||
task.context !== rootContextSnapshot
|
||||
);
|
||||
if (task.keyPath !== null || task.implicitSlot);
|
||||
else if (modelRoot === value) {
|
||||
// This is the ID we're currently emitting so we need to write it
|
||||
// once but if we discover it again, we refer to it by id.
|
||||
@@ -2182,11 +1991,7 @@ if (__DEV__) {
|
||||
|
||||
if (typeof value.then === "function") {
|
||||
if (existingId !== undefined) {
|
||||
if (
|
||||
task.keyPath !== null ||
|
||||
task.implicitSlot ||
|
||||
task.context !== rootContextSnapshot
|
||||
) {
|
||||
if (task.keyPath !== null || task.implicitSlot) {
|
||||
// If we're in some kind of context we can't reuse the result of this render or
|
||||
// previous renders of this element. We only reuse Promises if they're not wrapped
|
||||
// by another Server Component.
|
||||
@@ -2487,7 +2292,6 @@ if (__DEV__) {
|
||||
// We completed this by other means before we had a chance to retry it.
|
||||
return;
|
||||
}
|
||||
switchContext(task.context);
|
||||
|
||||
try {
|
||||
// Track the root so we know that we have to emit this object even though it
|
||||
@@ -2550,7 +2354,6 @@ if (__DEV__) {
|
||||
task.status = ERRORED;
|
||||
var digest = logRecoverableError(request, x);
|
||||
emitErrorChunk(request, task.id, digest, x);
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2723,10 +2526,6 @@ if (__DEV__) {
|
||||
}
|
||||
}
|
||||
|
||||
function importServerContexts(contexts) {
|
||||
return rootContextSnapshot;
|
||||
}
|
||||
|
||||
function renderToDestination(destination, model, options) {
|
||||
if (!configured) {
|
||||
throw new Error(
|
||||
|
||||
@@ -168,7 +168,7 @@ var ReactDOMCurrentDispatcher =
|
||||
ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -176,62 +176,9 @@ var ReactDOMCurrentDispatcher =
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
||||
currentActiveSnapshot = null;
|
||||
function popToNearestCommonAncestor(prev, next) {
|
||||
if (prev !== next) {
|
||||
prev.context._currentValue = prev.parentValue;
|
||||
prev = prev.parent;
|
||||
var parentNext = next.parent;
|
||||
if (null === prev) {
|
||||
if (null !== parentNext)
|
||||
throw Error(
|
||||
"The stacks must reach the root at the same time. This is a bug in React."
|
||||
);
|
||||
} else {
|
||||
if (null === parentNext)
|
||||
throw Error(
|
||||
"The stacks must reach the root at the same time. This is a bug in React."
|
||||
);
|
||||
popToNearestCommonAncestor(prev, parentNext);
|
||||
next.context._currentValue = next.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
function popAllPrevious(prev) {
|
||||
prev.context._currentValue = prev.parentValue;
|
||||
prev = prev.parent;
|
||||
null !== prev && popAllPrevious(prev);
|
||||
}
|
||||
function pushAllNext(next) {
|
||||
var parentNext = next.parent;
|
||||
null !== parentNext && pushAllNext(parentNext);
|
||||
next.context._currentValue = next.value;
|
||||
}
|
||||
function popPreviousToCommonLevel(prev, next) {
|
||||
prev.context._currentValue = prev.parentValue;
|
||||
prev = prev.parent;
|
||||
if (null === prev)
|
||||
throw Error(
|
||||
"The depth must equal at least at zero before reaching the root. This is a bug in React."
|
||||
);
|
||||
prev.depth === next.depth
|
||||
? popToNearestCommonAncestor(prev, next)
|
||||
: popPreviousToCommonLevel(prev, next);
|
||||
}
|
||||
function popNextToCommonLevel(prev, next) {
|
||||
var parentNext = next.parent;
|
||||
if (null === parentNext)
|
||||
throw Error(
|
||||
"The depth must equal at least at zero before reaching the root. This is a bug in React."
|
||||
);
|
||||
prev.depth === parentNext.depth
|
||||
? popToNearestCommonAncestor(prev, parentNext)
|
||||
: popNextToCommonLevel(prev, parentNext);
|
||||
next.context._currentValue = next.value;
|
||||
}
|
||||
var SuspenseException = Error(
|
||||
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"
|
||||
);
|
||||
SuspenseException = Error(
|
||||
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"
|
||||
);
|
||||
function noop() {}
|
||||
function trackUsedThenable(thenableState, thenable, index) {
|
||||
index = thenableState[index];
|
||||
@@ -293,9 +240,6 @@ function getThenableStateAfterSuspending() {
|
||||
thenableState = null;
|
||||
return state;
|
||||
}
|
||||
function readContext(context) {
|
||||
return context._currentValue;
|
||||
}
|
||||
var HooksDispatcher = {
|
||||
useMemo: function (nextCreate) {
|
||||
return nextCreate();
|
||||
@@ -306,8 +250,8 @@ var HooksDispatcher = {
|
||||
useDebugValue: function () {},
|
||||
useDeferredValue: unsupportedHook,
|
||||
useTransition: unsupportedHook,
|
||||
readContext: readContext,
|
||||
useContext: readContext,
|
||||
readContext: unsupportedContext,
|
||||
useContext: unsupportedContext,
|
||||
useReducer: unsupportedHook,
|
||||
useRef: unsupportedHook,
|
||||
useState: unsupportedHook,
|
||||
@@ -333,6 +277,9 @@ function unsupportedHook() {
|
||||
function unsupportedRefresh() {
|
||||
throw Error("Refreshing the cache is not supported in Server Components.");
|
||||
}
|
||||
function unsupportedContext() {
|
||||
throw Error("Cannot read a Client Context from a Server Component.");
|
||||
}
|
||||
function useId() {
|
||||
if (null === currentRequest$1)
|
||||
throw Error("useId can only be used while React is rendering");
|
||||
@@ -350,8 +297,12 @@ function use(usable) {
|
||||
null === thenableState && (thenableState = []);
|
||||
return trackUsedThenable(thenableState, usable, index);
|
||||
}
|
||||
if (usable.$$typeof === REACT_SERVER_CONTEXT_TYPE)
|
||||
return usable._currentValue;
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
||||
}
|
||||
if (isClientReference(usable)) {
|
||||
if (null != usable.value && usable.value.$$typeof === REACT_CONTEXT_TYPE)
|
||||
throw Error("Cannot read a Client Context from a Server Component.");
|
||||
throw Error("Cannot use() an already resolved Client Reference.");
|
||||
}
|
||||
throw Error("An unsupported type was passed to use(): " + String(usable));
|
||||
}
|
||||
@@ -505,7 +456,6 @@ function serializeThenable(request, task, thenable) {
|
||||
null,
|
||||
task.keyPath,
|
||||
task.implicitSlot,
|
||||
task.context,
|
||||
request.abortableTasks
|
||||
);
|
||||
switch (thenable.status) {
|
||||
@@ -698,13 +648,12 @@ function pingTask(request, task) {
|
||||
((request.flushScheduled = null !== request.destination),
|
||||
performWork(request));
|
||||
}
|
||||
function createTask(request, model, keyPath, implicitSlot, context, abortSet) {
|
||||
function createTask(request, model, keyPath, implicitSlot, abortSet) {
|
||||
var id = request.nextChunkId++;
|
||||
"object" !== typeof model ||
|
||||
null === model ||
|
||||
null !== keyPath ||
|
||||
implicitSlot ||
|
||||
null !== context ||
|
||||
request.writtenObjects.set(model, id);
|
||||
var task = {
|
||||
id: id,
|
||||
@@ -712,7 +661,6 @@ function createTask(request, model, keyPath, implicitSlot, context, abortSet) {
|
||||
model: model,
|
||||
keyPath: keyPath,
|
||||
implicitSlot: implicitSlot,
|
||||
context: context,
|
||||
ping: function () {
|
||||
return pingTask(request, task);
|
||||
},
|
||||
@@ -749,7 +697,6 @@ function createTask(request, model, keyPath, implicitSlot, context, abortSet) {
|
||||
task.model,
|
||||
task.keyPath,
|
||||
task.implicitSlot,
|
||||
task.context,
|
||||
request.abortableTasks
|
||||
);
|
||||
var ping = JSCompiler_inline_result.ping;
|
||||
@@ -827,7 +774,7 @@ function serializeClientReference(
|
||||
}
|
||||
function outlineModel(request, value) {
|
||||
request.pendingChunks++;
|
||||
value = createTask(request, value, null, !1, null, request.abortableTasks);
|
||||
value = createTask(request, value, null, !1, request.abortableTasks);
|
||||
retryTask(request, value);
|
||||
return value.id;
|
||||
}
|
||||
@@ -848,11 +795,7 @@ function renderModelDestructive(
|
||||
parent = request.writtenObjects;
|
||||
parentPropertyName = parent.get(value);
|
||||
if (void 0 !== parentPropertyName) {
|
||||
if (
|
||||
null === task.keyPath &&
|
||||
!task.implicitSlot &&
|
||||
null === task.context
|
||||
)
|
||||
if (null === task.keyPath && !task.implicitSlot)
|
||||
if (modelRoot === value) modelRoot = null;
|
||||
else
|
||||
return -1 === parentPropertyName
|
||||
@@ -885,7 +828,7 @@ function renderModelDestructive(
|
||||
parentPropertyName = parent.get(value);
|
||||
if ("function" === typeof value.then) {
|
||||
if (void 0 !== parentPropertyName) {
|
||||
if (null !== task.keyPath || task.implicitSlot || null !== task.context)
|
||||
if (null !== task.keyPath || task.implicitSlot)
|
||||
return "$@" + serializeThenable(request, task, value).toString(16);
|
||||
if (modelRoot === value) modelRoot = null;
|
||||
else return "$@" + parentPropertyName.toString(16);
|
||||
@@ -1038,20 +981,7 @@ function emitErrorChunk(request, id, digest) {
|
||||
}
|
||||
var emptyRoot = {};
|
||||
function retryTask(request, task) {
|
||||
if (0 === task.status) {
|
||||
var prev = currentActiveSnapshot,
|
||||
next = task.context;
|
||||
prev !== next &&
|
||||
(null === prev
|
||||
? pushAllNext(next)
|
||||
: null === next
|
||||
? popAllPrevious(prev)
|
||||
: prev.depth === next.depth
|
||||
? popToNearestCommonAncestor(prev, next)
|
||||
: prev.depth > next.depth
|
||||
? popPreviousToCommonLevel(prev, next)
|
||||
: popNextToCommonLevel(prev, next),
|
||||
(currentActiveSnapshot = next));
|
||||
if (0 === task.status)
|
||||
try {
|
||||
modelRoot = task.model;
|
||||
var resolvedModel = renderModelDestructive(
|
||||
@@ -1073,23 +1003,21 @@ function retryTask(request, task) {
|
||||
request.abortableTasks.delete(task);
|
||||
task.status = 1;
|
||||
} catch (thrownValue) {
|
||||
var x =
|
||||
(resolvedModel =
|
||||
thrownValue === SuspenseException
|
||||
? getSuspendedThenable()
|
||||
: thrownValue;
|
||||
if ("object" === typeof x && null !== x && "function" === typeof x.then) {
|
||||
var ping = task.ping;
|
||||
x.then(ping, ping);
|
||||
task.thenableState = getThenableStateAfterSuspending();
|
||||
} else {
|
||||
request.abortableTasks.delete(task);
|
||||
task.status = 4;
|
||||
var digest = logRecoverableError(request, x);
|
||||
emitErrorChunk(request, task.id, digest);
|
||||
}
|
||||
} finally {
|
||||
: thrownValue),
|
||||
"object" === typeof resolvedModel &&
|
||||
null !== resolvedModel &&
|
||||
"function" === typeof resolvedModel.then
|
||||
? ((request = task.ping),
|
||||
resolvedModel.then(request, request),
|
||||
(task.thenableState = getThenableStateAfterSuspending()))
|
||||
: (request.abortableTasks.delete(task),
|
||||
(task.status = 4),
|
||||
(resolvedModel = logRecoverableError(request, resolvedModel)),
|
||||
emitErrorChunk(request, task.id, resolvedModel));
|
||||
}
|
||||
}
|
||||
}
|
||||
function performWork(request) {
|
||||
var prevDispatcher = ReactCurrentDispatcher.current;
|
||||
@@ -1187,7 +1115,6 @@ exports.renderToDestination = function (destination, model, options) {
|
||||
writtenSymbols: new Map(),
|
||||
writtenClientReferences: new Map(),
|
||||
writtenServerReferences: new Map(),
|
||||
writtenProviders: new Map(),
|
||||
writtenObjects: new WeakMap(),
|
||||
identifierPrefix: "",
|
||||
identifierCount: 1,
|
||||
@@ -1196,7 +1123,7 @@ exports.renderToDestination = function (destination, model, options) {
|
||||
onPostpone: defaultPostponeHandler
|
||||
};
|
||||
onError.pendingChunks++;
|
||||
model = createTask(onError, model, null, !1, null, abortSet);
|
||||
model = createTask(onError, model, null, !1, abortSet);
|
||||
options.push(model);
|
||||
onError.flushScheduled = null !== onError.destination;
|
||||
performWork(onError);
|
||||
|
||||
@@ -27,7 +27,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -109,7 +108,6 @@ if (__DEV__) {
|
||||
var $$typeofType = type && type.$$typeof;
|
||||
|
||||
switch ($$typeofType) {
|
||||
case REACT_SERVER_CONTEXT_TYPE:
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
|
||||
@@ -27,7 +27,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -109,7 +108,6 @@ if (__DEV__) {
|
||||
var $$typeofType = type && type.$$typeof;
|
||||
|
||||
switch ($$typeofType) {
|
||||
case REACT_SERVER_CONTEXT_TYPE:
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
|
||||
@@ -18,7 +18,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -48,7 +47,6 @@ function typeOf(object) {
|
||||
return object;
|
||||
default:
|
||||
switch (((object = object && object.$$typeof), object)) {
|
||||
case REACT_SERVER_CONTEXT_TYPE:
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
|
||||
@@ -18,7 +18,6 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
@@ -48,7 +47,6 @@ function typeOf(object) {
|
||||
return object;
|
||||
default:
|
||||
switch (((object = object && object.$$typeof), object)) {
|
||||
case REACT_SERVER_CONTEXT_TYPE:
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
|
||||
@@ -2085,12 +2085,6 @@ if (__DEV__) {
|
||||
return refObject;
|
||||
}
|
||||
|
||||
function createServerContext(globalName, defaultValue) {
|
||||
{
|
||||
throw new Error("Not implemented.");
|
||||
}
|
||||
}
|
||||
|
||||
function resolveDispatcher() {
|
||||
var dispatcher = ReactCurrentDispatcher$1.current;
|
||||
|
||||
@@ -2111,31 +2105,6 @@ if (__DEV__) {
|
||||
|
||||
return dispatcher;
|
||||
}
|
||||
function useContext(Context) {
|
||||
var dispatcher = resolveDispatcher();
|
||||
|
||||
{
|
||||
// TODO: add a more generic warning for invalid values.
|
||||
if (Context._context !== undefined) {
|
||||
var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
|
||||
// and nobody should be using this in existing code.
|
||||
|
||||
if (realContext.Consumer === Context) {
|
||||
error(
|
||||
"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be " +
|
||||
"removed in a future major release. Did you mean to call useContext(Context) instead?"
|
||||
);
|
||||
} else if (realContext.Provider === Context) {
|
||||
error(
|
||||
"Calling useContext(Context.Provider) is not supported. " +
|
||||
"Did you mean to call useContext(Context) instead?"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return dispatcher.useContext(Context);
|
||||
}
|
||||
function useCallback(callback, deps) {
|
||||
var dispatcher = resolveDispatcher();
|
||||
return dispatcher.useCallback(callback, deps);
|
||||
@@ -2624,7 +2593,7 @@ if (__DEV__) {
|
||||
console["error"](error);
|
||||
};
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-6d060166";
|
||||
var ReactVersion = "18.3.0-www-modern-813d6bf7";
|
||||
|
||||
// Patch fetch
|
||||
var Children = {
|
||||
@@ -3390,7 +3359,6 @@ if (__DEV__) {
|
||||
exports.cloneElement = cloneElement;
|
||||
exports.createElement = createElement;
|
||||
exports.createRef = createRef;
|
||||
exports.createServerContext = createServerContext;
|
||||
exports.forwardRef = forwardRef;
|
||||
exports.isValidElement = isValidElement$1;
|
||||
exports.jsx = jsx;
|
||||
@@ -3401,7 +3369,6 @@ if (__DEV__) {
|
||||
exports.startTransition = startTransition;
|
||||
exports.use = use;
|
||||
exports.useCallback = useCallback;
|
||||
exports.useContext = useContext;
|
||||
exports.useDebugValue = useDebugValue;
|
||||
exports.useId = useId;
|
||||
exports.useMemo = useMemo;
|
||||
|
||||
@@ -402,9 +402,6 @@ exports.createElement = function (type, config, children) {
|
||||
exports.createRef = function () {
|
||||
return { current: null };
|
||||
};
|
||||
exports.createServerContext = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.forwardRef = function (render) {
|
||||
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
||||
};
|
||||
@@ -464,9 +461,6 @@ exports.use = function (usable) {
|
||||
exports.useCallback = function (callback, deps) {
|
||||
return ReactCurrentDispatcher.current.useCallback(callback, deps);
|
||||
};
|
||||
exports.useContext = function (Context) {
|
||||
return ReactCurrentDispatcher.current.useContext(Context);
|
||||
};
|
||||
exports.useDebugValue = function () {};
|
||||
exports.useId = function () {
|
||||
return ReactCurrentDispatcher.current.useId();
|
||||
@@ -474,4 +468,4 @@ exports.useId = function () {
|
||||
exports.useMemo = function (create, deps) {
|
||||
return ReactCurrentDispatcher.current.useMemo(create, deps);
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-f4094d5d";
|
||||
exports.version = "18.3.0-www-modern-4fd18aea";
|
||||
|
||||
@@ -187,7 +187,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -3041,9 +3040,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -5870,10 +5867,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -5957,10 +5951,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -6061,10 +6052,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -6771,10 +6759,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -7891,10 +7876,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -16253,9 +16235,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue2 = currentValue;
|
||||
}
|
||||
context._currentValue2 = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer2 = renderer2CursorDEV.current;
|
||||
@@ -16570,9 +16550,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
@@ -26077,7 +26055,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-aef0373e";
|
||||
var ReactVersion = "18.3.0-www-classic-1094cbd3";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
@@ -187,7 +187,6 @@ if (__DEV__) {
|
||||
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
||||
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||
@@ -3041,9 +3040,7 @@ if (__DEV__) {
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
Consumer: null
|
||||
};
|
||||
|
||||
function requiredContext(c) {
|
||||
@@ -5870,10 +5867,7 @@ if (__DEV__) {
|
||||
return createChild(returnFiber, unwrapThenable(thenable), lanes);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return createChild(
|
||||
returnFiber,
|
||||
@@ -5957,10 +5951,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateSlot(
|
||||
returnFiber,
|
||||
@@ -6061,10 +6052,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return updateFromMap(
|
||||
existingChildren,
|
||||
@@ -6771,10 +6759,7 @@ if (__DEV__) {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
newChild.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
newChild.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = newChild;
|
||||
return reconcileChildFibersImpl(
|
||||
returnFiber,
|
||||
@@ -7891,10 +7876,7 @@ if (__DEV__) {
|
||||
// This is a thenable.
|
||||
var thenable = usable;
|
||||
return useThenable(thenable);
|
||||
} else if (
|
||||
usable.$$typeof === REACT_CONTEXT_TYPE ||
|
||||
usable.$$typeof === REACT_SERVER_CONTEXT_TYPE
|
||||
) {
|
||||
} else if (usable.$$typeof === REACT_CONTEXT_TYPE) {
|
||||
var context = usable;
|
||||
return readContext(context);
|
||||
}
|
||||
@@ -16253,9 +16235,7 @@ if (__DEV__) {
|
||||
var currentValue = valueCursor.current;
|
||||
|
||||
{
|
||||
{
|
||||
context._currentValue2 = currentValue;
|
||||
}
|
||||
context._currentValue2 = currentValue;
|
||||
|
||||
{
|
||||
var currentRenderer2 = renderer2CursorDEV.current;
|
||||
@@ -16570,9 +16550,7 @@ if (__DEV__) {
|
||||
// We'll initialize these at the root.
|
||||
_currentValue: null,
|
||||
_currentValue2: null,
|
||||
_threadCount: 0,
|
||||
_defaultValue: null,
|
||||
_globalName: null
|
||||
_threadCount: 0
|
||||
};
|
||||
|
||||
{
|
||||
@@ -26077,7 +26055,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-46def2fc";
|
||||
var ReactVersion = "18.3.0-www-modern-c5c74e05";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ export default [
|
||||
"Cannot find single active touch.",
|
||||
"Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components.",
|
||||
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.",
|
||||
"Cannot read a Client Context from a Server Component.",
|
||||
"Cannot record touch end without a touch start.\nTouch End: %s\nTouch Bank: %s",
|
||||
"Cannot record touch move without a touch start.\nTouch Move: %s\nTouch Bank: %s",
|
||||
"Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",
|
||||
@@ -130,12 +129,10 @@ export default [
|
||||
"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",
|
||||
"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",
|
||||
"Cannot update the \"is\" prop after it has been initialized.",
|
||||
"Cannot use() an already resolved Client Reference.",
|
||||
"Changing the name of a tracing marker after mount is not supported. To remount the tracing marker, pass it a new key.",
|
||||
"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://reactjs.org/link/strict-mode-string-ref",
|
||||
"Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref",
|
||||
"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
||||
"Consumer pattern is not supported by ReactServerContext",
|
||||
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().",
|
||||
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.",
|
||||
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.",
|
||||
@@ -207,7 +204,6 @@ export default [
|
||||
"Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",
|
||||
"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.",
|
||||
"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)",
|
||||
"Only createServerContext is supported in Server Components.",
|
||||
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
|
||||
"Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s",
|
||||
"Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s",
|
||||
@@ -225,7 +221,6 @@ export default [
|
||||
"React Lazy cannot be passed to Server Functions from the Client.%s",
|
||||
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills",
|
||||
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
|
||||
"React elements are not allowed in ServerContext",
|
||||
"React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.",
|
||||
"React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.",
|
||||
"React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.",
|
||||
@@ -278,8 +273,6 @@ export default [
|
||||
"Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?",
|
||||
"Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?",
|
||||
"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components",
|
||||
"Server Context is deprecated and will soon be removed. It was never documented and we have found it not to be useful enough to warrant the downside it imposes on all apps.",
|
||||
"ServerContext can only have a value prop and children. Found: %s",
|
||||
"Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",
|
||||
"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
|
||||
"Should have found matching lanes. This is a bug in React.",
|
||||
|
||||
Reference in New Issue
Block a user