diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 4e14217e77..aca7ec75a3 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -1d989965a6aac11d71ecf28030796f5475a86642 +ee7f6757c446c4e79ecc7e2bc22b8c9b712834b7 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 4e14217e77..aca7ec75a3 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -1d989965a6aac11d71ecf28030796f5475a86642 +ee7f6757c446c4e79ecc7e2bc22b8c9b712834b7 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 09a7486705..4f254aa022 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -2001,7 +2001,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-1d989965-20240821"; + exports.version = "19.0.0-www-classic-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 13769968d4..c490f19e2a 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1981,7 +1981,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-1d989965-20240821"; + exports.version = "19.0.0-www-modern-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 9149a9ae4a..4d546031a9 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 06510f2253..e2243d7e98 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index a95f067799..a332b270e9 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 205a5006fd..75b7dad4c6 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 7b8c576fc0..eefbc35819 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -2057,28 +2057,41 @@ __DEV__ && 0 === root.tag && (ReactSharedInternals.didScheduleLegacyUpdate = !0); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -2090,6 +2103,7 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; @@ -2105,8 +2119,7 @@ __DEV__ && 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0)); root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -12318,7 +12331,7 @@ __DEV__ && 0 !== (fiber.mode & 1) || ReactSharedInternals.isBatchingLegacy || ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -12628,7 +12641,7 @@ __DEV__ && } function flushSyncWork() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -13370,7 +13383,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); return null; @@ -13470,7 +13483,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root, !0); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -16776,11 +16789,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16814,7 +16827,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-classic-1d989965-20240821"; + exports.version = "19.0.0-www-classic-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 68951209f9..60241df4a1 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -1942,28 +1942,41 @@ __DEV__ && enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now$1()); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -1975,6 +1988,7 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; @@ -1990,8 +2004,7 @@ __DEV__ && 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0)); root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -12144,7 +12157,7 @@ __DEV__ && } function flushSyncWork() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -12880,7 +12893,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); return null; @@ -12980,7 +12993,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -16189,11 +16202,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16227,7 +16240,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-modern-1d989965-20240821"; + exports.version = "19.0.0-www-modern-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index ea80778735..0f87cf0cb5 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -1172,22 +1172,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) { - var workInProgressRootRenderLanes$12 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$12 = getNextLanes( - root, - root === workInProgressRoot ? workInProgressRootRenderLanes$12 : 0 - ); - 0 !== (workInProgressRootRenderLanes$12 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root, workInProgressRootRenderLanes$12)); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root, + root === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); root = root.next; } } while (didPerformSomeWork); @@ -1196,6 +1216,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; @@ -1211,8 +1232,7 @@ function processRootScheduleInMicrotask() { 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0)); root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -1476,20 +1496,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$14 = workInProgress$jscomp$0.alternate; - null !== current$14 && - ((current$14 = current$14.updateQueue), - (pendingQueue = current$14.lastBaseUpdate), + var current$15 = workInProgress$jscomp$0.alternate; + null !== current$15 && + ((current$15 = current$15.updateQueue), + (pendingQueue = current$15.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$14.firstBaseUpdate = firstPendingUpdate) + ? (current$15.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$14.lastBaseUpdate = lastPendingUpdate))); + (current$15.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$14 = firstPendingUpdate = lastPendingUpdate = null; + current$15 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1502,8 +1522,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$14 && - (current$14 = current$14.next = + null !== current$15 && + (current$15 = current$15.next = { lane: 0, tag: pendingQueue.tag, @@ -1556,10 +1576,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$14 - ? ((firstPendingUpdate = current$14 = isHiddenUpdate), + null === current$15 + ? ((firstPendingUpdate = current$15 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$14 = current$14.next = isHiddenUpdate), + : (current$15 = current$15.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1572,10 +1592,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$14 && (lastPendingUpdate = newState); + null === current$15 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$14; + queue.lastBaseUpdate = current$15; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2447,9 +2467,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$43 = fiber.alternate; - null !== current$43 && - null !== current$43.memoizedState && + var current$44 = fiber.alternate; + null !== current$44 && + null !== current$44.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2709,16 +2729,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$45 = currentlyRenderingFiber$1.alternate; - null !== current$45 && - ((current$45 = current$45.updateQueue), - null !== current$45 && - ((current$45 = current$45.memoCache), - null != current$45 && + var current$46 = currentlyRenderingFiber$1.alternate; + null !== current$46 && + ((current$46 = current$46.updateQueue), + null !== current$46 && + ((current$46 = current$46.memoCache), + null != current$46 && (memoCache = { data: enableNoCloningMemoCache - ? current$45.data - : current$45.data.map(function (array) { + ? current$46.data + : current$46.data.map(function (array) { return array.slice(); }), index: 0 @@ -2733,11 +2753,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$45 = 0; - current$45 < size; - current$45++ + current$46 = 0; + current$46 < size; + current$46++ ) - updateQueue[current$45] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$46] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2770,7 +2790,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$46 = !1; + didReadFromEntangledAsyncAction$47 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2791,11 +2811,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$46 = !0); + (didReadFromEntangledAsyncAction$47 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$46 = !0); + (didReadFromEntangledAsyncAction$47 = !0); continue; } else (updateLane = { @@ -2841,7 +2861,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$46 && + didReadFromEntangledAsyncAction$47 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3028,8 +3048,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$50) { - onActionError(actionQueue, node, error$50); + } catch (error$51) { + onActionError(actionQueue, node, error$51); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3951,9 +3971,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$52 in Component) - void 0 === newProps[propName$52] && - (newProps[propName$52] = Component[propName$52]); + for (var propName$53 in Component) + void 0 === newProps[propName$53] && + (newProps[propName$53] = Component[propName$53]); } return newProps; } @@ -6471,14 +6491,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$99 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$99 = lastTailNode), + for (var lastTailNode$100 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$100 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$99 + null === lastTailNode$100 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$99.sibling = null); + : (lastTailNode$100.sibling = null); } } function bubbleProperties(completedWork) { @@ -6488,19 +6508,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags & 31457280), - (subtreeFlags |= child$100.flags & 31457280), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (var child$101 = completedWork.child; null !== child$101; ) + (newChildLanes |= child$101.lanes | child$101.childLanes), + (subtreeFlags |= child$101.subtreeFlags & 31457280), + (subtreeFlags |= child$101.flags & 31457280), + (child$101.return = completedWork), + (child$101 = child$101.sibling); else - for (child$100 = completedWork.child; null !== child$100; ) - (newChildLanes |= child$100.lanes | child$100.childLanes), - (subtreeFlags |= child$100.subtreeFlags), - (subtreeFlags |= child$100.flags), - (child$100.return = completedWork), - (child$100 = child$100.sibling); + for (child$101 = completedWork.child; null !== child$101; ) + (newChildLanes |= child$101.lanes | child$101.childLanes), + (subtreeFlags |= child$101.subtreeFlags), + (subtreeFlags |= child$101.flags), + (child$101.return = completedWork), + (child$101 = child$101.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6679,11 +6699,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$104 = null; + var cache$105 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$104 = newProps.memoizedState.cachePool.pool); - cache$104 !== instance && (newProps.flags |= 2048); + (cache$105 = newProps.memoizedState.cachePool.pool); + cache$105 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6716,8 +6736,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$104 = instance.rendering; - if (null === cache$104) + cache$105 = instance.rendering; + if (null === cache$105) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -6725,11 +6745,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$104 = findFirstSuspended(current); - if (null !== cache$104) { + cache$105 = findFirstSuspended(current); + if (null !== cache$105) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$104.updateQueue; + current = cache$105.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6754,7 +6774,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$104)), null !== current)) { + if (((current = findFirstSuspended(cache$105)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6764,7 +6784,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$104.alternate) + !cache$105.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -6776,13 +6796,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 4194304)); instance.isBackwards - ? ((cache$104.sibling = workInProgress.child), - (workInProgress.child = cache$104)) + ? ((cache$105.sibling = workInProgress.child), + (workInProgress.child = cache$105)) : ((current = instance.last), null !== current - ? (current.sibling = cache$104) - : (workInProgress.child = cache$104), - (instance.last = cache$104)); + ? (current.sibling = cache$105) + : (workInProgress.child = cache$105), + (instance.last = cache$105)); } if (null !== instance.tail) return ( @@ -7064,8 +7084,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$122) { - captureCommitPhaseError(current, nearestMountedAncestor, error$122); + } catch (error$123) { + captureCommitPhaseError(current, nearestMountedAncestor, error$123); } else ref.current = null; } @@ -7269,11 +7289,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$123) { + } catch (error$124) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$123 + error$124 ); } } @@ -7862,8 +7882,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$131) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$131); + } catch (error$132) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$132); } } break; @@ -7896,8 +7916,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = null !== current ? current.memoizedProps : newProps; try { flags._applyProps(flags, newProps, current); - } catch (error$134) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$134); + } catch (error$135) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$135); } } break; @@ -7933,8 +7953,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$136) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$136); + } catch (error$137) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$137); } flags = finishedWork.updateQueue; null !== flags && @@ -8074,12 +8094,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$126 = JSCompiler_inline_result.stateNode.containerInfo, - before$127 = getHostSibling(finishedWork); + var parent$127 = JSCompiler_inline_result.stateNode.containerInfo, + before$128 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$127, - parent$126 + before$128, + parent$127 ); break; default: @@ -8537,9 +8557,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$146 = finishedWork.stateNode; + var instance$147 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$146._visibility & 4 + ? instance$147._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8552,7 +8572,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$146._visibility |= 4), + : ((instance$147._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8560,7 +8580,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$146._visibility |= 4), + : ((instance$147._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8573,7 +8593,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$146 + instance$147 ); break; case 24: @@ -8667,12 +8687,12 @@ function accumulateSuspenseyCommitOnFiber(fiber) { break; case 22: if (null === fiber.memoizedState) { - var current$151 = fiber.alternate; - null !== current$151 && null !== current$151.memoizedState - ? ((current$151 = suspenseyCommitFlag), + var current$152 = fiber.alternate; + null !== current$152 && null !== current$152.memoizedState + ? ((current$152 = suspenseyCommitFlag), (suspenseyCommitFlag = 16777216), recursivelyAccumulateSuspenseyCommit(fiber), - (suspenseyCommitFlag = current$151)) + (suspenseyCommitFlag = current$152)) : recursivelyAccumulateSuspenseyCommit(fiber); } break; @@ -9039,7 +9059,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { disableLegacyMode || 0 !== (fiber.mode & 1) || ((workInProgressRootRenderTargetTime = now() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -9327,7 +9347,7 @@ function performSyncWorkOnRoot(root, lanes) { } function flushSyncWork() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -9482,8 +9502,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$157) { - handleThrow(root, thrownValue$157); + } catch (thrownValue$158) { + handleThrow(root, thrownValue$158); } while (1); lanes && root.shellSuspendCounter++; @@ -9592,8 +9612,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$159) { - handleThrow(root, thrownValue$159); + } catch (thrownValue$160) { + handleThrow(root, thrownValue$160); } while (1); resetContextDependencies(); @@ -9857,7 +9877,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); return null; } function releaseRootPooledCache(root, remainingLanes) { @@ -9902,7 +9922,7 @@ function flushPassiveEffectsImpl() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -10616,27 +10636,27 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1361 = { +var internals$jscomp$inline_1371 = { bundleType: 0, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1362 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1372 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1362.isDisabled && - hook$jscomp$inline_1362.supportsFiber + !hook$jscomp$inline_1372.isDisabled && + hook$jscomp$inline_1372.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1362.inject( - internals$jscomp$inline_1361 + (rendererID = hook$jscomp$inline_1372.inject( + internals$jscomp$inline_1371 )), - (injectedHook = hook$jscomp$inline_1362); + (injectedHook = hook$jscomp$inline_1372); } catch (err) {} } var Path = Mode$1.Path; @@ -10650,4 +10670,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index befdbd73a0..7dd57d88b0 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -1011,22 +1011,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$12 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$12 = getNextLanes( - root, - root === workInProgressRoot ? workInProgressRootRenderLanes$12 : 0 - ); - 0 !== (workInProgressRootRenderLanes$12 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root, workInProgressRootRenderLanes$12)); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root, + root === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); root = root.next; } } while (didPerformSomeWork); @@ -1035,6 +1055,7 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; @@ -1050,8 +1071,7 @@ function processRootScheduleInMicrotask() { 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0)); root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -1315,20 +1335,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$14 = workInProgress$jscomp$0.alternate; - null !== current$14 && - ((current$14 = current$14.updateQueue), - (pendingQueue = current$14.lastBaseUpdate), + var current$15 = workInProgress$jscomp$0.alternate; + null !== current$15 && + ((current$15 = current$15.updateQueue), + (pendingQueue = current$15.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$14.firstBaseUpdate = firstPendingUpdate) + ? (current$15.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$14.lastBaseUpdate = lastPendingUpdate))); + (current$15.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$14 = firstPendingUpdate = lastPendingUpdate = null; + current$15 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1341,8 +1361,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$14 && - (current$14 = current$14.next = + null !== current$15 && + (current$15 = current$15.next = { lane: 0, tag: pendingQueue.tag, @@ -1395,10 +1415,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$14 - ? ((firstPendingUpdate = current$14 = isHiddenUpdate), + null === current$15 + ? ((firstPendingUpdate = current$15 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$14 = current$14.next = isHiddenUpdate), + : (current$15 = current$15.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1411,10 +1431,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$14 && (lastPendingUpdate = newState); + null === current$15 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$14; + queue.lastBaseUpdate = current$15; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2278,9 +2298,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$43 = fiber.alternate; - null !== current$43 && - null !== current$43.memoizedState && + var current$44 = fiber.alternate; + null !== current$44 && + null !== current$44.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2540,16 +2560,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$45 = currentlyRenderingFiber$1.alternate; - null !== current$45 && - ((current$45 = current$45.updateQueue), - null !== current$45 && - ((current$45 = current$45.memoCache), - null != current$45 && + var current$46 = currentlyRenderingFiber$1.alternate; + null !== current$46 && + ((current$46 = current$46.updateQueue), + null !== current$46 && + ((current$46 = current$46.memoCache), + null != current$46 && (memoCache = { data: enableNoCloningMemoCache - ? current$45.data - : current$45.data.map(function (array) { + ? current$46.data + : current$46.data.map(function (array) { return array.slice(); }), index: 0 @@ -2564,11 +2584,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$45 = 0; - current$45 < size; - current$45++ + current$46 = 0; + current$46 < size; + current$46++ ) - updateQueue[current$45] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$46] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2601,7 +2621,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$46 = !1; + didReadFromEntangledAsyncAction$47 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2622,11 +2642,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$46 = !0); + (didReadFromEntangledAsyncAction$47 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$46 = !0); + (didReadFromEntangledAsyncAction$47 = !0); continue; } else (updateLane = { @@ -2672,7 +2692,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$46 && + didReadFromEntangledAsyncAction$47 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -2859,8 +2879,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$50) { - onActionError(actionQueue, node, error$50); + } catch (error$51) { + onActionError(actionQueue, node, error$51); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3736,9 +3756,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$52 in Component) - void 0 === newProps[propName$52] && - (newProps[propName$52] = Component[propName$52]); + for (var propName$53 in Component) + void 0 === newProps[propName$53] && + (newProps[propName$53] = Component[propName$53]); } return newProps; } @@ -6104,14 +6124,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$91 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$91 = lastTailNode), + for (var lastTailNode$92 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$92 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$91 + null === lastTailNode$92 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$91.sibling = null); + : (lastTailNode$92.sibling = null); } } function bubbleProperties(completedWork) { @@ -6121,19 +6141,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$92 = completedWork.child; null !== child$92; ) - (newChildLanes |= child$92.lanes | child$92.childLanes), - (subtreeFlags |= child$92.subtreeFlags & 31457280), - (subtreeFlags |= child$92.flags & 31457280), - (child$92.return = completedWork), - (child$92 = child$92.sibling); + for (var child$93 = completedWork.child; null !== child$93; ) + (newChildLanes |= child$93.lanes | child$93.childLanes), + (subtreeFlags |= child$93.subtreeFlags & 31457280), + (subtreeFlags |= child$93.flags & 31457280), + (child$93.return = completedWork), + (child$93 = child$93.sibling); else - for (child$92 = completedWork.child; null !== child$92; ) - (newChildLanes |= child$92.lanes | child$92.childLanes), - (subtreeFlags |= child$92.subtreeFlags), - (subtreeFlags |= child$92.flags), - (child$92.return = completedWork), - (child$92 = child$92.sibling); + for (child$93 = completedWork.child; null !== child$93; ) + (newChildLanes |= child$93.lanes | child$93.childLanes), + (subtreeFlags |= child$93.subtreeFlags), + (subtreeFlags |= child$93.flags), + (child$93.return = completedWork), + (child$93 = child$93.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6304,11 +6324,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$96 = null; + var cache$97 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$96 = newProps.memoizedState.cachePool.pool); - cache$96 !== instance && (newProps.flags |= 2048); + (cache$97 = newProps.memoizedState.cachePool.pool); + cache$97 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6336,8 +6356,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$96 = instance.rendering; - if (null === cache$96) + cache$97 = instance.rendering; + if (null === cache$97) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -6345,11 +6365,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$96 = findFirstSuspended(current); - if (null !== cache$96) { + cache$97 = findFirstSuspended(current); + if (null !== cache$97) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$96.updateQueue; + current = cache$97.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6374,7 +6394,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$96)), null !== current)) { + if (((current = findFirstSuspended(cache$97)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6384,7 +6404,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$96.alternate) + !cache$97.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -6396,13 +6416,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 4194304)); instance.isBackwards - ? ((cache$96.sibling = workInProgress.child), - (workInProgress.child = cache$96)) + ? ((cache$97.sibling = workInProgress.child), + (workInProgress.child = cache$97)) : ((current = instance.last), null !== current - ? (current.sibling = cache$96) - : (workInProgress.child = cache$96), - (instance.last = cache$96)); + ? (current.sibling = cache$97) + : (workInProgress.child = cache$97), + (instance.last = cache$97)); } if (null !== instance.tail) return ( @@ -6673,8 +6693,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$113) { - captureCommitPhaseError(current, nearestMountedAncestor, error$113); + } catch (error$114) { + captureCommitPhaseError(current, nearestMountedAncestor, error$114); } else ref.current = null; } @@ -6878,11 +6898,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$114) { + } catch (error$115) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$114 + error$115 ); } } @@ -7460,8 +7480,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$122) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$122); + } catch (error$123) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$123); } } break; @@ -7494,8 +7514,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = null !== current ? current.memoizedProps : newProps; try { flags._applyProps(flags, newProps, current); - } catch (error$125) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$125); + } catch (error$126) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$126); } } break; @@ -7531,8 +7551,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$127) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$127); + } catch (error$128) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$128); } flags = finishedWork.updateQueue; null !== flags && @@ -7669,12 +7689,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$117 = JSCompiler_inline_result.stateNode.containerInfo, - before$118 = getHostSibling(finishedWork); + var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, + before$119 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$118, - parent$117 + before$119, + parent$118 ); break; default: @@ -8121,9 +8141,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$137 = finishedWork.stateNode; + var instance$138 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$137._visibility & 4 + ? instance$138._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8135,7 +8155,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$137._visibility |= 4), + : ((instance$138._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8148,7 +8168,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$137 + instance$138 ); break; case 24: @@ -8242,12 +8262,12 @@ function accumulateSuspenseyCommitOnFiber(fiber) { break; case 22: if (null === fiber.memoizedState) { - var current$142 = fiber.alternate; - null !== current$142 && null !== current$142.memoizedState - ? ((current$142 = suspenseyCommitFlag), + var current$143 = fiber.alternate; + null !== current$143 && null !== current$143.memoizedState + ? ((current$143 = suspenseyCommitFlag), (suspenseyCommitFlag = 16777216), recursivelyAccumulateSuspenseyCommit(fiber), - (suspenseyCommitFlag = current$142)) + (suspenseyCommitFlag = current$143)) : recursivelyAccumulateSuspenseyCommit(fiber); } break; @@ -8893,7 +8913,7 @@ function performSyncWorkOnRoot(root, lanes) { } function flushSyncWork() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -9048,8 +9068,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$148) { - handleThrow(root, thrownValue$148); + } catch (thrownValue$149) { + handleThrow(root, thrownValue$149); } while (1); lanes && root.shellSuspendCounter++; @@ -9158,8 +9178,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$150) { - handleThrow(root, thrownValue$150); + } catch (thrownValue$151) { + handleThrow(root, thrownValue$151); } while (1); resetContextDependencies(); @@ -9417,7 +9437,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); return null; } function releaseRootPooledCache(root, remainingLanes) { @@ -9462,7 +9482,7 @@ function flushPassiveEffectsImpl() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -10130,27 +10150,27 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1353 = { +var internals$jscomp$inline_1363 = { bundleType: 0, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1354 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1364 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1354.isDisabled && - hook$jscomp$inline_1354.supportsFiber + !hook$jscomp$inline_1364.isDisabled && + hook$jscomp$inline_1364.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1354.inject( - internals$jscomp$inline_1353 + (rendererID = hook$jscomp$inline_1364.inject( + internals$jscomp$inline_1363 )), - (injectedHook = hook$jscomp$inline_1354); + (injectedHook = hook$jscomp$inline_1364); } catch (err) {} } var Path = Mode$1.Path; @@ -10164,4 +10184,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 6784909633..876a33b235 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -3822,28 +3822,41 @@ __DEV__ && 0 === root.tag && (ReactSharedInternals.didScheduleLegacyUpdate = !0); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -3855,33 +3868,29 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -9136,32 +9145,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2421; - var JSCompiler_object_inline_stack_2422 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2429; + var JSCompiler_object_inline_stack_2430 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2423 = !1; + var JSCompiler_object_inline_componentStack_2431 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2421 = didSuspend) || - (JSCompiler_object_inline_digest_2421 = + (JSCompiler_object_inline_digest_2429 = didSuspend) || + (JSCompiler_object_inline_digest_2429 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2421 && - ((JSCompiler_object_inline_componentStack_2423 = !0), + JSCompiler_object_inline_digest_2429 && + ((JSCompiler_object_inline_componentStack_2431 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2421 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2429 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2423 + JSCompiler_object_inline_componentStack_2431 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2420 = nextHydratableInstance; + var JSCompiler_object_inline_message_2428 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2420)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2428)) { c: { - var instance = JSCompiler_object_inline_message_2420; + var instance = JSCompiler_object_inline_message_2428; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -9202,19 +9211,19 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2420 + JSCompiler_object_inline_message_2428 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2420 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2428 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2420 && - ((JSCompiler_object_inline_message_2420 = - JSCompiler_object_inline_message_2420.dehydrated), - null !== JSCompiler_object_inline_message_2420) + null !== JSCompiler_object_inline_message_2428 && + ((JSCompiler_object_inline_message_2428 = + JSCompiler_object_inline_message_2428.dehydrated), + null !== JSCompiler_object_inline_message_2428) ) return ( - JSCompiler_object_inline_message_2420.data === + JSCompiler_object_inline_message_2428.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -9222,27 +9231,27 @@ __DEV__ && ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2420 = - JSCompiler_object_inline_stack_2422.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2422.fallback; - if (JSCompiler_object_inline_componentStack_2423) + JSCompiler_object_inline_message_2428 = + JSCompiler_object_inline_stack_2430.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2430.fallback; + if (JSCompiler_object_inline_componentStack_2431) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2422 = + (JSCompiler_object_inline_stack_2430 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2420, + JSCompiler_object_inline_message_2428, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2423 = + (JSCompiler_object_inline_componentStack_2431 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2423.memoizedState = + (JSCompiler_object_inline_componentStack_2431.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2423.childLanes = + (JSCompiler_object_inline_componentStack_2431.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2421, + JSCompiler_object_inline_digest_2429, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -9255,9 +9264,9 @@ __DEV__ && ? markerInstanceStack.current : null), (current = - JSCompiler_object_inline_componentStack_2423.updateQueue), + JSCompiler_object_inline_componentStack_2431.updateQueue), null === current - ? (JSCompiler_object_inline_componentStack_2423.updateQueue = + ? (JSCompiler_object_inline_componentStack_2431.updateQueue = { transitions: workInProgress, markerInstances: renderLanes, @@ -9265,46 +9274,46 @@ __DEV__ && }) : ((current.transitions = workInProgress), (current.markerInstances = renderLanes)))), - JSCompiler_object_inline_stack_2422 + JSCompiler_object_inline_stack_2430 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2422.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2430.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2422 = + (JSCompiler_object_inline_stack_2430 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2420, + JSCompiler_object_inline_message_2428, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2423 = + (JSCompiler_object_inline_componentStack_2431 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2423.memoizedState = + (JSCompiler_object_inline_componentStack_2431.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2423.childLanes = + (JSCompiler_object_inline_componentStack_2431.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2421, + JSCompiler_object_inline_digest_2429, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2422 + JSCompiler_object_inline_stack_2430 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2420 + JSCompiler_object_inline_message_2428 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2420 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2420) + ((JSCompiler_object_inline_message_2428 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2428) ) { if (didSuspend) workInProgress.flags & 256 @@ -9321,32 +9330,32 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2423 = - JSCompiler_object_inline_stack_2422.fallback), - (JSCompiler_object_inline_message_2420 = workInProgress.mode), - (JSCompiler_object_inline_stack_2422 = createFiberFromOffscreen( + (JSCompiler_object_inline_componentStack_2431 = + JSCompiler_object_inline_stack_2430.fallback), + (JSCompiler_object_inline_message_2428 = workInProgress.mode), + (JSCompiler_object_inline_stack_2430 = createFiberFromOffscreen( { mode: "visible", - children: JSCompiler_object_inline_stack_2422.children + children: JSCompiler_object_inline_stack_2430.children }, - JSCompiler_object_inline_message_2420, + JSCompiler_object_inline_message_2428, 0, null )), - (JSCompiler_object_inline_componentStack_2423 = + (JSCompiler_object_inline_componentStack_2431 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2423, - JSCompiler_object_inline_message_2420, + JSCompiler_object_inline_componentStack_2431, + JSCompiler_object_inline_message_2428, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2423.flags |= 2), - (JSCompiler_object_inline_stack_2422.return = workInProgress), - (JSCompiler_object_inline_componentStack_2423.return = + (JSCompiler_object_inline_componentStack_2431.flags |= 2), + (JSCompiler_object_inline_stack_2430.return = workInProgress), + (JSCompiler_object_inline_componentStack_2431.return = workInProgress), - (JSCompiler_object_inline_stack_2422.sibling = - JSCompiler_object_inline_componentStack_2423), - (workInProgress.child = JSCompiler_object_inline_stack_2422), + (JSCompiler_object_inline_stack_2430.sibling = + JSCompiler_object_inline_componentStack_2431), + (workInProgress.child = JSCompiler_object_inline_stack_2430), (disableLegacyMode || (workInProgress.mode & ConcurrentMode) !== NoMode) && reconcileChildFibers( @@ -9355,63 +9364,63 @@ __DEV__ && null, renderLanes ), - (JSCompiler_object_inline_stack_2422 = workInProgress.child), - (JSCompiler_object_inline_stack_2422.memoizedState = + (JSCompiler_object_inline_stack_2430 = workInProgress.child), + (JSCompiler_object_inline_stack_2430.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2422.childLanes = + (JSCompiler_object_inline_stack_2430.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2421, + JSCompiler_object_inline_digest_2429, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2423)); + JSCompiler_object_inline_componentStack_2431)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2420.data === + JSCompiler_object_inline_message_2428.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2421 = - JSCompiler_object_inline_message_2420.nextSibling && - JSCompiler_object_inline_message_2420.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2421) { - JSCompiler_temp = JSCompiler_object_inline_digest_2421.dgst; - var message = JSCompiler_object_inline_digest_2421.msg; - instance = JSCompiler_object_inline_digest_2421.stck; - var componentStack = JSCompiler_object_inline_digest_2421.cstck; + JSCompiler_object_inline_digest_2429 = + JSCompiler_object_inline_message_2428.nextSibling && + JSCompiler_object_inline_message_2428.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2429) { + JSCompiler_temp = JSCompiler_object_inline_digest_2429.dgst; + var message = JSCompiler_object_inline_digest_2429.msg; + instance = JSCompiler_object_inline_digest_2429.stck; + var componentStack = JSCompiler_object_inline_digest_2429.cstck; } - JSCompiler_object_inline_message_2420 = message; - JSCompiler_object_inline_digest_2421 = JSCompiler_temp; - JSCompiler_object_inline_stack_2422 = instance; - JSCompiler_object_inline_componentStack_2423 = componentStack; - JSCompiler_object_inline_message_2420 = - JSCompiler_object_inline_message_2420 - ? Error(JSCompiler_object_inline_message_2420) + JSCompiler_object_inline_message_2428 = message; + JSCompiler_object_inline_digest_2429 = JSCompiler_temp; + JSCompiler_object_inline_stack_2430 = instance; + JSCompiler_object_inline_componentStack_2431 = componentStack; + JSCompiler_object_inline_message_2428 = + JSCompiler_object_inline_message_2428 + ? Error(JSCompiler_object_inline_message_2428) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_message_2420.stack = - JSCompiler_object_inline_stack_2422 || ""; - JSCompiler_object_inline_message_2420.digest = - JSCompiler_object_inline_digest_2421; - JSCompiler_object_inline_digest_2421 = - void 0 === JSCompiler_object_inline_componentStack_2423 + JSCompiler_object_inline_message_2428.stack = + JSCompiler_object_inline_stack_2430 || ""; + JSCompiler_object_inline_message_2428.digest = + JSCompiler_object_inline_digest_2429; + JSCompiler_object_inline_digest_2429 = + void 0 === JSCompiler_object_inline_componentStack_2431 ? null - : JSCompiler_object_inline_componentStack_2423; - "string" === typeof JSCompiler_object_inline_digest_2421 && + : JSCompiler_object_inline_componentStack_2431; + "string" === typeof JSCompiler_object_inline_digest_2429 && CapturedStacks.set( - JSCompiler_object_inline_message_2420, - JSCompiler_object_inline_digest_2421 + JSCompiler_object_inline_message_2428, + JSCompiler_object_inline_digest_2429 ); queueHydrationError({ - value: JSCompiler_object_inline_message_2420, + value: JSCompiler_object_inline_message_2428, source: null, - stack: JSCompiler_object_inline_digest_2421 + stack: JSCompiler_object_inline_digest_2429 }); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9426,25 +9435,25 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2421 = + (JSCompiler_object_inline_digest_2429 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2421) + didReceiveUpdate || JSCompiler_object_inline_digest_2429) ) { - JSCompiler_object_inline_digest_2421 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2421) { - JSCompiler_object_inline_stack_2422 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2422 & 42)) - JSCompiler_object_inline_stack_2422 = 1; + JSCompiler_object_inline_digest_2429 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2429) { + JSCompiler_object_inline_stack_2430 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2430 & 42)) + JSCompiler_object_inline_stack_2430 = 1; else - switch (JSCompiler_object_inline_stack_2422) { + switch (JSCompiler_object_inline_stack_2430) { case 2: - JSCompiler_object_inline_stack_2422 = 1; + JSCompiler_object_inline_stack_2430 = 1; break; case 8: - JSCompiler_object_inline_stack_2422 = 4; + JSCompiler_object_inline_stack_2430 = 4; break; case 32: - JSCompiler_object_inline_stack_2422 = 16; + JSCompiler_object_inline_stack_2430 = 16; break; case 128: case 256: @@ -9465,40 +9474,40 @@ __DEV__ && case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2422 = 64; + JSCompiler_object_inline_stack_2430 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2422 = 134217728; + JSCompiler_object_inline_stack_2430 = 134217728; break; default: - JSCompiler_object_inline_stack_2422 = 0; + JSCompiler_object_inline_stack_2430 = 0; } - JSCompiler_object_inline_stack_2422 = + JSCompiler_object_inline_stack_2430 = 0 !== - (JSCompiler_object_inline_stack_2422 & - (JSCompiler_object_inline_digest_2421.suspendedLanes | + (JSCompiler_object_inline_stack_2430 & + (JSCompiler_object_inline_digest_2429.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2422; + : JSCompiler_object_inline_stack_2430; if ( - 0 !== JSCompiler_object_inline_stack_2422 && - JSCompiler_object_inline_stack_2422 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2430 && + JSCompiler_object_inline_stack_2430 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2422), + ((prevState.retryLane = JSCompiler_object_inline_stack_2430), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2422 + JSCompiler_object_inline_stack_2430 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2421, + JSCompiler_object_inline_digest_2429, current, - JSCompiler_object_inline_stack_2422 + JSCompiler_object_inline_stack_2430 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2420.data === + JSCompiler_object_inline_message_2428.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9506,7 +9515,7 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2420.data === + JSCompiler_object_inline_message_2428.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9514,12 +9523,12 @@ __DEV__ && null, current )), - (JSCompiler_object_inline_message_2420._reactRetry = + (JSCompiler_object_inline_message_2428._reactRetry = workInProgress), (workInProgress = null)) : ((renderLanes = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2420.nextSibling + JSCompiler_object_inline_message_2428.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9537,73 +9546,73 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2422.children + JSCompiler_object_inline_stack_2430.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2423) + if (JSCompiler_object_inline_componentStack_2431) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2423 = - JSCompiler_object_inline_stack_2422.fallback), - (JSCompiler_object_inline_message_2420 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2431 = + JSCompiler_object_inline_stack_2430.fallback), + (JSCompiler_object_inline_message_2428 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), (componentStack = { mode: "hidden", - children: JSCompiler_object_inline_stack_2422.children + children: JSCompiler_object_inline_stack_2430.children }), disableLegacyMode || - (JSCompiler_object_inline_message_2420 & ConcurrentMode) !== NoMode || + (JSCompiler_object_inline_message_2428 & ConcurrentMode) !== NoMode || workInProgress.child === JSCompiler_temp - ? ((JSCompiler_object_inline_stack_2422 = createWorkInProgress( + ? ((JSCompiler_object_inline_stack_2430 = createWorkInProgress( JSCompiler_temp, componentStack )), - (JSCompiler_object_inline_stack_2422.subtreeFlags = + (JSCompiler_object_inline_stack_2430.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)) - : ((JSCompiler_object_inline_stack_2422 = workInProgress.child), - (JSCompiler_object_inline_stack_2422.childLanes = 0), - (JSCompiler_object_inline_stack_2422.pendingProps = + : ((JSCompiler_object_inline_stack_2430 = workInProgress.child), + (JSCompiler_object_inline_stack_2430.childLanes = 0), + (JSCompiler_object_inline_stack_2430.pendingProps = componentStack), workInProgress.mode & ProfileMode && - ((JSCompiler_object_inline_stack_2422.actualDuration = 0), - (JSCompiler_object_inline_stack_2422.actualStartTime = -1), - (JSCompiler_object_inline_stack_2422.selfBaseDuration = + ((JSCompiler_object_inline_stack_2430.actualDuration = 0), + (JSCompiler_object_inline_stack_2430.actualStartTime = -1), + (JSCompiler_object_inline_stack_2430.selfBaseDuration = JSCompiler_temp.selfBaseDuration), - (JSCompiler_object_inline_stack_2422.treeBaseDuration = + (JSCompiler_object_inline_stack_2430.treeBaseDuration = JSCompiler_temp.treeBaseDuration)), (workInProgress.deletions = null)), null !== instance - ? (JSCompiler_object_inline_componentStack_2423 = + ? (JSCompiler_object_inline_componentStack_2431 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2423 + JSCompiler_object_inline_componentStack_2431 )) - : ((JSCompiler_object_inline_componentStack_2423 = + : ((JSCompiler_object_inline_componentStack_2431 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2423, - JSCompiler_object_inline_message_2420, + JSCompiler_object_inline_componentStack_2431, + JSCompiler_object_inline_message_2428, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2423.flags |= 2)), - (JSCompiler_object_inline_componentStack_2423.return = + (JSCompiler_object_inline_componentStack_2431.flags |= 2)), + (JSCompiler_object_inline_componentStack_2431.return = workInProgress), - (JSCompiler_object_inline_stack_2422.return = workInProgress), - (JSCompiler_object_inline_stack_2422.sibling = - JSCompiler_object_inline_componentStack_2423), - (workInProgress.child = JSCompiler_object_inline_stack_2422), - (JSCompiler_object_inline_stack_2422 = - JSCompiler_object_inline_componentStack_2423), - (JSCompiler_object_inline_componentStack_2423 = workInProgress.child), - (JSCompiler_object_inline_message_2420 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2420 - ? (JSCompiler_object_inline_message_2420 = + (JSCompiler_object_inline_stack_2430.return = workInProgress), + (JSCompiler_object_inline_stack_2430.sibling = + JSCompiler_object_inline_componentStack_2431), + (workInProgress.child = JSCompiler_object_inline_stack_2430), + (JSCompiler_object_inline_stack_2430 = + JSCompiler_object_inline_componentStack_2431), + (JSCompiler_object_inline_componentStack_2431 = workInProgress.child), + (JSCompiler_object_inline_message_2428 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2428 + ? (JSCompiler_object_inline_message_2428 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2420.cachePool), + JSCompiler_object_inline_message_2428.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9611,34 +9620,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2420 = { + (JSCompiler_object_inline_message_2428 = { baseLanes: - JSCompiler_object_inline_message_2420.baseLanes | renderLanes, + JSCompiler_object_inline_message_2428.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2423.memoizedState = - JSCompiler_object_inline_message_2420), + (JSCompiler_object_inline_componentStack_2431.memoizedState = + JSCompiler_object_inline_message_2428), enableTransitionTracing && - ((JSCompiler_object_inline_message_2420 = enableTransitionTracing + ((JSCompiler_object_inline_message_2428 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2420 && + null !== JSCompiler_object_inline_message_2428 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2423.updateQueue), + JSCompiler_object_inline_componentStack_2431.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2423.updateQueue = { - transitions: JSCompiler_object_inline_message_2420, + ? (JSCompiler_object_inline_componentStack_2431.updateQueue = { + transitions: JSCompiler_object_inline_message_2428, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2423.updateQueue = + ? (JSCompiler_object_inline_componentStack_2431.updateQueue = { - transitions: JSCompiler_object_inline_message_2420, + transitions: JSCompiler_object_inline_message_2428, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9646,41 +9655,41 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2420), + JSCompiler_object_inline_message_2428), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2423.childLanes = + (JSCompiler_object_inline_componentStack_2431.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2421, + JSCompiler_object_inline_digest_2429, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2422 + JSCompiler_object_inline_stack_2430 ); pushPrimaryTreeSuspenseHandler(workInProgress); - JSCompiler_object_inline_digest_2421 = current.child; - current = JSCompiler_object_inline_digest_2421.sibling; - JSCompiler_object_inline_digest_2421 = createWorkInProgress( - JSCompiler_object_inline_digest_2421, + JSCompiler_object_inline_digest_2429 = current.child; + current = JSCompiler_object_inline_digest_2429.sibling; + JSCompiler_object_inline_digest_2429 = createWorkInProgress( + JSCompiler_object_inline_digest_2429, { mode: "visible", - children: JSCompiler_object_inline_stack_2422.children + children: JSCompiler_object_inline_stack_2430.children } ); disableLegacyMode || (workInProgress.mode & ConcurrentMode) !== NoMode || - (JSCompiler_object_inline_digest_2421.lanes = renderLanes); - JSCompiler_object_inline_digest_2421.return = workInProgress; - JSCompiler_object_inline_digest_2421.sibling = null; + (JSCompiler_object_inline_digest_2429.lanes = renderLanes); + JSCompiler_object_inline_digest_2429.return = workInProgress; + JSCompiler_object_inline_digest_2429.sibling = null; null !== current && ((renderLanes = workInProgress.deletions), null === renderLanes ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) : renderLanes.push(current)); - workInProgress.child = JSCompiler_object_inline_digest_2421; + workInProgress.child = JSCompiler_object_inline_digest_2429; workInProgress.memoizedState = null; - return JSCompiler_object_inline_digest_2421; + return JSCompiler_object_inline_digest_2429; } function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { primaryChildren = createFiberFromOffscreen( @@ -15577,7 +15586,7 @@ __DEV__ && (fiber.mode & ConcurrentMode) !== NoMode || ReactSharedInternals.isBatchingLegacy || ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -15916,12 +15925,12 @@ __DEV__ && executionContext !== NoContext || ReactSharedInternals.isBatchingLegacy || ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function flushSyncWork$1() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -16680,7 +16689,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { @@ -16798,7 +16807,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root, !0); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -23338,7 +23347,7 @@ __DEV__ && NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -23618,7 +23627,7 @@ __DEV__ && (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), (executionContext & (RenderContext | CommitContext)) === - NoContext && flushSyncWorkAcrossRoots_impl(!1); + NoContext && flushSyncWorkAcrossRoots_impl(0, !1); } JSCompiler_inline_result = void 0; } @@ -27528,11 +27537,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-1d989965-20240821" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-ee7f6757-20240823" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-1d989965-20240821\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-ee7f6757-20240823\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27576,11 +27585,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28233,7 +28242,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-1d989965-20240821"; + exports.version = "19.0.0-www-classic-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 34e51e1284..0b59cfd357 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -3689,28 +3689,41 @@ __DEV__ && enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now$1()); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -3722,33 +3735,29 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -8821,32 +8830,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2433; - var JSCompiler_object_inline_stack_2434 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2441; + var JSCompiler_object_inline_stack_2442 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2435 = !1; + var JSCompiler_object_inline_componentStack_2443 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2433 = didSuspend) || - (JSCompiler_object_inline_digest_2433 = + (JSCompiler_object_inline_digest_2441 = didSuspend) || + (JSCompiler_object_inline_digest_2441 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2433 && - ((JSCompiler_object_inline_componentStack_2435 = !0), + JSCompiler_object_inline_digest_2441 && + ((JSCompiler_object_inline_componentStack_2443 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2433 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2441 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2435 + JSCompiler_object_inline_componentStack_2443 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2432 = nextHydratableInstance; + var JSCompiler_object_inline_message_2440 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2432)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2440)) { c: { - var instance = JSCompiler_object_inline_message_2432; + var instance = JSCompiler_object_inline_message_2440; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -8887,19 +8896,19 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2432 + JSCompiler_object_inline_message_2440 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2432 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2440 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2432 && - ((JSCompiler_object_inline_message_2432 = - JSCompiler_object_inline_message_2432.dehydrated), - null !== JSCompiler_object_inline_message_2432) + null !== JSCompiler_object_inline_message_2440 && + ((JSCompiler_object_inline_message_2440 = + JSCompiler_object_inline_message_2440.dehydrated), + null !== JSCompiler_object_inline_message_2440) ) return ( - JSCompiler_object_inline_message_2432.data === + JSCompiler_object_inline_message_2440.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8907,27 +8916,27 @@ __DEV__ && ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2432 = - JSCompiler_object_inline_stack_2434.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2434.fallback; - if (JSCompiler_object_inline_componentStack_2435) + JSCompiler_object_inline_message_2440 = + JSCompiler_object_inline_stack_2442.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2442.fallback; + if (JSCompiler_object_inline_componentStack_2443) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2434 = + (JSCompiler_object_inline_stack_2442 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2432, + JSCompiler_object_inline_message_2440, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2435 = + (JSCompiler_object_inline_componentStack_2443 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2435.memoizedState = + (JSCompiler_object_inline_componentStack_2443.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2435.childLanes = + (JSCompiler_object_inline_componentStack_2443.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2433, + JSCompiler_object_inline_digest_2441, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -8940,9 +8949,9 @@ __DEV__ && ? markerInstanceStack.current : null), (renderLanes = - JSCompiler_object_inline_componentStack_2435.updateQueue), + JSCompiler_object_inline_componentStack_2443.updateQueue), null === renderLanes - ? (JSCompiler_object_inline_componentStack_2435.updateQueue = + ? (JSCompiler_object_inline_componentStack_2443.updateQueue = { transitions: workInProgress, markerInstances: current, @@ -8950,46 +8959,46 @@ __DEV__ && }) : ((renderLanes.transitions = workInProgress), (renderLanes.markerInstances = current)))), - JSCompiler_object_inline_stack_2434 + JSCompiler_object_inline_stack_2442 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2434.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2442.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2434 = + (JSCompiler_object_inline_stack_2442 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2432, + JSCompiler_object_inline_message_2440, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2435 = + (JSCompiler_object_inline_componentStack_2443 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2435.memoizedState = + (JSCompiler_object_inline_componentStack_2443.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2435.childLanes = + (JSCompiler_object_inline_componentStack_2443.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2433, + JSCompiler_object_inline_digest_2441, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2434 + JSCompiler_object_inline_stack_2442 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2432 + JSCompiler_object_inline_message_2440 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2432 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2432) + ((JSCompiler_object_inline_message_2440 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2440) ) { if (didSuspend) workInProgress.flags & 256 @@ -9006,94 +9015,94 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2435 = - JSCompiler_object_inline_stack_2434.fallback), - (JSCompiler_object_inline_message_2432 = workInProgress.mode), - (JSCompiler_object_inline_stack_2434 = + (JSCompiler_object_inline_componentStack_2443 = + JSCompiler_object_inline_stack_2442.fallback), + (JSCompiler_object_inline_message_2440 = workInProgress.mode), + (JSCompiler_object_inline_stack_2442 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2434.children + children: JSCompiler_object_inline_stack_2442.children }, - JSCompiler_object_inline_message_2432 + JSCompiler_object_inline_message_2440 )), - (JSCompiler_object_inline_componentStack_2435 = + (JSCompiler_object_inline_componentStack_2443 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2435, - JSCompiler_object_inline_message_2432, + JSCompiler_object_inline_componentStack_2443, + JSCompiler_object_inline_message_2440, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2435.flags |= 2), - (JSCompiler_object_inline_stack_2434.return = workInProgress), - (JSCompiler_object_inline_componentStack_2435.return = + (JSCompiler_object_inline_componentStack_2443.flags |= 2), + (JSCompiler_object_inline_stack_2442.return = workInProgress), + (JSCompiler_object_inline_componentStack_2443.return = workInProgress), - (JSCompiler_object_inline_stack_2434.sibling = - JSCompiler_object_inline_componentStack_2435), - (workInProgress.child = JSCompiler_object_inline_stack_2434), + (JSCompiler_object_inline_stack_2442.sibling = + JSCompiler_object_inline_componentStack_2443), + (workInProgress.child = JSCompiler_object_inline_stack_2442), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2434 = workInProgress.child), - (JSCompiler_object_inline_stack_2434.memoizedState = + (JSCompiler_object_inline_stack_2442 = workInProgress.child), + (JSCompiler_object_inline_stack_2442.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2434.childLanes = + (JSCompiler_object_inline_stack_2442.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2433, + JSCompiler_object_inline_digest_2441, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2435)); + JSCompiler_object_inline_componentStack_2443)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2432.data === + JSCompiler_object_inline_message_2440.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2433 = - JSCompiler_object_inline_message_2432.nextSibling && - JSCompiler_object_inline_message_2432.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2433) { - JSCompiler_temp = JSCompiler_object_inline_digest_2433.dgst; - var message = JSCompiler_object_inline_digest_2433.msg; - instance = JSCompiler_object_inline_digest_2433.stck; - var componentStack = JSCompiler_object_inline_digest_2433.cstck; + JSCompiler_object_inline_digest_2441 = + JSCompiler_object_inline_message_2440.nextSibling && + JSCompiler_object_inline_message_2440.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2441) { + JSCompiler_temp = JSCompiler_object_inline_digest_2441.dgst; + var message = JSCompiler_object_inline_digest_2441.msg; + instance = JSCompiler_object_inline_digest_2441.stck; + var componentStack = JSCompiler_object_inline_digest_2441.cstck; } - JSCompiler_object_inline_message_2432 = message; - JSCompiler_object_inline_digest_2433 = JSCompiler_temp; - JSCompiler_object_inline_stack_2434 = instance; - JSCompiler_object_inline_componentStack_2435 = componentStack; - JSCompiler_object_inline_message_2432 = - JSCompiler_object_inline_message_2432 - ? Error(JSCompiler_object_inline_message_2432) + JSCompiler_object_inline_message_2440 = message; + JSCompiler_object_inline_digest_2441 = JSCompiler_temp; + JSCompiler_object_inline_stack_2442 = instance; + JSCompiler_object_inline_componentStack_2443 = componentStack; + JSCompiler_object_inline_message_2440 = + JSCompiler_object_inline_message_2440 + ? Error(JSCompiler_object_inline_message_2440) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_message_2432.stack = - JSCompiler_object_inline_stack_2434 || ""; - JSCompiler_object_inline_message_2432.digest = - JSCompiler_object_inline_digest_2433; - JSCompiler_object_inline_digest_2433 = - void 0 === JSCompiler_object_inline_componentStack_2435 + JSCompiler_object_inline_message_2440.stack = + JSCompiler_object_inline_stack_2442 || ""; + JSCompiler_object_inline_message_2440.digest = + JSCompiler_object_inline_digest_2441; + JSCompiler_object_inline_digest_2441 = + void 0 === JSCompiler_object_inline_componentStack_2443 ? null - : JSCompiler_object_inline_componentStack_2435; - "string" === typeof JSCompiler_object_inline_digest_2433 && + : JSCompiler_object_inline_componentStack_2443; + "string" === typeof JSCompiler_object_inline_digest_2441 && CapturedStacks.set( - JSCompiler_object_inline_message_2432, - JSCompiler_object_inline_digest_2433 + JSCompiler_object_inline_message_2440, + JSCompiler_object_inline_digest_2441 ); queueHydrationError({ - value: JSCompiler_object_inline_message_2432, + value: JSCompiler_object_inline_message_2440, source: null, - stack: JSCompiler_object_inline_digest_2433 + stack: JSCompiler_object_inline_digest_2441 }); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9108,25 +9117,25 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2433 = + (JSCompiler_object_inline_digest_2441 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2433) + didReceiveUpdate || JSCompiler_object_inline_digest_2441) ) { - JSCompiler_object_inline_digest_2433 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2433) { - JSCompiler_object_inline_stack_2434 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2434 & 42)) - JSCompiler_object_inline_stack_2434 = 1; + JSCompiler_object_inline_digest_2441 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2441) { + JSCompiler_object_inline_stack_2442 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2442 & 42)) + JSCompiler_object_inline_stack_2442 = 1; else - switch (JSCompiler_object_inline_stack_2434) { + switch (JSCompiler_object_inline_stack_2442) { case 2: - JSCompiler_object_inline_stack_2434 = 1; + JSCompiler_object_inline_stack_2442 = 1; break; case 8: - JSCompiler_object_inline_stack_2434 = 4; + JSCompiler_object_inline_stack_2442 = 4; break; case 32: - JSCompiler_object_inline_stack_2434 = 16; + JSCompiler_object_inline_stack_2442 = 16; break; case 128: case 256: @@ -9147,40 +9156,40 @@ __DEV__ && case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2434 = 64; + JSCompiler_object_inline_stack_2442 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2434 = 134217728; + JSCompiler_object_inline_stack_2442 = 134217728; break; default: - JSCompiler_object_inline_stack_2434 = 0; + JSCompiler_object_inline_stack_2442 = 0; } - JSCompiler_object_inline_stack_2434 = + JSCompiler_object_inline_stack_2442 = 0 !== - (JSCompiler_object_inline_stack_2434 & - (JSCompiler_object_inline_digest_2433.suspendedLanes | + (JSCompiler_object_inline_stack_2442 & + (JSCompiler_object_inline_digest_2441.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2434; + : JSCompiler_object_inline_stack_2442; if ( - 0 !== JSCompiler_object_inline_stack_2434 && - JSCompiler_object_inline_stack_2434 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2442 && + JSCompiler_object_inline_stack_2442 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2434), + ((prevState.retryLane = JSCompiler_object_inline_stack_2442), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2434 + JSCompiler_object_inline_stack_2442 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2433, + JSCompiler_object_inline_digest_2441, current, - JSCompiler_object_inline_stack_2434 + JSCompiler_object_inline_stack_2442 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2432.data === + JSCompiler_object_inline_message_2440.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9188,7 +9197,7 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2432.data === + JSCompiler_object_inline_message_2440.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9196,12 +9205,12 @@ __DEV__ && null, current )), - (JSCompiler_object_inline_message_2432._reactRetry = + (JSCompiler_object_inline_message_2440._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2432.nextSibling + JSCompiler_object_inline_message_2440.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9219,57 +9228,57 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2434.children + JSCompiler_object_inline_stack_2442.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2435) + if (JSCompiler_object_inline_componentStack_2443) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2435 = - JSCompiler_object_inline_stack_2434.fallback), - (JSCompiler_object_inline_message_2432 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2443 = + JSCompiler_object_inline_stack_2442.fallback), + (JSCompiler_object_inline_message_2440 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2434 = createWorkInProgress( + (JSCompiler_object_inline_stack_2442 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2434.children + children: JSCompiler_object_inline_stack_2442.children } )), - (JSCompiler_object_inline_stack_2434.subtreeFlags = + (JSCompiler_object_inline_stack_2442.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2435 = + ? (JSCompiler_object_inline_componentStack_2443 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2435 + JSCompiler_object_inline_componentStack_2443 )) - : ((JSCompiler_object_inline_componentStack_2435 = + : ((JSCompiler_object_inline_componentStack_2443 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2435, - JSCompiler_object_inline_message_2432, + JSCompiler_object_inline_componentStack_2443, + JSCompiler_object_inline_message_2440, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2435.flags |= 2)), - (JSCompiler_object_inline_componentStack_2435.return = + (JSCompiler_object_inline_componentStack_2443.flags |= 2)), + (JSCompiler_object_inline_componentStack_2443.return = workInProgress), - (JSCompiler_object_inline_stack_2434.return = workInProgress), - (JSCompiler_object_inline_stack_2434.sibling = - JSCompiler_object_inline_componentStack_2435), - (workInProgress.child = JSCompiler_object_inline_stack_2434), - (JSCompiler_object_inline_stack_2434 = - JSCompiler_object_inline_componentStack_2435), - (JSCompiler_object_inline_componentStack_2435 = workInProgress.child), - (JSCompiler_object_inline_message_2432 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2432 - ? (JSCompiler_object_inline_message_2432 = + (JSCompiler_object_inline_stack_2442.return = workInProgress), + (JSCompiler_object_inline_stack_2442.sibling = + JSCompiler_object_inline_componentStack_2443), + (workInProgress.child = JSCompiler_object_inline_stack_2442), + (JSCompiler_object_inline_stack_2442 = + JSCompiler_object_inline_componentStack_2443), + (JSCompiler_object_inline_componentStack_2443 = workInProgress.child), + (JSCompiler_object_inline_message_2440 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2440 + ? (JSCompiler_object_inline_message_2440 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2432.cachePool), + JSCompiler_object_inline_message_2440.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9277,34 +9286,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2432 = { + (JSCompiler_object_inline_message_2440 = { baseLanes: - JSCompiler_object_inline_message_2432.baseLanes | renderLanes, + JSCompiler_object_inline_message_2440.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2435.memoizedState = - JSCompiler_object_inline_message_2432), + (JSCompiler_object_inline_componentStack_2443.memoizedState = + JSCompiler_object_inline_message_2440), enableTransitionTracing && - ((JSCompiler_object_inline_message_2432 = enableTransitionTracing + ((JSCompiler_object_inline_message_2440 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2432 && + null !== JSCompiler_object_inline_message_2440 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2435.updateQueue), + JSCompiler_object_inline_componentStack_2443.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2435.updateQueue = { - transitions: JSCompiler_object_inline_message_2432, + ? (JSCompiler_object_inline_componentStack_2443.updateQueue = { + transitions: JSCompiler_object_inline_message_2440, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2435.updateQueue = + ? (JSCompiler_object_inline_componentStack_2443.updateQueue = { - transitions: JSCompiler_object_inline_message_2432, + transitions: JSCompiler_object_inline_message_2440, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9312,32 +9321,32 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2432), + JSCompiler_object_inline_message_2440), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2435.childLanes = + (JSCompiler_object_inline_componentStack_2443.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2433, + JSCompiler_object_inline_digest_2441, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2434 + JSCompiler_object_inline_stack_2442 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2434.children + children: JSCompiler_object_inline_stack_2442.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2433 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2433 + ((JSCompiler_object_inline_digest_2441 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2441 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2433.push(current)); + : JSCompiler_object_inline_digest_2441.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -15357,7 +15366,7 @@ __DEV__ && } function flushSyncWork$1() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -16110,7 +16119,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { @@ -16228,7 +16237,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -22612,7 +22621,7 @@ __DEV__ && NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -26613,11 +26622,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-1d989965-20240821" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-ee7f6757-20240823" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-1d989965-20240821\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-ee7f6757-20240823\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26660,11 +26669,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27269,7 +27278,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-1d989965-20240821"; + exports.version = "19.0.0-www-modern-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 413db4a536..7988081829 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -1921,24 +1921,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root$26.tag)) { - var workInProgressRootRenderLanes$28 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$28 = getNextLanes( - root$26, - root$26 === workInProgressRoot - ? workInProgressRootRenderLanes$28 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$28 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, workInProgressRootRenderLanes$28)); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root$26.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$26.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$26.suspendedLanes, + pingedLanes = root$26.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$26, + root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); root$26 = root$26.next; } } while (didPerformSomeWork); @@ -1947,30 +1965,29 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -2241,20 +2258,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$30 = workInProgress$jscomp$0.alternate; - null !== current$30 && - ((current$30 = current$30.updateQueue), - (pendingQueue = current$30.lastBaseUpdate), + var current$31 = workInProgress$jscomp$0.alternate; + null !== current$31 && + ((current$31 = current$31.updateQueue), + (pendingQueue = current$31.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$30.firstBaseUpdate = firstPendingUpdate) + ? (current$31.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$30.lastBaseUpdate = lastPendingUpdate))); + (current$31.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$30 = firstPendingUpdate = lastPendingUpdate = null; + current$31 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2267,8 +2284,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$30 && - (current$30 = current$30.next = + null !== current$31 && + (current$31 = current$31.next = { lane: 0, tag: pendingQueue.tag, @@ -2321,10 +2338,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$30 - ? ((firstPendingUpdate = current$30 = isHiddenUpdate), + null === current$31 + ? ((firstPendingUpdate = current$31 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$30 = current$30.next = isHiddenUpdate), + : (current$31 = current$31.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2337,10 +2354,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$30 && (lastPendingUpdate = newState); + null === current$31 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$30; + queue.lastBaseUpdate = current$31; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3219,9 +3236,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$65 = fiber.alternate; - null !== current$65 && - null !== current$65.memoizedState && + var current$66 = fiber.alternate; + null !== current$66 && + null !== current$66.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3491,16 +3508,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$67 = currentlyRenderingFiber$1.alternate; - null !== current$67 && - ((current$67 = current$67.updateQueue), - null !== current$67 && - ((current$67 = current$67.memoCache), - null != current$67 && + var current$68 = currentlyRenderingFiber$1.alternate; + null !== current$68 && + ((current$68 = current$68.updateQueue), + null !== current$68 && + ((current$68 = current$68.memoCache), + null != current$68 && (memoCache = { data: enableNoCloningMemoCache - ? current$67.data - : current$67.data.map(function (array) { + ? current$68.data + : current$68.data.map(function (array) { return array.slice(); }), index: 0 @@ -3515,11 +3532,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$67 = 0; - current$67 < size; - current$67++ + current$68 = 0; + current$68 < size; + current$68++ ) - updateQueue[current$67] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3552,7 +3569,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$68 = !1; + didReadFromEntangledAsyncAction$69 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3573,11 +3590,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); continue; } else (updateLane = { @@ -3623,7 +3640,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$68 && + didReadFromEntangledAsyncAction$69 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3821,8 +3838,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$74) { - onActionError(actionQueue, node, error$74); + } catch (error$75) { + onActionError(actionQueue, node, error$75); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4271,14 +4288,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$77 = enqueueUpdate(provider, fiber, lane); - null !== root$77 && - (scheduleUpdateOnFiber(root$77, provider, lane), - entangleTransitions(root$77, provider, lane)); + var root$78 = enqueueUpdate(provider, fiber, lane); + null !== root$78 && + (scheduleUpdateOnFiber(root$78, provider, lane), + entangleTransitions(root$78, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$77 && + null !== root$78 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4877,9 +4894,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$81 in Component) - void 0 === newProps[propName$81] && - (newProps[propName$81] = Component[propName$81]); + for (var propName$82 in Component) + void 0 === newProps[propName$82] && + (newProps[propName$82] = Component[propName$82]); } return newProps; } @@ -5321,10 +5338,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$95 = workInProgress.stateNode; + root$96 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$95.incompleteTransitions.has(transition)) { + if (!root$96.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5332,11 +5349,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$95.incompleteTransitions.set(transition, markerInstance); + root$96.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$95.incompleteTransitions.forEach(function (markerInstance) { + root$96.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7729,14 +7746,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$137 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$137 = lastTailNode), + for (var lastTailNode$138 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$138 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$137 + null === lastTailNode$138 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$137.sibling = null); + : (lastTailNode$138.sibling = null); } } function bubbleProperties(completedWork) { @@ -7746,19 +7763,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$138 = completedWork.child; null !== child$138; ) - (newChildLanes |= child$138.lanes | child$138.childLanes), - (subtreeFlags |= child$138.subtreeFlags & 31457280), - (subtreeFlags |= child$138.flags & 31457280), - (child$138.return = completedWork), - (child$138 = child$138.sibling); + for (var child$139 = completedWork.child; null !== child$139; ) + (newChildLanes |= child$139.lanes | child$139.childLanes), + (subtreeFlags |= child$139.subtreeFlags & 31457280), + (subtreeFlags |= child$139.flags & 31457280), + (child$139.return = completedWork), + (child$139 = child$139.sibling); else - for (child$138 = completedWork.child; null !== child$138; ) - (newChildLanes |= child$138.lanes | child$138.childLanes), - (subtreeFlags |= child$138.subtreeFlags), - (subtreeFlags |= child$138.flags), - (child$138.return = completedWork), - (child$138 = child$138.sibling); + for (child$139 = completedWork.child; null !== child$139; ) + (newChildLanes |= child$139.lanes | child$139.childLanes), + (subtreeFlags |= child$139.subtreeFlags), + (subtreeFlags |= child$139.flags), + (child$139.return = completedWork), + (child$139 = child$139.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -8055,11 +8072,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$150 = null; + var cache$151 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$150 = newProps.memoizedState.cachePool.pool); - cache$150 !== type && (newProps.flags |= 2048); + (cache$151 = newProps.memoizedState.cachePool.pool); + cache$151 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -8098,8 +8115,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$150 = type.rendering; - if (null === cache$150) + cache$151 = type.rendering; + if (null === cache$151) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -8107,11 +8124,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$150 = findFirstSuspended(current); - if (null !== cache$150) { + cache$151 = findFirstSuspended(current); + if (null !== cache$151) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$150.updateQueue; + current = cache$151.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8136,7 +8153,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$150)), null !== current)) { + if (((current = findFirstSuspended(cache$151)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8146,7 +8163,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$150.alternate && + !cache$151.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8159,13 +8176,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$150.sibling = workInProgress.child), - (workInProgress.child = cache$150)) + ? ((cache$151.sibling = workInProgress.child), + (workInProgress.child = cache$151)) : ((current = type.last), null !== current - ? (current.sibling = cache$150) - : (workInProgress.child = cache$150), - (type.last = cache$150)); + ? (current.sibling = cache$151) + : (workInProgress.child = cache$151), + (type.last = cache$151)); } if (null !== type.tail) return ( @@ -8450,8 +8467,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$168) { - captureCommitPhaseError(current, nearestMountedAncestor, error$168); + } catch (error$169) { + captureCommitPhaseError(current, nearestMountedAncestor, error$169); } else ref.current = null; } @@ -8488,7 +8505,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$228) { + } catch (e$229) { JSCompiler_temp = null; break a; } @@ -8758,11 +8775,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$170) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$170 + error$171 ); } } @@ -9309,19 +9326,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$182 = finishedWork.alternate; + var current$183 = finishedWork.alternate; if ( - null !== current$182 && - ((current$182 = current$182.memoizedState), - null !== current$182 && - ((current$182 = current$182.dehydrated), null !== current$182)) + null !== current$183 && + ((current$183 = current$183.memoizedState), + null !== current$183 && + ((current$183 = current$183.dehydrated), null !== current$183)) ) try { - retryIfBlockedOn(current$182); + retryIfBlockedOn(current$183); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$182); + onHydrated && onHydrated(current$183); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9439,8 +9456,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$185) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$185); } } break; @@ -9613,11 +9630,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$185) { + } catch (error$186) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$185 + error$186 ); } break; @@ -9654,8 +9671,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$186) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$186); + } catch (error$187) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$187); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9665,8 +9682,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$188) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$188); + } catch (error$189) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$189); } } flags & 1024 && (needsFormReset = !0); @@ -9681,8 +9698,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$190) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$190); } } break; @@ -9696,8 +9713,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$190) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$190); + } catch (error$191) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$191); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9729,8 +9746,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$192) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$192); + } catch (error$193) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$193); } flags = finishedWork.updateQueue; null !== flags && @@ -9808,11 +9825,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$173) { + } catch (error$174) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$173 + error$174 ); } } else if ( @@ -9887,21 +9904,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$174 = JSCompiler_inline_result.stateNode; + var parent$175 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$174, ""), + (setTextContent(parent$175, ""), (JSCompiler_inline_result.flags &= -33)); - var before$175 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$175, parent$174); + var before$176 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$176, parent$175); break; case 3: case 4: - var parent$176 = JSCompiler_inline_result.stateNode.containerInfo, - before$177 = getHostSibling(finishedWork); + var parent$177 = JSCompiler_inline_result.stateNode.containerInfo, + before$178 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$177, - parent$176 + before$178, + parent$177 ); break; default: @@ -9977,7 +9994,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$196 = parentFiber.alternate, + var current$197 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10005,16 +10022,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$196 = finishedWork.updateQueue; - if (null !== current$196) { - var hiddenCallbacks = current$196.shared.hiddenCallbacks; + current$197 = finishedWork.updateQueue; + if (null !== current$197) { + var hiddenCallbacks = current$197.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$196.shared.hiddenCallbacks = null, current$196 = 0; - current$196 < hiddenCallbacks.length; - current$196++ + current$197.shared.hiddenCallbacks = null, current$197 = 0; + current$197 < hiddenCallbacks.length; + current$197++ ) - callCallback(hiddenCallbacks[current$196], finishedRoot); + callCallback(hiddenCallbacks[current$197], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10030,7 +10047,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$196 && + null === current$197 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10377,9 +10394,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$203 = finishedWork.stateNode; + var instance$204 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$203._visibility & 4 + ? instance$204._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10392,7 +10409,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$203._visibility |= 4), + : ((instance$204._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10400,7 +10417,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$203._visibility |= 4), + : ((instance$204._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10413,7 +10430,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$203 + instance$204 ); break; case 24: @@ -10899,7 +10916,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { disableLegacyMode || 0 !== (fiber.mode & 1) || ((workInProgressRootRenderTargetTime = now() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -11214,12 +11231,12 @@ function batchedUpdates$1(fn, a) { (executionContext = prevExecutionContext), 0 === executionContext && ((workInProgressRootRenderTargetTime = now() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function flushSyncWork$1() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -11380,8 +11397,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$214) { - handleThrow(root, thrownValue$214); + } catch (thrownValue$215) { + handleThrow(root, thrownValue$215); } while (1); lanes && root.shellSuspendCounter++; @@ -11490,8 +11507,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$216) { - handleThrow(root, thrownValue$216); + } catch (thrownValue$217) { + handleThrow(root, thrownValue$217); } while (1); resetContextDependencies(); @@ -11716,12 +11733,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$222 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$223 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$222 && + shouldFireAfterActiveInstanceBlur$223 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11765,7 +11782,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; null !== prevRootTransitionCallbacks && @@ -11793,7 +11810,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$223 = rootWithPendingPassiveEffects, + var root$224 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11808,7 +11825,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$223, remainingLanes); + releaseRootPooledCache(root$224, remainingLanes); } } return !1; @@ -11827,7 +11844,7 @@ function flushPassiveEffectsImpl() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -13123,19 +13140,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$388; + var JSCompiler_inline_result$jscomp$390; if (canUseDOM) { - var isSupported$jscomp$inline_1539 = "oninput" in document; - if (!isSupported$jscomp$inline_1539) { - var element$jscomp$inline_1540 = document.createElement("div"); - element$jscomp$inline_1540.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1539 = - "function" === typeof element$jscomp$inline_1540.oninput; + var isSupported$jscomp$inline_1541 = "oninput" in document; + if (!isSupported$jscomp$inline_1541) { + var element$jscomp$inline_1542 = document.createElement("div"); + element$jscomp$inline_1542.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1541 = + "function" === typeof element$jscomp$inline_1542.oninput; } - JSCompiler_inline_result$jscomp$388 = isSupported$jscomp$inline_1539; - } else JSCompiler_inline_result$jscomp$388 = !1; + JSCompiler_inline_result$jscomp$390 = isSupported$jscomp$inline_1541; + } else JSCompiler_inline_result$jscomp$390 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$388 && + JSCompiler_inline_result$jscomp$390 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13546,20 +13563,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1580 = 0; - i$jscomp$inline_1580 < simpleEventPluginEvents.length; - i$jscomp$inline_1580++ + var i$jscomp$inline_1582 = 0; + i$jscomp$inline_1582 < simpleEventPluginEvents.length; + i$jscomp$inline_1582++ ) { - var eventName$jscomp$inline_1581 = - simpleEventPluginEvents[i$jscomp$inline_1580], - domEventName$jscomp$inline_1582 = - eventName$jscomp$inline_1581.toLowerCase(), - capitalizedEvent$jscomp$inline_1583 = - eventName$jscomp$inline_1581[0].toUpperCase() + - eventName$jscomp$inline_1581.slice(1); + var eventName$jscomp$inline_1583 = + simpleEventPluginEvents[i$jscomp$inline_1582], + domEventName$jscomp$inline_1584 = + eventName$jscomp$inline_1583.toLowerCase(), + capitalizedEvent$jscomp$inline_1585 = + eventName$jscomp$inline_1583[0].toUpperCase() + + eventName$jscomp$inline_1583.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1582, - "on" + capitalizedEvent$jscomp$inline_1583 + domEventName$jscomp$inline_1584, + "on" + capitalizedEvent$jscomp$inline_1585 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14852,34 +14869,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$242 = props[hasSrc]; - if (null != propValue$242) + var propValue$243 = props[hasSrc]; + if (null != propValue$243) switch (hasSrc) { case "name": - hasSrcSet = propValue$242; + hasSrcSet = propValue$243; break; case "type": - propValue = propValue$242; + propValue = propValue$243; break; case "checked": - checked = propValue$242; + checked = propValue$243; break; case "defaultChecked": - defaultChecked = propValue$242; + defaultChecked = propValue$243; break; case "value": - propKey = propValue$242; + propKey = propValue$243; break; case "defaultValue": - defaultValue = propValue$242; + defaultValue = propValue$243; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$242) + if (null != propValue$243) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$242, props, null); + setProp(domElement, tag, hasSrc, propValue$243, props, null); } } initInput( @@ -15016,14 +15033,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$242 in props) - props.hasOwnProperty(propValue$242) && - ((hasSrc = props[propValue$242]), + for (propValue$243 in props) + props.hasOwnProperty(propValue$243) && + ((hasSrc = props[propValue$243]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$242, + propValue$243, hasSrc, props, void 0 @@ -15071,14 +15088,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$259 in nextProps) { - var propKey = nextProps[propKey$259]; - lastProp = lastProps[propKey$259]; + for (var propKey$260 in nextProps) { + var propKey = nextProps[propKey$260]; + lastProp = lastProps[propKey$260]; if ( - nextProps.hasOwnProperty(propKey$259) && + nextProps.hasOwnProperty(propKey$260) && (null != propKey || null != lastProp) ) - switch (propKey$259) { + switch (propKey$260) { case "type": type = propKey; break; @@ -15107,7 +15124,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$259, + propKey$260, propKey, nextProps, lastProp @@ -15126,7 +15143,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$259 = null; + propKey = value = defaultValue = propKey$260 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15157,7 +15174,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$259 = type; + propKey$260 = type; break; case "defaultValue": defaultValue = type; @@ -15178,15 +15195,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$259 - ? updateOptions(domElement, !!lastProps, propKey$259, !1) + null != propKey$260 + ? updateOptions(domElement, !!lastProps, propKey$260, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$259 = null; + propKey = propKey$260 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15210,7 +15227,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$259 = name; + propKey$260 = name; break; case "defaultValue": propKey = name; @@ -15224,17 +15241,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$259, propKey); + updateTextarea(domElement, propKey$260, propKey); return; case "option": - for (var propKey$275 in lastProps) + for (var propKey$276 in lastProps) if ( - ((propKey$259 = lastProps[propKey$275]), - lastProps.hasOwnProperty(propKey$275) && - null != propKey$259 && - !nextProps.hasOwnProperty(propKey$275)) + ((propKey$260 = lastProps[propKey$276]), + lastProps.hasOwnProperty(propKey$276) && + null != propKey$260 && + !nextProps.hasOwnProperty(propKey$276)) ) - switch (propKey$275) { + switch (propKey$276) { case "selected": domElement.selected = !1; break; @@ -15242,33 +15259,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$275, + propKey$276, null, nextProps, - propKey$259 + propKey$260 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$259 = nextProps[lastDefaultValue]), + ((propKey$260 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$259 !== propKey && - (null != propKey$259 || null != propKey)) + propKey$260 !== propKey && + (null != propKey$260 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$259 && - "function" !== typeof propKey$259 && - "symbol" !== typeof propKey$259; + propKey$260 && + "function" !== typeof propKey$260 && + "symbol" !== typeof propKey$260; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$259, + propKey$260, nextProps, propKey ); @@ -15289,24 +15306,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$280 in lastProps) - (propKey$259 = lastProps[propKey$280]), - lastProps.hasOwnProperty(propKey$280) && - null != propKey$259 && - !nextProps.hasOwnProperty(propKey$280) && - setProp(domElement, tag, propKey$280, null, nextProps, propKey$259); + for (var propKey$281 in lastProps) + (propKey$260 = lastProps[propKey$281]), + lastProps.hasOwnProperty(propKey$281) && + null != propKey$260 && + !nextProps.hasOwnProperty(propKey$281) && + setProp(domElement, tag, propKey$281, null, nextProps, propKey$260); for (checked in nextProps) if ( - ((propKey$259 = nextProps[checked]), + ((propKey$260 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$259 !== propKey && - (null != propKey$259 || null != propKey)) + propKey$260 !== propKey && + (null != propKey$260 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$259) + if (null != propKey$260) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15314,7 +15331,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$259, + propKey$260, nextProps, propKey ); @@ -15322,49 +15339,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$285 in lastProps) - (propKey$259 = lastProps[propKey$285]), - lastProps.hasOwnProperty(propKey$285) && - void 0 !== propKey$259 && - !nextProps.hasOwnProperty(propKey$285) && + for (var propKey$286 in lastProps) + (propKey$260 = lastProps[propKey$286]), + lastProps.hasOwnProperty(propKey$286) && + void 0 !== propKey$260 && + !nextProps.hasOwnProperty(propKey$286) && setPropOnCustomElement( domElement, tag, - propKey$285, + propKey$286, void 0, nextProps, - propKey$259 + propKey$260 ); for (defaultChecked in nextProps) - (propKey$259 = nextProps[defaultChecked]), + (propKey$260 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$259 === propKey || - (void 0 === propKey$259 && void 0 === propKey) || + propKey$260 === propKey || + (void 0 === propKey$260 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$259, + propKey$260, nextProps, propKey ); return; } } - for (var propKey$290 in lastProps) - (propKey$259 = lastProps[propKey$290]), - lastProps.hasOwnProperty(propKey$290) && - null != propKey$259 && - !nextProps.hasOwnProperty(propKey$290) && - setProp(domElement, tag, propKey$290, null, nextProps, propKey$259); + for (var propKey$291 in lastProps) + (propKey$260 = lastProps[propKey$291]), + lastProps.hasOwnProperty(propKey$291) && + null != propKey$260 && + !nextProps.hasOwnProperty(propKey$291) && + setProp(domElement, tag, propKey$291, null, nextProps, propKey$260); for (lastProp in nextProps) - (propKey$259 = nextProps[lastProp]), + (propKey$260 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$259 === propKey || - (null == propKey$259 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$259, nextProps, propKey); + propKey$260 === propKey || + (null == propKey$260 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$260, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15959,26 +15976,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$298 = getResourcesFromRoot( + var styles$299 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$299 = styles$298.get(type); - resource$299 || + resource$300 = styles$299.get(type); + resource$300 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$299 = { + (resource$300 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$298.set(type, resource$299), - (styles$298 = JSCompiler_inline_result.querySelector( + styles$299.set(type, resource$300), + (styles$299 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$298._p && - ((resource$299.instance = styles$298), - (resource$299.state.loading = 5)), + !styles$299._p && + ((resource$300.instance = styles$299), + (resource$300.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15991,16 +16008,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$298 || + styles$299 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$299.state + resource$300.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$299; + return resource$300; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16097,37 +16114,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$304 = hoistableRoot.querySelector( + var instance$305 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$304) + if (instance$305) return ( (resource.state.loading |= 4), - (resource.instance = instance$304), - markNodeAsHoistable(instance$304), - instance$304 + (resource.instance = instance$305), + markNodeAsHoistable(instance$305), + instance$305 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$304 = ( + instance$305 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$304); - var linkInstance = instance$304; + markNodeAsHoistable(instance$305); + var linkInstance = instance$305; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$304, "link", instance); + setInitialProperties(instance$305, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$304, props.precedence, hoistableRoot); - return (resource.instance = instance$304); + insertStylesheet(instance$305, props.precedence, hoistableRoot); + return (resource.instance = instance$305); case "script": - instance$304 = getScriptKey(props.src); + instance$305 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$304) + getScriptSelectorFromKey(instance$305) )) ) return ( @@ -16136,7 +16153,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$304))) + if ((styleProps = preloadPropsMap.get(instance$305))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16948,7 +16965,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -17168,16 +17185,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1753 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version; if ( - "19.0.0-www-classic-1d989965-20240821" !== - isomorphicReactPackageVersion$jscomp$inline_1753 + "19.0.0-www-classic-ee7f6757-20240823" !== + isomorphicReactPackageVersion$jscomp$inline_1755 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1753, - "19.0.0-www-classic-1d989965-20240821" + isomorphicReactPackageVersion$jscomp$inline_1755, + "19.0.0-www-classic-ee7f6757-20240823" ) ); function flushSyncFromReconciler(fn) { @@ -17200,7 +17217,7 @@ function flushSyncFromReconciler(fn) { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), - 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); + 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(0, !1); } JSCompiler_inline_result = void 0; } @@ -17220,25 +17237,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2208 = { +var internals$jscomp$inline_2219 = { bundleType: 0, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2209 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2220 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2209.isDisabled && - hook$jscomp$inline_2209.supportsFiber + !hook$jscomp$inline_2220.isDisabled && + hook$jscomp$inline_2220.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2209.inject( - internals$jscomp$inline_2208 + (rendererID = hook$jscomp$inline_2220.inject( + internals$jscomp$inline_2219 )), - (injectedHook = hook$jscomp$inline_2209); + (injectedHook = hook$jscomp$inline_2220); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17312,11 +17329,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$325); + var instance = getPublicRootInstance(root$326); originalCallback.call(instance); }; } - var root$325 = createHydrationContainer( + var root$326 = createHydrationContainer( initialChildren, callback, container, @@ -17331,23 +17348,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$325; - container[internalContainerInstanceKey] = root$325.current; + container._reactRootContainer = root$326; + container[internalContainerInstanceKey] = root$326.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSyncWork$1(); - return root$325; + return root$326; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$326 = callback; + var originalCallback$327 = callback; callback = function () { - var instance = getPublicRootInstance(root$327); - originalCallback$326.call(instance); + var instance = getPublicRootInstance(root$328); + originalCallback$327.call(instance); }; } - var root$327 = createFiberRoot( + var root$328 = createFiberRoot( container, 0, !1, @@ -17361,14 +17378,14 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$327; - container[internalContainerInstanceKey] = root$327.current; + container._reactRootContainer = root$328; + container[internalContainerInstanceKey] = root$328.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - updateContainerSync(initialChildren, root$327, parentComponent, callback); + updateContainerSync(initialChildren, root$328, parentComponent, callback); flushSyncWork$1(); - return root$327; + return root$328; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -17682,4 +17699,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 1dda330b42..c7ff2b1576 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -1764,24 +1764,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$28 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$28 = getNextLanes( - root$26, - root$26 === workInProgressRoot - ? workInProgressRootRenderLanes$28 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$28 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, workInProgressRootRenderLanes$28)); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$26.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$26.suspendedLanes, + pingedLanes = root$26.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$26, + root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); root$26 = root$26.next; } } while (didPerformSomeWork); @@ -1790,30 +1808,29 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -2084,20 +2101,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$30 = workInProgress$jscomp$0.alternate; - null !== current$30 && - ((current$30 = current$30.updateQueue), - (pendingQueue = current$30.lastBaseUpdate), + var current$31 = workInProgress$jscomp$0.alternate; + null !== current$31 && + ((current$31 = current$31.updateQueue), + (pendingQueue = current$31.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$30.firstBaseUpdate = firstPendingUpdate) + ? (current$31.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$30.lastBaseUpdate = lastPendingUpdate))); + (current$31.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$30 = firstPendingUpdate = lastPendingUpdate = null; + current$31 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2110,8 +2127,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$30 && - (current$30 = current$30.next = + null !== current$31 && + (current$31 = current$31.next = { lane: 0, tag: pendingQueue.tag, @@ -2164,10 +2181,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$30 - ? ((firstPendingUpdate = current$30 = isHiddenUpdate), + null === current$31 + ? ((firstPendingUpdate = current$31 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$30 = current$30.next = isHiddenUpdate), + : (current$31 = current$31.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2180,10 +2197,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$30 && (lastPendingUpdate = newState); + null === current$31 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$30; + queue.lastBaseUpdate = current$31; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3054,9 +3071,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$65 = fiber.alternate; - null !== current$65 && - null !== current$65.memoizedState && + var current$66 = fiber.alternate; + null !== current$66 && + null !== current$66.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3326,16 +3343,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$67 = currentlyRenderingFiber$1.alternate; - null !== current$67 && - ((current$67 = current$67.updateQueue), - null !== current$67 && - ((current$67 = current$67.memoCache), - null != current$67 && + var current$68 = currentlyRenderingFiber$1.alternate; + null !== current$68 && + ((current$68 = current$68.updateQueue), + null !== current$68 && + ((current$68 = current$68.memoCache), + null != current$68 && (memoCache = { data: enableNoCloningMemoCache - ? current$67.data - : current$67.data.map(function (array) { + ? current$68.data + : current$68.data.map(function (array) { return array.slice(); }), index: 0 @@ -3350,11 +3367,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$67 = 0; - current$67 < size; - current$67++ + current$68 = 0; + current$68 < size; + current$68++ ) - updateQueue[current$67] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3387,7 +3404,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$68 = !1; + didReadFromEntangledAsyncAction$69 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3408,11 +3425,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); continue; } else (updateLane = { @@ -3458,7 +3475,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$68 && + didReadFromEntangledAsyncAction$69 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3656,8 +3673,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$74) { - onActionError(actionQueue, node, error$74); + } catch (error$75) { + onActionError(actionQueue, node, error$75); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4106,14 +4123,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$77 = enqueueUpdate(provider, fiber, lane); - null !== root$77 && - (scheduleUpdateOnFiber(root$77, provider, lane), - entangleTransitions(root$77, provider, lane)); + var root$78 = enqueueUpdate(provider, fiber, lane); + null !== root$78 && + (scheduleUpdateOnFiber(root$78, provider, lane), + entangleTransitions(root$78, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$77 && + null !== root$78 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4650,9 +4667,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$81 in Component) - void 0 === newProps[propName$81] && - (newProps[propName$81] = Component[propName$81]); + for (var propName$82 in Component) + void 0 === newProps[propName$82] && + (newProps[propName$82] = Component[propName$82]); } return newProps; } @@ -5028,10 +5045,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$94 = workInProgress.stateNode; + root$95 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$94.incompleteTransitions.has(transition)) { + if (!root$95.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5039,11 +5056,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$94.incompleteTransitions.set(transition, markerInstance); + root$95.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$94.incompleteTransitions.forEach(function (markerInstance) { + root$95.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7321,14 +7338,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$129 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$129 = lastTailNode), + for (var lastTailNode$130 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$130 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$129 + null === lastTailNode$130 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$129.sibling = null); + : (lastTailNode$130.sibling = null); } } function bubbleProperties(completedWork) { @@ -7338,19 +7355,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$130 = completedWork.child; null !== child$130; ) - (newChildLanes |= child$130.lanes | child$130.childLanes), - (subtreeFlags |= child$130.subtreeFlags & 31457280), - (subtreeFlags |= child$130.flags & 31457280), - (child$130.return = completedWork), - (child$130 = child$130.sibling); + for (var child$131 = completedWork.child; null !== child$131; ) + (newChildLanes |= child$131.lanes | child$131.childLanes), + (subtreeFlags |= child$131.subtreeFlags & 31457280), + (subtreeFlags |= child$131.flags & 31457280), + (child$131.return = completedWork), + (child$131 = child$131.sibling); else - for (child$130 = completedWork.child; null !== child$130; ) - (newChildLanes |= child$130.lanes | child$130.childLanes), - (subtreeFlags |= child$130.subtreeFlags), - (subtreeFlags |= child$130.flags), - (child$130.return = completedWork), - (child$130 = child$130.sibling); + for (child$131 = completedWork.child; null !== child$131; ) + (newChildLanes |= child$131.lanes | child$131.childLanes), + (subtreeFlags |= child$131.subtreeFlags), + (subtreeFlags |= child$131.flags), + (child$131.return = completedWork), + (child$131 = child$131.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7639,11 +7656,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$142 = null; + var cache$143 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$142 = newProps.memoizedState.cachePool.pool); - cache$142 !== type && (newProps.flags |= 2048); + (cache$143 = newProps.memoizedState.cachePool.pool); + cache$143 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7677,8 +7694,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$142 = type.rendering; - if (null === cache$142) + cache$143 = type.rendering; + if (null === cache$143) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -7686,11 +7703,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$142 = findFirstSuspended(current); - if (null !== cache$142) { + cache$143 = findFirstSuspended(current); + if (null !== cache$143) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$142.updateQueue; + current = cache$143.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7715,7 +7732,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$142)), null !== current)) { + if (((current = findFirstSuspended(cache$143)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -7725,7 +7742,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$142.alternate && + !cache$143.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7738,13 +7755,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$142.sibling = workInProgress.child), - (workInProgress.child = cache$142)) + ? ((cache$143.sibling = workInProgress.child), + (workInProgress.child = cache$143)) : ((current = type.last), null !== current - ? (current.sibling = cache$142) - : (workInProgress.child = cache$142), - (type.last = cache$142)); + ? (current.sibling = cache$143) + : (workInProgress.child = cache$143), + (type.last = cache$143)); } if (null !== type.tail) return ( @@ -8018,8 +8035,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$159) { - captureCommitPhaseError(current, nearestMountedAncestor, error$159); + } catch (error$160) { + captureCommitPhaseError(current, nearestMountedAncestor, error$160); } else ref.current = null; } @@ -8056,7 +8073,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$219) { + } catch (e$220) { JSCompiler_temp = null; break a; } @@ -8339,11 +8356,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$161) { + } catch (error$162) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$161 + error$162 ); } } @@ -8879,19 +8896,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$173 = finishedWork.alternate; + var current$174 = finishedWork.alternate; if ( - null !== current$173 && - ((current$173 = current$173.memoizedState), - null !== current$173 && - ((current$173 = current$173.dehydrated), null !== current$173)) + null !== current$174 && + ((current$174 = current$174.memoizedState), + null !== current$174 && + ((current$174 = current$174.dehydrated), null !== current$174)) ) try { - retryIfBlockedOn(current$173); + retryIfBlockedOn(current$174); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$173); + onHydrated && onHydrated(current$174); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9009,8 +9026,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$175) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$175); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } } break; @@ -9183,11 +9200,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$176) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$177 ); } break; @@ -9224,8 +9241,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$177) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$177); + } catch (error$178) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$178); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9235,8 +9252,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$180) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$180); } } flags & 1024 && (needsFormReset = !0); @@ -9251,8 +9268,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } break; @@ -9266,8 +9283,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$181) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$181); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9299,8 +9316,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$183) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$183); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } flags = finishedWork.updateQueue; null !== flags && @@ -9375,11 +9392,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$164) { + } catch (error$165) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$164 + error$165 ); } } else if ( @@ -9454,21 +9471,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$165 = JSCompiler_inline_result.stateNode; + var parent$166 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$165, ""), + (setTextContent(parent$166, ""), (JSCompiler_inline_result.flags &= -33)); - var before$166 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$166, parent$165); + var before$167 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$167, parent$166); break; case 3: case 4: - var parent$167 = JSCompiler_inline_result.stateNode.containerInfo, - before$168 = getHostSibling(finishedWork); + var parent$168 = JSCompiler_inline_result.stateNode.containerInfo, + before$169 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$168, - parent$167 + before$169, + parent$168 ); break; default: @@ -9544,7 +9561,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$187 = parentFiber.alternate, + var current$188 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -9572,16 +9589,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$187 = finishedWork.updateQueue; - if (null !== current$187) { - var hiddenCallbacks = current$187.shared.hiddenCallbacks; + current$188 = finishedWork.updateQueue; + if (null !== current$188) { + var hiddenCallbacks = current$188.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$187.shared.hiddenCallbacks = null, current$187 = 0; - current$187 < hiddenCallbacks.length; - current$187++ + current$188.shared.hiddenCallbacks = null, current$188 = 0; + current$188 < hiddenCallbacks.length; + current$188++ ) - callCallback(hiddenCallbacks[current$187], finishedRoot); + callCallback(hiddenCallbacks[current$188], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -9597,7 +9614,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$187 && + null === current$188 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -9933,9 +9950,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$194 = finishedWork.stateNode; + var instance$195 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$194._visibility & 4 + ? instance$195._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9947,7 +9964,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$194._visibility |= 4), + : ((instance$195._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9960,7 +9977,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$194 + instance$195 ); break; case 24: @@ -10744,7 +10761,7 @@ function performSyncWorkOnRoot(root, lanes) { } function flushSyncWork$1() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -10905,8 +10922,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$205) { - handleThrow(root, thrownValue$205); + } catch (thrownValue$206) { + handleThrow(root, thrownValue$206); } while (1); lanes && root.shellSuspendCounter++; @@ -11015,8 +11032,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$207) { - handleThrow(root, thrownValue$207); + } catch (thrownValue$208) { + handleThrow(root, thrownValue$208); } while (1); resetContextDependencies(); @@ -11237,12 +11254,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$213 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$214 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$213 && + shouldFireAfterActiveInstanceBlur$214 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11284,7 +11301,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; null !== prevRootTransitionCallbacks && @@ -11312,7 +11329,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$214 = rootWithPendingPassiveEffects, + var root$215 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11327,7 +11344,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$214, remainingLanes); + releaseRootPooledCache(root$215, remainingLanes); } } return !1; @@ -11346,7 +11363,7 @@ function flushPassiveEffectsImpl() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -12548,19 +12565,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$375; + var JSCompiler_inline_result$jscomp$377; if (canUseDOM) { - var isSupported$jscomp$inline_1510 = "oninput" in document; - if (!isSupported$jscomp$inline_1510) { - var element$jscomp$inline_1511 = document.createElement("div"); - element$jscomp$inline_1511.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1510 = - "function" === typeof element$jscomp$inline_1511.oninput; + 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; } - JSCompiler_inline_result$jscomp$375 = isSupported$jscomp$inline_1510; - } else JSCompiler_inline_result$jscomp$375 = !1; + JSCompiler_inline_result$jscomp$377 = isSupported$jscomp$inline_1512; + } else JSCompiler_inline_result$jscomp$377 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$375 && + JSCompiler_inline_result$jscomp$377 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -12971,20 +12988,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1551 = 0; - i$jscomp$inline_1551 < simpleEventPluginEvents.length; - i$jscomp$inline_1551++ + var i$jscomp$inline_1553 = 0; + i$jscomp$inline_1553 < simpleEventPluginEvents.length; + i$jscomp$inline_1553++ ) { - var eventName$jscomp$inline_1552 = - simpleEventPluginEvents[i$jscomp$inline_1551], - domEventName$jscomp$inline_1553 = - eventName$jscomp$inline_1552.toLowerCase(), - capitalizedEvent$jscomp$inline_1554 = - eventName$jscomp$inline_1552[0].toUpperCase() + - eventName$jscomp$inline_1552.slice(1); + 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); registerSimpleEvent( - domEventName$jscomp$inline_1553, - "on" + capitalizedEvent$jscomp$inline_1554 + domEventName$jscomp$inline_1555, + "on" + capitalizedEvent$jscomp$inline_1556 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14273,34 +14290,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$233 = props[hasSrc]; - if (null != propValue$233) + var propValue$234 = props[hasSrc]; + if (null != propValue$234) switch (hasSrc) { case "name": - hasSrcSet = propValue$233; + hasSrcSet = propValue$234; break; case "type": - propKey = propValue$233; + propKey = propValue$234; break; case "checked": - checked = propValue$233; + checked = propValue$234; break; case "defaultChecked": - defaultChecked = propValue$233; + defaultChecked = propValue$234; break; case "value": - propValue = propValue$233; + propValue = propValue$234; break; case "defaultValue": - defaultValue = propValue$233; + defaultValue = propValue$234; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$233) + if (null != propValue$234) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$233, props, null); + setProp(domElement, tag, hasSrc, propValue$234, props, null); } } initInput( @@ -14436,14 +14453,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$233 in props) - props.hasOwnProperty(propValue$233) && - ((hasSrc = props[propValue$233]), + for (propValue$234 in props) + props.hasOwnProperty(propValue$234) && + ((hasSrc = props[propValue$234]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$233, + propValue$234, hasSrc, props, void 0 @@ -14491,14 +14508,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$250 in nextProps) { - var propKey = nextProps[propKey$250]; - lastProp = lastProps[propKey$250]; + for (var propKey$251 in nextProps) { + var propKey = nextProps[propKey$251]; + lastProp = lastProps[propKey$251]; if ( - nextProps.hasOwnProperty(propKey$250) && + nextProps.hasOwnProperty(propKey$251) && (null != propKey || null != lastProp) ) - switch (propKey$250) { + switch (propKey$251) { case "type": type = propKey; break; @@ -14527,7 +14544,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$250, + propKey$251, propKey, nextProps, lastProp @@ -14546,7 +14563,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$250 = null; + propKey = value = defaultValue = propKey$251 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14577,7 +14594,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$250 = type; + propKey$251 = type; break; case "defaultValue": defaultValue = type; @@ -14598,15 +14615,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$250 - ? updateOptions(domElement, !!lastProps, propKey$250, !1) + null != propKey$251 + ? updateOptions(domElement, !!lastProps, propKey$251, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$250 = null; + propKey = propKey$251 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14630,7 +14647,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$250 = name; + propKey$251 = name; break; case "defaultValue": propKey = name; @@ -14644,17 +14661,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$250, propKey); + updateTextarea(domElement, propKey$251, propKey); return; case "option": - for (var propKey$266 in lastProps) + for (var propKey$267 in lastProps) if ( - ((propKey$250 = lastProps[propKey$266]), - lastProps.hasOwnProperty(propKey$266) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$266)) + ((propKey$251 = lastProps[propKey$267]), + lastProps.hasOwnProperty(propKey$267) && + null != propKey$251 && + !nextProps.hasOwnProperty(propKey$267)) ) - switch (propKey$266) { + switch (propKey$267) { case "selected": domElement.selected = !1; break; @@ -14662,33 +14679,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$266, + propKey$267, null, nextProps, - propKey$250 + propKey$251 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$250 = nextProps[lastDefaultValue]), + ((propKey$251 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$250 !== propKey && - (null != propKey$250 || null != propKey)) + propKey$251 !== propKey && + (null != propKey$251 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$250 && - "function" !== typeof propKey$250 && - "symbol" !== typeof propKey$250; + propKey$251 && + "function" !== typeof propKey$251 && + "symbol" !== typeof propKey$251; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$250, + propKey$251, nextProps, propKey ); @@ -14709,24 +14726,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$271 in lastProps) - (propKey$250 = lastProps[propKey$271]), - lastProps.hasOwnProperty(propKey$271) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$271) && - setProp(domElement, tag, propKey$271, null, nextProps, propKey$250); + for (var propKey$272 in lastProps) + (propKey$251 = lastProps[propKey$272]), + lastProps.hasOwnProperty(propKey$272) && + null != propKey$251 && + !nextProps.hasOwnProperty(propKey$272) && + setProp(domElement, tag, propKey$272, null, nextProps, propKey$251); for (checked in nextProps) if ( - ((propKey$250 = nextProps[checked]), + ((propKey$251 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$250 !== propKey && - (null != propKey$250 || null != propKey)) + propKey$251 !== propKey && + (null != propKey$251 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$250) + if (null != propKey$251) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14734,7 +14751,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$250, + propKey$251, nextProps, propKey ); @@ -14742,49 +14759,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$276 in lastProps) - (propKey$250 = lastProps[propKey$276]), - lastProps.hasOwnProperty(propKey$276) && - void 0 !== propKey$250 && - !nextProps.hasOwnProperty(propKey$276) && + for (var propKey$277 in lastProps) + (propKey$251 = lastProps[propKey$277]), + lastProps.hasOwnProperty(propKey$277) && + void 0 !== propKey$251 && + !nextProps.hasOwnProperty(propKey$277) && setPropOnCustomElement( domElement, tag, - propKey$276, + propKey$277, void 0, nextProps, - propKey$250 + propKey$251 ); for (defaultChecked in nextProps) - (propKey$250 = nextProps[defaultChecked]), + (propKey$251 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$250 === propKey || - (void 0 === propKey$250 && void 0 === propKey) || + propKey$251 === propKey || + (void 0 === propKey$251 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$250, + propKey$251, nextProps, propKey ); return; } } - for (var propKey$281 in lastProps) - (propKey$250 = lastProps[propKey$281]), - lastProps.hasOwnProperty(propKey$281) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$281) && - setProp(domElement, tag, propKey$281, null, nextProps, propKey$250); + for (var propKey$282 in lastProps) + (propKey$251 = lastProps[propKey$282]), + lastProps.hasOwnProperty(propKey$282) && + null != propKey$251 && + !nextProps.hasOwnProperty(propKey$282) && + setProp(domElement, tag, propKey$282, null, nextProps, propKey$251); for (lastProp in nextProps) - (propKey$250 = nextProps[lastProp]), + (propKey$251 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$250 === propKey || - (null == propKey$250 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$250, nextProps, propKey); + propKey$251 === propKey || + (null == propKey$251 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$251, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15362,26 +15379,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$289 = getResourcesFromRoot( + var styles$290 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$290 = styles$289.get(type); - resource$290 || + resource$291 = styles$290.get(type); + resource$291 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$290 = { + (resource$291 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$289.set(type, resource$290), - (styles$289 = JSCompiler_inline_result.querySelector( + styles$290.set(type, resource$291), + (styles$290 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$289._p && - ((resource$290.instance = styles$289), - (resource$290.state.loading = 5)), + !styles$290._p && + ((resource$291.instance = styles$290), + (resource$291.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15394,16 +15411,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$289 || + styles$290 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$290.state + resource$291.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$290; + return resource$291; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15500,37 +15517,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$295 = hoistableRoot.querySelector( + var instance$296 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$295) + if (instance$296) return ( (resource.state.loading |= 4), - (resource.instance = instance$295), - markNodeAsHoistable(instance$295), - instance$295 + (resource.instance = instance$296), + markNodeAsHoistable(instance$296), + instance$296 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$295 = ( + instance$296 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$295); - var linkInstance = instance$295; + markNodeAsHoistable(instance$296); + var linkInstance = instance$296; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$295, "link", instance); + setInitialProperties(instance$296, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$295, props.precedence, hoistableRoot); - return (resource.instance = instance$295); + insertStylesheet(instance$296, props.precedence, hoistableRoot); + return (resource.instance = instance$296); case "script": - instance$295 = getScriptKey(props.src); + instance$296 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$295) + getScriptSelectorFromKey(instance$296) )) ) return ( @@ -15539,7 +15556,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$295))) + if ((styleProps = preloadPropsMap.get(instance$296))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16351,7 +16368,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -16542,16 +16559,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1724 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1726 = React.version; if ( - "19.0.0-www-modern-1d989965-20240821" !== - isomorphicReactPackageVersion$jscomp$inline_1724 + "19.0.0-www-modern-ee7f6757-20240823" !== + isomorphicReactPackageVersion$jscomp$inline_1726 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1724, - "19.0.0-www-modern-1d989965-20240821" + isomorphicReactPackageVersion$jscomp$inline_1726, + "19.0.0-www-modern-ee7f6757-20240823" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16567,25 +16584,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2199 = { +var internals$jscomp$inline_2210 = { bundleType: 0, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2200 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2211 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2200.isDisabled && - hook$jscomp$inline_2200.supportsFiber + !hook$jscomp$inline_2211.isDisabled && + hook$jscomp$inline_2211.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2200.inject( - internals$jscomp$inline_2199 + (rendererID = hook$jscomp$inline_2211.inject( + internals$jscomp$inline_2210 )), - (injectedHook = hook$jscomp$inline_2200); + (injectedHook = hook$jscomp$inline_2211); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -16936,4 +16953,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 85299864e2..75c4f7ed6b 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -2046,24 +2046,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now$1()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$28 = firstScheduledRoot; null !== root$28; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root$28.tag)) { - var workInProgressRootRenderLanes$30 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$30 = getNextLanes( - root$28, - root$28 === workInProgressRoot - ? workInProgressRootRenderLanes$30 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$30 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$28, workInProgressRootRenderLanes$30)); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root$28.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$28.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$28.suspendedLanes, + pingedLanes = root$28.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$28, + root$28 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); root$28 = root$28.next; } } while (didPerformSomeWork); @@ -2072,30 +2090,29 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -2366,20 +2383,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$32 = workInProgress$jscomp$0.alternate; - null !== current$32 && - ((current$32 = current$32.updateQueue), - (pendingQueue = current$32.lastBaseUpdate), + var current$33 = workInProgress$jscomp$0.alternate; + null !== current$33 && + ((current$33 = current$33.updateQueue), + (pendingQueue = current$33.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$32.firstBaseUpdate = firstPendingUpdate) + ? (current$33.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$32.lastBaseUpdate = lastPendingUpdate))); + (current$33.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$32 = firstPendingUpdate = lastPendingUpdate = null; + current$33 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2392,8 +2409,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$32 && - (current$32 = current$32.next = + null !== current$33 && + (current$33 = current$33.next = { lane: 0, tag: pendingQueue.tag, @@ -2446,10 +2463,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$32 - ? ((firstPendingUpdate = current$32 = isHiddenUpdate), + null === current$33 + ? ((firstPendingUpdate = current$33 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$32 = current$32.next = isHiddenUpdate), + : (current$33 = current$33.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2462,10 +2479,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$32 && (lastPendingUpdate = newState); + null === current$33 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$32; + queue.lastBaseUpdate = current$33; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3344,9 +3361,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$67 = fiber.alternate; - null !== current$67 && - null !== current$67.memoizedState && + var current$68 = fiber.alternate; + null !== current$68 && + null !== current$68.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3616,16 +3633,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$69 = currentlyRenderingFiber$1.alternate; - null !== current$69 && - ((current$69 = current$69.updateQueue), - null !== current$69 && - ((current$69 = current$69.memoCache), - null != current$69 && + var current$70 = currentlyRenderingFiber$1.alternate; + null !== current$70 && + ((current$70 = current$70.updateQueue), + null !== current$70 && + ((current$70 = current$70.memoCache), + null != current$70 && (memoCache = { data: enableNoCloningMemoCache - ? current$69.data - : current$69.data.map(function (array) { + ? current$70.data + : current$70.data.map(function (array) { return array.slice(); }), index: 0 @@ -3640,11 +3657,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$69 = 0; - current$69 < size; - current$69++ + current$70 = 0; + current$70 < size; + current$70++ ) - updateQueue[current$69] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$70] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3677,7 +3694,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$70 = !1; + didReadFromEntangledAsyncAction$71 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3698,11 +3715,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$70 = !0); + (didReadFromEntangledAsyncAction$71 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$70 = !0); + (didReadFromEntangledAsyncAction$71 = !0); continue; } else (updateLane = { @@ -3748,7 +3765,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$70 && + didReadFromEntangledAsyncAction$71 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3946,8 +3963,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$76) { - onActionError(actionQueue, node, error$76); + } catch (error$77) { + onActionError(actionQueue, node, error$77); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4396,14 +4413,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$79 = enqueueUpdate(provider, fiber, lane); - null !== root$79 && - (scheduleUpdateOnFiber(root$79, provider, lane), - entangleTransitions(root$79, provider, lane)); + var root$80 = enqueueUpdate(provider, fiber, lane); + null !== root$80 && + (scheduleUpdateOnFiber(root$80, provider, lane), + entangleTransitions(root$80, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$79 && + null !== root$80 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5074,9 +5091,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$85 in Component) - void 0 === newProps[propName$85] && - (newProps[propName$85] = Component[propName$85]); + for (var propName$86 in Component) + void 0 === newProps[propName$86] && + (newProps[propName$86] = Component[propName$86]); } return newProps; } @@ -5519,10 +5536,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$99 = workInProgress.stateNode; + root$100 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$99.incompleteTransitions.has(transition)) { + if (!root$100.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5530,11 +5547,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$99.incompleteTransitions.set(transition, markerInstance); + root$100.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$99.incompleteTransitions.forEach(function (markerInstance) { + root$100.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7966,14 +7983,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$142 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$142 = lastTailNode), + for (var lastTailNode$143 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$143 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$142 + null === lastTailNode$143 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$142.sibling = null); + : (lastTailNode$143.sibling = null); } } function bubbleProperties(completedWork) { @@ -7985,53 +8002,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$144 = completedWork.selfBaseDuration, - child$145 = completedWork.child; - null !== child$145; + var treeBaseDuration$145 = completedWork.selfBaseDuration, + child$146 = completedWork.child; + null !== child$146; ) - (newChildLanes |= child$145.lanes | child$145.childLanes), - (subtreeFlags |= child$145.subtreeFlags & 31457280), - (subtreeFlags |= child$145.flags & 31457280), - (treeBaseDuration$144 += child$145.treeBaseDuration), - (child$145 = child$145.sibling); - completedWork.treeBaseDuration = treeBaseDuration$144; + (newChildLanes |= child$146.lanes | child$146.childLanes), + (subtreeFlags |= child$146.subtreeFlags & 31457280), + (subtreeFlags |= child$146.flags & 31457280), + (treeBaseDuration$145 += child$146.treeBaseDuration), + (child$146 = child$146.sibling); + completedWork.treeBaseDuration = treeBaseDuration$145; } else for ( - treeBaseDuration$144 = completedWork.child; - null !== treeBaseDuration$144; + treeBaseDuration$145 = completedWork.child; + null !== treeBaseDuration$145; ) (newChildLanes |= - treeBaseDuration$144.lanes | treeBaseDuration$144.childLanes), - (subtreeFlags |= treeBaseDuration$144.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$144.flags & 31457280), - (treeBaseDuration$144.return = completedWork), - (treeBaseDuration$144 = treeBaseDuration$144.sibling); + treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), + (subtreeFlags |= treeBaseDuration$145.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$145.flags & 31457280), + (treeBaseDuration$145.return = completedWork), + (treeBaseDuration$145 = treeBaseDuration$145.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$144 = completedWork.actualDuration; - child$145 = completedWork.selfBaseDuration; + treeBaseDuration$145 = completedWork.actualDuration; + child$146 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$144 += child.actualDuration), - (child$145 += child.treeBaseDuration), + (treeBaseDuration$145 += child.actualDuration), + (child$146 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$144; - completedWork.treeBaseDuration = child$145; + completedWork.actualDuration = treeBaseDuration$145; + completedWork.treeBaseDuration = child$146; } else for ( - treeBaseDuration$144 = completedWork.child; - null !== treeBaseDuration$144; + treeBaseDuration$145 = completedWork.child; + null !== treeBaseDuration$145; ) (newChildLanes |= - treeBaseDuration$144.lanes | treeBaseDuration$144.childLanes), - (subtreeFlags |= treeBaseDuration$144.subtreeFlags), - (subtreeFlags |= treeBaseDuration$144.flags), - (treeBaseDuration$144.return = completedWork), - (treeBaseDuration$144 = treeBaseDuration$144.sibling); + treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), + (subtreeFlags |= treeBaseDuration$145.subtreeFlags), + (subtreeFlags |= treeBaseDuration$145.flags), + (treeBaseDuration$145.return = completedWork), + (treeBaseDuration$145 = treeBaseDuration$145.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -8344,11 +8361,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$160 = null; + var cache$161 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$160 = newProps.memoizedState.cachePool.pool); - cache$160 !== type && (newProps.flags |= 2048); + (cache$161 = newProps.memoizedState.cachePool.pool); + cache$161 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -8392,8 +8409,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$160 = type.rendering; - if (null === cache$160) + cache$161 = type.rendering; + if (null === cache$161) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -8401,11 +8418,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$160 = findFirstSuspended(current); - if (null !== cache$160) { + cache$161 = findFirstSuspended(current); + if (null !== cache$161) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$160.updateQueue; + current = cache$161.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8430,7 +8447,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$160)), null !== current)) { + if (((current = findFirstSuspended(cache$161)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8440,7 +8457,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$160.alternate && + !cache$161.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8453,13 +8470,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$160.sibling = workInProgress.child), - (workInProgress.child = cache$160)) + ? ((cache$161.sibling = workInProgress.child), + (workInProgress.child = cache$161)) : ((current = type.last), null !== current - ? (current.sibling = cache$160) - : (workInProgress.child = cache$160), - (type.last = cache$160)); + ? (current.sibling = cache$161) + : (workInProgress.child = cache$161), + (type.last = cache$161)); } if (null !== type.tail) return ( @@ -8723,8 +8740,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$178) { - captureCommitPhaseError(current, nearestMountedAncestor, error$178); + } catch (error$179) { + captureCommitPhaseError(current, nearestMountedAncestor, error$179); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -8785,8 +8802,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$179) { - captureCommitPhaseError(current, nearestMountedAncestor, error$179); + } catch (error$180) { + captureCommitPhaseError(current, nearestMountedAncestor, error$180); } else ref.current = null; } @@ -8823,7 +8840,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$250) { + } catch (e$251) { JSCompiler_temp = null; break a; } @@ -9081,11 +9098,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$181 = commitTime, + var commitTime$182 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$181); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$182); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -9112,8 +9129,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$183) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$183); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } } function commitClassCallbacks(finishedWork) { @@ -9215,11 +9232,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$184) { + } catch (error$185) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$184 + error$185 ); } else { @@ -9237,11 +9254,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$185) { + } catch (error$186) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$185 + error$186 ); } recordLayoutEffectDuration(finishedWork); @@ -9252,11 +9269,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$186) { + } catch (error$187) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$186 + error$187 ); } } @@ -9817,19 +9834,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$200 = finishedWork.alternate; + var current$201 = finishedWork.alternate; if ( - null !== current$200 && - ((current$200 = current$200.memoizedState), - null !== current$200 && - ((current$200 = current$200.dehydrated), null !== current$200)) + null !== current$201 && + ((current$201 = current$201.memoizedState), + null !== current$201 && + ((current$201 = current$201.dehydrated), null !== current$201)) ) try { - retryIfBlockedOn(current$200); + retryIfBlockedOn(current$201); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$200); + onHydrated && onHydrated(current$201); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9961,22 +9978,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$202) { + } catch (error$203) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$202 + error$203 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$203) { + } catch (error$204) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$203 + error$204 ); } } @@ -10150,11 +10167,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$204) { + } catch (error$205) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$204 + error$205 ); } break; @@ -10191,8 +10208,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$205) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$205); + } catch (error$206) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$206); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -10202,8 +10219,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$207) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$207); + } catch (error$208) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$208); } } flags & 1024 && (needsFormReset = !0); @@ -10218,8 +10235,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$208) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$208); + } catch (error$209) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$209); } } break; @@ -10233,8 +10250,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$209) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$209); + } catch (error$210) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$210); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -10266,8 +10283,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$211) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$211); + } catch (error$212) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$212); } flags = finishedWork.updateQueue; null !== flags && @@ -10345,11 +10362,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$191) { + } catch (error$192) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$191 + error$192 ); } } else if ( @@ -10424,21 +10441,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$192 = JSCompiler_inline_result.stateNode; + var parent$193 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$192, ""), + (setTextContent(parent$193, ""), (JSCompiler_inline_result.flags &= -33)); - var before$193 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$193, parent$192); + var before$194 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$194, parent$193); break; case 3: case 4: - var parent$194 = JSCompiler_inline_result.stateNode.containerInfo, - before$195 = getHostSibling(finishedWork); + var parent$195 = JSCompiler_inline_result.stateNode.containerInfo, + before$196 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$195, - parent$194 + before$196, + parent$195 ); break; default: @@ -10527,7 +10544,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$215 = parentFiber.alternate, + var current$216 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10555,16 +10572,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$215 = finishedWork.updateQueue; - if (null !== current$215) { - var hiddenCallbacks = current$215.shared.hiddenCallbacks; + current$216 = finishedWork.updateQueue; + if (null !== current$216) { + var hiddenCallbacks = current$216.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$215.shared.hiddenCallbacks = null, current$215 = 0; - current$215 < hiddenCallbacks.length; - current$215++ + current$216.shared.hiddenCallbacks = null, current$216 = 0; + current$216 < hiddenCallbacks.length; + current$216++ ) - callCallback(hiddenCallbacks[current$215], finishedRoot); + callCallback(hiddenCallbacks[current$216], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10580,7 +10597,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$215 && + null === current$216 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10593,7 +10610,7 @@ function recursivelyTraverseReappearLayoutEffects( ); includeWorkInProgressEffects && flags & 4 && - commitProfilerUpdate(finishedWork, current$215); + commitProfilerUpdate(finishedWork, current$216); break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -10636,8 +10653,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$216) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$216); + } catch (error$217) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$217); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10939,9 +10956,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$223 = finishedWork.stateNode; + var instance$224 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$223._visibility & 4 + ? instance$224._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10954,7 +10971,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$223._visibility |= 4), + : ((instance$224._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10962,7 +10979,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$223._visibility |= 4), + : ((instance$224._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10975,7 +10992,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$223 + instance$224 ); break; case 24: @@ -11482,7 +11499,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { disableLegacyMode || 0 !== (fiber.mode & 1) || ((workInProgressRootRenderTargetTime = now$1() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -11800,12 +11817,12 @@ function batchedUpdates$1(fn, a) { (executionContext = prevExecutionContext), 0 === executionContext && ((workInProgressRootRenderTargetTime = now$1() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function flushSyncWork$1() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -12005,8 +12022,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$234) { - handleThrow(root, thrownValue$234); + } catch (thrownValue$235) { + handleThrow(root, thrownValue$235); } while (1); lanes && root.shellSuspendCounter++; @@ -12126,8 +12143,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$236) { - handleThrow(root, thrownValue$236); + } catch (thrownValue$237) { + handleThrow(root, thrownValue$237); } while (1); resetContextDependencies(); @@ -12302,23 +12319,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - var current$240 = completedWork.alternate; + var current$241 = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) - ? (current$240 = completeWork( - current$240, + ? (current$241 = completeWork( + current$241, completedWork, entangledRenderLanes )) : (startProfilerTimer(completedWork), - (current$240 = completeWork( - current$240, + (current$241 = completeWork( + current$241, completedWork, entangledRenderLanes )), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)); - if (null !== current$240) { - workInProgress = current$240; + if (null !== current$241) { + workInProgress = current$241; return; } completedWork = completedWork.sibling; @@ -12407,13 +12424,13 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$242 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$243 = commitBeforeMutationEffects( root, finishedWork ); commitTime = now(); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$242 && + shouldFireAfterActiveInstanceBlur$243 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -12469,7 +12486,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; @@ -12498,7 +12515,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$243 = rootWithPendingPassiveEffects, + var root$244 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12513,7 +12530,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$243, remainingLanes); + releaseRootPooledCache(root$244, remainingLanes); } } return !1; @@ -12555,7 +12572,7 @@ function flushPassiveEffectsImpl() { "function" === typeof injectedProfilingHooks.markPassiveEffectsStopped && injectedProfilingHooks.markPassiveEffectsStopped(); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -13354,9 +13371,9 @@ function attemptContinuousHydration(fiber) { function getLaneLabelMap() { if (enableSchedulingProfiler) { for ( - var map = new Map(), lane = 1, index$248 = 0; - 31 > index$248; - index$248++ + var map = new Map(), lane = 1, index$249 = 0; + 31 > index$249; + index$249++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -13902,19 +13919,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$410; + var JSCompiler_inline_result$jscomp$412; if (canUseDOM) { - var isSupported$jscomp$inline_1627 = "oninput" in document; - if (!isSupported$jscomp$inline_1627) { - var element$jscomp$inline_1628 = document.createElement("div"); - element$jscomp$inline_1628.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1627 = - "function" === typeof element$jscomp$inline_1628.oninput; + var isSupported$jscomp$inline_1629 = "oninput" in document; + if (!isSupported$jscomp$inline_1629) { + var element$jscomp$inline_1630 = document.createElement("div"); + element$jscomp$inline_1630.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1629 = + "function" === typeof element$jscomp$inline_1630.oninput; } - JSCompiler_inline_result$jscomp$410 = isSupported$jscomp$inline_1627; - } else JSCompiler_inline_result$jscomp$410 = !1; + JSCompiler_inline_result$jscomp$412 = isSupported$jscomp$inline_1629; + } else JSCompiler_inline_result$jscomp$412 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$410 && + JSCompiler_inline_result$jscomp$412 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -14325,20 +14342,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1668 = 0; - i$jscomp$inline_1668 < simpleEventPluginEvents.length; - i$jscomp$inline_1668++ + var i$jscomp$inline_1670 = 0; + i$jscomp$inline_1670 < simpleEventPluginEvents.length; + i$jscomp$inline_1670++ ) { - var eventName$jscomp$inline_1669 = - simpleEventPluginEvents[i$jscomp$inline_1668], - domEventName$jscomp$inline_1670 = - eventName$jscomp$inline_1669.toLowerCase(), - capitalizedEvent$jscomp$inline_1671 = - eventName$jscomp$inline_1669[0].toUpperCase() + - eventName$jscomp$inline_1669.slice(1); + var eventName$jscomp$inline_1671 = + simpleEventPluginEvents[i$jscomp$inline_1670], + domEventName$jscomp$inline_1672 = + eventName$jscomp$inline_1671.toLowerCase(), + capitalizedEvent$jscomp$inline_1673 = + eventName$jscomp$inline_1671[0].toUpperCase() + + eventName$jscomp$inline_1671.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1670, - "on" + capitalizedEvent$jscomp$inline_1671 + domEventName$jscomp$inline_1672, + "on" + capitalizedEvent$jscomp$inline_1673 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15631,34 +15648,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$264 = props[hasSrc]; - if (null != propValue$264) + var propValue$265 = props[hasSrc]; + if (null != propValue$265) switch (hasSrc) { case "name": - hasSrcSet = propValue$264; + hasSrcSet = propValue$265; break; case "type": - propValue = propValue$264; + propValue = propValue$265; break; case "checked": - checked = propValue$264; + checked = propValue$265; break; case "defaultChecked": - defaultChecked = propValue$264; + defaultChecked = propValue$265; break; case "value": - propKey = propValue$264; + propKey = propValue$265; break; case "defaultValue": - defaultValue = propValue$264; + defaultValue = propValue$265; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$264) + if (null != propValue$265) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$264, props, null); + setProp(domElement, tag, hasSrc, propValue$265, props, null); } } initInput( @@ -15795,14 +15812,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$264 in props) - props.hasOwnProperty(propValue$264) && - ((hasSrc = props[propValue$264]), + for (propValue$265 in props) + props.hasOwnProperty(propValue$265) && + ((hasSrc = props[propValue$265]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$264, + propValue$265, hasSrc, props, void 0 @@ -15850,14 +15867,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$281 in nextProps) { - var propKey = nextProps[propKey$281]; - lastProp = lastProps[propKey$281]; + for (var propKey$282 in nextProps) { + var propKey = nextProps[propKey$282]; + lastProp = lastProps[propKey$282]; if ( - nextProps.hasOwnProperty(propKey$281) && + nextProps.hasOwnProperty(propKey$282) && (null != propKey || null != lastProp) ) - switch (propKey$281) { + switch (propKey$282) { case "type": type = propKey; break; @@ -15886,7 +15903,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$281, + propKey$282, propKey, nextProps, lastProp @@ -15905,7 +15922,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$281 = null; + propKey = value = defaultValue = propKey$282 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15936,7 +15953,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$281 = type; + propKey$282 = type; break; case "defaultValue": defaultValue = type; @@ -15957,15 +15974,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$281 - ? updateOptions(domElement, !!lastProps, propKey$281, !1) + null != propKey$282 + ? updateOptions(domElement, !!lastProps, propKey$282, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$281 = null; + propKey = propKey$282 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15989,7 +16006,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$281 = name; + propKey$282 = name; break; case "defaultValue": propKey = name; @@ -16003,17 +16020,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$281, propKey); + updateTextarea(domElement, propKey$282, propKey); return; case "option": - for (var propKey$297 in lastProps) + for (var propKey$298 in lastProps) if ( - ((propKey$281 = lastProps[propKey$297]), - lastProps.hasOwnProperty(propKey$297) && - null != propKey$281 && - !nextProps.hasOwnProperty(propKey$297)) + ((propKey$282 = lastProps[propKey$298]), + lastProps.hasOwnProperty(propKey$298) && + null != propKey$282 && + !nextProps.hasOwnProperty(propKey$298)) ) - switch (propKey$297) { + switch (propKey$298) { case "selected": domElement.selected = !1; break; @@ -16021,33 +16038,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$297, + propKey$298, null, nextProps, - propKey$281 + propKey$282 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$281 = nextProps[lastDefaultValue]), + ((propKey$282 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$281 !== propKey && - (null != propKey$281 || null != propKey)) + propKey$282 !== propKey && + (null != propKey$282 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$281 && - "function" !== typeof propKey$281 && - "symbol" !== typeof propKey$281; + propKey$282 && + "function" !== typeof propKey$282 && + "symbol" !== typeof propKey$282; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$281, + propKey$282, nextProps, propKey ); @@ -16068,24 +16085,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$302 in lastProps) - (propKey$281 = lastProps[propKey$302]), - lastProps.hasOwnProperty(propKey$302) && - null != propKey$281 && - !nextProps.hasOwnProperty(propKey$302) && - setProp(domElement, tag, propKey$302, null, nextProps, propKey$281); + for (var propKey$303 in lastProps) + (propKey$282 = lastProps[propKey$303]), + lastProps.hasOwnProperty(propKey$303) && + null != propKey$282 && + !nextProps.hasOwnProperty(propKey$303) && + setProp(domElement, tag, propKey$303, null, nextProps, propKey$282); for (checked in nextProps) if ( - ((propKey$281 = nextProps[checked]), + ((propKey$282 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$281 !== propKey && - (null != propKey$281 || null != propKey)) + propKey$282 !== propKey && + (null != propKey$282 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$281) + if (null != propKey$282) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -16093,7 +16110,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$281, + propKey$282, nextProps, propKey ); @@ -16101,49 +16118,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$307 in lastProps) - (propKey$281 = lastProps[propKey$307]), - lastProps.hasOwnProperty(propKey$307) && - void 0 !== propKey$281 && - !nextProps.hasOwnProperty(propKey$307) && + for (var propKey$308 in lastProps) + (propKey$282 = lastProps[propKey$308]), + lastProps.hasOwnProperty(propKey$308) && + void 0 !== propKey$282 && + !nextProps.hasOwnProperty(propKey$308) && setPropOnCustomElement( domElement, tag, - propKey$307, + propKey$308, void 0, nextProps, - propKey$281 + propKey$282 ); for (defaultChecked in nextProps) - (propKey$281 = nextProps[defaultChecked]), + (propKey$282 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$281 === propKey || - (void 0 === propKey$281 && void 0 === propKey) || + propKey$282 === propKey || + (void 0 === propKey$282 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$281, + propKey$282, nextProps, propKey ); return; } } - for (var propKey$312 in lastProps) - (propKey$281 = lastProps[propKey$312]), - lastProps.hasOwnProperty(propKey$312) && - null != propKey$281 && - !nextProps.hasOwnProperty(propKey$312) && - setProp(domElement, tag, propKey$312, null, nextProps, propKey$281); + for (var propKey$313 in lastProps) + (propKey$282 = lastProps[propKey$313]), + lastProps.hasOwnProperty(propKey$313) && + null != propKey$282 && + !nextProps.hasOwnProperty(propKey$313) && + setProp(domElement, tag, propKey$313, null, nextProps, propKey$282); for (lastProp in nextProps) - (propKey$281 = nextProps[lastProp]), + (propKey$282 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$281 === propKey || - (null == propKey$281 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$281, nextProps, propKey); + propKey$282 === propKey || + (null == propKey$282 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$282, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16738,26 +16755,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$320 = getResourcesFromRoot( + var styles$321 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$321 = styles$320.get(type); - resource$321 || + resource$322 = styles$321.get(type); + resource$322 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$321 = { + (resource$322 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$320.set(type, resource$321), - (styles$320 = JSCompiler_inline_result.querySelector( + styles$321.set(type, resource$322), + (styles$321 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$320._p && - ((resource$321.instance = styles$320), - (resource$321.state.loading = 5)), + !styles$321._p && + ((resource$322.instance = styles$321), + (resource$322.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16770,16 +16787,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$320 || + styles$321 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$321.state + resource$322.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$321; + return resource$322; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16876,37 +16893,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$326 = hoistableRoot.querySelector( + var instance$327 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$326) + if (instance$327) return ( (resource.state.loading |= 4), - (resource.instance = instance$326), - markNodeAsHoistable(instance$326), - instance$326 + (resource.instance = instance$327), + markNodeAsHoistable(instance$327), + instance$327 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$326 = ( + instance$327 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$326); - var linkInstance = instance$326; + markNodeAsHoistable(instance$327); + var linkInstance = instance$327; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$326, "link", instance); + setInitialProperties(instance$327, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$326, props.precedence, hoistableRoot); - return (resource.instance = instance$326); + insertStylesheet(instance$327, props.precedence, hoistableRoot); + return (resource.instance = instance$327); case "script": - instance$326 = getScriptKey(props.src); + instance$327 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$326) + getScriptSelectorFromKey(instance$327) )) ) return ( @@ -16915,7 +16932,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$326))) + if ((styleProps = preloadPropsMap.get(instance$327))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17727,7 +17744,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -17947,16 +17964,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1841 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1843 = React.version; if ( - "19.0.0-www-classic-1d989965-20240821" !== - isomorphicReactPackageVersion$jscomp$inline_1841 + "19.0.0-www-classic-ee7f6757-20240823" !== + isomorphicReactPackageVersion$jscomp$inline_1843 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1841, - "19.0.0-www-classic-1d989965-20240821" + isomorphicReactPackageVersion$jscomp$inline_1843, + "19.0.0-www-classic-ee7f6757-20240823" ) ); function flushSyncFromReconciler(fn) { @@ -17979,7 +17996,7 @@ function flushSyncFromReconciler(fn) { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), - 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); + 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(0, !1); } JSCompiler_inline_result = void 0; } @@ -17999,28 +18016,28 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1848 = { +var internals$jscomp$inline_1850 = { bundleType: 0, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1848.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1848.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1850.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1850.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2281 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2292 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2281.isDisabled && - hook$jscomp$inline_2281.supportsFiber + !hook$jscomp$inline_2292.isDisabled && + hook$jscomp$inline_2292.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2281.inject( - internals$jscomp$inline_1848 + (rendererID = hook$jscomp$inline_2292.inject( + internals$jscomp$inline_1850 )), - (injectedHook = hook$jscomp$inline_2281); + (injectedHook = hook$jscomp$inline_2292); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18094,11 +18111,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$347); + var instance = getPublicRootInstance(root$348); originalCallback.call(instance); }; } - var root$347 = createHydrationContainer( + var root$348 = createHydrationContainer( initialChildren, callback, container, @@ -18113,23 +18130,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$347; - container[internalContainerInstanceKey] = root$347.current; + container._reactRootContainer = root$348; + container[internalContainerInstanceKey] = root$348.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSyncWork$1(); - return root$347; + return root$348; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$348 = callback; + var originalCallback$349 = callback; callback = function () { - var instance = getPublicRootInstance(root$349); - originalCallback$348.call(instance); + var instance = getPublicRootInstance(root$350); + originalCallback$349.call(instance); }; } - var root$349 = createFiberRoot( + var root$350 = createFiberRoot( container, 0, !1, @@ -18143,14 +18160,14 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$349; - container[internalContainerInstanceKey] = root$349.current; + container._reactRootContainer = root$350; + container[internalContainerInstanceKey] = root$350.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - updateContainerSync(initialChildren, root$349, parentComponent, callback); + updateContainerSync(initialChildren, root$350, parentComponent, callback); flushSyncWork$1(); - return root$349; + return root$350; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -18464,7 +18481,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 042ce1bfd3..5c26b53752 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -1889,24 +1889,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now$1()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$28 = firstScheduledRoot; null !== root$28; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$30 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$30 = getNextLanes( - root$28, - root$28 === workInProgressRoot - ? workInProgressRootRenderLanes$30 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$30 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$28, workInProgressRootRenderLanes$30)); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$28.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$28.suspendedLanes, + pingedLanes = root$28.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$28, + root$28 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); root$28 = root$28.next; } } while (didPerformSomeWork); @@ -1915,30 +1933,29 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -2209,20 +2226,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$32 = workInProgress$jscomp$0.alternate; - null !== current$32 && - ((current$32 = current$32.updateQueue), - (pendingQueue = current$32.lastBaseUpdate), + var current$33 = workInProgress$jscomp$0.alternate; + null !== current$33 && + ((current$33 = current$33.updateQueue), + (pendingQueue = current$33.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$32.firstBaseUpdate = firstPendingUpdate) + ? (current$33.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$32.lastBaseUpdate = lastPendingUpdate))); + (current$33.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$32 = firstPendingUpdate = lastPendingUpdate = null; + current$33 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2235,8 +2252,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$32 && - (current$32 = current$32.next = + null !== current$33 && + (current$33 = current$33.next = { lane: 0, tag: pendingQueue.tag, @@ -2289,10 +2306,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$32 - ? ((firstPendingUpdate = current$32 = isHiddenUpdate), + null === current$33 + ? ((firstPendingUpdate = current$33 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$32 = current$32.next = isHiddenUpdate), + : (current$33 = current$33.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2305,10 +2322,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$32 && (lastPendingUpdate = newState); + null === current$33 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$32; + queue.lastBaseUpdate = current$33; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3179,9 +3196,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$67 = fiber.alternate; - null !== current$67 && - null !== current$67.memoizedState && + var current$68 = fiber.alternate; + null !== current$68 && + null !== current$68.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3451,16 +3468,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$69 = currentlyRenderingFiber$1.alternate; - null !== current$69 && - ((current$69 = current$69.updateQueue), - null !== current$69 && - ((current$69 = current$69.memoCache), - null != current$69 && + var current$70 = currentlyRenderingFiber$1.alternate; + null !== current$70 && + ((current$70 = current$70.updateQueue), + null !== current$70 && + ((current$70 = current$70.memoCache), + null != current$70 && (memoCache = { data: enableNoCloningMemoCache - ? current$69.data - : current$69.data.map(function (array) { + ? current$70.data + : current$70.data.map(function (array) { return array.slice(); }), index: 0 @@ -3475,11 +3492,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$69 = 0; - current$69 < size; - current$69++ + current$70 = 0; + current$70 < size; + current$70++ ) - updateQueue[current$69] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$70] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3512,7 +3529,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$70 = !1; + didReadFromEntangledAsyncAction$71 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3533,11 +3550,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$70 = !0); + (didReadFromEntangledAsyncAction$71 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$70 = !0); + (didReadFromEntangledAsyncAction$71 = !0); continue; } else (updateLane = { @@ -3583,7 +3600,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$70 && + didReadFromEntangledAsyncAction$71 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3781,8 +3798,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$76) { - onActionError(actionQueue, node, error$76); + } catch (error$77) { + onActionError(actionQueue, node, error$77); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4231,14 +4248,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$79 = enqueueUpdate(provider, fiber, lane); - null !== root$79 && - (scheduleUpdateOnFiber(root$79, provider, lane), - entangleTransitions(root$79, provider, lane)); + var root$80 = enqueueUpdate(provider, fiber, lane); + null !== root$80 && + (scheduleUpdateOnFiber(root$80, provider, lane), + entangleTransitions(root$80, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$79 && + null !== root$80 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4847,9 +4864,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$85 in Component) - void 0 === newProps[propName$85] && - (newProps[propName$85] = Component[propName$85]); + for (var propName$86 in Component) + void 0 === newProps[propName$86] && + (newProps[propName$86] = Component[propName$86]); } return newProps; } @@ -5226,10 +5243,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$98 = workInProgress.stateNode; + root$99 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$98.incompleteTransitions.has(transition)) { + if (!root$99.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5237,11 +5254,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$98.incompleteTransitions.set(transition, markerInstance); + root$99.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$98.incompleteTransitions.forEach(function (markerInstance) { + root$99.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7541,14 +7558,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$134 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$134 = lastTailNode), + for (var lastTailNode$135 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$135 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$134 + null === lastTailNode$135 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$134.sibling = null); + : (lastTailNode$135.sibling = null); } } function bubbleProperties(completedWork) { @@ -7560,53 +7577,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$136 = completedWork.selfBaseDuration, - child$137 = completedWork.child; - null !== child$137; + var treeBaseDuration$137 = completedWork.selfBaseDuration, + child$138 = completedWork.child; + null !== child$138; ) - (newChildLanes |= child$137.lanes | child$137.childLanes), - (subtreeFlags |= child$137.subtreeFlags & 31457280), - (subtreeFlags |= child$137.flags & 31457280), - (treeBaseDuration$136 += child$137.treeBaseDuration), - (child$137 = child$137.sibling); - completedWork.treeBaseDuration = treeBaseDuration$136; + (newChildLanes |= child$138.lanes | child$138.childLanes), + (subtreeFlags |= child$138.subtreeFlags & 31457280), + (subtreeFlags |= child$138.flags & 31457280), + (treeBaseDuration$137 += child$138.treeBaseDuration), + (child$138 = child$138.sibling); + completedWork.treeBaseDuration = treeBaseDuration$137; } else for ( - treeBaseDuration$136 = completedWork.child; - null !== treeBaseDuration$136; + treeBaseDuration$137 = completedWork.child; + null !== treeBaseDuration$137; ) (newChildLanes |= - treeBaseDuration$136.lanes | treeBaseDuration$136.childLanes), - (subtreeFlags |= treeBaseDuration$136.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$136.flags & 31457280), - (treeBaseDuration$136.return = completedWork), - (treeBaseDuration$136 = treeBaseDuration$136.sibling); + treeBaseDuration$137.lanes | treeBaseDuration$137.childLanes), + (subtreeFlags |= treeBaseDuration$137.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$137.flags & 31457280), + (treeBaseDuration$137.return = completedWork), + (treeBaseDuration$137 = treeBaseDuration$137.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$136 = completedWork.actualDuration; - child$137 = completedWork.selfBaseDuration; + treeBaseDuration$137 = completedWork.actualDuration; + child$138 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$136 += child.actualDuration), - (child$137 += child.treeBaseDuration), + (treeBaseDuration$137 += child.actualDuration), + (child$138 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$136; - completedWork.treeBaseDuration = child$137; + completedWork.actualDuration = treeBaseDuration$137; + completedWork.treeBaseDuration = child$138; } else for ( - treeBaseDuration$136 = completedWork.child; - null !== treeBaseDuration$136; + treeBaseDuration$137 = completedWork.child; + null !== treeBaseDuration$137; ) (newChildLanes |= - treeBaseDuration$136.lanes | treeBaseDuration$136.childLanes), - (subtreeFlags |= treeBaseDuration$136.subtreeFlags), - (subtreeFlags |= treeBaseDuration$136.flags), - (treeBaseDuration$136.return = completedWork), - (treeBaseDuration$136 = treeBaseDuration$136.sibling); + treeBaseDuration$137.lanes | treeBaseDuration$137.childLanes), + (subtreeFlags |= treeBaseDuration$137.subtreeFlags), + (subtreeFlags |= treeBaseDuration$137.flags), + (treeBaseDuration$137.return = completedWork), + (treeBaseDuration$137 = treeBaseDuration$137.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7911,11 +7928,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$152 = null; + var cache$153 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$152 = newProps.memoizedState.cachePool.pool); - cache$152 !== type && (newProps.flags |= 2048); + (cache$153 = newProps.memoizedState.cachePool.pool); + cache$153 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7954,8 +7971,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$152 = type.rendering; - if (null === cache$152) + cache$153 = type.rendering; + if (null === cache$153) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -7963,11 +7980,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$152 = findFirstSuspended(current); - if (null !== cache$152) { + cache$153 = findFirstSuspended(current); + if (null !== cache$153) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$152.updateQueue; + current = cache$153.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7992,7 +8009,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$152)), null !== current)) { + if (((current = findFirstSuspended(cache$153)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8002,7 +8019,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$152.alternate && + !cache$153.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8015,13 +8032,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$152.sibling = workInProgress.child), - (workInProgress.child = cache$152)) + ? ((cache$153.sibling = workInProgress.child), + (workInProgress.child = cache$153)) : ((current = type.last), null !== current - ? (current.sibling = cache$152) - : (workInProgress.child = cache$152), - (type.last = cache$152)); + ? (current.sibling = cache$153) + : (workInProgress.child = cache$153), + (type.last = cache$153)); } if (null !== type.tail) return ( @@ -8274,8 +8291,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$169) { - captureCommitPhaseError(current, nearestMountedAncestor, error$169); + } catch (error$170) { + captureCommitPhaseError(current, nearestMountedAncestor, error$170); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -8336,8 +8353,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$170) { - captureCommitPhaseError(current, nearestMountedAncestor, error$170); + } catch (error$171) { + captureCommitPhaseError(current, nearestMountedAncestor, error$171); } else ref.current = null; } @@ -8374,7 +8391,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$241) { + } catch (e$242) { JSCompiler_temp = null; break a; } @@ -8645,11 +8662,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$172 = commitTime, + var commitTime$173 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$172); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$173); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -8676,8 +8693,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$174) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$174); + } catch (error$175) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$175); } } function commitClassCallbacks(finishedWork) { @@ -8779,11 +8796,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$175) { + } catch (error$176) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$175 + error$176 ); } else { @@ -8801,11 +8818,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$176) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$177 ); } recordLayoutEffectDuration(finishedWork); @@ -8816,11 +8833,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$177) { + } catch (error$178) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$178 ); } } @@ -9370,19 +9387,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$191 = finishedWork.alternate; + var current$192 = finishedWork.alternate; if ( - null !== current$191 && - ((current$191 = current$191.memoizedState), - null !== current$191 && - ((current$191 = current$191.dehydrated), null !== current$191)) + null !== current$192 && + ((current$192 = current$192.memoizedState), + null !== current$192 && + ((current$192 = current$192.dehydrated), null !== current$192)) ) try { - retryIfBlockedOn(current$191); + retryIfBlockedOn(current$192); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$191); + onHydrated && onHydrated(current$192); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9514,22 +9531,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$193) { + } catch (error$194) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$193 + error$194 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$194) { + } catch (error$195) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$194 + error$195 ); } } @@ -9703,11 +9720,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$195) { + } catch (error$196) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$195 + error$196 ); } break; @@ -9744,8 +9761,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$196) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$196); + } catch (error$197) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$197); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9755,8 +9772,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$198) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$198); + } catch (error$199) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$199); } } flags & 1024 && (needsFormReset = !0); @@ -9771,8 +9788,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$199) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$199); + } catch (error$200) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$200); } } break; @@ -9786,8 +9803,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$200) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$200); + } catch (error$201) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$201); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9819,8 +9836,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$202) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$202); + } catch (error$203) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$203); } flags = finishedWork.updateQueue; null !== flags && @@ -9895,11 +9912,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$182) { + } catch (error$183) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$182 + error$183 ); } } else if ( @@ -9974,21 +9991,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$183 = JSCompiler_inline_result.stateNode; + var parent$184 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$183, ""), + (setTextContent(parent$184, ""), (JSCompiler_inline_result.flags &= -33)); - var before$184 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$184, parent$183); + var before$185 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$185, parent$184); break; case 3: case 4: - var parent$185 = JSCompiler_inline_result.stateNode.containerInfo, - before$186 = getHostSibling(finishedWork); + var parent$186 = JSCompiler_inline_result.stateNode.containerInfo, + before$187 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$186, - parent$185 + before$187, + parent$186 ); break; default: @@ -10077,7 +10094,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$206 = parentFiber.alternate, + var current$207 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10105,16 +10122,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$206 = finishedWork.updateQueue; - if (null !== current$206) { - var hiddenCallbacks = current$206.shared.hiddenCallbacks; + current$207 = finishedWork.updateQueue; + if (null !== current$207) { + var hiddenCallbacks = current$207.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$206.shared.hiddenCallbacks = null, current$206 = 0; - current$206 < hiddenCallbacks.length; - current$206++ + current$207.shared.hiddenCallbacks = null, current$207 = 0; + current$207 < hiddenCallbacks.length; + current$207++ ) - callCallback(hiddenCallbacks[current$206], finishedRoot); + callCallback(hiddenCallbacks[current$207], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10130,7 +10147,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$206 && + null === current$207 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10143,7 +10160,7 @@ function recursivelyTraverseReappearLayoutEffects( ); includeWorkInProgressEffects && flags & 4 && - commitProfilerUpdate(finishedWork, current$206); + commitProfilerUpdate(finishedWork, current$207); break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -10186,8 +10203,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$207) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$207); + } catch (error$208) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$208); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10478,9 +10495,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$214 = finishedWork.stateNode; + var instance$215 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$214._visibility & 4 + ? instance$215._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10492,7 +10509,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$214._visibility |= 4), + : ((instance$215._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10505,7 +10522,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$214 + instance$215 ); break; case 24: @@ -11313,7 +11330,7 @@ function performSyncWorkOnRoot(root, lanes) { } function flushSyncWork$1() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -11513,8 +11530,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$225) { - handleThrow(root, thrownValue$225); + } catch (thrownValue$226) { + handleThrow(root, thrownValue$226); } while (1); lanes && root.shellSuspendCounter++; @@ -11634,8 +11651,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$227) { - handleThrow(root, thrownValue$227); + } catch (thrownValue$228) { + handleThrow(root, thrownValue$228); } while (1); resetContextDependencies(); @@ -11806,23 +11823,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - var current$231 = completedWork.alternate; + var current$232 = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) - ? (current$231 = completeWork( - current$231, + ? (current$232 = completeWork( + current$232, completedWork, entangledRenderLanes )) : (startProfilerTimer(completedWork), - (current$231 = completeWork( - current$231, + (current$232 = completeWork( + current$232, completedWork, entangledRenderLanes )), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)); - if (null !== current$231) { - workInProgress = current$231; + if (null !== current$232) { + workInProgress = current$232; return; } completedWork = completedWork.sibling; @@ -11911,13 +11928,13 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$233 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$234 = commitBeforeMutationEffects( root, finishedWork ); commitTime = now(); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$233 && + shouldFireAfterActiveInstanceBlur$234 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11971,7 +11988,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; @@ -12000,7 +12017,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$234 = rootWithPendingPassiveEffects, + var root$235 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12015,7 +12032,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$234, remainingLanes); + releaseRootPooledCache(root$235, remainingLanes); } } return !1; @@ -12057,7 +12074,7 @@ function flushPassiveEffectsImpl() { "function" === typeof injectedProfilingHooks.markPassiveEffectsStopped && injectedProfilingHooks.markPassiveEffectsStopped(); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -12734,9 +12751,9 @@ function attemptContinuousHydration(fiber) { function getLaneLabelMap() { if (enableSchedulingProfiler) { for ( - var map = new Map(), lane = 1, index$239 = 0; - 31 > index$239; - index$239++ + var map = new Map(), lane = 1, index$240 = 0; + 31 > index$240; + index$240++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -13310,19 +13327,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$397; + var JSCompiler_inline_result$jscomp$399; if (canUseDOM) { - var isSupported$jscomp$inline_1598 = "oninput" in document; - if (!isSupported$jscomp$inline_1598) { - var element$jscomp$inline_1599 = document.createElement("div"); - element$jscomp$inline_1599.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1598 = - "function" === typeof element$jscomp$inline_1599.oninput; + var isSupported$jscomp$inline_1600 = "oninput" in document; + if (!isSupported$jscomp$inline_1600) { + var element$jscomp$inline_1601 = document.createElement("div"); + element$jscomp$inline_1601.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1600 = + "function" === typeof element$jscomp$inline_1601.oninput; } - JSCompiler_inline_result$jscomp$397 = isSupported$jscomp$inline_1598; - } else JSCompiler_inline_result$jscomp$397 = !1; + JSCompiler_inline_result$jscomp$399 = isSupported$jscomp$inline_1600; + } else JSCompiler_inline_result$jscomp$399 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$397 && + JSCompiler_inline_result$jscomp$399 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13733,20 +13750,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1639 = 0; - i$jscomp$inline_1639 < simpleEventPluginEvents.length; - i$jscomp$inline_1639++ + var i$jscomp$inline_1641 = 0; + i$jscomp$inline_1641 < simpleEventPluginEvents.length; + i$jscomp$inline_1641++ ) { - var eventName$jscomp$inline_1640 = - simpleEventPluginEvents[i$jscomp$inline_1639], - domEventName$jscomp$inline_1641 = - eventName$jscomp$inline_1640.toLowerCase(), - capitalizedEvent$jscomp$inline_1642 = - eventName$jscomp$inline_1640[0].toUpperCase() + - eventName$jscomp$inline_1640.slice(1); + var eventName$jscomp$inline_1642 = + simpleEventPluginEvents[i$jscomp$inline_1641], + domEventName$jscomp$inline_1643 = + eventName$jscomp$inline_1642.toLowerCase(), + capitalizedEvent$jscomp$inline_1644 = + eventName$jscomp$inline_1642[0].toUpperCase() + + eventName$jscomp$inline_1642.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1641, - "on" + capitalizedEvent$jscomp$inline_1642 + domEventName$jscomp$inline_1643, + "on" + capitalizedEvent$jscomp$inline_1644 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15035,34 +15052,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$255 = props[hasSrc]; - if (null != propValue$255) + var propValue$256 = props[hasSrc]; + if (null != propValue$256) switch (hasSrc) { case "name": - hasSrcSet = propValue$255; + hasSrcSet = propValue$256; break; case "type": - propKey = propValue$255; + propKey = propValue$256; break; case "checked": - checked = propValue$255; + checked = propValue$256; break; case "defaultChecked": - defaultChecked = propValue$255; + defaultChecked = propValue$256; break; case "value": - propValue = propValue$255; + propValue = propValue$256; break; case "defaultValue": - defaultValue = propValue$255; + defaultValue = propValue$256; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$255) + if (null != propValue$256) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$255, props, null); + setProp(domElement, tag, hasSrc, propValue$256, props, null); } } initInput( @@ -15198,14 +15215,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$255 in props) - props.hasOwnProperty(propValue$255) && - ((hasSrc = props[propValue$255]), + for (propValue$256 in props) + props.hasOwnProperty(propValue$256) && + ((hasSrc = props[propValue$256]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$255, + propValue$256, hasSrc, props, void 0 @@ -15253,14 +15270,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$272 in nextProps) { - var propKey = nextProps[propKey$272]; - lastProp = lastProps[propKey$272]; + for (var propKey$273 in nextProps) { + var propKey = nextProps[propKey$273]; + lastProp = lastProps[propKey$273]; if ( - nextProps.hasOwnProperty(propKey$272) && + nextProps.hasOwnProperty(propKey$273) && (null != propKey || null != lastProp) ) - switch (propKey$272) { + switch (propKey$273) { case "type": type = propKey; break; @@ -15289,7 +15306,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$272, + propKey$273, propKey, nextProps, lastProp @@ -15308,7 +15325,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$272 = null; + propKey = value = defaultValue = propKey$273 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15339,7 +15356,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$272 = type; + propKey$273 = type; break; case "defaultValue": defaultValue = type; @@ -15360,15 +15377,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$272 - ? updateOptions(domElement, !!lastProps, propKey$272, !1) + null != propKey$273 + ? updateOptions(domElement, !!lastProps, propKey$273, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$272 = null; + propKey = propKey$273 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15392,7 +15409,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$272 = name; + propKey$273 = name; break; case "defaultValue": propKey = name; @@ -15406,17 +15423,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$272, propKey); + updateTextarea(domElement, propKey$273, propKey); return; case "option": - for (var propKey$288 in lastProps) + for (var propKey$289 in lastProps) if ( - ((propKey$272 = lastProps[propKey$288]), - lastProps.hasOwnProperty(propKey$288) && - null != propKey$272 && - !nextProps.hasOwnProperty(propKey$288)) + ((propKey$273 = lastProps[propKey$289]), + lastProps.hasOwnProperty(propKey$289) && + null != propKey$273 && + !nextProps.hasOwnProperty(propKey$289)) ) - switch (propKey$288) { + switch (propKey$289) { case "selected": domElement.selected = !1; break; @@ -15424,33 +15441,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$288, + propKey$289, null, nextProps, - propKey$272 + propKey$273 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$272 = nextProps[lastDefaultValue]), + ((propKey$273 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$272 !== propKey && - (null != propKey$272 || null != propKey)) + propKey$273 !== propKey && + (null != propKey$273 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$272 && - "function" !== typeof propKey$272 && - "symbol" !== typeof propKey$272; + propKey$273 && + "function" !== typeof propKey$273 && + "symbol" !== typeof propKey$273; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$272, + propKey$273, nextProps, propKey ); @@ -15471,24 +15488,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$293 in lastProps) - (propKey$272 = lastProps[propKey$293]), - lastProps.hasOwnProperty(propKey$293) && - null != propKey$272 && - !nextProps.hasOwnProperty(propKey$293) && - setProp(domElement, tag, propKey$293, null, nextProps, propKey$272); + for (var propKey$294 in lastProps) + (propKey$273 = lastProps[propKey$294]), + lastProps.hasOwnProperty(propKey$294) && + null != propKey$273 && + !nextProps.hasOwnProperty(propKey$294) && + setProp(domElement, tag, propKey$294, null, nextProps, propKey$273); for (checked in nextProps) if ( - ((propKey$272 = nextProps[checked]), + ((propKey$273 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$272 !== propKey && - (null != propKey$272 || null != propKey)) + propKey$273 !== propKey && + (null != propKey$273 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$272) + if (null != propKey$273) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15496,7 +15513,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$272, + propKey$273, nextProps, propKey ); @@ -15504,49 +15521,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$298 in lastProps) - (propKey$272 = lastProps[propKey$298]), - lastProps.hasOwnProperty(propKey$298) && - void 0 !== propKey$272 && - !nextProps.hasOwnProperty(propKey$298) && + for (var propKey$299 in lastProps) + (propKey$273 = lastProps[propKey$299]), + lastProps.hasOwnProperty(propKey$299) && + void 0 !== propKey$273 && + !nextProps.hasOwnProperty(propKey$299) && setPropOnCustomElement( domElement, tag, - propKey$298, + propKey$299, void 0, nextProps, - propKey$272 + propKey$273 ); for (defaultChecked in nextProps) - (propKey$272 = nextProps[defaultChecked]), + (propKey$273 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$272 === propKey || - (void 0 === propKey$272 && void 0 === propKey) || + propKey$273 === propKey || + (void 0 === propKey$273 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$272, + propKey$273, nextProps, propKey ); return; } } - for (var propKey$303 in lastProps) - (propKey$272 = lastProps[propKey$303]), - lastProps.hasOwnProperty(propKey$303) && - null != propKey$272 && - !nextProps.hasOwnProperty(propKey$303) && - setProp(domElement, tag, propKey$303, null, nextProps, propKey$272); + for (var propKey$304 in lastProps) + (propKey$273 = lastProps[propKey$304]), + lastProps.hasOwnProperty(propKey$304) && + null != propKey$273 && + !nextProps.hasOwnProperty(propKey$304) && + setProp(domElement, tag, propKey$304, null, nextProps, propKey$273); for (lastProp in nextProps) - (propKey$272 = nextProps[lastProp]), + (propKey$273 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$272 === propKey || - (null == propKey$272 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$272, nextProps, propKey); + propKey$273 === propKey || + (null == propKey$273 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$273, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16124,26 +16141,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$311 = getResourcesFromRoot( + var styles$312 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$312 = styles$311.get(type); - resource$312 || + resource$313 = styles$312.get(type); + resource$313 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$312 = { + (resource$313 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$311.set(type, resource$312), - (styles$311 = JSCompiler_inline_result.querySelector( + styles$312.set(type, resource$313), + (styles$312 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$311._p && - ((resource$312.instance = styles$311), - (resource$312.state.loading = 5)), + !styles$312._p && + ((resource$313.instance = styles$312), + (resource$313.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16156,16 +16173,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$311 || + styles$312 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$312.state + resource$313.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$312; + return resource$313; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16262,37 +16279,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$317 = hoistableRoot.querySelector( + var instance$318 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$317) + if (instance$318) return ( (resource.state.loading |= 4), - (resource.instance = instance$317), - markNodeAsHoistable(instance$317), - instance$317 + (resource.instance = instance$318), + markNodeAsHoistable(instance$318), + instance$318 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$317 = ( + instance$318 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$317); - var linkInstance = instance$317; + markNodeAsHoistable(instance$318); + var linkInstance = instance$318; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$317, "link", instance); + setInitialProperties(instance$318, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$317, props.precedence, hoistableRoot); - return (resource.instance = instance$317); + insertStylesheet(instance$318, props.precedence, hoistableRoot); + return (resource.instance = instance$318); case "script": - instance$317 = getScriptKey(props.src); + instance$318 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$317) + getScriptSelectorFromKey(instance$318) )) ) return ( @@ -16301,7 +16318,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$317))) + if ((styleProps = preloadPropsMap.get(instance$318))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17113,7 +17130,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now$1() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -17304,16 +17321,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1814 = React.version; if ( - "19.0.0-www-modern-1d989965-20240821" !== - isomorphicReactPackageVersion$jscomp$inline_1812 + "19.0.0-www-modern-ee7f6757-20240823" !== + isomorphicReactPackageVersion$jscomp$inline_1814 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1812, - "19.0.0-www-modern-1d989965-20240821" + isomorphicReactPackageVersion$jscomp$inline_1814, + "19.0.0-www-modern-ee7f6757-20240823" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17329,28 +17346,28 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1814 = { +var internals$jscomp$inline_1816 = { bundleType: 0, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1814.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1814.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1816.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1816.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2273 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2284 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2273.isDisabled && - hook$jscomp$inline_2273.supportsFiber + !hook$jscomp$inline_2284.isDisabled && + hook$jscomp$inline_2284.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2273.inject( - internals$jscomp$inline_1814 + (rendererID = hook$jscomp$inline_2284.inject( + internals$jscomp$inline_1816 )), - (injectedHook = hook$jscomp$inline_2273); + (injectedHook = hook$jscomp$inline_2284); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17701,7 +17718,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 7668da7078..edc8eb9866 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -8947,5 +8947,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-classic-1d989965-20240821"; + exports.version = "19.0.0-www-classic-ee7f6757-20240823"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 76b1712a20..4ab0f70bcf 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8767,5 +8767,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-modern-1d989965-20240821"; + exports.version = "19.0.0-www-modern-ee7f6757-20240823"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index d45449cdfe..8c4632c9ff 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5880,4 +5880,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 23cc520111..4675ad8ef4 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5794,4 +5794,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index a7e498b7f8..8732eb0fb1 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -3863,28 +3863,41 @@ __DEV__ && 0 === root.tag && (ReactSharedInternals.didScheduleLegacyUpdate = !0); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -3896,33 +3909,29 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -9177,32 +9186,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2455; - var JSCompiler_object_inline_stack_2456 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2463; + var JSCompiler_object_inline_stack_2464 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2457 = !1; + var JSCompiler_object_inline_componentStack_2465 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2455 = didSuspend) || - (JSCompiler_object_inline_digest_2455 = + (JSCompiler_object_inline_digest_2463 = didSuspend) || + (JSCompiler_object_inline_digest_2463 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2455 && - ((JSCompiler_object_inline_componentStack_2457 = !0), + JSCompiler_object_inline_digest_2463 && + ((JSCompiler_object_inline_componentStack_2465 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2455 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2463 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2457 + JSCompiler_object_inline_componentStack_2465 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2454 = nextHydratableInstance; + var JSCompiler_object_inline_message_2462 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2454)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2462)) { c: { - var instance = JSCompiler_object_inline_message_2454; + var instance = JSCompiler_object_inline_message_2462; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -9243,19 +9252,19 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2454 + JSCompiler_object_inline_message_2462 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2454 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2462 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2454 && - ((JSCompiler_object_inline_message_2454 = - JSCompiler_object_inline_message_2454.dehydrated), - null !== JSCompiler_object_inline_message_2454) + null !== JSCompiler_object_inline_message_2462 && + ((JSCompiler_object_inline_message_2462 = + JSCompiler_object_inline_message_2462.dehydrated), + null !== JSCompiler_object_inline_message_2462) ) return ( - JSCompiler_object_inline_message_2454.data === + JSCompiler_object_inline_message_2462.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -9263,27 +9272,27 @@ __DEV__ && ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2454 = - JSCompiler_object_inline_stack_2456.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2456.fallback; - if (JSCompiler_object_inline_componentStack_2457) + JSCompiler_object_inline_message_2462 = + JSCompiler_object_inline_stack_2464.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2464.fallback; + if (JSCompiler_object_inline_componentStack_2465) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2456 = + (JSCompiler_object_inline_stack_2464 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2454, + JSCompiler_object_inline_message_2462, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2457 = + (JSCompiler_object_inline_componentStack_2465 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2457.memoizedState = + (JSCompiler_object_inline_componentStack_2465.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2457.childLanes = + (JSCompiler_object_inline_componentStack_2465.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2455, + JSCompiler_object_inline_digest_2463, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -9296,9 +9305,9 @@ __DEV__ && ? markerInstanceStack.current : null), (current = - JSCompiler_object_inline_componentStack_2457.updateQueue), + JSCompiler_object_inline_componentStack_2465.updateQueue), null === current - ? (JSCompiler_object_inline_componentStack_2457.updateQueue = + ? (JSCompiler_object_inline_componentStack_2465.updateQueue = { transitions: workInProgress, markerInstances: renderLanes, @@ -9306,46 +9315,46 @@ __DEV__ && }) : ((current.transitions = workInProgress), (current.markerInstances = renderLanes)))), - JSCompiler_object_inline_stack_2456 + JSCompiler_object_inline_stack_2464 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2456.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2464.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2456 = + (JSCompiler_object_inline_stack_2464 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2454, + JSCompiler_object_inline_message_2462, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2457 = + (JSCompiler_object_inline_componentStack_2465 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2457.memoizedState = + (JSCompiler_object_inline_componentStack_2465.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2457.childLanes = + (JSCompiler_object_inline_componentStack_2465.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2455, + JSCompiler_object_inline_digest_2463, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2456 + JSCompiler_object_inline_stack_2464 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2454 + JSCompiler_object_inline_message_2462 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2454 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2454) + ((JSCompiler_object_inline_message_2462 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2462) ) { if (didSuspend) workInProgress.flags & 256 @@ -9362,32 +9371,32 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2457 = - JSCompiler_object_inline_stack_2456.fallback), - (JSCompiler_object_inline_message_2454 = workInProgress.mode), - (JSCompiler_object_inline_stack_2456 = createFiberFromOffscreen( + (JSCompiler_object_inline_componentStack_2465 = + JSCompiler_object_inline_stack_2464.fallback), + (JSCompiler_object_inline_message_2462 = workInProgress.mode), + (JSCompiler_object_inline_stack_2464 = createFiberFromOffscreen( { mode: "visible", - children: JSCompiler_object_inline_stack_2456.children + children: JSCompiler_object_inline_stack_2464.children }, - JSCompiler_object_inline_message_2454, + JSCompiler_object_inline_message_2462, 0, null )), - (JSCompiler_object_inline_componentStack_2457 = + (JSCompiler_object_inline_componentStack_2465 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2457, - JSCompiler_object_inline_message_2454, + JSCompiler_object_inline_componentStack_2465, + JSCompiler_object_inline_message_2462, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2457.flags |= 2), - (JSCompiler_object_inline_stack_2456.return = workInProgress), - (JSCompiler_object_inline_componentStack_2457.return = + (JSCompiler_object_inline_componentStack_2465.flags |= 2), + (JSCompiler_object_inline_stack_2464.return = workInProgress), + (JSCompiler_object_inline_componentStack_2465.return = workInProgress), - (JSCompiler_object_inline_stack_2456.sibling = - JSCompiler_object_inline_componentStack_2457), - (workInProgress.child = JSCompiler_object_inline_stack_2456), + (JSCompiler_object_inline_stack_2464.sibling = + JSCompiler_object_inline_componentStack_2465), + (workInProgress.child = JSCompiler_object_inline_stack_2464), (disableLegacyMode || (workInProgress.mode & ConcurrentMode) !== NoMode) && reconcileChildFibers( @@ -9396,63 +9405,63 @@ __DEV__ && null, renderLanes ), - (JSCompiler_object_inline_stack_2456 = workInProgress.child), - (JSCompiler_object_inline_stack_2456.memoizedState = + (JSCompiler_object_inline_stack_2464 = workInProgress.child), + (JSCompiler_object_inline_stack_2464.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2456.childLanes = + (JSCompiler_object_inline_stack_2464.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2455, + JSCompiler_object_inline_digest_2463, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2457)); + JSCompiler_object_inline_componentStack_2465)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2454.data === + JSCompiler_object_inline_message_2462.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2455 = - JSCompiler_object_inline_message_2454.nextSibling && - JSCompiler_object_inline_message_2454.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2455) { - JSCompiler_temp = JSCompiler_object_inline_digest_2455.dgst; - var message = JSCompiler_object_inline_digest_2455.msg; - instance = JSCompiler_object_inline_digest_2455.stck; - var componentStack = JSCompiler_object_inline_digest_2455.cstck; + JSCompiler_object_inline_digest_2463 = + JSCompiler_object_inline_message_2462.nextSibling && + JSCompiler_object_inline_message_2462.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2463) { + JSCompiler_temp = JSCompiler_object_inline_digest_2463.dgst; + var message = JSCompiler_object_inline_digest_2463.msg; + instance = JSCompiler_object_inline_digest_2463.stck; + var componentStack = JSCompiler_object_inline_digest_2463.cstck; } - JSCompiler_object_inline_message_2454 = message; - JSCompiler_object_inline_digest_2455 = JSCompiler_temp; - JSCompiler_object_inline_stack_2456 = instance; - JSCompiler_object_inline_componentStack_2457 = componentStack; - JSCompiler_object_inline_message_2454 = - JSCompiler_object_inline_message_2454 - ? Error(JSCompiler_object_inline_message_2454) + JSCompiler_object_inline_message_2462 = message; + JSCompiler_object_inline_digest_2463 = JSCompiler_temp; + JSCompiler_object_inline_stack_2464 = instance; + JSCompiler_object_inline_componentStack_2465 = componentStack; + JSCompiler_object_inline_message_2462 = + JSCompiler_object_inline_message_2462 + ? Error(JSCompiler_object_inline_message_2462) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_message_2454.stack = - JSCompiler_object_inline_stack_2456 || ""; - JSCompiler_object_inline_message_2454.digest = - JSCompiler_object_inline_digest_2455; - JSCompiler_object_inline_digest_2455 = - void 0 === JSCompiler_object_inline_componentStack_2457 + JSCompiler_object_inline_message_2462.stack = + JSCompiler_object_inline_stack_2464 || ""; + JSCompiler_object_inline_message_2462.digest = + JSCompiler_object_inline_digest_2463; + JSCompiler_object_inline_digest_2463 = + void 0 === JSCompiler_object_inline_componentStack_2465 ? null - : JSCompiler_object_inline_componentStack_2457; - "string" === typeof JSCompiler_object_inline_digest_2455 && + : JSCompiler_object_inline_componentStack_2465; + "string" === typeof JSCompiler_object_inline_digest_2463 && CapturedStacks.set( - JSCompiler_object_inline_message_2454, - JSCompiler_object_inline_digest_2455 + JSCompiler_object_inline_message_2462, + JSCompiler_object_inline_digest_2463 ); queueHydrationError({ - value: JSCompiler_object_inline_message_2454, + value: JSCompiler_object_inline_message_2462, source: null, - stack: JSCompiler_object_inline_digest_2455 + stack: JSCompiler_object_inline_digest_2463 }); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9467,25 +9476,25 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2455 = + (JSCompiler_object_inline_digest_2463 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2455) + didReceiveUpdate || JSCompiler_object_inline_digest_2463) ) { - JSCompiler_object_inline_digest_2455 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2455) { - JSCompiler_object_inline_stack_2456 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2456 & 42)) - JSCompiler_object_inline_stack_2456 = 1; + JSCompiler_object_inline_digest_2463 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2463) { + JSCompiler_object_inline_stack_2464 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2464 & 42)) + JSCompiler_object_inline_stack_2464 = 1; else - switch (JSCompiler_object_inline_stack_2456) { + switch (JSCompiler_object_inline_stack_2464) { case 2: - JSCompiler_object_inline_stack_2456 = 1; + JSCompiler_object_inline_stack_2464 = 1; break; case 8: - JSCompiler_object_inline_stack_2456 = 4; + JSCompiler_object_inline_stack_2464 = 4; break; case 32: - JSCompiler_object_inline_stack_2456 = 16; + JSCompiler_object_inline_stack_2464 = 16; break; case 128: case 256: @@ -9506,40 +9515,40 @@ __DEV__ && case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2456 = 64; + JSCompiler_object_inline_stack_2464 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2456 = 134217728; + JSCompiler_object_inline_stack_2464 = 134217728; break; default: - JSCompiler_object_inline_stack_2456 = 0; + JSCompiler_object_inline_stack_2464 = 0; } - JSCompiler_object_inline_stack_2456 = + JSCompiler_object_inline_stack_2464 = 0 !== - (JSCompiler_object_inline_stack_2456 & - (JSCompiler_object_inline_digest_2455.suspendedLanes | + (JSCompiler_object_inline_stack_2464 & + (JSCompiler_object_inline_digest_2463.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2456; + : JSCompiler_object_inline_stack_2464; if ( - 0 !== JSCompiler_object_inline_stack_2456 && - JSCompiler_object_inline_stack_2456 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2464 && + JSCompiler_object_inline_stack_2464 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2456), + ((prevState.retryLane = JSCompiler_object_inline_stack_2464), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2456 + JSCompiler_object_inline_stack_2464 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2455, + JSCompiler_object_inline_digest_2463, current, - JSCompiler_object_inline_stack_2456 + JSCompiler_object_inline_stack_2464 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2454.data === + JSCompiler_object_inline_message_2462.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9547,7 +9556,7 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2454.data === + JSCompiler_object_inline_message_2462.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9555,12 +9564,12 @@ __DEV__ && null, current )), - (JSCompiler_object_inline_message_2454._reactRetry = + (JSCompiler_object_inline_message_2462._reactRetry = workInProgress), (workInProgress = null)) : ((renderLanes = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2454.nextSibling + JSCompiler_object_inline_message_2462.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9578,73 +9587,73 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2456.children + JSCompiler_object_inline_stack_2464.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2457) + if (JSCompiler_object_inline_componentStack_2465) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2457 = - JSCompiler_object_inline_stack_2456.fallback), - (JSCompiler_object_inline_message_2454 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2465 = + JSCompiler_object_inline_stack_2464.fallback), + (JSCompiler_object_inline_message_2462 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), (componentStack = { mode: "hidden", - children: JSCompiler_object_inline_stack_2456.children + children: JSCompiler_object_inline_stack_2464.children }), disableLegacyMode || - (JSCompiler_object_inline_message_2454 & ConcurrentMode) !== NoMode || + (JSCompiler_object_inline_message_2462 & ConcurrentMode) !== NoMode || workInProgress.child === JSCompiler_temp - ? ((JSCompiler_object_inline_stack_2456 = createWorkInProgress( + ? ((JSCompiler_object_inline_stack_2464 = createWorkInProgress( JSCompiler_temp, componentStack )), - (JSCompiler_object_inline_stack_2456.subtreeFlags = + (JSCompiler_object_inline_stack_2464.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)) - : ((JSCompiler_object_inline_stack_2456 = workInProgress.child), - (JSCompiler_object_inline_stack_2456.childLanes = 0), - (JSCompiler_object_inline_stack_2456.pendingProps = + : ((JSCompiler_object_inline_stack_2464 = workInProgress.child), + (JSCompiler_object_inline_stack_2464.childLanes = 0), + (JSCompiler_object_inline_stack_2464.pendingProps = componentStack), workInProgress.mode & ProfileMode && - ((JSCompiler_object_inline_stack_2456.actualDuration = 0), - (JSCompiler_object_inline_stack_2456.actualStartTime = -1), - (JSCompiler_object_inline_stack_2456.selfBaseDuration = + ((JSCompiler_object_inline_stack_2464.actualDuration = 0), + (JSCompiler_object_inline_stack_2464.actualStartTime = -1), + (JSCompiler_object_inline_stack_2464.selfBaseDuration = JSCompiler_temp.selfBaseDuration), - (JSCompiler_object_inline_stack_2456.treeBaseDuration = + (JSCompiler_object_inline_stack_2464.treeBaseDuration = JSCompiler_temp.treeBaseDuration)), (workInProgress.deletions = null)), null !== instance - ? (JSCompiler_object_inline_componentStack_2457 = + ? (JSCompiler_object_inline_componentStack_2465 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2457 + JSCompiler_object_inline_componentStack_2465 )) - : ((JSCompiler_object_inline_componentStack_2457 = + : ((JSCompiler_object_inline_componentStack_2465 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2457, - JSCompiler_object_inline_message_2454, + JSCompiler_object_inline_componentStack_2465, + JSCompiler_object_inline_message_2462, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2457.flags |= 2)), - (JSCompiler_object_inline_componentStack_2457.return = + (JSCompiler_object_inline_componentStack_2465.flags |= 2)), + (JSCompiler_object_inline_componentStack_2465.return = workInProgress), - (JSCompiler_object_inline_stack_2456.return = workInProgress), - (JSCompiler_object_inline_stack_2456.sibling = - JSCompiler_object_inline_componentStack_2457), - (workInProgress.child = JSCompiler_object_inline_stack_2456), - (JSCompiler_object_inline_stack_2456 = - JSCompiler_object_inline_componentStack_2457), - (JSCompiler_object_inline_componentStack_2457 = workInProgress.child), - (JSCompiler_object_inline_message_2454 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2454 - ? (JSCompiler_object_inline_message_2454 = + (JSCompiler_object_inline_stack_2464.return = workInProgress), + (JSCompiler_object_inline_stack_2464.sibling = + JSCompiler_object_inline_componentStack_2465), + (workInProgress.child = JSCompiler_object_inline_stack_2464), + (JSCompiler_object_inline_stack_2464 = + JSCompiler_object_inline_componentStack_2465), + (JSCompiler_object_inline_componentStack_2465 = workInProgress.child), + (JSCompiler_object_inline_message_2462 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2462 + ? (JSCompiler_object_inline_message_2462 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2454.cachePool), + JSCompiler_object_inline_message_2462.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9652,34 +9661,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2454 = { + (JSCompiler_object_inline_message_2462 = { baseLanes: - JSCompiler_object_inline_message_2454.baseLanes | renderLanes, + JSCompiler_object_inline_message_2462.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2457.memoizedState = - JSCompiler_object_inline_message_2454), + (JSCompiler_object_inline_componentStack_2465.memoizedState = + JSCompiler_object_inline_message_2462), enableTransitionTracing && - ((JSCompiler_object_inline_message_2454 = enableTransitionTracing + ((JSCompiler_object_inline_message_2462 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2454 && + null !== JSCompiler_object_inline_message_2462 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2457.updateQueue), + JSCompiler_object_inline_componentStack_2465.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2457.updateQueue = { - transitions: JSCompiler_object_inline_message_2454, + ? (JSCompiler_object_inline_componentStack_2465.updateQueue = { + transitions: JSCompiler_object_inline_message_2462, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2457.updateQueue = + ? (JSCompiler_object_inline_componentStack_2465.updateQueue = { - transitions: JSCompiler_object_inline_message_2454, + transitions: JSCompiler_object_inline_message_2462, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9687,41 +9696,41 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2454), + JSCompiler_object_inline_message_2462), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2457.childLanes = + (JSCompiler_object_inline_componentStack_2465.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2455, + JSCompiler_object_inline_digest_2463, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2456 + JSCompiler_object_inline_stack_2464 ); pushPrimaryTreeSuspenseHandler(workInProgress); - JSCompiler_object_inline_digest_2455 = current.child; - current = JSCompiler_object_inline_digest_2455.sibling; - JSCompiler_object_inline_digest_2455 = createWorkInProgress( - JSCompiler_object_inline_digest_2455, + JSCompiler_object_inline_digest_2463 = current.child; + current = JSCompiler_object_inline_digest_2463.sibling; + JSCompiler_object_inline_digest_2463 = createWorkInProgress( + JSCompiler_object_inline_digest_2463, { mode: "visible", - children: JSCompiler_object_inline_stack_2456.children + children: JSCompiler_object_inline_stack_2464.children } ); disableLegacyMode || (workInProgress.mode & ConcurrentMode) !== NoMode || - (JSCompiler_object_inline_digest_2455.lanes = renderLanes); - JSCompiler_object_inline_digest_2455.return = workInProgress; - JSCompiler_object_inline_digest_2455.sibling = null; + (JSCompiler_object_inline_digest_2463.lanes = renderLanes); + JSCompiler_object_inline_digest_2463.return = workInProgress; + JSCompiler_object_inline_digest_2463.sibling = null; null !== current && ((renderLanes = workInProgress.deletions), null === renderLanes ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) : renderLanes.push(current)); - workInProgress.child = JSCompiler_object_inline_digest_2455; + workInProgress.child = JSCompiler_object_inline_digest_2463; workInProgress.memoizedState = null; - return JSCompiler_object_inline_digest_2455; + return JSCompiler_object_inline_digest_2463; } function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { primaryChildren = createFiberFromOffscreen( @@ -15800,7 +15809,7 @@ __DEV__ && (fiber.mode & ConcurrentMode) !== NoMode || ReactSharedInternals.isBatchingLegacy || ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -16139,12 +16148,12 @@ __DEV__ && executionContext !== NoContext || ReactSharedInternals.isBatchingLegacy || ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function flushSyncWork$1() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -16903,7 +16912,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { @@ -17021,7 +17030,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root, !0); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -23626,7 +23635,7 @@ __DEV__ && NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -23906,7 +23915,7 @@ __DEV__ && (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), (executionContext & (RenderContext | CommitContext)) === - NoContext && flushSyncWorkAcrossRoots_impl(!1); + NoContext && flushSyncWorkAcrossRoots_impl(0, !1); } JSCompiler_inline_result = void 0; } @@ -27862,11 +27871,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-1d989965-20240821" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-ee7f6757-20240823" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-1d989965-20240821\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-ee7f6757-20240823\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27910,11 +27919,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28733,5 +28742,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-1d989965-20240821"; + exports.version = "19.0.0-www-classic-ee7f6757-20240823"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 8f88221d2b..247fecc251 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -3730,28 +3730,41 @@ __DEV__ && enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now$1()); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -3763,33 +3776,29 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -8862,32 +8871,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2467; - var JSCompiler_object_inline_stack_2468 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2475; + var JSCompiler_object_inline_stack_2476 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2469 = !1; + var JSCompiler_object_inline_componentStack_2477 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2467 = didSuspend) || - (JSCompiler_object_inline_digest_2467 = + (JSCompiler_object_inline_digest_2475 = didSuspend) || + (JSCompiler_object_inline_digest_2475 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2467 && - ((JSCompiler_object_inline_componentStack_2469 = !0), + JSCompiler_object_inline_digest_2475 && + ((JSCompiler_object_inline_componentStack_2477 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2467 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2475 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2469 + JSCompiler_object_inline_componentStack_2477 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2466 = nextHydratableInstance; + var JSCompiler_object_inline_message_2474 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2466)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2474)) { c: { - var instance = JSCompiler_object_inline_message_2466; + var instance = JSCompiler_object_inline_message_2474; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -8928,19 +8937,19 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2466 + JSCompiler_object_inline_message_2474 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2466 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2474 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2466 && - ((JSCompiler_object_inline_message_2466 = - JSCompiler_object_inline_message_2466.dehydrated), - null !== JSCompiler_object_inline_message_2466) + null !== JSCompiler_object_inline_message_2474 && + ((JSCompiler_object_inline_message_2474 = + JSCompiler_object_inline_message_2474.dehydrated), + null !== JSCompiler_object_inline_message_2474) ) return ( - JSCompiler_object_inline_message_2466.data === + JSCompiler_object_inline_message_2474.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8948,27 +8957,27 @@ __DEV__ && ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2466 = - JSCompiler_object_inline_stack_2468.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2468.fallback; - if (JSCompiler_object_inline_componentStack_2469) + JSCompiler_object_inline_message_2474 = + JSCompiler_object_inline_stack_2476.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2476.fallback; + if (JSCompiler_object_inline_componentStack_2477) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2468 = + (JSCompiler_object_inline_stack_2476 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2466, + JSCompiler_object_inline_message_2474, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2469 = + (JSCompiler_object_inline_componentStack_2477 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2469.memoizedState = + (JSCompiler_object_inline_componentStack_2477.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2469.childLanes = + (JSCompiler_object_inline_componentStack_2477.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2467, + JSCompiler_object_inline_digest_2475, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -8981,9 +8990,9 @@ __DEV__ && ? markerInstanceStack.current : null), (renderLanes = - JSCompiler_object_inline_componentStack_2469.updateQueue), + JSCompiler_object_inline_componentStack_2477.updateQueue), null === renderLanes - ? (JSCompiler_object_inline_componentStack_2469.updateQueue = + ? (JSCompiler_object_inline_componentStack_2477.updateQueue = { transitions: workInProgress, markerInstances: current, @@ -8991,46 +9000,46 @@ __DEV__ && }) : ((renderLanes.transitions = workInProgress), (renderLanes.markerInstances = current)))), - JSCompiler_object_inline_stack_2468 + JSCompiler_object_inline_stack_2476 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2468.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2476.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2468 = + (JSCompiler_object_inline_stack_2476 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2466, + JSCompiler_object_inline_message_2474, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2469 = + (JSCompiler_object_inline_componentStack_2477 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2469.memoizedState = + (JSCompiler_object_inline_componentStack_2477.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2469.childLanes = + (JSCompiler_object_inline_componentStack_2477.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2467, + JSCompiler_object_inline_digest_2475, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2468 + JSCompiler_object_inline_stack_2476 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2466 + JSCompiler_object_inline_message_2474 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2466 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2466) + ((JSCompiler_object_inline_message_2474 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2474) ) { if (didSuspend) workInProgress.flags & 256 @@ -9047,94 +9056,94 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2469 = - JSCompiler_object_inline_stack_2468.fallback), - (JSCompiler_object_inline_message_2466 = workInProgress.mode), - (JSCompiler_object_inline_stack_2468 = + (JSCompiler_object_inline_componentStack_2477 = + JSCompiler_object_inline_stack_2476.fallback), + (JSCompiler_object_inline_message_2474 = workInProgress.mode), + (JSCompiler_object_inline_stack_2476 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2468.children + children: JSCompiler_object_inline_stack_2476.children }, - JSCompiler_object_inline_message_2466 + JSCompiler_object_inline_message_2474 )), - (JSCompiler_object_inline_componentStack_2469 = + (JSCompiler_object_inline_componentStack_2477 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2469, - JSCompiler_object_inline_message_2466, + JSCompiler_object_inline_componentStack_2477, + JSCompiler_object_inline_message_2474, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2469.flags |= 2), - (JSCompiler_object_inline_stack_2468.return = workInProgress), - (JSCompiler_object_inline_componentStack_2469.return = + (JSCompiler_object_inline_componentStack_2477.flags |= 2), + (JSCompiler_object_inline_stack_2476.return = workInProgress), + (JSCompiler_object_inline_componentStack_2477.return = workInProgress), - (JSCompiler_object_inline_stack_2468.sibling = - JSCompiler_object_inline_componentStack_2469), - (workInProgress.child = JSCompiler_object_inline_stack_2468), + (JSCompiler_object_inline_stack_2476.sibling = + JSCompiler_object_inline_componentStack_2477), + (workInProgress.child = JSCompiler_object_inline_stack_2476), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2468 = workInProgress.child), - (JSCompiler_object_inline_stack_2468.memoizedState = + (JSCompiler_object_inline_stack_2476 = workInProgress.child), + (JSCompiler_object_inline_stack_2476.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2468.childLanes = + (JSCompiler_object_inline_stack_2476.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2467, + JSCompiler_object_inline_digest_2475, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2469)); + JSCompiler_object_inline_componentStack_2477)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2466.data === + JSCompiler_object_inline_message_2474.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2467 = - JSCompiler_object_inline_message_2466.nextSibling && - JSCompiler_object_inline_message_2466.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2467) { - JSCompiler_temp = JSCompiler_object_inline_digest_2467.dgst; - var message = JSCompiler_object_inline_digest_2467.msg; - instance = JSCompiler_object_inline_digest_2467.stck; - var componentStack = JSCompiler_object_inline_digest_2467.cstck; + JSCompiler_object_inline_digest_2475 = + JSCompiler_object_inline_message_2474.nextSibling && + JSCompiler_object_inline_message_2474.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2475) { + JSCompiler_temp = JSCompiler_object_inline_digest_2475.dgst; + var message = JSCompiler_object_inline_digest_2475.msg; + instance = JSCompiler_object_inline_digest_2475.stck; + var componentStack = JSCompiler_object_inline_digest_2475.cstck; } - JSCompiler_object_inline_message_2466 = message; - JSCompiler_object_inline_digest_2467 = JSCompiler_temp; - JSCompiler_object_inline_stack_2468 = instance; - JSCompiler_object_inline_componentStack_2469 = componentStack; - JSCompiler_object_inline_message_2466 = - JSCompiler_object_inline_message_2466 - ? Error(JSCompiler_object_inline_message_2466) + JSCompiler_object_inline_message_2474 = message; + JSCompiler_object_inline_digest_2475 = JSCompiler_temp; + JSCompiler_object_inline_stack_2476 = instance; + JSCompiler_object_inline_componentStack_2477 = componentStack; + JSCompiler_object_inline_message_2474 = + JSCompiler_object_inline_message_2474 + ? Error(JSCompiler_object_inline_message_2474) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_message_2466.stack = - JSCompiler_object_inline_stack_2468 || ""; - JSCompiler_object_inline_message_2466.digest = - JSCompiler_object_inline_digest_2467; - JSCompiler_object_inline_digest_2467 = - void 0 === JSCompiler_object_inline_componentStack_2469 + JSCompiler_object_inline_message_2474.stack = + JSCompiler_object_inline_stack_2476 || ""; + JSCompiler_object_inline_message_2474.digest = + JSCompiler_object_inline_digest_2475; + JSCompiler_object_inline_digest_2475 = + void 0 === JSCompiler_object_inline_componentStack_2477 ? null - : JSCompiler_object_inline_componentStack_2469; - "string" === typeof JSCompiler_object_inline_digest_2467 && + : JSCompiler_object_inline_componentStack_2477; + "string" === typeof JSCompiler_object_inline_digest_2475 && CapturedStacks.set( - JSCompiler_object_inline_message_2466, - JSCompiler_object_inline_digest_2467 + JSCompiler_object_inline_message_2474, + JSCompiler_object_inline_digest_2475 ); queueHydrationError({ - value: JSCompiler_object_inline_message_2466, + value: JSCompiler_object_inline_message_2474, source: null, - stack: JSCompiler_object_inline_digest_2467 + stack: JSCompiler_object_inline_digest_2475 }); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9149,25 +9158,25 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2467 = + (JSCompiler_object_inline_digest_2475 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2467) + didReceiveUpdate || JSCompiler_object_inline_digest_2475) ) { - JSCompiler_object_inline_digest_2467 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2467) { - JSCompiler_object_inline_stack_2468 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2468 & 42)) - JSCompiler_object_inline_stack_2468 = 1; + JSCompiler_object_inline_digest_2475 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2475) { + JSCompiler_object_inline_stack_2476 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2476 & 42)) + JSCompiler_object_inline_stack_2476 = 1; else - switch (JSCompiler_object_inline_stack_2468) { + switch (JSCompiler_object_inline_stack_2476) { case 2: - JSCompiler_object_inline_stack_2468 = 1; + JSCompiler_object_inline_stack_2476 = 1; break; case 8: - JSCompiler_object_inline_stack_2468 = 4; + JSCompiler_object_inline_stack_2476 = 4; break; case 32: - JSCompiler_object_inline_stack_2468 = 16; + JSCompiler_object_inline_stack_2476 = 16; break; case 128: case 256: @@ -9188,40 +9197,40 @@ __DEV__ && case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2468 = 64; + JSCompiler_object_inline_stack_2476 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2468 = 134217728; + JSCompiler_object_inline_stack_2476 = 134217728; break; default: - JSCompiler_object_inline_stack_2468 = 0; + JSCompiler_object_inline_stack_2476 = 0; } - JSCompiler_object_inline_stack_2468 = + JSCompiler_object_inline_stack_2476 = 0 !== - (JSCompiler_object_inline_stack_2468 & - (JSCompiler_object_inline_digest_2467.suspendedLanes | + (JSCompiler_object_inline_stack_2476 & + (JSCompiler_object_inline_digest_2475.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2468; + : JSCompiler_object_inline_stack_2476; if ( - 0 !== JSCompiler_object_inline_stack_2468 && - JSCompiler_object_inline_stack_2468 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2476 && + JSCompiler_object_inline_stack_2476 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2468), + ((prevState.retryLane = JSCompiler_object_inline_stack_2476), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2468 + JSCompiler_object_inline_stack_2476 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2467, + JSCompiler_object_inline_digest_2475, current, - JSCompiler_object_inline_stack_2468 + JSCompiler_object_inline_stack_2476 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2466.data === + JSCompiler_object_inline_message_2474.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9229,7 +9238,7 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2466.data === + JSCompiler_object_inline_message_2474.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9237,12 +9246,12 @@ __DEV__ && null, current )), - (JSCompiler_object_inline_message_2466._reactRetry = + (JSCompiler_object_inline_message_2474._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2466.nextSibling + JSCompiler_object_inline_message_2474.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9260,57 +9269,57 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2468.children + JSCompiler_object_inline_stack_2476.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2469) + if (JSCompiler_object_inline_componentStack_2477) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2469 = - JSCompiler_object_inline_stack_2468.fallback), - (JSCompiler_object_inline_message_2466 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2477 = + JSCompiler_object_inline_stack_2476.fallback), + (JSCompiler_object_inline_message_2474 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2468 = createWorkInProgress( + (JSCompiler_object_inline_stack_2476 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2468.children + children: JSCompiler_object_inline_stack_2476.children } )), - (JSCompiler_object_inline_stack_2468.subtreeFlags = + (JSCompiler_object_inline_stack_2476.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2469 = + ? (JSCompiler_object_inline_componentStack_2477 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2469 + JSCompiler_object_inline_componentStack_2477 )) - : ((JSCompiler_object_inline_componentStack_2469 = + : ((JSCompiler_object_inline_componentStack_2477 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2469, - JSCompiler_object_inline_message_2466, + JSCompiler_object_inline_componentStack_2477, + JSCompiler_object_inline_message_2474, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2469.flags |= 2)), - (JSCompiler_object_inline_componentStack_2469.return = + (JSCompiler_object_inline_componentStack_2477.flags |= 2)), + (JSCompiler_object_inline_componentStack_2477.return = workInProgress), - (JSCompiler_object_inline_stack_2468.return = workInProgress), - (JSCompiler_object_inline_stack_2468.sibling = - JSCompiler_object_inline_componentStack_2469), - (workInProgress.child = JSCompiler_object_inline_stack_2468), - (JSCompiler_object_inline_stack_2468 = - JSCompiler_object_inline_componentStack_2469), - (JSCompiler_object_inline_componentStack_2469 = workInProgress.child), - (JSCompiler_object_inline_message_2466 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2466 - ? (JSCompiler_object_inline_message_2466 = + (JSCompiler_object_inline_stack_2476.return = workInProgress), + (JSCompiler_object_inline_stack_2476.sibling = + JSCompiler_object_inline_componentStack_2477), + (workInProgress.child = JSCompiler_object_inline_stack_2476), + (JSCompiler_object_inline_stack_2476 = + JSCompiler_object_inline_componentStack_2477), + (JSCompiler_object_inline_componentStack_2477 = workInProgress.child), + (JSCompiler_object_inline_message_2474 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2474 + ? (JSCompiler_object_inline_message_2474 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2466.cachePool), + JSCompiler_object_inline_message_2474.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9318,34 +9327,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2466 = { + (JSCompiler_object_inline_message_2474 = { baseLanes: - JSCompiler_object_inline_message_2466.baseLanes | renderLanes, + JSCompiler_object_inline_message_2474.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2469.memoizedState = - JSCompiler_object_inline_message_2466), + (JSCompiler_object_inline_componentStack_2477.memoizedState = + JSCompiler_object_inline_message_2474), enableTransitionTracing && - ((JSCompiler_object_inline_message_2466 = enableTransitionTracing + ((JSCompiler_object_inline_message_2474 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2466 && + null !== JSCompiler_object_inline_message_2474 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2469.updateQueue), + JSCompiler_object_inline_componentStack_2477.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2469.updateQueue = { - transitions: JSCompiler_object_inline_message_2466, + ? (JSCompiler_object_inline_componentStack_2477.updateQueue = { + transitions: JSCompiler_object_inline_message_2474, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2469.updateQueue = + ? (JSCompiler_object_inline_componentStack_2477.updateQueue = { - transitions: JSCompiler_object_inline_message_2466, + transitions: JSCompiler_object_inline_message_2474, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9353,32 +9362,32 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2466), + JSCompiler_object_inline_message_2474), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2469.childLanes = + (JSCompiler_object_inline_componentStack_2477.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2467, + JSCompiler_object_inline_digest_2475, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2468 + JSCompiler_object_inline_stack_2476 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2468.children + children: JSCompiler_object_inline_stack_2476.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2467 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2467 + ((JSCompiler_object_inline_digest_2475 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2475 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2467.push(current)); + : JSCompiler_object_inline_digest_2475.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -15580,7 +15589,7 @@ __DEV__ && } function flushSyncWork$1() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -16333,7 +16342,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { @@ -16451,7 +16460,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -22900,7 +22909,7 @@ __DEV__ && NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -26947,11 +26956,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-1d989965-20240821" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-ee7f6757-20240823" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-1d989965-20240821\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-ee7f6757-20240823\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26994,11 +27003,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27769,5 +27778,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-1d989965-20240821"; + exports.version = "19.0.0-www-modern-ee7f6757-20240823"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index cb8d87c3e2..8edcf7aec6 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -2007,24 +2007,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root$26.tag)) { - var workInProgressRootRenderLanes$28 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$28 = getNextLanes( - root$26, - root$26 === workInProgressRoot - ? workInProgressRootRenderLanes$28 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$28 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, workInProgressRootRenderLanes$28)); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root$26.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$26.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$26.suspendedLanes, + pingedLanes = root$26.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$26, + root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); root$26 = root$26.next; } } while (didPerformSomeWork); @@ -2033,30 +2051,29 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -2327,20 +2344,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$30 = workInProgress$jscomp$0.alternate; - null !== current$30 && - ((current$30 = current$30.updateQueue), - (pendingQueue = current$30.lastBaseUpdate), + var current$31 = workInProgress$jscomp$0.alternate; + null !== current$31 && + ((current$31 = current$31.updateQueue), + (pendingQueue = current$31.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$30.firstBaseUpdate = firstPendingUpdate) + ? (current$31.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$30.lastBaseUpdate = lastPendingUpdate))); + (current$31.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$30 = firstPendingUpdate = lastPendingUpdate = null; + current$31 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2353,8 +2370,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$30 && - (current$30 = current$30.next = + null !== current$31 && + (current$31 = current$31.next = { lane: 0, tag: pendingQueue.tag, @@ -2407,10 +2424,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$30 - ? ((firstPendingUpdate = current$30 = isHiddenUpdate), + null === current$31 + ? ((firstPendingUpdate = current$31 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$30 = current$30.next = isHiddenUpdate), + : (current$31 = current$31.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2423,10 +2440,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$30 && (lastPendingUpdate = newState); + null === current$31 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$30; + queue.lastBaseUpdate = current$31; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3305,9 +3322,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$65 = fiber.alternate; - null !== current$65 && - null !== current$65.memoizedState && + var current$66 = fiber.alternate; + null !== current$66 && + null !== current$66.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3577,16 +3594,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$67 = currentlyRenderingFiber$1.alternate; - null !== current$67 && - ((current$67 = current$67.updateQueue), - null !== current$67 && - ((current$67 = current$67.memoCache), - null != current$67 && + var current$68 = currentlyRenderingFiber$1.alternate; + null !== current$68 && + ((current$68 = current$68.updateQueue), + null !== current$68 && + ((current$68 = current$68.memoCache), + null != current$68 && (memoCache = { data: enableNoCloningMemoCache - ? current$67.data - : current$67.data.map(function (array) { + ? current$68.data + : current$68.data.map(function (array) { return array.slice(); }), index: 0 @@ -3601,11 +3618,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$67 = 0; - current$67 < size; - current$67++ + current$68 = 0; + current$68 < size; + current$68++ ) - updateQueue[current$67] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3638,7 +3655,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$68 = !1; + didReadFromEntangledAsyncAction$69 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3659,11 +3676,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); continue; } else (updateLane = { @@ -3709,7 +3726,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$68 && + didReadFromEntangledAsyncAction$69 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3907,8 +3924,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$74) { - onActionError(actionQueue, node, error$74); + } catch (error$75) { + onActionError(actionQueue, node, error$75); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4357,14 +4374,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$77 = enqueueUpdate(provider, fiber, lane); - null !== root$77 && - (scheduleUpdateOnFiber(root$77, provider, lane), - entangleTransitions(root$77, provider, lane)); + var root$78 = enqueueUpdate(provider, fiber, lane); + null !== root$78 && + (scheduleUpdateOnFiber(root$78, provider, lane), + entangleTransitions(root$78, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$77 && + null !== root$78 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4963,9 +4980,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$81 in Component) - void 0 === newProps[propName$81] && - (newProps[propName$81] = Component[propName$81]); + for (var propName$82 in Component) + void 0 === newProps[propName$82] && + (newProps[propName$82] = Component[propName$82]); } return newProps; } @@ -5407,10 +5424,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$95 = workInProgress.stateNode; + root$96 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$95.incompleteTransitions.has(transition)) { + if (!root$96.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5418,11 +5435,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$95.incompleteTransitions.set(transition, markerInstance); + root$96.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$95.incompleteTransitions.forEach(function (markerInstance) { + root$96.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7815,14 +7832,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$137 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$137 = lastTailNode), + for (var lastTailNode$138 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$138 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$137 + null === lastTailNode$138 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$137.sibling = null); + : (lastTailNode$138.sibling = null); } } function bubbleProperties(completedWork) { @@ -7832,19 +7849,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$138 = completedWork.child; null !== child$138; ) - (newChildLanes |= child$138.lanes | child$138.childLanes), - (subtreeFlags |= child$138.subtreeFlags & 31457280), - (subtreeFlags |= child$138.flags & 31457280), - (child$138.return = completedWork), - (child$138 = child$138.sibling); + for (var child$139 = completedWork.child; null !== child$139; ) + (newChildLanes |= child$139.lanes | child$139.childLanes), + (subtreeFlags |= child$139.subtreeFlags & 31457280), + (subtreeFlags |= child$139.flags & 31457280), + (child$139.return = completedWork), + (child$139 = child$139.sibling); else - for (child$138 = completedWork.child; null !== child$138; ) - (newChildLanes |= child$138.lanes | child$138.childLanes), - (subtreeFlags |= child$138.subtreeFlags), - (subtreeFlags |= child$138.flags), - (child$138.return = completedWork), - (child$138 = child$138.sibling); + for (child$139 = completedWork.child; null !== child$139; ) + (newChildLanes |= child$139.lanes | child$139.childLanes), + (subtreeFlags |= child$139.subtreeFlags), + (subtreeFlags |= child$139.flags), + (child$139.return = completedWork), + (child$139 = child$139.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -8141,11 +8158,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$150 = null; + var cache$151 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$150 = newProps.memoizedState.cachePool.pool); - cache$150 !== type && (newProps.flags |= 2048); + (cache$151 = newProps.memoizedState.cachePool.pool); + cache$151 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -8184,8 +8201,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$150 = type.rendering; - if (null === cache$150) + cache$151 = type.rendering; + if (null === cache$151) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -8193,11 +8210,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$150 = findFirstSuspended(current); - if (null !== cache$150) { + cache$151 = findFirstSuspended(current); + if (null !== cache$151) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$150.updateQueue; + current = cache$151.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8222,7 +8239,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$150)), null !== current)) { + if (((current = findFirstSuspended(cache$151)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8232,7 +8249,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$150.alternate && + !cache$151.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8245,13 +8262,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$150.sibling = workInProgress.child), - (workInProgress.child = cache$150)) + ? ((cache$151.sibling = workInProgress.child), + (workInProgress.child = cache$151)) : ((current = type.last), null !== current - ? (current.sibling = cache$150) - : (workInProgress.child = cache$150), - (type.last = cache$150)); + ? (current.sibling = cache$151) + : (workInProgress.child = cache$151), + (type.last = cache$151)); } if (null !== type.tail) return ( @@ -8536,8 +8553,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$168) { - captureCommitPhaseError(current, nearestMountedAncestor, error$168); + } catch (error$169) { + captureCommitPhaseError(current, nearestMountedAncestor, error$169); } else ref.current = null; } @@ -8574,7 +8591,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$229) { + } catch (e$230) { JSCompiler_temp = null; break a; } @@ -8844,11 +8861,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$170) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$170 + error$171 ); } } @@ -9395,19 +9412,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$182 = finishedWork.alternate; + var current$183 = finishedWork.alternate; if ( - null !== current$182 && - ((current$182 = current$182.memoizedState), - null !== current$182 && - ((current$182 = current$182.dehydrated), null !== current$182)) + null !== current$183 && + ((current$183 = current$183.memoizedState), + null !== current$183 && + ((current$183 = current$183.dehydrated), null !== current$183)) ) try { - retryIfBlockedOn(current$182); + retryIfBlockedOn(current$183); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$182); + onHydrated && onHydrated(current$183); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9525,8 +9542,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$185) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$185); } } break; @@ -9699,11 +9716,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$185) { + } catch (error$186) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$185 + error$186 ); } break; @@ -9740,8 +9757,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$186) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$186); + } catch (error$187) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$187); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9751,8 +9768,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$188) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$188); + } catch (error$189) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$189); } } flags & 1024 && (needsFormReset = !0); @@ -9767,8 +9784,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$190) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$190); } } break; @@ -9782,8 +9799,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$190) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$190); + } catch (error$191) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$191); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9815,8 +9832,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$192) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$192); + } catch (error$193) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$193); } flags = finishedWork.updateQueue; null !== flags && @@ -9894,11 +9911,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$173) { + } catch (error$174) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$173 + error$174 ); } } else if ( @@ -9973,21 +9990,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$174 = JSCompiler_inline_result.stateNode; + var parent$175 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$174, ""), + (setTextContent(parent$175, ""), (JSCompiler_inline_result.flags &= -33)); - var before$175 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$175, parent$174); + var before$176 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$176, parent$175); break; case 3: case 4: - var parent$176 = JSCompiler_inline_result.stateNode.containerInfo, - before$177 = getHostSibling(finishedWork); + var parent$177 = JSCompiler_inline_result.stateNode.containerInfo, + before$178 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$177, - parent$176 + before$178, + parent$177 ); break; default: @@ -10063,7 +10080,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$196 = parentFiber.alternate, + var current$197 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10091,16 +10108,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$196 = finishedWork.updateQueue; - if (null !== current$196) { - var hiddenCallbacks = current$196.shared.hiddenCallbacks; + current$197 = finishedWork.updateQueue; + if (null !== current$197) { + var hiddenCallbacks = current$197.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$196.shared.hiddenCallbacks = null, current$196 = 0; - current$196 < hiddenCallbacks.length; - current$196++ + current$197.shared.hiddenCallbacks = null, current$197 = 0; + current$197 < hiddenCallbacks.length; + current$197++ ) - callCallback(hiddenCallbacks[current$196], finishedRoot); + callCallback(hiddenCallbacks[current$197], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10116,7 +10133,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$196 && + null === current$197 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10463,9 +10480,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$203 = finishedWork.stateNode; + var instance$204 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$203._visibility & 4 + ? instance$204._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10478,7 +10495,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$203._visibility |= 4), + : ((instance$204._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10486,7 +10503,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$203._visibility |= 4), + : ((instance$204._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10499,7 +10516,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$203 + instance$204 ); break; case 24: @@ -10839,12 +10856,12 @@ function findFiberRootForHostRoot(hostRoot) { a: { hostRoot = [hostRoot]; for (maybeFiber = 0; maybeFiber < hostRoot.length; ) { - var current$298 = hostRoot[maybeFiber++]; - if (current$298[internalContainerInstanceKey]) { - hostRoot = getInstanceFromNode(current$298); + var current$299 = hostRoot[maybeFiber++]; + if (current$299[internalContainerInstanceKey]) { + hostRoot = getInstanceFromNode(current$299); break a; } - hostRoot.push.apply(hostRoot, current$298.children); + hostRoot.push.apply(hostRoot, current$299.children); } hostRoot = null; } @@ -11171,7 +11188,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) { disableLegacyMode || 0 !== (fiber.mode & 1) || ((workInProgressRootRenderTargetTime = now() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -11486,12 +11503,12 @@ function batchedUpdates$1(fn, a) { (executionContext = prevExecutionContext), 0 === executionContext && ((workInProgressRootRenderTargetTime = now() + 500), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function flushSyncWork$1() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -11652,8 +11669,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$215) { - handleThrow(root, thrownValue$215); + } catch (thrownValue$216) { + handleThrow(root, thrownValue$216); } while (1); lanes && root.shellSuspendCounter++; @@ -11762,8 +11779,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$217) { - handleThrow(root, thrownValue$217); + } catch (thrownValue$218) { + handleThrow(root, thrownValue$218); } while (1); resetContextDependencies(); @@ -11988,12 +12005,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$223 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$224 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$223 && + shouldFireAfterActiveInstanceBlur$224 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -12037,7 +12054,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; null !== prevRootTransitionCallbacks && @@ -12065,7 +12082,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$224 = rootWithPendingPassiveEffects, + var root$225 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12080,7 +12097,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$224, remainingLanes); + releaseRootPooledCache(root$225, remainingLanes); } } return !1; @@ -12099,7 +12116,7 @@ function flushPassiveEffectsImpl() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -13395,19 +13412,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$391; + var JSCompiler_inline_result$jscomp$393; if (canUseDOM) { - var isSupported$jscomp$inline_1569 = "oninput" in document; - if (!isSupported$jscomp$inline_1569) { - var element$jscomp$inline_1570 = document.createElement("div"); - element$jscomp$inline_1570.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1569 = - "function" === typeof element$jscomp$inline_1570.oninput; + 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; } - JSCompiler_inline_result$jscomp$391 = isSupported$jscomp$inline_1569; - } else JSCompiler_inline_result$jscomp$391 = !1; + JSCompiler_inline_result$jscomp$393 = isSupported$jscomp$inline_1571; + } else JSCompiler_inline_result$jscomp$393 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$391 && + JSCompiler_inline_result$jscomp$393 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13818,20 +13835,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1610 = 0; - i$jscomp$inline_1610 < simpleEventPluginEvents.length; - i$jscomp$inline_1610++ + var i$jscomp$inline_1612 = 0; + i$jscomp$inline_1612 < simpleEventPluginEvents.length; + i$jscomp$inline_1612++ ) { - var eventName$jscomp$inline_1611 = - simpleEventPluginEvents[i$jscomp$inline_1610], - domEventName$jscomp$inline_1612 = - eventName$jscomp$inline_1611.toLowerCase(), - capitalizedEvent$jscomp$inline_1613 = - eventName$jscomp$inline_1611[0].toUpperCase() + - eventName$jscomp$inline_1611.slice(1); + 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); registerSimpleEvent( - domEventName$jscomp$inline_1612, - "on" + capitalizedEvent$jscomp$inline_1613 + domEventName$jscomp$inline_1614, + "on" + capitalizedEvent$jscomp$inline_1615 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15124,34 +15141,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$243 = props[hasSrc]; - if (null != propValue$243) + var propValue$244 = props[hasSrc]; + if (null != propValue$244) switch (hasSrc) { case "name": - hasSrcSet = propValue$243; + hasSrcSet = propValue$244; break; case "type": - propValue = propValue$243; + propValue = propValue$244; break; case "checked": - checked = propValue$243; + checked = propValue$244; break; case "defaultChecked": - defaultChecked = propValue$243; + defaultChecked = propValue$244; break; case "value": - propKey = propValue$243; + propKey = propValue$244; break; case "defaultValue": - defaultValue = propValue$243; + defaultValue = propValue$244; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$243) + if (null != propValue$244) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$243, props, null); + setProp(domElement, tag, hasSrc, propValue$244, props, null); } } initInput( @@ -15288,14 +15305,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$243 in props) - props.hasOwnProperty(propValue$243) && - ((hasSrc = props[propValue$243]), + for (propValue$244 in props) + props.hasOwnProperty(propValue$244) && + ((hasSrc = props[propValue$244]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$243, + propValue$244, hasSrc, props, void 0 @@ -15343,14 +15360,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$260 in nextProps) { - var propKey = nextProps[propKey$260]; - lastProp = lastProps[propKey$260]; + for (var propKey$261 in nextProps) { + var propKey = nextProps[propKey$261]; + lastProp = lastProps[propKey$261]; if ( - nextProps.hasOwnProperty(propKey$260) && + nextProps.hasOwnProperty(propKey$261) && (null != propKey || null != lastProp) ) - switch (propKey$260) { + switch (propKey$261) { case "type": type = propKey; break; @@ -15379,7 +15396,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$260, + propKey$261, propKey, nextProps, lastProp @@ -15398,7 +15415,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$260 = null; + propKey = value = defaultValue = propKey$261 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15429,7 +15446,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$260 = type; + propKey$261 = type; break; case "defaultValue": defaultValue = type; @@ -15450,15 +15467,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$260 - ? updateOptions(domElement, !!lastProps, propKey$260, !1) + null != propKey$261 + ? updateOptions(domElement, !!lastProps, propKey$261, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$260 = null; + propKey = propKey$261 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15482,7 +15499,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$260 = name; + propKey$261 = name; break; case "defaultValue": propKey = name; @@ -15496,17 +15513,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$260, propKey); + updateTextarea(domElement, propKey$261, propKey); return; case "option": - for (var propKey$276 in lastProps) + for (var propKey$277 in lastProps) if ( - ((propKey$260 = lastProps[propKey$276]), - lastProps.hasOwnProperty(propKey$276) && - null != propKey$260 && - !nextProps.hasOwnProperty(propKey$276)) + ((propKey$261 = lastProps[propKey$277]), + lastProps.hasOwnProperty(propKey$277) && + null != propKey$261 && + !nextProps.hasOwnProperty(propKey$277)) ) - switch (propKey$276) { + switch (propKey$277) { case "selected": domElement.selected = !1; break; @@ -15514,33 +15531,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$276, + propKey$277, null, nextProps, - propKey$260 + propKey$261 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$260 = nextProps[lastDefaultValue]), + ((propKey$261 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$260 !== propKey && - (null != propKey$260 || null != propKey)) + propKey$261 !== propKey && + (null != propKey$261 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$260 && - "function" !== typeof propKey$260 && - "symbol" !== typeof propKey$260; + propKey$261 && + "function" !== typeof propKey$261 && + "symbol" !== typeof propKey$261; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$260, + propKey$261, nextProps, propKey ); @@ -15561,24 +15578,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$281 in lastProps) - (propKey$260 = lastProps[propKey$281]), - lastProps.hasOwnProperty(propKey$281) && - null != propKey$260 && - !nextProps.hasOwnProperty(propKey$281) && - setProp(domElement, tag, propKey$281, null, nextProps, propKey$260); + for (var propKey$282 in lastProps) + (propKey$261 = lastProps[propKey$282]), + lastProps.hasOwnProperty(propKey$282) && + null != propKey$261 && + !nextProps.hasOwnProperty(propKey$282) && + setProp(domElement, tag, propKey$282, null, nextProps, propKey$261); for (checked in nextProps) if ( - ((propKey$260 = nextProps[checked]), + ((propKey$261 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$260 !== propKey && - (null != propKey$260 || null != propKey)) + propKey$261 !== propKey && + (null != propKey$261 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$260) + if (null != propKey$261) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15586,7 +15603,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$260, + propKey$261, nextProps, propKey ); @@ -15594,49 +15611,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$286 in lastProps) - (propKey$260 = lastProps[propKey$286]), - lastProps.hasOwnProperty(propKey$286) && - void 0 !== propKey$260 && - !nextProps.hasOwnProperty(propKey$286) && + for (var propKey$287 in lastProps) + (propKey$261 = lastProps[propKey$287]), + lastProps.hasOwnProperty(propKey$287) && + void 0 !== propKey$261 && + !nextProps.hasOwnProperty(propKey$287) && setPropOnCustomElement( domElement, tag, - propKey$286, + propKey$287, void 0, nextProps, - propKey$260 + propKey$261 ); for (defaultChecked in nextProps) - (propKey$260 = nextProps[defaultChecked]), + (propKey$261 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$260 === propKey || - (void 0 === propKey$260 && void 0 === propKey) || + propKey$261 === propKey || + (void 0 === propKey$261 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$260, + propKey$261, nextProps, propKey ); return; } } - for (var propKey$291 in lastProps) - (propKey$260 = lastProps[propKey$291]), - lastProps.hasOwnProperty(propKey$291) && - null != propKey$260 && - !nextProps.hasOwnProperty(propKey$291) && - setProp(domElement, tag, propKey$291, null, nextProps, propKey$260); + for (var propKey$292 in lastProps) + (propKey$261 = lastProps[propKey$292]), + lastProps.hasOwnProperty(propKey$292) && + null != propKey$261 && + !nextProps.hasOwnProperty(propKey$292) && + setProp(domElement, tag, propKey$292, null, nextProps, propKey$261); for (lastProp in nextProps) - (propKey$260 = nextProps[lastProp]), + (propKey$261 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$260 === propKey || - (null == propKey$260 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$260, nextProps, propKey); + propKey$261 === propKey || + (null == propKey$261 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$261, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16288,26 +16305,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$300 = getResourcesFromRoot( + var styles$301 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$301 = styles$300.get(type); - resource$301 || + resource$302 = styles$301.get(type); + resource$302 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$301 = { + (resource$302 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$300.set(type, resource$301), - (styles$300 = JSCompiler_inline_result.querySelector( + styles$301.set(type, resource$302), + (styles$301 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$300._p && - ((resource$301.instance = styles$300), - (resource$301.state.loading = 5)), + !styles$301._p && + ((resource$302.instance = styles$301), + (resource$302.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16320,16 +16337,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$300 || + styles$301 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$301.state + resource$302.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$301; + return resource$302; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16426,37 +16443,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$306 = hoistableRoot.querySelector( + var instance$307 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$306) + if (instance$307) return ( (resource.state.loading |= 4), - (resource.instance = instance$306), - markNodeAsHoistable(instance$306), - instance$306 + (resource.instance = instance$307), + markNodeAsHoistable(instance$307), + instance$307 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$306 = ( + instance$307 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$306); - var linkInstance = instance$306; + markNodeAsHoistable(instance$307); + var linkInstance = instance$307; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$306, "link", instance); + setInitialProperties(instance$307, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$306, props.precedence, hoistableRoot); - return (resource.instance = instance$306); + insertStylesheet(instance$307, props.precedence, hoistableRoot); + return (resource.instance = instance$307); case "script": - instance$306 = getScriptKey(props.src); + instance$307 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$306) + getScriptSelectorFromKey(instance$307) )) ) return ( @@ -16465,7 +16482,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$306))) + if ((styleProps = preloadPropsMap.get(instance$307))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17277,7 +17294,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -17497,16 +17514,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1783 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version; if ( - "19.0.0-www-classic-1d989965-20240821" !== - isomorphicReactPackageVersion$jscomp$inline_1783 + "19.0.0-www-classic-ee7f6757-20240823" !== + isomorphicReactPackageVersion$jscomp$inline_1785 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1783, - "19.0.0-www-classic-1d989965-20240821" + isomorphicReactPackageVersion$jscomp$inline_1785, + "19.0.0-www-classic-ee7f6757-20240823" ) ); function flushSyncFromReconciler(fn) { @@ -17529,7 +17546,7 @@ function flushSyncFromReconciler(fn) { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), - 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); + 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(0, !1); } JSCompiler_inline_result = void 0; } @@ -17549,25 +17566,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2243 = { +var internals$jscomp$inline_2254 = { bundleType: 0, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2244 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2255 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2244.isDisabled && - hook$jscomp$inline_2244.supportsFiber + !hook$jscomp$inline_2255.isDisabled && + hook$jscomp$inline_2255.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2244.inject( - internals$jscomp$inline_2243 + (rendererID = hook$jscomp$inline_2255.inject( + internals$jscomp$inline_2254 )), - (injectedHook = hook$jscomp$inline_2244); + (injectedHook = hook$jscomp$inline_2255); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17641,11 +17658,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$327); + var instance = getPublicRootInstance(root$328); originalCallback.call(instance); }; } - var root$327 = createHydrationContainer( + var root$328 = createHydrationContainer( initialChildren, callback, container, @@ -17660,23 +17677,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$327; - container[internalContainerInstanceKey] = root$327.current; + container._reactRootContainer = root$328; + container[internalContainerInstanceKey] = root$328.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSyncWork$1(); - return root$327; + return root$328; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$328 = callback; + var originalCallback$329 = callback; callback = function () { - var instance = getPublicRootInstance(root$329); - originalCallback$328.call(instance); + var instance = getPublicRootInstance(root$330); + originalCallback$329.call(instance); }; } - var root$329 = createFiberRoot( + var root$330 = createFiberRoot( container, 0, !1, @@ -17690,14 +17707,14 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$329; - container[internalContainerInstanceKey] = root$329.current; + container._reactRootContainer = root$330; + container[internalContainerInstanceKey] = root$330.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - updateContainerSync(initialChildren, root$329, parentComponent, callback); + updateContainerSync(initialChildren, root$330, parentComponent, callback); flushSyncWork$1(); - return root$329; + return root$330; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -18162,4 +18179,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-1d989965-20240821"; +exports.version = "19.0.0-www-classic-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index e60f978b22..a38e507dc6 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -1850,24 +1850,42 @@ function ensureRootIsScheduled(root) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } -function flushSyncWorkAcrossRoots_impl(onlyLegacy) { +function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$28 = workInProgressRootRenderLanes; - workInProgressRootRenderLanes$28 = getNextLanes( - root$26, - root$26 === workInProgressRoot - ? workInProgressRootRenderLanes$28 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$28 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, workInProgressRootRenderLanes$28)); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root$26.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root$26.suspendedLanes, + pingedLanes = root$26.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root$26, + root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); root$26 = root$26.next; } } while (didPerformSomeWork); @@ -1876,30 +1894,29 @@ function flushSyncWorkAcrossRoots_impl(onlyLegacy) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -2170,20 +2187,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$30 = workInProgress$jscomp$0.alternate; - null !== current$30 && - ((current$30 = current$30.updateQueue), - (pendingQueue = current$30.lastBaseUpdate), + var current$31 = workInProgress$jscomp$0.alternate; + null !== current$31 && + ((current$31 = current$31.updateQueue), + (pendingQueue = current$31.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$30.firstBaseUpdate = firstPendingUpdate) + ? (current$31.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$30.lastBaseUpdate = lastPendingUpdate))); + (current$31.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$30 = firstPendingUpdate = lastPendingUpdate = null; + current$31 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2196,8 +2213,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$30 && - (current$30 = current$30.next = + null !== current$31 && + (current$31 = current$31.next = { lane: 0, tag: pendingQueue.tag, @@ -2250,10 +2267,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$30 - ? ((firstPendingUpdate = current$30 = isHiddenUpdate), + null === current$31 + ? ((firstPendingUpdate = current$31 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$30 = current$30.next = isHiddenUpdate), + : (current$31 = current$31.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2266,10 +2283,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$30 && (lastPendingUpdate = newState); + null === current$31 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$30; + queue.lastBaseUpdate = current$31; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3140,9 +3157,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$65 = fiber.alternate; - null !== current$65 && - null !== current$65.memoizedState && + var current$66 = fiber.alternate; + null !== current$66 && + null !== current$66.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3412,16 +3429,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$67 = currentlyRenderingFiber$1.alternate; - null !== current$67 && - ((current$67 = current$67.updateQueue), - null !== current$67 && - ((current$67 = current$67.memoCache), - null != current$67 && + var current$68 = currentlyRenderingFiber$1.alternate; + null !== current$68 && + ((current$68 = current$68.updateQueue), + null !== current$68 && + ((current$68 = current$68.memoCache), + null != current$68 && (memoCache = { data: enableNoCloningMemoCache - ? current$67.data - : current$67.data.map(function (array) { + ? current$68.data + : current$68.data.map(function (array) { return array.slice(); }), index: 0 @@ -3436,11 +3453,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$67 = 0; - current$67 < size; - current$67++ + current$68 = 0; + current$68 < size; + current$68++ ) - updateQueue[current$67] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3473,7 +3490,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$68 = !1; + didReadFromEntangledAsyncAction$69 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3494,11 +3511,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$68 = !0); + (didReadFromEntangledAsyncAction$69 = !0); continue; } else (updateLane = { @@ -3544,7 +3561,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$68 && + didReadFromEntangledAsyncAction$69 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3742,8 +3759,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$74) { - onActionError(actionQueue, node, error$74); + } catch (error$75) { + onActionError(actionQueue, node, error$75); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4192,14 +4209,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$77 = enqueueUpdate(provider, fiber, lane); - null !== root$77 && - (scheduleUpdateOnFiber(root$77, provider, lane), - entangleTransitions(root$77, provider, lane)); + var root$78 = enqueueUpdate(provider, fiber, lane); + null !== root$78 && + (scheduleUpdateOnFiber(root$78, provider, lane), + entangleTransitions(root$78, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$77 && + null !== root$78 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4736,9 +4753,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$81 in Component) - void 0 === newProps[propName$81] && - (newProps[propName$81] = Component[propName$81]); + for (var propName$82 in Component) + void 0 === newProps[propName$82] && + (newProps[propName$82] = Component[propName$82]); } return newProps; } @@ -5114,10 +5131,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$94 = workInProgress.stateNode; + root$95 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$94.incompleteTransitions.has(transition)) { + if (!root$95.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5125,11 +5142,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$94.incompleteTransitions.set(transition, markerInstance); + root$95.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$94.incompleteTransitions.forEach(function (markerInstance) { + root$95.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7407,14 +7424,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$129 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$129 = lastTailNode), + for (var lastTailNode$130 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$130 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$129 + null === lastTailNode$130 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$129.sibling = null); + : (lastTailNode$130.sibling = null); } } function bubbleProperties(completedWork) { @@ -7424,19 +7441,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$130 = completedWork.child; null !== child$130; ) - (newChildLanes |= child$130.lanes | child$130.childLanes), - (subtreeFlags |= child$130.subtreeFlags & 31457280), - (subtreeFlags |= child$130.flags & 31457280), - (child$130.return = completedWork), - (child$130 = child$130.sibling); + for (var child$131 = completedWork.child; null !== child$131; ) + (newChildLanes |= child$131.lanes | child$131.childLanes), + (subtreeFlags |= child$131.subtreeFlags & 31457280), + (subtreeFlags |= child$131.flags & 31457280), + (child$131.return = completedWork), + (child$131 = child$131.sibling); else - for (child$130 = completedWork.child; null !== child$130; ) - (newChildLanes |= child$130.lanes | child$130.childLanes), - (subtreeFlags |= child$130.subtreeFlags), - (subtreeFlags |= child$130.flags), - (child$130.return = completedWork), - (child$130 = child$130.sibling); + for (child$131 = completedWork.child; null !== child$131; ) + (newChildLanes |= child$131.lanes | child$131.childLanes), + (subtreeFlags |= child$131.subtreeFlags), + (subtreeFlags |= child$131.flags), + (child$131.return = completedWork), + (child$131 = child$131.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7725,11 +7742,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$142 = null; + var cache$143 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$142 = newProps.memoizedState.cachePool.pool); - cache$142 !== type && (newProps.flags |= 2048); + (cache$143 = newProps.memoizedState.cachePool.pool); + cache$143 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7763,8 +7780,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$142 = type.rendering; - if (null === cache$142) + cache$143 = type.rendering; + if (null === cache$143) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -7772,11 +7789,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$142 = findFirstSuspended(current); - if (null !== cache$142) { + cache$143 = findFirstSuspended(current); + if (null !== cache$143) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$142.updateQueue; + current = cache$143.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7801,7 +7818,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$142)), null !== current)) { + if (((current = findFirstSuspended(cache$143)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -7811,7 +7828,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$142.alternate && + !cache$143.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7824,13 +7841,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$142.sibling = workInProgress.child), - (workInProgress.child = cache$142)) + ? ((cache$143.sibling = workInProgress.child), + (workInProgress.child = cache$143)) : ((current = type.last), null !== current - ? (current.sibling = cache$142) - : (workInProgress.child = cache$142), - (type.last = cache$142)); + ? (current.sibling = cache$143) + : (workInProgress.child = cache$143), + (type.last = cache$143)); } if (null !== type.tail) return ( @@ -8104,8 +8121,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$159) { - captureCommitPhaseError(current, nearestMountedAncestor, error$159); + } catch (error$160) { + captureCommitPhaseError(current, nearestMountedAncestor, error$160); } else ref.current = null; } @@ -8142,7 +8159,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$220) { + } catch (e$221) { JSCompiler_temp = null; break a; } @@ -8425,11 +8442,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$161) { + } catch (error$162) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$161 + error$162 ); } } @@ -8965,19 +8982,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$173 = finishedWork.alternate; + var current$174 = finishedWork.alternate; if ( - null !== current$173 && - ((current$173 = current$173.memoizedState), - null !== current$173 && - ((current$173 = current$173.dehydrated), null !== current$173)) + null !== current$174 && + ((current$174 = current$174.memoizedState), + null !== current$174 && + ((current$174 = current$174.dehydrated), null !== current$174)) ) try { - retryIfBlockedOn(current$173); + retryIfBlockedOn(current$174); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$173); + onHydrated && onHydrated(current$174); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9095,8 +9112,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$175) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$175); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } } break; @@ -9269,11 +9286,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$176) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$177 ); } break; @@ -9310,8 +9327,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$177) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$177); + } catch (error$178) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$178); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9321,8 +9338,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$179) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$179); + } catch (error$180) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$180); } } flags & 1024 && (needsFormReset = !0); @@ -9337,8 +9354,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } break; @@ -9352,8 +9369,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$181) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$181); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9385,8 +9402,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$183) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$183); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } flags = finishedWork.updateQueue; null !== flags && @@ -9461,11 +9478,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$164) { + } catch (error$165) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$164 + error$165 ); } } else if ( @@ -9540,21 +9557,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$165 = JSCompiler_inline_result.stateNode; + var parent$166 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$165, ""), + (setTextContent(parent$166, ""), (JSCompiler_inline_result.flags &= -33)); - var before$166 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$166, parent$165); + var before$167 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$167, parent$166); break; case 3: case 4: - var parent$167 = JSCompiler_inline_result.stateNode.containerInfo, - before$168 = getHostSibling(finishedWork); + var parent$168 = JSCompiler_inline_result.stateNode.containerInfo, + before$169 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$168, - parent$167 + before$169, + parent$168 ); break; default: @@ -9630,7 +9647,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$187 = parentFiber.alternate, + var current$188 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -9658,16 +9675,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$187 = finishedWork.updateQueue; - if (null !== current$187) { - var hiddenCallbacks = current$187.shared.hiddenCallbacks; + current$188 = finishedWork.updateQueue; + if (null !== current$188) { + var hiddenCallbacks = current$188.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$187.shared.hiddenCallbacks = null, current$187 = 0; - current$187 < hiddenCallbacks.length; - current$187++ + current$188.shared.hiddenCallbacks = null, current$188 = 0; + current$188 < hiddenCallbacks.length; + current$188++ ) - callCallback(hiddenCallbacks[current$187], finishedRoot); + callCallback(hiddenCallbacks[current$188], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -9683,7 +9700,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$187 && + null === current$188 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10019,9 +10036,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$194 = finishedWork.stateNode; + var instance$195 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$194._visibility & 4 + ? instance$195._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10033,7 +10050,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$194._visibility |= 4), + : ((instance$195._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10046,7 +10063,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$194 + instance$195 ); break; case 24: @@ -10386,12 +10403,12 @@ function findFiberRootForHostRoot(hostRoot) { a: { hostRoot = [hostRoot]; for (maybeFiber = 0; maybeFiber < hostRoot.length; ) { - var current$289 = hostRoot[maybeFiber++]; - if (current$289[internalContainerInstanceKey]) { - hostRoot = getInstanceFromNode(current$289); + var current$290 = hostRoot[maybeFiber++]; + if (current$290[internalContainerInstanceKey]) { + hostRoot = getInstanceFromNode(current$290); break a; } - hostRoot.push.apply(hostRoot, current$289.children); + hostRoot.push.apply(hostRoot, current$290.children); } hostRoot = null; } @@ -11016,7 +11033,7 @@ function performSyncWorkOnRoot(root, lanes) { } function flushSyncWork$1() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -11177,8 +11194,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$206) { - handleThrow(root, thrownValue$206); + } catch (thrownValue$207) { + handleThrow(root, thrownValue$207); } while (1); lanes && root.shellSuspendCounter++; @@ -11287,8 +11304,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$208) { - handleThrow(root, thrownValue$208); + } catch (thrownValue$209) { + handleThrow(root, thrownValue$209); } while (1); resetContextDependencies(); @@ -11509,12 +11526,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$214 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$215 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$214 && + shouldFireAfterActiveInstanceBlur$215 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11556,7 +11573,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; null !== prevRootTransitionCallbacks && @@ -11584,7 +11601,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$215 = rootWithPendingPassiveEffects, + var root$216 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11599,7 +11616,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$215, remainingLanes); + releaseRootPooledCache(root$216, remainingLanes); } } return !1; @@ -11618,7 +11635,7 @@ function flushPassiveEffectsImpl() { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -12820,19 +12837,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$378; + var JSCompiler_inline_result$jscomp$380; if (canUseDOM) { - var isSupported$jscomp$inline_1540 = "oninput" in document; - if (!isSupported$jscomp$inline_1540) { - var element$jscomp$inline_1541 = document.createElement("div"); - element$jscomp$inline_1541.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1540 = - "function" === typeof element$jscomp$inline_1541.oninput; + var isSupported$jscomp$inline_1542 = "oninput" in document; + if (!isSupported$jscomp$inline_1542) { + var element$jscomp$inline_1543 = document.createElement("div"); + element$jscomp$inline_1543.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1542 = + "function" === typeof element$jscomp$inline_1543.oninput; } - JSCompiler_inline_result$jscomp$378 = isSupported$jscomp$inline_1540; - } else JSCompiler_inline_result$jscomp$378 = !1; + JSCompiler_inline_result$jscomp$380 = isSupported$jscomp$inline_1542; + } else JSCompiler_inline_result$jscomp$380 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$378 && + JSCompiler_inline_result$jscomp$380 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13243,20 +13260,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1581 = 0; - i$jscomp$inline_1581 < simpleEventPluginEvents.length; - i$jscomp$inline_1581++ + var i$jscomp$inline_1583 = 0; + i$jscomp$inline_1583 < simpleEventPluginEvents.length; + i$jscomp$inline_1583++ ) { - var eventName$jscomp$inline_1582 = - simpleEventPluginEvents[i$jscomp$inline_1581], - domEventName$jscomp$inline_1583 = - eventName$jscomp$inline_1582.toLowerCase(), - capitalizedEvent$jscomp$inline_1584 = - eventName$jscomp$inline_1582[0].toUpperCase() + - eventName$jscomp$inline_1582.slice(1); + var eventName$jscomp$inline_1584 = + simpleEventPluginEvents[i$jscomp$inline_1583], + domEventName$jscomp$inline_1585 = + eventName$jscomp$inline_1584.toLowerCase(), + capitalizedEvent$jscomp$inline_1586 = + eventName$jscomp$inline_1584[0].toUpperCase() + + eventName$jscomp$inline_1584.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1583, - "on" + capitalizedEvent$jscomp$inline_1584 + domEventName$jscomp$inline_1585, + "on" + capitalizedEvent$jscomp$inline_1586 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14545,34 +14562,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$234 = props[hasSrc]; - if (null != propValue$234) + var propValue$235 = props[hasSrc]; + if (null != propValue$235) switch (hasSrc) { case "name": - hasSrcSet = propValue$234; + hasSrcSet = propValue$235; break; case "type": - propKey = propValue$234; + propKey = propValue$235; break; case "checked": - checked = propValue$234; + checked = propValue$235; break; case "defaultChecked": - defaultChecked = propValue$234; + defaultChecked = propValue$235; break; case "value": - propValue = propValue$234; + propValue = propValue$235; break; case "defaultValue": - defaultValue = propValue$234; + defaultValue = propValue$235; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$234) + if (null != propValue$235) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$234, props, null); + setProp(domElement, tag, hasSrc, propValue$235, props, null); } } initInput( @@ -14708,14 +14725,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$234 in props) - props.hasOwnProperty(propValue$234) && - ((hasSrc = props[propValue$234]), + for (propValue$235 in props) + props.hasOwnProperty(propValue$235) && + ((hasSrc = props[propValue$235]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$234, + propValue$235, hasSrc, props, void 0 @@ -14763,14 +14780,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$251 in nextProps) { - var propKey = nextProps[propKey$251]; - lastProp = lastProps[propKey$251]; + for (var propKey$252 in nextProps) { + var propKey = nextProps[propKey$252]; + lastProp = lastProps[propKey$252]; if ( - nextProps.hasOwnProperty(propKey$251) && + nextProps.hasOwnProperty(propKey$252) && (null != propKey || null != lastProp) ) - switch (propKey$251) { + switch (propKey$252) { case "type": type = propKey; break; @@ -14799,7 +14816,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$251, + propKey$252, propKey, nextProps, lastProp @@ -14818,7 +14835,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$251 = null; + propKey = value = defaultValue = propKey$252 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14849,7 +14866,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$251 = type; + propKey$252 = type; break; case "defaultValue": defaultValue = type; @@ -14870,15 +14887,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$251 - ? updateOptions(domElement, !!lastProps, propKey$251, !1) + null != propKey$252 + ? updateOptions(domElement, !!lastProps, propKey$252, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$251 = null; + propKey = propKey$252 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14902,7 +14919,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$251 = name; + propKey$252 = name; break; case "defaultValue": propKey = name; @@ -14916,17 +14933,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$251, propKey); + updateTextarea(domElement, propKey$252, propKey); return; case "option": - for (var propKey$267 in lastProps) + for (var propKey$268 in lastProps) if ( - ((propKey$251 = lastProps[propKey$267]), - lastProps.hasOwnProperty(propKey$267) && - null != propKey$251 && - !nextProps.hasOwnProperty(propKey$267)) + ((propKey$252 = lastProps[propKey$268]), + lastProps.hasOwnProperty(propKey$268) && + null != propKey$252 && + !nextProps.hasOwnProperty(propKey$268)) ) - switch (propKey$267) { + switch (propKey$268) { case "selected": domElement.selected = !1; break; @@ -14934,33 +14951,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$267, + propKey$268, null, nextProps, - propKey$251 + propKey$252 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$251 = nextProps[lastDefaultValue]), + ((propKey$252 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$251 !== propKey && - (null != propKey$251 || null != propKey)) + propKey$252 !== propKey && + (null != propKey$252 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$251 && - "function" !== typeof propKey$251 && - "symbol" !== typeof propKey$251; + propKey$252 && + "function" !== typeof propKey$252 && + "symbol" !== typeof propKey$252; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$251, + propKey$252, nextProps, propKey ); @@ -14981,24 +14998,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$272 in lastProps) - (propKey$251 = lastProps[propKey$272]), - lastProps.hasOwnProperty(propKey$272) && - null != propKey$251 && - !nextProps.hasOwnProperty(propKey$272) && - setProp(domElement, tag, propKey$272, null, nextProps, propKey$251); + for (var propKey$273 in lastProps) + (propKey$252 = lastProps[propKey$273]), + lastProps.hasOwnProperty(propKey$273) && + null != propKey$252 && + !nextProps.hasOwnProperty(propKey$273) && + setProp(domElement, tag, propKey$273, null, nextProps, propKey$252); for (checked in nextProps) if ( - ((propKey$251 = nextProps[checked]), + ((propKey$252 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$251 !== propKey && - (null != propKey$251 || null != propKey)) + propKey$252 !== propKey && + (null != propKey$252 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$251) + if (null != propKey$252) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15006,7 +15023,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$251, + propKey$252, nextProps, propKey ); @@ -15014,49 +15031,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$277 in lastProps) - (propKey$251 = lastProps[propKey$277]), - lastProps.hasOwnProperty(propKey$277) && - void 0 !== propKey$251 && - !nextProps.hasOwnProperty(propKey$277) && + for (var propKey$278 in lastProps) + (propKey$252 = lastProps[propKey$278]), + lastProps.hasOwnProperty(propKey$278) && + void 0 !== propKey$252 && + !nextProps.hasOwnProperty(propKey$278) && setPropOnCustomElement( domElement, tag, - propKey$277, + propKey$278, void 0, nextProps, - propKey$251 + propKey$252 ); for (defaultChecked in nextProps) - (propKey$251 = nextProps[defaultChecked]), + (propKey$252 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$251 === propKey || - (void 0 === propKey$251 && void 0 === propKey) || + propKey$252 === propKey || + (void 0 === propKey$252 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$251, + propKey$252, nextProps, propKey ); return; } } - for (var propKey$282 in lastProps) - (propKey$251 = lastProps[propKey$282]), - lastProps.hasOwnProperty(propKey$282) && - null != propKey$251 && - !nextProps.hasOwnProperty(propKey$282) && - setProp(domElement, tag, propKey$282, null, nextProps, propKey$251); + for (var propKey$283 in lastProps) + (propKey$252 = lastProps[propKey$283]), + lastProps.hasOwnProperty(propKey$283) && + null != propKey$252 && + !nextProps.hasOwnProperty(propKey$283) && + setProp(domElement, tag, propKey$283, null, nextProps, propKey$252); for (lastProp in nextProps) - (propKey$251 = nextProps[lastProp]), + (propKey$252 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$251 === propKey || - (null == propKey$251 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$251, nextProps, propKey); + propKey$252 === propKey || + (null == propKey$252 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$252, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15691,26 +15708,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$291 = getResourcesFromRoot( + var styles$292 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$292 = styles$291.get(type); - resource$292 || + resource$293 = styles$292.get(type); + resource$293 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$292 = { + (resource$293 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$291.set(type, resource$292), - (styles$291 = JSCompiler_inline_result.querySelector( + styles$292.set(type, resource$293), + (styles$292 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$291._p && - ((resource$292.instance = styles$291), - (resource$292.state.loading = 5)), + !styles$292._p && + ((resource$293.instance = styles$292), + (resource$293.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15723,16 +15740,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$291 || + styles$292 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$292.state + resource$293.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$292; + return resource$293; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15829,37 +15846,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$297 = hoistableRoot.querySelector( + var instance$298 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$297) + if (instance$298) return ( (resource.state.loading |= 4), - (resource.instance = instance$297), - markNodeAsHoistable(instance$297), - instance$297 + (resource.instance = instance$298), + markNodeAsHoistable(instance$298), + instance$298 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$297 = ( + instance$298 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$297); - var linkInstance = instance$297; + markNodeAsHoistable(instance$298); + var linkInstance = instance$298; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$297, "link", instance); + setInitialProperties(instance$298, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$297, props.precedence, hoistableRoot); - return (resource.instance = instance$297); + insertStylesheet(instance$298, props.precedence, hoistableRoot); + return (resource.instance = instance$298); case "script": - instance$297 = getScriptKey(props.src); + instance$298 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$297) + getScriptSelectorFromKey(instance$298) )) ) return ( @@ -15868,7 +15885,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$297))) + if ((styleProps = preloadPropsMap.get(instance$298))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16680,7 +16697,7 @@ function dispatchEvent( ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -16871,16 +16888,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1754 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1756 = React.version; if ( - "19.0.0-www-modern-1d989965-20240821" !== - isomorphicReactPackageVersion$jscomp$inline_1754 + "19.0.0-www-modern-ee7f6757-20240823" !== + isomorphicReactPackageVersion$jscomp$inline_1756 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1754, - "19.0.0-www-modern-1d989965-20240821" + isomorphicReactPackageVersion$jscomp$inline_1756, + "19.0.0-www-modern-ee7f6757-20240823" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16896,25 +16913,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2234 = { +var internals$jscomp$inline_2245 = { bundleType: 0, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2235 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2246 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2235.isDisabled && - hook$jscomp$inline_2235.supportsFiber + !hook$jscomp$inline_2246.isDisabled && + hook$jscomp$inline_2246.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2235.inject( - internals$jscomp$inline_2234 + (rendererID = hook$jscomp$inline_2246.inject( + internals$jscomp$inline_2245 )), - (injectedHook = hook$jscomp$inline_2235); + (injectedHook = hook$jscomp$inline_2246); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17416,4 +17433,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-1d989965-20240821"; +exports.version = "19.0.0-www-modern-ee7f6757-20240823"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 57222e8547..8211a4cca8 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -2192,28 +2192,41 @@ __DEV__ && 0 === root.tag && (ReactSharedInternals.didScheduleLegacyUpdate = !0); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -2225,33 +2238,29 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -13890,7 +13899,7 @@ __DEV__ && (fiber.mode & 1) !== NoMode || ReactSharedInternals.isBatchingLegacy || (resetRenderTimer(), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -14221,7 +14230,7 @@ __DEV__ && } function flushSyncWork() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -14981,7 +14990,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { @@ -15096,7 +15105,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root, !0); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -18564,7 +18573,7 @@ __DEV__ && ensureRootIsScheduled(fiber); (executionContext & (RenderContext | CommitContext)) === NoContext && - (resetRenderTimer(), flushSyncWorkAcrossRoots_impl(!1)); + (resetRenderTimer(), flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -18586,7 +18595,7 @@ __DEV__ && executionContext !== NoContext || ReactSharedInternals.isBatchingLegacy || (resetRenderTimer(), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } }; exports.createComponentSelector = function (component) { @@ -18927,7 +18936,7 @@ __DEV__ && (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), (executionContext & (RenderContext | CommitContext)) === NoContext && - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } }; exports.flushSyncWork = flushSyncWork; @@ -19009,7 +19018,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 30c3fd84cd..9dd0e6af37 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -2091,28 +2091,41 @@ __DEV__ && enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now$1()); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -2124,33 +2137,29 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if ( - 0 !== currentEventTransitionLane && - shouldAttemptEagerTransition() - ) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -13704,7 +13713,7 @@ __DEV__ && } function flushSyncWork() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -14458,7 +14467,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); enableDebugTracing && enableDebugTracing && groupEnd(); enableSchedulingProfiler && markCommitStopped(); if (enableTransitionTracing) { @@ -14573,7 +14582,7 @@ __DEV__ && injectedProfilingHooks.markPassiveEffectsStopped(); commitDoubleInvokeEffectsInDEV(root); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -17941,7 +17950,7 @@ __DEV__ && NoContext && ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -18289,7 +18298,7 @@ __DEV__ && (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), (executionContext & (RenderContext | CommitContext)) === NoContext && - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } }; exports.flushSyncWork = flushSyncWork; @@ -18371,7 +18380,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 5d0e0bfdf9..e7966f61f5 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -1080,23 +1080,42 @@ module.exports = function ($$$config) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) { - var workInProgressRootRenderLanes$16 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$16 = getNextLanes( - root, - root === workInProgressRoot ? workInProgressRootRenderLanes$16 : 0 - ); - 0 !== (workInProgressRootRenderLanes$16 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root, workInProgressRootRenderLanes$16)); - } + if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root, + root === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); root = root.next; } } while (didPerformSomeWork); @@ -1105,30 +1124,29 @@ module.exports = function ($$$config) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -1395,20 +1413,20 @@ module.exports = function ($$$config) { ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$18 = workInProgress$jscomp$0.alternate; - null !== current$18 && - ((current$18 = current$18.updateQueue), - (pendingQueue = current$18.lastBaseUpdate), + var current$19 = workInProgress$jscomp$0.alternate; + null !== current$19 && + ((current$19 = current$19.updateQueue), + (pendingQueue = current$19.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$18.firstBaseUpdate = firstPendingUpdate) + ? (current$19.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$18.lastBaseUpdate = lastPendingUpdate))); + (current$19.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$18 = firstPendingUpdate = lastPendingUpdate = null; + current$19 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1421,8 +1439,8 @@ module.exports = function ($$$config) { 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$18 && - (current$18 = current$18.next = + null !== current$19 && + (current$19 = current$19.next = { lane: 0, tag: pendingQueue.tag, @@ -1479,10 +1497,10 @@ module.exports = function ($$$config) { callback: pendingQueue.callback, next: null }), - null === current$18 - ? ((firstPendingUpdate = current$18 = isHiddenUpdate), + null === current$19 + ? ((firstPendingUpdate = current$19 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$18 = current$18.next = isHiddenUpdate), + : (current$19 = current$19.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1495,10 +1513,10 @@ module.exports = function ($$$config) { (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$18 && (lastPendingUpdate = newState); + null === current$19 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$18; + queue.lastBaseUpdate = current$19; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2377,9 +2395,9 @@ module.exports = function ($$$config) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$52 = fiber.alternate; - null !== current$52 && - null !== current$52.memoizedState && + var current$53 = fiber.alternate; + null !== current$53 && + null !== current$53.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2639,16 +2657,16 @@ module.exports = function ($$$config) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$54 = currentlyRenderingFiber$1.alternate; - null !== current$54 && - ((current$54 = current$54.updateQueue), - null !== current$54 && - ((current$54 = current$54.memoCache), - null != current$54 && + var current$55 = currentlyRenderingFiber$1.alternate; + null !== current$55 && + ((current$55 = current$55.updateQueue), + null !== current$55 && + ((current$55 = current$55.memoCache), + null != current$55 && (memoCache = { data: enableNoCloningMemoCache - ? current$54.data - : current$54.data.map(function (array) { + ? current$55.data + : current$55.data.map(function (array) { return array.slice(); }), index: 0 @@ -2663,11 +2681,11 @@ module.exports = function ($$$config) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$54 = 0; - current$54 < size; - current$54++ + current$55 = 0; + current$55 < size; + current$55++ ) - updateQueue[current$54] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$55] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2700,7 +2718,7 @@ module.exports = function ($$$config) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$55 = !1; + didReadFromEntangledAsyncAction$56 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2721,11 +2739,11 @@ module.exports = function ($$$config) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$56 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$56 = !0); continue; } else (updateLane = { @@ -2771,7 +2789,7 @@ module.exports = function ($$$config) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$55 && + didReadFromEntangledAsyncAction$56 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -2970,8 +2988,8 @@ module.exports = function ($$$config) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$59) { - onActionError(actionQueue, node, error$59); + } catch (error$60) { + onActionError(actionQueue, node, error$60); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3634,9 +3652,9 @@ module.exports = function ($$$config) { (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$61 in Component) - void 0 === newProps[propName$61] && - (newProps[propName$61] = Component[propName$61]); + for (var propName$62 in Component) + void 0 === newProps[propName$62] && + (newProps[propName$62] = Component[propName$62]); } return newProps; } @@ -6493,44 +6511,44 @@ module.exports = function ($$$config) { needsVisibilityToggle = needsVisibilityToggle.sibling; } else if (supportsPersistence) - for (var node$114 = workInProgress.child; null !== node$114; ) { - if (5 === node$114.tag) { - var instance = node$114.stateNode; + for (var node$115 = workInProgress.child; null !== node$115; ) { + if (5 === node$115.tag) { + var instance = node$115.stateNode; needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance( instance, - node$114.type, - node$114.memoizedProps + node$115.type, + node$115.memoizedProps )); appendInitialChild(parent, instance); - } else if (6 === node$114.tag) - (instance = node$114.stateNode), + } else if (6 === node$115.tag) + (instance = node$115.stateNode), needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance( instance, - node$114.memoizedProps + node$115.memoizedProps )), appendInitialChild(parent, instance); - else if (4 !== node$114.tag) - if (22 === node$114.tag && null !== node$114.memoizedState) - (instance = node$114.child), - null !== instance && (instance.return = node$114), - appendAllChildren(parent, node$114, !0, !0); - else if (null !== node$114.child) { - node$114.child.return = node$114; - node$114 = node$114.child; + else if (4 !== node$115.tag) + if (22 === node$115.tag && null !== node$115.memoizedState) + (instance = node$115.child), + null !== instance && (instance.return = node$115), + appendAllChildren(parent, node$115, !0, !0); + else if (null !== node$115.child) { + node$115.child.return = node$115; + node$115 = node$115.child; continue; } - if (node$114 === workInProgress) break; - for (; null === node$114.sibling; ) { - if (null === node$114.return || node$114.return === workInProgress) + if (node$115 === workInProgress) break; + for (; null === node$115.sibling; ) { + if (null === node$115.return || node$115.return === workInProgress) return; - node$114 = node$114.return; + node$115 = node$115.return; } - node$114.sibling.return = node$114.return; - node$114 = node$114.sibling; + node$115.sibling.return = node$115.return; + node$115 = node$115.sibling; } } function appendAllChildrenToContainer( @@ -6603,31 +6621,31 @@ module.exports = function ($$$config) { current.memoizedProps !== newProps && markUpdate(workInProgress); else if (supportsPersistence) { var currentInstance = current.stateNode, - oldProps$117 = current.memoizedProps; + oldProps$118 = current.memoizedProps; if ( (current = doesRequireClone(current, workInProgress)) || - oldProps$117 !== newProps + oldProps$118 !== newProps ) { var currentHostContext = contextStackCursor.current; - oldProps$117 = cloneInstance( + oldProps$118 = cloneInstance( currentInstance, type, - oldProps$117, + oldProps$118, newProps, !current, null ); - oldProps$117 === currentInstance + oldProps$118 === currentInstance ? (workInProgress.stateNode = currentInstance) : (finalizeInitialChildren( - oldProps$117, + oldProps$118, type, newProps, currentHostContext ) && markUpdate(workInProgress), - (workInProgress.stateNode = oldProps$117), + (workInProgress.stateNode = oldProps$118), current - ? appendAllChildren(oldProps$117, workInProgress, !1, !1) + ? appendAllChildren(oldProps$118, workInProgress, !1, !1) : markUpdate(workInProgress)); } else workInProgress.stateNode = currentInstance; } @@ -6677,15 +6695,15 @@ module.exports = function ($$$config) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$119 = null; null !== lastTailNode; ) + for (var lastTailNode$120 = null; null !== lastTailNode; ) null !== lastTailNode.alternate && - (lastTailNode$119 = lastTailNode), + (lastTailNode$120 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$119 + null === lastTailNode$120 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$119.sibling = null); + : (lastTailNode$120.sibling = null); } } function bubbleProperties(completedWork) { @@ -6695,19 +6713,19 @@ module.exports = function ($$$config) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$120 = completedWork.child; null !== child$120; ) - (newChildLanes |= child$120.lanes | child$120.childLanes), - (subtreeFlags |= child$120.subtreeFlags & 31457280), - (subtreeFlags |= child$120.flags & 31457280), - (child$120.return = completedWork), - (child$120 = child$120.sibling); + for (var child$121 = completedWork.child; null !== child$121; ) + (newChildLanes |= child$121.lanes | child$121.childLanes), + (subtreeFlags |= child$121.subtreeFlags & 31457280), + (subtreeFlags |= child$121.flags & 31457280), + (child$121.return = completedWork), + (child$121 = child$121.sibling); else - for (child$120 = completedWork.child; null !== child$120; ) - (newChildLanes |= child$120.lanes | child$120.childLanes), - (subtreeFlags |= child$120.subtreeFlags), - (subtreeFlags |= child$120.flags), - (child$120.return = completedWork), - (child$120 = child$120.sibling); + for (child$121 = completedWork.child; null !== child$121; ) + (newChildLanes |= child$121.lanes | child$121.childLanes), + (subtreeFlags |= child$121.subtreeFlags), + (subtreeFlags |= child$121.flags), + (child$121.return = completedWork), + (child$121 = child$121.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6988,11 +7006,11 @@ module.exports = function ($$$config) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (nextResource = newProps.alternate.memoizedState.cachePool.pool); - var cache$133 = null; + var cache$134 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$133 = newProps.memoizedState.cachePool.pool); - cache$133 !== nextResource && (newProps.flags |= 2048); + (cache$134 = newProps.memoizedState.cachePool.pool); + cache$134 !== nextResource && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7033,8 +7051,8 @@ module.exports = function ($$$config) { if (null === nextResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$133 = nextResource.rendering; - if (null === cache$133) + cache$134 = nextResource.rendering; + if (null === cache$134) if (newProps) cutOffTailIfNeeded(nextResource, !1); else { if ( @@ -7042,11 +7060,11 @@ module.exports = function ($$$config) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$133 = findFirstSuspended(current); - if (null !== cache$133) { + cache$134 = findFirstSuspended(current); + if (null !== cache$134) { workInProgress.flags |= 128; cutOffTailIfNeeded(nextResource, !1); - current = cache$133.updateQueue; + current = cache$134.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7075,7 +7093,7 @@ module.exports = function ($$$config) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$133)), null !== current)) { + if (((current = findFirstSuspended(cache$134)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -7085,7 +7103,7 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !0), null === nextResource.tail && "hidden" === nextResource.tailMode && - !cache$133.alternate && + !cache$134.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7098,13 +7116,13 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !1), (workInProgress.lanes = 4194304)); nextResource.isBackwards - ? ((cache$133.sibling = workInProgress.child), - (workInProgress.child = cache$133)) + ? ((cache$134.sibling = workInProgress.child), + (workInProgress.child = cache$134)) : ((current = nextResource.last), null !== current - ? (current.sibling = cache$133) - : (workInProgress.child = cache$133), - (nextResource.last = cache$133)); + ? (current.sibling = cache$134) + : (workInProgress.child = cache$134), + (nextResource.last = cache$134)); } if (null !== nextResource.tail) return ( @@ -7390,8 +7408,8 @@ module.exports = function ($$$config) { else if ("function" === typeof ref) try { ref(null); - } catch (error$151) { - captureCommitPhaseError(current, nearestMountedAncestor, error$151); + } catch (error$152) { + captureCommitPhaseError(current, nearestMountedAncestor, error$152); } else ref.current = null; } @@ -7614,11 +7632,11 @@ module.exports = function ($$$config) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$152) { + } catch (error$153) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$152 + error$153 ); } } @@ -8185,19 +8203,19 @@ module.exports = function ($$$config) { } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (supportsHydration && null === finishedWork.memoizedState) { - var current$163 = finishedWork.alternate; + var current$164 = finishedWork.alternate; if ( - null !== current$163 && - ((current$163 = current$163.memoizedState), - null !== current$163 && - ((current$163 = current$163.dehydrated), null !== current$163)) + null !== current$164 && + ((current$164 = current$164.memoizedState), + null !== current$164 && + ((current$164 = current$164.dehydrated), null !== current$164)) ) try { - commitHydratedSuspenseInstance(current$163); + commitHydratedSuspenseInstance(current$164); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$163); + onHydrated && onHydrated(current$164); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -8316,11 +8334,11 @@ module.exports = function ($$$config) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$165) { + } catch (error$166) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$165 + error$166 ); } } @@ -8398,11 +8416,11 @@ module.exports = function ($$$config) { finishedWork.memoizedProps, finishedWork ); - } catch (error$166) { + } catch (error$167) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$166 + error$167 ); } break; @@ -8434,11 +8452,11 @@ module.exports = function ($$$config) { root = finishedWork.stateNode; try { resetTextContent(root); - } catch (error$167) { + } catch (error$168) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$167 + error$168 ); } } @@ -8448,11 +8466,11 @@ module.exports = function ($$$config) { props = finishedWork.type; try { commitUpdate(root, props, current, hoistableRoot, finishedWork); - } catch (error$169) { + } catch (error$170) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$169 + error$170 ); } } @@ -8470,11 +8488,11 @@ module.exports = function ($$$config) { current = null !== current ? current.memoizedProps : root; try { commitTextUpdate(flags, current, root); - } catch (error$170) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$170 + error$171 ); } } @@ -8497,11 +8515,11 @@ module.exports = function ($$$config) { ) try { commitHydratedContainer(root.containerInfo); - } catch (error$171) { + } catch (error$172) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$171 + error$172 ); } if (supportsPersistence) { @@ -8509,11 +8527,11 @@ module.exports = function ($$$config) { current = root.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$172) { + } catch (error$173) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$172 + error$173 ); } } @@ -8538,11 +8556,11 @@ module.exports = function ($$$config) { current = current.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$176) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$177 ); } } @@ -8566,11 +8584,11 @@ module.exports = function ($$$config) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$177) { + } catch (error$178) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$178 ); } flags = finishedWork.updateQueue; @@ -8646,11 +8664,11 @@ module.exports = function ($$$config) { suspenseCallback ? hideTextInstance(props) : unhideTextInstance(props, root.memoizedProps); - } catch (error$154) { + } catch (error$155) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$154 + error$155 ); } } else if ( @@ -8736,21 +8754,21 @@ module.exports = function ($$$config) { break; } case 5: - var parent$155 = JSCompiler_inline_result.stateNode; + var parent$156 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (resetTextContent(parent$155), + (resetTextContent(parent$156), (JSCompiler_inline_result.flags &= -33)); - var before$156 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$156, parent$155); + var before$157 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$157, parent$156); break; case 3: case 4: - var parent$157 = JSCompiler_inline_result.stateNode.containerInfo, - before$158 = getHostSibling(finishedWork); + var parent$158 = JSCompiler_inline_result.stateNode.containerInfo, + before$159 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$158, - parent$157 + before$159, + parent$158 ); break; default: @@ -8828,7 +8846,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$181 = parentFiber.alternate, + var current$182 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -8856,16 +8874,16 @@ module.exports = function ($$$config) { } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$181 = finishedWork.updateQueue; - if (null !== current$181) { - var hiddenCallbacks = current$181.shared.hiddenCallbacks; + current$182 = finishedWork.updateQueue; + if (null !== current$182) { + var hiddenCallbacks = current$182.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$181.shared.hiddenCallbacks = null, current$181 = 0; - current$181 < hiddenCallbacks.length; - current$181++ + current$182.shared.hiddenCallbacks = null, current$182 = 0; + current$182 < hiddenCallbacks.length; + current$182++ ) - callCallback(hiddenCallbacks[current$181], finishedRoot); + callCallback(hiddenCallbacks[current$182], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -8881,7 +8899,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$181 && + null === current$182 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -9232,9 +9250,9 @@ module.exports = function ($$$config) { ); break; case 22: - var instance$187 = finishedWork.stateNode; + var instance$188 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$187._visibility & 4 + ? instance$188._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9247,7 +9265,7 @@ module.exports = function ($$$config) { finishedRoot, finishedWork ) - : ((instance$187._visibility |= 4), + : ((instance$188._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9255,7 +9273,7 @@ module.exports = function ($$$config) { committedTransitions, includeWorkInProgressEffects )) - : ((instance$187._visibility |= 4), + : ((instance$188._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9268,7 +9286,7 @@ module.exports = function ($$$config) { commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$187 + instance$188 ); break; case 24: @@ -9862,7 +9880,7 @@ module.exports = function ($$$config) { disableLegacyMode || 0 !== (fiber.mode & 1) || (resetRenderTimer(), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } } function performConcurrentWorkOnRoot(root, didTimeout) { @@ -10172,7 +10190,7 @@ module.exports = function ($$$config) { } function flushSyncWork() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -10333,8 +10351,8 @@ module.exports = function ($$$config) { } workLoopSync(); break; - } catch (thrownValue$201) { - handleThrow(root, thrownValue$201); + } catch (thrownValue$202) { + handleThrow(root, thrownValue$202); } while (1); lanes && root.shellSuspendCounter++; @@ -10449,8 +10467,8 @@ module.exports = function ($$$config) { } workLoopConcurrent(); break; - } catch (thrownValue$203) { - handleThrow(root, thrownValue$203); + } catch (thrownValue$204) { + handleThrow(root, thrownValue$204); } while (1); resetContextDependencies(); @@ -10685,12 +10703,12 @@ module.exports = function ($$$config) { setCurrentUpdatePriority(2); var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$209 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$210 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$209 && afterActiveInstanceBlur(); + shouldFireAfterActiveInstanceBlur$210 && afterActiveInstanceBlur(); resetAfterCommit(root.containerInfo); root.current = finishedWork; commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); @@ -10729,7 +10747,7 @@ module.exports = function ($$$config) { ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; null !== prevRootTransitionCallbacks && @@ -10793,7 +10811,7 @@ module.exports = function ($$$config) { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -12320,7 +12338,7 @@ module.exports = function ($$$config) { } ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && - (resetRenderTimer(), flushSyncWorkAcrossRoots_impl(!1)); + (resetRenderTimer(), flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -12341,7 +12359,7 @@ module.exports = function ($$$config) { (executionContext = prevExecutionContext), 0 === executionContext && (resetRenderTimer(), - disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0)); + disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0)); } }; exports.createComponentSelector = function (component) { @@ -12569,7 +12587,7 @@ module.exports = function ($$$config) { setCurrentUpdatePriority(previousPriority), (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), - 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); + 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(0, !1); } }; exports.flushSyncWork = flushSyncWork; @@ -12649,7 +12667,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index b2dafa4509..d24d8bfc6a 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -939,23 +939,42 @@ module.exports = function ($$$config) { enableDeferRootSchedulingToMicrotask || scheduleTaskForRootDuringMicrotask(root, now()); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$16 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$16 = getNextLanes( - root, - root === workInProgressRoot ? workInProgressRootRenderLanes$16 : 0 - ); - 0 !== (workInProgressRootRenderLanes$16 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root, workInProgressRootRenderLanes$16)); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var JSCompiler_inline_result = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + JSCompiler_inline_result = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + JSCompiler_inline_result &= + pendingLanes & ~(suspendedLanes & ~pingedLanes); + JSCompiler_inline_result = + JSCompiler_inline_result & 201326677 + ? (JSCompiler_inline_result & 201326677) | 1 + : JSCompiler_inline_result + ? JSCompiler_inline_result | 2 + : 0; + } + 0 !== JSCompiler_inline_result && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); + } else + (JSCompiler_inline_result = workInProgressRootRenderLanes), + (JSCompiler_inline_result = getNextLanes( + root, + root === workInProgressRoot ? JSCompiler_inline_result : 0 + )), + 0 !== (JSCompiler_inline_result & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, JSCompiler_inline_result)); root = root.next; } } while (didPerformSomeWork); @@ -964,30 +983,29 @@ module.exports = function ($$$config) { } function processRootScheduleInMicrotask() { mightHavePendingSyncWork = didScheduleMicrotask = !1; + var syncTransitionLanes = 0; + 0 !== currentEventTransitionLane && + (shouldAttemptEagerTransition() && + (syncTransitionLanes = currentEventTransitionLane), + (currentEventTransitionLane = 0)); for ( var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) { - var next = root.next; - if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) { - var root$jscomp$0 = root, - lane = currentEventTransitionLane; - root$jscomp$0.pendingLanes |= 2; - root$jscomp$0.entangledLanes |= 2; - root$jscomp$0.entanglements[1] |= lane; - } - root$jscomp$0 = scheduleTaskForRootDuringMicrotask(root, currentTime); - 0 === root$jscomp$0 - ? ((root.next = null), + var next = root.next, + nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); + if (0 === nextLanes) + (root.next = null), null === prev ? (firstScheduledRoot = next) : (prev.next = next), - null === next && (lastScheduledRoot = prev)) - : ((prev = root), - 0 !== (root$jscomp$0 & 3) && (mightHavePendingSyncWork = !0)); + null === next && (lastScheduledRoot = prev); + else if ( + ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) + ) + mightHavePendingSyncWork = !0; root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { var pendingLanes = root.pendingLanes, @@ -1254,20 +1272,20 @@ module.exports = function ($$$config) { ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$18 = workInProgress$jscomp$0.alternate; - null !== current$18 && - ((current$18 = current$18.updateQueue), - (pendingQueue = current$18.lastBaseUpdate), + var current$19 = workInProgress$jscomp$0.alternate; + null !== current$19 && + ((current$19 = current$19.updateQueue), + (pendingQueue = current$19.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$18.firstBaseUpdate = firstPendingUpdate) + ? (current$19.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$18.lastBaseUpdate = lastPendingUpdate))); + (current$19.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$18 = firstPendingUpdate = lastPendingUpdate = null; + current$19 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1280,8 +1298,8 @@ module.exports = function ($$$config) { 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$18 && - (current$18 = current$18.next = + null !== current$19 && + (current$19 = current$19.next = { lane: 0, tag: pendingQueue.tag, @@ -1338,10 +1356,10 @@ module.exports = function ($$$config) { callback: pendingQueue.callback, next: null }), - null === current$18 - ? ((firstPendingUpdate = current$18 = isHiddenUpdate), + null === current$19 + ? ((firstPendingUpdate = current$19 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$18 = current$18.next = isHiddenUpdate), + : (current$19 = current$19.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1354,10 +1372,10 @@ module.exports = function ($$$config) { (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$18 && (lastPendingUpdate = newState); + null === current$19 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$18; + queue.lastBaseUpdate = current$19; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2228,9 +2246,9 @@ module.exports = function ($$$config) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$52 = fiber.alternate; - null !== current$52 && - null !== current$52.memoizedState && + var current$53 = fiber.alternate; + null !== current$53 && + null !== current$53.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2490,16 +2508,16 @@ module.exports = function ($$$config) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$54 = currentlyRenderingFiber$1.alternate; - null !== current$54 && - ((current$54 = current$54.updateQueue), - null !== current$54 && - ((current$54 = current$54.memoCache), - null != current$54 && + var current$55 = currentlyRenderingFiber$1.alternate; + null !== current$55 && + ((current$55 = current$55.updateQueue), + null !== current$55 && + ((current$55 = current$55.memoCache), + null != current$55 && (memoCache = { data: enableNoCloningMemoCache - ? current$54.data - : current$54.data.map(function (array) { + ? current$55.data + : current$55.data.map(function (array) { return array.slice(); }), index: 0 @@ -2514,11 +2532,11 @@ module.exports = function ($$$config) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$54 = 0; - current$54 < size; - current$54++ + current$55 = 0; + current$55 < size; + current$55++ ) - updateQueue[current$54] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$55] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2551,7 +2569,7 @@ module.exports = function ($$$config) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$55 = !1; + didReadFromEntangledAsyncAction$56 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2572,11 +2590,11 @@ module.exports = function ($$$config) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$56 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$56 = !0); continue; } else (updateLane = { @@ -2622,7 +2640,7 @@ module.exports = function ($$$config) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$55 && + didReadFromEntangledAsyncAction$56 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -2821,8 +2839,8 @@ module.exports = function ($$$config) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$59) { - onActionError(actionQueue, node, error$59); + } catch (error$60) { + onActionError(actionQueue, node, error$60); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3418,9 +3436,9 @@ module.exports = function ($$$config) { (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$61 in Component) - void 0 === newProps[propName$61] && - (newProps[propName$61] = Component[propName$61]); + for (var propName$62 in Component) + void 0 === newProps[propName$62] && + (newProps[propName$62] = Component[propName$62]); } return newProps; } @@ -6118,44 +6136,44 @@ module.exports = function ($$$config) { needsVisibilityToggle = needsVisibilityToggle.sibling; } else if (supportsPersistence) - for (var node$106 = workInProgress.child; null !== node$106; ) { - if (5 === node$106.tag) { - var instance = node$106.stateNode; + for (var node$107 = workInProgress.child; null !== node$107; ) { + if (5 === node$107.tag) { + var instance = node$107.stateNode; needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance( instance, - node$106.type, - node$106.memoizedProps + node$107.type, + node$107.memoizedProps )); appendInitialChild(parent, instance); - } else if (6 === node$106.tag) - (instance = node$106.stateNode), + } else if (6 === node$107.tag) + (instance = node$107.stateNode), needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance( instance, - node$106.memoizedProps + node$107.memoizedProps )), appendInitialChild(parent, instance); - else if (4 !== node$106.tag) - if (22 === node$106.tag && null !== node$106.memoizedState) - (instance = node$106.child), - null !== instance && (instance.return = node$106), - appendAllChildren(parent, node$106, !0, !0); - else if (null !== node$106.child) { - node$106.child.return = node$106; - node$106 = node$106.child; + else if (4 !== node$107.tag) + if (22 === node$107.tag && null !== node$107.memoizedState) + (instance = node$107.child), + null !== instance && (instance.return = node$107), + appendAllChildren(parent, node$107, !0, !0); + else if (null !== node$107.child) { + node$107.child.return = node$107; + node$107 = node$107.child; continue; } - if (node$106 === workInProgress) break; - for (; null === node$106.sibling; ) { - if (null === node$106.return || node$106.return === workInProgress) + if (node$107 === workInProgress) break; + for (; null === node$107.sibling; ) { + if (null === node$107.return || node$107.return === workInProgress) return; - node$106 = node$106.return; + node$107 = node$107.return; } - node$106.sibling.return = node$106.return; - node$106 = node$106.sibling; + node$107.sibling.return = node$107.return; + node$107 = node$107.sibling; } } function appendAllChildrenToContainer( @@ -6228,31 +6246,31 @@ module.exports = function ($$$config) { current.memoizedProps !== newProps && markUpdate(workInProgress); else if (supportsPersistence) { var currentInstance = current.stateNode, - oldProps$109 = current.memoizedProps; + oldProps$110 = current.memoizedProps; if ( (current = doesRequireClone(current, workInProgress)) || - oldProps$109 !== newProps + oldProps$110 !== newProps ) { var currentHostContext = contextStackCursor.current; - oldProps$109 = cloneInstance( + oldProps$110 = cloneInstance( currentInstance, type, - oldProps$109, + oldProps$110, newProps, !current, null ); - oldProps$109 === currentInstance + oldProps$110 === currentInstance ? (workInProgress.stateNode = currentInstance) : (finalizeInitialChildren( - oldProps$109, + oldProps$110, type, newProps, currentHostContext ) && markUpdate(workInProgress), - (workInProgress.stateNode = oldProps$109), + (workInProgress.stateNode = oldProps$110), current - ? appendAllChildren(oldProps$109, workInProgress, !1, !1) + ? appendAllChildren(oldProps$110, workInProgress, !1, !1) : markUpdate(workInProgress)); } else workInProgress.stateNode = currentInstance; } @@ -6302,15 +6320,15 @@ module.exports = function ($$$config) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$111 = null; null !== lastTailNode; ) + for (var lastTailNode$112 = null; null !== lastTailNode; ) null !== lastTailNode.alternate && - (lastTailNode$111 = lastTailNode), + (lastTailNode$112 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$111 + null === lastTailNode$112 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$111.sibling = null); + : (lastTailNode$112.sibling = null); } } function bubbleProperties(completedWork) { @@ -6320,19 +6338,19 @@ module.exports = function ($$$config) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$112 = completedWork.child; null !== child$112; ) - (newChildLanes |= child$112.lanes | child$112.childLanes), - (subtreeFlags |= child$112.subtreeFlags & 31457280), - (subtreeFlags |= child$112.flags & 31457280), - (child$112.return = completedWork), - (child$112 = child$112.sibling); + for (var child$113 = completedWork.child; null !== child$113; ) + (newChildLanes |= child$113.lanes | child$113.childLanes), + (subtreeFlags |= child$113.subtreeFlags & 31457280), + (subtreeFlags |= child$113.flags & 31457280), + (child$113.return = completedWork), + (child$113 = child$113.sibling); else - for (child$112 = completedWork.child; null !== child$112; ) - (newChildLanes |= child$112.lanes | child$112.childLanes), - (subtreeFlags |= child$112.subtreeFlags), - (subtreeFlags |= child$112.flags), - (child$112.return = completedWork), - (child$112 = child$112.sibling); + for (child$113 = completedWork.child; null !== child$113; ) + (newChildLanes |= child$113.lanes | child$113.childLanes), + (subtreeFlags |= child$113.subtreeFlags), + (subtreeFlags |= child$113.flags), + (child$113.return = completedWork), + (child$113 = child$113.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6605,11 +6623,11 @@ module.exports = function ($$$config) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (nextResource = newProps.alternate.memoizedState.cachePool.pool); - var cache$125 = null; + var cache$126 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$125 = newProps.memoizedState.cachePool.pool); - cache$125 !== nextResource && (newProps.flags |= 2048); + (cache$126 = newProps.memoizedState.cachePool.pool); + cache$126 !== nextResource && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6645,8 +6663,8 @@ module.exports = function ($$$config) { if (null === nextResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$125 = nextResource.rendering; - if (null === cache$125) + cache$126 = nextResource.rendering; + if (null === cache$126) if (newProps) cutOffTailIfNeeded(nextResource, !1); else { if ( @@ -6654,11 +6672,11 @@ module.exports = function ($$$config) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$125 = findFirstSuspended(current); - if (null !== cache$125) { + cache$126 = findFirstSuspended(current); + if (null !== cache$126) { workInProgress.flags |= 128; cutOffTailIfNeeded(nextResource, !1); - current = cache$125.updateQueue; + current = cache$126.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6687,7 +6705,7 @@ module.exports = function ($$$config) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$125)), null !== current)) { + if (((current = findFirstSuspended(cache$126)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6697,7 +6715,7 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !0), null === nextResource.tail && "hidden" === nextResource.tailMode && - !cache$125.alternate && + !cache$126.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -6710,13 +6728,13 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !1), (workInProgress.lanes = 4194304)); nextResource.isBackwards - ? ((cache$125.sibling = workInProgress.child), - (workInProgress.child = cache$125)) + ? ((cache$126.sibling = workInProgress.child), + (workInProgress.child = cache$126)) : ((current = nextResource.last), null !== current - ? (current.sibling = cache$125) - : (workInProgress.child = cache$125), - (nextResource.last = cache$125)); + ? (current.sibling = cache$126) + : (workInProgress.child = cache$126), + (nextResource.last = cache$126)); } if (null !== nextResource.tail) return ( @@ -6991,8 +7009,8 @@ module.exports = function ($$$config) { else if ("function" === typeof ref) try { ref(null); - } catch (error$142) { - captureCommitPhaseError(current, nearestMountedAncestor, error$142); + } catch (error$143) { + captureCommitPhaseError(current, nearestMountedAncestor, error$143); } else ref.current = null; } @@ -7215,11 +7233,11 @@ module.exports = function ($$$config) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$143) { + } catch (error$144) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$143 + error$144 ); } } @@ -7776,19 +7794,19 @@ module.exports = function ($$$config) { } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (supportsHydration && null === finishedWork.memoizedState) { - var current$154 = finishedWork.alternate; + var current$155 = finishedWork.alternate; if ( - null !== current$154 && - ((current$154 = current$154.memoizedState), - null !== current$154 && - ((current$154 = current$154.dehydrated), null !== current$154)) + null !== current$155 && + ((current$155 = current$155.memoizedState), + null !== current$155 && + ((current$155 = current$155.dehydrated), null !== current$155)) ) try { - commitHydratedSuspenseInstance(current$154); + commitHydratedSuspenseInstance(current$155); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$154); + onHydrated && onHydrated(current$155); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -7907,11 +7925,11 @@ module.exports = function ($$$config) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$156) { + } catch (error$157) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$156 + error$157 ); } } @@ -7989,11 +8007,11 @@ module.exports = function ($$$config) { finishedWork.memoizedProps, finishedWork ); - } catch (error$157) { + } catch (error$158) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$157 + error$158 ); } break; @@ -8025,11 +8043,11 @@ module.exports = function ($$$config) { root = finishedWork.stateNode; try { resetTextContent(root); - } catch (error$158) { + } catch (error$159) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$158 + error$159 ); } } @@ -8039,11 +8057,11 @@ module.exports = function ($$$config) { props = finishedWork.type; try { commitUpdate(root, props, current, hoistableRoot, finishedWork); - } catch (error$160) { + } catch (error$161) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$160 + error$161 ); } } @@ -8061,11 +8079,11 @@ module.exports = function ($$$config) { current = null !== current ? current.memoizedProps : root; try { commitTextUpdate(flags, current, root); - } catch (error$161) { + } catch (error$162) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$161 + error$162 ); } } @@ -8088,11 +8106,11 @@ module.exports = function ($$$config) { ) try { commitHydratedContainer(root.containerInfo); - } catch (error$162) { + } catch (error$163) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$162 + error$163 ); } if (supportsPersistence) { @@ -8100,11 +8118,11 @@ module.exports = function ($$$config) { current = root.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$163) { + } catch (error$164) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$163 + error$164 ); } } @@ -8129,11 +8147,11 @@ module.exports = function ($$$config) { current = current.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$167) { + } catch (error$168) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$167 + error$168 ); } } @@ -8157,11 +8175,11 @@ module.exports = function ($$$config) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$168) { + } catch (error$169) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$168 + error$169 ); } flags = finishedWork.updateQueue; @@ -8233,11 +8251,11 @@ module.exports = function ($$$config) { suspenseCallback ? hideTextInstance(props) : unhideTextInstance(props, root.memoizedProps); - } catch (error$145) { + } catch (error$146) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$145 + error$146 ); } } else if ( @@ -8323,21 +8341,21 @@ module.exports = function ($$$config) { break; } case 5: - var parent$146 = JSCompiler_inline_result.stateNode; + var parent$147 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (resetTextContent(parent$146), + (resetTextContent(parent$147), (JSCompiler_inline_result.flags &= -33)); - var before$147 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$147, parent$146); + var before$148 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$148, parent$147); break; case 3: case 4: - var parent$148 = JSCompiler_inline_result.stateNode.containerInfo, - before$149 = getHostSibling(finishedWork); + var parent$149 = JSCompiler_inline_result.stateNode.containerInfo, + before$150 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$149, - parent$148 + before$150, + parent$149 ); break; default: @@ -8415,7 +8433,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$172 = parentFiber.alternate, + var current$173 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -8443,16 +8461,16 @@ module.exports = function ($$$config) { } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$172 = finishedWork.updateQueue; - if (null !== current$172) { - var hiddenCallbacks = current$172.shared.hiddenCallbacks; + current$173 = finishedWork.updateQueue; + if (null !== current$173) { + var hiddenCallbacks = current$173.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$172.shared.hiddenCallbacks = null, current$172 = 0; - current$172 < hiddenCallbacks.length; - current$172++ + current$173.shared.hiddenCallbacks = null, current$173 = 0; + current$173 < hiddenCallbacks.length; + current$173++ ) - callCallback(hiddenCallbacks[current$172], finishedRoot); + callCallback(hiddenCallbacks[current$173], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -8468,7 +8486,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$172 && + null === current$173 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -8811,9 +8829,9 @@ module.exports = function ($$$config) { ); break; case 22: - var instance$178 = finishedWork.stateNode; + var instance$179 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$178._visibility & 4 + ? instance$179._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8825,7 +8843,7 @@ module.exports = function ($$$config) { finishedRoot, finishedWork ) - : ((instance$178._visibility |= 4), + : ((instance$179._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8838,7 +8856,7 @@ module.exports = function ($$$config) { commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$178 + instance$179 ); break; case 24: @@ -9730,7 +9748,7 @@ module.exports = function ($$$config) { } function flushSyncWork() { return 0 === (executionContext & 6) - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -9891,8 +9909,8 @@ module.exports = function ($$$config) { } workLoopSync(); break; - } catch (thrownValue$192) { - handleThrow(root, thrownValue$192); + } catch (thrownValue$193) { + handleThrow(root, thrownValue$193); } while (1); lanes && root.shellSuspendCounter++; @@ -10007,8 +10025,8 @@ module.exports = function ($$$config) { } workLoopConcurrent(); break; - } catch (thrownValue$194) { - handleThrow(root, thrownValue$194); + } catch (thrownValue$195) { + handleThrow(root, thrownValue$195); } while (1); resetContextDependencies(); @@ -10239,12 +10257,12 @@ module.exports = function ($$$config) { setCurrentUpdatePriority(2); var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$200 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$201 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$200 && afterActiveInstanceBlur(); + shouldFireAfterActiveInstanceBlur$201 && afterActiveInstanceBlur(); resetAfterCommit(root.containerInfo); root.current = finishedWork; commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); @@ -10281,7 +10299,7 @@ module.exports = function ($$$config) { ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevRootTransitionCallbacks = root.transitionCallbacks; null !== prevRootTransitionCallbacks && @@ -10345,7 +10363,7 @@ module.exports = function ($$$config) { commitPassiveUnmountOnFiber(root.current); commitPassiveMountOnFiber(root, root.current, lanes, transitions); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); if (enableTransitionTracing) { var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks, prevRootTransitionCallbacks = root.transitionCallbacks, @@ -11827,7 +11845,7 @@ module.exports = function ($$$config) { ensureRootIsScheduled(fiber); 0 === (executionContext & 6) && ((workInProgressRootRenderTargetTime = now() + 500), - flushSyncWorkAcrossRoots_impl(!1)); + flushSyncWorkAcrossRoots_impl(0, !1)); } } break; @@ -12062,7 +12080,7 @@ module.exports = function ($$$config) { setCurrentUpdatePriority(previousPriority), (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), - 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); + 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(0, !1); } }; exports.flushSyncWork = flushSyncWork; @@ -12142,7 +12160,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index a13b447c28..29ec9f6e5a 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1070() { + function JSCompiler_object_inline_createNodeMock_1071() { return null; } function findHook(fiber, id) { @@ -1755,28 +1755,41 @@ __DEV__ && ((didScheduleMicrotask = !0), scheduleImmediateTask(processRootScheduleInMicrotask)); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -1788,6 +1801,7 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; @@ -1803,8 +1817,7 @@ __DEV__ && 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0)); root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { for ( @@ -10895,12 +10908,12 @@ __DEV__ && (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), (executionContext & (RenderContext | CommitContext)) === NoContext && - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } } function flushSyncWork() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -11552,7 +11565,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); return null; } function makeErrorInfo(componentStack) { @@ -11678,7 +11691,7 @@ __DEV__ && !0 ); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects ? priority === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ @@ -14810,11 +14823,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-1d989965-20240821", + version: "19.0.0-www-classic-ee7f6757-20240823", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-1d989965-20240821" + reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -14834,7 +14847,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1070, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1071, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -14949,5 +14962,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-classic-1d989965-20240821"; + exports.version = "19.0.0-www-classic-ee7f6757-20240823"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 6b6a6c968a..c082b0550e 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1070() { + function JSCompiler_object_inline_createNodeMock_1071() { return null; } function findHook(fiber, id) { @@ -1755,28 +1755,41 @@ __DEV__ && ((didScheduleMicrotask = !0), scheduleImmediateTask(processRootScheduleInMicrotask)); } - function flushSyncWorkAcrossRoots_impl(onlyLegacy) { + function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { isFlushingWork = !0; do { var didPerformSomeWork = !1; for (var root = firstScheduledRoot; null !== root; ) { - if (!onlyLegacy) { - var workInProgressRootRenderLanes$jscomp$0 = - workInProgressRootRenderLanes; - workInProgressRootRenderLanes$jscomp$0 = getNextLanes( - root, - root === workInProgressRoot - ? workInProgressRootRenderLanes$jscomp$0 - : 0 - ); - 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) && - ((didPerformSomeWork = !0), - performSyncWorkOnRoot( - root, - workInProgressRootRenderLanes$jscomp$0 - )); - } + if (!onlyLegacy) + if (0 !== syncTransitionLanes) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) var nextLanes = 0; + else { + var suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + nextLanes = + (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; + nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); + nextLanes = + nextLanes & 201326677 + ? (nextLanes & 201326677) | 1 + : nextLanes + ? nextLanes | 2 + : 0; + } + 0 !== nextLanes && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); + } else + (nextLanes = workInProgressRootRenderLanes), + (nextLanes = getNextLanes( + root, + root === workInProgressRoot ? nextLanes : 0 + )), + 0 !== (nextLanes & 3) && + ((didPerformSomeWork = !0), + performSyncWorkOnRoot(root, nextLanes)); root = root.next; } } while (didPerformSomeWork); @@ -1788,6 +1801,7 @@ __DEV__ && didScheduleMicrotask_act = didScheduleMicrotask = !1; + 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); for ( var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root; @@ -1803,8 +1817,7 @@ __DEV__ && 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0)); root = next; } - currentEventTransitionLane = 0; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } function scheduleTaskForRootDuringMicrotask(root, currentTime) { for ( @@ -10895,12 +10908,12 @@ __DEV__ && (ReactSharedInternals.T = prevTransition), (executionContext = prevExecutionContext), (executionContext & (RenderContext | CommitContext)) === NoContext && - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); } } function flushSyncWork() { return (executionContext & (RenderContext | CommitContext)) === NoContext - ? (flushSyncWorkAcrossRoots_impl(!1), !1) + ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; } function resetWorkInProgressStack() { @@ -11552,7 +11565,7 @@ __DEV__ && ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); return null; } function makeErrorInfo(componentStack) { @@ -11678,7 +11691,7 @@ __DEV__ && !0 ); executionContext = prevExecutionContext; - flushSyncWorkAcrossRoots_impl(!1); + flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects ? priority === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ @@ -14810,11 +14823,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-1d989965-20240821", + version: "19.0.0-www-modern-ee7f6757-20240823", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-1d989965-20240821" + reconcilerVersion: "19.0.0-www-modern-ee7f6757-20240823" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -14834,7 +14847,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1070, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1071, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -14949,5 +14962,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-modern-1d989965-20240821"; + exports.version = "19.0.0-www-modern-ee7f6757-20240823"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 5a690815b2..6fa4517701 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-1d989965-20240821 \ No newline at end of file +19.0.0-www-classic-ee7f6757-20240823 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 42b09bbbe6..41e503a228 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-1d989965-20240821 \ No newline at end of file +19.0.0-www-modern-ee7f6757-20240823 \ No newline at end of file