[Fiber] Move updatePriority tracking to renderers (#28751)

Currently updatePriority is tracked in the reconciler. `flushSync` is
going to be implemented reconciler agnostic soon and we need to move the
tracking of this state to the renderer and out of reconciler. This
change implements new renderer bin dings for getCurrentUpdatePriority
and setCurrentUpdatePriority.

I was originally going to have the getter also do the event priority
defaulting using window.event so we eliminate getCur rentEventPriority
but this makes all the callsites where we store the true current
updatePriority on the stack harder to work with so for now they remain
separate.

I also moved runWithPriority to the renderer since it really belongs
whereever the state is being managed and it is only currently exposed in
the DOM renderer.

Additionally the current update priority is not stored on
ReactDOMSharedInternals. While not particularly meaningful in this
change it opens the door to implementing `flushSync` outside of the
reconciler

DiffTrain build for [8e1462e8c4](https://github.com/facebook/react/commit/8e1462e8c471fbec98aac2b3e1326498d0ff7139)
This commit is contained in:
gnoff
2024-04-08 15:58:13 +00:00
parent aabb356a7e
commit ffde2c00a9
17 changed files with 4091 additions and 4156 deletions
+1 -1
View File
@@ -1 +1 @@
0b3b8a6a354b90fe76a9d82bb34487e5d2f71203
8e1462e8c471fbec98aac2b3e1326498d0ff7139
+20 -33
View File
@@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}
var ReactVersion = "19.0.0-www-classic-fcdce517";
var ReactVersion = "19.0.0-www-classic-6d726b4b";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -2576,17 +2576,11 @@ if (__DEV__) {
}
}
var NoEventPriority = NoLane;
var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function higherEventPriority(a, b) {
return a !== 0 && a < b ? a : b;
}
@@ -2596,6 +2590,9 @@ if (__DEV__) {
function isHigherEventPriority(a, b) {
return a !== 0 && a < b;
}
function eventPriorityToLane(updatePriority) {
return updatePriority;
}
function lanesToEventPriority(lanes) {
var lane = getHighestPriorityLane(lanes);
@@ -2961,8 +2958,15 @@ if (__DEV__) {
typeof props.children === "string" || typeof props.children === "number"
);
}
function getCurrentEventPriority() {
return DefaultEventPriority;
var currentUpdatePriority = NoEventPriority;
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function resolveUpdatePriority() {
return currentUpdatePriority || DefaultEventPriority;
}
function shouldAttemptEagerTransition() {
return false;
@@ -25880,26 +25884,9 @@ if (__DEV__) {
: // is the first update in that scope. Either way, we need to get a
// fresh transition lane.
requestTransitionLane();
} // Updates originating inside certain React methods, like flushSync, have
// their priority set by tracking it with a context variable.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
}
var updateLane = getCurrentUpdatePriority();
if (updateLane !== NoLane) {
return updateLane;
} // This update originated outside React. Ask the host environment for an
// appropriate priority, based on the type of event.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
var eventLane = getCurrentEventPriority();
return eventLane;
return eventPriorityToLane(resolveUpdatePriority());
}
function requestRetryLane(fiber) {
@@ -26633,8 +26620,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
if (fn) {
return fn();
@@ -27801,12 +27788,12 @@ if (__DEV__) {
) {
// TODO: This no longer makes any sense. We already wrap the mutation and
// layout phases. Should be able to remove.
var previousUpdateLanePriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
var previousUpdateLanePriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
commitRootImpl(
root,
recoverableErrors,
@@ -28212,8 +28199,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(priority);
ReactCurrentBatchConfig.transition = null;
return flushPassiveEffectsImpl();
} finally {
setCurrentUpdatePriority(previousPriority);
+20 -33
View File
@@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}
var ReactVersion = "19.0.0-www-modern-f3bc72db";
var ReactVersion = "19.0.0-www-modern-35717797";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -2573,17 +2573,11 @@ if (__DEV__) {
}
}
var NoEventPriority = NoLane;
var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function higherEventPriority(a, b) {
return a !== 0 && a < b ? a : b;
}
@@ -2593,6 +2587,9 @@ if (__DEV__) {
function isHigherEventPriority(a, b) {
return a !== 0 && a < b;
}
function eventPriorityToLane(updatePriority) {
return updatePriority;
}
function lanesToEventPriority(lanes) {
var lane = getHighestPriorityLane(lanes);
@@ -2958,8 +2955,15 @@ if (__DEV__) {
typeof props.children === "string" || typeof props.children === "number"
);
}
function getCurrentEventPriority() {
return DefaultEventPriority;
var currentUpdatePriority = NoEventPriority;
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function resolveUpdatePriority() {
return currentUpdatePriority || DefaultEventPriority;
}
function shouldAttemptEagerTransition() {
return false;
@@ -25098,26 +25102,9 @@ if (__DEV__) {
: // is the first update in that scope. Either way, we need to get a
// fresh transition lane.
requestTransitionLane();
} // Updates originating inside certain React methods, like flushSync, have
// their priority set by tracking it with a context variable.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
}
var updateLane = getCurrentUpdatePriority();
if (updateLane !== NoLane) {
return updateLane;
} // This update originated outside React. Ask the host environment for an
// appropriate priority, based on the type of event.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
var eventLane = getCurrentEventPriority();
return eventLane;
return eventPriorityToLane(resolveUpdatePriority());
}
function requestRetryLane(fiber) {
@@ -25840,8 +25827,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
if (fn) {
return fn();
@@ -26999,12 +26986,12 @@ if (__DEV__) {
) {
// TODO: This no longer makes any sense. We already wrap the mutation and
// layout phases. Should be able to remove.
var previousUpdateLanePriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
var previousUpdateLanePriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
commitRootImpl(
root,
recoverableErrors,
@@ -27407,8 +27394,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(priority);
ReactCurrentBatchConfig.transition = null;
return flushPassiveEffectsImpl();
} finally {
setCurrentUpdatePriority(previousPriority);
+21 -24
View File
@@ -648,7 +648,6 @@ function clearTransitionsForLanes(root, lanes) {
lanes &= ~lane;
}
}
var currentUpdatePriority = 0;
function lanesToEventPriority(lanes) {
lanes &= -lanes;
return 2 < lanes
@@ -826,7 +825,8 @@ function shouldSetTextContent(type, props) {
"string" === typeof props.children || "number" === typeof props.children
);
}
var valueStack = [],
var currentUpdatePriority = 0,
valueStack = [],
index = -1;
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -8998,16 +8998,14 @@ var legacyErrorBoundariesThatAlreadyFailed = null,
nestedUpdateCount = 0,
rootWithNestedUpdates = null;
function requestUpdateLane(fiber) {
if (0 === (fiber.mode & 1)) return 2;
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
if (null !== requestCurrentTransition())
return (
(fiber = currentEntangledLane),
0 !== fiber ? fiber : requestTransitionLane()
);
fiber = currentUpdatePriority;
return 0 !== fiber ? fiber : 32;
return 0 === (fiber.mode & 1)
? 2
: 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes
? workInProgressRootRenderLanes & -workInProgressRootRenderLanes
: null !== requestCurrentTransition()
? ((fiber = currentEntangledLane),
0 !== fiber ? fiber : requestTransitionLane())
: currentUpdatePriority || 32;
}
function requestDeferredLane() {
0 === workInProgressDeferredLane &&
@@ -9352,8 +9350,8 @@ function flushSync(fn) {
previousPriority = currentUpdatePriority;
try {
if (
((ReactCurrentBatchConfig.transition = null),
(currentUpdatePriority = 2),
((currentUpdatePriority = 2),
(ReactCurrentBatchConfig.transition = null),
fn)
)
return fn();
@@ -9787,11 +9785,11 @@ function commitRoot(
didIncludeRenderPhaseUpdate,
spawnedLane
) {
var previousUpdateLanePriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition,
previousUpdateLanePriority = currentUpdatePriority;
try {
(ReactCurrentBatchConfig.transition = null),
(currentUpdatePriority = 2),
(currentUpdatePriority = 2),
(ReactCurrentBatchConfig.transition = null),
commitRootImpl(
root,
recoverableErrors,
@@ -9905,14 +9903,13 @@ function flushPassiveEffects() {
var root = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
renderPriority = 32 > renderPriority ? 32 : renderPriority;
var prevTransition = ReactCurrentBatchConfig.transition,
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
prevTransition = ReactCurrentBatchConfig.transition,
previousPriority = currentUpdatePriority;
try {
return (
(currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority),
(ReactCurrentBatchConfig.transition = null),
(currentUpdatePriority = renderPriority),
flushPassiveEffectsImpl()
);
} finally {
@@ -10657,7 +10654,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-2b02e6e9",
version: "19.0.0-www-classic-ce2e7147",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1315 = {
@@ -10688,7 +10685,7 @@ var internals$jscomp$inline_1315 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-2b02e6e9"
reconcilerVersion: "19.0.0-www-classic-ce2e7147"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1316 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+14 -16
View File
@@ -524,7 +524,6 @@ function clearTransitionsForLanes(root, lanes) {
lanes &= ~lane;
}
}
var currentUpdatePriority = 0;
function lanesToEventPriority(lanes) {
lanes &= -lanes;
return 2 < lanes
@@ -702,7 +701,8 @@ function shouldSetTextContent(type, props) {
"string" === typeof props.children || "number" === typeof props.children
);
}
var valueStack = [],
var currentUpdatePriority = 0,
valueStack = [],
index = -1;
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -8539,8 +8539,7 @@ function requestUpdateLane() {
var actionScopeLane = currentEntangledLane;
return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane();
}
actionScopeLane = currentUpdatePriority;
return 0 !== actionScopeLane ? actionScopeLane : 32;
return currentUpdatePriority || 32;
}
function requestDeferredLane() {
0 === workInProgressDeferredLane &&
@@ -8875,8 +8874,8 @@ function flushSync(fn) {
previousPriority = currentUpdatePriority;
try {
if (
((ReactCurrentBatchConfig.transition = null),
(currentUpdatePriority = 2),
((currentUpdatePriority = 2),
(ReactCurrentBatchConfig.transition = null),
fn)
)
return fn();
@@ -9306,11 +9305,11 @@ function commitRoot(
didIncludeRenderPhaseUpdate,
spawnedLane
) {
var previousUpdateLanePriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition,
previousUpdateLanePriority = currentUpdatePriority;
try {
(ReactCurrentBatchConfig.transition = null),
(currentUpdatePriority = 2),
(currentUpdatePriority = 2),
(ReactCurrentBatchConfig.transition = null),
commitRootImpl(
root,
recoverableErrors,
@@ -9422,14 +9421,13 @@ function flushPassiveEffects() {
var root = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
renderPriority = 32 > renderPriority ? 32 : renderPriority;
var prevTransition = ReactCurrentBatchConfig.transition,
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
prevTransition = ReactCurrentBatchConfig.transition,
previousPriority = currentUpdatePriority;
try {
return (
(currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority),
(ReactCurrentBatchConfig.transition = null),
(currentUpdatePriority = renderPriority),
flushPassiveEffectsImpl()
);
} finally {
@@ -10129,7 +10127,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-e55d9247",
version: "19.0.0-www-modern-8d1012db",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1296 = {
@@ -10160,7 +10158,7 @@ var internals$jscomp$inline_1296 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-e55d9247"
reconcilerVersion: "19.0.0-www-modern-8d1012db"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1297 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+198 -196
View File
@@ -1245,6 +1245,139 @@ if (__DEV__) {
}
}
// $FlowFixMe[method-unbinding]
var hasOwnProperty = Object.prototype.hasOwnProperty;
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
*
* The functions in this module will throw an easier-to-understand,
* easier-to-debug exception with a clear errors message message explaining the
* problem. (Instead of a confusing exception thrown inside the implementation
* of the `value` object).
*/
// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function typeName(value) {
{
// toStringTag is needed for namespaced types like Temporal.Instant
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
var type =
(hasToStringTag && value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"; // $FlowFixMe[incompatible-return]
return type;
}
} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function willCoercionThrow(value) {
{
try {
testStringCoercion(value);
return false;
} catch (e) {
return true;
}
}
}
function testStringCoercion(value) {
// If you ended up here by following an exception call stack, here's what's
// happened: you supplied an object or symbol value to React (as a prop, key,
// DOM attribute, CSS property, string ref, etc.) and when React tried to
// coerce it to a string using `'' + value`, an exception was thrown.
//
// The most common types that will cause this exception are `Symbol` instances
// and Temporal objects like `Temporal.Instant`. But any object that has a
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
// exception. (Library authors do this to prevent users from using built-in
// numeric operators like `+` or comparison operators like `>=` because custom
// methods are needed to perform accurate arithmetic or comparison.)
//
// To fix the problem, coerce this object or symbol value to a string before
// passing it to React. The most reliable way is usually `String(value)`.
//
// To find which value is throwing, check the browser or debugger console.
// Before this exception was thrown, there should be `console.error` output
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
// problem and how that type was used: key, atrribute, input value prop, etc.
// In most cases, this console output also shows the component and its
// ancestor components where the exception happened.
//
// eslint-disable-next-line react-internal/safe-string-coercion
return "" + value;
}
function checkAttributeStringCoercion(value, attributeName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` attribute is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
attributeName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkKeyStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided key is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkCSSPropertyStringCoercion(value, propName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` CSS property is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
propName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkHtmlStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided HTML markup uses a value of unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkFormFieldValueStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"Form field values (value, checked, defaultValue, or defaultChecked props)" +
" must be strings, not %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
// This module only exists as an ESM wrapper around the external CommonJS
var scheduleCallback$3 = Scheduler.unstable_scheduleCallback;
var cancelCallback$1 = Scheduler.unstable_cancelCallback;
@@ -2853,27 +2986,11 @@ if (__DEV__) {
}
}
var NoEventPriority = NoLane;
var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function runWithPriority(priority, fn) {
var previousPriority = currentUpdatePriority;
try {
currentUpdatePriority = priority;
return fn();
} finally {
currentUpdatePriority = previousPriority;
}
}
function higherEventPriority(a, b) {
return a !== 0 && a < b ? a : b;
}
@@ -2883,6 +3000,9 @@ if (__DEV__) {
function isHigherEventPriority(a, b) {
return a !== 0 && a < b;
}
function eventPriorityToLane(updatePriority) {
return updatePriority;
}
function lanesToEventPriority(lanes) {
var lane = getHighestPriorityLane(lanes);
@@ -2901,136 +3021,64 @@ if (__DEV__) {
return IdleEventPriority;
}
// $FlowFixMe[method-unbinding]
var hasOwnProperty = Object.prototype.hasOwnProperty;
function noop$3() {}
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
*
* The functions in this module will throw an easier-to-understand,
* easier-to-debug exception with a clear errors message message explaining the
* problem. (Instead of a confusing exception thrown inside the implementation
* of the `value` object).
*/
// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function typeName(value) {
{
// toStringTag is needed for namespaced types like Temporal.Instant
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
var type =
(hasToStringTag && value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"; // $FlowFixMe[incompatible-return]
var DefaultDispatcher = {
prefetchDNS: noop$3,
preconnect: noop$3,
preload: noop$3,
preloadModule: noop$3,
preinitScript: noop$3,
preinitStyle: noop$3,
preinitModuleScript: noop$3
};
var Internals = {
usingClientEntryPoint: false,
Events: null,
ReactDOMCurrentDispatcher: {
current: DefaultDispatcher
},
findDOMNode: null,
up:
/* currentUpdatePriority */
NoEventPriority
};
return type;
}
} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function willCoercionThrow(value) {
{
try {
testStringCoercion(value);
return false;
} catch (e) {
return true;
}
}
function setCurrentUpdatePriority(
newPriority, // Closure will consistently not inline this function when it has arity 1
// however when it has arity 2 even if the second arg is omitted at every
// callsite it seems to inline it even when the internal length of the function
// is much longer. I hope this is consistent enough to rely on across builds
IntentionallyUnusedArgument
) {
Internals.up = newPriority;
}
function testStringCoercion(value) {
// If you ended up here by following an exception call stack, here's what's
// happened: you supplied an object or symbol value to React (as a prop, key,
// DOM attribute, CSS property, string ref, etc.) and when React tried to
// coerce it to a string using `'' + value`, an exception was thrown.
//
// The most common types that will cause this exception are `Symbol` instances
// and Temporal objects like `Temporal.Instant`. But any object that has a
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
// exception. (Library authors do this to prevent users from using built-in
// numeric operators like `+` or comparison operators like `>=` because custom
// methods are needed to perform accurate arithmetic or comparison.)
//
// To fix the problem, coerce this object or symbol value to a string before
// passing it to React. The most reliable way is usually `String(value)`.
//
// To find which value is throwing, check the browser or debugger console.
// Before this exception was thrown, there should be `console.error` output
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
// problem and how that type was used: key, atrribute, input value prop, etc.
// In most cases, this console output also shows the component and its
// ancestor components where the exception happened.
//
// eslint-disable-next-line react-internal/safe-string-coercion
return "" + value;
function getCurrentUpdatePriority() {
return Internals.up;
}
function resolveUpdatePriority() {
var updatePriority = Internals.up;
function checkAttributeStringCoercion(value, attributeName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` attribute is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
attributeName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
if (updatePriority !== NoEventPriority) {
return updatePriority;
}
}
function checkKeyStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided key is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
var currentEvent = window.event;
if (currentEvent === undefined) {
return DefaultEventPriority;
}
}
function checkCSSPropertyStringCoercion(value, propName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` CSS property is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
propName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
return getEventPriority(currentEvent.type);
}
function checkHtmlStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided HTML markup uses a value of unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
function runWithPriority(priority, fn) {
var previousPriority = getCurrentUpdatePriority();
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkFormFieldValueStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"Form field values (value, checked, defaultValue, or defaultChecked props)" +
" must be strings, not %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
try {
setCurrentUpdatePriority(priority);
return fn();
} finally {
setCurrentUpdatePriority(previousPriority);
}
}
@@ -11195,7 +11243,7 @@ if (__DEV__) {
return status === "fulfilled" || status === "rejected";
}
function noop$3() {}
function noop$2() {}
function trackUsedThenable(thenableState, thenable, index) {
if (ReactCurrentActQueue$3.current !== null) {
@@ -11241,7 +11289,7 @@ if (__DEV__) {
} // Avoid an unhandled rejection errors for the Promises that we'll
// intentionally ignore.
thenable.then(noop$3, noop$3);
thenable.then(noop$2, noop$2);
thenable = previous;
}
} // We use an expando to track the status and result of a thenable so that we
@@ -11270,7 +11318,7 @@ if (__DEV__) {
// some custom userspace implementation. We treat it as "pending".
// Attach a dummy listener, to ensure that any lazy initialization can
// happen. Flight lazily parses JSON when the value is actually awaited.
thenable.then(noop$3, noop$3);
thenable.then(noop$2, noop$2);
} else {
// This is an uncached thenable that we haven't seen before.
// Detect infinite ping loops caused by uncached promises.
@@ -31512,26 +31560,9 @@ if (__DEV__) {
: // is the first update in that scope. Either way, we need to get a
// fresh transition lane.
requestTransitionLane();
} // Updates originating inside certain React methods, like flushSync, have
// their priority set by tracking it with a context variable.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
}
var updateLane = getCurrentUpdatePriority();
if (updateLane !== NoLane) {
return updateLane;
} // This update originated outside React. Ask the host environment for an
// appropriate priority, based on the type of event.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
var eventLane = getCurrentEventPriority();
return eventLane;
return eventPriorityToLane(resolveUpdatePriority());
}
function requestRetryLane(fiber) {
@@ -32337,8 +32368,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig$1.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig$1.transition = null;
if (fn) {
return fn();
@@ -33510,12 +33541,12 @@ if (__DEV__) {
) {
// TODO: This no longer makes any sense. We already wrap the mutation and
// layout phases. Should be able to remove.
var previousUpdateLanePriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig$1.transition;
var previousUpdateLanePriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig$1.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig$1.transition = null;
commitRootImpl(
root,
recoverableErrors,
@@ -33969,8 +34000,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig$1.transition = null;
setCurrentUpdatePriority(priority);
ReactCurrentBatchConfig$1.transition = null;
return flushPassiveEffectsImpl();
} finally {
setCurrentUpdatePriority(previousPriority);
@@ -36120,7 +36151,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-42b57943";
var ReactVersion = "19.0.0-www-classic-f2dc8e35";
function createPortal$1(
children,
@@ -40896,7 +40927,7 @@ if (__DEV__) {
return false;
}
function noop$2() {}
function noop$1() {}
function trapClickOnNonInteractiveElement(node) {
// Mobile Safari does not fire properly bubble click events on
@@ -40908,7 +40939,7 @@ if (__DEV__) {
// bookkeeping for it. Not sure if we need to clear it when the listener is
// removed.
// TODO: Only do this for the relevant Safaris maybe?
node.onclick = noop$2;
node.onclick = noop$1;
}
var xlinkNamespace = "http://www.w3.org/1999/xlink";
var xmlNamespace = "http://www.w3.org/XML/1998/namespace";
@@ -44101,26 +44132,6 @@ if (__DEV__) {
}
}
function noop$1() {}
var DefaultDispatcher = {
prefetchDNS: noop$1,
preconnect: noop$1,
preload: noop$1,
preloadModule: noop$1,
preinitScript: noop$1,
preinitStyle: noop$1,
preinitModuleScript: noop$1
};
var Internals = {
usingClientEntryPoint: false,
Events: null,
ReactDOMCurrentDispatcher: {
current: DefaultDispatcher
},
findDOMNode: null
};
var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; // Unused
var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning";
@@ -44528,15 +44539,6 @@ if (__DEV__) {
precacheFiberNode(internalInstanceHandle, textNode);
return textNode;
}
function getCurrentEventPriority() {
var currentEvent = window.event;
if (currentEvent === undefined) {
return DefaultEventPriority;
}
return getEventPriority(currentEvent.type);
}
var currentPopstateTransitionEvent = null;
function shouldAttemptEagerTransition() {
var event = window.event;
@@ -47921,9 +47923,9 @@ if (__DEV__) {
container,
nativeEvent
) {
var previousPriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = getCurrentUpdatePriority();
try {
setCurrentUpdatePriority(DiscreteEventPriority);
@@ -47940,9 +47942,9 @@ if (__DEV__) {
container,
nativeEvent
) {
var previousPriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = getCurrentUpdatePriority();
try {
setCurrentUpdatePriority(ContinuousEventPriority);
File diff suppressed because it is too large Load Diff
+105 -110
View File
@@ -437,7 +437,8 @@ function popHostContext(fiber) {
(pop(hostTransitionProviderCursor),
(HostTransitionContext._currentValue = null));
}
var scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
var hasOwnProperty = Object.prototype.hasOwnProperty,
scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
cancelCallback$1 = Scheduler.unstable_cancelCallback,
shouldYield = Scheduler.unstable_shouldYield,
requestPaint = Scheduler.unstable_requestPaint,
@@ -717,15 +718,6 @@ function clearTransitionsForLanes(root, lanes) {
lanes &= ~lane;
}
}
var currentUpdatePriority = 0;
function runWithPriority(priority, fn) {
var previousPriority = currentUpdatePriority;
try {
return (currentUpdatePriority = priority), fn();
} finally {
currentUpdatePriority = previousPriority;
}
}
function lanesToEventPriority(lanes) {
lanes &= -lanes;
return 2 < lanes
@@ -736,8 +728,33 @@ function lanesToEventPriority(lanes) {
: 8
: 2;
}
var hasOwnProperty = Object.prototype.hasOwnProperty,
allNativeEvents = new Set();
function noop$3() {}
var Internals = {
usingClientEntryPoint: !1,
Events: null,
ReactDOMCurrentDispatcher: {
current: {
prefetchDNS: noop$3,
preconnect: noop$3,
preload: noop$3,
preloadModule: noop$3,
preinitScript: noop$3,
preinitStyle: noop$3,
preinitModuleScript: noop$3
}
},
findDOMNode: null,
up: 0
};
function runWithPriority(priority, fn) {
var previousPriority = Internals.up;
try {
return (Internals.up = priority), fn();
} finally {
Internals.up = previousPriority;
}
}
var allNativeEvents = new Set();
allNativeEvents.add("beforeblur");
allNativeEvents.add("afterblur");
var registrationNameDependencies = {};
@@ -1763,7 +1780,7 @@ function prepareToHydrateHostInstance(fiber) {
? (null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
null != props.onScrollEnd &&
listenToNonDelegatedEvent("scrollend", instance),
null != props.onClick && (instance.onclick = noop$2),
null != props.onClick && (instance.onclick = noop$1),
(instance = !0))
: (instance = !1);
!instance && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(fiber);
@@ -2403,12 +2420,12 @@ function isThenableResolved(thenable) {
thenable = thenable.status;
return "fulfilled" === thenable || "rejected" === thenable;
}
function noop$3() {}
function noop$2() {}
function trackUsedThenable(thenableState, thenable, index) {
index = thenableState[index];
void 0 === index
? thenableState.push(thenable)
: index !== thenable && (thenable.then(noop$3, noop$3), (thenable = index));
: index !== thenable && (thenable.then(noop$2, noop$2), (thenable = index));
switch (thenable.status) {
case "fulfilled":
return thenable.value;
@@ -2418,7 +2435,7 @@ function trackUsedThenable(thenableState, thenable, index) {
throw Error(formatProdErrorMessage(483));
throw thenableState;
default:
if ("string" === typeof thenable.status) thenable.then(noop$3, noop$3);
if ("string" === typeof thenable.status) thenable.then(noop$2, noop$2);
else {
thenableState = workInProgressRoot;
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
@@ -4088,8 +4105,8 @@ function startTransition(
callback,
options
) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority =
var previousPriority = Internals.up;
Internals.up =
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
var prevTransition = ReactCurrentBatchConfig$3.transition,
currentTransition = { _callbacks: new Set() };
@@ -4121,7 +4138,7 @@ function startTransition(
reason: error
});
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$3.transition = prevTransition);
}
}
@@ -9049,7 +9066,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
(parent = parent._reactRootContainer),
(null !== parent && void 0 !== parent) ||
null !== before.onclick ||
(before.onclick = noop$2));
(before.onclick = noop$1));
else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node))
for (
insertOrAppendPlacementNodeIntoContainer(node, before, parent),
@@ -10795,10 +10812,10 @@ function requestUpdateLane(fiber) {
(fiber = currentEntangledLane),
0 !== fiber ? fiber : requestTransitionLane()
);
fiber = currentUpdatePriority;
if (0 !== fiber) return fiber;
fiber = window.event;
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
fiber = Internals.up;
0 === fiber &&
((fiber = window.event),
(fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type)));
return fiber;
}
function requestDeferredLane() {
@@ -11173,16 +11190,12 @@ function flushSync$1(fn) {
var prevExecutionContext = executionContext;
executionContext |= 1;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = currentUpdatePriority;
previousPriority = Internals.up;
try {
if (
((ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = 2),
fn)
)
if (((Internals.up = 2), (ReactCurrentBatchConfig$1.transition = null), fn))
return fn();
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$1.transition = prevTransition),
(executionContext = prevExecutionContext),
0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1);
@@ -11617,11 +11630,11 @@ function commitRoot(
didIncludeRenderPhaseUpdate,
spawnedLane
) {
var previousUpdateLanePriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig$1.transition;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousUpdateLanePriority = Internals.up;
try {
(ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = 2),
(Internals.up = 2),
(ReactCurrentBatchConfig$1.transition = null),
commitRootImpl(
root,
recoverableErrors,
@@ -11632,7 +11645,7 @@ function commitRoot(
);
} finally {
(ReactCurrentBatchConfig$1.transition = prevTransition),
(currentUpdatePriority = previousUpdateLanePriority);
(Internals.up = previousUpdateLanePriority);
}
return null;
}
@@ -11677,8 +11690,8 @@ function commitRootImpl(
if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
transitions = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = null;
spawnedLane = currentUpdatePriority;
currentUpdatePriority = 2;
spawnedLane = Internals.up;
Internals.up = 2;
var prevExecutionContext = executionContext;
executionContext |= 4;
ReactCurrentOwner.current = null;
@@ -11698,7 +11711,7 @@ function commitRootImpl(
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
requestPaint();
executionContext = prevExecutionContext;
currentUpdatePriority = spawnedLane;
Internals.up = spawnedLane;
ReactCurrentBatchConfig$1.transition = transitions;
} else root.current = finishedWork;
rootDoesHavePassiveEffects
@@ -11762,18 +11775,17 @@ function flushPassiveEffects() {
var root$196 = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
renderPriority = 32 > renderPriority ? 32 : renderPriority;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = currentUpdatePriority;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = Internals.up;
try {
return (
(Internals.up = 32 > renderPriority ? 32 : renderPriority),
(ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = renderPriority),
flushPassiveEffectsImpl()
);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$1.transition = prevTransition),
releaseRootPooledCache(root$196, remainingLanes);
}
@@ -13051,14 +13063,14 @@ var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$349;
if (canUseDOM) {
var isSupported$jscomp$inline_1485 = "oninput" in document;
if (!isSupported$jscomp$inline_1485) {
var element$jscomp$inline_1486 = document.createElement("div");
element$jscomp$inline_1486.setAttribute("oninput", "return;");
isSupported$jscomp$inline_1485 =
"function" === typeof element$jscomp$inline_1486.oninput;
var isSupported$jscomp$inline_1495 = "oninput" in document;
if (!isSupported$jscomp$inline_1495) {
var element$jscomp$inline_1496 = document.createElement("div");
element$jscomp$inline_1496.setAttribute("oninput", "return;");
isSupported$jscomp$inline_1495 =
"function" === typeof element$jscomp$inline_1496.oninput;
}
JSCompiler_inline_result$jscomp$349 = isSupported$jscomp$inline_1485;
JSCompiler_inline_result$jscomp$349 = isSupported$jscomp$inline_1495;
} else JSCompiler_inline_result$jscomp$349 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$349 &&
@@ -13433,20 +13445,20 @@ function extractEvents$1(
}
}
for (
var i$jscomp$inline_1526 = 0;
i$jscomp$inline_1526 < simpleEventPluginEvents.length;
i$jscomp$inline_1526++
var i$jscomp$inline_1536 = 0;
i$jscomp$inline_1536 < simpleEventPluginEvents.length;
i$jscomp$inline_1536++
) {
var eventName$jscomp$inline_1527 =
simpleEventPluginEvents[i$jscomp$inline_1526],
domEventName$jscomp$inline_1528 =
eventName$jscomp$inline_1527.toLowerCase(),
capitalizedEvent$jscomp$inline_1529 =
eventName$jscomp$inline_1527[0].toUpperCase() +
eventName$jscomp$inline_1527.slice(1);
var eventName$jscomp$inline_1537 =
simpleEventPluginEvents[i$jscomp$inline_1536],
domEventName$jscomp$inline_1538 =
eventName$jscomp$inline_1537.toLowerCase(),
capitalizedEvent$jscomp$inline_1539 =
eventName$jscomp$inline_1537[0].toUpperCase() +
eventName$jscomp$inline_1537.slice(1);
registerSimpleEvent(
domEventName$jscomp$inline_1528,
"on" + capitalizedEvent$jscomp$inline_1529
domEventName$jscomp$inline_1538,
"on" + capitalizedEvent$jscomp$inline_1539
);
}
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -14289,7 +14301,7 @@ function checkForUnmatchedText(serverText, clientText) {
clientText = normalizeMarkupForTextOrAttribute(clientText);
return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;
}
function noop$2() {}
function noop$1() {}
function setProp(domElement, tag, key, value, props, prevValue) {
switch (key) {
case "children":
@@ -14387,7 +14399,7 @@ function setProp(domElement, tag, key, value, props, prevValue) {
domElement.setAttribute(key, value);
break;
case "onClick":
null != value && (domElement.onclick = noop$2);
null != value && (domElement.onclick = noop$1);
break;
case "onScroll":
null != value && listenToNonDelegatedEvent("scroll", domElement);
@@ -14635,7 +14647,7 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
null != value && listenToNonDelegatedEvent("scrollend", domElement);
break;
case "onClick":
null != value && (domElement.onclick = noop$2);
null != value && (domElement.onclick = noop$1);
break;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -15211,24 +15223,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
(null == propKey$227 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$227, nextProps, propKey);
}
function noop$1() {}
var Internals = {
usingClientEntryPoint: !1,
Events: null,
ReactDOMCurrentDispatcher: {
current: {
prefetchDNS: noop$1,
preconnect: noop$1,
preload: noop$1,
preloadModule: noop$1,
preinitScript: noop$1,
preinitStyle: noop$1,
preinitModuleScript: noop$1
}
},
findDOMNode: null
},
ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher,
var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher,
eventsEnabled = null,
selectionInformation = null;
function getOwnerDocumentFromRootContainer(rootContainerElement) {
@@ -16668,14 +16663,14 @@ function dispatchDiscreteEvent(
container,
nativeEvent
) {
var previousPriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = Internals.up;
try {
(currentUpdatePriority = 2),
(Internals.up = 2),
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig.transition = prevTransition);
}
}
@@ -16685,14 +16680,14 @@ function dispatchContinuousEvent(
container,
nativeEvent
) {
var previousPriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = Internals.up;
try {
(currentUpdatePriority = 8),
(Internals.up = 8),
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig.transition = prevTransition);
}
}
@@ -16901,7 +16896,7 @@ function ReactDOMHydrationRoot(internalRoot) {
}
ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
if (target) {
var updatePriority = currentUpdatePriority;
var updatePriority = Internals.up;
target = { blockedOn: null, target: target, priority: updatePriority };
for (
var i = 0;
@@ -16974,17 +16969,17 @@ Internals.Events = [
return fn(a);
}
];
var devToolsConfig$jscomp$inline_1702 = {
var devToolsConfig$jscomp$inline_1716 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-5528dca9",
version: "19.0.0-www-classic-cebfb288",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2132 = {
bundleType: devToolsConfig$jscomp$inline_1702.bundleType,
version: devToolsConfig$jscomp$inline_1702.version,
rendererPackageName: devToolsConfig$jscomp$inline_1702.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1702.rendererConfig,
var internals$jscomp$inline_2152 = {
bundleType: devToolsConfig$jscomp$inline_1716.bundleType,
version: devToolsConfig$jscomp$inline_1716.version,
rendererPackageName: devToolsConfig$jscomp$inline_1716.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1716.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -17000,26 +16995,26 @@ var internals$jscomp$inline_2132 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1702.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1716.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-5528dca9"
reconcilerVersion: "19.0.0-www-classic-cebfb288"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2133 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_2153 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_2133.isDisabled &&
hook$jscomp$inline_2133.supportsFiber
!hook$jscomp$inline_2153.isDisabled &&
hook$jscomp$inline_2153.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_2133.inject(
internals$jscomp$inline_2132
(rendererID = hook$jscomp$inline_2153.inject(
internals$jscomp$inline_2152
)),
(injectedHook = hook$jscomp$inline_2133);
(injectedHook = hook$jscomp$inline_2153);
} catch (err) {}
}
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
@@ -17463,4 +17458,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-5528dca9";
exports.version = "19.0.0-www-classic-cebfb288";
File diff suppressed because it is too large Load Diff
@@ -442,7 +442,8 @@ function popHostContext(fiber) {
(pop(hostTransitionProviderCursor),
(HostTransitionContext._currentValue = null));
}
var scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
var hasOwnProperty = Object.prototype.hasOwnProperty,
scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
cancelCallback$1 = Scheduler.unstable_cancelCallback,
shouldYield = Scheduler.unstable_shouldYield,
requestPaint = Scheduler.unstable_requestPaint,
@@ -853,15 +854,6 @@ function clearTransitionsForLanes(root, lanes) {
lanes &= ~lane;
}
}
var currentUpdatePriority = 0;
function runWithPriority(priority, fn) {
var previousPriority = currentUpdatePriority;
try {
return (currentUpdatePriority = priority), fn();
} finally {
currentUpdatePriority = previousPriority;
}
}
function lanesToEventPriority(lanes) {
lanes &= -lanes;
return 2 < lanes
@@ -872,8 +864,33 @@ function lanesToEventPriority(lanes) {
: 8
: 2;
}
var hasOwnProperty = Object.prototype.hasOwnProperty,
allNativeEvents = new Set();
function noop$3() {}
var Internals = {
usingClientEntryPoint: !1,
Events: null,
ReactDOMCurrentDispatcher: {
current: {
prefetchDNS: noop$3,
preconnect: noop$3,
preload: noop$3,
preloadModule: noop$3,
preinitScript: noop$3,
preinitStyle: noop$3,
preinitModuleScript: noop$3
}
},
findDOMNode: null,
up: 0
};
function runWithPriority(priority, fn) {
var previousPriority = Internals.up;
try {
return (Internals.up = priority), fn();
} finally {
Internals.up = previousPriority;
}
}
var allNativeEvents = new Set();
allNativeEvents.add("beforeblur");
allNativeEvents.add("afterblur");
var registrationNameDependencies = {};
@@ -1899,7 +1916,7 @@ function prepareToHydrateHostInstance(fiber) {
? (null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
null != props.onScrollEnd &&
listenToNonDelegatedEvent("scrollend", instance),
null != props.onClick && (instance.onclick = noop$2),
null != props.onClick && (instance.onclick = noop$1),
(instance = !0))
: (instance = !1);
!instance && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(fiber);
@@ -2539,12 +2556,12 @@ function isThenableResolved(thenable) {
thenable = thenable.status;
return "fulfilled" === thenable || "rejected" === thenable;
}
function noop$3() {}
function noop$2() {}
function trackUsedThenable(thenableState, thenable, index) {
index = thenableState[index];
void 0 === index
? thenableState.push(thenable)
: index !== thenable && (thenable.then(noop$3, noop$3), (thenable = index));
: index !== thenable && (thenable.then(noop$2, noop$2), (thenable = index));
switch (thenable.status) {
case "fulfilled":
return thenable.value;
@@ -2554,7 +2571,7 @@ function trackUsedThenable(thenableState, thenable, index) {
throw Error(formatProdErrorMessage(483));
throw thenableState;
default:
if ("string" === typeof thenable.status) thenable.then(noop$3, noop$3);
if ("string" === typeof thenable.status) thenable.then(noop$2, noop$2);
else {
thenableState = workInProgressRoot;
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
@@ -4224,8 +4241,8 @@ function startTransition(
callback,
options
) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority =
var previousPriority = Internals.up;
Internals.up =
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
var prevTransition = ReactCurrentBatchConfig$3.transition,
currentTransition = { _callbacks: new Set() };
@@ -4257,7 +4274,7 @@ function startTransition(
reason: error
});
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$3.transition = prevTransition);
}
}
@@ -9553,7 +9570,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
(parent = parent._reactRootContainer),
(null !== parent && void 0 !== parent) ||
null !== before.onclick ||
(before.onclick = noop$2));
(before.onclick = noop$1));
else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node))
for (
insertOrAppendPlacementNodeIntoContainer(node, before, parent),
@@ -11386,10 +11403,10 @@ function requestUpdateLane(fiber) {
(fiber = currentEntangledLane),
0 !== fiber ? fiber : requestTransitionLane()
);
fiber = currentUpdatePriority;
if (0 !== fiber) return fiber;
fiber = window.event;
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
fiber = Internals.up;
0 === fiber &&
((fiber = window.event),
(fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type)));
return fiber;
}
function requestDeferredLane() {
@@ -11768,16 +11785,12 @@ function flushSync$1(fn) {
var prevExecutionContext = executionContext;
executionContext |= 1;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = currentUpdatePriority;
previousPriority = Internals.up;
try {
if (
((ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = 2),
fn)
)
if (((Internals.up = 2), (ReactCurrentBatchConfig$1.transition = null), fn))
return fn();
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$1.transition = prevTransition),
(executionContext = prevExecutionContext),
0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1);
@@ -12290,11 +12303,11 @@ function commitRoot(
didIncludeRenderPhaseUpdate,
spawnedLane
) {
var previousUpdateLanePriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig$1.transition;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousUpdateLanePriority = Internals.up;
try {
(ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = 2),
(Internals.up = 2),
(ReactCurrentBatchConfig$1.transition = null),
commitRootImpl(
root,
recoverableErrors,
@@ -12305,7 +12318,7 @@ function commitRoot(
);
} finally {
(ReactCurrentBatchConfig$1.transition = prevTransition),
(currentUpdatePriority = previousUpdateLanePriority);
(Internals.up = previousUpdateLanePriority);
}
return null;
}
@@ -12356,8 +12369,8 @@ function commitRootImpl(
if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
transitions = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = null;
spawnedLane = currentUpdatePriority;
currentUpdatePriority = 2;
spawnedLane = Internals.up;
Internals.up = 2;
var prevExecutionContext = executionContext;
executionContext |= 4;
ReactCurrentOwner.current = null;
@@ -12388,7 +12401,7 @@ function commitRootImpl(
injectedProfilingHooks.markLayoutEffectsStopped();
requestPaint();
executionContext = prevExecutionContext;
currentUpdatePriority = spawnedLane;
Internals.up = spawnedLane;
ReactCurrentBatchConfig$1.transition = transitions;
} else (root.current = finishedWork), (commitTime = now());
rootDoesHavePassiveEffects
@@ -12455,18 +12468,17 @@ function flushPassiveEffects() {
var root$216 = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
renderPriority = 32 > renderPriority ? 32 : renderPriority;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = currentUpdatePriority;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = Internals.up;
try {
return (
(Internals.up = 32 > renderPriority ? 32 : renderPriority),
(ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = renderPriority),
flushPassiveEffectsImpl()
);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$1.transition = prevTransition),
releaseRootPooledCache(root$216, remainingLanes);
}
@@ -13799,14 +13811,14 @@ var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$370;
if (canUseDOM) {
var isSupported$jscomp$inline_1571 = "oninput" in document;
if (!isSupported$jscomp$inline_1571) {
var element$jscomp$inline_1572 = document.createElement("div");
element$jscomp$inline_1572.setAttribute("oninput", "return;");
isSupported$jscomp$inline_1571 =
"function" === typeof element$jscomp$inline_1572.oninput;
var isSupported$jscomp$inline_1581 = "oninput" in document;
if (!isSupported$jscomp$inline_1581) {
var element$jscomp$inline_1582 = document.createElement("div");
element$jscomp$inline_1582.setAttribute("oninput", "return;");
isSupported$jscomp$inline_1581 =
"function" === typeof element$jscomp$inline_1582.oninput;
}
JSCompiler_inline_result$jscomp$370 = isSupported$jscomp$inline_1571;
JSCompiler_inline_result$jscomp$370 = isSupported$jscomp$inline_1581;
} else JSCompiler_inline_result$jscomp$370 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$370 &&
@@ -14181,20 +14193,20 @@ function extractEvents$1(
}
}
for (
var i$jscomp$inline_1612 = 0;
i$jscomp$inline_1612 < simpleEventPluginEvents.length;
i$jscomp$inline_1612++
var i$jscomp$inline_1622 = 0;
i$jscomp$inline_1622 < simpleEventPluginEvents.length;
i$jscomp$inline_1622++
) {
var eventName$jscomp$inline_1613 =
simpleEventPluginEvents[i$jscomp$inline_1612],
domEventName$jscomp$inline_1614 =
eventName$jscomp$inline_1613.toLowerCase(),
capitalizedEvent$jscomp$inline_1615 =
eventName$jscomp$inline_1613[0].toUpperCase() +
eventName$jscomp$inline_1613.slice(1);
var eventName$jscomp$inline_1623 =
simpleEventPluginEvents[i$jscomp$inline_1622],
domEventName$jscomp$inline_1624 =
eventName$jscomp$inline_1623.toLowerCase(),
capitalizedEvent$jscomp$inline_1625 =
eventName$jscomp$inline_1623[0].toUpperCase() +
eventName$jscomp$inline_1623.slice(1);
registerSimpleEvent(
domEventName$jscomp$inline_1614,
"on" + capitalizedEvent$jscomp$inline_1615
domEventName$jscomp$inline_1624,
"on" + capitalizedEvent$jscomp$inline_1625
);
}
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15037,7 +15049,7 @@ function checkForUnmatchedText(serverText, clientText) {
clientText = normalizeMarkupForTextOrAttribute(clientText);
return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;
}
function noop$2() {}
function noop$1() {}
function setProp(domElement, tag, key, value, props, prevValue) {
switch (key) {
case "children":
@@ -15135,7 +15147,7 @@ function setProp(domElement, tag, key, value, props, prevValue) {
domElement.setAttribute(key, value);
break;
case "onClick":
null != value && (domElement.onclick = noop$2);
null != value && (domElement.onclick = noop$1);
break;
case "onScroll":
null != value && listenToNonDelegatedEvent("scroll", domElement);
@@ -15383,7 +15395,7 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
null != value && listenToNonDelegatedEvent("scrollend", domElement);
break;
case "onClick":
null != value && (domElement.onclick = noop$2);
null != value && (domElement.onclick = noop$1);
break;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -15959,24 +15971,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
(null == propKey$248 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$248, nextProps, propKey);
}
function noop$1() {}
var Internals = {
usingClientEntryPoint: !1,
Events: null,
ReactDOMCurrentDispatcher: {
current: {
prefetchDNS: noop$1,
preconnect: noop$1,
preload: noop$1,
preloadModule: noop$1,
preinitScript: noop$1,
preinitStyle: noop$1,
preinitModuleScript: noop$1
}
},
findDOMNode: null
},
ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher,
var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher,
eventsEnabled = null,
selectionInformation = null;
function getOwnerDocumentFromRootContainer(rootContainerElement) {
@@ -17416,14 +17411,14 @@ function dispatchDiscreteEvent(
container,
nativeEvent
) {
var previousPriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = Internals.up;
try {
(currentUpdatePriority = 2),
(Internals.up = 2),
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig.transition = prevTransition);
}
}
@@ -17433,14 +17428,14 @@ function dispatchContinuousEvent(
container,
nativeEvent
) {
var previousPriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = Internals.up;
try {
(currentUpdatePriority = 8),
(Internals.up = 8),
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig.transition = prevTransition);
}
}
@@ -17649,7 +17644,7 @@ function ReactDOMHydrationRoot(internalRoot) {
}
ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
if (target) {
var updatePriority = currentUpdatePriority;
var updatePriority = Internals.up;
target = { blockedOn: null, target: target, priority: updatePriority };
for (
var i = 0;
@@ -17722,10 +17717,10 @@ Internals.Events = [
return fn(a);
}
];
var devToolsConfig$jscomp$inline_1788 = {
var devToolsConfig$jscomp$inline_1802 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-3938fdc5",
version: "19.0.0-www-classic-34921157",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17743,10 +17738,10 @@ var devToolsConfig$jscomp$inline_1788 = {
} catch (err) {}
return hook.checkDCE ? !0 : !1;
})({
bundleType: devToolsConfig$jscomp$inline_1788.bundleType,
version: devToolsConfig$jscomp$inline_1788.version,
rendererPackageName: devToolsConfig$jscomp$inline_1788.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1788.rendererConfig,
bundleType: devToolsConfig$jscomp$inline_1802.bundleType,
version: devToolsConfig$jscomp$inline_1802.version,
rendererPackageName: devToolsConfig$jscomp$inline_1802.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1802.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -17762,14 +17757,14 @@ var devToolsConfig$jscomp$inline_1788 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1788.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1802.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-3938fdc5"
reconcilerVersion: "19.0.0-www-classic-34921157"
});
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog)
@@ -18212,7 +18207,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-3938fdc5";
exports.version = "19.0.0-www-classic-34921157";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
File diff suppressed because it is too large Load Diff
@@ -1237,6 +1237,139 @@ if (__DEV__) {
}
}
// $FlowFixMe[method-unbinding]
var hasOwnProperty = Object.prototype.hasOwnProperty;
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
*
* The functions in this module will throw an easier-to-understand,
* easier-to-debug exception with a clear errors message message explaining the
* problem. (Instead of a confusing exception thrown inside the implementation
* of the `value` object).
*/
// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function typeName(value) {
{
// toStringTag is needed for namespaced types like Temporal.Instant
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
var type =
(hasToStringTag && value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"; // $FlowFixMe[incompatible-return]
return type;
}
} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function willCoercionThrow(value) {
{
try {
testStringCoercion(value);
return false;
} catch (e) {
return true;
}
}
}
function testStringCoercion(value) {
// If you ended up here by following an exception call stack, here's what's
// happened: you supplied an object or symbol value to React (as a prop, key,
// DOM attribute, CSS property, string ref, etc.) and when React tried to
// coerce it to a string using `'' + value`, an exception was thrown.
//
// The most common types that will cause this exception are `Symbol` instances
// and Temporal objects like `Temporal.Instant`. But any object that has a
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
// exception. (Library authors do this to prevent users from using built-in
// numeric operators like `+` or comparison operators like `>=` because custom
// methods are needed to perform accurate arithmetic or comparison.)
//
// To fix the problem, coerce this object or symbol value to a string before
// passing it to React. The most reliable way is usually `String(value)`.
//
// To find which value is throwing, check the browser or debugger console.
// Before this exception was thrown, there should be `console.error` output
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
// problem and how that type was used: key, atrribute, input value prop, etc.
// In most cases, this console output also shows the component and its
// ancestor components where the exception happened.
//
// eslint-disable-next-line react-internal/safe-string-coercion
return "" + value;
}
function checkAttributeStringCoercion(value, attributeName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` attribute is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
attributeName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkKeyStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided key is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkCSSPropertyStringCoercion(value, propName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` CSS property is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
propName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkHtmlStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided HTML markup uses a value of unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkFormFieldValueStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"Form field values (value, checked, defaultValue, or defaultChecked props)" +
" must be strings, not %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
// This module only exists as an ESM wrapper around the external CommonJS
var scheduleCallback$3 = Scheduler.unstable_scheduleCallback;
var cancelCallback$1 = Scheduler.unstable_cancelCallback;
@@ -2845,27 +2978,11 @@ if (__DEV__) {
}
}
var NoEventPriority = NoLane;
var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function runWithPriority(priority, fn) {
var previousPriority = currentUpdatePriority;
try {
currentUpdatePriority = priority;
return fn();
} finally {
currentUpdatePriority = previousPriority;
}
}
function higherEventPriority(a, b) {
return a !== 0 && a < b ? a : b;
}
@@ -2875,6 +2992,9 @@ if (__DEV__) {
function isHigherEventPriority(a, b) {
return a !== 0 && a < b;
}
function eventPriorityToLane(updatePriority) {
return updatePriority;
}
function lanesToEventPriority(lanes) {
var lane = getHighestPriorityLane(lanes);
@@ -2893,136 +3013,64 @@ if (__DEV__) {
return IdleEventPriority;
}
// $FlowFixMe[method-unbinding]
var hasOwnProperty = Object.prototype.hasOwnProperty;
function noop$3() {}
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
*
* The functions in this module will throw an easier-to-understand,
* easier-to-debug exception with a clear errors message message explaining the
* problem. (Instead of a confusing exception thrown inside the implementation
* of the `value` object).
*/
// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function typeName(value) {
{
// toStringTag is needed for namespaced types like Temporal.Instant
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
var type =
(hasToStringTag && value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"; // $FlowFixMe[incompatible-return]
var DefaultDispatcher = {
prefetchDNS: noop$3,
preconnect: noop$3,
preload: noop$3,
preloadModule: noop$3,
preinitScript: noop$3,
preinitStyle: noop$3,
preinitModuleScript: noop$3
};
var Internals = {
usingClientEntryPoint: false,
Events: null,
ReactDOMCurrentDispatcher: {
current: DefaultDispatcher
},
findDOMNode: null,
up:
/* currentUpdatePriority */
NoEventPriority
};
return type;
}
} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible.
function willCoercionThrow(value) {
{
try {
testStringCoercion(value);
return false;
} catch (e) {
return true;
}
}
function setCurrentUpdatePriority(
newPriority, // Closure will consistently not inline this function when it has arity 1
// however when it has arity 2 even if the second arg is omitted at every
// callsite it seems to inline it even when the internal length of the function
// is much longer. I hope this is consistent enough to rely on across builds
IntentionallyUnusedArgument
) {
Internals.up = newPriority;
}
function testStringCoercion(value) {
// If you ended up here by following an exception call stack, here's what's
// happened: you supplied an object or symbol value to React (as a prop, key,
// DOM attribute, CSS property, string ref, etc.) and when React tried to
// coerce it to a string using `'' + value`, an exception was thrown.
//
// The most common types that will cause this exception are `Symbol` instances
// and Temporal objects like `Temporal.Instant`. But any object that has a
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
// exception. (Library authors do this to prevent users from using built-in
// numeric operators like `+` or comparison operators like `>=` because custom
// methods are needed to perform accurate arithmetic or comparison.)
//
// To fix the problem, coerce this object or symbol value to a string before
// passing it to React. The most reliable way is usually `String(value)`.
//
// To find which value is throwing, check the browser or debugger console.
// Before this exception was thrown, there should be `console.error` output
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
// problem and how that type was used: key, atrribute, input value prop, etc.
// In most cases, this console output also shows the component and its
// ancestor components where the exception happened.
//
// eslint-disable-next-line react-internal/safe-string-coercion
return "" + value;
function getCurrentUpdatePriority() {
return Internals.up;
}
function resolveUpdatePriority() {
var updatePriority = Internals.up;
function checkAttributeStringCoercion(value, attributeName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` attribute is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
attributeName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
if (updatePriority !== NoEventPriority) {
return updatePriority;
}
}
function checkKeyStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided key is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
var currentEvent = window.event;
if (currentEvent === undefined) {
return DefaultEventPriority;
}
}
function checkCSSPropertyStringCoercion(value, propName) {
{
if (willCoercionThrow(value)) {
error(
"The provided `%s` CSS property is an unsupported type %s." +
" This value must be coerced to a string before using it here.",
propName,
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
return getEventPriority(currentEvent.type);
}
function checkHtmlStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"The provided HTML markup uses a value of unsupported type %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
function runWithPriority(priority, fn) {
var previousPriority = getCurrentUpdatePriority();
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
}
}
function checkFormFieldValueStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error(
"Form field values (value, checked, defaultValue, or defaultChecked props)" +
" must be strings, not %s." +
" This value must be coerced to a string before using it here.",
typeName(value)
);
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
}
try {
setCurrentUpdatePriority(priority);
return fn();
} finally {
setCurrentUpdatePriority(previousPriority);
}
}
@@ -11332,7 +11380,7 @@ if (__DEV__) {
return status === "fulfilled" || status === "rejected";
}
function noop$3() {}
function noop$2() {}
function trackUsedThenable(thenableState, thenable, index) {
if (ReactCurrentActQueue$3.current !== null) {
@@ -11378,7 +11426,7 @@ if (__DEV__) {
} // Avoid an unhandled rejection errors for the Promises that we'll
// intentionally ignore.
thenable.then(noop$3, noop$3);
thenable.then(noop$2, noop$2);
thenable = previous;
}
} // We use an expando to track the status and result of a thenable so that we
@@ -11407,7 +11455,7 @@ if (__DEV__) {
// some custom userspace implementation. We treat it as "pending".
// Attach a dummy listener, to ensure that any lazy initialization can
// happen. Flight lazily parses JSON when the value is actually awaited.
thenable.then(noop$3, noop$3);
thenable.then(noop$2, noop$2);
} else {
// This is an uncached thenable that we haven't seen before.
// Detect infinite ping loops caused by uncached promises.
@@ -32136,26 +32184,9 @@ if (__DEV__) {
: // is the first update in that scope. Either way, we need to get a
// fresh transition lane.
requestTransitionLane();
} // Updates originating inside certain React methods, like flushSync, have
// their priority set by tracking it with a context variable.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
}
var updateLane = getCurrentUpdatePriority();
if (updateLane !== NoLane) {
return updateLane;
} // This update originated outside React. Ask the host environment for an
// appropriate priority, based on the type of event.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
var eventLane = getCurrentEventPriority();
return eventLane;
return eventPriorityToLane(resolveUpdatePriority());
}
function requestRetryLane(fiber) {
@@ -32961,8 +32992,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig$1.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig$1.transition = null;
if (fn) {
return fn();
@@ -34134,12 +34165,12 @@ if (__DEV__) {
) {
// TODO: This no longer makes any sense. We already wrap the mutation and
// layout phases. Should be able to remove.
var previousUpdateLanePriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig$1.transition;
var previousUpdateLanePriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig$1.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig$1.transition = null;
commitRootImpl(
root,
recoverableErrors,
@@ -34593,8 +34624,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig$1.transition = null;
setCurrentUpdatePriority(priority);
ReactCurrentBatchConfig$1.transition = null;
return flushPassiveEffectsImpl();
} finally {
setCurrentUpdatePriority(previousPriority);
@@ -36744,7 +36775,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-5448b1f5";
var ReactVersion = "19.0.0-www-classic-9d1adced";
function createPortal$1(
children,
@@ -41520,7 +41551,7 @@ if (__DEV__) {
return false;
}
function noop$2() {}
function noop$1() {}
function trapClickOnNonInteractiveElement(node) {
// Mobile Safari does not fire properly bubble click events on
@@ -41532,7 +41563,7 @@ if (__DEV__) {
// bookkeeping for it. Not sure if we need to clear it when the listener is
// removed.
// TODO: Only do this for the relevant Safaris maybe?
node.onclick = noop$2;
node.onclick = noop$1;
}
var xlinkNamespace = "http://www.w3.org/1999/xlink";
var xmlNamespace = "http://www.w3.org/XML/1998/namespace";
@@ -44725,26 +44756,6 @@ if (__DEV__) {
}
}
function noop$1() {}
var DefaultDispatcher = {
prefetchDNS: noop$1,
preconnect: noop$1,
preload: noop$1,
preloadModule: noop$1,
preinitScript: noop$1,
preinitStyle: noop$1,
preinitModuleScript: noop$1
};
var Internals = {
usingClientEntryPoint: false,
Events: null,
ReactDOMCurrentDispatcher: {
current: DefaultDispatcher
},
findDOMNode: null
};
var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; // Unused
var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning";
@@ -45152,15 +45163,6 @@ if (__DEV__) {
precacheFiberNode(internalInstanceHandle, textNode);
return textNode;
}
function getCurrentEventPriority() {
var currentEvent = window.event;
if (currentEvent === undefined) {
return DefaultEventPriority;
}
return getEventPriority(currentEvent.type);
}
var currentPopstateTransitionEvent = null;
function shouldAttemptEagerTransition() {
var event = window.event;
@@ -48677,9 +48679,9 @@ if (__DEV__) {
container,
nativeEvent
) {
var previousPriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = getCurrentUpdatePriority();
try {
setCurrentUpdatePriority(DiscreteEventPriority);
@@ -48696,9 +48698,9 @@ if (__DEV__) {
container,
nativeEvent
) {
var previousPriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = getCurrentUpdatePriority();
try {
setCurrentUpdatePriority(ContinuousEventPriority);
File diff suppressed because it is too large Load Diff
@@ -437,7 +437,8 @@ function popHostContext(fiber) {
(pop(hostTransitionProviderCursor),
(HostTransitionContext._currentValue = null));
}
var scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
var hasOwnProperty = Object.prototype.hasOwnProperty,
scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
cancelCallback$1 = Scheduler.unstable_cancelCallback,
shouldYield = Scheduler.unstable_shouldYield,
requestPaint = Scheduler.unstable_requestPaint,
@@ -717,15 +718,6 @@ function clearTransitionsForLanes(root, lanes) {
lanes &= ~lane;
}
}
var currentUpdatePriority = 0;
function runWithPriority(priority, fn) {
var previousPriority = currentUpdatePriority;
try {
return (currentUpdatePriority = priority), fn();
} finally {
currentUpdatePriority = previousPriority;
}
}
function lanesToEventPriority(lanes) {
lanes &= -lanes;
return 2 < lanes
@@ -736,52 +728,77 @@ function lanesToEventPriority(lanes) {
: 8
: 2;
}
var hasOwnProperty = Object.prototype.hasOwnProperty,
tagToRoleMappings = {
ARTICLE: "article",
ASIDE: "complementary",
BODY: "document",
BUTTON: "button",
DATALIST: "listbox",
DD: "definition",
DETAILS: "group",
DIALOG: "dialog",
DT: "term",
FIELDSET: "group",
FIGURE: "figure",
FORM: "form",
FOOTER: "contentinfo",
H1: "heading",
H2: "heading",
H3: "heading",
H4: "heading",
H5: "heading",
H6: "heading",
HEADER: "banner",
HR: "separator",
LEGEND: "legend",
LI: "listitem",
MATH: "math",
MAIN: "main",
MENU: "list",
NAV: "navigation",
OL: "list",
OPTGROUP: "group",
OPTION: "option",
OUTPUT: "status",
PROGRESS: "progressbar",
SECTION: "region",
SUMMARY: "button",
TABLE: "table",
TBODY: "rowgroup",
TEXTAREA: "textbox",
TFOOT: "rowgroup",
TD: "cell",
TH: "columnheader",
THEAD: "rowgroup",
TR: "row",
UL: "list"
};
function noop$3() {}
var Internals = {
usingClientEntryPoint: !1,
Events: null,
ReactDOMCurrentDispatcher: {
current: {
prefetchDNS: noop$3,
preconnect: noop$3,
preload: noop$3,
preloadModule: noop$3,
preinitScript: noop$3,
preinitStyle: noop$3,
preinitModuleScript: noop$3
}
},
findDOMNode: null,
up: 0
};
function runWithPriority(priority, fn) {
var previousPriority = Internals.up;
try {
return (Internals.up = priority), fn();
} finally {
Internals.up = previousPriority;
}
}
var tagToRoleMappings = {
ARTICLE: "article",
ASIDE: "complementary",
BODY: "document",
BUTTON: "button",
DATALIST: "listbox",
DD: "definition",
DETAILS: "group",
DIALOG: "dialog",
DT: "term",
FIELDSET: "group",
FIGURE: "figure",
FORM: "form",
FOOTER: "contentinfo",
H1: "heading",
H2: "heading",
H3: "heading",
H4: "heading",
H5: "heading",
H6: "heading",
HEADER: "banner",
HR: "separator",
LEGEND: "legend",
LI: "listitem",
MATH: "math",
MAIN: "main",
MENU: "list",
NAV: "navigation",
OL: "list",
OPTGROUP: "group",
OPTION: "option",
OUTPUT: "status",
PROGRESS: "progressbar",
SECTION: "region",
SUMMARY: "button",
TABLE: "table",
TBODY: "rowgroup",
TEXTAREA: "textbox",
TFOOT: "rowgroup",
TD: "cell",
TH: "columnheader",
THEAD: "rowgroup",
TR: "row",
UL: "list"
};
function getImplicitRole(element) {
var mappedByTag = tagToRoleMappings[element.tagName];
if (void 0 !== mappedByTag) return mappedByTag;
@@ -1849,7 +1866,7 @@ function prepareToHydrateHostInstance(fiber) {
? (null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
null != props.onScrollEnd &&
listenToNonDelegatedEvent("scrollend", instance),
null != props.onClick && (instance.onclick = noop$2),
null != props.onClick && (instance.onclick = noop$1),
(instance = !0))
: (instance = !1);
!instance && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(fiber);
@@ -2489,12 +2506,12 @@ function isThenableResolved(thenable) {
thenable = thenable.status;
return "fulfilled" === thenable || "rejected" === thenable;
}
function noop$3() {}
function noop$2() {}
function trackUsedThenable(thenableState, thenable, index) {
index = thenableState[index];
void 0 === index
? thenableState.push(thenable)
: index !== thenable && (thenable.then(noop$3, noop$3), (thenable = index));
: index !== thenable && (thenable.then(noop$2, noop$2), (thenable = index));
switch (thenable.status) {
case "fulfilled":
return thenable.value;
@@ -2504,7 +2521,7 @@ function trackUsedThenable(thenableState, thenable, index) {
throw Error(formatProdErrorMessage(483));
throw thenableState;
default:
if ("string" === typeof thenable.status) thenable.then(noop$3, noop$3);
if ("string" === typeof thenable.status) thenable.then(noop$2, noop$2);
else {
thenableState = workInProgressRoot;
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
@@ -4174,8 +4191,8 @@ function startTransition(
callback,
options
) {
var previousPriority = currentUpdatePriority;
currentUpdatePriority =
var previousPriority = Internals.up;
Internals.up =
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
var prevTransition = ReactCurrentBatchConfig$3.transition,
currentTransition = { _callbacks: new Set() };
@@ -4207,7 +4224,7 @@ function startTransition(
reason: error
});
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$3.transition = prevTransition);
}
}
@@ -9135,7 +9152,7 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
(parent = parent._reactRootContainer),
(null !== parent && void 0 !== parent) ||
null !== before.onclick ||
(before.onclick = noop$2));
(before.onclick = noop$1));
else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node))
for (
insertOrAppendPlacementNodeIntoContainer(node, before, parent),
@@ -11067,10 +11084,10 @@ function requestUpdateLane(fiber) {
(fiber = currentEntangledLane),
0 !== fiber ? fiber : requestTransitionLane()
);
fiber = currentUpdatePriority;
if (0 !== fiber) return fiber;
fiber = window.event;
fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type);
fiber = Internals.up;
0 === fiber &&
((fiber = window.event),
(fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type)));
return fiber;
}
function requestDeferredLane() {
@@ -11445,16 +11462,12 @@ function flushSync$1(fn) {
var prevExecutionContext = executionContext;
executionContext |= 1;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = currentUpdatePriority;
previousPriority = Internals.up;
try {
if (
((ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = 2),
fn)
)
if (((Internals.up = 2), (ReactCurrentBatchConfig$1.transition = null), fn))
return fn();
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$1.transition = prevTransition),
(executionContext = prevExecutionContext),
0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1);
@@ -11889,11 +11902,11 @@ function commitRoot(
didIncludeRenderPhaseUpdate,
spawnedLane
) {
var previousUpdateLanePriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig$1.transition;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousUpdateLanePriority = Internals.up;
try {
(ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = 2),
(Internals.up = 2),
(ReactCurrentBatchConfig$1.transition = null),
commitRootImpl(
root,
recoverableErrors,
@@ -11904,7 +11917,7 @@ function commitRoot(
);
} finally {
(ReactCurrentBatchConfig$1.transition = prevTransition),
(currentUpdatePriority = previousUpdateLanePriority);
(Internals.up = previousUpdateLanePriority);
}
return null;
}
@@ -11949,8 +11962,8 @@ function commitRootImpl(
if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
transitions = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = null;
spawnedLane = currentUpdatePriority;
currentUpdatePriority = 2;
spawnedLane = Internals.up;
Internals.up = 2;
var prevExecutionContext = executionContext;
executionContext |= 4;
ReactCurrentOwner.current = null;
@@ -11970,7 +11983,7 @@ function commitRootImpl(
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
requestPaint();
executionContext = prevExecutionContext;
currentUpdatePriority = spawnedLane;
Internals.up = spawnedLane;
ReactCurrentBatchConfig$1.transition = transitions;
} else root.current = finishedWork;
rootDoesHavePassiveEffects
@@ -12034,18 +12047,17 @@ function flushPassiveEffects() {
var root$197 = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
renderPriority = 32 > renderPriority ? 32 : renderPriority;
var prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = currentUpdatePriority;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
prevTransition = ReactCurrentBatchConfig$1.transition,
previousPriority = Internals.up;
try {
return (
(Internals.up = 32 > renderPriority ? 32 : renderPriority),
(ReactCurrentBatchConfig$1.transition = null),
(currentUpdatePriority = renderPriority),
flushPassiveEffectsImpl()
);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig$1.transition = prevTransition),
releaseRootPooledCache(root$197, remainingLanes);
}
@@ -13323,14 +13335,14 @@ var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$351;
if (canUseDOM) {
var isSupported$jscomp$inline_1512 = "oninput" in document;
if (!isSupported$jscomp$inline_1512) {
var element$jscomp$inline_1513 = document.createElement("div");
element$jscomp$inline_1513.setAttribute("oninput", "return;");
isSupported$jscomp$inline_1512 =
"function" === typeof element$jscomp$inline_1513.oninput;
var isSupported$jscomp$inline_1522 = "oninput" in document;
if (!isSupported$jscomp$inline_1522) {
var element$jscomp$inline_1523 = document.createElement("div");
element$jscomp$inline_1523.setAttribute("oninput", "return;");
isSupported$jscomp$inline_1522 =
"function" === typeof element$jscomp$inline_1523.oninput;
}
JSCompiler_inline_result$jscomp$351 = isSupported$jscomp$inline_1512;
JSCompiler_inline_result$jscomp$351 = isSupported$jscomp$inline_1522;
} else JSCompiler_inline_result$jscomp$351 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$351 &&
@@ -13705,20 +13717,20 @@ function extractEvents$1(
}
}
for (
var i$jscomp$inline_1553 = 0;
i$jscomp$inline_1553 < simpleEventPluginEvents.length;
i$jscomp$inline_1553++
var i$jscomp$inline_1563 = 0;
i$jscomp$inline_1563 < simpleEventPluginEvents.length;
i$jscomp$inline_1563++
) {
var eventName$jscomp$inline_1554 =
simpleEventPluginEvents[i$jscomp$inline_1553],
domEventName$jscomp$inline_1555 =
eventName$jscomp$inline_1554.toLowerCase(),
capitalizedEvent$jscomp$inline_1556 =
eventName$jscomp$inline_1554[0].toUpperCase() +
eventName$jscomp$inline_1554.slice(1);
var eventName$jscomp$inline_1564 =
simpleEventPluginEvents[i$jscomp$inline_1563],
domEventName$jscomp$inline_1565 =
eventName$jscomp$inline_1564.toLowerCase(),
capitalizedEvent$jscomp$inline_1566 =
eventName$jscomp$inline_1564[0].toUpperCase() +
eventName$jscomp$inline_1564.slice(1);
registerSimpleEvent(
domEventName$jscomp$inline_1555,
"on" + capitalizedEvent$jscomp$inline_1556
domEventName$jscomp$inline_1565,
"on" + capitalizedEvent$jscomp$inline_1566
);
}
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -14561,7 +14573,7 @@ function checkForUnmatchedText(serverText, clientText) {
clientText = normalizeMarkupForTextOrAttribute(clientText);
return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;
}
function noop$2() {}
function noop$1() {}
function setProp(domElement, tag, key, value, props, prevValue) {
switch (key) {
case "children":
@@ -14659,7 +14671,7 @@ function setProp(domElement, tag, key, value, props, prevValue) {
domElement.setAttribute(key, value);
break;
case "onClick":
null != value && (domElement.onclick = noop$2);
null != value && (domElement.onclick = noop$1);
break;
case "onScroll":
null != value && listenToNonDelegatedEvent("scroll", domElement);
@@ -14907,7 +14919,7 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
null != value && listenToNonDelegatedEvent("scrollend", domElement);
break;
case "onClick":
null != value && (domElement.onclick = noop$2);
null != value && (domElement.onclick = noop$1);
break;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -15483,24 +15495,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
(null == propKey$228 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$228, nextProps, propKey);
}
function noop$1() {}
var Internals = {
usingClientEntryPoint: !1,
Events: null,
ReactDOMCurrentDispatcher: {
current: {
prefetchDNS: noop$1,
preconnect: noop$1,
preload: noop$1,
preloadModule: noop$1,
preinitScript: noop$1,
preinitStyle: noop$1,
preinitModuleScript: noop$1
}
},
findDOMNode: null
},
ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher,
var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher,
eventsEnabled = null,
selectionInformation = null;
function getOwnerDocumentFromRootContainer(rootContainerElement) {
@@ -16997,14 +16992,14 @@ function dispatchDiscreteEvent(
container,
nativeEvent
) {
var previousPriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = Internals.up;
try {
(currentUpdatePriority = 2),
(Internals.up = 2),
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig.transition = prevTransition);
}
}
@@ -17014,14 +17009,14 @@ function dispatchContinuousEvent(
container,
nativeEvent
) {
var previousPriority = currentUpdatePriority,
prevTransition = ReactCurrentBatchConfig.transition;
var prevTransition = ReactCurrentBatchConfig.transition;
ReactCurrentBatchConfig.transition = null;
var previousPriority = Internals.up;
try {
(currentUpdatePriority = 8),
(Internals.up = 8),
dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
} finally {
(currentUpdatePriority = previousPriority),
(Internals.up = previousPriority),
(ReactCurrentBatchConfig.transition = prevTransition);
}
}
@@ -17230,7 +17225,7 @@ function ReactDOMHydrationRoot(internalRoot) {
}
ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
if (target) {
var updatePriority = currentUpdatePriority;
var updatePriority = Internals.up;
target = { blockedOn: null, target: target, priority: updatePriority };
for (
var i = 0;
@@ -17303,17 +17298,17 @@ Internals.Events = [
return fn(a);
}
];
var devToolsConfig$jscomp$inline_1729 = {
var devToolsConfig$jscomp$inline_1743 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-203d498a",
version: "19.0.0-www-classic-a94fe4e6",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2140 = {
bundleType: devToolsConfig$jscomp$inline_1729.bundleType,
version: devToolsConfig$jscomp$inline_1729.version,
rendererPackageName: devToolsConfig$jscomp$inline_1729.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1729.rendererConfig,
var internals$jscomp$inline_2160 = {
bundleType: devToolsConfig$jscomp$inline_1743.bundleType,
version: devToolsConfig$jscomp$inline_1743.version,
rendererPackageName: devToolsConfig$jscomp$inline_1743.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1743.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -17329,26 +17324,26 @@ var internals$jscomp$inline_2140 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1729.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1743.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-203d498a"
reconcilerVersion: "19.0.0-www-classic-a94fe4e6"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2141 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_2141.isDisabled &&
hook$jscomp$inline_2141.supportsFiber
!hook$jscomp$inline_2161.isDisabled &&
hook$jscomp$inline_2161.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_2141.inject(
internals$jscomp$inline_2140
(rendererID = hook$jscomp$inline_2161.inject(
internals$jscomp$inline_2160
)),
(injectedHook = hook$jscomp$inline_2141);
(injectedHook = hook$jscomp$inline_2161);
} catch (err) {}
}
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
@@ -17935,4 +17930,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-203d498a";
exports.version = "19.0.0-www-classic-a94fe4e6";
File diff suppressed because it is too large Load Diff
@@ -1984,17 +1984,11 @@ if (__DEV__) {
}
}
var NoEventPriority = NoLane;
var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function higherEventPriority(a, b) {
return a !== 0 && a < b ? a : b;
}
@@ -2004,6 +1998,9 @@ if (__DEV__) {
function isHigherEventPriority(a, b) {
return a !== 0 && a < b;
}
function eventPriorityToLane(updatePriority) {
return updatePriority;
}
function lanesToEventPriority(lanes) {
var lane = getHighestPriorityLane(lanes);
@@ -2161,7 +2158,18 @@ if (__DEV__) {
tag: "TEXT"
};
}
function getCurrentEventPriority() {
var currentUpdatePriority = NoEventPriority;
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function resolveUpdatePriority() {
if (currentUpdatePriority !== NoEventPriority) {
return currentUpdatePriority;
}
return DefaultEventPriority;
}
function shouldAttemptEagerTransition() {
@@ -22683,26 +22691,9 @@ if (__DEV__) {
: // is the first update in that scope. Either way, we need to get a
// fresh transition lane.
requestTransitionLane();
} // Updates originating inside certain React methods, like flushSync, have
// their priority set by tracking it with a context variable.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
}
var updateLane = getCurrentUpdatePriority();
if (updateLane !== NoLane) {
return updateLane;
} // This update originated outside React. Ask the host environment for an
// appropriate priority, based on the type of event.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
var eventLane = getCurrentEventPriority();
return eventLane;
return eventPriorityToLane(resolveUpdatePriority());
}
function requestRetryLane(fiber) {
@@ -23408,8 +23399,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
if (fn) {
return fn();
@@ -24464,12 +24455,12 @@ if (__DEV__) {
) {
// TODO: This no longer makes any sense. We already wrap the mutation and
// layout phases. Should be able to remove.
var previousUpdateLanePriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
var previousUpdateLanePriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
commitRootImpl(
root,
recoverableErrors,
@@ -24814,8 +24805,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(priority);
ReactCurrentBatchConfig.transition = null;
return flushPassiveEffectsImpl();
} finally {
setCurrentUpdatePriority(previousPriority);
@@ -26680,7 +26671,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-6d44fc36";
var ReactVersion = "19.0.0-www-classic-9f4b2142";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -1984,17 +1984,11 @@ if (__DEV__) {
}
}
var NoEventPriority = NoLane;
var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function higherEventPriority(a, b) {
return a !== 0 && a < b ? a : b;
}
@@ -2004,6 +1998,9 @@ if (__DEV__) {
function isHigherEventPriority(a, b) {
return a !== 0 && a < b;
}
function eventPriorityToLane(updatePriority) {
return updatePriority;
}
function lanesToEventPriority(lanes) {
var lane = getHighestPriorityLane(lanes);
@@ -2161,7 +2158,18 @@ if (__DEV__) {
tag: "TEXT"
};
}
function getCurrentEventPriority() {
var currentUpdatePriority = NoEventPriority;
function setCurrentUpdatePriority(newPriority) {
currentUpdatePriority = newPriority;
}
function getCurrentUpdatePriority() {
return currentUpdatePriority;
}
function resolveUpdatePriority() {
if (currentUpdatePriority !== NoEventPriority) {
return currentUpdatePriority;
}
return DefaultEventPriority;
}
function shouldAttemptEagerTransition() {
@@ -22683,26 +22691,9 @@ if (__DEV__) {
: // is the first update in that scope. Either way, we need to get a
// fresh transition lane.
requestTransitionLane();
} // Updates originating inside certain React methods, like flushSync, have
// their priority set by tracking it with a context variable.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
}
var updateLane = getCurrentUpdatePriority();
if (updateLane !== NoLane) {
return updateLane;
} // This update originated outside React. Ask the host environment for an
// appropriate priority, based on the type of event.
//
// The opaque type returned by the host config is internally a lane, so we can
// use that directly.
// TODO: Move this type conversion to the event priority module.
var eventLane = getCurrentEventPriority();
return eventLane;
return eventPriorityToLane(resolveUpdatePriority());
}
function requestRetryLane(fiber) {
@@ -23408,8 +23399,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
if (fn) {
return fn();
@@ -24464,12 +24455,12 @@ if (__DEV__) {
) {
// TODO: This no longer makes any sense. We already wrap the mutation and
// layout phases. Should be able to remove.
var previousUpdateLanePriority = getCurrentUpdatePriority();
var prevTransition = ReactCurrentBatchConfig.transition;
var previousUpdateLanePriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(DiscreteEventPriority);
ReactCurrentBatchConfig.transition = null;
commitRootImpl(
root,
recoverableErrors,
@@ -24814,8 +24805,8 @@ if (__DEV__) {
var previousPriority = getCurrentUpdatePriority();
try {
ReactCurrentBatchConfig.transition = null;
setCurrentUpdatePriority(priority);
ReactCurrentBatchConfig.transition = null;
return flushPassiveEffectsImpl();
} finally {
setCurrentUpdatePriority(previousPriority);
@@ -26680,7 +26671,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-6d44fc36";
var ReactVersion = "19.0.0-www-modern-9f4b2142";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol