diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 2b55db528dbec..7228a6b25d744 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -ef8bdbecb6dbb9743b895c2e867e5a5264dd6651 +93c10dfa6b0848c12189b773b59c77d74cad2a1a diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index f6a7d98d1786b..8a7054cad2fda 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-fd5743d3"; +var ReactVersion = "18.3.0-www-modern-f87ae691"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index dc12add819ab9..45ef05d919287 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-9d9aef36"; +var ReactVersion = "18.3.0-www-classic-600fa423"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -3652,46 +3652,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + var nativeConsole = console; var nativeConsoleLog = null; var pendingGroupArgs = []; diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index df8aa3c48560f..94aac601f03ec 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-9e979f3e"; +var ReactVersion = "18.3.0-www-modern-ecb0bb1c"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -3408,46 +3408,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + var nativeConsole = console; var nativeConsoleLog = null; var pendingGroupArgs = []; diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index b8ecac21db81e..fbbb1e6567e00 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -992,30 +992,43 @@ var objectIs = "function" === typeof Object.is ? Object.is : is, function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null); @@ -2347,10 +2360,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$28 = thenableIndexCounter; + var index$30 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$28); + usable = trackUsedThenable(thenableState, usable, index$30); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -5183,14 +5196,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$72 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$72 = lastTailNode), + for (var lastTailNode$74 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$74 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$72 + null === lastTailNode$74 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$72.sibling = null); + : (lastTailNode$74.sibling = null); } } function bubbleProperties(completedWork) { @@ -5200,19 +5213,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$73 = completedWork.child; null !== child$73; ) - (newChildLanes |= child$73.lanes | child$73.childLanes), - (subtreeFlags |= child$73.subtreeFlags & 14680064), - (subtreeFlags |= child$73.flags & 14680064), - (child$73.return = completedWork), - (child$73 = child$73.sibling); + for (var child$75 = completedWork.child; null !== child$75; ) + (newChildLanes |= child$75.lanes | child$75.childLanes), + (subtreeFlags |= child$75.subtreeFlags & 14680064), + (subtreeFlags |= child$75.flags & 14680064), + (child$75.return = completedWork), + (child$75 = child$75.sibling); else - for (child$73 = completedWork.child; null !== child$73; ) - (newChildLanes |= child$73.lanes | child$73.childLanes), - (subtreeFlags |= child$73.subtreeFlags), - (subtreeFlags |= child$73.flags), - (child$73.return = completedWork), - (child$73 = child$73.sibling); + for (child$75 = completedWork.child; null !== child$75; ) + (newChildLanes |= child$75.lanes | child$75.childLanes), + (subtreeFlags |= child$75.subtreeFlags), + (subtreeFlags |= child$75.flags), + (child$75.return = completedWork), + (child$75 = child$75.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -5391,11 +5404,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$77 = null; + var cache$79 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$77 = newProps.memoizedState.cachePool.pool); - cache$77 !== instance && (newProps.flags |= 2048); + (cache$79 = newProps.memoizedState.cachePool.pool); + cache$79 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -5425,8 +5438,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$77 = instance.rendering; - if (null === cache$77) + cache$79 = instance.rendering; + if (null === cache$79) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -5434,11 +5447,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$77 = findFirstSuspended(current); - if (null !== cache$77) { + cache$79 = findFirstSuspended(current); + if (null !== cache$79) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$77.updateQueue; + current = cache$79.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -5464,7 +5477,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$77)), null !== current)) { + if (((current = findFirstSuspended(cache$79)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -5475,7 +5488,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$77.alternate) + !cache$79.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -5487,13 +5500,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 8388608)); instance.isBackwards - ? ((cache$77.sibling = workInProgress.child), - (workInProgress.child = cache$77)) + ? ((cache$79.sibling = workInProgress.child), + (workInProgress.child = cache$79)) : ((current = instance.last), null !== current - ? (current.sibling = cache$77) - : (workInProgress.child = cache$77), - (instance.last = cache$77)); + ? (current.sibling = cache$79) + : (workInProgress.child = cache$79), + (instance.last = cache$79)); } if (null !== instance.tail) return ( @@ -5751,8 +5764,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$93) { - captureCommitPhaseError(current, nearestMountedAncestor, error$93); + } catch (error$95) { + captureCommitPhaseError(current, nearestMountedAncestor, error$95); } else ref.current = null; } @@ -5951,11 +5964,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$94) { + } catch (error$96) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$94 + error$96 ); } } @@ -6542,8 +6555,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$102) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$102); + } catch (error$104) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$104); } } break; @@ -6579,11 +6592,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null !== updatePayload) try { flags._applyProps(flags, newProps, current); - } catch (error$105) { + } catch (error$107) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$105 + error$107 ); } } @@ -6620,8 +6633,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$107) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$107); + } catch (error$109) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$109); } flags = finishedWork.updateQueue; null !== flags && @@ -6761,12 +6774,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$97 = JSCompiler_inline_result.stateNode.containerInfo, - before$98 = getHostSibling(finishedWork); + var parent$99 = JSCompiler_inline_result.stateNode.containerInfo, + before$100 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$98, - parent$97 + before$100, + parent$99 ); break; default: @@ -7227,9 +7240,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$116 = finishedWork.stateNode; + var instance$118 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$116._visibility & 4 + ? instance$118._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7242,7 +7255,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$116._visibility |= 4), + : ((instance$118._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7250,7 +7263,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$116._visibility |= 4), + : ((instance$118._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -7263,7 +7276,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$116 + instance$118 ); break; case 24: @@ -7821,16 +7834,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$125 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$127 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$125 && - ((lanes = errorRetryLanes$125), + 0 !== errorRetryLanes$127 && + ((lanes = errorRetryLanes$127), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$125 + errorRetryLanes$127 ))); } if (1 === didTimeout) @@ -7884,11 +7897,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$125 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$125), - (errorRetryLanes$125 = didTimeout[errorRetryLanes$125]), - errorRetryLanes$125 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$125), + (errorRetryLanes$127 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$127), + (errorRetryLanes$127 = didTimeout[errorRetryLanes$127]), + errorRetryLanes$127 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$127), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -8184,8 +8197,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$128) { - handleThrow(root, thrownValue$128); + } catch (thrownValue$130) { + handleThrow(root, thrownValue$130); } while (1); resetContextDependencies(); @@ -8263,8 +8276,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$130) { - handleThrow(root, thrownValue$130); + } catch (thrownValue$132) { + handleThrow(root, thrownValue$132); } while (1); resetContextDependencies(); @@ -8422,10 +8435,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$34 = offscreenQueue.wakeables; - null === wakeables$34 + var wakeables$36 = offscreenQueue.wakeables; + null === wakeables$36 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$34.add(wakeable); + : wakeables$36.add(wakeable); } break; } @@ -9778,19 +9791,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1127 = { + devToolsConfig$jscomp$inline_1129 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-classic-3e74a068", + version: "18.3.0-www-classic-4b2fd9fd", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1300 = { - bundleType: devToolsConfig$jscomp$inline_1127.bundleType, - version: devToolsConfig$jscomp$inline_1127.version, - rendererPackageName: devToolsConfig$jscomp$inline_1127.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1127.rendererConfig, +var internals$jscomp$inline_1302 = { + bundleType: devToolsConfig$jscomp$inline_1129.bundleType, + version: devToolsConfig$jscomp$inline_1129.version, + rendererPackageName: devToolsConfig$jscomp$inline_1129.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1129.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9807,26 +9820,26 @@ var internals$jscomp$inline_1300 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1127.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1129.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-3e74a068" + reconcilerVersion: "18.3.0-www-classic-4b2fd9fd" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1301 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1303 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1301.isDisabled && - hook$jscomp$inline_1301.supportsFiber + !hook$jscomp$inline_1303.isDisabled && + hook$jscomp$inline_1303.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1301.inject( - internals$jscomp$inline_1300 + (rendererID = hook$jscomp$inline_1303.inject( + internals$jscomp$inline_1302 )), - (injectedHook = hook$jscomp$inline_1301); + (injectedHook = hook$jscomp$inline_1303); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index dde83d7480db9..ba2b1741ab002 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -798,30 +798,43 @@ var objectIs = "function" === typeof Object.is ? Object.is : is, function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null); @@ -2153,10 +2166,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$28 = thenableIndexCounter; + var index$30 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$28); + usable = trackUsedThenable(thenableState, usable, index$30); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -4934,14 +4947,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$72 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$72 = lastTailNode), + for (var lastTailNode$74 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$74 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$72 + null === lastTailNode$74 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$72.sibling = null); + : (lastTailNode$74.sibling = null); } } function bubbleProperties(completedWork) { @@ -4951,19 +4964,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$73 = completedWork.child; null !== child$73; ) - (newChildLanes |= child$73.lanes | child$73.childLanes), - (subtreeFlags |= child$73.subtreeFlags & 14680064), - (subtreeFlags |= child$73.flags & 14680064), - (child$73.return = completedWork), - (child$73 = child$73.sibling); + for (var child$75 = completedWork.child; null !== child$75; ) + (newChildLanes |= child$75.lanes | child$75.childLanes), + (subtreeFlags |= child$75.subtreeFlags & 14680064), + (subtreeFlags |= child$75.flags & 14680064), + (child$75.return = completedWork), + (child$75 = child$75.sibling); else - for (child$73 = completedWork.child; null !== child$73; ) - (newChildLanes |= child$73.lanes | child$73.childLanes), - (subtreeFlags |= child$73.subtreeFlags), - (subtreeFlags |= child$73.flags), - (child$73.return = completedWork), - (child$73 = child$73.sibling); + for (child$75 = completedWork.child; null !== child$75; ) + (newChildLanes |= child$75.lanes | child$75.childLanes), + (subtreeFlags |= child$75.subtreeFlags), + (subtreeFlags |= child$75.flags), + (child$75.return = completedWork), + (child$75 = child$75.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -5136,11 +5149,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$77 = null; + var cache$79 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$77 = newProps.memoizedState.cachePool.pool); - cache$77 !== instance && (newProps.flags |= 2048); + (cache$79 = newProps.memoizedState.cachePool.pool); + cache$79 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -5166,8 +5179,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$77 = instance.rendering; - if (null === cache$77) + cache$79 = instance.rendering; + if (null === cache$79) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -5175,11 +5188,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$77 = findFirstSuspended(current); - if (null !== cache$77) { + cache$79 = findFirstSuspended(current); + if (null !== cache$79) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$77.updateQueue; + current = cache$79.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -5205,7 +5218,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$77)), null !== current)) { + if (((current = findFirstSuspended(cache$79)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -5216,7 +5229,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$77.alternate) + !cache$79.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -5228,13 +5241,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 8388608)); instance.isBackwards - ? ((cache$77.sibling = workInProgress.child), - (workInProgress.child = cache$77)) + ? ((cache$79.sibling = workInProgress.child), + (workInProgress.child = cache$79)) : ((current = instance.last), null !== current - ? (current.sibling = cache$77) - : (workInProgress.child = cache$77), - (instance.last = cache$77)); + ? (current.sibling = cache$79) + : (workInProgress.child = cache$79), + (instance.last = cache$79)); } if (null !== instance.tail) return ( @@ -5483,8 +5496,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$92) { - captureCommitPhaseError(current, nearestMountedAncestor, error$92); + } catch (error$94) { + captureCommitPhaseError(current, nearestMountedAncestor, error$94); } else ref.current = null; } @@ -5683,11 +5696,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$93) { + } catch (error$95) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$93 + error$95 ); } } @@ -6274,8 +6287,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$101) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$101); + } catch (error$103) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$103); } } break; @@ -6311,11 +6324,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null !== updatePayload) try { flags._applyProps(flags, newProps, current); - } catch (error$104) { + } catch (error$106) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$104 + error$106 ); } } @@ -6352,8 +6365,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$106) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$106); + } catch (error$108) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$108); } flags = finishedWork.updateQueue; null !== flags && @@ -6493,12 +6506,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$96 = JSCompiler_inline_result.stateNode.containerInfo, - before$97 = getHostSibling(finishedWork); + var parent$98 = JSCompiler_inline_result.stateNode.containerInfo, + before$99 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$97, - parent$96 + before$99, + parent$98 ); break; default: @@ -6959,9 +6972,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$115 = finishedWork.stateNode; + var instance$117 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$115._visibility & 4 + ? instance$117._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -6974,7 +6987,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$115._visibility |= 4), + : ((instance$117._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -6982,7 +6995,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$115._visibility |= 4), + : ((instance$117._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -6995,7 +7008,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$115 + instance$117 ); break; case 24: @@ -7553,16 +7566,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$124 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$126 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$124 && - ((lanes = errorRetryLanes$124), + 0 !== errorRetryLanes$126 && + ((lanes = errorRetryLanes$126), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$124 + errorRetryLanes$126 ))); } if (1 === didTimeout) @@ -7616,11 +7629,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$124 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$124), - (errorRetryLanes$124 = didTimeout[errorRetryLanes$124]), - errorRetryLanes$124 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$124), + (errorRetryLanes$126 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$126), + (errorRetryLanes$126 = didTimeout[errorRetryLanes$126]), + errorRetryLanes$126 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$126), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -7916,8 +7929,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$127) { - handleThrow(root, thrownValue$127); + } catch (thrownValue$129) { + handleThrow(root, thrownValue$129); } while (1); resetContextDependencies(); @@ -7995,8 +8008,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$129) { - handleThrow(root, thrownValue$129); + } catch (thrownValue$131) { + handleThrow(root, thrownValue$131); } while (1); resetContextDependencies(); @@ -8154,10 +8167,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$34 = offscreenQueue.wakeables; - null === wakeables$34 + var wakeables$36 = offscreenQueue.wakeables; + null === wakeables$36 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$34.add(wakeable); + : wakeables$36.add(wakeable); } break; } @@ -9443,19 +9456,19 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component), - devToolsConfig$jscomp$inline_1107 = { + devToolsConfig$jscomp$inline_1109 = { findFiberByHostInstance: function () { return null; }, bundleType: 0, - version: "18.3.0-www-modern-b352b40f", + version: "18.3.0-www-modern-b4fc501b", rendererPackageName: "react-art" }; -var internals$jscomp$inline_1280 = { - bundleType: devToolsConfig$jscomp$inline_1107.bundleType, - version: devToolsConfig$jscomp$inline_1107.version, - rendererPackageName: devToolsConfig$jscomp$inline_1107.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1107.rendererConfig, +var internals$jscomp$inline_1282 = { + bundleType: devToolsConfig$jscomp$inline_1109.bundleType, + version: devToolsConfig$jscomp$inline_1109.version, + rendererPackageName: devToolsConfig$jscomp$inline_1109.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1109.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9472,26 +9485,26 @@ var internals$jscomp$inline_1280 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1107.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1109.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-b352b40f" + reconcilerVersion: "18.3.0-www-modern-b4fc501b" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1281 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1283 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1281.isDisabled && - hook$jscomp$inline_1281.supportsFiber + !hook$jscomp$inline_1283.isDisabled && + hook$jscomp$inline_1283.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1281.inject( - internals$jscomp$inline_1280 + (rendererID = hook$jscomp$inline_1283.inject( + internals$jscomp$inline_1282 )), - (injectedHook = hook$jscomp$inline_1281); + (injectedHook = hook$jscomp$inline_1283); } catch (err) {} } var Path = Mode$1.Path; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 1bdf86136554b..13da6c872af9c 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -16955,46 +16955,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority$1(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority$1(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + var nativeConsole = console; var nativeConsoleLog = null; var pendingGroupArgs = []; @@ -42416,7 +42441,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-49d3175b"; +var ReactVersion = "18.3.0-www-classic-fce88849"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index ed84585bc1378..9d95a1aae0525 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -16655,46 +16655,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority$1(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority$1(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + var nativeConsole = console; var nativeConsoleLog = null; var pendingGroupArgs = []; @@ -42020,7 +42045,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-b352b40f"; +var ReactVersion = "18.3.0-www-modern-b4fc501b"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 93e6f7b4cde8e..3bd82bbfa1dc8 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -3378,19 +3378,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$257; + var JSCompiler_inline_result$jscomp$259; if (canUseDOM) { - var isSupported$jscomp$inline_486 = "oninput" in document; - if (!isSupported$jscomp$inline_486) { - var element$jscomp$inline_487 = document.createElement("div"); - element$jscomp$inline_487.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_486 = - "function" === typeof element$jscomp$inline_487.oninput; + var isSupported$jscomp$inline_488 = "oninput" in document; + if (!isSupported$jscomp$inline_488) { + var element$jscomp$inline_489 = document.createElement("div"); + element$jscomp$inline_489.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_488 = + "function" === typeof element$jscomp$inline_489.oninput; } - JSCompiler_inline_result$jscomp$257 = isSupported$jscomp$inline_486; - } else JSCompiler_inline_result$jscomp$257 = !1; + JSCompiler_inline_result$jscomp$259 = isSupported$jscomp$inline_488; + } else JSCompiler_inline_result$jscomp$259 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$257 && + JSCompiler_inline_result$jscomp$259 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3554,19 +3554,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_499 = 0; - i$jscomp$inline_499 < simpleEventPluginEvents.length; - i$jscomp$inline_499++ + var i$jscomp$inline_501 = 0; + i$jscomp$inline_501 < simpleEventPluginEvents.length; + i$jscomp$inline_501++ ) { - var eventName$jscomp$inline_500 = - simpleEventPluginEvents[i$jscomp$inline_499], - domEventName$jscomp$inline_501 = eventName$jscomp$inline_500.toLowerCase(), - capitalizedEvent$jscomp$inline_502 = - eventName$jscomp$inline_500[0].toUpperCase() + - eventName$jscomp$inline_500.slice(1); + var eventName$jscomp$inline_502 = + simpleEventPluginEvents[i$jscomp$inline_501], + domEventName$jscomp$inline_503 = eventName$jscomp$inline_502.toLowerCase(), + capitalizedEvent$jscomp$inline_504 = + eventName$jscomp$inline_502[0].toUpperCase() + + eventName$jscomp$inline_502.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_501, - "on" + capitalizedEvent$jscomp$inline_502 + domEventName$jscomp$inline_503, + "on" + capitalizedEvent$jscomp$inline_504 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -5155,30 +5155,43 @@ function scheduleLegacySyncCallback(callback) { function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -6783,10 +6796,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$85 = thenableIndexCounter; + var index$87 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$85); + usable = trackUsedThenable(thenableState, usable, index$87); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -7277,16 +7290,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$91 = enqueueUpdate(provider, fiber, lane); - if (null !== root$91) { + var root$93 = enqueueUpdate(provider, fiber, lane); + if (null !== root$93) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$91, provider, lane, eventTime); - entangleTransitions(root$91, provider, lane); + scheduleUpdateOnFiber(root$93, provider, lane, eventTime); + entangleTransitions(root$93, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$91 && + null !== root$93 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -7493,15 +7506,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$87 = workInProgressRoot; - if (null === root$87) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$87, renderLanes$1) || + var root$89 = workInProgressRoot; + if (null === root$89) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$89, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$87 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$87; - mountEffect(subscribeToStore.bind(null, fiber, root$87, subscribe), [ + root$89 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$89; + mountEffect(subscribeToStore.bind(null, fiber, root$89, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -7510,7 +7523,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$87, + root$89, getServerSnapshot, getSnapshot ), @@ -7829,9 +7842,9 @@ function logCapturedError(boundary, errorInfo) { errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null }) && console.error(errorInfo.value); - } catch (e$96) { + } catch (e$98) { setTimeout(function () { - throw e$96; + throw e$98; }); } } @@ -8009,10 +8022,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$102 = workInProgress.stateNode; + root$104 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$102.incompleteTransitions.has(transition)) { + if (!root$104.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -8020,11 +8033,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$102.incompleteTransitions.set(transition, markerInstance); + root$104.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$102.incompleteTransitions.forEach(function (markerInstance) { + root$104.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -8724,14 +8737,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$109 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$109) + var dehydrated$111 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$111) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$109, + dehydrated$111, JSCompiler_temp, renderLanes ); @@ -8741,7 +8754,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$109 = JSCompiler_temp.sibling; + dehydrated$111 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -8750,8 +8763,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated$109 - ? (showFallback = createWorkInProgress(dehydrated$109, showFallback)) + null !== dehydrated$111 + ? (showFallback = createWorkInProgress(dehydrated$111, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -8770,10 +8783,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$109 = CacheContext._currentValue), + ? ((dehydrated$111 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$109 - ? { parent: dehydrated$109, pool: dehydrated$109 } + JSCompiler_temp.parent !== dehydrated$111 + ? { parent: dehydrated$111, pool: dehydrated$111 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -8787,23 +8800,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$109 = showFallback.updateQueue), + (dehydrated$111 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$109 + null === dehydrated$111 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null }) - : dehydrated$109 === primaryChildProps + : dehydrated$111 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null !== primaryChildProps ? primaryChildProps.wakeables : null }) - : ((dehydrated$109.transitions = didSuspend), - (dehydrated$109.markerInstances = JSCompiler_temp)))); + : ((dehydrated$111.transitions = didSuspend), + (dehydrated$111.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -9891,14 +9904,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$140 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$140 = lastTailNode), + for (var lastTailNode$142 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$142 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$140 + null === lastTailNode$142 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$140.sibling = null); + : (lastTailNode$142.sibling = null); } } function bubbleProperties(completedWork) { @@ -9908,19 +9921,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$141 = completedWork.child; null !== child$141; ) - (newChildLanes |= child$141.lanes | child$141.childLanes), - (subtreeFlags |= child$141.subtreeFlags & 14680064), - (subtreeFlags |= child$141.flags & 14680064), - (child$141.return = completedWork), - (child$141 = child$141.sibling); + for (var child$143 = completedWork.child; null !== child$143; ) + (newChildLanes |= child$143.lanes | child$143.childLanes), + (subtreeFlags |= child$143.subtreeFlags & 14680064), + (subtreeFlags |= child$143.flags & 14680064), + (child$143.return = completedWork), + (child$143 = child$143.sibling); else - for (child$141 = completedWork.child; null !== child$141; ) - (newChildLanes |= child$141.lanes | child$141.childLanes), - (subtreeFlags |= child$141.subtreeFlags), - (subtreeFlags |= child$141.flags), - (child$141.return = completedWork), - (child$141 = child$141.sibling); + for (child$143 = completedWork.child; null !== child$143; ) + (newChildLanes |= child$143.lanes | child$143.childLanes), + (subtreeFlags |= child$143.subtreeFlags), + (subtreeFlags |= child$143.flags), + (child$143.return = completedWork), + (child$143 = child$143.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10214,11 +10227,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$151 = null; + var cache$153 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$151 = newProps.memoizedState.cachePool.pool); - cache$151 !== type && (newProps.flags |= 2048); + (cache$153 = newProps.memoizedState.cachePool.pool); + cache$153 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -10254,8 +10267,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$151 = type.rendering; - if (null === cache$151) + cache$153 = type.rendering; + if (null === cache$153) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10263,11 +10276,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$151 = findFirstSuspended(current); - if (null !== cache$151) { + cache$153 = findFirstSuspended(current); + if (null !== cache$153) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$151.updateQueue; + current = cache$153.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10293,7 +10306,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$151)), null !== current)) { + if (((current = findFirstSuspended(cache$153)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10304,7 +10317,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$151.alternate && + !cache$153.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10317,13 +10330,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$151.sibling = workInProgress.child), - (workInProgress.child = cache$151)) + ? ((cache$153.sibling = workInProgress.child), + (workInProgress.child = cache$153)) : ((current = type.last), null !== current - ? (current.sibling = cache$151) - : (workInProgress.child = cache$151), - (type.last = cache$151)); + ? (current.sibling = cache$153) + : (workInProgress.child = cache$153), + (type.last = cache$153)); } if (null !== type.tail) return ( @@ -10580,8 +10593,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$167) { - captureCommitPhaseError(current, nearestMountedAncestor, error$167); + } catch (error$169) { + captureCommitPhaseError(current, nearestMountedAncestor, error$169); } else ref.current = null; } @@ -10888,11 +10901,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$169) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$169 + error$171 ); } } @@ -11566,8 +11579,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } } break; @@ -11745,11 +11758,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$183) { + } catch (error$185) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$183 + error$185 ); } break; @@ -11785,8 +11798,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$186) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$186); } } if ( @@ -11803,8 +11816,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, maybeNodes, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$187) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$187); + } catch (error$189) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$189); } break; case 6: @@ -11817,8 +11830,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$188) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$188); + } catch (error$190) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$190); } } break; @@ -11832,8 +11845,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$191) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$191); } break; case 4: @@ -11863,8 +11876,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$191) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$191); + } catch (error$193) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$193); } current = finishedWork.updateQueue; null !== current && @@ -11942,11 +11955,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$172) { + } catch (error$174) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$172 + error$174 ); } } else if ( @@ -12021,21 +12034,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$173 = JSCompiler_inline_result.stateNode; + var parent$175 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$173, ""), + (setTextContent(parent$175, ""), (JSCompiler_inline_result.flags &= -33)); - var before$174 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$174, parent$173); + var before$176 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$176, parent$175); break; case 3: case 4: - var parent$175 = JSCompiler_inline_result.stateNode.containerInfo, - before$176 = getHostSibling(finishedWork); + var parent$177 = JSCompiler_inline_result.stateNode.containerInfo, + before$178 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$176, - parent$175 + before$178, + parent$177 ); break; default: @@ -12505,9 +12518,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$201 = finishedWork.stateNode; + var instance$203 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$201._visibility & 4 + ? instance$203._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12520,7 +12533,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$201._visibility |= 4), + : ((instance$203._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12528,7 +12541,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$201._visibility |= 4), + : ((instance$203._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12541,7 +12554,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$201 + instance$203 ); break; case 24: @@ -13095,16 +13108,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$210 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$212 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$210 && - ((lanes = errorRetryLanes$210), + 0 !== errorRetryLanes$212 && + ((lanes = errorRetryLanes$212), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$210 + errorRetryLanes$212 ))); } if (1 === didTimeout) @@ -13158,11 +13171,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$210 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$210), - (errorRetryLanes$210 = didTimeout[errorRetryLanes$210]), - errorRetryLanes$210 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$210), + (errorRetryLanes$212 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$212), + (errorRetryLanes$212 = didTimeout[errorRetryLanes$212]), + errorRetryLanes$212 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$212), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -13496,8 +13509,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$213) { - handleThrow(root, thrownValue$213); + } catch (thrownValue$215) { + handleThrow(root, thrownValue$215); } while (1); resetContextDependencies(); @@ -13577,8 +13590,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$215) { - handleThrow(root, thrownValue$215); + } catch (thrownValue$217) { + handleThrow(root, thrownValue$217); } while (1); resetContextDependencies(); @@ -13726,10 +13739,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$97 = offscreenQueue.wakeables; - null === wakeables$97 + var wakeables$99 = offscreenQueue.wakeables; + null === wakeables$99 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$97.add(wakeable); + : wakeables$99.add(wakeable); } break; } @@ -13909,12 +13922,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$218 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$220 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$218 && + shouldFireAfterActiveInstanceBlur$220 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -13993,7 +14006,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$219 = rootWithPendingPassiveEffects, + var root$221 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -14009,7 +14022,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition), - releaseRootPooledCache(root$219, remainingLanes); + releaseRootPooledCache(root$221, remainingLanes); } } return !1; @@ -15405,11 +15418,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$222); + var instance = getPublicRootInstance(root$224); originalCallback.call(instance); }; } - var root$222 = createHydrationContainer( + var root$224 = createHydrationContainer( initialChildren, callback, container, @@ -15421,23 +15434,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$222; - container[internalContainerInstanceKey] = root$222.current; + container._reactRootContainer = root$224; + container[internalContainerInstanceKey] = root$224.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$222; + return root$224; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$223 = callback; + var originalCallback$225 = callback; callback = function () { - var instance = getPublicRootInstance(root$224); - originalCallback$223.call(instance); + var instance = getPublicRootInstance(root$226); + originalCallback$225.call(instance); }; } - var root$224 = createFiberRoot( + var root$226 = createFiberRoot( container, 0, !1, @@ -15449,15 +15462,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$224; - container[internalContainerInstanceKey] = root$224.current; + container._reactRootContainer = root$226; + container[internalContainerInstanceKey] = root$226.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$224, parentComponent, callback); + updateContainer(initialChildren, root$226, parentComponent, callback); }); - return root$224; + return root$226; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -15511,12 +15524,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$221 = fiber.stateNode; - if (root$221.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$221.pendingLanes); + var root$223 = fiber.stateNode; + if (root$223.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$223.pendingLanes); 0 !== lanes && - (markRootEntangled(root$221, lanes | 2), - ensureRootIsScheduled(root$221, now()), + (markRootEntangled(root$223, lanes | 2), + ensureRootIsScheduled(root$223, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } @@ -15606,17 +15619,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates ]; -var devToolsConfig$jscomp$inline_1760 = { +var devToolsConfig$jscomp$inline_1762 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-6f7d288a", + version: "18.3.0-www-classic-f123ce48", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2153 = { - bundleType: devToolsConfig$jscomp$inline_1760.bundleType, - version: devToolsConfig$jscomp$inline_1760.version, - rendererPackageName: devToolsConfig$jscomp$inline_1760.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1760.rendererConfig, +var internals$jscomp$inline_2155 = { + bundleType: devToolsConfig$jscomp$inline_1762.bundleType, + version: devToolsConfig$jscomp$inline_1762.version, + rendererPackageName: devToolsConfig$jscomp$inline_1762.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1762.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15632,26 +15645,26 @@ var internals$jscomp$inline_2153 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1760.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1762.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-6f7d288a" + reconcilerVersion: "18.3.0-www-classic-f123ce48" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2154 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2156 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2154.isDisabled && - hook$jscomp$inline_2154.supportsFiber + !hook$jscomp$inline_2156.isDisabled && + hook$jscomp$inline_2156.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2154.inject( - internals$jscomp$inline_2153 + (rendererID = hook$jscomp$inline_2156.inject( + internals$jscomp$inline_2155 )), - (injectedHook = hook$jscomp$inline_2154); + (injectedHook = hook$jscomp$inline_2156); } catch (err) {} } assign(Internals, { @@ -15895,4 +15908,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-6f7d288a"; +exports.version = "18.3.0-www-classic-f123ce48"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 2acf9b2bdb974..8097d605c6806 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -2840,19 +2840,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$240; + var JSCompiler_inline_result$jscomp$242; if (canUseDOM) { - var isSupported$jscomp$inline_396 = "oninput" in document; - if (!isSupported$jscomp$inline_396) { - var element$jscomp$inline_397 = document.createElement("div"); - element$jscomp$inline_397.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_396 = - "function" === typeof element$jscomp$inline_397.oninput; + var isSupported$jscomp$inline_398 = "oninput" in document; + if (!isSupported$jscomp$inline_398) { + var element$jscomp$inline_399 = document.createElement("div"); + element$jscomp$inline_399.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_398 = + "function" === typeof element$jscomp$inline_399.oninput; } - JSCompiler_inline_result$jscomp$240 = isSupported$jscomp$inline_396; - } else JSCompiler_inline_result$jscomp$240 = !1; + JSCompiler_inline_result$jscomp$242 = isSupported$jscomp$inline_398; + } else JSCompiler_inline_result$jscomp$242 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$240 && + JSCompiler_inline_result$jscomp$242 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3187,19 +3187,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_437 = 0; - i$jscomp$inline_437 < simpleEventPluginEvents.length; - i$jscomp$inline_437++ + var i$jscomp$inline_439 = 0; + i$jscomp$inline_439 < simpleEventPluginEvents.length; + i$jscomp$inline_439++ ) { - var eventName$jscomp$inline_438 = - simpleEventPluginEvents[i$jscomp$inline_437], - domEventName$jscomp$inline_439 = eventName$jscomp$inline_438.toLowerCase(), - capitalizedEvent$jscomp$inline_440 = - eventName$jscomp$inline_438[0].toUpperCase() + - eventName$jscomp$inline_438.slice(1); + var eventName$jscomp$inline_440 = + simpleEventPluginEvents[i$jscomp$inline_439], + domEventName$jscomp$inline_441 = eventName$jscomp$inline_440.toLowerCase(), + capitalizedEvent$jscomp$inline_442 = + eventName$jscomp$inline_440[0].toUpperCase() + + eventName$jscomp$inline_440.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_439, - "on" + capitalizedEvent$jscomp$inline_440 + domEventName$jscomp$inline_441, + "on" + capitalizedEvent$jscomp$inline_442 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -4961,30 +4961,43 @@ function scheduleLegacySyncCallback(callback) { function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -6589,10 +6602,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$86 = thenableIndexCounter; + var index$88 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$86); + usable = trackUsedThenable(thenableState, usable, index$88); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -7083,16 +7096,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$92 = enqueueUpdate(provider, fiber, lane); - if (null !== root$92) { + var root$94 = enqueueUpdate(provider, fiber, lane); + if (null !== root$94) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$92, provider, lane, eventTime); - entangleTransitions(root$92, provider, lane); + scheduleUpdateOnFiber(root$94, provider, lane, eventTime); + entangleTransitions(root$94, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$92 && + null !== root$94 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -7299,15 +7312,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$88 = workInProgressRoot; - if (null === root$88) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$88, renderLanes$1) || + var root$90 = workInProgressRoot; + if (null === root$90) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$90, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$88 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$88; - mountEffect(subscribeToStore.bind(null, fiber, root$88, subscribe), [ + root$90 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$90; + mountEffect(subscribeToStore.bind(null, fiber, root$90, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -7316,7 +7329,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$88, + root$90, getServerSnapshot, getSnapshot ), @@ -7620,9 +7633,9 @@ function logCapturedError(boundary, errorInfo) { errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null }) && console.error(errorInfo.value); - } catch (e$97) { + } catch (e$99) { setTimeout(function () { - throw e$97; + throw e$99; }); } } @@ -7800,10 +7813,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$103 = workInProgress.stateNode; + root$105 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$103.incompleteTransitions.has(transition)) { + if (!root$105.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -7811,11 +7824,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$103.incompleteTransitions.set(transition, markerInstance); + root$105.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$103.incompleteTransitions.forEach(function (markerInstance) { + root$105.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -8479,14 +8492,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$110 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$110) + var dehydrated$112 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$112) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$110, + dehydrated$112, JSCompiler_temp, renderLanes ); @@ -8496,7 +8509,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$110 = JSCompiler_temp.sibling; + dehydrated$112 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -8505,8 +8518,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated$110 - ? (showFallback = createWorkInProgress(dehydrated$110, showFallback)) + null !== dehydrated$112 + ? (showFallback = createWorkInProgress(dehydrated$112, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -8525,10 +8538,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$110 = CacheContext._currentValue), + ? ((dehydrated$112 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$110 - ? { parent: dehydrated$110, pool: dehydrated$110 } + JSCompiler_temp.parent !== dehydrated$112 + ? { parent: dehydrated$112, pool: dehydrated$112 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -8542,23 +8555,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$110 = showFallback.updateQueue), + (dehydrated$112 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$110 + null === dehydrated$112 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null }) - : dehydrated$110 === primaryChildProps + : dehydrated$112 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null !== primaryChildProps ? primaryChildProps.wakeables : null }) - : ((dehydrated$110.transitions = didSuspend), - (dehydrated$110.markerInstances = JSCompiler_temp)))); + : ((dehydrated$112.transitions = didSuspend), + (dehydrated$112.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -9642,14 +9655,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$141 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$141 = lastTailNode), + for (var lastTailNode$143 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$143 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$141 + null === lastTailNode$143 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$141.sibling = null); + : (lastTailNode$143.sibling = null); } } function bubbleProperties(completedWork) { @@ -9659,19 +9672,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$142 = completedWork.child; null !== child$142; ) - (newChildLanes |= child$142.lanes | child$142.childLanes), - (subtreeFlags |= child$142.subtreeFlags & 14680064), - (subtreeFlags |= child$142.flags & 14680064), - (child$142.return = completedWork), - (child$142 = child$142.sibling); + for (var child$144 = completedWork.child; null !== child$144; ) + (newChildLanes |= child$144.lanes | child$144.childLanes), + (subtreeFlags |= child$144.subtreeFlags & 14680064), + (subtreeFlags |= child$144.flags & 14680064), + (child$144.return = completedWork), + (child$144 = child$144.sibling); else - for (child$142 = completedWork.child; null !== child$142; ) - (newChildLanes |= child$142.lanes | child$142.childLanes), - (subtreeFlags |= child$142.subtreeFlags), - (subtreeFlags |= child$142.flags), - (child$142.return = completedWork), - (child$142 = child$142.sibling); + for (child$144 = completedWork.child; null !== child$144; ) + (newChildLanes |= child$144.lanes | child$144.childLanes), + (subtreeFlags |= child$144.subtreeFlags), + (subtreeFlags |= child$144.flags), + (child$144.return = completedWork), + (child$144 = child$144.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9959,11 +9972,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$154 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$152 = newProps.memoizedState.cachePool.pool); - cache$152 !== type && (newProps.flags |= 2048); + (cache$154 = newProps.memoizedState.cachePool.pool); + cache$154 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -9995,8 +10008,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$154 = type.rendering; + if (null === cache$154) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10004,11 +10017,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$154 = findFirstSuspended(current); + if (null !== cache$154) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$152.updateQueue; + current = cache$154.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10034,7 +10047,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$152)), null !== current)) { + if (((current = findFirstSuspended(cache$154)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10045,7 +10058,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$152.alternate && + !cache$154.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10058,13 +10071,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$152.sibling = workInProgress.child), - (workInProgress.child = cache$152)) + ? ((cache$154.sibling = workInProgress.child), + (workInProgress.child = cache$154)) : ((current = type.last), null !== current - ? (current.sibling = cache$152) - : (workInProgress.child = cache$152), - (type.last = cache$152)); + ? (current.sibling = cache$154) + : (workInProgress.child = cache$154), + (type.last = cache$154)); } if (null !== type.tail) return ( @@ -10312,8 +10325,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$167) { - captureCommitPhaseError(current, nearestMountedAncestor, error$167); + } catch (error$169) { + captureCommitPhaseError(current, nearestMountedAncestor, error$169); } else ref.current = null; } @@ -10633,11 +10646,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$169) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$169 + error$171 ); } } @@ -11311,8 +11324,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } } break; @@ -11490,11 +11503,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$183) { + } catch (error$185) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$183 + error$185 ); } break; @@ -11530,8 +11543,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$186) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$186); } } if ( @@ -11548,8 +11561,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, maybeNodes, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$187) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$187); + } catch (error$189) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$189); } break; case 6: @@ -11562,8 +11575,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$188) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$188); + } catch (error$190) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$190); } } break; @@ -11577,8 +11590,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$191) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$191); } break; case 4: @@ -11608,8 +11621,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$191) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$191); + } catch (error$193) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$193); } current = finishedWork.updateQueue; null !== current && @@ -11687,11 +11700,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$172) { + } catch (error$174) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$172 + error$174 ); } } else if ( @@ -11766,21 +11779,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$173 = JSCompiler_inline_result.stateNode; + var parent$175 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$173, ""), + (setTextContent(parent$175, ""), (JSCompiler_inline_result.flags &= -33)); - var before$174 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$174, parent$173); + var before$176 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$176, parent$175); break; case 3: case 4: - var parent$175 = JSCompiler_inline_result.stateNode.containerInfo, - before$176 = getHostSibling(finishedWork); + var parent$177 = JSCompiler_inline_result.stateNode.containerInfo, + before$178 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$176, - parent$175 + before$178, + parent$177 ); break; default: @@ -12250,9 +12263,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$201 = finishedWork.stateNode; + var instance$203 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$201._visibility & 4 + ? instance$203._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12265,7 +12278,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$201._visibility |= 4), + : ((instance$203._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12273,7 +12286,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$201._visibility |= 4), + : ((instance$203._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12286,7 +12299,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$201 + instance$203 ); break; case 24: @@ -12840,16 +12853,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$210 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$212 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$210 && - ((lanes = errorRetryLanes$210), + 0 !== errorRetryLanes$212 && + ((lanes = errorRetryLanes$212), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$210 + errorRetryLanes$212 ))); } if (1 === didTimeout) @@ -12903,11 +12916,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$210 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$210), - (errorRetryLanes$210 = didTimeout[errorRetryLanes$210]), - errorRetryLanes$210 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$210), + (errorRetryLanes$212 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$212), + (errorRetryLanes$212 = didTimeout[errorRetryLanes$212]), + errorRetryLanes$212 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$212), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -13241,8 +13254,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$213) { - handleThrow(root, thrownValue$213); + } catch (thrownValue$215) { + handleThrow(root, thrownValue$215); } while (1); resetContextDependencies(); @@ -13322,8 +13335,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$215) { - handleThrow(root, thrownValue$215); + } catch (thrownValue$217) { + handleThrow(root, thrownValue$217); } while (1); resetContextDependencies(); @@ -13471,10 +13484,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$98 = offscreenQueue.wakeables; - null === wakeables$98 + var wakeables$100 = offscreenQueue.wakeables; + null === wakeables$100 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$98.add(wakeable); + : wakeables$100.add(wakeable); } break; } @@ -13654,12 +13667,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$218 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$220 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$218 && + shouldFireAfterActiveInstanceBlur$220 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -13738,7 +13751,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$219 = rootWithPendingPassiveEffects, + var root$221 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -13754,7 +13767,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition), - releaseRootPooledCache(root$219, remainingLanes); + releaseRootPooledCache(root$221, remainingLanes); } } return !1; @@ -15038,12 +15051,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$221 = fiber.stateNode; - if (root$221.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$221.pendingLanes); + var root$223 = fiber.stateNode; + if (root$223.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$223.pendingLanes); 0 !== lanes && - (markRootEntangled(root$221, lanes | 2), - ensureRootIsScheduled(root$221, now()), + (markRootEntangled(root$223, lanes | 2), + ensureRootIsScheduled(root$223, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } @@ -15133,17 +15146,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates ]; -var devToolsConfig$jscomp$inline_1719 = { +var devToolsConfig$jscomp$inline_1721 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-8fb0ac5f", + version: "18.3.0-www-modern-78c5facb", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2117 = { - bundleType: devToolsConfig$jscomp$inline_1719.bundleType, - version: devToolsConfig$jscomp$inline_1719.version, - rendererPackageName: devToolsConfig$jscomp$inline_1719.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1719.rendererConfig, +var internals$jscomp$inline_2119 = { + bundleType: devToolsConfig$jscomp$inline_1721.bundleType, + version: devToolsConfig$jscomp$inline_1721.version, + rendererPackageName: devToolsConfig$jscomp$inline_1721.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1721.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15160,26 +15173,26 @@ var internals$jscomp$inline_2117 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1719.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1721.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-8fb0ac5f" + reconcilerVersion: "18.3.0-www-modern-78c5facb" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2118 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2120 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2118.isDisabled && - hook$jscomp$inline_2118.supportsFiber + !hook$jscomp$inline_2120.isDisabled && + hook$jscomp$inline_2120.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2118.inject( - internals$jscomp$inline_2117 + (rendererID = hook$jscomp$inline_2120.inject( + internals$jscomp$inline_2119 )), - (injectedHook = hook$jscomp$inline_2118); + (injectedHook = hook$jscomp$inline_2120); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -15352,4 +15365,4 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-8fb0ac5f"; +exports.version = "18.3.0-www-modern-78c5facb"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index f4217662432e0..7b8512d9f83ab 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -3526,19 +3526,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$278; + var JSCompiler_inline_result$jscomp$280; if (canUseDOM) { - var isSupported$jscomp$inline_507 = "oninput" in document; - if (!isSupported$jscomp$inline_507) { - var element$jscomp$inline_508 = document.createElement("div"); - element$jscomp$inline_508.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_507 = - "function" === typeof element$jscomp$inline_508.oninput; + var isSupported$jscomp$inline_509 = "oninput" in document; + if (!isSupported$jscomp$inline_509) { + var element$jscomp$inline_510 = document.createElement("div"); + element$jscomp$inline_510.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_509 = + "function" === typeof element$jscomp$inline_510.oninput; } - JSCompiler_inline_result$jscomp$278 = isSupported$jscomp$inline_507; - } else JSCompiler_inline_result$jscomp$278 = !1; + JSCompiler_inline_result$jscomp$280 = isSupported$jscomp$inline_509; + } else JSCompiler_inline_result$jscomp$280 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$278 && + JSCompiler_inline_result$jscomp$280 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3702,19 +3702,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_520 = 0; - i$jscomp$inline_520 < simpleEventPluginEvents.length; - i$jscomp$inline_520++ + var i$jscomp$inline_522 = 0; + i$jscomp$inline_522 < simpleEventPluginEvents.length; + i$jscomp$inline_522++ ) { - var eventName$jscomp$inline_521 = - simpleEventPluginEvents[i$jscomp$inline_520], - domEventName$jscomp$inline_522 = eventName$jscomp$inline_521.toLowerCase(), - capitalizedEvent$jscomp$inline_523 = - eventName$jscomp$inline_521[0].toUpperCase() + - eventName$jscomp$inline_521.slice(1); + var eventName$jscomp$inline_523 = + simpleEventPluginEvents[i$jscomp$inline_522], + domEventName$jscomp$inline_524 = eventName$jscomp$inline_523.toLowerCase(), + capitalizedEvent$jscomp$inline_525 = + eventName$jscomp$inline_523[0].toUpperCase() + + eventName$jscomp$inline_523.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_522, - "on" + capitalizedEvent$jscomp$inline_523 + domEventName$jscomp$inline_524, + "on" + capitalizedEvent$jscomp$inline_525 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -5303,30 +5303,43 @@ function scheduleLegacySyncCallback(callback) { function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -6931,10 +6944,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$88 = thenableIndexCounter; + var index$90 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$88); + usable = trackUsedThenable(thenableState, usable, index$90); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -7425,16 +7438,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$94 = enqueueUpdate(provider, fiber, lane); - if (null !== root$94) { + var root$96 = enqueueUpdate(provider, fiber, lane); + if (null !== root$96) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$94, provider, lane, eventTime); - entangleTransitions(root$94, provider, lane); + scheduleUpdateOnFiber(root$96, provider, lane, eventTime); + entangleTransitions(root$96, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$94 && + null !== root$96 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -7643,15 +7656,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$90 = workInProgressRoot; - if (null === root$90) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$90, renderLanes$1) || + var root$92 = workInProgressRoot; + if (null === root$92) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$92, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$90 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$90; - mountEffect(subscribeToStore.bind(null, fiber, root$90, subscribe), [ + root$92 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$92; + mountEffect(subscribeToStore.bind(null, fiber, root$92, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -7660,7 +7673,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$90, + root$92, getServerSnapshot, getSnapshot ), @@ -8048,9 +8061,9 @@ function logCapturedError(boundary, errorInfo) { errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null }) && console.error(errorInfo.value); - } catch (e$101) { + } catch (e$103) { setTimeout(function () { - throw e$101; + throw e$103; }); } } @@ -8228,10 +8241,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$107 = workInProgress.stateNode; + root$109 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$107.incompleteTransitions.has(transition)) { + if (!root$109.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -8239,11 +8252,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$107.incompleteTransitions.set(transition, markerInstance); + root$109.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$107.incompleteTransitions.forEach(function (markerInstance) { + root$109.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -8956,14 +8969,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$114 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$114) + var dehydrated$116 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$116) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$114, + dehydrated$116, JSCompiler_temp, renderLanes ); @@ -8973,7 +8986,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$114 = JSCompiler_temp.sibling; + dehydrated$116 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -8987,8 +9000,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated$114 - ? (showFallback = createWorkInProgress(dehydrated$114, showFallback)) + null !== dehydrated$116 + ? (showFallback = createWorkInProgress(dehydrated$116, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -9007,10 +9020,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$114 = CacheContext._currentValue), + ? ((dehydrated$116 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$114 - ? { parent: dehydrated$114, pool: dehydrated$114 } + JSCompiler_temp.parent !== dehydrated$116 + ? { parent: dehydrated$116, pool: dehydrated$116 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -9024,23 +9037,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$114 = showFallback.updateQueue), + (dehydrated$116 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$114 + null === dehydrated$116 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null }) - : dehydrated$114 === primaryChildProps + : dehydrated$116 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null !== primaryChildProps ? primaryChildProps.wakeables : null }) - : ((dehydrated$114.transitions = didSuspend), - (dehydrated$114.markerInstances = JSCompiler_temp)))); + : ((dehydrated$116.transitions = didSuspend), + (dehydrated$116.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -10141,14 +10154,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$146 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$146 = lastTailNode), + for (var lastTailNode$148 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$148 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$146 + null === lastTailNode$148 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$146.sibling = null); + : (lastTailNode$148.sibling = null); } } function bubbleProperties(completedWork) { @@ -10160,53 +10173,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$148 = completedWork.selfBaseDuration, - child$149 = completedWork.child; - null !== child$149; + var treeBaseDuration$150 = completedWork.selfBaseDuration, + child$151 = completedWork.child; + null !== child$151; ) - (newChildLanes |= child$149.lanes | child$149.childLanes), - (subtreeFlags |= child$149.subtreeFlags & 14680064), - (subtreeFlags |= child$149.flags & 14680064), - (treeBaseDuration$148 += child$149.treeBaseDuration), - (child$149 = child$149.sibling); - completedWork.treeBaseDuration = treeBaseDuration$148; + (newChildLanes |= child$151.lanes | child$151.childLanes), + (subtreeFlags |= child$151.subtreeFlags & 14680064), + (subtreeFlags |= child$151.flags & 14680064), + (treeBaseDuration$150 += child$151.treeBaseDuration), + (child$151 = child$151.sibling); + completedWork.treeBaseDuration = treeBaseDuration$150; } else for ( - treeBaseDuration$148 = completedWork.child; - null !== treeBaseDuration$148; + treeBaseDuration$150 = completedWork.child; + null !== treeBaseDuration$150; ) (newChildLanes |= - treeBaseDuration$148.lanes | treeBaseDuration$148.childLanes), - (subtreeFlags |= treeBaseDuration$148.subtreeFlags & 14680064), - (subtreeFlags |= treeBaseDuration$148.flags & 14680064), - (treeBaseDuration$148.return = completedWork), - (treeBaseDuration$148 = treeBaseDuration$148.sibling); + treeBaseDuration$150.lanes | treeBaseDuration$150.childLanes), + (subtreeFlags |= treeBaseDuration$150.subtreeFlags & 14680064), + (subtreeFlags |= treeBaseDuration$150.flags & 14680064), + (treeBaseDuration$150.return = completedWork), + (treeBaseDuration$150 = treeBaseDuration$150.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$148 = completedWork.actualDuration; - child$149 = completedWork.selfBaseDuration; + treeBaseDuration$150 = completedWork.actualDuration; + child$151 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$148 += child.actualDuration), - (child$149 += child.treeBaseDuration), + (treeBaseDuration$150 += child.actualDuration), + (child$151 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$148; - completedWork.treeBaseDuration = child$149; + completedWork.actualDuration = treeBaseDuration$150; + completedWork.treeBaseDuration = child$151; } else for ( - treeBaseDuration$148 = completedWork.child; - null !== treeBaseDuration$148; + treeBaseDuration$150 = completedWork.child; + null !== treeBaseDuration$150; ) (newChildLanes |= - treeBaseDuration$148.lanes | treeBaseDuration$148.childLanes), - (subtreeFlags |= treeBaseDuration$148.subtreeFlags), - (subtreeFlags |= treeBaseDuration$148.flags), - (treeBaseDuration$148.return = completedWork), - (treeBaseDuration$148 = treeBaseDuration$148.sibling); + treeBaseDuration$150.lanes | treeBaseDuration$150.childLanes), + (subtreeFlags |= treeBaseDuration$150.subtreeFlags), + (subtreeFlags |= treeBaseDuration$150.flags), + (treeBaseDuration$150.return = completedWork), + (treeBaseDuration$150 = treeBaseDuration$150.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10516,11 +10529,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$162 = null; + var cache$164 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$162 = newProps.memoizedState.cachePool.pool); - cache$162 !== type && (newProps.flags |= 2048); + (cache$164 = newProps.memoizedState.cachePool.pool); + cache$164 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -10561,8 +10574,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$162 = type.rendering; - if (null === cache$162) + cache$164 = type.rendering; + if (null === cache$164) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10570,11 +10583,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$162 = findFirstSuspended(current); - if (null !== cache$162) { + cache$164 = findFirstSuspended(current); + if (null !== cache$164) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$162.updateQueue; + current = cache$164.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10600,7 +10613,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$162)), null !== current)) { + if (((current = findFirstSuspended(cache$164)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10611,7 +10624,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$162.alternate && + !cache$164.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10624,13 +10637,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$162.sibling = workInProgress.child), - (workInProgress.child = cache$162)) + ? ((cache$164.sibling = workInProgress.child), + (workInProgress.child = cache$164)) : ((current = type.last), null !== current - ? (current.sibling = cache$162) - : (workInProgress.child = cache$162), - (type.last = cache$162)); + ? (current.sibling = cache$164) + : (workInProgress.child = cache$164), + (type.last = cache$164)); } if (null !== type.tail) return ( @@ -10930,8 +10943,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$178) { - captureCommitPhaseError(current, nearestMountedAncestor, error$178); + } catch (error$180) { + captureCommitPhaseError(current, nearestMountedAncestor, error$180); } else ref.current = null; } @@ -11229,11 +11242,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$180 = 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$180); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$182); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -11260,8 +11273,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } } function commitClassCallbacks(finishedWork) { @@ -11360,11 +11373,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$183) { + } catch (error$185) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$183 + error$185 ); } else { @@ -11381,11 +11394,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$184) { + } catch (error$186) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$184 + error$186 ); } recordLayoutEffectDuration(finishedWork); @@ -11396,11 +11409,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$185) { + } catch (error$187) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$185 + error$187 ); } } @@ -12099,22 +12112,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$200) { + } catch (error$202) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$200 + error$202 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$201) { + } catch (error$203) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$201 + error$203 ); } } @@ -12293,11 +12306,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$202) { + } catch (error$204) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$202 + error$204 ); } break; @@ -12333,8 +12346,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$203) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$203); + } catch (error$205) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$205); } } if ( @@ -12351,8 +12364,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, maybeNodes, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$206) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$206); + } catch (error$208) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$208); } break; case 6: @@ -12365,8 +12378,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$207) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$207); + } catch (error$209) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$209); } } break; @@ -12380,8 +12393,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$208) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$208); + } catch (error$210) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$210); } break; case 4: @@ -12411,8 +12424,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$210) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$210); + } catch (error$212) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$212); } current = finishedWork.updateQueue; null !== current && @@ -12490,11 +12503,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$190) { + } catch (error$192) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$190 + error$192 ); } } else if ( @@ -12569,21 +12582,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$191 = JSCompiler_inline_result.stateNode; + var parent$193 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$191, ""), + (setTextContent(parent$193, ""), (JSCompiler_inline_result.flags &= -33)); - var before$192 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$192, parent$191); + var before$194 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$194, parent$193); break; case 3: case 4: - var parent$193 = JSCompiler_inline_result.stateNode.containerInfo, - before$194 = getHostSibling(finishedWork); + var parent$195 = JSCompiler_inline_result.stateNode.containerInfo, + before$196 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$194, - parent$193 + before$196, + parent$195 ); break; default: @@ -12775,8 +12788,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$216) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$216); + } catch (error$218) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$218); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -13075,9 +13088,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$221 = finishedWork.stateNode; + var instance$223 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$221._visibility & 4 + ? instance$223._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -13090,7 +13103,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$221._visibility |= 4), + : ((instance$223._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -13098,7 +13111,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$221._visibility |= 4), + : ((instance$223._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -13111,7 +13124,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$221 + instance$223 ); break; case 24: @@ -13703,16 +13716,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$230 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$232 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$230 && - ((lanes = errorRetryLanes$230), + 0 !== errorRetryLanes$232 && + ((lanes = errorRetryLanes$232), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$230 + errorRetryLanes$232 ))); } if (1 === didTimeout) @@ -13766,11 +13779,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$230 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$230), - (errorRetryLanes$230 = didTimeout[errorRetryLanes$230]), - errorRetryLanes$230 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$230), + (errorRetryLanes$232 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$232), + (errorRetryLanes$232 = didTimeout[errorRetryLanes$232]), + errorRetryLanes$232 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$232), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now$1() - lanes; @@ -14144,8 +14157,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$233) { - handleThrow(root, thrownValue$233); + } catch (thrownValue$235) { + handleThrow(root, thrownValue$235); } while (1); resetContextDependencies(); @@ -14236,8 +14249,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$235) { - handleThrow(root, thrownValue$235); + } catch (thrownValue$237) { + handleThrow(root, thrownValue$237); } while (1); resetContextDependencies(); @@ -14405,10 +14418,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$102 = offscreenQueue.wakeables; - null === wakeables$102 + var wakeables$104 = offscreenQueue.wakeables; + null === wakeables$104 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$102.add(wakeable); + : wakeables$104.add(wakeable); } break; } @@ -14605,7 +14618,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$238 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$240 = commitBeforeMutationEffects( root, finishedWork ); @@ -14613,7 +14626,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$238 && + shouldFireAfterActiveInstanceBlur$240 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -14707,7 +14720,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$239 = rootWithPendingPassiveEffects, + var root$241 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -14723,7 +14736,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition), - releaseRootPooledCache(root$239, remainingLanes); + releaseRootPooledCache(root$241, remainingLanes); } } return !1; @@ -16182,11 +16195,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$243); + var instance = getPublicRootInstance(root$245); originalCallback.call(instance); }; } - var root$243 = createHydrationContainer( + var root$245 = createHydrationContainer( initialChildren, callback, container, @@ -16198,23 +16211,23 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$243; - container[internalContainerInstanceKey] = root$243.current; + container._reactRootContainer = root$245; + container[internalContainerInstanceKey] = root$245.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$243; + return root$245; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$244 = callback; + var originalCallback$246 = callback; callback = function () { - var instance = getPublicRootInstance(root$245); - originalCallback$244.call(instance); + var instance = getPublicRootInstance(root$247); + originalCallback$246.call(instance); }; } - var root$245 = createFiberRoot( + var root$247 = createFiberRoot( container, 0, !1, @@ -16226,15 +16239,15 @@ function legacyCreateRootFromDOMContainer( noopOnRecoverableError, null ); - container._reactRootContainer = root$245; - container[internalContainerInstanceKey] = root$245.current; + container._reactRootContainer = root$247; + container[internalContainerInstanceKey] = root$247.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$245, parentComponent, callback); + updateContainer(initialChildren, root$247, parentComponent, callback); }); - return root$245; + return root$247; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -16288,12 +16301,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$242 = fiber.stateNode; - if (root$242.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$242.pendingLanes); + var root$244 = fiber.stateNode; + if (root$244.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$244.pendingLanes); 0 !== lanes && - (markRootEntangled(root$242, lanes | 2), - ensureRootIsScheduled(root$242, now$1()), + (markRootEntangled(root$244, lanes | 2), + ensureRootIsScheduled(root$244, now$1()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } @@ -16383,10 +16396,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates ]; -var devToolsConfig$jscomp$inline_1840 = { +var devToolsConfig$jscomp$inline_1842 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-3b65d5fe", + version: "18.3.0-www-classic-68e013e5", rendererPackageName: "react-dom" }; (function (internals) { @@ -16404,10 +16417,10 @@ var devToolsConfig$jscomp$inline_1840 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1840.bundleType, - version: devToolsConfig$jscomp$inline_1840.version, - rendererPackageName: devToolsConfig$jscomp$inline_1840.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1840.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1842.bundleType, + version: devToolsConfig$jscomp$inline_1842.version, + rendererPackageName: devToolsConfig$jscomp$inline_1842.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1842.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -16423,14 +16436,14 @@ var devToolsConfig$jscomp$inline_1840 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1840.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1842.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-3b65d5fe" + reconcilerVersion: "18.3.0-www-classic-68e013e5" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16673,7 +16686,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-3b65d5fe"; +exports.version = "18.3.0-www-classic-68e013e5"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index ea1b23e027e3a..b77f42778c1db 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -2984,19 +2984,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$261; + var JSCompiler_inline_result$jscomp$263; if (canUseDOM) { - var isSupported$jscomp$inline_417 = "oninput" in document; - if (!isSupported$jscomp$inline_417) { - var element$jscomp$inline_418 = document.createElement("div"); - element$jscomp$inline_418.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_417 = - "function" === typeof element$jscomp$inline_418.oninput; - } - JSCompiler_inline_result$jscomp$261 = isSupported$jscomp$inline_417; - } else JSCompiler_inline_result$jscomp$261 = !1; + var isSupported$jscomp$inline_419 = "oninput" in document; + if (!isSupported$jscomp$inline_419) { + var element$jscomp$inline_420 = document.createElement("div"); + element$jscomp$inline_420.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_419 = + "function" === typeof element$jscomp$inline_420.oninput; + } + JSCompiler_inline_result$jscomp$263 = isSupported$jscomp$inline_419; + } else JSCompiler_inline_result$jscomp$263 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$261 && + JSCompiler_inline_result$jscomp$263 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3331,19 +3331,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_458 = 0; - i$jscomp$inline_458 < simpleEventPluginEvents.length; - i$jscomp$inline_458++ + var i$jscomp$inline_460 = 0; + i$jscomp$inline_460 < simpleEventPluginEvents.length; + i$jscomp$inline_460++ ) { - var eventName$jscomp$inline_459 = - simpleEventPluginEvents[i$jscomp$inline_458], - domEventName$jscomp$inline_460 = eventName$jscomp$inline_459.toLowerCase(), - capitalizedEvent$jscomp$inline_461 = - eventName$jscomp$inline_459[0].toUpperCase() + - eventName$jscomp$inline_459.slice(1); + var eventName$jscomp$inline_461 = + simpleEventPluginEvents[i$jscomp$inline_460], + domEventName$jscomp$inline_462 = eventName$jscomp$inline_461.toLowerCase(), + capitalizedEvent$jscomp$inline_463 = + eventName$jscomp$inline_461[0].toUpperCase() + + eventName$jscomp$inline_461.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_460, - "on" + capitalizedEvent$jscomp$inline_461 + domEventName$jscomp$inline_462, + "on" + capitalizedEvent$jscomp$inline_463 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -5105,30 +5105,43 @@ function scheduleLegacySyncCallback(callback) { function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -6733,10 +6746,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$89 = thenableIndexCounter; + var index$91 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$89); + usable = trackUsedThenable(thenableState, usable, index$91); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -7227,16 +7240,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$95 = enqueueUpdate(provider, fiber, lane); - if (null !== root$95) { + var root$97 = enqueueUpdate(provider, fiber, lane); + if (null !== root$97) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$95, provider, lane, eventTime); - entangleTransitions(root$95, provider, lane); + scheduleUpdateOnFiber(root$97, provider, lane, eventTime); + entangleTransitions(root$97, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$95 && + null !== root$97 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -7445,15 +7458,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$91 = workInProgressRoot; - if (null === root$91) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$91, renderLanes$1) || + var root$93 = workInProgressRoot; + if (null === root$93) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$93, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$91 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$91; - mountEffect(subscribeToStore.bind(null, fiber, root$91, subscribe), [ + root$93 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$93; + mountEffect(subscribeToStore.bind(null, fiber, root$93, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -7462,7 +7475,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$91, + root$93, getServerSnapshot, getSnapshot ), @@ -7835,9 +7848,9 @@ function logCapturedError(boundary, errorInfo) { errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null }) && console.error(errorInfo.value); - } catch (e$102) { + } catch (e$104) { setTimeout(function () { - throw e$102; + throw e$104; }); } } @@ -8015,10 +8028,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$108 = workInProgress.stateNode; + root$110 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$108.incompleteTransitions.has(transition)) { + if (!root$110.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -8026,11 +8039,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$108.incompleteTransitions.set(transition, markerInstance); + root$110.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$108.incompleteTransitions.forEach(function (markerInstance) { + root$110.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -8701,14 +8714,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$115 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$115) + var dehydrated$117 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$117) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$115, + dehydrated$117, JSCompiler_temp, renderLanes ); @@ -8718,7 +8731,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$115 = JSCompiler_temp.sibling; + dehydrated$117 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -8732,8 +8745,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated$115 - ? (showFallback = createWorkInProgress(dehydrated$115, showFallback)) + null !== dehydrated$117 + ? (showFallback = createWorkInProgress(dehydrated$117, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -8752,10 +8765,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$115 = CacheContext._currentValue), + ? ((dehydrated$117 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$115 - ? { parent: dehydrated$115, pool: dehydrated$115 } + JSCompiler_temp.parent !== dehydrated$117 + ? { parent: dehydrated$117, pool: dehydrated$117 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -8769,23 +8782,23 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), - (dehydrated$115 = showFallback.updateQueue), + (dehydrated$117 = showFallback.updateQueue), (primaryChildProps = current.updateQueue), - null === dehydrated$115 + null === dehydrated$117 ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null }) - : dehydrated$115 === primaryChildProps + : dehydrated$117 === primaryChildProps ? (showFallback.updateQueue = { transitions: didSuspend, markerInstances: JSCompiler_temp, wakeables: null !== primaryChildProps ? primaryChildProps.wakeables : null }) - : ((dehydrated$115.transitions = didSuspend), - (dehydrated$115.markerInstances = JSCompiler_temp)))); + : ((dehydrated$117.transitions = didSuspend), + (dehydrated$117.markerInstances = JSCompiler_temp)))); showFallback.childLanes = current.childLanes & ~renderLanes; workInProgress.memoizedState = SUSPENDED_MARKER; return nextProps; @@ -9882,14 +9895,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$147 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$147 = lastTailNode), + for (var lastTailNode$149 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$149 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$147 + null === lastTailNode$149 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$147.sibling = null); + : (lastTailNode$149.sibling = null); } } function bubbleProperties(completedWork) { @@ -9901,53 +9914,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$149 = completedWork.selfBaseDuration, - child$150 = completedWork.child; - null !== child$150; + var treeBaseDuration$151 = completedWork.selfBaseDuration, + child$152 = completedWork.child; + null !== child$152; ) - (newChildLanes |= child$150.lanes | child$150.childLanes), - (subtreeFlags |= child$150.subtreeFlags & 14680064), - (subtreeFlags |= child$150.flags & 14680064), - (treeBaseDuration$149 += child$150.treeBaseDuration), - (child$150 = child$150.sibling); - completedWork.treeBaseDuration = treeBaseDuration$149; + (newChildLanes |= child$152.lanes | child$152.childLanes), + (subtreeFlags |= child$152.subtreeFlags & 14680064), + (subtreeFlags |= child$152.flags & 14680064), + (treeBaseDuration$151 += child$152.treeBaseDuration), + (child$152 = child$152.sibling); + completedWork.treeBaseDuration = treeBaseDuration$151; } else for ( - treeBaseDuration$149 = completedWork.child; - null !== treeBaseDuration$149; + treeBaseDuration$151 = completedWork.child; + null !== treeBaseDuration$151; ) (newChildLanes |= - treeBaseDuration$149.lanes | treeBaseDuration$149.childLanes), - (subtreeFlags |= treeBaseDuration$149.subtreeFlags & 14680064), - (subtreeFlags |= treeBaseDuration$149.flags & 14680064), - (treeBaseDuration$149.return = completedWork), - (treeBaseDuration$149 = treeBaseDuration$149.sibling); + treeBaseDuration$151.lanes | treeBaseDuration$151.childLanes), + (subtreeFlags |= treeBaseDuration$151.subtreeFlags & 14680064), + (subtreeFlags |= treeBaseDuration$151.flags & 14680064), + (treeBaseDuration$151.return = completedWork), + (treeBaseDuration$151 = treeBaseDuration$151.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$149 = completedWork.actualDuration; - child$150 = completedWork.selfBaseDuration; + treeBaseDuration$151 = completedWork.actualDuration; + child$152 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$149 += child.actualDuration), - (child$150 += child.treeBaseDuration), + (treeBaseDuration$151 += child.actualDuration), + (child$152 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$149; - completedWork.treeBaseDuration = child$150; + completedWork.actualDuration = treeBaseDuration$151; + completedWork.treeBaseDuration = child$152; } else for ( - treeBaseDuration$149 = completedWork.child; - null !== treeBaseDuration$149; + treeBaseDuration$151 = completedWork.child; + null !== treeBaseDuration$151; ) (newChildLanes |= - treeBaseDuration$149.lanes | treeBaseDuration$149.childLanes), - (subtreeFlags |= treeBaseDuration$149.subtreeFlags), - (subtreeFlags |= treeBaseDuration$149.flags), - (treeBaseDuration$149.return = completedWork), - (treeBaseDuration$149 = treeBaseDuration$149.sibling); + treeBaseDuration$151.lanes | treeBaseDuration$151.childLanes), + (subtreeFlags |= treeBaseDuration$151.subtreeFlags), + (subtreeFlags |= treeBaseDuration$151.flags), + (treeBaseDuration$151.return = completedWork), + (treeBaseDuration$151 = treeBaseDuration$151.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10251,11 +10264,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$163 = null; + var cache$165 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$163 = newProps.memoizedState.cachePool.pool); - cache$163 !== type && (newProps.flags |= 2048); + (cache$165 = newProps.memoizedState.cachePool.pool); + cache$165 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -10292,8 +10305,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$163 = type.rendering; - if (null === cache$163) + cache$165 = type.rendering; + if (null === cache$165) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10301,11 +10314,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$163 = findFirstSuspended(current); - if (null !== cache$163) { + cache$165 = findFirstSuspended(current); + if (null !== cache$165) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$163.updateQueue; + current = cache$165.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -10331,7 +10344,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$163)), null !== current)) { + if (((current = findFirstSuspended(cache$165)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10342,7 +10355,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$163.alternate && + !cache$165.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10355,13 +10368,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$163.sibling = workInProgress.child), - (workInProgress.child = cache$163)) + ? ((cache$165.sibling = workInProgress.child), + (workInProgress.child = cache$165)) : ((current = type.last), null !== current - ? (current.sibling = cache$163) - : (workInProgress.child = cache$163), - (type.last = cache$163)); + ? (current.sibling = cache$165) + : (workInProgress.child = cache$165), + (type.last = cache$165)); } if (null !== type.tail) return ( @@ -10652,8 +10665,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$178) { - captureCommitPhaseError(current, nearestMountedAncestor, error$178); + } catch (error$180) { + captureCommitPhaseError(current, nearestMountedAncestor, error$180); } else ref.current = null; } @@ -10964,11 +10977,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$180 = 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$180); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$182); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -10995,8 +11008,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$184) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$184); } } function commitClassCallbacks(finishedWork) { @@ -11095,11 +11108,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$183) { + } catch (error$185) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$183 + error$185 ); } else { @@ -11116,11 +11129,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$184) { + } catch (error$186) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$184 + error$186 ); } recordLayoutEffectDuration(finishedWork); @@ -11131,11 +11144,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$185) { + } catch (error$187) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$185 + error$187 ); } } @@ -11834,22 +11847,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$200) { + } catch (error$202) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$200 + error$202 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$201) { + } catch (error$203) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$201 + error$203 ); } } @@ -12028,11 +12041,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$202) { + } catch (error$204) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$202 + error$204 ); } break; @@ -12068,8 +12081,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$203) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$203); + } catch (error$205) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$205); } } if ( @@ -12086,8 +12099,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, maybeNodes, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$206) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$206); + } catch (error$208) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$208); } break; case 6: @@ -12100,8 +12113,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$207) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$207); + } catch (error$209) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$209); } } break; @@ -12115,8 +12128,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$208) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$208); + } catch (error$210) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$210); } break; case 4: @@ -12146,8 +12159,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$210) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$210); + } catch (error$212) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$212); } current = finishedWork.updateQueue; null !== current && @@ -12225,11 +12238,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$190) { + } catch (error$192) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$190 + error$192 ); } } else if ( @@ -12304,21 +12317,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$191 = JSCompiler_inline_result.stateNode; + var parent$193 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$191, ""), + (setTextContent(parent$193, ""), (JSCompiler_inline_result.flags &= -33)); - var before$192 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$192, parent$191); + var before$194 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$194, parent$193); break; case 3: case 4: - var parent$193 = JSCompiler_inline_result.stateNode.containerInfo, - before$194 = getHostSibling(finishedWork); + var parent$195 = JSCompiler_inline_result.stateNode.containerInfo, + before$196 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$194, - parent$193 + before$196, + parent$195 ); break; default: @@ -12510,8 +12523,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$216) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$216); + } catch (error$218) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$218); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -12810,9 +12823,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$221 = finishedWork.stateNode; + var instance$223 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$221._visibility & 4 + ? instance$223._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12825,7 +12838,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$221._visibility |= 4), + : ((instance$223._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12833,7 +12846,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$221._visibility |= 4), + : ((instance$223._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -12846,7 +12859,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$221 + instance$223 ); break; case 24: @@ -13438,16 +13451,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$230 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$232 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$230 && - ((lanes = errorRetryLanes$230), + 0 !== errorRetryLanes$232 && + ((lanes = errorRetryLanes$232), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$230 + errorRetryLanes$232 ))); } if (1 === didTimeout) @@ -13501,11 +13514,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$230 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$230), - (errorRetryLanes$230 = didTimeout[errorRetryLanes$230]), - errorRetryLanes$230 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$230), + (errorRetryLanes$232 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$232), + (errorRetryLanes$232 = didTimeout[errorRetryLanes$232]), + errorRetryLanes$232 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$232), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now$1() - lanes; @@ -13879,8 +13892,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$233) { - handleThrow(root, thrownValue$233); + } catch (thrownValue$235) { + handleThrow(root, thrownValue$235); } while (1); resetContextDependencies(); @@ -13971,8 +13984,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$235) { - handleThrow(root, thrownValue$235); + } catch (thrownValue$237) { + handleThrow(root, thrownValue$237); } while (1); resetContextDependencies(); @@ -14140,10 +14153,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$103 = offscreenQueue.wakeables; - null === wakeables$103 + var wakeables$105 = offscreenQueue.wakeables; + null === wakeables$105 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$103.add(wakeable); + : wakeables$105.add(wakeable); } break; } @@ -14340,7 +14353,7 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$238 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$240 = commitBeforeMutationEffects( root, finishedWork ); @@ -14348,7 +14361,7 @@ function commitRootImpl( enableProfilerNestedUpdateScheduledHook && (rootCommittingMutationOrLayoutEffects = root); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$238 && + shouldFireAfterActiveInstanceBlur$240 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -14442,7 +14455,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$239 = rootWithPendingPassiveEffects, + var root$241 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); @@ -14458,7 +14471,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition), - releaseRootPooledCache(root$239, remainingLanes); + releaseRootPooledCache(root$241, remainingLanes); } } return !1; @@ -15805,12 +15818,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$242 = fiber.stateNode; - if (root$242.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$242.pendingLanes); + var root$244 = fiber.stateNode; + if (root$244.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$244.pendingLanes); 0 !== lanes && - (markRootEntangled(root$242, lanes | 2), - ensureRootIsScheduled(root$242, now$1()), + (markRootEntangled(root$244, lanes | 2), + ensureRootIsScheduled(root$244, now$1()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } @@ -15900,10 +15913,10 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates ]; -var devToolsConfig$jscomp$inline_1799 = { +var devToolsConfig$jscomp$inline_1801 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-f87a02b8", + version: "18.3.0-www-modern-ab6eebf8", rendererPackageName: "react-dom" }; (function (internals) { @@ -15921,10 +15934,10 @@ var devToolsConfig$jscomp$inline_1799 = { } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1799.bundleType, - version: devToolsConfig$jscomp$inline_1799.version, - rendererPackageName: devToolsConfig$jscomp$inline_1799.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1799.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1801.bundleType, + version: devToolsConfig$jscomp$inline_1801.version, + rendererPackageName: devToolsConfig$jscomp$inline_1801.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1801.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -15941,14 +15954,14 @@ var devToolsConfig$jscomp$inline_1799 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1799.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1801.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-f87a02b8" + reconcilerVersion: "18.3.0-www-modern-ab6eebf8" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -16120,7 +16133,7 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-f87a02b8"; +exports.version = "18.3.0-www-modern-ab6eebf8"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 252ac045e9c43..0100b73e940bb 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -9012,46 +9012,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority$1(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority$1(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + // This is imported by the event replaying implementation in React DOM. It's // in a separate file to break a circular dependency between the renderer and // the reconciler. @@ -31462,7 +31487,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-f2ff40c5"; +var ReactVersion = "18.3.0-www-classic-61c3f42d"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index aa38bcdcc6849..f522a9f617714 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -15847,46 +15847,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority$1(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority$1(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + // Intentionally not using it yet to derisk the initial implementation, because // the way we push/pop these values is a bit unusual. If there's a mistake, I'd // rather the ids be wrong than crash the whole reconciler. @@ -38036,7 +38061,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-52b31d1f"; +var ReactVersion = "18.3.0-www-modern-c92cd6e4"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 8ddda81d5d928..832c4fee66e67 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -2047,30 +2047,43 @@ function scheduleLegacySyncCallback(callback) { function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -3691,10 +3704,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$40 = thenableIndexCounter; + var index$42 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$40); + usable = trackUsedThenable(thenableState, usable, index$42); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -4124,16 +4137,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$45 = enqueueUpdate(provider, fiber, lane); - if (null !== root$45) { + var root$47 = enqueueUpdate(provider, fiber, lane); + if (null !== root$47) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$45, provider, lane, eventTime); - entangleTransitions(root$45, provider, lane); + scheduleUpdateOnFiber(root$47, provider, lane, eventTime); + entangleTransitions(root$47, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$45 && + null !== root$47 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4333,15 +4346,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$42 = workInProgressRoot; - if (null === root$42) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$42, renderLanes$1) || + var root$44 = workInProgressRoot; + if (null === root$44) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$44, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$42 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$42; - mountEffect(subscribeToStore.bind(null, fiber, root$42, subscribe), [ + root$44 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$44; + mountEffect(subscribeToStore.bind(null, fiber, root$44, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -4350,7 +4363,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$42, + root$44, getServerSnapshot, getSnapshot ), @@ -5367,14 +5380,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$61 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$61) + var dehydrated$63 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$63) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$61, + dehydrated$63, JSCompiler_temp, renderLanes ); @@ -5384,7 +5397,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$61 = JSCompiler_temp.sibling; + dehydrated$63 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -5393,8 +5406,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated$61 - ? (showFallback = createWorkInProgress(dehydrated$61, showFallback)) + null !== dehydrated$63 + ? (showFallback = createWorkInProgress(dehydrated$63, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -5413,10 +5426,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$61 = CacheContext._currentValue), + ? ((dehydrated$63 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$61 - ? { parent: dehydrated$61, pool: dehydrated$61 } + JSCompiler_temp.parent !== dehydrated$63 + ? { parent: dehydrated$63, pool: dehydrated$63 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -6326,14 +6339,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$86 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$86 = lastTailNode), + for (var lastTailNode$88 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$88 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$86 + null === lastTailNode$88 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$86.sibling = null); + : (lastTailNode$88.sibling = null); } } function bubbleProperties(completedWork) { @@ -6343,19 +6356,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$87 = completedWork.child; null !== child$87; ) - (newChildLanes |= child$87.lanes | child$87.childLanes), - (subtreeFlags |= child$87.subtreeFlags & 14680064), - (subtreeFlags |= child$87.flags & 14680064), - (child$87.return = completedWork), - (child$87 = child$87.sibling); + for (var child$89 = completedWork.child; null !== child$89; ) + (newChildLanes |= child$89.lanes | child$89.childLanes), + (subtreeFlags |= child$89.subtreeFlags & 14680064), + (subtreeFlags |= child$89.flags & 14680064), + (child$89.return = completedWork), + (child$89 = child$89.sibling); else - for (child$87 = completedWork.child; null !== child$87; ) - (newChildLanes |= child$87.lanes | child$87.childLanes), - (subtreeFlags |= child$87.subtreeFlags), - (subtreeFlags |= child$87.flags), - (child$87.return = completedWork), - (child$87 = child$87.sibling); + for (child$89 = completedWork.child; null !== child$89; ) + (newChildLanes |= child$89.lanes | child$89.childLanes), + (subtreeFlags |= child$89.subtreeFlags), + (subtreeFlags |= child$89.flags), + (child$89.return = completedWork), + (child$89 = child$89.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6643,11 +6656,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$97 = null; + var cache$99 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$97 = newProps.memoizedState.cachePool.pool); - cache$97 !== type && (newProps.flags |= 2048); + (cache$99 = newProps.memoizedState.cachePool.pool); + cache$99 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -6683,8 +6696,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$97 = type.rendering; - if (null === cache$97) + cache$99 = type.rendering; + if (null === cache$99) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -6692,11 +6705,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$97 = findFirstSuspended(current); - if (null !== cache$97) { + cache$99 = findFirstSuspended(current); + if (null !== cache$99) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$97.updateQueue; + current = cache$99.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -6722,7 +6735,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$97)), null !== current)) { + if (((current = findFirstSuspended(cache$99)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6733,7 +6746,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$97.alternate && + !cache$99.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -6746,13 +6759,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$97.sibling = workInProgress.child), - (workInProgress.child = cache$97)) + ? ((cache$99.sibling = workInProgress.child), + (workInProgress.child = cache$99)) : ((current = type.last), null !== current - ? (current.sibling = cache$97) - : (workInProgress.child = cache$97), - (type.last = cache$97)); + ? (current.sibling = cache$99) + : (workInProgress.child = cache$99), + (type.last = cache$99)); } if (null !== type.tail) return ( @@ -7021,8 +7034,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$111) { - captureCommitPhaseError(current, nearestMountedAncestor, error$111); + } catch (error$113) { + captureCommitPhaseError(current, nearestMountedAncestor, error$113); } else ref.current = null; } @@ -7312,11 +7325,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$113) { + } catch (error$115) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$113 + error$115 ); } } @@ -7786,8 +7799,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$125) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$125); + } catch (error$127) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$127); } } break; @@ -7965,11 +7978,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$126) { + } catch (error$128) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$126 + error$128 ); } break; @@ -8005,8 +8018,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$127) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$127); + } catch (error$129) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$129); } } if ( @@ -8023,8 +8036,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, maybeNodes, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$130) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$130); + } catch (error$132) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$132); } break; case 6: @@ -8037,8 +8050,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$131) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$131); + } catch (error$133) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$133); } } break; @@ -8052,8 +8065,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$132) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$132); + } catch (error$134) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$134); } break; case 4: @@ -8083,8 +8096,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$134) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$134); + } catch (error$136) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$136); } current = finishedWork.updateQueue; null !== current && @@ -8162,11 +8175,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$115) { + } catch (error$117) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$115 + error$117 ); } } else if ( @@ -8241,21 +8254,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$116 = JSCompiler_inline_result.stateNode; + var parent$118 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$116, ""), + (setTextContent(parent$118, ""), (JSCompiler_inline_result.flags &= -33)); - var before$117 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$117, parent$116); + var before$119 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$119, parent$118); break; case 3: case 4: - var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, - before$119 = getHostSibling(finishedWork); + var parent$120 = JSCompiler_inline_result.stateNode.containerInfo, + before$121 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$119, - parent$118 + before$121, + parent$120 ); break; default: @@ -9205,16 +9218,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$146 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$148 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$146 && - ((lanes = errorRetryLanes$146), + 0 !== errorRetryLanes$148 && + ((lanes = errorRetryLanes$148), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$146 + errorRetryLanes$148 ))); } if (1 === didTimeout) @@ -9268,11 +9281,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$146 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$146), - (errorRetryLanes$146 = didTimeout[errorRetryLanes$146]), - errorRetryLanes$146 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$146), + (errorRetryLanes$148 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$148), + (errorRetryLanes$148 = didTimeout[errorRetryLanes$148]), + errorRetryLanes$148 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$148), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -9605,8 +9618,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$149) { - handleThrow(root, thrownValue$149); + } catch (thrownValue$151) { + handleThrow(root, thrownValue$151); } while (1); resetContextDependencies(); @@ -9686,8 +9699,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$151) { - handleThrow(root, thrownValue$151); + } catch (thrownValue$153) { + handleThrow(root, thrownValue$153); } while (1); resetContextDependencies(); @@ -9825,10 +9838,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$50 = offscreenQueue.wakeables; - null === wakeables$50 + var wakeables$52 = offscreenQueue.wakeables; + null === wakeables$52 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$50.add(wakeable); + : wakeables$52.add(wakeable); } break; } @@ -10004,12 +10017,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$154 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$156 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$154 && + shouldFireAfterActiveInstanceBlur$156 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -10071,7 +10084,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$155 = rootWithPendingPassiveEffects, + var root$157 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -10111,7 +10124,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig$1.transition = renderPriority), - releaseRootPooledCache(root$155, remainingLanes); + releaseRootPooledCache(root$157, remainingLanes); } } return !1; @@ -11381,11 +11394,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$158); + var instance = getPublicRootInstance(root$160); originalCallback.call(instance); }; } - var root$158 = createHydrationContainer( + var root$160 = createHydrationContainer( initialChildren, callback, container, @@ -11396,23 +11409,23 @@ function legacyCreateRootFromDOMContainer( "", noopOnRecoverableError ); - container._reactRootContainer = root$158; - container[internalContainerInstanceKey] = root$158.current; + container._reactRootContainer = root$160; + container[internalContainerInstanceKey] = root$160.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(); - return root$158; + return root$160; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$159 = callback; + var originalCallback$161 = callback; callback = function () { - var instance = getPublicRootInstance(root$160); - originalCallback$159.call(instance); + var instance = getPublicRootInstance(root$162); + originalCallback$161.call(instance); }; } - var root$160 = createFiberRoot( + var root$162 = createFiberRoot( container, 0, !1, @@ -11423,15 +11436,15 @@ function legacyCreateRootFromDOMContainer( "", noopOnRecoverableError ); - container._reactRootContainer = root$160; - container[internalContainerInstanceKey] = root$160.current; + container._reactRootContainer = root$162; + container[internalContainerInstanceKey] = root$162.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSync$1(function () { - updateContainer(initialChildren, root$160, parentComponent, callback); + updateContainer(initialChildren, root$162, parentComponent, callback); }); - return root$160; + return root$162; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -11534,12 +11547,12 @@ function batchedUpdates(fn, a, b) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$157 = fiber.stateNode; - if (root$157.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$157.pendingLanes); + var root$159 = fiber.stateNode; + if (root$159.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$159.pendingLanes); 0 !== lanes && - (markRootEntangled(root$157, lanes | 2), - ensureRootIsScheduled(root$157, now()), + (markRootEntangled(root$159, lanes | 2), + ensureRootIsScheduled(root$159, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } @@ -11619,17 +11632,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates$1 ]; -var devToolsConfig$jscomp$inline_1551 = { +var devToolsConfig$jscomp$inline_1553 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-9d9aef36", + version: "18.3.0-www-classic-600fa423", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2103 = { - bundleType: devToolsConfig$jscomp$inline_1551.bundleType, - version: devToolsConfig$jscomp$inline_1551.version, - rendererPackageName: devToolsConfig$jscomp$inline_1551.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1551.rendererConfig, +var internals$jscomp$inline_2105 = { + bundleType: devToolsConfig$jscomp$inline_1553.bundleType, + version: devToolsConfig$jscomp$inline_1553.version, + rendererPackageName: devToolsConfig$jscomp$inline_1553.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1553.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -11645,26 +11658,26 @@ var internals$jscomp$inline_2103 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1551.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1553.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-9d9aef36" + reconcilerVersion: "18.3.0-www-classic-600fa423" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2104 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2106 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2104.isDisabled && - hook$jscomp$inline_2104.supportsFiber + !hook$jscomp$inline_2106.isDisabled && + hook$jscomp$inline_2106.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2104.inject( - internals$jscomp$inline_2103 + (rendererID = hook$jscomp$inline_2106.inject( + internals$jscomp$inline_2105 )), - (injectedHook = hook$jscomp$inline_2104); + (injectedHook = hook$jscomp$inline_2106); } catch (err) {} } var Dispatcher = Internals.Dispatcher, @@ -11783,12 +11796,12 @@ function preinit(href, options) { switch (as) { case "style": as = getResourcesFromRoot(resourceRoot).hoistableStyles; - var key$162 = getStyleKey(href), + var key$164 = getStyleKey(href), precedence = options.precedence || "default", - resource = as.get(key$162); + resource = as.get(key$164); if (resource) break; resource = resourceRoot.querySelector( - getStylesheetSelectorFromKey(key$162) + getStylesheetSelectorFromKey(key$164) ); resource || ((href = { @@ -11797,7 +11810,7 @@ function preinit(href, options) { "data-precedence": precedence, crossOrigin: options.crossOrigin }), - (options = preloadPropsMap.get(key$162)) && + (options = preloadPropsMap.get(key$164)) && adoptPreloadPropsForStylesheet(href, options), (resource = ( resourceRoot.ownerDocument || resourceRoot @@ -11806,15 +11819,15 @@ function preinit(href, options) { setInitialProperties(resource, "link", href), insertStylesheet(resource, precedence, resourceRoot)); resource = { type: "stylesheet", instance: resource, count: 1 }; - as.set(key$162, resource); + as.set(key$164, resource); break; case "script": (as = getResourcesFromRoot(resourceRoot).hoistableScripts), - (key$162 = getScriptKey(href)), - (precedence = as.get(key$162)), + (key$164 = getScriptKey(href)), + (precedence = as.get(key$164)), precedence || ((precedence = resourceRoot.querySelector( - "script[async]" + key$162 + "script[async]" + key$164 )), precedence || ((href = { @@ -11823,7 +11836,7 @@ function preinit(href, options) { crossOrigin: options.crossOrigin, integrity: options.integrity }), - (options = preloadPropsMap.get(key$162)) && + (options = preloadPropsMap.get(key$164)) && adoptPreloadPropsForScript(href, options), (options = resourceRoot.ownerDocument || resourceRoot), (precedence = options.createElement("script")), @@ -11831,13 +11844,13 @@ function preinit(href, options) { setInitialProperties(precedence, "link", href), options.head.appendChild(precedence)), (precedence = { type: "script", instance: precedence, count: 1 }), - as.set(key$162, precedence)); + as.set(key$164, precedence)); } else if ("style" === as || "script" === as) if ((resourceRoot = getDocumentForPreloads())) { - key$162 = escapeSelectorAttributeValueInsideDoubleQuotes(href); - precedence = key$162 = - 'link[rel="preload"][as="' + as + '"][href="' + key$162 + '"]'; + key$164 = escapeSelectorAttributeValueInsideDoubleQuotes(href); + precedence = key$164 = + 'link[rel="preload"][as="' + as + '"][href="' + key$164 + '"]'; switch (as) { case "style": precedence = getStyleKey(href); @@ -11854,7 +11867,7 @@ function preinit(href, options) { integrity: options.integrity }), preloadPropsMap.set(precedence, href), - null === resourceRoot.querySelector(key$162) && + null === resourceRoot.querySelector(key$164) && ((options = resourceRoot.createElement("link")), setInitialProperties(options, "link", href), markNodeAsHoistable(options), @@ -11886,14 +11899,14 @@ function getResource(type, currentProps, pendingProps) { "string" === typeof pendingProps.href && "string" === typeof pendingProps.precedence ) { - var key$169 = getStyleKey(pendingProps.href), - styles$170 = getResourcesFromRoot(currentProps).hoistableStyles; - type = styles$170.get(key$169); + var key$171 = getStyleKey(pendingProps.href), + styles$172 = getResourcesFromRoot(currentProps).hoistableStyles; + type = styles$172.get(key$171); type || ((currentProps = currentProps.ownerDocument || currentProps), (type = { type: "stylesheet", instance: null, count: 0 }), - styles$170.set(key$169, type), - preloadPropsMap.has(key$169) || + styles$172.set(key$171, type), + preloadPropsMap.has(key$171) || ((pendingProps = { rel: "preload", as: "style", @@ -11904,16 +11917,16 @@ function getResource(type, currentProps, pendingProps) { hrefLang: pendingProps.hrefLang, referrerPolicy: pendingProps.referrerPolicy }), - preloadPropsMap.set(key$169, pendingProps), - currentProps.querySelector(getStylesheetSelectorFromKey(key$169)) || + preloadPropsMap.set(key$171, pendingProps), + currentProps.querySelector(getStylesheetSelectorFromKey(key$171)) || null !== currentProps.querySelector( - 'link[rel="preload"][as="style"][' + key$169 + "]" + 'link[rel="preload"][as="style"][' + key$171 + "]" ) || - ((key$169 = currentProps.createElement("link")), - setInitialProperties(key$169, "link", pendingProps), - markNodeAsHoistable(key$169), - currentProps.head.appendChild(key$169)))); + ((key$171 = currentProps.createElement("link")), + setInitialProperties(key$171, "link", pendingProps), + markNodeAsHoistable(key$171), + currentProps.head.appendChild(key$171)))); return type; } return null; @@ -11963,14 +11976,14 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = key); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$176 = hoistableRoot.querySelector( + var instance$178 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$176) + if (instance$178) return ( - (resource.instance = instance$176), - markNodeAsHoistable(instance$176), - instance$176 + (resource.instance = instance$178), + markNodeAsHoistable(instance$178), + instance$178 ); key = assign({}, props, { "data-precedence": props.precedence, @@ -11978,11 +11991,11 @@ function acquireResource(hoistableRoot, resource, props) { }); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(key, styleProps); - instance$176 = ( + instance$178 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$176); - var linkInstance = instance$176; + markNodeAsHoistable(instance$178); + var linkInstance = instance$178; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; @@ -11994,14 +12007,14 @@ function acquireResource(hoistableRoot, resource, props) { return (linkInstance._p.s = "e"); } ); - setInitialProperties(instance$176, "link", key); - insertStylesheet(instance$176, props.precedence, hoistableRoot); - return (resource.instance = instance$176); + setInitialProperties(instance$178, "link", key); + insertStylesheet(instance$178, props.precedence, hoistableRoot); + return (resource.instance = instance$178); case "script": - instance$176 = getScriptKey(props.src); + instance$178 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - "script[async]" + instance$176 + "script[async]" + instance$178 )) ) return ( @@ -12010,7 +12023,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); key = props; - if ((styleProps = preloadPropsMap.get(instance$176))) + if ((styleProps = preloadPropsMap.get(instance$178))) (key = assign({}, props)), adoptPreloadPropsForScript(key, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -13019,19 +13032,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$294; + var JSCompiler_inline_result$jscomp$296; if (canUseDOM) { - var isSupported$jscomp$inline_1626 = "oninput" in document; - if (!isSupported$jscomp$inline_1626) { - var element$jscomp$inline_1627 = document.createElement("div"); - element$jscomp$inline_1627.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1626 = - "function" === typeof element$jscomp$inline_1627.oninput; + var isSupported$jscomp$inline_1628 = "oninput" in document; + if (!isSupported$jscomp$inline_1628) { + var element$jscomp$inline_1629 = document.createElement("div"); + element$jscomp$inline_1629.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1628 = + "function" === typeof element$jscomp$inline_1629.oninput; } - JSCompiler_inline_result$jscomp$294 = isSupported$jscomp$inline_1626; - } else JSCompiler_inline_result$jscomp$294 = !1; + JSCompiler_inline_result$jscomp$296 = isSupported$jscomp$inline_1628; + } else JSCompiler_inline_result$jscomp$296 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$294 && + JSCompiler_inline_result$jscomp$296 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13169,20 +13182,20 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } 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"); @@ -14901,4 +14914,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-9d9aef36"; +exports.version = "18.3.0-www-classic-600fa423"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index ffc319a316911..e9e4e0e27a023 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -2657,19 +2657,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$218; + var JSCompiler_inline_result$jscomp$220; if (canUseDOM) { - var isSupported$jscomp$inline_364 = "oninput" in document; - if (!isSupported$jscomp$inline_364) { - var element$jscomp$inline_365 = document.createElement("div"); - element$jscomp$inline_365.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_364 = - "function" === typeof element$jscomp$inline_365.oninput; + var isSupported$jscomp$inline_366 = "oninput" in document; + if (!isSupported$jscomp$inline_366) { + var element$jscomp$inline_367 = document.createElement("div"); + element$jscomp$inline_367.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_366 = + "function" === typeof element$jscomp$inline_367.oninput; } - JSCompiler_inline_result$jscomp$218 = isSupported$jscomp$inline_364; - } else JSCompiler_inline_result$jscomp$218 = !1; + JSCompiler_inline_result$jscomp$220 = isSupported$jscomp$inline_366; + } else JSCompiler_inline_result$jscomp$220 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$218 && + JSCompiler_inline_result$jscomp$220 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3004,19 +3004,19 @@ function registerSimpleEvent(domEventName, reactName) { registerTwoPhaseEvent(reactName, [domEventName]); } for ( - var i$jscomp$inline_405 = 0; - i$jscomp$inline_405 < simpleEventPluginEvents.length; - i$jscomp$inline_405++ + var i$jscomp$inline_407 = 0; + i$jscomp$inline_407 < simpleEventPluginEvents.length; + i$jscomp$inline_407++ ) { - var eventName$jscomp$inline_406 = - simpleEventPluginEvents[i$jscomp$inline_405], - domEventName$jscomp$inline_407 = eventName$jscomp$inline_406.toLowerCase(), - capitalizedEvent$jscomp$inline_408 = - eventName$jscomp$inline_406[0].toUpperCase() + - eventName$jscomp$inline_406.slice(1); + var eventName$jscomp$inline_408 = + simpleEventPluginEvents[i$jscomp$inline_407], + domEventName$jscomp$inline_409 = eventName$jscomp$inline_408.toLowerCase(), + capitalizedEvent$jscomp$inline_410 = + eventName$jscomp$inline_408[0].toUpperCase() + + eventName$jscomp$inline_408.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_407, - "on" + capitalizedEvent$jscomp$inline_408 + domEventName$jscomp$inline_409, + "on" + capitalizedEvent$jscomp$inline_410 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -4799,30 +4799,43 @@ function scheduleLegacySyncCallback(callback) { function flushSyncCallbacks() { if (!isFlushingSyncQueue && null !== syncQueue) { isFlushingSyncQueue = !0; - var i = 0, - previousUpdatePriority = currentUpdatePriority; - try { - var queue = syncQueue; - for (currentUpdatePriority = 2; i < queue.length; i++) { - var callback = queue[i]; + var previousUpdatePriority = currentUpdatePriority; + currentUpdatePriority = 2; + for (var errors = null, queue = syncQueue, i = 0; i < queue.length; i++) { + var callback = queue[i]; + try { do callback = callback(!0); while (null !== callback); + } catch (error) { + null === errors ? (errors = [error]) : errors.push(error); } - syncQueue = null; - includesLegacySyncCallbacks = !1; - } catch (error) { - throw ( - (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks), - error) - ); - } finally { - (currentUpdatePriority = previousUpdatePriority), - (isFlushingSyncQueue = !1); + } + syncQueue = null; + includesLegacySyncCallbacks = !1; + currentUpdatePriority = previousUpdatePriority; + isFlushingSyncQueue = !1; + if (null !== errors) { + if (1 < errors.length) { + if ("function" === typeof AggregateError) + throw new AggregateError(errors); + for ( + previousUpdatePriority = 1; + previousUpdatePriority < errors.length; + previousUpdatePriority++ + ) + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[previousUpdatePriority]) + ); + } + throw errors[0]; } } return null; } +function throwError(error) { + throw error; +} var forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -6421,10 +6434,10 @@ createFunctionComponentUpdateQueue = function () { function use(usable) { if (null !== usable && "object" === typeof usable) { if ("function" === typeof usable.then) { - var index$82 = thenableIndexCounter; + var index$84 = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = []); - usable = trackUsedThenable(thenableState, usable, index$82); + usable = trackUsedThenable(thenableState, usable, index$84); null === currentlyRenderingFiber$1.alternate && (null === workInProgressHook ? null === currentlyRenderingFiber$1.memoizedState @@ -6854,16 +6867,16 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$87 = enqueueUpdate(provider, fiber, lane); - if (null !== root$87) { + var root$89 = enqueueUpdate(provider, fiber, lane); + if (null !== root$89) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root$87, provider, lane, eventTime); - entangleTransitions(root$87, provider, lane); + scheduleUpdateOnFiber(root$89, provider, lane, eventTime); + entangleTransitions(root$89, provider, lane); } provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$87 && + null !== root$89 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -7063,15 +7076,15 @@ var HooksDispatcherOnMount = { getServerSnapshot = getServerSnapshot(); } else { getServerSnapshot = getSnapshot(); - var root$84 = workInProgressRoot; - if (null === root$84) throw Error(formatProdErrorMessage(349)); - includesBlockingLane(root$84, renderLanes$1) || + var root$86 = workInProgressRoot; + if (null === root$86) throw Error(formatProdErrorMessage(349)); + includesBlockingLane(root$86, renderLanes$1) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); } hook.memoizedState = getServerSnapshot; - root$84 = { value: getServerSnapshot, getSnapshot: getSnapshot }; - hook.queue = root$84; - mountEffect(subscribeToStore.bind(null, fiber, root$84, subscribe), [ + root$86 = { value: getServerSnapshot, getSnapshot: getSnapshot }; + hook.queue = root$86; + mountEffect(subscribeToStore.bind(null, fiber, root$86, subscribe), [ subscribe ]); fiber.flags |= 2048; @@ -7080,7 +7093,7 @@ var HooksDispatcherOnMount = { updateStoreInstance.bind( null, fiber, - root$84, + root$86, getServerSnapshot, getSnapshot ), @@ -7370,9 +7383,9 @@ function logCapturedError(boundary, errorInfo) { errorBoundary: null !== boundary && 1 === boundary.tag ? boundary.stateNode : null }) && console.error(errorInfo.value); - } catch (e$92) { + } catch (e$94) { setTimeout(function () { - throw e$92; + throw e$94; }); } } @@ -8046,14 +8059,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { } JSCompiler_temp = current.memoizedState; if (null !== JSCompiler_temp) { - var dehydrated$104 = JSCompiler_temp.dehydrated; - if (null !== dehydrated$104) + var dehydrated$106 = JSCompiler_temp.dehydrated; + if (null !== dehydrated$106) return updateDehydratedSuspenseComponent( current, workInProgress, didSuspend, nextProps, - dehydrated$104, + dehydrated$106, JSCompiler_temp, renderLanes ); @@ -8063,7 +8076,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { showFallback = nextProps.fallback; didSuspend = workInProgress.mode; JSCompiler_temp = current.child; - dehydrated$104 = JSCompiler_temp.sibling; + dehydrated$106 = JSCompiler_temp.sibling; var primaryChildProps = { mode: "hidden", children: nextProps.children }; 0 === (didSuspend & 1) && workInProgress.child !== JSCompiler_temp ? ((nextProps = workInProgress.child), @@ -8072,8 +8085,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress.deletions = null)) : ((nextProps = createWorkInProgress(JSCompiler_temp, primaryChildProps)), (nextProps.subtreeFlags = JSCompiler_temp.subtreeFlags & 14680064)); - null !== dehydrated$104 - ? (showFallback = createWorkInProgress(dehydrated$104, showFallback)) + null !== dehydrated$106 + ? (showFallback = createWorkInProgress(dehydrated$106, showFallback)) : ((showFallback = createFiberFromFragment( showFallback, didSuspend, @@ -8092,10 +8105,10 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ? (didSuspend = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = didSuspend.cachePool), null !== JSCompiler_temp - ? ((dehydrated$104 = CacheContext._currentValue), + ? ((dehydrated$106 = CacheContext._currentValue), (JSCompiler_temp = - JSCompiler_temp.parent !== dehydrated$104 - ? { parent: dehydrated$104, pool: dehydrated$104 } + JSCompiler_temp.parent !== dehydrated$106 + ? { parent: dehydrated$106, pool: dehydrated$106 } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), (didSuspend = { @@ -9006,14 +9019,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$131 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$131 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$129 + null === lastTailNode$131 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$129.sibling = null); + : (lastTailNode$131.sibling = null); } } function bubbleProperties(completedWork) { @@ -9023,19 +9036,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 & 14680064), - (subtreeFlags |= child$130.flags & 14680064), - (child$130.return = completedWork), - (child$130 = child$130.sibling); + for (var child$132 = completedWork.child; null !== child$132; ) + (newChildLanes |= child$132.lanes | child$132.childLanes), + (subtreeFlags |= child$132.subtreeFlags & 14680064), + (subtreeFlags |= child$132.flags & 14680064), + (child$132.return = completedWork), + (child$132 = child$132.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$132 = completedWork.child; null !== child$132; ) + (newChildLanes |= child$132.lanes | child$132.childLanes), + (subtreeFlags |= child$132.subtreeFlags), + (subtreeFlags |= child$132.flags), + (child$132.return = completedWork), + (child$132 = child$132.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9317,11 +9330,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$140 = null; + var cache$142 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$140 = newProps.memoizedState.cachePool.pool); - cache$140 !== type && (newProps.flags |= 2048); + (cache$142 = newProps.memoizedState.cachePool.pool); + cache$142 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -9353,8 +9366,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$140 = type.rendering; - if (null === cache$140) + cache$142 = type.rendering; + if (null === cache$142) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -9362,11 +9375,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$140 = findFirstSuspended(current); - if (null !== cache$140) { + cache$142 = findFirstSuspended(current); + if (null !== cache$142) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$140.updateQueue; + current = cache$142.updateQueue; null !== current && ((workInProgress.updateQueue = current), (workInProgress.flags |= 4)); @@ -9392,7 +9405,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$140)), null !== current)) { + if (((current = findFirstSuspended(cache$142)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -9403,7 +9416,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$140.alternate && + !cache$142.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -9416,13 +9429,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 8388608)); type.isBackwards - ? ((cache$140.sibling = workInProgress.child), - (workInProgress.child = cache$140)) + ? ((cache$142.sibling = workInProgress.child), + (workInProgress.child = cache$142)) : ((current = type.last), null !== current - ? (current.sibling = cache$140) - : (workInProgress.child = cache$140), - (type.last = cache$140)); + ? (current.sibling = cache$142) + : (workInProgress.child = cache$142), + (type.last = cache$142)); } if (null !== type.tail) return ( @@ -9640,8 +9653,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$153) { - captureCommitPhaseError(current, nearestMountedAncestor, error$153); + } catch (error$155) { + captureCommitPhaseError(current, nearestMountedAncestor, error$155); } else ref.current = null; } @@ -9951,11 +9964,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$155) { + } catch (error$157) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$155 + error$157 ); } } @@ -10425,8 +10438,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$167) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$167); + } catch (error$169) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$169); } } break; @@ -10604,11 +10617,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$168) { + } catch (error$170) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$168 + error$170 ); } break; @@ -10644,8 +10657,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$169) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$169); + } catch (error$171) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$171); } } if ( @@ -10662,8 +10675,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(flags, maybeNodes, hoistableRoot, current, root), (flags[internalPropsKey] = root); - } catch (error$172) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$172); + } catch (error$174) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$174); } break; case 6: @@ -10676,8 +10689,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags = finishedWork.memoizedProps; try { current.nodeValue = flags; - } catch (error$173) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$173); + } catch (error$175) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$175); } } break; @@ -10691,8 +10704,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$174) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$174); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } break; case 4: @@ -10722,8 +10735,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== wakeables && suspenseCallback(new Set(wakeables)); } } - } catch (error$176) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$176); + } catch (error$178) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$178); } current = finishedWork.updateQueue; null !== current && @@ -10801,11 +10814,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$157) { + } catch (error$159) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$157 + error$159 ); } } else if ( @@ -10880,21 +10893,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$158 = JSCompiler_inline_result.stateNode; + var parent$160 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$158, ""), + (setTextContent(parent$160, ""), (JSCompiler_inline_result.flags &= -33)); - var before$159 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$159, parent$158); + var before$161 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$161, parent$160); break; case 3: case 4: - var parent$160 = JSCompiler_inline_result.stateNode.containerInfo, - before$161 = getHostSibling(finishedWork); + var parent$162 = JSCompiler_inline_result.stateNode.containerInfo, + before$163 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$161, - parent$160 + before$163, + parent$162 ); break; default: @@ -11844,16 +11857,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) { didTimeout = renderRootSync(root, lanes); if (2 === didTimeout) { errorRetryLanes = lanes; - var errorRetryLanes$188 = getLanesToRetrySynchronouslyOnError( + var errorRetryLanes$190 = getLanesToRetrySynchronouslyOnError( root, errorRetryLanes ); - 0 !== errorRetryLanes$188 && - ((lanes = errorRetryLanes$188), + 0 !== errorRetryLanes$190 && + ((lanes = errorRetryLanes$190), (didTimeout = recoverFromConcurrentError( root, errorRetryLanes, - errorRetryLanes$188 + errorRetryLanes$190 ))); } if (1 === didTimeout) @@ -11907,11 +11920,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) - (errorRetryLanes$188 = 31 - clz32(lanes)), - (errorRetryLanes = 1 << errorRetryLanes$188), - (errorRetryLanes$188 = didTimeout[errorRetryLanes$188]), - errorRetryLanes$188 > originallyAttemptedLanes && - (originallyAttemptedLanes = errorRetryLanes$188), + (errorRetryLanes$190 = 31 - clz32(lanes)), + (errorRetryLanes = 1 << errorRetryLanes$190), + (errorRetryLanes$190 = didTimeout[errorRetryLanes$190]), + errorRetryLanes$190 > originallyAttemptedLanes && + (originallyAttemptedLanes = errorRetryLanes$190), (lanes &= ~errorRetryLanes); lanes = originallyAttemptedLanes; lanes = now() - lanes; @@ -12244,8 +12257,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$191) { - handleThrow(root, thrownValue$191); + } catch (thrownValue$193) { + handleThrow(root, thrownValue$193); } while (1); resetContextDependencies(); @@ -12325,8 +12338,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$193) { - handleThrow(root, thrownValue$193); + } catch (thrownValue$195) { + handleThrow(root, thrownValue$195); } while (1); resetContextDependencies(); @@ -12464,10 +12477,10 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { }; suspenseBoundary.updateQueue = newOffscreenQueue; } else { - var wakeables$93 = offscreenQueue.wakeables; - null === wakeables$93 + var wakeables$95 = offscreenQueue.wakeables; + null === wakeables$95 ? (offscreenQueue.wakeables = new Set([wakeable])) - : wakeables$93.add(wakeable); + : wakeables$95.add(wakeable); } break; } @@ -12643,12 +12656,12 @@ function commitRootImpl( var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; - var shouldFireAfterActiveInstanceBlur$196 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$198 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$196 && + shouldFireAfterActiveInstanceBlur$198 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -12710,7 +12723,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$197 = rootWithPendingPassiveEffects, + var root$199 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12750,7 +12763,7 @@ function flushPassiveEffects() { } finally { (currentUpdatePriority = previousPriority), (ReactCurrentBatchConfig.transition = renderPriority), - releaseRootPooledCache(root$197, remainingLanes); + releaseRootPooledCache(root$199, remainingLanes); } } return !1; @@ -13910,12 +13923,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { _attemptSynchronousHydration = function (fiber) { switch (fiber.tag) { case 3: - var root$199 = fiber.stateNode; - if (root$199.current.memoizedState.isDehydrated) { - var lanes = getHighestPriorityLanes(root$199.pendingLanes); + var root$201 = fiber.stateNode; + if (root$201.current.memoizedState.isDehydrated) { + var lanes = getHighestPriorityLanes(root$201.pendingLanes); 0 !== lanes && - (markRootEntangled(root$199, lanes | 2), - ensureRootIsScheduled(root$199, now()), + (markRootEntangled(root$201, lanes | 2), + ensureRootIsScheduled(root$201, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); } @@ -13995,17 +14008,17 @@ Internals.Events = [ restoreStateIfNeeded, batchedUpdates ]; -var devToolsConfig$jscomp$inline_1671 = { +var devToolsConfig$jscomp$inline_1673 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-fd5743d3", + version: "18.3.0-www-modern-f87ae691", rendererPackageName: "react-dom" }; -var internals$jscomp$inline_2077 = { - bundleType: devToolsConfig$jscomp$inline_1671.bundleType, - version: devToolsConfig$jscomp$inline_1671.version, - rendererPackageName: devToolsConfig$jscomp$inline_1671.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1671.rendererConfig, +var internals$jscomp$inline_2079 = { + bundleType: devToolsConfig$jscomp$inline_1673.bundleType, + version: devToolsConfig$jscomp$inline_1673.version, + rendererPackageName: devToolsConfig$jscomp$inline_1673.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1673.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -14022,26 +14035,26 @@ var internals$jscomp$inline_2077 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1671.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1673.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-fd5743d3" + reconcilerVersion: "18.3.0-www-modern-f87ae691" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2078 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2080 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2078.isDisabled && - hook$jscomp$inline_2078.supportsFiber + !hook$jscomp$inline_2080.isDisabled && + hook$jscomp$inline_2080.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2078.inject( - internals$jscomp$inline_2077 + (rendererID = hook$jscomp$inline_2080.inject( + internals$jscomp$inline_2079 )), - (injectedHook = hook$jscomp$inline_2078); + (injectedHook = hook$jscomp$inline_2080); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; @@ -14357,4 +14370,4 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-fd5743d3"; +exports.version = "18.3.0-www-modern-f87ae691"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 6b63adf8c93c7..f829caa783bd7 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -2866,46 +2866,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + // This is imported by the event replaying implementation in React DOM. It's // in a separate file to break a circular dependency between the renderer and // the reconciler. @@ -23769,7 +23794,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-9aa67a4b"; +var ReactVersion = "18.3.0-www-classic-2505f0d2"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 550e3014ff73b..a8ef377a9eb89 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -2866,46 +2866,71 @@ function flushSyncCallbacksOnlyInLegacyMode() { function flushSyncCallbacks() { if (!isFlushingSyncQueue && syncQueue !== null) { // Prevent re-entrance. - isFlushingSyncQueue = true; - var i = 0; - var previousUpdatePriority = getCurrentUpdatePriority(); - - try { - var isSync = true; - var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this - // queue is in the render or commit phases. + isFlushingSyncQueue = true; // Set the event priority to discrete + // TODO: Is this necessary anymore? The only user code that runs in this + // queue is in the render or commit phases, which already set the + // event priority. Should be able to remove. - setCurrentUpdatePriority(DiscreteEventPriority); // $FlowFixMe[incompatible-use] found when upgrading Flow + var previousUpdatePriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var errors = null; + var queue = syncQueue; // $FlowFixMe[incompatible-use] found when upgrading Flow - for (; i < queue.length; i++) { - // $FlowFixMe[incompatible-use] found when upgrading Flow - var callback = queue[i]; + for (var i = 0; i < queue.length; i++) { + // $FlowFixMe[incompatible-use] found when upgrading Flow + var callback = queue[i]; + try { do { - // $FlowFixMe[incompatible-type] we bail out when we get a null + var isSync = true; // $FlowFixMe[incompatible-type] we bail out when we get a null + callback = callback(isSync); } while (callback !== null); + } catch (error) { + // Collect errors so we can rethrow them at the end + if (errors === null) { + errors = [error]; + } else { + errors.push(error); + } } + } - syncQueue = null; - includesLegacySyncCallbacks = false; - } catch (error) { - // If something throws, leave the remaining callbacks on the queue. - if (syncQueue !== null) { - syncQueue = syncQueue.slice(i + 1); - } // Resume flushing in the next tick + syncQueue = null; + includesLegacySyncCallbacks = false; + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; - scheduleCallback$2(ImmediatePriority, flushSyncCallbacks); - throw error; - } finally { - setCurrentUpdatePriority(previousUpdatePriority); - isFlushingSyncQueue = false; + if (errors !== null) { + if (errors.length > 1) { + if (typeof AggregateError === "function") { + // eslint-disable-next-line no-undef + throw new AggregateError(errors); + } else { + for (var _i = 1; _i < errors.length; _i++) { + scheduleCallback$2( + ImmediatePriority, + throwError.bind(null, errors[_i]) + ); + } + + var firstError = errors[0]; + throw firstError; + } + } else { + var error = errors[0]; + throw error; + } } } return null; } +function throwError(error) { + throw error; +} + // This is imported by the event replaying implementation in React DOM. It's // in a separate file to break a circular dependency between the renderer and // the reconciler. @@ -23769,7 +23794,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-fd5743d3"; +var ReactVersion = "18.3.0-www-modern-f87ae691"; // Might add PROFILE later.